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

Previous Next

Package: emacs;

Reported by: Leo <sdl.web <at> gmail.com>

Date: Fri, 30 Nov 2012 06:13:01 UTC

Severity: minor

Found in version 24.2.90

Done: Leo <sdl.web <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Leo <sdl.web <at> gmail.com>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 13038 <at> debbugs.gnu.org
Subject: bug#13038: 24.2.90; Error reading dir-locals: (end-of-file) [2 times]
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




This bug report was last modified 12 years and 252 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.