diff options
| author | Richard M. Stallman | 2005-01-12 05:11:05 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2005-01-12 05:11:05 +0000 |
| commit | 0fee24ae7c39ea52ad0088c0732d36f8f26490c2 (patch) | |
| tree | 458fa3978efed3e8ff93f88c86e5bce1aa78157a | |
| parent | 43facb76534c54d334b5e396ec624aff3a9c01bc (diff) | |
| download | emacs-0fee24ae7c39ea52ad0088c0732d36f8f26490c2.tar.gz emacs-0fee24ae7c39ea52ad0088c0732d36f8f26490c2.zip | |
(Emulating Mode Line): Doc FACE arg in format-header-line.
| -rw-r--r-- | lispref/modes.texi | 16 |
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. | |||
| 1736 | the text that would appear in a mode line or header line | 1736 | the text that would appear in a mode line or header line |
| 1737 | based on certain mode-line specification. | 1737 | based 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 |
| 1740 | This function formats a line of text according to @var{format} as if | 1740 | This function formats a line of text according to @var{format} as if |
| 1741 | it were generating the mode line for @var{window}, but instead of | 1741 | it were generating the mode line for @var{window}, but instead of |
| 1742 | displaying the text in the mode line or the header line, it returns | 1742 | displaying 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 | ||
| 1748 | The value string normally has text properties that correspond to the | 1748 | The value string normally has text properties that correspond to the |
| 1749 | faces, keymaps, etc., that the mode line would have. If | 1749 | faces, 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. | 1750 | for which no @code{face} property is specified gets a default |
| 1751 | value which is usually @var{face}. (If @var{face} is @code{t}, | ||
| 1752 | that stands for either @code{mode-line} if @var{window} is selected, | ||
| 1753 | otherwise @code{mode-line-inactive}.) | ||
| 1754 | |||
| 1755 | However, if @var{no-props} is non-@code{nil}, the value has no text | ||
| 1756 | properties. | ||
| 1751 | 1757 | ||
| 1752 | For example, @code{(format-mode-line header-line-format)} returns the | 1758 | For example, @code{(format-mode-line header-line-format)} returns the |
| 1753 | text that would appear in the selected window's header line (@code{""} | 1759 | text that would appear in the selected window's header line (@code{""} |
| 1754 | if it has no header line). | 1760 | if it has no header line). @code{(format-mode-line header-line-format |
| 1761 | nil nil nil 'header-line)} returns the same text, with each character | ||
| 1762 | carrying 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 |