[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] `org-element-map' ignores type 'org-data'?

From: Thorsten Jolitz
Subject: [O] `org-element-map' ignores type 'org-data'?
Date: Wed, 11 Sep 2013 03:21:28 +0200
User-agent: Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.3 (gnu/linux)

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?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]