diff options
| author | Eli Zaretskii | 2020-08-29 09:45:51 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2020-08-29 09:45:51 +0300 |
| commit | 4a73fb966876ba8c8aefa24ee51448d2b44df1bf (patch) | |
| tree | 9571812bc407b55c8aa773cd9b4ff970fb7ec054 | |
| parent | df5c669709c318807e5b718f65796171287bf36c (diff) | |
| download | emacs-4a73fb966876ba8c8aefa24ee51448d2b44df1bf.tar.gz emacs-4a73fb966876ba8c8aefa24ee51448d2b44df1bf.zip | |
Fix description of %-constructs in 'mode-line-format'
* doc/lispref/modes.texi (%-Constructs): Document %@ and remove
%M, which is no longer supported. (Bug#43092)
| -rw-r--r-- | doc/lispref/modes.texi | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/doc/lispref/modes.texi b/doc/lispref/modes.texi index e685391c955..e7049b4741b 100644 --- a/doc/lispref/modes.texi +++ b/doc/lispref/modes.texi | |||
| @@ -2335,6 +2335,10 @@ read-only buffer. @xref{Buffer Modification}. | |||
| 2335 | @item %& | 2335 | @item %& |
| 2336 | @samp{*} if the buffer is modified, and @samp{-} otherwise. | 2336 | @samp{*} if the buffer is modified, and @samp{-} otherwise. |
| 2337 | 2337 | ||
| 2338 | @item %@@ | ||
| 2339 | @samp{@@} if the buffer's @code{default-directory} (@pxref{File Name | ||
| 2340 | Expansion}) is on a remote machine, and @samp{-} otherwise. | ||
| 2341 | |||
| 2338 | @item %[ | 2342 | @item %[ |
| 2339 | An indication of the depth of recursive editing levels (not counting | 2343 | An indication of the depth of recursive editing levels (not counting |
| 2340 | minibuffer levels): one @samp{[} for each editing level. | 2344 | minibuffer levels): one @samp{[} for each editing level. |
| @@ -2352,16 +2356,13 @@ The character @samp{%}---this is how to include a literal @samp{%} in a | |||
| 2352 | string in which @code{%}-constructs are allowed. | 2356 | string in which @code{%}-constructs are allowed. |
| 2353 | @end table | 2357 | @end table |
| 2354 | 2358 | ||
| 2355 | The following two @code{%}-constructs are still supported, but they are | 2359 | The following @code{%}-construct is still supported, but it is |
| 2356 | obsolete, since you can get the same results with the variables | 2360 | obsolete, since you can get the same result using the variable |
| 2357 | @code{mode-name} and @code{global-mode-string}. | 2361 | @code{mode-name}. |
| 2358 | 2362 | ||
| 2359 | @table @code | 2363 | @table @code |
| 2360 | @item %m | 2364 | @item %m |
| 2361 | The value of @code{mode-name}. | 2365 | The value of @code{mode-name}. |
| 2362 | |||
| 2363 | @item %M | ||
| 2364 | The value of @code{global-mode-string}. | ||
| 2365 | @end table | 2366 | @end table |
| 2366 | 2367 | ||
| 2367 | @node Properties in Mode | 2368 | @node Properties in Mode |