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#74091: 31.0.50; string-pixel-width in mode line disables region Date: Sun, 10 Nov 2024 08:50:49 +0200 Message-ID: <86jzdblgza.fsf@gnu.org> References: <86y1254owq.fsf@gnu.org> <86ldy54m2g.fsf@gnu.org> <86ed3w33g1.fsf@gnu.org> <8634k0mkgy.fsf@gnu.org> <86ttcgl1f0.fsf@gnu.org> <86ses0l0g3.fsf@gnu.org> <86o72nljrc.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12336"; mail-complaints-to="usenet@ciao.gmane.io" Cc: me@eshelyaron.com, 74091@debbugs.gnu.org To: monnier@iro.umontreal.ca Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 10 07:54:16 2024 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 1tA1pw-00034I-EU for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 10 Nov 2024 07:54:16 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tA1pj-0000wL-TL; Sun, 10 Nov 2024 01:54:04 -0500 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 1tA1nn-0000Hk-HF for bug-gnu-emacs@gnu.org; Sun, 10 Nov 2024 01:52:04 -0500 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 1tA1nn-0003zx-8n for bug-gnu-emacs@gnu.org; Sun, 10 Nov 2024 01:52:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=pwhhX54tvLE/IdE6w8nz/DXhWoTyYIZGxXKO5QFtdz0=; b=LUSmnRJfLYzF+lCQAnfGO0npE9L0AkIo1msZyx1mX9Mo0GbWRhvCfpSgCbTvFc3h1xfAMCEd1Fnsu7KZb+aHtagGI12VCRSt0sq1NIpMM5Lwc6Qik8ZzkfLud75XPnbmIdSEJ+0E4z5sXlalomDmNI9zHxP0C1Mlvv2yxbwuHsT9z/HuT9dOtA81wXegeFzyJIFE7NbrguDKsrihYTH52j+gUsHUzxhi1v2IZOB84NhY4XBLL/hJ9n29rB3lEYITiD7a8cvqy9vZvItPzK2fzatNp3OcQpSWBHcIQneLcZC892PuyQaxFl9aSe3N4JAdW7BK6JvNR421oMy/5BL5vw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tA1nm-0000hg-7U for bug-gnu-emacs@gnu.org; Sun, 10 Nov 2024 01:52: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, 10 Nov 2024 06:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74091 X-GNU-PR-Package: emacs Original-Received: via spool by 74091-submit@debbugs.gnu.org id=B74091.17312214622535 (code B ref 74091); Sun, 10 Nov 2024 06:52:02 +0000 Original-Received: (at 74091) by debbugs.gnu.org; 10 Nov 2024 06:51:02 +0000 Original-Received: from localhost ([127.0.0.1]:55370 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tA1mn-0000eX-UL for submit@debbugs.gnu.org; Sun, 10 Nov 2024 01:51:02 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:56232) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tA1ml-0000U1-Gd for 74091@debbugs.gnu.org; Sun, 10 Nov 2024 01:51:00 -0500 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 1tA1mf-0003lU-5z; Sun, 10 Nov 2024 01:50:53 -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=pwhhX54tvLE/IdE6w8nz/DXhWoTyYIZGxXKO5QFtdz0=; b=bb0agavKpF+s n+Lg0ALHsXk6R10SG40Bq6DXjkiBolG4tkPwd7fWioQczPIWWdcKIRWnMPBiSJBs7T9PRznZdSPQT srxV3R1c7F2/CPkP5EMVFymnopK66gSSgq29IrERL1ERc4q3lUfAxIQnRPyURrOsJaxa9ub3/uGC0 k9W7YX+ss76uhfZEFjTfs5NjNIJm3WXtruPFmZm3uCldzmXNs3KdrCgcHS5zh+q/5Do+/PsrsICiQ mfjLZi79jPKr0rQcv0G3sBNlowME1uxkGZ4lzGoH9aClYCHK430y09M6So9tGh0SqJ4euX/ey7G0P dfNRsg62mwqSLHW4zqKLgA==; In-Reply-To: <86o72nljrc.fsf@gnu.org> (message from Eli Zaretskii on Sun, 10 Nov 2024 07:50:47 +0200) 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:295168 Archived-At: > Cc: me@eshelyaron.com, 74091@debbugs.gnu.org > Date: Sun, 10 Nov 2024 07:50:47 +0200 > From: Eli Zaretskii > > > > @@ -1170,7 +1171,7 @@ reset_buffer_local_variables (struct buffer *b, bool permanent_too) > > > swap_in_global_binding (XSYMBOL (sym)); > > > } > > > > > > - if (!NILP (prop)) > > > + if (!NILP (prop) && permanent_too) > > > { > > > /* If permanent-local, keep it. */ > > > last = tmp; > > > > This should be an || rather than an &&, no? > > No, I don't think so. If the permanent-local property is nil, we > should not take this branch, even if permanent_too is non-zero. Or > what am I missing? Hmm... but something is still amiss, because Emacs built with my patch comes up without fontifications, although font-lock-mode is t. Any ideas?