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

2012-01-20 Thread Juan Queipo de Llano Moya



El 20/01/12 17:02, Bastien escribió:

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,


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

*Juan Queipo de Llano Moya*





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

2012-01-20 Thread Bastien
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



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

2012-01-19 Thread Juan Queipo de Llano Moya

Hello,

I'm trying to write a custom agenda command that cycles through a list 
of names and builds an agenda block for each one with his tasks.


I wrote a command, that I have called org-sec-tasksbymember that throws 
a list of tags-todo with the parameters I want. For example, for a list 
of members ("Me" "Pablo" "Miguel" "Carlos"), defined in a variable, the 
evaluation of (org-sec-tasksbymember) throws:


((tags-todo "+Resp=\"Me\"") (tags-todo "+Resp=\"Pablo\"") (tags-todo 
"+Resp=\"Miguel\"") (tags-todo "+Resp=\"Carlos\""))


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

I can't find a solution. Can anyone help me. I'm sorry if this is dumb.

Thanks



--
*Juan Queipo de Llano Moya*
Instituto de Ciencias de la Construcción Eduardo Torroja - CSIC
c/ Serrano Galvache, 4
28033 MADRID
jque...@ietcc.csic.es 
Tel: 91 302 04 40 ext. 202