From b1c896225ca7797f8757bb8e1f5b75608a65648a Mon Sep 17 00:00:00 2001 From: Phil Sainty Date: Fri, 12 Aug 2022 20:21:28 +1200 Subject: [PATCH] * doc/lispref/modes.texi: Docs for obsolete '%m' in mode-line-format --- doc/lispref/modes.texi | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/doc/lispref/modes.texi b/doc/lispref/modes.texi index e94093318fc..ad2b175afb8 100644 --- a/doc/lispref/modes.texi +++ b/doc/lispref/modes.texi @@ -2507,15 +2507,13 @@ Dashes sufficient to fill the remainder of the mode line. @item %% 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}. -@table @code @item %m -The value of @code{mode-name}. +Obsolete; use the @code{mode-name} variable instead. The @code{%m} +construct is still supported, but it is inadequate, as it produces an +empty string if the value of the @code{mode-name} variable is a +non-string mode-line construct (for example, in +@code{emacs-lisp-mode}). @end table @node Properties in Mode -- 2.39.5