From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: org-agenda-custom-commands Date: Mon, 19 Oct 2009 15:36:42 +0200 Message-ID: References: <20091018144356.GA3139@pollux.local.net> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MzuWD-0005fd-5m for emacs-orgmode@gnu.org; Mon, 19 Oct 2009 11:51:33 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MzuW7-0005eK-Mr for emacs-orgmode@gnu.org; Mon, 19 Oct 2009 11:51:32 -0400 Received: from [199.232.76.173] (port=43279 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MzuW7-0005dz-Ee for emacs-orgmode@gnu.org; Mon, 19 Oct 2009 11:51:27 -0400 Received: from mail-ew0-f206.google.com ([209.85.219.206]:35863) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MzuW7-00027h-1x for emacs-orgmode@gnu.org; Mon, 19 Oct 2009 11:51:27 -0400 Received: by ewy2 with SMTP id 2so5117409ewy.31 for ; Mon, 19 Oct 2009 08:51:26 -0700 (PDT) In-Reply-To: <20091018144356.GA3139@pollux.local.net> 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: Harald Weis Cc: emacs-orgmode@gnu.org Well, I guess I could evaluate match before it gets used. But maybe you can also turn this around: Dinfe a function what will call the tree maker directly (defun my-tree (match) (interactive "s") (org-match-sparse-tree nil (concat "{" match "}"))) or something like this.... - Carsten On Oct 18, 2009, at 4:43 PM, Harald Weis wrote: > Hi All, > > I would like to define one entry of the org-agenda-custom-commands > variable like so: > (setq org-agenda-custom-commands > '(("i" "item" tags-tree > (remedy-build-tags-tree-regex "item")))) > > where ''item'' is the property key and > where the remedy-build-tags-tree-regex function is defined as follows: > > (defun remedy-build-tags-tree-regex (propkey) > (concat propkey > "={" > (read-from-minibuffer (concat propkey " : ")) > "}")) > > This would allow me to select the property value interactively. > > The org-make-tags-matcher function does not appreciate. > ''C-c a'' yields > i item : set of 2 commands > > Selecting ''i'' produces the following error message in the > minibuffer. > Wrong type argument: stringp, (remedy-build-tags-tree-regex "item") > > Is there a way to get the desired functionality? > > Thank you in advance for any help. > -- > Harald Weis > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten