From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#7617: 24.0.50; `expand-file-name': removal of slashes Date: Sun, 12 Dec 2010 21:33:32 +0200 Message-ID: <83k4jeu6pf.fsf@gnu.org> References: <7F477A16FFA145E5AB532A96F55D5CDC@us.oracle.com> <022D0B344DB64B2A9E1B771B0695237E@us.oracle.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1292183557 28250 80.91.229.12 (12 Dec 2010 19:52:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 12 Dec 2010 19:52:37 +0000 (UTC) Cc: 7617@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Dec 12 20:52:33 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PRryC-0000zD-AA for geb-bug-gnu-emacs@m.gmane.org; Sun, 12 Dec 2010 20:52:32 +0100 Original-Received: from localhost ([127.0.0.1]:42134 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PRryB-0005of-M6 for geb-bug-gnu-emacs@m.gmane.org; Sun, 12 Dec 2010 14:52:31 -0500 Original-Received: from [140.186.70.92] (port=44198 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PRry6-0005mG-RO for bug-gnu-emacs@gnu.org; Sun, 12 Dec 2010 14:52:27 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PRry5-0003CP-Vi for bug-gnu-emacs@gnu.org; Sun, 12 Dec 2010 14:52:26 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40125) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PRry5-0003CJ-Sp for bug-gnu-emacs@gnu.org; Sun, 12 Dec 2010 14:52:25 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PRrbR-0000Tg-Ll; Sun, 12 Dec 2010 14:29:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 12 Dec 2010 19:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7617 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7617-submit@debbugs.gnu.org id=B7617.12921821341823 (code B ref 7617); Sun, 12 Dec 2010 19:29:01 +0000 Original-Received: (at 7617) by debbugs.gnu.org; 12 Dec 2010 19:28:54 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PRrbK-0000TL-3A for submit@debbugs.gnu.org; Sun, 12 Dec 2010 14:28:54 -0500 Original-Received: from mtaout21.012.net.il ([80.179.55.169]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PRrbH-0000T8-78 for 7617@debbugs.gnu.org; Sun, 12 Dec 2010 14:28:51 -0500 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0LDB00300Y65AH00@a-mtaout21.012.net.il> for 7617@debbugs.gnu.org; Sun, 12 Dec 2010 21:33:16 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.229.142.197]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LDB0031SYBF0470@a-mtaout21.012.net.il>; Sun, 12 Dec 2010 21:33:16 +0200 (IST) In-reply-to: <022D0B344DB64B2A9E1B771B0695237E@us.oracle.com> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 12 Dec 2010 14:29:01 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:42444 Archived-At: > From: "Drew Adams" > Cc: <7617@debbugs.gnu.org> > Date: Sun, 12 Dec 2010 10:03:08 -0800 > > > Please explain why you consider this a bug. foo//bar is at best > > equivalent to foo/bar, > > In what way is that _ever_ equivalent? Please show the equivalence for any of > the OS's that Emacs supports. On Unix and GNU/Linux -- always, in the sense that file-related system calls will treat them the same. On Windows -- sometimes, depending on the implementation of the standard C library. > In interactive use, `...//abc...' is treated as just `/abc...' by Emacs. The > prefix `.../' is ignored until you hit `RET'. And then the prefix is dropped > when you enter the file name (`RET') - but only then. And that's appropriate. > Other than when you actually hit `RET', the prefix should not be removed but > simply ignored. That's right, but I was talking about non-interactive uses. I believe in interactive use, Emacs still does what you (and I) expect. > Then please create a separate primitive the does just that. Feel free to file a separate feature request for that. > Currently, there is no way to maintain the integrity of the user's input if that > input is passed through `expand-file-name' to do what the doc says `expand*' > does. If all you need is ignore everything before the double slash, there are easier ways than asking to change a primitive.