all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Dmitry Gutov'" <dgutov@yandex.ru>
Cc: 'Christopher Schmidt' <christopher@ristopher.com>, emacs-devel@gnu.org
Subject: RE: completion.el users?
Date: Sat, 11 May 2013 12:33:39 -0700	[thread overview]
Message-ID: <F6CC06409D6345819ECEC2560AC90B0B@us.oracle.com> (raw)
In-Reply-To: <518E8E93.1010804@yandex.ru>

> > 1. Is auto-complete-mode part of Emacs?  I don't think so.  
> > Let's not divert the thread, if not.  The question is whether
> > Emacs already contains a reasonable replacement for
> > completion.el.
> 
> You asked, I answered. Who's diverting what now?

No one has accused anyone of diverting anything.  Please reread what I wrote.

If auto-complete-mode does what completion.el does, and is better at it, then
certainly we could consider deprecating the latter in favor of the former.  But
for that, a-c-m would need to be added to Emacs first, which is a different, or
at least a broader, topic.

As long as it is not part of Emacs and there is no proposal to add it,
considering a-c-m as a replacement would be a diversion, for this thread.

If someone proposes that a-c-m be added, and its author agrees etc., we can
discuss that.  And if it seems likely to be added then that becomes pertinent to
this topic.

FWIW, from the doc and the demo I looked at, and from comments from others here
and there, a-c-m sounds like something that would be great to add to Emacs.

> > 2. Looking at the auto-complete-mode doc and demo, it's not 
> > clear to me that it is comparable to completion.el.  It certainly
> > does many things that completion.el does not do.  (It is also
> > quite large - multiple directories and files.)  But I don't see
> > that a-c-m actually does what completion.el does.  Can
> > you confirm that it does?
> 
> Like I said, the feature is similar, not identical.

Yes, I understood that.  Nothing wrong with that.  The question I raised is
whether it does what completion.el does.  If not, then perhaps the two
complement each other and both could be useful parts of Emacs.

Or perhaps the functionality of completion.el could be added to a-c-m.  I have
no idea.  But a starting point relative to this discussion about possible
deprecation is to know whether a-c-m already does what completion.el does.

> > I understand that you can create a dictionary for a-c-m of 
> > terms you use.  And I understand that a-c-m does lots of useful
> > things wrt completing programming entities that it knows about.
> > And it records the counts and use times of _completions_ that you use.
> 
> Yes.
> 
> > But what about the completion.el use case?  Does a-c-m record
> > ordinary words (as well as programming constructs) that you
> > type and thus consider them future completion candidates?
> > IOW, does simply typing text, or moving the cursor over
> > text, suffice to turn the words typed or traversed into 
> > completion candidates?
> 
> It allows to use "word in buffer" and "words in buffers in the same 
> mode" as sources of completions, so yes, to an extent. Similarly to 
> `dabbrev-expand'.
> 
> > E.g., if you were writing an essay or some documentation, 
> > does hitting a key complete a word that you start typing, based
> > on words you have used previously (including during past sessions)?
> > From the doc I couldn't tell.
> 
> Past sessions? No.

It sounds to me (not knowledgable about a-c-m) like we should:

1. Try to see if a-c-m can/should be added to Emacs (independently of the
current question).

2. If there is no immediate substitute what completions.el does, leave it in
Emacs until there is.

3. See if a-c-m could be enhanced to provide what completion.el offers.  I agree
that it sounds close already, from your comments.




  reply	other threads:[~2013-05-11 19:33 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-10 19:44 completion.el users? Stefan Monnier
2013-05-10 20:50 ` Drew Adams
2013-05-11 12:10 ` Richard Stallman
2013-05-11 14:11   ` Vibhav Pant
2013-05-11 14:23     ` Drew Adams
2013-05-11 15:15       ` Vibhav Pant
2013-05-11 15:09 ` Christopher Schmidt
2013-05-11 15:16   ` Drew Adams
2013-05-11 16:34     ` Dmitry Gutov
2013-05-11 18:19       ` Drew Adams
2013-05-11 18:31         ` Dmitry Gutov
2013-05-11 19:33           ` Drew Adams [this message]
2013-05-11 19:24         ` Christopher Schmidt
2013-05-11 21:16           ` Drew Adams
2013-05-11 22:05             ` Christopher Schmidt
2013-05-11 22:20               ` Drew Adams
2013-05-12  9:09               ` Vitalie Spinu
2013-05-13 17:57   ` T.V. Raman
2013-05-13 17:54 ` T.V. Raman
2013-05-13 18:09   ` Lluís

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=F6CC06409D6345819ECEC2560AC90B0B@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=christopher@ristopher.com \
    --cc=dgutov@yandex.ru \
    --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 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.