From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#12872: 24.2; Provide a feature to trigger mode-line redisplay Date: Sat, 04 Dec 2021 19:55:09 +0100 Message-ID: <87mtlg6vzm.fsf@gnus.org> References: <837gpqwuai.fsf@gnu.org> <87o85xou2m.fsf@gnus.org> <83a6hg7qkh.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28311"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 12872@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 04 19:56:09 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mtaCf-0007Al-CO for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 04 Dec 2021 19:56:09 +0100 Original-Received: from localhost ([::1]:35158 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mtaCd-00035j-P3 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 04 Dec 2021 13:56:07 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:39042) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mtaCY-00035b-PX for bug-gnu-emacs@gnu.org; Sat, 04 Dec 2021 13:56:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43386) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mtaCY-0004Zs-IK for bug-gnu-emacs@gnu.org; Sat, 04 Dec 2021 13:56:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mtaCY-00020C-Di for bug-gnu-emacs@gnu.org; Sat, 04 Dec 2021 13:56:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Dec 2021 18:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12872 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 12872-submit@debbugs.gnu.org id=B12872.16386441227648 (code B ref 12872); Sat, 04 Dec 2021 18:56:02 +0000 Original-Received: (at 12872) by debbugs.gnu.org; 4 Dec 2021 18:55:22 +0000 Original-Received: from localhost ([127.0.0.1]:54932 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mtaBu-0001zH-8V for submit@debbugs.gnu.org; Sat, 04 Dec 2021 13:55:22 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:39684) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mtaBs-0001z3-5p for 12872@debbugs.gnu.org; Sat, 04 Dec 2021 13:55:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=vLUoQbj68qlUfccfuZ2M1NH+cIsgMhjaBh4zMb4bejs=; b=MrSnveUCcj+aqat/v+QEOIexYc P8Z45Bz/uxbbf67bMAlChqOhhiAhRt4U4qRzkVBUezJWQ9ba0vxH2464NxmhOOJ7HFbRUZpxFdUwb l/oJmtnd8s76SwHbjY6dtX8QDDRKYCVMiplnKjOW7wDbuLxQbw4czHsS1bGBD4EUkEew=; Original-Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mtaBj-0007vO-80; Sat, 04 Dec 2021 19:55:14 +0100 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAADFBMVEUmKRpaTTSujlX/ ///X3dOHAAAAAWJLR0QDEQxM8gAAAAlwSFlzAAALEgAACxIB0t1+/AAAAAd0SU1FB+UMBBIpNyOW Fz0AAAGSSURBVCjPLdExb+sgEADgu8pY72VyJfMkd3tj8yvsKHToRCqwVE8dbCnlV3TqnDyZDJ06 mCrwK98dDov9AXccBwAAupQu3reQByEFq1c8pOi91Qj49Tr4ZGkYCugb65O3va5pj6mUSjNoscag chSNdk0nHf+IG3z+VCtSVBSRg4SNQ/8NoAAX+DPXaBdUe8KyuZh6PwpRMLb9DP0iHws+1IUBCZGi VRlcwkvQhAbK+G+GhirlzH0MFiZrBVd28caCnI3kY9GbCC9ze2gJ22QmtPuD0YT0NRtsoNYarpiG YOCXmJSA6104LJYuOFUSYnlSRwN3qukk+FL1R4NiLulU81faUNe/p1eLoN7k4KFqJLUN3gkWqm3J 7bi+3esJqrQ5MfRBW+jScAPVuQsuo+aV5yUj1ve6g01037wyYksY3Zy34UmIrc5YAD9E4ZRbVrSy cM0N1Pji+J4TjBljSKcbavg5J07ArZPtT5euDKpWdlGs4NfqlsfEmQLj5RwyImP3GRLP8kPj0/M5 8aznuz+5HeM/PQGRf75mSO8AAAAldEVYdGRhdGU6Y3JlYXRlADIwMjEtMTItMDRUMTg6NDE6NTUr MDA6MDBcmXhmAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIxLTEyLTA0VDE4OjQxOjU1KzAwOjAwLcTA 2gAAAABJRU5ErkJggg== X-Now-Playing: Tom Waits's _The Heart Of Saturday Night_: "Diamonds On My Windshield" In-Reply-To: <83a6hg7qkh.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 04 Dec 2021 09:54:38 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:221478 Archived-At: Eli Zaretskii writes: > force-mode-line-update is a blunt weapon, and causes a much more > thorough redisplay than its name says. And post-command-hook is not > the best method of achieving the desired goal, since it runs after > _every_ command, not just a command that changes the line of point. Perhaps this should be mentioned in the doc string of that function? This function could grow a `mode-line-only' parameter (or value of ALL), I guess. Hm... following the logic here isn't trivial. Would setting a new flag in the window object that'll make redisplay call redisplay_mode_lines be a way to implement this? Or just call it directly from (force-mode-line-update 'mode-line-only)? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no