all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Levin Du" <zslevin@gmail.com>
To: "paul r" <paul.r.ml@gmail.com>
Cc: emacs-devel@gnu.org, Stefan Monnier <monnier@iro.umontreal.ca>,
	rms@gnu.org
Subject: Re: Feature Request : autoload-form
Date: Mon, 31 Mar 2008 15:58:21 +0800	[thread overview]
Message-ID: <9649271a0803310058h77051b26n61c980ad23806e03@mail.gmail.com> (raw)
In-Reply-To: <e30f0f320803301528p465a5a14of37a15c1393ac7c7@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 829 bytes --]

We currenly have (eval-after-load file form), what about:

   (eval-before-load file form)

to make things easier?


2008/3/31, paul r <paul.r.ml@gmail.com>:
>
> 2008/3/30, Stefan Monnier <monnier@iro.umontreal.ca>:
> > > 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

[-- Attachment #2: Type: text/html, Size: 1507 bytes --]

  reply	other threads:[~2008-03-31  7:58 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-28 20:05 Feature Request : autoload-form paul r
2008-03-29  4:20 ` Stefan Monnier
2008-03-29  9:49   ` paul r
2008-03-29 19:40     ` Stefan Monnier
2008-03-30  5:49   ` Richard Stallman
2008-03-30 11:24     ` paul r
2008-03-30 15:03       ` Stefan Monnier
2008-03-30 22:28         ` paul r
2008-03-31  7:58           ` Levin Du [this message]
2008-03-30 19:55       ` Richard Stallman
2008-03-30 21:35       ` Mike Mattie
2008-03-31 16:24       ` Richard Stallman
2008-03-31 17:36         ` paul r
2008-03-31 21:31         ` Mike Mattie
2008-04-02  2:53           ` Richard Stallman
2008-04-02 12:44             ` paul r
2008-04-02 17:34               ` Richard Stallman
2008-04-02 19:06                 ` paul r
2008-04-02 21:07                   ` Don Armstrong
2008-04-03  4:30                     ` Stephen J. Turnbull
2008-04-03  5:01                       ` Don Armstrong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9649271a0803310058h77051b26n61c980ad23806e03@mail.gmail.com \
    --to=zslevin@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=paul.r.ml@gmail.com \
    --cc=rms@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.