unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Vardhan Varma <vardhan.varma@xilinx.com>
To: Glenn Morris <rgm@gnu.org>
Cc: 10928@debbugs.gnu.org
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	[thread overview]
Message-ID: <bf57bb77-babe-42a0-8d41-61400a5ed31e@TX2EHSMHS021.ehs.local> (raw)
In-Reply-To: <gd8vji92p9.fsf@fencepost.gnu.org>

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) = -1 ENOENT (No
such file or directory)
stat("/proj/foo/bar/.dir-locals.el", 0x7fff6e27f590) = -1 ENOENT (No
such file or directory)
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)
stat("/proj/foo/bar/.dir-locals.el", 0x7fff6e27fb80) = -1 ENOENT (No
such file or directory)
stat("/proj/foo/.dir-locals.el", 0x7fff6e27fb80) = -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)


> 
> What does
> 
> emacs -Q
> 
> M-: (dir-locals-find-file "/proj/foo/bar") RET
> 
> return?
> 
"/proj/.dir-locals.el"

===
 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 recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately.







  reply	other threads:[~2012-03-05 10:25 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-02 10:45 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 Vardhan Varma
2012-03-02 17:31 ` Glenn Morris
2012-03-02 18:05   ` Vardhan Varma
2012-03-02 20:18     ` Glenn Morris
2012-03-05 10:25       ` Vardhan Varma [this message]
2012-03-06  2:51         ` Glenn Morris

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bf57bb77-babe-42a0-8d41-61400a5ed31e@TX2EHSMHS021.ehs.local \
    --to=vardhan.varma@xilinx.com \
    --cc=10928@debbugs.gnu.org \
    --cc=rgm@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).