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

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

bug#4102: 23.1.50; recentf-mode nil but toggles


From: Xah Lee
Subject: bug#4102: 23.1.50; recentf-mode nil but toggles
Date: Mon, 10 Aug 2009 19:01:37 -0700

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

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

Thanks. That's interesting.

Can the doc adds a warning like:

The argument should be a integer. Do not use t or nil.

?

 Xah
∑ http://xahlee.org/
----- Original Message ----- From: "Stefan Monnier" <monnier@iro.umontreal.ca>
To: "Xah Lee" <xah@xahlee.org>
Cc: <4102@emacsbugs.donarmstrong.com>; <bug-gnu-emacs@gnu.org>
Sent: Monday, August 10, 2009 9:40 AM
Subject: Re: bug#4102: 23.1.50; recentf-mode nil but toggles


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.







reply via email to

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