emacs-devel
[Top][All Lists]
Advanced

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

Re: Unicode confusables and reordering characters considered harmful


From: Stefan Monnier
Subject: Re: Unicode confusables and reordering characters considered harmful
Date: Wed, 03 Nov 2021 14:47:26 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

>> +  (aset buffer-display-table ?‪ [?→])
>> +  (aset buffer-display-table ?‫ [?←])
>> +  (aset buffer-display-table ?‭ [?→])
>> +  (aset buffer-display-table ?‮ [?←])
>> +  (aset buffer-display-table ?⁦ [?→])
>> +  (aset buffer-display-table ?⁧ [?←])
>> +  (aset buffer-display-table ?⁨ [?↓])
>> +  (aset buffer-display-table ?‬ [?↑])
>> +  (aset buffer-display-table ?⁩ [?↑])
>
> A perfect example of how legitimate use of these characters can mess up
> your source. :-)

FWIW, I think the source would be clearer if it used `?\u{CHARNAME}`
instead of the literal chars.


        Stefan "who usually prefers `?<char>` over `?\u<...>`, but not
                when the char is non-printing"




reply via email to

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