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: Sat, 09 Nov 2024 18:37:49 +0200 Message-ID: <8634k0mkgy.fsf@gnu.org> References: <86y1254owq.fsf@gnu.org> <86ldy54m2g.fsf@gnu.org> <86ed3w33g1.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18046"; mail-complaints-to="usenet@ciao.gmane.io" Cc: me@eshelyaron.com, 74091@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 09 17:38:23 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 1t9oTe-0004YE-L9 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 09 Nov 2024 17:38:22 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t9oTN-0008Nu-PD; Sat, 09 Nov 2024 11:38:05 -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 1t9oTM-0008N0-7j for bug-gnu-emacs@gnu.org; Sat, 09 Nov 2024 11:38: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 1t9oTK-0000R6-VZ for bug-gnu-emacs@gnu.org; Sat, 09 Nov 2024 11:38: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=ZdlGtGA0SGYg/i5RjITmRlXPyMGbuRTd6A39H0J9J1g=; b=Jgz++LKpR0NNgU8bDB163M764Jz60K4QfA6pM92ixoK729V0YIkyLI19lC1pupBVDllynt89kpAtHRiMicGGygn0+lRZh/ggY25jfzbWaJFxbvGB6xKG6dio3qNnhwFd94/hoV0N8FzB8ZRt55a99EY7GVtGYoHCPffusyKMor0B/zE1SRSG4YNCQM7BIAbm71ibyjYXyoSYOHwd4PV7+27iAnjQVqdQzulkXmhywu79M/e2G6jN+7XMd48ul2VGr5bac+N5XEPDVDsmhIkREQCvwhKOsDxO9VwgdFP9pLMA2F6wDtXXnS2NlzPNl1qpj/1DyMnrLqotsJT+MexWFA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t9oTK-0004DA-RJ for bug-gnu-emacs@gnu.org; Sat, 09 Nov 2024 11:38: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: Sat, 09 Nov 2024 16:38: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.173117028216180 (code B ref 74091); Sat, 09 Nov 2024 16:38:02 +0000 Original-Received: (at 74091) by debbugs.gnu.org; 9 Nov 2024 16:38:02 +0000 Original-Received: from localhost ([127.0.0.1]:54232 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t9oTJ-0004Cp-ED for submit@debbugs.gnu.org; Sat, 09 Nov 2024 11:38:01 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:60944) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t9oTH-0004CW-4K for 74091@debbugs.gnu.org; Sat, 09 Nov 2024 11:38: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 1t9oTA-0000QZ-L3; Sat, 09 Nov 2024 11:37:52 -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=ZdlGtGA0SGYg/i5RjITmRlXPyMGbuRTd6A39H0J9J1g=; b=BcEs6ETHTl+L +9VTDm650Xweb7oVMmzWPVTND0wLjjuP3qWVGdNIvFaVO+i+4002WASm8J52vnt7oBbuXR4V/qvh7 Z0Do37zYwuxKAQSLJ9ULNJnUcrcUXh6BcrdSW7uZQUNlOaXOXz97KgIt0sJfQMcl3YL31T1da2xr/ tuplq4KXgVlhhpF34HdhvSFNWLnqxUnIepcd/kViQIiaJogQmEV9sSFa6b41lq6Fjddkc3gYIMsgh jS3UoJnjj4vd3hSZotouTDvtM4NidQg4eYe2sEPEekFNedQt0wRAklCkd9N36QOGwIYSIh3ZTXLGC u7rui9LrhsiHlQof6h3NTQ==; In-Reply-To: (message from Stefan Monnier on Sat, 09 Nov 2024 11:26:48 -0500) 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:295144 Archived-At: > From: Stefan Monnier > Cc: Eshel Yaron , 74091@debbugs.gnu.org > Date: Sat, 09 Nov 2024 11:26:48 -0500 > > I suspect the problem might be a bug in `reset_buffer_local_variables` around: > > /* Reset all (or most) per-buffer variables to their defaults. */ > if (permanent_too) > bset_local_var_alist (b, Qnil); > > I suspect this was OK in the "original" uses of `permanent_too` because > "by construction" none of those vars could be "swapped in" (i.e. have > their value held in a C variable like `Vdeactivate_mark`), but we now > have cases where this is not the case any more, so that if the value of > `Vdeactivate_mark` held a buffer-local value, it ends up "promoted" > to global. Which development in Emacs made such a "promotion" possible?