GNU bug report logs -
#23425
master branch: `message' wrongly corrupts ' to curly quote.
Previous Next
Reported by: Alan Mackenzie <acm <at> muc.de>
Date: Mon, 2 May 2016 15:26:02 UTC
Severity: normal
Tags: notabug, wontfix
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
On 05/02/2016 12:10 PM, Alan Mackenzie wrote:
>
>> (message "%s" M) is the usual way to output a message M without
>> formatting it, and something like this is needed anyway if M might
>> contain %.
> That is the case for a string that might contain percent characters. It
> is not the case for a string known to be without percents.
Sure, but the most common problem here is using (message M) to output an
arbitrary string M that is under user control, which is why the advice
about (message "%s" M) is helpful. This advice works for all format
directives, not just % directives.
> There is no mention of its corruption of quotes in
> `messages''s doc string.
Thanks, good point. I fixed it by installing the attached patch, which
should address the other documentation problems you mention too.
> It appears to me that these substitutions are only done on pairs of
> quote marks, not single quotes.
What gives you that impression? Substitutions are done on all quotes,
not just paired quotes.
> Properly, for me, means that it handles percent escape sequences, AND
> OTHERWISE LEAVES THE STRING UNCHANGED.
This alternative was considered when designing text-quoting-style, but
at the time we didn't see a need for the extra complexity. The
particular glitch you ran into is not a strong argument for revisiting
this now.
> Why is it not in the section "incompatible Lisp changes"?
It is in that section, under "** New variable 'text-quoting-style' ...".
[0001-Doc-fixes-for-quoting.txt (text/plain, attachment)]
This bug report was last modified 7 years and 337 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.