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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 13038 in the body.
You can then email your comments to 13038 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#13038; Package emacs. (Fri, 30 Nov 2012 06:13:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Leo <sdl.web <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 30 Nov 2012 06:13:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Leo <sdl.web <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.2.90; Error reading dir-locals: (end-of-file) [2 times]
Date: Fri, 30 Nov 2012 14:10:29 +0800
1. In a directory, create an empty file .dir-locals.el
2. Open any file in that directory to get this error:

    Error reading dir-locals: (end-of-file)

Leo




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13038; Package emacs. (Fri, 30 Nov 2012 07:41:21 GMT) Full text and rfc822 format available.

Message #8 received at 13038 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Leo <sdl.web <at> gmail.com>
Cc: 13038 <at> debbugs.gnu.org
Subject: Re: bug#13038: 24.2.90;
	Error reading dir-locals: (end-of-file) [2 times]
Date: Fri, 30 Nov 2012 02:37:55 -0500
Leo wrote:

> 1. In a directory, create an empty file .dir-locals.el

Why do you need to do that?

> 2. Open any file in that directory to get this error:
>
>     Error reading dir-locals: (end-of-file)

Yes, what's wrong with that?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13038; Package emacs. (Fri, 30 Nov 2012 09:17:02 GMT) Full text and rfc822 format available.

Message #11 received at 13038 <at> debbugs.gnu.org (full text, mbox):

From: Leo <sdl.web <at> gmail.com>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 13038 <at> debbugs.gnu.org
Subject: Re: 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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13038; Package emacs. (Fri, 30 Nov 2012 18:34:01 GMT) Full text and rfc822 format available.

Message #14 received at 13038 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Leo <sdl.web <at> gmail.com>
Cc: 13038 <at> debbugs.gnu.org
Subject: Re: bug#13038: 24.2.90;
	Error reading dir-locals: (end-of-file) [2 times]
Date: Fri, 30 Nov 2012 13:31:39 -0500
Leo wrote:

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

OK. You could put a (unless (zerop (buffer-size)) ...) in
dir-locals-read-from-file.




Reply sent to Leo <sdl.web <at> gmail.com>:
You have taken responsibility. (Sat, 01 Dec 2012 15:51:02 GMT) Full text and rfc822 format available.

Notification sent to Leo <sdl.web <at> gmail.com>:
bug acknowledged by developer. (Sat, 01 Dec 2012 15:51:02 GMT) Full text and rfc822 format available.

Message #19 received at 13038-done <at> debbugs.gnu.org (full text, mbox):

From: Leo <sdl.web <at> gmail.com>
To: 13038-done <at> debbugs.gnu.org
Subject: Re: bug#13038: 24.2.90;
	Error reading dir-locals: (end-of-file) [2 times]
Date: Sat, 01 Dec 2012 23:48:02 +0800
Fixed in emacs-24.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 30 Dec 2012 12:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 11 years and 126 days ago.

Previous Next


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