Re: [O] accessing properties in org-element-parse-buffer tree

2014-08-31 Thread Eike
Eric Abrahamsen writes: Eike e...@eknet.org writes: Hello list, I want to ask for help regarding elisp and org-elements. I like to access the properties of all my headlines and I created the following function (tree is the parsed tree) that collects them into an a-list: You could also

[O] accessing properties in org-element-parse-buffer tree

2014-08-30 Thread Eike
Hello list, I want to ask for help regarding elisp and org-elements. I like to access the properties of all my headlines and I created the following function (tree is the parsed tree) that collects them into an a-list: #+begin_src emacs-lisp (defun collect-props (tree) (car

Re: [O] accessing properties in org-element-parse-buffer tree

2014-08-30 Thread Eike
Hello again it seems that I messed up my testing variables… I always had just one headline and thus the list of lists had always one element that I then extracted with `car'. So `car' must be removed: #+begin_src emacs-lisp (defun collect-props (tree) (org-element-map tree 'headline

Re: [O] accessing properties in org-element-parse-buffer tree

2014-08-30 Thread Thorsten Jolitz
Eike e...@eknet.org writes: Hello, I want to ask for help regarding elisp and org-elements. I like to access the properties of all my headlines and I created the following function (tree is the parsed tree) that collects them into an a-list: #+begin_src emacs-lisp (defun collect-props

Re: [O] accessing properties in org-element-parse-buffer tree

2014-08-30 Thread Eike
Thanks a lot for the examples, they are very helpful! I first thought to parse the org buffer and then work with the resulting tree. But your examples now makes me think to work directly on the buffer. Well, I will play with a few different ways now… Regards Eike Thorsten Jolitz writes: Eike

Re: [O] accessing properties in org-element-parse-buffer tree

2014-08-30 Thread Thorsten Jolitz
Eike e...@eknet.org writes: Thanks a lot for the examples, they are very helpful! I first thought to parse the org buffer and then work with the resulting tree. Thats the obvious thing to do in this case, and you can do everything you want this way, but there are some alternatives too. But

Re: [O] accessing properties in org-element-parse-buffer tree

2014-08-30 Thread Eric Abrahamsen
Eike e...@eknet.org writes: Hello list, I want to ask for help regarding elisp and org-elements. I like to access the properties of all my headlines and I created the following function (tree is the parsed tree) that collects them into an a-list: You could also take a look at org-collector,