From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help 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 Message-ID: <83po2nuv1c.fsf@gnu.org> References: <87in8fqx0a.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1524672528 31766 195.159.176.226 (25 Apr 2018 16:08:48 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 25 Apr 2018 16:08:48 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 25 18:08:44 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fBMyI-0008AL-RW for geh-help-gnu-emacs@m.gmane.org; Wed, 25 Apr 2018 18:08:42 +0200 Original-Received: from localhost ([::1]:37980 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fBN0P-0007iR-Hx for geh-help-gnu-emacs@m.gmane.org; Wed, 25 Apr 2018 12:10:53 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39050) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fBMzm-0007ez-CJ for help-gnu-emacs@gnu.org; Wed, 25 Apr 2018 12:10:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fBMzj-0007hi-1V for help-gnu-emacs@gnu.org; Wed, 25 Apr 2018 12:10:14 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:34208) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fBMzi-0007he-Ug for help-gnu-emacs@gnu.org; Wed, 25 Apr 2018 12:10:10 -0400 Original-Received: from [176.228.60.248] (port=1716 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fBMzi-0007lh-DX for help-gnu-emacs@gnu.org; Wed, 25 Apr 2018 12:10:10 -0400 In-reply-to: <87in8fqx0a.fsf@gmail.com> (message from Amos Bird on Wed, 25 Apr 2018 20:41:09 +0800) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:116596 Archived-At: > From: Amos Bird > 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.