From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: custom agenda command with function doesn't work Date: Fri, 20 Jan 2012 17:02:40 +0100 Message-ID: <87bopy5plr.fsf@gnu.org> References: <4F190F17.3000808@ietcc.csic.es> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:50937) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RoGuF-0002WD-LK for emacs-orgmode@gnu.org; Fri, 20 Jan 2012 11:01:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RoGuB-00005w-5V for emacs-orgmode@gnu.org; Fri, 20 Jan 2012 11:01:35 -0500 Received: from mail-ww0-f49.google.com ([74.125.82.49]:54546) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RoGuA-00005l-T3 for emacs-orgmode@gnu.org; Fri, 20 Jan 2012 11:01:31 -0500 Received: by wgbdq13 with SMTP id dq13so599767wgb.30 for ; Fri, 20 Jan 2012 08:01:29 -0800 (PST) In-Reply-To: <4F190F17.3000808@ietcc.csic.es> (Juan Queipo de Llano Moya's message of "Fri, 20 Jan 2012 07:52:07 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Juan Queipo de Llano Moya Cc: emacs-orgmode@gnu.org Hi Juan, Juan Queipo de Llano Moya writes: > If I define a custom agenda command like (without using the command): > ("q" "Tasks by member" ((tags-todo "+Resp=\"Me\"") (tags-todo "+Resp= > \"Pablo\"") (tags-todo "+Resp=\"Miguel\"") (tags-todo "+Resp=\"Carlos > \""))) > > It works, but if use this agenda command: > ("q" "Tasks by member" (org-sec-tasksbymember)) > I got an error of Wrong type argument: listp, org-sec-tasksbymember You want (setq org-agenda-custom-commands `(("q" "Tasks by member" ,(org-sec-tasksbymember)))) Look for Macro expansion in the Emacs (lisp) manual. HTH, -- Bastien