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, a


From: Daniel Brooks
Subject: Re: Unicode confusables and reordering characters considered harmful, a simple solution
Date: Thu, 04 Nov 2021 22:23:46 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)

Stefan Kangas <stefan@marxist.se> writes:

> In any case, the above leads me back to the simple idea to raise
> byte-compiler (or even `read'?) warnings for the problematic control
> characters unless a specific variable is set to t, or unless the piece
> of code using them is wrapped in some `with-suppressed-warnings' call.
>
> Or we do it the other way around: users mark a source code file to say
> that "this file will never contain RTL characters" (but RTL scripts in
> ELisp code is pretty uncommon, I think).
>
> It doesn't seem too bad, certainly not much worse than having to add
> "coding: utf-8" or similar.

I prefer the former to the latter. Marking the whole file as not
containing RTL would close off too many avenues for future development
in that file. Marking a specific expression or form is much nicer.

>> Instead I think that Emacs should adopt a similar fast
>> strategy. Anything we do today can be refined later.
>
> FWIW, I tend to agree with this.

Thank you.

db48x



reply via email to

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