GNU bug report logs - #75305
31.0.50; gnus-refer-thread-use-search isn't exact enough about how the current group is searched

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: Björn Bidar <bjorn.bidar@HIDDEN>; dated Thu, 2 Jan 2025 23:37:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 75305 <at> debbugs.gnu.org:


Received: (at 75305) by debbugs.gnu.org; 3 Feb 2025 12:20:27 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Feb 03 07:20:27 2025
Received: from localhost ([127.0.0.1]:38173 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tevRD-0003T9-BN
	for submit <at> debbugs.gnu.org; Mon, 03 Feb 2025 07:20:27 -0500
Received: from mail-japanwestazon11020079.outbound.protection.outlook.com
 ([52.101.228.79]:34502 helo=OS0P286CU011.outbound.protection.outlook.com)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <acohen@HIDDEN>) id 1tevRA-0003Sp-4m
 for 75305 <at> debbugs.gnu.org; Mon, 03 Feb 2025 07:20:25 -0500
ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none;
 b=GrKq6l2Lax/11IzJueKhdbjC1gZ6he3X6xXQ0aVs3UARg5Lq6fW8yc6Ms6j5TDZT+5hXHK8WwG1Cs5Cxqx0wrbbfr/tekEPM4FveUXCG8djWJzlgHZ2bzewba2LJKyQLALzrazHPcB7/ldRs0LFzGmJNnSg8ANDjoH3vYt2YHSbz7gEQbncFr/5aKwNXJFZQsts3d2QPPDWbXcJcePYCfjd9QxMemjwABbX9VsJGj9hTjiu1RmHF7IpGTC208pV01rTGIjHlNMooBnuskdj0feytCPIl086Vav+9wWLhsUnsoPV/icuD2LcDVkN63JcBDpX2u0a2e6BSQ8+GvFdzxA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; 
 s=arcselector10001;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;
 bh=2tSPevtI9bCUBiE5nWOFRvI9d1k6c+fTVyz0i9j6Q7k=;
 b=shlaEWhoI+N2TlIOw6mKgx/vESKLxlZMUAGkQIqwKKj2hpefbtrW5sOKbkGDl/1H5H/KwPQoP0+VmB0Wg5aEey0TcMfgVV0IJxn3RiMDtS11mISubWGR7UlXrzcG0UKIWUXFsod3+4Uhc6etfHGaP3w1RimHTgy8V7INaqpbtDN5gSnhAjeXBcbTkZc3WLomFL0lx9vag4/JPAca2Ak0ACh3VgRd+X24znffRdpKxKBI6Tih8RtSpTIt0llvniWEWdJR59YKrEM8kKYZKZV4LxJRy5HHN+nTRzFTmC0z/HbZh4KlCpIdxdzHloAHWXzGcqykm3XmWAgrevG7LU4wyw==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
 smtp.mailfrom=ust.hk; dmarc=pass action=none header.from=ust.hk; dkim=pass
 header.d=ust.hk; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ust.hk; s=selector2;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=2tSPevtI9bCUBiE5nWOFRvI9d1k6c+fTVyz0i9j6Q7k=;
 b=NDIsM3/HbxNlimzwySd00Esg+ZVPdRxsg76SFjEwaCeAKQKrPnTWZCGHTbx9Iy/5pUskjCxhy1YI5r/Ik1tCJy6FAIcW7fyEmVL23KH7SUIoPH/k2oCliH85F+lzzQSRYSinjC/qoOVOTT+ra1K0xemRgdQRe9r5uyYHCSH2Vl9JIconPzNTvb/OlOYITL8Mg104CuPXRxdFk+O8uQNk4yrjfYrURqzNbS1Qb0FD+maH3v0hndPzFhRa1x6LwdvUroMVyEGh91i/Srzf/PbgrDDxwuEei3BBKIKtb7wGi/tvjHR7xeOQz2Y6vjn/w3NhdJUpC9CiIaDrAS607DMfjg==
Authentication-Results: dkim=none (message not signed)
 header.d=none;dmarc=none action=none header.from=ust.hk;
Received: from OS3P286MB1877.JPNP286.PROD.OUTLOOK.COM (2603:1096:604:1bf::11)
 by OS3P286MB2327.JPNP286.PROD.OUTLOOK.COM (2603:1096:604:156::5) with
 Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8398.23; Mon, 3 Feb
 2025 12:20:14 +0000
Received: from OS3P286MB1877.JPNP286.PROD.OUTLOOK.COM
 ([fe80::4b6e:c37e:4327:cfab]) by OS3P286MB1877.JPNP286.PROD.OUTLOOK.COM
 ([fe80::4b6e:c37e:4327:cfab%4]) with mapi id 15.20.8398.025; Mon, 3 Feb 2025
 12:20:14 +0000
From: Andrew Cohen <acohen@HIDDEN>
To: =?utf-8?Q?Bj=C3=B6rn?= Bidar <bjorn.bidar@HIDDEN>
Subject: Re: bug#75305: 31.0.50; gnus-refer-thread-use-search isn't exact
 enough about how the current group is searched
In-Reply-To: <87v7tr2tfm.fsf@HIDDEN>
References: <8634i0ia6l.fsf@HIDDEN> <86o70md819.fsf@HIDDEN>
 <86wmf9ai4k.fsf@HIDDEN> <86r050bh34.fsf@HIDDEN>
 <86o6zlg9tl.fsf@HIDDEN> <87frkv3grn.fsf@HIDDEN>
 <87v7tr2tfm.fsf@HIDDEN>
Date: Mon, 03 Feb 2025 20:20:11 +0800
Message-ID: <87r04f2pac.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-ClientProxiedBy: TPYP295CA0057.TWNP295.PROD.OUTLOOK.COM (2603:1096:7d0:8::8)
 To OS3P286MB1877.JPNP286.PROD.OUTLOOK.COM
 (2603:1096:604:1bf::11)
MIME-Version: 1.0
X-MS-PublicTrafficType: Email
X-MS-TrafficTypeDiagnostic: OS3P286MB1877:EE_|OS3P286MB2327:EE_
X-MS-Office365-Filtering-Correlation-Id: 7e4a27b3-64a1-470a-84ad-08dd444d1c98
X-MS-Exchange-SenderADCheck: 1
X-MS-Exchange-AntiSpam-Relay: 0
X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|376014|366016;
X-Microsoft-Antispam-Message-Info: =?utf-8?B?UWZMcFJQcTlUQ2pLRDNXY0FiWTlUb1hKT3VvUjlsVHZDL3JpVU56bHdjNFJG?=
 =?utf-8?B?cW9FZkpxMTZMVjBiUEl5b3orSG5ITFpYUWxCMHBUTlRJeW5oc2RkMU41QU0z?=
 =?utf-8?B?OXhHVm92bkFBaXZCcml6bitPYTVpRE84YWl2QVpSSDZiQ0RSUE04OEc1cHNP?=
 =?utf-8?B?TE1PcnF5amxJSEYwbkVLZDc5TmpkeWJLOUlKWCs4cCtSVUhkdlBNRSswb1hP?=
 =?utf-8?B?cTZONG5Ga1IrTWR5RFRpS2IvazdDQnF3SHdYWnRkbVJoNnprRmNodG5VMFo5?=
 =?utf-8?B?cEE2V0FHUUh3MWUzTklEQm93cjh5bDh3SlBIQXAra3pTRW5FS0VIcDJ2UEsx?=
 =?utf-8?B?RXZsaVRjWXFpenR1WVBxQUtTQ3pudk0vLzhiY3FzUUpwQjF6bjRReTZEL0hm?=
 =?utf-8?B?NmdSQlYrNkVQcUFlYjVlSXVmVmdmeXlvMTBxSDIwQkxUYUlHbjUxU2lSSnZo?=
 =?utf-8?B?UFRiUGprUVlNY1pWSFNIN3ZNQnZ5S0RKbldPNjNYNXdPYWpINS9DdE9DTzR0?=
 =?utf-8?B?L05OOU4yTUdVako5Z3NOVGpuM2ZLQUtBMjAxMzluU2tVRmdKWTB3b3lnQkpO?=
 =?utf-8?B?TFBiQWxPSFVESlcwd0hBUHlpaHNXU0VSaW90TVNtMUtnNUZT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VN1NoVXQrTlYyOHhhaE1xcS9sUWhZZWZUYzdqUGpIOFMza0VaQmtI?=
 =?utf-8?B?M3g0eGo1aUV6Qk9SS2YrQjRhc1BSalVQaFU4eEZGSDdXYmtpZFE2dDlqYklG?=
 =?utf-8?B?bUJQUTZmenp3TmlNcEg1U25rZy9oUTVJZXFiMVl4bXBMMWN1TDNHdldyK2NB?=
 =?utf-8?B?R093ZytIMDZsVHBBY2kyQys3aXRCWmlTV0tRcXhYTXNBSzExOVkzbG0yWmNi?=
 =?utf-8?B?Uk1hSzZCZlBobk9odVBHRFduTlphZlpZZHFPRUNFU0NNTWc3UTZzb2JKc0pq?=
 =?utf-8?B?L2gxTmhRUWdWYnBPRnpKSWtObEl4d05IblloT1FNYU95bi9qSUdsVmM5Sm02?=
 =?utf-8?Q?sfy+LUEgtKccQ?=
X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
 IPV:NLI; SFV:NSPM; H:OS3P286MB1877.JPNP286.PROD.OUTLOOK.COM; PTR:; CAT:NONE;
 SFS:(13230040)(1800799024)(376014)(366016); DIR:OUT; SFP:1102; 
X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1
X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?VnBXRkpTOFgwRit5cnRReU9IVDFLUGQyZTJVejVuWEpGTkx1Y0wyOVA3RVl0?=
 =?utf-8?B?Ty93N01rUXkzdEpGZDVRbWNtQzF1NmFyc2UzTXFiUXcvdFNoOFo2M1lFWHlC?=
 =?utf-8?B?T29pQ0tpZnh5TjEvOE02SjFEc0VpRmRFdkVYSlduRzFqQWdqd2tOV3E2NUtH?=
 =?utf-8?B?MkFhOG9kYTlwZTd5Z1Y4MGhhd3pNbGJ0Z2MxdVFCbjd3SlgrMC9lbTZEc1NC?=
 =?utf-8?B?dzNqZVNZaTB5cHVxVlNIYy96RS9JN3MvTnN2YzFIZVVKemR5M3NQNjFKUDhn?=
 =?utf-8?B?ZDc4ZVRE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V3hDZmFHYTEzdlVhR3Qv?=
 =?utf-8?B?Q0ZIajNGeXgwWURHcXZwQUFaTTFPVnFLZklDYm8rZmc4QTVKZkQzOGxxa0tH?=
 =?utf-8?Q?zd1n6L0/DKIGAwUaGQC0RMrt7?=
X-OriginatorOrg: ust.hk
X-MS-Exchange-CrossTenant-Network-Message-Id: 7e4a27b3-64a1-470a-84ad-08dd444d1c98
X-MS-Exchange-CrossTenant-AuthSource: OS3P286MB1877.JPNP286.PROD.OUTLOOK.COM
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Feb 2025 12:20:14.1393 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: c917f3e2-9322-4926-9bb3-daca730413ca
X-MS-Exchange-CrossTenant-MailboxType: HOSTED
X-MS-Exchange-CrossTenant-UserPrincipalName: EaJlMXjuncvJKHKUrfSK7CPnjYGi70uagfIKjNvRqG4BOiipejU5kWPpPC+cvdD8
X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS3P286MB2327
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 75305
Cc: eric@HIDDEN, 75305 <at> debbugs.gnu.org,
 Eli Zaretskii <eliz@HIDDEN>, cohen@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

>>>>> "AC" =3D=3D Andrew Cohen <acohen@HIDDEN> writes:

>>>>> "BB" =3D=3D Bj=C3=B6rn Bidar <bjorn.bidar@HIDDEN> writes:
    AC> [...]

    BB> That look about right. What wasn't correct about the code?

    AC> I shouldn't have said the code wasn't correct---its fine, but it
    AC> just does something slightly different. When coming from an
    AC> nnselect group the default in thread referral is to search the
    AC> group that contains the originating article. (This is the
    AC> "artgroup" in the code that I sent, rather than "group").

OK, I'm having second thoughts about this, and want to know what Bj=C3=B6rn
thinks.

To clarify, here is the issue:

In an nnselect group, the articles can come from anywhere (different
groups, different servers, different backends). This virtual group could, i=
n
principle, contain articles from hundreds of different real groups.

When gnus-refer-thread-use-search is nil, thread-referral only looks
in the real group that the referring article comes from. This has been
the case since I added this feature a million years ago, and I am
confident this is the right thing.

But if we specify the 'current symbol we have a choice: we can search
the real group that the underlying article comes from, or we can search
all the real groups from which the articles in the nnselect group come
from.

Bj=C3=B6rn asked for this feature in order to have more control over which
groups are searched. Including a potentially lengthy list of groups to
search just because they are included in the nnselect group seems like
less control (and probably overkill in trying to find the full
thread). Also, searching many groups can be slow, which would certainly
make this painful if there are lots of groups involved. It's also
unpredictable---the articles that show up in the group might come from
different underlying groups at different times, depending on how the
nnselect group is constructed (for example I have a todo group that
includes articles from many different sources: gmail, nntp, outlook and
a few others. At any given moment I may have articles from many
different sources, or only from one or two).  Finally the other elements
of the gnus-refer-thread-use-search list are likely to overlap with some
of these groups, which would then get searched twice (or we would have
to complicate the code to try to remove duplicates, which would also be
painful. We would have to find all groups on each server and filter out
the duplicates, which can be slow).

So my feeling is that the right thing here is to interpret 'current to
again be the real group that holds the originating article being
referred, which is what I did in my code. But we could certainly allow
it to include all the real groups that contain articles in the current
nnselection. So that's my question for Bj=C3=B6rn.=20

Best,
Andy
--=20
Andrew Cohen




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#75305; Package emacs. Full text available.

Message received at 75305 <at> debbugs.gnu.org:


Received: (at 75305) by debbugs.gnu.org; 3 Feb 2025 10:50:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Feb 03 05:50:54 2025
Received: from localhost ([127.0.0.1]:37950 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1teu2X-0007WT-Us
	for submit <at> debbugs.gnu.org; Mon, 03 Feb 2025 05:50:54 -0500
Received: from mail-japanwestazlp170100001.outbound.protection.outlook.com
 ([2a01:111:f403:c406::1]:40155
 helo=OS0P286CU011.outbound.protection.outlook.com)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <acohen@HIDDEN>) id 1teu2V-0007W9-5r
 for 75305 <at> debbugs.gnu.org; Mon, 03 Feb 2025 05:50:52 -0500
ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none;
 b=EZjOPiH7LT3VVLKxN8+qemsBBSB3K+tjBkA8y9vv/CpQGww2cOLnCmL//kBiC70m+RLrs9nB1RV1V+lW+FrE+9rtNGNXAp56HL74pIt/NhZE/Mml74C8jqOuR7bLWe4gokS9LP9Bes3l4EXqm0B2XmBJwyRSBC7UHehjq8CmLXMXsH1M2Ctr6AH5UqxL6+vUdFDenPAEt/3stDz7NMIESAN514mBIYgSCBRAIWVLiadtRmh/acNs7tAG5MCXDxzlic+FrgQztyQeOhvTI+GprLKY/RKtKPZFAgh4/69607Pq3+QC6V69PZA0GeFbvPqBwgKAvOi1H/7ofRT8u3Ir1g==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; 
 s=arcselector10001;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;
 bh=sYHDmogU6GsRfPf/NsXE6gyiKYfUAyNpPMLpBw/sjlI=;
 b=b16nIvLb8DZ5KH4BMhR232vzSTL/Sjvo/O3rzRBuk+HqcbGe6BS+d7rc6AbY+SZu4XvhYRmBTchVSm6OBdaIvnUKjMGEyYEvH45CRjIpjw3HUZ+4FDjGS8P+0Fcn/Iui32eifI295kn3S2rArp7NyXsL85mpboY1MWpFDr5GWE8IPPXUcZ3wAPLHzjFAM2vkY9r66C5DzSElDf2AT0W1GO8HaFVXKVvp4LbNJ7dwiAEVkPQKEpdGIl+KvIAHDXlIJmL4MhKPUThMp6pr7mz7PRUfLuJJKSiUB5irLFyDPlNJj8ZOp3BWYuqOcYDjbYUYEkSYw72cy4Df4AvlZdJxFQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
 smtp.mailfrom=ust.hk; dmarc=pass action=none header.from=ust.hk; dkim=pass
 header.d=ust.hk; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ust.hk; s=selector2;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=sYHDmogU6GsRfPf/NsXE6gyiKYfUAyNpPMLpBw/sjlI=;
 b=XPKWPrBV841F8A6BP+4iOclkaBNBoNv3i6aOr3wlCRUefd34KmgDYOpYfVDuY1Jrc0VVqB4bKhk/KgD1HZM3oMoWt3Ejd0RlIKBhlpCLKiE3C/LGMaalEQakyrxHpjh0W82xW8ZLOVcte1WG3oBWu4yGJbAUHM/npz6kDWtGD2jaLdmsVLpVyWVHlEeOAVCV42qhpB1PlGy86k8vTrPA3ktJ/G7r9BGmkRMiohdwzrustnW7/hhKdr9mIJBFDh/cSQiHJ33SN1IussMB+HzANeHBohurqyu5yajDOcEKi0tukl/RWcV2IHI30qEw6Aes1WgSg7IgjkN3fXUFBmF90w==
Authentication-Results: dkim=none (message not signed)
 header.d=none;dmarc=none action=none header.from=ust.hk;
Received: from OS3P286MB1877.JPNP286.PROD.OUTLOOK.COM (2603:1096:604:1bf::11)
 by TYRP286MB4477.JPNP286.PROD.OUTLOOK.COM (2603:1096:405:1ae::11)
 with Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8398.24; Mon, 3 Feb
 2025 10:50:41 +0000
Received: from OS3P286MB1877.JPNP286.PROD.OUTLOOK.COM
 ([fe80::4b6e:c37e:4327:cfab]) by OS3P286MB1877.JPNP286.PROD.OUTLOOK.COM
 ([fe80::4b6e:c37e:4327:cfab%4]) with mapi id 15.20.8398.025; Mon, 3 Feb 2025
 10:50:41 +0000
From: Andrew Cohen <acohen@HIDDEN>
To: =?utf-8?Q?Bj=C3=B6rn?= Bidar <bjorn.bidar@HIDDEN>
Subject: Re: bug#75305: 31.0.50; gnus-refer-thread-use-search isn't exact
 enough about how the current group is searched
In-Reply-To: <87o6zj2vw2.fsf@>
References: <8634i0ia6l.fsf@HIDDEN> <86o70md819.fsf@HIDDEN>
 <86wmf9ai4k.fsf@HIDDEN> <86r050bh34.fsf@HIDDEN>
 <86o6zlg9tl.fsf@HIDDEN> <87frkv3grn.fsf@HIDDEN>
Date: Mon, 03 Feb 2025 18:50:37 +0800
Message-ID: <87v7tr2tfm.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-ClientProxiedBy: SI1PR02CA0037.apcprd02.prod.outlook.com
 (2603:1096:4:1f6::13) To OS3P286MB1877.JPNP286.PROD.OUTLOOK.COM
 (2603:1096:604:1bf::11)
MIME-Version: 1.0
X-MS-PublicTrafficType: Email
X-MS-TrafficTypeDiagnostic: OS3P286MB1877:EE_|TYRP286MB4477:EE_
X-MS-Office365-Filtering-Correlation-Id: 766ed4d6-3a84-4bbd-f1da-08dd44409a31
X-MS-Exchange-SenderADCheck: 1
X-MS-Exchange-AntiSpam-Relay: 0
X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|1800799024|366016;
X-Microsoft-Antispam-Message-Info: =?utf-8?B?MXFGaDBiUVIzZGZTajduLzhNVnQvYWZPWHgyTzljbWU3bEhZcTZrc2tFZHhp?=
 =?utf-8?B?TTkwZVFkL3Zwc01Ebit6MUdBczgyTi90akxIckRKZmNJN1VKeU1LZjhyL242?=
 =?utf-8?B?U1Rua245a1loUFhxSllpZG1iRWNOSzF1SGoyRVpuOGdWaFRQT2xISUNydFFv?=
 =?utf-8?B?V0ljNThQcUd6NGNzbnhPUDJvUE1sZzUxb1hOSktlNnhYOC9KWXJ2Y2pJdDAw?=
 =?utf-8?B?T1ZSTTNpd2xGcjhvNVVRNUdGeUFXd29XWW84b3JMSEhRMC9IZ3dVZHo2TVFT?=
 =?utf-8?B?SkdscVhaV3dVdmppWEJBcGEzZk9aM2RKK2dsNzVJeXZUZmdSSjBmVFpJQkFw?=
 =?utf-8?B?ajhTWFVweEdpUDdHdXhIYVdnQ1RRMWs3N1VSQTlieVdTV0Q2YnR3OXNid3h3?=
 =?utf-8?B?VDB0cFRyWnpiRUdaV2hrUGRiQ1FJd3dTcUoyWXZaUVIyWmJudEpxNEh4eldx?=
 =?utf-8?B?RDhiemRSRFc3alRvc3BTaExJdWFBWmFnN05DSS9INUJRVjk2TFV4VG1Td3dD?=
 =?utf-8?B?SXd6a0NXQ0krK0JlRDlrMmFXQTZFZTZnbWNJRW9zM2s3S2JlNTBUUnFQbWtw?=
 =?utf-8?B?QlRJbTF6SUkzZktYSnVXVmdXWFcvS1luU3RUd3c4NytZNDM0S1V0NjM2MWJG?=
 =?utf-8?B?dWFqNXVoVzd1OVBWV0JBdHczV09ES1FucndRZ2xSeDdGSXg5bkpjaGZPbVQ4?=
 =?utf-8?B?cEhsbkx5dlovQm9KRG80SjRGQ3EyZE84QURGMVJ5aEdaU2Nzd0ZyTGRPbjdM?=
 =?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zakNhQysyVkJ1RExqUldYdHpHRUpwdm12TmJJ?=
 =?utf-8?B?cW5tL3ZkRGNGQ3FlaU50akE5eHowVVByUzUycG5DNXdUTWJxeE1uNEdOTWcv?=
 =?utf-8?B?dkM0SnVDYzV4RWhQR0ZUb2RSOVFiNTMxbjhXZGFielM0S2o5QXUrN0tLclRB?=
 =?utf-8?B?dEhOMi93ZFBLV3BxZkpQNGJwU0htWDZFZU1kYnUwQjl5SzFxUUM0VE84enRG?=
 =?utf-8?Q?eWjMuBSQASYyf?=
X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
 IPV:NLI; SFV:NSPM; H:OS3P286MB1877.JPNP286.PROD.OUTLOOK.COM; PTR:; CAT:NONE;
 SFS:(13230040)(376014)(1800799024)(366016); DIR:OUT; SFP:1102; 
X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1
X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?aUxSY1lFcUd1cGMyVUQxR2RmaDJjSjBlUUlLQWtoRE5VVCtNTnl4SzNybmd6?=
 =?utf-8?B?cGpnQWFUUHBRK3pRbXppTXRvRHF0L0FORkhtWTVwVXJja3FrSWpLcG15M0U2?=
 =?utf-8?B?WGFzbWxFK2xMQ1J2RmFOakQ5cW1CeGpaa2ZVNloyNEI0LzYrdFhnM0o2am55?=
 =?utf-8?B?TlJIYWhXRE4yd2Npc3dTbkdNOEtseEFrSDIrT3JZOXRoR2lpYTBEaUdUMUtH?=
 =?utf-8?B?aElSZ2lvcGVGYkhsZ2hibDJ1TDRFQmRTenhJZFYvTkFWWlo1aXhGa3BnNWZ0?=
 =?utf-8?B?aDJ4WE56ajdET05jd0JPNmZINzFpZXlVUk5RRnNRRXNiS01NSEpZRWRJVmx2?=
 =?utf-8?B?ZTdvREtscXIwbDhnOUhFUHZ2NUhWSEI4R211T2V5c0lIL1hYbGZZYktwNTVn?=
 =?utf-8?B?RmZHcnpkbjJ4QmJrNVkxS2ovOUtjT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-Message-Id: 766ed4d6-3a84-4bbd-f1da-08dd44409a31
X-MS-Exchange-CrossTenant-AuthSource: OS3P286MB1877.JPNP286.PROD.OUTLOOK.COM
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Feb 2025 10:50:41.3705 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: c917f3e2-9322-4926-9bb3-daca730413ca
X-MS-Exchange-CrossTenant-MailboxType: HOSTED
X-MS-Exchange-CrossTenant-UserPrincipalName: /a3J7NatyWzyoxkun8VKyFShdG0H09Hs8mVNUAz7qAsHuigRq8lpzsQxEDUMn/VY
X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYRP286MB4477
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 75305
Cc: eric@HIDDEN, 75305 <at> debbugs.gnu.org,
 Eli Zaretskii <eliz@HIDDEN>, cohen@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

>>>>> "BB" =3D=3D Bj=C3=B6rn Bidar <bjorn.bidar@HIDDEN> writes:

