Subject: Re: bug#13038: 24.2.90; Error reading dir-locals: (end-of-file) [2 times]

From: Leo <[email-masked]>
Date: Fri, 30 Nov 2012 17:14:09 +0800

On 2012-11-30 15:37 +0800, Glenn Morris wrote:
> Leo wrote:
>
>> 1. In a directory, create an empty file .dir-locals.el
>
> Why do you need to do that?

Stop a sub-directory from inheriting local settings from its parent.

In my case, the parent has local settings for general cases and the
sub-directory is an exception and should not inherit those settings.

I can work around this bug by inserting a useless sexp in the file but
this stops one from quickly 'M-! touch .dir-locals.el' and be done with
it.

I hope this is a good use case.

>> 2. Open any file in that directory to get this error:
>>
>>     Error reading dir-locals: (end-of-file)
>
> Yes, what's wrong with that?

Seeing this error every time one opens a file in that directory or its
sub-directories is annoying.

Leo