Re: caching BufferView (again)

2002-08-01 Thread Andre Poenitz
On Thu, Aug 01, 2002 at 01:54:36PM +0200, Lars Gullik Bjønnes wrote: > View different parts of the same document at the same time... In a split main LyX canvas or using several windows? Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they

Re: caching BufferView (again)

2002-08-01 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | On Thursday 01 August 2002 12:53 pm, Lars Gullik Bjønnes wrote: > | It appears you aren't against the basic idea. Good. > >> | I'd like, therefore, to change the LyXView store >> | public: >> |/// return the current buffer view >> |BufferView *

Re: lyx2lyx [It was Re: lyxconvert: version 0.0.2]

2002-08-01 Thread Jean-Marc Lasgouttes
> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: Lars> | Ah. I did not notice it... Note that you should always add a Lars> space | after #! Lars> Why? Autoconf info recommends it: Also, include a space after the exclamation point in interpreter specifications, like this:

Re: caching BufferView (again)

2002-08-01 Thread Angus Leeming
On Thursday 01 August 2002 1:26 pm, Andre Poenitz wrote: > I don't know emacs. What's C-x 2 and C-x 5 doing? C-x 2. Split the current window horizontally into two separate work areas. C-x 5. Create a new window. > [I don't even use multiple buffers in vim.] No, I find it easier to use several

Re: caching BufferView (again)

2002-08-01 Thread Angus Leeming
On Thursday 01 August 2002 1:31 pm, Lars Gullik Bjønnes wrote: > | Think of all those times when a BufferView * (or even a BufferView &) is > | passed to an inset. It makes no sense at all to pass a shared_ptr in > | these cases, but if the inset wants to cache this BufferView * then it > | can

Re: caching BufferView (again)

2002-08-01 Thread Lars Gullik Bjønnes
Andre Poenitz <[EMAIL PROTECTED]> writes: | On Thu, Aug 01, 2002 at 01:54:36PM +0200, Lars Gullik Bjønnes wrote: >> View different parts of the same document at the same time... > | In a split main LyX canvas or using several windows? Both... and you would be able to switch back and forth...

Re: lyx2lyx [It was Re: lyxconvert: version 0.0.2]

2002-08-01 Thread José Abílio Oliveira Matos
On Thursday 01 August 2002 12:56, Lars Gullik Bjønnes wrote: > > no but... > > sys.stderr.write(same_format); > > does not exactly tell a lot... Then we change it to no_convertion_because_same_format or some name that is more expressive. > There is a reason why gettext is not using this

Re: lyx2lyx [It was Re: lyxconvert: version 0.0.2]

2002-08-01 Thread Jean-Marc Lasgouttes
> "José" == José Abílio Oliveira Matos <[EMAIL PROTECTED]> writes: José> From pygettext: José> <**> José> There's one problem though; xgettext is the program that scans José> source code looking for message strings, but

Iterating over insets: a question

2002-08-01 Thread Angus Leeming
Before I dive into this caching stuff I'd like to finish the preview clean-up that started it off. The code below iterates over only "top level" insets that are owned directly by the Buffer. void Previews::generateBufferPreviews(Buffer const & buffer) const { PreviewLoader & ploader =

Re: lyx2lyx final touch (before commiting)

2002-08-01 Thread Jean-Marc Lasgouttes
> "José" == José Abílio Oliveira Matos <[EMAIL PROTECTED]> writes: José> What other files do I need to add? José> Makefile.am? Yes, probably, but Lars knows better about that José> Changelog? No José> .cvsignore? If you add Makefile.am, you will at least need Makefile.in in

Re: lyxconvert: version 0.0.2

2002-08-01 Thread Jean-Marc Lasgouttes
> "Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes: Andre> But I really don't care what language is used to implement Andre> something. So if nwe nee auto-detection we should look at the Andre> contents. OK, it was probably a bad idea. JMarc

Re: Iterating over insets: a question

2002-08-01 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | Before I dive into this caching stuff I'd like to finish the preview clean-up | that started it off. > | The code below iterates over only "top level" insets that are owned directly | by the Buffer. > | void Previews::generateBufferPreviews(Buffer

Re: Iterating over insets: a question

2002-08-01 Thread Angus Leeming
On Thursday 01 August 2002 2:58 pm, Lars Gullik Bjønnes wrote: > | Incidentally, what's the preferred STL algorithm for > | for (; it != end; ++it) { > | (*it)->addPreview(ploader); > | } > > some variant of > > for_each(begin, end, bind(::addPreview, ref(ploader))); Oh,

Re: caching BufferView (again)

2002-08-01 Thread Andre Poenitz
On Thu, Aug 01, 2002 at 02:29:16PM +0200, Jean-Marc Lasgouttes wrote: > Andre> While we are at it: Can anybody explain me the advantages of > Andre> multiple buffer views vs multiple LyX processes? > > Andre> Which kind of convienence would that buy us? > > Cut and paste between different views

Re: Iterating over insets: a question

2002-08-01 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | On Thursday 01 August 2002 2:58 pm, Lars Gullik Bjønnes wrote: >> | Incidentally, what's the preferred STL algorithm for >> |for (; it != end; ++it) { >> |(*it)->addPreview(ploader); >> |} >> >> some variant of >> >>

Re: lyx2lyx final touch (before commiting)

2002-08-01 Thread José Abílio Oliveira Matos
On Thursday 01 August 2002 14:54, Jean-Marc Lasgouttes wrote: > > "José" == José Abílio Oliveira Matos <[EMAIL PROTECTED]> > > writes: > > José> What other files do I need to add? > > José> Makefile.am? > > Yes, probably, but Lars knows better about that Is it ok to put only

Re: caching BufferView (again)

2002-08-01 Thread Jean-Marc Lasgouttes
> "Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes: Andre> On Thu, Aug 01, 2002 at 02:29:16PM +0200, Jean-Marc Lasgouttes Andre> wrote: While we are at it: Can anybody explain me the Andre> advantages of multiple buffer views vs multiple LyX processes? >> Andre> Which kind of convienence

Re: lyx2lyx final touch (before commiting)

2002-08-01 Thread Jean-Marc Lasgouttes
> "José" == José Abílio Oliveira Matos <[EMAIL PROTECTED]> writes: José> On Thursday 01 August 2002 14:54, Jean-Marc Lasgouttes wrote: >> > "José" == José Abílio Oliveira Matos >> <[EMAIL PROTECTED]> > writes: >> >> José> What other files do I need to add? >> >> José> Makefile.am?

Re: caching BufferView (again)

2002-08-01 Thread Andre Poenitz
On Thu, Aug 01, 2002 at 04:29:46PM +0200, Jean-Marc Lasgouttes wrote: > Andre> This would be possible if we had a flawless lyx->tex->lyx round > Andre> trip which is important for a few other things too. > > I do not think this is ever going to happen. There is some information > which is _not_

Re: lyx2lyx final touch (before commiting)

2002-08-01 Thread José Abílio Oliveira Matos
On Thursday 01 August 2002 15:32, Jean-Marc Lasgouttes wrote: > http://www.gnu.org/manual/automake-1.6.1/html_chapter/automake_11.html > > In which automake version has this been added? The documentation for 1.4p5 doesn't show it. So this answers your question. :-) > JMarc -- José Abílio

Re: caching BufferView (again)

2002-08-01 Thread Jean-Marc Lasgouttes
> "Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes: Andre> On Thu, Aug 01, 2002 at 04:29:46PM +0200, Jean-Marc Lasgouttes Andre> wrote: This would be possible if we had a flawless Andre> lyx->tex->lyx round trip which is important for a few other Andre> things too. >> I do not think this

Re: caching BufferView (again)

2002-08-01 Thread Andre Poenitz
On Thu, Aug 01, 2002 at 04:46:22PM +0200, Jean-Marc Lasgouttes wrote: > Andre> I would not be too sure about that. We could "write everything > Andre> to .tex" if a certain flag is set and honour this on read-back. > > Why do you need .tex?? Just output .lyx to the clipboard and parse it > back?

Re: caching BufferView (again)

2002-08-01 Thread Jean-Marc Lasgouttes
> "Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes: Andre> On Thu, Aug 01, 2002 at 04:46:22PM +0200, Jean-Marc Lasgouttes Andre> wrote: I would not be too sure about that. We could "write Andre> everything to .tex" if a certain flag is set and honour this on Andre> read-back. >> Why do

Re: lyx2lyx final touch (before commiting)

2002-08-01 Thread José Abílio Oliveira Matos
On Thursday 01 August 2002 15:58, Garst R. Reese wrote: > Just a tiny question. When I look in my lyxdocs directory, how do I know > if a file needs conversion? Do you want an option for lyx2lyx to give you that information? That is easy to do, and we do it now, just look to the first lines

Re: caching BufferView (again)

2002-08-01 Thread Andre Poenitz
On Thu, Aug 01, 2002 at 05:02:42PM +0200, Jean-Marc Lasgouttes wrote: > Andre> Apart from that, .tex is not exactly an 'extra format', is it? > > I really think that lyx<->tex conversion cannot be one-to-one exactly. I don't think this either. > So you are going to loose information. What

Re: lyx2lyx final touch (before commiting)

2002-08-01 Thread José Abílio Oliveira Matos
On Thursday 01 August 2002 16:24, Garst R. Reese wrote: > I guess my question is: How does an ordinary user know when to invoke > lyx2lyx? It shouldn't, IMHO. > By ordinary user, I mean one who may not even know how to look at a lyx > file other than with lyx, and knows nothing about

Re: caching BufferView (again)

2002-08-01 Thread Jean-Marc Lasgouttes
> "Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes: >> So you are going to loose information. What about quote insets? >> What you are going to propose is to add so much meta-information to >> .tex that you will have invented a new hybrid fileformat---which we >> may call .tyx ;)---,

Re: caching BufferView (again)

2002-08-01 Thread Andre Poenitz
On Thu, Aug 01, 2002 at 05:33:17PM +0200, Jean-Marc Lasgouttes wrote: > Andre> Ah... ok. So that you mean by 'new file format'. But we have > Andre> that already, it's called '.tex exported by LyX'. We put there > Andre> a \def\LyX{...} in the preamble etc. > > No, all things that we add to the

Re: caching BufferView (again)

2002-08-01 Thread Jean-Marc Lasgouttes
> "Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes: Andre> Hm. Maybe you are right here. But does it hurt to add a Andre> \def\lyxquote#1{} in the preamble and \lyxquote{...} in the Andre> text? We are going to have a lot of these. But, yes, everything is possible. >> I would actually

Re: caching BufferView (again)

2002-08-01 Thread Andre Poenitz
On Thu, Aug 01, 2002 at 06:00:31PM +0200, Jean-Marc Lasgouttes wrote: > - if there is an inset after cursor, toggle it > > - otherwise, if we are inside an inset, close it, and place cursor > after it > > - otherwise do nothing > > So your example would become C-e W C-i, which is (1)

Re: lyxconvert: version 0.0.2

2002-08-01 Thread Kayvan A. Sylvan
On Thu, Aug 01, 2002 at 11:49:15AM +0200, Jean-Marc Lasgouttes wrote: > > "Dekel" == Dekel Tsur <[EMAIL PROTECTED]> writes: > > Dekel> How about putting the files on CVS, in lib/lyxconvert/ ? We > Dekel> only need to made the changes so "make install" will create a > Dekel> symbolic link

André you've just swallowed my Vector!

2002-08-01 Thread Angus Leeming
Latest cvs. I have a macro Vector defined as: \begin_inset FormulaMacro \newcommand{\Vector}[1]{\boldsymbol #1} {#1} \end_inset Attached is what LyX makes of it. Moreover, previews fail with ! Undefined control sequence. \Vector l.167 $\Vector {a}=\left(a,b\right)$ is

Re: André you've just swallowed my Vector!

2002-08-01 Thread Angus Leeming
On Thursday 01 August 2002 5:30 pm, Angus Leeming wrote: > \begin_inset FormulaMacro > \newcommand{\Vector}[1]{\boldsymbol #1} > {#1} > \end_inset > is it something to do with the additional parameter perhaps? Yes, if I remove the additional parameter, all is Ok. Angus

Re: lyxconvert: version 0.0.2

2002-08-01 Thread Jean-Marc Lasgouttes
> "Kayvan" == Kayvan A Sylvan <[EMAIL PROTECTED]> writes: >> Will symbolic links work under cygwin? >> Kayvan> Yes. Thanks. Good to know. JMarc

Re: Action diff - look and diss

2002-08-01 Thread John Levon
On Thu, Aug 01, 2002 at 08:20:44AM +0200, Andre Poenitz wrote: > > Sure, but I would bet that mathed has some things easier on it compared > > to the requirements of insettabular/insettext. No-one (except Juergen I > > guess) really knows what they are though. > > More FUD. I think there will

Re: Action diff - look and diss

2002-08-01 Thread John Levon
On Thu, Aug 01, 2002 at 12:08:29PM +0200, Jean-Marc Lasgouttes wrote: > It looks nice to me and I do not have many clever comments. A question > though: we will be adding lots of objects with virtual methods (or > lots of virtual methods to exisiting insets). What is the price we > will have to

Re: key combinations not showing up...

2002-08-01 Thread John Levon
On Thu, Aug 01, 2002 at 09:13:24AM +0200, Andre Poenitz wrote: > > Andre, why is this ? > > Hm... because no every inset displays its "info" yet. I usually change that > as soon as I have to touch the inset but I usually don't go through every > 30+ insets in one swoop. OK. > But I think

Re: lyx2lyx [It was Re: lyxconvert: version 0.0.2]

2002-08-01 Thread John Levon
On Thu, Aug 01, 2002 at 12:41:23PM +0200, Jean-Marc Lasgouttes wrote: > José> What about the present solution: #!/usr/bin/env python > > Ah. I did not notice it... Note that you should always add a space > after #! Is there really a system that still uses the 4-byte magic but the env trick

Re: caching BufferView (again)

2002-08-01 Thread John Levon
On Thu, Aug 01, 2002 at 11:39:13AM +0100, Angus Leeming wrote: > Lars has mentioned using boost::weak_ptr in just such a context and I'd like > to do so here. From the boost docs > > = > http://www.boost.org/libs/smart_ptr/weak_ptr.htm How can an inset

Re: caching BufferView (again)

2002-08-01 Thread John Levon
On Thu, Aug 01, 2002 at 01:17:35PM +0200, Andre Poenitz wrote: > While we are at it: Can anybody explain me the advantages of multiple > buffer views vs multiple LyX processes? Drag and drop cross-document references Multiple views on a single document Resource usage LyX-content cut and paste

Re: the patch...

2002-08-01 Thread Kuba Ober
On środa 31 lipiec 2002 05:15 pm, Martin Vermeer wrote: > On Wed, Jul 31, 2002 at 01:26:23PM +0200, Andre Poenitz wrote: > > On Tue, Jul 30, 2002 at 08:59:24PM +0200, Lars Gullik Bjønnes wrote: > > > Andre Poenitz <[EMAIL PROTECTED]> writes: > > > | + * configure.m4: > > > | + *

Re: caching BufferView (again)

2002-08-01 Thread Angus Leeming
On Thursday 01 August 2002 6:12 pm, John Levon wrote: > How can an inset survive the last view onto a document ? If it caches the last BufferView * passed to draw, that BufferView is destroyed but another one still exists and then tries to use this BufferView * And that's not exactly

Re: lyx-devel src/graphics/: ChangeLog Makefile.am PreviewLoader.C ...

2002-08-01 Thread Angus Leeming
> Log message: > Previews for \input insets. > Refactor code common to InsetInclude and InsetFormula into a new > PreviewedInset class. caveats and notes: 1. insets inside insets will not be converted to previews when the document is first loaded because void

Re: caching BufferView (again)

2002-08-01 Thread David Kastrup
Angus Leeming <[EMAIL PROTECTED]> writes: > On Thursday 01 August 2002 1:26 pm, Andre Poenitz wrote: > > I don't know emacs. What's C-x 2 and C-x 5 doing? > > C-x 2. Split the current window horizontally into two separate work > areas. It appears you have become alien to either Emacs or the

Re: caching BufferView (again)

2002-08-01 Thread David Kastrup
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: > > "Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes: > > Andre> On Thu, Aug 01, 2002 at 02:29:16PM +0200, Jean-Marc Lasgouttes > Andre> wrote: While we are at it: Can anybody explain me the > Andre> advantages of multiple buffer views vs

Re: Create a new file with "File open"

2002-08-01 Thread John Levon
On Thu, Aug 01, 2002 at 12:17:08PM +0200, Jean-Marc Lasgouttes wrote: > + Buffer * buffer = bufferlist.newFile(filename, ""); > > I thought that the second argument to newFile was a bool. Buffer * BufferList::newFile(string const & name, string tname, bool isNamed) Though that

Re: Re: seminar.layout doesn't work as expected

2002-08-01 Thread Guenter Milde
On 30 Jul 2002 10:37:28 +0200 wrote Jean-Marc Lasgouttes <[EMAIL PROTECTED]>: > > On 17 Jul 2002 11:33:15 -0400 wrote German Poo Caaman~o > >> Since lyx-1.1.6-fix (AFAIR) I've been having some problems with > >> seminar.layout. I defined frames on my slides, but now one slide > >> appears with

autoconf 2.53 and automake 1.6.2

2002-08-01 Thread Lars Gullik Bjønnes
I just upgraded my system to use these and then I tried to build lyx... ... close to _no_ problems... Of course since we really want to convert to 2.53 fully some time in the future I did some changes... Attached is the patch that show what I did... There are still some small problems... but

Re: autoconf 2.53 and automake 1.6.2

2002-08-01 Thread John Levon
On Fri, Aug 02, 2002 at 12:14:16AM +0200, Lars Gullik Bjønnes wrote: > Attached is the patch that show what I did... > There are still some small problems... but nothing that hinders > building lyx. Did you build qt2 ? Did you try the old tools with your patch ? I'd rather not go through the

LyXCursor docs

2002-08-01 Thread John Levon
Please check the stuff I've guessed, and fill in the FIXMEs thanks john Index: lyxcursor.h === RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/lyxcursor.h,v retrieving revision 1.25 diff -u -r1.25 lyxcursor.h --- lyxcursor.h 16 Apr

LyXText->status

2002-08-01 Thread John Levon
2638 // We should only go up with refreshing code so this means that if 2639 // we have a MORE refresh we should never set it to LITTLE if we still 2640 // didn't handle it (and then it will be UNCHANGED. Now as long as 2641 // we stay inside one

Re: André you've just swallowed my Vector!

2002-08-01 Thread Andre Poenitz
On Thu, Aug 01, 2002 at 05:01:46PM +0100, Angus Leeming wrote: > On Thursday 01 August 2002 5:30 pm, Angus Leeming wrote: > > \begin_inset FormulaMacro > > \newcommand{\Vector}[1]{\boldsymbol #1} > > {#1} > > \end_inset > > > is it something to do with the additional parameter perhaps? > >

math-macro is broken

2002-08-01 Thread Herbert Voss
- math-macro py - insert the pythagoras without parameter and call it py - open a mathbox - insert \py -> nothing to see - export to latex -> \newcommand{\py}{c^{2}=a^{2}+b^{2}} a macro \[ \ \] - save and reopen the doc -> the macro is gone Herbert -- http://www.lyx.org/help/

Re: Action diff - look and diss

2002-08-01 Thread Andre Poenitz
On Thu, Aug 01, 2002 at 06:04:19PM +0100, John Levon wrote: > How would you deal with inside an insettext inside a cell ? I don't think that to go to the beginning of the net paragraph is overly sensible. In fact, I discovered that key binding yesterday when trying to understand what you were

<    1   2