From: Miles Bader <miles@lsi.nec.co.jp>
Subject: Re: From mode-line-format to string?
Date: 06 Sep 2002 11:18:27 +0900 [thread overview]
Message-ID: <buo7khz3los.fsf@mcspd15.ucom.lsi.nec.co.jp> (raw)
In-Reply-To: <3D779E51.9050700@ihs.com>
Kevin Rodgers <kevinr@ihs.com> writes:
> ;;; Description:
> ;;;
> ;;; Emacs doesn't provide distinct functions for (1) generating a string
> ;;; from `mode-line-format' and (2) displaying it in the mode line. In
> ;;; src/xdisp.c, display_mode_element() does both, and it doesn't have a
> ;;; Lisp binding.
Note that the CVS version of emacs now provides a lisp-callable
function for this, `format-mode-line':
format-mode-line is a built-in function.
(format-mode-line &optional FORMAT WINDOW NO-PROPS)
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. Second optional arg WINDOW specifies a
different window to use as the context for the formatting.
If third optional arg NO-PROPS is non-nil, string is not propertized.
-Miles
--
o The existentialist, not having a pillow, goes everywhere with the book by
Sullivan, _I am going to spit on your graves_.
prev parent reply other threads:[~2002-09-06 2:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-05 15:42 From mode-line-format to string? Kai Großjohann
2002-09-05 18:11 ` Kevin Rodgers
2002-09-06 2:18 ` Miles Bader [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=buo7khz3los.fsf@mcspd15.ucom.lsi.nec.co.jp \
--to=miles@lsi.nec.co.jp \
--cc=miles@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.