Re: Autoload to connect mode
Eric Ludlam <[email protected]> Sat, 19 Mar 2016 17:18:12 -0400
| Newsgroups | gmane.emacs.semantic |
|---|---|
| Message-ID | <[email protected]> |
On 03/15/2016 06:32 PM, Gracjan Polak wrote: > Hi, > > I have this autoload declaration: > > ;;;###autoload(eval-after-load 'semantic (lambda () (require > 'haskell-semantic) (push '(haskell-mode . haskell-default-setup) > semantic-new-buffer-setup-functions))) > > This seems to work with Emacs 24.4 and later, does not work with Emacs 24.3. > > We would like to keep the compatibility. Is there a way to trigger Emacs > 24.3 to work with this declaration? I always found eval-after-load a bit weird. Here's one from grammar.el: (eval-after-load "speedbar" '(speedbar-add-supported-extension ".by")) it takes a string in older Emacsen. Also, it takes a form. Not sure if your lambda will also execute or just become lost. Eric ------------------------------------------------------------------------------ Transform Data into Opportunity. Accelerate data analysis in your applications with Intel Data Analytics Acceleration Library. Click to learn more. http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140