[Top][All Lists]

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

Re: .dir-locals/automount

From: Glenn Morris
Subject: Re: .dir-locals/automount
Date: Tue, 24 Feb 2015 16:08:30 -0500
User-agent: Gnus (, GNU Emacs (

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

What do:

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


> 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 via email to

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