[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#16851: 24.3.50; file-truename removes trailing / on remote hosts
From: |
Andreas Schwab |
Subject: |
bug#16851: 24.3.50; file-truename removes trailing / on remote hosts |
Date: |
Sun, 23 Feb 2014 14:10:11 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
Leo Liu <sdl.web@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@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
bug#16851: 24.3.50; file-truename removes trailing / on remote hosts, Michael Albinus, 2014/02/23