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

From: "Xah Lee" <[email-masked]>
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" <[email-masked]>
To: "Xah Lee" <[email-masked]>
Cc: <[email-masked]>; <[email-masked]>
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.