From: Carsten Dominik <carsten.dominik@gmail.com>
To: Harald Weis <hawei@free.fr>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-agenda-custom-commands
Date: Mon, 19 Oct 2009 15:36:42 +0200 [thread overview]
Message-ID: <D3D829E8-726A-46BD-B717-737FE5ECD26B@gmail.com> (raw)
In-Reply-To: <20091018144356.GA3139@pollux.local.net>
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?
>
> Thank you in advance for any help.
> --
> Harald Weis
>
>
> _______________________________________________
> 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
next prev parent reply other threads:[~2009-10-19 15:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-18 14:43 org-agenda-custom-commands Harald Weis
2009-10-19 13:36 ` Carsten Dominik [this message]
2009-10-29 19:56 ` org-agenda-custom-commands Harald Weis
2009-10-30 7:17 ` org-agenda-custom-commands Carsten Dominik
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=D3D829E8-726A-46BD-B717-737FE5ECD26B@gmail.com \
--to=carsten.dominik@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=hawei@free.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.