Re: [Better patch] Re: Bug: Problem with "Navigate" menu and Branches

2003-10-27 Thread Martin Vermeer
On Sat, Oct 25, 2003 at 11:28:00AM +0200, Alfredo Braunstein spake thusly: > Martin Vermeer wrote: > > > The problem was indeed, that if the target paragraph is inside an > > inset, then in lyxfunc.C dispatch() LFUN_GOTO_PARAGRAPH we have > > a call to setCursor() which takes its 'this' from the

Re: [Better patch] Re: Bug: Problem with "Navigate" menu and Branches

2003-10-25 Thread Alfredo Braunstein
Martin Vermeer wrote: > The problem was indeed, that if the target paragraph is inside an > inset, then in lyxfunc.C dispatch() LFUN_GOTO_PARAGRAPH we have > a call to setCursor() which takes its 'this' from the main LyXText of > the document, while the paragraph is in the internal LyXText of the

Re: [Better patch] Re: Bug: Problem with "Navigate" menu and Branches

2003-10-25 Thread Martin Vermeer
On Fri, Oct 24, 2003 at 11:24:22AM -0700, Kayvan A. Sylvan spake thusly: > > With or without, I propose to check this in. It solves the critical > > side of the problem even while lacking a desirable feature. > > I agree. We should continue to hammer at this, though. Anybody else have > any ideas

Re: [Better patch] Re: Bug: Problem with "Navigate" menu and Branches

2003-10-24 Thread Kayvan A. Sylvan
On Fri, Oct 24, 2003 at 11:24:29AM +0300, Martin Vermeer wrote: > > Now I modified lyxfunc.C so it takes the correct LyXText in this case, > and indeed distance() works OK now. Only... the cursor doesn't > actually get positioned. In fact it doesn't budge at all. Bummer. > > So we still cannot na

[Better patch] Re: Bug: Problem with "Navigate" menu and Branches

2003-10-24 Thread Martin Vermeer
Kayvan and Lars, here is a more complete patch which however still does not satisfy me. It does the following things: 1) suppresses the menu shortcut for sectioning headers inside (branch, note) insets; 2) prevents the "hanging" of LyX in the std:distance function in text.C: parOffset(). The p

[Patch] Re: Bug: Problem with "Navigate" menu and Branches

