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:
Gemini Lasswell 2018-06-25 13:23:03 -07:00
parent bb9de872e8
commit 9aa9d79e44

View file

@ -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))