unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Jambunathan K <kjambunathan@gmail.com>
Cc: 11131@debbugs.gnu.org
Subject: bug#11131: 24.0.94; Apropos bookmarks
Date: Tue, 11 Sep 2012 09:18:59 -0400	[thread overview]
Message-ID: <jwv4nn4iu0v.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87wr01htcz.fsf@gmail.com> (Jambunathan K.'s message of "Tue, 11 Sep 2012 13:41:08 +0530")

> With a simple ido-like completion (or iswitchb-like completion), I can
> jump to the function name quickly without typing the whole function
> name.

Again: "Which part of "ido-like" would you like to see there?".
IDO completion has many differences compared to Emacs's historical
prefix-completion.  But Emacs's current default completion code supports
several of those features.

E.g. in Emacs-24, C-x b provides substring completion (and if you
enable icomplete-mode which just shows you the list of completion
candidates at the end of the minibuffer, it gets even closer to
iswitchb).

> -	    (completing-read prompt
> +	    (ido-completing-read prompt

That is not an option: we want the completion behavior to be consistent,
and there's nothing magical about bookmarks which justifies a thoroughly
different behavior, I think.
OTOH, maybe bookmarks have particular properties which justify tweaking
the completion behavior for them, just like it is the case for C-x b.
E.g. we could make C-x r b use substring completion.

> Have bookmark use completing-read-function.

It does, since it calls completing-read which in turn calls the
completing-read-function.


        Stefan





  reply	other threads:[~2012-09-11 13:18 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-30  8:26 bug#11131: 24.0.94; Apropos bookmarks Jambunathan K
2012-03-30 12:45 ` Stefan Monnier
2012-09-11  8:11   ` Jambunathan K
2012-09-11 13:18     ` Stefan Monnier [this message]
2012-09-11 16:52       ` Jambunathan K
2012-09-11 18:04         ` Stefan Monnier
2012-09-11 19:29           ` Juri Linkov
2012-10-26 17:35         ` Stefan Monnier
2012-10-26 20:11           ` Jambunathan K
2012-10-26 20:45             ` Stefan Monnier

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=jwv4nn4iu0v.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=11131@debbugs.gnu.org \
    --cc=kjambunathan@gmail.com \
    /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).