all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* `org-element-map' ignores type 'org-data'?
@ 2013-09-11  1:21 Thorsten Jolitz
  2013-09-11  9:59 ` Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: Thorsten Jolitz @ 2013-09-11  1:21 UTC (permalink / raw)
  To: emacs-orgmode


Hi List,

when mapping a parse tree with `org-element-map', this 

,-------------------------------------------------
| (org-element-map tree iorg-all-types-no-text
|   (lambda (--elem)
|     (if (eq (org-element-type --elem) 'org-data) [...]
 `-------------------------------------------------

with `iorg-all-types-no-text' defined as 

,------------------------------------------------
| (defvar iorg-all-types-no-text
|   (append '(org-data) org-element-all-elements
|   org-element-all-objects)
|   "Types to be selected by `org-element-map'.")
`------------------------------------------------

does not work, although the parse-tree clearly starts with 

,----------------------
| (org-data nil (... ))
`----------------------

The returned mapped tree starts with the first (section (...)) element,
org-data is simply ignored and missing. 

How can I make `org-element-map' act on the 'org-data' element too?

-- 
cheers,
Thorsten

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

end of thread, other threads:[~2013-09-11  9:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-11  1:21 `org-element-map' ignores type 'org-data'? Thorsten Jolitz
2013-09-11  9:59 ` Nicolas Goaziou

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.