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:42 -0800 Message-ID: <0C4C99D992E6435E9931DA26D1DD476E@us.oracle.com> References: <7F477A16FFA145E5AB532A96F55D5CDC@us.oracle.com><022D0B344DB64B2A9E1B771B0695237E@us.oracle.com><83k4jeu6pf.fsf@gnu.org><0910543A74614DBD82DA14ED1B5E4D17@us.oracle.com> <8D21A82F766C4B0493597D9B294A7983@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 1292253767 26361 80.91.229.12 (13 Dec 2010 15:22:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 13 Dec 2010 15:22:47 +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 16:22:41 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 1PSAEZ-0000Rx-3P for geb-bug-gnu-emacs@m.gmane.org; Mon, 13 Dec 2010 16:22:39 +0100 Original-Received: from localhost ([127.0.0.1]:37979 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PSAEY-00043W-Be for geb-bug-gnu-emacs@m.gmane.org; Mon, 13 Dec 2010 10:22:38 -0500 Original-Received: from [140.186.70.92] (port=57975 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PSAEQ-000427-0f for bug-gnu-emacs@gnu.org; Mon, 13 Dec 2010 10:22:32 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PSAEO-0001H2-LM for bug-gnu-emacs@gnu.org; Mon, 13 Dec 2010 10:22:29 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50767) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PSAEO-0001Gy-Jd for bug-gnu-emacs@gnu.org; Mon, 13 Dec 2010 10:22:28 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PS9g6-0006MO-Ab; Mon, 13 Dec 2010 09:47: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:47: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.129225159124407 (code B ref 7617); Mon, 13 Dec 2010 14:47:02 +0000 Original-Received: (at 7617) by debbugs.gnu.org; 13 Dec 2010 14:46:31 +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 1PS9fb-0006Lc-4F for submit@debbugs.gnu.org; Mon, 13 Dec 2010 09:46:31 -0500 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PS9fZ-0006LQ-Gk for 7617@debbugs.gnu.org; Mon, 13 Dec 2010 09:46:29 -0500 Original-Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id oBDEqcqG002786 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 13 Dec 2010 14:52:40 GMT Original-Received: from acsmt355.oracle.com (acsmt355.oracle.com [141.146.40.155]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id oBDEW9M9012214; Mon, 13 Dec 2010 14:52:36 GMT Original-Received: from abhmt014.oracle.com by acsmt353.oracle.com with ESMTP id 869300591292251901; Mon, 13 Dec 2010 06:51:41 -0800 Original-Received: from dradamslap1 (/10.159.218.180) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 13 Dec 2010 06:51:40 -0800 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994 Thread-Index: AcuahdetWM76GacVTa6s4ZvfEzgoZwATDMqg X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 13 Dec 2010 09:47: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:42485 Archived-At: > perhaps you run the string through expand-file-name too early, > before massaging it in some way that gives a valid file name. I do not want to change the strings into valid file names. That should be clear by now. > Or maybe that you should run expand-file-name only on parts > of the file name, the parts that _are_ valid file names. That's one possibility, I suppose. But I'm not really eager to analyze string inputs to try to discover pieces that might be valid file names for various operating systems. And it's not clear what that would mean in terms of the expansion I'm after (which is exactly the expansion of `expand*' minus the slash collapsing). But I recognize what you suggest as a possibility. Likewise, removing any ignorable prefix temporarily, expanding, and reapplying the prefix. Such approaches seem messier than what I'm doing now, which at least leverages `expand*' (for its OS knowledge and expansion function), and then undoes the slash collapsing. > Call expand-file-name on parts of a file name, then `concat' them > together (with any number of slashes that you want)? See above. I appreciate your trying to help, however.