emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] custom agenda command with function doesn't work


From: Bastien
Subject: Re: [O] custom agenda command with function doesn't work
Date: Fri, 20 Jan 2012 17:02:40 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux)

Hi Juan,

Juan Queipo de Llano Moya <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]