all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Glenn Morris <rgm@gnu.org>
Cc: david.reitter@gmail.com, 18512@debbugs.gnu.org
Subject: 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	[thread overview]
Message-ID: <jwvoatqovg1.fsf-monnier+emacsbugs@gnu.org> (raw)
In-Reply-To: <qra95bp8sj.fsf@fencepost.gnu.org> (Glenn Morris's message of "Sat, 04 Oct 2014 22:09: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





      reply	other threads:[~2014-10-06  1:11 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-20  3:26 bug#18512: 24.3.93; tramp persistency file: incompatible with old versions? Tramp won't start! David Reitter
2014-09-20  7:24 ` Michael Albinus
2014-09-20  8:09   ` Glenn Morris
2014-09-20  8:14     ` Glenn Morris
2014-09-20  9:51       ` Michael Albinus
2014-09-20 20:45         ` Stefan Monnier
2014-09-21  2:38     ` David Reitter
2014-09-21 13:52       ` Glenn Morris
2014-09-21 18:25         ` David Reitter
2014-09-21 21:36           ` Glenn Morris
2014-09-21 22:54             ` David Reitter
2014-10-04 18:58               ` Glenn Morris
2014-10-04 22:34                 ` Stefan Monnier
2014-10-05  2:09                   ` Glenn Morris
2014-10-06  1:11                     ` Stefan Monnier [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvoatqovg1.fsf-monnier+emacsbugs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=18512@debbugs.gnu.org \
    --cc=david.reitter@gmail.com \
    --cc=rgm@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.