Re: Inset::display() ?

2003-09-03 Thread Martin Vermeer
On Wed, Sep 03, 2003 at 08:55:55PM +, Angus Leeming spake thusly: > On Wednesday 03 September 2003 7:46 pm, Martin Vermeer wrote: > > Next attempt (number VI?) > > Looks good doesn't it. > Angus Looks very good doesn't it. And works for me. Does anybody else see (practical or conceptual)

Re: lyx-gtk crash

2003-09-03 Thread Alfredo Braunstein
Rob Lahaye wrote: No idea, but I can quote a recent post from Juergen for you: > > > - I get a crash as soon as I try to open one of the gtk dialogs (about, > > > label): > > > (lyx:13672): libglade-WARNING **: could not find glade file '' > > > the file dialog works, though. > > > > You must in

lyx-gtk crash

2003-09-03 Thread Rob Lahaye
Hi, LyX/gtk compiles fine here on my FreeBSD box. It looks really good! But it's rather slow. When I start lyx-gtk and then select Help->About LyX... I get a crash: (lyx-gtk:518): libglade-WARNING **: could not find glade file '' Abort (core dumped) The real problem comes when I

Re: [BUG] cursor out of sync with position in view

2003-09-03 Thread Garst R. Reese
Lars Gullik Bjønnes wrote: > > Note that this patch was not intended to fix find, but to fix drawing > (update) issues when moving the cursor off screen. > The drawing update seems to be fixed. The find problem is no worse. Find is just broken. Sometimes it works if I am near the target, sometim

Re: [BUG] cursor out of sync with position in view

2003-09-03 Thread Garst R. Reese
Lars Gullik Bjønnes wrote: > > Note that this patch was not intended to fix find, but to fix drawing > (update) issues when moving the cursor off screen. > OK, but it seemed to make find worse. I'll test some more. Garst

External insets: proof of concept

2003-09-03 Thread Angus Leeming
This change to the external_templates definition works perfectly once the attached patch, elegant.diff, is applied to current cvs. (It stops the latex snippet being added multiple times to the preamble.) Caveat: don't try and include a file containing underscores in its name... I'll apply elega

Re: External Inset and LaTeX questions

2003-09-03 Thread Angus Leeming
Johnathan Burchill wrote: > It seems LaTeX has a problem with doesn't like filenames with "_" in them > when you pass the filename through the newcommand. Latex wants to put $ $ > around the _ because that is the "subscript" command in math mode. > So you could get around this with code like: [det

Re: [BUG] cursor out of sync with position in view

2003-09-03 Thread Lars Gullik Bjønnes
"Garst R. Reese" <[EMAIL PROTECTED]> writes: | "Garst R. Reese" wrote: >> >> Lars Gullik Bjønnes wrote: >> > I have a fix for the cursor movement stuff and missing updates. >> > >> > Please try it out if you have the time: >> > >> Compiling. >> I'll let know. >> Garst | Didn't work. I would find

Re: [BUG] cursor out of sync with position in view

2003-09-03 Thread Garst R. Reese
"Garst R. Reese" wrote: > > Lars Gullik Bjønnes wrote: > > I have a fix for the cursor movement stuff and missing updates. > > > > Please try it out if you have the time: > > > Compiling. > I'll let know. > Garst Didn't work. I would find the word if I was very close, but otherwise did nothing. Re

Re: External Inset and LaTeX questions

