emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] org-get-heading, but without the count/percentage cookies


From: Marcin Borkowski
Subject: Re: [O] org-get-heading, but without the count/percentage cookies
Date: Wed, 14 Feb 2018 20:37:24 +0100
User-agent: mu4e 0.9.19; emacs 27.0.50

On 2018-02-14, at 14:36, Nicolas Goaziou <address@hidden> wrote:

> Hello,
>
> Marcin Borkowski <address@hidden> writes:
>
>> Is it possible to get the text of the Org heading, but without the [n/m]
>> cookie (or its percentage equivalent)?  
>
>   (org-last (org-get-outline-path))
>
>
>> Or should I just massage the result of org-get-heading myself?
>
> This would be simpler than the solution above.

I think I disagree;-).

>> If the latter, isn't it a bug? 
>
> No it isn't. Statistics cookies are but an object, like, e.g. inline
> source code. `org-get-heading' is not supposed to remove any kind of
> object from the title.
>
> It would be different if statistics cookies were specific to headlines,
> which is not the case actually.

I see.  (I didn't know I can have stat cookies in e.g. plain list
items!)

Thanks,

-- 
Marcin Borkowski



reply via email to

[Prev in Thread] Current Thread [Next in Thread]