From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: Re: Why js2-mode in Emacs 23.2? Date: Mon, 10 Aug 2009 21:28:17 -0700 (PDT) Message-ID: <200908110428.n7B4SHML002579@godzilla.ics.uci.edu> References: <7b501d5c0908091634ndfba631vd9db6502db301097@mail.gmail.com> <0n63cvcfvc.fsf@fencepost.gnu.org> <159B2E9D-C256-429A-B037-1B0202F204E8@merrillpress.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1249965131 30653 80.91.229.12 (11 Aug 2009 04:32:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Aug 2009 04:32:11 +0000 (UTC) Cc: Carsten Dominik , Leo , emacs-devel@gnu.org To: Daniel Colascione Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 11 06:32:04 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 1Maj1n-0001ay-JA for ged-emacs-devel@m.gmane.org; Tue, 11 Aug 2009 06:32:03 +0200 Original-Received: from localhost ([127.0.0.1]:45002 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Maj1m-0000NC-DQ for ged-emacs-devel@m.gmane.org; Tue, 11 Aug 2009 00:32:02 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Maj1Q-0000Ge-0k for emacs-devel@gnu.org; Tue, 11 Aug 2009 00:31:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Maj1L-0000DJ-9A for emacs-devel@gnu.org; Tue, 11 Aug 2009 00:31:39 -0400 Original-Received: from [199.232.76.173] (port=52639 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Maj1L-0000Cw-0G for emacs-devel@gnu.org; Tue, 11 Aug 2009 00:31:35 -0400 Original-Received: from barrelv2.ics.uci.edu ([128.195.1.114]:46356) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1Maj1I-0000kX-DV; Tue, 11 Aug 2009 00:31:32 -0400 Original-Received: from godzilla.ics.uci.edu (godzilla.ics.uci.edu [128.195.10.101]) by barrelv2.ics.uci.edu (8.13.8+Sun/8.13.8) with ESMTP id n7B4SHvF007375; Mon, 10 Aug 2009 21:28:17 -0700 (PDT) Original-Received: (from dann@localhost) by godzilla.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id n7B4SHML002579; Mon, 10 Aug 2009 21:28:17 -0700 (PDT) In-Reply-To: <159B2E9D-C256-429A-B037-1B0202F204E8@merrillpress.com> (Daniel Colascione's message of "Mon, 10 Aug 2009 23:02:19 -0400") Original-Lines: 15 X-ICS-MailScanner-Information: Please contact the ISP for more information X-ICS-MailScanner-ID: n7B4SHvF007375 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@godzilla.ics.uci.edu X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (beta) 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:114026 Archived-At: Daniel Colascione writes: > On Aug 10, 2009, at 9:13 PM, Glenn Morris wrote: > > Carsten Dominik wrote: > >> > >> (add-hook 'imenu-after-jump-hook > > That would work just fine without eval-after-load or requiring imenu. > > A hook does not need to be defined before calling add-hook. > > That works for hooks, but not for arbitrary data structures, like, > say, hs-special-modes-alist. For hs-special-modes-alist, if the mode is included in emacs, just add the initialization where in the definition. That goes for other similar structures.