* org-capture.el (org-capture-fill-template): Use org-eval.
---
 lisp/org-capture.el |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/lisp/org-capture.el b/lisp/org-capture.el
index b85b011..29ecbc1 100644
--- a/lisp/org-capture.el
+++ b/lisp/org-capture.el
@@ -1206,10 +1206,7 @@ The template may still contain \"%?\" for cursor 
positioning."
          (goto-char (match-beginning 0))
          (let ((template-start (point)))
            (forward-char 1)
-           (let ((result
-                  (condition-case error
-                      (eval (read (current-buffer)))
-                    (error (format "%%![Error: %s]" error)))))
+           (let ((result (org-eval (read (current-buffer)))))
              (delete-region template-start (point))
              (insert result)))))
 
-- 
1.7.2.3


_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Reply via email to