]> git.eshelyaron.com Git - emacs.git/commitdiff
* doc/lispref/modes.texi: Improve docs for obsolete '%m' construct
authorPhil Sainty <psainty@orcon.net.nz>
Sun, 14 Aug 2022 11:16:48 +0000 (23:16 +1200)
committerPhil Sainty <psainty@orcon.net.nz>
Sun, 26 Mar 2023 11:16:35 +0000 (00:16 +1300)
Bug #57080.

doc/lispref/modes.texi

index 610ea696e74423476ab9c74012783caaa80424e3..deaed31aed0c75c89ed8cfaa797431ee29d745ce 100644 (file)
@@ -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