Prechádzať zdrojové kódy

Merge branch 't/patch490'

Carsten Dominik 14 rokov pred
rodič
commit
f9e174b74e
1 zmenil súbory, kde vykonal 1 pridanie a 4 odobranie
  1. 1 4
      lisp/org-capture.el

+ 1 - 4
lisp/org-capture.el

@@ -1207,10 +1207,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)))))