emacs-bug-tracker
[Top][All Lists]
Advanced

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

bug#71429: closed (Inconsistent y-or-n-p prompt behavior in Emacs Lisp)


From: GNU bug Tracking System
Subject: bug#71429: closed (Inconsistent y-or-n-p prompt behavior in Emacs Lisp)
Date: Sun, 09 Jun 2024 11:05:02 +0000

Your message dated Sun, 9 Jun 2024 07:02:55 -0400
with message-id 
<CADwFkmkjgLF+RBaW6ZdFvEe3MdaAGfNAtfP4cX1mX8UPn4sX-w@mail.gmail.com>
and subject line Re: bug#71429: Inconsistent y-or-n-p prompt behavior in Emacs 
Lisp
has caused the debbugs.gnu.org bug report #71429,
regarding Inconsistent y-or-n-p prompt behavior in Emacs Lisp
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
71429: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=71429
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: Inconsistent y-or-n-p prompt behavior in Emacs Lisp Date: Sat, 8 Jun 2024 09:03:37 +0200 User-agent: Mozilla Thunderbird

Hi,
I have the following Emacs Lisp code:

(progn
  (y-or-n-p "Test: ")
  (let ((search-spaces-regexp "\\(?:\\n?[\s\t]+\\|\n\\)?"))
    (y-or-n-p "Test: ")))

The first prompt from the y-or-n-p function appears as expected:

Test: (y or n)

However, the second prompt appears differently:

Test: (‘y’ or ‘n’)

I’m trying to understand why the second prompt format changes. What causes this inconsistency in the y-or-n-p prompt?

I suspect it might be related to the search-spaces-regexp variable or how Emacs handles interactive prompts, but I’m not sure. Any insights or explanations would be greatly appreciated!

Best regards,

Gabriele Nicolardi


--- End Message ---
--- Begin Message --- Subject: Re: bug#71429: Inconsistent y-or-n-p prompt behavior in Emacs Lisp Date: Sun, 9 Jun 2024 07:02:55 -0400
Eli Zaretskii <eliz@gnu.org> writes:

> OK, thanks.  So I now added the above caveat to the ELisp manual, and
> I'm closing this bug.

Actually closing.


--- End Message ---

reply via email to

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