From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: org-get-heading, but without the count/percentage cookies Date: Wed, 14 Feb 2018 14:36:04 +0100 Message-ID: <87po57pubf.fsf@nicolasgoaziou.fr> References: <87sha37q99.fsf@mbork.pl> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42374) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1elxEH-0001E2-DV for emacs-orgmode@gnu.org; Wed, 14 Feb 2018 08:36:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1elxEG-0006Np-N6 for emacs-orgmode@gnu.org; Wed, 14 Feb 2018 08:36:09 -0500 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:55783) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1elxEG-0006MY-Gf for emacs-orgmode@gnu.org; Wed, 14 Feb 2018 08:36:08 -0500 In-Reply-To: <87sha37q99.fsf@mbork.pl> (Marcin Borkowski's message of "Wed, 14 Feb 2018 12:41:06 +0100") 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: Marcin Borkowski Cc: Org-Mode mailing list 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. > 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