0
0
Fork 1
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:
Julien Danjou 2010-12-17 22:18:13 +00:00 committed by Carsten Dominik
parent a43055a26f
commit 2c1925f2a5

View file

@ -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