From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: org-map-entries and org-map-continue-from Date: Mon, 28 Feb 2011 14:14:39 -0500 Message-ID: <26658.1298920479@alphaville.dokosmarshall.org> References: <87oc5watpj.fsf@berkeley.edu> <26540.1298919759@alphaville.dokosmarshall.org> Reply-To: nicholas.dokos@hp.com Return-path: Received: from [140.186.70.92] (port=40706 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pu8Yn-0001wu-OH for emacs-orgmode@gnu.org; Mon, 28 Feb 2011 14:15:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pu8Ym-0004UY-JG for emacs-orgmode@gnu.org; Mon, 28 Feb 2011 14:15:09 -0500 Received: from vms173011pub.verizon.net ([206.46.173.11]:44290) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pu8Ym-0004U9-Fy for emacs-orgmode@gnu.org; Mon, 28 Feb 2011 14:15:08 -0500 Received: from alphaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173011.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0LHC000WFDGFZND0@vms173011.mailsrvcs.net> for emacs-orgmode@gnu.org; Mon, 28 Feb 2011 13:14:46 -0600 (CST) In-reply-to: Message from Nick Dokos of "Mon, 28 Feb 2011 14:02:39 EST." <26540.1298919759@alphaville.dokosmarshall.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: nicholas.dokos@hp.com Cc: Richard Lawrence , emacs-orgmode@gnu.org Nick Dokos wrote: > Richard Lawrence wrote: > > > > For a simple example, suppose I write: > > #+BEGIN_SRC emacs-lisp > > (defun get-export-filenames () > > (interactive) > > (setq export-files '()) > > (progn > > (org-map-entries > > (lambda () > > (setq org-map-continue-from (outline-next-heading)) > > (let ((org-trust-scanner-tags t)) > > (push (org-entry-get (point) "EXPORT_FILE_NAME") export-files))) > > nil 'tree) > > (message export-files))) ; errors, but lets me see the list of collected values > > #+END_SRC > > > > But I'm not sure what the right way to deal with it is. > Maybe this? --8<---------------cut here---------------start------------->8--- #+BEGIN_SRC emacs-lisp (defun get-export-filenames () (interactive) (setq export-files '()) (progn (org-map-entries (lambda () (setq org-map-continue-from (outline-next-heading)) (if org-map-continue-from (let ((org-trust-scanner-tags t)) (push (org-entry-get (point) "EXPORT_FILE_NAME") export-files)))) nil 'tree) (message export-files))) ; errors, but lets me see the list of collected values #+END_SRC --8<---------------cut here---------------end--------------->8--- Nick