GNU bug report logs - #10706
23.3; Imenu behaved differently with submenus

Previous Next

Package: emacs;

Reported by: "Thomas D. Dean" <tomdean <at> speakeasy.org>

Date: Thu, 2 Feb 2012 22:31:02 UTC

Severity: minor

Tags: moreinfo

Found in version 23.3

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 10706 in the body.
You can then email your comments to 10706 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#10706; Package emacs. (Thu, 02 Feb 2012 22:31:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Thomas D. Dean" <tomdean <at> speakeasy.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 02 Feb 2012 22:31:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "Thomas D. Dean" <tomdean <at> speakeasy.org>
To: bug-gnu-emacs <at> gnu.org
Subject: 23.3; Imenu behaved differently with submenus
Date: Thu, 02 Feb 2012 14:29:14 -0800
If the value of imenu-max-items is less than the number of items to
display, imenu displays submenus.  To select an item from a sub menu, I
must use <return> rather than <mouse-1>

If the value of imenu-max-items is greater than the number of items to
display, imenu displays one menu.  To select an item from the menu, I
may use <mouse-1>

Create a file, xx.c containing
int a1(){}
int a2(){}
...
int an(){}

Set the value of imenu-max-items to some value more than n.  Press <mouse-3>
and select an item with <mouse-1>.  Emacs will go to that function 
definition.

Set the value of imenu-max-items to some value less than n.  Press
<mouse-3> and select a submenu item with <mouse-1>.  Nothing happens.
Press <mouse-3> and highlight a submeni item with the pointer and press
<return>.  Emacs will go to that function definition.



In GNU Emacs 23.3.1 (amd64-portbld-freebsd9.0, GTK+ Version 2.24.6)
 of 2012-01-07 on P9X79.tddhome
Windowing system distributor `The X.Org Foundation', version 11.0.10707000
configured using `configure  '--localstatedir=/var' 
'--with-x-toolkit=gtk' '--x-libraries=/usr/local/lib' 
'--x-includes=/usr/local/include' '--prefix=/usr/local' 
'--mandir=/usr/local/man' '--infodir=/usr/local/info/' 
'--build=amd64-portbld-freebsd9.0' 
'build_alias=amd64-portbld-freebsd9.0' 'CC=gcc' 'CFLAGS=-O2 -pipe 
-fno-strict-aliasing' 'LDFLAGS= -L/usr/local/lib 
-rpath=/usr/lib:/usr/local/lib' 'CPPFLAGS=-I/usr/local/include' 'CPP=cpp''

Important settings:
  value of $LC_ALL: C
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: nil
  value of $XMODIFIERS: nil
  locale-coding-system: nil
  default enable-multibyte-characters: t

Major mode: C/l

Minor modes in effect:
  show-paren-mode: t
  shell-dirtrack-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t
  abbrev-mode: t

Recent input:
C-x C-f x x . c <return> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <down-mouse-3>
<mouse-3> <help-echo> <help-echo> <down-mouse-3> <mouse-3>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<menu-bar> <help-menu> <send-emacs-bug-report>

