From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Harkins Subject: Re: (org-element-property :title ...) not returning a string Date: Wed, 04 Mar 2015 21:53:43 +0800 Message-ID: <14be5103e70.27cd.0bb60a3c7e492ea180363c67eb170725@qq.com> References: <87pp8phuza.wl-jamshark70@qq.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45571) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YT9kH-0005G6-Kl for emacs-orgmode@gnu.org; Wed, 04 Mar 2015 08:53:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YT9kD-0004sP-EL for emacs-orgmode@gnu.org; Wed, 04 Mar 2015 08:53:53 -0500 Received: from smtpbg303.qq.com ([184.105.206.26]:40505) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YT9kC-0004sB-QV for emacs-orgmode@gnu.org; Wed, 04 Mar 2015 08:53:49 -0500 Received: from [192.168.1.101] (unknown [113.109.20.206]) by esmtp4.qq.com (ESMTP) with SMTP id 0 for ; Wed, 04 Mar 2015 21:53:43 +0800 (CST) In-Reply-To: <87pp8phuza.wl-jamshark70@qq.com> 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: orgmode On March 4, 2015 7:18:11 PM James Harkins wrote: > I've got: > > (defun org-scdoc-headline (headline contents info) > (unless (org-element-property :footnote-section-p headline) > (let* ((title (org-element-property :title headline)) > (allcaps (upcase title)) > ... blah blah > > It's choking on (upcase...) because 'title' ends up being an element > object, and *not* the value of the :title property. Never mind, I needed to wrap the org-element-property call inside org-export-data. That much is working now! Next question... maybe tomorrow. hjh Sent with AquaMail for Android http://www.aqua-mail.com