From: Sebastian Miele <iota@whxvd.name>
To: Andreas Schwab <schwab@suse.de>
Cc: 67321@debbugs.gnu.org
Subject: bug#67321: 29.1.90; Different parsing rules for -*- lexical-binding:t; -*- in different circumstances
Date: Tue, 21 Nov 2023 12:07:59 +0100 [thread overview]
Message-ID: <87ttpfs6ng.fsf@whxvd.name> (raw)
In-Reply-To: <mvmy1erto7t.fsf@suse.de>
> From: Andreas Schwab <schwab@suse.de>
> Date: Tue, 2023-11-21 11:06 +0100
>
> There are no different parsing rules. emacs --script just doesn't pay
> attention to file local variables.
That cannot be true. Running
#!/path/to/emacs --script
;; -*- lexical-binding: t; mode: emacs-lisp; -*-
(defmacro lexical-binding-p ()
'(let* ((x t)
(f (lambda () x))
(x nil))
(funcall f)))
(message "%s %s" lexical-binding (lexical-binding-p))
as a script outputs "t t". When I change the "lexical-binding: t" into
"lexical-binding: nil", the output is "nil nil". So that special
file-local variable does receive some handling by emacs --script.
next prev parent reply other threads:[~2023-11-21 11:07 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-21 8:16 bug#67321: 29.1.90; Different parsing rules for -*- lexical-binding:t; -*- in different circumstances Sebastian Miele
2023-11-21 10:06 ` Andreas Schwab
2023-11-21 11:07 ` Sebastian Miele [this message]
2023-11-21 10:46 ` Gerd Möllmann
2023-11-22 13:07 ` Sebastian Miele
2023-11-22 14:59 ` Gerd Möllmann
2023-11-22 18:10 ` Sebastian Miele
2023-11-22 19:18 ` Gerd Möllmann
2023-11-21 12:43 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ttpfs6ng.fsf@whxvd.name \
--to=iota@whxvd.name \
--cc=67321@debbugs.gnu.org \
--cc=schwab@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.