From mboxrd@z Thu Jan 1 00:00:00 1970 From: Harald Weis Subject: org-agenda-custom-commands Date: Sun, 18 Oct 2009 16:43:56 +0200 Message-ID: <20091018144356.GA3139@pollux.local.net> 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 1MzWzG-00073W-JJ for emacs-orgmode@gnu.org; Sun, 18 Oct 2009 10:43:58 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MzWzB-00072H-8V for emacs-orgmode@gnu.org; Sun, 18 Oct 2009 10:43:57 -0400 Received: from [199.232.76.173] (port=57173 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MzWzB-00072E-1B for emacs-orgmode@gnu.org; Sun, 18 Oct 2009 10:43:53 -0400 Received: from smtp4-g21.free.fr ([212.27.42.4]:56323) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MzWzA-0001pF-At for emacs-orgmode@gnu.org; Sun, 18 Oct 2009 10:43:52 -0400 Received: from smtp4-g21.free.fr (localhost [127.0.0.1]) by smtp4-g21.free.fr (Postfix) with ESMTP id AEB944C8107 for ; Sun, 18 Oct 2009 16:43:48 +0200 (CEST) Received: from pollux.local.net (che78-3-82-246-30-233.fbx.proxad.net [82.246.30.233]) by smtp4-g21.free.fr (Postfix) with ESMTP id CDF504C804F for ; Sun, 18 Oct 2009 16:43:45 +0200 (CEST) Content-Disposition: inline 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 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