all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: googleartist@yahoo.com (Artist)
Subject: Re: Word  Completion by  Association
Date: 3 Mar 2003 18:36:55 -0800	[thread overview]
Message-ID: <de3ad953.0303031836.435f41eb@posting.google.com> (raw)
In-Reply-To: YUR8a.151574$Zr%.124748@news01.bloor.is.net.cable.rogers.com

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.

Hope that would clarify.

Artist

  reply	other threads:[~2003-03-04  2:36 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 [this message]
2003-03-04  4:06     ` Unknown
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

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

  git send-email \
    --in-reply-to=de3ad953.0303031836.435f41eb@posting.google.com \
    --to=googleartist@yahoo.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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.