emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why js2-mode in Emacs 23.2?


From: Dan Nicolaescu
Subject: Re: Why js2-mode in Emacs 23.2?
Date: Mon, 10 Aug 2009 21:39:46 -0700 (PDT)

Daniel Colascione <address@hidden> writes:

  > On Aug 11, 2009, at 12:28 AM, Dan Nicolaescu wrote:
  > 
  > > Daniel Colascione <address@hidden> 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. 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]