aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhil Sainty2022-08-14 23:16:48 +1200
committerPhil Sainty2023-03-27 00:16:35 +1300
commit9107b2dec1f7cab9062b65013b02c8601d205015 (patch)
treefe545fbe7856cd6dd4a119019d3af30612371af2
parent59b7086838e3f82c76977ae0f79b862ab2e7a782 (diff)
downloademacs-9107b2dec1f7cab9062b65013b02c8601d205015.tar.gz
emacs-9107b2dec1f7cab9062b65013b02c8601d205015.zip
* doc/lispref/modes.texi: Improve docs for obsolete '%m' construct
Bug #57080.
-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
2523string in which @code{%}-constructs are allowed. 2523string in which @code{%}-constructs are allowed.
2524@end table 2524@end table
2525 2525
2526The following @code{%}-construct is still supported, but it is 2526@subsubheading Obsolete @code{%}-Constructs
2527obsolete, 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
2532The value of @code{mode-name}. 2532Obsolete; use the @code{mode-name} variable instead. The @code{%m}
2533construct is inadequate, as it produces an empty string if the value
2534of @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