GNU bug report logs - #18512
no startup warning if user-emacs-directory is modfied and added to load-path

Previous Next

Package: emacs;

Reported by: David Reitter <david.reitter <at> gmail.com>

Date: Sat, 20 Sep 2014 03:28:02 UTC

Severity: minor

Found in version 24.3.93

Fixed in version 25.1

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #51 received at 18512 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Glenn Morris <rgm <at> gnu.org>
Cc: david.reitter <at> gmail.com, 18512 <at> debbugs.gnu.org
Subject: Re: bug#18512: 24.3.93;
 tramp persistency file: incompatible with old versions? Tramp won't
 start!
Date: Sun, 05 Oct 2014 21:11:00 -0400
>>> ! 	   (string-match-p
>>> ! 	    (format "/%s/?\\'"
>>> ! 		    (regexp-quote
>>> ! 		     (file-name-nondirectory
>>> ! 		      (directory-file-name user-emacs-directory)))) dir)
>>> (string-equal (file-name-as-directory (expand-file-name dir))
>>> (expand-file-name user-emacs-directory))
>>> (setq warned t)
>> Why not simply remove the (string-match-p "/[._]emacs\\.d/?\\'" dir) test?
> It may have been a pointless attempt to avoid statting the file-system
> unless it looked like it was going to be needed. (Does expand-file-name
> even do that?)

No, expand-file-name doesn't touch the file-system.  And neither does
file-name-as-directory.  These are just string operations.
Using file-equal-p would, OTOH.


        Stefan




This bug report was last modified 10 years and 285 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.