Simon Wright <[email protected]> writes: > On 12 Nov 2014, at 13:36, Stephen Leake <[email protected]> > wrote: > >> Simon Wright <[email protected]> writes: >> >>> On 12 Nov 2014, at 11:51, Stephen Leake <[email protected]> >>> wrote: >>> >>>> imenu support in ada-mode is only enabled if you have done (require >>>> 'imenu) before (require 'ada-mode); see the end of ada-mode.el. >>> >>> or if you (require ‘ada-imenu) - ada-imenu.el says >>> >>> (require 'ada-mode) >>> (require ‘imenu)
These statements are here only to satisfy the byte-compiler; they probably should be wrapped in (eval-when-compile ...), but I've never been able to figure out how to use that macro and similar ones properly. >>> … does the order matter? >> >> I'm not sure what you are asking. > > Does it matter whether ada-imenu.el requires ada-mode before imenu, > given that ada-mode says > > (when (featurep 'imenu) > (require 'ada-imenu)) > > ? (but see below) The current code resolves various ordering conflicts at compile and load time; yes the order matters. >> The rationale for the current behavior was discussed a while ago; users >> that use imenu typically require it in their .emacs, so it's easy for >> them to have that occur before any (require 'ada-mode), which typically >> results from an autoload. >> >> Users should not typically do (require 'ada-imenu) or (require >> 'ada-mode) in their .emacs. > > My .emacs just says (require ‘ada-imenu); but this is the way I left > it set up after initially writing ada-imenu.el (nearly 2 years ago!) Ok. You can replace that with just (require 'imenu). I noticed that some of the settings in ada--imenu-mode are really personal preferences, so we should delete them there and suggest that people put them in their .emacs. But I'll leave that until someone complains. -- -- Stephe _______________________________________________ Emacs-ada-mode mailing list [email protected] http://host114.hostmonster.com/mailman/listinfo/emacs-ada-mode_stephe-leake.org
