From 00aa68469d51420c71f77801514c17a8464c8e2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Jadi?= Date: Sat, 24 Oct 2015 19:27:58 +0200 Subject: [PATCH] lisp/org-capture.el: Fix `org-capture-templates' type declaration * lisp/org-capture.el(org-capture-templates): Fix `org-capture-templates' type declaration to match its documentation. Allow the use of file, variable, function or Emacs Lisp form as target file as specified by the docstring. --- lisp/org-capture.el | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/lisp/org-capture.el b/lisp/org-capture.el index 58b578b..9d24a6f 100644 --- a/lisp/org-capture.el +++ b/lisp/org-capture.el @@ -298,32 +298,39 @@ calendar | %:type %:date" (choice :tag "Target location" (list :tag "File" (const :format "" file) - (file :tag " File")) + (choice :tag " File" + file variable function sexp)) (list :tag "ID" (const :format "" id) (string :tag " ID")) (list :tag "File & Headline" (const :format "" file+headline) - (file :tag " File ") + (choice :tag " File " + file variable function sexp) (string :tag " Headline")) (list :tag "File & Outline path" (const :format "" file+olp) - (file :tag " File ") + (choice :tag " File " + file variable function sexp) (repeat :tag "Outline path" :inline t (string :tag "Headline"))) (list :tag "File & Regexp" (const :format "" file+regexp) - (file :tag " File ") + (choice :tag " File " + file variable function sexp) (regexp :tag " Regexp")) (list :tag "File & Date tree" (const :format "" file+datetree) - (file :tag " File")) + (choice :tag " File" + file variable function sexp)) (list :tag "File & Date tree, prompt for date" (const :format "" file+datetree+prompt) - (file :tag " File")) + (choice :tag " File" + file variable function sexp)) (list :tag "File & function" (const :format "" file+function) - (file :tag " File ") + (choice :tag " File " + file variable function sexp) (sexp :tag " Function")) (list :tag "Current clocking task" (const :format "" clock)) -- 1.9.1