Add links in backtraces to functions written in C (bug#25393)
* lisp/emacs-lisp/backtrace.el (backtrace--print-func-and-args): Look up file names for built-in functions with evaluated arguments.
This commit is contained in:
parent
bb9de872e8
commit
9aa9d79e44
1 changed files with 5 additions and 1 deletions
|
@ -651,7 +651,11 @@ Format it according to VIEW."
|
|||
(evald (backtrace-frame-evald frame))
|
||||
(fun (backtrace-frame-fun frame))
|
||||
(args (backtrace-frame-args frame))
|
||||
(fun-file (symbol-file fun 'defun))
|
||||
(def (and (symbolp fun) (fboundp fun) (symbol-function fun)))
|
||||
(fun-file (or (symbol-file fun 'defun)
|
||||
(and (subrp def)
|
||||
(not (eq 'unevalled (cdr (subr-arity def))))
|
||||
(find-lisp-object-file-name fun def))))
|
||||
(fun-pt (point)))
|
||||
(cond
|
||||
((and evald (not debugger-stack-frame-as-list))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue