all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Madhu <enometh@meer.net>, "emacs-devel@gnu.org" <emacs-devel@gnu.org>
Subject: RE: [External] : dynamic-completion-mode doc
Date: Thu, 7 Sep 2023 13:58:52 +0000	[thread overview]
Message-ID: <SJ0PR10MB5488D1CB450A1EBF0C3913C4F3EEA@SJ0PR10MB5488.namprd10.prod.outlook.com> (raw)
In-Reply-To: <m3zg1y61g1.fsf@leonis4.robolove.meer.net>

> [written up for gnu-emacs-help but posted here on second thoughts]
> 
> I'm trying to find out what (dynamic-completion-mode) does.
> 
> C-h f dynamic-completion-mode
> C-h v dynamic-completion-mode
> 
> Only show the boilerplate documentation.  But I cannot understand what
> the impact of the command is, or what changes when minor-mode
> dynamic-completion-mode is turned on or off.
> 
> [I've used what is called "dynamic completions" before:
> 
> 1. use M-/ dabbrev-exapand to complete the word at point
> 
> 2. Use completion-table-dynamic to support completion-at-point for lisp
> modes like sly or slime
> 
> 3. I used comint-dynamic-complete-as-filename for a long time until its
> functionality was handicapped and then obsoleted then removed, and I've
> had to locally revert the changes to "comint-filename-completion"
> "comint-dynamic-complete-filename" to get the functionality back.
> 
> This makes me think I've misunderstood what "dynamic completion" means,
> so perhaps I should start with what dynamic-completion-mode is supposed
> to do.

Others have pointed you to the Commentary in the
Lisp file, `completion.el'.  That's really all
there is, I'm afraid.  It's relatively complete,
but it, and the library itself, was written many
moon ago, and the presentation is not as good as
one might expect nowadays.

That said, it's a good, interesting, and still
useful library.  But it's not well known, to put
it mildly.  It could really use some love and
understanding - some "modernization", taking
advantage of the last 30 years of Emacs dev.

I have hopes someone might get interested in
that, e.g., leveraging its approach/features to
either improve it or improve some other Emacs
library/feature.  Its description might give the
impression that it's the same or similar to some
other existing approaches, but I don't think so.
It might at least serve as food for thought...

It's really quite simple to use, but yeah, you
need to read the Commentary and give it a try.



  parent reply	other threads:[~2023-09-07 13:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-07  4:40 dynamic-completion-mode doc Madhu
2023-09-07  5:17 ` Visuwesh
2023-09-07  6:56 ` Eli Zaretskii
2023-09-07 13:58 ` Drew Adams [this message]
2023-09-09 14:58   ` [External] : " Madhu

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=SJ0PR10MB5488D1CB450A1EBF0C3913C4F3EEA@SJ0PR10MB5488.namprd10.prod.outlook.com \
    --to=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    --cc=enometh@meer.net \
    /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.