From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Andrew W. Nosenko" Newsgroups: gmane.emacs.bugs Subject: bug#8439: [PATCH] ffap.el -- detect paths with spaces (v2) Date: Sat, 20 Oct 2012 01:57:43 +0300 Message-ID: References: <87pqoyaxu0.fsf@blue.sea.net> <874nlq9ah3.fsf@picasso.cante.net> <83a9vi23mi.fsf@gnu.org> <20121019223649.0699B538@courageux.cnchost.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1350687518 1218 80.91.229.3 (19 Oct 2012 22:58:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 19 Oct 2012 22:58:38 +0000 (UTC) Cc: 8439@debbugs.gnu.org, jari.aalto@cante.net To: Yigal Hochberg Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 20 00:58:43 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 1TPLWd-0007To-4d for geb-bug-gnu-emacs@m.gmane.org; Sat, 20 Oct 2012 00:58:43 +0200 Original-Received: from localhost ([::1]:41248 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TPLWW-000723-1E for geb-bug-gnu-emacs@m.gmane.org; Fri, 19 Oct 2012 18:58:36 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56494) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TPLWS-0006eG-Aa for bug-gnu-emacs@gnu.org; Fri, 19 Oct 2012 18:58:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TPLWR-0004dT-9j for bug-gnu-emacs@gnu.org; Fri, 19 Oct 2012 18:58:32 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42074) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TPLWR-0004dO-6A for bug-gnu-emacs@gnu.org; Fri, 19 Oct 2012 18:58:31 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TPLXu-00038w-Ll for bug-gnu-emacs@gnu.org; Fri, 19 Oct 2012 19:00:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Andrew W. Nosenko" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 19 Oct 2012 23:00: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.135068756312001 (code B ref 8439); Fri, 19 Oct 2012 23:00:02 +0000 Original-Received: (at 8439) by debbugs.gnu.org; 19 Oct 2012 22:59:23 +0000 Original-Received: from localhost ([127.0.0.1]:52324 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TPLXH-00037V-DN for submit@debbugs.gnu.org; Fri, 19 Oct 2012 18:59:23 -0400 Original-Received: from mail-vb0-f44.google.com ([209.85.212.44]:45978) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TPLXF-000373-49 for 8439@debbugs.gnu.org; Fri, 19 Oct 2012 18:59:22 -0400 Original-Received: by mail-vb0-f44.google.com with SMTP id fc26so1281731vbb.3 for <8439@debbugs.gnu.org>; Fri, 19 Oct 2012 15:57:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=z2woADSorREhb50ihyoP7hOU/L5XNYrQw66i4XYDg1c=; b=rfunaKiA8DtPYxaOnd4TMMpB0QXR8Bywdpok50SlS16Oz6a2RpbUgqITnFNLHG+U3/ TIJTbqm8IfHuobdQzVMED3CWtAoqAVaxi21P4EISZ25ezrmcJQMfEsBqxY71Dc7XQNsT bG5jH7W9yV2D1QCseHeLnn3vdJ65ygsPWmLQSHaD3nI9I7MDANHqeivjJYZFolSnImno BIUNEx4QyYGG3c4UBR5/YDsYqrM/K36erMhe9Tp/JTHjF+963XoInToUe8HBG0Hsx0P+ 6NxDp+k5smyj9t8YrmCDOBcMymNYtOoKcXVibtMG8Yh/GywnKT22hPov3+iD5Mcd9XrZ uVdw== Original-Received: by 10.220.226.7 with SMTP id iu7mr3575391vcb.64.1350687463499; Fri, 19 Oct 2012 15:57:43 -0700 (PDT) Original-Received: by 10.58.1.103 with HTTP; Fri, 19 Oct 2012 15:57:43 -0700 (PDT) In-Reply-To: <20121019223649.0699B538@courageux.cnchost.com> 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:65766 Archived-At: On Sat, Oct 20, 2012 at 1:36 AM, Yigal Hochberg wrote: > Eli, Andrew: > > What Jari did is an excellent solution (increment cheeking if file exists). > From a user point of view it is very powerful and useful. > > Marking a region is trivial but way too costly for me. I want to be one keystroke > away from getting this file. O, sorry, sorry and sorry again! I ever didn't mind that my "fallback" proposal can sound so seriously! It was intended as a very last resort, if there will be no reasonable way to avoid 50%/50% false positive/negative ratio. Logic was very simple: in any way to mark a region and call a function is faster than to mark a region, copy, call a function, paste and, optionally if copied pathname is relative, move to the beginning of the pasted pathname and then to kill to the beginning of minibuffer. > On Windows I use these type of paths: > > c:/Program Files/Open Text Evaluation Media/Open Text Exceed 14 x86/Program Files/Hummingbird/Connectivity/14.00/Default User/PerUser Settings.ini > c:\Program Files\Open Text Evaluation Media\Open Text Exceed 14 x86\Program Files\Hummingbird\Connectivity\14.00\Default User\PerUser Settings.ini > > c:/Program Files/Open Text Evaluation Media/Open Text Exceed 14 x86/Program Files/Hummingbird/ > c:\Program Files\Open Text Evaluation Media\Open Text Exceed 14 x86\Program Files\Hummingbird\ > > With Jari solution I can get to the file/dir in one keystroke. > I think that this is the power of emacs. No? > > Thanks, > > Yigal > > > On Fri, Oct 19, 2012 at 6:23 PM, Eli Zaretskii wrote: >>> Date: Sat, 20 Oct 2012 00:47:55 +0300 >>> From: "Andrew W. Nosenko" >>> Cc: Jari Aalto , hochberg@dmhsoftware.com, 8439@debbugs.gnu.org >>> >>> >> 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. >>> >>> Eli, excuse me very much, but you cheating. >> >>Actually, I had this weird idea that maybe the suggested heuristics >>could be improved. Now I'm sorry that I have spoken. >> -- Andrew W. Nosenko