emacs-devel
[Top][All Lists]
Advanced

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

Re: /srv/bzr/emacs/trunk r102775: Allow format args for y-or-n-p and yes


From: Chong Yidong
Subject: Re: /srv/bzr/emacs/trunk r102775: Allow format args for y-or-n-p and yes-or-no-p.
Date: Thu, 13 Jan 2011 12:39:56 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Katsumi Yamaoka <address@hidden> writes:

>>   * lisp/subr.el (y-or-n-p): Accept format string args.
>>   * src/fns.c (Fyes_or_no_p): Accept format string args.
>
> So, how do we write a Lisp source program that is for various
> Emacs versions, and that uses `y-or-n-p' or `yes-or-no-p' like
> the following?  (Please try evaluating it.)
>
> (y-or-n-p "Is it 100% ok? ")

Good point.  For compatibility, probably we should fall back on the old
behavior if only one argument is supplied.



reply via email to

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