diff options
| -rw-r--r-- | doc/lispref/ChangeLog | 4 | ||||
| -rw-r--r-- | doc/lispref/modes.texi | 23 | ||||
| -rw-r--r-- | etc/NEWS | 5 | ||||
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/xdisp.c | 12 |
5 files changed, 25 insertions, 24 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index 30e77ab38af..155e6b005e4 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2010-12-25 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * modes.texi (Emulating Mode Line): Fix last change. | ||
| 4 | |||
| 1 | 2010-12-18 Eli Zaretskii <eliz@gnu.org> | 5 | 2010-12-18 Eli Zaretskii <eliz@gnu.org> |
| 2 | 6 | ||
| 3 | * modes.texi (Emulating Mode Line): Update documentation of | 7 | * modes.texi (Emulating Mode Line): Update documentation of |
diff --git a/doc/lispref/modes.texi b/doc/lispref/modes.texi index 5c5e6cd3fbb..ad7a3a5037e 100644 --- a/doc/lispref/modes.texi +++ b/doc/lispref/modes.texi | |||
| @@ -2119,22 +2119,17 @@ taken from @var{buffer}; by default, it comes from @var{window}'s | |||
| 2119 | buffer. | 2119 | buffer. |
| 2120 | 2120 | ||
| 2121 | The value string normally has text properties that correspond to the | 2121 | The value string normally has text properties that correspond to the |
| 2122 | faces, keymaps, etc., that the mode line would have. And any character | 2122 | faces, keymaps, etc., that the mode line would have. Any character for |
| 2123 | for which no @code{face} property is specified gets a default value | 2123 | which no @code{face} property is specified by @var{format} gets a |
| 2124 | determined by @var{face}. If @var{face} is @code{t}, that stands for | 2124 | default value determined by @var{face}. If @var{face} is @code{t}, that |
| 2125 | either @code{mode-line} if @var{window} is selected, otherwise | 2125 | stands for either @code{mode-line} if @var{window} is selected, |
| 2126 | @code{mode-line-inactive}. If @var{face} is @code{nil} or omitted, that | 2126 | otherwise @code{mode-line-inactive}. If @var{face} is @code{nil} or |
| 2127 | stands for no face property. | 2127 | omitted, that stands for the default face. If @var{face} is an integer, |
| 2128 | 2128 | the value returned by this function will have no text properties. | |
| 2129 | However, if @var{face} is an integer, the value has no text properties. | ||
| 2130 | 2129 | ||
| 2131 | You can also specify other valid faces as the value of @var{face}. | 2130 | You can also specify other valid faces as the value of @var{face}. |
| 2132 | If the value is a @dfn{basic face}, one of @code{default}, @code{mode-line}, | 2131 | If specified, that face provides the @code{face} property for characters |
| 2133 | @code{mode-line-inactive}, @code{header-line}, or @code{tool-bar}, that | 2132 | whose face is not specified by @var{format}. |
| 2134 | face provides the @code{face} property for characters whose face is not | ||
| 2135 | specified by @var{format}. Any other face is treated as @code{default}, | ||
| 2136 | but you can remap one of the basic faces (@pxref{Face Remapping}) to get | ||
| 2137 | the same effect as with non-basic faces. | ||
| 2138 | 2133 | ||
| 2139 | Note that using @code{mode-line}, @code{mode-line-inactive}, or | 2134 | Note that using @code{mode-line}, @code{mode-line-inactive}, or |
| 2140 | @code{header-line} as @var{face} will actually redisplay the mode line | 2135 | @code{header-line} as @var{face} will actually redisplay the mode line |
| @@ -1866,11 +1866,6 @@ checking/manipulating elements directly, use the new functions | |||
| 1866 | ** `mode-name' is no longer guaranteed to be a string. | 1866 | ** `mode-name' is no longer guaranteed to be a string. |
| 1867 | Use `(format-mode-line mode-name)' to ensure a string value. | 1867 | Use `(format-mode-line mode-name)' to ensure a string value. |
| 1868 | 1868 | ||
| 1869 | ** `format-mode-line' now supports only a few basic faces as its FACE argument. | ||
| 1870 | The FACE argument to `format-mode-line' should be one of `default', | ||
| 1871 | `mode-line', `mode-line-inactive', `header-line', or `tool-bar'. Any | ||
| 1872 | other face is treated as `default'. | ||
| 1873 | |||
| 1874 | ** The function x-font-family-list has been removed. | 1869 | ** The function x-font-family-list has been removed. |
| 1875 | Use the new function font-family-list (see Lisp Changes, below). | 1870 | Use the new function font-family-list (see Lisp Changes, below). |
| 1876 | 1871 | ||
diff --git a/src/ChangeLog b/src/ChangeLog index 8574622c187..673f5f5bb99 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2010-12-25 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * xdisp.c (Fformat_mode_line): Doc fix: no need to state that only | ||
| 4 | the basic faces are supported. | ||
| 5 | |||
| 1 | 2010-12-24 Jan Djärv <jan.h.d@swipnet.se> | 6 | 2010-12-24 Jan Djärv <jan.h.d@swipnet.se> |
| 2 | 7 | ||
| 3 | * xterm.c (x_check_fullscreen): Fix pixel/character mixup. | 8 | * xterm.c (x_check_fullscreen): Fix pixel/character mixup. |
diff --git a/src/xdisp.c b/src/xdisp.c index 7308e163c7e..69a0fcfe3d8 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -17883,17 +17883,19 @@ DEFUN ("format-mode-line", Fformat_mode_line, Sformat_mode_line, | |||
| 17883 | First arg FORMAT specifies the mode line format (see `mode-line-format' | 17883 | First arg FORMAT specifies the mode line format (see `mode-line-format' |
| 17884 | for details) to use. | 17884 | for details) to use. |
| 17885 | 17885 | ||
| 17886 | By default, the format is evaluated for the currently selected window. | ||
| 17887 | |||
| 17886 | Optional second arg FACE specifies the face property to put on all | 17888 | Optional second arg FACE specifies the face property to put on all |
| 17887 | characters for which no face is specified. The value nil means the | 17889 | characters for which no face is specified. The value nil means the |
| 17888 | default face. The value t means whatever face the window's mode line | 17890 | default face. The value t means whatever face the window's mode line |
| 17889 | currently uses \(either `mode-line' or `mode-line-inactive', | 17891 | currently uses (either `mode-line' or `mode-line-inactive', |
| 17890 | depending). An integer value means the value string has no text | 17892 | depending on whether the window is the selected window or not). |
| 17891 | properties. Otherwise, the value should be one of `default', | 17893 | An integer value means the value string has no text |
| 17892 | `mode-line', `mode-line-inactive', `header-line', or `tool-bar'. | 17894 | properties. |
| 17893 | 17895 | ||
| 17894 | Optional third and fourth args WINDOW and BUFFER specify the window | 17896 | Optional third and fourth args WINDOW and BUFFER specify the window |
| 17895 | and buffer to use as the context for the formatting (defaults | 17897 | and buffer to use as the context for the formatting (defaults |
| 17896 | are the selected window and the window's buffer). */) | 17898 | are the selected window and the WINDOW's buffer). */) |
| 17897 | (format, face, window, buffer) | 17899 | (format, face, window, buffer) |
| 17898 | Lisp_Object format, face, window, buffer; | 17900 | Lisp_Object format, face, window, buffer; |
| 17899 | { | 17901 | { |