From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#4823: w32 paths `substitute-in-file-name' fails when environmental variable is set for \\ style paths: Date: Wed, 28 Oct 2009 20:43:33 -0400 Message-ID: References: Reply-To: Stefan Monnier , 4823@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1256778456 15287 80.91.229.12 (29 Oct 2009 01:07:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 29 Oct 2009 01:07:36 +0000 (UTC) Cc: 4823@emacsbugs.donarmstrong.com, MON KEY To: Juanma Barranquero Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 29 02:07:29 2009 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.50) id 1N3JU8-0005nx-Fc for geb-bug-gnu-emacs@m.gmane.org; Thu, 29 Oct 2009 02:07:28 +0100 Original-Received: from localhost ([127.0.0.1]:35169 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N3JU7-00051k-Ct for geb-bug-gnu-emacs@m.gmane.org; Wed, 28 Oct 2009 21:07:27 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N3JU2-00051G-Pj for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2009 21:07:22 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N3JTy-00050Q-EL for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2009 21:07:22 -0400 Original-Received: from [199.232.76.173] (port=47825 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N3JTx-00050A-Uc for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2009 21:07:17 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:47223) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N3JTw-0000wM-Np for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2009 21:07:17 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9T17EJw015951; Wed, 28 Oct 2009 18:07:14 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n9T0o5FQ013295; Wed, 28 Oct 2009 17:50:05 -0700 Resent-Date: Wed, 28 Oct 2009 17:50:05 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Stefan Monnier Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Thu, 29 Oct 2009 00:50:05 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 4823 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 4823-submit@emacsbugs.donarmstrong.com id=B4823.125677702012614 (code B ref 4823); Thu, 29 Oct 2009 00:50:05 +0000 Original-Received: (at 4823) by emacsbugs.donarmstrong.com; 29 Oct 2009 00:43:40 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from ironport2-out.pppoe.ca (ironport2-out.teksavvy.com [206.248.154.181]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9T0hcKg012609 for <4823@emacsbugs.donarmstrong.com>; Wed, 28 Oct 2009 17:43:39 -0700 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqgEAPSB6EpLd/xb/2dsb2JhbACBT9l5hD8EiEs X-IronPort-AV: E=Sophos;i="4.44,642,1249272000"; d="scan'208";a="48337473" Original-Received: from 75-119-252-91.dsl.teksavvy.com (HELO pastel.home) ([75.119.252.91]) by ironport2-out.pppoe.ca with ESMTP; 28 Oct 2009 20:43:33 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 0B57A8013; Wed, 28 Oct 2009 20:43:33 -0400 (EDT) In-Reply-To: (Juanma Barranquero's message of "Wed, 28 Oct 2009 22:38:34 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Wed, 28 Oct 2009 21:07:22 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list 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:32268 Archived-At: > According to the docstring of `substitute-in-file-name': > If `//' appears, everything up to and including the first of > those `/' is discarded. Admittedly, I think substitute-in-file-name implements this feature incorrectly, because the double-slash handling should be done before envvar expansion (envvars ceom from outside Emacs usually, so they generally rely on the convention that /foo///bar is equivalent to /foo/bar rather than to /bar). OTOH if an envvar holds "http://foo/bar", then we'd want to use url-handler-mode's implementation of substitute-in-file-name, which would argue for doing expansion early. It's probably tricky to get it to do the right thing in "all" cases. Stefan