Re: [RFC][PATCH] Literate modules (noweb and sweave)

2009-02-19 Thread Jean-Marc Lasgouttes
Hi Gregor, I am in a hurry now because I leave for a 1 week vacation. I'll return to you next week. JMarc

RE: [RFC][PATCH] Literate modules (noweb and sweave)

2009-02-19 Thread Gorjanc Gregor
>>Gorjanc Gregor writes: >> Can you clarify about how R would be able to read this variable? > > With Sys.getenv() OK. Then this could be <<>>= setwd(dir=Sys.getenv(LYX_...)) @ But I would vote for automatic solution. I agree that this needs more work and that adding the above code by the user

Bugs 5744 and 5746 (crashes)

2009-02-19 Thread Vincent van Ravesteijn
The attached patch 'solves' these two bugs, but it feels like a dirty fix. The problem is that after the last backspace: void GuiCompleter::hideInline calls void BufferView::setInlineCompletion which compares cur with old (which is the stored pos) with bool samePar which calls &old.i

Re: [RFC][PATCH] Literate modules (noweb and sweave)

2009-02-19 Thread Jean-Marc Lasgouttes
Gorjanc Gregor writes: > Can you clarify about how R would be able to read this variable? With Sys.getenv() > Does this mean that the user would have to use this variable in the > chunks explicitly? It seems rather clumsy and it puts burden on the > user. Yes. > I think this should be done a

RE: [RFC][PATCH] Literate modules (noweb and sweave)

2009-02-19 Thread Gorjanc Gregor
>>Gorjanc Gregor writes: >> In this way there would be no problems for R, but this creates another >> problem with paths for produced figures. Do you see any other solution >> along these lines? > After looking desperately for an equivalent of PATH in R, my idea was to > define a variable, like >

Re: [RFC][PATCH] Literate modules (noweb and sweave)

2009-02-19 Thread Jean-Marc Lasgouttes
Gorjanc Gregor writes: > In this way there would be no problems for R, but this creates another > problem with paths for produced figures. Do you see any other solution > along these lines? After looking desperately for an equivalent of PATH in R, my idea was to define a variable, like document

RE: [RFC][PATCH] Literate modules (noweb and sweave)

2009-02-19 Thread Gorjanc Gregor
> maybe the best is to CC Gorjan for feedback since he put lot of investigation > effort into R<->LyX communication thourgh noweb. Thank you JMarc for this work and thank you Pavel for adding me into the discussion. I will update my local lyx repo and explore a bit. JMarc. About the working dire

Re: [Cvslog] r28563 - /lyx-devel/trunk/src/insets/InsetInclude.cpp

2009-02-19 Thread Vincent van Ravesteijn
v...@lyx.org schreef: Author: vfr Date: Thu Feb 19 21:53:35 2009 New Revision: 28563 URL: http://www.lyx.org/trac/changeset/28563 Log: Fix a crash when removing the label of an included Program Listing. Modified: lyx-devel/trunk/src/insets/InsetInclude.cpp Modified: lyx-devel/trunk/src/ins

Re: New feature survey: incremental search in xref dialog

2009-02-19 Thread Manoj Rajagopalan
Guenter Milde wrote: You mean a filtering similar to what is done in the Style select box? This would be great! Günter I'm not familiar with the style selection box - how do I activate it? -- Manoj

Re: patch for case-insensitive reference sorting

2009-02-19 Thread Vincent van Ravesteijn
rgheck schreef: Vincent van Ravesteijn - TNW wrote: * Why don't we need the case_insensitive_ private member? I ask this because we do have the sort_ private member. There might be a reason why the following is needed in updateContents(): "sortCB->setChecked(sort_);". Otherwise we could remove t

Re: [PATCH] Move More Module Code Around

2009-02-19 Thread rgheck
Andre Poenitz wrote: On Thu, Feb 19, 2009 at 12:30:55PM -0500, rgheck wrote: This patch is pretty simple: It just moves some routines needed to sync up the modules into the newish class LayoutModuleList. I think this is pretty straightforward, and it seems to work, but I thought I'd post i

Re: patch for case-insensitive reference sorting

2009-02-19 Thread rgheck
Vincent van Ravesteijn - TNW wrote: * Why don't we need the case_insensitive_ private member? I ask this because we do have the sort_ private member. There might be a reason why the following is needed in updateContents(): "sortCB->setChecked(sort_);". Otherwise we could remove the sort_ member.

Re: [PATCH] Move More Module Code Around

2009-02-19 Thread Andre Poenitz
On Thu, Feb 19, 2009 at 12:30:55PM -0500, rgheck wrote: > This patch is pretty simple: It just moves some routines needed to sync > up the modules into the newish class LayoutModuleList. I think this is > pretty straightforward, and it seems to work, but I thought I'd post it > before committ

RE: patch for case-insensitive reference sorting

