From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#36989: 26.2; Doc string of `y-or-n-p': say it returns nil if answer is not `y' or `DEL' Date: Fri, 9 Aug 2019 10:20:37 -0700 (PDT) Message-ID: <8b912ab4-fceb-47ef-9fec-7ef16fa7d102@default> References: <85ef1u2rwg.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="104916"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 36989@debbugs.gnu.org To: Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Aug 09 19:21:10 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hw8Zg-000RA1-Hi for geb-bug-gnu-emacs@m.gmane.org; Fri, 09 Aug 2019 19:21:08 +0200 Original-Received: from localhost ([::1]:33128 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hw8Zf-0007iO-A4 for geb-bug-gnu-emacs@m.gmane.org; Fri, 09 Aug 2019 13:21:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39251) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hw8Zb-0007iI-Oi for bug-gnu-emacs@gnu.org; Fri, 09 Aug 2019 13:21:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hw8Za-0001lo-Od for bug-gnu-emacs@gnu.org; Fri, 09 Aug 2019 13:21:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34385) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hw8Za-0001lI-KF for bug-gnu-emacs@gnu.org; Fri, 09 Aug 2019 13:21:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hw8Za-0002PW-Ck for bug-gnu-emacs@gnu.org; Fri, 09 Aug 2019 13:21:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 09 Aug 2019 17:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36989 X-GNU-PR-Package: emacs Original-Received: via spool by 36989-submit@debbugs.gnu.org id=B36989.15653712509224 (code B ref 36989); Fri, 09 Aug 2019 17:21:02 +0000 Original-Received: (at 36989) by debbugs.gnu.org; 9 Aug 2019 17:20:50 +0000 Original-Received: from localhost ([127.0.0.1]:43206 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hw8ZO-0002Oh-EN for submit@debbugs.gnu.org; Fri, 09 Aug 2019 13:20:50 -0400 Original-Received: from userp2130.oracle.com ([156.151.31.86]:37848) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hw8ZK-0002ON-1X for 36989@debbugs.gnu.org; Fri, 09 Aug 2019 13:20:48 -0400 Original-Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x79HJWfK057427; Fri, 9 Aug 2019 17:20:39 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2019-08-05; bh=JgBYSWBMhQvOiCpFLKZJwP0Th+Pk0JDuFsQqTzmieIU=; b=bf0CPBInaZxW+PlxL6jtvLgEE+gYrEY3p+AFu9FLhOUmB54+2XPCoxFC9NhzgldARjtv B5rUsC7qzr9Hv8OoILehyVnFCQKG91v8TCfZcWzh4NizqT9+Sn1xj5v2wm6fyms8OT+K DqsjsB5sjaLF8xx9MT2BoWz2Gn0d3TDO3TBRMpTsRCnZYshb3TBGMyOBicq4fknrOFWH NVVW/t3WE5KcaHje9fIxqBq8R67zOA5/P0DFykQPSFRuCr38g4opirXQxzky2qaof0Jy vOKmsLAVDFPo7nR308tDPABWYQRiQydud4yn9hg/Bjbadk+TdLGavceAWGwZ+YsCRmHh eg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=JgBYSWBMhQvOiCpFLKZJwP0Th+Pk0JDuFsQqTzmieIU=; b=Va+UH3VwoYGqC/dRkV9nf4CrfiEPS+nNi6PISjOUN8XpCsMlKee6mtKYgr18XyG8TTzh BfE1a0NmCn90parw6AsPXGex+EpD3HmyyGu7lMneBk/cGCe+VNNMIkgXOdrQ/pVa99XT mCDQ4L8V8rXuYh2zz5Zcpi+ZOEJKJ3pekDJ5YaZ8ZD6qsc8bWuQmbxNpGvdbyi8cV5HS hz5C632manl2Q758Do3QxW2QkkZ+d82FVJvJGvUgu66BKVR4iEPPo5RznhieJ1f7laIw Ch03m4RV3gX5M2lIpxq3USWDtbuZmShbiFmQBXCqSGXgJW2rvbPgCkmkrahCFoBq7lwU 1g== Original-Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by userp2130.oracle.com with ESMTP id 2u8hps91np-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 09 Aug 2019 17:20:39 +0000 Original-Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x79HIBUu119479; Fri, 9 Aug 2019 17:20:39 GMT Original-Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userp3020.oracle.com with ESMTP id 2u90t7rg4r-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 09 Aug 2019 17:20:39 +0000 Original-Received: from abhmp0017.oracle.com (abhmp0017.oracle.com [141.146.116.23]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x79HKcr1031509; Fri, 9 Aug 2019 17:20:38 GMT In-Reply-To: <85ef1u2rwg.fsf@gmail.com> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4873.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9344 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=680 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1906280000 definitions=main-1908090171 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9344 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=728 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1906280000 definitions=main-1908090171 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:164810 Archived-At: > > Subject line says it all. The doc says only that it returns `t' if > > the answer is `y'. It should also say what it returns if the answer > > is no (not `y' or `DEL'). >=20 > Did you miss where it says: > Return t if answer is "y" and nil if it is "n". > ^^^^^^^^^^^^^^^^ No, I didn't miss it, because it's not in the Emacs release I reported on (the latest release, AFAIK): Emacs 26.2. This is the full doc string (`C-h f'): y-or-n-p is a compiled Lisp function in 'subr.el'. (y-or-n-p PROMPT) Ask user a "y or n" question. Return t if answer is "y". Takes one argument, which is the string to display to ask the question. It should end in a space; 'y-or-n-p' adds '(y or n) ' to it. No confirmation of answer is requested; a single character is enough. Also accepts SPC to mean yes, or DEL to mean no.