|
From: | Paul Eggert |
Subject: | Re: Change of Lisp syntax for "fancy" quotes in Emacs 27? |
Date: | Sat, 6 Oct 2018 12:30:23 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 |
Eli Zaretskii wrote:
(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.
... adding a backslash between the U+2019 quote will not significantly improve the situation, because Emacs Lisp uses backslashes in many other situation, like ?\", and therefore the mere fact that there is a backslash doesn't necessarily alert the human reader to the existence of an unusual character.
True, a backslash within a string or character is not a sufficient alert. However, a backslash within a symbol is. For example, although it's relatively common to see strings like this in Elisp source code:
"color=\"blue\"" it's extremely uncommon to see symbols like this: color=\"blue\"and so if one sees such a symbol (possibly with some other character in place of the " marks, possibly not) one will easily know that something odd is going on.
[Prev in Thread] | Current Thread | [Next in Thread] |