Ludovic Brenta <[email protected]> writes:
> Still using ada-mode 5.1.1 (I'm in the process of upgrading to 5.1.3),
> I see that M-x imenu does not work at all. The only message in
> the minibuffer is "user-error: This buffer cannot use
> `imenu-default-create-index-function'".
>
> I tried explicitly loading ada-imenu.el before trying M-x imenu again.
> Same results. Is there something I should configure before imenu can
> work again? (it does work in ada-mode 4).
See the bottom of ada-mode.el (5.1.1 or later):
(when (featurep 'imenu)
(require 'ada-imenu))
So if you have imenu loaded when ada-mode is loaded, imenu is enabled
for ada-mode buffers.
After ada-mode is loaded, you can do:
(require 'ada-imenu)
and then open an ada-mode buffer, or do M-x ada-mode in an existing
buffer.
If you can suggest a more convenient way to do this, I'm open to
suggestions. The goal is to avoid loading ada-imenu for people who don't
use imenu, but make it convenient for those who do.
Perhaps a new ada-mode custom var ada-mode-enable-imenu:
(when (or (featurep 'imenu)
ada-mode-enable-imenu)
(require 'ada-imenu))
--
-- Stephe
_______________________________________________
Emacs-ada-mode mailing list
[email protected]
http://host114.hostmonster.com/mailman/listinfo/emacs-ada-mode_stephe-leake.org