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 17:56:43 +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 1317916693 15585 80.91.229.12 (6 Oct 2011 15:58:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 6 Oct 2011 15:58:13 +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 17:58:03 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 1RBqKf-0003VL-9v for geb-bug-gnu-emacs@m.gmane.org; Thu, 06 Oct 2011 17:58:01 +0200 Original-Received: from localhost ([::1]:35601 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBqKe-0000hf-Vl for geb-bug-gnu-emacs@m.gmane.org; Thu, 06 Oct 2011 11:58:00 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:56034) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBqKb-0000hM-Vb for bug-gnu-emacs@gnu.org; Thu, 06 Oct 2011 11:57:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RBqKX-0008SG-TO for bug-gnu-emacs@gnu.org; Thu, 06 Oct 2011 11:57:57 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59634) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBqKX-0008S2-Ro for bug-gnu-emacs@gnu.org; Thu, 06 Oct 2011 11:57:53 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RBqKg-0004iV-13 for bug-gnu-emacs@gnu.org; Thu, 06 Oct 2011 11:58:02 -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 15:58: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.131791666018102 (code B ref 6339); Thu, 06 Oct 2011 15:58:01 +0000 Original-Received: (at 6339) by debbugs.gnu.org; 6 Oct 2011 15:57:40 +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 1RBqKK-0004hv-73 for submit@debbugs.gnu.org; Thu, 06 Oct 2011 11:57:40 -0400 Original-Received: from mail-vw0-f44.google.com ([209.85.212.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RBqKI-0004hi-EM for 6339@debbugs.gnu.org; Thu, 06 Oct 2011 11:57:39 -0400 Original-Received: by vws5 with SMTP id 5so2385751vws.3 for <6339@debbugs.gnu.org>; Thu, 06 Oct 2011 08:57:23 -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=+hWXpw6UF0PcWtQ4NuhmNgaqevCa+vHoSlHfQ9Wvd7I=; b=b9jCAzQ+ybK1m9/y5Vxhb5l9e5fp6/VUDyQwSTq+1KEWnfFNf+IfTgD3TNtFTFrU9n 10mrpzgpG0bAmM2kDrI5sCqXgFt3BQX+6JrQpLC1z8TOaqbT/06qs0WkLEghEMu2lrDH k9Ewg/UFen7x+wqQAfaHAdQlBmem1NTxwRThY= Original-Received: by 10.68.19.4 with SMTP id a4mr6692712pbe.14.1317916643228; Thu, 06 Oct 2011 08:57:23 -0700 (PDT) Original-Received: by 10.142.223.13 with HTTP; Thu, 6 Oct 2011 08:56:43 -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 11:58: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:52295 Archived-At: On Thu, Oct 6, 2011 at 17:31, Stefan Monnier wro= te: > I understand the gist of it. I'm sure of it. > I'm interested in the actual resulting > code changes: the above sample patch fails to include the corresponding > (expand-file-name (url-filename ...) "/"), for example. There are 41 uses of (url-filename ...) in the Emacs sources, all of them in url\url*.el except two in net/xesam.el. I'm unwilling to go looking for things to fix and prepare such a patch unless there's some consensus that removing the slash is the Right Thing to Do. If the decision is that no, it isn't, then I suppose things like these: ---- C:\Devel\emacs\repo\trunk\lisp\url\url-handlers.el (or (file-name-directory (url-filename url)) "/") ---- C:\Devel\emacs\repo\trunk\lisp\url\url-parse.el (or (url-filename urlobj) "/") ---- C:\Devel\emacs\repo\trunk\lisp\url\url-expand.el (if (string-match "^/" (url-filename urlobj)) will have to be checked to see whether they are right for Windows. =C2=A0 =C2=A0 Juanma