emacs/lisp/emacs-lisp
Paul Eggert 244c801689 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.
2015-08-14 15:55:57 -07:00
..
advice.el Fix some “nested” quoting confusion in doc strings 2015-06-21 12:38:08 -07:00
autoload.el add file name to autoload error messages. 2015-07-22 04:31:44 -05:00
avl-tree.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
backquote.el A few more doc string fixes (Bug#20385) 2015-05-28 00:45:00 -07:00
benchmark.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
bindat.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
byte-opt.el Address some compilation warnings. 2015-06-16 20:04:35 -04:00
byte-run.el * etc/TODO: Remove obsolete entries. 2015-03-25 14:28:25 -04:00
bytecomp.el Address a compilation warning. 2015-06-16 20:44:23 -04:00
cconv.el Add (:documentation <form>) for dynamically-generated docstrings 2015-02-05 14:28:16 -05:00
chart.el * lisp/emacs-lisp/chart.el (chart-axis-draw): Replace obsolete alias. 2015-05-11 23:50:08 -07:00
check-declare.el * lisp/emacs-lisp/check-declare.el (check-declare-warn): 2015-06-16 20:45:35 -04:00
checkdoc.el Don't overflow if computing approximate percentage 2015-07-31 10:13:38 -07:00
cl-extra.el Improve error signalling for seq-subseq. 2015-08-07 22:12:59 +01:00
cl-generic.el xref-find-definitions: Exclude more generic function items. 2015-08-13 13:16:47 -05:00
cl-indent.el Fix indentation for with-output-to-string 2015-06-26 18:03:30 +08:00
cl-lib.el Initialize cl--gensym-counter to 0 2015-06-27 10:59:08 -07:00
cl-macs.el Add online-help support to describe types 2015-07-07 02:14:16 -04:00
cl-preloaded.el Add online-help support to describe types 2015-07-07 02:14:16 -04:00
cl-seq.el Fix bootstrap (void function cl-member). 2015-05-13 19:02:31 -04:00
cl.el (define-modify-macro): Make sure cl--arglist-args is defined 2015-05-06 17:43:43 -04:00
copyright.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
crm.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
cursor-sensor.el Deprecate intangible' and point-entered' properties 2015-04-13 15:51:15 -04:00
debug.el * lisp/emacs-lisp/debug.el (debug-help-follow): Use describe-symbol. 2015-07-09 13:18:57 -04:00
derived.el Extend ‘format’ to translate curved quotes 2015-08-14 15:55:57 -07:00
disass.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
easy-mmode.el In strings, prefer plain and ' to \ and \' 2015-06-30 15:08:02 -07:00
easymenu.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
edebug.el Replace gui-method macros with cl-generic with &context 2015-05-23 11:32:29 -04:00
eieio-base.el (eieio-persistent-save): Don't ignore `file' arg (bug#20972) 2015-07-06 11:55:37 -04:00
eieio-compat.el * lisp/emacs-lisp/eieio-core.el (eieio--class-v): Remove 2015-07-02 10:59:32 -04:00
eieio-core.el Add online-help support to describe types 2015-07-07 02:14:16 -04:00
eieio-custom.el Spelling fixes 2015-05-05 12:25:48 -07:00
eieio-datadebug.el EIEIO: Change class's representation to unify instance & class slots 2015-03-18 23:02:26 -04:00
eieio-opt.el Don't overflow if computing approximate percentage 2015-07-31 10:13:38 -07:00
eieio-speedbar.el * lisp/emacs-lisp/eieio*.el: Fix up warnings and improve compatibility 2015-01-21 14:39:06 -05:00
eieio.el ; Auto-commit of loaddefs files. 2015-08-01 06:18:42 -04:00
eldoc.el Make eldoc timer non-repeatable 2015-07-21 16:58:14 +03:00
elint.el Don't require help-fns when not needed 2015-05-20 08:24:23 -07:00
elp.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
ert-x.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
ert.el Generate curved quotes in ert doc 2015-06-02 07:33:14 -07:00
ewoc.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
find-func.el xref-find-definitions: Exclude more generic function items. 2015-08-13 13:16:47 -05:00
float-sup.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
generator.el Address some compilation warnings. 2015-06-16 20:04:35 -04:00
generic.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
gv.el (gv-setter, gv-synthetic-place, gv-delay-error): New funs/macros 2015-07-07 11:37:04 -04:00
helper.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
inline.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
let-alist.el * lisp/let-alist.el: move to lisp/emacs-lisp/let-alist.el 2015-06-17 15:40:58 +01:00
lisp-mnt.el * emacs-lisp/lisp-mnt.el (lm-header): save-excursion 2015-08-12 08:55:38 +01:00
lisp-mode.el Add online-help support to describe types 2015-07-07 02:14:16 -04:00
lisp.el Further lisp-complete-symbol related cleanup. 2015-05-18 20:51:47 -04:00
macroexp.el Add online-help support to describe types 2015-07-07 02:14:16 -04:00
map-ynp.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
map.el Add support for gv.el in map.el 2015-07-09 19:49:47 +02:00
nadvice.el (advice--called-interactively-skip): Fix inf-loop (bug#21083) 2015-07-21 19:09:12 -04:00
package-x.el Quieten compilation, eg in --without-x builds. 2015-05-08 20:13:47 -04:00
package.el * lisp/emacs-lisp/package.el: Simplify describe-package-1 2015-08-06 11:27:37 +01:00
pcase.el * lisp/emacs-lisp/pcase.el (pcase--u1): Revert earlier workaround. 2015-06-16 20:44:57 -04:00
pp.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
re-builder.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
regexp-opt.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
regi.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
ring.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
rx.el '[:graph:]' now excludes whitespace, not just ' ' 2015-04-15 23:47:01 -07:00
seq.el Improve error signalling for seq-subseq. 2015-08-07 22:12:59 +01:00
shadow.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
smie.el Merge from origin/emacs-24 2015-03-29 14:14:15 -07:00
subr-x.el Improve parameter name 2015-05-20 18:50:38 +03:00
syntax.el Don't quote nil and t in doc strings 2015-05-21 10:06:44 -07:00
tabulated-list.el * lisp/emacs-lisp/tabulated-list.el (tabulated-list-print): Fix bug 2015-07-31 12:51:22 +01:00
tcover-ses.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
tcover-unsafep.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
testcover.el * lisp/emacs-lisp/testcover.el: Don't use edebug--read (bug#20487) 2015-05-06 10:50:48 -04:00
timer.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
tq.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
trace.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
unsafep.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
warnings.el Ensure early startup warnings are visible at the end. (Bug#20792) 2015-06-12 19:26:21 -07:00