From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 09 20:13:01 2014 Received: (at submit) by debbugs.gnu.org; 10 Nov 2014 01:13:01 +0000 Received: from localhost ([127.0.0.1]:55290 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XndXQ-0007Qm-VS for submit@debbugs.gnu.org; Sun, 09 Nov 2014 20:13:01 -0500 Received: from eggs.gnu.org ([208.118.235.92]:41112) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XndXP-0007Qe-8C for submit@debbugs.gnu.org; Sun, 09 Nov 2014 20:12:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XndXJ-0002uf-Ve for submit@debbugs.gnu.org; Sun, 09 Nov 2014 20:12:59 -0500 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]:45385) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XndXJ-0002ub-ST for submit@debbugs.gnu.org; Sun, 09 Nov 2014 20:12:53 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42824) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XndXE-0003k3-Qc for bug-gnu-emacs@gnu.org; Sun, 09 Nov 2014 20:12:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XndX9-0002rI-Nx for bug-gnu-emacs@gnu.org; Sun, 09 Nov 2014 20:12:48 -0500 Received: from mail-wg0-x22c.google.com ([2a00:1450:400c:c00::22c]:59804) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XndX9-0002rE-DM for bug-gnu-emacs@gnu.org; Sun, 09 Nov 2014 20:12:43 -0500 Received: by mail-wg0-f44.google.com with SMTP id x12so7663139wgg.31 for ; Sun, 09 Nov 2014 17:12:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version:content-type; bh=ngyQ48plaGfA+V4oUUolU44MiJyp92Oe7R0zKuqfbcY=; b=YN/7ZpQzXGwrm5MZB3lW6qUS0q9gm87CXEm+uJS3IjhG6gsubmz4Gu8ngK5T0fS+JJ 6p8ToLWHafIjB5GGbu/crqkkqESHqDkt47P/fGZ6ELG7igrKzcOx/IiS9jeNmJYnGF4i JKikrU1/OKrn+IJEcUf5HnNT3ZB5eaz+rV9WtfEzSLFlC370q3t7E7xqgtCa4zfQfETo DCrhoStBfczTjRjdZpV1RKvie+vEx6MBEkSRFt3rQlzDL2IQ3gvi/N5bOVkRR6HpUDCU qJaamX9IYVKtMs7AaBceHf4++pCAtaCuSdb9r+5MrKuQk/mC50h7TuUMvl/b3ehZ1mkb +JwQ== X-Received: by 10.180.107.136 with SMTP id hc8mr25488853wib.78.1415581962640; Sun, 09 Nov 2014 17:12:42 -0800 (PST) Received: from miki-desktop.lan (524B772B.cm-4-4b.dynamic.ziggo.nl. [82.75.119.43]) by mx.google.com with ESMTPSA id f7sm11374042wiz.13.2014.11.09.17.12.41 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 09 Nov 2014 17:12:41 -0800 (PST) From: Alain Kalker To: bug-gnu-emacs@gnu.org Subject: 24.4; copy-file-locals-to-dir-locals generates malformed expression Date: Mon, 10 Nov 2014 02:12:40 +0100 Message-ID: <87mw7zamev.fsf@miki-desktop.lan> MIME-Version: 1.0 Content-Type: text/plain 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-Debbugs-Envelope-To: submit 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 (----) Short description: M-x copy-file-locals-to-dir-locals generates ".dir-locals.el" containing a malformed expression. The syntax of the expression doesn't match the documentation, and although it appears to work well for variables with simple values, using more complex expressions often results in errors when visiting files in the directory. Steps to reproduce: * Ensure that directory "~/tmp" exists * Create test file: `C-x C-f ~/tmp/test-local-vars.c` Add local variable: `M-x add-file-local-variable tab-width 4 ` * Buffer contents now should be: ---cut here--- /* Local Variables: */ /* tab-width: 4 */ /* End: */ ---cut here--- * Save buffer: `C-x C-s` * Revert buffer as instructed: `M-x revert-buffer` * M-x copy-file-locals-to-dir-locals * Buffer ".dir-locals.el" created with contents: ---cut here--- ((c-mode (tab-width . 4))) ---cut here--- * Note that the expression doesn't conform to the syntax described in the documentation "49.2.5 Per-Directory Local Variables". * (If installed, Flycheck will report an error: Invalid function: (c-mode (tab-width . 4)) * Save directory locals file: `C-x C-s` * Switch back to test file: `C-x b test-local-vars.c ` * Edit buffer to remove local variables block * Save buffer: `C-x C-s` * Revert buffer to apply directory local variables: `M-x revert-buffer ` * Note that Emacs does not report any errors about the malformed expression. In GNU Emacs 24.4.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.14.3) of 2014-10-21 on bitzer.hoetzel.info Windowing system distributor `The X.Org Foundation', version 11.0.11601000 System Description: Arch Linux Configured using: `configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --localstatedir=/var --with-x-toolkit=gtk3 --with-xft 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4' CPPFLAGS=-D_FORTIFY_SOURCE=2 LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro' Important settings: value of $LANG: en_US.utf8 locale-coding-system: utf-8-unix Major mode: Fundamental Minor modes in effect: delete-selection-mode: t yas-global-mode: t show-paren-mode: t global-flycheck-mode: t cua-mode: t global-auto-complete-mode: t tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-x r e p o r t - e m a Recent messages: [yas] Prepared just-in-time loading for ~/.emacs.d/snippets [yas] Reloaded everything (snippets will load just-in-time).... [yas] Loading for `lisp-interaction-mode', just-in-time: (lambda nil (yas--load-directory-1 (quote /home/miki/.emacs.d/elpa/yasnippet-20141102.1554/snippets/lisp-interaction-mode) (quote lisp-interaction-mode)))! [yas] Loading compiled snippets from /home/miki/.emacs.d/elpa/yasnippet-20141102.1554/snippets/lisp-interaction-mode [yas] Loading for `emacs-lisp-mode', just-in-time: (lambda nil (yas--load-directory-1 (quote /home/miki/.emacs.d/elpa/yasnippet-20141102.1554/snippets/emacs-lisp-mode) (quote emacs-lisp-mode)))! [yas] Loading compiled snippets from /home/miki/.emacs.d/elpa/yasnippet-20141102.1554/snippets/emacs-lisp-mode [yas] Loading for `prog-mode', just-in-time: (lambda nil (yas--load-directory-1 (quote /home/miki/.emacs.d/elpa/yasnippet-20141102.1554/snippets/prog-mode) (quote prog-mode)))! [yas] Loading compiled snippets from /home/miki/.emacs.d/elpa/yasnippet-20141102.1554/snippets/prog-mode Loading /home/miki/.emacs.d/elpa/yasnippet-20141102.1554/snippets/prog-mode/.yas-setup...done For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: /usr/share/emacs/site-lisp/SuperCollider/tree-widget hides /usr/share/emacs/24.4/lisp/tree-widget Features: (shadow sort gnus-util mail-extr emacsbug message idna cl-macs format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils advice eldoc help-fns imenu .emacs tsdh-dark-theme delsel yasnippet cl gv paren flycheck find-func help-mode rx pcase subr-x dash cua-base cus-start cus-load ix grapnel flymake compile comint ansi-color ring auto-complete-clang-async auto-complete-config auto-complete edmacro kmacro popup cl-loaddefs cl-lib ac-cider-autoloads info easymenu pkg-info-autoloads epl-autoloads queue-autoloads sly-autoloads popup-autoloads package epg-config time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 138761 8646) (symbols 48 24706 0) (miscs 40 81 115) (strings 32 29397 5044) (string-bytes 1 843125) (vectors 16 16816) (vector-slots 8 504577 7812) (floats 8 412 77) (intervals 56 215 0) (buffers 960 13) (heap 1024 44346 1095)) From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 03 10:53:51 2019 Received: (at 19007) by debbugs.gnu.org; 3 Aug 2019 14:53:51 +0000 Received: from localhost ([127.0.0.1]:59752 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1htvPq-0004lh-Vy for submit@debbugs.gnu.org; Sat, 03 Aug 2019 10:53:51 -0400 Received: from quimby.gnus.org ([80.91.231.51]:48676) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1htvPp-0004lZ-8r for 19007@debbugs.gnu.org; Sat, 03 Aug 2019 10:53:49 -0400 Received: from 77.18.62.220.tmi.telenormobil.no ([77.18.62.220] helo=sandy) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1htvPl-0005MY-8I; Sat, 03 Aug 2019 16:53:47 +0200 From: Lars Ingebrigtsen To: Alain Kalker Subject: Re: bug#19007: 24.4; copy-file-locals-to-dir-locals generates malformed expression References: <87mw7zamev.fsf@miki-desktop.lan> Date: Sat, 03 Aug 2019 16:53:44 +0200 In-Reply-To: <87mw7zamev.fsf@miki-desktop.lan> (Alain Kalker's message of "Mon, 10 Nov 2014 02:12:40 +0100") Message-ID: <87imregv0n.fsf@mouse.gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.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: Alain Kalker writes: > ((c-mode > (tab-width . 4))) > ---cut here--- > * Note that the expression doesn't conform to the syntax described in > the documentation "49.2.5 Per-Directory Local Variables". Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP 0.0 TVD_RCVD_IP Message was received from an IP address -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 19007 Cc: 19007@debbugs.gnu.org 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 (-) Alain Kalker writes: > ((c-mode > (tab-width . 4))) > ---cut here--- > * Note that the expression doesn't conform to the syntax described in > the documentation "49.2.5 Per-Directory Local Variables". (I'm going through old bug reports that unfortunately have not received any responses yet.) Looks like this has been fixed in the intervening years. This now creates a .dir-locals file with: ((c-mode . ((tab-width . 4)))) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 03 10:53:58 2019 Received: (at control) by debbugs.gnu.org; 3 Aug 2019 14:53:58 +0000 Received: from localhost ([127.0.0.1]:59755 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1htvPy-0004m4-Ae for submit@debbugs.gnu.org; Sat, 03 Aug 2019 10:53:58 -0400 Received: from quimby.gnus.org ([80.91.231.51]:48690) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1htvPw-0004lw-NI for control@debbugs.gnu.org; Sat, 03 Aug 2019 10:53:57 -0400 Received: from 77.18.62.220.tmi.telenormobil.no ([77.18.62.220] helo=sandy) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1htvPu-0005Mg-32 for control@debbugs.gnu.org; Sat, 03 Aug 2019 16:53:56 +0200 Date: Sat, 03 Aug 2019 16:53:53 +0200 Message-Id: <87h86ygv0e.fsf@mouse.gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #19007 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 19007 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 0.0 TVD_RCVD_IP Message was received from an IP address -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) 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: -1.0 (-) close 19007 quit From unknown Mon Jun 23 00:36:21 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 01 Sep 2019 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator