From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alexander Adolf Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] EUDC email addresses via completion-at-point in message-mode Date: Fri, 15 Apr 2022 23:35:03 +0200 Message-ID: References: <4c3f728f989e832d224be1503808a682@condition-alpha.com> <87ilrb4y3j.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8353"; mail-complaints-to="usenet@ciao.gmane.io" To: Eric S Fraga , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Apr 15 23:35:59 2022 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 1nfTbj-0001vn-F1 for ged-emacs-devel@m.gmane-mx.org; Fri, 15 Apr 2022 23:35:59 +0200 Original-Received: from localhost ([::1]:47946 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nfTbi-0004TH-1U for ged-emacs-devel@m.gmane-mx.org; Fri, 15 Apr 2022 17:35:58 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39982) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nfTav-0003ma-JU for emacs-devel@gnu.org; Fri, 15 Apr 2022 17:35:09 -0400 Original-Received: from smtprelay06.ispgateway.de ([80.67.31.95]:42353) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nfTat-00032B-5a for emacs-devel@gnu.org; Fri, 15 Apr 2022 17:35:09 -0400 Original-Received: from [46.244.203.213] (helo=condition-alpha.com) by smtprelay06.ispgateway.de with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nfTb1-0006Nw-8i; Fri, 15 Apr 2022 23:35:15 +0200 In-Reply-To: <87ilrb4y3j.fsf@ucl.ac.uk> X-Df-Sender: YWxleGFuZGVyLmFkb2xmQGNvbmRpdGlvbi1hbHBoYS5jb20= Received-SPF: pass client-ip=80.67.31.95; envelope-from=alexander.adolf@condition-alpha.com; helo=smtprelay06.ispgateway.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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:288463 Archived-At: Hello Eric, Eric S Fraga writes: > [...] > I am excited about the potential of what you are proposing. Cool! > On Wednesday, 13 Apr 2022 at 16:44, Alexander Adolf wrote: >> By default, message-mode binds TAB to message-tab, which in turn calls >> completion-at-point. Depending on your keymap setup it may thus be >> sufficient to type TAB in the "To:" line, or to change your setup to >> replace eudc-expand-try-all with completion-at-point. > > This does not seem to work for me. I do have other capf functions that > I want to use within message mode (for completion in the actual body of > the email) so I have >=20 > ,----[ C-h v completion-at-point-functions RET ] > | completion-at-point-functions is a variable defined in =E2=80=98minibuf= fer.el=E2=80=99. > |=20 > | Its value is (eudc-capf-complete cape-ispell cape-dabbrev cape-dict) > | Local in buffer *unsent followup to Alexander Adolf on gmane.emacs.deve= l*; global value is=20 > | (tags-completion-at-point-function) > `---- > [...] > > What am I missing? message-mode has some - well, let's call them specifics around completion, which might perhaps deserve a separate discussion (IMHO anyway). As you are using the cape package, are you by any chance also using the corfu package? If yes, with the value of completion-at-point-functions you have, you should get email addresses in the To:, and From: lines via corfu. In any case, if you move point to the To: line, type a substring for which you know there will be a match in EUDC, and then do "M-: (completion-at-point)", what happens? --alexander