From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Is this correct?
Date: Sat, 26 Feb 2011 12:01:12 +0200 [thread overview]
Message-ID: <83aahjp11z.fsf@gnu.org> (raw)
In-Reply-To: <87lj136uis.fsf@puma.rapttech.com.au>
> From: Tim X <timx@nospam.dev.null>
> Date: Sat, 26 Feb 2011 19:59:39 +1100
>
> Kevin Rodgers <kevin.d.rodgers@gmail.com> writes:
>
> >> ,----[ C-h f force-mode-line-update RET ]
> >> | force-mode-line-update is a compiled Lisp function in `subr.el'.
> >> |
> >> | (force-mode-line-update&optional ALL)
> >> |
> >> | Force redisplay of the current buffer's mode line and header line.
> >> | With optional non-nil ALL, force redisplay of all mode lines and
> >> | header lines. This function also forces recomputation of the
> >> | menu bar menus and the frame title.
> >> |
> >> | [back]
> >> `----
> >
> > Before digging into the details of whether the code implements the behavior
> > described in the doc string, do we understand the doc string?
> >
> > * What if the current buffer is not displayed?
> >
>
> It isn't very clear. My assumption would be that mode-line, menu and
> header lines are irrelevant for buffers that are not displayed, so would
> assume if the current buffer is not displayed, do nothing?
Why is this an issue? A buffer that is not displayed will have its
mode line not displayed as well. Whether Emacs wastes CPU cycles
recomputing a mode line that isn't displayed or not should be of no
consequence to the Lisp programmer.
Or are we talking about some subtle magic that runs off mode-line
updates, which wants to be run even in buffers that are not displayed?
> > * Does ALL mean all buffers? All windows? All visible windows? All frames?
> > All visible frames? Or some other interpretation?
> >
>
> Yes, its not clear to me.
All buffers are considered, but only those that are displayed will
have any effect on the screen.
> > * The menu bar and frame title are frame-local, right? If so, I think that
> > would imply that force-mode-line-update should by default (when ALL is nil)
> > update all displayed buffers in the current frame, and should update all
> > displayed buffers on all frames (when ALL is non-nil).
>
> That would seem like a reasonable interpretation. Would those other
> frames be considered visible (I've always thought so).
The menu bar is computed in the context of the current buffer, so it's
not really frame-local.
I'm not sure what does this have to do with the issue at hand, though.
next prev parent reply other threads:[~2011-02-26 10:01 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-26 6:54 Is this correct? Tim X
2011-02-26 8:50 ` Kevin Rodgers
[not found] ` <mailman.17.1298710213.28733.help-gnu-emacs@gnu.org>
2011-02-26 8:59 ` Tim X
2011-02-26 10:01 ` Eli Zaretskii [this message]
[not found] ` <mailman.19.1298714474.28733.help-gnu-emacs@gnu.org>
2011-02-26 22:48 ` Tim X
2011-02-27 4:02 ` Eli Zaretskii
[not found] ` <mailman.14.1298779333.29063.help-gnu-emacs@gnu.org>
2011-02-27 7:32 ` Tim X
2011-02-26 12:44 ` Uday Reddy
2011-02-26 14:07 ` Eli Zaretskii
[not found] ` <mailman.1.1298729256.15641.help-gnu-emacs@gnu.org>
2011-02-26 15:38 ` Uday Reddy
2011-02-26 15:47 ` Eli Zaretskii
[not found] ` <mailman.4.1298735259.8637.help-gnu-emacs@gnu.org>
2011-02-26 16:22 ` Uday Reddy
2011-02-26 16:59 ` Eli Zaretskii
2011-02-26 22:38 ` Tim X
2011-02-27 4:00 ` Eli Zaretskii
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83aahjp11z.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=help-gnu-emacs@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.
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).