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#7617: 24.0.50; `expand-file-name': removal of slashes Date: Mon, 13 Dec 2010 06:51:39 -0800 Message-ID: <63C872A67A614E2EBEB3344231DEA88F@us.oracle.com> References: <7F477A16FFA145E5AB532A96F55D5CDC@us.oracle.com> <022D0B344DB64B2A9E1B771B0695237E@us.oracle.com> <83k4jeu6pf.fsf@gnu.org> <9CD33585D0844F0D957F8D72E13087B7@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1292251964 16705 80.91.229.12 (13 Dec 2010 14:52:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 13 Dec 2010 14:52:44 +0000 (UTC) Cc: 7617@debbugs.gnu.org To: "'Eli Zaretskii'" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Dec 13 15:52:39 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 1PS9lV-00023O-5x for geb-bug-gnu-emacs@m.gmane.org; Mon, 13 Dec 2010 15:52:37 +0100 Original-Received: from localhost ([127.0.0.1]:40331 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PS9lU-0002dE-K4 for geb-bug-gnu-emacs@m.gmane.org; Mon, 13 Dec 2010 09:52:36 -0500 Original-Received: from [140.186.70.92] (port=50265 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PS9lM-0002ZZ-TR for bug-gnu-emacs@gnu.org; Mon, 13 Dec 2010 09:52:30 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PS9lL-00005z-VB for bug-gnu-emacs@gnu.org; Mon, 13 Dec 2010 09:52:28 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57043) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PS9lL-00005r-Tf for bug-gnu-emacs@gnu.org; Mon, 13 Dec 2010 09:52:27 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PS9f8-0006Ke-5z; Mon, 13 Dec 2010 09:46:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 13 Dec 2010 14:46:02 +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.129225153424306 (code B ref 7617); Mon, 13 Dec 2010 14:46:02 +0000 Original-Received: (at 7617) by debbugs.gnu.org; 13 Dec 2010 14:45:34 +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 1PS9ef-0006Jy-Rj for submit@debbugs.gnu.org; Mon, 13 Dec 2010 09:45:34 -0500 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PS9ed-0006Ji-QD for 7617@debbugs.gnu.org; Mon, 13 Dec 2010 09:45:32 -0500 Original-Received: from rcsinet13.oracle.com (rcsinet13.oracle.com [148.87.113.125]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id oBDEpexS032641 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 13 Dec 2010 14:51:42 GMT Original-Received: from acsmt354.oracle.com (acsmt354.oracle.com [141.146.40.154]) by rcsinet13.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id oBDEpeGO016603; Mon, 13 Dec 2010 14:51:40 GMT Original-Received: from abhmt014.oracle.com by acsmt354.oracle.com with ESMTP id 849343511292251898; Mon, 13 Dec 2010 06:51:38 -0800 Original-Received: from dradamslap1 (/10.159.218.180) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 13 Dec 2010 06:51:37 -0800 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994 Thread-Index: AcuahRaPA6WyaLnEQCORlYiP8ZxMWQATIX/A X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 13 Dec 2010 09:46:02 -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:42483 Archived-At: > > Besides a workable but ugly replace-regexp-in-string hack that saves > > and restores consecutive slashes around a call to > > `expand-file-name', I don't see a good way to do that. > > If you seek suggestions for how to solve your problem in a non-ugly > way, please tell more about the problem. It's clear that one > _solution_ to that problem is to have the old behavior of > expand-file-name. But that behavior is gone and will not come back. > To suggest other solutions, we need to understand the problem. The behavior is no longer provided by `expand*'. But that behavior is what I want to achieve, in Lisp. Achieving that behavior is the problem. I understand that `expand*' is no longer the solution. > > And we should say what the function > > does/returns otherwise (e.g., say that it is undefined - i.e., that > > it is defined only in the case where the args are acceptable names > > for the file system). If we tell users that the args must be of a > > form acceptable by the current file system, then we should also tell > > them what happens otherwise (raise an error?...). > > If the argument doesn't have a valid file-name semantics, all bets are > off. Then that's what we should tell users: If either arg is not a file name acceptable to the file system then the behavior is undefined (aka we have no idea what will happen). This is not obvious - since we demand valid file names and produce a canonical name, one might well wonder what happens otherwise, whether we raise an error, for example.