From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: jari Newsgroups: gmane.emacs.bugs Subject: bug#8439: [PATCH] ffap.el -- detect paths with spaces (v2) Date: Fri, 19 Oct 2012 13:05:56 +0300 Message-ID: <20121019100556.GT19374@picasso.cante.net> References: <87pqoyaxu0.fsf@blue.sea.net> <874nlq9ah3.fsf@picasso.cante.net> <83a9vi23mi.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1350641204 16346 80.91.229.3 (19 Oct 2012 10:06:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 19 Oct 2012 10:06:44 +0000 (UTC) Cc: hochberg@dmhsoftware.com, 8439@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 19 12:06:50 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 1TP9Td-0007nV-Hh for geb-bug-gnu-emacs@m.gmane.org; Fri, 19 Oct 2012 12:06:49 +0200 Original-Received: from localhost ([::1]:53369 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TP9TW-0004Hw-AI for geb-bug-gnu-emacs@m.gmane.org; Fri, 19 Oct 2012 06:06:42 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:33446) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TP9TO-00049D-L8 for bug-gnu-emacs@gnu.org; Fri, 19 Oct 2012 06:06:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TP9TN-0004uq-KQ for bug-gnu-emacs@gnu.org; Fri, 19 Oct 2012 06:06:34 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40871) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TP9TN-0004um-Gb for bug-gnu-emacs@gnu.org; Fri, 19 Oct 2012 06:06:33 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TP9Uo-00089n-5S for bug-gnu-emacs@gnu.org; Fri, 19 Oct 2012 06:08:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: jari Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 19 Oct 2012 10:08:02 +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.135064125331313 (code B ref 8439); Fri, 19 Oct 2012 10:08:02 +0000 Original-Received: (at 8439) by debbugs.gnu.org; 19 Oct 2012 10:07:33 +0000 Original-Received: from localhost ([127.0.0.1]:51122 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TP9UK-000890-S8 for submit@debbugs.gnu.org; Fri, 19 Oct 2012 06:07:33 -0400 Original-Received: from emh01.mail.saunalahti.fi ([62.142.5.107]:37578) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TP9UH-00088p-97 for 8439@debbugs.gnu.org; Fri, 19 Oct 2012 06:07:30 -0400 Original-Received: from saunalahti-vams (vs3-11.mail.saunalahti.fi [62.142.5.95]) by emh01.mail.saunalahti.fi (Postfix) with SMTP id B714E900A1; Fri, 19 Oct 2012 13:05:58 +0300 (EEST) Original-Received: from emh02.mail.saunalahti.fi ([62.142.5.108]) by vs3-11.mail.saunalahti.fi ([62.142.5.95]) with SMTP (gateway) id A024D0B33B4; Fri, 19 Oct 2012 13:05:58 +0300 Original-Received: from picasso.cante.net (a91-155-178-192.elisa-laajakaista.fi [91.155.178.192]) by emh02.mail.saunalahti.fi (Postfix) with ESMTP id 511D1818DC; Fri, 19 Oct 2012 13:05:56 +0300 (EEST) Original-Received: from jaalto by picasso.cante.net with local (Exim 4.80) (envelope-from ) id 1TP9Sm-0000La-7X; Fri, 19 Oct 2012 13:05:56 +0300 Content-Disposition: inline In-Reply-To: <83a9vi23mi.fsf@gnu.org> X-Gpg-Key-Id: 0xD189E680 X-Gpg-Key-Info: http://pool.sks-keyservers.net:11371/pks/lookup?op=vindex&search=0xD189E680 X-Gpg-Key-Get: http://pool.sks-keyservers.net:11371/pks/lookup?search=0xD189E680&op=get User-Agent: Mutt/1.5.21 (2010-09-15) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: jaalto@picasso.cante.net X-SA-Exim-Scanned: No (on picasso.cante.net); SAEximRunCond expanded to false X-Antivirus: VAMS 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:65730 Archived-At: On 2012-10-19 11:49, Eli Zaretskii wrote: | > | > 1. New variable ffap-paths-with-spaces controls if the behavior is in use. | > By default it is set to "t" in Windows/Cygwin where spaces in paths | > are encountered. | | GNU Coding Standards frown upon using "path" for anything except | PATH-style lists of directories. Use "file name" or "leading | directories" instead. | | > 2. The "path skipping" is based on finding longest distance: | > | > - from first "drive letter", "/" or "\" | > - until last "/", "\" followed by last non-matching-char-not-usually-found-in-file-names | | What will this do to text such as the one below? | | C:\emacs\bin\prog1.exe on Windows or /usr/bin/prog1 on Unix. User can enable/disable if spaces are taken into account. If enabled, the result is: "C:\emacs\bin\prog1.exe on Windows or /usr/bin/prog1" If disabled, depending on cursor position: "C:\emacs\bin\prog1.exe" "/usr/bin/prog1" If you have strategiy to make it better, please suggest. | > 3. In Cygwin Emacs the paths are expected to be in "/cygdrive//" | > format. | | What about Posix-standard /foo/bar/baz, which is the usual case on | Cygwin? Only ":" is converted into "/cygdrive/" under Cygwin. Jari