aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Love2000-04-13 19:12:13 +0000
committerDave Love2000-04-13 19:12:13 +0000
commitaa455f0b87f4c1a5ba7b7f7b6d2352938f420bb4 (patch)
treeec5fc4b619239464657c6b921bda14e68dc4d005
parent45e0dd95ba0f710e5150c403f144a85f7f95c91d (diff)
downloademacs-aa455f0b87f4c1a5ba7b7f7b6d2352938f420bb4.tar.gz
emacs-aa455f0b87f4c1a5ba7b7f7b6d2352938f420bb4.zip
Change maintainer. Use new backquote
syntax.
-rw-r--r--lisp/emacs-lisp/trace.el83
1 files changed, 37 insertions, 46 deletions
diff --git a/lisp/emacs-lisp/trace.el b/lisp/emacs-lisp/trace.el
index d066f7d82f3..bb49345b474 100644
--- a/lisp/emacs-lisp/trace.el
+++ b/lisp/emacs-lisp/trace.el
@@ -3,6 +3,7 @@
3;; Copyright (C) 1993 Free Software Foundation, Inc. 3;; Copyright (C) 1993 Free Software Foundation, Inc.
4 4
5;; Author: Hans Chalupsky <hans@cs.buffalo.edu> 5;; Author: Hans Chalupsky <hans@cs.buffalo.edu>
6;; Maintainer: FSF
6;; Created: 15 Dec 1992 7;; Created: 15 Dec 1992
7;; Keywords: tools, lisp 8;; Keywords: tools, lisp
8 9
@@ -39,12 +40,6 @@
39;; generation of trace output won't interfere with what you are currently 40;; generation of trace output won't interfere with what you are currently
40;; doing. 41;; doing.
41 42
42;; How to get the latest trace.el:
43;; ===============================
44;; You can get the latest version of this file either via anonymous ftp from
45;; ftp.cs.buffalo.edu (128.205.32.9) with pathname /pub/Emacs/trace.el,
46;; or send email to hans@cs.buffalo.edu and I'll mail it to you.
47
48;; Requirement: 43;; Requirement:
49;; ============ 44;; ============
50;; trace.el needs advice.el version 2.0 or later which you can get from the 45;; trace.el needs advice.el version 2.0 or later which you can get from the
@@ -73,10 +68,6 @@
73;; 68;;
74;; or explicitly load it with (require 'trace) or (load "trace"). 69;; or explicitly load it with (require 'trace) or (load "trace").
75 70
76;; Comments, suggestions, bug reports
77;; ==================================
78;; are strongly appreciated, please email them to hans@cs.buffalo.edu.
79
80;; Usage: 71;; Usage:
81;; ====== 72;; ======
82;; - To trace a function say `M-x trace-function' which will ask you for the 73;; - To trace a function say `M-x trace-function' which will ask you for the
@@ -221,42 +212,42 @@
221 (ad-make-advice 212 (ad-make-advice
222 trace-advice-name nil t 213 trace-advice-name nil t
223 (cond (background 214 (cond (background
224 (` (advice 215 `(advice
225 lambda () 216 lambda ()
226 (let ((trace-level (1+ trace-level)) 217 (let ((trace-level (1+ trace-level))
227 (trace-buffer (get-buffer-create (, buffer)))) 218 (trace-buffer (get-buffer-create ,buffer)))
228 (save-excursion 219 (save-excursion
229 (set-buffer trace-buffer) 220 (set-buffer trace-buffer)
230 (goto-char (point-max)) 221 (goto-char (point-max))
231 ;; Insert a separator from previous trace output: 222 ;; Insert a separator from previous trace output:
232 (if (= trace-level 1) (insert trace-separator)) 223 (if (= trace-level 1) (insert trace-separator))
233 (insert 224 (insert
234 (trace-entry-message 225 (trace-entry-message
235 '(, function) trace-level ad-arg-bindings))) 226 ',function trace-level ad-arg-bindings)))
236 ad-do-it 227 ad-do-it
237 (save-excursion 228 (save-excursion
238 (set-buffer trace-buffer) 229 (set-buffer trace-buffer)
239 (goto-char (point-max)) 230 (goto-char (point-max))
240 (insert 231 (insert
241 (trace-exit-message 232 (trace-exit-message
242 '(, function) trace-level ad-return-value))))))) 233 ',function trace-level ad-return-value))))))
243 (t (` (advice 234 (t `(advice
244 lambda () 235 lambda ()
245 (let ((trace-level (1+ trace-level)) 236 (let ((trace-level (1+ trace-level))
246 (trace-buffer (get-buffer-create (, buffer)))) 237 (trace-buffer (get-buffer-create ,buffer)))
247 (pop-to-buffer trace-buffer) 238 (pop-to-buffer trace-buffer)
248 (goto-char (point-max)) 239 (goto-char (point-max))
249 ;; Insert a separator from previous trace output: 240 ;; Insert a separator from previous trace output:
250 (if (= trace-level 1) (insert trace-separator)) 241 (if (= trace-level 1) (insert trace-separator))
251 (insert 242 (insert
252 (trace-entry-message 243 (trace-entry-message
253 '(, function) trace-level ad-arg-bindings)) 244 ',function trace-level ad-arg-bindings))
254 ad-do-it 245 ad-do-it
255 (pop-to-buffer trace-buffer) 246 (pop-to-buffer trace-buffer)
256 (goto-char (point-max)) 247 (goto-char (point-max))
257 (insert 248 (insert
258 (trace-exit-message 249 (trace-exit-message
259 '(, function) trace-level ad-return-value))))))))) 250 ',function trace-level ad-return-value))))))))
260 251
261(defun trace-function-internal (function buffer background) 252(defun trace-function-internal (function buffer background)
262 ;; Adds trace advice for FUNCTION and activates it. 253 ;; Adds trace advice for FUNCTION and activates it.