From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel,gmane.mail.wanderlust.general 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 Message-ID: <87ei8gsnwz.fsf@stupidchicken.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1294943467 12817 80.91.229.12 (13 Jan 2011 18:31:07 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 13 Jan 2011 18:31:07 +0000 (UTC) Cc: wl-en@lists.airs.net, emacs-devel@gnu.org To: Katsumi Yamaoka Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 13 19:31:01 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PdRwq-00008T-Er for ged-emacs-devel@m.gmane.org; Thu, 13 Jan 2011 19:31:00 +0100 Original-Received: from localhost ([127.0.0.1]:42731 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PdRwp-0005Dg-UB for ged-emacs-devel@m.gmane.org; Thu, 13 Jan 2011 13:30:59 -0500 Original-Received: from [140.186.70.92] (port=41316 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PdR9U-0000RF-Nc for emacs-devel@gnu.org; Thu, 13 Jan 2011 12:40:01 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PdR9T-00028p-7J for emacs-devel@gnu.org; Thu, 13 Jan 2011 12:40:00 -0500 Original-Received: from vm-emlprdomr-04.its.yale.edu ([130.132.50.145]:57599) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PdR9T-00028k-5T for emacs-devel@gnu.org; Thu, 13 Jan 2011 12:39:59 -0500 Original-Received: from furball (dhcp128036014187.central.yale.edu [128.36.14.187]) (authenticated bits=0) by vm-emlprdomr-04.its.yale.edu (8.14.4/8.14.4) with ESMTP id p0DHduBs023739 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 13 Jan 2011 12:39:56 -0500 Original-Received: by furball (Postfix, from userid 1000) id 44ECC162025; Thu, 13 Jan 2011 12:39:56 -0500 (EST) In-Reply-To: (Katsumi Yamaoka's message of "Thu, 13 Jan 2011 23:27:55 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Scanned-By: MIMEDefang 2.71 on 130.132.50.145 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:134488 gmane.mail.wanderlust.general:4365 Archived-At: Katsumi Yamaoka 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.