[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] A question on org-element-headline-interperter
From: |
Thorsten Jolitz |
Subject: |
Re: [O] A question on org-element-headline-interperter |
Date: |
Fri, 03 Oct 2014 09:08:48 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
Marcin Borkowski <address@hidden> writes:
Hi,
> I guess I don't understand something. I have a headline in a `headline'
> variable (say that I did something like (org-element-parse-buffer) and
> took one of the headlines from there). I thought that
>
> (insert
> (org-element-headline-interpreter headline (org-element-property
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> :contents headline)))
>
> would put it into the current buffer; however, it only puts the first
> line (without the actual contents).
>
> What is my misconception here?
as I learned myself from Nicolas recently, these are internal functions,
the API function for interpreting is
,----[ C-h f org-element-interpret-data RET ]
| org-element-interpret-data is an autoloaded compiled Lisp function in
| `org-element.el'.
|
| (org-element-interpret-data DATA &optional PSEUDO-OBJECTS)
|
| Interpret DATA as Org syntax.
|
| DATA is a parse tree, an element, an object or a secondary string
| to interpret.
|
| Optional argument PSEUDO-OBJECTS is a list of symbols defining
| new types that should be treated as objects. An unknown type not
| belonging to this list is seen as a pseudo-element instead. Both
| pseudo-objects and pseudo-elements are transparent entities, i.e.
| only their contents are interpreted.
|
| Return Org syntax as a string.
`----
--
cheers,
Thorsten