From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#8439: [PATCH] ffap.el -- detect paths with spaces (v2) Date: Sat, 20 Oct 2012 10:11:56 +0200 Message-ID: <83ehktzho3.fsf@gnu.org> References: <87pqoyaxu0.fsf@blue.sea.net> <87zk3i7tbu.fsf@picasso.cante.net> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1350720752 17213 80.91.229.3 (20 Oct 2012 08:12:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 20 Oct 2012 08:12:32 +0000 (UTC) Cc: 8439@debbugs.gnu.org, jari.aalto@cante.net To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 20 10:12:39 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TPUAg-0002ex-AY for geb-bug-gnu-emacs@m.gmane.org; Sat, 20 Oct 2012 10:12:38 +0200 Original-Received: from localhost ([::1]:46840 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TPUAZ-0002za-1i for geb-bug-gnu-emacs@m.gmane.org; Sat, 20 Oct 2012 04:12:31 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56118) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TPUAW-0002zT-PY for bug-gnu-emacs@gnu.org; Sat, 20 Oct 2012 04:12:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TPUAV-0000dL-R3 for bug-gnu-emacs@gnu.org; Sat, 20 Oct 2012 04:12:28 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42345) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TPUAV-0000dF-N7 for bug-gnu-emacs@gnu.org; Sat, 20 Oct 2012 04:12:27 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TPUC1-0006yY-JJ for bug-gnu-emacs@gnu.org; Sat, 20 Oct 2012 04:14:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 20 Oct 2012 08:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8439 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 8439-submit@debbugs.gnu.org id=B8439.135072082926790 (code B ref 8439); Sat, 20 Oct 2012 08:14:01 +0000 Original-Received: (at 8439) by debbugs.gnu.org; 20 Oct 2012 08:13:49 +0000 Original-Received: from localhost ([127.0.0.1]:52596 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TPUBp-0006y2-Cl for submit@debbugs.gnu.org; Sat, 20 Oct 2012 04:13:49 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:33450) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TPUBm-0006xm-V6 for 8439@debbugs.gnu.org; Sat, 20 Oct 2012 04:13:48 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0MC600200MNG3M00@a-mtaout21.012.net.il> for 8439@debbugs.gnu.org; Sat, 20 Oct 2012 10:12:06 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MC60023AMS50B40@a-mtaout21.012.net.il>; Sat, 20 Oct 2012 10:12:05 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:65781 Archived-At: > From: Stefan Monnier > Date: Fri, 19 Oct 2012 21:44:02 -0400 > Cc: 8439@debbugs.gnu.org > > > + ;; Under Cygwin, convert drive letters in paths. > > + (when (and cygwin-p > > + (memq mode '(nil file)) > > + (string-match "^\\([a-zA-Z]\\):[/\\\\]\\(.*\\)" str)) > > + (let ((drive (downcase (match-string 1 str))) > > + (path (match-string 2 str))) > > + (setq str (format "/cygdrive/%s/%s" > > + drive > > + (replace-regexp-in-string "[\\\\]" "/" path))))) > > This shouldn't be here: the right way to do it is to make the Cygwin > Emacs accept Windows-style file name. Someone said in another discussion that Cygwin already does accept Windows-style file names.