From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#10928: 24.0.94; dired-mode on /proj/foo/bar gives error : dir-locals-read-from-file: Opening input file: No such file or directory, /proj/.dir-locals.el Date: Mon, 05 Mar 2012 21:51:52 -0500 Message-ID: <6npqcqxwzb.fsf@fencepost.gnu.org> References: <9a463078-3008-4658-8349-be5f28d786f8@VA3EHSMHS027.ehs.local> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1331002429 12073 80.91.229.3 (6 Mar 2012 02:53:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 6 Mar 2012 02:53:49 +0000 (UTC) Cc: 10928@debbugs.gnu.org To: Vardhan Varma Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 06 03:53:48 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1S4kX5-0007Qd-PH for geb-bug-gnu-emacs@m.gmane.org; Tue, 06 Mar 2012 03:53:47 +0100 Original-Received: from localhost ([::1]:48063 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S4kX4-0002Im-Oj for geb-bug-gnu-emacs@m.gmane.org; Mon, 05 Mar 2012 21:53:46 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:48296) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S4kX1-0002Id-Qo for bug-gnu-emacs@gnu.org; Mon, 05 Mar 2012 21:53:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S4kX0-0007MC-4F for bug-gnu-emacs@gnu.org; Mon, 05 Mar 2012 21:53:43 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56416) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S4kX0-0007M5-0w for bug-gnu-emacs@gnu.org; Mon, 05 Mar 2012 21:53:42 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1S4kXJ-0006Cd-To for bug-gnu-emacs@gnu.org; Mon, 05 Mar 2012 21:54:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Mar 2012 02:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10928 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 10928-submit@debbugs.gnu.org id=B10928.133100238823776 (code B ref 10928); Tue, 06 Mar 2012 02:54:01 +0000 Original-Received: (at 10928) by debbugs.gnu.org; 6 Mar 2012 02:53:08 +0000 Original-Received: from localhost ([127.0.0.1]:35015 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S4kWR-0006Az-4c for submit@debbugs.gnu.org; Mon, 05 Mar 2012 21:53:08 -0500 Original-Received: from fencepost.gnu.org ([208.118.235.10]:50048) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S4kW5-0006AR-2K for 10928@debbugs.gnu.org; Mon, 05 Mar 2012 21:52:55 -0500 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1S4kVE-0006iN-Mv; Mon, 05 Mar 2012 21:51:52 -0500 X-Spook: Roswell JSOFC3IP PET Al-Qaeda ASLET Aladdin Syria Cocaine X-Ran: J'_5#EBeU8!XX4u+8}/ (Vardhan Varma's message of "Mon, 5 Mar 2012 18:25:01 +0800") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:57521 Archived-At: Vardhan Varma wrote: > $ ls -l /proj/.dir-locals.el > ls: /proj/.dir-locals.el: No such file or directory > $ ls -dl /proj/.dir-locals.el > dr-xr-xr-x 2 root root 0 Jan 5 02:33 /proj/.dir-locals.el Is there really a /proj/.dir-locals.el directory (not file)? (How does it have zero size - what is the file system?) Can you just delete whatever that is? It looks to me like your automounter is broken, because the above sequence ought to be impossible, AIUI. > To me, it looks like the automount is playing some tricks .. initially > it tells emacs that this exists > and when emacs tries to read it .. it tells that it doesn't exist ... or > something like that ... [...] > stat("/proj/foo/.dir-locals.el", 0x7fff6e27f590) = -1 ENOENT (No such > file or directory) > stat("/proj/.dir-locals.el", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0 > stat("/proj/.dir-locals.el", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0 > open("/proj/.dir-locals.el", O_RDONLY) = -1 ENOENT (No such file or > directory) I don't understand what's going on there, but I made Emacs ignore .dir-locals.el if it is a directory (or unreadable). I guess that will fix your issue. But if /proj/.dir-locals.el was a weird file rather than a weird directory, the same issue would occur. I don't think there would anything Emacs could do about that.