* bug#13038: 24.2.90; Error reading dir-locals: (end-of-file) [2 times] @ 2012-11-30 6:10 Leo 2012-11-30 7:37 ` Glenn Morris 2012-12-01 15:48 ` Leo 0 siblings, 2 replies; 5+ messages in thread From: Leo @ 2012-11-30 6:10 UTC (permalink / raw) To: 13038 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 ^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#13038: 24.2.90; Error reading dir-locals: (end-of-file) [2 times] 2012-11-30 6:10 bug#13038: 24.2.90; Error reading dir-locals: (end-of-file) [2 times] Leo @ 2012-11-30 7:37 ` Glenn Morris 2012-11-30 9:14 ` Leo 2012-12-01 15:48 ` Leo 1 sibling, 1 reply; 5+ messages in thread From: Glenn Morris @ 2012-11-30 7:37 UTC (permalink / raw) To: Leo; +Cc: 13038 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? ^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#13038: 24.2.90; Error reading dir-locals: (end-of-file) [2 times] 2012-11-30 7:37 ` Glenn Morris @ 2012-11-30 9:14 ` Leo 2012-11-30 18:31 ` Glenn Morris 0 siblings, 1 reply; 5+ messages in thread From: Leo @ 2012-11-30 9:14 UTC (permalink / raw) To: Glenn Morris; +Cc: 13038 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 ^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#13038: 24.2.90; Error reading dir-locals: (end-of-file) [2 times] 2012-11-30 9:14 ` Leo @ 2012-11-30 18:31 ` Glenn Morris 0 siblings, 0 replies; 5+ messages in thread From: Glenn Morris @ 2012-11-30 18:31 UTC (permalink / raw) To: Leo; +Cc: 13038 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. ^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#13038: 24.2.90; Error reading dir-locals: (end-of-file) [2 times] 2012-11-30 6:10 bug#13038: 24.2.90; Error reading dir-locals: (end-of-file) [2 times] Leo 2012-11-30 7:37 ` Glenn Morris @ 2012-12-01 15:48 ` Leo 1 sibling, 0 replies; 5+ messages in thread From: Leo @ 2012-12-01 15:48 UTC (permalink / raw) To: 13038-done Fixed in emacs-24. ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-12-01 15:48 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2012-11-30 6:10 bug#13038: 24.2.90; Error reading dir-locals: (end-of-file) [2 times] Leo 2012-11-30 7:37 ` Glenn Morris 2012-11-30 9:14 ` Leo 2012-11-30 18:31 ` Glenn Morris 2012-12-01 15:48 ` Leo
Code repositories for project(s) associated with this external index https://git.savannah.gnu.org/cgit/emacs.git https://git.savannah.gnu.org/cgit/emacs/org-mode.git This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.