GNU bug report logs - #32218
26.1; default-directory in TRAMP root has two slashes when using find-file-visit-truename

Previous Next

Package: emacs;

Reported by: Allen Li <darkfeline <at> felesatra.moe>

Date: Fri, 20 Jul 2018 01:45:02 UTC

Severity: normal

Tags: fixed

Found in version 26.1

Fixed in version 26.2

Done: Michael Albinus <michael.albinus <at> gmx.de>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Allen Li <darkfeline <at> felesatra.moe>
Cc: 32218 <at> debbugs.gnu.org
Subject: bug#32218: 26.1; default-directory in TRAMP root has two slashes when using find-file-visit-truename
Date: Fri, 20 Jul 2018 11:14:15 +0200
Allen Li <darkfeline <at> felesatra.moe> writes:

Hi Allen,

> 1. emacs -q
> 2. M-: (setq find-file-visit-truename t) RET
> 3. C-x C-f /sudo::/ RET
> 4. M-: default-directory RET
>
> Expected value: /sudo::/
> Actual: /sudo:://

Thanks for reporting this.

> I have attached a patch implementing this, made against emacs-26 since
> this is a straightforward bug fix.

Thanks for this. However, also `tramp-handle-file-truename' and
`tramp-adb-handle-file-truename' suffer from this bug. It was fixed
already in the master branch some months ago.

I have cherry-picked that fix back to the emacs-26 branch, could you pls
recheck that it works for you?

Best regards, Michael.




This bug report was last modified 6 years and 306 days ago.

Previous Next


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