[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.


reply via email to

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