emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] Changes to emacs/lisp/emacs-lisp/trace.el


From: Miles Bader
Subject: [Emacs-diffs] Changes to emacs/lisp/emacs-lisp/trace.el
Date: Fri, 04 Apr 2003 01:22:01 -0500

Index: emacs/lisp/emacs-lisp/trace.el
diff -c emacs/lisp/emacs-lisp/trace.el:1.6 emacs/lisp/emacs-lisp/trace.el:1.7
*** emacs/lisp/emacs-lisp/trace.el:1.6  Thu Apr 13 15:12:13 2000
--- emacs/lisp/emacs-lisp/trace.el      Wed Sep 25 13:45:29 2002
***************
*** 34,40 ****
  
  ;; Introduction:
  ;; =============
! ;; A simple trace package that utilizes advice.el. It generates trace 
  ;; information in a Lisp-style fashion and inserts it into a trace output
  ;; buffer. Tracing can be done in the background (or silently) so that
  ;; generation of trace output won't interfere with what you are currently
--- 34,40 ----
  
  ;; Introduction:
  ;; =============
! ;; A simple trace package that utilizes advice.el. It generates trace
  ;; information in a Lisp-style fashion and inserts it into a trace output
  ;; buffer. Tracing can be done in the background (or silently) so that
  ;; generation of trace output won't interfere with what you are currently
***************
*** 87,93 ****
  ;;    (if (= n 0) 1
  ;;      (* n (fact (1- n)))))
  ;;  fact
! ;;  
  ;;  (trace-function 'fact)
  ;;  fact
  ;;
--- 87,93 ----
  ;;    (if (= n 0) 1
  ;;      (* n (fact (1- n)))))
  ;;  fact
! ;;
  ;;  (trace-function 'fact)
  ;;  fact
  ;;
***************
*** 111,121 ****
  ;;
  ;;
  ;;  (defun ack (x y z)
! ;;    (if (= x 0) 
  ;;        (+ y z)
! ;;      (if (and (<= x 2) (= z 0)) 
  ;;          (1- x)
! ;;        (if (and (> x 2) (= z 0)) 
  ;;            y
  ;;          (ack (1- x) y (ack x y (1- z)))))))
  ;;  ack
--- 111,121 ----
  ;;
  ;;
  ;;  (defun ack (x y z)
! ;;    (if (= x 0)
  ;;        (+ y z)
! ;;      (if (and (<= x 2) (= z 0))
  ;;          (1- x)
! ;;        (if (and (> x 2) (= z 0))
  ;;            y
  ;;          (ack (1- x) y (ack x y (1- z)))))))
  ;;  ack
***************
*** 128,134 ****
  ;;  (ack 3 3 1)
  ;;  27
  ;;
! ;; 
  ;; The following does something similar to the functionality of the package
  ;; log-message.el by Robert Potter, which is giving you a chance to look at
  ;; messages that might have whizzed by too quickly (you won't see subr
--- 128,134 ----
  ;;  (ack 3 3 1)
  ;;  27
  ;;
! ;;
  ;; The following does something similar to the functionality of the package
  ;; log-message.el by Robert Potter, which is giving you a chance to look at
  ;; messages that might have whizzed by too quickly (you won't see subr
***************
*** 264,270 ****
  (defun trace-function (function &optional buffer)
    "Traces FUNCTION with trace output going to BUFFER.
  For every call of FUNCTION Lisp-style trace messages that display argument
! and return values will be inserted into BUFFER. This function generates the
  trace advice for FUNCTION and activates it together with any other advice
  there might be!! The trace BUFFER will popup whenever FUNCTION is called.
  Do not use this to trace functions that switch buffers or do any other
--- 264,270 ----
  (defun trace-function (function &optional buffer)
    "Traces FUNCTION with trace output going to BUFFER.
  For every call of FUNCTION Lisp-style trace messages that display argument
! and return values will be inserted into BUFFER.  This function generates the
  trace advice for FUNCTION and activates it together with any other advice
  there might be!! The trace BUFFER will popup whenever FUNCTION is called.
  Do not use this to trace functions that switch buffers or do any other
***************
*** 279,285 ****
  (defun trace-function-background (function &optional buffer)
    "Traces FUNCTION with trace output going quietly to BUFFER.
  For every call of FUNCTION Lisp-style trace messages that display argument
! and return values will be inserted into BUFFER. This function generates the
  trace advice for FUNCTION and activates it together with any other advice
  there might be!! Trace output will quietly go to BUFFER without changing
  the window or buffer configuration at all."
--- 279,285 ----
  (defun trace-function-background (function &optional buffer)
    "Traces FUNCTION with trace output going quietly to BUFFER.
  For every call of FUNCTION Lisp-style trace messages that display argument
! and return values will be inserted into BUFFER.  This function generates the
  trace advice for FUNCTION and activates it together with any other advice
  there might be!! Trace output will quietly go to BUFFER without changing
  the window or buffer configuration at all."
***************
*** 293,299 ****
  (defun untrace-function (function)
    "Untraces FUNCTION and possibly activates all remaining advice.
  Activation is performed with `ad-update', hence remaining advice will get
! activated only if the advice of FUNCTION is currently active. If FUNCTION
  was not traced this is a noop."
    (interactive
     (list (ad-read-advised-function "Untrace function: " 'trace-is-traced)))
--- 293,299 ----
  (defun untrace-function (function)
    "Untraces FUNCTION and possibly activates all remaining advice.
  Activation is performed with `ad-update', hence remaining advice will get
! activated only if the advice of FUNCTION is currently active.  If FUNCTION
  was not traced this is a noop."
    (interactive
     (list (ad-read-advised-function "Untrace function: " 'trace-is-traced)))




reply via email to

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