Re: Background LaTeX, Etc

2009-12-22 Thread Kornel Benko
Am Tuesday 22 December 2009 schrieb Peter Kümmel: > Kornel Benko wrote: > > /usr/src/lyx/lyx-devel/src/frontends/qt4/GuiView.cpp:278: error: > > ‘preview_watcher_’ was not > > Could you try it again? > > Peter > > Perfect. No compile-problems now. Kornel signature.asc Description:

Re: Background LaTeX, Etc

2009-12-22 Thread Peter Kümmel
Kornel Benko wrote: > /usr/src/lyx/lyx-devel/src/frontends/qt4/GuiView.cpp:278: error: > ‘preview_watcher_’ was not Could you try it again? Peter

Re: Background LaTeX, Etc

2009-12-22 Thread Pavel Sanda
Peter Kümmel wrote: > Pavel Sanda wrote: > > Peter Kümmel wrote: > >> But I've removed the dialog, because ATM we don't have to > >> show anything interesting. Latex is running in batch mode. > > > > i hoped we could duplicate the terminal output into this dock widget > > and i even intended to ad

Re: Background LaTeX, Etc

2009-12-22 Thread Peter Kümmel
Pavel Sanda wrote: > Peter Kümmel wrote: >> But I've removed the dialog, because ATM we don't have to >> show anything interesting. Latex is running in batch mode. > > i hoped we could duplicate the terminal output into this dock widget > and i even intended to add more capabilities for debug outp

Re: Background LaTeX, Etc

2009-12-22 Thread Kornel Benko
Am Tuesday 22 December 2009 schrieb Peter Kümmel: > Kornel Benko wrote: > > Am Monday 21 December 2009 schrieb BH: > >> On Mon, Dec 21, 2009 at 10:08 AM, Vincent van Ravesteijn - TNW > >> wrote: > >> Right now I can't compile: > >> > > Can you compile now ? > Not quite. (I should

Re: Background LaTeX, Etc

2009-12-22 Thread Peter Kümmel
Kornel Benko wrote: > Am Monday 21 December 2009 schrieb BH: >> On Mon, Dec 21, 2009 at 10:08 AM, Vincent van Ravesteijn - TNW >> wrote: >> Right now I can't compile: >> > Can you compile now ? Not quite. (I should have run make -k before.) >>> And now ? >> Perfect -- thanks!

Re: Background LaTeX, Etc

2009-12-21 Thread Kornel Benko
Am Monday 21 December 2009 schrieb BH: > On Mon, Dec 21, 2009 at 10:08 AM, Vincent van Ravesteijn - TNW > wrote: > > > Right now I can't compile: > > >>> > >>> Can you compile now ? > >> > >>Not quite. (I should have run make -k before.) > >> > > > > And now ? > > Perfect -- thanks! > >

Re: Background LaTeX, Etc

2009-12-21 Thread Pavel Sanda
Peter Kümmel wrote: > But I've removed the dialog, because ATM we don't have to > show anything interesting. Latex is running in batch mode. i hoped we could duplicate the terminal output into this dock widget and i even intended to add more capabilities for debug output fine tuning. could we ree

Re: Background LaTeX, Etc

2009-12-21 Thread Peter Kümmel
> > And then continuous update on each buffer change. > > > > I tried that on linux and it is bearable but crashy... This is on a 2 > year old laptop running Ubuntu 9.10. Isn't that bad on Linux with attached patch. We have to drop updates when the update is still busy. > > On Windows, forg

Re: Background LaTeX, Etc

2009-12-21 Thread Abdelrazak Younes
Peter Kümmel wrote: Am Montag, den 21.12.2009, 14:54 +0100 schrieb Abdelrazak Younes: Excellent. Now we can also move LFUN_BUFFER_EXPORT to thread. We just need a new argument to exportAndDestroy() AFAIR. I mean... if you want to do some more work on this ;-) And then continuous updat