[...]

    BB> That look about right. What wasn't correct about the code?

I shouldn't have said the code wasn't correct---its fine, but it just
does something slightly different. When coming from an nnselect group
the default in thread referral is to search the group that contains the
originating article. (This is the "artgroup" in the code that I sent,
rather than "group").

The defcustom looks good and the documentation changes are a big
improvement. I've suggested a few minor stylistic changes

diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el
index 81acb16b7af..2ae23850bf8 100644
--- a/lisp/gnus/gnus-sum.el
+++ b/lisp/gnus/gnus-sum.el
@@ -145,15 +145,21 @@ 'gnus-refer-thread-use-nnir
 (defcustom gnus-refer-thread-use-search nil
   "Specify where to find articles when referring threads.
 A nil value restricts searches for thread-related articles to the
-current group; a value of t searches all groups on the server; a
-list of servers and groups (where each element is a list whose
-car is the server and whose cdr is a list of groups on this
-server or nil to search the entire server) searches these
-server/groups.  This may usefully be set as a group parameter."
-  :version "28.1"
+current group; a value of t searches all groups on the server to which
+the group belongs; a list of servers and groups (where each element is a
+list whose car is the server and whose cdr is a list of groups on this
+server, or nil to search the entire server) searches just these
+server/groups.
+
+The list of server/groups may contain the symbol `current' which
+includes the current group in the list of those searched."
+  :version "31.1"
   :group 'gnus-thread
-  :type '(restricted-sexp :match-alternatives
-                          (listp 't 'nil)))
+  :type '(choice (const :tag "Current group" nil)
+                 (const :tag "All groups" t)
+                 (repeat :tag "Server and groups"
+                         (choice (const :tag "Current Group" current)
+                                 (repeat :tag "Server and groups" string))=
)))
=20
 (defcustom gnus-refer-thread-limit-to-thread nil
   "If non-nil referring a thread will limit the summary buffer to

diff --git a/doc/misc/gnus.texi b/doc/misc/gnus.texi
index 404f6b069ef..4c9b48350f3 100644
--- a/doc/misc/gnus.texi
+++ b/doc/misc/gnus.texi
@@ -10546,8 +10546,7 @@ Finding the Parent
 @findex gnus-summary-refer-thread
 @kindex A T @r{(Summary)}
 Display the full thread where the current article appears
-(@code{gnus-summary-refer-thread}).  By default this command looks for
-articles only in the current group.  If the group belongs to a backend
+(@code{gnus-summary-refer-thread}).  If the group belongs to a backend
 that has an associated search engine, articles are found by searching.
 In other cases each header in the current group must be fetched and
 examined, so it usually takes a while.  If you do it often, you may
@@ -10557,12 +10556,21 @@ Finding the Parent
 course, it'll make group entry somewhat slow.
=20
 @vindex gnus-refer-thread-use-search
-If @code{gnus-refer-thread-use-search} is @code{nil} (the default)
-then thread-referral only looks for articles in the current group.  If
-this variable is @code{t} the server to which the current group
-belongs is searched (provided that searching is available for the
-server's backend).  If this variable is a list of servers, each server
-in the list is searched.
+If @code{gnus-refer-thread-use-search} is @code{nil} (the default), then
+thread-referral only looks for articles in the current group.
+
+If this variable is @code{t}, and the server to which the current group
+belongs has an associated search engine, then this server is searched.
+
+This variable may also be a list of servers and groups to search. Each
+element of the list is of the form @code{(@var{server} @var{group1}
+@var{group2}@dots{})}, where @var{server} is the server and
+@var{group1}, @var{group2}@dots{} are the groups belonging to this
+server that are to be searched.  If the @var{group}s are absent the
+entire server is searched.
+
+This list may also contain the special symbol @code{current}, which will
+add the current group to the list of groups to be searched.
=20
 @vindex gnus-refer-thread-limit
 The @code{gnus-refer-thread-limit} variable says how many old (i.e.,


Best,
Andy
--=20
Andrew Cohen





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#75305; Package emacs. Full text available.

Message received at 75305 <at> debbugs.gnu.org:


Received: (at 75305) by debbugs.gnu.org; 3 Feb 2025 09:57:44 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Feb 03 04:57:44 2025
Received: from localhost ([127.0.0.1]:37837 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tetD5-0004r8-SQ
	for submit <at> debbugs.gnu.org; Mon, 03 Feb 2025 04:57:44 -0500
Received: from thaodan.de ([185.216.177.71]:51770)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <bjorn.bidar@HIDDEN>)
 id 1tetD3-0004qi-B4
 for 75305 <at> debbugs.gnu.org; Mon, 03 Feb 2025 04:57:42 -0500
Received: from odin (dsl-trebng12-50dc7b-49.dhcp.inet.fi [80.220.123.49])
 by thaodan.de (Postfix) with ESMTPSA id B1630D0008E;
 Mon,  3 Feb 2025 11:57:34 +0200 (EET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=thaodan.de; s=mail;
 t=1738576654; bh=c8sXdxZsYk71f3LJ2UzabZRH6Yy3TArIjJv38qrqWwE=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date;
 b=JsSGButqqCLwDF0MDvCFSGOO3t2HVWuP7M5zJpFer4Jockr7ubTMWe7RH/MQSDHSs
 8U5DqwiuOxNWQs9tkLd1RVCi7JXwB2k38B1hoKm0Ve4rBbOSA5G41/f+JL4UmMXiPC
 n16J8ROO5F2cDRP5B/LTm7HVlTEekqbhSUwXgAliZJiSd9wMsVuaD8jQta9YBr2lTx
 I1CzJcVz/fRczBQNI4GZpCFmI+scePf/GJ218fl0h+xDeqe2uYL7cad9LLeIkxkJm1
 +1rW8R9MtSrkr58WlLJQuhM1F4uVlJOtMA9LapQxbQaul+XirNSWjsF1pRRdbqQyNV
 slvv7GF14rDzCAdUIp+7t696JY+Txl4e6ri/uesUDmw8/p6xDG5ip3qAn0KP1R1jjR
 Ifk9bj/z7A173YtjUcW1uQ1BGyw90+7Q+ntcNqtgJyLrSJSnl8qReVQdiVlfZYzLOJ
 yCUQTMfEPPvy5eeRK3PFNibA2FqOmwpEAEY8D5thkdB6mvb9I8HzqrdB3xQUgNg16s
 07r3H9wchjz0945Tu7nVcglHToq7uyF5o2znoB36kX8OIiFEJhzsREZNo28ox9OhsA
 TzyPyvfAi+BNSRRZ1Lq8cPPouLRrOuNh9Hkn8x26m/fs6OY+vgHRbxIWvrk0bdpbrx
 ZYGPDx3b6s5R+OTPJhqbPIXA=
From: =?utf-8?Q?Bj=C3=B6rn?= Bidar <bjorn.bidar@HIDDEN>
To: Andrew Cohen <acohen@HIDDEN>
Subject: Re: bug#75305: 31.0.50; gnus-refer-thread-use-search isn't exact
 enough about how the current group is searched
In-Reply-To: <87frkv3grn.fsf@HIDDEN> (Andrew Cohen's message of "Mon, 03 Feb
 2025 10:26:36 +0800")
References: <8634i0ia6l.fsf@HIDDEN> <86o70md819.fsf@HIDDEN>
 <86wmf9ai4k.fsf@HIDDEN> <86r050bh34.fsf@HIDDEN> <86o6zlg9tl.fsf@HIDDEN>
 <87frkv3grn.fsf@HIDDEN>
Autocrypt: addr=bjorn.bidar@HIDDEN; prefer-encrypt=nopreference; keydata=
 mDMEZNfpPhYJKwYBBAHaRw8BAQdACBEmr+0xwIIHZfIDlZmm7sa+lHHSb0g9FZrN6qE6ru60JUJq
 w7ZybiBCaWRhciA8Ympvcm4uYmlkYXJAdGhhb2Rhbi5kZT6IlgQTFgoAPgIbAwULCQgHAgIiAgYV
 CgkICwIEFgIDAQIeBwIXgBYhBFHxdut1RzAepymoq1wbdKFlHF9oBQJk1/YmAhkBAAoJEFwbdKFl
 HF9oB9cBAJoIIGQKXm4cpap+Flxc/EGnYl0123lcEyzuduqvlDT0AQC3OlFKm/OiqJ8IMTrzJRZ8
 phFssTkSrrFXnM2jm5PYDoiTBBMWCgA7FiEEUfF263VHMB6nKairXBt0oWUcX2gFAmTX6T4CGwMF
 CwkIBwICIgIGFQoJCAsCBBYCAwECHgcCF4AACgkQXBt0oWUcX2hbCQEAtru7kvM8hi8zo6z9ux2h
 K+B5xViKuo7Z8K3IXuK5ugwA+wUfKzomzdBPhfxDsqLcEziGRxoyx0Q3ld9aermBUccHtBxCasO2
 cm4gQmlkYXIgPG1lQHRoYW9kYW4uZGU+iJMEExYKADsCGwMFCwkIBwICIgIGFQoJCAsCBBYCAwEC
 HgcCF4AWIQRR8XbrdUcwHqcpqKtcG3ShZRxfaAUCZNf2FQAKCRBcG3ShZRxfaCzSAP4hZ7cSp0YN
 XYpcjHdsySh2MuBhhoPeLGXs+2kSiqBiOwD/TP8AgPEg/R+SI9GI9on7fBJJ0mp2IT8kZ2rhDOjg
 gA6IkwQTFgoAOxYhBFHxdut1RzAepymoq1wbdKFlHF9oBQJk1+ntAhsDBQsJCAcCAiICBhUKCQgL
 AgQWAgMBAh4HAheAAAoJEFwbdKFlHF9oBgwA/iQHwe0VL4Df4GGTYlNjMSHFlIkBmN4UfYGLYj3E
 TrOUAQC51M+M3cjsL8WHdpBz6VAo6df9d+rVwhQ9vQuFHqevArg4BGTX6T4SCisGAQQBl1UBBQEB
 B0Cbohc3JEfn005/cm0AOGjSsW1ZxAkgaoVNjbpqk4MgNAMBCAeIeAQYFgoAIBYhBFHxdut1RzAe
 pymoq1wbdKFlHF9oBQJk1+k+AhsMAAoJEFwbdKFlHF9ooHABAKGmrGBic/Vys3BBrOQiRB3Z7izO
 HwhqTRpAqFZtXS2nAQDZhp/5aYw1TZjTzkm1KVt9QiYnjd/MvxRE9iaY6x4mDbgzBGTX6T4WCSsG
 AQQB2kcPAQEHQAgRJq/tMcCCB2XyA5WZpu7GvpRx0m9IPRWazeqhOq7uiO8EGBYKACAWIQRR8Xbr
 dUcwHqcpqKtcG3ShZRxfaAUCZNf71AIbIgCBCRBcG3ShZRxfaHYgBBkWCgAdFiEEUfF263VHMB6n
 KairXBt0oWUcX2gFAmTX+9QACgkQXBt0oWUcX2jeSwD6AtWn0cuo8IF35YRo4o3cDRJnUfJnbvJy
 GxyCDThR+zYBAKG6/jdwmZkBQZKslnDAbMMd2WfiZZT5JW3IWC4EaKMO7HkBAKYPGZ3UbfkRvfFK
 S+pQ9CgtNfkSJQBtT1Ob7Y6nsacgAQCpyXN7yppmhW/oBgivITPy9Lkg+V4NK9WZYZCU9Q7LBA==
Date: Mon, 03 Feb 2025 11:57:33 +0200
Message-ID: <87o6zj2vw2.fsf@>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 1.2 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview: Andrew Cohen <acohen@HIDDEN> writes: >>>>>> "EZ" == Eli
 Zaretskii
 <eliz@HIDDEN> writes: > > EZ> Ping! Ping! Andrew and Eric, any comments
 on the patch? > > Sorry for not responding earlier. I remain swamped with
 other things. > > I thin [...] 
 Content analysis details:   (1.2 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 0.0 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED RBL: ADMINISTRATOR NOTICE:
 The query to Validity was blocked.  See
 https://knowledge.validity.com/hc/en-us/articles/20961730681243
 for more information.
 [185.216.177.71 listed in sa-accredit.habeas.com]
 0.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The
 query to Validity was blocked.  See
 https://knowledge.validity.com/hc/en-us/articles/20961730681243
 for more information.
 [185.216.177.71 listed in bl.score.senderscore.com]
 -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
 -0.0 SPF_PASS               SPF: sender matches SPF record
 1.2 INVALID_MSGID          Message-Id is not valid, according to RFC 2822
X-Debbugs-Envelope-To: 75305
Cc: eric@HIDDEN, 75305 <at> debbugs.gnu.org,
 Eli Zaretskii <eliz@HIDDEN>, cohen@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.2 (/)

Andrew Cohen <acohen@HIDDEN> writes:

>>>>>> "EZ" == Eli Zaretskii <eliz@HIDDEN> writes:
>
>     EZ> Ping! Ping!  Andrew and Eric, any comments on the patch?
>
> Sorry for not responding earlier.  I remain swamped with other things.
>
> I think I understand what Bjorn wants, but I don't think the code is
> quite correct. Bjorn, can you try the following and let me know if it
> does what you want (these should apply but probably with some offset).

That look about right. What wasn't correct about the code?

> diff --git a/lisp/gnus/gnus-search.el b/lisp/gnus/gnus-search.el
> index 8aba3605f5b..b46ecf3b666 100644
> --- a/lisp/gnus/gnus-search.el
> +++ b/lisp/gnus/gnus-search.el
> @@ -2224,7 +2224,11 @@ gnus-search-thread
>                        (list (cons 'search-query-spec query)
>                              (cons 'search-group-spec
>                                    (if (listp gnus-refer-thread-use-search)
> -                                      gnus-refer-thread-use-search
> +                                      (mapcar (lambda (x)
> +                                                (if (eq 'current x)
> +                                                    (list server group)
> +                                                  x))
> +                                              gnus-refer-thread-use-search)
>                                      (list (list server))))))))
>          (if (< (nnselect-artlist-length thread) 2)
>              (message "No other articles in thread")
>
> diff --git a/lisp/gnus/nnselect.el b/lisp/gnus/nnselect.el
> index 3cf720a8784..0b4dc384c19 100644
> --- a/lisp/gnus/nnselect.el
> +++ b/lisp/gnus/nnselect.el
> @@ -737,7 +761,10 @@ nnselect-request-thread
>                    (if (not gnus-refer-thread-use-search)
>                        (list (list server artgroup))
>                      (if (listp gnus-refer-thread-use-search)
> -                        gnus-refer-thread-use-search
> +                        (mapcar (lambda (x)
> +                                  (if (eq 'current x)
> +                                      (list server artgroup) x))
> +                                gnus-refer-thread-use-search)
>                        (list (list server)))))
>                   (ids (cons (mail-header-id header)
>                              (split-string




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#75305; Package emacs. Full text available.

Message received at 75305 <at> debbugs.gnu.org:


Received: (at 75305) by debbugs.gnu.org; 3 Feb 2025 02:27:00 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Feb 02 21:26:59 2025
Received: from localhost ([127.0.0.1]:36988 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1temAt-0002V6-Bi
	for submit <at> debbugs.gnu.org; Sun, 02 Feb 2025 21:26:59 -0500
Received: from mail-japaneastazon11021126.outbound.protection.outlook.com
 ([52.101.125.126]:18901 helo=TYVP286CU001.outbound.protection.outlook.com)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <acohen@HIDDEN>) id 1temAj-0002Ue-KQ
 for 75305 <at> debbugs.gnu.org; Sun, 02 Feb 2025 21:26:55 -0500
ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none;
 b=fvDGxWIPXXjl93U1pyK+mqkBqj+rBI0o5cH6dKk5A7nBTTYEkmuj4ymlVnlPMb0rErC2SnTsuB74Bj4T84dqprQ9JxREcpc/230xG93vIfJyojdBPbhQUob+OsDzz0WBfqLNm2sShPdXHp+o5KmYDYpfr1zgmsDmv1SIJNhoAOCj15j0++exsSUSRIHsPX5ym2Kseu+KGAqoFGeX79T6aXQPQjNJf7jjdpm0hZggyjOtt9nMUFSrBWUbqYkN5NJ2Bsg8ZxuqgwcZxCGlBDGnWeI2yZEtVCqVvxv9e+M1BK1HqQPXuodvTQGqyx4IFHc39DgbA7fJI6pswufP7X6VrA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; 
 s=arcselector10001;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;
 bh=1pS5mHsqMqHRYjJayA4ghPYtl/s+7GJaouL7IQzqcLs=;
 b=XFqKU7K0zOzzimH9O3xkMDcCELqJhRN0s6x4xByCulEeINGaY3h1zN5Joby4SQTOglAwDLh31k7Q5arkHKeaCFuUpK1D4y0y11Kg1InBeLyerPAyOsHbdKVs4rUxkB1z91qkObuA1/wSG+mYod/WgBnimMmPO6RA6iMF6bN4/yt0TM8D99+fU+OSzPSlFl8QYGTa3lD2z2wswqrUKLhaQyG3MmpHtWgcFlPqCDnQ1WMO0C0c6GgWDfOw9i/iLxI69MIAsqRSv7k5yCrHATbHfA3+Tx5hOET05AheJIhwhCHH/nQMsXn/EPeG+9cKNzQZBGMx2gUt+elLbJs3koOnYQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
 smtp.mailfrom=ust.hk; dmarc=pass action=none header.from=ust.hk; dkim=pass
 header.d=ust.hk; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ust.hk; s=selector2;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=1pS5mHsqMqHRYjJayA4ghPYtl/s+7GJaouL7IQzqcLs=;
 b=kajkqxS0suLP+6cSUwaAuH40DOnso3I56N0B88SIT1NSZfpnP3HL6ofhv2jAJEBRuJEZBL8Tzu9DLa29vPpA9QsT2rR4qL1mOBaP2vM7+QKlnYAhBPk0BUOQ8DHVfpOAuVgoL/gknA+kxOwYWV95t/gFSOPGbM91NzVlXWeakrEDw93nzstnjpnAi8JQPyT/ADqZi7lIrZuwXaShtR0lwjo9mY+rysKvFJHh7V7uHy3CggS//VuHp0pgL950TXjj4ISySbW5dkbBnltSrockfhBeCsCnxnppRayWWq6kr0QCDSQosNj1AXDaUEQ/NpRhaYPU0L93xpN8N5Fq3IPQTA==
Authentication-Results: dkim=none (message not signed)
 header.d=none;dmarc=none action=none header.from=ust.hk;
Received: from OS3P286MB1877.JPNP286.PROD.OUTLOOK.COM (2603:1096:604:1bf::11)
 by OS9P286MB5135.JPNP286.PROD.OUTLOOK.COM (2603:1096:604:311::12)
 with Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8398.24; Mon, 3 Feb
 2025 02:26:39 +0000
Received: from OS3P286MB1877.JPNP286.PROD.OUTLOOK.COM
 ([fe80::4b6e:c37e:4327:cfab]) by OS3P286MB1877.JPNP286.PROD.OUTLOOK.COM
 ([fe80::4b6e:c37e:4327:cfab%4]) with mapi id 15.20.8398.025; Mon, 3 Feb 2025
 02:26:39 +0000
From: Andrew Cohen <acohen@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#75305: 31.0.50; gnus-refer-thread-use-search isn't exact
 enough about how the current group is searched
In-Reply-To: <86o6zlg9tl.fsf@HIDDEN>
References: <8634i0ia6l.fsf@HIDDEN> <86o70md819.fsf@HIDDEN>
 <86wmf9ai4k.fsf@HIDDEN> <86r050bh34.fsf@HIDDEN>
 <86o6zlg9tl.fsf@HIDDEN>
Date: Mon, 03 Feb 2025 10:26:36 +0800
Message-ID: <87frkv3grn.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
Content-Type: text/plain
X-ClientProxiedBy: TP0P295CA0023.TWNP295.PROD.OUTLOOK.COM
 (2603:1096:910:5::19) To OS3P286MB1877.JPNP286.PROD.OUTLOOK.COM
 (2603:1096:604:1bf::11)
MIME-Version: 1.0
X-MS-PublicTrafficType: Email
X-MS-TrafficTypeDiagnostic: OS3P286MB1877:EE_|OS9P286MB5135:EE_
X-MS-Office365-Filtering-Correlation-Id: 38270ec9-626e-4d76-e52d-08dd43fa307a
X-MS-Exchange-SenderADCheck: 1
X-MS-Exchange-AntiSpam-Relay: 0
X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|376014;
X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?zHHEPR4zcefSLeeNCaWgq7Y4fYzGfM6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2S832d2QCkazvSO2nqLRnRsSec?=
 =?us-ascii?Q?h1Lc+12t4RmEvYeemoX/BlM2156UeyktkTE+ohPnJWKlMepGCH/GqG4gDwZR?=
 =?us-ascii?Q?PF5EA+77udfQuAERHffytuD+cVeKX60snHYOEoIvUCts9tbBOzjfIa3JZjaF?=
 =?us-ascii?Q?ra+i9/PWDAukVSDPPX0QPblHmdYGuyIJSkSkKAdi3FcDf4DNH2DtPeOPukXW?=
 =?us-ascii?Q?+u7IkN5z618zrTqkqXDpTxxO9/LZNmANmOPJhhEXceGOJT06NEhD98OsmyF4?=
 =?us-ascii?Q?DNVvxmQNbUPzdd/l09snqd1EB4Nefvp9CRlKwibwYW6tDpID+GE8HDIsMwco?=
 =?us-ascii?Q?z9PePNNzjfaH9wofGw5D6tDV3aSlLsTeRVuZcd2g370Y+29uNLO7zCR4G11g?=
 =?us-ascii?Q?lyt9bu+hIEuHSmEvDXD5f6rRhxX/qh5UFRaPx3D3kKn8xl7qauSN+sNvQJcG?=
 =?us-ascii?Q?UONsHuoCCqscR3Ocrt7PBNXM7/GS9BkyWfqFW5kf4h8qE38nwRrKz/A9G50m?=
 =?us-ascii?Q?P/qbYfaj6l9jA1cfltj1x4lhMkiG?=
X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
 IPV:NLI; SFV:NSPM; H:OS3P286MB1877.JPNP286.PROD.OUTLOOK.COM; PTR:; CAT:NONE;
 SFS:(13230040)(1800799024)(366016)(376014); DIR:OUT; SFP:1102; 
X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1
X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?Uv1+6rEEjk60pdPkO+7QawnjfKCoTjS5/Em/qjP2cFmlMOAm9VxOFZKwthzD?=
 =?us-ascii?Q?szrRwhALyYkE94YUhy7HIVFZY7Rw+HLmY1KlQqs9bP8PvIe0BrbVQGwiBHxI?=
 =?us-ascii?Q?MD4kZ0aU72Smq1AbP5Qp34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yafzj4TKG?=
 =?us-ascii?Q?86xEF8rMr7ruLLaq8PmfEmeA4VWXIdM/3kAOumRR6qQDYVkijm1UFlmbNhZj?=
 =?us-ascii?Q?vonhm+FjL+sNmtNYEzCM9JqMIV2ogUDDsMlbhgLS/sDSOV/TtDyiu8HxtZ5v?=
 =?us-ascii?Q?EMqko1SrQOKRhZPw6C6e9/N2qDyoV3XFC512Z8QWC4OHucMGbaBvwtal79yN?=
 =?us-ascii?Q?n/Eufw6WXnvpvicVwMC2AfWjwML7jUiQfm+qncyToNNSbq/l9M+cWmKY/Jsu?=
 =?us-ascii?Q?IiAzm5B1uZ8vBww55X7xx8ZBA/8XvLj8pwnY1pQZGp9dgeYBWtiC5Y07HHpD?=
 =?us-ascii?Q?rwKwU1M6bJwQ19IzoHjOE5krk34JKJin4y0q3GY2LuU4Dt3V3lNveYPt8mWs?=
 =?us-ascii?Q?kbpHByPuukRnw1tMsV69ZhvuYtKc7PCwoZGs1QJDycCYfpviiKHBxc2t4h8A?=
 =?us-ascii?Q?jtd8h0nFvCB1/UsCV8p0UwmaGqFVdqGAVeCpi3W3xIcFWFmG79G3lx6GFfTj?=
 =?us-ascii?Q?To/h+DlQSNLgH8AwzP0p8etNg6/3SV61I3I8t8n11EvpYxCVK1YJTlW893Ie?=
 =?us-ascii?Q?4VjFGQitHf2ejgOZCVoGbVz4eNDm6V6hNkOX7ekH?=
X-OriginatorOrg: ust.hk
X-MS-Exchange-CrossTenant-Network-Message-Id: 38270ec9-626e-4d76-e52d-08dd43fa307a
X-MS-Exchange-CrossTenant-AuthSource: OS3P286MB1877.JPNP286.PROD.OUTLOOK.COM
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Feb 2025 02:26:39.5466 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: c917f3e2-9322-4926-9bb3-daca730413ca
X-MS-Exchange-CrossTenant-MailboxType: HOSTED
X-MS-Exchange-CrossTenant-UserPrincipalName: XXPOhgJOfwVRk3RdK8bbHLlXdRuGqNv5n5L+j69ZF9KjhX0ucR+PRV7zap8pa3eB
X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS9P286MB5135
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 75305
Cc: eric@HIDDEN, bjorn.bidar@HIDDEN, cohen@HIDDEN,
 75305 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

>>>>> "EZ" == Eli Zaretskii <eliz@HIDDEN> writes:

    EZ> Ping! Ping!  Andrew and Eric, any comments on the patch?

Sorry for not responding earlier.  I remain swamped with other things.

I think I understand what Bjorn wants, but I don't think the code is
quite correct. Bjorn, can you try the following and let me know if it
does what you want (these should apply but probably with some offset).

diff --git a/lisp/gnus/gnus-search.el b/lisp/gnus/gnus-search.el
index 8aba3605f5b..b46ecf3b666 100644
--- a/lisp/gnus/gnus-search.el
+++ b/lisp/gnus/gnus-search.el
@@ -2224,7 +2224,11 @@ gnus-search-thread
                       (list (cons 'search-query-spec query)
                             (cons 'search-group-spec
                                   (if (listp gnus-refer-thread-use-search)
-                                      gnus-refer-thread-use-search
+                                      (mapcar (lambda (x)
+                                                (if (eq 'current x)
+                                                    (list server group)
+                                                  x))
+                                              gnus-refer-thread-use-search)
                                     (list (list server))))))))
         (if (< (nnselect-artlist-length thread) 2)
             (message "No other articles in thread")


diff --git a/lisp/gnus/nnselect.el b/lisp/gnus/nnselect.el
index 3cf720a8784..0b4dc384c19 100644
--- a/lisp/gnus/nnselect.el
+++ b/lisp/gnus/nnselect.el
@@ -737,7 +761,10 @@ nnselect-request-thread
                   (if (not gnus-refer-thread-use-search)
                       (list (list server artgroup))
                     (if (listp gnus-refer-thread-use-search)
-                        gnus-refer-thread-use-search
+                        (mapcar (lambda (x)
+                                  (if (eq 'current x)
+                                      (list server artgroup) x))
+                                gnus-refer-thread-use-search)
                       (list (list server)))))
                  (ids (cons (mail-header-id header)
                             (split-string

-- 
Andrew Cohen




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#75305; Package emacs. Full text available.

Message received at 75305 <at> debbugs.gnu.org:


Received: (at 75305) by debbugs.gnu.org; 1 Feb 2025 11:53:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Feb 01 06:53:54 2025
Received: from localhost ([127.0.0.1]:56771 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1teC4Q-0005S6-0Z
	for submit <at> debbugs.gnu.org; Sat, 01 Feb 2025 06:53:54 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:56410)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1teC4N-0005Rp-BG
 for 75305 <at> debbugs.gnu.org; Sat, 01 Feb 2025 06:53:52 -0500
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 <eliz@HIDDEN>)
 id 1teC4H-0006RV-FR; Sat, 01 Feb 2025 06:53:45 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=qEisXdNXs4pCicb1MGOkSWl5YIUGhvmr5D0l2FgXfS4=; b=FXSv2TYtN0qDK3uXHZtT
 hkiWJcCEqvWnYcIX8w/9ZGrjHbvMoGH//GPizr/K7r2hgSRnvDOlPhYC4wP2wxnwq5iGNsMInhzbE
 qH7d/nd6J9+3Il+tiTKMgtt65LXks8fm9IZYk60P47jrE405P6iI/6cZNPJsf/KiRNZaWSZtTDRdf
 j6icjsPQ0gCAS0fZkhDPsBO5d2M+mTbfZqbqJb8cRL5qbRddgM4D0nxVbwZVJ2ymW41F5ntLS1/tX
 hQw1YDHv/K6IS22cvkHYGuu23zjBvgC7nPqfbeYHtWlkInCegXS09pF1jgMr99L/Ru2WLPxclUQEv
 ZcqfrRt414LwbQ==;
Date: Sat, 01 Feb 2025 13:53:42 +0200
Message-Id: <86o6zlg9tl.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: eric@HIDDEN, cohen@HIDDEN
In-Reply-To: <86r050bh34.fsf@HIDDEN> (message from Eli Zaretskii on Sat, 18
 Jan 2025 11:34:55 +0200)
Subject: Re: bug#75305: 31.0.50;
 gnus-refer-thread-use-search isn't exact enough about how the current
 group is searched
References: <8634i0ia6l.fsf@HIDDEN> <86o70md819.fsf@HIDDEN>
 <86wmf9ai4k.fsf@HIDDEN> <87h66dt2v6.fsf@> <86r050bh34.fsf@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 75305
Cc: bjorn.bidar@HIDDEN, 75305 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Ping! Ping!  Andrew and Eric, any comments on the patch?

> Cc: eric@HIDDEN, 75305 <at> debbugs.gnu.org, cohen@HIDDEN
> Date: Sat, 18 Jan 2025 11:34:55 +0200
> From: Eli Zaretskii <eliz@HIDDEN>
> 
> Ping! Andrew and Eric, would you please review the proposed patch?
> 
> > From: Björn Bidar <bjorn.bidar@HIDDEN>
> > Cc: Andrew G Cohen <cohen@HIDDEN>,  Eric Abrahamsen
> >  <eric@HIDDEN>,  75305 <at> debbugs.gnu.org
> > Date: Sun, 05 Jan 2025 22:36:13 +0200
> > 
> > 
> > I forgot to attach the update patch, see below:
> > 
> > >From 8cd116f25411575fb8ad59e08ba1cde8f7d7ae12 Mon Sep 17 00:00:00 2001
> > From: =?UTF-8?q?Bj=C3=B6rn=20Bidar?= <bjorn.bidar@HIDDEN>
> > Date: Fri, 3 Jan 2025 04:09:55 +0200
> > Subject: [PATCH] Refactor gnus-refer-thread-use-search
> > 
> > * lisp/gnus/gnus-sum.el (gnus-refer-thread-use-search):
> > Make it easier to customize the variable by adding predefine choices
> > as well as descriptions to each choice. Add option to add the value
> > `current' to the list of servers and groups to add the current group.
> > E.g. to add another group and the current group.
> > * lisp/gnus/gnus-search.el
> > (gnus-refer-thread-maybe-add-current-group, gnus-search-thread):
> > Add helper function to determine if the option contains
> > the value current. Use helper function.
> > * lisp/gnus/nnselect.el (nnselect-request-thread): Use helper
> > function to check if the value current is in
> > gnus-refer-thread-use-search.
> > * doc/misc/gnus.texi (gnus-refer-thread-use-search):
> > Include the current value in the section. Format the section
> > a little better to have a paragraph for each possible value that
> > the option may contain. Explain the option to have
> > a list of servers more detailed , i.e. similarly to the custom
> > description. Highlight that the current group is not searched
> > unless specified. Explain that unless the articles of that
> > thread are contained in the searched groups not adding
> > the current group might not be the desired effect.
> > ---
> >  doc/misc/gnus.texi       | 23 +++++++++++++++++------
> >  lisp/gnus/gnus-search.el | 25 ++++++++++++++++++++++---
> >  lisp/gnus/gnus-sum.el    | 17 +++++++++++++----
> >  lisp/gnus/nnselect.el    |  4 ++--
> >  4 files changed, 54 insertions(+), 15 deletions(-)
> > 
> > diff --git a/doc/misc/gnus.texi b/doc/misc/gnus.texi
> > index 200b68d2059..2e9959aeaf0 100644
> > --- a/doc/misc/gnus.texi
> > +++ b/doc/misc/gnus.texi
> > @@ -10557,12 +10557,23 @@ Finding the Parent
> >  course, it'll make group entry somewhat slow.
> >  
> >  @vindex gnus-refer-thread-use-search
> > -If @code{gnus-refer-thread-use-search} is @code{nil} (the default)
> > -then thread-referral only looks for articles in the current group.  If
> > -this variable is @code{t} the server to which the current group
> > -belongs is searched (provided that searching is available for the
> > -server's backend).  If this variable is a list of servers, each server
> > -in the list is searched.
> > +If @code{gnus-refer-thread-use-search} is @code{current} or @code{nil}
> > +(the default), then thread-referral only looks for articles
> > +in the current group.
> > +
> > +If this variable is @code{t}, the server to which the current group
> > +belongs is searched.  Note this is only possible provided that
> > +searching is available for the server's backend.
> > +
> > +The value can also be a list of the form
> > +@code{(@var{server} @var{group}@dots{})}, where @var{server} is the
> > +server and @var{group}s are the groups belonging to the server.
> > +
> > +To search in the current group in addition to other groups,
> > +the list of servers may contain the symbol @code{current}.
> > +If @code{current} is not in the list, the current group is not searched.
> > +Note this may be not the desired effect if any of articles referred in
> > +the thread are not contained in any of the searched groups.
> >  
> >  @vindex gnus-refer-thread-limit
> >  The @code{gnus-refer-thread-limit} variable says how many old (i.e.,
> > diff --git a/lisp/gnus/gnus-search.el b/lisp/gnus/gnus-search.el
> > index 12af8dcdfa7..959984c2ca4 100644
> > --- a/lisp/gnus/gnus-search.el
> > +++ b/lisp/gnus/gnus-search.el
> > @@ -2206,6 +2206,24 @@ gnus-search-server-to-engine
> >  
> >  (declare-function gnus-registry-get-id-key "gnus-registry" (id key))
> >  
> > +(defun gnus-refer-thread-maybe-add-current-group (group)
> > +  "Return `gnus-refer-thread-use-search' with `current' replaced by GROUP.
> > +Return nil if `current' was not found or if was not a list."
> > +  (cond ((eq 'current gnus-refer-thread-use-search)
> > +         (list (gnus-info-method (gnus-get-info group))
> > +               group))
> > +        ((listp gnus-refer-thread-use-search)
> > +         (let (out)
> > +           (dolist (search gnus-refer-thread-use-search)
> > +             (push (if (and (not (listp search)) (eq 'current search))
> > +                       (list (gnus-info-method (gnus-get-info group))
> > +                             group)
> > +                     search)
> > +                   out))
> > +           out))
> > +        (t
> > +         nil)))
> > +
> >  (defun gnus-search-thread (header &optional group server)
> >    "Find articles in the thread containing HEADER from GROUP on SERVER.
> >  If `gnus-refer-thread-use-search' is nil only the current group is
> > @@ -2227,7 +2245,8 @@ gnus-search-thread
> >                              " or "))
> >             (cons 'thread t)))
> >           (gnus-search-use-parsed-queries t))
> > -    (if (not gnus-refer-thread-use-search)
> > +    (if (or (not gnus-refer-thread-use-search)
> > +            (eq 'current gnus-refer-thread-use-search))
> >          ;; Search only the current group and send the headers back to
> >          ;; the caller to add to the summary buffer.
> >          (gnus-fetch-headers
> > @@ -2247,8 +2266,8 @@ gnus-search-thread
> >              (thread  (gnus-search-run-query
> >                        (list (cons 'search-query-spec query)
> >                              (cons 'search-group-spec
> > -                                  (if (listp gnus-refer-thread-use-search)
> > -                                      gnus-refer-thread-use-search
> > +                                  (or (gnus-refer-thread-maybe-add-current-group
> > +                                       group)
> >                                      (list (list server))))))))
> >          (if (< (nnselect-artlist-length thread) 2)
> >              (message "No other articles in thread")
> > diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el
> > index a9caa83b15c..107e52ab8ef 100644
> > --- a/lisp/gnus/gnus-sum.el
> > +++ b/lisp/gnus/gnus-sum.el
> > @@ -149,11 +149,20 @@ gnus-refer-thread-use-search
> >  list of servers and groups (where each element is a list whose
> >  car is the server and whose cdr is a list of groups on this
> >  server or nil to search the entire server) searches these
> > -server/groups.  This may usefully be set as a group parameter."
> > -  :version "28.1"
> > +server/groups.
> > +
> > +The list of of server and groups may contain
> > +the symbol `current' to refer to the current group.
> > +For example, to search in the current group in addition to other groups.
> > +
> > +This may usefully be set as a group parameter."
> > +  :version "31.1"
> >    :group 'gnus-thread
> > -  :type '(restricted-sexp :match-alternatives
> > -                          (listp 't 'nil)))
> > +  :type '(choice (const :tag "Current group" nil)
> > +                 (const :tag "All groups" t)
> > +                 (repeat :tag "Server and groups"
> > +                         (choice (const :tag "Current Group" current)
> > +                                 (repeat :tag "Server and groups" string)))))
> >  
> >  (defcustom gnus-refer-thread-limit-to-thread nil
> >    "If non-nil referring a thread will limit the summary buffer to
> > diff --git a/lisp/gnus/nnselect.el b/lisp/gnus/nnselect.el
> > index c6a1c0a9342..9d55ac27b98 100644
> > --- a/lisp/gnus/nnselect.el
> > +++ b/lisp/gnus/nnselect.el
> > @@ -49,6 +49,7 @@
> >  (require 'gnus-art)
> >  (autoload 'gnus-search-run-query "gnus-search")
> >  (autoload 'gnus-search-server-to-engine "gnus-search")
> > +(autoload 'gnus-refer-thread-maybe-add-current-group "gnus-search")
> >  
> >  (eval-when-compile (require 'cl-lib))
> >  
> > @@ -707,8 +708,7 @@ nnselect-request-thread
> >                   (group-spec
> >                    (if (not gnus-refer-thread-use-search)
> >                        (list (list server artgroup))
> > -                    (if (listp gnus-refer-thread-use-search)
> > -                        gnus-refer-thread-use-search
> > +                    (or (gnus-refer-thread-maybe-add-current-group group)
> >                        (list (list server)))))
> >                   (ids (cons (mail-header-id header)
> >                              (split-string
> > -- 
> > 2.45.2
> > 
> 
> 
> 
> 




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#75305; Package emacs. Full text available.

Message received at 75305 <at> debbugs.gnu.org:


Received: (at 75305) by debbugs.gnu.org; 18 Jan 2025 09:35:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 18 04:35:08 2025
Received: from localhost ([127.0.0.1]:40208 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tZ5ER-0001gY-Qr
	for submit <at> debbugs.gnu.org; Sat, 18 Jan 2025 04:35:08 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:50644)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tZ5EO-0001fi-8y
 for 75305 <at> debbugs.gnu.org; Sat, 18 Jan 2025 04:35:05 -0500
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 <eliz@HIDDEN>)
 id 1tZ5EI-0004GM-6r; Sat, 18 Jan 2025 04:34:58 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=xi25Jfo+P2mkwRv+2sHESgIg/qJXqtnF1yP3ZynczWs=; b=m8BhGaEsmg5D+Xau80V9
 FwOXM5SUOtgFmKAGT0DeQcaIcg9++9zdaE8cIeZOtPJj1uloYoq+VCQexbdzlAPaly+1OT10tOW2f
 WYN6FJ4tvsf/28QakyL8FKu8jxU7tpDYEjCUUVDWVQSbNFwZtxiReikvtLKJXNMlx1yB49cJfKVIQ
 HPt2bXa5p+Q0gypnrp2Wv4PDMvHF2bIh59Wtg2tgUDFMPFDizR4yVvkxYN1zg+2kFbbhpBpS0q9Qb
 HeEakcV8ZdyvtGt8ehEFhKG7iuj2wX9YuKAXYlgtSsGGDCGm9Oi/vc8FkrwN9FMFWSXVuaC6grN9z
 iy7Xy5Q4BpUu5Q==;
Date: Sat, 18 Jan 2025 11:34:55 +0200
Message-Id: <86r050bh34.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: =?iso-8859-1?Q?Bj=F6rn?= Bidar <bjorn.bidar@HIDDEN>
In-Reply-To: <87h66dt2v6.fsf@> (message from =?iso-8859-1?Q?Bj=F6rn?= Bidar
 on Sun, 05 Jan 2025 22:36:13 +0200)
Subject: Re: bug#75305: 31.0.50; gnus-refer-thread-use-search isn't exact
 enough about how the current group is searched
References: <8634i0ia6l.fsf@HIDDEN> <86o70md819.fsf@HIDDEN>
 <86wmf9ai4k.fsf@HIDDEN> <87h66dt2v6.fsf@>
MIME-version: 1.0
Content-type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 75305
Cc: eric@HIDDEN, 75305 <at> debbugs.gnu.org, cohen@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Ping! Andrew and Eric, would you please review the proposed patch?

> From: Björn Bidar <bjorn.bidar@HIDDEN>
> Cc: Andrew G Cohen <cohen@HIDDEN>,  Eric Abrahamsen
>  <eric@HIDDEN>,  75305 <at> debbugs.gnu.org
> Date: Sun, 05 Jan 2025 22:36:13 +0200
> 
> 
> I forgot to attach the update patch, see below:
> 
> >From 8cd116f25411575fb8ad59e08ba1cde8f7d7ae12 Mon Sep 17 00:00:00 2001
> From: =?UTF-8?q?Bj=C3=B6rn=20Bidar?= <bjorn.bidar@HIDDEN>
> Date: Fri, 3 Jan 2025 04:09:55 +0200
> Subject: [PATCH] Refactor gnus-refer-thread-use-search
> 
> * lisp/gnus/gnus-sum.el (gnus-refer-thread-use-search):
> Make it easier to customize the variable by adding predefine choices
> as well as descriptions to each choice. Add option to add the value
> `current' to the list of servers and groups to add the current group.
> E.g. to add another group and the current group.
> * lisp/gnus/gnus-search.el
> (gnus-refer-thread-maybe-add-current-group, gnus-search-thread):
> Add helper function to determine if the option contains
> the value current. Use helper function.
> * lisp/gnus/nnselect.el (nnselect-request-thread): Use helper
> function to check if the value current is in
> gnus-refer-thread-use-search.
> * doc/misc/gnus.texi (gnus-refer-thread-use-search):
> Include the current value in the section. Format the section
> a little better to have a paragraph for each possible value that
> the option may contain. Explain the option to have
> a list of servers more detailed , i.e. similarly to the custom
> description. Highlight that the current group is not searched
> unless specified. Explain that unless the articles of that
> thread are contained in the searched groups not adding
> the current group might not be the desired effect.
> ---
>  doc/misc/gnus.texi       | 23 +++++++++++++++++------
>  lisp/gnus/gnus-search.el | 25 ++++++++++++++++++++++---
>  lisp/gnus/gnus-sum.el    | 17 +++++++++++++----
>  lisp/gnus/nnselect.el    |  4 ++--
>  4 files changed, 54 insertions(+), 15 deletions(-)
> 
> diff --git a/doc/misc/gnus.texi b/doc/misc/gnus.texi
> index 200b68d2059..2e9959aeaf0 100644
> --- a/doc/misc/gnus.texi
> +++ b/doc/misc/gnus.texi
> @@ -10557,12 +10557,23 @@ Finding the Parent
>  course, it'll make group entry somewhat slow.
>  
>  @vindex gnus-refer-thread-use-search
> -If @code{gnus-refer-thread-use-search} is @code{nil} (the default)
> -then thread-referral only looks for articles in the current group.  If
> -this variable is @code{t} the server to which the current group
> -belongs is searched (provided that searching is available for the
> -server's backend).  If this variable is a list of servers, each server
> -in the list is searched.
> +If @code{gnus-refer-thread-use-search} is @code{current} or @code{nil}
> +(the default), then thread-referral only looks for articles
> +in the current group.
> +
> +If this variable is @code{t}, the server to which the current group
> +belongs is searched.  Note this is only possible provided that
> +searching is available for the server's backend.
> +
> +The value can also be a list of the form
> +@code{(@var{server} @var{group}@dots{})}, where @var{server} is the
> +server and @var{group}s are the groups belonging to the server.
> +
> +To search in the current group in addition to other groups,
> +the list of servers may contain the symbol @code{current}.
> +If @code{current} is not in the list, the current group is not searched.
> +Note this may be not the desired effect if any of articles referred in
> +the thread are not contained in any of the searched groups.
>  
>  @vindex gnus-refer-thread-limit
>  The @code{gnus-refer-thread-limit} variable says how many old (i.e.,
> diff --git a/lisp/gnus/gnus-search.el b/lisp/gnus/gnus-search.el
> index 12af8dcdfa7..959984c2ca4 100644
> --- a/lisp/gnus/gnus-search.el
> +++ b/lisp/gnus/gnus-search.el
> @@ -2206,6 +2206,24 @@ gnus-search-server-to-engine
>  
>  (declare-function gnus-registry-get-id-key "gnus-registry" (id key))
>  
> +(defun gnus-refer-thread-maybe-add-current-group (group)
> +  "Return `gnus-refer-thread-use-search' with `current' replaced by GROUP.
> +Return nil if `current' was not found or if was not a list."
> +  (cond ((eq 'current gnus-refer-thread-use-search)
> +         (list (gnus-info-method (gnus-get-info group))
> +               group))
> +        ((listp gnus-refer-thread-use-search)
> +         (let (out)
> +           (dolist (search gnus-refer-thread-use-search)
> +             (push (if (and (not (listp search)) (eq 'current search))
> +                       (list (gnus-info-method (gnus-get-info group))
> +                             group)
> +                     search)
> +                   out))
> +           out))
> +        (t
> +         nil)))
> +
>  (defun gnus-search-thread (header &optional group server)
>    "Find articles in the thread containing HEADER from GROUP on SERVER.
>  If `gnus-refer-thread-use-search' is nil only the current group is
> @@ -2227,7 +2245,8 @@ gnus-search-thread
>                              " or "))
>             (cons 'thread t)))
>           (gnus-search-use-parsed-queries t))
> -    (if (not gnus-refer-thread-use-search)
> +    (if (or (not gnus-refer-thread-use-search)
> +            (eq 'current gnus-refer-thread-use-search))
>          ;; Search only the current group and send the headers back to
>          ;; the caller to add to the summary buffer.
>          (gnus-fetch-headers
> @@ -2247,8 +2266,8 @@ gnus-search-thread
>              (thread  (gnus-search-run-query
>                        (list (cons 'search-query-spec query)
>                              (cons 'search-group-spec
> -                                  (if (listp gnus-refer-thread-use-search)
> -                                      gnus-refer-thread-use-search
> +                                  (or (gnus-refer-thread-maybe-add-current-group
> +                                       group)
>                                      (list (list server))))))))
>          (if (< (nnselect-artlist-length thread) 2)
>              (message "No other articles in thread")
> diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el
> index a9caa83b15c..107e52ab8ef 100644
> --- a/lisp/gnus/gnus-sum.el
> +++ b/lisp/gnus/gnus-sum.el
> @@ -149,11 +149,20 @@ gnus-refer-thread-use-search
>  list of servers and groups (where each element is a list whose
>  car is the server and whose cdr is a list of groups on this
>  server or nil to search the entire server) searches these
> -server/groups.  This may usefully be set as a group parameter."
> -  :version "28.1"
> +server/groups.
> +
> +The list of of server and groups may contain
> +the symbol `current' to refer to the current group.
> +For example, to search in the current group in addition to other groups.
> +
> +This may usefully be set as a group parameter."
> +  :version "31.1"
>    :group 'gnus-thread
> -  :type '(restricted-sexp :match-alternatives
> -                          (listp 't 'nil)))
> +  :type '(choice (const :tag "Current group" nil)
> +                 (const :tag "All groups" t)
> +                 (repeat :tag "Server and groups"
> +                         (choice (const :tag "Current Group" current)
> +                                 (repeat :tag "Server and groups" string)))))
>  
>  (defcustom gnus-refer-thread-limit-to-thread nil
>    "If non-nil referring a thread will limit the summary buffer to
> diff --git a/lisp/gnus/nnselect.el b/lisp/gnus/nnselect.el
> index c6a1c0a9342..9d55ac27b98 100644
> --- a/lisp/gnus/nnselect.el
> +++ b/lisp/gnus/nnselect.el
> @@ -49,6 +49,7 @@
>  (require 'gnus-art)
>  (autoload 'gnus-search-run-query "gnus-search")
>  (autoload 'gnus-search-server-to-engine "gnus-search")
> +(autoload 'gnus-refer-thread-maybe-add-current-group "gnus-search")
>  
>  (eval-when-compile (require 'cl-lib))
>  
> @@ -707,8 +708,7 @@ nnselect-request-thread
>                   (group-spec
>                    (if (not gnus-refer-thread-use-search)
>                        (list (list server artgroup))
> -                    (if (listp gnus-refer-thread-use-search)
> -                        gnus-refer-thread-use-search
> +                    (or (gnus-refer-thread-maybe-add-current-group group)
>                        (list (list server)))))
>                   (ids (cons (mail-header-id header)
>                              (split-string
> -- 
> 2.45.2
> 




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#75305; Package emacs. Full text available.

Message received at 75305 <at> debbugs.gnu.org:


Received: (at 75305) by debbugs.gnu.org; 5 Jan 2025 20:36:23 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jan 05 15:36:23 2025
Received: from localhost ([127.0.0.1]:35431 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tUXME-00008J-DR
	for submit <at> debbugs.gnu.org; Sun, 05 Jan 2025 15:36:22 -0500
Received: from thaodan.de ([2a03:4000:4f:f15::1]:40732)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <bjorn.bidar@HIDDEN>)
 id 1tUXMC-00007u-6e
 for 75305 <at> debbugs.gnu.org; Sun, 05 Jan 2025 15:36:20 -0500
Received: from odin (dsl-trebng12-50dc7b-49.dhcp.inet.fi [80.220.123.49])
 by thaodan.de (Postfix) with ESMTPSA id 2A236D00098;
 Sun,  5 Jan 2025 22:36:14 +0200 (EET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=thaodan.de; s=mail;
 t=1736109374; bh=/VNL2ypx5ZTiXbXma47+mSGJV2eSAc+ygIz30o7jNc0=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date;
 b=C0pw+uDXtzC11Gv9UQREn9Wq07MdQjnn5SO/9bTG6zXxYBtJ5K3KQaRcbKWGUwRu4
 d0YFj8xp+QW7VYA8urRZI6GaPltxP90FlNm1jvu24RV2pLL2ROd0CRgmOacrQ8ZJBf
 ASjf+J+eUvEC4BKtpUCba3nOT2mu10cKdQaqP0YhySes+VZlh7hDmGm9wtMb8D6yS8
 Vl+0RMGUlKmodwgpRVuEyvUkK72lI3EUoOQKHDHh0gxftTRKVmoSewF9QQG0PuJQkt
 SB6v4H9qUz7AG8448AT2dR1drhn7/R4J4lZt9fCeNRymgGbQRrN9VZMbLGZfGgVTHd
 t6EEg19zqEI1BILRnk6yxVJhBHKZp5WaUffLJsta6yu8XX2MftYI4LlgiD7tP3sN/p
 PmcK7C2XQg2oE+78OdZYCLlnx6eE6hvWHBHUENpRUlG8Qe+yhgi9oQXrzUzyNuCV5z
 3/niPpCQlGnx5dUhMIuJfqHPJcliX0F+eT0Jh5NaxOVaVjZ+OIanaCjQE2RWu7R/MN
 7s5MzCG4cjYkq0mJVldAsRvNQysclH9zoSki4ANDOks241i9BOWhgCWtEzwIwJTiH9
 iHnhmkJ3VQBaBk5hFAdNTdt6AMz/5mQlMDnay9oIbPYojWP7wz/Pbg/KO/YM9GK1rR
 vqnXb8GsYkq1x0icX4yrQ8Qw=
From: =?utf-8?Q?Bj=C3=B6rn?= Bidar <bjorn.bidar@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#75305: 31.0.50; gnus-refer-thread-use-search isn't exact
 enough about how the current group is searched
In-Reply-To: <87o70lt2yw.fsf@> (=?utf-8?Q?=22Bj=C3=B6rn?= Bidar"'s message
 of "Sun, 05 Jan 2025 22:33:59 +0200")
References: <8634i0ia6l.fsf@HIDDEN> <86o70md819.fsf@HIDDEN>
 <86wmf9ai4k.fsf@HIDDEN>
Autocrypt: addr=bjorn.bidar@HIDDEN; prefer-encrypt=nopreference; keydata=
 mDMEZNfpPhYJKwYBBAHaRw8BAQdACBEmr+0xwIIHZfIDlZmm7sa+lHHSb0g9FZrN6qE6ru60JUJq
 w7ZybiBCaWRhciA8Ympvcm4uYmlkYXJAdGhhb2Rhbi5kZT6IlgQTFgoAPgIbAwULCQgHAgIiAgYV
 CgkICwIEFgIDAQIeBwIXgBYhBFHxdut1RzAepymoq1wbdKFlHF9oBQJk1/YmAhkBAAoJEFwbdKFl
 HF9oB9cBAJoIIGQKXm4cpap+Flxc/EGnYl0123lcEyzuduqvlDT0AQC3OlFKm/OiqJ8IMTrzJRZ8
 phFssTkSrrFXnM2jm5PYDoiTBBMWCgA7FiEEUfF263VHMB6nKairXBt0oWUcX2gFAmTX6T4CGwMF
 CwkIBwICIgIGFQoJCAsCBBYCAwECHgcCF4AACgkQXBt0oWUcX2hbCQEAtru7kvM8hi8zo6z9ux2h
 K+B5xViKuo7Z8K3IXuK5ugwA+wUfKzomzdBPhfxDsqLcEziGRxoyx0Q3ld9aermBUccHtBxCasO2
 cm4gQmlkYXIgPG1lQHRoYW9kYW4uZGU+iJMEExYKADsCGwMFCwkIBwICIgIGFQoJCAsCBBYCAwEC
 HgcCF4AWIQRR8XbrdUcwHqcpqKtcG3ShZRxfaAUCZNf2FQAKCRBcG3ShZRxfaCzSAP4hZ7cSp0YN
 XYpcjHdsySh2MuBhhoPeLGXs+2kSiqBiOwD/TP8AgPEg/R+SI9GI9on7fBJJ0mp2IT8kZ2rhDOjg
 gA6IkwQTFgoAOxYhBFHxdut1RzAepymoq1wbdKFlHF9oBQJk1+ntAhsDBQsJCAcCAiICBhUKCQgL
 AgQWAgMBAh4HAheAAAoJEFwbdKFlHF9oBgwA/iQHwe0VL4Df4GGTYlNjMSHFlIkBmN4UfYGLYj3E
 TrOUAQC51M+M3cjsL8WHdpBz6VAo6df9d+rVwhQ9vQuFHqevArg4BGTX6T4SCisGAQQBl1UBBQEB
 B0Cbohc3JEfn005/cm0AOGjSsW1ZxAkgaoVNjbpqk4MgNAMBCAeIeAQYFgoAIBYhBFHxdut1RzAe
 pymoq1wbdKFlHF9oBQJk1+k+AhsMAAoJEFwbdKFlHF9ooHABAKGmrGBic/Vys3BBrOQiRB3Z7izO
 HwhqTRpAqFZtXS2nAQDZhp/5aYw1TZjTzkm1KVt9QiYnjd/MvxRE9iaY6x4mDbgzBGTX6T4WCSsG
 AQQB2kcPAQEHQAgRJq/tMcCCB2XyA5WZpu7GvpRx0m9IPRWazeqhOq7uiO8EGBYKACAWIQRR8Xbr
 dUcwHqcpqKtcG3ShZRxfaAUCZNf71AIbIgCBCRBcG3ShZRxfaHYgBBkWCgAdFiEEUfF263VHMB6n
 KairXBt0oWUcX2gFAmTX+9QACgkQXBt0oWUcX2jeSwD6AtWn0cuo8IF35YRo4o3cDRJnUfJnbvJy
 GxyCDThR+zYBAKG6/jdwmZkBQZKslnDAbMMd2WfiZZT5JW3IWC4EaKMO7HkBAKYPGZ3UbfkRvfFK
 S+pQ9CgtNfkSJQBtT1Ob7Y6nsacgAQCpyXN7yppmhW/oBgivITPy9Lkg+V4NK9WZYZCU9Q7LBA==
Date: Sun, 05 Jan 2025 22:36:13 +0200
Message-ID: <87h66dt2v6.fsf@>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Spam-Score: 1.2 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview:  I forgot to attach the update patch,
 see below: From 8cd116f25411575fb8ad59e08ba1cde8f7d7ae12
 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Bidar?=
 <bjorn.bidar@HIDDEN>
 Date: Fri, 3 Jan 2025 04:09:55 +0200 Subject: [PATCH] Refactor gnus [...]
 Content analysis details:   (1.2 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -0.0 SPF_PASS               SPF: sender matches SPF record
 -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
 1.2 INVALID_MSGID          Message-Id is not valid, according to RFC 2822
X-Debbugs-Envelope-To: 75305
Cc: Eric Abrahamsen <eric@HIDDEN>, 75305 <at> debbugs.gnu.org,
 Andrew G Cohen <cohen@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.2 (/)

--=-=-=
Content-Type: text/plain


I forgot to attach the update patch, see below:

--=-=-=
Content-Type: text/x-patch
Content-Disposition: inline;
 filename=0001-Refactor-gnus-refer-thread-use-search.patch

From 8cd116f25411575fb8ad59e08ba1cde8f7d7ae12 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn=20Bidar?= <bjorn.bidar@HIDDEN>
Date: Fri, 3 Jan 2025 04:09:55 +0200
Subject: [PATCH] Refactor gnus-refer-thread-use-search

* lisp/gnus/gnus-sum.el (gnus-refer-thread-use-search):
Make it easier to customize the variable by adding predefine choices
as well as descriptions to each choice. Add option to add the value
`current' to the list of servers and groups to add the current group.
E.g. to add another group and the current group.
* lisp/gnus/gnus-search.el
(gnus-refer-thread-maybe-add-current-group, gnus-search-thread):
Add helper function to determine if the option contains
the value current. Use helper function.
* lisp/gnus/nnselect.el (nnselect-request-thread): Use helper
function to check if the value current is in
gnus-refer-thread-use-search.
* doc/misc/gnus.texi (gnus-refer-thread-use-search):
Include the current value in the section. Format the section
a little better to have a paragraph for each possible value that
the option may contain. Explain the option to have
a list of servers more detailed , i.e. similarly to the custom
description. Highlight that the current group is not searched
unless specified. Explain that unless the articles of that
thread are contained in the searched groups not adding
the current group might not be the desired effect.
---
 doc/misc/gnus.texi       | 23 +++++++++++++++++------
 lisp/gnus/gnus-search.el | 25 ++++++++++++++++++++++---
 lisp/gnus/gnus-sum.el    | 17 +++++++++++++----
 lisp/gnus/nnselect.el    |  4 ++--
 4 files changed, 54 insertions(+), 15 deletions(-)

diff --git a/doc/misc/gnus.texi b/doc/misc/gnus.texi
index 200b68d2059..2e9959aeaf0 100644
--- a/doc/misc/gnus.texi
+++ b/doc/misc/gnus.texi
@@ -10557,12 +10557,23 @@ Finding the Parent
 course, it'll make group entry somewhat slow.
 
 @vindex gnus-refer-thread-use-search
-If @code{gnus-refer-thread-use-search} is @code{nil} (the default)
-then thread-referral only looks for articles in the current group.  If
-this variable is @code{t} the server to which the current group
-belongs is searched (provided that searching is available for the
-server's backend).  If this variable is a list of servers, each server
-in the list is searched.
+If @code{gnus-refer-thread-use-search} is @code{current} or @code{nil}
+(the default), then thread-referral only looks for articles
+in the current group.
+
+If this variable is @code{t}, the server to which the current group
+belongs is searched.  Note this is only possible provided that
+searching is available for the server's backend.
+
+The value can also be a list of the form
+@code{(@var{server} @var{group}@dots{})}, where @var{server} is the
+server and @var{group}s are the groups belonging to the server.
+
+To search in the current group in addition to other groups,
+the list of servers may contain the symbol @code{current}.
+If @code{current} is not in the list, the current group is not searched.
+Note this may be not the desired effect if any of articles referred in
+the thread are not contained in any of the searched groups.
 
 @vindex gnus-refer-thread-limit
 The @code{gnus-refer-thread-limit} variable says how many old (i.e.,
diff --git a/lisp/gnus/gnus-search.el b/lisp/gnus/gnus-search.el
index 12af8dcdfa7..959984c2ca4 100644
--- a/lisp/gnus/gnus-search.el
+++ b/lisp/gnus/gnus-search.el
@@ -2206,6 +2206,24 @@ gnus-search-server-to-engine
 
 (declare-function gnus-registry-get-id-key "gnus-registry" (id key))
 
+(defun gnus-refer-thread-maybe-add-current-group (group)
+  "Return `gnus-refer-thread-use-search' with `current' replaced by GROUP.
+Return nil if `current' was not found or if was not a list."
+  (cond ((eq 'current gnus-refer-thread-use-search)
+         (list (gnus-info-method (gnus-get-info group))
+               group))
+        ((listp gnus-refer-thread-use-search)
+         (let (out)
+           (dolist (search gnus-refer-thread-use-search)
+             (push (if (and (not (listp search)) (eq 'current search))
+                       (list (gnus-info-method (gnus-get-info group))
+                             group)
+                     search)
+                   out))
+           out))
+        (t
+         nil)))
+
 (defun gnus-search-thread (header &optional group server)
   "Find articles in the thread containing HEADER from GROUP on SERVER.
 If `gnus-refer-thread-use-search' is nil only the current group is
@@ -2227,7 +2245,8 @@ gnus-search-thread
                             " or "))
            (cons 'thread t)))
          (gnus-search-use-parsed-queries t))
-    (if (not gnus-refer-thread-use-search)
+    (if (or (not gnus-refer-thread-use-search)
+            (eq 'current gnus-refer-thread-use-search))
         ;; Search only the current group and send the headers back to
         ;; the caller to add to the summary buffer.
         (gnus-fetch-headers
@@ -2247,8 +2266,8 @@ gnus-search-thread
             (thread  (gnus-search-run-query
                       (list (cons 'search-query-spec query)
                             (cons 'search-group-spec
-                                  (if (listp gnus-refer-thread-use-search)
-                                      gnus-refer-thread-use-search
+                                  (or (gnus-refer-thread-maybe-add-current-group
+                                       group)
                                     (list (list server))))))))
         (if (< (nnselect-artlist-length thread) 2)
             (message "No other articles in thread")
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el
index a9caa83b15c..107e52ab8ef 100644
--- a/lisp/gnus/gnus-sum.el
+++ b/lisp/gnus/gnus-sum.el
@@ -149,11 +149,20 @@ gnus-refer-thread-use-search
 list of servers and groups (where each element is a list whose
 car is the server and whose cdr is a list of groups on this
 server or nil to search the entire server) searches these
-server/groups.  This may usefully be set as a group parameter."
-  :version "28.1"
+server/groups.
+
+The list of of server and groups may contain
+the symbol `current' to refer to the current group.
+For example, to search in the current group in addition to other groups.
+
+This may usefully be set as a group parameter."
+  :version "31.1"
   :group 'gnus-thread
-  :type '(restricted-sexp :match-alternatives
-                          (listp 't 'nil)))
+  :type '(choice (const :tag "Current group" nil)
+                 (const :tag "All groups" t)
+                 (repeat :tag "Server and groups"
+                         (choice (const :tag "Current Group" current)
+                                 (repeat :tag "Server and groups" string)))))
 
 (defcustom gnus-refer-thread-limit-to-thread nil
   "If non-nil referring a thread will limit the summary buffer to
diff --git a/lisp/gnus/nnselect.el b/lisp/gnus/nnselect.el
index c6a1c0a9342..9d55ac27b98 100644
--- a/lisp/gnus/nnselect.el
+++ b/lisp/gnus/nnselect.el
@@ -49,6 +49,7 @@
 (require 'gnus-art)
 (autoload 'gnus-search-run-query "gnus-search")
 (autoload 'gnus-search-server-to-engine "gnus-search")
+(autoload 'gnus-refer-thread-maybe-add-current-group "gnus-search")
 
 (eval-when-compile (require 'cl-lib))
 
@@ -707,8 +708,7 @@ nnselect-request-thread
                  (group-spec
                   (if (not gnus-refer-thread-use-search)
                       (list (list server artgroup))
-                    (if (listp gnus-refer-thread-use-search)
-                        gnus-refer-thread-use-search
+                    (or (gnus-refer-thread-maybe-add-current-group group)
                       (list (list server)))))
                  (ids (cons (mail-header-id header)
                             (split-string
-- 
2.45.2


--=-=-=--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#75305; Package emacs. Full text available.

Message received at 75305 <at> debbugs.gnu.org:


Received: (at 75305) by debbugs.gnu.org; 5 Jan 2025 20:34:14 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jan 05 15:34:14 2025
Received: from localhost ([127.0.0.1]:35419 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tUXKA-0008PR-9T
	for submit <at> debbugs.gnu.org; Sun, 05 Jan 2025 15:34:14 -0500
Received: from thaodan.de ([2a03:4000:4f:f15::1]:56002)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <bjorn.bidar@HIDDEN>)
 id 1tUXK4-0008Oj-FU
 for 75305 <at> debbugs.gnu.org; Sun, 05 Jan 2025 15:34:12 -0500
Received: from odin (dsl-trebng12-50dc7b-49.dhcp.inet.fi [80.220.123.49])
 by thaodan.de (Postfix) with ESMTPSA id BA027D00098;
 Sun,  5 Jan 2025 22:34:00 +0200 (EET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=thaodan.de; s=mail;
 t=1736109240; bh=WlbFYGal2t104WP0MH4IlvOUeIBnYEN+pAmrJyAcJsU=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date;
 b=VAc2tWEqcVOyGq9loHWmhN5q95mC+h8h3m0lfm1ykaE9e/cUFd3hePyqXatqW4WeN
 Og7+DbV9ecJIlR/U9H0L9qNBF4oqFi49DndMg+6cUQjblpmYozzR95UAMwZFQFSo94
 /xJDZpOME0KSOuMjb0172Y7KfpRLe9mjsArQujdRZgyLXOpmPQk1+1H9UHz1r2wRs9
 B2HdNTbcidVHvWs2fLwlBHOkYDXsFEA7XwWkB+zuQJ2RbKa2unjLx0HDgxhVb4B2oF
 XnivLLUmqDUBNwYymOpSQjsLsZnTNlTR2/HZiMYDrQv6ztFdUQrDIVvROkmIdUAD3P
 pB1iXO5Q0meyLfTqThsLNtb9lL/nZFExve0vYmPsXNevKRuo8Z4f9gsQsHGZf8Ey3e
 /ttpZrF+5XXGH7MvOlI7u3ugoDUL4doGR2kcSTVSLmnm3Jg4DkPRBW1O4XrmumEetS
 fDm7DVcFoShzjiFPjoBjD5hgS67t12GVWo20y9wbZPLCYvWQYUxT770ZP8uppkYSQu
 YWjQZBwwZuGZ6Sq/fpI57bDeJNMWe0dL4tPF8K6YpPmmbdnhtMnFItZIlamwfeB6kY
 AYIN1lHPPpA8kWhHqy21VUVsCi6xdHmFAGE0KAA0kkzcIUna6IQwUnGZtD6AxOCSjf
 /velnSJP8pOppoKlTkLheHGA=
From: =?utf-8?Q?Bj=C3=B6rn?= Bidar <bjorn.bidar@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#75305: 31.0.50; gnus-refer-thread-use-search isn't exact
 enough about how the current group is searched
In-Reply-To: <86wmf9ai4k.fsf@HIDDEN> (Eli Zaretskii's message of "Sun, 05 Jan
 2025 08:29:15 +0200")
References: <8634i0ia6l.fsf@HIDDEN> <86o70md819.fsf@HIDDEN>
 <86wmf9ai4k.fsf@HIDDEN>
Autocrypt: addr=bjorn.bidar@HIDDEN; prefer-encrypt=nopreference; keydata=
 mDMEZNfpPhYJKwYBBAHaRw8BAQdACBEmr+0xwIIHZfIDlZmm7sa+lHHSb0g9FZrN6qE6ru60JUJq
 w7ZybiBCaWRhciA8Ympvcm4uYmlkYXJAdGhhb2Rhbi5kZT6IlgQTFgoAPgIbAwULCQgHAgIiAgYV
 CgkICwIEFgIDAQIeBwIXgBYhBFHxdut1RzAepymoq1wbdKFlHF9oBQJk1/YmAhkBAAoJEFwbdKFl
 HF9oB9cBAJoIIGQKXm4cpap+Flxc/EGnYl0123lcEyzuduqvlDT0AQC3OlFKm/OiqJ8IMTrzJRZ8
 phFssTkSrrFXnM2jm5PYDoiTBBMWCgA7FiEEUfF263VHMB6nKairXBt0oWUc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ACgkQXBt0oWUcX2jeSwD6AtWn0cuo8IF35YRo4o3cDRJnUfJnbvJy
 GxyCDThR+zYBAKG6/jdwmZkBQZKslnDAbMMd2WfiZZT5JW3IWC4EaKMO7HkBAKYPGZ3UbfkRvfFK
 S+pQ9CgtNfkSJQBtT1Ob7Y6nsacgAQCpyXN7yppmhW/oBgivITPy9Lkg+V4NK9WZYZCU9Q7LBA==
Date: Sun, 05 Jan 2025 22:33:59 +0200
Message-ID: <87o70lt2yw.fsf@>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 1.2 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 
 Content preview:  Eli Zaretskii <eliz@HIDDEN> writes: >> From: Björn Bidar
    <bjorn.bidar@HIDDEN> >> Cc: 75305 <at> debbugs.gnu.org >> Date: Sat, 04 Jan
    2025 23:34:10 +0200 >> >> Eli Zaretskii <eliz@HIDDEN> writes: >> >> > Thanks,
    but the patch seems to i [...] 
 
 Content analysis details:   (1.2 points, 10.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -0.0 SPF_PASS               SPF: sender matches SPF record
 -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
  1.2 INVALID_MSGID          Message-Id is not valid, according to RFC 2822
X-Debbugs-Envelope-To: 75305
Cc: Eric Abrahamsen <eric@HIDDEN>, 75305 <at> debbugs.gnu.org,
 Andrew G Cohen <cohen@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.2 (/)

Eli Zaretskii <eliz@HIDDEN> writes:

>> From: Bj=C3=B6rn Bidar <bjorn.bidar@HIDDEN>
>> Cc: 75305 <at> debbugs.gnu.org
>> Date: Sat, 04 Jan 2025 23:34:10 +0200
>>=20
>> Eli Zaretskii <eliz@HIDDEN> writes:
>>=20
>> > Thanks, but the patch seems to include unrelated changes in the code?
>> > I thought we were talking only about fixing the manual?  Or what did I
>> > miss?
>> >
>>=20
>> I look at the situation further and noticed that adding the current
>> group does not work without the user writing a custom hook to add it.
>> I already wrote a hook to change gnus-refer-thread-use-search for
>> another reason, to add the current gnus-message-archive-group to=20
>> gnus-refer-thread-use-search.
>> To just add the current group writing a hook would be to clumsy.
>> Using the current symbol similar as in gnus-refer-article-method is much
>> simpler, makes the setting easier to understand and customize for new=20
>> users.
>>=20
>> The customization changes are there to use better custom types which
>> makes it easier to customize and harder to put false values into the
>> option when using custom.
>
> Then we'll need to wait for our Gnus expert (CC'ed) to review your
> code changes.  I have some comments to the documentation part below:

OK great.=20

>> * lisp/gnus/gnus-sum.el (gnus-refer-thread-use-search):
>> Make it easier to customize the variable by adding predefine choices
>> as well as descriptions to each choice. Add option to add the value
>> `current' to the list of servers and groups to add the current group.
>> E.g. to add another group and the current group.
>> * lisp/gnus/gnus-search.el (gnus-refer-thread-maybe-add-current-group,
>> gnus-search-thread): Add helper function to determine if the option
>> contains the value current. Use helper function.
>> * lisp/gnus/nnselect.el (nnselect-request-thread): Use helper function
>> to check if the value current is in gnus-refer-thread-use-search.
>> * doc/misc/gnus.texi (gnus-refer-thread-use-search):
>> Include the current value in the section. Format the section a little
>> better to have a paragraph for each possible value that the option
>> may contain. Explain the option to have a list of servers more detailed
>> , i.e. similarly to the custom description. Highlight that the current
>> group is not searched unless specified. Explain that unless the articles
>> of that thread are contained in the searched groups not adding the
>> current group might not be the desired effect.
>
> Some of the lines in the log message are too long.  Please be sure to
> wrap lines at column 64 if possible, and in any case before column 70.
>

I did so but it does make the message harder to read when long function
or variable names come into play.

The grammar errors you noticed are fixed. I also applied the suggested
changes to the docstring of the new function.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#75305; Package emacs. Full text available.

Message received at 75305 <at> debbugs.gnu.org:


Received: (at 75305) by debbugs.gnu.org; 5 Jan 2025 06:29:27 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jan 05 01:29:27 2025
Received: from localhost ([127.0.0.1]:59257 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tUK8c-00064i-UC
	for submit <at> debbugs.gnu.org; Sun, 05 Jan 2025 01:29:27 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:47310)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tUK8b-00064R-3z
 for 75305 <at> debbugs.gnu.org; Sun, 05 Jan 2025 01:29:25 -0500
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 <eliz@HIDDEN>)
 id 1tUK8U-0002un-Fm; Sun, 05 Jan 2025 01:29:18 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=yO5plfZhrn64vvuoOIUxFwVAOkw1mBwyE8qcFOz/IvQ=; b=mpCJk3iohBTcN44O0e8F
 kkQU41lXMYdc1Be97pGCjGaBWtKhVAZorRoqRZ5HiE6AeczH5PCGB8o1GuPs77wPxHVWTcsmJLp49
 6sw2EaDdevY7Oakn9qKD0bzb8gLbo2Wk06Rx428O+u1P6CyAtE35LW0GoWuu9GLRfW0+jjaeTiDbG
 hkRybBcjvTvfos/S0cpvL1JB4l+5DU/o5wn/Za0q3IPcAhGrlCOBqizHZzU8jh1zt9H+D6BeCWrud
 4GQca9h5T3TdCHJcPwLTr740oNiI4Dqjfl0nVrfu3QLf9yEkXBO8eLhykpXbncgf14x8+TugFew6L
 tG5j1Xh655Kx+A==;
Date: Sun, 05 Jan 2025 08:29:15 +0200
Message-Id: <86wmf9ai4k.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: =?utf-8?Q?Bj=C3=B6rn?= Bidar <bjorn.bidar@HIDDEN>,
 Andrew G Cohen <cohen@HIDDEN>,
 Eric Abrahamsen <eric@HIDDEN>
In-Reply-To: <87bjwmw9f1.fsf@> (message from =?utf-8?Q?Bj=C3=B6rn?= Bidar on
 Sat, 04 Jan 2025 23:34:10 +0200)
Subject: Re: bug#75305: 31.0.50; gnus-refer-thread-use-search isn't exact
 enough about how the current group is searched
References: <8634i0ia6l.fsf@HIDDEN> <86o70md819.fsf@HIDDEN> <87bjwmw9f1.fsf@>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 75305
Cc: 75305 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Björn Bidar <bjorn.bidar@HIDDEN>
> Cc: 75305 <at> debbugs.gnu.org
> Date: Sat, 04 Jan 2025 23:34:10 +0200
> 
> Eli Zaretskii <eliz@HIDDEN> writes:
> 
> > Thanks, but the patch seems to include unrelated changes in the code?
> > I thought we were talking only about fixing the manual?  Or what did I
> > miss?
> >
> 
> I look at the situation further and noticed that adding the current
> group does not work without the user writing a custom hook to add it.
> I already wrote a hook to change gnus-refer-thread-use-search for
> another reason, to add the current gnus-message-archive-group to 
> gnus-refer-thread-use-search.
> To just add the current group writing a hook would be to clumsy.
> Using the current symbol similar as in gnus-refer-article-method is much
> simpler, makes the setting easier to understand and customize for new 
> users.
> 
> The customization changes are there to use better custom types which
> makes it easier to customize and harder to put false values into the
> option when using custom.

Then we'll need to wait for our Gnus expert (CC'ed) to review your
code changes.  I have some comments to the documentation part below:

> * lisp/gnus/gnus-sum.el (gnus-refer-thread-use-search):
> Make it easier to customize the variable by adding predefine choices
> as well as descriptions to each choice. Add option to add the value
> `current' to the list of servers and groups to add the current group.
> E.g. to add another group and the current group.
> * lisp/gnus/gnus-search.el (gnus-refer-thread-maybe-add-current-group,
> gnus-search-thread): Add helper function to determine if the option
> contains the value current. Use helper function.
> * lisp/gnus/nnselect.el (nnselect-request-thread): Use helper function
> to check if the value current is in gnus-refer-thread-use-search.
> * doc/misc/gnus.texi (gnus-refer-thread-use-search):
> Include the current value in the section. Format the section a little
> better to have a paragraph for each possible value that the option
> may contain. Explain the option to have a list of servers more detailed
> , i.e. similarly to the custom description. Highlight that the current
> group is not searched unless specified. Explain that unless the articles
> of that thread are contained in the searched groups not adding the
> current group might not be the desired effect.

Some of the lines in the log message are too long.  Please be sure to
wrap lines at column 64 if possible, and in any case before column 70.

> +If @code{gnus-refer-thread-use-search} is @code{current} or @code{nil}
> +(the default) then thread-referral only looks for articles in the current group.
                ^
Comma missing there (yes, it was also missing in the original text).

> +If this variable is @code{t} the server to which the current group
                               ^
Same here.

> +The variable can also be a list of server each server
> +in the list is searched.  The servers have to specified in a list
                                         ^^^^^^^^^^^^^^^^^
"have to be specified", right?

> +where the first element of this has to be the server and any remaining elements
> +can be the groups belonging to that server.

This is better rephrased in our usual style:

  The value can also be a list of the form
  @code{(@var{server} @var{group}@dots{})}, where @var{server} is the
  server and @var{group}s are the groups belonging to the server.

> +To search in the current group in addition to other groups the list of servers
                                                             ^
Again missing comma.

> +If @code{current} is not in the list the current group is not searched,
                                       ^
Same here.

> +note this may be not the desired effect if any of articles referred in
> +the thread are not contained in any of the searched groups.

I would divide this sentence into two:

   If @code{current} is not in the list, ... is not searched.  This
   may not be the desired effect if ...

> +(defun gnus-refer-thread-maybe-add-current-group (group)
> +  "Find if GROUP should be added to `gnus-refer-thread-use-search'."

"Find" is to abstract and withholds information.  Suggest to rephrase:

    Return t if GROUP should be added to `gnus-refer-thread-use-search'.
  Return nil otherwise.

> +The list of of server and groups may contain
> +the symbol `current' to refer to the current group.
> +For example to search in the current group in addition to other groups.
              ^
Comma missing there.

Thanks.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#75305; Package emacs. Full text available.

Message received at 75305 <at> debbugs.gnu.org:


Received: (at 75305) by debbugs.gnu.org; 4 Jan 2025 21:34:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 04 16:34:20 2025
Received: from localhost ([127.0.0.1]:57718 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tUBml-0006BS-9u
	for submit <at> debbugs.gnu.org; Sat, 04 Jan 2025 16:34:19 -0500
Received: from thaodan.de ([185.216.177.71]:55328)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <bjorn.bidar@HIDDEN>)
 id 1tUBmj-0006BD-AM
 for 75305 <at> debbugs.gnu.org; Sat, 04 Jan 2025 16:34:18 -0500
Received: from odin (dsl-trebng12-50dc7b-49.dhcp.inet.fi [80.220.123.49])
 by thaodan.de (Postfix) with ESMTPSA id 010F1D0002E;
 Sat,  4 Jan 2025 23:34:10 +0200 (EET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=thaodan.de; s=mail;
 t=1736026451; bh=EkGiAX/4Vez+uKt3O2YgQWHyMLhkZtAT5ubRoKKEFf8=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date;
 b=bvqx96WkREamsTQaIwRfv2U/rTsrxpOO6P8CcDsecL98GU7EUBE2XEoPEtGsiQnnX
 XjWzHnsREDmEJlFuUKAdCAoLHUxpdStyaExHdkT37c21y3cUQDhQxlc2LV8aFUT801
 BNaTG4AQvlPrRC2UzqScgLrwwuyE9ZABVk11o5kHrVetKesZiUjvy1/pCFCGTi4E6V
 hjvf5jA3w5a6p1nKEd98iTI9cU/daRwfngSkkNCC9gB0x6mxV8Kza5WHtTnt2jwlMP
 yXS1kXmAOsVgMaoqZXS6tPZXnUf3UewzbJuz4HCHXszhUHgSohng3N/RFTgqMFxwND
 fHAB0J2c7zyVK1Bo35BKnADE1KvTVdgutdca8/26OFurBT81FawXNE/tR/BNfbVq+i
 JjJ6yP2HUVe/AfKqS3pieg6or2UFUrwHsV6ktJzkY7ZzzAvMe++S/uVjYo7Sd/jd5X
 CCDuiKA2nib28YKIFsi7JUiycHXviK/33LNxN4Temc2RIYMzh+ZoYTCPh9bEDIODZL
 TqUoxZPowlsS1a8JoxBSEBetMF+cqEj9Yqu0UpXflX9E3pgvjPrP/wOeT/3p6sbMuh
 uFqacMOuL37itPvG48l3OWq//3JrjrvlLWRAEasDQdRjtAFtgTYgvWSVbojC9RN00R
 IZWxML0SUtkGrSfOAmBrvllc=
From: =?utf-8?Q?Bj=C3=B6rn?= Bidar <bjorn.bidar@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#75305: 31.0.50; gnus-refer-thread-use-search isn't exact
 enough about how the current group is searched
In-Reply-To: <86o70md819.fsf@HIDDEN> (Eli Zaretskii's message of "Sat, 04 Jan
 2025 15:26:42 +0200")
References: <8634i0ia6l.fsf@HIDDEN> <86o70md819.fsf@HIDDEN>
Autocrypt: addr=bjorn.bidar@HIDDEN; prefer-encrypt=nopreference; keydata=
 mDMEZNfpPhYJKwYBBAHaRw8BAQdACBEmr+0xwIIHZfIDlZmm7sa+lHHSb0g9FZrN6qE6ru60JUJq
 w7ZybiBCaWRhciA8Ympvcm4uYmlkYXJAdGhhb2Rhbi5kZT6IlgQTFgoAPgIbAwULCQgHAgIiAgYV
 CgkICwIEFgIDAQIeBwIXgBYhBFHxdut1RzAepymoq1wbdKFlHF9oBQJk1/YmAhkBAAoJEFwbdKFl
 HF9oB9cBAJoIIGQKXm4cpap+Flxc/EGnYl0123lcEyzuduqvlDT0AQC3OlFKm/OiqJ8IMTrzJRZ8
 phFssTkSrrFXnM2jm5PYDoiTBBMWCgA7FiEEUfF263VHMB6nKairXBt0oWUcX2gFAmTX6T4CGwMF
 CwkIBwICIgIGFQoJCAsCBBYCAwECHgcCF4AACgkQXBt0oWUcX2hbCQEAtru7kvM8hi8zo6z9ux2h
 K+B5xViKuo7Z8K3IXuK5ugwA+wUfKzomzdBPhfxDsqLcEziGRxoyx0Q3ld9aermBUccHtBxCasO2
 cm4gQmlkYXIgPG1lQHRoYW9kYW4uZGU+iJMEExYKADsCGwMFCwkIBwIC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jan 2025 23:34:10 +0200
Message-ID: <87bjwmw9f1.fsf@>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Spam-Score: 1.2 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 
 Content preview:  Eli Zaretskii <eliz@HIDDEN> writes: >> From: Björn Bidar
    <bjorn.bidar@HIDDEN> >> Cc: 75305 <at> debbugs.gnu.org >> Date: Fri, 03 Jan
    2025 22:33:34 +0200 >> >> Eli Zaretskii <eliz@HIDDEN> writes: >> >> >> Date:
    Fri, 03 Jan 2025 01:36:19 [...] 
 
 Content analysis details:   (1.2 points, 10.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -0.0 SPF_PASS               SPF: sender matches SPF record
 -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
  0.0 RCVD_IN_VALIDITY_SAFE_BLOCKED RBL: ADMINISTRATOR NOTICE: The
                             query to Validity was blocked.  See
                             https://knowledge.validity.com/hc/en-us/articles/20961730681243
                              for more information.
                         [185.216.177.71 listed in sa-trusted.bondedsender.org]
  0.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The
                             query to Validity was blocked.  See
                             https://knowledge.validity.com/hc/en-us/articles/20961730681243
                              for more information.
                            [185.216.177.71 listed in bl.score.senderscore.com]
  1.2 INVALID_MSGID          Message-Id is not valid, according to RFC 2822
X-Debbugs-Envelope-To: 75305
Cc: 75305 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.2 (/)

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Eli Zaretskii <eliz@HIDDEN> writes:

>> From: Bj=C3=B6rn Bidar <bjorn.bidar@HIDDEN>
>> Cc: 75305 <at> debbugs.gnu.org
>> Date: Fri, 03 Jan 2025 22:33:34 +0200
>>=20
>> Eli Zaretskii <eliz@HIDDEN> writes:
>>=20
>> >> Date: Fri, 03 Jan 2025 01:36:19 +0200
>> >> From:  Bj=C3=B6rn Bidar via "Bug reports for GNU Emacs,
>> >>  the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN>
>> >>=20
>> >>=20
>> >> I noticed that as intended without adding the current group to the
>> >> variable in addition to the current group.
>> >> The manual states what happens what the variable does when set howeve=
r I
>> >> think the description is not exact enough.
>> >>=20
>> >> It is very easy to overlook that to add the current group in addition
>> >> other groups it has to be added too.
>> >
>> > Can you suggest the additions to the manual?
>>=20
>> I can. I compared the option to another gnus-refer-article-method one
>> which has the option to include the symbol current to include the curren
>> t method.
>>=20
>> I added the same symbol to gnus-refer-thread-use-search to add the
>> current group including the other groups to the list of possible groups
>> to search through. I adjusted the manual to include the current symbol a=
nd
>> explain the option better.
>
> Thanks, but the patch seems to include unrelated changes in the code?
> I thought we were talking only about fixing the manual?  Or what did I
> miss?
>

I look at the situation further and noticed that adding the current
group does not work without the user writing a custom hook to add it.
I already wrote a hook to change gnus-refer-thread-use-search for
another reason, to add the current gnus-message-archive-group to=20
gnus-refer-thread-use-search.
To just add the current group writing a hook would be to clumsy.
Using the current symbol similar as in gnus-refer-article-method is much
simpler, makes the setting easier to understand and customize for new=20
users.

The customization changes are there to use better custom types which
makes it easier to customize and harder to put false values into the
option when using custom.

> Also, please be sure to leave two spaces between sentences, per our
> conventions.


--=-=-=
Content-Type: text/x-patch
Content-Disposition: inline;
 filename=0001-Refactor-gnus-refer-thread-use-search.patch

From 56c0543bb10d7523ca14d5456a1ade37c9c1f6dc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn=20Bidar?= <bjorn.bidar@HIDDEN>
Date: Fri, 3 Jan 2025 04:09:55 +0200
Subject: [PATCH] Refactor gnus-refer-thread-use-search

* lisp/gnus/gnus-sum.el (gnus-refer-thread-use-search):
Make it easier to customize the variable by adding predefine choices
as well as descriptions to each choice. Add option to add the value
`current' to the list of servers and groups to add the current group.
E.g. to add another group and the current group.
* lisp/gnus/gnus-search.el (gnus-refer-thread-maybe-add-current-group,
gnus-search-thread): Add helper function to determine if the option
contains the value current. Use helper function.
* lisp/gnus/nnselect.el (nnselect-request-thread): Use helper function
to check if the value current is in gnus-refer-thread-use-search.
* doc/misc/gnus.texi (gnus-refer-thread-use-search):
Include the current value in the section. Format the section a little
better to have a paragraph for each possible value that the option
may contain. Explain the option to have a list of servers more detailed
, i.e. similarly to the custom description. Highlight that the current
group is not searched unless specified. Explain that unless the articles
of that thread are contained in the searched groups not adding the
current group might not be the desired effect.
---
 doc/misc/gnus.texi       | 23 +++++++++++++++++------
 lisp/gnus/gnus-search.el | 24 +++++++++++++++++++++---
 lisp/gnus/gnus-sum.el    | 17 +++++++++++++----
 lisp/gnus/nnselect.el    |  4 ++--
 4 files changed, 53 insertions(+), 15 deletions(-)

diff --git a/doc/misc/gnus.texi b/doc/misc/gnus.texi
index 200b68d2059..6ac57a8c463 100644
--- a/doc/misc/gnus.texi
+++ b/doc/misc/gnus.texi
@@ -10557,12 +10557,23 @@ Finding the Parent
 course, it'll make group entry somewhat slow.
 
 @vindex gnus-refer-thread-use-search
-If @code{gnus-refer-thread-use-search} is @code{nil} (the default)
-then thread-referral only looks for articles in the current group.  If
-this variable is @code{t} the server to which the current group
-belongs is searched (provided that searching is available for the
-server's backend).  If this variable is a list of servers, each server
-in the list is searched.
+If @code{gnus-refer-thread-use-search} is @code{current} or @code{nil}
+(the default) then thread-referral only looks for articles in the current group.
+
+If this variable is @code{t} the server to which the current group
+belongs is searched.  Note this is only possible provided that searching
+is available for the server's backend.
+
+The variable can also be a list of server each server
+in the list is searched.  The servers have to specified in a list
+where the first element of this has to be the server and any remaining elements
+can be the groups belonging to that server.
+
+To search in the current group in addition to other groups the list of servers
+may contain the symbol @code{current}.
+If @code{current} is not in the list the current group is not searched,
+note this may be not the desired effect if any of articles referred in
+the thread are not contained in any of the searched groups.
 
 @vindex gnus-refer-thread-limit
 The @code{gnus-refer-thread-limit} variable says how many old (i.e.,
diff --git a/lisp/gnus/gnus-search.el b/lisp/gnus/gnus-search.el
index 12af8dcdfa7..e61df436c80 100644
--- a/lisp/gnus/gnus-search.el
+++ b/lisp/gnus/gnus-search.el
@@ -2206,6 +2206,23 @@ gnus-search-server-to-engine
 
 (declare-function gnus-registry-get-id-key "gnus-registry" (id key))
 
+(defun gnus-refer-thread-maybe-add-current-group (group)
+  "Find if GROUP should be added to `gnus-refer-thread-use-search'."
+  (cond ((eq 'current gnus-refer-thread-use-search)
+         (list (gnus-info-method (gnus-get-info group))
+               group))
+        ((listp gnus-refer-thread-use-search)
+         (let (out)
+           (dolist (search gnus-refer-thread-use-search)
+             (push (if (and (not (listp search)) (eq 'current search))
+                       (list (gnus-info-method (gnus-get-info group))
+                             group)
+                     search)
+                   out))
+           out))
+        (t
+         nil)))
+
 (defun gnus-search-thread (header &optional group server)
   "Find articles in the thread containing HEADER from GROUP on SERVER.
 If `gnus-refer-thread-use-search' is nil only the current group is
@@ -2227,7 +2244,8 @@ gnus-search-thread
                             " or "))
            (cons 'thread t)))
          (gnus-search-use-parsed-queries t))
-    (if (not gnus-refer-thread-use-search)
+    (if (or (not gnus-refer-thread-use-search)
+            (eq 'current gnus-refer-thread-use-search))
         ;; Search only the current group and send the headers back to
         ;; the caller to add to the summary buffer.
         (gnus-fetch-headers
@@ -2247,8 +2265,8 @@ gnus-search-thread
             (thread  (gnus-search-run-query
                       (list (cons 'search-query-spec query)
                             (cons 'search-group-spec
-                                  (if (listp gnus-refer-thread-use-search)
-                                      gnus-refer-thread-use-search
+                                  (or (gnus-refer-thread-maybe-add-current-group
+                                       group)
                                     (list (list server))))))))
         (if (< (nnselect-artlist-length thread) 2)
             (message "No other articles in thread")
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el
index a9caa83b15c..2119235bc2e 100644
--- a/lisp/gnus/gnus-sum.el
+++ b/lisp/gnus/gnus-sum.el
@@ -149,11 +149,20 @@ gnus-refer-thread-use-search
 list of servers and groups (where each element is a list whose
 car is the server and whose cdr is a list of groups on this
 server or nil to search the entire server) searches these
-server/groups.  This may usefully be set as a group parameter."
-  :version "28.1"
+server/groups.
+
+The list of of server and groups may contain
+the symbol `current' to refer to the current group.
+For example to search in the current group in addition to other groups.
+
+This may usefully be set as a group parameter."
+  :version "31.1"
   :group 'gnus-thread
-  :type '(restricted-sexp :match-alternatives
-                          (listp 't 'nil)))
+  :type '(choice (const :tag "Current group" nil)
+                 (const :tag "All groups" t)
+                 (repeat :tag "Server and groups"
+                         (choice (const :tag "Current Group" current)
+                                 (repeat :tag "Server and groups" string)))))
 
 (defcustom gnus-refer-thread-limit-to-thread nil
   "If non-nil referring a thread will limit the summary buffer to
diff --git a/lisp/gnus/nnselect.el b/lisp/gnus/nnselect.el
index c6a1c0a9342..9d55ac27b98 100644
--- a/lisp/gnus/nnselect.el
+++ b/lisp/gnus/nnselect.el
@@ -49,6 +49,7 @@
 (require 'gnus-art)
 (autoload 'gnus-search-run-query "gnus-search")
 (autoload 'gnus-search-server-to-engine "gnus-search")
+(autoload 'gnus-refer-thread-maybe-add-current-group "gnus-search")
 
 (eval-when-compile (require 'cl-lib))
 
@@ -707,8 +708,7 @@ nnselect-request-thread
                  (group-spec
                   (if (not gnus-refer-thread-use-search)
                       (list (list server artgroup))
-                    (if (listp gnus-refer-thread-use-search)
-                        gnus-refer-thread-use-search
+                    (or (gnus-refer-thread-maybe-add-current-group group)
                       (list (list server)))))
                  (ids (cons (mail-header-id header)
                             (split-string
-- 
2.45.2


--=-=-=--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#75305; Package emacs. Full text available.

Message received at 75305 <at> debbugs.gnu.org:


Received: (at 75305) by debbugs.gnu.org; 4 Jan 2025 13:26:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 04 08:26:55 2025
Received: from localhost ([127.0.0.1]:53903 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tU4B5-000844-HQ
	for submit <at> debbugs.gnu.org; Sat, 04 Jan 2025 08:26:55 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:47016)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tU4B2-00083q-JX
 for 75305 <at> debbugs.gnu.org; Sat, 04 Jan 2025 08:26:53 -0500
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 <eliz@HIDDEN>)
 id 1tU4Aw-0006Rx-BE; Sat, 04 Jan 2025 08:26:46 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=u9E47tafYcpmJMxn9WbAgWiRIXuXxKmG684G+79jdLM=; b=cNw979oAHs38vLJjnMZX
 05wHrOvfoJbzjqoEPKWOkorL2quTVGPWqXMX5tOvyJg9QPxMZaWCostI36L+feTB0bfI1EFEH86FQ
 cCcy9riSOF6MEUtkVQhFHoZ3wTyoNUdvhddeFF7G8kgAaPFhCUn2QPwgSAaY4EA+ciAkhoXV+Ig7v
 S/7CV7UCglrR3o8JrrQ6LLS/K4Wa2MmBBiXPZ6bLYCg2ZUMm6rhNfeQ2W0XKXDWEZ3g2fDtEpxlK/
 9uC2nzCVyzub9f7OFaKdA2hUvQ2wGFF2s5MvPcCAueyVN3uzXQiUIx1uru56g8EnfVVW5odNfiTzr
 s7WVQbd9Z73X2g==;
Date: Sat, 04 Jan 2025 15:26:42 +0200
Message-Id: <86o70md819.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: =?utf-8?Q?Bj=C3=B6rn?= Bidar <bjorn.bidar@HIDDEN>
In-Reply-To: <87o70nd4dd.fsf@> (message from =?utf-8?Q?Bj=C3=B6rn?= Bidar on
 Fri, 03 Jan 2025 22:33:34 +0200)
Subject: Re: bug#75305: 31.0.50; gnus-refer-thread-use-search isn't exact
 enough about how the current group is searched
References: <8634i0ia6l.fsf@HIDDEN> <87o70nd4dd.fsf@>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 75305
Cc: 75305 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Björn Bidar <bjorn.bidar@HIDDEN>
> Cc: 75305 <at> debbugs.gnu.org
> Date: Fri, 03 Jan 2025 22:33:34 +0200
> 
> Eli Zaretskii <eliz@HIDDEN> writes:
> 
> >> Date: Fri, 03 Jan 2025 01:36:19 +0200
> >> From:  Björn Bidar via "Bug reports for GNU Emacs,
> >>  the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN>
> >> 
> >> 
> >> I noticed that as intended without adding the current group to the
> >> variable in addition to the current group.
> >> The manual states what happens what the variable does when set however I
> >> think the description is not exact enough.
> >> 
> >> It is very easy to overlook that to add the current group in addition
> >> other groups it has to be added too.
> >
> > Can you suggest the additions to the manual?
> 
> I can. I compared the option to another gnus-refer-article-method one
> which has the option to include the symbol current to include the curren
> t method.
> 
> I added the same symbol to gnus-refer-thread-use-search to add the
> current group including the other groups to the list of possible groups
> to search through. I adjusted the manual to include the current symbol and
> explain the option better.

Thanks, but the patch seems to include unrelated changes in the code?
I thought we were talking only about fixing the manual?  Or what did I
miss?

Also, please be sure to leave two spaces between sentences, per our
conventions.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#75305; Package emacs. Full text available.

Message received at 75305 <at> debbugs.gnu.org:


Received: (at 75305) by debbugs.gnu.org; 3 Jan 2025 20:33:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jan 03 15:33:46 2025
Received: from localhost ([127.0.0.1]:52326 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tToMb-000814-5x
	for submit <at> debbugs.gnu.org; Fri, 03 Jan 2025 15:33:45 -0500
Received: from thaodan.de ([185.216.177.71]:48436)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <bjorn.bidar@HIDDEN>)
 id 1tToMX-00080g-K6
 for 75305 <at> debbugs.gnu.org; Fri, 03 Jan 2025 15:33:43 -0500
Received: from odin (dsl-trebng12-50dc7b-49.dhcp.inet.fi [80.220.123.49])
 by thaodan.de (Postfix) with ESMTPSA id 874FDD0004A;
 Fri,  3 Jan 2025 22:33:35 +0200 (EET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=thaodan.de; s=mail;
 t=1735936415; bh=cTy0o9heFqX/VujgyC13RIVJOPNiXeRdRElGVgZB6VE=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date;
 b=sssRbFL9dx4QgYbOtN4UVho1uC+ea2enPeMt0yqzNx9A+MZn7CIju21OvrbJ/HDPI
 Ljc26XU2F8Dtyz+dmTa8IaxFAfBkud429BgcocTLfDFC7vCCMG5Dy0BGUIWMr3WwUA
 Y+7Bz3XmGWPnB+o0E1zGLWzhHxBHfQzsjcDGMqJZX6w/tT5U9PgQZYScmo7q9fl4v9
 D646aRS1evsSWWK+uBTPRHPrSdftMdPbNGeKuIHokPumjHlH8X6gwLgKdf3MwqVY8p
 HOYaL6qc68mF6RfFy0wagLyY9F7CvGMC2l+dBGBtgfEKZOt7ll2IRnkBBmd4p5PMgE
 0pS+/PjYBz+NcefVKo6jRmYrQea3LEl/9igiXLeV8c4ek4tb0GM6KVmfCPfNJL4eBF
 dbXIkCjTL8K4d8u0oxs4Dz8ZhamLOUk6DXbJA42todqxuyJ0Pt10PFNww1eSQFsddH
 WQ5c9OVOt7oYkw+lm7cCw94V22S7D7qV2zwhhhYLrS632tMkV+2ILRcU/F69pkw59H
 5gy/Qr7U9brxC/KuobaK9a7PwyAb1/5yGwnpUJhtbPR3OiYiVzY6tzmU7ERMvQ1pR2
 WE1KKFi9DowNfn5Xd3XcRDCzA0h3z9D0wVx7+aa81cHkFABKhJQbAH/cdLgvuoUVn7
 yZqq3dp7zBNXE890vEQpcoZw=
From: =?utf-8?Q?Bj=C3=B6rn?= Bidar <bjorn.bidar@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#75305: 31.0.50; gnus-refer-thread-use-search isn't exact
 enough about how the current group is searched
In-Reply-To: <8634i0ia6l.fsf@HIDDEN> (Eli Zaretskii's message of "Fri, 03 Jan
 2025 10:16:50 +0200")
References: <8634i0ia6l.fsf@HIDDEN>
Autocrypt: addr=bjorn.bidar@HIDDEN; prefer-encrypt=nopreference; keydata=
 mDMEZNfpPhYJKwYBBAHaRw8BAQdACBEmr+0xwIIHZfIDlZmm7sa+lHHSb0g9FZrN6qE6ru60JUJq
 w7ZybiBCaWRhciA8Ympvcm4uYmlkYXJAdGhhb2Rhbi5kZT6IlgQTFgoAPgIbAwULCQgHAgIiAgYV
 CgkICwIEFgIDAQIeBwIXgBYhBFHxdut1RzAepymoq1wbdKFlHF9oBQJk1/YmAhkBAAoJEFwbdKFl
 HF9oB9cBAJoIIGQKXm4cpap+Flxc/EGnYl0123lcEyzuduqvlDT0AQC3OlFKm/OiqJ8IMTrzJRZ8
 phFssTkSrrFXnM2jm5PYDoiTBBMWCgA7FiEEUfF263VHMB6nKairXBt0oWUcX2gFAmTX6T4CGwMF
 CwkIBwICIgIGFQoJCAsCBBYCAwECHgcCF4AACgkQXBt0oWUcX2hbCQEAtru7kvM8hi8zo6z9ux2h
 K+B5xViKuo7Z8K3IXuK5ugwA+wUfKzomzdBPhfxDsqLcEziGRxoyx0Q3ld9aermBUccHtBxCasO2
 cm4gQmlkYXIgPG1lQHRoYW9kYW4uZGU+iJMEExYKADsCGwMFCwkIBwICIgIGFQoJCAsCBBYCAwEC
 HgcCF4AWIQRR8XbrdUcwHqcpqKtcG3ShZRxfaAUCZNf2FQAKCRBcG3ShZRxfaCzSAP4hZ7cSp0YN
 XYpcjHds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 1.2 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 
 Content preview:  Eli Zaretskii <eliz@HIDDEN> writes: >> Date: Fri, 03 Jan
   2025 01:36:19 +0200 >> From: Björn Bidar via "Bug reports for GNU Emacs,
   >> the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN> >> >> >>
   I noticed that as intended with [...] 
 
 Content analysis details:   (1.2 points, 10.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
  0.0 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED RBL: ADMINISTRATOR NOTICE:
                             The query to Validity was blocked.  See
                             https://knowledge.validity.com/hc/en-us/articles/20961730681243
                              for more information.
                             [185.216.177.71 listed in sa-accredit.habeas.com]
 -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
 -0.0 SPF_PASS               SPF: sender matches SPF record
  0.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The
                             query to Validity was blocked.  See
                             https://knowledge.validity.com/hc/en-us/articles/20961730681243
                              for more information.
                            [185.216.177.71 listed in bl.score.senderscore.com]
  1.2 INVALID_MSGID          Message-Id is not valid, according to RFC 2822
X-Debbugs-Envelope-To: 75305
Cc: 75305 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.2 (/)

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Eli Zaretskii <eliz@HIDDEN> writes:

>> Date: Fri, 03 Jan 2025 01:36:19 +0200
>> From:  Bj=C3=B6rn Bidar via "Bug reports for GNU Emacs,
>>  the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN>
>>=20
>>=20
>> I noticed that as intended without adding the current group to the
>> variable in addition to the current group.
>> The manual states what happens what the variable does when set however I
>> think the description is not exact enough.
>>=20
>> It is very easy to overlook that to add the current group in addition
>> other groups it has to be added too.
>
> Can you suggest the additions to the manual?

I can. I compared the option to another gnus-refer-article-method one
which has the option to include the symbol current to include the curren
t method.

I added the same symbol to gnus-refer-thread-use-search to add the
current group including the other groups to the list of possible groups
to search through. I adjusted the manual to include the current symbol and
explain the option better.


--=-=-=
Content-Type: text/x-patch
Content-Disposition: inline;
 filename=0001-Refactor-gnus-refer-thread-use-search.patch

From 8b7dc8441294a42eb4132f7a978cf28580791278 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn=20Bidar?= <bjorn.bidar@HIDDEN>
Date: Fri, 3 Jan 2025 04:09:55 +0200
Subject: [PATCH] Refactor gnus-refer-thread-use-search

* lisp/gnus/gnus-sum.el (gnus-refer-thread-use-search):
Make it easier to customize the variable by adding predefine choices
as well as descriptions to each choice. Add option to add the value
`current' to the list of servers and groups to add the current group.
E.g. to add another group and the current group.
* lisp/gnus/gnus-search.el (gnus-refer-thread-maybe-add-current-group,
gnus-search-thread): Add helper function to determine if the option
contains the value current. Use helper function.
* lisp/gnus/nnselect.el (nnselect-request-thread): Use helper function
to check if the value current is in gnus-refer-thread-use-search.
* doc/misc/gnus.texi (gnus-refer-thread-use-search):
Include the current value in the section. Format the section a little
better to have a paragraph for each possible value that the option
may contain. Explain the option to have a list of servers more detailed
, i.e. similarly to the custom description. Highlight that the current
group is not searched unless specified. Explain that unless the articles
of that thread are contained in the searched groups not adding the
current group might not be the desired effect.
---
 doc/misc/gnus.texi       | 23 +++++++++++++++++------
 lisp/gnus/gnus-search.el | 24 +++++++++++++++++++++---
 lisp/gnus/gnus-sum.el    | 17 +++++++++++++----
 lisp/gnus/nnselect.el    |  4 ++--
 4 files changed, 53 insertions(+), 15 deletions(-)

diff --git a/doc/misc/gnus.texi b/doc/misc/gnus.texi
index 200b68d2059..5b2d5a8ea04 100644
--- a/doc/misc/gnus.texi
+++ b/doc/misc/gnus.texi
@@ -10557,12 +10557,23 @@ Finding the Parent
 course, it'll make group entry somewhat slow.
 
 @vindex gnus-refer-thread-use-search
-If @code{gnus-refer-thread-use-search} is @code{nil} (the default)
-then thread-referral only looks for articles in the current group.  If
-this variable is @code{t} the server to which the current group
-belongs is searched (provided that searching is available for the
-server's backend).  If this variable is a list of servers, each server
-in the list is searched.
+If @code{gnus-refer-thread-use-search} is @code{current} or @code{nil}
+(the default) then thread-referral only looks for articles in the current group.
+
+If this variable is @code{t} the server to which the current group
+belongs is searched. Note this is only possible provided that searching
+is available for the server's backend.
+
+The variable can also be a list of server each server
+in the list is searched. The servers have to specified in a list
+where the first element of this has to be the server and any remaining elements
+can be the groups belonging to that server.
+
+To search in the current group in addition to other groups the list of servers
+may contain the symbol @code{current}.
+If @code{current} is not in the list the current group is not searched,
+note this may be not the desired effect if any of articles referred in
+the thread are not contained in any of the searched groups.
 
 @vindex gnus-refer-thread-limit
 The @code{gnus-refer-thread-limit} variable says how many old (i.e.,
diff --git a/lisp/gnus/gnus-search.el b/lisp/gnus/gnus-search.el
index 12af8dcdfa7..e61df436c80 100644
--- a/lisp/gnus/gnus-search.el
+++ b/lisp/gnus/gnus-search.el
@@ -2206,6 +2206,23 @@ gnus-search-server-to-engine
 
 (declare-function gnus-registry-get-id-key "gnus-registry" (id key))
 
+(defun gnus-refer-thread-maybe-add-current-group (group)
+  "Find if GROUP should be added to `gnus-refer-thread-use-search'."
+  (cond ((eq 'current gnus-refer-thread-use-search)
+         (list (gnus-info-method (gnus-get-info group))
+               group))
+        ((listp gnus-refer-thread-use-search)
+         (let (out)
+           (dolist (search gnus-refer-thread-use-search)
+             (push (if (and (not (listp search)) (eq 'current search))
+                       (list (gnus-info-method (gnus-get-info group))
+                             group)
+                     search)
+                   out))
+           out))
+        (t
+         nil)))
+
 (defun gnus-search-thread (header &optional group server)
   "Find articles in the thread containing HEADER from GROUP on SERVER.
 If `gnus-refer-thread-use-search' is nil only the current group is
@@ -2227,7 +2244,8 @@ gnus-search-thread
                             " or "))
            (cons 'thread t)))
          (gnus-search-use-parsed-queries t))
-    (if (not gnus-refer-thread-use-search)
+    (if (or (not gnus-refer-thread-use-search)
+            (eq 'current gnus-refer-thread-use-search))
         ;; Search only the current group and send the headers back to
         ;; the caller to add to the summary buffer.
         (gnus-fetch-headers
@@ -2247,8 +2265,8 @@ gnus-search-thread
             (thread  (gnus-search-run-query
                       (list (cons 'search-query-spec query)
                             (cons 'search-group-spec
-                                  (if (listp gnus-refer-thread-use-search)
-                                      gnus-refer-thread-use-search
+                                  (or (gnus-refer-thread-maybe-add-current-group
+                                       group)
                                     (list (list server))))))))
         (if (< (nnselect-artlist-length thread) 2)
             (message "No other articles in thread")
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el
index a9caa83b15c..2119235bc2e 100644
--- a/lisp/gnus/gnus-sum.el
+++ b/lisp/gnus/gnus-sum.el
@@ -149,11 +149,20 @@ gnus-refer-thread-use-search
 list of servers and groups (where each element is a list whose
 car is the server and whose cdr is a list of groups on this
 server or nil to search the entire server) searches these
-server/groups.  This may usefully be set as a group parameter."
-  :version "28.1"
+server/groups.
+
+The list of of server and groups may contain
+the symbol `current' to refer to the current group.
+For example to search in the current group in addition to other groups.
+
+This may usefully be set as a group parameter."
+  :version "31.1"
   :group 'gnus-thread
-  :type '(restricted-sexp :match-alternatives
-                          (listp 't 'nil)))
+  :type '(choice (const :tag "Current group" nil)
+                 (const :tag "All groups" t)
+                 (repeat :tag "Server and groups"
+                         (choice (const :tag "Current Group" current)
+                                 (repeat :tag "Server and groups" string)))))
 
 (defcustom gnus-refer-thread-limit-to-thread nil
   "If non-nil referring a thread will limit the summary buffer to
diff --git a/lisp/gnus/nnselect.el b/lisp/gnus/nnselect.el
index c6a1c0a9342..9d55ac27b98 100644
--- a/lisp/gnus/nnselect.el
+++ b/lisp/gnus/nnselect.el
@@ -49,6 +49,7 @@
 (require 'gnus-art)
 (autoload 'gnus-search-run-query "gnus-search")
 (autoload 'gnus-search-server-to-engine "gnus-search")
+(autoload 'gnus-refer-thread-maybe-add-current-group "gnus-search")
 
 (eval-when-compile (require 'cl-lib))
 
@@ -707,8 +708,7 @@ nnselect-request-thread
                  (group-spec
                   (if (not gnus-refer-thread-use-search)
                       (list (list server artgroup))
-                    (if (listp gnus-refer-thread-use-search)
-                        gnus-refer-thread-use-search
+                    (or (gnus-refer-thread-maybe-add-current-group group)
                       (list (list server)))))
                  (ids (cons (mail-header-id header)
                             (split-string
-- 
2.45.2


--=-=-=--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#75305; Package emacs. Full text available.
Severity set to 'wishlist' from 'normal' Request was from Stefan Kangas <stefankangas@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 75305 <at> debbugs.gnu.org:


Received: (at 75305) by debbugs.gnu.org; 3 Jan 2025 08:17:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jan 03 03:17:05 2025
Received: from localhost ([127.0.0.1]:49397 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tTcrh-0000zm-BU
	for submit <at> debbugs.gnu.org; Fri, 03 Jan 2025 03:17:05 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:37096)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tTcre-0000zD-BM
 for 75305 <at> debbugs.gnu.org; Fri, 03 Jan 2025 03:17:03 -0500
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 <eliz@HIDDEN>)
 id 1tTcrX-0007qJ-EF; Fri, 03 Jan 2025 03:16:56 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=yExsgszO9CWQeDu1PwjKUpGgM1GlSmmXtaUK7kZexmU=; b=ajE42iliQtMD4s9cCtMH
 W3xC/bv+VPouEUJ/an4lsXBaeptZ4EoOP9VVGOZ1DxH8qaW7HfmAAu/vD02hlqMy6sr9FnHBfOyMJ
 5OZ0b81l7LqLq6bbE+LwKcIJaKvoPqT21ElL3rnKZPmJgp84ZS1XTlOr7OlDtIuTfHtxeZOT02Dv6
 k5b3ITexeCbSsLTPfkWtTs44X3ON60MJYpUozgoDw25dQtWiXmkjJ2PkZe89SvtqcOvgVWWjiAKE5
 Vy1cLlkr8y+8luDo4M2M3bD5SiGLqKWudpItp2DGj43uBJaOvtg2ZAoCg1YLGMY9lEAn2fHonX3yE
 VoQ6dY5dnxVsAg==;
Date: Fri, 03 Jan 2025 10:16:50 +0200
Message-Id: <8634i0ia6l.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: =?utf-8?Q?Bj=C3=B6rn?= Bidar <bjorn.bidar@HIDDEN>
In-Reply-To: <87wmfclrf0.fsf@> (bug-gnu-emacs@HIDDEN)
Subject: Re: bug#75305: 31.0.50;
 gnus-refer-thread-use-search isn't exact enough about how the current
 group is searched
References: <87wmfclrf0.fsf@>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 75305
Cc: 75305 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Date: Fri, 03 Jan 2025 01:36:19 +0200
> From:  Björn Bidar via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN>
> 
> 
> I noticed that as intended without adding the current group to the
> variable in addition to the current group.
> The manual states what happens what the variable does when set however I
> think the description is not exact enough.
> 
> It is very easy to overlook that to add the current group in addition
> other groups it has to be added too.

Can you suggest the additions to the manual?

Thanks.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#75305; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 2 Jan 2025 23:36:42 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jan 02 18:36:42 2025
Received: from localhost ([127.0.0.1]:47171 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tTUk3-00080h-PW
	for submit <at> debbugs.gnu.org; Thu, 02 Jan 2025 18:36:42 -0500
Received: from lists.gnu.org ([2001:470:142::17]:43270)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <bjorn.bidar@HIDDEN>)
 id 1tTUk1-00080O-13
 for submit <at> debbugs.gnu.org; Thu, 02 Jan 2025 18:36:39 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <bjorn.bidar@HIDDEN>)
 id 1tTUjs-0004cQ-43
 for bug-gnu-emacs@HIDDEN; Thu, 02 Jan 2025 18:36:28 -0500
Received: from thaodan.de ([185.216.177.71])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <bjorn.bidar@HIDDEN>)
 id 1tTUjm-0006Dc-6R
 for bug-gnu-emacs@HIDDEN; Thu, 02 Jan 2025 18:36:27 -0500
Received: from odin (dsl-trebng12-50dc7b-49.dhcp.inet.fi [80.220.123.49])
 by thaodan.de (Postfix) with ESMTPSA id E1256D00030
 for <bug-gnu-emacs@HIDDEN>; Fri,  3 Jan 2025 01:36:19 +0200 (EET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=thaodan.de; s=mail;
 t=1735860980; bh=5y+U+yD1mJuvCbz5OpOBMHGNZzooXDjrC6xN0CgA5+8=;
 h=From:To:Subject:Date;
 b=Wf3sJ4OM46j7G8+q+QRbOEyocC7bwxOwhmZR08QxgQUChPPghNHIocLGFtrusyMF0
 I8I+UznfM+HzBCLwbi3m84QAccVB0hmiugy00WxpG/z+yojcTL/zXyvX+ssfUpDB/z
 72zKlxX5Bx6FOL4Ad2APtPCoOojLvHCxbCewIYs7ZZx0s/3Mqw3OZdfAAOGNbE1AEC
 xriI3QS1tn7Bd3ZhH0CW9X0mLi5X4NAkv9epQdSCP8nEjcQhlUtHzzZUcU+dTmHEmi
 v+DE/vhFN2CsrRi1Zrax2eCnwGt/8vHgEWEKqanC9XxfkMdEQqb1qhQANqSpxfuKqB
 Hh9ipkvuwp1qLCU0F3xthUlqnmc3HMkw57xKhdQ7ES0v71H/IPr/PDGSCa9PF9jDpg
 D5o+Laa9Ewj4F530EuVZcANTNCd9y4FSfS3kq1A16wOiCBcCGoQmfyD9VuMuQjnQ5o
 E+TN9wq1qpnBch4OnCDiFJclW9qlqbsaatdlXR+Bt94NhiuOPzLl/MbeZDM99dKUcy
 NP4EgseqV84l0ktVnnyJsSSjEMeHd6lxpkTa5+/qyNwhwT/S3xbwW3lRpPntEXikQj
 GBgTWOTIEn1z2FWtjzooKziBgGRVaHz92HtZafOLkztwD5wk7H7EYOhYXLUwaqmQbO
 Ny3G+vF+mM58ZHxfdAC8JMOE=
From: =?utf-8?Q?Bj=C3=B6rn?= Bidar <bjorn.bidar@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 31.0.50; gnus-refer-thread-use-search isn't exact enough about how
 the current group is searched
X-Debbugs-Cc: 
Autocrypt: addr=bjorn.bidar@HIDDEN; prefer-encrypt=nopreference; keydata=
 mDMEZNfpPhYJKwYBBAHaRw8BAQdACBEmr+0xwIIHZfIDlZmm7sa+lHHSb0g9FZrN6qE6ru60JUJq
 w7ZybiBCaWRhciA8Ympvcm4uYmlkYXJAdGhhb2Rhbi5kZT6IlgQTFgoAPgIbAwULCQgHAgIiAgYV
 CgkICwIEFgIDAQIeBwIXgBYhBFHxdut1RzAepymoq1wbdKFlHF9oBQJk1/YmAhkBAAoJEFwbdKFl
 HF9oB9cBAJoIIGQKXm4cpap+Flxc/EGnYl0123lcEyzuduqvlDT0AQC3OlFKm/OiqJ8IMTrzJRZ8
 phFssTkSrrFXnM2jm5PYDoiTBBMWCgA7FiEEUfF263VHMB6nK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gFAmTX+9QACgkQXBt0oWUcX2jeSwD6AtWn0cuo8IF35YRo4o3cDRJnUfJnbvJy
 GxyCDThR+zYBAKG6/jdwmZkBQZKslnDAbMMd2WfiZZT5JW3IWC4EaKMO7HkBAKYPGZ3UbfkRvfFK
 S+pQ9CgtNfkSJQBtT1Ob7Y6nsacgAQCpyXN7yppmhW/oBgivITPy9Lkg+V4NK9WZYZCU9Q7LBA==
Date: Fri, 03 Jan 2025 01:36:19 +0200
Message-ID: <87wmfclrf0.fsf@>
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=185.216.177.71;
 envelope-from=bjorn.bidar@HIDDEN; helo=thaodan.de
X-Spam_score_int: -14
X-Spam_score: -1.5
X-Spam_bar: -
X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, INVALID_MSGID=0.568,
 RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001,
 SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 2.1 (++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview: I noticed that as intended without adding the current group
 to the variable in addition to the current group. The manual states what
 happens what the variable does when set however I think the descrip [...] 
 Content analysis details:   (2.1 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 1.0 SPF_SOFTFAIL           SPF: sender does not match SPF record (softfail)
 -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
 -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at https://www.dnswl.org/,
 no trust [2001:470:142:0:0:0:0:17 listed in] [list.dnswl.org]
 1.2 INVALID_MSGID          Message-Id is not valid, according to RFC 2822
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 1.1 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 
 Content preview:  I noticed that as intended without adding the current group
    to the variable in addition to the current group. The manual states what
   happens what the variable does when set however I think the descrip [...] 
 
 Content analysis details:   (1.1 points, 10.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at https://www.dnswl.org/,
                              no trust
                             [2001:470:142:0:0:0:0:17 listed in]
                             [list.dnswl.org]
  1.0 SPF_SOFTFAIL           SPF: sender does not match SPF record (softfail)
 -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
  1.2 INVALID_MSGID          Message-Id is not valid, according to RFC 2822
 -1.0 MAILING_LIST_MULTI     Multiple indicators imply a widely-seen list
                             manager


I noticed that as intended without adding the current group to the
variable in addition to the current group.
The manual states what happens what the variable does when set however I
think the description is not exact enough.

It is very easy to overlook that to add the current group in addition
other groups it has to be added too.

Further similarly to gnus-refer-article-methods the symbol current
should also be supported to refer to the current groups method.



In GNU Emacs 31.0.50 (build 1, x86_64-suse-linux-gnu, GTK+ Version
3.24.43, cairo version 1.18.2)
Repository revision: eaf5bf736e1dd5eb977a16a3f1b3dfd3da3c4612
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12101014
System Description: openSUSE Tumbleweed

Configured using:
 'configure --disable-build-details --without-pop --with-mailutils
 --without-hesiod --with-gameuser=:games --with-kerberos
 --with-kerberos5 --with-file-notification=inotify --with-modules
 --enable-autodepend --enable-link-time-optimization --prefix=/usr
 --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share
 --localstatedir=/var --sharedstatedir=/var/lib
 --libexecdir=/usr/libexec --with-file-notification=yes
 --libdir=/usr/lib64 --with-native-compilation=aot
 --enable-locallisppath=/usr/share/emacs/31.0.50/site-lisp:/usr/share/emacs/site-lisp
 --with-x --with-xim --with-sound --with-xpm --with-jpeg --with-tiff
 --with-gif --with-png --with-rsvg --with-dbus --with-xft --without-gpm
 --with-tree-sitter --with-x-toolkit=gtk --without-pgtk
 --with-toolkit-scroll-bars --x-includes=/usr/include
 --x-libraries=/usr/lib64 --with-libotf --with-m17n-flt --with-cairo
 --build=x86_64-suse-linux --with-dumping=pdumper
 build_alias=x86_64-suse-linux 'CC=sccache cc' 'CFLAGS=-O2 -Wall
 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong
 -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection
 -Werror=return-type -flto=auto -march=znver3 -mmmx -mpopcnt -msse
 -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mavx -mavx2 -msse4a -mno-fma4
 -mno-xop -mfma -mbmi -mbmi2 -maes -mpclmul -mno-gfni -mvpclmulqdq
 -mno-3dnow -madx -mabm -mno-cldemote -mclflushopt -mclwb -mclzero
 -mcx16 -mno-enqcmd -mf16c -mfsgsbase -mfxsr -mno-hle -msahf -mno-lwp
 -mlzcnt -mmovbe -mno-movdir64b -mno-movdiri -mmwaitx -mno-pconfig -mpku
 -mprfchw -mno-ptwrite -mrdpid -mrdrnd -mrdseed -mno-rtm -mno-serialize
 -mno-sgx -msha -mshstk -mno-tbm -mno-tsxldtrk -mvaes -mno-waitpkg
 -mwbnoinvd -mxsave -mxsavec -mxsaveopt -mxsaves -mno-amx-tile
 -mno-amx-int8 -mno-amx-bf16 -mno-uintr -mno-hreset -mno-kl -mno-widekl
 -mno-avxvnni -mno-avxifma -mno-avxvnniint8 -mno-avxneconvert
 -mno-cmpccxadd -mno-amx-fp16 -mno-prefetchi -mno-raoint
 -mno-amx-complex --param l1-cache-size=32 --param l1-cache-line-size=64
 --param l2-cache-size=512 -mtune=znver3 -fno-optimize-sibling-calls -O2
 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong
 -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection
 -Werror=return-type -flto=auto -g -D_GNU_SOURCE
 -DGDK_DISABLE_DEPRECATION_WARNINGS -DGLIB_DISABLE_DEPRECATION_WARNINGS
 -pipe -Wno-pointer-sign -Wno-unused-variable -Wno-unused-label
 -DPDMP_BASE='\''"emacs-gtk"'\''' LDFLAGS=-Wl,-O2 'CXX=sccache c++'
 PKG_CONFIG_PATH=:/usr/lib64/pkgconfig:/usr/share/pkgconfig'

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG
LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP
NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF
TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB

Important settings:
  value of $LC_MONETARY: fi_FI.UTF-8
  value of $LC_NUMERIC: POSIX
  value of $LANG: en_GB.UTF-8
  value of $XMODIFIERS: @im=local
  locale-coding-system: utf-8-unix

Major mode: Summary

Minor modes in effect:
  default-text-scale-mode: t
  eshell-vterm-mode: t
  xterm-mouse-mode: t
  circe-lagmon-mode: t
  gnus-mailing-list-mode: t
  dap-tooltip-mode: t
  dap-ui-many-windows-mode: t
  dap-ui-controls-mode: t
  dap-ui-mode: t
  dap-auto-configure-mode: t
  dap-mode: t
  lsp-treemacs-sync-mode: t
  treemacs-filewatch-mode: t
  treemacs-git-mode: t
  treemacs-fringe-indicator-mode: t
  global-atomic-chrome-edit-mode: t
  minions-mode: t
  back-button-mode: t
  recentf-mode: t
  savehist-mode: t
  emms-playing-time-display-mode: t
  emms-playing-time-mode: t
  autocrypt-mode: t
  gnus-desktop-notify-mode: t
  tracking-mode: t
  org-super-agenda-mode: t
  projectile-mode: t
  global-company-mode: t
  company-mode: t
  electric-pair-mode: t
  editorconfig-mode: t
  frames-only-mode: t
  windmove-mode: t
  marginalia-mode: t
  which-key-mode: t
  dirvish-override-dired-mode: t
  dired-async-mode: t
  hl-line-mode: t
  helm-mode: t
  helm-minibuffer-history-mode: t
  global-so-long-mode: t
  global-emojify-mode: t
  emojify-mode: t
  change-cursor-mode: t
  doom-modeline-mode: t
  helm-autoresize-mode: t
  desktop-save-mode: t
  Info-persist-history-mode: t
  save-place-mode: t
  delete-selection-mode: t
  override-global-mode: t
  magit-wip-initial-backup-mode: t
  magit-wip-before-change-mode: t
  magit-wip-after-apply-mode: t
  magit-wip-after-save-mode: t
  magit-wip-mode: t
  global-git-commit-mode: t
  magit-auto-revert-mode: t
  global-auto-revert-mode: t
  server-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  undelete-frame-mode: t
  minibuffer-regexp-mode: t
  buffer-read-only: t
  line-number-mode: t
  transient-mark-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t

Load-path shadows:
/home/bidar/.local/etc/emacs/lib/org/lisp/ox-koma-letter hides /home/bidar/.local/etc/emacs/lib/lisp/ox-koma-letter
/home/bidar/.local/etc/emacs/lib/org-contrib/lisp/ox-groff hides /home/bidar/.local/etc/emacs/lib/lisp/ox-groff
/home/bidar/.local/etc/emacs/lib/use-package-transient/use-package-transient hides /home/bidar/.local/etc/emacs/lib/lisp/use-package-transient
/home/bidar/.local/etc/emacs/lib/vim-modeline/vim-modeline hides /home/bidar/.local/etc/emacs/lib/lisp/vim-modeline
/home/bidar/.local/etc/emacs/lib/lisp/cursor-chg hides /home/bidar/.local/etc/emacs/lib/cursor-chg/cursor-chg
/home/bidar/.local/etc/emacs/lib/eshell-up/eshell-up hides /home/bidar/.local/etc/emacs/lib/aweshell/eshell-up
/home/bidar/.local/etc/emacs/lib/eshell-prompt-extras/eshell-prompt-extras hides /home/bidar/.local/etc/emacs/lib/aweshell/eshell-prompt-extras
/home/bidar/.local/etc/emacs/lib/cmake-mode/cmake-mode hides /usr/share/emacs/site-lisp/cmake-mode
/home/bidar/.local/etc/emacs/lib/async/dired-async hides /usr/share/emacs/site-lisp/dired-async
/home/bidar/.local/etc/emacs/lib/async/async-bytecomp hides /usr/share/emacs/site-lisp/async-bytecomp
/home/bidar/.local/etc/emacs/lib/async/async-autoloads hides /usr/share/emacs/site-lisp/async-autoloads
/home/bidar/.local/etc/emacs/lib/compat/compat hides /usr/share/emacs/site-lisp/compat
/home/bidar/.local/etc/emacs/lib/compat/compat-30 hides /usr/share/emacs/site-lisp/compat-30
/home/bidar/.local/etc/emacs/lib/compat/compat-28 hides /usr/share/emacs/site-lisp/compat-28
/home/bidar/.local/etc/emacs/lib/compat/compat-25 hides /usr/share/emacs/site-lisp/compat-25
/home/bidar/.local/etc/emacs/lib/async/smtpmail-async hides /usr/share/emacs/site-lisp/smtpmail-async
/home/bidar/.local/etc/emacs/lib/async/async hides /usr/share/emacs/site-lisp/async
/home/bidar/.local/etc/emacs/lib/compat/compat-29 hides /usr/share/emacs/site-lisp/compat-29
/home/bidar/.local/etc/emacs/lib/compat/compat-27 hides /usr/share/emacs/site-lisp/compat-27
/home/bidar/.local/etc/emacs/lib/compat/compat-26 hides /usr/share/emacs/site-lisp/compat-26
/home/bidar/.local/etc/emacs/lib/which-key/which-key hides /usr/share/emacs/31.0.50/lisp/which-key
/home/bidar/.local/etc/emacs/lib/transient/lisp/transient hides /usr/share/emacs/31.0.50/lisp/transient
/home/bidar/.local/etc/emacs/lib/editorconfig/editorconfig hides /usr/share/emacs/31.0.50/lisp/editorconfig
/home/bidar/.local/etc/emacs/lib/use-package/bind-key hides /usr/share/emacs/31.0.50/lisp/bind-key
/home/bidar/.local/etc/emacs/lib/editorconfig/editorconfig-core-handle hides /usr/share/emacs/31.0.50/lisp/editorconfig-core-handle
/home/bidar/.local/etc/emacs/lib/editorconfig/editorconfig-tools hides /usr/share/emacs/31.0.50/lisp/editorconfig-tools
/home/bidar/.local/etc/emacs/lib/editorconfig/editorconfig-fnmatch hides /usr/share/emacs/31.0.50/lisp/editorconfig-fnmatch
/home/bidar/.local/etc/emacs/lib/editorconfig/editorconfig-core hides /usr/share/emacs/31.0.50/lisp/editorconfig-core
/home/bidar/.local/etc/emacs/lib/editorconfig/editorconfig-conf-mode hides /usr/share/emacs/31.0.50/lisp/editorconfig-conf-mode
/home/bidar/.local/etc/emacs/lib/modus-themes/theme-loaddefs hides /usr/share/emacs/31.0.50/lisp/theme-loaddefs
/home/bidar/.local/etc/emacs/lib/use-package/use-package hides /usr/share/emacs/31.0.50/lisp/use-package/use-package
/home/bidar/.local/etc/emacs/lib/use-package/use-package-ensure hides /usr/share/emacs/31.0.50/lisp/use-package/use-package-ensure
/home/bidar/.local/etc/emacs/lib/use-package/use-package-diminish hides /usr/share/emacs/31.0.50/lisp/use-package/use-package-diminish
/home/bidar/.local/etc/emacs/lib/use-package/use-package-delight hides /usr/share/emacs/31.0.50/lisp/use-package/use-package-delight
/home/bidar/.local/etc/emacs/lib/use-package/use-package-core hides /usr/share/emacs/31.0.50/lisp/use-package/use-package-core
/home/bidar/.local/etc/emacs/lib/use-package/use-package-lint hides /usr/share/emacs/31.0.50/lisp/use-package/use-package-lint
/home/bidar/.local/etc/emacs/lib/use-package/use-package-jump hides /usr/share/emacs/31.0.50/lisp/use-package/use-package-jump
/home/bidar/.local/etc/emacs/lib/use-package/use-package-ensure-system-package hides /usr/share/emacs/31.0.50/lisp/use-package/use-package-ensure-system-package
/home/bidar/.local/etc/emacs/lib/use-package/use-package-bind-key hides /usr/share/emacs/31.0.50/lisp/use-package/use-package-bind-key
/home/bidar/.local/etc/emacs/lib/org/lisp/ox-texinfo hides /usr/share/emacs/31.0.50/lisp/org/ox-texinfo
/home/bidar/.local/etc/emacs/lib/org/lisp/org-indent hides /usr/share/emacs/31.0.50/lisp/org/org-indent
/home/bidar/.local/etc/emacs/lib/org/lisp/org-agenda hides /usr/share/emacs/31.0.50/lisp/org/org-agenda
/home/bidar/.local/etc/emacs/lib/org/lisp/ol-eshell hides /usr/share/emacs/31.0.50/lisp/org/ol-eshell
/home/bidar/.local/etc/emacs/lib/org/lisp/org-list hides /usr/share/emacs/31.0.50/lisp/org/org-list
/home/bidar/.local/etc/emacs/lib/org/lisp/ox hides /usr/share/emacs/31.0.50/lisp/org/ox
/home/bidar/.local/etc/emacs/lib/org/lisp/ox-latex hides /usr/share/emacs/31.0.50/lisp/org/ox-latex
/home/bidar/.local/etc/emacs/lib/org/lisp/ox-html hides /usr/share/emacs/31.0.50/lisp/org/ox-html
/home/bidar/.local/etc/emacs/lib/org/lisp/org hides /usr/share/emacs/31.0.50/lisp/org/org
/home/bidar/.local/etc/emacs/lib/org/lisp/org-table hides /usr/share/emacs/31.0.50/lisp/org/org-table
/home/bidar/.local/etc/emacs/lib/org/lisp/org-persist hides /usr/share/emacs/31.0.50/lisp/org/org-persist
/home/bidar/.local/etc/emacs/lib/org/lisp/org-macs hides /usr/share/emacs/31.0.50/lisp/org/org-macs
/home/bidar/.local/etc/emacs/lib/org/lisp/org-lint hides /usr/share/emacs/31.0.50/lisp/org/org-lint
/home/bidar/.local/etc/emacs/lib/org/lisp/org-goto hides /usr/share/emacs/31.0.50/lisp/org/org-goto
/home/bidar/.local/etc/emacs/lib/org/lisp/org-element hides /usr/share/emacs/31.0.50/lisp/org/org-element
/home/bidar/.local/etc/emacs/lib/org/lisp/org-element-ast hides /usr/share/emacs/31.0.50/lisp/org/org-element-ast
/home/bidar/.local/etc/emacs/lib/org/lisp/org-compat hides /usr/share/emacs/31.0.50/lisp/org/org-compat
/home/bidar/.local/etc/emacs/lib/org/lisp/org-clock hides /usr/share/emacs/31.0.50/lisp/org/org-clock
/home/bidar/.local/etc/emacs/lib/org/lisp/org-attach hides /usr/share/emacs/31.0.50/lisp/org/org-attach
/home/bidar/.local/etc/emacs/lib/org/lisp/ol hides /usr/share/emacs/31.0.50/lisp/org/ol
/home/bidar/.local/etc/emacs/lib/org/lisp/ob-python hides /usr/share/emacs/31.0.50/lisp/org/ob-python
/home/bidar/.local/etc/emacs/lib/org/lisp/ob-julia hides /usr/share/emacs/31.0.50/lisp/org/ob-julia
/home/bidar/.local/etc/emacs/lib/org/lisp/ob-exp hides /usr/share/emacs/31.0.50/lisp/org/ob-exp
/home/bidar/.local/etc/emacs/lib/org/lisp/ob-core hides /usr/share/emacs/31.0.50/lisp/org/ob-core
/home/bidar/.local/etc/emacs/lib/org/lisp/ob-clojure hides /usr/share/emacs/31.0.50/lisp/org/ob-clojure
/home/bidar/.local/etc/emacs/lib/org/lisp/ob-R hides /usr/share/emacs/31.0.50/lisp/org/ob-R
/home/bidar/.local/etc/emacs/lib/org/lisp/ox-beamer hides /usr/share/emacs/31.0.50/lisp/org/ox-beamer
/home/bidar/.local/etc/emacs/lib/org/lisp/org-habit hides /usr/share/emacs/31.0.50/lisp/org/org-habit
/home/bidar/.local/etc/emacs/lib/org/lisp/org-faces hides /usr/share/emacs/31.0.50/lisp/org/org-faces
/home/bidar/.local/etc/emacs/lib/org/lisp/org-loaddefs hides /usr/share/emacs/31.0.50/lisp/org/org-loaddefs
/home/bidar/.local/etc/emacs/lib/org/lisp/ob-gnuplot hides /usr/share/emacs/31.0.50/lisp/org/ob-gnuplot
/home/bidar/.local/etc/emacs/lib/org/lisp/org-version hides /usr/share/emacs/31.0.50/lisp/org/org-version
/home/bidar/.local/etc/emacs/lib/org/lisp/org-src hides /usr/share/emacs/31.0.50/lisp/org/org-src
/home/bidar/.local/etc/emacs/lib/org/lisp/org-num hides /usr/share/emacs/31.0.50/lisp/org/org-num
/home/bidar/.local/etc/emacs/lib/org/lisp/org-capture hides /usr/share/emacs/31.0.50/lisp/org/org-capture
/home/bidar/.local/etc/emacs/lib/org/lisp/ox-publish hides /usr/share/emacs/31.0.50/lisp/org/ox-publish
/home/bidar/.local/etc/emacs/lib/org/lisp/ox-icalendar hides /usr/share/emacs/31.0.50/lisp/org/ox-icalendar
/home/bidar/.local/etc/emacs/lib/org/lisp/org-refile hides /usr/share/emacs/31.0.50/lisp/org/org-refile
/home/bidar/.local/etc/emacs/lib/org/lisp/org-mouse hides /usr/share/emacs/31.0.50/lisp/org/org-mouse
/home/bidar/.local/etc/emacs/lib/org/lisp/org-mobile hides /usr/share/emacs/31.0.50/lisp/org/org-mobile
/home/bidar/.local/etc/emacs/lib/org/lisp/org-inlinetask hides /usr/share/emacs/31.0.50/lisp/org/org-inlinetask
/home/bidar/.local/etc/emacs/lib/org/lisp/org-fold hides /usr/share/emacs/31.0.50/lisp/org/org-fold
/home/bidar/.local/etc/emacs/lib/org/lisp/org-fold-core hides /usr/share/emacs/31.0.50/lisp/org/org-fold-core
/home/bidar/.local/etc/emacs/lib/org/lisp/org-feed hides /usr/share/emacs/31.0.50/lisp/org/org-feed
/home/bidar/.local/etc/emacs/lib/org/lisp/ob hides /usr/share/emacs/31.0.50/lisp/org/ob
/home/bidar/.local/etc/emacs/lib/org/lisp/ob-tangle hides /usr/share/emacs/31.0.50/lisp/org/ob-tangle
/home/bidar/.local/etc/emacs/lib/org/lisp/ob-sql hides /usr/share/emacs/31.0.50/lisp/org/ob-sql
/home/bidar/.local/etc/emacs/lib/org/lisp/ob-scheme hides /usr/share/emacs/31.0.50/lisp/org/ob-scheme
/home/bidar/.local/etc/emacs/lib/org/lisp/ob-processing hides /usr/share/emacs/31.0.50/lisp/org/ob-processing
/home/bidar/.local/etc/emacs/lib/org/lisp/ob-plantuml hides /usr/share/emacs/31.0.50/lisp/org/ob-plantuml
/home/bidar/.local/etc/emacs/lib/org/lisp/ob-lob hides /usr/share/emacs/31.0.50/lisp/org/ob-lob
/home/bidar/.local/etc/emacs/lib/org/lisp/org-colview hides /usr/share/emacs/31.0.50/lisp/org/org-colview
/home/bidar/.local/etc/emacs/lib/org/lisp/ob-lilypond hides /usr/share/emacs/31.0.50/lisp/org/ob-lilypond
/home/bidar/.local/etc/emacs/lib/org/lisp/ob-shell hides /usr/share/emacs/31.0.50/lisp/org/ob-shell
/home/bidar/.local/etc/emacs/lib/org/lisp/ox-org hides /usr/share/emacs/31.0.50/lisp/org/ox-org
/home/bidar/.local/etc/emacs/lib/org/lisp/ox-odt hides /usr/share/emacs/31.0.50/lisp/org/ox-odt
/home/bidar/.local/etc/emacs/lib/org/lisp/ox-md hides /usr/share/emacs/31.0.50/lisp/org/ox-md
/home/bidar/.local/etc/emacs/lib/org/lisp/ox-man hides /usr/share/emacs/31.0.50/lisp/org/ox-man
/home/bidar/.local/etc/emacs/lib/org/lisp/ox-koma-letter hides /usr/share/emacs/31.0.50/lisp/org/ox-koma-letter
/home/bidar/.local/etc/emacs/lib/org/lisp/ox-ascii hides /usr/share/emacs/31.0.50/lisp/org/ox-ascii
/home/bidar/.local/etc/emacs/lib/org/lisp/org-timer hides /usr/share/emacs/31.0.50/lisp/org/org-timer
/home/bidar/.local/etc/emacs/lib/org/lisp/org-tempo hides /usr/share/emacs/31.0.50/lisp/org/org-tempo
/home/bidar/.local/etc/emacs/lib/org/lisp/org-protocol hides /usr/share/emacs/31.0.50/lisp/org/org-protocol
/home/bidar/.local/etc/emacs/lib/org/lisp/org-plot hides /usr/share/emacs/31.0.50/lisp/org/org-plot
/home/bidar/.local/etc/emacs/lib/org/lisp/org-pcomplete hides /usr/share/emacs/31.0.50/lisp/org/org-pcomplete
/home/bidar/.local/etc/emacs/lib/org/lisp/org-macro hides /usr/share/emacs/31.0.50/lisp/org/org-macro
/home/bidar/.local/etc/emacs/lib/org/lisp/org-keys hides /usr/share/emacs/31.0.50/lisp/org/org-keys
/home/bidar/.local/etc/emacs/lib/org/lisp/org-id hides /usr/share/emacs/31.0.50/lisp/org/org-id
/home/bidar/.local/etc/emacs/lib/org/lisp/org-footnote hides /usr/share/emacs/31.0.50/lisp/org/org-footnote
/home/bidar/.local/etc/emacs/lib/org/lisp/org-entities hides /usr/share/emacs/31.0.50/lisp/org/org-entities
/home/bidar/.local/etc/emacs/lib/org/lisp/org-duration hides /usr/share/emacs/31.0.50/lisp/org/org-duration
/home/bidar/.local/etc/emacs/lib/org/lisp/org-datetree hides /usr/share/emacs/31.0.50/lisp/org/org-datetree
/home/bidar/.local/etc/emacs/lib/org/lisp/org-cycle hides /usr/share/emacs/31.0.50/lisp/org/org-cycle
/home/bidar/.local/etc/emacs/lib/org/lisp/org-ctags hides /usr/share/emacs/31.0.50/lisp/org/org-ctags
/home/bidar/.local/etc/emacs/lib/org/lisp/org-crypt hides /usr/share/emacs/31.0.50/lisp/org/org-crypt
/home/bidar/.local/etc/emacs/lib/org/lisp/org-attach-git hides /usr/share/emacs/31.0.50/lisp/org/org-attach-git
/home/bidar/.local/etc/emacs/lib/org/lisp/org-archive hides /usr/share/emacs/31.0.50/lisp/org/org-archive
/home/bidar/.local/etc/emacs/lib/org/lisp/ol-w3m hides /usr/share/emacs/31.0.50/lisp/org/ol-w3m
/home/bidar/.local/etc/emacs/lib/org/lisp/ol-rmail hides /usr/share/emacs/31.0.50/lisp/org/ol-rmail
/home/bidar/.local/etc/emacs/lib/org/lisp/ol-mhe hides /usr/share/emacs/31.0.50/lisp/org/ol-mhe
/home/bidar/.local/etc/emacs/lib/org/lisp/ol-man hides /usr/share/emacs/31.0.50/lisp/org/ol-man
/home/bidar/.local/etc/emacs/lib/org/lisp/ol-irc hides /usr/share/emacs/31.0.50/lisp/org/ol-irc
/home/bidar/.local/etc/emacs/lib/org/lisp/ol-info hides /usr/share/emacs/31.0.50/lisp/org/ol-info
/home/bidar/.local/etc/emacs/lib/org/lisp/ol-gnus hides /usr/share/emacs/31.0.50/lisp/org/ol-gnus
/home/bidar/.local/etc/emacs/lib/org/lisp/ol-eww hides /usr/share/emacs/31.0.50/lisp/org/ol-eww
/home/bidar/.local/etc/emacs/lib/org/lisp/ol-doi hides /usr/share/emacs/31.0.50/lisp/org/ol-doi
/home/bidar/.local/etc/emacs/lib/org/lisp/ol-docview hides /usr/share/emacs/31.0.50/lisp/org/ol-docview
/home/bidar/.local/etc/emacs/lib/org/lisp/ol-bibtex hides /usr/share/emacs/31.0.50/lisp/org/ol-bibtex
/home/bidar/.local/etc/emacs/lib/org/lisp/ol-bbdb hides /usr/share/emacs/31.0.50/lisp/org/ol-bbdb
/home/bidar/.local/etc/emacs/lib/org/lisp/oc hides /usr/share/emacs/31.0.50/lisp/org/oc
/home/bidar/.local/etc/emacs/lib/org/lisp/oc-natbib hides /usr/share/emacs/31.0.50/lisp/org/oc-natbib
/home/bidar/.local/etc/emacs/lib/org/lisp/oc-csl hides /usr/share/emacs/31.0.50/lisp/org/oc-csl
/home/bidar/.local/etc/emacs/lib/org/lisp/oc-bibtex hides /usr/share/emacs/31.0.50/lisp/org/oc-bibtex
/home/bidar/.local/etc/emacs/lib/org/lisp/oc-biblatex hides /usr/share/emacs/31.0.50/lisp/org/oc-biblatex
/home/bidar/.local/etc/emacs/lib/org/lisp/oc-basic hides /usr/share/emacs/31.0.50/lisp/org/oc-basic
/home/bidar/.local/etc/emacs/lib/org/lisp/ob-table hides /usr/share/emacs/31.0.50/lisp/org/ob-table
/home/bidar/.local/etc/emacs/lib/org/lisp/ob-sqlite hides /usr/share/emacs/31.0.50/lisp/org/ob-sqlite
/home/bidar/.local/etc/emacs/lib/org/lisp/ob-sed hides /usr/share/emacs/31.0.50/lisp/org/ob-sed
/home/bidar/.local/etc/emacs/lib/org/lisp/ob-screen hides /usr/share/emacs/31.0.50/lisp/org/ob-screen
/home/bidar/.local/etc/emacs/lib/org/lisp/ob-sass hides /usr/share/emacs/31.0.50/lisp/org/ob-sass
/home/bidar/.local/etc/emacs/lib/org/lisp/ob-ruby hides /usr/share/emacs/31.0.50/lisp/org/ob-ruby
/home/bidar/.local/etc/emacs/lib/org/lisp/ob-ref hides /usr/share/emacs/31.0.50/lisp/org/ob-ref
/home/bidar/.local/etc/emacs/lib/org/lisp/ob-perl hides /usr/share/emacs/31.0.50/lisp/org/ob-perl
/home/bidar/.local/etc/emacs/lib/org/lisp/ob-org hides /usr/share/emacs/31.0.50/lisp/org/ob-org
/home/bidar/.local/etc/emacs/lib/org/lisp/ob-octave hides /usr/share/emacs/31.0.50/lisp/org/ob-octave
/home/bidar/.local/etc/emacs/lib/org/lisp/ob-ocaml hides /usr/share/emacs/31.0.50/lisp/org/ob-ocaml
/home/bidar/.local/etc/emacs/lib/org/lisp/ob-maxima hides /usr/share/emacs/31.0.50/lisp/org/ob-maxima
/home/bidar/.local/etc/emacs/lib/org/lisp/ob-matlab hides /usr/share/emacs/31.0.50/lisp/org/ob-matlab
/home/bidar/.local/etc/emacs/lib/org/lisp/ob-makefile hides /usr/share/emacs/31.0.50/lisp/org/ob-makefile
/home/bidar/.local/etc/emacs/lib/org/lisp/ob-lua hides /usr/share/emacs/31.0.50/lisp/org/ob-lua
/home/bidar/.local/etc/emacs/lib/org/lisp/ob-lisp hides /usr/share/emacs/31.0.50/lisp/org/ob-lisp
/home/bidar/.local/etc/emacs/lib/org/lisp/ob-latex hides /usr/share/emacs/31.0.50/lisp/org/ob-latex
/home/bidar/.local/etc/emacs/lib/org/lisp/ob-js hides /usr/share/emacs/31.0.50/lisp/org/ob-js
/home/bidar/.local/etc/emacs/lib/org/lisp/ob-java hides /usr/share/emacs/31.0.50/lisp/org/ob-java
/home/bidar/.local/etc/emacs/lib/org/lisp/ob-haskell hides /usr/share/emacs/31.0.50/lisp/org/ob-haskell
/home/bidar/.local/etc/emacs/lib/org/lisp/ob-groovy hides /usr/share/emacs/31.0.50/lisp/org/ob-groovy
/home/bidar/.local/etc/emacs/lib/org/lisp/ob-fortran hides /usr/share/emacs/31.0.50/lisp/org/ob-fortran
/home/bidar/.local/etc/emacs/lib/org/lisp/ob-forth hides /usr/share/emacs/31.0.50/lisp/org/ob-forth
/home/bidar/.local/etc/emacs/lib/org/lisp/ob-eval hides /usr/share/emacs/31.0.50/lisp/org/ob-eval
/home/bidar/.local/etc/emacs/lib/org/lisp/ob-eshell hides /usr/share/emacs/31.0.50/lisp/org/ob-eshell
/home/bidar/.local/etc/emacs/lib/org/lisp/ob-emacs-lisp hides /usr/share/emacs/31.0.50/lisp/org/ob-emacs-lisp
/home/bidar/.local/etc/emacs/lib/org/lisp/ob-dot hides /usr/share/emacs/31.0.50/lisp/org/ob-dot
/home/bidar/.local/etc/emacs/lib/org/lisp/ob-ditaa hides /usr/share/emacs/31.0.50/lisp/org/ob-ditaa
/home/bidar/.local/etc/emacs/lib/org/lisp/ob-css hides /usr/share/emacs/31.0.50/lisp/org/ob-css
/home/bidar/.local/etc/emacs/lib/org/lisp/ob-comint hides /usr/share/emacs/31.0.50/lisp/org/ob-comint
/home/bidar/.local/etc/emacs/lib/org/lisp/ob-calc hides /usr/share/emacs/31.0.50/lisp/org/ob-calc
/home/bidar/.local/etc/emacs/lib/org/lisp/ob-awk hides /usr/share/emacs/31.0.50/lisp/org/ob-awk
/home/bidar/.local/etc/emacs/lib/org/lisp/ob-C hides /usr/share/emacs/31.0.50/lisp/org/ob-C
/home/bidar/.local/etc/emacs/lib/compat/compat hides /usr/share/emacs/31.0.50/lisp/emacs-lisp/compat

Features:
(shadow emacsbug js-mode-expansions js c-ts-common vc-filewise
china-util gnus-html magit-patch magit-subtree magit-gitignore
magit-ediff ediff ediff-merg ediff-mult ediff-wind ediff-diff ediff-help
ediff-init ediff-util default-text-scale emacs-news-mode info-look
spam-stat nnrss nnmairix nnml nnfeed gnus-uu yenc gnus-sieve
gnus-notifications gnus-fun gnus-eform gnus-delay gnus-draft
gnus-bookmark deuglify cus-theme xwidget wid-browse icon ace-window
checkdoc gnus-dup debbugs-gnu zop-to-char nnregistry gnus-salt
gnus-diary nndiary emms-browser dirvish-extras tramp-cmds gnus-notes-org
gnus-notes disass texinfo texinfo-loaddefs eshell-did-you-mean
eshell-bookmark em-unix em-script em-pred em-glob em-cmpl em-basic
em-alias eshell-vterm em-term eshell-z aweshell eshell-up em-prompt
em-hist em-smart em-tramp eshell finder finder-inf xt-mouse devhelp
vlf-search vlf vlf-base vlf-tune octave-expansions octave dired-narrow
company-lua lua-mode piem-gnus git-email-gnus tramp-androidsu tramp-adb
rmail tex-mode cmake-font-lock cmake-mode elfeed-tube-mpv lao-util
enriched org-colview org-clock-helpers org-duration logview datetime
extmap nndoc w3m-form w3m-symbol w3m-bookmark w3m w3m-hist bookmark-w3m
w3m-ems w3m-favicon w3m-image w3m-fb tab-line w3m-proc w3m-util
pcmpl-unix circe-lagmon mastodon-views flow-fill thai-util thai-word
logms-autoloads display-line-numbers treemacs-file-management hydra
gnus-recent mailalias bbdb-pgp message-attachment-reminder bbdb-message
gnus-alias autocrypt-message dired-open helm-ring
treemacs-mouse-interface git-rebase shr-color ibuffer-projectile
nerd-icons-ibuffer mastodon-notifications mastodon-media
mastodon-profile mastodon-auth mastodon-client crux move-text tabify
dumb-jump popup elfeed-link gnus-search eieio-opt speedbar ezimage
dframe qp ietf-drums-date gnus-gravatar sort gnus-cite
message-view-patch mm-archive gnus-bcklg bbdb-gnus-aux gnus-ml
gnus-demon autocrypt-gnus nndraft nnmh gnus-topic utf-7 nnfolder
bbdb-gnus bbdb-mua nnnil helm-org-rifle ace-link avy orgit-forge orgit
helm-ls-git descr-text smart-region multiple-cursors
mc-separate-operations rectangular-region-mode mc-mark-pop mc-edit-lines
mc-hide-unmatched-lines-mode mc-mark-more mc-cycle-cursors
multiple-cursors-core expand-region yaml-mode-expansions
subword-mode-expansions cperl-mode-expansions text-mode-expansions
cc-mode-expansions the-org-mode-expansions python-el-fgallina-expansions
nxml-mode-expansions html-mode-expansions er-basic-expansions
expand-region-core expand-region-custom shortdoc help-macro epa-file
journalctl time calc calc-loaddefs rect calc-macs proced mastodon
mastodon-search mastodon-toot persist mastodon-http request
elfeed-summary semantic/symref/grep semantic/symref semantic/util-modes
semantic/util semantic semantic/tag semantic/lex semantic/fw mode-local
cedet whitespace rng-cmpct rng-nxml rng-valid nxml-mode nxml-outln
nxml-rap sgml-mode centered-window centered-window-mode magit-extras
cal-move cal-china lunar solar cal-dst cal-bahai cal-islam cal-hebrew
holidays holiday-loaddefs cal-iso helm-imenu two-column helm-descbinds
emacsql-sqlite-builtin sqlite textsec uni-scripts idna-mapping
ucs-normalize uni-confusable textsec-check cl-print helm-x-files
helm-for-files helm-external help-fns char-fold misearch multi-isearch
winner tramp-archive tramp-gvfs zeroconf helm-command goto-chg
gitconfig-mode plstore vc-dir company-shell rpm-spec-mode make-mode
dap-mouse lsp-ui lsp-ui-flycheck lsp-ui-doc lsp-ui-imenu lsp-ui-peek
lsp-ui-sideline lsp-ui-util lsp-modeline lsp-icons lsp-diagnostics
lsp-completion dap-lldb dap-ui gdb-mi gud bui bui-list bui-info
bui-entry bui-core bui-history bui-button bui-utils lsp-lens dap-mode
dap-tasks dap-launch lsp-docker posframe dap-overlays ccls
ccls-member-hierarchy ccls-inheritance-hierarchy ccls-call-hierarchy
ccls-tree ccls-code-lens ccls-semantic-highlight ccls-common
lsp-treemacs lsp-treemacs-generic lsp-treemacs-themes treemacs-treelib
treemacs-nerd-icons treemacs-magit treemacs treemacs-header-line
treemacs-compatibility treemacs-mode treemacs-bookmarks treemacs-tags
treemacs-interface treemacs-persistence treemacs-filewatch-mode
treemacs-follow-mode treemacs-rendering treemacs-annotations
treemacs-async treemacs-workspaces treemacs-dom treemacs-visuals
treemacs-fringe-indicator pulse treemacs-macros yasnippet lsp-mode
generic-x skeleton lsp-protocol spinner network-stream lv cap-words
superword subword systemd dired-collapse dirvish-yank dirvish-subtree
dirvish-collapse dirvish-icons dirvish-vc dirvish-widgets image-file
image-converter view atomic-chrome websocket minions back-button
smartrep helm-projectile recentf tree-widget savehist org-edit-indirect
cus-start yeetube yeetube-mpv socks elfeed-autotag elfeed-score
elfeed-score-maint elfeed-score-scoring elfeed-score-serde
elfeed-score-rule-stats elfeed-score-rules elfeed-score-log elfeed-tube
elfeed-tube-utils aio elfeed-protocol-owncloud elfeed-protocol
elfeed-protocol-common elfeed-show elfeed-search rainbow-delimiters
ligature symbol-overlay vc-hg vc-bzr vc-src vc-sccs vc-svn vc-cvs vc-rcs
log-view vc-git elfeed-csv elfeed elfeed-curl elfeed-log elfeed-db
elfeed-lib xml-query emms-player-mpd emms-history emms-volume
emms-volume-sndioctl emms-volume-mixerctl emms-volume-pulse
emms-volume-amixer emms-i18n emms-score emms-stream-info
emms-metaplaylist-mode emms-bookmarks emms-cue emms-playlist-sort
emms-last-played emms-playing-time emms-lyrics emms-url
emms-player-simple emms-streams emms-show-all emms-tag-editor
emms-tag-tracktag emms-info-mp3info emms-playlist-mode emms-mark
emms-cache emms-info-native emms-info-native-spc emms-info-native-mp3
emms-info-native-ogg emms-info-native-opus emms-info-native-flac
emms-info-native-vorbis emms-info-libtag emms-info emms-later-do
emms-source-playlist emms-source-file locate emms emms-compat khardel
piem piem-maildir mail-extr gravatar dns smiley autocrypt gnus-icalendar
gnus-async smtpmail-async smtpmail gnus-registry registry gnus-agent
gnus-srvr gnus-score score-mode nnvirtual gnus-msg nntp gnus-cache
gnus-desktop-notify bbdb-vcard bbdb-com bbdb-vcard-vcard21 bbdb
bbdb-site timezone mastodon-async mastodon-tl url-cache mpv tq
mastodon-iso lui-track company-emoji company-emoji-list helm-circe
circe-notifications circe-display-images circe-color-nicks circe
lui-irc-colors irc lcs lui-logging lui-format lui tracking shorten
flyspell circe-compat ical2org org-caldav icalendar ox-extra ox-odt
rng-loc rng-uri rng-parse rng-match rng-pttrn nxml-parse nxml-ns
nxml-enc xmltok nxml-util ox-koma-letter ox-latex ox-icalendar ox-html
table ox-ascii ox-publish ox org-attach url-dav org-pomodoro alert
notifications org-timer org-expiry ol-man org-super-agenda ts org-habit
vim-modeline org-contacts org-capture cdlatex reftex reftex-loaddefs
reftex-vars texmathp org-appear org-modern ws-butler selected jinx
oc-basic ol-eww eww vtable mule-util url-queue mm-url ol-rmail ol-mhe
ol-irc ol-info ol-gnus nnselect gnus-art mm-uu mml2015 mm-view mml-smime
smime dig ol-docview doc-view ol-bibtex bibtex ol-bbdb ol-w3m ol-doi
org-link-doi appt diary-lib diary-loaddefs org-agenda org-element
org-persist org-id avl-tree org-refile org-clock org-protocol ob-sqlite
ob-sql ob-shell ob-python python ob-plantuml ob-org ob-octave ob-lua
ob-js ob-gnuplot ob-dot ob-ditaa ob-clojure ob-C outshine
outshine-org-cmds outorg smartparens-org smartparens-text smartparens
loadhist org-archive-subtree-hierarchy org-archive salt-mode rst
mmm-jinja2 yaml-mode perl-completion woman man dabbrev cperl-mode
facemenu helm-elisp helm-eval edebug debug backtrace cl cc-mode cc-fonts
cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs
ggtags ewoc flycheck-color-mode-line flycheck jka-compr bitbake-modes
bitbake generic autoinsert conf-bitbake-mode conf-mode bitbake-ff
find-file bitbake-mmm mmm-mode mmm-univ mmm-class mmm-region mmm-auto
mmm-vars mmm-utils mmm-compat bitbake-functions bitbake-compat
xterm-color vc-osc vc vc-dispatcher forge-repos forge-tablist
forge-topics forge-commands forge-semi forge-bitbucket buck forge-gogs
gogs forge-gitea gtea forge-gitlab glab forge-github ghub-graphql treepy
gsexp ghub gnutls forge-notify forge-revnote forge-pullreq forge-issue
forge-topic yaml eieio-custom bug-reference forge-post markdown-mode
edit-indirect forge-repo forge forge-core forge-db magit-libgit libgit
libegit2 magit-popup git-email midnight vlf-setup multi-vterm vterm
face-remap color term disp-table ehelp vterm-module term/xterm xterm
tramp-cache time-stamp tramp-sh eshell-prompt-extras em-dirs esh-mode
esh-var em-ls esh-cmd esh-ext esh-proc esh-io esh-arg esh-module
esh-module-loaddefs esh-opt esh-util debbugs soap-client url-http
url-auth url-gw nsm rng-xsd rng-dt rng-util xsd-regexp debbugs-compat
org-bug bug-search org ob ob-tangle ob-ref ob-lob ob-table ob-exp
org-macro org-src sh-script smie treesit executable ob-comint
org-pcomplete org-list org-footnote org-faces org-entities backline
outline-minor-faces noutline outline ob-emacs-lisp ob-core ob-eval
org-cycle org-table ol org-fold org-fold-core org-keys oc org-loaddefs
cal-menu calendar cal-loaddefs gnus-sum shr pixel-fill kinsoku url-file
svg dom gnus-group gnus-undo gnus-start gnus-dbus dbus company-yasnippet
goto-addr gnus-cloud nnimap nnmail mail-source utf7 nnoo gnus-spec
gnus-int gnus-range gnus-win gnus nnheader range org-version org-compat
org-element-ast org-macs bug-comment-mode bug-backend-bz-rpc
bug-list-mode bug-mode bug-format bug-rpc bug-debug bug-search-common
bug-common-functions bug-persistent-data bug-custom projectile ibuf-ext
ibuffer ibuffer-loaddefs company-oddmuse company-keywords company-etags
etags fileloop generator xref project company-gtags company-dabbrev-code
company-dabbrev company-files company-clang company-capf company-cmake
company-semantic company-template company-bbdb company elec-pair
editorconfig editorconfig-core editorconfig-core-handle
editorconfig-fnmatch wgrep-ag use-package-transient frames-only-mode
windmove i3-integration i3 bindat marginalia which-key dirvish
helm-dired-history dired-ranger dired-avfs dired-rainbow dired-filter
dired-hacks-utils dired-async async-bytecomp dired-du find-dired wdired
helm-icons treemacs-icons treemacs-scope treemacs-themes
treemacs-core-utils treemacs-logging treemacs-customization pfuture
inline hl-line treemacs-faces helm-bookmark helm-net xml helm-adaptive
helm-info magit-bookmark bookmark helm-mode helm-misc helm-files
image-dired image-dired-tags image-dired-external image-dired-util
image-mode exif dired-x dired-aux ffap tramp trampver tramp-integration
files-x tramp-message tramp-compat parse-time iso8601 tramp-loaddefs
helm-buffers all-the-icons all-the-icons-faces data-material
data-weathericons data-octicons data-fileicons data-faicons
data-alltheicons helm-occur helm-tags helm-locate helm-grep wgrep-helm
wgrep grep compile helm-regexp helm-utils helm-help helm-types so-long
emojify apropos tar-mode arc-mode archive-mode ht cursor-chg
doom-modeline doom-modeline-segments let-alist doom-modeline-env
doom-modeline-core shrink-path f s nerd-icons nerd-icons-faces
nerd-icons-data nerd-icons-data-mdicon nerd-icons-data-flicon
nerd-icons-data-codicon nerd-icons-data-devicon nerd-icons-data-sucicon
nerd-icons-data-wicon nerd-icons-data-faicon nerd-icons-data-powerline
nerd-icons-data-octicon nerd-icons-data-pomicon nerd-icons-data-ipsicon
modus-vivendi-theme modus-themes helm-pass password-store helm
helm-global-bindings helm-easymenu helm-core helm-source
helm-multi-match helm-lib async auth-source-pass printing ps-print
ps-print-loaddefs lpr desktop frameset info+ thingatpt saveplace advice
delsel no-littering epkg-elpa epkg-utils epkg-list epkg-desc find-func
epkg closql emacsql-sqlite emacsql emacsql-compiler eieio-base llama
auto-compile use-package use-package-ensure use-package-delight
use-package-diminish use-package-bind-key bind-key use-package-core
magit-submodule magit-blame magit-stash magit-reflog magit-bisect
magit-push magit-pull magit-fetch magit-clone magit-remote magit-commit
magit-sequence magit-notes magit-worktree magit-tag magit-merge
magit-branch magit-reset magit-files magit-refs magit-status magit
magit-repos magit-apply magit-wip magit-log which-func imenu magit-diff
smerge-mode diff diff-mode track-changes git-commit log-edit message
sendmail yank-media puny dired dired-loaddefs rfc822 mml mml-sec epa epg
rfc6068 epg-config gnus-util text-property-search time-date mm-decode
mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util
ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader
pcvs-util add-log magit-core magit-autorevert autorevert filenotify
magit-margin magit-transient magit-process with-editor shell pcomplete
comint ansi-osc ring server ansi-color magit-mode transient comp-run
easy-mmode edmacro kmacro benchmark magit-git magit-base magit-section
format-spec cursor-sensor crm dash compat zop-to-char-autoloads
yeetube-autoloads yasnippet-autoloads yaml-mode-autoloads yaml-autoloads
xterm-color-autoloads ws-butler-autoloads with-editor-autoloads
whole-line-or-region-autoloads which-key-autoloads wgrep-autoloads
websocket-autoloads web-mode-autoloads w3m-autoloads vlf-autoloads
visual-regexp-autoloads vim-modeline-autoloads vc-osc-autoloads
uuidgen-autoloads use-package-transient-autoloads use-package-autoloads
ts-autoloads treepy-autoloads treemacs-nerd-icons-autoloads
treemacs-autoloads transient-autoloads toml-mode-autoloads
systemd-autoloads symbol-overlay-autoloads swiper-helm-autoloads
ssh-config-mode-autoloads spinner-autoloads smartrep-autoloads
smartparens-autoloads smart-region-autoloads skewer-mode-autoloads
simple-httpd-autoloads shrink-path-autoloads selected-autoloads
salt-mode-autoloads s-autoloads rpm-spec-mode-autoloads
rich-minority-autoloads request-autoloads rainbow-delimiters-autoloads
rainbow-csv-autoloads qt-pro-mode-autoloads qml-mode-autoloads
pythonic-autoloads projectile-autoloads posframe-autoloads
pos-tip-autoloads popup-autoloads plantuml-mode-autoloads
pkgbuild-mode-autoloads piper-autoloads piem-autoloads pfuture-autoloads
perspective-autoloads persp-mode-autoloads persist-autoloads
password-store-autoloads pass-autoloads ox-bb-autoloads
outshine-autoloads outorg-autoloads outline-minor-faces-autoloads
orgit-forge-autoloads orgit-autoloads org-vcard-autoloads
org-tree-slide-autoloads org-super-agenda-autoloads
org-remoteimg-autoloads org-pomodoro-autoloads org-modern-autoloads
org-edit-indirect-autoloads org-contrib-autoloads org-contacts-autoloads
org-clock-helpers-autoloads org-caldav-autoloads org-appear-autoloads
org-autoloads nov-autoloads no-littering-autoloads nnreddit-autoloads
nnhackernews-autoloads nginx-mode-autoloads nerd-icons-ibuffer-autoloads
nerd-icons-autoloads navi-mode-autoloads multiple-cursors-autoloads
multi-vterm-autoloads mpv-autoloads move-text-autoloads
modus-themes-autoloads mode-icons-autoloads mmm-mode-autoloads
mmm-jinja2-autoloads minions-autoloads message-x-autoloads
message-view-patch-autoloads message-attachment-reminder-autoloads
meson-mode-autoloads mastodon-autoloads markdown-mode-autoloads
marginalia-autoloads magit-popup-autoloads magit-autoloads
lua-mode-autoloads lsp-ui-autoloads lsp-treemacs-autoloads
lsp-mode-autoloads lsp-docker-autoloads logview-autoloads
llama-autoloads lisp-autoloads link-hint-autoloads ligature-autoloads
levenshtein-autoloads khardel-autoloads js2-mode-autoloads
journalctl-autoloads jira-markup-mode-autoloads ivy-autoloads
irony-autoloads ir-black-theme-autoloads info+-autoloads
imenu-list-autoloads iedit-autoloads ical2org-autoloads
ibuffer-projectile-autoloads i3wm-config-mode-autoloads i3-autoloads
hydra-autoloads htmlize-autoloads ht-autoloads
highlight-indent-guides-autoloads helm-projectile-autoloads
helm-pass-autoloads helm-org-rifle-autoloads helm-make-autoloads
helm-ls-git-autoloads helm-icons-autoloads helm-ext-autoloads
helm-emms-autoloads helm-dired-history-autoloads
helm-descbinds-autoloads helm-circe-autoloads helm-autoloads
guess-language-autoloads grep-context-autoloads goto-chg-autoloads
gnus-recent-autoloads gnus-notes-autoloads gnus-desktop-notify-autoloads
gnus-alias-autoloads gitconfig-autoloads git-modes-autoloads
git-email-autoloads ghub-autoloads ggtags-autoloads
frames-only-mode-autoloads forge-autoloads
flycheck-color-mode-line-autoloads flycheck-autoloads flimenu-autoloads
fedi-autoloads f-autoloads extmap-autoloads expand-region-autoloads
evil-multiedit-autoloads evil-autoloads esxml-autoloads
eshell-z-autoloads eshell-vterm-autoloads eshell-up-autoloads
eshell-prompt-extras-autoloads eshell-bookmark-autoloads epkg-autoloads
emojify-autoloads emacsql-autoloads elixir-mode-autoloads
elfeed-tube-autoloads elfeed-summary-autoloads elfeed-score-autoloads
elfeed-protocol-autoloads elfeed-autotag-autoloads elfeed-autoloads
el-mock-autoloads eimp-autoloads editorconfig-autoloads
edit-indirect-autoloads dumb-jump-autoloads doom-modeline-autoloads
docbook-autoloads dirvish-autoloads dired-rsync-autoloads
dired-hacks-autoloads dired-du-autoloads devhelp-autoloads
deferred-autoloads default-text-scale-autoloads debbugs-autoloads
datetime-autoloads dash-autoloads dap-mode-autoloads
cursor-chg-autoloads csv-mode-autoloads crux-autoloads
copy-as-format-autoloads compat-autoloads company-shell-autoloads
company-quickhelp-autoloads company-nginx-autoloads
company-lua-autoloads company-irony-autoloads company-emoji-autoloads
company-anaconda-autoloads company-autoloads code-review-autoloads
cmake-mode-autoloads cmake-font-lock-autoloads closql-autoloads
circe-notifications-autoloads circe-autoloads centered-window-autoloads
cdlatex-autoloads ccls-autoloads buttercup-autoloads bui-autoloads
bug-mode-autoloads borg-autoloads bitbake-modes-autoloads
bbdb-vcard-autoloads bbdb-loaddefs backline-autoloads
back-button-autoloads aweshell-autoloads avy-autoloads
autocrypt-autoloads auto-compile-autoloads atomic-chrome-autoloads
async-autoloads anaconda-mode-autoloads all-the-icons-autoloads
alert-autoloads aio-autoloads ag-autoloads ace-window-autoloads
ace-link-autoloads a-autoloads 2048-game-autoloads borg derived
loaddefs-gen lisp-mnt radix-tree info comp comp-cstr cl-extra help-mode
comp-common warnings rx ispell package browse-url xdg url url-proxy
url-privacy url-expand url-methods url-history url-cookie
generate-lisp-file url-domsuf url-util mailcap url-handlers url-parse
auth-source cl-seq eieio eieio-core cl-macs password-cache json subr-x
map byte-opt gv bytecomp byte-compile url-vars cus-edit pp pcase
cus-load icons wid-edit cl-loaddefs cl-lib rmc iso-transl tooltip cconv
eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type
elisp-mode mwheel term/x-win x-win term/common-win x-dnd touch-screen
tool-bar dnd fontset image regexp-opt fringe tabulated-list replace
newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar
rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock
font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq
simple cl-generic indonesian philippine cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms
cp51932 hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese composite emoji-zwj charscript charprop case-table
epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button
loaddefs theme-loaddefs faces cus-face macroexp files window
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget keymap hashtable-print-readable backquote threads dbusbind
inotify lcms2 dynamic-setting system-font-setting font-render-setting
cairo gtk x-toolkit xinput2 x multi-tty move-toolbar
make-network-process native-compile emacs)

Memory information:
((conses 16 19230691 5322735) (symbols 48 158891 302)
 (strings 32 3356266 431996) (string-bytes 1 296622778)
 (vectors 16 1184023) (vector-slots 8 21822591 3690097)
 (floats 8 17047 62820) (intervals 56 1212407 111514)
 (buffers 992 875))




Acknowledgement sent to Björn Bidar <bjorn.bidar@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#75305; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 3 Feb 2025 12:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.