unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Stefan Monnier" <monnier+gnu/emacs@RUM.cs.yale.edu>
Cc: emacs-devel@gnu.org
Subject: Re: extending icomplete -- help?
Date: Fri, 05 Apr 2002 09:47:47 -0500	[thread overview]
Message-ID: <200204051447.g35EllJ23003@rum.cs.yale.edu> (raw)
In-Reply-To: 87sn6acv7h.fsf@confusibombus.i-did-not-set--mail-host-address--so-tickle-me

> I'm trying to modify icomplete such as to allow the typing of
> arbitrary substrings for completion, not just beginnings of words.  At
> the current stage I need some more help from people that understand
> minibuffers better than I do.

I don't understand.  icomplete does not change the way completion works.
It only displays extra info about what completion would do if it was invoked.
You code doesn't seem to change this (since it doesn't change any of the
bindings in minibuffer-local-completion-map).  What am I missing ?

For what it's worth, I wrote a complete replacement for the current
completion functions (replacing the C functions with elisp ones)
which includes partial-completion-mode functionality plus substring-matching
as well (and I updated icomplete to know about it).

More specifically, if you type

	foo*bar-baz<TAB>

it will first try to see if "foo*bar?baz" is a prefix of one of the
completions (i.e. it first tries the current completion system,
as opposed to partial-completion-mode which immediately would try
too look for something that matches "\\`foo.*bar[^-]*-baz") if
that fails, it tries to see if something matches "\\`foo.*bar.*-baz",
if that still fails, it tries "foo.*bar.*-baz".

The intention is to replace the current basic completion
functions with this new code (just like I did for newcomment.el).

The code has been working fine for me for a while, but it needs cleaning
up and discussion of how exactly to integrate it.  If anybody is
interested in helping out...


	Stefan

       reply	other threads:[~2002-04-05 14:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87sn6acv7h.fsf@confusibombus.i-did-not-set--mail-host-address--so-tickle-me>
2002-04-05 14:47 ` Stefan Monnier [this message]
2002-04-05 15:36   ` extending icomplete -- help? Alex Schroeder
2002-04-05 17:18     ` Kai Großjohann
2002-04-06 11:51       ` Alex Schroeder

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=200204051447.g35EllJ23003@rum.cs.yale.edu \
    --to=monnier+gnu/emacs@rum.cs.yale.edu \
    --cc=emacs-devel@gnu.org \
    /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).