From: Katsumi Yamaoka <yamaoka@jpl.org>
To: Chong Yidong <cyd@stupidchicken.com>
Cc: emacs-devel@gnu.org, wl-en@lists.airs.net
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 23:27:55 +0900 [thread overview]
Message-ID: <b4m1v4gzxn8.fsf@jpl.org> (raw)
In-Reply-To: E1PbGtF-0005Ln-Jb@internal.in.savannah.gnu.org
> * 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? ")
It's no more than an example; a prompt string may be the one that
a fickle program generates.
(y-or-n-p "Is it 100%% ok? ")
is not a solution because it's bad for Emacs 23 and earlier (and
XEmacs). Taiji Can reported in the wl list that Wanderlust causes
an error recently as follows:
> Debugger entered--Lisp error: (error "Not enough arguments for format string")
[...]
> y-or-n-p("Execute marks in %INBOX:username/clear@mailserver:143!!? (answer \"n\" to discard them) ")
Where "%INBOX:..." is a mail folder name that Wanderlust uses.
I think we can't help reverting it.
Regards,
next parent reply other threads:[~2011-01-13 14:27 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 ` Katsumi Yamaoka [this message]
2011-01-13 17:39 ` /srv/bzr/emacs/trunk r102775: Allow format args for y-or-n-p and yes-or-no-p Chong Yidong
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b4m1v4gzxn8.fsf@jpl.org \
--to=yamaoka@jpl.org \
--cc=cyd@stupidchicken.com \
--cc=emacs-devel@gnu.org \
--cc=wl-en@lists.airs.net \
/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.