aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorPaul Eggert2015-08-18 23:04:58 -0700
committerPaul Eggert2015-08-18 23:14:08 -0700
commit67de1b6fa752df913ae00537234d1a18bca2543f (patch)
treeabb61f8f7eed292dbcc61ebca1b912ade02dde4b /etc
parent85bc107458601e305445d7ec6f5b209c01f5db0c (diff)
downloademacs-67de1b6fa752df913ae00537234d1a18bca2543f.tar.gz
emacs-67de1b6fa752df913ae00537234d1a18bca2543f.zip
New q flag for ‘format’
* doc/lispref/processes.texi (Sentinels): Don't hardwire grave quoting style in example. * doc/lispref/strings.texi (Formatting Strings): * etc/NEWS: Document new q flag. * src/editfns.c (Fformat): Implement it.
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS13
1 files changed, 9 insertions, 4 deletions
diff --git a/etc/NEWS b/etc/NEWS
index ec3d25c4870..6058f221464 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -912,12 +912,17 @@ create a string, and may return its first argument if the argument
912already has the correct value. 912already has the correct value.
913 913
914+++ 914+++
915** New ‘format’ flag ‘q’
916The new ‘q’ flag causes ‘format’ to quote the output representation as
917per the value of ‘text quoting-style’. E.g., (format "%qs failed"
918"foo") might return "‘foo’ failed".
919
920+++
915** substitute-command-keys now replaces quotes. 921** substitute-command-keys now replaces quotes.
916That is, it converts documentation strings' quoting style as per the 922That is, it converts documentation strings' quoting style as per the
917value of ‘text-quoting-style’ as described above. Doc strings in 923value of ‘text-quoting-style’. Doc strings in source code can use
918source code can use either curved quotes or grave accent and 924either curved quotes or grave accent and apostrophe. As before,
919apostrophe. As before, isolated apostrophes and characters preceded 925isolated apostrophes and characters preceded by \= are output as-is.
920by \= are output as-is.
921 926
922+++ 927+++
923** The character classes [:alpha:] and [:alnum:] in regular expressions 928** The character classes [:alpha:] and [:alnum:] in regular expressions