unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Alexander Adolf <alexander.adolf@condition-alpha.com>
Cc: emacs-devel@gnu.org
Subject: Re: [ELPA] New package: company-eudc
Date: Mon, 03 May 2021 19:54:21 -0400	[thread overview]
Message-ID: <jwvtunjpevg.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <7aa6ec1a1a879a5db7972a652b2dcfb2@condition-alpha.com> (Alexander Adolf's message of "Mon, 03 May 2021 17:52:25 +0200")

>>> I would kindly like to propose my new package company-eudc.el for
>>> inclusion into ELPA. Here is an excerpt from the package's home page at
>>> https://github.com/condition-alpha/company-eudc :
>>
>> I like this functionality, but:
>> - Why not add this directly to the EUDC code in Emacs itself?
> I did propose it to the company maintainers, but it didn't fall on
> fertile ground there.

Hmm... not sure I understand.  I was proposing to add it to the EUDC
code in Emacs (e.g. `eudc.el`), not to the Company package.

>> - Why make it a Company backend instead of a CAPF function (since
>>   Company knows how to use CAPF functions as well)?
>> [...]
> That's one of the next things on my to-do list. ;-)

I think it would make a lot of sense to add such a CAPF directly to
`eudc.el`, and then to hook it into `message.el`.

I must admit, I don't know where `company-eudc-expand-inline` would end
up in that scenario, tho :-(

We could add a config var to control whether EUDC should be queried in
by default in `message-mode`, and we could easily add a command that
runs `completion-at-point` with EUDC's new CAPF enabled, but it would be
odd to run `company-begin-backend` from Emacs core code.  I guess we
could have a command that either runs `completion-at-point` or
`company-begin-backend` depending on a config var (e.g. whether
`company-mode` is enabled), but it would be nicer to make it work with
other completion UIs, like `corfu-mode`.


        Stefan




  reply	other threads:[~2021-05-03 23:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-30 14:19 [ELPA] New package: company-eudc Alexander Adolf
2021-04-30 17:30 ` Stefan Monnier
2021-05-03 15:52   ` Alexander Adolf
2021-05-03 23:54     ` Stefan Monnier [this message]
2021-05-05 19:47       ` Alexander Adolf
2021-05-05 20:36         ` 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=jwvtunjpevg.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=alexander.adolf@condition-alpha.com \
    --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).