2003-10-23 Thread Martin Vermeer
On Thu, Oct 23, 2003 at 12:42:43AM -0700, Kayvan A. Sylvan spake thusly: BTW it seems my patch of this morning never made it to the list. Attached, fixes at least the error message caused by the menu shortcuts. The problem that my other post refers to, it that LyX still freezes (endless loop, app

Re: Bug: Problem with "Navigate" menu and Branches

2003-10-23 Thread Martin Vermeer
On Thu, Oct 23, 2003 at 12:42:43AM -0700, Kayvan A. Sylvan spake thusly: > Do not let your heart be troubled. It is a step in the right direction. > You've done good work! The one remaining issue is with the Navigate menu > when a branch encloses a Chapter or Section. Kayvan, I tried to analyse

[Patch] Re: Bug: Problem with "Navigate" menu and Branches

2003-10-23 Thread Martin Vermeer
On Thu, Oct 23, 2003 at 12:42:43AM -0700, Kayvan A. Sylvan spake thusly: > > On Thu, Oct 23, 2003 at 09:18:28AM +0300, Martin Vermeer wrote: > > > Somewhere near the beginning of the document, in the "Teacher Edition" > > > branch, in an ERT inset, I put: > > > > > >\teachermanualtrue > > >

Re: Bug: Problem with "Navigate" menu and Branches

2003-10-23 Thread Kayvan A. Sylvan
On Thu, Oct 23, 2003 at 09:18:28AM +0300, Martin Vermeer wrote: > > Somewhere near the beginning of the document, in the "Teacher Edition" > > branch, in an ERT inset, I put: > > > >\teachermanualtrue > > > > Now, it's easy to generate both versions of the document. > > > >

Re: Bug: Problem with "Navigate" menu and Branches

2003-10-22 Thread Martin Vermeer
On Wed, Oct 22, 2003 at 08:00:41PM -0700, Kayvan A. Sylvan spake thusly: > > On Sun, Sep 21, 2003 at 09:04:56AM -0700, Kayvan A. Sylvan wrote: > > > My usage is for a section (or even a Chapter) that is included in one > > version (with the branch enabled) and not included in another version. > >

Re: Bug: Problem with "Navigate" menu and Branches

2003-10-22 Thread Kayvan A. Sylvan
On Sun, Sep 21, 2003 at 09:04:56AM -0700, Kayvan A. Sylvan wrote: > My usage is for a section (or even a Chapter) that is included in one > version (with the branch enabled) and not included in another version. > > For example: Imagine an academic book that has a "Teacher's Enhanced > Edition" wh

Re: Bug: Problem with "Navigate" menu and Branches

2003-10-20 Thread Kayvan A. Sylvan
> Kayvan> It's not quite right. > > Is the problem identical with 1.3.x (with note inset)? If it is, could > you send a small test file. I don't know if it's identical with Note insets. I can not test with 1.3.x right now. I have attached an example file. -- Kayvan A. Sylvan | Proud h

Re: Bug: Problem with "Navigate" menu and Branches

2003-10-20 Thread Jean-Marc Lasgouttes
> "Kayvan" == Kayvan A Sylvan <[EMAIL PROTECTED]> writes: Kayvan> On Mon, Oct 20, 2003 at 02:56:15PM +0200, Jean-Marc Lasgouttes Kayvan> wrote: >> > "Kayvan" == Kayvan A Sylvan <[EMAIL PROTECTED]> writes: >> Kayvan> Does anyone have any ideas for how to fix this? The problem in Kayvan> a

Re: Bug: Problem with "Navigate" menu and Branches

2003-10-20 Thread Kayvan A. Sylvan
On Mon, Oct 20, 2003 at 02:56:15PM +0200, Jean-Marc Lasgouttes wrote: > > "Kayvan" == Kayvan A Sylvan <[EMAIL PROTECTED]> writes: > > Kayvan> Does anyone have any ideas for how to fix this? The problem in > Kayvan> a nutshell is that Branches that contain Chapters break the > Kayvan> Navigatie

Re: Bug: Problem with "Navigate" menu and Branches

2003-10-20 Thread Jean-Marc Lasgouttes
> "Kayvan" == Kayvan A Sylvan <[EMAIL PROTECTED]> writes: Kayvan> Does anyone have any ideas for how to fix this? The problem in Kayvan> a nutshell is that Branches that contain Chapters break the Kayvan> Navigatie menu. Could you try the following patch? I only tested the equivalent patch on

Re: Bug: Problem with "Navigate" menu and Branches

2003-10-18 Thread Martin Vermeer
On Fri, Oct 17, 2003 at 08:46:01AM +0200, Andre Poenitz spake thusly: ... > > Does anyone have any ideas for how to fix this? The problem in a nutshell > > is that Branches that contain Chapters break the Navigatie menu. > > Same for note insets... > > Andre' So, turn shortcuts off if there is

Re: Bug: Problem with "Navigate" menu and Branches

2003-10-16 Thread Andre Poenitz
On Thu, Oct 16, 2003 at 01:05:32PM -0700, Kayvan A. Sylvan wrote: > On Sat, Sep 20, 2003 at 10:57:36PM -0700, Kayvan A. Sylvan wrote: > > Load the document below with current CVS. > > > > Click on the Navigate menu. You will see something like: > > > > _1_ Test > > _2_ Another > > _3_

Re: Bug: Problem with "Navigate" menu and Branches

2003-10-16 Thread Kayvan A. Sylvan
On Sat, Sep 20, 2003 at 10:57:36PM -0700, Kayvan A. Sylvan wrote: > Load the document below with current CVS. > > Click on the Navigate menu. You will see something like: > > _1_ Test > _2_ Another > _3_ Section 3 > 1 Section inside branch > > and the message on the console: >

Re: Bug: Problem with "Navigate" menu and Branches

2003-09-22 Thread Andre Poenitz
On Mon, Sep 22, 2003 at 09:31:58AM +0300, Martin Vermeer wrote: > > I don't know. Is there some way of making the Chapter/Section numbering > > global to the document instead of local to the insets? I really don't > > know the code, so I'm just tossing out ideas. > > Hmmm. LyX kernel experts? What

Re: Bug: Problem with "Navigate" menu and Branches

2003-09-21 Thread Martin Vermeer
On Sun, Sep 21, 2003 at 01:53:08PM -0700, Kayvan A. Sylvan spake thusly: > > On Sun, Sep 21, 2003 at 07:40:08PM +0300, Martin Vermeer wrote: > > > > > > I don't really agree with limiting this. > > > > > > It certainly breaks the principle of least surprise. > > > > > > The Section numbering on

Re: Bug: Problem with "Navigate" menu and Branches

2003-09-21 Thread Kayvan A. Sylvan
On Sun, Sep 21, 2003 at 07:40:08PM +0300, Martin Vermeer wrote: > > > > I don't really agree with limiting this. > > > > It certainly breaks the principle of least surprise. > > > > The Section numbering on-screen should just continue as normal. In this way, > > there might be a discrepancy betw

Re: Bug: Problem with "Navigate" menu and Branches

2003-09-21 Thread Martin Vermeer
On Sun, Sep 21, 2003 at 09:04:56AM -0700, Kayvan A. Sylvan spake thusly: > > > Actually you shouldn't use Branches like that. My idea was that the > > inset should be *in* the Section layout paragraph, not *contain* it. > > As you see, also the numbering doesn't work. > > Why shouldn't I want t

Re: Bug: Problem with "Navigate" menu and Branches

2003-09-21 Thread Kayvan A. Sylvan
On Sun, Sep 21, 2003 at 06:10:09PM +0300, Martin Vermeer wrote: > On Sat, Sep 20, 2003 at 10:57:36PM -0700, Kayvan A. Sylvan spake thusly: > > > > Load the document below with current CVS. > > > > Click on the Navigate menu. You will see something like: > > > > _1_ Test > > _2_ Another >

Re: Bug: Problem with "Navigate" menu and Branches

2003-09-21 Thread Martin Vermeer
On Sat, Sep 20, 2003 at 10:57:36PM -0700, Kayvan A. Sylvan spake thusly: > > Load the document below with current CVS. > > Click on the Navigate menu. You will see something like: > > _1_ Test > _2_ Another > _3_ Section 3 > 1 Section inside branch > > and the message on the c

Bug: Problem with "Navigate" menu and Branches

2003-09-20 Thread Kayvan A. Sylvan
Load the document below with current CVS. Click on the Navigate menu. You will see something like: _1_ Test _2_ Another _3_ Section 3 1 Section inside branch and the message on the console: Menu warning: menu entry "1 Section inside branch" does not contain shortcut `4'. It m