aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2005-10-24 03:52:35 +0000
committerStefan Monnier2005-10-24 03:52:35 +0000
commit1fe3c8f5356ab65e044e87b5dee0cb7f4e1dd854 (patch)
tree5af88ee7dd6566d78b623ad1b76c71135d4e9707
parent1149fd6f89324e2b258fcca32697bb9ed9bff289 (diff)
downloademacs-1fe3c8f5356ab65e044e87b5dee0cb7f4e1dd854.tar.gz
emacs-1fe3c8f5356ab65e044e87b5dee0cb7f4e1dd854.zip
(debugger-make-xrefs): Don't assume case-fold-search is nil.
(debug-help-follow): Use help-xref-interned directly.
-rw-r--r--lisp/emacs-lisp/debug.el13
1 files changed, 8 insertions, 5 deletions
diff --git a/lisp/emacs-lisp/debug.el b/lisp/emacs-lisp/debug.el
index 2b47b139759..612abaf7091 100644
--- a/lisp/emacs-lisp/debug.el
+++ b/lisp/emacs-lisp/debug.el
@@ -353,9 +353,10 @@ That buffer should be current already."
353 (forward-line -1) 353 (forward-line -1)
354 (setq new-start (point))) 354 (setq new-start (point)))
355 (if (not (zerop 355 (if (not (zerop
356 (compare-buffer-substrings 356 (let ((case-fold-search nil))
357 (current-buffer) old-start old-end 357 (compare-buffer-substrings
358 buffer new-start new-end))) 358 (current-buffer) old-start old-end
359 buffer new-start new-end))))
359 (setq all-match nil)))) 360 (setq all-match nil))))
360 ;; Now new-end is the position of the start of the 361 ;; Now new-end is the position of the start of the
361 ;; unchanged part in the current buffer, and old-end is 362 ;; unchanged part in the current buffer, and old-end is
@@ -659,6 +660,9 @@ Complete list of commands:
659For the cross-reference format, see `help-make-xrefs'." 660For the cross-reference format, see `help-make-xrefs'."
660 (interactive "d") 661 (interactive "d")
661 (require 'help-mode) 662 (require 'help-mode)
663 ;; Ideally we'd just do (call-interactively 'help-follow) except that this
664 ;; assumes we're already in a *Help* buffer and reuses it, so it ends up
665 ;; incorrectly "reusing" the *Backtrace* buffer to show the help info.
662 (unless pos 666 (unless pos
663 (setq pos (point))) 667 (setq pos (point)))
664 (unless (push-button pos) 668 (unless (push-button pos)
@@ -671,8 +675,7 @@ For the cross-reference format, see `help-make-xrefs'."
671 (progn (skip-syntax-forward "w_") 675 (progn (skip-syntax-forward "w_")
672 (point))))))) 676 (point)))))))
673 (when (or (boundp sym) (fboundp sym) (facep sym)) 677 (when (or (boundp sym) (fboundp sym) (facep sym))
674 (switch-to-buffer-other-window (generate-new-buffer "*Help*")) 678 (help-xref-interned sym)))))
675 (help-do-xref pos #'help-xref-interned (list sym))))))
676 679
677;; When you change this, you may also need to change the number of 680;; When you change this, you may also need to change the number of
678;; frames that the debugger skips. 681;; frames that the debugger skips.