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: Andreas Schwab
Subject: Re: Unicode confusables and reordering characters considered harmful
Date: Wed, 03 Nov 2021 20:34:47 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)

On Nov 03 2021, Eli Zaretskii wrote:

>> From: Stefan Monnier <monnier@iro.umontreal.ca>
>> Cc: Gregory Heytings <gregory@heytings.org>,  Eli Zaretskii <eliz@gnu.org>,
>>  Stefan Kangas <stefan@marxist.se>,  cpitclaudel@gmail.com,
>>  emacs-devel@gnu.org
>> Date: Wed, 03 Nov 2021 14:47:26 -0400
>> 
>> >> +  (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.
>
> Huh?  What's unclear in a line like this one:
>
>   (aset buffer-display-table ?‫ [?←])

Can you explain what `?([←?]' means?

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."



reply via email to

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