GNU bug report logs - #10909
24.0.94; doc of `define-minor-mode'

Previous Next

Package: emacs;

Reported by: "Drew Adams" <drew.adams <at> oracle.com>

Date: Wed, 29 Feb 2012 02:56:02 UTC

Severity: minor

Found in version 24.0.94

Done: Chong Yidong <cyd <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #13 received at 10909 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: 10909 <at> debbugs.gnu.org
Cc: cyd <at> gnu.org
Subject: Re: bug#10909: 24.0.94; doc of `define-minor-mode'
Date: Sun, 23 Sep 2012 11:25:03 -0400
>> IOW, it says nothing about what happens when an arg is passed that is
>> not nil or omitted or `toggle'.  And I've seen at least one user try to
>> use `(foo-mode t)'.  It turns out that that has the same effect as
>> `(foo-mode 1)', but nothing in the doc says that it should.
> Fixed in trunk.

Actually, I think the right fix is to replace calls that use t with
calls that use 1, rather than documenting the accidental behavior.


        Stefan




This bug report was last modified 12 years and 241 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.