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: Sun, 05 Dec 2021 22:14:34 +0200 Message-ID: <83ee6q3j2t.fsf@gnu.org> References: <837gpqwuai.fsf@gnu.org> <87o85xou2m.fsf@gnus.org> <83a6hg7qkh.fsf@gnu.org> <87mtlg6vzm.fsf@gnus.org> <83ee6s5fy4.fsf@gnu.org> <877dck5fbb.fsf@gnus.org> <83a6hg5f71.fsf@gnu.org> <87tufoxc10.fsf@gnus.org> <83zgpf4jqk.fsf@gnu.org> <87pmqaq0kl.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37802"; 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 Sun Dec 05 21:15:52 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 1mtxvJ-0009Pu-3a for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 05 Dec 2021 21:15:49 +0100 Original-Received: from localhost ([::1]:33832 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mtxvH-00013C-Km for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 05 Dec 2021 15:15:47 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:58666) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mtxug-00012s-DK for bug-gnu-emacs@gnu.org; Sun, 05 Dec 2021 15:15:12 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48055) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mtxuY-0007zO-8e for bug-gnu-emacs@gnu.org; Sun, 05 Dec 2021 15:15:05 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mtxuY-0006B9-4Y for bug-gnu-emacs@gnu.org; Sun, 05 Dec 2021 15:15: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: Sun, 05 Dec 2021 20:15: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.163873528723713 (code B ref 12872); Sun, 05 Dec 2021 20:15:02 +0000 Original-Received: (at 12872) by debbugs.gnu.org; 5 Dec 2021 20:14:47 +0000 Original-Received: from localhost ([127.0.0.1]:59601 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mtxuJ-0006AP-GD for submit@debbugs.gnu.org; Sun, 05 Dec 2021 15:14:47 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:57856) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mtxuH-0006AC-Oy for 12872@debbugs.gnu.org; Sun, 05 Dec 2021 15:14:46 -0500 Original-Received: from [2001:470:142:3::e] (port=48806 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 1mtxuB-0007wU-8C; Sun, 05 Dec 2021 15:14:40 -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=CI5hcpan4AfUYWk4LScTueAZ6TTBQxyt2ThwOEnbovg=; b=UAwN1rot8tub fSBESY7LcJCfSj3U8RkQMhLiXGoWG+lnDyXV1BcJ/WmegMcmpYHsVsfxaGZ5/EMF+TLLbpi9W4xEJ qIOPrkdYA/nOym/iievISeEk7FxldZblcTXF6h0mU52UfgjcPIGuYK2ILPy4O4jlRbkWHSDWvpvfC mA5NbdUe41ccaNZpIaklnha5CvhcRbitEWC+a9omDSratMWNQiFNIauhl1aCDCK4iHvJLopLlUqLL 7MppgorFwh0ML+6ywiDgwZ02rByFZzw8hw1fw2mObApNK0HHYRwUhU90KhoTBhM7a5jNKY+DzRd5E 8a1MN+ucCA6YdzIYEf73vw==; Original-Received: from [87.69.77.57] (port=3877 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 1mtxuA-0006s2-Vv; Sun, 05 Dec 2021 15:14:39 -0500 In-Reply-To: <87pmqaq0kl.fsf@gnus.org> (message from Lars Ingebrigtsen on Sun, 05 Dec 2021 21:05:46 +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:221651 Archived-At: > From: Lars Ingebrigtsen > Cc: 12872@debbugs.gnu.org > Date: Sun, 05 Dec 2021 21:05:46 +0100 > > I don't quite see the use case, but we could fix force-mode-line-update > in any case. That is, add a parameter to only set w->update_mode_line? How would that be different from what force-mode-line-update does now? It sets the update_mode_line flag for the window's buffer, not just for the window, and it also sets a flag to prevent redisplay optimizations that could get in the way of the mode-line update. What do you suggest to do instead, and why would that be useful? The problem with the update_mode_line flags is that they are indiscriminate: the mode line shows a lot of data, each one of it changes at different frequencies and due to different triggers. If we want a finer resolution there, we need to make these flags not just simple booleans, but enumerations with several values, or maybe bitmaps. Then redisplay_window could be smarter about redrawing parts of the mode line.