unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Leo Liu <sdl.web@gmail.com>
To: "Thibault Kruse" <thibault.kruse@gmx.de>
Cc: 7229@debbugs.gnu.org
Subject: bug#7229: 23.1; ido guess and ffap bug
Date: Fri, 12 Jul 2013 09:43:33 +0800	[thread overview]
Message-ID: <m1r4f4pn7e.fsf@gmail.com> (raw)
In-Reply-To: <m1vc4gpo9q.fsf@gmail.com> (Leo Liu's message of "Fri, 12 Jul 2013 09:20:33 +0800")

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





  reply	other threads:[~2013-07-12  1:43 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-16 20:08 bug#7229: 23.1; ido guess and ffap bug Thibault Kruse
2010-10-24 19:06 ` bug#7229: patch Thibault Kruse
2010-10-24 19:09 ` Thibault Kruse
2011-03-11 17:02 ` bug#7229: further patch Thibault Kruse
2013-07-11 16:23 ` bug#7229: 23.1; ido guess and ffap bug Leo Liu
2013-07-12 23:03   ` Dmitry Gutov
2013-07-13  1:20     ` Leo Liu
2013-07-13  1:28       ` Dmitry Gutov
2013-07-12  1:20 ` Leo Liu
2013-07-12  1:43   ` Leo Liu [this message]
     [not found]     ` <trinity-a533030b-3b06-4782-a22a-e375aeeb1416-1373614579651@3capp-gmx-bs03>
2013-07-12  7:48       ` bug#7229: Aw: " Leo Liu
     [not found]         ` <trinity-a290f8a8-f7aa-4dce-8eee-958dff7573c7-1373615567287@3capp-gmx-bs03>
2013-07-13  1:25           ` bug#7229: Aw: " Leo Liu
2013-07-13  8:01             ` bug#7229: Aw: " Thibault Kruse
2013-07-13 17:31               ` Leo Liu
2013-07-13 18:38                 ` bug#7229: Aw: Re: bug#7229: " Thibault Kruse

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m1r4f4pn7e.fsf@gmail.com \
    --to=sdl.web@gmail.com \
    --cc=7229@debbugs.gnu.org \
    --cc=thibault.kruse@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).