From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#12872: 24.2; Provide a feature to trigger mode-line redisplay Date: Sat, 04 Dec 2021 09:54:38 +0200 Message-ID: <83a6hg7qkh.fsf@gnu.org> References: <837gpqwuai.fsf@gnu.org> <87o85xou2m.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38622"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 12872@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 04 08:55:17 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 1mtPt7-0009t4-9c for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 04 Dec 2021 08:55:17 +0100 Original-Received: from localhost ([::1]:34766 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mtPt5-0006Sk-N3 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 04 Dec 2021 02:55:15 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:54266) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mtPss-0006SK-CB for bug-gnu-emacs@gnu.org; Sat, 04 Dec 2021 02:55:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41311) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mtPss-0002ru-4Q for bug-gnu-emacs@gnu.org; Sat, 04 Dec 2021 02:55:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mtPss-0003qN-0V for bug-gnu-emacs@gnu.org; Sat, 04 Dec 2021 02:55:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Dec 2021 07:55:01 +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.163860449414755 (code B ref 12872); Sat, 04 Dec 2021 07:55:01 +0000 Original-Received: (at 12872) by debbugs.gnu.org; 4 Dec 2021 07:54:54 +0000 Original-Received: from localhost ([127.0.0.1]:52857 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mtPsk-0003pv-6Z for submit@debbugs.gnu.org; Sat, 04 Dec 2021 02:54:54 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:53458) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mtPsi-0003pj-Cj for 12872@debbugs.gnu.org; Sat, 04 Dec 2021 02:54:52 -0500 Original-Received: from [2001:470:142:3::e] (port=52594 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mtPsd-0002q3-0T; Sat, 04 Dec 2021 02:54:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=RJbvgrpmZdwt/bi234IrRLS6EeK6jvk0TAOJMIN+FNU=; b=VU364zSsH7tc 3gszFm8akiFIWwswAypyRksB11ZUFCt/QLqbVlqckfCYoxfcDMaPPB95tK9XmlOonK6vOl1Xz+WMj bmG9mzUU30vIoU8xB8cj9aDxZMZarIPmPzCXGIzflJCzArGBZbX0EF+2WkmVZgxTG10M5ssKfn203 qgFB5l1QU4IbqB69SGrFfK/2yPpdhXsw8+yR2h1WCf880w5Eg5YE7KyK67FTIQmTGgUVpEsE2Gae1 ErVS31dSExXURYOKj+mYKoZCemMFIPIpDSHPEyPDeL2iW0dLo11IRJFQ0llgiGrjzNQ7YKPV0GpSM ibe8ajBYrcgyq2ng3QgjQQ==; Original-Received: from [87.69.77.57] (port=3964 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mtPsc-0001iQ-PS; Sat, 04 Dec 2021 02:54:47 -0500 In-Reply-To: <87o85xou2m.fsf@gnus.org> (message from Lars Ingebrigtsen on Sat, 04 Dec 2021 05:46:57 +0100) 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:221445 Archived-At: > From: Lars Ingebrigtsen > Cc: 12872@debbugs.gnu.org > Date: Sat, 04 Dec 2021 05:46:57 +0100 > > Eli Zaretskii writes: > > > This is a feature request: provide a way to trigger mode-line > > redisplay when the current line changes. This is so the mode line > > could display information about the current line. > > > > See the discussion of bug #12867 for more context. > > I've skimmed both these bug reports, but I'm still not sure I understand > the problem. `force-mode-line-update' has existed since forever, I > think? Doesn't it do what it's supposed to? (And it can be run from > post-command-hook if that's what Drew wants.) 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.