Re: [O] getting file properties

2013-05-05 Thread Nicolas Goaziou
Hello, Nick Dokos ndo...@gmail.com writes: Here's one way: (defun jk-org-kwds () (let* ((parse-tree (org-element-parse-buffer)) (keys (org-element-map parse-tree 'keyword (function identity (mapcar (function (lambda (x) (cons (org-element-property :key x)

Re: [O] getting file properties

2013-05-05 Thread John Kitchin
Thanks for the great suggestions (Nick, Nick, and Eric)! Here are the two functions that finally do what I wanted. I added the second function to get a specific result. #+RANDOM: tfjkdsla jfkdsa #+BEGIN_SRC emacs-lisp :results value ; suggested by Nicolas Goaziou n.goaz...@gmail.com (defun

[O] getting file properties

2013-05-04 Thread John Kitchin
Hi everyone, if I have an org-file with this in it: #+EMAIL: jkitc...@cmu.edu is there an org lisp command to get the email address after I have opened the file? I am looping through many files to generate a report, and would like to do this in emacs-lisp. I had hoped org-entry-get would do it,

Re: [O] getting file properties

2013-05-04 Thread J. David Boyd
John Kitchin jkitc...@andrew.cmu.edu writes: Hi everyone, if I have an org-file with this in it: #+EMAIL: jkitc...@cmu.edu is there an org lisp command to get the email address after I have opened the file? I am looping through many files to generate a report, and would like to do this

Re: [O] getting file properties

2013-05-04 Thread Nick Dokos
da...@adboyd.com (J. David Boyd) writes: John Kitchin jkitc...@andrew.cmu.edu writes: Hi everyone, if I have an org-file with this in it: #+EMAIL: jkitc...@cmu.edu is there an org lisp command to get the email address after I have opened the file? I am looping through many files to

Re: [O] getting file properties

2013-05-04 Thread Eric Abrahamsen
John Kitchin jkitc...@andrew.cmu.edu writes: Hi everyone, if I have an org-file with this in it: #+EMAIL: jkitc...@cmu.edu is there an org lisp command to get the email address after I have opened the file? I am looping through many files to generate a report, and would like to do this