[BUG] - Statistics cookie is part of the org heading title

2022-05-03 Thread Fabian
Hi everybody, I would like to report his behaviour as a bug: Example: * Some Heading Title [0/1] ;; cursor in this line when executing ** TODO Some Todo Item -> result is "Some Heading Title [0/1]" -> desired result would be "Some Heading Title" I don't see any reason w

Re: [BUG] - Statistics cookie is part of the org heading title

2022-05-03 Thread Daniel Fleischer
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 anywhe

Re: [BUG] - Statistics cookie is part of the org heading title

2022-05-03 Thread Samuel Wales
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 c

Re: [BUG] - Statistics cookie is part of the org heading title

2022-05-03 Thread Ihor Radchenko
Samuel Wales writes: > some code removes it. for example creating a link to a headline using > capture. Yeah. org-link--normalize-string. But it is internal function, so I would not rely on it. Also, rather than relying on regexps, I would use org-element-headline-parser, extract parsed :titl

Re: [BUG] - Statistics cookie is part of the org heading title

2022-05-04 Thread Ignacio Casso
Ihor Radchenko writes: > Samuel Wales writes: > >> some code removes it. for example creating a link to a headline using >> capture. > > Yeah. org-link--normalize-string. But it is internal function, so I would > not rely on it. > > Also, rather than relying on regexps, I would use > org-ele

Re: [BUG] - Statistics cookie is part of the org heading title

2022-05-04 Thread Ihor Radchenko
Ignacio Casso writes: > 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. It is not directly

Re: [BUG] - Statistics cookie is part of the org heading title

2022-05-04 Thread Alexander Adolf
Would “fixing” this also remove the statistics cookie from agenda views? That would be a pity as I find it very useful there for my ways of using Org. Cheers, --alex -- www.condition-alpha.com / @c_alpha Sent from my iPhone; apologies for brevity and autocorrect weirdness. > On 4. May 202

Re: [BUG] - Statistics cookie is part of the org heading title

2022-05-04 Thread Ihor Radchenko
Alexander Adolf writes: > Would “fixing” this also remove the statistics cookie from agenda views? That > would be a pity as I find it very useful there for my ways of using Org. No

Re: [BUG] - Statistics cookie is part of the org heading title

2022-05-04 Thread Alexander Adolf
Cool! Thanks for the swift confirmation. --alex -- www.condition-alpha.com / @c_alpha Sent from my iPhone; apologies for brevity and autocorrect weirdness. > On 4. May 2022, at 15:00, Ihor Radchenko wrote: > > Alexander Adolf writes: > >> Would “fixing” this also remove the statistics

Re: [BUG] - Statistics cookie is part of the org heading title

2022-05-04 Thread Nick Dokos
Fabian writes: > Hi everybody, > > I would like to report his behaviour as a bug: A crucial piece of information is missing here: this concerns the behavior of the function `org-heading-components'. > > Example: > > * Some Heading Title [0/1] ;; cursor in this line when execut

Re: [BUG] - Statistics cookie is part of the org heading title

2022-05-05 Thread Ignacio Casso
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