From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id KE3JB3oVdWJLyAAAbAwnHQ (envelope-from ) for ; Fri, 06 May 2022 14:32:58 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id cH2/B3oVdWLH5wAA9RJhRA (envelope-from ) for ; Fri, 06 May 2022 14:32:58 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id A26D42C992 for ; Fri, 6 May 2022 14:32:57 +0200 (CEST) Received: from localhost ([::1]:60450 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nmx8h-0001AK-0P for larch@yhetil.org; Fri, 06 May 2022 08:32:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44286) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nmx0J-0002MD-7C for emacs-orgmode@gnu.org; Fri, 06 May 2022 08:24:17 -0400 Received: from mail-he1eur01olkn0800.outbound.protection.outlook.com ([2a01:111:f400:fe1e::800]:24800 helo=EUR01-HE1-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 1nmx0H-0006Lv-9V for emacs-orgmode@gnu.org; Fri, 06 May 2022 08:24:14 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VpL8h9B286iqavMSjbqdZSGT3imNlI4CIOgm8q2ziuai0XbprELjirKdlENv+D3UfMfUg8whrPNNTJE0fveuCrnVdsyda8JP+t1IL96mvmpQIsQuzw/kxKtD3e2vuRzWI8zYTuYcydLKvHglfjUbOZpIBmwaj6QHvVp/CUDYGcXMhyfB1ryyl8QPgOv3jQlLKQcaqN2711oCFeOsJaucwXFkSiskePlPBAFwZ0aNDZ7sAxlkrGtlJAYf76IlRaNdQt/1xd+ggIZgyQJsE+PK90C/bx9fxmqowI6rxu3k70wj3fsVbJnSd+ndwRWINZQLkyqOyBbQNom7MKpnz2/RmQ== 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:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=IVOIGlqukdd6YHviBkFf8bH2K/UnJmfFc5fPI9bKYd8=; b=F6hisHx6RLqixWor4K3ZHvsHSiJct++rcFErUTucHioP63jE+7E8Ri+aF/1/lHTJF4xtgpo6iHiJC9i/iY3p8JhxfaKRvxUclCVmozTBSENCAFPQKDKIjM5miaQa7XmYfYuoleWslPtXJyg1Y+zhPZGMrNwu8w7MP+CUlOUpgEYJzHVWBd0MSCZyx6R+BNQ1NnGRlDSzTo67hMhCCtWEvJ7p0X0DMF2hZcGsxtxupEOOIRiOESotcKDMqsNWt8lgJ27Ud6UpzTHkCQc3o0Ci3QptnA/F9rCVz2EHhVhTSR8fJlN+QT4IPodgkT4ySFWe6tgukZ7dzNeynmOhPIygIQ== 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=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=IVOIGlqukdd6YHviBkFf8bH2K/UnJmfFc5fPI9bKYd8=; b=kdSB2JKvXz00ELmNT14z21ccw2yy1JibWWalbkHG7KqE/aCvNH0ddNbhhlZjyUit7JB33XfWMhbAwUIlWDucd7ThSxrlq1tvCR3yXjkhPMXcQLY6g9ux3FMqdFcIwgJs61tPFMXHRIVkYArNLD2nKcfmWIp0VbQT3V6fqREWbfceAKOnBXyL5qE8e13utngyEWib65pQCTpn+DMdJkf34QZ3COj6zuDJv2OBy1Ug8fVQOxQBI/BBr5B31cF/PcdSHvxpilihpC00y76dIo4eTefe8fmUlcU+mb1k2lPSgCkb0FjV02tiJM+iwUouBFgxXzlFPGVXeYK15BZCqjFvaA== Received: from PAXPR06MB7760.eurprd06.prod.outlook.com (2603:10a6:102:155::8) by VI1PR06MB6510.eurprd06.prod.outlook.com (2603:10a6:800:11c::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5227.20; Fri, 6 May 2022 12:19:08 +0000 Received: from PAXPR06MB7760.eurprd06.prod.outlook.com ([fe80::3d50:522e:f03c:6225]) by PAXPR06MB7760.eurprd06.prod.outlook.com ([fe80::3d50:522e:f03c:6225%8]) with mapi id 15.20.5206.027; Fri, 6 May 2022 12:19:08 +0000 References: <87fsln6iho.fsf@localhost> User-agent: mu4e 1.6.10; emacs 27.2 From: Ignacio Casso To: Ihor Radchenko Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] org-complex-heading-regexp should consider COMMENT keywords [9.5.2 (release_9.5.2-25-gaf6f12 @ /home/ignacio/repos/emacs/lisp/org/)] Date: Fri, 06 May 2022 14:14:29 +0200 In-reply-to: <87fsln6iho.fsf@localhost> Message-ID: Content-Type: multipart/mixed; boundary="=-=-=" X-TMN: [asf5CqvO5YOTYi07+p79Q1781nEFZfvL] X-ClientProxiedBy: PAZP264CA0057.FRAP264.PROD.OUTLOOK.COM (2603:10a6:102:1fd::18) To PAXPR06MB7760.eurprd06.prod.outlook.com (2603:10a6:102:155::8) X-Microsoft-Original-Message-ID: <87zgjuluq9.fsf@hotmail.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 09ab8e4c-59ae-4c04-4456-08da2f5a9e86 X-MS-TrafficTypeDiagnostic: VI1PR06MB6510:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: d8cLbbiQmI7r/pQ+7HHI4JY++VyTUKQwj3rRA8mZ+fab3S6Tzu9w91hcSt5ZHAGCNnvCLuqI4HeERu4MxZ/HW6vQw/WjHIVOOBFBevZ3acqL51gZ6E1IcfTHsPCCLSuSqkEojQd1/JBXKUO/UrRS7bpmcKK3DioF6uqofydwVWv4p/i0vEufUpVVcXY77BH6UgZxy4CYtuni8Ds/Rd5YxL84udTmnI/mBYHoGFAg83qROOmgivQOgsFY52a08LB/cfAYSRLwVsI20w/i8+naqwPNkonPPfg6QN8FCwZtKSvz38YtcdGhO94PIv1FASvF78DwEPl03nmmF0r6p0R3/xzLuGtVtkKoaM2JMJ6ARD4eLkplDxOhBNUMAV+poav+OYf4hmxqfZ5Qsj2zYZK1vkbdqbwNiN8hkaKbG7WwLrZeMwAcw+JmQXGrK2FdliesjGfM+ESztgT1azBIfPuJhA6Qvpn3lzuM0AIth2k7RuPyhvUBjv/+kgLWZqlm9SA5OHHwtOWD6Z/wAjWfAE4OreN3hKsQVlFFZaIzCQ2YFVi0OtR8PKpk6JnpGLHB/h9N814Lg9un7WNhSJ62biY1CX72cNLU6AduuvsaYoDXmgVvZl4chQHbnNmKSn3tq6vRJiJsgF/C8K29rL9F6eU4RQ== X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?9flvxM2KNK1bV4xoRFdtj7pz566OxVCQ93pELEtLs3XACqT9ZIYeEp8s3pFo?= =?us-ascii?Q?dUPFinG4ucHB8cmJkUQfWt3I3l93C1QxLQ29fWKhUsx79dBAg45OGLqIK05I?= =?us-ascii?Q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wM/0Rz2?= =?us-ascii?Q?S8oaSTMWBNAqtClvrbn3Bz/E5XNbRSTabQgdOjEQY4q1zWD04ZWOZU50/acm?= =?us-ascii?Q?kevB+zlgvkRfqITnebw/pPg8hW564gmtw5vK+2+futWsHicIx6Cw334AIvZn?= =?us-ascii?Q?ypm5E+ookpNBgfRT7EH4J/tVFvjH15WDjodtNVAXTtbdOuP9Zfv/zcX0hpWN?= =?us-ascii?Q?sqrwOhyJ84PqNXnzUwSXIiZ0tXo5ykpp2ObxinA24oj9AHlHOb78uxObXqk9?= =?us-ascii?Q?rW8TZ1LqFP5Y06heqfzFou6hTbEflSUtICkUIQbZn/Mc6D/HCzck2tYNJsfo?= =?us-ascii?Q?WJ0YqiKaGwyA7LIOnLm3QAkr34WnVTs9KALNwgLcT029QJtWt1tOyYPTrlj2?= =?us-ascii?Q?DikpIWegiSR3FVFo54eRxFzR0tcZNPjGr6l1DSsVjzJCxJ+PhrdTzmb7BENe?= =?us-ascii?Q?bFH8iyHNhDM=3D?= X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-6e454.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: 09ab8e4c-59ae-4c04-4456-08da2f5a9e86 X-MS-Exchange-CrossTenant-AuthSource: PAXPR06MB7760.eurprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 May 2022 12:19:08.2632 (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: VI1PR06MB6510 Received-SPF: pass client-ip=2a01:111:f400:fe1e::800; envelope-from=ignaciocasso@hotmail.com; helo=EUR01-HE1-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_FROM=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1651840377; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=IVOIGlqukdd6YHviBkFf8bH2K/UnJmfFc5fPI9bKYd8=; b=IF+YRySqiddqYysP0j48JulBLY9PsOVzZbUKmWypLHMFU5O6LGoN4vndN3/pDW2yfK39oV 0TDRXvt7qhxKagB+ciEm/BJU5FfcOmeit+QdsXEhmbHgl2hTgakgpW6CPebf4xB0GsYiE0 YR3ZqpwIMXKBRS+H8R5P3cCwFlpS1em2rejIFqTMF+IJ9oC3zeFPv0uNSrzmx93YzzIroJ IinnwD6I2A7xDNBbEyosdOMMO0INZAPw5lBhHzsUPitPj2Lvj+kfvcTqP5fZu/exONUanK Jcui/NT2vCDgrLN0BfD/TQeAJSzzNN5XhGN8HoEo2St3ByZU5sE7ykRUEGef7w== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1651840377; a=rsa-sha256; cv=pass; b=hH0D295LYovUTRL0qDFEHQTvGnluBCAj82v0NMbfphMHZ8qmVmUcKjDXy2LVi4L99R+/pp LXqj8uDOlKu3qhWaL6F7MyhuD2ykHq8c8DPsyHJRPqOhJ1Gh34Fm6qRpb/kHTQ8sNEO5YU bg405oae4IQQKEoAKuyv/f5xjROgIiyL8LM5WcvwPndbHuT0drSFwtvshSfe2S999gCYYJ MDiVk1/t1CHHuaH+FOIUd7aMuixpxSCOGy0r+UIka3VsPOodh70aB/Ij/nrNTKxdbEkmnM id55Rq0Q4xAmvZKxZGcnf1uPQdvHdcsaA5wvwCm+AWsnr0cf2CvCHdxMc0sihQ== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=hotmail.com header.s=selector1 header.b=kdSB2JKv; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=hotmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -5.00 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=hotmail.com header.s=selector1 header.b=kdSB2JKv; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=hotmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: A26D42C992 X-Spam-Score: -5.00 X-Migadu-Scanner: scn0.migadu.com X-TUID: fd9hI2rVjmmN --=-=-= Content-Type: text/plain > Sounds reasonable. Could you prepare a patch? > COMMENT should be inside a shy group and note that there might be an > arbitrary number of space after COMMENT string. Here it is. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-lisp-org.el-match-COMMENT-in-org-complex-heading-reg.patch Content-Description: Patch >From 54cd366c97bd64c226cc6fc79e125ee9f026ff66 Mon Sep 17 00:00:00 2001 From: Ignacio Date: Fri, 6 May 2022 13:51:14 +0200 Subject: [PATCH] lisp/org.el: match COMMENT in `org-complex-heading-regexp-format' --- lisp/org.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lisp/org.el b/lisp/org.el index 1d5fc3903..0ec717322 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -4213,6 +4213,8 @@ related expressions." "\\(?: +" org-todo-regexp "\\)?" "\\(?: +\\(\\[#.\\]\\)\\)?" "\\(?: +" + ;; Headline might be commented + "\\(?:" org-comment-string " +\\)?" ;; Stats cookies can be stuck to body. "\\(?:\\[[0-9%%/]+\\] *\\)*" "\\(%s\\)" -- 2.25.1 --=-=-=--