Update the handling of agenda/capture keys contextualization.
commit10dbdf5fc28f0346f00e753792553c6d7244457e
authorBastien Guerry <bzg@altern.org>
Fri, 24 Aug 2012 10:14:54 +0000 (24 12:14 +0200)
committerBastien Guerry <bzg@altern.org>
Fri, 24 Aug 2012 10:18:05 +0000 (24 12:18 +0200)
tree32f6029e0ad22cf1c24842a54290a25f87b156da
parent9d73d6d680f991b7477aed8937feec390dfe91b7
Update the handling of agenda/capture keys contextualization.

* org.el (org-contextualize-keys): Rename from
`org-contextualize-agenda-or-capture'.  Fix normalization to
handle empty key replacement string.
(org-contextualize-validate-key): Rename from
`org-contexts-validate'.  Allow checking against a custom
function.

* org-agenda.el (org-agenda-custom-commands-contexts): Update.
(org-agenda): Use `org-contextualize-keys'.

* org-capture.el (org-capture-templates-contexts): Ditto.

* org.texi (Templates in contexts, Setting Options): Update to
reflect changes in how contexts options are processed.
doc/org.texi
lisp/org-agenda.el
lisp/org-capture.el
lisp/org.el