From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.help Subject: Re: .dir-locals/automount Date: Tue, 24 Feb 2015 16:08:30 -0500 Message-ID: References: <871tlf6xbr.fsf@127.0.0.1> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1424812134 492 80.91.229.3 (24 Feb 2015 21:08:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 24 Feb 2015 21:08:54 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: HASM Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Feb 24 22:08:47 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YQMik-0005Ch-5O for geh-help-gnu-emacs@m.gmane.org; Tue, 24 Feb 2015 22:08:46 +0100 Original-Received: from localhost ([::1]:51405 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQMij-00071x-8b for geh-help-gnu-emacs@m.gmane.org; Tue, 24 Feb 2015 16:08:45 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39825) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQMiW-00070G-6s for help-gnu-emacs@gnu.org; Tue, 24 Feb 2015 16:08:33 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YQMiV-0006tW-1i for help-gnu-emacs@gnu.org; Tue, 24 Feb 2015 16:08:32 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:38955) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQMiU-0006tS-Uz for help-gnu-emacs@gnu.org; Tue, 24 Feb 2015 16:08:30 -0500 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1YQMiU-000277-BF; Tue, 24 Feb 2015 16:08:30 -0500 X-Spook: INSCOM NORAD Ansar al-Islam Europol Crowell rs9512c SP4 X-Ran: "-3aXvz)#VxJ>p8i;-"BPFiCEu5:v%]}POc>Q`4)|w?e=EXrN[5G^#,L+=V`lmIO%+ X-Hue: magenta X-Attribution: GM In-Reply-To: <871tlf6xbr.fsf@127.0.0.1> (HASM's message of "Tue, 24 Feb 2015 09:20:08 -0800") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:102875 Archived-At: 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. ;)