From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: Minning Org-files Date: Fri, 09 Oct 2015 13:24:56 -0400 Message-ID: References: <4C0B4DC8-B1BD-4BDC-8717-A317C551E046@ur.rochester.edu> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55084) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zkh8q-00012E-Ri for emacs-orgmode@gnu.org; Fri, 09 Oct 2015 19:33:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zkh8H-0004y0-1d for emacs-orgmode@gnu.org; Fri, 09 Oct 2015 19:32:00 -0400 Received: from mail-qg0-x22f.google.com ([2607:f8b0:400d:c04::22f]:36322) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkbPd-0003qs-Ro for emacs-orgmode@gnu.org; Fri, 09 Oct 2015 13:24:59 -0400 Received: by qgx61 with SMTP id 61so74344886qgx.3 for ; Fri, 09 Oct 2015 10:24:57 -0700 (PDT) In-reply-to: <4C0B4DC8-B1BD-4BDC-8717-A317C551E046@ur.rochester.edu> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Doyley, Marvin M." Cc: "emacs-orgmode@gnu.org" 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 http://kitchingroup.cheme.cmu.edu