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=0.2 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED autolearn=no autolearn_force=no version=3.4.4 Received: (qmail 6953 invoked from network); 19 Oct 2023 04:17:05 -0000 Received: from mx2.math.uh.edu (129.7.128.33) by inbox.vuxu.org with ESMTPUTF8; 19 Oct 2023 04:17:05 -0000 Received: from lists1.math.uh.edu ([129.7.128.208]) by mx2.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.96.1) (envelope-from ) id 1qtKT1-000ccL-1T for ml@inbox.vuxu.org; Wed, 18 Oct 2023 23:17:03 -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 1qtKQq-0001pr-0Q for ml@inbox.vuxu.org; Wed, 18 Oct 2023 23:14:48 -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 1qtKQn-0001pi-1R for ding@lists.math.uh.edu; Wed, 18 Oct 2023 23:14:45 -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 1qtKQh-000cPJ-1w for ding@lists.math.uh.edu; Wed, 18 Oct 2023 23:14:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:Mime-Version:References:Message-ID:Date:Subject: From:To:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=wpYAOydeyutnC/drrteLON2stcDKa2QTIMDRW2BY9eM=; b=NRrVBjh5V4R6VtTpTAoU+6rwlN Atq4qEUqTthc2smn/vD37GIWd9pluIkPfpg+eU01HkQim0gRm1KyzWK7jUa+ttmhYXOGDzKbhSoN/ 4DoAILrCVUZwSeG8+8B+VK3k0MAsLJAvlOHFSu1ipam4Bs+xDMkVLpCjy/8qxZ4rAU98=; Received: from ciao.gmane.io ([116.202.254.214]) by quimby.gnus.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qtKQa-0000hi-9p for ding@gnus.org; Thu, 19 Oct 2023 06:14:34 +0200 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1qtKQY-000AAB-Fr for ding@gnus.org; Thu, 19 Oct 2023 06:14:30 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: ding@gnus.org From: Eric Abrahamsen Subject: Re: In-buffer completion of EBDB mail addresses with corfu Date: Wed, 18 Oct 2023 21:14:18 -0700 Message-ID: <87bkcv9rl1.fsf@ericabrahamsen.net> References: Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:lZCnSJqI2mr+/nXzBb7JwyWbst8= List-ID: Precedence: bulk Arash Esbati writes: > Hi all, > > almost a year ago, I asked here about using corfu for in-buffer > completion of mail addresses in BBDB database. I got that working > somehow, bug now I switched to EBDB (soley because it has a manual ;-) :) I believe there are more advantages, but yes this is the primary one. > and now I have the same problem: Does anybody has a working solution how > to get in-buffer completion working in Message mode? In a *unsent mail* > buffer, I want: > > To: > > It seems EBDB works in general; if I go to the "To: " header and do > > M-x edbd-complete-mail RET > > I get a *Completions* buffer where I can choose from. Address completion in message-mode is messy. There are a couple of different places where EBDB can insinuate itself into the completion mechanism: the one that happens by default shadows `message-expand-name' with `ebdb-complete-mail', which runs its own live-search completion function, you've seen that above. 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!