help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: .dir-locals/automount


From: HASM
Subject: Re: .dir-locals/automount
Date: Tue, 24 Feb 2015 14:40:39 -0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

Glenn Morris <rgm@gnu.org> writes:

me> Error reading dir-locals: (file-error "Read error" "is a directory" 
"/smb/.dir-locals.el")
glenn> It's a message, not an error (unless you have debug-on-error non-nil).

It's a message about an error:-)  It's also a bit of a pain as it keeps
coming back for every file under that mount point

glenn> Adding an entry for /smb to locate-dominating-stop-dir-regexp
glenn> ought to avoid the issue: net\\|afs -> net\\|afs\\|smb

Seems to work, thanks.  I've googled (and did find some of your
responses, but none on this variable.

> It sounds like your smb share is returning weird file results.  See eg
> http://debbugs.gnu.org/10928

It is autofs-5.1.0-10.fc21.x86_64 on linux kernel 3.18.7-200.fc21.x86_64.

glenn> ls -l /smb/.dir-locals.el
glenn> ls -ld /smb/.dir-locals.el

% ls -l /smb/.dir-locals.el
total 0
% ls -ld /smb/.dir-locals.el
dr-xr-xr-x 2 root root 0 Feb 24 08:10 /smb/.dir-locals.el

My map for /smb has a few named entries and then a wildcard entry, like:

* -fstype=autofs,-Dhost=&,-Duser=<cifs-username> file:/etc/<some-other-map>

and <some-other-map> has:

* 
-fstype=cifs,nocase,noserverino,credentials=<cred_file>,uid=${UID},gid=${GID},nounix
 ://${host}/&

so .dir-locals.el will be looked up as the hostname of a potential
windows machine that I may be able to mount, If the second wildcard, a
potential share exists, it will be mounted, so .dir-locals.el should
really be a directory (mount-point).  This would explain why emacs
thinks .dir-locals.el is a directory, because momentarily it is, until
the mount fails.

-- HASM


reply via email to

[Prev in Thread] Current Thread [Next in Thread]