Re: Background LaTeX, Etc

2009-12-21 Thread Abdelrazak Younes
Peter Kümmel wrote: Am Montag, den 21.12.2009, 14:54 +0100 schrieb Abdelrazak Younes: Peter Kümmel wrote: Abdelrazak Younes wrote: 2) Use the same signal/slot mechanism for Buffer::message(). Done, http://www.lyx.org/trac/changeset/32606/lyx-devel/trunk

Re: Background LaTeX, Etc

2009-12-21 Thread Peter Kümmel
Am Montag, den 21.12.2009, 14:54 +0100 schrieb Abdelrazak Younes: > Excellent. Now we can also move LFUN_BUFFER_EXPORT to thread. We just > need a new argument to exportAndDestroy() AFAIR. I mean... if you want > to do some more work on this ;-) And then continuous update on each buffer change.

Re: Background LaTeX, Etc

2009-12-21 Thread Peter Kümmel
Am Montag, den 21.12.2009, 14:54 +0100 schrieb Abdelrazak Younes: > Peter Kümmel wrote: > > Abdelrazak Younes wrote: > > > >> 2) Use the same signal/slot mechanism for Buffer::message(). > >> > > > > Done, > > http://www.lyx.org/trac/changeset/32606/lyx-devel/trunk > > > > Excellent. No

Re: Background LaTeX, Etc

2009-12-21 Thread BH
On Mon, Dec 21, 2009 at 10:08 AM, Vincent van Ravesteijn - TNW wrote: > Right now I can't compile: >>> >>> Can you compile now ? >> >>Not quite. (I should have run make -k before.) >> > > And now ? Perfect -- thanks! BH

RE: Background LaTeX, Etc

2009-12-21 Thread Vincent van Ravesteijn - TNW
>>>Right now I can't compile: >>> >> >> Can you compile now ? > >Not quite. (I should have run make -k before.) > And now ? Vincent

Re: Background LaTeX, Etc

2009-12-21 Thread BH
On Mon, Dec 21, 2009 at 9:55 AM, Vincent van Ravesteijn - TNW wrote: >>Right now I can't compile: >> > > Can you compile now ? Not quite. (I should have run make -k before.) Here's one more: GuiView.cpp: In member function ‘virtual bool lyx::frontend::GuiView::dispatch(const lyx::FuncRequest&)’

RE: Background LaTeX, Etc

2009-12-21 Thread Vincent van Ravesteijn - TNW
>Right now I can't compile: > Can you compile now ? Vincent

Re: Background LaTeX, Etc

2009-12-21 Thread BH
On Mon, Dec 21, 2009 at 6:56 AM, Peter Kümmel wrote: > Statusbar is now updated ehith the progress information. > But I've removed the dialog, because ATM we don't have to > show anything interesting. Latex is running in batch mode. Right now I can't compile: GuiProgress.cpp: In member function

Re: Background LaTeX, Etc

2009-12-21 Thread Abdelrazak Younes
Peter Kümmel wrote: Abdelrazak Younes wrote: 2) Use the same signal/slot mechanism for Buffer::message(). Done, http://www.lyx.org/trac/changeset/32606/lyx-devel/trunk Excellent. Now we can also move LFUN_BUFFER_EXPORT to thread. We just need a new argument to exportAndDestroy()

Re: Background LaTeX, Etc

2009-12-21 Thread Peter Kümmel
Abdelrazak Younes wrote: > 2) Use the same signal/slot mechanism for Buffer::message(). Done, http://www.lyx.org/trac/changeset/32606/lyx-devel/trunk Peter

Re: Background LaTeX, Etc

2009-12-21 Thread Peter Kümmel
Abdelrazak Younes wrote: > On 20/12/2009 17:34, Peter Kümmel wrote: >> Abdelrazak Younes wrote: >> >>> 1) Replace all call to Alert::warning() related to some Buffer action >>> with a new Buffer::warning() method that will use the GuiDelegate to >>> send the warning to the GUI even when we are

