From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: How can I force updating mini window's header line when mode line is updated?
Date: Wed, 25 Apr 2018 19:10:07 +0300 [thread overview]
Message-ID: <83po2nuv1c.fsf@gnu.org> (raw)
In-Reply-To: <87in8fqx0a.fsf@gmail.com> (message from Amos Bird on Wed, 25 Apr 2018 20:41:09 +0800)
> From: Amos Bird <amosbird@gmail.com>
> Date: Wed, 25 Apr 2018 20:41:09 +0800
>
> Dear community,
>
> I'm trying to setup one mode line per frame. Here is what I've
> done.
>
> 1. turn on the head line of mini window by tweaking
> window_wants_header_line.
> 2. change shrink_mini_window so that it shrinks mini window to two
> lines instead of one.
> 3. (setq-default header-line-format mode-line-format)
It's great to hear someone hacks the display code to add features.
However, these issues are best discussed on emacs-devel, not here.
Who knows, we could even ask you to contribute the code ;-)
> However the header line doesn't get updated at all. It seems
> xdisp.c only provides ways to update mode line, and I've reached
> the limit of my emacs-fu. How can I achieve this without hacking
> tons of the display logic? Many thanks!
I think you need to modify window_wants_header_line, it currently has
hard-wired knowledge that a minibuffer window will never display a
header line.
Once that is done, the feature should work, because the same triggers
that update the mode line also update the header line, so this:
> It seems xdisp.c only provides ways to update mode line
is inaccurate. See the part of redisplay_window immediately following
the 'done' label: it calls display_mode_lines, which displays both the
mode line and the header line.
next prev parent reply other threads:[~2018-04-25 16:10 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-25 12:41 How can I force updating mini window's header line when mode line is updated? Amos Bird
2018-04-25 16:10 ` Eli Zaretskii [this message]
2018-04-25 17:12 ` Amos Bird
2018-04-25 16:20 ` Stefan Monnier
2018-04-25 17:16 ` Amos Bird
-- strict thread matches above, loose matches on Subject: below --
2018-04-26 7:04 martin rudalics
2018-04-27 2:52 ` Amos Bird
2018-06-27 15:14 ` John Yates
2018-06-28 7:37 ` martin rudalics
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=83po2nuv1c.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.
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.