emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] [PATCH 2/3] org-capture: use org-eval


From: Julien Danjou
Subject: [Orgmode] [PATCH 2/3] org-capture: use org-eval
Date: Fri, 17 Dec 2010 18:18:14 +0100

* 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]