summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2020-12-29 04:53:03 +0100
committerLars Ingebrigtsen <larsi@gnus.org>2020-12-29 04:53:03 +0100
commita66f0d3bd3486b7253f482b7169b0de2d0d49c79 (patch)
tree4f47a60c67d153a81d5395fda625e0c3a214ea50 /doc
parent37049ee78c4576d340781179317e6cbaaf73b6c3 (diff)
downloademacs-a66f0d3bd3486b7253f482b7169b0de2d0d49c79.tar.gz
Introduce new variable mode-line-compact
* doc/lispref/modes.texi (Mode Line Basics): Document it (bug#34476). * src/xdisp.c (display_mode_line): Use it. (syms_of_xdisp): New variable mode-line-compact.
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/modes.texi9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/lispref/modes.texi b/doc/lispref/modes.texi
index 675aeec8a5f..40edc90a6af 100644
--- a/doc/lispref/modes.texi
+++ b/doc/lispref/modes.texi
@@ -1930,6 +1930,15 @@ This function also forces an update of the menu bar and frame title.
color using the face @code{mode-line}. Other windows' mode lines appear
in the face @code{mode-line-inactive} instead. @xref{Faces}.
+@vindex mode-line-compact
+ Some modes put a lot of data in the mode line, pushing elements at
+the end of the mode line off to the right. Emacs can ``compress'' the
+mode line if the @code{mode-line-compact} variable is non-@code{nil}
+by turning stretches of spaces into a single space. If this variable
+is @code{long}, this is only done when the mode line is wider than the
+currently selected window. This variable can be buffer-local to only
+compress mode-lines in certain buffers.
+
@node Mode Line Data
@subsection The Data Structure of the Mode Line
@cindex mode line construct