From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.bugs Subject: bug#16851: 24.3.50; file-truename removes trailing / on remote hosts Date: Sun, 23 Feb 2014 14:10:11 +0100 Message-ID: <87ios63rgs.fsf@igel.home> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1393161071 28014 80.91.229.3 (23 Feb 2014 13:11:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 23 Feb 2014 13:11:11 +0000 (UTC) Cc: Michael Albinus , 16851@debbugs.gnu.org To: Leo Liu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Feb 23 14:11:18 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WHYpy-00036a-8J for geb-bug-gnu-emacs@m.gmane.org; Sun, 23 Feb 2014 14:11:18 +0100 Original-Received: from localhost ([::1]:52809 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WHYpx-0001Sp-Q6 for geb-bug-gnu-emacs@m.gmane.org; Sun, 23 Feb 2014 08:11:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43675) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WHYpo-0001SW-P6 for bug-gnu-emacs@gnu.org; Sun, 23 Feb 2014 08:11:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WHYpi-0002yP-J5 for bug-gnu-emacs@gnu.org; Sun, 23 Feb 2014 08:11:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35146) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WHYpi-0002yL-FP for bug-gnu-emacs@gnu.org; Sun, 23 Feb 2014 08:11:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WHYph-0004bd-U4 for bug-gnu-emacs@gnu.org; Sun, 23 Feb 2014 08:11:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andreas Schwab Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 23 Feb 2014 13:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16851 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16851-submit@debbugs.gnu.org id=B16851.139316101617628 (code B ref 16851); Sun, 23 Feb 2014 13:11:01 +0000 Original-Received: (at 16851) by debbugs.gnu.org; 23 Feb 2014 13:10:16 +0000 Original-Received: from localhost ([127.0.0.1]:36328 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WHYox-0004aD-Rh for submit@debbugs.gnu.org; Sun, 23 Feb 2014 08:10:16 -0500 Original-Received: from mail-out.m-online.net ([212.18.0.10]:56448) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WHYov-0004a1-QC for 16851@debbugs.gnu.org; Sun, 23 Feb 2014 08:10:14 -0500 Original-Received: from frontend1.mail.m-online.net (frontend1.mail.intern.m-online.net [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 3fX6Fw67F3z3hhyS; Sun, 23 Feb 2014 14:10:12 +0100 (CET) Original-Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3fX6Fw3v71zbbfZ; Sun, 23 Feb 2014 14:10:12 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Original-Received: from mail.mnet-online.de ([192.168.8.180]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id St_PcnY4_iG7; Sun, 23 Feb 2014 14:10:11 +0100 (CET) X-Auth-Info: 5uyJpyi1aWvZwNCvyY9S6vtHjCkqsSOiTVla26RO7eQ= Original-Received: from igel.home (ppp-46-244-227-107.dynamic.mnet-online.de [46.244.227.107]) by mail.mnet-online.de (Postfix) with ESMTPA; Sun, 23 Feb 2014 14:10:11 +0100 (CET) Original-Received: by igel.home (Postfix, from userid 1000) id 976272C029E; Sun, 23 Feb 2014 14:10:11 +0100 (CET) X-Yow: Was my SOY LOAF left out in th'RAIN? It tastes REAL GOOD!! In-Reply-To: (Leo Liu's message of "Sun, 23 Feb 2014 20:12:07 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:86062 Archived-At: Leo Liu 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."