From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nikolaj Schumacher Newsgroups: gmane.emacs.help Subject: Re: An elisp question Date: Fri, 19 Sep 2008 18:13:40 +0200 Message-ID: References: <87zlm7alrq.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1221841224 9704 80.91.229.12 (19 Sep 2008 16:20:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 19 Sep 2008 16:20:24 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: gavenkoa@gmail.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 19 18:21:21 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KgijR-0004L2-1T for geh-help-gnu-emacs@m.gmane.org; Fri, 19 Sep 2008 18:21:21 +0200 Original-Received: from localhost ([127.0.0.1]:40317 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KgiiP-0007Qh-Jj for geh-help-gnu-emacs@m.gmane.org; Fri, 19 Sep 2008 12:20:17 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kgic4-0005IR-QT for help-gnu-emacs@gnu.org; Fri, 19 Sep 2008 12:13:44 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kgic3-0005Hh-Ao for help-gnu-emacs@gnu.org; Fri, 19 Sep 2008 12:13:43 -0400 Original-Received: from [199.232.76.173] (port=36592 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kgic3-0005Hb-36 for help-gnu-emacs@gnu.org; Fri, 19 Sep 2008 12:13:43 -0400 Original-Received: from dd18200.kasserver.com ([85.13.138.168]:43075) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kgic2-0002pu-Te for help-gnu-emacs@gnu.org; Fri, 19 Sep 2008 12:13:43 -0400 Original-Received: from thursday (kobz-590f1232.pool.einsundeins.de [89.15.18.50]) by dd18200.kasserver.com (Postfix) with ESMTP id C06741802B21B; Fri, 19 Sep 2008 18:13:45 +0200 (CEST) In-Reply-To: (Oleksandr Gavenko's message of "Wed\, 17 Sep 2008 21\:29\:38 +0300") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2.50 (darwin) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:57808 Archived-At: Oleksandr Gavenko wrote: > In elisp intro (Created on March, 10 2004 by texi2html 1.64) > I not find match of "yes-or-no-p" func and so special example for you say. > > In elisp.html (edition 2.8) on "20.6 Yes-or-No Queries" also there no special > warning about use of "Yes-or-No". I think this is a misunderstanding. Drew meant the answer on "how to call a function" was to be found in the elisp intro. The yes-or-no-p thing was just an additional note. Incidentally, if anything, testing for t is more correct. :) The doc for `y-or-n-p' clearly states, it will return t for "yes". It could be extended to return 'cancel without changing the interface. Using any non-nil value as "yes" is indeed an assumption. (Not that it's likely to break, or that I haven't made that assumption myself...) regards, Nikolaj Schumacher