From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: org-agenda-custom-commands Date: Fri, 30 Oct 2009 08:17:45 +0100 Message-ID: <9CE0A4E8-CA1E-43BE-AD60-9FA0B2D8EA0F@gmail.com> References: <20091018144356.GA3139@pollux.local.net> <20091029195607.GA3764@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 1N3mEX-0007bd-Jz for emacs-orgmode@gnu.org; Fri, 30 Oct 2009 03:49:17 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N3mES-0007Wm-KW for emacs-orgmode@gnu.org; Fri, 30 Oct 2009 03:49:17 -0400 Received: from [199.232.76.173] (port=59947 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N3mES-0007WU-D7 for emacs-orgmode@gnu.org; Fri, 30 Oct 2009 03:49:12 -0400 Received: from mail-ew0-f228.google.com ([209.85.219.228]:35378) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N3mER-0004QG-VU for emacs-orgmode@gnu.org; Fri, 30 Oct 2009 03:49:12 -0400 Received: by mail-ew0-f228.google.com with SMTP id 28so152679ewy.42 for ; Fri, 30 Oct 2009 00:49:11 -0700 (PDT) In-Reply-To: <20091029195607.GA3764@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 On Oct 29, 2009, at 8:56 PM, Harald Weis wrote: > > But I still think it could be advantageous to do the whole lot within > the org-agenda-custom-commands variable if the match would be > evaluated > before getting used. Well, we can try and see if it breaks something. The latest git version now does evaluate it, but I have not yet introduced this into the customize type - so you need to set the command list in Lisp for the time being. - Carsten > > Thank you very much indeed. > Harald Weis > > > On Mon, Oct 19, 2009 at 03:36:42PM +0200, Carsten Dominik wrote: >> 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? > > > _______________________________________________ > 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