From unknown Sun Jun 22 00:35:56 2025
X-Loop: help-debbugs@gnu.org
Subject: bug#20641: 24.5; add-file-local-variable should special-case lexical-binding
Resent-From: Philipp Stephani
Original-Sender: "Debbugs-submit"
Resent-CC: bug-gnu-emacs@gnu.org
Resent-Date: Sun, 24 May 2015 10:23:02 +0000
Resent-Message-ID:
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: report 20641
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords:
To: 20641@debbugs.gnu.org
X-Debbugs-Original-To: bug-gnu-emacs@gnu.org
Received: via spool by submit@debbugs.gnu.org id=B.1432462929479
(code B ref -1); Sun, 24 May 2015 10:23:02 +0000
Received: (at submit) by debbugs.gnu.org; 24 May 2015 10:22:09 +0000
Received: from localhost ([127.0.0.1]:54260 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.80)
(envelope-from )
id 1YwT2i-00007a-3G
for submit@debbugs.gnu.org; Sun, 24 May 2015 06:22:09 -0400
Received: from eggs.gnu.org ([208.118.235.92]:39266)
by debbugs.gnu.org with esmtp (Exim 4.80)
(envelope-from ) id 1YwT2b-000071-BF
for submit@debbugs.gnu.org; Sun, 24 May 2015 06:22:02 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from ) id 1YwT2V-0007Uf-BY
for submit@debbugs.gnu.org; Sun, 24 May 2015 06:21:52 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: *
X-Spam-Status: No, score=1.1 required=5.0 tests=BAYES_50,
FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,T_DKIM_INVALID autolearn=disabled
version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:51170)
by eggs.gnu.org with esmtp (Exim 4.71)
(envelope-from ) id 1YwT2V-0007Ub-94
for submit@debbugs.gnu.org; Sun, 24 May 2015 06:21:51 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:52771)
by lists.gnu.org with esmtp (Exim 4.71)
(envelope-from ) id 1YwT2U-0002Uq-2K
for bug-gnu-emacs@gnu.org; Sun, 24 May 2015 06:21:51 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from ) id 1YwT2T-0007UL-0y
for bug-gnu-emacs@gnu.org; Sun, 24 May 2015 06:21:50 -0400
Received: from mail-wi0-x22b.google.com ([2a00:1450:400c:c05::22b]:36283)
by eggs.gnu.org with esmtp (Exim 4.71)
(envelope-from ) id 1YwT2S-0007UD-PZ
for bug-gnu-emacs@gnu.org; Sun, 24 May 2015 06:21:48 -0400
Received: by wizk4 with SMTP id k4so24584550wiz.1
for ; Sun, 24 May 2015 03:21:48 -0700 (PDT)
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=/HqXVGvFjkYe6qqJu9503ctp98yd2iZy81WaFJA88FA=;
b=H/wUunafKmRzsAO63MC2PtVhuTo+dBnryGvs2W/X7UH39aSj4fk3oJCIJIR0lkeq3o
A3tN2mJNHyC90KinFSuy49IlWKV+2bbX6A7bwepLj7wyOrI9G0kyGY2FSkpOfeUt3Dh3
xmjebaR0KQkRDRlKHGHGLDVGmJ3MGPUQzXPkVRXPAfgdaJjiqAba/1DldYxjW526zpYy
fLY9c9j1X+1xuDPJhMouE9W49+VMxO4fp+DV2H6uWxGai1oB0wRbxOzyyP56fhmZ1iav
btCvAzuOuJ1QF6Ll5dteay1iLPiIIHx3eiWmdJec5DbeSBrW8b2bKJfMxIeygSOvUi3I
4C1A==
X-Received: by 10.194.22.40 with SMTP id a8mr31037614wjf.134.1432462908217;
Sun, 24 May 2015 03:21:48 -0700 (PDT)
Received: from p ([2001:4c50:32e:4e00:40e4:3b61:5b96:f7b4])
by mx.google.com with ESMTPSA id g11sm11497059wjr.25.2015.05.24.03.21.47
for
(version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
Sun, 24 May 2015 03:21:47 -0700 (PDT)
From: Philipp Stephani
Date: Sun, 24 May 2015 12:21:46 +0200
Message-ID:
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: -3.8 (---)
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: -3.8 (---)
Given that `lexical-binding' only works when set in the first line of
the file, `add-file-local-variable' should defer to
'add-file-local-variable-prop-line' for this variable only.
In GNU Emacs 24.5.1 (x86_64-apple-darwin14.1.0, NS apple-appkit-1344.72)
of 2015-04-12 on p
Configured using:
`configure --prefix=/usr/local/Cellar/emacs/24.5
--enable-locallisppath=/usr/local/share/emacs/site-lisp
--infodir=/usr/local/Cellar/emacs/24.5/share/info/emacs
--with-file-notification=gfile --with-dbus --with-gnutls --with-rsvg
--with-imagemagick --without-popmail --with-ns
--disable-ns-self-contained'
Important settings:
value of $LANG: de_DE.UTF-8
locale-coding-system: utf-8-unix
Major mode: Emacs-Lisp
Minor modes in effect:
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
font-lock-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t
Recent messages:
Mark set
Setting `send-mail-function' temporarily since "emacs -q" would overwrite customizations
Sending...
Mark set [2 times]
Sending via mail...
Setting `smtpmail-smtp-server' temporarily since "emacs -q" would overwrite customizations
Setting `smtpmail-smtp-service' temporarily since "emacs -q" would overwrite customizations
Sending email
Sending email done
Sending...done
Load-path shadows:
None found.
Features:
(gnutls network-stream starttls tls mailalias smtpmail auth-source eieio
byte-opt bytecomp byte-compile cl-extra cconv eieio-core password-cache
cus-edit cus-start cus-load wid-edit cl-loaddefs cl-lib help-mode pp
shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
easymenu 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 warnings help-fns files-x xterm time-date
tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel
ns-win 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 cocoa ns multi-tty emacs)
Memory information:
((conses 16 111890 8826)
(symbols 48 20879 0)
(miscs 40 51 185)
(strings 32 18684 5217)
(string-bytes 1 517213)
(vectors 16 10719)
(vector-slots 8 371236 4716)
(floats 8 77 318)
(intervals 56 423 24)
(buffers 960 18))
From unknown Sun Jun 22 00:35:56 2025
MIME-Version: 1.0
X-Mailer: MIME-tools 5.503 (Entity 5.503)
X-Loop: help-debbugs@gnu.org
From: help-debbugs@gnu.org (GNU bug Tracking System)
To: Philipp Stephani
Subject: bug#20641: closed (Re: bug#20641: 24.5; add-file-local-variable
should special-case lexical-binding)
Message-ID:
References: <3a381z1eor.fsf@fencepost.gnu.org>
X-Gnu-PR-Message: they-closed 20641
X-Gnu-PR-Package: emacs
Reply-To: 20641@debbugs.gnu.org
Date: Wed, 10 Jun 2015 20:51:09 +0000
Content-Type: multipart/mixed; boundary="----------=_1433969469-2636-1"
This is a multi-part message in MIME format...
------------=_1433969469-2636-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="utf-8"
Your bug report
#20641: 24.5; add-file-local-variable should special-case lexical-binding
which was filed against the emacs package, has been closed.
The explanation is attached below, along with your original report.
If you require more details, please reply to 20641@debbugs.gnu.org.
--=20
20641: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D20641
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
------------=_1433969469-2636-1
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
Received: (at 20641-done) by debbugs.gnu.org; 10 Jun 2015 20:50:31 +0000
Received: from localhost ([127.0.0.1]:49907 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.80)
(envelope-from )
id 1Z2mxC-0000fN-H9
for submit@debbugs.gnu.org; Wed, 10 Jun 2015 16:50:31 -0400
Received: from eggs.gnu.org ([208.118.235.92]:60729)
by debbugs.gnu.org with esmtp (Exim 4.80)
(envelope-from ) id 1Z2mx9-0000ev-TY
for 20641-done@debbugs.gnu.org; Wed, 10 Jun 2015 16:50:28 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from ) id 1Z2mwv-0007So-HG
for 20641-done@debbugs.gnu.org; Wed, 10 Jun 2015 16:50:22 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level:
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD
autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:55613)
by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from )
id 1Z2mwv-0007Ff-Cb
for 20641-done@debbugs.gnu.org; Wed, 10 Jun 2015 16:50:13 -0400
Received: from rgm by fencepost.gnu.org with local (Exim 4.82)
(envelope-from )
id 1Z2mm5-0006cw-3i; Wed, 10 Jun 2015 16:39:01 -0400
From: Glenn Morris
To: 20641-done@debbugs.gnu.org
Subject: Re: bug#20641: 24.5;
add-file-local-variable should special-case lexical-binding
References:
X-Spook: pre-emptive ICE Radioactive Methamphetamine crypto
X-Ran: q<9BPmrq}^W0VYg{_1w@/6qGzF}wKAEPlxzs/sF5DuL38,=&F@=^"K{~UnwvXV|9Q%O
X-Hue: yellow
X-Attribution: GM
Date: Wed, 10 Jun 2015 16:39:00 -0400
In-Reply-To: (Philipp Stephani's message of "Sun,
24 May 2015 12:21:46 +0200")
Message-ID: <3a381z1eor.fsf@fencepost.gnu.org>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
(bad octet value).
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 20641-done
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: -5.0 (-----)
Verison: 25.1
I made it throw an error in that case.
------------=_1433969469-2636-1
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
Received: (at submit) by debbugs.gnu.org; 24 May 2015 10:22:09 +0000
Received: from localhost ([127.0.0.1]:54260 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.80)
(envelope-from )
id 1YwT2i-00007a-3G
for submit@debbugs.gnu.org; Sun, 24 May 2015 06:22:09 -0400
Received: from eggs.gnu.org ([208.118.235.92]:39266)
by debbugs.gnu.org with esmtp (Exim 4.80)
(envelope-from ) id 1YwT2b-000071-BF
for submit@debbugs.gnu.org; Sun, 24 May 2015 06:22:02 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from ) id 1YwT2V-0007Uf-BY
for submit@debbugs.gnu.org; Sun, 24 May 2015 06:21:52 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: *
X-Spam-Status: No, score=1.1 required=5.0 tests=BAYES_50,
FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,T_DKIM_INVALID autolearn=disabled
version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:51170)
by eggs.gnu.org with esmtp (Exim 4.71)
(envelope-from ) id 1YwT2V-0007Ub-94
for submit@debbugs.gnu.org; Sun, 24 May 2015 06:21:51 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:52771)
by lists.gnu.org with esmtp (Exim 4.71)
(envelope-from ) id 1YwT2U-0002Uq-2K
for bug-gnu-emacs@gnu.org; Sun, 24 May 2015 06:21:51 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from ) id 1YwT2T-0007UL-0y
for bug-gnu-emacs@gnu.org; Sun, 24 May 2015 06:21:50 -0400
Received: from mail-wi0-x22b.google.com ([2a00:1450:400c:c05::22b]:36283)
by eggs.gnu.org with esmtp (Exim 4.71)
(envelope-from ) id 1YwT2S-0007UD-PZ
for bug-gnu-emacs@gnu.org; Sun, 24 May 2015 06:21:48 -0400
Received: by wizk4 with SMTP id k4so24584550wiz.1
for ; Sun, 24 May 2015 03:21:48 -0700 (PDT)
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=/HqXVGvFjkYe6qqJu9503ctp98yd2iZy81WaFJA88FA=;
b=H/wUunafKmRzsAO63MC2PtVhuTo+dBnryGvs2W/X7UH39aSj4fk3oJCIJIR0lkeq3o
A3tN2mJNHyC90KinFSuy49IlWKV+2bbX6A7bwepLj7wyOrI9G0kyGY2FSkpOfeUt3Dh3
xmjebaR0KQkRDRlKHGHGLDVGmJ3MGPUQzXPkVRXPAfgdaJjiqAba/1DldYxjW526zpYy
fLY9c9j1X+1xuDPJhMouE9W49+VMxO4fp+DV2H6uWxGai1oB0wRbxOzyyP56fhmZ1iav
btCvAzuOuJ1QF6Ll5dteay1iLPiIIHx3eiWmdJec5DbeSBrW8b2bKJfMxIeygSOvUi3I
4C1A==
X-Received: by 10.194.22.40 with SMTP id a8mr31037614wjf.134.1432462908217;
Sun, 24 May 2015 03:21:48 -0700 (PDT)
Received: from p ([2001:4c50:32e:4e00:40e4:3b61:5b96:f7b4])
by mx.google.com with ESMTPSA id g11sm11497059wjr.25.2015.05.24.03.21.47
for
(version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
Sun, 24 May 2015 03:21:47 -0700 (PDT)
From: Philipp Stephani
To: bug-gnu-emacs@gnu.org
Subject: 24.5; add-file-local-variable should special-case lexical-binding
Date: Sun, 24 May 2015 12:21:46 +0200
Message-ID:
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: -3.8 (---)
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: -3.8 (---)
Given that `lexical-binding' only works when set in the first line of
the file, `add-file-local-variable' should defer to
'add-file-local-variable-prop-line' for this variable only.
In GNU Emacs 24.5.1 (x86_64-apple-darwin14.1.0, NS apple-appkit-1344.72)
of 2015-04-12 on p
Configured using:
`configure --prefix=/usr/local/Cellar/emacs/24.5
--enable-locallisppath=/usr/local/share/emacs/site-lisp
--infodir=/usr/local/Cellar/emacs/24.5/share/info/emacs
--with-file-notification=gfile --with-dbus --with-gnutls --with-rsvg
--with-imagemagick --without-popmail --with-ns
--disable-ns-self-contained'
Important settings:
value of $LANG: de_DE.UTF-8
locale-coding-system: utf-8-unix
Major mode: Emacs-Lisp
Minor modes in effect:
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
font-lock-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t
Recent messages:
Mark set
Setting `send-mail-function' temporarily since "emacs -q" would overwrite customizations
Sending...
Mark set [2 times]
Sending via mail...
Setting `smtpmail-smtp-server' temporarily since "emacs -q" would overwrite customizations
Setting `smtpmail-smtp-service' temporarily since "emacs -q" would overwrite customizations
Sending email
Sending email done
Sending...done
Load-path shadows:
None found.
Features:
(gnutls network-stream starttls tls mailalias smtpmail auth-source eieio
byte-opt bytecomp byte-compile cl-extra cconv eieio-core password-cache
cus-edit cus-start cus-load wid-edit cl-loaddefs cl-lib help-mode pp
shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
easymenu 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 warnings help-fns files-x xterm time-date
tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel
ns-win 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 cocoa ns multi-tty emacs)
Memory information:
((conses 16 111890 8826)
(symbols 48 20879 0)
(miscs 40 51 185)
(strings 32 18684 5217)
(string-bytes 1 517213)
(vectors 16 10719)
(vector-slots 8 371236 4716)
(floats 8 77 318)
(intervals 56 423 24)
(buffers 960 18))
------------=_1433969469-2636-1--