Re: Background LaTeX, Etc

2009-12-21 Thread Peter Kümmel
BH wrote: > On Sun, Dec 20, 2009 at 11:23 AM, Peter Kümmel wrote: >> Peter Kümmel wrote: >>> Pavel Sanda wrote: Peter Kümmel wrote: > If it's really needed I could move it to trunk, would not be very > complicated. yes it would be nice to have it. i even imagine line of checkbox

Re: Background LaTeX, Etc

2009-12-20 Thread BH
On Sun, Dec 20, 2009 at 11:23 AM, Peter Kümmel wrote: > Peter Kümmel wrote: >> Pavel Sanda wrote: >>> Peter Kümmel wrote: If it's really needed I could move it to trunk, would not be very complicated. >>> yes it would be nice to have it. i even imagine line of checkboxes on the >>> top

Re: Background LaTeX, Etc

2009-12-20 Thread Abdelrazak Younes
On 20/12/2009 17:34, Peter Kümmel wrote: Abdelrazak Younes wrote: 1) Replace all call to Alert::warning() related to some Buffer action with a new Buffer::warning() method that will use the GuiDelegate to send the warning to the GUI even when we are in another thread. This is because new wid

Re: Background LaTeX, Etc

2009-12-20 Thread Peter Kümmel
Abdelrazak Younes wrote: > 1) Replace all call to Alert::warning() related to some Buffer action > with a new Buffer::warning() method that will use the GuiDelegate to > send the warning to the GUI even when we are in another thread. This is > because new widget cannot be created from another th

Re: Background LaTeX, Etc

2009-12-20 Thread Peter Kümmel
Peter Kümmel wrote: > Pavel Sanda wrote: >> Peter Kümmel wrote: >>> If it's really needed I could move it to trunk, would not be very >>> complicated. >> yes it would be nice to have it. i even imagine line of checkboxes on the top >> each for one debug level to toggle - that would be quite useful

Re: Background LaTeX, Etc

2009-12-20 Thread Peter Kümmel
Pavel Sanda wrote: > Peter Kümmel wrote: >> If it's really needed I could move it to trunk, would not be very >> complicated. > > yes it would be nice to have it. i even imagine line of checkboxes on the top > each for one debug level to toggle - that would be quite useful for debugging > purpose

Re: Background LaTeX, Etc

2009-12-19 Thread Peter Kümmel
Abdelrazak Younes wrote: > On 19/12/2009 12:43, Peter Kümmel wrote: >>> I implemented that approach now in trunk. But by cloning the Buffer as >>> this was the cleanest approach and less intrusive approach. It works >>> well except for the lack of feedback on the background processing. >>> >>> Abde

Re: Background LaTeX, Etc

2009-12-19 Thread Peter Kümmel
Vincent van Ravesteijn wrote: >> When I change the function parameter for format from docstring to >> std:string I get linker errors with mavc, because of missing >> previewAndDestroy and exportAndDestroy, stange. >> Thereforethe from_utf8 function. >> >> Peter >> >> > I can just change the form

Re: Background LaTeX, Etc

2009-12-19 Thread Peter Kümmel
Abdelrazak Younes wrote: >> No not here. Would this patch be OK? >> > > Yes, my bad. Any ideas why static docstring exportAndDestroy(Buffer * buffer, std::string const & format) does not work? Qt without stl support? Peter

Re: Background LaTeX, Etc