2009-02-19 Thread Vincent van Ravesteijn - TNW
>Subject: Re: patch for case-insensitive reference sorting > >Attaching v3 of the patch after taking into various suggestions: > * The caseInsensitiveCB should be set to disabled (at the same place where sortCB is disabled in the constructor). This because of e.g. read-only documents for which no

RE: patch for case-insensitive reference sorting

2009-02-19 Thread Vincent van Ravesteijn - TNW
>Subject: Re: patch for case-insensitive reference sorting > >Attaching v3 of the patch after taking into various suggestions: I'd still prefer a case-sensitive checkbox (as mentioned by Richard, Juergen, Pavel and me now). Or is this a detail ? Vincent

Re: patch for case-insensitive reference sorting

2009-02-19 Thread rgheck
Manoj Rajagopalan wrote: Attaching v3 of the patch after taking into various suggestions: Pavel Sanda wrote: Manoj Rajagopalan wrote: we also need your stating your contributions are made under GPL-2, eg http://marc.info/?l=lyx-devel&m=122469079629276 I hereby grant permission to license my

[PATCH] Move More Module Code Around

2009-02-19 Thread rgheck
This patch is pretty simple: It just moves some routines needed to sync up the modules into the newish class LayoutModuleList. I think this is pretty straightforward, and it seems to work, but I thought I'd post it before committing in case anyone has any other thoughts. JMarc: I updated tex

Re: patch for case-insensitive reference sorting

2009-02-19 Thread Manoj Rajagopalan
Attaching v3 of the patch after taking into various suggestions: Pavel Sanda wrote: Manoj Rajagopalan wrote: we also need your stating your contributions are made under GPL-2, eg http://marc.info/?l=lyx-devel&m=122469079629276 I hereby grant permission to license my contributions to LyX unde

Re: execute code in verbatim env: matlab etc

2009-02-19 Thread Jean-Marc Lasgouttes
A region which contains source code of say Matlab can be marked and then executed. That is achieved by a engine (written in lisp) which connects to the shell (I don't think this works in MS Windows). I am not sure that this works for other languages, but Matlab has the advantage of being a sc

Re: feature request: named sessions

2009-02-19 Thread Manoj Rajagopalan
Vincent van Ravesteijn - TNW wrote: Is it really necessary to have a new top level menu item ? Giving a name to a session could be done when saving, loading sessions could be done with the same File->Open dialog and File->Recent items. Then we only need to add to the File menu would be "Sa

RE: feature request: named sessions

2009-02-19 Thread Vincent van Ravesteijn - TNW
>It's disconcerting to have a window with 3 tabs in it and to try >(with the keyboard) to cycle around these tabs only to find more >tabs being added to that window for documents that are displayed >only in other windows. (Is that description clear? ... Is that a >problem for platforms other than

Re: feature request: named sessions

2009-02-19 Thread Bennett Helm
On Thu, Feb 19, 2009 at 9:50 AM, rgheck wrote: > Vincent van Ravesteijn - TNW wrote: >> >> >>> >>> I have started a wiki page to maintain an informal spec: >>> >>> http://wiki.lyx.org/Devel/NamedSessions >>> >>> Please examine/edit to offer your suggestions. I've tagged >>> it with [[!LyX 2_0]] th

Re: feature request: named sessions

2009-02-19 Thread rgheck
Vincent van Ravesteijn - TNW wrote: I have started a wiki page to maintain an informal spec: http://wiki.lyx.org/Devel/NamedSessions Please examine/edit to offer your suggestions. I've tagged it with [[!LyX 2_0]] though I don't know when v2.0 >is slated for release - I didn't see anyone us

execute code in verbatim env: matlab etc

2009-02-19 Thread Uwe Brauer
Hello The following is possible in the (X)emacs and to some extend in MS Office (still not in OO). A region which contains source code of say Matlab can be marked and then executed. That is achieved by a engine (written in lisp) which connects to the shell (I don't think this works in MS Windows

Re: Getting Started Developing LyX

2009-02-19 Thread David Mertens
Thank you all for your responses. I remember thinking at one point months ago that I should learn to work with svn but I only gave it about 30 min, so I was generally overwhelmed by it. Now that I have a little more time, I have found the red book to be great. rh's instructions cover probably 90

Re: New feature survey: incremental search in xref dialog

2009-02-19 Thread Guenter Milde
On 2009-02-17, Manoj Rajagopalan wrote: > My documents have a large number of labels and I find myself > scrolling often to try to locate items to cross-reference. I thought a > feature that short-lists the labels based on the string entered into the > reference line edit (referenceED widge

Re: feature request: named sessions

2009-02-19 Thread Guenter Milde
On 2009-02-18, Manoj Rajagopalan wrote: > I have started a wiki page to maintain an informal spec: > http://wiki.lyx.org/Devel/NamedSessions > Please examine/edit to offer your suggestions. I added two alternative suggestions: * implement as separate app and use the lyxserver. (I can open ly