diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 05bfa8c02..a7f264ce7 100755 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,10 @@ 2009-06-17 Carsten Dominik + * org-remember.el (org-remember-templates): Allow the headline + element to be a function. + (org-remember-apply-template): If the headline is a function, call + it to get the true function. + * org-clock.el (org-clock-menu): New function. (org-clock-update-mode-line): Update help string. (org-clock-modify-effort-estimate): New function. diff --git a/lisp/org-remember.el b/lisp/org-remember.el index ac62bde77..cd50905de 100644 --- a/lisp/org-remember.el +++ b/lisp/org-remember.el @@ -186,6 +186,7 @@ calendar | %:type %:date" (const :tag "Use `org-default-notes-file'" nil)) (choice :tag "Destin. headline" (string :tag "Specify") + (function :tag "Function") (const :tag "Use `org-remember-default-headline'" nil) (const :tag "At beginning of file" top) (const :tag "At end of file" bottom)) @@ -431,6 +432,8 @@ to be run from that hook to function properly." (when (functionp file) (setq file (funcall file))) + (when (functionp headline) + (setq headline (funcall headline))) (when (and file (not (file-name-absolute-p file))) (setq file (expand-file-name file org-directory)))