From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Price Subject: org-get-heading and COMMENT Date: Wed, 11 Jan 2017 12:10:09 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11402b2452cb400545d4ac1c Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60532) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cRMPc-00005j-2V for emacs-orgmode@gnu.org; Wed, 11 Jan 2017 12:10:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cRMPb-0006Oq-1w for emacs-orgmode@gnu.org; Wed, 11 Jan 2017 12:10:12 -0500 Received: from mail-io0-x229.google.com ([2607:f8b0:4001:c06::229]:36850) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cRMPa-0006OT-Tg for emacs-orgmode@gnu.org; Wed, 11 Jan 2017 12:10:11 -0500 Received: by mail-io0-x229.google.com with SMTP id j13so80105152iod.3 for ; Wed, 11 Jan 2017 09:10:10 -0800 (PST) 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: Org Mode --001a11402b2452cb400545d4ac1c Content-Type: text/plain; charset=UTF-8 I see that (org-get-heading t t) executed on a heading like: * COMMENT Heading Title returns: COMMENT Heading Title Should there be a third switch, something like NO-COMMENT? Or should I maybe be using the org-element API instead? I'm just trying to generate custom id's from headline text + a shortened hash (acquired via org-new-id). --001a11402b2452cb400545d4ac1c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I see that

(org-get-heading t = t)

executed on a heading like:

* COMMENT Heading = Title

returns:

COMMENT Heading Title

Shoul= d there be a third switch, something like NO-COMMENT? Or should I maybe be = using the org-element API instead? I'm just trying to generate custom i= d's from headline text + a shortened hash (acquired via org-new-id).=C2= =A0


--001a11402b2452cb400545d4ac1c--