From unknown Fri Jun 20 07:20:39 2025 X-Loop: help-debbugs@gnu.org Subject: bug#63399: 28.2; Documentation for yes-or-no-p wrong/different between docstring and lispref Resent-From: Tim Landscheidt Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 09 May 2023 20:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 63399 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 63399@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.168366453126803 (code B ref -1); Tue, 09 May 2023 20:36:02 +0000 Received: (at submit) by debbugs.gnu.org; 9 May 2023 20:35:31 +0000 Received: from localhost ([127.0.0.1]:44580 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pwU3X-0006yF-Hh for submit@debbugs.gnu.org; Tue, 09 May 2023 16:35:31 -0400 Received: from lists.gnu.org ([209.51.188.17]:40262) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pwU3R-0006y2-I0 for submit@debbugs.gnu.org; Tue, 09 May 2023 16:35:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pwU3R-0007nz-CZ for bug-gnu-emacs@gnu.org; Tue, 09 May 2023 16:35:25 -0400 Received: from andalucia.tim-landscheidt.de ([2a01:4f8:1c1c:d4d0::1]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pwU3P-0006C0-EV for bug-gnu-emacs@gnu.org; Tue, 09 May 2023 16:35:25 -0400 Received: from [195.226.160.202] (port=59366 helo=vagabond) by andalucia.tim-landscheidt.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1pwU3M-0006k1-H9 for bug-gnu-emacs@gnu.org; Tue, 09 May 2023 20:35:20 +0000 From: Tim Landscheidt Organization: https://www.tim-landscheidt.de/ Date: Tue, 09 May 2023 20:35:20 +0000 Message-ID: <874jolxmyf.fsf@vagabond.tim-landscheidt.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a01:4f8:1c1c:d4d0::1; envelope-from=tim@tim-landscheidt.de; helo=andalucia.tim-landscheidt.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) The documentation for yes-or-no-p in Emacs 28.2 reads: | yes-or-no-p is a built-in function in =E2=80=98C source code=E2=80=99. | (yes-or-no-p PROMPT) | Ask user a yes-or-no question. | Return t if answer is yes, and nil if the answer is no. | PROMPT is the string to display to ask the question; =E2=80=98yes-or-no-p= =E2=80=99 | adds "(yes or no) " to it. It does not need to end in space, but if | it does up to one space will be removed. | [=E2=80=A6] This is wrong: (yes-or-no-p "Prompt? ") gives the prompt "Prompt? (yes or no) ", but according to the docstring it should be "Prompt?(yes or no) ". With the big caveat that I have never looked deeper at Emacs's C code, the source in src/fns.c does not appear to change the prompt given as an argument in any way, but just append yes-or-no-prompt to it. Also, (elisp) Yes-or-No Queries reads (since 7f53446a10ea; doc/lispref/minibuf.texi): | [=E2=80=A6] | Here is an example: | (yes-or-no-p "Do you really want to remove everything?") | ;; After evaluation of the preceding expression, | ;; the following prompt appears, | ;; with an empty minibuffer: | ---------- Buffer: minibuffer ---------- | Do you really want to remove everything? (yes or no) | ---------- Buffer: minibuffer ---------- | [=E2=80=A6] This is not the actual result: (yes-or-no-p "Do you really want to remove everything?") gives the prompt "Do you really want to remove everything?(yes or no) ", i. e., the space before the parenthesis is missing. Finally, the behaviour is different when using use-short-answers: | (yes-or-no-p "Prompt?") gives "Prompt?(yes or no) ", while: | (let ((use-short-answers t)) (yes-or-no-p "Prompt?")) gives "Prompt? (y or n) ". From unknown Fri Jun 20 07:20:39 2025 X-Loop: help-debbugs@gnu.org Subject: bug#63399: 28.2; Documentation for yes-or-no-p wrong/different between docstring and lispref Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 10 May 2023 10:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63399 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Tim Landscheidt Cc: 63399@debbugs.gnu.org Received: via spool by 63399-submit@debbugs.gnu.org id=B63399.168371331410340 (code B ref 63399); Wed, 10 May 2023 10:09:02 +0000 Received: (at 63399) by debbugs.gnu.org; 10 May 2023 10:08:34 +0000 Received: from localhost ([127.0.0.1]:45281 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pwgkL-0002gg-KF for submit@debbugs.gnu.org; Wed, 10 May 2023 06:08:33 -0400 Received: from mout.gmx.net ([212.227.15.15]:46401) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pwgkJ-0002gS-4l for 63399@debbugs.gnu.org; Wed, 10 May 2023 06:08:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1683713305; i=michael.albinus@gmx.de; bh=XdxkOKhRm0Q0cJFCdBXTesK1HeGIFzbGoAlO3TffwBI=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=eVxzxlT3uyRKdztMr/jd8Qpm31iag4giJ7EB+z8DLHZK0e+8fqbOecMSFSguGa67U 3Ao1dxYE5TtgnJJGY+fZcYRsHAE+1vKp5emmAF31S8Z2VDZaSUFG1jjpqihI5EjXXe Ykbf0EjObKjCuvHPti9IdfD/Fnz1wBfZqu5btea8U7vjc+Mf3JgOm1W0STgO0v4+E3 ngqPMbUQHG/W4QltMFeXx+kMz44/D9JMia0+zOqv4J0m0AprWFNBXIIFsXFIje+v2k ofNJeqApzBABmZZ+Xuryq586L9l1VEKpsY4E54Mu6SHSKpIK/pnOdyhBD22ToICrE3 gUnASfIjglGOg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from gandalf.gmx.de ([185.89.39.0]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MA7GS-1q2hIQ3wHy-00BfBl; Wed, 10 May 2023 12:08:25 +0200 From: Michael Albinus In-Reply-To: <874jolxmyf.fsf@vagabond.tim-landscheidt.de> (Tim Landscheidt's message of "Tue, 09 May 2023 20:35:20 +0000") References: <874jolxmyf.fsf@vagabond.tim-landscheidt.de> Date: Wed, 10 May 2023 12:08:24 +0200 Message-ID: <87r0rozeg7.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Provags-ID: V03:K1:NRA5rllwxKDh+lmE4rpTk/ElrERVuQstIU+rp+l7hN8F9G7USs2 9lTpkL6odUrqMEdFNndRAP2wmXH+W4qPOHIYICruSxR9oG/bsc/vdukJzocm1T//zCq4GXV r1lMYD+QtG382gYV3ED5UXMCwAAdr2ZUgTqZgw34Q0p1OfGd83SuMTrGvpnLJVwMheFUasL nAsTleOKWjSv5MiKEu/TA== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:75NRzmTLHxw=;26su97CZg3NcE5eZLwj8g1hE6hN e+z4Dtp96eWz2aKGZ2xEVLELcme2JQgtYnB6yN3TLNCf10h22iynKBbBoe+4ZL6Woj4x/jaAL zCxByruBf6nVT7q5Zv37mZXCVhLxvOdZTEaMxcTzp0lcmkLElCwoDFuXiAaYgfK7bS8dHOWOP Xa5hRAmQe0aRpVsnmYjH4k7AZJIf2bwUXE6hD9irwjfoCCOtj9NA5cH6I2yZpJSua+eNJor6K k6BMpA4q0e/opQj7We7PUrYT0qroK+gJOQEBNekpKObShisVNY3YbO4cQoukGMsJdvXnOhJyC aI5R8zlo//JzwsuDH3rrF0/aPUbbii58kksGR8BXtoNJXpYhzXmCZhQh7zDuzWt4tE5NCePm3 ZloreuUs+jHervpW5EXOErWvO4wo848tKY2YmnZ3m4R3sgelwBguALv1HJI5vfrXFs9vvepzr fIcyp+mmBvrVJzMtVCVrtaeMIbcVVahcPR1T9BEAefosCBob0qle4uAp7gB8uazlRb+biNc6a 9gmpVax4JxT22jdExxFd9LLeRDeF2Ve9gS7tU2/UG+TZjpbUsTV2DHqtzbY1sAuMK1e1iYTiC UrRZpIwzVNLHjuc9fnK2GKqbb1nD9IeG6f0vuPoHo9cVR1pJKqQ6bfrPkL2QJKkBzsxkAiLgW o9uiTbNqvrGZ3sH7U2yQgCFom6tXEaEj91mxev24PZlIlr2A0Q7n6+zrK6Ido/jW91k8WoD0Z aRRK2Za0t+l/jKM80zWwzqS9IoRFdUdBCaPCMWYh/eSNxFzVYdUcr5WurcT11VgZffRFYQ94J VDaLug+oqVZz2iQFeMcCeodc5M9qXdo01RLCrKMDevm/CCcN+5NyViuuWI0sfk0uwY7V+QzEm iJBiYuho3NjAvb8L08B4rmnbY2m3r45Lc+5yQF7gFQfaPTZ8xTFTM8r8llSP3D1d5EozvcwNC Q213Jg== X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Tim Landscheidt writes: Hi, > With the big caveat that I have never looked deeper at > Emacs's C code, the source in src/fns.c does not appear to > change the prompt given as an argument in any way, but just > append yes-or-no-prompt to it. > > Also, (elisp) Yes-or-No Queries reads (since 7f53446a10ea; > doc/lispref/minibuf.texi): > > | [=E2=80=A6] > > | Here is an example: > > | (yes-or-no-p "Do you really want to remove everything?") > > | ;; After evaluation of the preceding expression, > | ;; the following prompt appears, > | ;; with an empty minibuffer: > > | ---------- Buffer: minibuffer ---------- > | Do you really want to remove everything? (yes or no) > | ---------- Buffer: minibuffer ---------- > > | [=E2=80=A6] > > This is not the actual result: (yes-or-no-p "Do you really > want to remove everything?") gives the prompt "Do you really > want to remove everything?(yes or no) ", i. e., the space > before the parenthesis is missing. I guess we should pad the prompt with a trailing space, if there isn't any already. As we do in `y-or-no-p'. What about the appended patch? Documentation must be updated as well, of course. Best regards, Michael. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment Content-Transfer-Encoding: quoted-printable diff --git a/src/fns.c b/src/fns.c index bb6efdda655..b081cb225e1 100644 =2D-- a/src/fns.c +++ b/src/fns.c @@ -26,6 +26,7 @@ Copyright (C) 1985-2023 Free Software Foundation, Inc. #include #include #include +#include #include "lisp.h" #include "bignum.h" @@ -3234,6 +3235,12 @@ DEFUN ("yes-or-no-p", Fyes_or_no_p, Syes_or_no_p, 1= , 1, 0, if (use_short_answers) return call1 (intern ("y-or-n-p"), prompt); + { + char *s =3D SSDATA (prompt); + ptrdiff_t len =3D strlen (s); + if (!(len =3D=3D 0) && !(isspace (s[len - 1]))) + prompt =3D CALLN (Fconcat, prompt, make_string (" ", 1)); + } prompt =3D CALLN (Fconcat, prompt, Vyes_or_no_prompt); specpdl_ref count =3D SPECPDL_INDEX (); --=-=-=-- From unknown Fri Jun 20 07:20:39 2025 X-Loop: help-debbugs@gnu.org Subject: bug#63399: 28.2; Documentation for yes-or-no-p wrong/different between docstring and lispref Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 10 May 2023 13:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63399 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Tim Landscheidt Cc: 63399@debbugs.gnu.org Received: via spool by 63399-submit@debbugs.gnu.org id=B63399.168372645622338 (code B ref 63399); Wed, 10 May 2023 13:48:02 +0000 Received: (at 63399) by debbugs.gnu.org; 10 May 2023 13:47:36 +0000 Received: from localhost ([127.0.0.1]:45574 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pwkAK-0005oD-3N for submit@debbugs.gnu.org; Wed, 10 May 2023 09:47:36 -0400 Received: from eggs.gnu.org ([209.51.188.92]:47306) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pwkAG-0005nz-M4 for 63399@debbugs.gnu.org; Wed, 10 May 2023 09:47:35 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pwkAA-0001is-OI; Wed, 10 May 2023 09:47:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=riTxLgKL+pxFUVCgKmbp2BTWw0Kdr/fJcOcEJH1g588=; b=JYV0zIHQrb0gXObPACiM aW/F3q4/FcggQvQ40k17CLBU4iRG4OVEPrKhbLT6nUVROLs5hApZdieHBN+ndGtrce9GLWaN64QZS DiqG0zXyqq+uM+NgDwMdcYkiaCQtIDah5ir19qu2jZTR9573UaCAqYzmpXB3f8pO1Jwgx04A4RE8Y WRouAq0k8tHfeehtEc3z2n4etUbEMAy3XoYf17/h2r0pPpQbznMZfSB1k49J52mFiwQE3hAuM0a/2 SsgiiolYCJJvtda3hOaPZXMNIR+/JlDdwo0qAPsiNsZLERmY1sD8NZSHYoDr/geBNiEwdWbZjtA89 PCsyAdis20/hOA==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pwkAA-0008NW-8P; Wed, 10 May 2023 09:47:26 -0400 Date: Wed, 10 May 2023 16:48:31 +0300 Message-Id: <83edno8fgw.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <874jolxmyf.fsf@vagabond.tim-landscheidt.de> (message from Tim Landscheidt on Tue, 09 May 2023 20:35:20 +0000) References: <874jolxmyf.fsf@vagabond.tim-landscheidt.de> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Tim Landscheidt > Date: Tue, 09 May 2023 20:35:20 +0000 > > The documentation for yes-or-no-p in Emacs 28.2 reads: > > | yes-or-no-p is a built-in function in ‘C source code’. > > | (yes-or-no-p PROMPT) > > | Ask user a yes-or-no question. > | Return t if answer is yes, and nil if the answer is no. > > | PROMPT is the string to display to ask the question; ‘yes-or-no-p’ > | adds "(yes or no) " to it. It does not need to end in space, but if > | it does up to one space will be removed. > > | […] > > This is wrong: (yes-or-no-p "Prompt? ") gives the prompt > "Prompt? (yes or no) ", but according to the docstring it > should be "Prompt?(yes or no) ". The doc string in Emacs 29 no longer includes the above confusing and inaccurate text about removing the space. So I think this documentation bug was already fixed. > Also, (elisp) Yes-or-No Queries reads (since 7f53446a10ea; > doc/lispref/minibuf.texi): > > | […] > > | Here is an example: > > | (yes-or-no-p "Do you really want to remove everything?") > > | ;; After evaluation of the preceding expression, > | ;; the following prompt appears, > | ;; with an empty minibuffer: > > | ---------- Buffer: minibuffer ---------- > | Do you really want to remove everything? (yes or no) > | ---------- Buffer: minibuffer ---------- > > | […] > > This is not the actual result: (yes-or-no-p "Do you really > want to remove everything?") gives the prompt "Do you really > want to remove everything?(yes or no) ", i. e., the space > before the parenthesis is missing. I've now fixed the example to be consistent with the result. > Finally, the behaviour is different when using > use-short-answers: > > | (yes-or-no-p "Prompt?") > > gives "Prompt?(yes or no) ", while: > > | (let ((use-short-answers t)) (yes-or-no-p "Prompt?")) > > gives "Prompt? (y or n) ". You are supposed to include the trailing blank if you want to ensure there's a blank between the prompt and the "(y or n)" part. I think we should close this bug now. From unknown Fri Jun 20 07:20:39 2025 X-Loop: help-debbugs@gnu.org Subject: bug#63399: 28.2; Documentation for yes-or-no-p wrong/different between docstring and lispref Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 10 May 2023 14:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63399 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Michael Albinus Cc: 63399@debbugs.gnu.org, tim@tim-landscheidt.de Received: via spool by 63399-submit@debbugs.gnu.org id=B63399.168372746627700 (code B ref 63399); Wed, 10 May 2023 14:05:01 +0000 Received: (at 63399) by debbugs.gnu.org; 10 May 2023 14:04:26 +0000 Received: from localhost ([127.0.0.1]:48531 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pwkQc-0007Ci-79 for submit@debbugs.gnu.org; Wed, 10 May 2023 10:04:26 -0400 Received: from eggs.gnu.org ([209.51.188.92]:38994) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pwkQY-0007CT-GI for 63399@debbugs.gnu.org; Wed, 10 May 2023 10:04:24 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pwkQS-0005BL-8p; Wed, 10 May 2023 10:04:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=g7OjTMWkJFW0p7viaWLzRGZAgqLywiYvoA3vNXgfcxA=; b=QxQ8qrX7Xz9Y 8yuBGhAdYqEVgu9LTIKAYILKry3tlyramx6fEqVtBVdBzSd88JBv0U6IpsykDb5UFNbQ8qzrhqKEA dtlJM2YMUzqZF86zLxNuz4T4Niz6hUbbXMoo9D4FGgqOjvF9JGKzwkIgy9eLK9/8PUDOK0pqJSV2Q ki+QsNy2VEgCBUpKXZfWrbI0E8Ev3OziLnH+4mvH4ilq6bRnkE/2YPdDLEQq0ELM41tUYaExZky7M AqntwhSRCbxblCj62lTH3bFcfYmd+bhdbYsBScOiYplHE0WkG+gEZR/Dq0aUfpS6s6xXUfl+01/im 9HqDqRtqbFbw3dQxwB68YQ==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pwkQQ-0005Q9-6E; Wed, 10 May 2023 10:04:15 -0400 Date: Wed, 10 May 2023 17:05:20 +0300 Message-Id: <83a5yc8eov.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <87r0rozeg7.fsf@gmx.de> (message from Michael Albinus on Wed, 10 May 2023 12:08:24 +0200) References: <874jolxmyf.fsf@vagabond.tim-landscheidt.de> <87r0rozeg7.fsf@gmx.de> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Cc: 63399@debbugs.gnu.org > From: Michael Albinus > Date: Wed, 10 May 2023 12:08:24 +0200 > > I guess we should pad the prompt with a trailing space, if there isn't > any already. No, I don't think we should. The caller should take care of any padding, if that is desired. The function shouldn't second-guess whether a space is needed or not. From unknown Fri Jun 20 07:20:39 2025 X-Loop: help-debbugs@gnu.org Subject: bug#63399: 28.2; Documentation for yes-or-no-p wrong/different between docstring and lispref Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 10 May 2023 14:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63399 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 63399@debbugs.gnu.org, Tim Landscheidt Received: via spool by 63399-submit@debbugs.gnu.org id=B63399.168372756527874 (code B ref 63399); Wed, 10 May 2023 14:07:02 +0000 Received: (at 63399) by debbugs.gnu.org; 10 May 2023 14:06:05 +0000 Received: from localhost ([127.0.0.1]:48535 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pwkSC-0007FW-Mz for submit@debbugs.gnu.org; Wed, 10 May 2023 10:06:04 -0400 Received: from mout.gmx.net ([212.227.17.22]:51395) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pwkS9-0007Ex-U3 for 63399@debbugs.gnu.org; Wed, 10 May 2023 10:06:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1683727556; i=michael.albinus@gmx.de; bh=v2YtLNgZGcSInAwp/SCZN6RXnCI9eKXtZHJOY2+q+0Y=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=fCy/UGRb3lW5xueKrhZ41lnahUvOGz7xFnrl++oCQE+n/f6249KIdNq3Yd23N6IIo Xt3GaEg8dRBOCUFzrRG67LrrV23wX/AYcXS6F15Xe3nipszoT+rpKb8YVcjvy6sbkY GlseBYTthOYF/m2l3VBsxeG9xdKdoqWxYLw2bPMybfg7QCDjOhLEkm9YdH4A+HbpFn Dcm4hkQ+S4gtw29gmvCS6sSCbsf671RDMnJ6K6sdNxU1BsxjLDg7ZncBZWEls1hYJP iCupK6ZuTyqLowzyME8BwBdYjqnoBTHl0em31EHEwPJHkMo9GLFRWjjyNx2F1+NZNP KKIzR3eKwXP/Q== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from gandalf.gmx.de ([185.89.39.13]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MLR1f-1peOcS37wp-00IUu8; Wed, 10 May 2023 16:05:55 +0200 From: Michael Albinus In-Reply-To: <83edno8fgw.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 10 May 2023 16:48:31 +0300") References: <874jolxmyf.fsf@vagabond.tim-landscheidt.de> <83edno8fgw.fsf@gnu.org> Date: Wed, 10 May 2023 16:05:54 +0200 Message-ID: <87jzxg1dtp.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:0w+DOnJwOnaDJo00uZ+xLTHYYk0lu6qqx/NVbpvrLChMcISr9cq MRhsLGtXLZvZMpPVFKEj6+JsSxDTzh6YA8MZoqxw/8QvV5AYbB69SjuXlyV+1giLA9qsRKN OUrP1boTW5Bh5q3ROoPnFNh2/qlH6x+6I4nO39nbK831icQyHwUkvUKwZdynlGufCo1ii43 y1VISoYitBN5w+io1EkfQ== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:+7CQmUgHtyE=;5+GNdiixWBKWbaekb8MsKJGwD5V DdoVuEidfvlPxccKUrH03uZ0DTC88bBBbm1N/B/gV2VlvpS+TsIHKlGBWwHbrIxICASEsnSxU h3UdGJ6o5FBMjg14KCYLtuYOP+zj0SeCDtIDAosAypH1Bt9UjAWHdUe+qBzHx5tijKG0fwf7s RjETZqHOocoIfJgnPLWdWkxTuJHZa0tLO3r6nRWtj+4reBHSlA1d56ld/CV4vQKRUKMK1oY2y FZMMHLCRu4d56DfAn4Fq32U/yz5RFh80ft/uau1syw/ykmzet7UW+oHAsx9dDCsoBpTsvdvzf bPBifqzoeKGosod8XDs4HQau5V+/FA8pCoiH2UP4hbsuge485ce0axVKYBTL6oy93/n3uEAO+ +pL3sU9DbnJk3eiVJhe3jB0UTNW+znD4FM8FzsR1GHWEpCMN1j4wdM0ujmOVbAZmAMUmb463L gseBph14Si+cPe9v/bls88ApOaqoXEeEYki8ibnsYCB0WvYy5ZET7n1bqvk3Bu+xzHjqFff7U gIX+sJPx6FVrWyzwiV72yMEVu2ULw+gvc2JAtzIREamheItQ1isHEFBEM5M68vSIYvk8yxaG+ DdPdVp3GgZ6S1I7/urUv6NoBjiMvpGpfVytPHxceykPCrv64ieo0j7jdy0qB9e8QGKqVgM6fg 8D4nNGFqKJpU/SG2LZXwD1LjINYxD+cLpq7ba6VpOdjfkiKXbCyusou29QHufzOPNrbweV2yV 8SqLI8BeDQ8E+HmCBhsy0DgH6VxyrdK5tovHhAfZDMRxdQeET6fhobC+6HHPdVAWLHFS0bsjQ ibbYklxVbEv/jqQ9INMXTutMk5+ihHw4tJ5qfBbpjyafsTn0Bgwna7tKINqlzaUq3T30IUo42 j3lfHcf2aw/jHnEMRi1aE7OKc8Es6VpkAphx/E3FPQ4q7KZX/l0wNFItH72flrESkz8qiufg8 XqpQtZmuWVWD3dAHpLzNqTSRmp0= X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Eli Zaretskii writes: Hi Eli, > You are supposed to include the trailing blank if you want to ensure > there's a blank between the prompt and the "(y or n)" part. In y-or-n-p, we add a trailing space if it doesn't exist. So I assume we could do it in yes-or-no-p as well. See my other message, where I have proposed a patch. Best regards, Michael. From unknown Fri Jun 20 07:20:39 2025 X-Loop: help-debbugs@gnu.org Subject: bug#63399: 28.2; Documentation for yes-or-no-p wrong/different between docstring and lispref Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 10 May 2023 14:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63399 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 63399@debbugs.gnu.org, tim@tim-landscheidt.de Received: via spool by 63399-submit@debbugs.gnu.org id=B63399.168372769228079 (code B ref 63399); Wed, 10 May 2023 14:09:02 +0000 Received: (at 63399) by debbugs.gnu.org; 10 May 2023 14:08:12 +0000 Received: from localhost ([127.0.0.1]:48539 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pwkU1-0007IK-3o for submit@debbugs.gnu.org; Wed, 10 May 2023 10:08:12 -0400 Received: from mout.gmx.net ([212.227.17.21]:37701) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pwkTz-0007I6-2h for 63399@debbugs.gnu.org; Wed, 10 May 2023 10:07:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1683727666; i=michael.albinus@gmx.de; bh=B1TFlwpaJ4xGUOzzURgQ3iCm2WKLSD/v4PTNR5tOoac=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=LpT+k4r1GvaEpNR9ijGhZ5dciXZWVfYdAwsneWUlCqzyFyPZ7LFiyxZRsjT67fxIS JYT3f6B/jW4287Uo1gSrvDClE0NKp9LWtNOv/Dupa8tYVs0MvoDuwJYFI0TbsRbX4O W/cxSs2iF0Bt7ms85bYLmJvodpGYPuQYSP6CsEHR5b59+YIxi6dxZCZdX9VAOyChNt LCyO3O+qCEvRFUNkM8Fp2Q/dYBXC7mwxBdZq+z8yE0KGLCisKg8SiJw2y2n0+V7bAW vEkC4jTbxumkc0n6VL9vAz22ki4oiuaq+tQl6+lUuByy6thc9GRwi9EV3wrufFC4Hi 46JQcxpre6Vow== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from gandalf.gmx.de ([185.89.39.13]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1McYCb-1qURCx21N7-00cvLs; Wed, 10 May 2023 16:07:46 +0200 From: Michael Albinus In-Reply-To: <83a5yc8eov.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 10 May 2023 17:05:20 +0300") References: <874jolxmyf.fsf@vagabond.tim-landscheidt.de> <87r0rozeg7.fsf@gmx.de> <83a5yc8eov.fsf@gnu.org> Date: Wed, 10 May 2023 16:07:45 +0200 Message-ID: <87fs841dqm.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:hMIASUc+Xp+dBMZOYuiErE/hXyPZiKLo03ZXj//C3fXvtJu/vWK U8mwQAU/Qae6O1c5LKsXaDpHiozG4VXHc1ZZVQ63tNK1soOM/RNNeeBhCgOdVW2+n9/7pfK idBhod2aee8QgqsDKIvf/YwYciQy39plteRIUEp6vIQPRSaXwNW2hdWMs49dxe3XdPloWcw qkVYWYTQGN+qejv9axYpg== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:GsLFUSiorjU=;lc/oQ8/iXHReTlw2FEmd5f6olrY WQSjnszINqq4XI1TICZlR7z1AcLI6VUbZhSTvJDoSewBwqmil1Tc2MsDzCDjJOoHxozQd99Wd PJtLSNvX4GWAwfVlOU4X162sV86guHmRCLFeKx9vazzlwxEwObvWbyo/PETEjORwIpKAfBqMe WGMnxJX4lucb3RARKIz7FXVbYuocjiNOJKes0K7U8nnecRnt+rD3uBQ/cx/uoBTTnUamLHJgF W1hLVUvVGgyoj3qmEmpKOF10m/aBPB4SKX/4yxdqlHMFQDg9ZwVR83WJYm+lC+juBq0TJ9/KN QCSSAvTXtszdB9RlNlNwCpxhrGLHtpce74xb5uSEJAWaIUykIQTcJpkMhM5EX1N17Xg5AlUcE b1ES//ky4Q5B8DcJuyGjvOPS+FBJ7v6Bhxak3DLA0DxmWIGHIT68G8GCfo+7lC4aECQW+Pg3A vNGb0qSam3OKFf+iMzzgwO089DSSW3f0M5nrYCIS5HNQzhlsE5AB8kpfZdb93dd1uD//81hiy /NrkmA7Fnv3qpJLoPhQyyHtcA/d9HdlbV7iSXPhmE+s9N1ZU+SjdqCj8s4lLATAu2kJ6Rn3Zx iU6RerICi4e3ETxcA8vEbRruToYzg1FX86YPWAC7RDpGzbp9MW6lCZpV7iioWG9BSlGqK6s4F 8JIs4hq4JEkPK5JS3KF1izJ8TBRd09lsr0t2ofaNSp09R0KXU1OLu0MXuvM537L/kbgnUAi9M cNyBC3cAepiB1cXRFygfX03+l3DjxjINhfNhDcOcYxq4Apd36cz/7ijoOYtz/ESlpVz1k3Rtf /1P1xA/9AwKQQBIQevijo1A5SxMw1OmMSGoqL0+GV75SAsjfmFP33IiXBre7majSH9o/kChWr JwsxxvzXLRMWwwDPjsAqnagT8xr9vU8D4gMjOoA+PGgI/1lGSUP1S6+sATKyUO3L3417v701X keSniCJhQkDnBkIwUyDxNg9TeSc= X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eli Zaretskii writes: >> I guess we should pad the prompt with a trailing space, if there isn't >> any already. > > No, I don't think we should. The caller should take care of any > padding, if that is desired. The function shouldn't second-guess > whether a space is needed or not. Why the difference to y-or-no-p? Best regards, Michael. From unknown Fri Jun 20 07:20:39 2025 X-Loop: help-debbugs@gnu.org Subject: bug#63399: 28.2; Documentation for yes-or-no-p wrong/different between docstring and lispref Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 10 May 2023 14:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63399 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Michael Albinus Cc: 63399@debbugs.gnu.org, tim@tim-landscheidt.de Received: via spool by 63399-submit@debbugs.gnu.org id=B63399.168372967731326 (code B ref 63399); Wed, 10 May 2023 14:42:01 +0000 Received: (at 63399) by debbugs.gnu.org; 10 May 2023 14:41:17 +0000 Received: from localhost ([127.0.0.1]:48622 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pwl0G-00089C-MR for submit@debbugs.gnu.org; Wed, 10 May 2023 10:41:16 -0400 Received: from eggs.gnu.org ([209.51.188.92]:48984) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pwl0D-00088w-Oh for 63399@debbugs.gnu.org; Wed, 10 May 2023 10:41:14 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pwl07-0004T1-R1; Wed, 10 May 2023 10:41:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=/j9FVI8hoFfnrO3gBF/edR9/vOYttjvvs6NM97vjglM=; b=aLG/CG4jTY+2 0VeFR4REMUjOgd04r42bRUdZ+IKxZcg/eAzdnC0SbuFZBvFbHryAdVr1pydy20InDqfpALKcDxfMy kl6l2UIuszqdX3Pl4GyS2Hz1jQagq3hjG2ayQDciGbWpR2dINlHAfJYkeoxo36a+ag5ixDbrFYVuM wSR+6rJu/PmP04CceVDY44V/qCmV1Bdj5Y49TEi33p2WtUzhUZfuon9lKXJKThlu5bLKPqFpVa1kx rlTyTuhfPGmZIewbHrfRr4KiqiNAxXEyRNNOxhc1Pt4CYE/DuxUHDnSZWKOwLVqQixDnv3/Mew5j4 pB0wuEkDDLpO3Oc+7ahDLw==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pwl06-0006ar-B9; Wed, 10 May 2023 10:41:06 -0400 Date: Wed, 10 May 2023 17:42:12 +0300 Message-Id: <83zg6c6yez.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <87fs841dqm.fsf@gmx.de> (message from Michael Albinus on Wed, 10 May 2023 16:07:45 +0200) References: <874jolxmyf.fsf@vagabond.tim-landscheidt.de> <87r0rozeg7.fsf@gmx.de> <83a5yc8eov.fsf@gnu.org> <87fs841dqm.fsf@gmx.de> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Michael Albinus > Cc: tim@tim-landscheidt.de, 63399@debbugs.gnu.org > Date: Wed, 10 May 2023 16:07:45 +0200 > > Eli Zaretskii writes: > > >> I guess we should pad the prompt with a trailing space, if there isn't > >> any already. > > > > No, I don't think we should. The caller should take care of any > > padding, if that is desired. The function shouldn't second-guess > > whether a space is needed or not. > > Why the difference to y-or-no-p? I don't know. But there's no difference if the prompt ends in a space. From unknown Fri Jun 20 07:20:39 2025 X-Loop: help-debbugs@gnu.org Subject: bug#63399: 28.2; Documentation for yes-or-no-p wrong/different between docstring and lispref Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 10 May 2023 14:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63399 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 63399@debbugs.gnu.org, tim@tim-landscheidt.de Received: via spool by 63399-submit@debbugs.gnu.org id=B63399.16837306501373 (code B ref 63399); Wed, 10 May 2023 14:58:01 +0000 Received: (at 63399) by debbugs.gnu.org; 10 May 2023 14:57:30 +0000 Received: from localhost ([127.0.0.1]:48639 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pwlFy-0000M5-Am for submit@debbugs.gnu.org; Wed, 10 May 2023 10:57:30 -0400 Received: from mout.gmx.net ([212.227.17.20]:43349) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pwlFv-0000Ln-Ak for 63399@debbugs.gnu.org; Wed, 10 May 2023 10:57:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1683730639; i=michael.albinus@gmx.de; bh=UYPXyZ6neu4sT9gqUWNhW9/zuRgAtt2OBZbHNj109cA=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=e1XMDPAbf5GDHBmGVFT3vuO9xQrdYoD/buj2ZhdBx/EXG6tdnzBnMlpkqvY1B9ZYo BcUdVhPpr5wVdnnatoAlKFgaoxSo8QX7NsMmSRqCRaq/yhr0YNuNH44YzJcg6wnESt pvYpzDcoXcVVE88O3W+M7X8B+QszAnbIi6gR4hCGeHiV5CNR43HugcunRy+eDzJR7J eyvs/Bmwk+c9W0FiQnL6aKvoPRtvLtkZeP3qZX/b9YpDSyflscjA+M2klz0tvSg1Mj CCais6Mgi4UkLN+kwYbfsAihE1wxCDPM9IyQkOJ972jcu7qohEbPOZ+8ehrd4atLXV HYZC4kOJcd0ZA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from gandalf.gmx.de ([185.89.39.13]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N6KYb-1qGApK34GX-016jrC; Wed, 10 May 2023 16:57:19 +0200 From: Michael Albinus In-Reply-To: <83zg6c6yez.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 10 May 2023 17:42:12 +0300") References: <874jolxmyf.fsf@vagabond.tim-landscheidt.de> <87r0rozeg7.fsf@gmx.de> <83a5yc8eov.fsf@gnu.org> <87fs841dqm.fsf@gmx.de> <83zg6c6yez.fsf@gnu.org> Date: Wed, 10 May 2023 16:57:17 +0200 Message-ID: <87a5yc1bg2.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:WjopYbBQJygEojChhpJEw9gCRk5TFKWR6RKOFaj87o5au28FmnQ yZFrU+VtahuEylbwzmwyDER7JM/amsVs2HzCamJxHcpaIofUH99UqmGUFEigLqCTr9byLgc 1XPALwkvRNkdlpRrNFSjSWEkTn/seGb7Gc6PS2yE00t057z9hCaHCDDQ7GP5DGFSFn2SPh8 KZlUozm7X+U1t74QVFc1g== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:LM4dJRd2FYo=;4KIWQP4JeR3FJF3rsZUoyPuOGnL rQadqLKklWDjSw4aF87y0TUiJw5fNRaClZuk7WPZy2f7epsBYM7EUWmJ935p1Q0S/tqIAWubK WRZaqAhtSnEUIR0D/aDwHBYkEHEZY+fx0zLs/Znu1NNeS/FWdbe1YsxBdAJcZDIjx+4pFQC3r MffGGQVDnxiY26Zrs9zhXIceH9XGnJztcCoelz8XDhkDyUgVt/6/Rm3MLQSfFJxoQFp7E5jZJ JCJR7oyOm6D5ysKP37qQUkGBiBHfUW07pJIeO3PDinSeCwloLiUf2cZUww1Tp1XcLu0eE6IVt xdfXQIEmJUwp1eI2rfWZ37eIkX8v/K4b3vEDAnS6Z54/wfgOp+xA9ZaLgxN4T39uLsazERW1E 6jnYi0a8VSlu78FYONYI1rbByawUnrHHo6zxaAq0Eu8g0rQ0g31g5sJFfuhZ1jlHw0YfSthmz ouLSfYurxSrSNcHn2klVyhxJ/MAkGMk8bzDZdU7dRlCGDxH2mauLIet5TUJeQXoRcc13jyQ9o 7jqDYAOwKGBpfq5hWUE/H78kUlF8EMDe71ZrO6y1u7KBFT4aA56rnM4QZ/OXwXJpANgaN6LU/ qSifEgV19nhBb7OvA3THeL5NxQKOuhgc/SC25yoi20l8HYP/E2TpTwSal1AnuocbXc6qoN7uq y26KjUTFIJWICKymtz53NL+E+pUW+DePdsRpu3fxn/sGkqY6D5FpfKrcz1Q/2OCaBVn/pvdFg WKU/LgObiSZoNPFmmInsQ+DvBR9JDtY+G7zB1e1cwEzXqn9T8no8wUHhxJwvT7yh97Ew4QUD7 VSh8vnDKszNWOL7i+VXXGXCO5lc3WzyNL8DkFPALcpvYTLD/TFt725Imq9B07/nxVg8XJBfz0 F5tvkE5InOBFwf93tYGmXTqak8YDslqZVFT+kgzHxVhnXNtZpWkBVlrwUgr+2/hr4LTfuP5ft C7NsvA== Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Eli Zaretskii writes: >> >> I guess we should pad the prompt with a trailing space, if there isn= 't >> >> any already. >> > >> > No, I don't think we should. The caller should take care of any >> > padding, if that is desired. The function shouldn't second-guess >> > whether a space is needed or not. >> >> Why the difference to y-or-no-p? > > I don't know. > > But there's no difference if the prompt ends in a space. Yes. It is just a convenience change, and there's code in the wild which doesn't use a trailing space in the propmpt, when calling yes-or-no-p. What would be wrong with my patch? I don't see that it hurts. Best regards, Michael. From unknown Fri Jun 20 07:20:39 2025 X-Loop: help-debbugs@gnu.org Subject: bug#63399: 28.2; Documentation for yes-or-no-p wrong/different between docstring and lispref Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 10 May 2023 15:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63399 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Michael Albinus Cc: 63399@debbugs.gnu.org, tim@tim-landscheidt.de Received: via spool by 63399-submit@debbugs.gnu.org id=B63399.16837334206350 (code B ref 63399); Wed, 10 May 2023 15:44:02 +0000 Received: (at 63399) by debbugs.gnu.org; 10 May 2023 15:43:40 +0000 Received: from localhost ([127.0.0.1]:48752 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pwlyd-0001eM-QM for submit@debbugs.gnu.org; Wed, 10 May 2023 11:43:40 -0400 Received: from eggs.gnu.org ([209.51.188.92]:35286) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pwlyc-0001e7-WB for 63399@debbugs.gnu.org; Wed, 10 May 2023 11:43:39 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pwlyW-0002mC-WE; Wed, 10 May 2023 11:43:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=AqE2r5v4sC5C6L7ARXNj2FhRYC4IRuGp21z2pKdT5x0=; b=c+Kcwl0ryvgn swK+UllbrfZrERiNUu5JNUJi+q+m9OsCnBon9XHSPuAIPHiAfACufyArl9GhGhvaF0QJHqR3tKrSj nvB9V9u6n/f4MPm9DDvsErnMEsomKeifK8uaRHS4Pk4eDlOAiMdBCV43u3/5mhc3ZijJUBqeXQG71 1h3znZVMoRhZ6QF56iGPD5ETo1cp6i7R7uYeaUPwtL+N09HFG+HGtWLP1BWYDL4U0ci8jPGpA6dHR MRv6zxQHNOTDoVOeze6A9aKJLmknCZTgIq6voQAs5EUXGnaAi7N2/da+OEoJdVKGE0v/xO/a8N8nX b/t9rJYEDQqJvHjDOAfvrw==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pwlyW-0004iz-G0; Wed, 10 May 2023 11:43:32 -0400 Date: Wed, 10 May 2023 18:44:38 +0300 Message-Id: <83sfc46vix.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <87a5yc1bg2.fsf@gmx.de> (message from Michael Albinus on Wed, 10 May 2023 16:57:17 +0200) References: <874jolxmyf.fsf@vagabond.tim-landscheidt.de> <87r0rozeg7.fsf@gmx.de> <83a5yc8eov.fsf@gnu.org> <87fs841dqm.fsf@gmx.de> <83zg6c6yez.fsf@gnu.org> <87a5yc1bg2.fsf@gmx.de> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Michael Albinus > Cc: tim@tim-landscheidt.de, 63399@debbugs.gnu.org > Date: Wed, 10 May 2023 16:57:17 +0200 > > Eli Zaretskii writes: > > > But there's no difference if the prompt ends in a space. > > Yes. It is just a convenience change, and there's code in the wild which > doesn't use a trailing space in the propmpt, when calling > yes-or-no-p. What would be wrong with my patch? I don't see that it > hurts. I'm sure something will come up. It isn't an accident that we have danced around this more than once in the past. But if you insist, please install on master, and let's see whose gray hair is more right... From unknown Fri Jun 20 07:20:39 2025 X-Loop: help-debbugs@gnu.org Subject: bug#63399: 28.2; Documentation for yes-or-no-p wrong/different between docstring and lispref Resent-From: Tim Landscheidt Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 10 May 2023 16:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63399 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: Michael Albinus , 63399@debbugs.gnu.org Received: via spool by 63399-submit@debbugs.gnu.org id=B63399.16837346949456 (code B ref 63399); Wed, 10 May 2023 16:05:01 +0000 Received: (at 63399) by debbugs.gnu.org; 10 May 2023 16:04:54 +0000 Received: from localhost ([127.0.0.1]:48796 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pwmJB-0002SS-Os for submit@debbugs.gnu.org; Wed, 10 May 2023 12:04:54 -0400 Received: from andalucia.tim-landscheidt.de ([116.203.78.250]:53570) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pwmJ7-0002SG-VQ for 63399@debbugs.gnu.org; Wed, 10 May 2023 12:04:52 -0400 Received: from [178.24.244.212] (port=47912 helo=vagabond) by andalucia.tim-landscheidt.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1pwmJ5-0000X7-I4; Wed, 10 May 2023 16:04:47 +0000 From: Tim Landscheidt Organization: https://www.tim-landscheidt.de/ References: <874jolxmyf.fsf@vagabond.tim-landscheidt.de> <87r0rozeg7.fsf@gmx.de> <83a5yc8eov.fsf@gnu.org> <87fs841dqm.fsf@gmx.de> <83zg6c6yez.fsf@gnu.org> <87a5yc1bg2.fsf@gmx.de> <83sfc46vix.fsf@gnu.org> Date: Wed, 10 May 2023 16:04:47 +0000 In-Reply-To: <83sfc46vix.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 10 May 2023 18:44:38 +0300") Message-ID: <87cz38rx40.fsf@vagabond.tim-landscheidt.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eli Zaretskii wrote: >> > But there's no difference if the prompt ends in a space. >> Yes. It is just a convenience change, and there's code in the wild which >> doesn't use a trailing space in the propmpt, when calling >> yes-or-no-p. What would be wrong with my patch? I don't see that it >> hurts. > I'm sure something will come up. It isn't an accident that we have > danced around this more than once in the past. > But if you insist, please install on master, and let's see whose gray > hair is more right... I support Michael's idea here. I do not remember any case where a prompt "Prompt?(yes or no) " was an intentional choice by the author. It looks "wrong". (The GNU Coding Standards recommend spaces before open-parentheses in C code, but strictly speaking this does not relate to the UI.) From unknown Fri Jun 20 07:20:39 2025 X-Loop: help-debbugs@gnu.org Subject: bug#63399: 28.2; Documentation for yes-or-no-p wrong/different between docstring and lispref Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 10 May 2023 16:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63399 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Tim Landscheidt Cc: michael.albinus@gmx.de, 63399@debbugs.gnu.org Received: via spool by 63399-submit@debbugs.gnu.org id=B63399.168373701113444 (code B ref 63399); Wed, 10 May 2023 16:44:02 +0000 Received: (at 63399) by debbugs.gnu.org; 10 May 2023 16:43:31 +0000 Received: from localhost ([127.0.0.1]:48864 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pwmuY-0003Um-Fl for submit@debbugs.gnu.org; Wed, 10 May 2023 12:43:30 -0400 Received: from eggs.gnu.org ([209.51.188.92]:56100) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pwmuT-0003UW-Ms for 63399@debbugs.gnu.org; Wed, 10 May 2023 12:43:29 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pwmuN-0006rS-3s; Wed, 10 May 2023 12:43:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=IbIj9vQBzTOvde0DXGqv652bKA3PvLrnmvN9ZCvS/Ww=; b=XmW+X1gBxVj1 WMyMyIEHB0/SFQI9wqNVqluwlekdNwheTo/z2v3/9ug8GrjxSjjO5cZ55HqSN94SFtPhhhVAipmLm WLWkJ9McHFpSomiV/rObwWeeRZrTKSUUe/rJSea+HJ93w3rSNfYtiIu9dXpa6yAOYMAzD/20FuxgP 9qzZ3wBID/ze1XfCWZhLm4DPybJAU2YOinNDQYovXjdkt6IQ8gGfeJFBQuadLyNOFC6sj6QqDNhbJ ipsnoa5Ee78PDCvtWlApc7GEw+PFTyN3wS4PCW5MePXLUGmJVJYdhUwrXCaCOCHNBzCgGjLzF0Aje Ic2EhrL1O2lT80g54SrfOg==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pwmuM-0003ME-KB; Wed, 10 May 2023 12:43:18 -0400 Date: Wed, 10 May 2023 19:44:24 +0300 Message-Id: <83lehw6srb.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <87cz38rx40.fsf@vagabond.tim-landscheidt.de> (message from Tim Landscheidt on Wed, 10 May 2023 16:04:47 +0000) References: <874jolxmyf.fsf@vagabond.tim-landscheidt.de> <87r0rozeg7.fsf@gmx.de> <83a5yc8eov.fsf@gnu.org> <87fs841dqm.fsf@gmx.de> <83zg6c6yez.fsf@gnu.org> <87a5yc1bg2.fsf@gmx.de> <83sfc46vix.fsf@gnu.org> <87cz38rx40.fsf@vagabond.tim-landscheidt.de> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Tim Landscheidt > Cc: Michael Albinus , 63399@debbugs.gnu.org > Date: Wed, 10 May 2023 16:04:47 +0000 > > Eli Zaretskii wrote: > > >> > But there's no difference if the prompt ends in a space. > > >> Yes. It is just a convenience change, and there's code in the wild which > >> doesn't use a trailing space in the propmpt, when calling > >> yes-or-no-p. What would be wrong with my patch? I don't see that it > >> hurts. > > > I'm sure something will come up. It isn't an accident that we have > > danced around this more than once in the past. > > > But if you insist, please install on master, and let's see whose gray > > hair is more right... > > I support Michael's idea here. Of course you do. And I won't argue, I will just say that you don't have enough gray hair in Emacs development. Time and again I see us willing to fix some minuscule issue, and as result introduce subtle problems and regressions which are frequently worse than the original issue. I suspect this is one of those cases. But I'm willing to consider the possibility that perhaps this time I will be wrong (yeah, right). From unknown Fri Jun 20 07:20:39 2025 X-Loop: help-debbugs@gnu.org Subject: bug#63399: 28.2; Documentation for yes-or-no-p wrong/different between docstring and lispref Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 10 May 2023 16:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63399 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 63399@debbugs.gnu.org, tim@tim-landscheidt.de Received: via spool by 63399-submit@debbugs.gnu.org id=B63399.168373773515481 (code B ref 63399); Wed, 10 May 2023 16:56:01 +0000 Received: (at 63399) by debbugs.gnu.org; 10 May 2023 16:55:35 +0000 Received: from localhost ([127.0.0.1]:48880 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pwn6E-00041d-Ha for submit@debbugs.gnu.org; Wed, 10 May 2023 12:55:34 -0400 Received: from mout.gmx.net ([212.227.15.19]:41433) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pwn6A-000412-Iu for 63399@debbugs.gnu.org; Wed, 10 May 2023 12:55:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1683737724; i=michael.albinus@gmx.de; bh=jHxnDKEotdnRyiTYfukjseUcm8UWP7VjQ+SXZQmwivM=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=tVK5ClmIVvLj0UXZGl09h/gMZvTEgpR1vnb+2iKkme9ybfPQMfBuntSAALLWnrZB3 iC6Pkpgu+gQCWYxziArpyxWK/GMPr2ZfhSvuTyV3L0fe6ZbCDvhDITR9uLy12h0IAd BocSTI25xBi1WcSfal6w9nXO+J6fSgnnl9PRe3RuKtMFC3vh14UTUEQtss2ZXX13mA /aro292HFLzyJqs5mN9nZhcRSrNzD8puY9sSYVfaD/TnlkgyATHK7kwL0c3jzSzXs8 mX2ZI+su42rtTOfuE6ePoPvbGbZMvydcUEKdMa9tG1SzSlD30I7rpPZReaTv3OhEly NUqFh1sjZgAEA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from gandalf.gmx.de ([185.89.39.13]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1M6lpM-1pqkPi1F7u-008MOg; Wed, 10 May 2023 18:55:24 +0200 From: Michael Albinus In-Reply-To: <83sfc46vix.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 10 May 2023 18:44:38 +0300") References: <874jolxmyf.fsf@vagabond.tim-landscheidt.de> <87r0rozeg7.fsf@gmx.de> <83a5yc8eov.fsf@gnu.org> <87fs841dqm.fsf@gmx.de> <83zg6c6yez.fsf@gnu.org> <87a5yc1bg2.fsf@gmx.de> <83sfc46vix.fsf@gnu.org> Date: Wed, 10 May 2023 18:55:23 +0200 Message-ID: <874jok15z8.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:eOGWq98uDZ2XKIAb8FBP99oCrNB74MSXXsMoKsPKzf78lNJ3pxP Q7WnEJEQI+RPzwDHCJB0l7x5j5Cw+aozeNQ91lo/RCoyXFouMQ5g+i7Yqut/5WiPL87BxK1 MZvUMTUJJX4kh+Hj9BfWvlMEe8JtviGA3qH+Oj8WCCnW3Hi8LT75DDGA1QcD39+9MVrs95s swFDLj8fSFdW7Ap8w7PfQ== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:UbhfHyK5CTU=;9Di6H3UGvxnWVee4rzur6omjJO5 j/DhTVkhA+p63okhpnuMjww9T4zkXJSz8EtHTv/ky/zb5oy2vCA2JojCnbTgXiVx7BNpkYRvi K1slpwdB/bx5hM06tJlIhEOMt+iOVvrECYVRV2G6W+nhvR6N4qinqgzqi8J9pFIWVUj6f7Y/f /LwfCBkqXwf/5mH4i+WdVZ/bcEO6Ro5tnGUZ0ZHTummbvkKI5wZbNpVGHv8aP8VrmPxyPxMfo AIxJVsYCHZYU+qP97IWseRdp1yR7+xN4NR2IAhv5IKA5GnpzgBYztMGicrg/srvQXdeGruARi ccFyOJ9KIt4h25P/x3cAlsZNrUcfO5xqOrxn1sSBnJc0nM2TYRDYed7r2TMonUqX6IKhmPIGb M6ZfkMdJ1Dn/3LdzlcNcGnQGdYJalcPn2zqG1SYQD/9W7Ub8OitObA9yv598V2QghnC0iKr04 JmJunzwSzw8NHNfwwQ+3EIRL0kXxOaSuknlWGWSEZ/dsZT1is/E24ui2U9wpZprdAxolDESdm WQSMX3L8Ml8nyYJNyr1FDZaxuOQIRb9+vBUEX6IHUFNy9POJ0L+mPWGBaBa6JkG2cCxwN89VN BTook8hnZiCKd+OrJnYp6vx3IkSZTEQSdw5tq/DYPqbCbIeyNM1yJSu05Ks/0sIOPj8VOc5y7 yo8yQL3gP9QM8TCrfKHABgWb09DsuMK2Fdw1Sk9qfKWamxJDWS4F5VQGo/Rj2/i8i8Pyj7JHR 2WdYFVBkou+kdki5svsKYsr1wXi0yeQgT720GIEpPJTNrDM0f+OgtvqMhoTckIazol+Sf9KKG s+Knu5KWI38HNS602pMU+fEkU9w415OCS3HF+UfRt1DUHV4+aw72dgHMfbQhdWqMBPyuCReZa BqzrMhMRtxTKi1d2zXmQbxoqQkHDEZ7QoPhgRvPXZMirUHkdX6zieEPlwec5AQlZrT2b1DwGz IsQv8hhlTWrbt4lIqEZS2VCwXFg= X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Eli Zaretskii writes: Hi Eli, >> Yes. It is just a convenience change, and there's code in the wild which >> doesn't use a trailing space in the propmpt, when calling >> yes-or-no-p. What would be wrong with my patch? I don't see that it >> hurts. > > I'm sure something will come up. It isn't an accident that we have > danced around this more than once in the past. > > But if you insist, please install on master, Will do. It might take one day or two. Tomorrow, I have a Grand-daughter-care day. Perhaps also on Friday. Obviously, with changed preferences :-) > and let's see whose gray hair is more right... Usually your hair, I know. Let's see. OTOH, don't trust my Gravatar image. It is 15+ years old. If you want to check my gray hair in reality, you might join the next Berlin Emacs meetup :-) Best regards, Michael. From unknown Fri Jun 20 07:20:39 2025 X-Loop: help-debbugs@gnu.org Subject: bug#63399: 28.2; Documentation for yes-or-no-p wrong/different between docstring and lispref Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 10 May 2023 16:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63399 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 63399@debbugs.gnu.org, Tim Landscheidt Received: via spool by 63399-submit@debbugs.gnu.org id=B63399.168373785715700 (code B ref 63399); Wed, 10 May 2023 16:58:02 +0000 Received: (at 63399) by debbugs.gnu.org; 10 May 2023 16:57:37 +0000 Received: from localhost ([127.0.0.1]:48890 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pwn8C-000458-Lm for submit@debbugs.gnu.org; Wed, 10 May 2023 12:57:37 -0400 Received: from mout.gmx.net ([212.227.15.19]:60101) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pwn8A-00044t-K5 for 63399@debbugs.gnu.org; Wed, 10 May 2023 12:57:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1683737849; i=michael.albinus@gmx.de; bh=rJxZuTRsU0HD3PCE/sElMjjiXTcjtuYv5kp1/GTBUmE=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=Cjr3FutFyFHzBEYW3IEG3qemtxSrMsOBlEqSWaHNpGmJ+RGBbalcb3Zte6xD4LkxX UvaUrNlG5wL+gLDC0RKV3JPScH28HV9Zm29oadnQmb7TNIlHiBa2bgdgB/ZZHtIIfg khOOsiJqvCQJxTXV+S0zcmcPhH3mr0X34HMe7KYgOA9+m89Mwz64yknBNXa9nYZJkt Kjw6AMYCwjGBvw9cLp+Q+tkHinSPTWFD6SCS4xFHMJFy1CbQeLU2DHgitC4R9Em9yw 6rAg6r5oVHnB+W/oZi7m5NkgYccFH06LixdQR4El6S9ftBchqbQGd64hCBXx00duFv ckVAguqTgdMng== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from gandalf.gmx.de ([185.89.39.13]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N6siz-1qGhRn3XR9-018Goe; Wed, 10 May 2023 18:57:28 +0200 From: Michael Albinus In-Reply-To: <83lehw6srb.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 10 May 2023 19:44:24 +0300") References: <874jolxmyf.fsf@vagabond.tim-landscheidt.de> <87r0rozeg7.fsf@gmx.de> <83a5yc8eov.fsf@gnu.org> <87fs841dqm.fsf@gmx.de> <83zg6c6yez.fsf@gnu.org> <87a5yc1bg2.fsf@gmx.de> <83sfc46vix.fsf@gnu.org> <87cz38rx40.fsf@vagabond.tim-landscheidt.de> <83lehw6srb.fsf@gnu.org> Date: Wed, 10 May 2023 18:57:28 +0200 Message-ID: <87zg6cyvif.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:NXyrVmlFkRG78F5Xif55Zc+mvced7Z7fURblRnRExXiApRf/6E5 0btHIUFQwzm5Lx+XDS9imgrCV5fQRBWxE8Q3TAF1MCxYL1Q7ZSXkh1axAMEfvcg02C3R3pp xEzWBDysAcn50LJdl90agCcyFq5lVZXy0qpJ/KogsDbU6PCO7bYHb9dwpaxoeVnwkKYF9XH BzQT/VrEc7/42kaVPTSyA== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:lkgWDGNW60o=;q7SbanExLyWeHagtqDiFcupJjqc RmzRyiaOn0RGoXjxmU1GXpPfFyHGg6iFuCWRoi5WbqcVCvfA6AbHFQohHR8+/M4mYgp2HLI5m Pd7zwIlp5Tn/ML3KEP9SrWXFjgByk4aBCI/n2+FT1sgOuUqMruISRv8qELsuljP+0/V0p4Nfl ZAuyRUKeu8uUnsYIG3Fbq9YlS0XPKLchifCQQmZUpgbLcO7CGHpWGa0Rpn/+fma4lAbkvvwQz FGmnyUU/ttyK7HwP/Mckz2VOJMY+5oGV31d3yBcTAyMc88ryIj9uvbyIxzY4/ccXtLel5gZvF WiKJ2iwWdgdwsNDFjXWE3v/epwA8pYMW/Sv4/sLxy6kYCjyvjurrEQR3We+r8tKNtveEdHsj9 bLw+06d4AvFkRytXi0O84MzXEOq8u9O3zUirx51hN3afN44d6AxKKymxbLex14SUkU++RpijU dyUCTAWzHRgPk748UtwYKxlq3cl44Z7+ic23LmU2FQYAKTt6dHl4ZnBqEAsxLIJ7kpQvWQbDR ekvSLrN9MX2NDSFHDQdIjBrViwBZycQ7nmFjrclDy1Crb98m1y3qK7CjO0WINj89Ah3ZWmspw 6ewzlspPmH1wUIWHGQmVP8+Qf+IM927+i/ZUIuVMh0/jElN4p3IORPuNU5twHD1NYQ4m4g/JQ n6zFtcQBedtnTM7PItaAG6/XXI9b4GBtMEvHhfGLWzXtT5jGu5cEvH3xznRV2b7unSEd6xZxo lsStSpH6yooM6zrt5hIJ93J2qnVho46YeVCmwfEqwr3vwlkXNs6/N5B4Y7VXH3QUqZClrbaWg /lBReMnX3NyE/WAiSuJoVVC5XX1tUB/poJPJaE0oqUjxW5WxZ2hxPCM70A66wdxYo4NGah3Cz onG4LltOGFnpqtABnh59ILJKtinUWi0MWRN5/OkC6Uya+eF2kEMXXMuevPrpWaG+EI8S7LsrH z454vXe2i1UZNE9IqI2wN0s0xAE= X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Eli Zaretskii writes: Hi Eli, > Of course you do. And I won't argue, I will just say that you don't > have enough gray hair in Emacs development. Time and again I see us > willing to fix some minuscule issue, and as result introduce subtle > problems and regressions which are frequently worse than the original > issue. I suspect this is one of those cases. But I'm willing to > consider the possibility that perhaps this time I will be wrong (yeah, > right). Obviously, you should forward all reports about this change to me. I'm prepared ... Best regards, Michael. From unknown Fri Jun 20 07:20:39 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Tim Landscheidt Subject: bug#63399: closed (Re: bug#63399: 28.2; Documentation for yes-or-no-p wrong/different between docstring and lispref) Message-ID: References: <87fs81q0ye.fsf@gmx.de> <874jolxmyf.fsf@vagabond.tim-landscheidt.de> X-Gnu-PR-Message: they-closed 63399 X-Gnu-PR-Package: emacs Reply-To: 63399@debbugs.gnu.org Date: Fri, 12 May 2023 10:50:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1683888602-23949-1" This is a multi-part message in MIME format... ------------=_1683888602-23949-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #63399: 28.2; Documentation for yes-or-no-p wrong/different between docstri= ng and lispref which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 63399@debbugs.gnu.org. --=20 63399: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D63399 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1683888602-23949-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 63399-done) by debbugs.gnu.org; 12 May 2023 10:49:23 +0000 Received: from localhost ([127.0.0.1]:54154 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pxQKx-0006DD-A4 for submit@debbugs.gnu.org; Fri, 12 May 2023 06:49:23 -0400 Received: from mout.gmx.net ([212.227.17.20]:51453) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pxQKv-0006Cz-Of for 63399-done@debbugs.gnu.org; Fri, 12 May 2023 06:49:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1683888555; i=michael.albinus@gmx.de; bh=NkEKHjWobBsDRDej1mmEEkMp98WdkQjP+c4n732zYAc=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=TNQSdNivq0RuQiwR7lUN7cn3INJmjFPip5j7LT2qCYWTxDAWR5hMPjW1tDGv+XhLB C0erhUyzn/O6jrMaA5ug82/wH8FaFaU2beelxB/MP2LFIjj5K4Cmpcf8S+AkRnTLn8 pOF9Fa/kyRWJvVRIrLgqJ/0lFOHMTqzmYv0eaywzck9LXFMC496LHleCFJa9dPkpLL n/IeE4nYHtE16TUut8Ojooq4nSiPM1xhGxIh/TpkV43II0KrwiPYwbj/5o3qlAq+nC +vFvyG3eTsnZ0Vm7u8cjuHMMHT4UCMJTzO3+DDy+Vu6rFQnfgUyrK4yxvpS9r93Y/N RdPi1Hla3smhg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from gandalf.gmx.de ([185.89.39.13]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MKKUp-1pcJe80xDz-00LpTm; Fri, 12 May 2023 12:49:15 +0200 From: Michael Albinus To: Eli Zaretskii Subject: Re: bug#63399: 28.2; Documentation for yes-or-no-p wrong/different between docstring and lispref In-Reply-To: <83sfc46vix.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 10 May 2023 18:44:38 +0300") References: <874jolxmyf.fsf@vagabond.tim-landscheidt.de> <87r0rozeg7.fsf@gmx.de> <83a5yc8eov.fsf@gnu.org> <87fs841dqm.fsf@gmx.de> <83zg6c6yez.fsf@gnu.org> <87a5yc1bg2.fsf@gmx.de> <83sfc46vix.fsf@gnu.org> Date: Fri, 12 May 2023 12:49:13 +0200 Message-ID: <87fs81q0ye.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:9moOi3YDYd/IMDzuaXR6fp5SJhn8r6P6xufoPtgUiZh36Aq9ylI CATYoKHd2lBjlblC8kKpr01WTKdCcUQQ6o/6ebVww1nmtA2VUAl8hoymIK9auMkrIqprgGJ hkGfVd/rYzHvLzkz9MvkvVOySVwqlhW8s4MNryMGfl4TsO+n8gi2jtUI4UTm47T5JXQSnvE VobN204xnC/fZYg06GNGg== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:q5HJwJuhV44=;X1SYPJ1JyYwCzGLiDGKJ+M5Dmg7 7qVYBGpW3PH2Usc4KB1hj1UE3Pmqm9iTecy1oDgaiy1TJ1MvZuETbSffE0wcZbMtdWEGDIJon /fJs/REeWUeENtAwazXUfOSIWi8fqfojfhDdfp9BmpmnCpqE+YxEEXpJjLK4zvJesQ2aSnSXu MWDEuve9L3Iiw2SjD10iw7B1J/Q9JTlyiK++Grg54KoFL0dyNo0j0Wl6x63nunC96Yx7/0y3M wfM2x0tTYzpKfM272liju7ciAdv8qJNtsEPQsg2s3V2lqyIFQyaLVQYapNMOA4PJEqbzeFH27 O4lho9TWYuw4CG52XMkHTysZd7nuWPxC9kBIA3dntMenepZ5PA1H/5wakOtU8Kz7vf0cI+Oow 0bn9aXRwr7lIQeWdvAMmtJ0cifiiBr3ApXuG5ln9rjiMp+EMe5DyDCHVXhMLJ1hbMPrKSDNi7 QPBwHRrJGoPDDtDAomzYpE/V78bQtC4kLZK9Hq6fMTDu0k081v8qUgfnkYzrfhlbqCrmysJ++ G+RnkuhNkeZFbD3fLiW3DDEPc979PoA6OPyFCoHj83m3HAXNH7qulOp4UOf9onFARvp2lwnoR 7cYEX4P9U3PPKxQiuOPRur8d49CO21FqpfmolFCekornhadZ8z/SMIDrbiGtRw3LJCsIHe2P8 O9WFqDesQ0FqhNKmavs54vTPXpT0EGETdIGCK3Dzk8ClxjwMHE4d26jI72ICmMnqZ1k9t4BEd zovZBZmPn9YS1mJRGuXyrTGuEI8PLIGCYVYERz9zu3OU33gHzahn0hU1W93bRvzQiKNKlKu/F nYFrJpAgo5JUUeK0hgZXP1cy06vZLALUdzTGEhsIJnGvc3vMjOZuZL1LJrv2sDxDaKoDn5iLu 7owpZd3Nd8FUrWFtGPZo7IiwXg7JEoNXHUhfg9AgAotTqz/KrFKvO/BVTYUlmtBJBjJNeojdm I7T+0Q== Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 63399-done Cc: 63399-done@debbugs.gnu.org, tim@tim-landscheidt.de X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Version: 30.1 Eli Zaretskii writes: Hi Eli, >> > But there's no difference if the prompt ends in a space. >> >> Yes. It is just a convenience change, and there's code in the wild whic= h >> doesn't use a trailing space in the propmpt, when calling >> yes-or-no-p. What would be wrong with my patch? I don't see that it >> hurts. > > I'm sure something will come up. It isn't an accident that we have > danced around this more than once in the past. > > But if you insist, please install on master, and let's see whose gray > hair is more right... I've pushed this to master. In NEWS.28, we have =2D-8<---------------cut here---------------start------------->8--- ** 'yes-or-no-p' and 'y-or-n-p' PROMPT parameter no longer needs trailing = space. In other words, the prompt can now end with "?" instead of "? ". This has been the case since Emacs 24.4 but was not announced or documented until now. (Checkdoc has also been updated to accept this convention.) =2D-8<---------------cut here---------------end--------------->8--- So this is the intended bahavior, and the patch is just a bug fix. Closing this report. Best regards, Michael. ------------=_1683888602-23949-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 9 May 2023 20:35:31 +0000 Received: from localhost ([127.0.0.1]:44580 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pwU3X-0006yF-Hh for submit@debbugs.gnu.org; Tue, 09 May 2023 16:35:31 -0400 Received: from lists.gnu.org ([209.51.188.17]:40262) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pwU3R-0006y2-I0 for submit@debbugs.gnu.org; Tue, 09 May 2023 16:35:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pwU3R-0007nz-CZ for bug-gnu-emacs@gnu.org; Tue, 09 May 2023 16:35:25 -0400 Received: from andalucia.tim-landscheidt.de ([2a01:4f8:1c1c:d4d0::1]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pwU3P-0006C0-EV for bug-gnu-emacs@gnu.org; Tue, 09 May 2023 16:35:25 -0400 Received: from [195.226.160.202] (port=59366 helo=vagabond) by andalucia.tim-landscheidt.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1pwU3M-0006k1-H9 for bug-gnu-emacs@gnu.org; Tue, 09 May 2023 20:35:20 +0000 From: Tim Landscheidt To: bug-gnu-emacs@gnu.org Subject: 28.2; Documentation for yes-or-no-p wrong/different between docstring and lispref Organization: https://www.tim-landscheidt.de/ Date: Tue, 09 May 2023 20:35:20 +0000 Message-ID: <874jolxmyf.fsf@vagabond.tim-landscheidt.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a01:4f8:1c1c:d4d0::1; envelope-from=tim@tim-landscheidt.de; helo=andalucia.tim-landscheidt.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) The documentation for yes-or-no-p in Emacs 28.2 reads: | yes-or-no-p is a built-in function in =E2=80=98C source code=E2=80=99. | (yes-or-no-p PROMPT) | Ask user a yes-or-no question. | Return t if answer is yes, and nil if the answer is no. | PROMPT is the string to display to ask the question; =E2=80=98yes-or-no-p= =E2=80=99 | adds "(yes or no) " to it. It does not need to end in space, but if | it does up to one space will be removed. | [=E2=80=A6] This is wrong: (yes-or-no-p "Prompt? ") gives the prompt "Prompt? (yes or no) ", but according to the docstring it should be "Prompt?(yes or no) ". With the big caveat that I have never looked deeper at Emacs's C code, the source in src/fns.c does not appear to change the prompt given as an argument in any way, but just append yes-or-no-prompt to it. Also, (elisp) Yes-or-No Queries reads (since 7f53446a10ea; doc/lispref/minibuf.texi): | [=E2=80=A6] | Here is an example: | (yes-or-no-p "Do you really want to remove everything?") | ;; After evaluation of the preceding expression, | ;; the following prompt appears, | ;; with an empty minibuffer: | ---------- Buffer: minibuffer ---------- | Do you really want to remove everything? (yes or no) | ---------- Buffer: minibuffer ---------- | [=E2=80=A6] This is not the actual result: (yes-or-no-p "Do you really want to remove everything?") gives the prompt "Do you really want to remove everything?(yes or no) ", i. e., the space before the parenthesis is missing. Finally, the behaviour is different when using use-short-answers: | (yes-or-no-p "Prompt?") gives "Prompt?(yes or no) ", while: | (let ((use-short-answers t)) (yes-or-no-p "Prompt?")) gives "Prompt? (y or n) ". ------------=_1683888602-23949-1--