Re: Autoload to connect mode

Gracjan Polak <[email protected]> Mon, 21 Mar 2016 13:23:54 +0100
Newsgroups gmane.emacs.semantic
Message-ID <CAChsM3RDiNPGNe9gPhw1HQ+BeHk4WLUFQbfJ3N_8a0CqHp_SmA@mail.gmail.com>
Thanks, that was the problem.

It seems that since Emacs 24.4 eval-after-load also accepts a lambda.

2016-03-19 22:18 GMT+01:00 Eric Ludlam <[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=278785351&iu=/4140

_______________________________________________
cedet-semantic mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cedet-semantic