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 mG0SBmgEcmLu3AAAbAwnHQ (envelope-from ) for ; Wed, 04 May 2022 06:43:20 +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 SHbwBWgEcmJDtAAAauVa8A (envelope-from ) for ; Wed, 04 May 2022 06:43:20 +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 BF2F92CE63 for ; Wed, 4 May 2022 06:43:19 +0200 (CEST) Received: from localhost ([::1]:60434 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nm6r8-0006oR-AK for larch@yhetil.org; Wed, 04 May 2022 00:43:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54734) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nm6qh-0006oF-RH for emacs-orgmode@gnu.org; Wed, 04 May 2022 00:42:51 -0400 Received: from mail-pj1-x1032.google.com ([2607:f8b0:4864:20::1032]:46052) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nm6qg-0000bI-4e for emacs-orgmode@gnu.org; Wed, 04 May 2022 00:42:51 -0400 Received: by mail-pj1-x1032.google.com with SMTP id w17-20020a17090a529100b001db302efed6so270543pjh.4 for ; Tue, 03 May 2022 21:42:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=0h7JiWWJO9um7QTSmgIPdYMAweDFWxwK8WitmVU5WT4=; b=XgTO5OYN+OUbzERHgZ5DYXUd0dlhFqHJp5tVlaKNd0Z8iRqGhMCw8Leu2gxd4glfWL OWlBdg3RPosMwgk5Dhyax6JKc6ogkAV4NrDcWjVfELMF30nkem49rYKuoUe/Ekc5rVCA Xj6R4uEiXN5O9XToK1SFwkmhcbBPUhtxlkOTy+zT9hwfC/k2+QvM9fvpXLI6GnYUYV0b M6r2uZ9jc/Go2eh5210ADYS4W14BomKDqwws5RVkxyLOeFv4hP9t7JrOHOn/isApTurD EGNUIvaEdOWyyVlIBsqyXwlEdfjdl4o8u7JCpgXOzbeQ39GyuVs2NsBu8npMHakbVbq2 gfYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=0h7JiWWJO9um7QTSmgIPdYMAweDFWxwK8WitmVU5WT4=; b=8EhN/9Zaij3btIxA8acJ/5lWTXPkGG48my++ZGXMkUiOMpflu5HVzXsopX7sV86nlv Q6W73i/goFll/7r/VDCzfxRRojJAfDUEtRkT/6ZvOYadSf88esLnjJJahOFWy7BWszcN cNqwxPrTDx3iMf4Q6edkT/hW5zJVPtqr7PuxGfY/kCI5Q/oZ4iKvsB3PIa75HfJ2J4T2 nRXmKCt2gML8JX1oRv/32lUz56rQv6h5G6CDZeUS2uMtJg9ALz6uokAZIYCVDZE9u7q2 Z+iQN4mT/yXpD23nmYUNG6YAyy/YiPIfnLLoWdVEqmpTpECQjrd17k8XeL2Z2Z+6eZCf TxvA== X-Gm-Message-State: AOAM531gq2SOFzEd+AAEnK1osOrwMvH+Xare79BUW5mB2VrAbUOZNMxV 8a7BC8vyRf9MvRC54gOSoI2APAOgNKfWaa16UXQ= X-Google-Smtp-Source: ABdhPJxebMKsQKhri9IKFL5ruqLw1/vqWmhsEIrURXPnD7q4sBJcWG0F9VG4ufjOLArZr/YjM9kjrUM0WJDl9w5jNGQ= X-Received: by 2002:a17:902:ce02:b0:151:a86d:dc2b with SMTP id k2-20020a170902ce0200b00151a86ddc2bmr20126411plg.57.1651639368073; Tue, 03 May 2022 21:42:48 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a05:6a06:16c3:b0:4b8:bf09:e16e with HTTP; Tue, 3 May 2022 21:42:46 -0700 (PDT) In-Reply-To: References: From: Samuel Wales Date: Tue, 3 May 2022 21:42:46 -0700 Message-ID: Subject: Re: [BUG] - Statistics cookie is part of the org heading title To: Daniel Fleischer Cc: Fabian , emacs-orgmode@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::1032; envelope-from=samologist@gmail.com; helo=mail-pj1-x1032.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=1651639399; 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=0h7JiWWJO9um7QTSmgIPdYMAweDFWxwK8WitmVU5WT4=; b=TXvWVgq1nCX+Hi9qtUARyOLFXE2oiRtiGWM5fgmFStHmyxnSSWHnspyYGM+53Mnzvakktk X5tPI+iiBZQjQk+dJOAPsSKKZmxtIClOobNm0agcDgDbPp5R5PvhIixXqX8QY4c+xBZTS5 ehDBEamKHLTbDapzuTIu+LB4+vXIMJMNiHoDtgQW6GE2i0HHpKJ5FWoEsU7c558W04KLvb kqb+FJqvnf6ZbhqRD5YuFmgP9Hd8Kspdw/qAQbRbmzXveIJ1TpbYVp6tb5rJTl+1k0nl3K Vy/SHPZ4WdwEvxxYkP6hupr32W4gxzl7kEod7lDj+4fK7AXmkKlz3VV/rX6WUQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1651639399; a=rsa-sha256; cv=none; b=E1k39vvK+EtFSR3R+JmH2fFS+e+S84MZIXgQkxJ5ghRbnnhAx13mocSBSnSIRRfl1kjLly xWzvofRlkcET8DgCljdLJ6GuQrca9zWxx7J8nSk47Z9dc41xjk6uRZCWkDOQV02i6nXFAL KyJXfT08gjhcZWBI5DVkv5IpTg6mU/TW54bPEHdNLwqvZaIqA/3JnWe9IqP9sSF8yNXWOM Uhz3xsXp2D3NHodCSeq/lwA9ael+Su7lQFAfZofMnxuXprflxiqr5rnQ+7s4t6xNnLSWT0 FH1/JcCS0NiaTtURkJvvUp4Emz4eW/6GUkSe1beR18OYLF+ZctQUS1cbxZwrew== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=XgTO5OYN; 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=XgTO5OYN; 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: BF2F92CE63 X-Spam-Score: -3.98 X-Migadu-Scanner: scn1.migadu.com X-TUID: DnuiAZq03tu9 some code removes it. for example creating a link to a headline using capture. On 5/3/22, Daniel Fleischer wrote: > 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 > > -- The Kafka Pandemic A blog about science, health, human rights, and misopathy: https://thekafkapandemic.blogspot.com