diff options
| author | Phil Sainty | 2022-08-14 23:16:48 +1200 |
|---|---|---|
| committer | Phil Sainty | 2023-03-27 00:16:35 +1300 |
| commit | 9107b2dec1f7cab9062b65013b02c8601d205015 (patch) | |
| tree | fe545fbe7856cd6dd4a119019d3af30612371af2 | |
| parent | 59b7086838e3f82c76977ae0f79b862ab2e7a782 (diff) | |
| download | emacs-9107b2dec1f7cab9062b65013b02c8601d205015.tar.gz emacs-9107b2dec1f7cab9062b65013b02c8601d205015.zip | |
* doc/lispref/modes.texi: Improve docs for obsolete '%m' construct
Bug #57080.
| -rw-r--r-- | doc/lispref/modes.texi | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/doc/lispref/modes.texi b/doc/lispref/modes.texi index 610ea696e74..deaed31aed0 100644 --- a/doc/lispref/modes.texi +++ b/doc/lispref/modes.texi | |||
| @@ -2523,13 +2523,16 @@ The character @samp{%}---this is how to include a literal @samp{%} in a | |||
| 2523 | string in which @code{%}-constructs are allowed. | 2523 | string in which @code{%}-constructs are allowed. |
| 2524 | @end table | 2524 | @end table |
| 2525 | 2525 | ||
| 2526 | The following @code{%}-construct is still supported, but it is | 2526 | @subsubheading Obsolete @code{%}-Constructs |
| 2527 | obsolete, since you can get the same result using the variable | 2527 | |
| 2528 | @code{mode-name}. | 2528 | The following constructs should no longer be used. |
| 2529 | 2529 | ||
| 2530 | @table @code | 2530 | @table @code |
| 2531 | @item %m | 2531 | @item %m |
| 2532 | The value of @code{mode-name}. | 2532 | Obsolete; use the @code{mode-name} variable instead. The @code{%m} |
| 2533 | construct is inadequate, as it produces an empty string if the value | ||
| 2534 | of @code{mode-name} is a non-string mode-line construct (as in | ||
| 2535 | @code{emacs-lisp-mode}, for example). | ||
| 2533 | @end table | 2536 | @end table |
| 2534 | 2537 | ||
| 2535 | @node Properties in Mode | 2538 | @node Properties in Mode |