From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: David Masterson Newsgroups: gmane.emacs.help Subject: Re: How to "fold" the GNUS Summary buffer? Date: Tue, 14 Sep 2021 20:39:40 -0700 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2419"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Cc: help-gnu-emacs@gnu.org, Daniel =?utf-8?Q?Mart=C3=ADn?= To: Daniel Fleischer Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 15 05:41:19 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mQLnS-0000QI-Ma for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 15 Sep 2021 05:41:18 +0200 Original-Received: from localhost ([::1]:48018 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mQLnR-00046k-AD for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 14 Sep 2021 23:41:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52192) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mQLmW-00046Y-1z for help-gnu-emacs@gnu.org; Tue, 14 Sep 2021 23:40:24 -0400 Original-Received: from mail-dm6nam08olkn2106.outbound.protection.outlook.com ([40.92.45.106]:32279 helo=NAM04-DM6-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mQLmR-0007gZ-Vt for help-gnu-emacs@gnu.org; Tue, 14 Sep 2021 23:40:17 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Vw9d8n96i0l7gtowd7TWbEaGgBVIjapShjE0VJ42XRQbQBtL7Xm9RZYU9tKGP4Hi9I6KZNgv1AGbe2g6LW2mBW+8luDJiCxu4RhEReiTC6X9hW63YHVQo69whbmzAtA85bnCgfyapLV/Rbj1b7b/JfRxTqMcWVMIFHs69N7xwGEj3NUkD8E6CQuSfcBpViqPTSkuQ9rfVB74WDNedZnkwp5IauuOLzthjUFFYI4D7VkjHhmyYMb03ya8hxUOKkbdklTgZ92esXSFLeuRnae7KJkXS4RlO6gDz5mlqid5OeLoMYp0JuKx7Zh23LfZhZor4GgupbI6nVjx4HxlmvK78Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=QLbRCmUCoHZcdVzgFtqfcCCrUcy086PLUY6L9XGxniA=; b=n8fk0Tu1pKItwuBIaNAZc4Qeg7HgO2yGU3sSOXdEPvVf/uVcVj4MaGYHMfJjFoIJfWhm8O1j/3+VuZlvyE4jrR7MeFtmdLZebGmwBGrnKn9bCVMG+EUS7k62R5yv4nUXD89IKzPdgWnOpVdsedeXE4+nWAXUraGTAPn7DZYATHJgkvbUxW+Gn+QvawMkRsM9MLmx/Cgi4mWngWHalef9aRqh1Uy2dsGr3c5Ym9g7qZoDt0bBoKtXsuMnRI7OLEER1MFHsU2HXOyCegKo+oGmfPW22nnPnu8sTx5IvUokEp0V+V6Krmjc1oxgQzHSU3vcwXEV+3N3U3xilJJxglLlYg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=QLbRCmUCoHZcdVzgFtqfcCCrUcy086PLUY6L9XGxniA=; b=C4pvJXSHBHlwu6BIBCB2qNrmVKXooHwuWNujbnPdZrIaZCvJeh5BxW/9bQpW1ARB6Q1/RMTuErNn7+Afks8e5PmheOauMbRT7y+12pXLYvw8NuyeVoBrUobleudAQmlOFjD9aHfTM4RPdsul7Dl3GSYc7cB9IwwehmpSIkDW4ZYOYmA8YsVFtvkfKNA5IDeFbO2RveAaMfvJ5BeXeWHdEWGcfpuVz4eNykX8g/R3xID/00nEUqxCQ1Xo+mHlfuQvU/USRg0Y2WNoFIYs8qi3zD3H0EkzgNoooHhGDhEpFN1h9mRGpy6UdiQviEQTkdc603+kydCpSQrjh7t5e84Nhg== Original-Received: from SJ0PR03MB5455.namprd03.prod.outlook.com (2603:10b6:a03:27b::11) by SJ0PR03MB5631.namprd03.prod.outlook.com (2603:10b6:a03:28d::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4523.14; Wed, 15 Sep 2021 03:39:43 +0000 Original-Received: from SJ0PR03MB5455.namprd03.prod.outlook.com ([fe80::a9a3:a0eb:b82e:e859]) by SJ0PR03MB5455.namprd03.prod.outlook.com ([fe80::a9a3:a0eb:b82e:e859%8]) with mapi id 15.20.4500.019; Wed, 15 Sep 2021 03:39:43 +0000 In-Reply-To: (Daniel Fleischer's message of "Mon, 13 Sep 2021 12:54:06 +0300") X-TMN: [7SSaUEyT9VDfwnOwEK/YGIYQU0AGNhqwHzHRtO8L+kwmmyBGhcPdGHaDRcAkpl/Z] X-ClientProxiedBy: SJ0PR05CA0125.namprd05.prod.outlook.com (2603:10b6:a03:33d::10) To SJ0PR03MB5455.namprd03.prod.outlook.com (2603:10b6:a03:27b::11) X-Microsoft-Original-Message-ID: <87lf3yqzgj.fsf@outlook.com> X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from penguin (2600:8802:501:2600:216:3eff:fee7:3d5d) by SJ0PR05CA0125.namprd05.prod.outlook.com (2603:10b6:a03:33d::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4523.8 via Frontend Transport; Wed, 15 Sep 2021 03:39:43 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 219a2aeb-ac88-422e-a4ca-08d977fa74c2 X-MS-TrafficTypeDiagnostic: SJ0PR03MB5631: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qHAKy45H0Bdh2mcJYkWzfGIAOKu0Z1yTtmOrxf76p7g/uTRQUlO+s1i/HkMBYO+G40ppjQxMjHmulLcOUO0eKV/BbpE+bmjqXGvWY7rvSxcpiM0ynsBii71TxcOpiHiriK9cFbjyqniYmOs9FOX/U8DOFaV6bnZghA9CD0msHrbyN4IssYJBW5EkRgsa6nYWteXk8otdfrDM8fAcu0fm7HSxZnWeMCazDDz4lFVHUU2f09y6GRlb01DotN/a9VLgCi2i2OWRWUCLFRbicrfCUCYnMzMGzvzLT2vkZ2ZdKC/miw2to8z7MQkKk0Ae2QnI1CLW4qlbcM1jBJNN2k1HK6oz5B5Bro9quRj9Su8cqbKN1m7KXXEJKXEvGjHQXFdwTRzjrUsOJBn0NyNJ7lZGBuVozBC1I3+KW25II7Qk8tn4EeTUiKGd7PHGE7/j4Tqk X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: k7BnKA6fenJLj039RhkGROmB7aTw2Y8WWIVHqF82WWQ2tn6kwEBB/nR8RDk4xcg4CgjUF25I453tFgWNESCw9YItw3t789OK6/D+7vSShOPrOOTX7zYrUxFL3eSAERNHN8xSqp052vEpj25p/XHClPihf2NgLy8mol8VGjKerVo7LEdqRB3qNLLJny0nw30RMcaBa5DRHZyKAdCb0l0OJQ== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 219a2aeb-ac88-422e-a4ca-08d977fa74c2 X-MS-Exchange-CrossTenant-AuthSource: SJ0PR03MB5455.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Sep 2021 03:39:43.5930 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR03MB5631 Received-SPF: pass client-ip=40.92.45.106; envelope-from=dsmasterson92630@outlook.com; helo=NAM04-DM6-obe.outbound.protection.outlook.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:133053 Archived-At: Daniel Fleischer writes: > Here's simple code to fold threads using TAB: > > #+begin_src elisp > (defvar df/gnus-thread--var nil) > (defun df/gnus-thread () > (interactive) > (setq df/gnus-thread--var (not df/gnus-thread--var)) > (if df/gnus-thread--var > (gnus-summary-hide-thread) > (gnus-summary-show-thread))) > > (define-key gnus-summary-mode-map (kbd "TAB") 'df/gnus-thread) > #+end_src Nice -- David Masterson