emacs-devel
[Top][All Lists]
Advanced

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

Re: Change of Lisp syntax for "fancy" quotes in Emacs 27?


From: Paul Eggert
Subject: Re: Change of Lisp syntax for "fancy" quotes in Emacs 27?
Date: Sat, 6 Oct 2018 11:03:25 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1

Eli Zaretskii wrote:

these examples are not relevant to the issue at hand,
which is only about quotes

Quotes are part of the same problem. For example, here's some code in Gnus:

   (ignore-errors (gnus-get-function method 'open-server))

Change that APOSTROPHE (U+0027) to RIGHT SINGLE QUOTATION MARK (U+2019) and the code will look the same but do something quite different, with no diagnostic. This sort of code is reasonably common and can easily be security-relevant. If Emacs stops diagnosing this abuse of confusable characters, we're opening ourselves up more to malicious code.

How will it lower the confusion, when the same is required for a space?

Let me rephrase my point, with apostrophe rather than space.

The point is not to distinguish ´open-server (with U+00B4 ACUTE ACCENT) from ՚open-server (with U+055A ARMENIAN APOSTROPHE); the point is to distinguish both of these from the 'open-server (apostrophe followed by symbol) that a reader would ordinarily expect here. We need to give an obvious way for human readers to see that something odd is going on. Readers can then use C-x = (or whatever) to find out exactly what the oddness is.



reply via email to

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