Imenu on menubar doesn't work after switching modes

Bug #272526 reported by Eric Klaus
2
Affects Status Importance Assigned to Milestone
nXhtml
Fix Released
Medium
Unassigned

Bug Description

I'm using Emacs 22.2.1 on Windows and AIX. The bug exists in both Windows and AIX.
I'm using NXHTML version 1.60.

If the major mode is switched after adding an imenu to the menubar, any future imenus added to the menubar don't work.
The imenu interactive function works correctly in all cases.
To reproduce this problem:
1. Open an html file with a php chunk.
2. In the html portion of the file, add an imenu to the menubar with (imenu-add-to-menubar "htmlMenu")
3. Click in the php portion of the file to change major modes.
4. Add the php Imenu to the menubar with (imenu-add-to-menubar "phpMenu")
5. Notice that phpMenu does not work.
6. Click in an html chunk to switch the major mode again.
7. Add the html Imenu to the menubar with (imenu-add-to-menubar "htmlMenu2")
8. Notice that the htmlMenu2 does not work.

Revision history for this message
lborgman (lennart-borgman) wrote :

Hi Eric

Thanks for the bug report. I am a bit unsure about this one, because I do not use imenu myself very much. So your help is very much appreciated.

I have committed a new version of mumamo.el that I hope fix the problem. Could you please check out that file and try it? (You can download it from the web interface at Launchpad if you do not use bazaar.)

Changed in nxhtml:
status: New → In Progress
Revision history for this message
Eric Klaus (etklaus) wrote : Re: [Bug 272526] Re: Imenu on menubar doesn't work after switching modes

I might be looking in the wrong place, but it seems that the latest version
of mumamo.el was committed on 2008-09-18 12:19:17.
I went ahead and rechecked out the entire nxhtml branch, but the problem
still exists.

On Mon, Sep 22, 2008 at 6:35 PM, lborgman <email address hidden> wrote:

> Hi Eric
>
> Thanks for the bug report. I am a bit unsure about this one, because I
> do not use imenu myself very much. So your help is very much
> appreciated.
>
> I have committed a new version of mumamo.el that I hope fix the problem.
> Could you please check out that file and try it? (You can download it
> from the web interface at Launchpad if you do not use bazaar.)
>
> ** Changed in: nxhtml
> Status: New => In Progress
>
> --
> Imenu on menubar doesn't work after switching modes
> https://bugs.launchpad.net/bugs/272526
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in nXhtml for Emacs: In Progress
>
> Bug description:
> I'm using Emacs 22.2.1 on Windows and AIX. The bug exists in both Windows
> and AIX.
> I'm using NXHTML version 1.60.
>
> If the major mode is switched after adding an imenu to the menubar, any
> future imenus added to the menubar don't work.
> The imenu interactive function works correctly in all cases.
> To reproduce this problem:
> 1. Open an html file with a php chunk.
> 2. In the html portion of the file, add an imenu to the menubar with
> (imenu-add-to-menubar "htmlMenu")
> 3. Click in the php portion of the file to change major modes.
> 4. Add the php Imenu to the menubar with (imenu-add-to-menubar "phpMenu")
> 5. Notice that phpMenu does not work.
> 6. Click in an html chunk to switch the major mode again.
> 7. Add the html Imenu to the menubar with (imenu-add-to-menubar
> "htmlMenu2")
> 8. Notice that the htmlMenu2 does not work.
>

Revision history for this message
lborgman (lennart-borgman) wrote :

Hi Eric

Sorry for the trouble. Something must have went wrong with my commit. Thanks for telling me.

I have made a new commit and I hope everything is there now.

Revision history for this message
Eric Klaus (etklaus) wrote :

That fixed it. Everything works great now. Thanks!

Changed in nxhtml:
status: In Progress → Fix Committed
Changed in nxhtml:
importance: Undecided → Medium
Changed in nxhtml:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.