From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#7229: 23.1; ido guess and ffap bug Date: Sat, 13 Jul 2013 05:28:04 +0400 Message-ID: <51E0AD24.9010504@yandex.ru> References: <20101016200828.264940@gmx.net> <8761wfpein.fsf@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1373678950 17184 80.91.229.3 (13 Jul 2013 01:29:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 13 Jul 2013 01:29:10 +0000 (UTC) Cc: Thibault Kruse , 7229@debbugs.gnu.org To: Leo Liu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 13 03:29:10 2013 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 1Uxoe5-0000su-Nf for geb-bug-gnu-emacs@m.gmane.org; Sat, 13 Jul 2013 03:29:09 +0200 Original-Received: from localhost ([::1]:56780 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uxoe5-0008M4-Am for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Jul 2013 21:29:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34248) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uxoe0-0008Lk-RQ for bug-gnu-emacs@gnu.org; Fri, 12 Jul 2013 21:29:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uxody-0005K9-8y for bug-gnu-emacs@gnu.org; Fri, 12 Jul 2013 21:29:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57315) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uxody-0005K4-5b for bug-gnu-emacs@gnu.org; Fri, 12 Jul 2013 21:29:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Uxodx-0007wE-Ly for bug-gnu-emacs@gnu.org; Fri, 12 Jul 2013 21:29:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 13 Jul 2013 01:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7229 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7229-submit@debbugs.gnu.org id=B7229.137367889330395 (code B ref 7229); Sat, 13 Jul 2013 01:29:01 +0000 Original-Received: (at 7229) by debbugs.gnu.org; 13 Jul 2013 01:28:13 +0000 Original-Received: from localhost ([127.0.0.1]:51629 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UxodB-0007uB-0y for submit@debbugs.gnu.org; Fri, 12 Jul 2013 21:28:13 -0400 Original-Received: from mail-lb0-f182.google.com ([209.85.217.182]:60167) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Uxod9-0007tv-Pt for 7229@debbugs.gnu.org; Fri, 12 Jul 2013 21:28:12 -0400 Original-Received: by mail-lb0-f182.google.com with SMTP id r11so8122949lbv.13 for <7229@debbugs.gnu.org>; Fri, 12 Jul 2013 18:28:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding :x-antivirus:x-antivirus-status; bh=SqUeGMx5nz1VoNMEwA+FxByQeNE15pFCWa1gX0YdB/o=; b=v6latNcmxnNiF2DvV0JGloYV1a0oo2MG4pNDsiXGdJjWrAHjIkFi6o9h6WPLJmSDXI aohsOo5kU8NtC9RZ0iuRFhJrryA39hMAhcLL6W+1Bo7e7m7tde6ewBd4W/QjrtN7UQ7U ZrkSOtZCqZepdVx13rNWaNoR0Y45SZSaBe2oNb8Ol+N3543ltUl5TC9dVdic1gm+RyBa UFcxwJWKftDOGSUqLTWioguBh0tWituvCYLbPtT/uQOZGCV2CL4V7AwDFbfIct29+zg3 or9ni18CETGssUSXTyXBYEXEgo4TgmgVenp7kXebv42lQxebg/NF67zy0qPsxnk18/zd 9RvQ== X-Received: by 10.152.23.99 with SMTP id l3mr20317391laf.82.1373678885293; Fri, 12 Jul 2013 18:28:05 -0700 (PDT) Original-Received: from [127.0.0.1] ([178.252.98.87]) by mx.google.com with ESMTPSA id c4sm15260665lae.7.2013.07.12.18.28.03 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 12 Jul 2013 18:28:04 -0700 (PDT) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 In-Reply-To: X-Antivirus: avast! (VPS 130712-1, 12.07.2013), Outbound message X-Antivirus-Status: Clean X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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:76307 Archived-At: On 13.07.2013 5:20, Leo Liu wrote: > On 2013-07-13 07:03 +0800, Dmitry Gutov wrote: >> Maybe we should be able to restrict `ffap-file-at-point' to local files >> (which it checks for existence). >> >> After all, the variable that enables this behavior is called >> `ido-use-filename-at-point', and the description does not tell you that >> the thing at point could be interpreted as a remote URL. > > Is ffap-url-regexp enough? Not 100% sure what you mean, but probably not: 1) It doesn't match "/**", a value which apparently (ffap-guesser) can return even if there's no existing file with that name. 2) Likewise, it doesn't match "http:/". And I'm sure we can find other examples.