From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leo Liu Newsgroups: gmane.emacs.bugs Subject: bug#7229: 23.1; ido guess and ffap bug Date: Fri, 12 Jul 2013 09:43:33 +0800 Message-ID: References: <20101016200828.264940@gmx.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1373593448 31014 80.91.229.3 (12 Jul 2013 01:44:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Jul 2013 01:44:08 +0000 (UTC) Cc: 7229@debbugs.gnu.org To: "Thibault Kruse" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 12 03:44:08 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 1UxSP1-0000on-Vx for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Jul 2013 03:44:08 +0200 Original-Received: from localhost ([::1]:33933 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UxSP1-00020T-AV for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Jul 2013 21:44:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58546) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UxSOy-00020N-3p for bug-gnu-emacs@gnu.org; Thu, 11 Jul 2013 21:44:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UxSOw-0000px-Uk for bug-gnu-emacs@gnu.org; Thu, 11 Jul 2013 21:44:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54664) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UxSOw-0000pI-QP for bug-gnu-emacs@gnu.org; Thu, 11 Jul 2013 21:44:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1UxSOw-0005Ad-6e for bug-gnu-emacs@gnu.org; Thu, 11 Jul 2013 21:44:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Leo Liu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 12 Jul 2013 01:44:02 +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.137359343619856 (code B ref 7229); Fri, 12 Jul 2013 01:44:02 +0000 Original-Received: (at 7229) by debbugs.gnu.org; 12 Jul 2013 01:43:56 +0000 Original-Received: from localhost ([127.0.0.1]:48980 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UxSOq-0005AC-IQ for submit@debbugs.gnu.org; Thu, 11 Jul 2013 21:43:56 -0400 Original-Received: from mail-pd0-f180.google.com ([209.85.192.180]:62767) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UxSOo-00059x-FW for 7229@debbugs.gnu.org; Thu, 11 Jul 2013 21:43:55 -0400 Original-Received: by mail-pd0-f180.google.com with SMTP id 10so8033981pdi.25 for <7229@debbugs.gnu.org>; Thu, 11 Jul 2013 18:43:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:face:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=WbUx1knFPdxOQ+IU95/qsBJ37ncvZC4MLnkKcBS7PCw=; b=Ld3vHNClIXH61VyEHvwBHmB4g5KansLF0A7+lq0aVZ513yNe4CrWOX7Gz14UcSjTTj vky4thHy8bJ+rgrkKQpDavICJtAWvwwJXd3NjlM2RxpYlBiKuxPGsIRZLhBUZNGcU2ah W6VK7qt9443C7sK1Eh9eXGlordRByAAWsKMYsPLsG1uOsJTyGfamkARbwaXO4H3AVhIV a1C5VKC0kVu921mEPSrzarINAeIWjXgal1nkFk9cdJbmKcgOXewxRzz0icfu1hhwYgNi w6s/mUbd6W7mu5ctJBKN0PV/Rl7AlXYOwQOtuXx+JkQtikt5J029LqRCEf0hIhv/Ty4G Ydgw== X-Received: by 10.68.28.232 with SMTP id e8mr39671928pbh.94.1373593428320; Thu, 11 Jul 2013 18:43:48 -0700 (PDT) Original-Received: from Zeuss-MacBook.local ([182.48.101.29]) by mx.google.com with ESMTPSA id vu5sm44962611pab.10.2013.07.11.18.43.44 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 11 Jul 2013 18:43:47 -0700 (PDT) Face: iVBORw0KGgoAAAANSUhEUgAAACgAAAAoAgMAAADxkFD+AAAADFBMVEUvT09qWs3/pQD///+J kUVcAAAAAWJLR0QAiAUdSAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9cBBwMLOd3veKQA AACuSURBVBjTldE9CgIxEAXgB+lEyFUC2wo5ikdZ8DSypxhMY7H9VuIVwlqkGRgnm59VsHGafIQ3 CZlAtmKIRaHETgYa12lqvEsPYKf8wXHsPGfqPaUM0g9aJPKFXkmNQmSDqwzz4Fpgpz+6WAPY2z5o uPJJpu0uypcl4nyCibMLQ8lCiVjayLoQvw5LsVKQuHPRR958HZbOcVsKeepcLxpByjycGvnKmY+c MBvrtyjfe0vmuLvdq/kAAAAASUVORK5CYII= In-Reply-To: (Leo Liu's message of "Fri, 12 Jul 2013 09:20:33 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (OS X 10.8.4) 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:76255 Archived-At: On 2013-07-12 09:20 +0800, Leo Liu wrote: > Then maybe call it sub-optimal default behavior instead of a bug. >From my experience I agree. I enabled ido-use-url-at-point and ido-use-filename-at-point for a while and was constantly annoyed by false positives and negatives. I have set both to nil in the last few years. Maybe the feature can be changed this way: 1. remove both ido-use-url-at-point and ido-use-filename-at-point 2. when ido-find-file is invoked with prefix, use ffap. You can experiment this with the following: (setq ido-use-filename-at-point nil ido-use-url-at-point nil) (defadvice ido-file-internal (around ffap activate) "When called with a prefix, use `ffap' instead." (if current-prefix-arg (ffap) ad-do-it)) Let me know if this is a good idea and should be part of ido.el. Thanks. Leo