2009-12-19 Thread Vincent van Ravesteijn
When I change the function parameter for format from docstring to std:string I get linker errors with mavc, because of missing previewAndDestroy and exportAndDestroy, stange. Thereforethe from_utf8 function. Peter I can just change the format type to string without any problems (msvc as we

Re: Background LaTeX, Etc

2009-12-19 Thread Abdelrazak Younes
On 19/12/2009 20:31, Peter Kümmel wrote: Vincent van Ravesteijn wrote: But preview is still broken under Windows. Peter I didn't fix it ? Vincent No not here. Would this patch be OK? Yes, my bad. Abdel.

Re: Background LaTeX, Etc

2009-12-19 Thread Peter Kümmel
Vincent van Ravesteijn wrote: >> But preview is still broken under Windows. >> >> Peter >> > > I didn't fix it ? > > Vincent > No not here. Would this patch be OK? Index: src/frontends/qt4/GuiView.cpp === --- src/frontends/qt4/

Re: Background LaTeX, Etc

2009-12-19 Thread Vincent van Ravesteijn
But preview is still broken under Windows. Peter I didn't fix it ? Vincent

Re: Background LaTeX, Etc

2009-12-19 Thread Pavel Sanda
Peter Kümmel wrote: > If it's really needed I could move it to trunk, would not be very complicated. yes it would be nice to have it. i even imagine line of checkboxes on the top each for one debug level to toggle - that would be quite useful for debugging purposes. also user reports could be more

Re: Background LaTeX, Etc

2009-12-19 Thread Peter Kümmel
Pavel Sanda wrote: > Abdelrazak Younes wrote: >> 2) Use the same signal/slot mechanism for Buffer::message(). > > btw in the old process branch there was implemnted new output window for > console > messages. how hard it would be to make it work the current trunk? it would be > good > to have th

Re: Background LaTeX, Etc

2009-12-19 Thread Enrico Forestieri
On Sat, Dec 19, 2009 at 02:53:05PM +0100, Pavel Sanda wrote: > Abdelrazak Younes wrote: > > On 19/12/2009 12:54, Abdelrazak Younes wrote: > >> Menu -> view or update (pdflatex or dvi) works fine here (as well as > >> Ctrl+D or T) > > > > Hum, it does not work anymore... latex complain about an em

Re: Background LaTeX, Etc

2009-12-19 Thread Vincent van Ravesteijn
Abdelrazak Younes schreef: On 19/12/2009 14:53, Pavel Sanda wrote: Abdelrazak Younes wrote: On 19/12/2009 12:54, Abdelrazak Younes wrote: Menu -> view or update (pdflatex or dvi) works fine here (as well as Ctrl+D or T) Hum, it does not work anymore... latex complain about an

Re: Background LaTeX, Etc

2009-12-19 Thread Abdelrazak Younes
On 19/12/2009 14:53, Pavel Sanda wrote: Abdelrazak Younes wrote: On 19/12/2009 12:54, Abdelrazak Younes wrote: Menu -> view or update (pdflatex or dvi) works fine here (as well as Ctrl+D or T) Hum, it does not work anymore... latex complain about an empty file... weird... It

Re: Background LaTeX, Etc

2009-12-19 Thread Pavel Sanda
Abdelrazak Younes wrote: > On 19/12/2009 12:54, Abdelrazak Younes wrote: >> Menu -> view or update (pdflatex or dvi) works fine here (as well as >> Ctrl+D or T) > > Hum, it does not work anymore... latex complain about an empty file... > weird... It was working just fine yesterday before I commit

Re: Background LaTeX, Etc

2009-12-19 Thread Abdelrazak Younes
On 19/12/2009 14:18, Abdelrazak Younes wrote: On 19/12/2009 12:54, Abdelrazak Younes wrote: Menu -> view or update (pdflatex or dvi) works fine here (as well as Ctrl+D or T) Hum, it does not work anymore... latex complain about an empty file... weird... It was working just fine yesterday befo

Re: Background LaTeX, Etc

2009-12-19 Thread Abdelrazak Younes
On 19/12/2009 12:54, Abdelrazak Younes wrote: Menu -> view or update (pdflatex or dvi) works fine here (as well as Ctrl+D or T) Hum, it does not work anymore... latex complain about an empty file... weird... It was working just fine yesterday before I commit. Abdel.

