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 21:26:59 +0200 Message-ID: <83ee6s5fy4.fsf@gnu.org> References: <837gpqwuai.fsf@gnu.org> <87o85xou2m.fsf@gnus.org> <83a6hg7qkh.fsf@gnu.org> <87mtlg6vzm.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13710"; 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 20:28:13 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 1mtahg-0003NB-Rd for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 04 Dec 2021 20:28:13 +0100 Original-Received: from localhost ([::1]:52024 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mtahf-0007bw-Uf for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 04 Dec 2021 14:28:11 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:44572) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mtahW-0007bo-Pc for bug-gnu-emacs@gnu.org; Sat, 04 Dec 2021 14:28:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43460) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mtahW-0001z3-Hv for bug-gnu-emacs@gnu.org; Sat, 04 Dec 2021 14:28:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mtahW-00053F-F9 for bug-gnu-emacs@gnu.org; Sat, 04 Dec 2021 14:28: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 19:28: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.163864603519364 (code B ref 12872); Sat, 04 Dec 2021 19:28:02 +0000 Original-Received: (at 12872) by debbugs.gnu.org; 4 Dec 2021 19:27:15 +0000 Original-Received: from localhost ([127.0.0.1]:55006 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mtagk-00052G-U3 for submit@debbugs.gnu.org; Sat, 04 Dec 2021 14:27:15 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:43684) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mtagi-000520-R2 for 12872@debbugs.gnu.org; Sat, 04 Dec 2021 14:27:13 -0500 Original-Received: from [2001:470:142:3::e] (port=43032 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 1mtagd-0001uL-99; Sat, 04 Dec 2021 14:27:07 -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=ipApp8cLgCBvFTQqu1oGH+/dluXwwr0BA1SL5k06Hx8=; b=AeSfMpFnwyjK s52gCRgZgyjXt9E6n1i7ZjA3iYfdGWGuWEv6Zfa+w0JH37p6iQpBjnbFTfY0S7xtEJrzT4F+ohdr+ CZnjNhxXZ7uFoYgdqEUMrTSr9Yj9AOyqyFdtWgeynO23BJjy2hk6ukJS74LZuUVShGJJlwxzHdg9b ndE9Z7whVTL1X1tbOn8tSe0GLuF27BHX9oO1yeB3SOKu6LdPHrhHS5Mn9PCosUEg3TgNuVdVowGLo tgjZxXH32eH5nGx1lsc9YmmE70/cTt/pIvjzQ70hRSRJ3zOkeHQ9R/yTAxdV2LW1LoP2DqTuieawc ZOxv3zZPpkLl+0xqw4yPIA==; Original-Received: from [87.69.77.57] (port=3050 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 1mtagc-0000Bq-1I; Sat, 04 Dec 2021 14:27:07 -0500 In-Reply-To: <87mtlg6vzm.fsf@gnus.org> (message from Lars Ingebrigtsen on Sat, 04 Dec 2021 19:55:09 +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:221487 Archived-At: > From: Lars Ingebrigtsen > Cc: 12872@debbugs.gnu.org > Date: Sat, 04 Dec 2021 19:55:09 +0100 > > 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? It already hints on that. I don't object to saying that more clearly and explicitly. But I don't think that's the issue here. > 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? We already have the flag. The problem is how to set it only when the current line changes. I think that's the crux of this issue.