From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: CHENG Gao Newsgroups: gmane.emacs.devel Subject: Re: Why js2-mode in Emacs 23.2? Date: Mon, 10 Aug 2009 16:54:35 +0800 Organization: cyberhut.org Message-ID: References: <7b501d5c0908091634ndfba631vd9db6502db301097@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1249894902 30787 80.91.229.12 (10 Aug 2009 09:01:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 10 Aug 2009 09:01:42 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 10 11:01:35 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 1MaQl0-0001q6-Mx for ged-emacs-devel@m.gmane.org; Mon, 10 Aug 2009 11:01:31 +0200 Original-Received: from localhost ([127.0.0.1]:40618 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MaQl0-0006KF-7a for ged-emacs-devel@m.gmane.org; Mon, 10 Aug 2009 05:01:30 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MaQkq-0006Ev-DI for emacs-devel@gnu.org; Mon, 10 Aug 2009 05:01:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MaQkl-0006Bd-8n for emacs-devel@gnu.org; Mon, 10 Aug 2009 05:01:19 -0400 Original-Received: from [199.232.76.173] (port=47208 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MaQkl-0006BX-1R for emacs-devel@gnu.org; Mon, 10 Aug 2009 05:01:15 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:47038 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 1MaQkk-0007eu-5k for emacs-devel@gnu.org; Mon, 10 Aug 2009 05:01:14 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1MaQkg-0006lt-4g for emacs-devel@gnu.org; Mon, 10 Aug 2009 09:01:10 +0000 Original-Received: from 122.96.97.212 ([122.96.97.212]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 10 Aug 2009 09:01:10 +0000 Original-Received: from chenggao by 122.96.97.212 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 10 Aug 2009 09:01:10 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 37 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 122.96.97.212 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (darwin) Cancel-Lock: sha1:PxB/gqxRxRL7QqA0maxDI/aRY4g= 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:113953 Archived-At: *On Mon, 10 Aug 2009 09:44:58 +0100 * Also sprach Leo : > 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, It's in ELISP info manual, under "Emacs Lisp Coding Conventions".