From unknown Sat Jun 21 10:42:21 2025 X-Loop: don@donarmstrong.com Subject: bug#1013: 23.0.60; permanent-local not honored for word-wrap Reply-To: "Lennart Borgman (gmail)" , 1013@debbugs.gnu.org Resent-From: "Lennart Borgman (gmail)" Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 21 Sep 2008 20:40:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1013 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.122202912321994 (code B ref -1); Sun, 21 Sep 2008 20:40:04 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-7.4 required=4.0 tests=AWL,BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 21 Sep 2008 20:32:03 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8LKW0V0021988 for ; Sun, 21 Sep 2008 13:32:01 -0700 Received: from mx10.gnu.org ([199.232.76.166]:53041) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KhVZ8-00009S-FW for emacs-pretest-bug@gnu.org; Sun, 21 Sep 2008 16:29:58 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KhVb2-0004St-8i for emacs-pretest-bug@gnu.org; Sun, 21 Sep 2008 16:31:59 -0400 Received: from ch-smtp01.sth.basefarm.net ([80.76.149.212]:56955) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KhVb1-0004SS-NP for emacs-pretest-bug@gnu.org; Sun, 21 Sep 2008 16:31:56 -0400 Received: from c83-254-151-87.bredband.comhem.se ([83.254.151.87]:65383 helo=[127.0.0.1]) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1KhVaz-0002Hy-61 for emacs-pretest-bug@gnu.org; Sun, 21 Sep 2008 22:31:54 +0200 Message-ID: <48D6AF35.7070208@gmail.com> Date: Sun, 21 Sep 2008 22:31:49 +0200 From: "Lennart Borgman (gmail)" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: emacs-pretest-bug@gnu.org X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 080920-0, 2008-09-20), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.151.87 X-Scan-Result: No virus found in message 1KhVaz-0002Hy-61. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1KhVaz-0002Hy-61 d015772b5cc168d79e0f7b57f9668120 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6? (barebone, rare!) In a new buffer evaluate this: (put 'word-wrap 'permanent-local t) (setq word-wrap t) (kill-all-local-variables) and then look at word-wrap. It is nil, but it should be t. In GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600) of 2008-09-18 Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (3.4) --no-opt --cflags -Ic:/g/include -fno-crossjumping' From unknown Sat Jun 21 10:42:21 2025 X-Loop: don@donarmstrong.com Subject: bug#1013: 23.0.60; permanent-local not honored for word-wrap Reply-To: "Lennart Borgman (gmail)" , 1013@debbugs.gnu.org Resent-From: "Lennart Borgman (gmail)" Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 21 Sep 2008 22:35:05 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1013 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 1013-submit@emacsbugs.donarmstrong.com id=B1013.122203593831383 (code B ref 1013); Sun, 21 Sep 2008 22:35:05 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.2 required=4.0 tests=AWL,BAYES_00,FOURLA, FVGT_m_MULTI_ODD,HAS_BUG_NUMBER,IMPRONONCABLE_1,MIXEDBDN,MURPHY_WRONG_WORD1, MURPHY_WRONG_WORD2,RCVD_IN_DNSWL_LOW autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1013) by emacsbugs.donarmstrong.com; 21 Sep 2008 22:25:38 +0000 Received: from ch-smtp02.sth.basefarm.net (ch-smtp02.sth.basefarm.net [80.76.149.213]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8LMPYqx031274 for <1013@emacsbugs.donarmstrong.com>; Sun, 21 Sep 2008 15:25:35 -0700 Received: from c83-254-151-87.bredband.comhem.se ([83.254.151.87]:61833 helo=[127.0.0.1]) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1KhXMy-0001o8-8f for 1013@emacsbugs.donarmstrong.com; Mon, 22 Sep 2008 00:25:33 +0200 Message-ID: <48D6C9D9.3070302@gmail.com> Date: Mon, 22 Sep 2008 00:25:29 +0200 From: "Lennart Borgman (gmail)" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: 1013@debbugs.gnu.org References: <48D6AF35.7070208@gmail.com> In-Reply-To: <48D6AF35.7070208@gmail.com> X-Enigmail-Version: 0.95.7 Content-Type: multipart/mixed; boundary="------------020502060105080401050503" X-Antivirus: avast! (VPS 080921-0, 2008-09-21), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.151.87 X-Scan-Result: No virus found in message 1KhXMy-0001o8-8f. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1KhXMy-0001o8-8f d362eabd38ff13c7f7fe071131e678c6 This is a multi-part message in MIME format. --------------020502060105080401050503 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit I played a bit with making a unit test for this, see the attached file. This requires the ert2.el that comes with nXhtml and should be placed in the same subdir as nxhtmltest-suites.el. --------------020502060105080401050503 Content-Type: text/plain; name="emacstest-suites.el" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="emacstest-suites.el" ;;; emacstest-suites.el --- Some unit tests for Emacs ;; ;; Author: Lennart Borgman (lennart O borgman A gmail O com) ;; Created: 2008-09-21T22:34:11+0200 Sun ;; Version: ;; Last-Updated: ;; URL: ;; Keywords: ;; Compatibility: ;; ;; Features that might be required by this library: ;; ;; None ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; ;;; Commentary: ;; ;; Unit tests for some Emacs bug reports. ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; ;;; Change log: ;; ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; ;; This program is free software; you can redistribute it and/or ;; modify it under the terms of the GNU General Public License as ;; published by the Free Software Foundation; either version 2, or ;; (at your option) any later version. ;; ;; This program is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ;; General Public License for more details. ;; ;; You should have received a copy of the GNU General Public License ;; along with this program; see the file COPYING. If not, write to ;; the Free Software Foundation, Inc., 51 Franklin Street, Fifth ;; Floor, Boston, MA 02110-1301, USA. ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; ;;; Code: (eval-when-compile (require 'cl)) (setq debug-on-error t) (defvar emacstest-bin (file-name-directory (if load-file-name load-file-name buffer-file-name))) (pushnew emacstest-bin load-path) (require 'ert2) (defvar emacstest-files-root (let* ((this-dir emacstest-bin) (root (expand-file-name "inemacs/" this-dir))) (unless (file-accessible-directory-p root) (error (if (file-exists-p root) "Can't read files in test directory %s" "Can't find test directory %s") root)) root)) (let ((distr-in "c:/EmacsW32/nxhtml/tests/inemacs/")) (when (file-directory-p distr-in) (setq nxhtmltest-files-root distr-in))) (ert-deftest emacs-bug1013 () "Emacs bug 1013. See URL `http://debbugs.gnu.org/cgi/bugreport.cgi?bug=1013'." (with-temp-buffer (insert " (defvar word-wrap2 nil) (make-variable-buffer-local 'word-wrap2) (defcustom word-wrap3 nil \"doc 3\" :type 'boolean) (make-variable-buffer-local 'word-wrap3) (put 'word-wrap 'permanent-local t) (put 'word-wrap2 'permanent-local t) (put 'word-wrap3 'permanent-local t) (setq word-wrap t) (setq word-wrap2 t) (setq word-wrap3 t) (kill-all-local-variables)") (eval-buffer) (ert-should (eq word-wrap3 t)) (ert-should (eq word-wrap2 t)) (ert-should (eq word-wrap t)) )) (provide 'emacstest-suites) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; emacstest-suites.el ends here --------------020502060105080401050503-- From unknown Sat Jun 21 10:42:21 2025 X-Loop: don@donarmstrong.com Subject: bug#1013: 23.0.60; permanent-local not honored for word-wrap Reply-To: "Lennart Borgman (gmail)" , 1013@debbugs.gnu.org Resent-From: "Lennart Borgman (gmail)" Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 21 Sep 2008 23:20:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1013 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 1013-submit@emacsbugs.donarmstrong.com id=B1013.122203881215697 (code B ref 1013); Sun, 21 Sep 2008 23:20:04 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.2 required=4.0 tests=AWL,BAYES_00,FOURLA, FVGT_m_MULTI_ODD,HAS_BUG_NUMBER,IMPRONONCABLE_1,MIXEDBDN,MURPHY_WRONG_WORD1, MURPHY_WRONG_WORD2,RCVD_IN_DNSWL_LOW autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1013) by emacsbugs.donarmstrong.com; 21 Sep 2008 23:13:32 +0000 Received: from ch-smtp01.sth.basefarm.net (ch-smtp01.sth.basefarm.net [80.76.149.212]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8LNDSd2015691 for <1013@emacsbugs.donarmstrong.com>; Sun, 21 Sep 2008 16:13:29 -0700 Received: from c83-254-151-87.bredband.comhem.se ([83.254.151.87]:63447 helo=[127.0.0.1]) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1KhY7I-0004RN-60; Mon, 22 Sep 2008 01:13:27 +0200 Message-ID: <48D6D50D.2010507@gmail.com> Date: Mon, 22 Sep 2008 01:13:17 +0200 From: "Lennart Borgman (gmail)" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: 1013@debbugs.gnu.org, Christian Ohler CC: Phil Hagelberg References: <48D6AF35.7070208@gmail.com> <48D6C9D9.3070302@gmail.com> In-Reply-To: <48D6C9D9.3070302@gmail.com> X-Enigmail-Version: 0.95.7 Content-Type: multipart/mixed; boundary="------------020300030404040105000806" X-Antivirus: avast! (VPS 080921-0, 2008-09-21), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.151.87 X-Scan-Result: No virus found in message 1KhY7I-0004RN-60. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1KhY7I-0004RN-60 8aaebeb3e42f6d5d69185b1551ce4921 This is a multi-part message in MIME format. --------------020300030404040105000806 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Lennart Borgman (gmail) wrote: > I played a bit with making a unit test for this, see the attached file. > This requires the ert2.el that comes with nXhtml and should be placed in > the same subdir as nxhtmltest-suites.el. Here is a much better way to structure the test. To test it: - Put emacstest-suites.el in nxhtml/test/ - Put bug1013.el in nxhtml/test/inemacs/ - M-x emacstest-run If we include ert.el + ert2.el in Emacs we could write unit tests like this for bug reports. Christian, any thoughts? --------------020300030404040105000806 Content-Type: text/plain; name="emacstest-suites.el" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="emacstest-suites.el" ;;; emacstest-suites.el --- Some unit tests for Emacs ;; ;; Author: Lennart Borgman (lennart O borgman A gmail O com) ;; Created: 2008-09-21T22:34:11+0200 Sun ;; Version: ;; Last-Updated: 2008-09-22T00:36:11+0200 Sun ;; URL: ;; Keywords: ;; Compatibility: ;; ;; Features that might be required by this library: ;; ;; `button', `cl', `debug', `ert', `ert2', `ewoc', `find-func', ;; `help-fns', `help-mode', `view'. ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; ;;; Commentary: ;; ;; Unit tests for some Emacs bug reports. ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; ;;; Change log: ;; ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; ;; This program is free software; you can redistribute it and/or ;; modify it under the terms of the GNU General Public License as ;; published by the Free Software Foundation; either version 2, or ;; (at your option) any later version. ;; ;; This program is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ;; General Public License for more details. ;; ;; You should have received a copy of the GNU General Public License ;; along with this program; see the file COPYING. If not, write to ;; the Free Software Foundation, Inc., 51 Franklin Street, Fifth ;; Floor, Boston, MA 02110-1301, USA. ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; ;;; Code: (eval-when-compile (require 'cl)) (setq debug-on-error t) (defvar emacstest-bin (file-name-directory (if load-file-name load-file-name buffer-file-name))) (pushnew emacstest-bin load-path) (require 'ert2) (defvar emacstest-files-root (let* ((this-dir emacstest-bin) (root (expand-file-name "inemacs/" this-dir))) (unless (file-accessible-directory-p root) (error (if (file-exists-p root) "Can't read files in test directory %s" "Can't find test directory %s") root)) root)) (let ((distr-in "c:/EmacsW32/nxhtml/tests/inemacs/")) (when (file-directory-p distr-in) (setq emacstest-files-root distr-in))) (defun emacstest-run () "Run Emacs tests." (interactive) (setq message-log-max t) (setq ert-test-files-root emacstest-files-root) (let ((selector "emacs-")) (if noninteractive (ert-run-tests-batch selector) (ert-kill-temp-test-buffers) (ert-run-tests-interactively selector) (other-window 1) (ert-list-temp-test-buffers)))) (ert-deftest emacs-bug1013 () "Emacs bug 1013. See URL `http://debbugs.gnu.org/cgi/bugreport.cgi?bug=1013'." (ert-with-temp-buffer-include-file "bug1013.el" (eval-buffer))) (provide 'emacstest-suites) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; emacstest-suites.el ends here --------------020300030404040105000806 Content-Type: text/plain; name="bug1013.el" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="bug1013.el" ;; Setup (defvar word-wrap2 nil) (make-variable-buffer-local 'word-wrap2) (set-default 'word-wrap2 nil) (defcustom word-wrap3 nil "doc 3" :type 'boolean) (make-variable-buffer-local 'word-wrap3) (set-default 'word-wrap3 nil) (set-default 'word-wrap nil) (put 'word-wrap 'permanent-local t) (put 'word-wrap2 'permanent-local t) (put 'word-wrap3 'permanent-local t) (setq word-wrap t) (setq word-wrap2 t) (setq word-wrap3 t) (kill-all-local-variables) ;; Test (ert-should (eq (default-value 'word-wrap3) nil)) (ert-should (eq word-wrap3 t)) (ert-should (eq (default-value 'word-wrap2) nil)) (ert-should (eq word-wrap2 t)) (ert-should (eq (default-value 'word-wrap) nil)) (ert-should (eq word-wrap t)) --------------020300030404040105000806-- From unknown Sat Jun 21 10:42:21 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: don@donarmstrong.com From: help-debbugs@gnu.org (Emacs bug Tracking System) To: "Lennart Borgman (gmail)" Subject: bug#1013 closed by Stefan Monnier (Re: bug#1013: 23.0.60; permanent-local not honored for word-wrap) Message-ID: References: <48D6AF35.7070208@gmail.com> X-Emacs-PR-Message: they-closed 1013 X-Emacs-PR-Package: emacs Reply-To: 1013@debbugs.gnu.org Content-Type: multipart/mixed; boundary="----------=_1222054503-11772-1" This is a multi-part message in MIME format... ------------=_1222054503-11772-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is an automatic notification regarding your bug report which was filed against the emacs package: #1013: 23.0.60; permanent-local not honored for word-wrap It has been closed by Stefan Monnier . Their explanation is attached below along with your original report. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact Stefan Monnier by replying to this email. --=20 1013: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D1013 Emacs Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1222054503-11772-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit >From monnier@iro.umontreal.ca Sun Sep 21 20:27:16 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-5.1 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1013-done) by emacsbugs.donarmstrong.com; 22 Sep 2008 03:27:16 +0000 Received: from ironport2-out.teksavvy.com (ironport2-out.pppoe.ca [206.248.154.182]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8M3RCBQ009598 for <1013-done@emacsbugs.donarmstrong.com>; Sun, 21 Sep 2008 20:27:13 -0700 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhYFAHat1kjO+KDT/2dsb2JhbACBXbJ8gWaBBA X-IronPort-AV: E=Sophos;i="4.32,443,1217822400"; d="scan'208";a="27211046" Received: from 206-248-160-211.dsl.teksavvy.com (HELO ceviche.home) ([206.248.160.211]) by ironport2-out.teksavvy.com with ESMTP; 21 Sep 2008 23:27:06 -0400 Received: by ceviche.home (Postfix, from userid 20848) id 18568B40B1; Sun, 21 Sep 2008 23:26:16 -0400 (EDT) From: Stefan Monnier To: "Lennart Borgman \(gmail\)" Cc: 1013-done@debbugs.gnu.org Subject: Re: bug#1013: 23.0.60; permanent-local not honored for word-wrap Message-ID: References: <48D6AF35.7070208@gmail.com> Date: Sun, 21 Sep 2008 23:26:15 -0400 In-Reply-To: <48D6AF35.7070208@gmail.com> (Lennart Borgman's message of "Sun, 21 Sep 2008 22:31:49 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > (put 'word-wrap 'permanent-local t) > (setq word-wrap t) > (kill-all-local-variables) > and then look at word-wrap. It is nil, but it should be t. Why should it? word-wrap is automatically made local, so the `setq' is really like (set (make-local-variable 'word-wrap) t), thus not changing the global value at which is you'll be looking in the end. Stefan ------------=_1222054503-11772-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit >From lennart.borgman@gmail.com Sun Sep 21 13:32:03 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-7.4 required=4.0 tests=AWL,BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 21 Sep 2008 20:32:03 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8LKW0V0021988 for ; Sun, 21 Sep 2008 13:32:01 -0700 Received: from mx10.gnu.org ([199.232.76.166]:53041) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KhVZ8-00009S-FW for emacs-pretest-bug@gnu.org; Sun, 21 Sep 2008 16:29:58 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KhVb2-0004St-8i for emacs-pretest-bug@gnu.org; Sun, 21 Sep 2008 16:31:59 -0400 Received: from ch-smtp01.sth.basefarm.net ([80.76.149.212]:56955) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KhVb1-0004SS-NP for emacs-pretest-bug@gnu.org; Sun, 21 Sep 2008 16:31:56 -0400 Received: from c83-254-151-87.bredband.comhem.se ([83.254.151.87]:65383 helo=[127.0.0.1]) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1KhVaz-0002Hy-61 for emacs-pretest-bug@gnu.org; Sun, 21 Sep 2008 22:31:54 +0200 Message-ID: <48D6AF35.7070208@gmail.com> Date: Sun, 21 Sep 2008 22:31:49 +0200 From: "Lennart Borgman (gmail)" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: emacs-pretest-bug@gnu.org Subject: 23.0.60; permanent-local not honored for word-wrap X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 080920-0, 2008-09-20), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.151.87 X-Scan-Result: No virus found in message 1KhVaz-0002Hy-61. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1KhVaz-0002Hy-61 d015772b5cc168d79e0f7b57f9668120 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6? (barebone, rare!) In a new buffer evaluate this: (put 'word-wrap 'permanent-local t) (setq word-wrap t) (kill-all-local-variables) and then look at word-wrap. It is nil, but it should be t. In GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600) of 2008-09-18 Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (3.4) --no-opt --cflags -Ic:/g/include -fno-crossjumping' ------------=_1222054503-11772-1-- From unknown Sat Jun 21 10:42:21 2025 X-Loop: don@donarmstrong.com Subject: bug#1013: 23.0.60; permanent-local not honored for word-wrap Reply-To: "Lennart Borgman (gmail)" , 1013@debbugs.gnu.org Resent-From: "Lennart Borgman (gmail)" Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 23 Sep 2008 04:30:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1013 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 1013-submit@emacsbugs.donarmstrong.com id=B1013.12221438209612 (code B ref 1013); Tue, 23 Sep 2008 04:30:03 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-7.4 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, RCVD_IN_DNSWL_LOW autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1013) by emacsbugs.donarmstrong.com; 23 Sep 2008 04:23:40 +0000 Received: from ch-smtp02.sth.basefarm.net (ch-smtp02.sth.basefarm.net [80.76.149.213]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8N4NZ8F009601 for <1013@emacsbugs.donarmstrong.com>; Mon, 22 Sep 2008 21:23:38 -0700 Received: from c83-254-151-87.bredband.comhem.se ([83.254.151.87]:64567 helo=[127.0.0.1]) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1Khpsg-0002jR-9P; Mon, 22 Sep 2008 20:11:31 +0200 Message-ID: <48D7DFD1.3040904@gmail.com> Date: Mon, 22 Sep 2008 20:11:29 +0200 From: "Lennart Borgman (gmail)" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: Stefan Monnier CC: 1013@debbugs.gnu.org References: <48D6AF35.7070208@gmail.com> <48D7ADA2.4030605@gmail.com> In-Reply-To: X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 080922-0, 2008-09-22), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.151.87 X-Scan-Result: No virus found in message 1Khpsg-0002jR-9P. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1Khpsg-0002jR-9P 17804ea05095b6110819f046c05be3e3 Stefan Monnier wrote: > reopen 1013 > thanks > >> I just tested with truncate-lines. Same bug as with word-wrap. > >> Both `word-wrap' and `truncate-lines' are defined using >> DEFVAR_PER_BUFFER. My guess is that there is a bug in DEFVAR_PER_BUFFER >> or something related to that. > > Duh, sorry I misread kill-local-variable for kill-all-local-variables > (i.e. I didn't read what you wrote, but what I thought you'd written). > > Yes, it's a problem with the variables defined by DEFVAR_PER_BUFFER. > Their semantics is subtly different from the ones declared with > make-variable-buffer-local. Thanks. Are there any principal reason that 'permanent-local is not honored? BTW: Should not variables like `word-wrap' be permanent-local by default? It looks to me like they are more "per buffer/file" than "per major mode". From unknown Sat Jun 21 10:42:21 2025 X-Loop: don@donarmstrong.com Subject: bug#1013: 23.0.60; permanent-local not honored for word-wrap Reply-To: Stefan Monnier , 1013@debbugs.gnu.org Resent-From: Stefan Monnier Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 23 Sep 2008 04:30:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1013 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 1013-submit@emacsbugs.donarmstrong.com id=B1013.12221438809625 (code B ref 1013); Tue, 23 Sep 2008 04:30:04 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-7.3 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, VALID_BTS_CONTROL autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1013) by emacsbugs.donarmstrong.com; 23 Sep 2008 04:24:40 +0000 Received: from harpie.CC.UMontreal.CA (harpie.cc.umontreal.ca [132.204.2.134]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8N4OUvR009617; Mon, 22 Sep 2008 21:24:32 -0700 Received: from alfajor.home (vpn-132-204-232-65.acd.umontreal.ca [132.204.232.65]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id m8MHcZFH019997; Mon, 22 Sep 2008 13:38:35 -0400 Received: by alfajor.home (Postfix, from userid 20848) id 781951C133; Mon, 22 Sep 2008 13:38:04 -0400 (EDT) From: Stefan Monnier To: "Lennart Borgman \(gmail\)" Cc: 1013@debbugs.gnu.org, control@debbugs.gnu.org Message-ID: References: <48D6AF35.7070208@gmail.com> <48D7ADA2.4030605@gmail.com> Date: Mon, 22 Sep 2008 13:38:04 -0400 In-Reply-To: <48D7ADA2.4030605@gmail.com> (Lennart Borgman's message of "Mon, 22 Sep 2008 16:37:22 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3109=0 reopen 1013 thanks > I just tested with truncate-lines. Same bug as with word-wrap. > Both `word-wrap' and `truncate-lines' are defined using > DEFVAR_PER_BUFFER. My guess is that there is a bug in DEFVAR_PER_BUFFER > or something related to that. Duh, sorry I misread kill-local-variable for kill-all-local-variables (i.e. I didn't read what you wrote, but what I thought you'd written). Yes, it's a problem with the variables defined by DEFVAR_PER_BUFFER. Their semantics is subtly different from the ones declared with make-variable-buffer-local. Stefan From unknown Sat Jun 21 10:42:21 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: don@donarmstrong.com From: help-debbugs@gnu.org (Emacs bug Tracking System) To: "Lennart Borgman (gmail)" Subject: bug#1013 closed by "Lennart Borgman (gmail)" (Re: bug#1013: 23.0.60; permanent-local not honored for word-wrap) Message-ID: References: <48D7ADA2.4030605@gmail.com> <48D6AF35.7070208@gmail.com> X-Emacs-PR-Message: they-closed 1013 X-Emacs-PR-Package: emacs Reply-To: 1013@debbugs.gnu.org Content-Type: multipart/mixed; boundary="----------=_1222144209-11228-1" This is a multi-part message in MIME format... ------------=_1222144209-11228-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is an automatic notification regarding your bug report which was filed against the emacs package: #1013: 23.0.60; permanent-local not honored for word-wrap It has been closed by "Lennart Borgman (gmail)" . Their explanation is attached below along with your original report. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact "Lennart Borgman (gmai= l)" by replying to this email. --=20 1013: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D1013 Emacs Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1222144209-11228-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit >From lennart.borgman@gmail.com Mon Sep 22 21:23:38 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-7.4 required=4.0 tests=AWL,BAYES_00,FVGT_m_MULTI_ODD, HAS_BUG_NUMBER,RCVD_IN_DNSWL_LOW autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1013-done) by emacsbugs.donarmstrong.com; 23 Sep 2008 04:23:38 +0000 Received: from ch-smtp02.sth.basefarm.net (ch-smtp02.sth.basefarm.net [80.76.149.213]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8N4NZ8E009601 for <1013-done@emacsbugs.donarmstrong.com>; Mon, 22 Sep 2008 21:23:36 -0700 Received: from c83-254-151-87.bredband.comhem.se ([83.254.151.87]:61727 helo=[127.0.0.1]) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1KhmXx-0001kb-8Q; Mon, 22 Sep 2008 16:37:54 +0200 Message-ID: <48D7ADA2.4030605@gmail.com> Date: Mon, 22 Sep 2008 16:37:22 +0200 From: "Lennart Borgman (gmail)" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: Stefan Monnier CC: 1013-done@debbugs.gnu.org Subject: Re: bug#1013: 23.0.60; permanent-local not honored for word-wrap References: <48D6AF35.7070208@gmail.com> In-Reply-To: X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 080921-0, 2008-09-21), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.151.87 X-Scan-Result: No virus found in message 1KhmXx-0001kb-8Q. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1KhmXx-0001kb-8Q b3801c59a3159b63e360d824b702f7cd Stefan Monnier wrote: >> (put 'word-wrap 'permanent-local t) >> (setq word-wrap t) >> (kill-all-local-variables) > >> and then look at word-wrap. It is nil, but it should be t. > > Why should it? word-wrap is automatically made local, so the `setq' is > really like (set (make-local-variable 'word-wrap) t), thus not changing > the global value at which is you'll be looking in the end. I just tested with truncate-lines. Same bug as with word-wrap. Both `word-wrap' and `truncate-lines' are defined using DEFVAR_PER_BUFFER. My guess is that there is a bug in DEFVAR_PER_BUFFER or something related to that. Stefan, could it be that you forgot about `permanent-local' when you implemented this? ------------=_1222144209-11228-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit >From lennart.borgman@gmail.com Sun Sep 21 13:32:03 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-7.4 required=4.0 tests=AWL,BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 21 Sep 2008 20:32:03 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8LKW0V0021988 for ; Sun, 21 Sep 2008 13:32:01 -0700 Received: from mx10.gnu.org ([199.232.76.166]:53041) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KhVZ8-00009S-FW for emacs-pretest-bug@gnu.org; Sun, 21 Sep 2008 16:29:58 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KhVb2-0004St-8i for emacs-pretest-bug@gnu.org; Sun, 21 Sep 2008 16:31:59 -0400 Received: from ch-smtp01.sth.basefarm.net ([80.76.149.212]:56955) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KhVb1-0004SS-NP for emacs-pretest-bug@gnu.org; Sun, 21 Sep 2008 16:31:56 -0400 Received: from c83-254-151-87.bredband.comhem.se ([83.254.151.87]:65383 helo=[127.0.0.1]) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1KhVaz-0002Hy-61 for emacs-pretest-bug@gnu.org; Sun, 21 Sep 2008 22:31:54 +0200 Message-ID: <48D6AF35.7070208@gmail.com> Date: Sun, 21 Sep 2008 22:31:49 +0200 From: "Lennart Borgman (gmail)" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: emacs-pretest-bug@gnu.org Subject: 23.0.60; permanent-local not honored for word-wrap X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 080920-0, 2008-09-20), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.151.87 X-Scan-Result: No virus found in message 1KhVaz-0002Hy-61. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1KhVaz-0002Hy-61 d015772b5cc168d79e0f7b57f9668120 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6? (barebone, rare!) In a new buffer evaluate this: (put 'word-wrap 'permanent-local t) (setq word-wrap t) (kill-all-local-variables) and then look at word-wrap. It is nil, but it should be t. In GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600) of 2008-09-18 Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (3.4) --no-opt --cflags -Ic:/g/include -fno-crossjumping' ------------=_1222144209-11228-1-- From unknown Sat Jun 21 10:42:21 2025 X-Loop: don@donarmstrong.com Subject: bug#1013: marked as done (23.0.60; permanent-local not honored for word-wrap) Reply-To: martin rudalics , 1013@debbugs.gnu.org Resent-From: martin rudalics Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 23 Sep 2008 05:45:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1013 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 1013-submit@emacsbugs.donarmstrong.com id=B1013.122214817829580 (code B ref 1013); Tue, 23 Sep 2008 05:45:03 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.6 required=4.0 tests=AWL,BAYES_00,FOURLA, HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1013) by emacsbugs.donarmstrong.com; 23 Sep 2008 05:36:18 +0000 Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id m8N5aEsQ029573 for <1013@emacsbugs.donarmstrong.com>; Mon, 22 Sep 2008 22:36:15 -0700 Received: (qmail invoked by alias); 22 Sep 2008 16:02:07 -0000 Received: from 62-47-50-128.adsl.highway.telekom.at (EHLO [62.47.50.128]) [62.47.50.128] by mail.gmx.net (mp024) with SMTP; 22 Sep 2008 18:02:07 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1+seMwAqjqslDtRFPQtTpbyG1WdYlT/TUMCuEh5e6 GposMicOwk/kep Message-ID: <48D7C0DA.1070901@gmx.at> Date: Mon, 22 Sep 2008 17:59:22 +0200 From: martin rudalics User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: Stefan Monnier CC: 1013@debbugs.gnu.org, "Lennart Borgman (gmail)" References: <48D6AF35.7070208@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.73 >> (put 'word-wrap 'permanent-local t) >> (setq word-wrap t) >> (kill-all-local-variables) > >> and then look at word-wrap. It is nil, but it should be t. > > Why should it? word-wrap is automatically made local, so the `setq' is > really like (set (make-local-variable 'word-wrap) t), thus not changing > the global value at which is you'll be looking in the end. Presumably Lennart wants to preserve the previous value when he changes the major mode. IIUC it is reset because buffer_permanent_local_flags is 0 for word_wrap. But I'm not sure whether that's TRT and I didn't find any documentation for this behavior either. martin