From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Doyley, Marvin M." Subject: Re: Minning Org-files Date: Fri, 9 Oct 2015 21:43:59 +0000 Message-ID: References: <4C0B4DC8-B1BD-4BDC-8717-A317C551E046@ur.rochester.edu> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38816) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkfSQ-0000Yx-BZ for emacs-orgmode@gnu.org; Fri, 09 Oct 2015 17:44:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZkfSN-0006dB-9e for emacs-orgmode@gnu.org; Fri, 09 Oct 2015 17:44:06 -0400 Received: from mail-by2on0111.outbound.protection.outlook.com ([207.46.100.111]:13728 helo=na01-by2-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkfSN-0006cS-0h for emacs-orgmode@gnu.org; Fri, 09 Oct 2015 17:44:03 -0400 In-Reply-To: Content-Language: en-US Content-ID: <6B1CEFF0E56A2741BB985A122F22D9CB@namprd07.prod.outlook.com> 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: John Kitchin Cc: "emacs-orgmode@gnu.org" Is there anyway of making the search term a variable ? > On Oct 9, 2015, at 1:24 PM, John Kitchin wrote: >=20 > You can do something like this: >=20 > By TODO keyword to grab the DONE entries. >=20 > #+BEGIN_SRC emacs-lisp > (let ((entries (org-map-entries > (lambda () > (save-restriction > (org-narrow-to-subtree) > (buffer-string))) > "TODO=3D\"DONE\""))) > (switch-to-buffer (get-buffer-create "new")) > (org-mode) > (mapcar 'insert entries)) > #+END_SRC >=20 >=20 >=20 > Doyley, Marvin M. writes: >=20 >> Hi there, >>=20 >> I have a huge org-file with notes I have taken on various topics (my com= monplace org file). Is there an easy way to grab all the entires with a giv= en tag or keyword to a new org-file ? >>=20 >> Thanks, >> M >>=20 >> --- >> 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 >=20 > -- > 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=3Dhttp-3A__kitchingroup.cheme.= cmu.edu&d=3DBQIBAg&c=3Dkbmfwr1Yojg42sGEpaQh5ofMHBeTl9EI2eaqQZhHbOU&r=3DT41F= _5QsIVBGYhPPUkgYHUp9iPHgs2rOCjs7rfKaTMU&m=3DZjP3xZzVOvLNMInBTkxBhV_-2rP9uP3= owADCIadxXxk&s=3Dry0y4fD4NMUUCHUpPSK5djnyUZWt57fxbXHuhqUfSls&e=3D=20