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 AC2JHIp0cmJETgEAbAwnHQ (envelope-from ) for ; Wed, 04 May 2022 14:41:46 +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 UJeDHIp0cmJKdgAA9RJhRA (envelope-from ) for ; Wed, 04 May 2022 14:41:46 +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 701221F25A for ; Wed, 4 May 2022 14:40:33 +0200 (CEST) Received: from localhost ([::1]:40798 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nmEIy-0000h6-8C for larch@yhetil.org; Wed, 04 May 2022 08:40:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43334) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nmEHU-0000fl-UY for emacs-orgmode@gnu.org; Wed, 04 May 2022 08:39:01 -0400 Received: from smtprelay06.ispgateway.de ([80.67.31.95]:58953) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nmEHR-00079h-Jh for emacs-orgmode@gnu.org; Wed, 04 May 2022 08:39:00 -0400 Received: from [80.187.81.4] (helo=smtpclient.apple) by smtprelay06.ispgateway.de with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nmEHP-0001jK-RZ; Wed, 04 May 2022 14:38:55 +0200 Content-Type: multipart/signed; boundary=Apple-Mail-A095F7E0-5EB3-486B-84EC-2F791AEDCAC7; protocol="application/pkcs7-signature"; micalg=sha-256 Content-Transfer-Encoding: 7bit From: Alexander Adolf Mime-Version: 1.0 (1.0) Subject: Re: [BUG] - Statistics cookie is part of the org heading title Date: Wed, 4 May 2022 14:38:48 +0200 Message-Id: <6CAC0EEF-8F67-44ED-AC7D-38A3E5CAD7B7@condition-alpha.com> References: <87k0b1ik9q.fsf@localhost> Cc: Ignacio Casso , Samuel Wales , Daniel Fleischer , Fabian , emacs-orgmode@gnu.org In-Reply-To: <87k0b1ik9q.fsf@localhost> To: Ihor Radchenko X-Mailer: iPhone Mail (19E258) X-Df-Sender: YWxleGFuZGVyLmFkb2xmQGNvbmRpdGlvbi1hbHBoYS5jb20= Received-SPF: pass client-ip=80.67.31.95; envelope-from=alexander.adolf@condition-alpha.com; helo=smtprelay06.ispgateway.de 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, 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=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1651668033; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=TNmh2ukXpeQQjxN+v6qiVr2fIspBT3q8MwP4r7EQuJ0=; b=GqqgomP7x18AhiYb4q+5myr7ZRMQrxKDRhD/WseFVDnA57wj2RsfHOW9ddZNfrJAlo4hLh rjk0G1gd4eUrNYMwbXtyPgZ706U283Fz3Ix1l9i25fHNzCwCiRDHZx3pD4jcozVLbXvtWj 39StK0B6a82h/ZlVlmja2vb/gHaoV48Ib9i8LDs5+cxGCGfqsNwVl4CX9YlbwWr8Pmalas QsmPO8QRa5vVZ8pd2gi6JxY/a/Fp2cLHPgmQKUEqcPu5zutos97zc/NN95oMufBFM3wjCQ RoOSWDADq+HFUZ2njCpsi8m6mvFZUM6CB7LX43xxrJdbOXLM5Qu5GFTKiu6nQA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1651668033; a=rsa-sha256; cv=none; b=UkCkBJwhvhbaV6r4evWqIoxGqWinS68XG4N3JAFC5L7tME5b46ugPPa+sq4yqVzwwXAPtd ZfLhzAXRsdBKSC31FJ4F5oJHg99mBbUxWbqcuQadUo7iWbqHoOy2iyBhIO7fz2R5bxpGcs md6dmbsxz4QxKbeyA6F/gjNUVcYEI0leOz1iw1viB2qlKpKuP8PS8cFVa0PwELhk7inHSG N20msedm+F5yCvVVaZ+QDftt8HC5pBXtloUc1nuxT+z8ooNdW8T/NXhG0DzFtamGOKMqbc DDGkATm3y7bJJA+saougGhqcYbECKsLIhMHaxJZb3aDbz4OUWuC/mZQP0WShZQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; 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.38 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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: 701221F25A X-Spam-Score: -5.38 X-Migadu-Scanner: scn0.migadu.com X-TUID: UrcC5mg/P+Cx --Apple-Mail-A095F7E0-5EB3-486B-84EC-2F791AEDCAC7 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Would =E2=80=9Cfixing=E2=80=9D this also remove the statistics cookie from a= genda views? That would be a pity as I find it very useful there for my ways= of using Org.=20 Cheers, --alex --=20 www.condition-alpha.com / @c_alpha Sent from my iPhone; apologies for brevity and autocorrect weirdness.=20 > On 4. May 2022, at 14:24, Ihor Radchenko wrote: >=20 > =EF=BB=BFIgnacio Casso writes: >=20 >> I replied to this bug report yesterday via the "reply via email to" >> button in >> https://lists.gnu.org/archive/html/emacs-orgmode/2022-05/msg00058.html, >> assuming it would send it to the org-mode list, but now I see that it >> was only sent to Fabian. >=20 > It is not directly related to Org, though indeed annoying. I reported > this unexpected behaviour to mailman@gnu.org >=20 >> 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. >=20 >> This bug is related with the issue I reported in >> https://lists.gnu.org/archive/html/emacs-orgmode/2022-03/msg00293.html. T= he >> 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. >=20 > 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. >=20 > 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. >=20 > 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. >=20 > Best, > Ihor >=20 --Apple-Mail-A095F7E0-5EB3-486B-84EC-2F791AEDCAC7 Content-Type: application/pkcs7-signature; name=smime.p7s Content-Disposition: attachment; filename=smime.p7s Content-Transfer-Encoding: base64 MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgEFADCABgkqhkiG9w0BBwEAAKCCA0cw ggNDMIICpKADAgECAgQhmzKBMAoGCCqGSM49BAMCMIG7MSAwHgYDVQQDDBdDb25kaXRpb24tQUxQ SEEgQ0EgMjAxODFQME4GA1UECgxHQ29uZGl0aW9uLUFMUEhBIERpZ2l0YWwgQnJvYWRjYXN0IFRl Y2hub2xvZ3kgQ29uc3VsdGluZyBBbGV4YW5kZXIgQWRvbGYxCzAJBgNVBAYTAkRFMQ8wDQYDVQQH DAZNdW5pY2gxJzAlBgkqhkiG9w0BCQEWGGluZm9AY29uZGl0aW9uLWFscGhhLmNvbTAeFw0xOTEx MDYxNzU0NDRaFw0yMDExMDUxNzU0NDRaMFsxGDAWBgNVBAMMD0FsZXhhbmRlciBBZG9sZjELMAkG A1UEBhMCREUxMjAwBgkqhkiG9w0BCQEWI2FsZXhhbmRlci5hZG9sZkBjb25kaXRpb24tYWxwaGEu Y29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA9IELQpXk+ymqHnYKq+Ts50ixgBIj KdrO2AsAN1ft4/3OUwkkP0Myvx40aR0PlXaKYWTnGaXEUH13cKTtfFxW44VTqwyKv40r6UaRrhkq 8IGjFBpjVLmBL5j28VePsamP3XjjFYaIyqzrsfWBa10QRBK/U+fMg9MbiZ/4td8RRSIta40ic787 x4edPCX2GkVXZecz52d7nOWkeaUWUPMxvKDZJBIVZQUBHinGuF33rAtdLoBciXP0SBSZ1xGGq6Hq K/4rr3VecSceeEalbrKg6Jd+23L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