Re: Background LaTeX, Etc

2009-12-19 Thread Pavel Sanda
Abdelrazak Younes wrote: > 2) Use the same signal/slot mechanism for Buffer::message(). btw in the old process branch there was implemnted new output window for console messages. how hard it would be to make it work the current trunk? it would be good to have this for latex output in background a

Re: Background LaTeX, Etc

2009-12-19 Thread Abdelrazak Younes
On 19/12/2009 12:43, Peter Kümmel wrote: I implemented that approach now in trunk. But by cloning the Buffer as this was the cleanest approach and less intrusive approach. It works well except for the lack of feedback on the background processing. Abdel. Great, if it works we could remove

Re: Background LaTeX, Etc

2009-12-19 Thread Peter Kümmel
> I implemented that approach now in trunk. But by cloning the Buffer as > this was the cleanest approach and less intrusive approach. It works > well except for the lack of feedback on the background processing. > > Abdel. Great, if it works we could remove QCoreApplication::processEvents(QEve

Re: Background LaTeX, Etc

2009-12-19 Thread Abdelrazak Younes
On 10/12/2009 15:43, Abdelrazak Younes wrote: Pavel Sanda wrote: Jean-Marc Lasgouttes wrote: the real work on our buffer structure can be fast enough IMO. it is not? pavel It is, and that is not the problem. The LateX export can happen in the main thread. The problem is elsewhere in that we

Re: Background LaTeX, Etc

2009-12-11 Thread Ben M.
On Fri, Dec 11, 2009 at 10:56 AM, rgheck wrote: > On 12/11/2009 10:17 AM, Abdelrazak Younes wrote: >> >> As far as I understand LaTeX people want to see the context around the >> current paragraph so the single paragraph mode is not good for them. Maybe >> we need at least to show one or two paragr

Re: Background LaTeX, Etc

2009-12-11 Thread Andre Poenitz
On Fri, Dec 11, 2009 at 03:57:59PM +0100, Jean-Marc Lasgouttes wrote: > Abdelrazak Younes writes: > > Or maybe our handmade syntax highlighter... Disabling it will for sure > > make a difference. Also we ask the text edit to reload a big file at > > each keystroke while we merely paint the current

Re: Background LaTeX, Etc

2009-12-11 Thread Andre Poenitz
On Fri, Dec 11, 2009 at 03:24:53PM +0100, Jean-Marc Lasgouttes wrote: > Abdelrazak Younes writes: > >> One instance where .tex generation does cause a slowdown is with "View > >> Source" open. While editing a large document with "Complete Source" > >> checked, LyX can't keep up with my typing sp

Re: Background LaTeX, Etc

2009-12-11 Thread Abdelrazak Younes
Jean-Marc Lasgouttes wrote: Abdelrazak Younes writes: I just tried without it and it still is slow. So the real bottleneck seems to be QTextDocument indeed. But as I said, we do a full reload at each keystroke... What about QPlainTextEdit instead (qt >= 4.4)? I just tried, the pe

Re: Background LaTeX, Etc

2009-12-11 Thread Abdelrazak Younes
Jean-Marc Lasgouttes wrote: Abdelrazak Younes writes: I just tried without it and it still is slow. So the real bottleneck seems to be QTextDocument indeed. But as I said, we do a full reload at each keystroke... What about QPlainTextEdit instead (qt >= 4.4)? Good idea. Apparentl

Re: Background LaTeX, Etc

2009-12-11 Thread Jean-Marc Lasgouttes
Abdelrazak Younes writes: > I just tried without it and it still is slow. So the real bottleneck > seems to be QTextDocument indeed. But as I said, we do a full reload > at each keystroke... What about QPlainTextEdit instead (qt >= 4.4)? JMarc

Re: Background LaTeX, Etc

2009-12-11 Thread rgheck
On 12/11/2009 10:17 AM, Abdelrazak Younes wrote: Pavel Sanda wrote: Abdelrazak Younes wrote: a difference. Also we ask the text edit to reload a big file at each keystroke while we merely paint the current line; not a fair comparison :-) i think that it doesn't make sense to have checked ful