2003-09-03 Thread Johnathan Burchill
On September 3, 2003 03:59 pm, Angus Leeming wrote: > On Wednesday 03 September 2003 8:23 pm, Johnathan Burchill wrote: > > \IfFileExists{file_name}{true}{false} > > executes "true" if the file exists, otherwise it executes false. > > More specific to your task is > > \InputIfFileExists{file_name}{

Re: [BUG] cursor out of sync with position in view

2003-09-03 Thread Garst R. Reese
Lars Gullik Bjønnes wrote: > I have a fix for the cursor movement stuff and missing updates. > > Please try it out if you have the time: > Compiling. I'll let know. Garst

Re: [BUG] cursor out of sync with position in view

2003-09-03 Thread Lars Gullik Bjønnes
"Garst R. Reese" <[EMAIL PROTECTED]> writes: | Lars Gullik Bjønnes wrote: >> >> When scrolling down with PgDown, the cursor moves along, but if you >> stop and press then the page switches to a completely >> different place (probably one page up or down from what was viewed). >> >> -- >>

Re: External Inset and LaTeX questions

2003-09-03 Thread Angus Leeming
On Wednesday 03 September 2003 8:23 pm, Johnathan Burchill wrote: > \IfFileExists{file_name}{true}{false} > executes "true" if the file exists, otherwise it executes false. > More specific to your task is > \InputIfFileExists{file_name}{true}{false} > which inputs the file if it exists, then execut

Re: [BUG] cursor out of sync with position in view

2003-09-03 Thread Garst R. Reese
Lars Gullik Bjønnes wrote: > > When scrolling down with PgDown, the cursor moves along, but if you > stop and press then the page switches to a completely > different place (probably one page up or down from what was viewed). > > -- > Lgb There's also a position problem with find. The f

Re: External Inset and LaTeX questions

2003-09-03 Thread Johnathan Burchill
On September 3, 2003 02:23 pm, Johnathan Burchill wrote: > On September 3, 2003 03:00 pm, Angus Leeming wrote: > > Martin Vermeer wrote: > > > On Wed, Sep 03, 2003 at 07:58:32PM +, Angus Leeming spake thusly: > > >> It seems to me that there are two possible solution strategies. > > >> 1. Outpu

Re: [patch] All ps figures the same

2003-09-03 Thread Garst R. Reese
"Garst R. Reese" wrote: > > Angus Leeming wrote: > > > Ok, Garst, I committed a refined version. Hopefully, the code is clearer and > > more robust. Moreover, your temp dir should end up with nicely mangled file > > names. Eg: > > > Neat! I'll test. And it still works :>)

Re: External Inset and LaTeX questions

2003-09-03 Thread Johnathan Burchill
On September 3, 2003 03:00 pm, Angus Leeming wrote: > Martin Vermeer wrote: > > On Wed, Sep 03, 2003 at 07:58:32PM +, Angus Leeming spake thusly: > >> It seems to me that there are two possible solution strategies. > >> 1. Output some clever latex in the 'Product' line. Something along > >> the

Re: External Inset and LaTeX questions

2003-09-03 Thread Angus Leeming
Martin Vermeer wrote: > On Wed, Sep 03, 2003 at 07:58:32PM +, Angus Leeming spake thusly: > >> It seems to me that there are two possible solution strategies. >> 1. Output some clever latex in the 'Product' line. Something along the >> lines of (psuedo code) >> if (exists($$Basename.

Re: Inset::display() ?

2003-09-03 Thread Angus Leeming
On Wednesday 03 September 2003 7:46 pm, Martin Vermeer wrote: > Next attempt (number VI?) Looks good doesn't it. Angus

Re: Inset::display() ?

2003-09-03 Thread Martin Vermeer
Next attempt (number VI?) On Wed, Sep 03, 2003 at 12:52:00PM +, Angus Leeming spake thusly: ... > Looks good. Some suggestions: ... > Index: insets/insetcommand.h > I think that these should be made part of ButtonRenderer (and called > box())... > +/// > +Box buttonBox()

Re: External Inset and LaTeX questions

2003-09-03 Thread Martin Vermeer
On Wed, Sep 03, 2003 at 07:58:32PM +, Angus Leeming spake thusly: > It seems to me that there are two possible solution strategies. > 1. Output some clever latex in the 'Product' line. Something along the lines > of (psuedo code) > if (exists($$Basename.pstex_t)) > \\

External Inset and LaTeX questions

2003-09-03 Thread Angus Leeming
The current version of the external inset code is not very friendly if the external file does not exist. > From: Kornelia Pietsch > Date: 2003-07-28 15:04:16 > If the xfig file does not exist (cannot be found), then the > generation of the dvi/pdf file fails. Would be nice to do > as the graphi

Re: [patch] All ps figures the same

2003-09-03 Thread Garst R. Reese
Angus Leeming wrote: > Ok, Garst, I committed a refined version. Hopefully, the code is clearer and > more robust. Moreover, your temp dir should end up with nicely mangled file > names. Eg: > Neat! I'll test. Thanks, Garst

Re: [patch] All ps figures the same

2003-09-03 Thread Angus Leeming
Garst R. Reese wrote: > Lars Gullik Bjønnes wrote: >> >> Angus Leeming <[EMAIL PROTECTED]> writes: >> >> | The attach patch fixes the bug reported this morning by Garst "All ps >> | figures the same" (and by others over the last month). It also fixes >> | the bug reported by Konni in Chemnitz th

Re: updated sl.po for LyX 1.3.2

2003-09-03 Thread Jean-Marc Lasgouttes
> "Juergen" == Juergen Spitzmueller <[EMAIL PROTECTED]> writes: Juergen> Juergen Spitzmueller wrote: >> > Please someone, I'm elbows deep in an oprofile bug right now >> >> I'll fix it. Can I just commit it to both 1.3 and 1.4? Juergen> I just did it. If anyone objects, I'll revert ;-) That

Re: updated sl.po for LyX 1.3.2

2003-09-03 Thread Juergen Spitzmueller
Juergen Spitzmueller wrote: > > Please someone, I'm elbows deep in an oprofile bug right now > > I'll fix it. Can I just commit it to both 1.3 and 1.4? I just did it. If anyone objects, I'll revert ;-) Juergen.

Re: [patch] All ps figures the same

2003-09-03 Thread Garst R. Reese
Lars Gullik Bjønnes wrote: > > Angus Leeming <[EMAIL PROTECTED]> writes: > > | The attach patch fixes the bug reported this morning by Garst "All ps > | figures the same" (and by others over the last month). It also fixes the > | bug reported by Konni in Chemnitz that repeated viewings of the dvi

Re: updated sl.po for LyX 1.3.2

2003-09-03 Thread Juergen Spitzmueller
John Levon wrote: > > It is indeed in QTabularDialogBase.ui, in both 1.3.3cvs and 1.4.0cvs. > > John? Juergen? > > Please someone, I'm elbows deep in an oprofile bug right now I'll fix it. Can I just commit it to both 1.3 and 1.4? Juergen.

Re: updated sl.po for LyX 1.3.2

2003-09-03 Thread John Levon
On Wed, Sep 03, 2003 at 12:50:17PM +0200, Jean-Marc Lasgouttes wrote: > Roman>Fixed with of the column > > Roman>Fixed width of the column > > It is indeed in QTabularDialogBase.ui, in both 1.3.3cvs and 1.4.0cvs. > John? Juergen? Please someone, I'm elbows deep in an oprofile bu

Re: Visible cursor placement

2003-09-03 Thread John Levon
On Wed, Sep 03, 2003 at 09:14:31AM +0200, Alfredo Braunstein wrote: > PS: what is the policy we want? We want the natural one: if the user clicks on a particular row, the cursor should end up on that row. If the user presses home or end, the cursor should stay on the row. If the user presses righ

Re: [patch] All ps figures the same

2003-09-03 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | The attach patch fixes the bug reported this morning by Garst "All ps | figures the same" (and by others over the last month). It also fixes the | bug reported by Konni in Chemnitz that repeated viewings of the dvi file | trigger repeated, and unneces

[patch] All ps figures the same

2003-09-03 Thread Angus Leeming
The attach patch fixes the bug reported this morning by Garst "All ps figures the same" (and by others over the last month). It also fixes the bug reported by Konni in Chemnitz that repeated viewings of the dvi file trigger repeated, and unnecessary, conversions. Ok to apply? Angus ps Have I

Re: Inset::display() ?

2003-09-03 Thread Angus Leeming
Martin Vermeer wrote: > > ...and here is the patch. > > - Martin > Looks good. Some suggestions: Index: LyXAction.C Be nice to me and call it LFUN_INSET_DIALOG_SHOW ;-) { LFUN_INSET_DIALOG_UPDATE, "", Noop }, +{ LFUN_INSET_SHOW_DIALOG, "inset-show-dialog", Noo

Re: Inset::display() ?

2003-09-03 Thread Martin Vermeer
...and here is the patch. - Martin -- Martin Vermeer [EMAIL PROTECTED] Helsinki University of Technology Dept. of Surveying, Inst. of Geodesy P.O. Box 1200, FIN-02015 HUT, Finland :wq Index: LyXAction.C === RCS file: /usr/local/l

Re: updated sl.po for LyX 1.3.2

2003-09-03 Thread Jean-Marc Lasgouttes
> "Roman" == Roman Maurer <[EMAIL PROTECTED]> writes: Roman> Hello, Jean-Marc! I'm attaching the updated Slovenian Roman> translation for LyX 1.3.2. Not all the messages are translated, Roman> but the first ones that user encounters are. :-) Thanks. Roman> Also the file is now in UTF-8 rath

Re: Inset::display() ?

2003-09-03 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> Unfortunately, it appears that the code in toggleInset no Angus> longer moves the cursor. Hence the request for your expertise Angus> ;-) toggleInset does not enter the inset. However, if the cursor is in front of the inset and thi

Re: Inset::display() ?

2003-09-03 Thread Jean-Marc Lasgouttes
> "Martin" == Martin Vermeer <[EMAIL PROTECTED]> writes: Martin> On Wed, Sep 03, 2003 at 11:23:38AM +0200, Jean-Marc Lasgouttes Martin> spake thusly: >> > "Martin" == Martin Vermeer <[EMAIL PROTECTED]> writes: >> >> >> Sigh. Jean Marc's code. Ask him how it is supposed to work. (He >> is

Re: Inset::display() ?

2003-09-03 Thread Angus Leeming
On Wednesday 03 September 2003 10:13 am, Martin Vermeer wrote: > Here is the patch, version 3 (or was that 4?). Very small patch... A

Re: Inset::display() ?

2003-09-03 Thread Martin Vermeer
On Wed, Sep 03, 2003 at 11:23:38AM +0200, Jean-Marc Lasgouttes spake thusly: > >> Sigh. Jean Marc's code. Ask him how it is supposed to work. (He is > >> now around again.) As I said, I never tried to code up > >> LFUN_DIALOG_SHOW_NEXT_INSET. > >> > >> Angus > > Martin> Jean-Marc!?! > > Hello

Re: Inset::display() ?

2003-09-03 Thread Angus Leeming
On Wednesday 03 September 2003 9:23 am, Jean-Marc Lasgouttes wrote: > > "Martin" == Martin Vermeer <[EMAIL PROTECTED]> writes: > >> > >> Sigh. Jean Marc's code. Ask him how it is supposed to work. (He is > >> now around again.) As I said, I never tried to code up > >> LFUN_DIALOG_SHOW_NEXT_INSE

valgrind report for setCursor

2003-09-03 Thread Michael Schmitt
Hi, I cannot reproduce this problem (I was moving the cursor innocently through nested descriptions in read-only file TOC.lyx) but nevertheless you might consider it interesting. ==18947== Conditional jump or move depends on uninitialised value(s) ==18947==at 0x816C72E: LyXText::setCursor(L

Re: Inset::display() ?

2003-09-03 Thread Martin Vermeer
On Wed, Sep 03, 2003 at 11:23:38AM +0200, Jean-Marc Lasgouttes spake thusly: > > "Martin" == Martin Vermeer <[EMAIL PROTECTED]> writes: > > >> Sigh. Jean Marc's code. Ask him how it is supposed to work. (He is > >> now around again.) As I said, I never tried to code up > >> LFUN_DIALOG_SHOW_

Re: [Devel] [patch] more 'who we are' nonsense

2003-09-03 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> I thought I'd be able to slip that by you, what with your Angus> holiday an' all ;-) Before I came to my lyx-devel folder, I had to parse my 2000 personal messages to find out where the real ham was. The result was some kind of bra

Re: Inset::display() ?

2003-09-03 Thread Jean-Marc Lasgouttes
> "Martin" == Martin Vermeer <[EMAIL PROTECTED]> writes: >> Sigh. Jean Marc's code. Ask him how it is supposed to work. (He is >> now around again.) As I said, I never tried to code up >> LFUN_DIALOG_SHOW_NEXT_INSET. >> >> Angus Martin> Jean-Marc!?! Hello! Could you summarize the question

Re: Why lyx2lyx? why?

2003-09-03 Thread José Abílio Oliveira Matos
On Tue, Sep 02, 2003 at 12:06:46AM +0200, Lars Gullik Bjønnes wrote: > > Why is lyx2lyx not creating new files, but returning the whole file as > the result of the command? Not exactly nice use of memory... and quite > surprising to me... (just try my zlib patch and see how...) Thas was not my

Re: Visible cursor placement

2003-09-03 Thread Alfredo Braunstein
John Levon wrote: > On Tue, Sep 02, 2003 at 08:36:30PM +0200, Alfredo Braunstein wrote: > >> > what sort of bool and where from, under which circumstances ? >> >> bool = "if there is a choice, put me on the next row" > > Hmm, we could pass in a row iterator to say which row the cursor must be >