* Imenu does not work with C/C++ mode in recent trunk
@ 2011-07-28 8:07 angelo.graziosi
2011-07-28 21:58 ` Angelo Graziosi
0 siblings, 1 reply; 2+ messages in thread
From: angelo.graziosi @ 2011-07-28 8:07 UTC (permalink / raw)
To: emacs-devel
In my init file I have:
;; c-mode
(add-hook 'c-mode-hook
'(lambda()
;; RET with automatic indent
(local-set-key [13] 'c-return)
;; 3
spaces for indentations
;(setq c-basic-offset 3)
;; No indent for
open bracket
(c-set-offset 'substatement-open 0)
;; Add index of
func. to menu bar
(imenu-add-to-menubar "Functions")
)
)
[...]
(setq imenu-auto-rescan t)
and so on for C++, F90, Fortran, SH... modes.
But
with recent trunk, clicking on "Functions" item on menu bar has not effects.
The last trunk I can test with which Imenu works is rev. 104859.
With other
modes Imenu works.
Ciao,
Angelo.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Imenu does not work with C/C++ mode in recent trunk
2011-07-28 8:07 Imenu does not work with C/C++ mode in recent trunk angelo.graziosi
@ 2011-07-28 21:58 ` Angelo Graziosi
0 siblings, 0 replies; 2+ messages in thread
From: Angelo Graziosi @ 2011-07-28 21:58 UTC (permalink / raw)
To: emacs
[-- Attachment #1: Type: text/plain, Size: 853 bytes --]
It looks that the drop-down menu (see attachment) is very very
"compressed" in C/C++ mode...
Ciao,
Angelo.
I wrote:
> In my init file I have:
>
> ;; c-mode
> (add-hook 'c-mode-hook
> '(lambda()
>
> ;; RET with automatic indent
> (local-set-key [13] 'c-return)
>
> ;; 3
> spaces for indentations
> ;(setq c-basic-offset 3)
>
> ;; No indent for
> open bracket
> (c-set-offset 'substatement-open 0)
>
> ;; Add index of
> func. to menu bar
> (imenu-add-to-menubar "Functions")
> )
> )
>
> [...]
>
>
> (setq imenu-auto-rescan t)
>
>
> and so on for C++, F90, Fortran, SH... modes.
>
> But
> with recent trunk, clicking on "Functions" item on menu bar has not effects.
>
> The last trunk I can test with which Imenu works is rev. 104859.
>
> With other
> modes Imenu works.
>
>
> Ciao,
> Angelo.
[-- Attachment #2: imenu-cmode.jpg --]
[-- Type: image/jpeg, Size: 10453 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-07-28 21:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-28 8:07 Imenu does not work with C/C++ mode in recent trunk angelo.graziosi
2011-07-28 21:58 ` Angelo Graziosi
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).