diff options
| author | Richard M. Stallman | 2002-02-01 04:21:38 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2002-02-01 04:21:38 +0000 |
| commit | 65fe45f2eae5b1b9de299846a542aba76cbcd428 (patch) | |
| tree | 0a99e3f0519c7e5a4fa4e89c493dc9736085fbe0 | |
| parent | 195ce311607af59b164fc1b6b2e87ecad43e5241 (diff) | |
| download | emacs-65fe45f2eae5b1b9de299846a542aba76cbcd428.tar.gz emacs-65fe45f2eae5b1b9de299846a542aba76cbcd428.zip | |
(debugger-setup-buffer): When an eval-buffer frame was reading from a buffer,
insert indication of the buffer position.
(debugger-frame-number): Ignore ;;;-comment lines in backtrace.
| -rw-r--r-- | lisp/emacs-lisp/debug.el | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lisp/emacs-lisp/debug.el b/lisp/emacs-lisp/debug.el index 028344612e7..aecfb93a3c5 100644 --- a/lisp/emacs-lisp/debug.el +++ b/lisp/emacs-lisp/debug.el | |||
| @@ -272,6 +272,13 @@ That buffer should be current already." | |||
| 272 | (cdr debugger-args) debugger-args) | 272 | (cdr debugger-args) debugger-args) |
| 273 | (current-buffer)) | 273 | (current-buffer)) |
| 274 | (insert ?\n))) | 274 | (insert ?\n))) |
| 275 | (when (re-search-forward "^ eval-buffer(" nil t) | ||
| 276 | (end-of-line) | ||
| 277 | (insert (format "\n ;;; Reading at buffer position %d" | ||
| 278 | (let ((level (+ (debugger-frame-number) | ||
| 279 | debugger-frame-offset -4))) | ||
| 280 | (with-current-buffer (nth 2 (backtrace-frame level)) | ||
| 281 | (point)))))) | ||
| 275 | (debugger-make-xrefs)) | 282 | (debugger-make-xrefs)) |
| 276 | 283 | ||
| 277 | (defun debugger-make-xrefs (&optional buffer) | 284 | (defun debugger-make-xrefs (&optional buffer) |
| @@ -423,6 +430,8 @@ will be used, such as in a debug on exit from a frame." | |||
| 423 | (forward-sexp 2)) | 430 | (forward-sexp 2)) |
| 424 | (forward-line 1) | 431 | (forward-line 1) |
| 425 | (<= (point) opoint)) | 432 | (<= (point) opoint)) |
| 433 | (if (looking-at " *;;;") | ||
| 434 | (forward-line 1)) | ||
| 426 | (setq count (1+ count))) | 435 | (setq count (1+ count))) |
| 427 | count))) | 436 | count))) |
| 428 | 437 | ||