* Handle missing eln file when trying to disassble (bug#65455)
* lisp/emacs-lisp/disass.el (disassemble-internal): Handle missing eln file.
This commit is contained in:
parent
e7ac50a153
commit
91d2d8439b
1 changed files with 4 additions and 2 deletions
|
@ -89,8 +89,10 @@ redefine OBJECT if it is a symbol."
|
|||
(subr-native-elisp-p obj))
|
||||
(progn
|
||||
(require 'comp)
|
||||
(call-process "objdump" nil (current-buffer) t "-S"
|
||||
(native-comp-unit-file (subr-native-comp-unit obj)))
|
||||
(let ((eln (native-comp-unit-file (subr-native-comp-unit obj))))
|
||||
(if (file-exists-p eln)
|
||||
(call-process "objdump" nil (current-buffer) t "-S" eln)
|
||||
(error "Missing eln file for #<subr %s>" name)))
|
||||
(goto-char (point-min))
|
||||
(re-search-forward (concat "^.*"
|
||||
(regexp-quote
|
||||
|
|
Loading…
Add table
Reference in a new issue