unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* format-mode-line
@ 2005-01-04 12:25 Nick Roberts
  2005-01-05  3:31 ` format-mode-line Richard Stallman
  0 siblings, 1 reply; 7+ messages in thread
From: Nick Roberts @ 2005-01-04 12:25 UTC (permalink / raw)


The documentation says:

> format-mode-line is a built-in function in `C source code'.
> (format-mode-line &optional FORMAT WINDOW NO-PROPS BUFFER)

> Return the mode-line of selected window as a string.
> First optional arg FORMAT specifies a different format string (see
> `mode-line-format' for details) to use.  If format is t, return
> the buffer's header-line.

AFAIK FORMAT need not be a string.

The manual also says:

> If FORMAT is `nil', that means to use `mode-line-format'

This does not seem to make sense because if header-line-format is nil
then (format-mode-line header-line-format) will presumably return the
mode-line of selected window as a string.

In any case, (format-mode-line) does not seem to give the right thing,
although (format-mode-line mode-line-format) does.

I suggest changing format-mode-line so that FORMAT is not optional and not
give a special meaning to nil and t. I think format-mode-line is currently
always used with a value for FORMAT. If this is a good idea, I offer to do
it and post my patch here.


Nick

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-01-08 23:52 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-04 12:25 format-mode-line Nick Roberts
2005-01-05  3:31 ` format-mode-line Richard Stallman
2005-01-06  0:21   ` format-mode-line Nick Roberts
2005-01-06 21:00     ` format-mode-line Kim F. Storm
2005-01-07  7:32       ` format-mode-line Nick Roberts
2005-01-07 23:04         ` format-mode-line Richard Stallman
2005-01-08 23:52           ` format-mode-line Stefan

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).