Re: Background LaTeX, Etc

2009-12-11 Thread Abdelrazak Younes
Pavel Sanda wrote: Abdelrazak Younes wrote: a difference. Also we ask the text edit to reload a big file at each keystroke while we merely paint the current line; not a fair comparison :-) i think that it doesn't make sense to have checked full source listing unless you want to look on

Re: Background LaTeX, Etc

2009-12-11 Thread Pavel Sanda
Abdelrazak Younes wrote: > a difference. Also we ask the text edit to reload a big file at each > keystroke while we merely paint the current line; not a fair comparison :-) i think that it doesn't make sense to have checked full source listing unless you want to look on something in preamble. ha

Re: Background LaTeX, Etc

2009-12-11 Thread Abdelrazak Younes
Jean-Marc Lasgouttes wrote: Abdelrazak Younes writes: Or maybe our handmade syntax highlighter... Disabling it will for sure make a difference. Also we ask the text edit to reload a big file at each keystroke while we merely paint the current line; not a fair comparison :-) I have to

Re: Background LaTeX, Etc

2009-12-11 Thread Abdelrazak Younes
Vincent van Ravesteijn - TNW wrote: This is indeed a good argument in favour of cloning the Buffer. Nope. I just profiled with sysprof what happens when typing in UserGuide with LaTeX source shown (with full source). Conclusions are * it is painfully slow :) * 69% of time is spent

RE: Background LaTeX, Etc

2009-12-11 Thread Vincent van Ravesteijn - TNW
>> This is indeed a good argument in favour of cloning the Buffer. > >Nope. I just profiled with sysprof what happens when >typing in UserGuide with LaTeX source shown (with full >source). Conclusions are > > * it is painfully slow :) > > * 69% of time is spent in libQtGui itself > > * 4.3% of ti

Re: Background LaTeX, Etc

2009-12-11 Thread Jean-Marc Lasgouttes
Abdelrazak Younes writes: > Or maybe our handmade syntax highlighter... Disabling it will for sure > make a difference. Also we ask the text edit to reload a big file at > each keystroke while we merely paint the current line; not a fair > comparison :-) I have to admit also that this is qt 4.2.

Re: Background LaTeX, Etc

2009-12-11 Thread Abdelrazak Younes
Jean-Marc Lasgouttes wrote: Abdelrazak Younes writes: One instance where .tex generation does cause a slowdown is with "View Source" open. While editing a large document with "Complete Source" checked, LyX can't keep up with my typing speed. This issue is insidious because the user may no

Re: Background LaTeX, Etc

2009-12-11 Thread Jean-Marc Lasgouttes
Abdelrazak Younes writes: >> One instance where .tex generation does cause a slowdown is with "View >> Source" open. While editing a large document with "Complete Source" >> checked, LyX can't keep up with my typing speed. This issue is >> insidious because the user may not realize that the "Vi

Re: Background LaTeX, Etc

2009-12-11 Thread Abdelrazak Younes
Ben M. wrote: On Thu, Dec 10, 2009 at 9:45 AM, Jean-Marc Lasgouttes wrote: Pavel Sanda writes: Jean-Marc Lasgouttes wrote: the real work on our buffer structure can be fast enough IMO. it is not? pavel I thought people implied that it was not, but I may be mist

Re: Background LaTeX, Etc

2009-12-10 Thread Guenter Milde
On 2009-12-10, Abdelrazak Younes wrote: > Abdelrazak Younes wrote: >> Pavel Sanda wrote: >>> Jean-Marc Lasgouttes wrote: the real work on our buffer structure can be fast enough IMO. >>> it is not? pavel >> It is, and that is not the problem. The LateX export can happen in >> the ma

