all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juanma Barranquero <lekktu@gmail.com>
To: Drew Adams <drew.adams@oracle.com>
Cc: 16810@debbugs.gnu.org
Subject: bug#16810: 24.3.50; `with-eval-after-load'
Date: Wed, 19 Feb 2014 20:07:36 +0100	[thread overview]
Message-ID: <CAAeL0SSF8po683_qiPo=bifT5DyvLTQ2ShRd=JAfjLMmUhFY4Q@mail.gmail.com> (raw)
In-Reply-To: <ecf9f27c-44b5-49b5-b9da-708a4d39f5c4@default>

Some brief comments.

>    The main difference I can see, based on the available doc, is that
>    the macro evaluates the BODY "*each time* LIBRARY is loaded".  Is
>    that considered "better behaved"?  Why?

Docstring for eval-after-load says:

  If a matching file is loaded again, form will be evaluated again.

so how is that different?

>    Other, obvious differences, which I can hardly imagine to constitute
>    "better" behavior and so call for introducing this macro, let alone
>    replacing `eval-after-load' with it, are (a) that it is a macro, so
>    you do not need to quote its arg

To me, that's a big difference which makes the macro much "better". YMMV.

> 2. The doc string is not helpful enough.

Agreed.





  parent reply	other threads:[~2014-02-19 19:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-19 17:00 bug#16810: 24.3.50; `with-eval-after-load' Drew Adams
2014-02-19 18:45 ` Drew Adams
2014-02-19 19:07 ` Juanma Barranquero [this message]
2014-02-19 19:31   ` Drew Adams

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='CAAeL0SSF8po683_qiPo=bifT5DyvLTQ2ShRd=JAfjLMmUhFY4Q@mail.gmail.com' \
    --to=lekktu@gmail.com \
    --cc=16810@debbugs.gnu.org \
    --cc=drew.adams@oracle.com \
    /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.