all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Robert Pluim <rpluim@gmail.com>
Cc: drew.adams@oracle.com, stefankangas@gmail.com, emacs-devel@gnu.org
Subject: Re: [External] : Re: master 7f53446: Doc fix for y-or-n-p; trailing space is no longer needed
Date: Wed, 04 Jan 2023 19:31:24 +0200	[thread overview]
Message-ID: <83358qyzo3.fsf@gnu.org> (raw)
In-Reply-To: <87mt6yi8qe.fsf@gmail.com> (message from Robert Pluim on Wed, 04 Jan 2023 17:07:37 +0100)

> From: Robert Pluim <rpluim@gmail.com>
> Cc: Stefan Kangas <stefankangas@gmail.com>,  "emacs-devel@gnu.org"
>  <emacs-devel@gnu.org>
> Date: Wed, 04 Jan 2023 17:07:37 +0100
> 
> - `y-or-n-p' has, since emacs 24.3 or so, appended a space to the prompt
> if there wasnʼt one
> - `yes-or-no-p' doesnʼt mess with the prompt
> 
> This discussion is about the documentation of those two facts, which
> needs adjusting since itʼs currently incorrect. There was a suggestion
> by me to maybe align `yes-or-no-p' behaviour (what you call "dwim") to
> match `y-or-n-p', but since thatʼs 'legacy' I doubt itʼs going to be
> done.

I don't see any reasons whatsoever to mention this DWIM-ish behavior
in a doc string.  We made these functions behave like that because we
believe that would silently DTRT in every reasonable use case, so
unless someone complains about this behavior, and documenting it
somehow satisfies the complaint, we should not confuse Lisp
programmers with these details, about which they should not care.

So I've went ahead and removed this detail from the two doc string,
including the fact that y-or-n-p adds a space _before_ the
parentheses.  I hope this will put this thread to rest.



      parent reply	other threads:[~2023-01-04 17:31 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20210916073852.6025.85941@vcs0.savannah.gnu.org>
     [not found] ` <20210916073853.B90BA20ABE@vcs0.savannah.gnu.org>
2023-01-03 14:31   ` master 7f53446: Doc fix for y-or-n-p; trailing space is no longer needed Robert Pluim
2023-01-03 15:33     ` Stefan Kangas
2023-01-03 15:59       ` Robert Pluim
2023-01-04  8:43       ` Jean Louis
2023-01-04 10:10         ` Robert Pluim
2023-01-04 15:53           ` [External] : " Drew Adams
2023-01-04 16:07             ` Robert Pluim
2023-01-04 16:12               ` Drew Adams
2023-01-04 16:14                 ` Robert Pluim
2023-01-04 17:31               ` Eli Zaretskii [this message]

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=83358qyzo3.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    --cc=rpluim@gmail.com \
    --cc=stefankangas@gmail.com \
    /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.