diff options
| author | Paul Eggert | 2015-08-18 23:04:58 -0700 |
|---|---|---|
| committer | Paul Eggert | 2015-08-18 23:14:08 -0700 |
| commit | 67de1b6fa752df913ae00537234d1a18bca2543f (patch) | |
| tree | abb61f8f7eed292dbcc61ebca1b912ade02dde4b /etc | |
| parent | 85bc107458601e305445d7ec6f5b209c01f5db0c (diff) | |
| download | emacs-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/NEWS | 13 |
1 files changed, 9 insertions, 4 deletions
| @@ -912,12 +912,17 @@ create a string, and may return its first argument if the argument | |||
| 912 | already has the correct value. | 912 | already has the correct value. |
| 913 | 913 | ||
| 914 | +++ | 914 | +++ |
| 915 | ** New ‘format’ flag ‘q’ | ||
| 916 | The new ‘q’ flag causes ‘format’ to quote the output representation as | ||
| 917 | per 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. |
| 916 | That is, it converts documentation strings' quoting style as per the | 922 | That is, it converts documentation strings' quoting style as per the |
| 917 | value of ‘text-quoting-style’ as described above. Doc strings in | 923 | value of ‘text-quoting-style’. Doc strings in source code can use |
| 918 | source code can use either curved quotes or grave accent and | 924 | either curved quotes or grave accent and apostrophe. As before, |
| 919 | apostrophe. As before, isolated apostrophes and characters preceded | 925 | isolated apostrophes and characters preceded by \= are output as-is. |
| 920 | by \= 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 |