From unknown Sun Jun 22 00:48:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#15658: 24.1; (wishlist) Easy way to make a file-local variable also permanent-local Resent-From: yary Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 19 Oct 2013 22:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 15658 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 15658@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.13822209379238 (code B ref -1); Sat, 19 Oct 2013 22:16:02 +0000 Received: (at submit) by debbugs.gnu.org; 19 Oct 2013 22:15:37 +0000 Received: from localhost ([127.0.0.1]:58325 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VXeo4-0002Ow-GV for submit@debbugs.gnu.org; Sat, 19 Oct 2013 18:15:36 -0400 Received: from eggs.gnu.org ([208.118.235.92]:35153) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VXeo1-0002Oe-SX for submit@debbugs.gnu.org; Sat, 19 Oct 2013 18:15:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VXenv-0001uZ-I1 for submit@debbugs.gnu.org; Sat, 19 Oct 2013 18:15:28 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:52250) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VXenv-0001uV-F9 for submit@debbugs.gnu.org; Sat, 19 Oct 2013 18:15:27 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36875) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VXenu-0007xr-FF for bug-gnu-emacs@gnu.org; Sat, 19 Oct 2013 18:15:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VXent-0001uJ-F7 for bug-gnu-emacs@gnu.org; Sat, 19 Oct 2013 18:15:26 -0400 Received: from mail-wg0-x22c.google.com ([2a00:1450:400c:c00::22c]:49759) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VXent-0001uF-8d for bug-gnu-emacs@gnu.org; Sat, 19 Oct 2013 18:15:25 -0400 Received: by mail-wg0-f44.google.com with SMTP id n12so5041340wgh.11 for ; Sat, 19 Oct 2013 15:15:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=U0g40BmP64sljBfK56AfeVD4+FK5YU1h9YXpvPtbknU=; b=jZ0wQh3yG0lEO0TwTp8fxlh9HYj8l74g1XCFE0iw8W9+um9oWJ/7sUNnXhIxYYtv5Q bZcEu9aDZGrgNmQsE8wTcaCLDdywc2LGur4n8K3V6T3KL1la/ULzQuM/JDOW0TjRHxOF 2VJTXyL7hOZ5ZchgIEi+AdS7i6PLe23irbhdO5GXy05daMqmX7L8y/mSlnI0xwkMew/F Zu41KpP7TkWCLSKeOSFqPKOJuPUSLB2QBmhSxyTP9bjbxoGy0G45PcAq3P8NfYsPB1sI 8fGDAutb36PRmAoT+havKDHGfXZc470J/PaBpMsxqtwo+RK8rVrayFJHE7MNuYNIfywM BTkw== X-Received: by 10.180.189.132 with SMTP id gi4mr4236302wic.19.1382220924459; Sat, 19 Oct 2013 15:15:24 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.83.72 with HTTP; Sat, 19 Oct 2013 15:15:04 -0700 (PDT) From: yary Date: Sat, 19 Oct 2013 18:15:04 -0400 Message-ID: Content-Type: text/plain; charset=ISO-8859-1 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) There are occasional needs to preserve buffer-local variables across major-mode changes. In the specific case of directory-local variables, an automated solution looks to be feasible, see "bug#15577: 24.3; dir-local variables not applied when switching major-mode" File-local variables on the other hand are not as easy to categorize as to their intent- for a particular mode, vs the file contents in general. I propose adding `permanent' as another special "variable name" (along the lines of `mode', `eval', `coding', and `unibyte') to let people mark the file variables they want to remain between mode changes. For example: ; mode: Lisp ; fill-column: 75 ; comment-column: 50 ; permanent: fill-column tab-width would set & keep fill-column at 75 between mode changes, and would preserve between major-mode switches any changes to tab-width. (There is one edge case with this proposal: what would `permanent: eval' do? Re-evaluate all `eval' file variables after a mode change? And `permanent: mode' would have to be ignored or give a warning.) In GNU Emacs 24.1.1 (i386-mingw-nt5.1.2600) of 2012-06-10 on MARVIN Windowing system distributor `Microsoft Corp.', version 5.1.2600 Configured using: `configure --with-gcc (4.6) --cflags -ID:/devel/emacs/libs/libXpm-3.5.8/include -ID:/devel/emacs/libs/libXpm-3.5.8/src -ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include -ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include -ID:/devel/emacs/libs/giflib-4.1.4-1/include -ID:/devel/emacs/libs/jpeg-6b-4/include -ID:/devel/emacs/libs/tiff-3.8.2-1/include -ID:/devel/emacs/libs/gnutls-3.0.9/include' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: ENU value of $XMODIFIERS: nil locale-coding-system: cp1252 default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t From unknown Sun Jun 22 00:48:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#15658: 24.1; (wishlist) Easy way to make a file-local variable also permanent-local Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 10 May 2022 15:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15658 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: yary Cc: 15658@debbugs.gnu.org Received: via spool by 15658-submit@debbugs.gnu.org id=B15658.16521956765060 (code B ref 15658); Tue, 10 May 2022 15:15:02 +0000 Received: (at 15658) by debbugs.gnu.org; 10 May 2022 15:14:36 +0000 Received: from localhost ([127.0.0.1]:34833 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1noRZL-0001JX-Gx for submit@debbugs.gnu.org; Tue, 10 May 2022 11:14:35 -0400 Received: from quimby.gnus.org ([95.216.78.240]:56402) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1noRZJ-0001JE-2J for 15658@debbugs.gnu.org; Tue, 10 May 2022 11:14:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=xiNb8XKWfyBOlYBqZ2oOE+mrKrS64IJylH4dRUQpJKQ=; b=qzyiYNAyDTg9d9lbMMEKsPFunZ kaWAuSGkBNkjmn/f9gBCeUunotUhOdmhm84ARqwXPFf2cuSqfStTXEie8qMb04gGT/L2jwOR8/oHe cEUXonUQ9rLapt6HzAn3p5RVvsZENLjQn1pXC/MRbfDv3JIrMUJWvYIR3avBIBGO244w=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1noRZA-00056J-1r; Tue, 10 May 2022 17:14:26 +0200 From: Lars Ingebrigtsen References: X-Now-Playing: Joni Mitchell's _Shadows And Light (1)_: "Hejira" Date: Tue, 10 May 2022 17:14:21 +0200 In-Reply-To: (yary's message of "Sat, 19 Oct 2013 18:15:04 -0400") Message-ID: <87lev9fmia.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: yary writes: > There are occasional needs to preserve buffer-local variables across > major-mode changes. In the specific case of directory-local variables, > an automated solution looks to be feasible, see "bug#1 [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) yary writes: > There are occasional needs to preserve buffer-local variables across > major-mode changes. In the specific case of directory-local variables, > an automated solution looks to be feasible, see "bug#15577: 24.3; > dir-local variables not applied when switching major-mode" > > File-local variables on the other hand are not as easy to categorize as > to their intent- for a particular mode, vs the file contents in general. > > I propose adding `permanent' as another special "variable name" (along > the lines of `mode', `eval', `coding', and `unibyte') to let people > mark the file variables they want to remain between mode changes. For > example: > > ; mode: Lisp > ; fill-column: 75 > ; comment-column: 50 > ; permanent: fill-column tab-width > > would set & keep fill-column at 75 between mode changes, and would > preserve between major-mode switches any changes to tab-width. (I'm going through old bug reports that unfortunately weren't resolved at the time.) With the following: ;; Local variables: ;; foo-var: t ;; end: foo-var is set whenever I change the major mode. Has the behaviour changed here since Emacs 24.1? (The earliest Emacs I have is Emacs 25.1.) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Tue May 10 11:14:39 2022 Received: (at control) by debbugs.gnu.org; 10 May 2022 15:14:39 +0000 Received: from localhost ([127.0.0.1]:34836 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1noRZO-0001Jo-Ub for submit@debbugs.gnu.org; Tue, 10 May 2022 11:14:39 -0400 Received: from quimby.gnus.org ([95.216.78.240]:56416) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1noRZN-0001JL-HG for control@debbugs.gnu.org; Tue, 10 May 2022 11:14:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=wDdczMdJiZwQU2UVvYykZGgsH8QCSzlwctB+18gaFVA=; b=HD9+c++y0dzbWAr82VdvPm0mWe osyA/C8w0+dCt9yUppJJYAOaucUqWAgFMr6nPVqN5gQ50TuBeibZCc35WX0ge7SmmY71ncPyBUUD/ PhchnTybvRE6GSIEI/YY13yPCAiazAyYmQrhQ7cDJxdc2LOoM8sWgb0dM0wouD/xeJHA=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1noRZF-00056P-Jn for control@debbugs.gnu.org; Tue, 10 May 2022 17:14:31 +0200 Date: Tue, 10 May 2022 17:14:27 +0200 Message-Id: <87k0atfmi4.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #15658 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 15658 + moreinfo quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) tags 15658 + moreinfo quit From unknown Sun Jun 22 00:48:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#15658: 24.1; (wishlist) Easy way to make a file-local variable also permanent-local Resent-From: yary Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 10 May 2022 19:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15658 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo To: Lars Ingebrigtsen Cc: 15658@debbugs.gnu.org Received: via spool by 15658-submit@debbugs.gnu.org id=B15658.165221245811057 (code B ref 15658); Tue, 10 May 2022 19:55:02 +0000 Received: (at 15658) by debbugs.gnu.org; 10 May 2022 19:54:18 +0000 Received: from localhost ([127.0.0.1]:35251 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1noVw2-0002sH-K7 for submit@debbugs.gnu.org; Tue, 10 May 2022 15:54:18 -0400 Received: from mail-wm1-f42.google.com ([209.85.128.42]:40822) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1noVw1-0002s4-JN for 15658@debbugs.gnu.org; Tue, 10 May 2022 15:54:18 -0400 Received: by mail-wm1-f42.google.com with SMTP id v64-20020a1cac43000000b0038cfd1b3a6dso1945873wme.5 for <15658@debbugs.gnu.org>; Tue, 10 May 2022 12:54:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=CsF+keW6sHsPAptWXaR/h0XEEkW5wCjCJetbwA/nz00=; b=CAS3iFIHcnu6ZKFiafR/0OjlttHxqZQvE+idrtKifpri+ZYDoDyzueNnQdEmezCPBc uMoGdi+j9az3aAPFqMMTOVNSSV6Mim3KbczOCFmMUFq/MOzpfTnj6+bSMGX/TFo2eQHu Yn0zTPOI3BlsnvD6sFCvhprWsLrRv4JZcA68Dh/JntFXoJWgP/vHnqVqdBJAWFPW+3kW qGFpo+6PnEwQG1H3iuv1UJRMV8xkSjY2w7+UkNdAQ07bTQzfnakq4hSiAg3dfufG+p3S kpeiz9ZSR++rkTcH/76UOOklW8z5ci6MeFwzOUJ+zEtMaAp3xk7+inIm3GGlp/PjnlJO UBaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=CsF+keW6sHsPAptWXaR/h0XEEkW5wCjCJetbwA/nz00=; b=r9RRFwJ1GSASb7l4L6/o7x+QV6pbtSdLUCtKLjYnlI1OqCxWkBl5vhrP4mYgWa4tfr qal9cQwm+nWIyHylf9iUV2ca+hKJblE9vSw6+8UQEFUIFKpuoxemeRbLoOaIIiuTvwvR +MzWK8uLdacnSk5YfG4iGB6RmpsR4Cl7gPavcPOtVYAkZh4/j1uppg8cYn7I1PQReuHY BaGkw1pI10PtBWyaL/abW4npnYXHWUa5FExTh3e3AF718SMuSB1xU+0xK8iXh6hirg7A Lb9ecCnDRRAbLL3sVNfjrxwrkkzuP6UhQhvmQnFoCUuq3sgkT7qvpASAF4io3+lZ7HLf 9xVA== X-Gm-Message-State: AOAM532qwVpwgg5E3OnEVqBPd2CmBPJVpILsnihotFtyua+I1yFZIiCg 6HzMjxCmGB/V+mkmtfuBBycqg37pL9rGtOouLE4= X-Google-Smtp-Source: ABdhPJyl4QXmchKCDZhGB0HZhUkGwAch/La8+Aa6YtRS2ap1wu4mvH09k6O8PKDoqKPaSeLV1/9B09HXv2IvkO1/76Y= X-Received: by 2002:a05:600c:48b:b0:394:2ee9:5847 with SMTP id d11-20020a05600c048b00b003942ee95847mr1537171wme.117.1652212451279; Tue, 10 May 2022 12:54:11 -0700 (PDT) MIME-Version: 1.0 References: <87lev9fmia.fsf@gnus.org> In-Reply-To: <87lev9fmia.fsf@gnus.org> From: yary Date: Tue, 10 May 2022 15:54:00 -0400 Message-ID: Content-Type: text/plain; charset="UTF-8" X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) I was working on this about 5 years ago, before 24.1, and the use case I had for this doesn't apply to my current situation. So it might already work as I wanted it, and my wants have changed! OK to close this. -y On Tue, May 10, 2022 at 11:14 AM Lars Ingebrigtsen wrote: > > yary writes: > > > There are occasional needs to preserve buffer-local variables across > > major-mode changes. In the specific case of directory-local variables, > > an automated solution looks to be feasible, see "bug#15577: 24.3; > > dir-local variables not applied when switching major-mode" > > > > File-local variables on the other hand are not as easy to categorize as > > to their intent- for a particular mode, vs the file contents in general. > > > > I propose adding `permanent' as another special "variable name" (along > > the lines of `mode', `eval', `coding', and `unibyte') to let people > > mark the file variables they want to remain between mode changes. For > > example: > > > > ; mode: Lisp > > ; fill-column: 75 > > ; comment-column: 50 > > ; permanent: fill-column tab-width > > > > would set & keep fill-column at 75 between mode changes, and would > > preserve between major-mode switches any changes to tab-width. > > (I'm going through old bug reports that unfortunately weren't resolved > at the time.) > > With the following: > > ;; Local variables: > ;; foo-var: t > ;; end: > > foo-var is set whenever I change the major mode. Has the behaviour > changed here since Emacs 24.1? (The earliest Emacs I have is Emacs > 25.1.) > > -- > (domestic pets only, the antidote for overdose, milk.) > bloggy blog: http://lars.ingebrigtsen.no From unknown Sun Jun 22 00:48:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#15658: 24.1; (wishlist) Easy way to make a file-local variable also permanent-local Resent-From: Phil Sainty Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 11 May 2022 04:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15658 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo To: Lars Ingebrigtsen Cc: yary , 15658@debbugs.gnu.org Received: via spool by 15658-submit@debbugs.gnu.org id=B15658.16522419452401 (code B ref 15658); Wed, 11 May 2022 04:06:02 +0000 Received: (at 15658) by debbugs.gnu.org; 11 May 2022 04:05:45 +0000 Received: from localhost ([127.0.0.1]:35551 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nodbd-0000cf-Gr for submit@debbugs.gnu.org; Wed, 11 May 2022 00:05:45 -0400 Received: from smtp-2.orcon.net.nz ([60.234.4.43]:59547) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nodbb-0000cW-3K for 15658@debbugs.gnu.org; Wed, 11 May 2022 00:05:43 -0400 Received: from [10.253.37.70] (port=12861 helo=webmail.orcon.net.nz) by smtp-2.orcon.net.nz with esmtpa (Exim 4.90_1) (envelope-from ) id 1nodbW-00083X-Cu; Wed, 11 May 2022 16:05:38 +1200 Received: from ip-116-251-140-135.kinect.net.nz ([116.251.140.135]) via [10.253.37.253] by webmail.orcon.net.nz with HTTP (HTTP/1.1 POST); Wed, 11 May 2022 16:05:38 +1200 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 11 May 2022 16:05:38 +1200 From: Phil Sainty In-Reply-To: <87lev9fmia.fsf@gnus.org> References: <87lev9fmia.fsf@gnus.org> Message-ID: <3727265333672ea38dd399f24d5db710@webmail.orcon.net.nz> X-Sender: psainty@orcon.net.nz User-Agent: Orcon Webmail X-GeoIP: -- X-Spam_score: -2.9 X-Spam_score_int: -28 X-Spam_bar: -- X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On 2022-05-11 03:14, Lars Ingebrigtsen wrote: > foo-var is set whenever I change the major mode. Has the behaviour > changed here since Emacs 24.1? (The earliest Emacs I have is Emacs > 25.1.) This changed in `normal-mode' in 26.1 for bug #23460, so I'd expect testing to have been different in 25.1. The relevant NEWS entry is: ** File local and directory local variables are now initialized each time the major mode is set, not just when the file is first visited. These local variables will thus not vanish on setting a major mode. From unknown Sun Jun 22 00:48:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#15658: 24.1; (wishlist) Easy way to make a file-local variable also permanent-local Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 11 May 2022 11:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15658 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo To: yary Cc: 15658@debbugs.gnu.org Received: via spool by 15658-submit@debbugs.gnu.org id=B15658.165226968319352 (code B ref 15658); Wed, 11 May 2022 11:49:01 +0000 Received: (at 15658) by debbugs.gnu.org; 11 May 2022 11:48:03 +0000 Received: from localhost ([127.0.0.1]:36286 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nokp1-000522-H8 for submit@debbugs.gnu.org; Wed, 11 May 2022 07:48:03 -0400 Received: from quimby.gnus.org ([95.216.78.240]:40104) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nokp0-00050v-1c for 15658@debbugs.gnu.org; Wed, 11 May 2022 07:48:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=cblrX7QWoDIs5QZC+mEiGsJDNPzl7sifya9f+qY1s4Y=; b=FFYea1fdCO1F+0IRiAmWs0fXhH 9aN/4eE5IN3iMYawWRX0n/1iHKnscXnK2j6kUlxvbbaSRTjDueu31rkUtqGdej4HSNGqvU09y9qOB J3teJsmQxJ8QneSMAffGTmiSnB2Kp9lyqAcT/Zx7QJji2sT68yMsb3wqqsW36lrfLhfc=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nokor-0007gq-WC; Wed, 11 May 2022 13:47:56 +0200 From: Lars Ingebrigtsen References: <87lev9fmia.fsf@gnus.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAALVBMVEUBAQIVGCUlIy9W UGEtM0tMOEOblqjbubLk09drcZOegX/99/mdaV94hav///+wQeS2AAAAAWJLR0QOb70wTwAAAAd0 SU1FB+YFCwseHjEztxMAAAGDSURBVDjL5ZK/T8JAFMfvqovbvaYxjhSJiU7qlYgjbTFxkxDq4nyA u9Ag+13S0V+piYMDcWGGJre4uBhnEgf+F1t+lpYYBzbfeJ/7vve+d1+E1l0YdAKgQ1jLQDFK5d1j W6O5XALoiGCAtOK3KZgAAbwC5DJ6RlXJ2n39YaeiZiJl1WTbMtFZlWZSYJOCWnFcfpQiz6peaQkv eE2cKw9ZuPSklMHhMrCyAAUZVX95BUsDqI+BvFkCWw1aup0A/h4HO5xVvQkYtOPNHLd5MDmXQesj BvYEd+agF9usIMSJOwW8012AuhC1qUK6na+LmELywdigJwXvVefzt5nLB9G+/ZoctNpXc8k+fQwf KlKI0EnrcwZww3gS3tQI7y46WaeM1WUIguu8HnOxcW86+TfmBc1y4md1EkXNKqa+CQjBCqUWtU2I +pNphLENSFX9sEbfPtUJUmfZzobX4NwfDRljdybB86iGeqxY/suQDRt5gyRypEW9fCNnogQAzbbD 4UDQf6gfbvaVdAPpCWcAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjItMDUtMTFUMTE6MzA6MzArMDA6 MDBifCELAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIyLTA1LTExVDExOjMwOjMwKzAwOjAwEyGZtwAA AABJRU5ErkJggg== X-Now-Playing: Joni Mitchell's _Night Ride Home_: "Slouching Towards Bethlehem" Date: Wed, 11 May 2022 13:47:52 +0200 In-Reply-To: (yary's message of "Tue, 10 May 2022 15:54:00 -0400") Message-ID: <8735hgcmtz.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: yary writes: > I was working on this about 5 years ago, before 24.1, and the use case > I had for this doesn't apply to my current situation. So it might > already work as I wanted it, and my wants have changed! O [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) yary writes: > I was working on this about 5 years ago, before 24.1, and the use case > I had for this doesn't apply to my current situation. So it might > already work as I wanted it, and my wants have changed! OK to close > this. Phil Sainty writes: > This changed in `normal-mode' in 26.1 for bug #23460, so I'd expect > testing to have been different in 25.1. > > The relevant NEWS entry is: > > ** File local and directory local variables are now initialized each > time the major mode is set, not just when the file is first visited. > These local variables will thus not vanish on setting a major mode. Thanks; there doesn't seem to be anything more to do here, then, and I'm closing this bug report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Wed May 11 07:48:17 2022 Received: (at control) by debbugs.gnu.org; 11 May 2022 11:48:17 +0000 Received: from localhost ([127.0.0.1]:36289 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nokpE-000534-PX for submit@debbugs.gnu.org; Wed, 11 May 2022 07:48:16 -0400 Received: from quimby.gnus.org ([95.216.78.240]:40120) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nokpC-00052b-IR for control@debbugs.gnu.org; Wed, 11 May 2022 07:48:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=H8CdoDK97KlqhsVtXIQA6BUbjbhr0Ar1yoYb8jNR76Q=; b=Cc3QVx+JwH77EjIhjoWv75nCf+ VbSSZfzAwGX+EHXqUZCfT2rS0IP6HidQZlg+hVQYv6MFtw0gANXU91vDJA7qkJRhgp+eCoE4gXVYo QhsqvAZwRhXVulskgxYZzl85NBSFEAA5/eZHKgdM5ZkXKJgud+nukDfevjWnOU4/JtwE=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nokp5-0007jI-5Q for control@debbugs.gnu.org; Wed, 11 May 2022 13:48:09 +0200 Date: Wed, 11 May 2022 13:48:06 +0200 Message-Id: <871qx0cmtl.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #15658 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 15658 26.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 15658 26.1 quit