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#6339: url-filename => "/c:/some/file.txt" Date: Thu, 06 Oct 2011 17:08:58 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1317935403 22221 80.91.229.12 (6 Oct 2011 21:10:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 6 Oct 2011 21:10:03 +0000 (UTC) Cc: Kevin Rodgers , 6339@debbugs.gnu.org To: Juanma Barranquero Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 06 23:09:57 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RBvCW-0004vO-UB for geb-bug-gnu-emacs@m.gmane.org; Thu, 06 Oct 2011 23:09:57 +0200 Original-Received: from localhost ([::1]:42633 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBvCW-0000Dt-Fj for geb-bug-gnu-emacs@m.gmane.org; Thu, 06 Oct 2011 17:09:56 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:60309) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBvCT-0000DW-Mp for bug-gnu-emacs@gnu.org; Thu, 06 Oct 2011 17:09:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RBvCS-0007dx-K4 for bug-gnu-emacs@gnu.org; Thu, 06 Oct 2011 17:09:53 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45140) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBvCS-0007do-BG for bug-gnu-emacs@gnu.org; Thu, 06 Oct 2011 17:09:52 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RBvCc-0000Yd-KA for bug-gnu-emacs@gnu.org; Thu, 06 Oct 2011 17:10:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 06 Oct 2011 21:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6339 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6339-submit@debbugs.gnu.org id=B6339.13179353602091 (code B ref 6339); Thu, 06 Oct 2011 21:10:02 +0000 Original-Received: (at 6339) by debbugs.gnu.org; 6 Oct 2011 21:09:20 +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 1RBvBv-0000Xc-L9 for submit@debbugs.gnu.org; Thu, 06 Oct 2011 17:09:20 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RBvBs-0000XO-T6 for 6339@debbugs.gnu.org; Thu, 06 Oct 2011 17:09:17 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAGAYjk7O+JxS/2dsb2JhbABCqDKBBoFTAQEEAVYjEAsOJhIUGA0kiBG4V4csBKEMhEQ X-IronPort-AV: E=Sophos;i="4.68,498,1312171200"; d="scan'208";a="140196654" Original-Received: from 206-248-156-82.dsl.teksavvy.com (HELO ceviche.home) ([206.248.156.82]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 06 Oct 2011 17:09:00 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 884B9663BE; Thu, 6 Oct 2011 17:08:59 -0400 (EDT) In-Reply-To: (Juanma Barranquero's message of "Thu, 6 Oct 2011 18:54:21 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 06 Oct 2011 17:10:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) 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:52318 Archived-At: >> But the patch you sent changes url-generic-parse-url so it presumably >> can affect many more places that just those that call url-filename. > url-generic-parse-url returns a url struct, and url-filename is the > accessor for the slot. If there's code that uses the slot without > going through the accessor, well... I think that's a bug (or, at the > very least, dangerous and ugly) and sooner or later we'll find > about it. Sorry, yes, the above paragraph was written before I remembered that url-filename was an accessor. I just forgot to erase it before sending. >> I think it's the right thing to do. =A0But maybe the best patch will need >> to rename the `filename' slot and to define url-filename to do the >> (expand-file-name (url-somethingelse URL) "/") or something like that. > I don't think you can do that, because, as explained before in the > thread, splitting the URL and using its parts are independent actions. > It is entirely possible to split a file URL and then use it in > different systems, isn't it? Let's not talk about that for now. Once there's a working patch there'll be less chance for confusion. Stefan