Re: Assert trigged with last version.

2003-10-21 Thread Jose' Matos
On Wednesday 22 October 2003 07:23, Martin Vermeer wrote: > On Wed, Oct 22, 2003 at 01:03:34AM +0300, Martin Vermeer spake thusly: > > If nobody shouts, I'l check this in tomorrow morning. So LyX CVS works > > again... > > > > - Martin > > It's in now, with Lars's comment formatting point taken. Pl

Re: Configuring the makefile

2003-10-21 Thread Andre Poenitz
On Tue, Oct 21, 2003 at 07:36:57PM +0200, Kostantino wrote: > Hi. > In the INSTALL file I read: > > --enable-optimization=VALUE enables you to set optimization > to a higher level as the default (-O), for example > --enable-optimization=-O3. > > So I give the following configure command: > > .

Re: Assert trigged with last version.

2003-10-21 Thread Martin Vermeer
On Wed, Oct 22, 2003 at 01:03:34AM +0300, Martin Vermeer spake thusly: > If nobody shouts, I'l check this in tomorrow morning. So LyX CVS works > again... > > - Martin It's in now, with Lars's comment formatting point taken. Please shout if you *now* get '...is a bit silly' warnings. The assert

Re: Assert trigged with last version.

2003-10-21 Thread Martin Vermeer
On Tue, Oct 21, 2003 at 11:45:12PM +, Angus Leeming spake thusly: > > Martin Vermeer wrote: > > > +bool display() const { return false; } > > + > > Why do you need these? The function defaults to false (inset.h). ... but these inherit from InsetCommand, which sets it to true (correc

latest lyx crashes on Help->Introduction

2003-10-21 Thread Kayvan A. Sylvan
text not available! no text in cache! Assertion triggered in InsetOld* Paragraph::getInset(int) by failing check "pos < size()" in file ../../lyx/src/paragraph.C:296 Aborted (core dumped) -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laur

Re: Assert trigged with last version.

2003-10-21 Thread Lars Gullik Bjønnes
Martin Vermeer <[EMAIL PROTECTED]> writes: | Index: text.C | === | RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/text.C,v | retrieving revision 1.467 | diff -u -p -r1.467 text.C | --- text.C21 Oct 2003 13:04:13 - 1.467 |

Re: Assert trigged with last version.

2003-10-21 Thread Angus Leeming
Martin Vermeer wrote: > +bool display() const { return false; } > + Why do you need these? The function defaults to false (inset.h). -- Angus

Re: Grmpf

2003-10-21 Thread Martin Vermeer
On Tue, Oct 21, 2003 at 07:17:22PM +0200, Andre Poenitz spake thusly: > > - if (point == last || chunkwidth >= width - left) > - point = (pos < i) ? i - 1 : i; > - break; > + if (point == last || chunkwidth >

Re: Configuring the makefile

2003-10-21 Thread Garst R. Reese
John Levon wrote: > > On Tue, Oct 21, 2003 at 07:36:57PM +0200, Kostantino wrote: > > > but after the make command I read: > > > > g++: unrecognised option '-03' > > You typed zero-three "-03" instead of oh-three "-O3". See ? > Oh! Good spotting John. I can't believe how stupid IBM was

Re: Assert trigged with last version.

2003-10-21 Thread Martin Vermeer
On Tue, Oct 21, 2003 at 04:54:07PM +0100, Jose' Matos spake thusly: > On Tuesday 21 October 2003 17:03, Martin Vermeer wrote: > > > Assertion triggered in InsetOld* Paragraph::getInset(int) by failing > > > check "pos < size()" in file paragraph.C:296 > > > > Just to make sure: does this include

Re: Configuring the makefile

2003-10-21 Thread John Levon
On Tue, Oct 21, 2003 at 07:36:57PM +0200, Kostantino wrote: > but after the make command I read: > > g++: unrecognised option '-03' You typed zero-three "-03" instead of oh-three "-O3". See ? regards john -- Khendon's Law: If the same point is made twice by the same person, the thread

Re: Configuring the makefile

2003-10-21 Thread Garst R. Reese
Kostantino wrote: > > Hi. > In the INSTALL file I read: > > --enable-optimization=VALUE enables you to set optimization >to a higher level as the default (-O), for example > --enable-optimization=-O3. > > So I give the following configure command: > > ./configure --with-frontend=qt --enable

Re: Warning with inset box.

2003-10-21 Thread Jose' Matos
On Tuesday 21 October 2003 18:17, Jose' Matos wrote: > Hi Martin, > it is me again. ;-) > Because of it I get: > $src/lyx [several warnings] > InsetCollapsable::Read: Missing collapsed! This one is weird since colapsed is there. So something fishy is going on. :-) -- José Abílio

Configuring the makefile

2003-10-21 Thread Kostantino
Hi. In the INSTALL file I read: --enable-optimization=VALUE enables you to set optimization to a higher level as the default (-O), for example --enable-optimization=-O3. So I give the following configure command: ./configure --with-frontend=qt --enable-optimization=-O3 but after the make comman

Re: Warning with inset box.

2003-10-21 Thread Angus Leeming
Jose' Matos wrote: > Also with lyxl2lyx it does not need to be that way, as I can add > the different previous value if the defaults changes in the > new version. This would make easier to read LyX files. Do this. We do it elsewhere. (graphics, tabular, ...) If it's documented, it's safe. -

Re: Warning with inset box.

2003-10-21 Thread Jose' Matos
On Tuesday 21 October 2003 18:25, Andre Poenitz wrote: > On Tue, Oct 21, 2003 at 06:17:24PM +0100, Jose' Matos wrote: > > Do you, and others, think that I should set the default values of > > the missing parameter? > > This adds a bit bloat to the .lyx but is on sthe safe side, isn't it?

Re: Warning with inset box.

2003-10-21 Thread Andre Poenitz
On Tue, Oct 21, 2003 at 06:17:24PM +0100, Jose' Matos wrote: > Do you, and others, think that I should set the default values of > the missing parameter? This adds a bit bloat to the .lyx but is on sthe safe side, isn't it? I'd rather have lyx2lyx on the safe side. The bloat should va

Warning with inset box.

2003-10-21 Thread Jose' Matos
Hi Martin, it is me again. ;-) I added the support for minipage convertions to lyx2lyx, but I did not considered the default values of those values not defined in the 1.3 version. Because of it I get: $src/lyx InsetBox::Read: Missing 'hor_pos'-tag!c InsetBox::Read: Missin

Grmpf

2003-10-21 Thread Andre Poenitz
- if (point == last || chunkwidth >= width - left) - point = (pos < i) ? i - 1 : i; - break; + if (point == last || chunkwidth >= width - left) { + if (pos < i) { +

Re: dvi search

2003-10-21 Thread Andre Poenitz
On Tue, Oct 21, 2003 at 01:59:03PM -0200, Joao Luis Meloni Assirati wrote: > On Tue, 21 Oct 2003, Andre Poenitz wrote: > > > > Why don't you let xdvi do it's job instead > > > of trying manually? > > > > Because it does not work, i.e. the cursor does not move. No error > > message whatsoever. As x

Re: dvi search

2003-10-21 Thread Joao Luis Meloni Assirati
On Tue, 21 Oct 2003, Andre Poenitz wrote: > > Why don't you let xdvi do it's job instead > > of trying manually? > > Because it does not work, i.e. the cursor does not move. No error > message whatsoever. As xdvi does work with EDITOR=vi I figured it might > be a problem with teh lyxclient <-> Ly

Re: Assert trigged with last version.

2003-10-21 Thread Jose' Matos
On Tuesday 21 October 2003 17:03, Martin Vermeer wrote: > > Assertion triggered in InsetOld* Paragraph::getInset(int) by failing > > check "pos < size()" in file paragraph.C:296 > > Just to make sure: does this include this afternoons's commit? Yes, and it happens not matter the frontend I am us

Re: Assert trigged with last version.

2003-10-21 Thread Martin Vermeer
On Tue, Oct 21, 2003 at 04:17:37PM +0100, Jose' Matos spake thusly: > Now, after updating since last morning, so just with Martin's patch, I get > this, opening a file that I have been working on: > > (gdb) run > Starting program: /home/jamatos/lyx/lyx-devel/src/lyx-xforms > text not avai

Re: Assert trigged with last version.

2003-10-21 Thread Martin Vermeer
On Tue, Oct 21, 2003 at 04:17:37PM +0100, Jose' Matos spake thusly: > Hi, > as you know I am using the latest cvs version to test the back-converter. > > I have trouble with undo, almost all undos will lead to a crash. > > Now, after updating since last morning, so just with M

Assert trigged with last version.

2003-10-21 Thread Jose' Matos
Hi, as you know I am using the latest cvs version to test the back-converter. I have trouble with undo, almost all undos will lead to a crash. Now, after updating since last morning, so just with Martin's patch, I get this, opening a file that I have been working on: (gd

Re: dvi search

2003-10-21 Thread Andre Poenitz
On Tue, Oct 21, 2003 at 11:49:44AM -0200, Joao Luis Meloni Assirati wrote: > > Hello, > > On Tue, 21 Oct 2003, Andre Poenitz wrote: > > > How do I start lyxclient manually if I want to go to a certain line? > > > > lyxclient -g newfile16.lyx 13 > > > > brings up a 'document is already loaded, w

Re: dvi search

2003-10-21 Thread Joao Luis Meloni Assirati
Hello, On Tue, 21 Oct 2003, Andre Poenitz wrote: > How do I start lyxclient manually if I want to go to a certain line? > > lyxclient -g newfile16.lyx 13 > > brings up a 'document is already loaded, want to switch' dialog. -g is an alias to LFUN_GOTOFILEROW. My inverse search patch just extend

Re: Inset display?

2003-10-21 Thread Martin Vermeer
On Tue, Oct 21, 2003 at 10:57:55AM +0200, Andre Poenitz spake thusly: > > On Tue, Oct 21, 2003 at 12:10:38PM +0300, Martin Vermeer wrote: > > Can this go in (as it is the polishing touch on the inset display > > patch)? > > Yes. > > Andre' It's in. - Martin pgp0.pgp Description: PGP si

Re: Optional arguments to elsart styles.

2003-10-21 Thread Jean-Marc Lasgouttes
> "Jose'" == Jose' Matos <[EMAIL PROTECTED]> writes: Jose'> How about this Jean-Marc? Well the optional arguments to \author and \address seem to work as a \label/\ref pair... I think this is a bit abusing the 'short title' inset (and that people will get confused if they put strange things

Re: A lyx::stringstream containing font info?

2003-10-21 Thread Angus Leeming
Andre Poenitz wrote: > On Tue, Oct 21, 2003 at 11:41:41AM +0100, Angus Leeming wrote: >> > What problem are you trying to solve that's not solvable by >> > locally factoring out some common code from metrics() and draw() >> > in a few fat insets? >> >> Have I answered this question with the above

Re: dvi search

2003-10-21 Thread Andre Poenitz
On Tue, Oct 21, 2003 at 11:45:45AM +0100, Angus Leeming wrote: > Andre Poenitz wrote: > > The buttons present me with a choice of immediate crash or full > > freeze. So it "sort of works", but not really automatic, nor > > robust... > > Be fair, André. I did not complain. Andre'

Re: A lyx::stringstream containing font info?

2003-10-21 Thread Andre Poenitz
On Tue, Oct 21, 2003 at 11:41:41AM +0100, Angus Leeming wrote: > > What problem are you trying to solve that's not solvable by locally > > factoring out some common code from metrics() and draw() in a few > > fat insets? > > Have I answered this question with the above? Sort of. > I _really_ wou

Re: dvi search

2003-10-21 Thread Alfredo Braunstein
Andre Poenitz wrote: > The buttons present me with a choice of immediate crash or full freeze. > So it "sort of works", but not really automatic, nor robust... But there is also a bug in the core it seems... The dialog appears because of a full path/only name problem. It doesn't if the full path

Optional arguments to elsart styles.

2003-10-21 Thread Jose' Matos
How about this Jean-Marc? diff -u -p -r1.8 elsart.layout --- lib/layouts/elsart.layout 13 Oct 2003 09:50:09 - 1.8 +++ lib/layouts/elsart.layout 21 Oct 2003 10:50:21 - @@ -122,6 +122,7 @@ Style Author ParSep0 Align Center Alig

Re: dvi search

2003-10-21 Thread Angus Leeming
Andre Poenitz wrote: > The buttons present me with a choice of immediate crash or full > freeze. So it "sort of works", but not really automatic, nor > robust... Be fair, André. It's new code and I'm sure that its author would welcome prescriptions to make it fail... -- Angus

Re: A lyx::stringstream containing font info?

2003-10-21 Thread Angus Leeming
Andre Poenitz wrote: > On Tue, Oct 21, 2003 at 10:04:44AM +, Angus Leeming wrote: >> My main point is that the metrics and draw routines repeat large >> blocks of code > > Only in a few cases in which we could have a local helper function > which is called from both. Unless I miss the point c

Re: dvi search

2003-10-21 Thread Andre Poenitz
On Tue, Oct 21, 2003 at 10:11:06AM +, Angus Leeming wrote: > Andre Poenitz wrote: > > > > > I somehow lost track: Is this in? > > Yes. > > > If so, does it work with xdvi 22.40h (Stock SuSE 8.1)? > > If so, how? > > Andre' > > You need two things. > 1. Either a latex compiler that understa

Re: A lyx::stringstream containing font info?

2003-10-21 Thread Andre Poenitz
On Tue, Oct 21, 2003 at 10:04:44AM +, Angus Leeming wrote: > My main point is that the metrics and draw routines repeat large > blocks of code Only in a few cases in which we could have a local helper function which is called from both. Unless I miss the point completely... > and that my se

Re: LyX/Mac - beta testers wanted for new release

2003-10-21 Thread Angus Leeming
On Tuesday 21 October 2003 9:10 am, Jean-Marc Lasgouttes wrote: > > "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: > > Angus> Ronald, what's going on here! Are you backporting João's stuff > Angus> to the 1.3.x branch? If that is the case, I am 100% against > Angus> this 'new release'. >

Re: LyX/Mac - beta testers wanted for new release

2003-10-21 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> Ronald, what's going on here! Are you backporting João's stuff Angus> to the 1.3.x branch? If that is the case, I am 100% against Angus> this 'new release'. Actually he is using the code against 1.3.x send a long time ago by Joao.

Re: dvi search

2003-10-21 Thread Angus Leeming
Andre Poenitz wrote: > > I somehow lost track: Is this in? Yes. > If so, does it work with xdvi 22.40h (Stock SuSE 8.1)? > If so, how? > Andre' You need two things. 1. Either a latex compiler that understands the --src-specials flag or the srcltx package. Here, my latex does not understand th

Re: dvi search

2003-10-21 Thread Alfredo Braunstein
Andre Poenitz wrote: > I somehow lost track: Is this in? Partially. There's a patch waiting for approval (support for sockets on qt and shell variables fiddling). And you still have to define latex --source-specials as your latex->dvi converter (if supported) or manually \include[active]{srcltx.s

Re: A lyx::stringstream containing font info?

2003-10-21 Thread Angus Leeming
Andre Poenitz wrote: > On Tue, Oct 21, 2003 at 09:25:46AM +, Angus Leeming wrote: >> Andre Poenitz wrote: >> >> Is this just a wild flight of fancy, or does anybody else think >> >> that it's a sensible proposal? >> > >> > I think this could be handled on a case-by-case base by using >> > som

dvi search

2003-10-21 Thread Andre Poenitz
I somehow lost track: Is this in? If so, does it work with xdvi 22.40h (Stock SuSE 8.1)? If so, how? Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson or B. Franklin or both...)

Re: Inset display?

2003-10-21 Thread Andre Poenitz
On Tue, Oct 21, 2003 at 12:10:38PM +0300, Martin Vermeer wrote: > Can this go in (as it is the polishing touch on the inset display > patch)? Yes. Andre'

Re: Inset display?

2003-10-21 Thread Martin Vermeer
On Tue, Oct 21, 2003 at 09:33:29AM +0300, Martin Vermeer spake thusly: > > On Mon, Oct 20, 2003 at 09:10:51PM +, Angus Leeming spake thusly: ... > I have experimentally placed display() =true in footnote/marginnote > and floatinsets. I think eventually we want to make all collapsable > ins

Re: A lyx::stringstream containing font info?

2003-10-21 Thread Angus Leeming
Angus Leeming wrote: > std::ostream & operator<<(std::ostream & os, setFamily const & sf) > { > os.iword(CName::GetAlloc()) = sf.family_; Ouch! That's os.iword(setFamily::getAlloc()) = sf.family_; > return os; > } > > } // namespace font > > -- Angus

Re: A lyx::stringstream containing font info?

2003-10-21 Thread Andre Poenitz
On Tue, Oct 21, 2003 at 09:25:46AM +, Angus Leeming wrote: > Andre Poenitz wrote: > >> Is this just a wild flight of fancy, or does anybody else think > >> that it's a sensible proposal? > > > > I think this could be handled on a case-by-case base by using some > > helper functions in the inse

Re: LyX/Mac - beta testers wanted for new release

2003-10-21 Thread Angus Leeming
Ronald Florence wrote: > I welcome beta testers for a new release of LyX/Mac. New features: > > - Inverse DVI search: if you use MacDviX with Preview -> DVI, you > can Option-Click in the DVI window and have LyX jump to the > corresponding point in the source file. The feature should

Re: A lyx::stringstream containing font info?

2003-10-21 Thread Angus Leeming
Andre Poenitz wrote: >> Is this just a wild flight of fancy, or does anybody else think >> that it's a sensible proposal? > > I think this could be handled on a case-by-case base by using some > helper functions in the insets that really need it. Actually, I did some reading and I think I have st

Re: [CRASH] with 1.4.0cvs (fwd)

2003-10-21 Thread Jean-Marc Lasgouttes
> "Alain" == Alain Castera <[EMAIL PROTECTED]> writes: Alain> Hi All. Alain> I apologize to bore you again, but I got no reaction to this Alain> message. Should I file a bug under bugzilla ? Or is it a Alain> temporary effect of using cvs version ? Please file a bug. I am not able to look at

Re: Fonts

2003-10-21 Thread Jean-Marc Lasgouttes
> "Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes: Andre> text2.C:153 Andre> // Realize with the fonts of lesser depth. Andre> tmpfont.realize(outerFont(pit, ownerParagraphs())); Andre> tmpfont.realize(defaultfont_); Andre> text2.C:169 Andre> // Realize with the fonts of lesser depth.

Re: [PATCH] Inverse search update.

2003-10-21 Thread Alfredo Braunstein
Angus Leeming wrote: > Alfredo Braunstein wrote: > >> btw, how should we introduce source-latex only for view->dvi? a >> latexflavour? > > Your pet project surfaces again? Why not try and put a few thoughts > down on e-paper about how it might be implemented and we can knock > some ideas around.

Fonts

2003-10-21 Thread Andre Poenitz
text2.C:153 // Realize with the fonts of lesser depth. tmpfont.realize(outerFont(pit, ownerParagraphs())); tmpfont.realize(defaultfont_); text2.C:169 // Realize with the fonts of lesser depth. font.realize(outerFont(pit, ownerParagraphs())); font.

Re: A lyx::stringstream containing font info?

2003-10-21 Thread Andre Poenitz
On Mon, Oct 20, 2003 at 10:06:58PM +, Angus Leeming wrote: > I'm a bit pissed off with the way we handle fonts and strings. Good starting point. > It seems to me that we are duplicating code in the inset metrics and > draw functions. Only in the very inner block of code do things > differ, on