Re: The LyX licence

2005-02-24 Thread Ben Stanley
Angus, You have my permission to change the license of my contribution to the GNU GPL version 2 or later. Please note the change of email address (please check the headers - I'm not quoting it here for the spam-bots to find.). Ben Stanley. On Wed, 2005-02-23 at 01:55, Angus Leeming wrote:

Re: Float Counters

2002-11-19 Thread Ben Stanley
ted, as the existing code is focused on the section counters. Thus I was thinking of adding a new label type for floats to be able to handle the difference correctly. Ben. -- Ben Stanley, PhD candidate School of Information Technology and Computer Science University of Wollongong

Re: Float Counters

2002-11-18 Thread Ben Stanley
On Tue, 2002-11-19 at 17:01, Ben Stanley wrote: > 4) Translating the float type (figure, algorithm, program, etc) into the > display name ("Figure", "Algorithm", "Program", etc, with localisation). > I suppose this is a .layout issue, to be dealt with b

Float Counters

2002-11-18 Thread Ben Stanley
gure", "Algorithm", "Program", etc, with localisation). I suppose this is a .layout issue, to be dealt with by LyXTextClass? Ideas welcome. I'm still working through commenting Inset.h as well, but this requires some understanding of the entire Inset inheritance tree,

Re: possible bug

2002-11-12 Thread Ben Stanley
I am writing to let it be known that I consider this bug affects me as well, and that I consider it to be rather serious. Could you please re-consider the back-porting issue? Ben. Jean-Marc Lasgouttes wrote: "btz64" == btz64 <[EMAIL PROTECTED]> writes btz64> when you insert a eps image in a

Thinking about Insets, Paragraphs, and iterators.

2002-11-07 Thread Ben Stanley
I'm trying to distill the rules for insets and paragraphs... * Inset classescan only hold a single inset object. * Paragraph objects are not an inset, but may contain more than one inset. * Paragraph objects may be inserted into an inset tree using an InsetText object. All this must make it rat

\floatstyle{} latex errors

