From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Colascione Newsgroups: gmane.emacs.devel Subject: Re: Why js2-mode in Emacs 23.2? Date: Tue, 11 Aug 2009 00:33:53 -0400 Message-ID: References: <7b501d5c0908091634ndfba631vd9db6502db301097@mail.gmail.com> <0n63cvcfvc.fsf@fencepost.gnu.org> <159B2E9D-C256-429A-B037-1B0202F204E8@merrillpress.com> <200908110428.n7B4SHML002579@godzilla.ics.uci.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1249965330 32285 80.91.229.12 (11 Aug 2009 04:35:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Aug 2009 04:35:30 +0000 (UTC) Cc: Carsten Dominik , Leo , emacs-devel@gnu.org To: Dan Nicolaescu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 11 06:35:21 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 1Maj4y-0002Im-Kj for ged-emacs-devel@m.gmane.org; Tue, 11 Aug 2009 06:35:21 +0200 Original-Received: from localhost ([127.0.0.1]:42337 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Maj4x-0001ZE-By for ged-emacs-devel@m.gmane.org; Tue, 11 Aug 2009 00:35:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Maj3n-00013g-QT for emacs-devel@gnu.org; Tue, 11 Aug 2009 00:34:07 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Maj3j-00010d-3m for emacs-devel@gnu.org; Tue, 11 Aug 2009 00:34:07 -0400 Original-Received: from [199.232.76.173] (port=52700 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Maj3i-00010W-Ub for emacs-devel@gnu.org; Tue, 11 Aug 2009 00:34:02 -0400 Original-Received: from vpn.merrillpress.com ([64.61.107.78]:59140) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Maj3d-00025v-L9; Tue, 11 Aug 2009 00:33:57 -0400 Original-Received: from cpe-67-246-181-235.buffalo.res.rr.com ([67.246.181.235] helo=[192.168.1.103]) by mars.merrillpress.net with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.63) (envelope-from ) id 1Maj3b-00077C-7m; Tue, 11 Aug 2009 00:33:55 -0400 In-Reply-To: <200908110428.n7B4SHML002579@godzilla.ics.uci.edu> X-Mailer: Apple Mail (2.936) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:114027 Archived-At: On Aug 11, 2009, at 12:28 AM, Dan Nicolaescu wrote: > 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. > Why should hideshow have to include a list of modes? And why should the preferred technique differ depending on whether the code is part of emacs or not?