emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* (org-element-property :title ...) not returning a string
@ 2015-03-04 11:18 James Harkins
  2015-03-04 13:53 ` James Harkins
  0 siblings, 1 reply; 2+ messages in thread
From: James Harkins @ 2015-03-04 11:18 UTC (permalink / raw)
  To: orgmode

I've got:

(defun org-scdoc-headline (headline contents info)
  "Transcode a HEADLINE element from Org to ASCII.
CONTENTS holds the contents of the headline.  INFO is a plist
holding contextual information."
  ;; Don't export footnote section, which will be handled at the end
  ;; of the template.
  (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.

Why?

http://orgmode.org/worg/dev/org-export-reference.html is not helpful in answering this question.

hjh

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: (org-element-property :title ...) not returning a string
  2015-03-04 11:18 (org-element-property :title ...) not returning a string James Harkins
@ 2015-03-04 13:53 ` James Harkins
  0 siblings, 0 replies; 2+ messages in thread
From: James Harkins @ 2015-03-04 13:53 UTC (permalink / raw)
  To: orgmode

On March 4, 2015 7:18:11 PM James Harkins <jamshark70@qq.com> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-03-04 13:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-04 11:18 (org-element-property :title ...) not returning a string James Harkins
2015-03-04 13:53 ` James Harkins

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).