all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: HASM <netnews@invalid.com>
To: help-gnu-emacs@gnu.org
Subject: Re: .dir-locals/automount
Date: Tue, 24 Feb 2015 14:40:39 -0800	[thread overview]
Message-ID: <87pp8z53x4.fsf@127.0.0.1> (raw)
In-Reply-To: mailman.776.1424812114.31049.help-gnu-emacs@gnu.org

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


      parent reply	other threads:[~2015-02-24 22:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-24 17:20 .dir-locals/automount HASM
2015-02-24 21:08 ` .dir-locals/automount Glenn Morris
     [not found] ` <mailman.776.1424812114.31049.help-gnu-emacs@gnu.org>
2015-02-24 22:40   ` HASM [this message]

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

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

  git send-email \
    --in-reply-to=87pp8z53x4.fsf@127.0.0.1 \
    --to=netnews@invalid.com \
    --cc=help-gnu-emacs@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 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.