(lispref.info)%-Constructs


Prev: Mode Line Variables Up: Mode Line Format

`%'-Constructs in the Mode Line
-------------------------------

   The following table lists the recognized `%'-constructs and what
they mean.

`%b'
     the current buffer name, using the `buffer-name' function.

`%f'
     the visited file name, using the `buffer-file-name' function.

`%*'
     `%' if the buffer is read only (see `buffer-read-only');
     `*' if the buffer is modified (see `buffer-modified-p');
     `-' otherwise.

`%s'
     the status of the subprocess belonging to the current buffer, using
     `process-status'.

`%l'
     the current line number.

`%S'
     the name of the selected screen; this is only meaningful under the
     X Window System.  Note: Screen Name.

`%p'
     the percent of the buffer above the top of window, or `Top',
     `Bottom' or `All'.

`%n'
     `Narrow' when narrowing is in effect; nothing otherwise (see
     `narrow-to-region' in Note: Narrowing).

`%['
     an indication of the depth of recursive editing levels (not
     counting minibuffer levels): one `[' for each editing level.

`%]'
     one `]' for each recursive editing level (not counting minibuffer
     levels).

`%%'
     the character `%'--this is how to include a literal `%' in a
     string in which `%'-constructs are allowed.

`%-'
     dashes sufficient to fill the remainder of the mode line.

   The following two `%'-constructs are still supported but are
obsolete since use of the `mode-name' and `global-mode-string'
variables will produce the same results.

`%m'
     the value of `mode-name'.

`%M'
     the value of `global-mode-string'.  Currently, only `display-time'
     modifies the value of `global-mode-string'.


automatically generated by info2www