mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-09-12 07:09:55 +00:00
Add org-eval
* org-agenda.el (org-eval): New function. Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
a43055a26f
commit
2c1925f2a5
|
@ -5369,6 +5369,12 @@ The modified list may contain inherited tags, and tags matched by
|
|||
(append new list)
|
||||
(append list new)))))
|
||||
|
||||
(defun org-eval (form)
|
||||
"Eval FORM and return result."
|
||||
(condition-case error
|
||||
(eval form)
|
||||
(error (format "%%![Error: %s]" error))))
|
||||
|
||||
(defun org-compile-prefix-format (key)
|
||||
"Compile the prefix format into a Lisp form that can be evaluated.
|
||||
The resulting form is returned and stored in the variable
|
||||
|
|
Loading…
Reference in a new issue