From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#13033: 24.3.50; regression: read-file-name-internal handles "~" wrong Date: Fri, 30 Nov 2012 09:24:21 -0800 Message-ID: <409B80A02CEB4F14B201BE9F3D5EE93C@us.oracle.com> References: <7FC6A56C048B4EEAAE8EF71367793001@us.oracle.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1354296313 22989 80.91.229.3 (30 Nov 2012 17:25:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 30 Nov 2012 17:25:13 +0000 (UTC) Cc: 13033@debbugs.gnu.org To: "'Stefan Monnier'" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Nov 30 18:25:23 2012 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 1TeUL3-0003gP-3t for geb-bug-gnu-emacs@m.gmane.org; Fri, 30 Nov 2012 18:25:21 +0100 Original-Received: from localhost ([::1]:50222 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TeUKr-0006Cw-Lf for geb-bug-gnu-emacs@m.gmane.org; Fri, 30 Nov 2012 12:25:09 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:46369) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TeUKk-00068Q-48 for bug-gnu-emacs@gnu.org; Fri, 30 Nov 2012 12:25:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TeUKd-0004NU-LY for bug-gnu-emacs@gnu.org; Fri, 30 Nov 2012 12:25:01 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37003) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TeUKd-0004NQ-HX for bug-gnu-emacs@gnu.org; Fri, 30 Nov 2012 12:24:55 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TeUMf-0001Jb-Ot for bug-gnu-emacs@gnu.org; Fri, 30 Nov 2012 12:27:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 30 Nov 2012 17:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13033 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13033-submit@debbugs.gnu.org id=B13033.13542964005028 (code B ref 13033); Fri, 30 Nov 2012 17:27:01 +0000 Original-Received: (at 13033) by debbugs.gnu.org; 30 Nov 2012 17:26:40 +0000 Original-Received: from localhost ([127.0.0.1]:47254 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TeUMJ-0001J2-CC for submit@debbugs.gnu.org; Fri, 30 Nov 2012 12:26:40 -0500 Original-Received: from userp1040.oracle.com ([156.151.31.81]:24297) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TeUMH-0001It-4Y for 13033@debbugs.gnu.org; Fri, 30 Nov 2012 12:26:38 -0500 Original-Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by userp1040.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id qAUHOSrS030686 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 30 Nov 2012 17:24:29 GMT Original-Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id qAUHOSaQ015337 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 30 Nov 2012 17:24:28 GMT Original-Received: from abhmt103.oracle.com (abhmt103.oracle.com [141.146.116.55]) by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id qAUHORjB013558; Fri, 30 Nov 2012 11:24:28 -0600 Original-Received: from dradamslap1 (/10.159.169.89) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 30 Nov 2012 09:24:27 -0800 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: Ac3PHDgM4WMHgq0ZRbSL2O0FdJsHigAAlG9g X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.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:67669 Archived-At: > OK, that makes sense since older versions did not support > user-name completion. Now you say that (read-file-name-internal "~" > 'file-exists-p nil) returns "~/dradams/" and I can't understand where > the additional slash comes from. > > Also arguably, "~/" should also be a completion candidate, so > the above calls should not complete to "~dradams/" but to "~" > (the common prefix between the two possible completions). I cannot speak to why the / is included or why ~ is not considered the common prefix. Whoever implemented this change might be able to answer that. To me, the important point in this bug report is that there is no such directory: ~/dradams/. And there is no such directory ~dradams either. Returning either of those as a valid completion for a file/dir name is just plain wrong, I think. There is a directory that corresponds to ~. It is the HOME (env var) directory, which in my case is c:\. Seems like perhaps something that might be relevant for Unix/GNU/Linux has been inappropriately applied to Windows too. Dunno. I do not see why user-name completion (whatever that might mean for Unix/GNU/Linux file-name completion) is involved at all on Windows. The user login name has nothing to do with the user's home directory.