unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Chong Yidong <cyd@stupidchicken.com>
To: Katsumi Yamaoka <yamaoka@jpl.org>
Cc: wl-en@lists.airs.net, emacs-devel@gnu.org
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	[thread overview]
Message-ID: <87ei8gsnwz.fsf@stupidchicken.com> (raw)
In-Reply-To: <b4m1v4gzxn8.fsf@jpl.org> (Katsumi Yamaoka's message of "Thu, 13 Jan 2011 23:27:55 +0900")

Katsumi Yamaoka <yamaoka@jpl.org> 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	other threads:[~2011-01-13 17:39 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E1PbGtF-0005Ln-Jb@internal.in.savannah.gnu.org>
2011-01-13 14:27 ` /srv/bzr/emacs/trunk r102775: Allow format args for y-or-n-p and yes-or-no-p Katsumi Yamaoka
2011-01-13 17:39   ` Chong Yidong [this message]
2011-01-13 18:38     ` Andreas Schwab
2011-01-13 18:53       ` Chong Yidong
2011-01-13 19:02         ` Andreas Schwab
2011-01-13 19:14           ` /srv/bzr/emacs/trunk r102775: Allow format args for y-or-n-pand yes-or-no-p Drew Adams
2011-01-13 19:53           ` /srv/bzr/emacs/trunk r102775: Allow format args for y-or-n-p and yes-or-no-p Chong Yidong
2011-01-14  1:54     ` Richard Stallman
2011-01-20  2:59       ` Chong Yidong
2011-01-20  5:58         ` Katsumi Yamaoka
2011-01-13 20:54   ` Stefan Monnier

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87ei8gsnwz.fsf@stupidchicken.com \
    --to=cyd@stupidchicken.com \
    --cc=emacs-devel@gnu.org \
    --cc=wl-en@lists.airs.net \
    --cc=yamaoka@jpl.org \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).