# HG changeset patch # User Stefan Monnier # Date 1212644771 0 # Node ID e283d325f1bc6f7945ca494c1f10d8e97d349771 # Parent abcb40dd43a22e0d8f7e87e4c54211822116e161 (trace-entry-message, trace-exit-message): Use print-circle. diff -r abcb40dd43a2 -r e283d325f1bc lisp/ChangeLog --- a/lisp/ChangeLog Thu Jun 05 05:45:16 2008 +0000 +++ b/lisp/ChangeLog Thu Jun 05 05:46:11 2008 +0000 @@ -1,5 +1,8 @@ 2008-06-05 Stefan Monnier + * emacs-lisp/trace.el (trace-entry-message, trace-exit-message): + Use print-circle. + * minibuffer.el (minibuffer-local-must-match-filename-map): Declare obsolete alias for the old name. diff -r abcb40dd43a2 -r e283d325f1bc lisp/emacs-lisp/trace.el --- a/lisp/emacs-lisp/trace.el Thu Jun 05 05:45:16 2008 +0000 +++ b/lisp/emacs-lisp/trace.el Thu Jun 05 05:46:11 2008 +0000 @@ -185,15 +185,16 @@ (if (> level 1) " " "") level function - (mapconcat (lambda (binding) - (concat - (symbol-name (ad-arg-binding-field binding 'name)) - "=" - ;; do this so we'll see strings: - (prin1-to-string - (ad-arg-binding-field binding 'value)))) - argument-bindings - " "))) + (let ((print-circle t)) + (mapconcat (lambda (binding) + (concat + (symbol-name (ad-arg-binding-field binding 'name)) + "=" + ;; do this so we'll see strings: + (prin1-to-string + (ad-arg-binding-field binding 'value)))) + argument-bindings + " ")))) (defun trace-exit-message (function level value) ;; Generates a string that describes that FUNCTION has been exited at @@ -204,7 +205,7 @@ level function ;; do this so we'll see strings: - (prin1-to-string value))) + (let ((print-circle t)) (prin1-to-string value)))) (defun trace-make-advice (function buffer background) ;; Builds the piece of advice to be added to FUNCTION's advice info