From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 23 07:12:51 2014 Received: (at submit) by debbugs.gnu.org; 23 Feb 2014 12:12:51 +0000 Received: from localhost ([127.0.0.1]:36305 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WHXvP-0001ho-6z for submit@debbugs.gnu.org; Sun, 23 Feb 2014 07:12:51 -0500 Received: from eggs.gnu.org ([208.118.235.92]:33409) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WHXvN-0001hc-6G for submit@debbugs.gnu.org; Sun, 23 Feb 2014 07:12:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WHXv9-0000ih-Ez for submit@debbugs.gnu.org; Sun, 23 Feb 2014 07:12:43 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:57098) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WHXv9-0000id-Bb for submit@debbugs.gnu.org; Sun, 23 Feb 2014 07:12:35 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35111) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WHXv0-0007C1-VN for bug-gnu-emacs@gnu.org; Sun, 23 Feb 2014 07:12:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WHXus-0000aW-Ja for bug-gnu-emacs@gnu.org; Sun, 23 Feb 2014 07:12:26 -0500 Received: from mail-pa0-x229.google.com ([2607:f8b0:400e:c03::229]:56025) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WHXus-0000aL-BY for bug-gnu-emacs@gnu.org; Sun, 23 Feb 2014 07:12:18 -0500 Received: by mail-pa0-f41.google.com with SMTP id fa1so5406706pad.0 for ; Sun, 23 Feb 2014 04:12:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version:content-type; bh=zLVSORY4fIeLHI17bMlO7nsNdiAxh3/2EoIMYseNwBg=; b=wpALc89llR2NpCPNZp2nysC0/qnRsSNecFpTkBQGekB3nBDA0lYFmm4u45IlZ13r1C d0t6wGlcRkR3TJxkU2Bu3BLxX8aYPkifqUZnxeCdhVeYtQz2FHzScbx0hRRpSd2EgsSc 7nwDfXH44JCJzIEWcO3JZXT35cB0TRH3qSdRAz52r7aJy7g0PaXbcsSZg6Yua/rwwlx9 FiOFifh0oBaiD0+s8SU0OPAw6DdRhTBQ8BE90R9ql/CPkHfvflYCyXTcHrYL42AgkVgD s8QEvO9gh3XgTxF1W0K/L/D10FHntn25HS16E3dnRFa2UkQEjUo+upzowaI6JymUzaVk HQOg== X-Received: by 10.68.129.201 with SMTP id ny9mr19218967pbb.70.1393157536805; Sun, 23 Feb 2014 04:12:16 -0800 (PST) Received: from Zeuss-MacBook.local ([61.149.216.62]) by mx.google.com with ESMTPSA id dk1sm39673551pbc.46.2014.02.23.04.12.15 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 23 Feb 2014 04:12:16 -0800 (PST) From: Leo Liu To: bug-gnu-emacs@gnu.org Subject: 24.3.50; file-truename removes trailing / on remote hosts X-Debbugs-CC: Michael Albinus Date: Sun, 23 Feb 2014 20:12:07 +0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) 1. Open dired on a remote host 2. eval (file-truename default-directory) The trailing / is gone. Leo From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 23 08:10:16 2014 Received: (at 16851) by debbugs.gnu.org; 23 Feb 2014 13:10:16 +0000 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 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 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) 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 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= 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) Received: by igel.home (Postfix, from userid 1000) id 976272C029E; Sun, 23 Feb 2014 14:10:11 +0100 (CET) From: Andreas Schwab To: Leo Liu Subject: Re: bug#16851: 24.3.50; file-truename removes trailing / on remote hosts References: X-Yow: Was my SOY LOAF left out in th'RAIN? It tastes REAL GOOD!! Date: Sun, 23 Feb 2014 14:10:11 +0100 In-Reply-To: (Leo Liu's message of "Sun, 23 Feb 2014 20:12:07 +0800") Message-ID: <87ios63rgs.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 16851 Cc: Michael Albinus , 16851@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) 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." From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 23 08:20:07 2014 Received: (at 16851) by debbugs.gnu.org; 23 Feb 2014 13:20:07 +0000 Received: from localhost ([127.0.0.1]:36336 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WHYyU-0004tz-CK for submit@debbugs.gnu.org; Sun, 23 Feb 2014 08:20:06 -0500 Received: from mail-yk0-f173.google.com ([209.85.160.173]:52270) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WHYyR-0004tN-Jp for 16851@debbugs.gnu.org; Sun, 23 Feb 2014 08:20:04 -0500 Received: by mail-yk0-f173.google.com with SMTP id 10so11424931ykt.4 for <16851@debbugs.gnu.org>; Sun, 23 Feb 2014 05:19:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=ypF/yumhOAbvhFxmFhVvlatPMyA9UMkEs8KBfqza6Q8=; b=G6HYEQLhx1ch1bSse3Svd44LFSFG7yS8X7DC485KedgLKjEHKtwaNFtBb3cMI0AAD/ 9nlXYP3ty4QU7b+Z+U1zCr2BBlciYXFEkhI2qaK+KYVyD9sB8JL0v4//KD39YqjuEenS ucoQFPTWDIQxktJL8c76geSxJyWuBE3GYjQILn/A2xybh8KaTaOAnruahz+DeDPIU/Ae aaNQNCbP2N30TW+ZLzlrlbg/hMrza0a92taElFwY+Q7ZCXInUu8U7NDhxUuxbi961f1K endtJk9Zj7evyYOtc8CU0ib73mR6lLINM4REs7vY8vPCuifd+qJKiK0/dZh/ArlMUvWR w2mQ== X-Received: by 10.236.23.71 with SMTP id u47mr23975711yhu.143.1393161597667; Sun, 23 Feb 2014 05:19:57 -0800 (PST) MIME-Version: 1.0 Received: by 10.170.197.1 with HTTP; Sun, 23 Feb 2014 05:19:17 -0800 (PST) In-Reply-To: <87ios63rgs.fsf@igel.home> References: <87ios63rgs.fsf@igel.home> From: Juanma Barranquero Date: Sun, 23 Feb 2014 14:19:17 +0100 Message-ID: Subject: Re: bug#16851: 24.3.50; file-truename removes trailing / on remote hosts To: Andreas Schwab Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 16851 Cc: Michael Albinus , Leo Liu , 16851@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On Sun, Feb 23, 2014 at 2:10 PM, Andreas Schwab 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 From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 23 08:26:39 2014 Received: (at 16851) by debbugs.gnu.org; 23 Feb 2014 13:26:39 +0000 Received: from localhost ([127.0.0.1]:36343 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WHZ4o-00054X-SH for submit@debbugs.gnu.org; Sun, 23 Feb 2014 08:26:39 -0500 Received: from mail-out.m-online.net ([212.18.0.10]:36238) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WHZ4l-00054K-7O for 16851@debbugs.gnu.org; Sun, 23 Feb 2014 08:26:35 -0500 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 3fX6cp2pVmz3hhyF; Sun, 23 Feb 2014 14:26:34 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3fX6cp2Nd1zbbcR; Sun, 23 Feb 2014 14:26:34 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de 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 J5MU6phU9sr3; Sun, 23 Feb 2014 14:26:33 +0100 (CET) X-Auth-Info: lJzbwZf17tFXtuCSKO/cucbqxTAN9Rp/nY8PNevuxzg= 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:26:33 +0100 (CET) Received: by igel.home (Postfix, from userid 1000) id 870AB2C0363; Sun, 23 Feb 2014 14:26:33 +0100 (CET) From: Andreas Schwab To: Juanma Barranquero Subject: Re: bug#16851: 24.3.50; file-truename removes trailing / on remote hosts References: <87ios63rgs.fsf@igel.home> X-Yow: I was making donuts and now I'm on a bus! Date: Sun, 23 Feb 2014 14:26:33 +0100 In-Reply-To: (Juanma Barranquero's message of "Sun, 23 Feb 2014 14:19:17 +0100") Message-ID: <87d2ie3qpi.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 16851 Cc: Michael Albinus , Leo Liu , 16851@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Juanma Barranquero writes: > On Sun, Feb 23, 2014 at 2:10 PM, Andreas Schwab 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@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 23 08:29:28 2014 Received: (at 16851) by debbugs.gnu.org; 23 Feb 2014 13:29:28 +0000 Received: from localhost ([127.0.0.1]:36347 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WHZ7W-0005Ao-VC for submit@debbugs.gnu.org; Sun, 23 Feb 2014 08:29:28 -0500 Received: from mail-yh0-f54.google.com ([209.85.213.54]:57936) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WHZ7U-0005AU-Nu for 16851@debbugs.gnu.org; Sun, 23 Feb 2014 08:29:25 -0500 Received: by mail-yh0-f54.google.com with SMTP id z6so4263855yhz.27 for <16851@debbugs.gnu.org>; Sun, 23 Feb 2014 05:29:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=Fgfq5yACACSzFu/Y0yjHHOMGObTBHTv6XIXHXmnqpLM=; b=BQAz7tjKWbh2FaQ2zUKOjYOjLALkWpcVWQXxzpDvOKuSJ0xEXBFg65IELHahUEmLZT dcCLuqByLrfBINxjoRa6pUXag022RfIzpEOC07LhasDNA1U2xzs75Tq8kDlMfx5aqble WcV96ZyTN4sN8kJMwTk2wiG0z7d0CkDutudxFA1TfaeX4AkiJZxJxQC5FuEW3iGmrkSv yQArS0V/dt3ZOxSUp89TJ1EgEZ8nJgsZKNsECnFdzx926m5+OW+turwVisGnioZByOhw TGF4TkJm+OozabltQTSx7luoJvSDAdZS3W/29GIu4GbfF7BIstXKMHOtm7zclNYl9ruo v46g== X-Received: by 10.236.17.195 with SMTP id j43mr23973549yhj.137.1393162159161; Sun, 23 Feb 2014 05:29:19 -0800 (PST) MIME-Version: 1.0 Received: by 10.170.197.1 with HTTP; Sun, 23 Feb 2014 05:28:38 -0800 (PST) In-Reply-To: <87d2ie3qpi.fsf@igel.home> References: <87ios63rgs.fsf@igel.home> <87d2ie3qpi.fsf@igel.home> From: Juanma Barranquero Date: Sun, 23 Feb 2014 14:28:38 +0100 Message-ID: Subject: Re: bug#16851: 24.3.50; file-truename removes trailing / on remote hosts To: Andreas Schwab Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 16851 Cc: Michael Albinus , Leo Liu , 16851@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On Sun, Feb 23, 2014 at 2:26 PM, Andreas Schwab wrote: > How is that a contradiction? It does not remove the trailing slash for a local directory. Apparently, it does for remote host directories. From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 23 08:38:08 2014 Received: (at 16851) by debbugs.gnu.org; 23 Feb 2014 13:38:09 +0000 Received: from localhost ([127.0.0.1]:36353 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WHZFv-0005Sl-5B for submit@debbugs.gnu.org; Sun, 23 Feb 2014 08:38:08 -0500 Received: from mail-out.m-online.net ([212.18.0.10]:41836) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WHZFp-0005SG-1H for 16851@debbugs.gnu.org; Sun, 23 Feb 2014 08:38:02 -0500 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 3fX6t014GKz3hjFh; Sun, 23 Feb 2014 14:37:59 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3fX6sz6cWnzbbfM; Sun, 23 Feb 2014 14:37:59 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de 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 rG-KyzfYItrm; Sun, 23 Feb 2014 14:37:59 +0100 (CET) X-Auth-Info: t0CehnKXcgi2WEpSdd66OcB6cSViYhZT9BWy7ru4Qm4= 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:37:59 +0100 (CET) Received: by igel.home (Postfix, from userid 1000) id 022A42C0569; Sun, 23 Feb 2014 14:37:58 +0100 (CET) From: Andreas Schwab To: Juanma Barranquero Subject: Re: bug#16851: 24.3.50; file-truename removes trailing / on remote hosts References: <87ios63rgs.fsf@igel.home> <87d2ie3qpi.fsf@igel.home> X-Yow: ..Hmmm...This thing is really VIBRATING! ..It's getting WARM, too! Date: Sun, 23 Feb 2014 14:37:58 +0100 In-Reply-To: (Juanma Barranquero's message of "Sun, 23 Feb 2014 14:28:38 +0100") Message-ID: <877g8m3q6h.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 16851 Cc: Michael Albinus , Leo Liu , 16851@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Juanma Barranquero writes: > On Sun, Feb 23, 2014 at 2:26 PM, Andreas Schwab 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@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 23 08:40:16 2014 Received: (at 16851) by debbugs.gnu.org; 23 Feb 2014 13:40:16 +0000 Received: from localhost ([127.0.0.1]:36359 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WHZI0-0005XW-4e for submit@debbugs.gnu.org; Sun, 23 Feb 2014 08:40:16 -0500 Received: from mail-yh0-f50.google.com ([209.85.213.50]:60882) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WHZHw-0005XC-Vq for 16851@debbugs.gnu.org; Sun, 23 Feb 2014 08:40:14 -0500 Received: by mail-yh0-f50.google.com with SMTP id 29so4198912yhl.23 for <16851@debbugs.gnu.org>; Sun, 23 Feb 2014 05:40:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=43jyArqetqP5jeq3OFaDt9ewXG0cumN7qhzEXOrzSpw=; b=ZSQUEHOuNF6Vp3C100TWcNoE4f1/TwYZpOeP3sG4ExR9tfEvc9o4OQqf3ubdF+BWN7 272VPMEqQiPHsMW8LRrKHiNWtaxKImReHN3jVMJnsD0EAiYA+rqFAVONmEm0Z/IZMEvQ Q0U/fsN3lstM4avafX0gMygHAU2PRz2zGbrnxeP+j3MChlOmKMgUzbYzT5lVPiuKoQfJ gXhNbx9kmjB0rDy9PTCZXGB5RxumbXo02bHuNKG0D8EX66BFS6WKeWTZAr0zKHQkQw75 SxFvtU0FNuLYdRSJOnwqlysEszeLDjrPM5ZkLB2I/n7cAaf/UcZsu6YNojGdoKmUECmB zzDw== X-Received: by 10.236.108.202 with SMTP id q50mr23374226yhg.146.1393162807197; Sun, 23 Feb 2014 05:40:07 -0800 (PST) MIME-Version: 1.0 Received: by 10.170.197.1 with HTTP; Sun, 23 Feb 2014 05:39:26 -0800 (PST) In-Reply-To: <877g8m3q6h.fsf@igel.home> References: <87ios63rgs.fsf@igel.home> <87d2ie3qpi.fsf@igel.home> <877g8m3q6h.fsf@igel.home> From: Juanma Barranquero Date: Sun, 23 Feb 2014 14:39:26 +0100 Message-ID: Subject: Re: bug#16851: 24.3.50; file-truename removes trailing / on remote hosts To: Andreas Schwab Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 16851 Cc: Michael Albinus , Leo Liu , 16851@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On Sun, Feb 23, 2014 at 2:37 PM, Andreas Schwab wrote: > Your use is outside the domain of the function How so? From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 23 09:52:44 2014 Received: (at 16851-done) by debbugs.gnu.org; 23 Feb 2014 14:52:44 +0000 Received: from localhost ([127.0.0.1]:36398 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WHaQ8-0007Rj-4U for submit@debbugs.gnu.org; Sun, 23 Feb 2014 09:52:44 -0500 Received: from mout.gmx.net ([212.227.17.21]:55513) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WHaQ4-0007RP-PT for 16851-done@debbugs.gnu.org; Sun, 23 Feb 2014 09:52:42 -0500 Received: from detlef.gmx.de ([87.146.53.131]) by mail.gmx.com (mrgmx002) with ESMTPS (Nemesis) id 0M9ra4-1WODBR0oci-00B232 for <16851-done@debbugs.gnu.org>; Sun, 23 Feb 2014 15:52:34 +0100 From: Michael Albinus To: Andreas Schwab Subject: Re: bug#16851: 24.3.50; file-truename removes trailing / on remote hosts References: <87ios63rgs.fsf@igel.home> Date: Sun, 23 Feb 2014 15:52:31 +0100 Message-ID: <87ios551ao.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:5M7eABcekpatouTZIWjS9y+43aJ61MATtkLHo9grO8IKVCM3rTL InEAJqAFOhxAFVxucwiUeFKJSXxOOY0xbUMgs8iZ3m5q95YiUL5Qce81CFr2fljEd5iiVEi dydXcKn0mNwmGStvmOtkk3I70l/7m54v5v44YBtJhuv26X9wzUcmQlWgjj4h/GRATkMKNAF qBeADzEYYbDbSEkV6Z4Lw== X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 16851-done Cc: Leo Liu , 16851-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Andreas Schwab writes: > 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). 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. From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 24 15:21:16 2014 Received: (at 16851) by debbugs.gnu.org; 24 Feb 2014 20:21:16 +0000 Received: from localhost ([127.0.0.1]:38214 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WI21b-0004rV-Iy for submit@debbugs.gnu.org; Mon, 24 Feb 2014 15:21:15 -0500 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:29799) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WI21a-0004rH-5J for 16851@debbugs.gnu.org; Mon, 24 Feb 2014 15:21:14 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8EABK/CFFsoXjX/2dsb2JhbABEuzWDWRdzgh4BAQQBViMFCws0EhQYDYhCBsEtjWGDKQOIYZwZgV6DFQ X-IPAS-Result: Av8EABK/CFFsoXjX/2dsb2JhbABEuzWDWRdzgh4BAQQBViMFCws0EhQYDYhCBsEtjWGDKQOIYZwZgV6DFQ X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="48639506" Received: from 108-161-120-215.dsl.teksavvy.com (HELO pastel.home) ([108.161.120.215]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 24 Feb 2014 15:21:08 -0500 Received: by pastel.home (Postfix, from userid 20848) id 94E8260054; Mon, 24 Feb 2014 15:21:08 -0500 (EST) From: Stefan Monnier To: 16851@debbugs.gnu.org Subject: Re: bug#16851: 24.3.50; file-truename removes trailing / on remote hosts Message-ID: References: <87ios63rgs.fsf@igel.home> <87ios551ao.fsf@gmx.de> Date: Mon, 24 Feb 2014 15:21:08 -0500 In-Reply-To: <87ios551ao.fsf@gmx.de> (Michael Albinus's message of "Sun, 23 Feb 2014 15:52:31 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 16851 Cc: michael.albinus@gmx.de, sdl.web@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) > 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 From unknown Fri Sep 05 09:31:36 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 25 Mar 2014 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator