Re: [O] Minning Org-files

2015-10-10 Thread Doyley, Marvin M.
Hi John, It works like a charm. Thank you so so so much cheers, M > On Oct 10, 2015, at 8:06 AM, John Kitchin wrote: > > sure, if you make an interactive function that takes a search argument. > Something like this > > (defun some-name (search-arg) > (interactive "sQuery: ") > ; insert code b

Re: [O] Minning Org-files

2015-10-10 Thread Doyley, Marvin M.
Awesome, I really appreciate this. I must teach myself how to code in lisp :) cheers, M > On Oct 10, 2015, at 8:06 AM, John Kitchin wrote: > > sure, if you make an interactive function that takes a search argument. > Something like this > > (defun some-name (search-arg) > (interactive "sQuery:

Re: [O] Minning Org-files

2015-10-10 Thread John Kitchin
sure, if you make an interactive function that takes a search argument. Something like this (defun some-name (search-arg) (interactive "sQuery: ") ; insert code below and change "TODO=\"DONE\"" to search-arg ) Doyley, Marvin M. writes: > Is there anyway of making the search term a variable ?

Re: [O] Minning Org-files

2015-10-09 Thread John Kitchin
You can do something like this: By TODO keyword to grab the DONE entries. #+BEGIN_SRC emacs-lisp (let ((entries (org-map-entries (lambda () (save-restriction (org-narrow-to-subtree) (buffer-string))) "TODO=\

Re: [O] Minning Org-files

2015-10-09 Thread Doyley, Marvin M.
Is there anyway of making the search term a variable ? > On Oct 9, 2015, at 1:24 PM, John Kitchin wrote: > > You can do something like this: > > By TODO keyword to grab the DONE entries. > > #+BEGIN_SRC emacs-lisp > (let ((entries (org-map-entries >(lambda () >

[O] Minning Org-files

2015-10-09 Thread Doyley, Marvin M.
Hi there, I have a huge org-file with notes I have taken on various topics (my commonplace org file). Is there an easy way to grab all the entires with a given tag or keyword to a new org-file ? Thanks, M --- Marvin Doyley Ph.D. University of Rochester Associate Professor of Electrical and Com