[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Default lexical-binding to t
From: |
Stefan Kangas |
Subject: |
Re: Default lexical-binding to t |
Date: |
Fri, 8 Nov 2024 00:38:08 +0000 |
Christopher Howard <christopher@librehacker.com> writes:
> Hi, I just wanted to mention one little thing (feature request?): I
> noticed that, if I include this
>
> ``` ;;; ... -*- lexical-binding: nil -*- ```
>
> in order to purposefully set the lexical-binding to dynamic — I'm a
> rebel, I guess — then the mode-line still gives the "/d" a warning
> face. In my theme, that shows up as bright red. But if I set it to "t"
> instead, then I get a "/l" without a warning color. I don't see why,
> if I purposely chose dynamic binding, that Emacs should treat it as a
> bad thing which I need to be warned about.
Yes, that is on purpose. See (info "(elisp) Coding Conventions"):
• We recommend enabling ‘lexical-binding’ in new code, and converting
existing Emacs Lisp code to enable ‘lexical-binding’ if it doesn't
already. *Note Selecting Lisp Dialect::.
- Re: Default lexical-binding to t, (continued)
- Re: Default lexical-binding to t, Jose A. Ortega Ruiz, 2024/11/06
- Re: Default lexical-binding to t, Stefan Monnier, 2024/11/08
- Re: Default lexical-binding to t, Richard Stallman, 2024/11/06
- Re: Default lexical-binding to t, Eli Zaretskii, 2024/11/07
- Re: Default lexical-binding to t, Richard Stallman, 2024/11/06
Re: Default lexical-binding to t, Christopher Howard, 2024/11/07
Re: Default lexical-binding to t, Eli Zaretskii, 2024/11/08
Re: Default lexical-binding to t, Eli Zaretskii, 2024/11/08