emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Conditional binding and testing of `lexical-binding'


From: Stefan Monnier
Subject: Re: Conditional binding and testing of `lexical-binding'
Date: Sun, 02 Jan 2022 13:27:14 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

> What's the best way, or a reasonable way, of
> setting `lexical-binding' conditionally,

I don't know what you mean by that, nor why you think it's necessary
for:

> so a library can be used with both Emacs versions that support lexical
> binding and versions that don't support it?

Adding the -*- lexical-binding:t -*- at the beginning of the file
does that (this is used by CC-mode, for example).


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]