From: Phil Sainty Date: Fri, 12 Aug 2022 08:21:28 +0000 (+1200) Subject: * doc/lispref/modes.texi: Docs for obsolete '%m' in mode-line-format X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b1c896225ca7797f8757bb8e1f5b75608a65648a;p=emacs.git * doc/lispref/modes.texi: Docs for obsolete '%m' in mode-line-format --- 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