From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oleh Subject: How to ensure that (org-get-heading) is pretty? Date: Mon, 3 Mar 2014 21:06:01 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60605) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WKZ7j-0001mE-IL for emacs-orgmode@gnu.org; Mon, 03 Mar 2014 15:06:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WKZ7i-0003ui-Re for emacs-orgmode@gnu.org; Mon, 03 Mar 2014 15:06:03 -0500 Received: from mail-we0-x229.google.com ([2a00:1450:400c:c03::229]:61095) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WKZ7i-0003uU-LC for emacs-orgmode@gnu.org; Mon, 03 Mar 2014 15:06:02 -0500 Received: by mail-we0-f169.google.com with SMTP id w62so2014611wes.0 for ; Mon, 03 Mar 2014 12:06:01 -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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: org mode Hi all, I'm working on a helm interface to org headings. To get the candidates, I'm using `org-map-entries` and `org-get-heading` (see `worf-goto` function at: https://github.com/abo-abo/worf) If the document is fully expanded it works fine, but when it's initially folded and hasn't been expanded yet, `org-get-heading` returns a plain string. What's a proper way to make `org-get-heading` always return a fontified string? regards, Oleh