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 05:49:45 +0000 Message-ID: <874jm4o16u.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> <83r0p9b3om.fsf@gnu.org> <83jzv1b152.fsf@gnu.org> <83a5vxas9k.fsf@gnu.org> <877cr1nep6.fsf@localhost> <835y6kbgik.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="333"; 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 07:50:41 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 1qKueX-000ASv-5H for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 16 Jul 2023 07:50:41 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qKue3-00061l-TT; Sun, 16 Jul 2023 01:50:12 -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 1qKudv-00061R-Bv for bug-gnu-emacs@gnu.org; Sun, 16 Jul 2023 01:50:03 -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 1qKudu-0004q3-UR for bug-gnu-emacs@gnu.org; Sun, 16 Jul 2023 01:50:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qKudu-0003lW-Dj for bug-gnu-emacs@gnu.org; Sun, 16 Jul 2023 01:50:02 -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 05:50: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.168948659214444 (code B ref 64596); Sun, 16 Jul 2023 05:50:02 +0000 Original-Received: (at 64596) by debbugs.gnu.org; 16 Jul 2023 05:49:52 +0000 Original-Received: from localhost ([127.0.0.1]:46400 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qKudj-0003ku-Lt for submit@debbugs.gnu.org; Sun, 16 Jul 2023 01:49:51 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]:49407) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qKudf-0003ka-A4 for 64596@debbugs.gnu.org; Sun, 16 Jul 2023 01:49:50 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 5D3A2240103 for <64596@debbugs.gnu.org>; Sun, 16 Jul 2023 07:49:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1689486581; bh=ADE8PfVsGdNHizkB4cSDWudkIHsdaucPnACEp2FsOnE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=fbSpTdWVlXUQsDwAnhS0ytRyb627Kn7aQ75xTnF1dNJxE+D9dBoUvFIuk6CCia5Qv pWMKIKDh2v8+mIVNqQ16k0WJ7zvpmMbrUBsD1cyFGZkbaFbiVH6YmkZWw8yDTkBd42 Pt4LTAkvwWIMUFa5M7EVcBxDbWiRi/vbruO3+kc29RZXhhf1Mpr3ezbP22OGkMeN6p j04bL+YS51Cr8EOxk8eFUELk7SL6dG2wDL35A1MOMeGgAMpQE2V2kHIEtb+HZBmhTz 1vVbU4kM26Y+knMhTrkpD0osVPtnQ0h9sqLC2SOVjooF2z1MqScg4WZRNhAbY3nhpN qGwpCVubUd+ow== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4R3Z6V3X3mz6txj; Sun, 16 Jul 2023 07:49:38 +0200 (CEST) In-Reply-To: <835y6kbgik.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:265267 Archived-At: Eli Zaretskii writes: >> At least, when the current buffer is only displayed in a single, >> selected window, checking every window should not be necessary. > > The code which sets update_mode_lines doesn't know whether the current > buffer will be displayed in a single window by the time redisplay > kicks in. It doesn't even know whether it will still be the current > buffer by that time. Because the Lisp program that is running and > making the changes which cause update_mode_lines to be set can change > these things before it finishes. If the selected window changes for any reason, redisplaying the previously selected window will be queued by select_window: if (NILP (norecord) || EQ (norecord, Qmark_for_redisplay)) { /* Mark the window for redisplay since the selected-window has a different mode-line. */ wset_redisplay (XWINDOW (selected_window)); wset_redisplay (w); } else redisplay_other_windows (); -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at