Re: r34910 - lyx-devel/trunk/src/support

2010-07-18 Thread Enrico Forestieri
On Sun, Jul 18, 2010 at 08:44:48AM +0200, Peter Kümmel wrote: > Enrico Forestieri wrote: > >> But we could have made a copy of the output for the terminal. If this is > >> the only remaining issue, then your time was not lost. > > > > I think the issue is now fixed. > > > > Ver good, reading yo

Re: r34910 - lyx-devel/trunk/src/support

2010-07-17 Thread Peter Kümmel
Enrico Forestieri wrote: >> But we could have made a copy of the output for the terminal. If this is >> the only remaining issue, then your time was not lost. > > I think the issue is now fixed. > Ver good, reading your log message I thought you've given up ;) Peter

Re: r34910 - lyx-devel/trunk/src/support

2010-07-16 Thread Enrico Forestieri
On Fri, Jul 16, 2010 at 04:45:59PM +0200, Peter Kümmel wrote: > Enrico Forestieri wrote: > > On Fri, Jul 16, 2010 at 12:08:21PM +0200, Peter Kümmel wrote: > >> void SystemcallPrivate::flush() > >> { > >>if (process_) { > >>// If the output has been redirected, we write it all at onc

Re: r34910 - lyx-devel/trunk/src/support

2010-07-16 Thread Enrico Forestieri
On Fri, Jul 16, 2010 at 04:38:36PM +0200, Peter Kümmel wrote: > Enrico Forestieri wrote: > > On Fri, Jul 16, 2010 at 12:08:21PM +0200, Peter Kümmel wrote: > >> void SystemcallPrivate::flush() > >> { > >>if (process_) { > >>// If the output has been redirected, we write it all at onc

Re: r34910 - lyx-devel/trunk/src/support

2010-07-16 Thread Peter Kümmel
Enrico Forestieri wrote: > On Fri, Jul 16, 2010 at 12:08:21PM +0200, Peter Kümmel wrote: >> void SystemcallPrivate::flush() >> { >> if (process_) { >> // If the output has been redirected, we write it all at once. >> // Even if we are not running in a terminal, the ou

Re: r34910 - lyx-devel/trunk/src/support

2010-07-16 Thread Pavel Sanda
Peter Kümmel wrote: > Pavel Sanda wrote: > > Enrico Forestieri wrote: > >> On Fri, Jul 16, 2010 at 12:08:21PM +0200, Peter Kümmel wrote: > >>> void SystemcallPrivate::flush() > >>> { > >>> if (process_) { > >>> // If the output has been redirected, we write it all at once. > >>>

Re: r34910 - lyx-devel/trunk/src/support

2010-07-16 Thread Peter Kümmel
Pavel Sanda wrote: > Enrico Forestieri wrote: >> On Fri, Jul 16, 2010 at 12:08:21PM +0200, Peter Kümmel wrote: >>> void SystemcallPrivate::flush() >>> { >>> if (process_) { >>> // If the output has been redirected, we write it all at once. >>> // Even if we are not runni

Re: r34910 - lyx-devel/trunk/src/support

2010-07-16 Thread Peter Kümmel
Enrico Forestieri wrote: > On Fri, Jul 16, 2010 at 12:08:21PM +0200, Peter Kümmel wrote: >> void SystemcallPrivate::flush() >> { >> if (process_) { >> // If the output has been redirected, we write it all at once. >> // Even if we are not running in a terminal, the ou

Re: r34910 - lyx-devel/trunk/src/support

2010-07-16 Thread Enrico Forestieri
On Fri, Jul 16, 2010 at 04:11:13PM +0200, Pavel Sanda wrote: > Enrico Forestieri wrote: > > On Fri, Jul 16, 2010 at 12:08:21PM +0200, Peter Kümmel wrote: > > > > > > void SystemcallPrivate::flush() > > > { > > > if (process_) { > > > // If the output has been redirected, we write it al

Re: r34910 - lyx-devel/trunk/src/support

2010-07-16 Thread Pavel Sanda
Enrico Forestieri wrote: > On Fri, Jul 16, 2010 at 12:08:21PM +0200, Peter Kümmel wrote: > > > > void SystemcallPrivate::flush() > > { > > if (process_) { > > // If the output has been redirected, we write it all at once. > > // Even if we are not running in a terminal,

Re: r34910 - lyx-devel/trunk/src/support

2010-07-16 Thread Enrico Forestieri
On Fri, Jul 16, 2010 at 12:08:21PM +0200, Peter Kümmel wrote: > > void SystemcallPrivate::flush() > { > if (process_) { > // If the output has been redirected, we write it all at once. > // Even if we are not running in a terminal, the output could go >

Re: r34910 - lyx-devel/trunk/src/support

2010-07-16 Thread Enrico Forestieri
On Fri, Jul 16, 2010 at 12:08:21PM +0200, Peter Kümmel wrote: > Enrico Forestieri wrote: > > On Fri, Jul 16, 2010 at 11:31:02AM +0200, Peter Kümmel wrote: > >> Enrico Forestieri wrote: > >> >>> /// > > - bool showerr_; > > + bool terminalOutExists_; > terminal_out_ex

Re: r34910 - lyx-devel/trunk/src/support

2010-07-16 Thread Peter Kümmel
Enrico Forestieri wrote: > On Fri, Jul 16, 2010 at 11:31:02AM +0200, Peter Kümmel wrote: >> Enrico Forestieri wrote: >> >>> /// > - bool showerr_; > + bool terminalOutExists_; terminal_out_exists_ >>> stdout_exists_ >> Hope attached patch makes the code more readable. > > Yes

Re: r34910 - lyx-devel/trunk/src/support

2010-07-16 Thread Peter Kümmel
> >> Index: Systemcall.cpp >> === >> --- Systemcall.cpp (Revision 34914) >> +++ Systemcall.cpp (Arbeitskopie) >> @@ -246,16 +246,24 @@ >> out_index_(0), >> err_ind

Re: r34910 - lyx-devel/trunk/src/support

2010-07-16 Thread Peter Kümmel
Enrico Forestieri wrote: > On Fri, Jul 16, 2010 at 11:15:25AM +0200, Peter Kümmel wrote: >> Enrico Forestieri wrote: >>> @@ -254,6 +254,8 @@ >>> // Check whether we have to simply throw away the output. >>> if (out_file_ != os::nulldev()) >>> process_->se

Re: r34910 - lyx-devel/trunk/src/support

2010-07-16 Thread Enrico Forestieri
On Fri, Jul 16, 2010 at 11:31:02AM +0200, Peter Kümmel wrote: > Enrico Forestieri wrote: > >>> /// > >>> - bool showerr_; > >>> + bool terminalOutExists_; > >> terminal_out_exists_ > > > > stdout_exists_ > > Hope attached patch makes the code more readable. Yes, I think so, but see bel

Re: r34910 - lyx-devel/trunk/src/support

2010-07-16 Thread Enrico Forestieri
On Fri, Jul 16, 2010 at 11:15:25AM +0200, Peter Kümmel wrote: > Enrico Forestieri wrote: > > @@ -254,6 +254,8 @@ > > // Check whether we have to simply throw away the output. > > if (out_file_ != os::nulldev()) > > process_->setStandardOutputFile(toqstr(o

Re: r34910 - lyx-devel/trunk/src/support

2010-07-16 Thread Peter Kümmel
Enrico Forestieri wrote: >>>/// >>> - bool showerr_; >>> + bool terminalOutExists_; >> terminal_out_exists_ > > stdout_exists_ Hope attached patch makes the code more readable. But why do we ignore the terminal settings in flush() ? Peter Index: Systemcall.cpp =

Re: r34910 - lyx-devel/trunk/src/support

2010-07-16 Thread Kornel Benko
Am Freitag 16 Juli 2010 schrieb Enrico Forestieri: > On Fri, Jul 16, 2010 at 10:38:09AM +0200, Kornel Benko wrote: > > I am always collecting the output in a file ( == redirecting) to be able > > to analyse the output later. Since I have many debug-keys enabled, the > > output is huge. > > > > Not

Re: r34910 - lyx-devel/trunk/src/support

2010-07-16 Thread Peter Kümmel
Enrico Forestieri wrote: > @@ -254,6 +254,8 @@ > // Check whether we have to simply throw away the output. > if (out_file_ != os::nulldev()) > process_->setStandardOutputFile(toqstr(out_file_)); > + // Don't output to terminal if stdout

Re: r34910 - lyx-devel/trunk/src/support

2010-07-16 Thread Enrico Forestieri
On Fri, Jul 16, 2010 at 10:38:09AM +0200, Kornel Benko wrote: > > I am always collecting the output in a file ( == redirecting) to be able to > analyse the output later. > Since I have many debug-keys enabled, the output is huge. > > Not happy with disabling redirected output :( I think you did

Re: r34910 - lyx-devel/trunk/src/support

2010-07-16 Thread Kornel Benko
Am Freitag 16 Juli 2010 schrieb Enrico Forestieri: > On Fri, Jul 16, 2010 at 07:55:32AM +0200, kuem...@lyx.org wrote: > > Author: kuemmel > > Date: Fri Jul 16 07:55:31 2010 > > New Revision: 34910 > > URL: http://www.lyx.org/trac/changeset/34910 > > > > Log: > > only guard terminal output. > > >

Re: r34910 - lyx-devel/trunk/src/support

2010-07-16 Thread Enrico Forestieri
On Fri, Jul 16, 2010 at 10:22:54AM +0200, Peter Kümmel wrote: > Enrico Forestieri wrote: > > >> -SystemcallPrivate::SystemcallPrivate(const std::string& of) : > >> +SystemcallPrivate::SystemcallPrivate(const std::string& of) : > >> proc_(new QProcess), outindex_(0

Re: r34910 - lyx-devel/trunk/src/support

2010-07-16 Thread Peter Kümmel
Enrico Forestieri wrote: >> -SystemcallPrivate::SystemcallPrivate(const std::string& of) : >> +SystemcallPrivate::SystemcallPrivate(const std::string& of) : >> proc_(new QProcess), outindex_(0), >> errindex_(0), >> -outfile(of), sh

Re: r34910 - lyx-devel/trunk/src/support

2010-07-16 Thread Enrico Forestieri
On Fri, Jul 16, 2010 at 07:55:32AM +0200, kuem...@lyx.org wrote: > Author: kuemmel > Date: Fri Jul 16 07:55:31 2010 > New Revision: 34910 > URL: http://www.lyx.org/trac/changeset/34910 > > Log: > only guard terminal output. > > Modified: >lyx-devel/trunk/src/support/Systemcall.cpp >lyx-de

Re: r34910 - lyx-devel/trunk/src/support

2010-07-16 Thread Enrico Forestieri
On Fri, Jul 16, 2010 at 09:12:04AM +0200, Abdelrazak Younes wrote: > On 07/16/2010 07:55 AM, kuem...@lyx.org wrote: > >Author: kuemmel > >Date: Fri Jul 16 07:55:31 2010 > >New Revision: 34910 > >URL: http://www.lyx.org/trac/changeset/34910 > > > >Log: > >only guard terminal output. > > >Modified:

Re: r34910 - lyx-devel/trunk/src/support

2010-07-16 Thread Abdelrazak Younes
On 07/16/2010 07:55 AM, kuem...@lyx.org wrote: Author: kuemmel Date: Fri Jul 16 07:55:31 2010 New Revision: 34910 URL: http://www.lyx.org/trac/changeset/34910 Log: only guard terminal output. Modified: lyx-devel/trunk/src/support/SystemcallPrivate.h ===