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#64596: 30.0.50; On FIXME: in src/buffer.c:1481 (force-mode-line-update) Date: Sun, 16 Jul 2023 13:37:42 +0300 Message-ID: <83351o9m6h.fsf@gnu.org> References: <877cr4nez9.fsf@localhost> <83lefj4okb.fsf@gnu.org> <83fs5r3tqv.fsf@gnu.org> <834jm6fppc.fsf@gnu.org> <87a5vyidy6.fsf@localhost> <83sf9qe2ip.fsf@gnu.org> <83a5vxejz6.fsf@gnu.org> <87ttu4gnpt.fsf@localhost> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26398"; mail-complaints-to="usenet@ciao.gmane.io" Cc: monnier@iro.umontreal.ca, 64596@debbugs.gnu.org To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jul 16 12:38:25 2023 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 1qKz8y-0006gu-Sk for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 16 Jul 2023 12:38:24 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qKz8e-0001eE-91; Sun, 16 Jul 2023 06:38:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qKz8c-0001e4-QZ for bug-gnu-emacs@gnu.org; Sun, 16 Jul 2023 06:38:02 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qKz8c-0002xx-CT for bug-gnu-emacs@gnu.org; Sun, 16 Jul 2023 06:38:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qKz8c-0003xE-7x for bug-gnu-emacs@gnu.org; Sun, 16 Jul 2023 06:38:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 16 Jul 2023 10:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64596 X-GNU-PR-Package: emacs Original-Received: via spool by 64596-submit@debbugs.gnu.org id=B64596.168950385015160 (code B ref 64596); Sun, 16 Jul 2023 10:38:02 +0000 Original-Received: (at 64596) by debbugs.gnu.org; 16 Jul 2023 10:37:30 +0000 Original-Received: from localhost ([127.0.0.1]:46918 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qKz86-0003wR-9H for submit@debbugs.gnu.org; Sun, 16 Jul 2023 06:37:30 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42936) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qKz81-0003tL-BM for 64596@debbugs.gnu.org; Sun, 16 Jul 2023 06:37:28 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qKz7v-0002Yz-PX; Sun, 16 Jul 2023 06:37:19 -0400 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=/c8suefAl+Ank3WQNHSMZ4ZQX7JYY6D83wj65abPV1s=; b=cCCk3MySNOcW RkL6xiWKry4Tyn9lPEOLgi1S2V6/fhgPs09+x5A3j3ONo86D6UNpQbKklN/zVaUq13PeHlzUQc0yT R7agamLxOMT7VnvojB3BRfvVlRFiX/rqANcIfsLyvfjOQqRMinX8thw/8b+A01gfmj3ocfrlJKPk0 Y+4DR14FEc3aAj3xD1YbLKz9kebWYslDy2c4U0Kz0vUcoKvZJ0cjmWQfKWUevlt3rkEE1le23qwd2 kY0x+BfkVSLGpTFTxcDTYrydu4NJuyoQX18NG+DBgjZu1E7g9TJdWlV9cjBM7iCvChApNzYbApvSf +t2NhRLhK7L0ifLIL58NLQ==; Original-Received: from [87.69.77.57] (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 1qKz7v-0005UD-8o; Sun, 16 Jul 2023 06:37:19 -0400 In-Reply-To: <87ttu4gnpt.fsf@localhost> (message from Ihor Radchenko on Sun, 16 Jul 2023 10:22:38 +0000) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:265313 Archived-At: > From: Ihor Radchenko > Cc: Eli Zaretskii , 64596@debbugs.gnu.org > Date: Sun, 16 Jul 2023 10:22:38 +0000 > > Stefan Monnier writes: > > >> . prevent_redisplay_optimizations_p flag of a buffer > >> . must_be_updated_p flag of a window > > > > No idea what these mean. > > The name `must_be_updated_p` makes it sound to me like it's redundant > > with the `redisplay` flag above. > > I agree about must_be_updated_p. I had exactly same though that it is > redundant with redisplay flag when reading the code. Look closer, please. The name of the flag might suggest what you say, but its usage suggests otherwise. > prevent_redisplay_optimizations_p is intuitively logical, but I still > feel confused because it appears to be redundant upon seeing redisplay > flag in the buffer. It raises a question what redisplay flag really > means - it is causing redisplay of a window/buffer or not necessarily? Neither. The redisplay flag means that a window or a buffer or a frame need to be _considered_ for potential redisplay. (Whether the consideration will conclude there's a need to actually redraw the corresponding part of the Emacs display is another matter -- it could conclude that all, some parts of, or none of the objects marked for redisplay actually need it.) prevent_redisplay_optimizations_p says that while considering which parts of the buffer need to cause redisplay, certain shortcuts and optimizations designed to make redisplay faster and less expensive must not be taken/used. IOW, prevent_redisplay_optimizations_p must come with the redisplay flag set on the buffer/window/frame, but after that it says a different thing.