Re: Background LaTeX, Etc

2009-12-10 Thread Ben M.
On Thu, Dec 10, 2009 at 9:45 AM, Jean-Marc Lasgouttes wrote: > Pavel Sanda writes: >> Jean-Marc Lasgouttes wrote: >>> the real work >>> on our buffer structure can be fast enough IMO. >> >> it is not? pavel > > I thought people implied that it was not, but I may be mistaken. > > JMarc Usually .tex

Re: Background LaTeX, Etc

2009-12-10 Thread Abdelrazak Younes
Abdelrazak Younes wrote: Pavel Sanda wrote: Jean-Marc Lasgouttes wrote: the real work on our buffer structure can be fast enough IMO. it is not? pavel It is, and that is not the problem. The LateX export can happen in the main thread. The problem is elsewhere in that we need finer

Re: Background LaTeX, Etc

2009-12-10 Thread Pavel Sanda
Jean-Marc Lasgouttes wrote: > >> the real work > >> on our buffer structure can be fast enough IMO. > > > > it is not? pavel > > I thought people implied that it was not, but I may be mistaken. no i dont think this is the root of the problems reported. pavel

Re: Background LaTeX, Etc

2009-12-10 Thread Jean-Marc Lasgouttes
Pavel Sanda writes: > Jean-Marc Lasgouttes wrote: >> the real work >> on our buffer structure can be fast enough IMO. > > it is not? pavel I thought people implied that it was not, but I may be mistaken. JMarc

Re: Background LaTeX, Etc

2009-12-10 Thread Abdelrazak Younes
Pavel Sanda wrote: Jean-Marc Lasgouttes wrote: the real work on our buffer structure can be fast enough IMO. it is not? pavel It is, and that is not the problem. The LateX export can happen in the main thread. The problem is elsewhere in that we need finer control of the 5 or 6 p

Re: Background LaTeX, Etc

2009-12-10 Thread Pavel Sanda
Jean-Marc Lasgouttes wrote: > the real work > on our buffer structure can be fast enough IMO. it is not? pavel

Re: Background LaTeX, Etc

2009-12-10 Thread Jean-Marc Lasgouttes
rgheck writes: > In thinking about this it occurred to me: If we're generating LaTeX in > a separate thread, what if the Buffer changes in the meantime? This > suggests to me that the Buffer has to be locked, which means that > Abdel's "clone the Buffer" strategy is the only one that really works

Re: Background LaTeX, Etc

2009-12-10 Thread Pavel Sanda
Richard Heck wrote: >>> In thinking about this it occurred to me: If we're generating LaTeX in a >>> separate thread, what if the Buffer changes in the meantime? >>> >> Nothing, once the temporary *.tex file is written. >> Error-insets on the wrong place, maybe? (However, they tend to be >> s

Re: Background LaTeX, Etc

2009-12-10 Thread rgheck
On 12/10/2009 08:22 AM, Guenter Milde wrote: On 2009-12-10, rgheck wrote: In thinking about this it occurred to me: If we're generating LaTeX in a separate thread, what if the Buffer changes in the meantime? Nothing, once the temporary *.tex file is written. Error-insets on the wrong

Re: Background LaTeX, Etc

2009-12-10 Thread Guenter Milde
On 2009-12-10, rgheck wrote: > In thinking about this it occurred to me: If we're generating LaTeX in a > separate thread, what if the Buffer changes in the meantime? Nothing, once the temporary *.tex file is written. Error-insets on the wrong place, maybe? (However, they tend to be somewhat of

Background LaTeX, Etc

2009-12-10 Thread rgheck
In thinking about this it occurred to me: If we're generating LaTeX in a separate thread, what if the Buffer changes in the meantime? This suggests to me that the Buffer has to be locked, which means that Abdel's "clone the Buffer" strategy is the only one that really works. rh