From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: [ELPA] New package: company-eudc Date: Mon, 03 May 2021 19:54:21 -0400 Message-ID: References: <2aaed91801ff892a269a315c50064d99@condition-alpha.com> <7aa6ec1a1a879a5db7972a652b2dcfb2@condition-alpha.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8945"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Alexander Adolf Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue May 04 01:55:48 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ldiPh-0002Co-Vs for ged-emacs-devel@m.gmane-mx.org; Tue, 04 May 2021 01:55:46 +0200 Original-Received: from localhost ([::1]:58824 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ldiPh-0006WD-3s for ged-emacs-devel@m.gmane-mx.org; Mon, 03 May 2021 19:55:45 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44948) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ldiOT-0005un-Bi for emacs-devel@gnu.org; Mon, 03 May 2021 19:54:29 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:31692) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ldiOQ-0003xG-4T for emacs-devel@gnu.org; Mon, 03 May 2021 19:54:28 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 9F51E809E6; Mon, 3 May 2021 19:54:23 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 304D780385; Mon, 3 May 2021 19:54:22 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1620086062; bh=3gpecFrRqO6hCuq7XzIe36qJS1QyqUkCUXGx3KSjptQ=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=cHuCv4No0JrHbHCyHdP8cuEXuetAJNsEaSdlr8o4yWxzU/RWqA21BCZTtLHINZTDM 3yF2RFmebjilCcBMlH6mZAiy10rsA29V6ML3MsmUeQ7GrZSCT/3QDlofChzEylHoS/ tvBYv98c8tvXCgzNGfXVl+bWdSeq/Rs9hnSovUYgMLOwjkmIB629xGpIoOXEmEbUim ctdEe0oOY8Qzb7spm/FDsfbJGAZ7Eo8aPJeMUZ7KCaOcG5InJ1R0JgSRrIipEkeY7k 2GR+HpV02lRbzgYGFjyPqG+YjjUuH+KFvtHbFQhtGXmZKRzUCf9h+NEU4YuQK9JQtc BdvudHYld3Prw== Original-Received: from alfajor (76-10-140-76.dsl.teksavvy.com [76.10.140.76]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id D5900120232; Mon, 3 May 2021 19:54:21 -0400 (EDT) In-Reply-To: <7aa6ec1a1a879a5db7972a652b2dcfb2@condition-alpha.com> (Alexander Adolf's message of "Mon, 03 May 2021 17:52:25 +0200") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:268856 Archived-At: >>> 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