emacs-devel
[Top][All Lists]
Advanced

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

Re: [Emacs-diffs] master 9ce1d38: Use curved quotes in core elisp diagno


From: Dmitry Gutov
Subject: Re: [Emacs-diffs] master 9ce1d38: Use curved quotes in core elisp diagnostics
Date: Sun, 23 Aug 2015 11:11:34 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:40.0) Gecko/20100101 Thunderbird/40.0

On 08/23/2015 02:45 AM, Paul Eggert wrote:

Yes, although that's a longstanding problem: it's not something that the
recent quoting-style changes have introduced, and it's not something
that we really need to address now.

Nothing longstanding there. Where before, (format "‘abc’") passed through the input unchanged, now it _might_ be changed, depending on some global variable. That can bite a programmer in the behind.

That being said, we could attack the problem somewhat by having %qs not
only quote its output, but also insert backslashes in front of each
troublesome character (which should include the characters in the string
"\n\\\"'‘’“”", say).  This would work only in output contexts where
backslash escapes make sense, but that's reasonably common and anyway
the output would be unambiguous, which is better than what we have now.

That entirely misses my point.

    (error "Cannot find image file %qs" name)

Again, I'm not talking about error messages.



reply via email to

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