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: Juan Queipo de Llano Moya
Subject: Re: [O] custom agenda command with function doesn't work
Date: Fri, 20 Jan 2012 17:20:55 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111124 Thunderbird/8.0



El 20/01/12 17:02, Bastien escribió:
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,

It works!
Thanks a lot. I've learned something today. :)

Juan Queipo de Llano Moya




reply via email to

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