[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#64272: 28.1; lisp_file_lexically_bound_p behavior mismatches file lo
From: |
LdBeth |
Subject: |
bug#64272: 28.1; lisp_file_lexically_bound_p behavior mismatches file local variables |
Date: |
Sat, 24 Jun 2023 21:11:11 -0500 |
User-agent: |
Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (Gojō) APEL-LB/10.8 EasyPG/1.0.0 Emacs/28.1 (x86_64-apple-darwin21.4.0) MULE/6.0 (HANACHIRUSATO) |
>>>>> In <83zg4oy9ow.fsf@gnu.org>
>>>>> Eli Zaretskii <eliz@gnu.org> wrote:
ldb> This behavior is in contrast to how file local variables are applied
ldb> when opening a file, that is, as long as the variable list is in
ldb> the first line, it is applied.
ldb>
ldb> Either the documentation should bring up this behavior, or the
ldb> C function `lisp_file_lexically_bound_p' in `src/lread.c' should be fixed.
Eli> I think we should do the latter, because
Eli> hack-local-variables-prop-line is more lenient than
Eli> lisp_file_lexically_bound_p.
Eli> Stefan, any comments?
If so, I think the only thing needs to be changed is
remove the `if (ch != ';')` test.
Since from what I test, even if first line is something like
|(setq tmp " -*- lexical-binding: t -*- ")
the file local variables would still be applied.
---
ldb
- bug#64272: 28.1; lisp_file_lexically_bound_p behavior mismatches file local variables, LdBeth, 2023/06/24
- bug#64272: 28.1; lisp_file_lexically_bound_p behavior mismatches file local variables, Eli Zaretskii, 2023/06/24
- bug#64272: 28.1; lisp_file_lexically_bound_p behavior mismatches file local variables, Stefan Monnier, 2023/06/24
- bug#64272: 28.1; lisp_file_lexically_bound_p behavior mismatches file local variables,
LdBeth <=
- bug#64272: 28.1; lisp_file_lexically_bound_p behavior mismatches file local variables, Eli Zaretskii, 2023/06/25
- bug#64272: 28.1; lisp_file_lexically_bound_p behavior mismatches file local variables, Stefan Monnier, 2023/06/25
- bug#64272: 28.1; lisp_file_lexically_bound_p behavior mismatches file local variables, Eli Zaretskii, 2023/06/25
- bug#64272: 28.1; lisp_file_lexically_bound_p behavior mismatches file local variables, Stefan Monnier, 2023/06/25
- bug#64272: 28.1; lisp_file_lexically_bound_p behavior mismatches file local variables, LdBeth, 2023/06/25
- bug#64272: 28.1; lisp_file_lexically_bound_p behavior mismatches file local variables, Eli Zaretskii, 2023/06/25
- bug#64272: 28.1; lisp_file_lexically_bound_p behavior mismatches file local variables, Stefan Monnier, 2023/06/25
- bug#64272: 28.1; lisp_file_lexically_bound_p behavior mismatches file local variables, LdBeth, 2023/06/25
- bug#64272: 28.1; lisp_file_lexically_bound_p behavior mismatches file local variables, Eli Zaretskii, 2023/06/26
- bug#64272: 28.1; lisp_file_lexically_bound_p behavior mismatches file local variables, Gregory Heytings, 2023/06/26