diff options
| author | Richard M. Stallman | 2005-01-06 17:47:18 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2005-01-06 17:47:18 +0000 |
| commit | 8a6fd2a78da54b117d9965bce0efc209f7c589d6 (patch) | |
| tree | 7b7721f5d1f26da3f5282954971d68e4f124f517 /src | |
| parent | de968ddbdd931d1f21bc98c9b117b2b1e447d451 (diff) | |
| download | emacs-8a6fd2a78da54b117d9965bce0efc209f7c589d6.tar.gz emacs-8a6fd2a78da54b117d9965bce0efc209f7c589d6.zip | |
(Fformat_mode_line): First arg now required.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 02d95854078..a7802d5321b 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -15969,14 +15969,13 @@ store_mode_line_string (string, lisp_string, copy_string, field_width, precision | |||
| 15969 | 15969 | ||
| 15970 | 15970 | ||
| 15971 | DEFUN ("format-mode-line", Fformat_mode_line, Sformat_mode_line, | 15971 | DEFUN ("format-mode-line", Fformat_mode_line, Sformat_mode_line, |
| 15972 | 0, 4, 0, | 15972 | 1, 4, 0, |
| 15973 | doc: /* Return the mode-line of selected window as a string. | 15973 | doc: /* Return the mode-line of selected window as a string. |
| 15974 | First optional arg FORMAT specifies the mode line format (see | 15974 | First arg FORMAT specifies the mode line format (see `mode-line-format' for |
| 15975 | `mode-line-format' for details) to use. If FORMAT is t, return | 15975 | details) to use. Second optional arg WINDOW specifies a different window to |
| 15976 | the buffer's header-line. Second optional arg WINDOW specifies a | 15976 | use as the context for the formatting. If third optional arg NO-PROPS is |
| 15977 | different window to use as the context for the formatting. | 15977 | non-nil, string is not propertized. Fourth optional arg BUFFER specifies |
| 15978 | If third optional arg NO-PROPS is non-nil, string is not propertized. | 15978 | which buffer to use. */) |
| 15979 | Fourth optional arg BUFFER specifies which buffer to use. */) | ||
| 15980 | (format, window, no_props, buffer) | 15979 | (format, window, no_props, buffer) |
| 15981 | Lisp_Object format, window, no_props, buffer; | 15980 | Lisp_Object format, window, no_props, buffer; |
| 15982 | { | 15981 | { |
| @@ -16002,16 +16001,6 @@ Fourth optional arg BUFFER specifies which buffer to use. */) | |||
| 16002 | set_buffer_internal_1 (XBUFFER (buffer)); | 16001 | set_buffer_internal_1 (XBUFFER (buffer)); |
| 16003 | } | 16002 | } |
| 16004 | 16003 | ||
| 16005 | if (NILP (format) || EQ (format, Qt)) | ||
| 16006 | { | ||
| 16007 | face_id = (NILP (format) | ||
| 16008 | ? CURRENT_MODE_LINE_FACE_ID (w) | ||
| 16009 | : HEADER_LINE_FACE_ID); | ||
| 16010 | format = (NILP (format) | ||
| 16011 | ? current_buffer->mode_line_format | ||
| 16012 | : current_buffer->header_line_format); | ||
| 16013 | } | ||
| 16014 | |||
| 16015 | init_iterator (&it, w, -1, -1, NULL, face_id); | 16004 | init_iterator (&it, w, -1, -1, NULL, face_id); |
| 16016 | 16005 | ||
| 16017 | if (NILP (no_props)) | 16006 | if (NILP (no_props)) |