From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Amos Bird Newsgroups: gmane.emacs.help Subject: How can I force updating mini window's header line when mode line is updated? Date: Wed, 25 Apr 2018 20:41:09 +0800 Message-ID: <87in8fqx0a.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-Trace: blaine.gmane.org 1524659985 22737 195.159.176.226 (25 Apr 2018 12:39:45 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 25 Apr 2018 12:39:45 +0000 (UTC) User-Agent: mu4e 1.0-alpha3; emacs 27.0.50 To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 25 14:39:40 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 1fBJhz-0005oH-Cz for geh-help-gnu-emacs@m.gmane.org; Wed, 25 Apr 2018 14:39:39 +0200 Original-Received: from localhost ([::1]:36545 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fBJk6-0006YX-2z for geh-help-gnu-emacs@m.gmane.org; Wed, 25 Apr 2018 08:41:50 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55063) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fBJje-0006YC-Qm for help-gnu-emacs@gnu.org; Wed, 25 Apr 2018 08:41:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fBJja-0003cn-TZ for help-gnu-emacs@gnu.org; Wed, 25 Apr 2018 08:41:22 -0400 Original-Received: from mail-pg0-x22f.google.com ([2607:f8b0:400e:c05::22f]:41624) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fBJja-0003cc-Mo for help-gnu-emacs@gnu.org; Wed, 25 Apr 2018 08:41:18 -0400 Original-Received: by mail-pg0-x22f.google.com with SMTP id m21so10253853pgv.8 for ; Wed, 25 Apr 2018 05:41:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=user-agent:from:to:subject:date:message-id:mime-version; bh=9pO+39JGfwYKmUzDQb9scnrObRIKtiqoUao2zUfDVHU=; b=YjU3bB+Z7Rn1uTwxVfUsNpcSHx0kPBEn+jNGJW25yDWzYWMSjwMzHeRvUorqnsvoZ/ 7dZGaIW9THznN+3crgBKh1Tmn5ZuAaCadHUvOl73kz320ahG3RKyYyxyHZHYt/RQ8kA0 oVA5Fg7kHuT+HlP2gZ3enQtClo8N1E/6WXX9GDp/g/2JMCdZViOGwn7prn/K5cmF39IH wgWnHmksqV7lsFzZtfeqIBXQiQGyy/2+z5QYQemwK1DqndjkUE8hdFe84iTkxz8RNApx pJREbAIUM2TpVtfm5F5m/+aS0dTPCSiWxsCsEu72A7ciRdvrq+6PnCsfRAgZabIfMq9E qDsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:user-agent:from:to:subject:date:message-id :mime-version; bh=9pO+39JGfwYKmUzDQb9scnrObRIKtiqoUao2zUfDVHU=; b=kwo0rxLbNKpCqF2chWlGv9JngbW1c5Xhcvlsl/6LfcTC1YBC8FfzMR8bDR6zker34/ UM3ZuR314KsHNv38GwQHS+AIq3cueCz1jSq90qNX+6y2MwPqChnKJO/nZEw6w8ENpo6J jda5zfLMG7530fnc7z94iNfXv6oT1m/Wfa8/24Il01zC+IXd1vGgMnBBVXtGzBJGdkly knbIJ3fhJXobHDTtm44CBq1oDN++DwGNxzYGACRvO8ZxnPbo6+5SIpveDjYN/3hgVzCA spK6ZnJ3g76E0JCJWsLf1EVfSeGoVG96tcOcwWuuKES1sT45Nj6Nos/9vq7pKNxipSvw Nucw== X-Gm-Message-State: ALQs6tCmRWJ+FgXSvLdNQpMrE5SZi9rluOpv1B12nzsX8vl2ov0Xki0f WYS+ba/+WOACzJwId8cB+T5JkQ== X-Google-Smtp-Source: AIpwx4+URs69NYAdBrcYD1v1se38YvneL/VfDGVffWY0xotRcNAXslP6W18u9faOc9U3OsM9yD7+UQ== X-Received: by 10.99.121.129 with SMTP id u123mr15055020pgc.328.1524660077314; Wed, 25 Apr 2018 05:41:17 -0700 (PDT) Original-Received: from localhost ([168.235.105.19]) by smtp.gmail.com with ESMTPSA id j9sm22114741pff.46.2018.04.25.05.41.14 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 25 Apr 2018 05:41:15 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c05::22f 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:116595 Archived-At: 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) Here is what I got https://la.wentropy.com/48Yx.png 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! regards, -- Amos Bird amosbird@gmail.com