emacs-orgmode@gnu.org archives
 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

* Re: `org-element-map' ignores type 'org-data'?
  2013-09-11  1:21 `org-element-map' ignores type 'org-data'? Thorsten Jolitz
@ 2013-09-11  9:59 ` Nicolas Goaziou
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2013-09-11  9:59 UTC (permalink / raw)
  To: Thorsten Jolitz; +Cc: emacs-orgmode

Hello,

Thorsten Jolitz <tjolitz@gmail.com> writes:

> 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?

You can't. This behaviour is hard-coded.


Regards,

-- 
Nicolas Goaziou

^ 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 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).