emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [Orgmode] org-agenda-custom-commands


From: Carsten Dominik
Subject: Re: [Orgmode] org-agenda-custom-commands
Date: Mon, 19 Oct 2009 15:36:42 +0200

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.
address@hidden
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

- Carsten







reply via email to

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