From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#8439: [PATCH] ffap.el -- detect paths with spaces (v2) Date: Sat, 20 Oct 2012 14:01:04 +0300 Organization: JURTA Message-ID: <87txtph2lj.fsf@mail.jurta.org> 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 X-Trace: ger.gmane.org 1350730952 24164 80.91.229.3 (20 Oct 2012 11:02:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 20 Oct 2012 11:02:32 +0000 (UTC) Cc: hochberg@dmhsoftware.com, 8439@debbugs.gnu.org, Jari Aalto To: "Andrew W. Nosenko" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 20 13:02: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 1TPWpC-0000Wo-Nh for geb-bug-gnu-emacs@m.gmane.org; Sat, 20 Oct 2012 13:02:38 +0200 Original-Received: from localhost ([::1]:42400 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TPWp5-00075j-86 for geb-bug-gnu-emacs@m.gmane.org; Sat, 20 Oct 2012 07:02:31 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45609) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TPWp2-00075b-Kl for bug-gnu-emacs@gnu.org; Sat, 20 Oct 2012 07:02:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TPWp1-0002Nr-IK for bug-gnu-emacs@gnu.org; Sat, 20 Oct 2012 07:02:28 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42438) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TPWp1-0002Nn-Ey for bug-gnu-emacs@gnu.org; Sat, 20 Oct 2012 07:02:27 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TPWqX-0002Nw-OK for bug-gnu-emacs@gnu.org; Sat, 20 Oct 2012 07:04:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 20 Oct 2012 11:04: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.13507310199140 (code B ref 8439); Sat, 20 Oct 2012 11:04:01 +0000 Original-Received: (at 8439) by debbugs.gnu.org; 20 Oct 2012 11:03:39 +0000 Original-Received: from localhost ([127.0.0.1]:52689 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TPWqA-0002NN-PP for submit@debbugs.gnu.org; Sat, 20 Oct 2012 07:03:38 -0400 Original-Received: from ps18281.dreamhost.com ([69.163.218.105]:39030 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TPWq8-0002NF-QU for 8439@debbugs.gnu.org; Sat, 20 Oct 2012 07:03:37 -0400 Original-Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id E8EEC451CD66; Sat, 20 Oct 2012 04:01:59 -0700 (PDT) In-Reply-To: (Andrew W. Nosenko's message of "Sat, 20 Oct 2012 00:47:55 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (x86_64-pc-linux-gnu) 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:65788 Archived-At: > Even under Unix (where spaces inside filenames are very unusual) They are unusual for Unix native files but not rare when files created on Windows reach Unix file systems. So this problem is not unique to Windows (only the drive letter part of the problem is Windows-specific). > But, if there no way to make false positives amount small enough, I > would to propose an idea for extension: find-file-at-region(). You > just select a region of text, and Emacs tries to interprets it as > default value for find-file(). ffap used to fetch the selected region until Stefan removed this feature with the following comment: (let ((mark-active nil)) ;; Don't use the region here, since it can be something ;; completely unwieldy. If the user wants that, she could ;; use M-w before and then C-y. --Stef I have no problem with this change because ffap still can successfully fetch filenames with spaces due to `ffap-completable' that works surprisingly well in most cases (it incorrectly highlights the filename part until the first space, but correctly fetches the complete filename with spaces).