[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: |
Stefan Monnier |
Subject: |
Re: Why is it not possible to use "nil" any more in init files ? |
Date: |
Sat, 22 Nov 2014 09:37:04 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
> 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
- Why is it not possible to use "nil" any more in init files ?, Alexandre Oberlin, 2014/11/22
- Re: Why is it not possible to use "nil" any more in init files ?,
Stefan Monnier <=
- Message not available
- Re: Why is it not possible to use "nil" any more in init files ?, Alexandre Oberlin, 2014/11/25
- Re: Why is it not possible to use "nil" any more in init files ?, Phillip Lord, 2014/11/25
- Re: Why is it not possible to use "nil" any more in init files ?, Stefan Monnier, 2014/11/25
- Message not available
- Re: Why is it not possible to use "nil" any more in init files ?, Alexandre Oberlin, 2014/11/25
- Re: Why is it not possible to use "nil" any more in init files ?, Phillip Lord, 2014/11/26
- Message not available
- Re: Why is it not possible to use "nil" any more in init files ?, Alexandre Oberlin, 2014/11/26
- Re: Why is it not possible to use "nil" any more in init files ?, Stefan Monnier, 2014/11/26
- Message not available
- Re: Why is it not possible to use "nil" any more in init files ?, Alexandre Oberlin, 2014/11/25
- Re: Why is it not possible to use "nil" any more in init files ?, Phillip Lord, 2014/11/26
- Message not available
- Re: Why is it not possible to use "nil" any more in init files ?, Alexandre Oberlin, 2014/11/26