emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Daniel Fleischer <danflscr@gmail.com>
To: Fabian <learning@hailmail.net>
Cc: emacs-orgmode@gnu.org
Subject: Re: [BUG] - Statistics cookie is part of the org heading title
Date: Wed, 04 May 2022 07:09:12 +0300	[thread overview]
Message-ID: <m2fslq6is7.fsf@gmail.com> (raw)
In-Reply-To: <aa011313-c059-4188-83c4-214079e96241@www.fastmail.com> (Fabian's message of "Tue, 03 May 2022 11:27:07 +0200")

Fabian <learning@hailmail.net> 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


  reply	other threads:[~2022-05-04  4:10 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-03  9:27 Fabian
2022-05-04  4:09 ` Daniel Fleischer [this message]
2022-05-04  4:42   ` Samuel Wales
2022-05-04  5:32     ` Ihor Radchenko
2022-05-04  6:31       ` Ignacio Casso
2022-05-04 11:56         ` Ihor Radchenko
2022-05-04 12:38           ` Alexander Adolf
2022-05-04 12:58             ` Ihor Radchenko
2022-05-04 13:36               ` Alexander Adolf
2022-05-04 15:12           ` Reply to list from lists.gnu.org archives Max Nikulin
2022-05-04 15:29             ` Ihor Radchenko
2022-05-05 11:02           ` [BUG] - Statistics cookie is part of the org heading title Ignacio Casso
2022-05-04 20:52 ` Nick Dokos

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2fslq6is7.fsf@gmail.com \
    --to=danflscr@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=learning@hailmail.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).