all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Xah Lee" <xah@xahlee.org>
To: "Stefan Monnier" <monnier@iro.umontreal.ca>
Cc: bug-gnu-emacs@gnu.org, 4102@emacsbugs.donarmstrong.com
Subject: bug#4102: 23.1.50; recentf-mode nil but toggles
Date: Mon, 10 Aug 2009 19:01:37 -0700	[thread overview]
Message-ID: <2F116E10862F449E8FE250395BB55937@xahPC> (raw)
In-Reply-To: <jwvws5bzkqv.fsf-monnier+emacsbugreports@gnu.org>

>> 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	other threads:[~2009-08-11  2:01 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-10  8:06 bug#4102: 23.1.50; recentf-mode nil but toggles Xah Lee
2009-08-10 16:40 ` Stefan Monnier
2009-08-11  2:01   ` Xah Lee [this message]
2009-08-12  4:05     ` Kevin Rodgers
2009-08-13 17:36       ` Stefan Monnier
     [not found]     ` <mailman.4441.1250051225.2239.bug-gnu-emacs@gnu.org>
2009-08-12 19:33       ` Xah Lee
2009-08-13  4:15         ` Drew Adams
2009-08-13  4:53           ` Xah Lee

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2F116E10862F449E8FE250395BB55937@xahPC \
    --to=xah@xahlee.org \
    --cc=4102@emacsbugs.donarmstrong.com \
    --cc=bug-gnu-emacs@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.