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 02:08:31 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:40.0) Gecko/20100101 Thunderbird/40.0

On 08/23/2015 01:43 AM, Paul Eggert wrote:

For example:

   (format "Moving file ‘%s’ to ‘%s’" src dest)
   (message "Moving file ‘%s’ to ‘%s’" src dest)
   (error "Cannot move file ‘%s’ to ‘%s’" src dest)

All three uses generate ambiguous output if SRC and DEST can contain
arbitrary characters, and this is true even if we fiddle with the format
strings’ quoting styles.

The difference is that ambiguity in the latter two uses can't really cause a program to lose correctness (unless someone is catching and parsing the error's message). An ambiguity in `format' can cause an unexpected error due to a program, say, being unable to open a file.



reply via email to

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