GNU bug report logs - #4102
23.1.50; recentf-mode nil but toggles

Previous Next

Package: emacs;

Reported by: "Xah Lee" <xah <at> xahlee.org>

Date: Mon, 10 Aug 2009 08:15:05 UTC

Severity: normal

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Xah Lee <xah <at> xahlee.org>
Cc: 4102 <at> debbugs.gnu.org, <bug-gnu-emacs <at> gnu.org>
Subject: bug#4102: 23.1.50; recentf-mode nil but toggles
Date: Mon, 10 Aug 2009 12:40:34 -0400
> in my elisp code, i have:
> (recentf-mode nil)
> this should turn it off, but actually it toggles.

That's indeed the standard behavior for all minor modes.  Use integers
to avoid such surprises.

> With prefix argument arg, turn on if positive, otherwise off.

It's not clear whether nil is positive or negative.


        Stefan



This bug report was last modified 15 years and 340 days ago.

Previous Next


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