emacs-devel
[Top][All Lists]
Advanced

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

Re: emacs-28 a866674b2a: Fix inaccuracies in "lax search" documentation


From: Robert Pluim
Subject: Re: emacs-28 a866674b2a: Fix inaccuracies in "lax search" documentation
Date: Wed, 31 Aug 2022 18:56:55 +0200

>>>>> On Wed, 31 Aug 2022 19:40:10 +0300, Eli Zaretskii <eliz@gnu.org> said:

    Juri> Wouldn't it be cleaner to use just (read-char-from-minibuffer 
"Character: ")
    Juri> where you can either type a character directly or use 'C-x 8 RET'
    Juri> to insert a character by its name.
    >> 
    >> I guess that works as well, but then youʼre assuming knowledge of 'C-x
    >> 8 RETʼ. I canʼt come up with a strong argument either ways, so Iʼm
    >> going to chicken out here and see what Eli says ☺️

    Eli> Eli says that he was mightily surprised to see that just typing a
    Eli> character at the prompt didn't take that character literally, but
    Eli> instead interpreted it as a hex codepoint.

That pleads for `read-char-from-minibuffer', except that

(read-char-from-minibuffer "Character: ") RET
C-x 8 RET
LATIN SMALL LETTER A WITH DIAERESIS
=> [Wrong Answer]

which pleads for extending `read-char-by-name' to not do that single
character hex thing.

Robert
-- 



reply via email to

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