GNU bug report logs - #16851
24.3.50; file-truename removes trailing / on remote hosts

Previous Next

Package: emacs;

Reported by: Leo Liu <sdl.web <at> gmail.com>

Date: Sun, 23 Feb 2014 12:13:02 UTC

Severity: normal

Found in version 24.3.50

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

Bug is archived. No further changes may be made.

Full log


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

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: Leo Liu <sdl.web <at> gmail.com>
Cc: Michael Albinus <michael.albinus <at> gmx.de>, 16851 <at> debbugs.gnu.org
Subject: Re: bug#16851: 24.3.50;
 file-truename removes trailing / on remote hosts
Date: Sun, 23 Feb 2014 14:10:11 +0100
Leo Liu <sdl.web <at> gmail.com> writes:

> 1. Open dired on a remote host
> 2. eval (file-truename default-directory)
>
> The trailing / is gone.

I don't think this is a bug as file-truename operates on file names, but
default-directory is a directory (so use directory-file-name first, and
file-name-as-directory afterwards).

Andreas.

-- 
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




This bug report was last modified 11 years and 167 days ago.

Previous Next


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