emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Marcin Borkowski <mbork@mbork.pl>
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 14:36:04 +0100	[thread overview]
Message-ID: <87po57pubf.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <87sha37q99.fsf@mbork.pl> (Marcin Borkowski's message of "Wed, 14 Feb 2018 12:41:06 +0100")

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.

> 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.

Regards,

-- 
Nicolas Goaziou

  parent reply	other threads:[~2018-02-14 13:36 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 [this message]
2018-02-14 19:37   ` Marcin Borkowski

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=87po57pubf.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=mbork@mbork.pl \
    /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).