Allow to contextualize capture and agenda commands by checking the name of the buffer
commitbbea8d348b7972e0b29727f328f7f4dd92f18def
authorBastien Guerry <bzg@altern.org>
Thu, 31 Jan 2013 10:06:04 +0000 (31 11:06 +0100)
committerBastien Guerry <bzg@altern.org>
Thu, 31 Jan 2013 10:06:04 +0000 (31 11:06 +0100)
treeee4bd86f2a41733f50bd22281f823a65835d9782
parentb9c506b41e5d989241263b824ce9b8fb5182f1af
Allow to contextualize capture and agenda commands by checking the name of the buffer

* org.el (org-contextualize-validate-key): Check against two
new context predicates [not-]in-buffer.

* org-capture.el (org-capture-templates-contexts):
* org-agenda.el (org-agenda-custom-commands-contexts):
Document the new [not-]in-buffer context predicates.

Thanks to Paul Sexton for triggering this and for proposing a patch.
lisp/org-agenda.el
lisp/org-capture.el
lisp/org.el