emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Feature Request : autoload-form


From: Levin Du
Subject: Re: Feature Request : autoload-form
Date: Mon, 31 Mar 2008 15:58:21 +0800

We currenly have (eval-after-load file form), what about:
 
   (eval-before-load file form)
 
to make things easier?

 
2008/3/31, paul r <address@hidden>:
2008/3/30, Stefan Monnier <address@hidden>:
> > I think of autoload as a particular case of the general need to
>  > "eval-on-event-then-call". Therefore, I do not see why evaluating a
>  > form is less simple than loading a file. Form evaluation is, indeed,
>  > less limited but I don't see why it should be a disadvantage here.
>
>
> By the way, instead of
>
>   (autoload <fun> <exp> <doc>)
>
>  you can do
>
>   (defun <fun> (&rest args)
>     <doc>
>     <exp>
>     (apply <fun> args))
>

I needed to do a macro for that, because <fun> name is known at
runtime, but at the end it works.
Thank you.
 
--
Levin

 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]