aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2016-05-05 06:39:17 -0700
committerPaul Eggert2016-05-05 06:40:12 -0700
commit5e814e02f0b0b85fa486975eced09e4a7ed8ce5c (patch)
tree0e3d4677bd2e193558ea7245ad176afeae6abd57
parent3347a733e0778dfefaeabe28ae73f4226236a881 (diff)
downloademacs-5e814e02f0b0b85fa486975eced09e4a7ed8ce5c.tar.gz
emacs-5e814e02f0b0b85fa486975eced09e4a7ed8ce5c.zip
Minor doc fixes for quoting
* doc/lispref/control.texi (Signaling Errors): * doc/lispref/display.texi (Displaying Messages): Don’t say that formats “generate”. Try to word more clearly. * etc/NEWS: Coalesce near-duplicate entries.
-rw-r--r--doc/lispref/control.texi13
-rw-r--r--doc/lispref/display.texi13
-rw-r--r--etc/NEWS19
3 files changed, 20 insertions, 25 deletions
diff --git a/doc/lispref/control.texi b/doc/lispref/control.texi
index 75d8d284623..0cdb03548bf 100644
--- a/doc/lispref/control.texi
+++ b/doc/lispref/control.texi
@@ -1100,12 +1100,13 @@ These examples show typical uses of @code{error}:
1100error symbol @code{error}, and a list containing the string returned by 1100error symbol @code{error}, and a list containing the string returned by
1101@code{format-message}. 1101@code{format-message}.
1102 1102
1103A format that quotes with grave accents and apostrophes @t{`like 1103The @code{text-quoting-style} variable controls what quotes are
1104this'} typically generates curved quotes @t{‘like this’}. In 1104generated; @xref{Keys in Documentation}. A call using a format like
1105contrast, a format that quotes with only apostrophes @t{'like this'} 1105@t{"Missing `%s'"} with grave accents and apostrophes typically
1106typically generates two closing curved quotes @t{’like this’}, an 1106generates a message like @t{"Missing ‘foo’"} with matching curved
1107unusual style in English. @xref{Keys in Documentation}, for how the 1107quotes. In contrast, a call using a format like @t{"Missing '%s'"}
1108@code{text-quoting-style} variable affects generated quotes. 1108with only apostrophes typically generates a message like @t{"Missing
1109’foo’"} with only closing curved quotes, an unusual style in English.
1109 1110
1110@strong{Warning:} If you want to use your own string as an error message 1111@strong{Warning:} If you want to use your own string as an error message
1111verbatim, don't just write @code{(error @var{string})}. If @var{string} 1112verbatim, don't just write @code{(error @var{string})}. If @var{string}
diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi
index b0cd8731fe2..181bff09b55 100644
--- a/doc/lispref/display.texi
+++ b/doc/lispref/display.texi
@@ -265,12 +265,13 @@ properties, it is displayed with the specified faces (@pxref{Faces}).
265The string is also added to the @file{*Messages*} buffer, but without 265The string is also added to the @file{*Messages*} buffer, but without
266text properties (@pxref{Logging Messages}). 266text properties (@pxref{Logging Messages}).
267 267
268A format that quotes with grave accents and apostrophes @t{`like 268The @code{text-quoting-style} variable controls what quotes are
269this'} typically generates curved quotes @t{‘like this’}. In 269generated; @xref{Keys in Documentation}. A call using a format like
270contrast, a format that quotes with only apostrophes @t{'like this'} 270@t{"Missing `%s'"} with grave accents and apostrophes typically
271typically generates two closing curved quotes @t{’like this’}, an 271generates a message like @t{"Missing ‘foo’"} with matching curved
272unusual style in English. @xref{Keys in Documentation}, for how the 272quotes. In contrast, a call using a format like @t{"Missing '%s'"}
273@code{text-quoting-style} variable affects generated quotes. 273with only apostrophes typically generates a message like @t{"Missing
274’foo’"} with only closing curved quotes, an unusual style in English.
274 275
275In batch mode, the message is printed to the standard error stream, 276In batch mode, the message is printed to the standard error stream,
276followed by a newline. 277followed by a newline.
diff --git a/etc/NEWS b/etc/NEWS
index 7d6e5334e5c..6c522e06e9e 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -1476,11 +1476,12 @@ display of diagnostics and help, but not of info. As the variable is
1476not intended for casual use, it is not a user option. 1476not intended for casual use, it is not a user option.
1477 1477
1478+++ 1478+++
1479** `message' now translates various sorts of single quotes in its 1479** Message-issuing functions like 'message' and 'error' now translate
1480format string according to the value of `text-quoting-style' (see 1480various sorts of single quotes in their format strings according to
1481above). This translation cannot be disabled. To get the old 1481the value of 'text-quoting-style' (see above). This translation
1482behavior of `message', use `format', which is not affected by 1482cannot be disabled. To get the old behavior, use 'format', which is
1483`text-quoting-style', e.g. (message "%s" (format "...." foo bar)). 1483not affected by 'text-quoting-style', e.g., (message "%s" (format
1484"...." foo bar)).
1484 1485
1485+++ 1486+++
1486** substitute-command-keys now replaces quotes. 1487** substitute-command-keys now replaces quotes.
@@ -1490,14 +1491,6 @@ either curved single quotes or grave accents and apostrophes. As
1490before, characters preceded by \= are output as-is. 1491before, characters preceded by \= are output as-is.
1491 1492
1492+++ 1493+++
1493** Message-issuing functions 'error', 'message', etc. now convert quotes.
1494They use the new 'format-message' function instead of plain 'format',
1495so that they now follow user preference as per 'text-quoting-style'
1496when processing curved single quotes, grave accents, and apostrophes
1497in their format argument. To process % directives but not quotes, you
1498can use calls like (message "%s" (format FORMAT ARG1 ... ARGn)).
1499
1500+++
1501** The character classes [:alpha:] and [:alnum:] in regular expressions 1494** The character classes [:alpha:] and [:alnum:] in regular expressions
1502now match multibyte characters using Unicode character properties. 1495now match multibyte characters using Unicode character properties.
1503If you want the old behavior where they matched any character with 1496If you want the old behavior where they matched any character with