aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2011-02-10 14:21:07 -0500
committerStefan Monnier2011-02-10 14:21:07 -0500
commit49ffc0786e71f1659f87a9ea9cc321d83b1a1d68 (patch)
tree93b51b004f6a93c0b812ebfbc58f864f66cad037
parent1a0a6cefcf2863adeabaac645a0176f95a380d25 (diff)
downloademacs-49ffc0786e71f1659f87a9ea9cc321d83b1a1d68.tar.gz
emacs-49ffc0786e71f1659f87a9ea9cc321d83b1a1d68.zip
* lisp/emacs-lisp/edebug.el (edebug-instrument-function): Check a marker is
still valid before using it.
-rw-r--r--lisp/ChangeLog3
-rw-r--r--lisp/emacs-lisp/edebug.el2
2 files changed, 4 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 28f0b8d0bef..dd33dda4382 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,8 @@
12011-02-10 Stefan Monnier <monnier@iro.umontreal.ca> 12011-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
2 2
3 * emacs-lisp/edebug.el (edebug-instrument-function): Check a marker is
4 still valid before using it.
5
3 * progmodes/grep.el (grep-mode-font-lock-keywords): Adjust to 6 * progmodes/grep.el (grep-mode-font-lock-keywords): Adjust to
4 `message' -> `compilation-message' rename (bug#8004). 7 `message' -> `compilation-message' rename (bug#8004).
5 8
diff --git a/lisp/emacs-lisp/edebug.el b/lisp/emacs-lisp/edebug.el
index f281521841c..70a7983dbea 100644
--- a/lisp/emacs-lisp/edebug.el
+++ b/lisp/emacs-lisp/edebug.el
@@ -3394,7 +3394,7 @@ go to the end of the last sexp, or if that is the same point, then step."
3394 ;; Return the function symbol, or nil if not instrumented. 3394 ;; Return the function symbol, or nil if not instrumented.
3395 (let ((func-marker (get func 'edebug))) 3395 (let ((func-marker (get func 'edebug)))
3396 (cond 3396 (cond
3397 ((markerp func-marker) 3397 ((and (markerp func-marker) (marker-buffer func-marker))
3398 ;; It is uninstrumented, so instrument it. 3398 ;; It is uninstrumented, so instrument it.
3399 (with-current-buffer (marker-buffer func-marker) 3399 (with-current-buffer (marker-buffer func-marker)
3400 (goto-char func-marker) 3400 (goto-char func-marker)