From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 GLKsAZv8cWK1WgAAbAwnHQ (envelope-from ) for ; Wed, 04 May 2022 06:10:03 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 6AegAZv8cWJhWgAA9RJhRA (envelope-from ) for ; Wed, 04 May 2022 06:10:03 +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 9040D2C5CB for ; Wed, 4 May 2022 06:10:02 +0200 (CEST) Received: from localhost ([::1]:50904 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nm6Kv-0006ej-Fu for larch@yhetil.org; Wed, 04 May 2022 00:10:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49052) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nm6KF-0006ea-Uv for emacs-orgmode@gnu.org; Wed, 04 May 2022 00:09:20 -0400 Received: from mail-ed1-x529.google.com ([2a00:1450:4864:20::529]:39806) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nm6KE-0004BQ-EW for emacs-orgmode@gnu.org; Wed, 04 May 2022 00:09:19 -0400 Received: by mail-ed1-x529.google.com with SMTP id g20so356898edw.6 for ; Tue, 03 May 2022 21:09:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=thSbCqAfu8+ZQHGTw77vikPV7Z2e8YfK3ICO1Gxwfv8=; b=IXGTuZg+v5fGA74Ill2Q2BK9rVsjwsjBpO+i2TzCjAOvNSrj/cBnjPG7BmayVN8QeF 1agHPCYUXiE8POGd9Dh6gnqLj0/nxfl5uzNeoFJW+ul0/jHsx88uHOBw6jw03axJ8IKo sGnrXXcd1Vagfh7BFscHw6cLGiluI9Ep6cjm2wMabqUnrVP9rSHrdvcUucj2Ra5N5C0i FE2cXnTkkGQiDsnbS3eh4kiB+jSDvs7NeWc4qS779xbeyRJdjU8psB/WMAwqunoWrzl5 3aIi2FW7T+yEttbrkZHAc3dj/dIecFVZ8ITAclkro47+Z3HCmjbmjZCfkwP8G8Cmitm4 9eiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=thSbCqAfu8+ZQHGTw77vikPV7Z2e8YfK3ICO1Gxwfv8=; b=oij4RUi0lgHytPQMVf4PAnnB12V93uT4qcJQ66O5xfKFBCQgM668CdVajgsOhBaOPo 4/lU5i3A3kLgoj1i5lGu2pgRtjY92jL3dwVjTOqlkrdTcJp4d7h6RTwsCGVbMIvbDUU1 Ba57Sg9/S32+Qbx4gDana3Qhg9wnCGAk9pjrxYinh9JNXrbCJ4ktgJ7tNM0lxH92ohD7 HkoP9syQ2UEsJenS0Hw5quBqlhbHHeK9cvMrdw5z3EpehM7ThxQbNEpMBV6AsCRgQT1u 4R0jTOFTQ+0s2bXi0pfVlf5vdnLY2m+Ksq5m9G7ej3TaUTtW32qaZF/lKBlQI015SZLK TB8g== X-Gm-Message-State: AOAM531u1yJl1i17T3vcc7/RF6nJAyaI6xqmakaU0pxhJkMKnSuC4GzC 38hBW2c/ImN/Kn4SbC/XUe0Uq9cSUJpTTQ== X-Google-Smtp-Source: ABdhPJw5X2uZM8Y0VP9OdKVNTPsVCfRpQvXB47I3VK3KXaC4OsxDfl9W0CUr9cxjjdMUO9SwTCS6HA== X-Received: by 2002:aa7:da04:0:b0:41c:c191:64bc with SMTP id r4-20020aa7da04000000b0041cc19164bcmr21727560eds.166.1651637355887; Tue, 03 May 2022 21:09:15 -0700 (PDT) Received: from Home-Mac ([31.210.177.84]) by smtp.gmail.com with ESMTPSA id u26-20020aa7d99a000000b0042617ba63b7sm8724183eds.65.2022.05.03.21.09.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 May 2022 21:09:15 -0700 (PDT) From: Daniel Fleischer To: Fabian Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] - Statistics cookie is part of the org heading title References: Date: Wed, 04 May 2022 07:09:12 +0300 In-Reply-To: (Fabian's message of "Tue, 03 May 2022 11:27:07 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::529; envelope-from=danflscr@gmail.com; helo=mail-ed1-x529.google.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_NONE=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=1651637402; 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=thSbCqAfu8+ZQHGTw77vikPV7Z2e8YfK3ICO1Gxwfv8=; b=Lq/Hg2skzNTMa81E9DIM3QUqc4AbzTI/WiCOfVclmEg0EyjygCEB31yQzKBlk5qkNK2YQs fRVdNhr9t9bIIkL/nPnPb04QpY6MF3klcIuT6pRpBzx65CBfcuQRM7mCj7DJaVUBCcOure ty2r/GNp8Oozry1Lle2ecPtBNl0170i8Z91gw2o4fAJFA8C/HS32PSYZquBB0OBzdzWwM0 Kg3nIBDJFs/H4Ou56fTZlJaTSHYsprlxRQVYpZX4KELxoloqaivwXrNTqCnVmwoanOy9wl j5RAI5SymALreI5vPI9kDOWbzugCZGO3iA97qlSwChI4IlxxMzt+LRTXcWCmKg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1651637402; a=rsa-sha256; cv=none; b=TmaY3pSXBP3c15bO2eC4KS/u3og3zMTtaYV5QrK6R4oBOFONSWbMAS+MvzSHoz+/ArYxJW LjSqIsROg/mFFhixfS5JwkuQBM+fl4dGfV5rxNCwlUpfMN9azOEW8R3pcvcnw5sAdJz5Fo q0eLDzOpGYSWth+AJ21TAy1Sbyt+8YafQeDNmxpoui9/IiC3Q7QgvzGiaCCnCM+dCeq+zX S6mIAhpZM2v2jdYvD1kElZSOWblgHiw5c4InkiVPvkLMVoFNUvcuDnD5Qen0PSK0Nam9OI cT4rMIxy5GbkRe8sJDxDQucrGDc759oTUzJ+ZvhIezO5n2wU0qbktBL3WJRBLg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=IXGTuZg+; dmarc=pass (policy=none) header.from=gmail.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: -3.98 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=IXGTuZg+; dmarc=pass (policy=none) header.from=gmail.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: 9040D2C5CB X-Spam-Score: -3.98 X-Migadu-Scanner: scn1.migadu.com X-TUID: uQDzfPw0/zDF Fabian writes: > I don't see any reason why the statistics cookie should be part of the title: it should be a separate component. According to the spec, the statistics cookie can appear anywhere, it's a text element. It can appear in a headline where it has more meaning and also appear anywhere in the headline, not necessarily at the end. The function you failed to mention but is mentioned in the link is `org-heading-components` which does a simple split around syntax parts: stars, TODO word, text, tags. If you don't want to see the cookie you can remove it easily from text using regex. -- Daniel Fleischer