From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko 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 10:47:55 +0000 Message-ID: <87ilakgmjo.fsf@localhost> 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> <83351o9m6h.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="32444"; mail-complaints-to="usenet@ciao.gmane.io" Cc: monnier@iro.umontreal.ca, 64596@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jul 16 12:48:19 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 1qKzIY-0008Ev-T2 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 16 Jul 2023 12:48:18 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qKzIK-0003IB-SM; Sun, 16 Jul 2023 06:48: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 1qKzII-0003Hm-LB for bug-gnu-emacs@gnu.org; Sun, 16 Jul 2023 06:48: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 1qKzII-0006Lt-BF for bug-gnu-emacs@gnu.org; Sun, 16 Jul 2023 06:48:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qKzIH-0004Fq-Rd for bug-gnu-emacs@gnu.org; Sun, 16 Jul 2023 06:48:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 16 Jul 2023 10:48:01 +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.168950447416302 (code B ref 64596); Sun, 16 Jul 2023 10:48:01 +0000 Original-Received: (at 64596) by debbugs.gnu.org; 16 Jul 2023 10:47:54 +0000 Original-Received: from localhost ([127.0.0.1]:46932 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qKzI9-0004Eq-BI for submit@debbugs.gnu.org; Sun, 16 Jul 2023 06:47:53 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]:44541) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qKzI5-0004Do-A2 for 64596@debbugs.gnu.org; Sun, 16 Jul 2023 06:47:51 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id C27CD240101 for <64596@debbugs.gnu.org>; Sun, 16 Jul 2023 12:47:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1689504463; bh=Ixz8djm218elIv7793+a0oUezef6n5X15I5Z1myMekQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=KIBkgNexwD7dtgIBFy3w/6wkcaus8s6bbNUUt7cH4xaZzwaXMiQFauWoloq7IwopW ySM3icQ5lolIrAl56VFhCCj2BUt55UdykK/UoPcg6yhF0FKUFupA6pxRTLE0TKpTc9 8FacSeX3qviaxBVT8wxZUNhtdH/tD/dnz7mYo4XC4iK9RrVwOYFbnalkr6b75urSMM KC6V3u7tnkUHkc3Iee3WpFPT7TaKCyMAtcTTR8EMJKYrNWZVqT0nXNcLs3uIdlpmBQ 10pXZMvN1tbMVu5pTLQB+jmOxsvzKkns1rsy7kExbufsmazJXLaV75Tx+euHi8IO7b 1Npx7rVKIXtZg== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4R3hkQ6Bf3z9rxM; Sun, 16 Jul 2023 12:47:42 +0200 (CEST) In-Reply-To: <83351o9m6h.fsf@gnu.org> 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:265315 Archived-At: Eli Zaretskii writes: >> 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. Do I understand correctly that prevent_display_optimizations_p in buffer, must_be_updated_p in window, and garbaged in frames all serve the same purpose of forcing the redisplay? >> 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. Then, why not use uniform naming scheme and have the buffer/window/frame flags names as maybe_redisplay and must_redisplay instead of different flag name for different object type? -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at