GNU bug report logs -
#18512
no startup warning if user-emacs-directory is modfied and added to load-path
Previous Next
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 #45 received at 18512 <at> debbugs.gnu.org (full text, mbox):
> *** lisp/startup.el 2014-10-02 13:26:23 +0000
> --- lisp/startup.el 2014-10-04 18:53:16 +0000
> ***************
> *** 1286,1292 ****
> (let (warned)
> (dolist (dir load-path)
> (and (not warned)
> ! (string-match-p "/[._]emacs\\.d/?\\'" dir)
> (string-equal (file-name-as-directory (expand-file-name dir))
> (expand-file-name user-emacs-directory))
> (setq warned t)
> --- 1286,1296 ----
> (let (warned)
> (dolist (dir load-path)
> (and (not warned)
> ! (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?
AFAICT the next string-equal test (which should/could probably be
replaced by a file-equal-p test) is already more strict than what
you added.
Stefan
This bug report was last modified 10 years and 284 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.