comparison lisp/emacs-lisp/trace.el @ 107558:20d30f421e4b

Merge from mainline.
author Katsumi Yamaoka <yamaoka@jpl.org>
date Wed, 24 Mar 2010 21:57:06 +0000
parents ed16fdd2685a
children 376148b31b5e
comparison
equal deleted inserted replaced
107557:f8082cab4d03 107558:20d30f421e4b
251 (defun trace-function (function &optional buffer) 251 (defun trace-function (function &optional buffer)
252 "Traces FUNCTION with trace output going to BUFFER. 252 "Traces FUNCTION with trace output going to BUFFER.
253 For every call of FUNCTION Lisp-style trace messages that display argument 253 For every call of FUNCTION Lisp-style trace messages that display argument
254 and return values will be inserted into BUFFER. This function generates the 254 and return values will be inserted into BUFFER. This function generates the
255 trace advice for FUNCTION and activates it together with any other advice 255 trace advice for FUNCTION and activates it together with any other advice
256 there might be!! The trace BUFFER will popup whenever FUNCTION is called. 256 there might be!! The trace BUFFER will popup whenever FUNCTION is called.
257 Do not use this to trace functions that switch buffers or do any other 257 Do not use this to trace functions that switch buffers or do any other
258 display oriented stuff, use `trace-function-background' instead." 258 display oriented stuff, use `trace-function-background' instead."
259 (interactive 259 (interactive
260 (list 260 (list
261 (intern (completing-read "Trace function: " obarray 'fboundp t)) 261 (intern (completing-read "Trace function: " obarray 'fboundp t))