From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcin Borkowski Subject: Re: org-get-heading, but without the count/percentage cookies Date: Wed, 14 Feb 2018 20:37:24 +0100 Message-ID: <87tvujuzuz.fsf@mbork.pl> References: <87sha37q99.fsf@mbork.pl> <87po57pubf.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51402) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1em2sJ-0000VY-AA for emacs-orgmode@gnu.org; Wed, 14 Feb 2018 14:37:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1em2sE-0001Os-Bx for emacs-orgmode@gnu.org; Wed, 14 Feb 2018 14:37:51 -0500 Received: from mail.mojserwer.eu ([195.110.48.8]:32782) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1em2sE-0001Oo-47 for emacs-orgmode@gnu.org; Wed, 14 Feb 2018 14:37:46 -0500 In-reply-to: <87po57pubf.fsf@nicolasgoaziou.fr> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Nicolas Goaziou Cc: Org-Mode mailing list On 2018-02-14, at 14:36, Nicolas Goaziou wrote: > Hello, > > Marcin Borkowski 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