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.1 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 23724 invoked from network); 2 Feb 2023 09:49:28 -0000 Received: from mx1.math.uh.edu (129.7.128.32) by inbox.vuxu.org with ESMTPUTF8; 2 Feb 2023 09:49:28 -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 1pNWDb-003sSD-2G for ml@inbox.vuxu.org; Thu, 02 Feb 2023 03:49:24 -0600 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 1pNWDV-00678Q-1b for ml@inbox.vuxu.org; Thu, 02 Feb 2023 03:49:17 -0600 Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtp (Exim 4.96) (envelope-from ) id 1pNWDO-00678H-3C for ding@lists.math.uh.edu; Thu, 02 Feb 2023 03:49:11 -0600 Received: from quimby.gnus.org ([95.216.78.240]) by mx2.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pNWDN-000yPa-4x for ding@lists.math.uh.edu; Thu, 02 Feb 2023 03:49:10 -0600 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=+dstjwh7XIQjGwuRVp+7ivBzPOpwjsg9L4WRAr8NRes=; b=dlOdoNA1AoBo7Vb7a+IHwaMAQI 2RUYI4UCcEJ7hHifTPqQnKiLL9KKKpszp6cvIbKmVJJ8VKflPjPOHIUSGKIJckM6W7AyLU0rHn2c1 /OsSWEZL7KlMVFAyf3yIoNuSOUNia6Qv16adzLUwfbvPxr7zPKA31BRms0NqsAp7+UjY=; 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 1pNWDD-0005m1-BN for ding@gnus.org; Thu, 02 Feb 2023 10:49:02 +0100 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 1pNWD9-0007nq-PK; Thu, 02 Feb 2023 04:48:55 -0500 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=+dstjwh7XIQjGwuRVp+7ivBzPOpwjsg9L4WRAr8NRes=; b=EtS7GvP0xwJZ2yl8PcM4 nsGITPgbqq2OZ66r7qRMZZl9q5o7YGScSoUK2kTY9c65DbuHeCQlYhCySpkgNQbAUJdYxf/VwKIOq Vb//E1Li1LfYs7JHSpVG0h5BXsZJCH44yDaW54BNUleaj/ug2f0N2cY2zD3mInRvwGeI1woXn1cRo ttvwOf0gebShqDvAFJOIZtk2kvn4pzTAnd/Xkatg1fu2BuvfKvEs/a52wmhF5nsK9sq5UbwGDmSGx KJ2b+qYEnpXSsZhoZij/G4ExzOMEGntg/SsDx5E5VYgbnSjUbsfBrVnOy1Tt/NyawMn2Zb/kj2XJX +lCBe11S+GEx1w==; Received: from p5b326467.dip0.t-ipconnect.de ([91.50.100.103] helo=MUTANT) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pNWD9-00017H-3F; Thu, 02 Feb 2023 04:48:55 -0500 From: Arash Esbati To: Julien Cubizolles Cc: ding@gnus.org Subject: Re: completion no more working with latest HEADs (emacs and bbdb) In-Reply-To: <878rhieusy.fsf@free.fr> (Julien Cubizolles's message of "Tue, 31 Jan 2023 13:46:05 +0100") References: <87r0y42vnh.fsf@a16n.net> <86edu3ibkp.fsf@gnu.org> <87leobgucs.fsf@a16n.net> <867czvi8d8.fsf@gnu.org> <87zgcrp63k.fsf@a16n.net> <86edu3m8fb.fsf@gnu.org> <87ilgx8uh1.fsf@free.fr> <867cxdny73.fsf@gnu.org> <86k01dtgw6.fsf@gnu.org> <87y1pszvvn.fsf@free.fr> <86r0vk3y7x.fsf@gnu.org> <878rhieusy.fsf@free.fr> Date: Thu, 02 Feb 2023 10:48:27 +0100 Message-ID: <86r0v8bdp0.fsf@gnu.org> 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 Julien Cubizolles writes: > Arash Esbati writes: > >> (setq eudc-server-hotlist '(("localhost" . bbdb))) >> >> (add-hook 'message-mode-hook >> (lambda () >> (setq-local completion-at-point-functions >> (delq 'message-completion-function >> completion-at-point-functions)) >> (add-to-list 'completion-at-point-functions >> #'eudc-capf-complete))) > > I noticed that this setup, while working for bbdb completions in the To: = field, > breaks it for completing groups in the Gcc: field. > > I get both completions working with: > > (add-hook 'message-mode-hook > (lambda () > (add-to-list 'completion-at-point-functions > #'eudc-capf-complete))) This is by design: ,----[ C-h f eudc-capf-complete RET ] | eudc-capf-complete is an autoloaded native-compiled Lisp function in | =E2=80=98eudc-capf.el=E2=80=99. |=20 | (eudc-capf-complete) |=20 | Email address completion function for =E2=80=98completion-at-point-functi= ons=E2=80=99. |=20 | This function checks whether the current major mode is one of the | modes listed in =E2=80=98eudc-capf-modes=E2=80=99, and whether point is o= n a line | with a message header listing email recipients, that is, a line | whose beginning matches =E2=80=98message-email-recipient-header-regexp=E2= =80=99, | and, if the check succeeds, searches for records matching the | words before point. |=20 | The return value is either nil when no match is found, or a | completion table as required for functions listed in | =E2=80=98completion-at-point-functions=E2=80=99. |=20 | Probably introduced at or before Emacs version 29.1. |=20 `---- And in addition: ,----[ C-h v message-email-recipient-header-regexp RET ] | message-email-recipient-header-regexp is a variable defined in =E2=80=98m= essage.el=E2=80=99. |=20 | Its value is | "^\\([^ :]*-\\)?\\(To\\|B?Cc\\|From\\|Reply-to\\|Mail-Followup-To\\|Mail-= Copies-To\\):" |=20 | Regexp matching headers that list email addresses. |=20 | This variable was introduced, or its default value was changed, in | version 29.1 of Emacs. | You can customize this variable. |=20 `---- So you have to tweak the regexp to something like this: "^\\([^ :]*-\\)?\\(To\\|[BG]?Cc\\|From\\|Reply-to\\|Mail-Followup-To\\|Ma= il-Copies-To\\):" Best, Arash