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:39:46 -0700 (PDT) Message-ID: <200908110439.n7B4dkVx002661@godzilla.ics.uci.edu> 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 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1249965804 3143 80.91.229.12 (11 Aug 2009 04:43:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Aug 2009 04:43:24 +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:43:12 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 1MajCa-0004C9-A1 for ged-emacs-devel@m.gmane.org; Tue, 11 Aug 2009 06:43:12 +0200 Original-Received: from localhost ([127.0.0.1]:50923 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MajCZ-0005u2-4r for ged-emacs-devel@m.gmane.org; Tue, 11 Aug 2009 00:43:11 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MajCS-0005tm-FI for emacs-devel@gnu.org; Tue, 11 Aug 2009 00:43:04 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MajCM-0005rk-SE for emacs-devel@gnu.org; Tue, 11 Aug 2009 00:43:03 -0400 Original-Received: from [199.232.76.173] (port=48350 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MajCM-0005rh-OX for emacs-devel@gnu.org; Tue, 11 Aug 2009 00:42:58 -0400 Original-Received: from barrelv2.ics.uci.edu ([128.195.1.114]:46777) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1MajCK-0003R6-Hj; Tue, 11 Aug 2009 00:42:56 -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 n7B4dkXc011009; Mon, 10 Aug 2009 21:39:46 -0700 (PDT) Original-Received: (from dann@localhost) by godzilla.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id n7B4dkVx002661; Mon, 10 Aug 2009 21:39:46 -0700 (PDT) In-Reply-To: (Daniel Colascione's message of "Tue, 11 Aug 2009 00:33:53 -0400") Original-Lines: 33 X-ICS-MailScanner-Information: Please contact the ISP for more information X-ICS-MailScanner-ID: n7B4dkXc011009 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:114029 Archived-At: Daniel Colascione writes: > 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? Because it is the cleanest way given the current design? > And why should the preferred technique differ depending on whether > the code is part of emacs or not? Because things that are included in emacs can act as being a part of a whole and take advantage of that to make the code easier to read and maintain.