emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Minning Org-files


From: Doyley, Marvin M.
Subject: Re: [O] Minning Org-files
Date: Sat, 10 Oct 2015 14:57:13 +0000

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 <address@hidden> 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 below and change "TODO=\"DONE\"" to search-arg
> )
> 
> 
> Doyley, Marvin M. writes:
> 
>> Is there anyway of making the search term a variable ?
>> 
>>> On Oct 9, 2015, at 1:24 PM, John Kitchin <address@hidden> 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 ()
>>>                 (save-restriction
>>>                   (org-narrow-to-subtree)
>>>                   (buffer-string)))
>>>               "TODO=\"DONE\"")))
>>> (switch-to-buffer (get-buffer-create "new"))
>>> (org-mode)
>>> (mapcar 'insert entries))
>>> #+END_SRC
>>> 
>>> 
>>> 
>>> Doyley, Marvin M. writes:
>>> 
>>>> 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 Computer Engineering
>>>> Associate Professor of Biomedical Engineering
>>>> 333 Hopeman Engineering Building
>>>> Rochester NY 14627
>>> 
>>> --
>>> Professor John Kitchin
>>> Doherty Hall A207F
>>> Department of Chemical Engineering
>>> Carnegie Mellon University
>>> Pittsburgh, PA 15213
>>> 412-268-7803
>>> @johnkitchin
>>> https://urldefense.proofpoint.com/v2/url?u=http-3A__kitchingroup.cheme.cmu.edu&d=BQIBAg&c=kbmfwr1Yojg42sGEpaQh5ofMHBeTl9EI2eaqQZhHbOU&r=T41F_5QsIVBGYhPPUkgYHUp9iPHgs2rOCjs7rfKaTMU&m=ZjP3xZzVOvLNMInBTkxBhV_-2rP9uP3owADCIadxXxk&s=ry0y4fD4NMUUCHUpPSK5djnyUZWt57fxbXHuhqUfSls&e=
> 
> --
> Professor John Kitchin
> Doherty Hall A207F
> Department of Chemical Engineering
> Carnegie Mellon University
> Pittsburgh, PA 15213
> 412-268-7803
> @johnkitchin
> https://urldefense.proofpoint.com/v2/url?u=http-3A__kitchingroup.cheme.cmu.edu&d=BQIBAg&c=kbmfwr1Yojg42sGEpaQh5ofMHBeTl9EI2eaqQZhHbOU&r=T41F_5QsIVBGYhPPUkgYHUp9iPHgs2rOCjs7rfKaTMU&m=hnMwDGuA_hdr-MPhQEOOEcDQ7Wd1eLgQFHotHKPOM2Y&s=KAVoqsDi0jWRU6Ilqh5eq16troIjU6lPlk-AQ99ZTv8&e=
>  




reply via email to

[Prev in Thread] Current Thread [Next in Thread]