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

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

bug#40216: 28.0.50; Misinformation in isearch char-fold


From: Robert Pluim
Subject: bug#40216: 28.0.50; Misinformation in isearch char-fold
Date: Fri, 27 Mar 2020 09:30:24 +0100

>>>>> On Fri, 27 Mar 2020 10:24:27 +0300, Eli Zaretskii <eliz@gnu.org> said:

    >> From: Juri Linkov <juri@linkov.net>
    >> Cc: Eli Zaretskii <eliz@gnu.org>,  40216@debbugs.gnu.org
    >> Date: Fri, 27 Mar 2020 01:04:12 +0200
    >> 
    >> I tried to find Røbert by typing Robert, but char-fold fails to find it.
    >> A bug in char-fold?

    Eli> I don't think it's a bug, because ø doesn't have a decomposition in
    Eli> the Unicode character database:

    Eli>    (get-char-code-property ?ø 'decomposition) => (248)

    Eli> (i.e. the character "decomposes" into itself).  By contrast:

    Eli>    (get-char-code-property ?á 'decomposition) => (97 769)

    Eli> (i.e. á decomposes into a followed by U+0301 COMBINING ACUTE ACCENT).

    Eli> So if one wants to support the kind of folding you expected, one would
    Eli> have to customize char-fold-include to add those additional rules.

Yes, wrong example. I guess this wouldnʼt be useful after all (and I
see nothing wrong with Juri's proposed fix to the actual issue).

Robert





reply via email to

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