diff options
Diffstat (limited to 'lisp/emacs-lisp/disass.el')
| -rw-r--r-- | lisp/emacs-lisp/disass.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/disass.el b/lisp/emacs-lisp/disass.el index 850cc2085f7..15caee9b29c 100644 --- a/lisp/emacs-lisp/disass.el +++ b/lisp/emacs-lisp/disass.el | |||
| @@ -129,7 +129,7 @@ redefine OBJECT if it is a symbol." | |||
| 129 | (setq args (help-function-arglist obj)) ;save arg list | 129 | (setq args (help-function-arglist obj)) ;save arg list |
| 130 | (setq obj (cdr obj)) ;throw lambda away | 130 | (setq obj (cdr obj)) ;throw lambda away |
| 131 | (setq obj (cdr obj))) | 131 | (setq obj (cdr obj))) |
| 132 | ((byte-code-function-p obj) | 132 | ((closurep obj) |
| 133 | (setq args (help-function-arglist obj))) | 133 | (setq args (help-function-arglist obj))) |
| 134 | (t (error "Compilation failed"))) | 134 | (t (error "Compilation failed"))) |
| 135 | (if (zerop indent) ; not a nested function | 135 | (if (zerop indent) ; not a nested function |
| @@ -178,7 +178,9 @@ redefine OBJECT if it is a symbol." | |||
| 178 | (t | 178 | (t |
| 179 | (insert "Uncompiled body: ") | 179 | (insert "Uncompiled body: ") |
| 180 | (let ((print-escape-newlines t)) | 180 | (let ((print-escape-newlines t)) |
| 181 | (prin1 (macroexp-progn obj) | 181 | (prin1 (macroexp-progn (if (interpreted-function-p obj) |
| 182 | (aref obj 1) | ||
| 183 | obj)) | ||
| 182 | (current-buffer)))))) | 184 | (current-buffer)))))) |
| 183 | (if interactive-p | 185 | (if interactive-p |
| 184 | (message ""))) | 186 | (message ""))) |