From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Sebastien Vauban" Newsgroups: gmane.emacs.help Subject: Re: why alias man to woman doesn't work? Date: Thu, 05 Apr 2012 16:38:45 +0200 Organization: Sebastien Vauban Message-ID: <80k41u451m.fsf@somewhere.org> References: <4fcd7e17-e3a4-4b35-80ca-ad71da1df9d5@pg2g2000pbb.googlegroups.com> <80k41u4ohg.fsf@somewhere.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1333636826 10512 80.91.229.3 (5 Apr 2012 14:40:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 5 Apr 2012 14:40:26 +0000 (UTC) To: help-gnu-emacs-mXXj517/zsQ@public.gmane.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Thu Apr 05 16:40:25 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SFnrF-0005S0-2L for geh-help-gnu-emacs@m.gmane.org; Thu, 05 Apr 2012 16:40:17 +0200 Original-Received: from localhost ([::1]:45568 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SFnrE-00057F-Af for geh-help-gnu-emacs@m.gmane.org; Thu, 05 Apr 2012 10:40:16 -0400 Original-Path: usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!news2.euro.net!feeds.phibee-telecom.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help,comp.emacs Original-Lines: 48 Injection-Info: mx04.eternal-september.org; posting-host="No+jx9xcG75RY5G9Zb0asg"; logging-data="12705"; mail-complaints-to="abuse-VVbKFVtnif8H+i2N2EyTrmui9UKz+5OX@public.gmane.org"; posting-account="U2FsdGVkX18bkAmsM/4v88TnP2EUXsx4" User-Agent: Gnus/5.130004 (Ma Gnus v0.4) Emacs/24.0.94 (windows-nt) X-Archive: encrypt Cancel-Lock: sha1:t4cmXRyDAXCkHmY7UObXtuDT0oM= sha1:cSNfOijcYDPvzmOntuU+eQ+4lRw= X-Url: Under construction... Original-Xref: usenet.stanford.edu gnu.emacs.help:191929 comp.emacs:102385 X-BeenThere: help-gnu-emacs-mXXj517/zsQ@public.gmane.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Xref: news.gmane.org gmane.emacs.help:84345 Archived-At: 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