emacs-devel
[Top][All Lists]
Advanced

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

Re: Add a separate mode for .dir-locals.el


From: Clément Pit-Claudel
Subject: Re: Add a separate mode for .dir-locals.el
Date: Thu, 17 Oct 2019 08:10:02 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0

On 2019-10-17 08:03, Andreas Schwab wrote:
> On Okt 17 2019, Clément Pit-Claudel <address@hidden> wrote:
> 
>> On 2019-10-17 04:55, Andreas Schwab wrote:
>>> On Okt 16 2019, Clément Pit-Claudel <address@hidden> wrote:
>>>
>>>> .dir-locals.el files are currently opened in emacs-lisp-mode, but they are
>>>> not proper Emacs Lisp files;
>>>
>>> In which way are they not proper?
>>
>> They are data, not code: for example, this .dir-locals.el:
> 
> In Lisp, code is data and data is code.

Code is data and data is sometimes code, sometimes malformed code, sometimes 
not code at all. Like in that example that I posted, where Emacs is kind enough 
to point out that "‘(latex-mode (TeX-engine . default))’ is a malformed 
function".  Eval'ing yields about the same message: "(invalid-function 
(latex-mode (TeX-engine . default)))"






reply via email to

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