diff options
| author | Paul Eggert | 2015-08-23 13:50:59 -0700 |
|---|---|---|
| committer | Paul Eggert | 2015-08-23 13:51:52 -0700 |
| commit | 41cb0162c5bcf440dca36afcd493db585e8c4901 (patch) | |
| tree | c0a1da9d91716582c9a81cc7cd428170e717d8a4 | |
| parent | 3caef97113438d69b6106ffacf5dac72d6a5f19e (diff) | |
| download | emacs-41cb0162c5bcf440dca36afcd493db585e8c4901.tar.gz emacs-41cb0162c5bcf440dca36afcd493db585e8c4901.zip | |
Fix minor glitches from ‘format’ reversion
* doc/lispref/strings.texi (Formatting Strings):
After reversion, ‘text-quoting-style’ is documented in ‘Keys in
Documentation’, not below.
* src/syntax.c (Finternal_describe_syntax_value):
Prefer AUTO_STRING to build_string where either will do, as
AUTO_STRING is a bit faster.
| -rw-r--r-- | doc/lispref/strings.texi | 8 | ||||
| -rw-r--r-- | src/syntax.c | 8 |
2 files changed, 11 insertions, 5 deletions
diff --git a/doc/lispref/strings.texi b/doc/lispref/strings.texi index 580eb43acca..c4556cbd284 100644 --- a/doc/lispref/strings.texi +++ b/doc/lispref/strings.texi | |||
| @@ -948,7 +948,7 @@ the width specifier normally consists of spaces inserted on the left: | |||
| 948 | If the width is too small, @code{format} does not truncate the | 948 | If the width is too small, @code{format} does not truncate the |
| 949 | object's printed representation. Thus, you can use a width to specify | 949 | object's printed representation. Thus, you can use a width to specify |
| 950 | a minimum spacing between columns with no risk of losing information. | 950 | a minimum spacing between columns with no risk of losing information. |
| 951 | In the following three examples, @samp{%7s} specifies a minimum width | 951 | In the following two examples, @samp{%7s} specifies a minimum width |
| 952 | of 7. In the first case, the string inserted in place of @samp{%7s} | 952 | of 7. In the first case, the string inserted in place of @samp{%7s} |
| 953 | has only 3 letters, and needs 4 blank spaces as padding. In the | 953 | has only 3 letters, and needs 4 blank spaces as padding. In the |
| 954 | second case, the string @code{"specification"} is 13 letters wide but | 954 | second case, the string @code{"specification"} is 13 letters wide but |
| @@ -995,8 +995,12 @@ specifier, if any, to be inserted on the right rather than the left. | |||
| 995 | If both @samp{-} and @samp{0} are present, the @samp{0} flag is | 995 | If both @samp{-} and @samp{0} are present, the @samp{0} flag is |
| 996 | ignored. | 996 | ignored. |
| 997 | 997 | ||
| 998 | @cindex curved quotes | ||
| 999 | @cindex curly quotes | ||
| 998 | The flag @samp{q} quotes the printed representation as per the | 1000 | The flag @samp{q} quotes the printed representation as per the |
| 999 | variable @samp{text-quoting-style} described below. | 1001 | variable @samp{text-quoting-style}. @xref{Keys in Documentation}. |
| 1002 | Typically it uses curved single quotes @t{‘like this’} as in the | ||
| 1003 | following example. | ||
| 1000 | 1004 | ||
| 1001 | @example | 1005 | @example |
| 1002 | @group | 1006 | @group |
diff --git a/src/syntax.c b/src/syntax.c index d45936b2b28..30560affdf0 100644 --- a/src/syntax.c +++ b/src/syntax.c | |||
| @@ -1333,9 +1333,11 @@ DEFUN ("internal-describe-syntax-value", Finternal_describe_syntax_value, | |||
| 1333 | insert_string (" (nestable)"); | 1333 | insert_string (" (nestable)"); |
| 1334 | 1334 | ||
| 1335 | if (prefix) | 1335 | if (prefix) |
| 1336 | insert1 (Fsubstitute_command_keys | 1336 | { |
| 1337 | (build_string | 1337 | AUTO_STRING (prefixdoc, |
| 1338 | (",\n\t is a prefix character for `backward-prefix-chars'"))); | 1338 | ",\n\t is a prefix character for `backward-prefix-chars'"); |
| 1339 | insert1 (Fsubstitute_command_keys (prefixdoc)); | ||
| 1340 | } | ||
| 1339 | 1341 | ||
| 1340 | return syntax; | 1342 | return syntax; |
| 1341 | } | 1343 | } |