GNU bug report logs - #1428
backtrace from edebug does not have links

Previous Next

Package: emacs;

Reported by: Dan Nicolaescu <dann <at> ics.uci.edu>

Date: Tue, 25 Nov 2008 16:50:02 UTC

Severity: wishlist

Tags: fixed

Merged with 7393

Fixed in version 27.1

Done: Gemini Lasswell <gazally <at> runbox.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Michael Heerdegen <michael_heerdegen <at> web.de>
To: Dan Nicolaescu <dann <at> ics.uci.edu>
Cc: 1428 <at> emacsbugs.donarmstrong.com
Subject: bug#1428: backtrace from edebug does not have links
Date: Tue, 14 Feb 2012 00:44:55 +0100
Dan Nicolaescu <dann <at> ics.uci.edu> writes:

> In edebug when using d to show the backtrace, the *Backtrace* buffer
> does not have links to the functions that you get in the *Backtrace*
> buffer when using debug-on-error.  
> It would be nice if the links would work for the edebug case too.

Maybe nobody implements that because `edebug-backtrace' is planned to be
rewritten so that it gets better than "Better than nothing..." (see
docstring)?

However, until that happens, maybe this problem should be solved.


Can't we just append some code like this:

  (goto-char (point-min))
  (while (progn
  	 (goto-char (+ (point) 2))
           (skip-syntax-forward "^w_")
           (not (eobp)))
    (let* ((beg (point))
           (end (progn (skip-syntax-forward "w_") (point)))
           (sym (intern-soft (buffer-substring-no-properties
                              beg end)))
           (file (and sym (symbol-file sym 'defun))))
      (when file
        (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 0 'help-function-def sym file)))
    (forward-line 1))

to `edebug-backtrace' (the code is from `debugger-make-xrefs')?


Thanks,

Michael.




This bug report was last modified 6 years and 354 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.