[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Defaults for elisp-mode files
From: |
Juanma Barranquero |
Subject: |
Re: Defaults for elisp-mode files |
Date: |
Thu, 4 Oct 2012 18:24:05 +0200 |
On Thu, Oct 4, 2012 at 5:37 PM, Christopher Monsanto <address@hidden> wrote:
> I know what directory local variables are :)
:-)
> They are loaded when
> emacs visits a file (that is, to be opened in a buffer), not when
> opened by the Lisp load primitive. To do what you are wanting for
> lexical-binding, we would have to instrument load to read directory
> locals, but that seems strange because none of the variables normally
> set in directory locals have relevance to the semantics of LIsp
> programs.
Yes, I know, but the scaffolding is here. Introducing another
mechanism seems messier than expanding what we already have. Or not,
I'm not sure. Of course, I'm happily handwaving performance
considerations, etc., not to mention that adding that (be through
.dir-locals or another file) just for lexical-binding seems a bit
heavy handed.
But, if we have a (external-to-the-file) way to set variables for
editing files, why not for compiling them? In fact, we already mix
editing-time variables (like mode or tab-width) and compile-time
variables (byte-compile-dynamic, generated-autoload-file,
no-byte-compile, no-update-autoloads, lexical-binding itself) through
the same mechanism.
Juanma
- Defaults for elisp-mode files, Stefan Monnier, 2012/10/03
- RE: Defaults for elisp-mode files, Drew Adams, 2012/10/03
- Re: Defaults for elisp-mode files, Christopher Schmidt, 2012/10/03
- Re: Defaults for elisp-mode files, Juanma Barranquero, 2012/10/03
- Defaults for elisp-mode files, Stephen J. Turnbull, 2012/10/03
- Re: Defaults for elisp-mode files, Stefan Monnier, 2012/10/03
- Re: Defaults for elisp-mode files, Christopher Monsanto, 2012/10/03
- Re: Defaults for elisp-mode files, Juanma Barranquero, 2012/10/04
- Re: Defaults for elisp-mode files, Christopher Monsanto, 2012/10/04
- Re: Defaults for elisp-mode files,
Juanma Barranquero <=
- Re: Defaults for elisp-mode files, Andreas Schwab, 2012/10/04
- Re: Defaults for elisp-mode files, Juanma Barranquero, 2012/10/04
- Re: Defaults for elisp-mode files, Stephen J. Turnbull, 2012/10/04
- Re: Defaults for elisp-mode files, Stephen J. Turnbull, 2012/10/04
Re: Defaults for elisp-mode files, Andreas Röhler, 2012/10/04