unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#9199: Imenu does not work any more with C/C++ mode
@ 2011-07-29 21:04 Angelo Graziosi
  2012-03-15  1:39 ` Stefan Monnier
  0 siblings, 1 reply; 2+ messages in thread
From: Angelo Graziosi @ 2011-07-29 21:04 UTC (permalink / raw)
  To: 9199

$ cat init.el
(add-hook 'c-mode-hook
           '(lambda()
              (imenu-add-to-menubar "Functions")
              )
           )


$ cat test.c
int main(){}
void foo1(){}
void foo2(){}
void foo2(){}

$ emacs test.c &

Now click on 'Functions' in the menu bar, the result is as in

https://lists.gnu.org/archive/html/emacs-devel/2011-07/jpgDDUvliLSqM.jpg

the drop-down menu is very very compressed. The same occurs with c-mode 
--> c++-mode.

If I remove init.el completely and

$ emacs test.c &
M-x imenu-add-to-menubar <RET>
Functions <RET>

Now clicking on Functions works as expected!

If in the above init.el file I change c-mode with f90, fortran, sh... it 
works right.

The last trunk I can test and with which it works with C/C++, is rev. 
104859 (july 1 or 2).


Ciao,
   Angelo.





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-03-15  1:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-29 21:04 bug#9199: Imenu does not work any more with C/C++ mode Angelo Graziosi
2012-03-15  1:39 ` Stefan Monnier

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).