From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.bugs Subject: bug#6339: url-filename => "/c:/some/file.txt" Date: Thu, 6 Oct 2011 18:54:21 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1317920162 10510 80.91.229.12 (6 Oct 2011 16:56:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 6 Oct 2011 16:56:02 +0000 (UTC) Cc: Kevin Rodgers , 6339@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 06 18:55:58 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 1RBrEj-0001eZ-PZ for geb-bug-gnu-emacs@m.gmane.org; Thu, 06 Oct 2011 18:55:57 +0200 Original-Received: from localhost ([::1]:42862 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBrEj-0000f4-Bc for geb-bug-gnu-emacs@m.gmane.org; Thu, 06 Oct 2011 12:55:57 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:57813) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBrEg-0000Zw-AQ for bug-gnu-emacs@gnu.org; Thu, 06 Oct 2011 12:55:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RBrEe-00048L-Rh for bug-gnu-emacs@gnu.org; Thu, 06 Oct 2011 12:55:54 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57917) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBrEe-00048H-NU for bug-gnu-emacs@gnu.org; Thu, 06 Oct 2011 12:55:52 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RBrEn-00066U-Ri for bug-gnu-emacs@gnu.org; Thu, 06 Oct 2011 12:56:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juanma Barranquero Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 06 Oct 2011 16:56:01 +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.131792011923412 (code B ref 6339); Thu, 06 Oct 2011 16:56:01 +0000 Original-Received: (at 6339) by debbugs.gnu.org; 6 Oct 2011 16:55:19 +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 1RBrE6-00065Y-Rm for submit@debbugs.gnu.org; Thu, 06 Oct 2011 12:55:19 -0400 Original-Received: from mail-vx0-f172.google.com ([209.85.220.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RBrE4-00065J-MI for 6339@debbugs.gnu.org; Thu, 06 Oct 2011 12:55:17 -0400 Original-Received: by vcbfo11 with SMTP id fo11so2461768vcb.3 for <6339@debbugs.gnu.org>; Thu, 06 Oct 2011 09:55:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=oZV0h5i/Yfj4jAZ514KoiRZlyewpUVgO+mqb2kdrttU=; b=tpdxTCz3szvxXIqk90GqnoRM57vuZ6nCT5E4mJyBUdqumnFbgSvtf5tCU1K5Q17Npv 2FQq+RsC9H9Krq26lGClFBaLZ0U2dn4mR0bjA9U91bybC2oiPW+mHGDtKy8sbVfiiR6l nnhuDcnwWLu7Tsoa5PIT4EHGGthrz8g27TTKU= Original-Received: by 10.68.14.97 with SMTP id o1mr7102244pbc.0.1317920101113; Thu, 06 Oct 2011 09:55:01 -0700 (PDT) Original-Received: by 10.142.223.13 with HTTP; Thu, 6 Oct 2011 09:54:21 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 06 Oct 2011 12:56:01 -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:52299 Archived-At: On Thu, Oct 6, 2011 at 18:49, Stefan Monnier wro= te: > 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. > I think it's the right thing to do. =C2=A0But maybe the best patch will n= eed > 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? =C2=A0 =C2=A0 Juanma