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: Wed, 06 Nov 2024 14:49:46 +0200 Message-ID: <86ldxwsf11.fsf@gnu.org> References: <86y1254owq.fsf@gnu.org> <86ldy54m2g.fsf@gnu.org> <86ed3w33g1.fsf@gnu.org> <865xp82vd2.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3322"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 74091@debbugs.gnu.org To: Eshel Yaron Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 06 13:51:40 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 1t8fVa-0000f4-7x for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 06 Nov 2024 13:51:38 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t8fVN-0001HW-So; Wed, 06 Nov 2024 07:51:26 -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 1t8fV1-0000yu-LJ for bug-gnu-emacs@gnu.org; Wed, 06 Nov 2024 07:51:05 -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 1t8fV1-00055y-2p for bug-gnu-emacs@gnu.org; Wed, 06 Nov 2024 07:51: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=E3pvw3D8k+SS910/APUeT8qUu0zvcwYDVxy90foe+dU=; b=fXgwQy2gOdSpD/+2KccVX+AQsKiTkGY/d2HJmit3hsuv3UjtqiOJ9zYzo2q088v0CcK1wZ1eMkpMq0A80JrCgTGE+8odA00OAUj0k7uSYKXCfATJmHT1H1TMNVyQ5NpWCC5emZxk8MgewqwUMqzq4fPX6GfCmhZtglBf0CPg8TUydnjGb6ZyzSo6KAGqfVTYHq1aawbDYKlnQOK0U81MMfVf9HwkPwbA9G5Yp3RIXexnuOIInOcKyU+8xbWcyGZT57S/rKZZ7Mm6/1/1hJ+LpIIOYlFl5jIh9DtaZDV/paETmUYT/tk/Vt2eaRm4agvfkyifSBNPgVGL4yvzg8FGYg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t8fUz-0005w5-Pi for bug-gnu-emacs@gnu.org; Wed, 06 Nov 2024 07:51:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 06 Nov 2024 12:51:01 +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.173089740622377 (code B ref 74091); Wed, 06 Nov 2024 12:51:01 +0000 Original-Received: (at 74091) by debbugs.gnu.org; 6 Nov 2024 12:50:06 +0000 Original-Received: from localhost ([127.0.0.1]:40006 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t8fU6-0005or-3s for submit@debbugs.gnu.org; Wed, 06 Nov 2024 07:50:06 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:44356) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t8fU3-0005oE-LI for 74091@debbugs.gnu.org; Wed, 06 Nov 2024 07:50:04 -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 1t8fTw-0004cH-1i; Wed, 06 Nov 2024 07:49:57 -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=E3pvw3D8k+SS910/APUeT8qUu0zvcwYDVxy90foe+dU=; b=D2hkZW2jX6p2 CNstgWLBb2oj9uMyTxEThZxxC5yQuZHCB2TtzaGX8Uw2mRtOnk3LoNajcC17r3unnDiGsuwvrCFNp SltCsbVZ4Zk4RBkWa1lGO3NSMSgrbmIM+DuKzeWxulpCPBMyQZmUZtk67Uq1USoSAmlzWDE9sPLd4 BeqezppMmieXCG7vP8cuzZtI9Z/hqprww4tjDBLcNEfqgNsC5p7D0yP5Ii4tjFu20I6e4OmO1AN0P +ScKG58iBDFuyOgZ1XPzsZVmRl7+9VDaqVLV/Il28UiQaxfjpTLEsiKAlmjj7NYukPTB9HjIQQgKh dipQdGEVkpsxg7SgQsfWCg==; In-Reply-To: (message from Eshel Yaron on Wed, 06 Nov 2024 09:01:16 +0100) 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:294952 Archived-At: > From: Eshel Yaron > Cc: 74091@debbugs.gnu.org > Date: Wed, 06 Nov 2024 09:01:16 +0100 > > FYI after spending a bit more time on this issue, I concluded that > (kill-all-local-variables t) is inherently problematic: it breaks > assumptions that Emacs relies on. (See bug#73005 for another example.) > > It doesn't seem like killing permanent-local variables in the work > buffers is necessary ATM, so the fix I'm using is the following: Can't _any_ variable become permanent-local, by virtue of some Lisp program or the user giving it a permanent-local property? More generally, how do we know that there are no permanent-local variables out there that affect layout, and thus affect the results of this function? I believe these considerations were those which led the author to use kill-all-local-variables like this: we want to be sure that nothing will dupe string-pixel-width into producing unexpected results.