From: "Sebastien Vauban" <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org>
To: help-gnu-emacs-mXXj517/zsQ@public.gmane.org
Subject: Re: why alias man to woman doesn't work?
Date: Thu, 05 Apr 2012 16:38:45 +0200 [thread overview]
Message-ID: <80k41u451m.fsf@somewhere.org> (raw)
In-Reply-To: jwvpqbmjm7n.fsf-monnier+gnu.emacs.help@gnu.org
Stefan,
Stefan Monnier wrote:
>>> (defalias 'man 'woman)
>>> (eval-after-load 'woman '(defalias 'man 'woman))
>>
>> Do I understand correctly that the above code will load `woman' when being
>> parsed, while:
>
> No.
>
>> (eval-after-load "woman" '(defalias 'man 'woman))
>
>> would wait until woman was invoked by some other command?
>
> If you remove the first line, then M-x man will not load woman.
My question was about
(eval-after-load 'whatever ...)
vs
(eval-after-load "whatever" ...)
I thought, after reading documentation[1], that:
- with a symbol, it would load whatever package immediately, and then run the
extra code after that
- with a string, it would wait for whatever package to be loaded, and then run
the extra code after that
But you infirmed what I was thinking.
Thanks for your input!
Best regards,
Seb
Footnotes:
[1] I can't find exactly which one anymore, though, between C-h f or the GNU
Emacs Lisp Reference Manual or ...
--
Sebastien Vauban
next prev parent reply other threads:[~2012-04-05 14:38 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-04 23:50 why alias man to woman doesn't work? Xah Lee
2012-04-05 1:28 ` Stefan Monnier
2012-04-05 7:02 ` Xah Lee
2012-04-05 7:38 ` Sebastien Vauban
2012-04-05 10:52 ` Tassilo Horn
2012-04-05 13:02 ` Doug Lewan
2012-04-05 14:19 ` Stefan Monnier
2012-04-05 14:38 ` Sebastien Vauban [this message]
2012-04-06 21:28 ` Xah Lee
2012-04-10 2:39 ` Stefan Monnier
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=80k41u451m.fsf@somewhere.org \
--to=wxhgmqzgwmuf-genee64ty+gs+fvcfc7uqw@public.gmane.org \
--cc=help-gnu-emacs-mXXj517/zsQ@public.gmane.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.