From: Marcin Borkowski <mbork@mbork.pl>
To: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Cc: Org-Mode mailing list <emacs-orgmode@gnu.org>
Subject: Re: org-get-heading, but without the count/percentage cookies
Date: Wed, 14 Feb 2018 20:37:24 +0100 [thread overview]
Message-ID: <87tvujuzuz.fsf@mbork.pl> (raw)
In-Reply-To: <87po57pubf.fsf@nicolasgoaziou.fr>
On 2018-02-14, at 14:36, Nicolas Goaziou <mail@nicolasgoaziou.fr> wrote:
> Hello,
>
> Marcin Borkowski <mbork@mbork.pl> 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
prev parent reply other threads:[~2018-02-14 19:37 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-14 11:41 org-get-heading, but without the count/percentage cookies Marcin Borkowski
2018-02-14 13:22 ` Kaushal Modi
2018-02-14 19:35 ` Marcin Borkowski
2018-02-14 13:36 ` Nicolas Goaziou
2018-02-14 19:37 ` Marcin Borkowski [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87tvujuzuz.fsf@mbork.pl \
--to=mbork@mbork.pl \
--cc=emacs-orgmode@gnu.org \
--cc=mail@nicolasgoaziou.fr \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.