help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Why is it not possible to use "nil" any more in init files ?


From: Alexandre Oberlin
Subject: Re: Why is it not possible to use "nil" any more in init files ?
Date: Tue, 25 Nov 2014 14:19:34 +0100
User-agent: Opera Mail/12.16 (Linux)

Thanks Stefan for this explanation. So IIUC that trick broke some correct .emacs in order to magically fix some broken ones?

Alexandre


On Sat, 22 Nov 2014 15:37:04 +0100, Stefan Monnier <monnier@iro.umontreal.ca> wrote:

I know that departing from proven approaches for no sensible reason is top of the art but is there any kind of other rationale to make the thing not
backward-compatible?

Of course, there's a reason: All minor modes since Emacs-23 (IIRC)
should turn themselves ON when called with a nil argument, so you don't
need turn-on-FOO-mode and you can just say:

   (add-hook 'bar-mode-hook 'foo-mode)

The better part of this incompatible change is that it silently *fixed*
many people's .emacs since many people already used:

   (add-hook 'bar-mode-hook 'foo-mode)

without realizing that this could actually turn the mode OFF in
some cases.


        Stefan




--


reply via email to

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