From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leo Newsgroups: gmane.emacs.devel Subject: Re: Why js2-mode in Emacs 23.2? Date: Mon, 10 Aug 2009 09:44:58 +0100 Organization: University of Cambridge Message-ID: References: <7b501d5c0908091634ndfba631vd9db6502db301097@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1249893944 28075 80.91.229.12 (10 Aug 2009 08:45:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 10 Aug 2009 08:45:44 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 10 10:45:37 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MaQVb-00044c-F9 for ged-emacs-devel@m.gmane.org; Mon, 10 Aug 2009 10:45:35 +0200 Original-Received: from localhost ([127.0.0.1]:60505 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MaQVa-0004MP-Sy for ged-emacs-devel@m.gmane.org; Mon, 10 Aug 2009 04:45:34 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MaQVQ-0004JI-Dq for emacs-devel@gnu.org; Mon, 10 Aug 2009 04:45:24 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MaQVL-0004HR-Ek for emacs-devel@gnu.org; Mon, 10 Aug 2009 04:45:23 -0400 Original-Received: from [199.232.76.173] (port=53664 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MaQVL-0004HK-5I for emacs-devel@gnu.org; Mon, 10 Aug 2009 04:45:19 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:52749 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MaQVK-0004zY-6S for emacs-devel@gnu.org; Mon, 10 Aug 2009 04:45:18 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1MaQVE-00067X-Gt for emacs-devel@gnu.org; Mon, 10 Aug 2009 08:45:12 +0000 Original-Received: from smaug.linux.pwf.cam.ac.uk ([193.60.95.72]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 10 Aug 2009 08:45:12 +0000 Original-Received: from sdl.web by smaug.linux.pwf.cam.ac.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 10 Aug 2009 08:45:12 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 34 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: smaug.linux.pwf.cam.ac.uk User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:ZyYv8akmCkaXhK7DyhNVGiIFiy8= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:113952 Archived-At: On 2009-08-10 01:49 +0100, Daniel Colascione wrote: [...] >> eval-after-load should not be used in emacs packages. > > Why not? On 2009-08-10 08:06 +0100, Carsten Dominik wrote: [...] >> eval-after-load should not be used in emacs packages. > > Why not? > > - Carsten I seem to recall RMS said that sometime ago. It is also documented in the elisp manual: ,----[ (info "(elisp)Hooks for Loading") ] | In general, well-designed Lisp programs should not use this feature. | The clean and modular ways to interact with a Lisp library are (1) | examine and set the library's variables (those which are meant for | outside use), and (2) call the library's functions. If you wish to do | (1), you can do it immediately--there is no need to wait for when the | library is loaded. To do (2), you must load the library (preferably | with `require'). | | But it is OK to use `eval-after-load' in your personal | customizations if you don't feel they must meet the design standards | for programs meant for wider use. `---- Best, -- Leo's Emacs uptime: 6 days, 8 hours, 38 minutes, 34 seconds