unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Unknown <unknown@unknown.invalid>
Subject: Re: Word  Completion by  Association
Date: Tue, 04 Mar 2003 04:06:14 GMT	[thread overview]
Message-ID: <WCV8a.153424$Zr%.128486@news01.bloor.is.net.cable.rogers.com> (raw)
In-Reply-To: de3ad953.0303031836.435f41eb@posting.google.com

Artist wrote:

> Le Wang <lewang(at@)yahoo.com> wrote in message
> news:<YUR8a.151574$Zr%.124748@news01.bloor.is.net.cable.rogers.com>...
>> Artist wrote:
>> 
>> > Hi I am looking for mechanism which allows me to complete the word
>> > based on association.  Example: I have only 4 words : [artist],
>> > [google], [emacs], [gnu]
>> > 
>> > then the 'representations'   r , o, m, u should be enough to complete
>> > the above words respectively. Now lets say that we add the word
>> > [glass] in my set. Then 'glass' can be represented by 'l' and if we
>> > add the word [late] it could be represented by 'lt'. It's like
>> > shorthand for emacs or 'auto abbreviation'.
>> > 
>> > The key is that emacs automatically defines the abbreviations and let
>> > us know.
>> > 
>> > Is it already  possible?  difficult? possible at all?
>> 
>> Your questions are nothing if not interesting. ;)
>> 
>> Have you given any thought as to how you would implement such a completion
>> system.
>> 
>> Currently substring completion is possible and it does most of what you ask
>> for.  See icomplete, mcomplete.
> 
> Hi,
>   You may call this method: Auto Abbreviation in a buffer.
>   When I type the text in buffer, it should automagically note each
> word and figure out different combination of it, and make combination
> index which when typed in buffer again should result in uniq word.
> 
> ex.. If I type:
> ---------- This is emacs
>  It should create an index file in such a way that
> when I type 'T' or 'h'   and hit some completion command it should
> complete with  'This'.
> 
> My word:  Completion Word
> Ti        This
> hi        This
> ts        This
> em        emacs
> mc        emacs
> is        is
> go        go
> es        emacs
> 
> 
> Thus I need to recall minimum letter of what I typed earlier. This is
> much like iswitchb interface with the addition that you can type any
> combination of letters, not necessarily sequentially.  When I add more
> words, above table will change on fly or with some command
> 
> I dont' know about mcomplete, but icomplete mode is not enough for
> this.

mcomplete does substring completion for minibuffer input.

I see that you want substring completing for buffer content.  I'm pretty 
certain this does not exist right now.  Maybe you can make it as a 
hippie-expand method.

--
Le

  reply	other threads:[~2003-03-04  4:06 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-03 20:13 Word Completion by Association Artist
2003-03-03 23:16 ` jean daniel browne
2003-03-03 23:52 ` Unknown
2003-03-04  2:36   ` Artist
2003-03-04  4:06     ` Unknown [this message]
2003-03-04 18:51     ` Edward O'Connor
2003-03-05 14:42       ` Artist
2003-03-06 15:39         ` Bijan Soleymani
2003-03-10 20:09 ` 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='WCV8a.153424$Zr%.128486@news01.bloor.is.net.cable.rogers.com' \
    --to=unknown@unknown.invalid \
    /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.
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).