[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#18512: 24.3.93; tramp persistency file: incompatible with old versio
From: |
Stefan Monnier |
Subject: |
bug#18512: 24.3.93; tramp persistency file: incompatible with old versions? Tramp won't start! |
Date: |
Sat, 04 Oct 2014 18:34:04 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) |
> *** 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