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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 16851 in the body.
You can then email your comments to 16851 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to michael.albinus <at> gmx.de, bug-gnu-emacs <at> gnu.org:
bug#16851; Package emacs. (Sun, 23 Feb 2014 12:13:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Leo Liu <sdl.web <at> gmail.com>:
New bug report received and forwarded. Copy sent to michael.albinus <at> gmx.de, bug-gnu-emacs <at> gnu.org. (Sun, 23 Feb 2014 12:13:02 GMT) Full text and rfc822 format available.

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

From: Leo Liu <sdl.web <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3.50; file-truename removes trailing / on remote hosts
Date: Sun, 23 Feb 2014 20:12:07 +0800
1. Open dired on a remote host
2. eval (file-truename default-directory)

The trailing / is gone.

Leo




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#16851; Package emacs. (Sun, 23 Feb 2014 13:11:01 GMT) Full text and rfc822 format available.

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."




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#16851; Package emacs. (Sun, 23 Feb 2014 13:21:01 GMT) Full text and rfc822 format available.

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

From: Juanma Barranquero <lekktu <at> gmail.com>
To: Andreas Schwab <schwab <at> linux-m68k.org>
Cc: Michael Albinus <michael.albinus <at> gmx.de>, Leo Liu <sdl.web <at> gmail.com>,
 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:19:17 +0100
On Sun, Feb 23, 2014 at 2:10 PM, Andreas Schwab <schwab <at> linux-m68k.org> wrote:

> I don't think this is a bug as file-truename operates on file names, but
> default-directory is a directory

And yet

(file-truename default-directory) => "c:/Devel/emacs/repo/trunk/"

   J




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#16851; Package emacs. (Sun, 23 Feb 2014 13:27:02 GMT) Full text and rfc822 format available.

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

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: Juanma Barranquero <lekktu <at> gmail.com>
Cc: Michael Albinus <michael.albinus <at> gmx.de>, Leo Liu <sdl.web <at> gmail.com>,
 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:26:33 +0100
Juanma Barranquero <lekktu <at> gmail.com> writes:

> On Sun, Feb 23, 2014 at 2:10 PM, Andreas Schwab <schwab <at> linux-m68k.org> wrote:
>
>> I don't think this is a bug as file-truename operates on file names, but
>> default-directory is a directory
>
> And yet
>
> (file-truename default-directory) => "c:/Devel/emacs/repo/trunk/"

How is that a contradiction?

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."




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#16851; Package emacs. (Sun, 23 Feb 2014 13:30:06 GMT) Full text and rfc822 format available.

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

From: Juanma Barranquero <lekktu <at> gmail.com>
To: Andreas Schwab <schwab <at> linux-m68k.org>
Cc: Michael Albinus <michael.albinus <at> gmx.de>, Leo Liu <sdl.web <at> gmail.com>,
 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:28:38 +0100
On Sun, Feb 23, 2014 at 2:26 PM, Andreas Schwab <schwab <at> linux-m68k.org> wrote:

> How is that a contradiction?

It does not remove the trailing slash for a local directory.
Apparently, it does for remote host directories.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#16851; Package emacs. (Sun, 23 Feb 2014 13:39:02 GMT) Full text and rfc822 format available.

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

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: Juanma Barranquero <lekktu <at> gmail.com>
Cc: Michael Albinus <michael.albinus <at> gmx.de>, Leo Liu <sdl.web <at> gmail.com>,
 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:37:58 +0100
Juanma Barranquero <lekktu <at> gmail.com> writes:

> On Sun, Feb 23, 2014 at 2:26 PM, Andreas Schwab <schwab <at> linux-m68k.org> wrote:
>
>> How is that a contradiction?
>
> It does not remove the trailing slash for a local directory.
> Apparently, it does for remote host directories.

Your use is outside the domain of the function, so nothing is
guaranteed.

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."




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#16851; Package emacs. (Sun, 23 Feb 2014 13:41:01 GMT) Full text and rfc822 format available.

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

From: Juanma Barranquero <lekktu <at> gmail.com>
To: Andreas Schwab <schwab <at> linux-m68k.org>
Cc: Michael Albinus <michael.albinus <at> gmx.de>, Leo Liu <sdl.web <at> gmail.com>,
 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:39:26 +0100
On Sun, Feb 23, 2014 at 2:37 PM, Andreas Schwab <schwab <at> linux-m68k.org> wrote:

> Your use is outside the domain of the function

How so?




Reply sent to Michael Albinus <michael.albinus <at> gmx.de>:
You have taken responsibility. (Sun, 23 Feb 2014 14:53:02 GMT) Full text and rfc822 format available.

Notification sent to Leo Liu <sdl.web <at> gmail.com>:
bug acknowledged by developer. (Sun, 23 Feb 2014 14:53:02 GMT) Full text and rfc822 format available.

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

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

> 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).

I tend to agree that this is not a bug. OTOH, it is easy to change Tramp
to behave like `file-truename' on local file names, so I've changed it.

> Andreas.

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#16851; Package emacs. (Mon, 24 Feb 2014 20:22:01 GMT) Full text and rfc822 format available.

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

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: 16851 <at> debbugs.gnu.org
Cc: michael.albinus <at> gmx.de, sdl.web <at> gmail.com
Subject: Re: bug#16851: 24.3.50;
 file-truename removes trailing / on remote hosts
Date: Mon, 24 Feb 2014 15:21:08 -0500
> I tend to agree that this is not a bug. OTOH, it is easy to change Tramp
> to behave like `file-truename' on local file names, so I've changed it.

Thanks.  It's clearly the better behavior (since it preserves more info
from its argument).


        Stefan




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 25 Mar 2014 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 10 years and 34 days ago.

Previous Next


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