From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Doug Lewan Newsgroups: gmane.emacs.help Subject: RE: why alias man to woman doesn't work? Date: Thu, 5 Apr 2012 13:02:55 +0000 Message-ID: <495248DFDEA08C469BBDED2D4AA6C6144250A9@DAKIYA1.pegasus.local> 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; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1333663052 25143 80.91.229.3 (5 Apr 2012 21:57:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 5 Apr 2012 21:57:32 +0000 (UTC) To: "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Apr 05 23:57:31 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 1SFugL-0001fO-A2 for geh-help-gnu-emacs@m.gmane.org; Thu, 05 Apr 2012 23:57:29 +0200 Original-Received: from localhost ([::1]:39617 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SFuNN-0000vw-Ch for geh-help-gnu-emacs@m.gmane.org; Thu, 05 Apr 2012 17:37:53 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50366) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SFmJE-00039X-Kh for help-gnu-emacs@gnu.org; Thu, 05 Apr 2012 09:01:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SFmJ2-0005l9-Rj for help-gnu-emacs@gnu.org; Thu, 05 Apr 2012 09:01:02 -0400 Original-Received: from mailhost.shubertorg.com ([207.246.209.200]:3667 helo=webmail.shubertorg.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SFmJ2-0005jT-Hz for help-gnu-emacs@gnu.org; Thu, 05 Apr 2012 09:00:52 -0400 Original-Received: from dakiya1.pegasus.local ([::1]) by DAKIYA1.pegasus.local ([::1]) with mapi id 14.01.0339.001; Thu, 5 Apr 2012 09:02:56 -0400 Thread-Topic: why alias man to woman doesn't work? Thread-Index: AQHNEv8kqQHEPP503kqFZQA13AfFcJaMLgQA In-Reply-To: <80k41u4ohg.fsf@somewhere.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.0.21.202] X-detected-operating-system: by eggs.gnu.org: Windows 2000 SP2+, XP SP1+ (seldom 98) X-Received-From: 207.246.209.200 X-BeenThere: help-gnu-emacs@gnu.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@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:84350 Archived-At: > -----Original Message----- > ... >=20 > Do I understand correctly that the above code will load `woman' when > being > parsed, while: >=20 > (eval-after-load "woman" '(defalias 'man 'woman)) >=20 > would wait until woman was invoked by some other command? >=20 > If yes, for performance reasons, one should prefer the latter writing, > in > order to have a quicker startup time of Emacs, right? >=20 > Just wanna be sure I correctly understood (or not!) this part... >=20 > Best regards, > Seb >=20 > -- > Sebastien Vauban I think you understand. That's exactly why emacs has (eval-after-load). I just brought up a bare emacs and (length features) =3D> 87. Those are overwhelmingly the "compiled in" features. If you run temacs you can see it loading them. It will give you a real appreciation for the cost of loading packages. Start up of emacs -nw is almost instantaneous;=20 by my count, start up of temacs took about 7 seconds.