From: Angelo Graziosi <angelo.graziosi@alice.it>
To: 9199@debbugs.gnu.org
Subject: bug#9199: Imenu does not work any more with C/C++ mode
Date: Fri, 29 Jul 2011 23:04:38 +0200 [thread overview]
Message-ID: <4E332066.9000909@alice.it> (raw)
$ 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.
next reply other threads:[~2011-07-29 21:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-29 21:04 Angelo Graziosi [this message]
2012-03-15 1:39 ` bug#9199: Imenu does not work any more with C/C++ mode Stefan Monnier
2012-03-15 21:06 ` Angelo Graziosi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4E332066.9000909@alice.it \
--to=angelo.graziosi@alice.it \
--cc=9199@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.