aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2005-01-12 05:11:05 +0000
committerRichard M. Stallman2005-01-12 05:11:05 +0000
commit0fee24ae7c39ea52ad0088c0732d36f8f26490c2 (patch)
tree458fa3978efed3e8ff93f88c86e5bce1aa78157a
parent43facb76534c54d334b5e396ec624aff3a9c01bc (diff)
downloademacs-0fee24ae7c39ea52ad0088c0732d36f8f26490c2.tar.gz
emacs-0fee24ae7c39ea52ad0088c0732d36f8f26490c2.zip
(Emulating Mode Line): Doc FACE arg in format-header-line.
-rw-r--r--lispref/modes.texi16
1 files changed, 12 insertions, 4 deletions
diff --git a/lispref/modes.texi b/lispref/modes.texi
index 299579a10af..ebedbc520b8 100644
--- a/lispref/modes.texi
+++ b/lispref/modes.texi
@@ -1736,7 +1736,7 @@ It is normally @code{nil}, so that ordinary buffers have no header line.
1736the text that would appear in a mode line or header line 1736the text that would appear in a mode line or header line
1737based on certain mode-line specification. 1737based on certain mode-line specification.
1738 1738
1739@defun format-mode-line format &optional window no-props buffer 1739@defun format-mode-line format &optional window no-props buffer face
1740This function formats a line of text according to @var{format} as if 1740This function formats a line of text according to @var{format} as if
1741it were generating the mode line for @var{window}, but instead of 1741it were generating the mode line for @var{window}, but instead of
1742displaying the text in the mode line or the header line, it returns 1742displaying the text in the mode line or the header line, it returns
@@ -1746,12 +1746,20 @@ information used is taken from @var{buffer}; by default, it comes from
1746@var{window}'s buffer. 1746@var{window}'s buffer.
1747 1747
1748The value string normally has text properties that correspond to the 1748The value string normally has text properties that correspond to the
1749faces, keymaps, etc., that the mode line would have. If 1749faces, keymaps, etc., that the mode line would have. And any character
1750@var{no-props} is non-@code{nil}, the value has no text properties. 1750for which no @code{face} property is specified gets a default
1751value which is usually @var{face}. (If @var{face} is @code{t},
1752that stands for either @code{mode-line} if @var{window} is selected,
1753otherwise @code{mode-line-inactive}.)
1754
1755However, if @var{no-props} is non-@code{nil}, the value has no text
1756properties.
1751 1757
1752For example, @code{(format-mode-line header-line-format)} returns the 1758For example, @code{(format-mode-line header-line-format)} returns the
1753text that would appear in the selected window's header line (@code{""} 1759text that would appear in the selected window's header line (@code{""}
1754if it has no header line). 1760if it has no header line). @code{(format-mode-line header-line-format
1761nil nil nil 'header-line)} returns the same text, with each character
1762carrying the face that it will have in the header line itself.
1755@end defun 1763@end defun
1756 1764
1757@node Imenu 1765@node Imenu