summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Danjou <julien@danjou.info>2010-12-17 22:18:14 +0000
committerCarsten Dominik <carsten.dominik@gmail.com>2010-12-20 13:12:48 +0100
commitf73b121549ac5036a1320ab121879f077448fff1 (patch)
tree9ee6b60b8ec79f32af2e67e9c425a103d9bcac34
parent2c1925f2a5135e46f70ae5267b052d0bc48ae9f7 (diff)
downloadorg-mode-f73b121549ac5036a1320ab121879f077448fff1.tar.gz
org-capture: use org-eval
* org-capture.el (org-capture-fill-template): Use org-eval.
-rw-r--r--lisp/org-capture.el5
1 files changed, 1 insertions, 4 deletions
diff --git a/lisp/org-capture.el b/lisp/org-capture.el
index eef8b5a..55e0c13 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)))))