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=-2.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 12900 invoked from network); 19 Oct 2023 07:14:44 -0000 Received: from mx1.math.uh.edu (129.7.128.32) by inbox.vuxu.org with ESMTPUTF8; 19 Oct 2023 07:14:44 -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.96.1) (envelope-from ) id 1qtNEx-000jXo-09 for ml@inbox.vuxu.org; Thu, 19 Oct 2023 02:14:43 -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.1) (envelope-from ) id 1qtNEw-00027R-1T for ml@inbox.vuxu.org; Thu, 19 Oct 2023 02:14:42 -0500 Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtp (Exim 4.96.1) (envelope-from ) id 1qtNEt-00027I-1W for ding@lists.math.uh.edu; Thu, 19 Oct 2023 02:14:39 -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.96.1) (envelope-from ) id 1qtNEs-000jXO-0V for ding@lists.math.uh.edu; Thu, 19 Oct 2023 02:14:39 -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:References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=WDyRYqYFbIaSYb82wt0rIWhsNPlI6VLbYJSAwElCQqY=; b=Y2HNR6Ge6noh6qeHY6PbaZs7RW B3EAP5Fgg6vnUrMxdRcEOnYRTNfZ+h97WXR5G/Y8X6gBuzUpaSaIgs3wrsfcBNJStjDdeOg0lGsBV 97ujUjoFcXlo2SFdlYrvke+W8znhjcszacgXV3t0qRoZ/FVdQj4Qa0IyTmRqyO/8UGLc=; 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 1qtNEl-0002CV-09 for ding@gnus.org; Thu, 19 Oct 2023 09:14:33 +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 1qtNEh-0002cM-3u; Thu, 19 Oct 2023 03:14:27 -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:References:In-Reply-To:Subject:To: From; bh=WDyRYqYFbIaSYb82wt0rIWhsNPlI6VLbYJSAwElCQqY=; b=OFFOKXhHwW4P7NQNAAnu MOvhG79wv0l4dR8tpJaLrwSPmBzVjt4ygT0BfHXfaYNAjBgQExTwL//aaQmWBxC9zoHwT7B1CFWVy 7DP36fiM1W698jlkiK6t4458bw14BIDXSgFvc7EREOfxJGM1FL4RpUd17KuBIKCEp2AWnkjHUb0ww PbY/SkZHL9xysZku4X5uIxFHiS5zcRjI4pJooqhbO3ss5mpbcWc+zHvOLHV8ozko9KtWoAjQE7hmf IF23Z562wvHQTjVe7v2yZ0EQvLFVEqzwBNwdMhhs5vmY1KQyy+ELqAaqnFxMahResmB/tLCN3ITJT 2TXrt/1AfHTrzg==; From: Arash Esbati To: Eric Abrahamsen Cc: ding@gnus.org Subject: Re: In-buffer completion of EBDB mail addresses with corfu In-Reply-To: <87bkcv9rl1.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Wed, 18 Oct 2023 21:14:18 -0700") References: <87bkcv9rl1.fsf@ericabrahamsen.net> Date: Thu, 19 Oct 2023 09:14:22 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-ID: Precedence: bulk Eric Abrahamsen writes: > The other option is to set (the variable) `ebdb-complete-mail' to the > symbol 'capf. This will put a pre-defined list of "name " strings > into the completion-at-point-functions hook. Then TAB should offer those > strings for completion, using corfu. > > The search is less powerful because it doesn't use a dynamic lookup, but > it should still be fine to use. > > Let me know how that works! Thanks for your response. I added (setq ebdb-complete-mail 'capf) to my .gnus, but I think this is not enough. IIUC, I need: (setq ebdb-complete-mail 'capf) (require 'ebdb-message) Then this is the value of `completion-at-point-functions' in this buffer: completion-at-point-functions is a variable defined in =E2=80=98minibuffe= r.el=E2=80=99. Its value is (ebdb-mail-dwim-completion-at-point-function message-completion-function t) Now I hit 'C-c C-f C-t' and enter ', TAB' after your "name " and get some space added with "No match" in the echo area. So it doesn't seem to work. Or am I missing something? And while we're at it: I suggest to autoload the functions `ebdb-insinuate-message', `ebdb-insinuate-mail' and `ebdb-message-auto-update' and let users add things like: (add-hook 'message-mode-hook #'ebdb-insinuate-message) (add-hook 'message-send-hook #'ebdb-message-auto-update) (add-hook 'mail-setup-hook #'ebdb-insinuate-mail) (add-hook 'mail-send-hook #'ebdb-message-auto-update) to their init file, depending on what they're using. Best, Arash