From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id CC6kORuyc2KCBgEAbAwnHQ (envelope-from ) for ; Thu, 05 May 2022 13:16:44 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id GBZwORuyc2JWwwAAauVa8A (envelope-from ) for ; Thu, 05 May 2022 13:16:43 +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 74DC36015 for ; Thu, 5 May 2022 13:16:43 +0200 (CEST) Received: from localhost ([::1]:45294 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nmZTO-0006m1-75 for larch@yhetil.org; Thu, 05 May 2022 07:16:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39356) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nmZRZ-0006hK-KI for emacs-orgmode@gnu.org; Thu, 05 May 2022 07:14:49 -0400 Received: from mail-vi1eur05olkn2050.outbound.protection.outlook.com ([40.92.90.50]:24896 helo=EUR05-VI1-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 1nmZRW-00028k-4O for emacs-orgmode@gnu.org; Thu, 05 May 2022 07:14:48 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=C25iGJ2GWW5AXkbeA+ewHM2K9iK6Hfx/3pZgOuevWfPP4j0zkt8FiKuczWs8lJhK9qvzgejdYn5939VKwYukGKRqSHW03rhMeigmGjsoiwaYtZNFi8bfE/BtCIiDjvQDYfs1vZqJ78IGNkiDF1iFjMkDfeuHBTZQHH8hh8rDC9fvKDYE5GEkg6wqES6ZuLGC/E4rz+Tn7S6T8jOLsa/iXWfURuBwPcceJR8JEFHSTCoW7UdOuf9ydl+ibkt69EanYxiDlw92qq2zI9IVaag3YZTko/OuC6m7CNUKPeoyclXfDFhfq+mU1mXhAtUN9X6On5a85D3+OV9u08KjZfezow== 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=TqX44zJ/LIRV/NJ2+zKJdQUrkF4waGb1sKigbGJREnU=; b=fgzG5cesZRK/2HjxmShm3RWyzzP3ftEFOzmokABAgY0ITZwSLWyzHxR8bYcMtXcUAqI1IJ3Nh85+SkvOEd3flxo1TQqjeWXckR6xXqSre/N8cNYlG3FWQ8thkSHJpnJC5k11DNW9ID7iXxUOCtIUGepEE5iVU9GSc89/M92OJ+uxgxK56Rv2RfY1B8IEwLNl1hYj4oiTNSjE3u+R9Mb6NaHvWEUfdNfAm7xovST0ExqiWbIokvsg0MZCxhsJMG56w4grNzAxt2+WRZIhK+1nKgnH0j0TJvv5/clf2uXFicDlUPdSPAq9kSlURUW7G8AUK4PZYCk+LSXI9zaoW2TdTg== 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=TqX44zJ/LIRV/NJ2+zKJdQUrkF4waGb1sKigbGJREnU=; b=s9CBhh6dqxPAP7gi/tkXfV/AMXM/yVh1iVz9eQhiWy3FQJrS/Z6HBEpoe+gkLZDz+lzhSqSwbuSXpT3vGrd77GhXKVAGVU+1/vr0Aj068pQVhaGF+iPsINau3KyvmwNsWVzQST0MD1YYuBySn9aBMj8e53+ID0DM+rxz6h4Am1xb7rXLZNUp8YHctpGGlv0ahdOSzI0qJQjEHxwlg9/A8qpeMBn6qxP1iAgG3R0hK9xaBtNrLZMbkP5cWSOItWA7uLcOHX3f1UjVBvBslWIqKsDCCyYWAuzJC1HeMRtT+2Zh7v31QQaYmWSTGzoIU+4GDecLod1xVm8hOhutYI+HwA== Received: from PAXPR06MB7760.eurprd06.prod.outlook.com (2603:10a6:102:155::8) by VI1PR06MB6526.eurprd06.prod.outlook.com (2603:10a6:800:122::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5206.14; Thu, 5 May 2022 11:14:40 +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; Thu, 5 May 2022 11:14:40 +0000 References: <87v8ulhnhh.fsf@localhost> <87k0b1ik9q.fsf@localhost> User-agent: mu4e 1.6.10; emacs 27.2 From: Ignacio Casso To: Ihor Radchenko Cc: Samuel Wales , Daniel Fleischer , Fabian , emacs-orgmode@gnu.org Subject: Re: [BUG] - Statistics cookie is part of the org heading title Date: Thu, 05 May 2022 13:02:45 +0200 In-reply-to: <87k0b1ik9q.fsf@localhost> Message-ID: Content-Type: text/plain X-TMN: [4JPIjlXsXcDmw0g8W5LyCKtHFq/qOMC8] X-ClientProxiedBy: PR3P193CA0006.EURP193.PROD.OUTLOOK.COM (2603:10a6:102:50::11) To PAXPR06MB7760.eurprd06.prod.outlook.com (2603:10a6:102:155::8) X-Microsoft-Original-Message-ID: <87czgss02x.fsf@hotmail.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f9a9ee1f-6445-4ae7-d2b5-08da2e88730a X-MS-TrafficTypeDiagnostic: VI1PR06MB6526:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: w3wpbUlO0SolXhRDiYoG9zQxjVQkoEWZv0D1druK9pfQXkP04Wa6BJ9dXju+QUgjyumJD+la+LRyDXE97vfBADM2jef/ldU4D0S6bXeY2qqhAkTBVBcRofgkBl69iG5lPd9VkI+WA0RywP48Z91l85/i1lF51O0xhJpc5ZAAeMpiuxgn13Q3pjV2XDoHLR87wbpkrdxSUG5ra3cBlCC5Bq7c4CsM0zH3+sNm9L0YLzs5MqwzgPxA+9gQNBdwALXiCJOOLZUPwb5XSwvAH8sTd06hNI4OlGLIwpzp0RTzzJTUQucYSom89JhkYkO6FrsoVdT4mlrjprXkb4dvmCzCqSLgYgxwsm3sUHllfImeYhMYBds1ASXFwIPF5LXQWf3kHF9IMJD4uiOO8+rrBWjUk5mSmavHjbvOJBk1QCyBcKeHw7Izv+MAWviqyEmNTTuWRBfI/tj+FbFD7ZG6DqQ2u9L7jgRiRi0ivWL5SgVmJDFwA9zIdf0sYnjGMHi8E6mKqkn6fnzY91euummDEdoee0TwvqdoNm3viBWEBwbs9mmM00FD2f6lLI3M4MXkaexrZk0aPa8qzmaUeMUUZJHxbGxOl4X6v08A2See7OvdpSvHwiaVDoyxTsXbJhlBymuo6Of53y1Jc9gbm+iJlGZ2hZpH/+HubtqOLuFCi4eAcg0= X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?SW72JDcCq2JnhGDOm6GiztW9oz0ROXKghnHKo6nLWikF3s7p2PYDUPLGw5L1?= =?us-ascii?Q?1gchENghSJOCdWz72Ivt0QXaX0zSfd3XvhWUrkd5WMLRmw7/Kd/tuNo7AGvX?= =?us-ascii?Q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D7zUotz+C4FVVbd5AgR7On307f?= =?us-ascii?Q?D1IdHKuMHFY8aA+GmcGsLZ9YUgBfjxM88IUae9WdYgXKLsllMjlnaU0w0+xo?= =?us-ascii?Q?tz7TT0CYjvvwdGo/LLtesJL3C6pTwJ3Au7wpUhggANEnxE2pmohoFkO55qjO?= =?us-ascii?Q?zkExorG95i3H3Bqv3FizOj4Z8GBBZUyU4Hvu8toMmC8ZpS2jk0wz4QhEkKul?= =?us-ascii?Q?hYk44wYlDvjBbLhnS+4KIEEt2qTy+XxOvTmvs6Mj/EZaPuih/MZZ6L0uHifA?= =?us-ascii?Q?9piFAUhW/CNhUmIM9RU07kRmc2MpdGRi20AylrmIpeNwY4MbogXggOhViFbz?= =?us-ascii?Q?cUQF0ZVzG4QxXDtbpwQYkrE9knZ+3j8Np4RaMMsITQpnJ7kAKgU2FfBZcfOu?= =?us-ascii?Q?elC+uU9ZrRAZ0f4owVn45SkCgczVZqLzMdoEklmTifkPgmGOgMjPMHJUQaSA?= =?us-ascii?Q?91k/iitQtS4=3D?= X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-6e454.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: f9a9ee1f-6445-4ae7-d2b5-08da2e88730a X-MS-Exchange-CrossTenant-AuthSource: PAXPR06MB7760.eurprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 May 2022 11:14:40.9052 (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: VI1PR06MB6526 Received-SPF: pass client-ip=40.92.90.50; envelope-from=ignaciocasso@hotmail.com; helo=EUR05-VI1-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, RCVD_IN_DNSWL_NONE=-0.0001, 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=1651749403; 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=TqX44zJ/LIRV/NJ2+zKJdQUrkF4waGb1sKigbGJREnU=; b=NMfvK/au/+b114+lGSsMb+vs9UHhShFdAfrASt1Lw3qzhnYHfJtcWnZtH7QWJKW1nAZST7 dh8K3V2nD/bsKt/+R/KCfu3+FmskxYkYY0IGYOh1Qcv99brCBEWddo4EZEmz3C2PGINsEl rAhGmxPg2jtdoSEtGr+8tscu0ZPbNQipOMPlRf0vADWg9CRp8SQ7WqSjfFq7N4WHmGmLA0 6DR1MrVAgWFexkDIyJ3ElSTtxE+xEpD+fIaPJc1A5M0c4M0q0wu5vaN/O6ekrZsXjWPWBC vesRUiw5pbswT8HU2fc2gt/yMEQf1O+ZPeTusOu7G/bEfsr4uB3bYtH4zUIMiw== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1651749403; a=rsa-sha256; cv=pass; b=NYFU6f2QgUaS28j09elcnOVDXV59Kui75e8GURuDQZb3pTMflZB+ReDehqafKJhcoeuAly inEMavsJ0YTbr4ZfO8FdBmxrHY3VDkRPhcWBb/6lZANKsdpIq7+SArFMniqGWnriGeDEUy YCeDCRSalxikTMdFRjwz7+luFe02+zueQDtvWdRBvaHCmwteQEv9fpNZTm1Zi4c0R5QFpt zY3kgRdzJsHbZtXFoicbUlRgtN5dDlo5hxYT+CUDYfclJoqlivrVmzTVMgBbTdnLWgpkwX 4uCGmsazveehdPaEfLFuCywmuUFcT06LYG5GLz9wXhWwjvirVG4qh5QPG03z4A== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=hotmail.com header.s=selector1 header.b=s9CBhh6d; 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: -4.99 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=hotmail.com header.s=selector1 header.b=s9CBhh6d; 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: 74DC36015 X-Spam-Score: -4.99 X-Migadu-Scanner: scn1.migadu.com X-TUID: P4pHqU9Bm6SC I've replied to this email in the original thread about the COMMENT keyword to continue the discussion there, since it may be a little off-topic here. --Ignacio >> Still, I think it might be interesting to compare this topic with the >> one I linked in my reply, >> https://lists.gnu.org/archive/html/emacs-orgmode/2022-03/msg00293.html, >> which it's basically the same bug report but about COMMENT keywords. In >> that regard, I have tested that org-capture targets do work regardless >> of statistcs cookies. Could not something equivalent be done so that >> they also work regardless of COMMENT keywords? Feel free to reply in >> that other thread if you feel this is off-topic here. > >> This bug is related with the issue I reported in >> https://lists.gnu.org/archive/html/emacs-orgmode/2022-03/msg00293.html. The >> problem is that `org-heading-components' uses >> `org-complex-heading-regexp', which does not consider statistics >> cookies, and neither COMMENT keywords as I reported. I think it should be >> updated to consider both. > > Note that org-complex-heading-regexp-format does consider statistics > cookies, but only at the beginning/end of the headline title. > Unfortunately, it is impossible to provide generic printf format to > match a headline title with arbitrary statistics cookies inserted in the > middle of it. > > As for your other report, it is a hard one - org-complex-heading-regexp > is hard to modify because we guarantee certain match groups and its hard > to fit COMMENT in there without breaking backward-compatibility. > > I generally dislike the idea of the available plethora of analytic > regexps with numbered match groups. I am currently working on > generalised Org element matcher that provides named groups for arbitrary > Org syntax elements, including headlines. > > Best, > Ihor