Recent messages:
Loading `~/.emacs.d/emacs.lisp/scilab.el': old-style backquotes detected!
Loading /home/tomdean/.emacs.d/emacs.lisp/basic.el (source)...done
Loading iso-transl...done
No desktop file.
All done, tomdean.
Loading gnus...done
Loading paren...done
For information about GNU Emacs and the GNU system, type C-h C-a.
Loading vc-cvs...done
Mark set

Load-path shadows:
~/.emacs.d/emacs.lisp/cc-mode/cc-cmds hides 
/usr/local/share/emacs/23.3/lisp/progmodes/cc-cmds
~/.emacs.d/emacs.lisp/cc-mode/cc-bytecomp hides 
/usr/local/share/emacs/23.3/lisp/progmodes/cc-bytecomp
~/.emacs.d/emacs.lisp/cc-mode/cc-align hides 
/usr/local/share/emacs/23.3/lisp/progmodes/cc-align
~/.emacs.d/emacs.lisp/verilog-mode hides 
/usr/local/share/emacs/23.3/lisp/progmodes/verilog-mode
~/.emacs.d/emacs.lisp/cc-mode/cc-langs hides 
/usr/local/share/emacs/23.3/lisp/progmodes/cc-langs
~/.emacs.d/emacs.lisp/cc-mode/cc-vars hides 
/usr/local/share/emacs/23.3/lisp/progmodes/cc-vars
~/.emacs.d/emacs.lisp/cc-mode/cc-mode hides 
/usr/local/share/emacs/23.3/lisp/progmodes/cc-mode
~/.emacs.d/emacs.lisp/cc-mode/cc-styles hides 
/usr/local/share/emacs/23.3/lisp/progmodes/cc-styles
~/.emacs.d/emacs.lisp/cc-mode/cc-compat hides 
/usr/local/share/emacs/23.3/lisp/progmodes/cc-compat
~/.emacs.d/emacs.lisp/cc-mode/cc-fonts hides 
/usr/local/share/emacs/23.3/lisp/progmodes/cc-fonts
~/.emacs.d/emacs.lisp/cc-mode/cc-engine hides 
/usr/local/share/emacs/23.3/lisp/progmodes/cc-engine
~/.emacs.d/emacs.lisp/cc-mode/cc-defs hides 
/usr/local/share/emacs/23.3/lisp/progmodes/cc-defs
~/.emacs.d/emacs.lisp/cc-mode/cc-menus hides 
/usr/local/share/emacs/23.3/lisp/progmodes/cc-menus
~/.emacs.d/emacs.lisp/cc-mode/cc-awk hides 
/usr/local/share/emacs/23.3/lisp/progmodes/cc-awk
/usr/local/share/emacs/23.3/lisp/calc/calc-alg hides 
~/work/calc-2.02f/calc-alg
/usr/local/share/emacs/23.3/lisp/calc/calc-incom hides 
~/work/calc-2.02f/calc-incom
/usr/local/share/emacs/23.3/lisp/calc/calc-sel hides 
~/work/calc-2.02f/calc-sel
/usr/local/share/emacs/23.3/lisp/calc/calc-forms hides 
~/work/calc-2.02f/calc-forms
/usr/local/share/emacs/23.3/lisp/calc/calc-graph hides 
~/work/calc-2.02f/calc-graph
/usr/local/share/emacs/23.3/lisp/calc/calc-undo hides 
~/work/calc-2.02f/calc-undo
/usr/local/share/emacs/23.3/lisp/calc/calc-fin hides 
~/work/calc-2.02f/calc-fin
/usr/local/share/emacs/23.3/lisp/calc/calc-funcs hides 
~/work/calc-2.02f/calc-funcs
/usr/local/share/emacs/23.3/lisp/calc/calc-vec hides 
~/work/calc-2.02f/calc-vec
/usr/local/share/emacs/23.3/lisp/calc/calc-math hides 
~/work/calc-2.02f/calc-math
/usr/local/share/emacs/23.3/lisp/calc/calc-comb hides 
~/work/calc-2.02f/calc-comb
/usr/local/share/emacs/23.3/lisp/calc/calc-units hides 
~/work/calc-2.02f/calc-units
/usr/local/share/emacs/23.3/lisp/calc/calc-trail hides 
~/work/calc-2.02f/calc-trail
/usr/local/share/emacs/23.3/lisp/calc/calc-yank hides 
~/work/calc-2.02f/calc-yank
/usr/local/share/emacs/23.3/lisp/calc/calc hides ~/work/calc-2.02f/calc
/usr/local/share/emacs/23.3/lisp/calc/calc-store hides 
~/work/calc-2.02f/calc-store
/usr/local/share/emacs/23.3/lisp/calc/calc-misc hides 
~/work/calc-2.02f/calc-misc
/usr/local/share/emacs/23.3/lisp/calc/calc-frac hides 
~/work/calc-2.02f/calc-frac
/usr/local/share/emacs/23.3/lisp/calc/calc-cplx hides 
~/work/calc-2.02f/calc-cplx
/usr/local/share/emacs/23.3/lisp/calc/calc-stuff hides 
~/work/calc-2.02f/calc-stuff
/usr/local/share/emacs/23.3/lisp/calc/calc-mode hides 
~/work/calc-2.02f/calc-mode
/usr/local/share/emacs/23.3/lisp/calc/calc-bin hides 
~/work/calc-2.02f/calc-bin
/usr/local/share/emacs/23.3/lisp/calc/calc-rewr hides 
~/work/calc-2.02f/calc-rewr
/usr/local/share/emacs/23.3/lisp/calc/calc-keypd hides 
~/work/calc-2.02f/calc-keypd
/usr/local/share/emacs/23.3/lisp/calc/calc-poly hides 
~/work/calc-2.02f/calc-poly
/usr/local/share/emacs/23.3/lisp/calc/calc-help hides 
~/work/calc-2.02f/calc-help
/usr/local/share/emacs/23.3/lisp/calc/calc-map hides 
~/work/calc-2.02f/calc-map
/usr/local/share/emacs/23.3/lisp/calc/calc-lang hides 
~/work/calc-2.02f/calc-lang
/usr/local/share/emacs/23.3/lisp/calc/calc-ext hides 
~/work/calc-2.02f/calc-ext
/usr/local/share/emacs/23.3/lisp/calc/calc-arith hides 
~/work/calc-2.02f/calc-arith
/usr/local/share/emacs/23.3/lisp/calc/calc-rules hides 
~/work/calc-2.02f/calc-rules
/usr/local/share/emacs/23.3/lisp/calc/calc-embed hides 
~/work/calc-2.02f/calc-embed
/usr/local/share/emacs/23.3/lisp/calc/calc-stat hides 
~/work/calc-2.02f/calc-stat
/usr/local/share/emacs/23.3/lisp/calc/calc-macs hides 
~/work/calc-2.02f/calc-macs
/usr/local/share/emacs/23.3/lisp/calc/calc-aent hides 
~/work/calc-2.02f/calc-aent
/usr/local/share/emacs/23.3/lisp/calc/calc-prog hides 
~/work/calc-2.02f/calc-prog

Features:
(shadow sort mail-extr message sendmail ecomplete rfc822 mml mml-sec
password-cache mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231
rfc2047 rfc2045 qp ietf-drums mailabbrev gmm-utils mailheader canlock
sha1 hex-util hashcash emacsbug imenu vc-cvs cc-mode advice help-fns
advice-preload cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align
cc-engine cc-vars cc-defs paren gnus gnus-ems nnheader gnus-util netrc
time-date mail-utils mm-util mail-prsvr wid-edit cus-start cus-load
server iso-transl warnings disp-table counter cl cl-19 scilab shell gud
easy-mmode comint ring regexp-opt derived tempo easymenu tar-mode
desktop tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd
font-setting tool-bar dnd fontset image fringe lisp-mode register page
menu-bar rfn-eshadow timer select scroll-bar mldrag mouse jit-lock
font-lock syntax facemenu font-core frame cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew
greek romanian slovak czech european ethiopic indian cyrillic chinese
case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button
minibuffer faces cus-face files text-properties overlay md5 base64
format env code-pages mule custom widget hashtable-print-readable
backquote make-network-process dbusbind system-font-setting
font-render-setting gtk x-toolkit x multi-tty emacs)




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#10706; Package emacs. (Sat, 03 Mar 2012 22:09:02 GMT) Full text and rfc822 format available.

Message #8 received at 10706 <at> debbugs.gnu.org (full text, mbox):

From: "Jérôme M. Berger" <jeberger <at> free.fr>
To: 10706 <at> debbugs.gnu.org
Subject: Reproduced on Linux (both 32 and 64 bits), works on Windows
Date: Sat, 03 Mar 2012 22:41:49 +0100
[Message part 1 (text/plain, inline)]
	Here are easy steps to reproduce the issue:

- emacs -Q
- Execute the following lisp commands (for example in the scratch
buffer):
  - (require 'imenu)
  - (global-set-key [S-mouse-3] 'imenu)
  - (semantic-mode 1)
- Open a C++ file (or type the following in a new C++ file):

==============================8<------------------------------
class foo {
  void a (void) {}
  void b (void) {}
  void c (void) {}
};
------------------------------>8==============================

- Then play with the menu (S-mouse3 + mouse1). It may work for a
short while (0 to 5 times), then it stops going to the target with
mouse1 although it still goes with return.

	The bug happens with Emacs version 23.4.1 on 64 bits and 32 bits
ArchLinux. It does not happen on Windows with the packages from
EmacsW32 (neither the patched version nor the vanilla version).

		Jerome
-- 
mailto:jeberger <at> free.fr
http://jeberger.free.fr
Jabber: jeberger <at> jabber.fr

[signature.asc (application/pgp-signature, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#10706; Package emacs. (Wed, 02 Jun 2021 07:11:01 GMT) Full text and rfc822 format available.

Message #11 received at 10706 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Jérôme M. Berger <jeberger <at> free.fr>
Cc: 10706 <at> debbugs.gnu.org
Subject: Re: bug#10706: 23.3; Imenu behaved differently with submenus
Date: Wed, 02 Jun 2021 09:10:01 +0200
"Jérôme M. Berger" <jeberger <at> free.fr> writes:

> - emacs -Q
> - Execute the following lisp commands (for example in the scratch
> buffer):
>   - (require 'imenu)
>   - (global-set-key [S-mouse-3] 'imenu)
>   - (semantic-mode 1)
> - Open a C++ file (or type the following in a new C++ file):
>
> ==============================8<------------------------------
> class foo {
>   void a (void) {}
>   void b (void) {}
>   void c (void) {}
> };
> ------------------------------>8==============================
>
> - Then play with the menu (S-mouse3 + mouse1). It may work for a
> short while (0 to 5 times), then it stops going to the target with
> mouse1 although it still goes with return.

(I'm going through old bug reports that unfortunately got no response at
the time.)

I'm unable to reproduce this bug in Emacs 28 on Debian/bullseye.
Are you still seeing this problem?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Wed, 02 Jun 2021 07:11:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#10706; Package emacs. (Wed, 30 Jun 2021 13:23:02 GMT) Full text and rfc822 format available.

Message #16 received at 10706 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Jérôme M. Berger <jeberger <at> free.fr>
Cc: 10706 <at> debbugs.gnu.org
Subject: Re: bug#10706: 23.3; Imenu behaved differently with submenus
Date: Wed, 30 Jun 2021 15:22:17 +0200
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> I'm unable to reproduce this bug in Emacs 28 on Debian/bullseye.
> Are you still seeing this problem?

More information was requested, but no response was given within a
month, so I'm closing this bug report.  If the problem still exists,
please respond to this email and we'll reopen the bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug closed, send any further explanations to 10706 <at> debbugs.gnu.org and "Thomas D. Dean" <tomdean <at> speakeasy.org> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Wed, 30 Jun 2021 13:23:04 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 29 Jul 2021 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 244 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.