2002-11-07 Thread Ben Stanley
current cvs LyX wrote the following in the preamble for a document with figures: (document style IEEEtran, but it's written in the layout independent part) - %% LyX specific LaTeX commands. \providecommand{\LyX}{L\kern-.1667em\lower.25em

Re: autoconf-2.53

2002-11-07 Thread Ben Stanley
On Fri, 2002-11-08 at 00:23, Jean-Marc Lasgouttes wrote: > >>>>> "Ben" == Ben Stanley <[EMAIL PROTECTED]> writes: > > Ben> On Thu, 2002-11-07 at 01:15, Lars Gullik Bjønnes wrote: > >> Ben Stanley <[EMAIL PROTECTED]> writes: > >&

[patch] Re: lyxtextclass comments

2002-11-07 Thread Ben Stanley
en. Index: src/ChangeLog === RCS file: /cvs/lyx/lyx-devel/src/ChangeLog,v retrieving revision 1.972 diff -u -3 -p -u -r1.972 ChangeLog --- src/ChangeLog 2002/11/07 00:37:08 1.972 +++ src/ChangeLog 2002/11/07 13:01:51 @@ -1,3 +1,7 @@ +2002-11-07 Ben Stanley <[EMAIL PROTECTED]> + +

Re: autoconf-2.53

2002-11-07 Thread Ben Stanley
On Thu, 2002-11-07 at 01:15, Lars Gullik Bjønnes wrote: > Ben Stanley <[EMAIL PROTECTED]> writes: > > But I compile on RH-8.0 all the time and have no problems. > I just did a complete cvs checkout lyx-devel and then autogen.sh ./configure --with-frontend=qt --prefix=/pac

Re: lyxtextclass comments

2002-11-07 Thread Ben Stanley
On Thu, 2002-11-07 at 21:05, Andre Poenitz wrote: > On Thu, Nov 07, 2002 at 12:34:56PM +1100, Ben Stanley wrote: > > I will try to separate these things then, or at least put in \todo > > comments where the code looks iffy and then go back to clean code later. > > Doxygen c

Re: lyxtextclass comments

2002-11-06 Thread Ben Stanley
> Andre Poenitz <[EMAIL PROTECTED]> writes: > > | I think it would be prudent to split patches into "documentation stuff" > | and "small code changes", maybe even to abstain from the small code changes > | at all. I will try to separate these things then, or at least put in \todo comments where t

[PATCH] lyxtextclass comments

2002-11-06 Thread Ben Stanley
p -u -r1.970 ChangeLog --- src/ChangeLog 2002/11/05 18:25:53 1.970 +++ src/ChangeLog 2002/11/06 15:49:23 @@ -1,3 +1,7 @@ +2002-11-07 Ben Stanley <[EMAIL PROTECTED]> + + * lyxtextclass.[hC]: add and clean up doxygen comments + 2002-11-05 Lars Gullik Bjønnes <[EMAIL PROTECTED]> * t

Re: autoconf-2.53

2002-11-06 Thread Ben Stanley
On Thu, 2002-11-07 at 00:37, Jean-Marc Lasgouttes wrote: > >>>>> "Ben" == Ben Stanley <[EMAIL PROTECTED]> writes: > > Ben> OK, I did a cvs up, and tested the build... and I *still* get > Ben> failures on duplicate declarations of strerror

Re: autoconf-2.53

2002-11-06 Thread Ben Stanley
On Wed, 2002-11-06 at 21:19, Jean-Marc Lasgouttes wrote: > > "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: > > Lars> Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: | > Lars> > "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: > Lars> | > Lars> | Lars> I already did i

autoconf-2.53

2002-11-05 Thread Ben Stanley
Hi, I'm trying to compile LyX 1.3.0cvs on RedHat 8.0, and I found that I got a double declaration of strerror. This is primarily caused by there being no *test* for strerror, but there is a macro which declares strerror if HAVE_STRERROR is not defined. I fixed this problem by adding AC_CHECK_FU

[Fwd: Re: Fixed Ghostscript rpms for RH7.2]

2001-12-30 Thread Ben Stanley
--- Begin Message --- On Mon, Dec 31, 2001 at 02:55:19PM +1100, Ben Stanley wrote: > Kayvan A. Sylvan wrote: > > >>Kayvan A. Sylvan wrote: > >> > >>>Put it in my ftp.sylvan.com/incoming/forlyx directory (a temporary > >>>place that will dis

Re: Fixed Ghostscript rpms for RH7.2

2001-12-30 Thread Ben Stanley
John Levon wrote: >Good move. I'm sure Kayvan can host it at the ftp site. > OK, Kayvan, where would you like it? I don't have enough space to make it publicly available to you, and it seems too large to email. BTW, I just noticed that the preview graphics quality on photographs gets quite a b

Fixed Ghostscript rpms for RH7.2

2001-12-29 Thread Ben Stanley
Hi, I made up an rpm of ghostscript for RH7.2 with the patch (see https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=55772) applied which fixes the rendering problem with LyX preview figures. If there is a place to put it, I can upload it somewhere. I have a .src.rpm (14.5Mb) and a .i386.rp

Re: RFC: Sound Approach?

2001-12-29 Thread Ben Stanley
Lars, I had look at the patch... Seems that the Paragraph::next and Paragraph::previous are still in use. How do you plan to remove them? I suppose that once you have encapsulated them inside the iterator and removed all uses from the rest of the code that it will be an easy matter to remove

[PATCH] DepTable

2001-12-14 Thread Ben Stanley
and makes the new deptable file compatible with previous versions of Lyx (and vice versa). Ben. --- lyx-devel-orig/src/ChangeLogWed Dec 12 09:26:32 2001 +++ lyx-devel/src/ChangeLog Wed Dec 12 09:24:51 2001 @@ -1,3 +1,9 @@ +2001-12-12 Ben Stanley <[EMAIL PROTECTED]>

Re: Undo & leaking

2001-12-14 Thread Ben Stanley
Jean-Marc Lasgouttes wrote: >So you will be able to insert a paragraph in a paragraph. How will >that look like? You need some kind of wrapper around it, and it's >called an inset nowadays. > I think a paragraph should be an inset. Yes, inserting a paragraph in a paragraph doesn't make much sen

Re: Visitor ...

2001-12-13 Thread Ben Stanley
Allan Rae wrote: > >I'll check my copy of, of, ummm, I've forgotten the name. >It's about implementing patterns as templates. > >Allan. (ARRae) > Been there, tried that, but John and I didn't succeed. Good luck. I thought that we could use the Barton and Nackman trick (see Scientific and Engin

Re: Inset Visitors...

2001-12-13 Thread Ben Stanley
John Levon wrote: >On Fri, Dec 14, 2001 at 02:07:05PM +1100, Ben Stanley wrote: > >>John Leveon asked me how you would specify that one kind of inset is >>searchable but not spell-checkable, and that another kind of inset is >>spell-checkable and not searchable.

Re: Inset Visitors...

2001-12-13 Thread Ben Stanley
John Leveon asked me how you would specify that one kind of inset is searchable but not spell-checkable, and that another kind of inset is spell-checkable and not searchable. Here is a complete self-contained example. class InsetVisitor; class Inset { // blah blah virtual void Accept(Inse

Re: Inset Visitors...

2001-12-13 Thread Ben Stanley
John Levon wrote: >On Fri, Dec 14, 2001 at 12:48:23PM +1100, Ben Stanley wrote: > >>>what's the point in calling back like this ? This looks like it requires >>>an VisitInsetX for every class X ? And furthermore, one that must be >>>public. >>> &

Re: Inset Visitors...

2001-12-13 Thread Ben Stanley
John Levon wrote: >On Fri, Dec 14, 2001 at 11:02:51AM +1100, Ben Stanley wrote: > >>class InsetA : public Inset { >>// blah blah >> virtual void Accept(InsetVisitor& iv ) { iv.VisitInsetA(*this); } >>}; >> >>class InsetVisitor { >>// bl

Re: Undo & leaking

2001-12-13 Thread Ben Stanley
Lars Gullik Bjønnes wrote: >ref_ptr->obj->ref_ptr->obj->ref_ptr->obj > >and run reset(0) on the first, the refcount is decremented on all the >rest as well and if the refcount reach zero the paragraph is deleted, >just like we would expect. > >I think it would work. > In the case you have above,

Inset Visitors...

2001-12-13 Thread Ben Stanley
When I did my extended error reporting modification to LyX, I added Inset Visitors. I found them to be very useful... For those unfamiliar with the Visitor pattern, I strongly suggest you grab a copy of "Design Patterns", by Gamma et al. See page 331. Well worth the read... but, I'll attempt t

Re: Undo & leaking

2001-12-13 Thread Ben Stanley
Lars Gullik Bjønnes wrote: >One of my huge goals is to get rid of the paragraph linked list as we >have it now, and have the paragraphs in an stl container of some sort. >This also means moving a lot of algorithms out of LyXParagraph so it >is a lot of work. But I have a very strong feeling that

Re: [PATCH] mmap CRC checking 1.2cvs

2001-12-13 Thread Ben Stanley
lems we had on Solaris and compaq cxx, and satisfy the regulations of the style police... Ben. --- lyx-devel-orig/src/support/ChangeLogThu Dec 6 12:28:42 2001 +++ lyx-devel/src/support/ChangeLog Wed Dec 12 09:53:19 2001 @@ -1,3 +1,7 @@ +2001-12-12 Ben Stanley <

[PATCH] Re: mmap CRC checking 1.2cvs

2001-12-11 Thread Ben Stanley
Jean-Marc Lasgouttes wrote: >I am not sure about that, but I believe you :) However, until we are >sure we have no complaint from HP-UX, AIX SCO or whatever people, I'd >rather not put it in 1.1.6. > OK. Please apply this to 1.2cvs so we can find out if this fixes it for everyone. >Is it possib

[PATCH] Re: DepTable patch for 1.2cvs

2001-12-11 Thread Ben Stanley
Ben Stanley wrote: > I have now written something for 1.2 which keeps only one mtime; I'd > better test before posting. Dammit I'd better hit the attach button instead of the send button... Anyway, this patch corrects and tidies up the mtime stuff. Ben. --- lyx-devel-or

[PATCH] Re: DepTable patch for 1.2cvs

2001-12-11 Thread Ben Stanley
Ben Stanley wrote: > I have now written something for 1.2 which keeps only one mtime; I'd > better test before posting.

Re: bugzilla components

2001-12-11 Thread Ben Stanley
It would be helpful if you could put a few '\n' chars at the appropriate places so I can read it! The message I got had it all on one line, wrapped by the mail reader... Michael A. Koziarski wrote: > Hey guys, > > The components in bugzilla are as follows, can people step forward to: > > 1) ta

[BUG] Export table to LaTeX gives errors...

2001-12-10 Thread Ben Stanley
The attached file gives some wierd error messages when you try to do a View|DVI on it. Tested on today's cvs (2001-12-11). Ben. #LyX 1.2 created this file. For more info see http://www.lyx.org/ \lyxformat 220 \textclass article \language english \inputencoding auto \fontscheme default \graphi

[PATCH] error line numbers 1.2cvs

2001-12-10 Thread Ben Stanley
This patch fixes a problem I was having with errors being reported in the wrong places. Ben. --- lyx-devel-orig/src/ChangeLogTue Dec 11 15:23:26 2001 +++ lyx-devel/src/ChangeLog Tue Dec 11 17:51:12 2001 @@ -1,3 +1,9 @@ +2001-12-11 Ben Stanley <[EMAIL PROTEC

[PATCH] Heap Corruption(!) in 1.2cvs

2001-12-10 Thread Ben Stanley
/frontends/xforms/ChangeLog Thu Dec 6 10:58:32 2001 +++ lyx-devel/src/frontends/xforms/ChangeLogTue Dec 11 14:50:17 2001 @@ -1,3 +1,8 @@ +2001-12-11 Ben Stanley <[EMAIL PROTECTED]> + + * Menubar_pimpl.C: Fixed a crashing bug when document + has more than 80 floats

Re: [PATCH] mmap CRC checking 1.2cvs

2001-12-10 Thread Ben Stanley
Jean-Marc Lasgouttes wrote: >>>>>>"Ben" == Ben Stanley <[EMAIL PROTECTED]> writes: >>>>>> > >Ben> Jean-Marc, Can you please check if the #define _POSIX_C_SOURCE >Ben> 199506L > >Ben> modification would fix this pro

Re: Heap Corruption(!) in 1.2cvs

2001-12-10 Thread Ben Stanley
John Levon wrote: >On Sat, Dec 08, 2001 at 01:18:55PM +1100, Ben Stanley wrote: > >>I think I'm getting heap corruption... >> Well, I've carried out some testing using mpatrol, a big and thorough memory debugging library. It turns out that we are accessing heap memo

Heap Corruption(?) in 1.2cvs

2001-12-07 Thread Ben Stanley
I think I'm getting heap corruption... I load up my thesis into 1.2cvs just to try it out then use navigate menu to jump to a section I get some messages when I click on the "Navigate" menu button: In Xpup [xpopup.c 335] too many menu items. Max=80 About 52 of them, actually... When I release t

Re: [PATCH] mmap CRC checking 1.2cvs

2001-12-07 Thread Ben Stanley
Jean-Marc, Can you please check if the #define _POSIX_C_SOURCE 199506L modification would fix this problem on compaq? I'd also appreciate seeing the standards(5) man page from that platform. Ben. Jean-Marc Lasgouttes wrote: >Compilation of 1.2.0cvs with compaq cxx dies with: > >cxx: Error: ..

Re: DepTable patch for 1.2cvs

2001-12-06 Thread Ben Stanley
Lars Gullik Bjønnes wrote: >Ben Stanley <[EMAIL PROTECTED]> writes: > >| However, the version currently in 1.2 writes the 3 numbers to the >| deptable, which is incompatible with previous behaviour which >| writes/reads only 2. > >No, we do not have to do that. >E

DepTable patch for 1.2cvs

2001-12-06 Thread Ben Stanley
Lars Gullik Bjønnes wrote: >Ben Stanley <[EMAIL PROTECTED]> writes: > >| I still need to get the proper DepTable patch out. The patch that is >| currently in 1.2 is b0rken. > >explain. > Hmmm... I have a new implementation which keeps an old and a new mtime, and chec

Re: [PATCH] mmap CRC checking 1.2cvs

2001-12-06 Thread Ben Stanley
Lars Gullik Bjønnes wrote: >"Kayvan A. Sylvan" <[EMAIL PROTECTED]> writes: > >| On Thu, Dec 06, 2001 at 08:39:47AM +0100, Lars Gullik Bjønnes wrote: > >>>Ben Stanley <[EMAIL PROTECTED]> writes: >>> >>>| Please let me know if the attach

Re: [PATCH] mmap CRC checking 1.2cvs

2001-12-05 Thread Ben Stanley
t;>>>"Ben" == Ben Stanley <[EMAIL PROTECTED]> writes: >>>>>> > >Ben> This is a version of the mmap patch which applies to cvs HEAD. > >Compilation of 1.2.0cvs with compaq cxx dies with: > >cxx: Error: ../../../lyx-devel/src/support/lyxsum.

Re: Annoying LyX bugs

2001-12-05 Thread Ben Stanley
Ronald Holzloehner wrote: >(6) I just installed Lyx1.1.6fix3-1 (the binary rpm) on my RedHat 7.2 >box and now the rendering of eps figures in LyX is broken: It still says >"rendering", but nothing appears. The same file works correctly under >older RedHat versions. > This is actually a bug in th

Re: Annoying LyX bugs

2001-12-05 Thread Ben Stanley
back into LyX, as I have to write furiously. I lost a significant amount of PhD writing time while making the changes, but they seem to work really well now, and are saving me time compared to the old method of searching log files for errors... Ben Stanley.

Re: [PATCH] two fixes, broken (iterator questions)

2001-12-03 Thread Ben Stanley
Some questions on iterators below... John Levon wrote: >+ if (par->autoDeleteInsets()) { >+ found = true; > text->redoParagraphs(this, cursor, >cursor.par()->next()); > text-

Re: CVS: Compile problem on Solaris

2001-12-03 Thread Ben Stanley
So does that mean that we should #define _POSIX_C_SOURCE 3 or something like that before #include I don't have experience with Solaris on this level... Kayvan A. Sylvan wrote: >On Tue, Dec 04, 2001 at 12:00:46AM +0100, Lars Gullik Bjønnes wrote: > >>Ok, what is munmap's prototype on your box?

Re: [PATCH] mmap CRC checking 1.2cvs

2001-12-02 Thread Ben Stanley
support/ChangeLog.origMon Dec 3 11:32:13 2001 +++ lyx-devel/src/support/ChangeLog Mon Dec 3 11:36:32 2001 @@ -1,3 +1,8 @@ +2001-12-03 Ben Stanley <[EMAIL PROTECTED]> + + * lyxsum.C: Added mmap version of CRC and made it selected + by default where available. Used

Re: [PATCH] mmap CRC checking 1.2cvs

2001-12-02 Thread Ben Stanley
Lars Gullik Bjønnes wrote: >Ben Stanley <[EMAIL PROTECTED]> writes: > >| +char *beg = static_cast(mm); >| +char *end = beg + info.st_size; >| + >| +unsigned long result = do_crc(beg,end); > >Did you check the speed difference betw

Re: niced previews

2001-11-29 Thread Ben Stanley
Juergen Vigna wrote: >Why don't you just reconfigure the \ps_command in your lyxrc as >\ps_command "nice gs" > because nice doesn't return the right exit code, and LyX checks it. This doesn't work. However, I did come up with a one liner patch for lyx-1.1.6, which calls the nice() system call.

Re: [RFC] Automatic preview picture updating

2001-11-29 Thread Ben Stanley
Andre Poenitz wrote: >On Thu, Nov 29, 2001 at 07:09:53PM +1100, Ben Stanley wrote: > >>But does it exist on Windows and OS/2? >> > >I really don't know. > I guess that cygwin would provide something (I assume the port uses cygwin), but that autoconf would look after it for us anyway. Ben.

Re: [RFC] Automatic preview picture updating

2001-11-29 Thread Ben Stanley
Andre Poenitz wrote: >On Thu, Nov 29, 2001 at 05:16:38PM +1100, Ben Stanley wrote: > >>Perhaps an extra argument to convert would be in order? >> >>Converters::convert( , bool priority_nice = false ) >> >>if( priority_nice ) >>command = stri

Re: [RFC] Automatic preview picture updating

2001-11-28 Thread Ben Stanley
John Levon wrote: >around insets/figinset.C:675, where we do the execlp > >Again, I wouldn't bother spending too much time on obsolete code ... > I think I'd only do it in a 1.2 tree. I guess I'd have to modify converters.C somewhere around line 643: +command = string("nice ") + com

Re: [BUG] close prefs dialog abort in 1.1.6fix3

2001-11-28 Thread Ben Stanley
Ben Stanley wrote: > I also tried the same procedure as above except I waited until after > the previews were all rendered before opening the preferences dialog. > No crash. Looks like I spoke too soon. When I went back to re-set the tmp dir preference, it did this (no preview

Re: [RFC] Automatic preview picture updating

2001-11-28 Thread Ben Stanley
John Levon wrote: >On Thu, Nov 29, 2001 at 04:14:58PM +1100, Ben Stanley wrote: > >>While we are on the topic of figure previews, what do people think of >>using *nice* on the gs processes? My machine gets really bogged for >>several minutes when I open my thesis.

Re: [BUG] close prefs dialog abort in 1.1.6fix3

2001-11-28 Thread Ben Stanley
John Levon wrote: >On Wed, Nov 28, 2001 at 11:38:18PM +1100, Ben Stanley wrote: > >>Now I open my thesis, and while the previews are rendering, I open the >>preferences dialog, change a setting (the temp dir), click save, and get >> >> >>MainLoopUser Event(3

Re: [RFC] Automatic preview picture updating

2001-11-28 Thread Ben Stanley
While we are on the topic of figure previews, what do people think of using *nice* on the gs processes? My machine gets really bogged for several minutes when I open my thesis... When you have lots of figures to preview, this would make a big difference. Another alternative would be to render

Re: [RFC] Automatic preview picture updating

2001-11-28 Thread Ben Stanley
The thought had struck me that fam might help with the DepTab problem too, but having thought about it I have decided it doesn't help significantly with that problem. Ben.

[RFC] Automatic preview picture updating

2001-11-28 Thread Ben Stanley
I just tried to get LyX to re-render a figure that I changed, and short of changing the file name to a bogus name and pressing OK and then changing it back I can't get the figure re-drawn. I've been thinking a little about automatic preview picture updating when the file on disk has changed.

[PATCH] recreation of .tex/.dvi 1.2

2001-11-28 Thread Ben Stanley
has changed" << endl; if (head.extchanged(".bib") || head.extchanged(".bst")) run_bibtex = true; --- lyx-devel-orig/ChangeLogWed Nov 28 20:05:21 2001 +++ lyx-devel/ChangeLog Thu Nov 29 13:12:54 2001 @@ -1,3 +1,9 @@ +2001-11

[BUG] lots of black in preview images with -shared 1.1.6fix3

2001-11-28 Thread Ben Stanley
I'm getting very dark/black preview images when I run under -shared. Not all of them are black, but it does tend to be the photographs/screenshots that do it. (Also some output from QCad does it). It's usually background colours or transparent parts of the image that get turned to black. What

[PATCH] recreation of .tex/.dvi 1.1.6

2001-11-28 Thread Ben Stanley
END] - << "Dependency file has changed" << endl; if (head.extchanged(".bib") || head.extchanged(".bst")) run_bibtex = true; --- lyx-devel-orig/ChangeLogWed Nov 28 20:05:21 2001 +++ lyx-dev

[PATCH] mmap CRC checking 1.2cvs

2001-11-28 Thread Ben Stanley
ot;CRC: " << lyx::sum(fil) << std::endl; } +#endif --- lyx-devel-orig/src/support/ChangeLogThu Nov 29 03:01:18 2001 +++ lyx-devel/src/support/ChangeLog Thu Nov 29 05:38:31 2001 @@ -1,3 +1,8 @@ +2001-11-29 Ben Stanley <[EMAIL PROTECTED]> + + * lyxsum.C: Added mmap

Re: Removing optimisation while debugging

2001-11-28 Thread Ben Stanley
Jean-Marc Lasgouttes wrote: >>>>>>"Ben" == Ben Stanley <[EMAIL PROTECTED]> writes: >>>>>> > >Ben> I like to use kdevelop (or some other program with a debugger) >Ben> for investigating LyX. In fact I utilise the debugger quite

Re: [BUG] HEAD cvs InsetNote() causes assert failure

2001-11-28 Thread Ben Stanley
Andre Poenitz wrote: >On Thu, Nov 29, 2001 at 03:47:50AM +1100, Ben Stanley wrote: > >>This constructor passes an un-initialised pos to insertStringAsLines. I >>presume it should be initialised to 0? >> > >And now to the explanation: I saw the "useless"

Removing optimisation while debugging

2001-11-28 Thread Ben Stanley
I like to use kdevelop (or some other program with a debugger) for investigating LyX. In fact I utilise the debugger quite heavily. While I was working in my private tree doing my big mods, I actually removed the -O from the command line for the development build. This allows the debugger to b

[BUG] HEAD cvs InsetNote() causes assert failure

2001-11-28 Thread Ben Stanley
This constructor passes an un-initialised pos to insertStringAsLines. I presume it should be initialised to 0? This causes an assert failure down in Pragraph::pimpl::insertChar(). // This constructor is used for reading old InsetInfo InsetNote::InsetNote(Buffer const * buf, string const & conte

Re: cvs compile error in BRANCH_1_1_6

2001-11-28 Thread Ben Stanley
Jean-Marc Lasgouttes wrote: >>>>>>"Ben" == Ben Stanley <[EMAIL PROTECTED]> writes: >>>>>> > >This is a symptom of having a bad xforms-0.88 rpm (the header is wrong >in fact). Make sure you use the one from ftp.lyx.org. > >JMarc

Re: [PATCH] mmap CRC checking 1.1.6

2001-11-28 Thread Ben Stanley
Ben Stanley wrote: > I have now tested this. First number is mmap CRC. Second number is > istream_iterator CRC. They seem to fail differently on directories - > in this case, I think that istream_iterator version is wrong. > > This patch only applies to BRANCH_1_1_6. I will s

[PATCH] mmap CRC checking 1.1.6

2001-11-28 Thread Ben Stanley
I have now tested this. First number is mmap CRC. Second number is istream_iterator CRC. They seem to fail differently on directories - in this case, I think that istream_iterator version is wrong. This patch only applies to BRANCH_1_1_6. I will send another for 1.2. I haven't compiled the who

[PATCH] mmap CRC checking 1.1.6

2001-11-28 Thread Ben Stanley
I have now tested this. First number is mmap CRC. Second number is istream_iterator CRC. They seem to fail differently on directories - in this case, I think that istream_iterator version is wrong. This patch only applies to BRANCH_1_1_6. I will send another for 1.2. I haven't compiled the who

cvs compile error in BRANCH_1_1_6

2001-11-28 Thread Ben Stanley
make[3]: Entering directory `/share/install/linux/extras/lyx/lyx-BRANCH_1_1_6/lyx-devel/src' g++ -DHAVE_CONFIG_H -I. -I. -I. -I.. -I.. -I../boost-isystem /usr/X11R6/include -g -O -fno-exceptions -W -Wall -c BufferView2.C In file included from BufferView2.C:24: LyXView.h:38: using directive

Re: [PATCH] Re: DepTable is slooooooooowwwwwwwwww

2001-11-28 Thread Ben Stanley
| Lars Gullik Bjønnes wrote: >> > istreambuf_iterator: time ./test_crc /boot/vmlinuz-2.4.9-13 CRC: 2642954630 real0m0.252s user0m0.130s sys 0m0.000s istream_iterator: time ./test_crc /boot/vmlinuz-2.4.9-13 CRC: 2642954630 re

Re: [BUG] close prefs dialog abort in 1.1.6fix3

2001-11-28 Thread Ben Stanley
Jose Abilio Oliveira Matos wrote: >On Wed, Nov 28, 2001 at 11:38:18PM +1100, Ben Stanley wrote: > >>Juergen Vigna wrote: >> >>I just found an xforms-0.88-15 from RH7.0-powertools. So I downloaded it >>and installed it. >> > > Known problem, that v

Re: [PATCH] Re: DepTable is slooooooooowwwwwwwwww

2001-11-28 Thread Ben Stanley
Lars Gullik Bjønnes wrote: >Ben Stanley <[EMAIL PROTECTED]> writes: > >| Andre Poenitz wrote: > >>>On Wed, Nov 28, 2001 at 07:00:14AM +1100, Ben Stanley wrote: >>> >>>>The advantage of putting everything in the deptree is that if you modify >>

Re: [PATCH] Re: DepTable is slooooooooowwwwwwwwww

2001-11-28 Thread Ben Stanley
Jean-Marc Lasgouttes wrote: >>"Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: >> > >Lars> I leave it to Jean-Marc to decide if this patch should go in >Lars> 1.1.6, but I would be a bit reluctant. > >Yes, I am, as I posted earlier. > >Lars> Perhaps only the mmap patch since tha

Re: [BUG] close prefs dialog abort in 1.1.6fix3

2001-11-28 Thread Ben Stanley
Juergen Vigna wrote: >On 27-Nov-2001 Ben Stanley wrote: > >>xforms-0.88-3 >> >>System is RH7.1 >> > >Hmm I had problems with that particular rpm version and therefore installed >xforms-0.88-9, I cannot remember which problems I had thought. > I just fou

[PATCH] Re: DepTable is slooooooooowwwwwwwwww

2001-11-28 Thread Ben Stanley
Andre Poenitz wrote: >On Wed, Nov 28, 2001 at 07:00:14AM +1100, Ben Stanley wrote: > >>The advantage of putting everything in the deptree is that if you modify >>a figure .eps and then do the latex->DVI thing from the menu, then >>everything will be re-generated OK. &g

Re: recreation of .tex/.dvi

2001-11-27 Thread Ben Stanley
Dekel Tsur wrote: >On Tue, Nov 27, 2001 at 01:01:40PM +0100, Lars Gullik Bjønnes wrote: > >>Andre Poenitz <[EMAIL PROTECTED]> writes: >> >>| On Tue, Nov 27, 2001 at 12:34:30PM +0200, Dekel Tsur wrote: >> Do you have use_tempir=false ? >>| Yes. >> >>I cannot see how the mtime patch can ca

Re: DepTable is slooooooooowwwwwwwwww

2001-11-27 Thread Ben Stanley
Ben Stanley wrote: > At the moment my latex is needing 6 runs to stabilise no matter > whether there are pre-existing .aux files or not. Haven't figure that > out yet, but I'm running with a heavily modified LaTeX::run() at the > moment. > > Ben. > OK, it

Re: [BUG] close prefs dialog abort in 1.1.6fix3

2001-11-27 Thread Ben Stanley
John Levon wrote: >On Tue, Nov 27, 2001 at 11:45:18PM +1100, Ben Stanley wrote: > >>LyX: This shouldn't happen... >>BadWindow (invalid Window parameter) >>Aborted (core dumped) >> > >you need to run with -sync option to lyx for any chance of a usefu

Re: [PATCH] line number info on paragraph 1.1.6

2001-11-27 Thread Ben Stanley
The BRANCH_1_1_6 that I downloaded about 2 hours ago now has correct line numbering with my large thesis. But is still slow to calculate CRCs :-) Those two speedups really make a difference to me on my tree! Ben. Jean-Marc Lasgouttes wrote: >>>>>>"Ben" == B

Re: [PATCH] line number info on paragraph 1.1.6

2001-11-27 Thread Ben Stanley
Jean-Marc Lasgouttes wrote: >>>>>>"Ben" == Ben Stanley <[EMAIL PROTECTED]> writes: >>>>>> > >Ben> I will, just as soon as I figure out how to grab your cvs... give >Ben> me a little while, I'm on a 32kbps link. > >Than

Re: recreation of .tex/.dvi

2001-11-27 Thread Ben Stanley
Lars Gullik Bjønnes wrote: >Dekel Tsur <[EMAIL PROTECTED]> writes: > >| On Tue, Nov 27, 2001 at 01:01:40PM +0100, Lars Gullik Bjønnes wrote: > >>>Andre Poenitz <[EMAIL PROTECTED]> writes: >>> >>>| On Tue, Nov 27, 2001 at 12:34:30PM +0200, Dekel Tsur wrote: >>> >Do you have use_tempir=false ?

Re: [PATCH] mmap CRC

2001-11-27 Thread Ben Stanley
Angus Leeming wrote: >On Tuesday 27 November 2001 2:01 pm, Ben Stanley wrote: > >>[EMAIL PROTECTED] wrote: >> >>>On Tue, Nov 27, 2001 at 11:57:18PM +1100, Ben Stanley wrote: >>> >>>>Here is the mmap patch for calculating CRCs quickly. >>

Re: [PATCH] mmap CRC

2001-11-27 Thread Ben Stanley
[EMAIL PROTECTED] wrote: >On Tue, Nov 27, 2001 at 11:57:18PM +1100, Ben Stanley wrote: > >>Here is the mmap patch for calculating CRCs quickly. >> > >How about wrapping #warnings in #ifdef __GNUC__? > Oh - I thought that was standard... :-) If you insist, here's

Re: DepTable is slooooooooowwwwwwwwww

2001-11-27 Thread Ben Stanley
Lars Gullik Bjønnes wrote: >mmm... did you know that use_tempdir==false was created as a >workaround for a bug... > I vote we ditch it!

Re: [PATCH] line number info on paragraph 1.1.6

2001-11-27 Thread Ben Stanley
The only thing I changed was owner_ to this, due to the pimpl representation in HEAD. Jean-Marc Lasgouttes wrote: >>>>>>"Ben" == Ben Stanley <[EMAIL PROTECTED]> writes: >>>>>> > >Ben> This is just Dekel's HEAD patch adapted

Re: DepTable is slooooooooowwwwwwwwww

2001-11-27 Thread Ben Stanley
Dekel Tsur wrote: >On Tue, Nov 27, 2001 at 12:57:53PM +0100, Lars Gullik Bjønnes wrote: > >>| BTW, why the crc value of the file is written twice to the .dep file ? >>| For example >>| /usr/lib/texmf/tex/latex/base/article.cls 100888126 100888126 >> >>old and new crc value. >>after a latex run th

[PATCH] mmap CRC

2001-11-27 Thread Ben Stanley
Here is the mmap patch for calculating CRCs quickly. This has fixed my slow CRC problem. It seems to work for me, but I think that Lars should put it into his check_crc test harness and check it a bit more before applying... In particular, I have not checked that you get the same CRC values us

[BUG] close prefs dialog abort in 1.1.6fix3

2001-11-27 Thread Ben Stanley
Since I just had to set/unset my temporary directory flag, I just discovered a bug in the preferences dialog :-(. My thesis has lots of pictures. Lots and lots. It takes LyX a few minutes to render previews of them all (I wish that the preview rendering was niced actually!). If I attempt to c

Re: recreation of .tex/.dvi

2001-11-27 Thread Ben Stanley
Lars Gullik Bjønnes wrote: >Andre Poenitz <[EMAIL PROTECTED]> writes: > >| On Tue, Nov 27, 2001 at 12:34:30PM +0200, Dekel Tsur wrote: > >>>Do you have use_tempir=false ? >>> >| Yes. > >I cannot see how the mtime patch can cause this, but it is probably >the culprit. > I just tried turning off te

summary caption support under LyX

2001-11-27 Thread Ben Stanley
Has any work been done to support summary captions, ie \caption[bar]{foo} where bar goes in the list of figures foo goes under the figure I currently have ridiculously long entries in my list of figures... Ben.

[PATCH] DepTable mtime speedup 1.1.6fix3

2001-11-26 Thread Ben Stanley
This patch adds mtime checks to speed up the updating of the DepTable. It is quite effective for me (I don't have istreambuf_iterator). I have thrown my thesis at it, and it works... you guys may wish to test it some more before comitting it. I have also added two new functions which I needed

[PATCH] line number info on paragraph 1.1.6

2001-11-26 Thread Ben Stanley
This is just Dekel's HEAD patch adapted for 1.1.6. I have tested it. Together with the previous line number patch, my entire thesis is now processed with the correct line count at the end. This includes math, figures, tables, figure and table floats, and probably a few other things too. ---

[BUG] sub-figures in figures not in a figure float cause latex infinite loop

2001-11-26 Thread Ben Stanley
LyX-1.1.6fix3 I just found that having a sub-figure enabled in a figure that is not inside a figure float causes latex to run forever... perhaps we shouldn't allow this? Perhaps this is a LaTeX bug, but we probably shouldn't allow sub-figures outside of figure floats. Note that I created thi

[PATCH] line number info on tables 1.1.6

2001-11-26 Thread Ben Stanley
Dekel Tsur wrote: >On Mon, Nov 26, 2001 at 03:42:37PM +0100, Jean-Marc Lasgouttes wrote: > >>>"Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes: >>> >>Andre> Please try with and without math stuff. I wouldn't be surprised >>Andre> if there was a difference. >> >>I did some light testing

  1   2   >