From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 20632 invoked from network); 25 Oct 2022 15:49:01 -0000 Received: from mx1.math.uh.edu (129.7.128.32) by inbox.vuxu.org with ESMTPUTF8; 25 Oct 2022 15:49:01 -0000 Received: from lists1.math.uh.edu ([129.7.128.208]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1onMAk-00A1Wh-TD for ml@inbox.vuxu.org; Tue, 25 Oct 2022 10:48:58 -0500 Received: from lists1.math.uh.edu ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.96) (envelope-from ) id 1onMAk-002YiW-1a for ml@inbox.vuxu.org; Tue, 25 Oct 2022 10:48:58 -0500 Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtp (Exim 4.96) (envelope-from ) id 1onLAe-002YaD-2Q for ding@lists.math.uh.edu; Tue, 25 Oct 2022 09:44:49 -0500 Received: from quimby.gnus.org ([95.216.78.240]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1onLAc-009yNY-AE for ding@lists.math.uh.edu; Tue, 25 Oct 2022 09:44:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :Date:Subject:To:From:Sender:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=kgZyaMxxf669iqdt5b/1hRwpXHN5Xs0BgdNn+vgVZ4Q=; b=ltVV+iTV/wUvQXNnpvcOcT4+JK lCnXLf5p1IO7K5/0TP/gRYcUqdeBxqrI/uMMtI7ywYZir6evUY/j5Jb8zUnvTaY3e8Jh6ECjql5CD aLjhIRJ3cLvoYi2cfjUDyDLil7PUXcj8GnktirHzT9bvZd35+DDGjfM0GgOpzzqQp600=; Received: from eggs.gnu.org ([2001:470:142:3::10]) by quimby.gnus.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1onLAS-0002pp-B6 for ding@gnus.org; Tue, 25 Oct 2022 16:44:40 +0200 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1onLAO-00078B-Pj for ding@gnus.org; Tue, 25 Oct 2022 10:44:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=kgZyaMxxf669iqdt5b/1hRwpXHN5Xs0BgdNn+vgVZ4Q=; b=Hr4Z6B75FFgMr/ jDSoKvM/mh4DovGF3aRc6DiDeKtXCA5Qh9dITygjstPdt65TPhDIdnBqCV4LeI0zAcVQqnENkx+/a jxjXqUsoGN5Oruh+j80RZV1f1nE13Ju9SliX4xEgyqj8JOZlQxkQgWN284shKauOx60nEXiDjQQYh aBeGZFndxBCkQS++TJf5Y1fTK9Xd8MIPALLgoijeZQPMQI54+eWu0MBHmfZx3qpNLm6DdndV+CDUG dW+gJ/Nbj5JENFCFeBAmhQdgugqVwwYdt83ntLCs6OU5p3p+BhnG3qGrEb5Wa4g3ErPQYL0SCr+h3 b8xwl58kwH5+nYrTRqDA==; Received: from p5b326552.dip0.t-ipconnect.de ([91.50.101.82] helo=MUTANT) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1onLAO-0005rS-8z for ding@gnus.org; Tue, 25 Oct 2022 10:44:32 -0400 From: Arash Esbati To: ding@gnus.org Subject: In-buffer completion of BBDB mail addresses with corfu Date: Tue, 25 Oct 2022 16:43:53 +0200 Message-ID: <86eduwx8t2.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-ID: Precedence: bulk Hi all, I'm playing with corfu instead of company-mode and it occurred to me that I don't get any in-buffer completion in 'To' field when I hit TAB from my BBDB database. I looked at message.el and it seems to have some functions to this purpose (message-completion-function, message-tab, message-expand-name, ...) but it doesn't work for me. This is the value of `completion-at-point-functions' for me while writing this message. ,---- | completion-at-point-functions is a variable defined in =E2=80=98minibuffe= r.el=E2=80=99. |=20 | Its value is | (eudc-capf-complete message-completion-function t) | Local in buffer *unsent mail*; global value is=20 | (tags-completion-at-point-function) `---- Before adding something like this to my .gnus: (add-hook 'message-mode-hook (lambda () (add-to-list 'completion-at-point-functions (cape-company-to-capf 'company-bbdb)))) Does message.el has a prefabbed Capf for BBDB or any other trick to make this work? Best, Arash