From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adam Spiers Subject: Re: FR: headline iteration API Date: Thu, 12 Jun 2008 11:16:07 +0100 Message-ID: <20080612101607.GF19396@atlantic.linksys.moosehall> References: <20080530124619.GB9520@atlantic.linksys.moosehall> <8763spclpm.fsf@gmail.com> <20080610102844.GG5498@atlantic.linksys.moosehall> Reply-To: Adam Spiers Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K6jqk-0000iT-91 for emacs-orgmode@gnu.org; Thu, 12 Jun 2008 06:16:10 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K6jqj-0000iH-Iw for emacs-orgmode@gnu.org; Thu, 12 Jun 2008 06:16:09 -0400 Received: from [199.232.76.173] (port=45663 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K6jqj-0000iE-Co for emacs-orgmode@gnu.org; Thu, 12 Jun 2008 06:16:09 -0400 Received: from mail.beimborn.com ([70.84.38.100]:32850) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K6jqi-0005LR-Tl for emacs-orgmode@gnu.org; Thu, 12 Jun 2008 06:16:09 -0400 Received: from mail.beimborn.com (localhost.localdomain [127.0.0.1]) by mail.beimborn.com (8.12.11.20060308/8.12.8) with ESMTP id m5CAG7vN027325 for ; Thu, 12 Jun 2008 05:16:07 -0500 Received: from localhost (localhost [[UNIX: localhost]]) by mail.beimborn.com (8.12.11.20060308/8.12.11/Submit) id m5CAG76g027320 for emacs-orgmode@gnu.org; Thu, 12 Jun 2008 11:16:07 +0100 Content-Disposition: inline In-Reply-To: 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: emacs-orgmode@gnu.org On Thu, Jun 12, 2008 at 08:46:47AM +0200, Carsten Dominik wrote: > > On Jun 10, 2008, at 12:28 PM, Adam Spiers wrote: > >Yes. There will be many intricacies involved in iteration, and > >probably only Carsten knows them all - without an API we would > >individually be reinventing the same wheel over and over ... badly. > > > Hi Adam, Daniel, and others, > > the mapping API is in place and already quite general. > It supports different scopes like the current tree, or the file, > or all agenda files, or even all agenda files with associated > archives. You can specify a tags/property/todo match to > restrict the mapping to selected entries. And you can use the full > org-agenda-skip mechanism (but you might want to do these checks in > the mapping function, of course). > > Adam, as you suspected, this is only a small bit of code, for the > rest it re-uses the agenda stuff. > > Documentation is in Appendix B6 of the manual. Ooo, shiny! :-) > I am very curious to see what kind of tricks you will do with this, > to keep us posted! Sure - but first I need to surmount this compilation error with the latest git master: --------- 8< --------- 8< --------- 8< --------- 8< --------- 8< --------- $ make Loading /usr/share/emacs/site-lisp/site-start.d/vm-mode-init.el (source)... In end of data: org-compat.el:254:1:Warning: the function `add-local-hook' is not known to be defined. Wrote /home/adam/lib/emacs/major-modes/org-mode.git/lisp/org-compat.elc emacs -batch -q -eval "(progn (add-to-list (quote load-path) (expand-file-name \"./lisp/\")) (add-to-list (quote load-path) \"/usr/local/share/emacs/site-lisp\"))" -f batch-byte-compile lisp/org-faces.el Loading /usr/share/emacs/site-lisp/site-start.d/focus-init.el (source)... Loading /usr/share/emacs/site-lisp/site-start.d/gnuplot-init.el (source)... Loading /usr/share/emacs/site-lisp/site-start.d/gtypist-init.el (source)... Loading /usr/share/emacs/site-lisp/site-start.d/igrep-init.el (source)... Loading /usr/share/emacs/site-lisp/site-start.d/lilypond-init.el (source)... Loading /usr/share/emacs/site-lisp/site-start.d/muse-init.el (source)... Loading /usr/share/emacs/site-lisp/site-start.d/php-mode-init.el (source)... Loading /usr/share/emacs/site-lisp/site-start.d/po-mode-init.el (source)... Loading /usr/share/emacs/site-lisp/site-start.d/psgml-init.el (source)... Loading /usr/share/emacs/site-lisp/site-start.d/rpm-spec-mode-init.el (source)... Loading /usr/share/emacs/site-lisp/site-start.d/rpmdev-init.el (source)... Loading /usr/share/emacs/site-lisp/site-start.d/ruby-mode-init.el (source)... Loading /usr/share/emacs/site-lisp/site-start.d/vm-mode-init.el (source)... Wrote /home/adam/lib/emacs/major-modes/org-mode.git/lisp/org-faces.elc emacs -batch -q -eval "(progn (add-to-list (quote load-path) (expand-file-name \"./lisp/\")) (add-to-list (quote load-path) \"/usr/local/share/emacs/site-lisp\"))" -f batch-byte-compile lisp/org.el Loading /usr/share/emacs/site-lisp/site-start.d/focus-init.el (source)... Loading /usr/share/emacs/site-lisp/site-start.d/gnuplot-init.el (source)... Loading /usr/share/emacs/site-lisp/site-start.d/gtypist-init.el (source)... Loading /usr/share/emacs/site-lisp/site-start.d/igrep-init.el (source)... Loading /usr/share/emacs/site-lisp/site-start.d/lilypond-init.el (source)... Loading /usr/share/emacs/site-lisp/site-start.d/muse-init.el (source)... Loading /usr/share/emacs/site-lisp/site-start.d/php-mode-init.el (source)... Loading /usr/share/emacs/site-lisp/site-start.d/po-mode-init.el (source)... Loading /usr/share/emacs/site-lisp/site-start.d/psgml-init.el (source)... Loading /usr/share/emacs/site-lisp/site-start.d/rpm-spec-mode-init.el (source)... Loading /usr/share/emacs/site-lisp/site-start.d/rpmdev-init.el (source)... Loading /usr/share/emacs/site-lisp/site-start.d/ruby-mode-init.el (source)... Loading /usr/share/emacs/site-lisp/site-start.d/vm-mode-init.el (source)... In toplevel form: \30\303EE\207\304\303rrF\207" [place x setq cons callf2] 5 ("/usr/share/emacs/22.1/lisp/emacs-lisp/cl.elc" . 2669)], 1 make: *** [lisp/org.elc] Error 1 $ rpm -qf /usr/share/emacs/22.1/lisp/emacs-lisp/cl.elc emacs-common-22.1-4.fc7 --------- 8< --------- 8< --------- 8< --------- 8< --------- 8< --------- How is one supposed to figure out which part of lisp/org.el is causing that? My elisp-fu isn't strong enough.