summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorPhil Sainty <psainty@orcon.net.nz>2022-08-14 23:16:48 +1200
committerPhil Sainty <psainty@orcon.net.nz>2023-03-27 00:16:35 +1300
commit9107b2dec1f7cab9062b65013b02c8601d205015 (patch)
treefe545fbe7856cd6dd4a119019d3af30612371af2 /doc
parent59b7086838e3f82c76977ae0f79b862ab2e7a782 (diff)
downloademacs-9107b2dec1f7cab9062b65013b02c8601d205015.tar.gz
* doc/lispref/modes.texi: Improve docs for obsolete '%m' construct
Bug #57080.
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/modes.texi11
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
string in which @code{%}-constructs are allowed.
@end table
-The following @code{%}-construct is still supported, but it is
-obsolete, since you can get the same result using the variable
-@code{mode-name}.
+@subsubheading Obsolete @code{%}-Constructs
+
+ The following constructs should no longer be used.
@table @code
@item %m
-The value of @code{mode-name}.
+Obsolete; use the @code{mode-name} variable instead. The @code{%m}
+construct is inadequate, as it produces an empty string if the value
+of @code{mode-name} is a non-string mode-line construct (as in
+@code{emacs-lisp-mode}, for example).
@end table
@node Properties in Mode