aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/emacs-lisp/backtrace.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/backtrace.el b/lisp/emacs-lisp/backtrace.el
index d6c04bb4c67..bec57f29245 100644
--- a/lisp/emacs-lisp/backtrace.el
+++ b/lisp/emacs-lisp/backtrace.el
@@ -651,7 +651,11 @@ Format it according to VIEW."
651 (evald (backtrace-frame-evald frame)) 651 (evald (backtrace-frame-evald frame))
652 (fun (backtrace-frame-fun frame)) 652 (fun (backtrace-frame-fun frame))
653 (args (backtrace-frame-args frame)) 653 (args (backtrace-frame-args frame))
654 (fun-file (symbol-file fun 'defun)) 654 (def (and (symbolp fun) (fboundp fun) (symbol-function fun)))
655 (fun-file (or (symbol-file fun 'defun)
656 (and (subrp def)
657 (not (eq 'unevalled (cdr (subr-arity def))))
658 (find-lisp-object-file-name fun def))))
655 (fun-pt (point))) 659 (fun-pt (point)))
656 (cond 660 (cond
657 ((and evald (not debugger-stack-frame-as-list)) 661 ((and evald (not debugger-stack-frame-as-list))