From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Alexandre Oberlin" Newsgroups: gmane.emacs.help Subject: Re: Why is it not possible to use "nil" any more in init files ? Date: Tue, 25 Nov 2014 14:19:34 +0100 Organization: http://www.migo.info Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1416921632 5974 80.91.229.3 (25 Nov 2014 13:20:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 25 Nov 2014 13:20:32 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Nov 25 14:20:27 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XtG2c-00008g-Sm for geh-help-gnu-emacs@m.gmane.org; Tue, 25 Nov 2014 14:20:27 +0100 Original-Received: from localhost ([::1]:57127 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XtG2Z-0006xj-S5 for geh-help-gnu-emacs@m.gmane.org; Tue, 25 Nov 2014 08:20:23 -0500 Original-Path: usenet.stanford.edu!goblin1!goblin.stu.neva.ru!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!cleanfeed1-b.proxad.net!nnrp1-1.free.fr!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Opera Mail/12.16 (Linux) Original-Lines: 36 Original-NNTP-Posting-Date: 25 Nov 2014 14:19:40 CET Original-NNTP-Posting-Host: 80.215.210.246 Original-X-Trace: 1416921580 news-2.free.fr 1597 80.215.210.246:44242 Original-X-Complaints-To: abuse@proxad.net Original-Xref: usenet.stanford.edu gnu.emacs.help:208879 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:101159 Archived-At: 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 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 > > --