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 (defun jk-org-kwds () (org-el

Re: [O] getting file properties

2013-05-05 Thread Nicolas Goaziou
Hello, Nick Dokos 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-04 Thread Eric Abrahamsen
John Kitchin 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 in emacs-lisp. I

Re: [O] getting file properties

2013-05-04 Thread Nick Dokos
da...@adboyd.com (J. David Boyd) writes: > John Kitchin 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

Re: [O] getting file properties

2013-05-04 Thread J. David Boyd
John Kitchin 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 in emacs-lisp. I

[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,