From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Vardhan Varma 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, 5 Mar 2012 18:25:01 +0800 Message-ID: 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" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1330943237 8148 80.91.229.3 (5 Mar 2012 10:27:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 5 Mar 2012 10:27:17 +0000 (UTC) Cc: 10928@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 05 11:27:14 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 1S4V8M-0001Av-AJ for geb-bug-gnu-emacs@m.gmane.org; Mon, 05 Mar 2012 11:27:14 +0100 Original-Received: from localhost ([::1]:44192 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S4V8L-0006t6-Ki for geb-bug-gnu-emacs@m.gmane.org; Mon, 05 Mar 2012 05:27:13 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:38947) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S4V80-0006r2-2b for bug-gnu-emacs@gnu.org; Mon, 05 Mar 2012 05:27:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S4V7t-0003qt-NN for bug-gnu-emacs@gnu.org; Mon, 05 Mar 2012 05:26:51 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55063) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S4V7t-0003ql-K1 for bug-gnu-emacs@gnu.org; Mon, 05 Mar 2012 05:26:45 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1S4V89-0004b0-V0 for bug-gnu-emacs@gnu.org; Mon, 05 Mar 2012 05:27:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Vardhan Varma Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 05 Mar 2012 10:27: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.133094317117599 (code B ref 10928); Mon, 05 Mar 2012 10:27:01 +0000 Original-Received: (at 10928) by debbugs.gnu.org; 5 Mar 2012 10:26:11 +0000 Original-Received: from localhost ([127.0.0.1]:33659 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S4V7K-0004ZK-8Y for submit@debbugs.gnu.org; Mon, 05 Mar 2012 05:26:10 -0500 Original-Received: from tx2ehsobe002.messaging.microsoft.com ([65.55.88.12]:7755 helo=tx2outboundpool.messaging.microsoft.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S4V78-0004Yy-D6 for 10928@debbugs.gnu.org; Mon, 05 Mar 2012 05:25:59 -0500 Original-Received: from mail91-tx2-R.bigfish.com (10.9.14.241) by TX2EHSOBE005.bigfish.com (10.9.40.25) with Microsoft SMTP Server id 14.1.225.23; Mon, 5 Mar 2012 10:25:10 +0000 Original-Received: from mail91-tx2 (localhost [127.0.0.1]) by mail91-tx2-R.bigfish.com (Postfix) with ESMTP id 941554042A; Mon, 5 Mar 2012 10:25:10 +0000 (UTC) X-SpamScore: -11 X-BigFish: VPS-11(z21eNz1432Nzz1202hzzz2fh95h668h839h944h906i) X-Forefront-Antispam-Report: CIP:149.199.60.83; KIP:(null); UIP:(null); IPV:NLI; H:xsj-gw1; RD:unknown-60-83.xilinx.com; EFVD:NLI Received-SPF: pass (mail91-tx2: domain of xilinx.com designates 149.199.60.83 as permitted sender) client-ip=149.199.60.83; envelope-from=vardhan.varma@xilinx.com; helo=xsj-gw1 ; helo=xsj-gw1 ; Original-Received: from mail91-tx2 (localhost.localdomain [127.0.0.1]) by mail91-tx2 (MessageSwitch) id 1330943108251560_29113; Mon, 5 Mar 2012 10:25:08 +0000 (UTC) Original-Received: from TX2EHSMHS021.bigfish.com (unknown [10.9.14.236]) by mail91-tx2.bigfish.com (Postfix) with ESMTP id 2E3A23E004B; Mon, 5 Mar 2012 10:25:08 +0000 (UTC) Original-Received: from xsj-gw1 (149.199.60.83) by TX2EHSMHS021.bigfish.com (10.9.99.121) with Microsoft SMTP Server id 14.1.225.23; Mon, 5 Mar 2012 10:25:06 +0000 Original-Received: from unknown-38-66.xilinx.com ([149.199.38.66] helo=xsj-smtp1.xilinx.com) by xsj-gw1 with esmtp (Exim 4.63) (envelope-from ) id 1S4V6I-0002FH-7s; Mon, 05 Mar 2012 02:25:06 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-Class: urn:content-classes:message In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: 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 thread-index: Acz4sabYGByiHj9/S0u6wBGNP2tdNACBlwAw X-OriginalArrivalTime: 05 Mar 2012 10:25:02.0556 (UTC) FILETIME=[39AF69C0:01CCFABA] X-RCIS-Action: ALLOW X-OriginatorOrg: xilinx.com 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:57501 Archived-At: hi Glenn, > > On the machine, '/proj' is a nfs mounted directory .. if it helps you ! > = > I tried with an nfs-mounted /proj, it still works for me. > Does this only happen with directories literally called "/proj"? > = Yes, this is happening only with directories and files inside the '/proj/' tree. = > > I also got following message on trying to open a file: > > Directory-local variables error: (file-error "Opening input file" "No > > such file or directory" "/proj/.dir-locals.el") > = > What does > = > ls -l /proj/.dir-locals.el > = > say in a shell? Thanx for asking .. suddenly i'm enlightned ... $ 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 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 ... And i'm sorry for giving partial info .. /proj is nfs and is auto mounted.. Here is the strace of calls that emacs is doing ... stat("/proj/foo/bar/qux/.dir-locals.el", 0x7fff6e27f590) =3D -1 ENOENT (No such file or directory) stat("/proj/foo/bar/.dir-locals.el", 0x7fff6e27f590) =3D -1 ENOENT (No such file or directory) stat("/proj/foo/.dir-locals.el", 0x7fff6e27f590) =3D -1 ENOENT (No such file or directory) stat("/proj/.dir-locals.el", {st_mode=3DS_IFDIR|0555, st_size=3D0, ...}) = =3D 0 stat("/proj/.dir-locals.el", {st_mode=3DS_IFDIR|0555, st_size=3D0, ...}) = =3D 0 open("/proj/.dir-locals.el", O_RDONLY) =3D -1 ENOENT (No such file or directory) stat("/proj/foo/bar/.dir-locals.el", 0x7fff6e27fb80) =3D -1 ENOENT (No such file or directory) stat("/proj/foo/.dir-locals.el", 0x7fff6e27fb80) =3D -1 ENOENT (No such file or directory) stat("/proj/.dir-locals.el", {st_mode=3DS_IFDIR|0555, st_size=3D0, ...}) = =3D 0 stat("/proj/.dir-locals.el", {st_mode=3DS_IFDIR|0555, st_size=3D0, ...}) = =3D 0 open("/proj/.dir-locals.el", O_RDONLY) =3D -1 ENOENT (No such file or directory) > = > What does > = > emacs -Q > = > M-: (dir-locals-find-file "/proj/foo/bar") RET > = > return? > = "/proj/.dir-locals.el" =3D=3D=3D I think this behaviour is quirk of automounting. Just for the record, = $ cat /etc/redhat-release Red Hat Enterprise Linux Client release 5.6 (Tikanga) : 15:45:39 : /home/vardhan $ rpm -qa | grep autofs autofs-5.0.1-0.rc2.148.bz667273.1.el5 Glenn, thanx a lot for helping me in finding this. This is a unique case, where '/proj/' is an automounted directory, and it's hightly improbable that lot of people will hit it ! It's up to you ... if you think some change can be done in emacs or dired.el ! Thanx a lot -Vardhan = = This email and any attachments are intended for the sole use of the named r= ecipient(s) and contain(s) confidential information that may be proprietary= , privileged or copyrighted under applicable law. If you are not the intend= ed recipient, do not read, copy, or forward this email message or any attac= hments. Delete this email message and any attachments immediately.