]> code.delx.au - gnu-emacs/commit
Extend ‘format’ to translate curved quotes
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 14 Aug 2015 22:50:35 +0000 (15:50 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 14 Aug 2015 22:55:57 +0000 (15:55 -0700)
commit244c801689d2f7a80480d83cd7d092d4762ebe08
tree6a07abc8b26966002de304b3546f3ccbebb2c865
parent293775f10555f7da7e61ed8dbdb78d72f30f7e2d
Extend ‘format’ to translate curved quotes

This is a followup to the recent doc string change, and deals with
diagnostics and the like.  This patch is more conservative than
the doc string change, in that the behavior of ‘format’ changes
only if its first arg contains curved quotes and the user prefers
straight or grave quotes.  (Come to think of it, perhaps we should
be similarly conservative with doc strings too, but that can wait.)
The upside of this conservatism is that existing usage is almost
surely unaffected.  The downside is that we'll eventually have to
change Emacs's format strings to use curved quotes in places where
the user might want curved quotes, but that's a simple and
mechanical translation that I'm willing to do later.  (Bug#21222)
* doc/lispref/help.texi (Keys in Documentation):
Move description of text-quoting-style from here ...
* doc/lispref/strings.texi (Formatting Strings):
... to here, and describe new behavior of ‘format’.
* etc/NEWS: Describe new behavior.
* lisp/calc/calc-help.el (calc-describe-thing):
* lisp/emacs-lisp/derived.el (derived-mode-make-docstring):
* lisp/info.el (Info-find-index-name):
Use ‘concat’ rather than ‘format’ to avoid misinterpretation
of recently-added curved quotes.
* src/doc.c (uLSQM0, uLSQM1, uLSQM2, uRSQM0, uRSQM1, uRSQM2):
Move from here ...
* src/lisp.h: ... to here.
* src/doc.c (text_quoting_style): New function.
(Fsubstitute_command_keys): Use it.
* src/editfns.c (Fformat): Implement new behavior.
* src/lisp.h (enum text_quoting_style): New enum.
doc/lispref/help.texi
doc/lispref/strings.texi
etc/NEWS
lisp/calc/calc-help.el
lisp/emacs-lisp/derived.el
lisp/info.el
src/doc.c
src/editfns.c
src/lisp.h