aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorRichard M. Stallman1996-04-08 15:36:48 +0000
committerRichard M. Stallman1996-04-08 15:36:48 +0000
commitc757fb07fd819cd51623543cb1889a480a2b5d85 (patch)
tree19ba507f62d4668cf773c256dd39a3639c14ffeb /lisp
parent299585eeb6412fcaac700cbfd40dbbb2f62ca92a (diff)
downloademacs-c757fb07fd819cd51623543cb1889a480a2b5d85.tar.gz
emacs-c757fb07fd819cd51623543cb1889a480a2b5d85.zip
(disassemble-internal): Graceful error if compile failed.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/emacs-lisp/disass.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/disass.el b/lisp/emacs-lisp/disass.el
index d405db4200e..4199728888e 100644
--- a/lisp/emacs-lisp/disass.el
+++ b/lisp/emacs-lisp/disass.el
@@ -104,8 +104,9 @@ redefine OBJECT if it is a symbol."
104 (setq obj (cdr obj)) ;throw lambda away 104 (setq obj (cdr obj)) ;throw lambda away
105 (setq args (car obj)) ;save arg list 105 (setq args (car obj)) ;save arg list
106 (setq obj (cdr obj))) 106 (setq obj (cdr obj)))
107 (t 107 ((byte-code-function-p obj)
108 (setq args (aref obj 0)))) 108 (setq args (aref obj 0)))
109 (t (error "Compilation failed")))
109 (if (zerop indent) ; not a nested function 110 (if (zerop indent) ; not a nested function
110 (progn 111 (progn
111 (indent-to indent) 112 (indent-to indent)