unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Glenn Morris <rgm@gnu.org>
To: HASM <netnews@invalid.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: .dir-locals/automount
Date: Tue, 24 Feb 2015 16:08:30 -0500	[thread overview]
Message-ID: <mh9ubow4x.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <871tlf6xbr.fsf@127.0.0.1> (HASM's message of "Tue, 24 Feb 2015 09:20:08 -0800")

HASM wrote:

>   /smb/windows_host/share/path/to/file/on/windows_host/share
> I get this error:
>   Error reading dir-locals: (file-error "Read error" "is a directory" "/smb/.dir-locals.el")

It's a message, not an error (unless you have debug-on-error non-nil).
It sounds like your smb share is returning weird file results.
See eg http://debbugs.gnu.org/10928

What do:

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

return?

> Setting the obsolete variable automount-dir-prefix as
>   (setq automount-dir-prefix "^/smb/")
> makes no difference.
> Setting its replacement
>   (setq directory-abbrev-alist '(("^/smb/" . "/"))
> makes the opening fail.
>
> What is the workaround for this?  

Adding an entry for /smb to locate-dominating-stop-dir-regexp ought to
avoid the issue:

net\\|afs  ->  net\\|afs\\|smb

> (Works fine on xemacs ...)

XEmacs doesn't have directory local variables, does it?
For a slightly less antediluvian experience, you could revert to Emacs
22.3, which doesn't have them either. ;)



  reply	other threads:[~2015-02-24 21:08 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 ` Glenn Morris [this message]
     [not found] ` <mailman.776.1424812114.31049.help-gnu-emacs@gnu.org>
2015-02-24 22:40   ` .dir-locals/automount HASM

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=mh9ubow4x.fsf@fencepost.gnu.org \
    --to=rgm@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    --cc=netnews@invalid.com \
    /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.
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).