From: Amos Bird <amosbird@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: help-gnu-emacs@gnu.org
Subject: Re: How can I force updating mini window's header line when mode line is updated?
Date: Thu, 26 Apr 2018 01:12:38 +0800 [thread overview]
Message-ID: <87h8nzqkft.fsf@gmail.com> (raw)
In-Reply-To: <83po2nuv1c.fsf@gnu.org>
Thanks for the kind help. I've made some progress and I'll report
it on emacs-devel :)
Eli Zaretskii <eliz@gnu.org> writes:
>> 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.
--
Amos Bird
amosbird@gmail.com
next prev parent reply other threads:[~2018-04-25 17:12 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
2018-04-25 17:12 ` Amos Bird [this message]
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
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=87h8nzqkft.fsf@gmail.com \
--to=amosbird@gmail.com \
--cc=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).