tramp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Missing trailing spaces in yes-or-no-p calls


From: Michael Albinus
Subject: Re: Missing trailing spaces in yes-or-no-p calls
Date: Tue, 09 May 2023 16:21:26 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

Tim Landscheidt <tim@tim-landscheidt.de> writes:

> Hi,

Hi Tim,

> one of the differences between y-or-n-p and yes-or-no-p is
> that the former adds " (y or n) " to the prompt, while the
> latter only appends "(yes or no) ", so prompts passed to
> yes-or-no-p need to end with a space.

This looks like an error in Emacs. See the example in
(info "(elisp) Yes-or-No Queries")

--8<---------------cut here---------------start------------->8---
     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 ----------
--8<---------------cut here---------------end--------------->8---

So perhaps you write an Emacs bug report.

Best regards, Michael.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]