2005-03-14 Lute Kamstra <lute@gnu.org>
+ * emacs-lisp/debug.el (debugger-make-xrefs): Docstring fix.
+ Ignore a `*' at the beginning of a line.
+
* subr.el (macro-declaration-function): Move to
emacs-lisp/byte-run.el.
* emacs-lisp/byte-run.el (macro-declaration-function): Move from
(debugger-make-xrefs))
(defun debugger-make-xrefs (&optional buffer)
- "Attach cross-references to symbol names in the `*Backtrace*' buffer."
+ "Attach cross-references to function names in the `*Backtrace*' buffer."
(interactive "b")
(save-excursion
(set-buffer (or buffer (current-buffer)))
;; Scan the new part of the backtrace, inserting xrefs.
(goto-char (point-min))
(while (progn
+ (goto-char (+ (point) 2))
(skip-syntax-forward "^w_")
(not (eobp)))
(let* ((beg (point))
(goto-char beg)
;; help-xref-button needs to operate on something matched
;; by a regexp, so set that up for it.
- (re-search-forward "\\(\\(\\sw\\|\\s_\\)+\\)")
- (help-xref-button 1 'help-function-def sym file)))
+ (re-search-forward "\\(\\sw\\|\\s_\\)+")
+ (help-xref-button 0 'help-function-def sym file)))
(forward-line 1))
(widen))
(setq debugger-previous-backtrace (buffer-string))))