summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/emacs-lisp/trace.el6
2 files changed, 8 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index f324ebbad51..676ce21ff14 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
+2013-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
+
+ * emacs-lisp/trace.el (trace--read-args): Use a closure and an honest
+ call to `eval' rather than a backquoted lambda.
+
2013-01-15 Stefan Monnier <monnier@iro.umontreal.ca>
* emacs-lisp/nadvice.el (advice--tweak): Make it possible for `tweak'
diff --git a/lisp/emacs-lisp/trace.el b/lisp/emacs-lisp/trace.el
index fb1b995be2b..09c4969cf18 100644
--- a/lisp/emacs-lisp/trace.el
+++ b/lisp/emacs-lisp/trace.el
@@ -256,9 +256,9 @@ be printed along with the arguments in the trace."
(read-from-minibuffer "Context expression: "
nil read-expression-map t
'read-expression-history))))
- `(lambda ()
- (let ((print-circle t))
- (concat " [" (prin1-to-string ,exp) "]"))))))))
+ (lambda ()
+ (let ((print-circle t))
+ (concat " [" (prin1-to-string (eval exp t)) "]"))))))))
;;;###autoload
(defun trace-function-foreground (function &optional buffer context)