diff options
| -rw-r--r-- | lisp/emacs-lisp/disass.el | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lisp/emacs-lisp/disass.el b/lisp/emacs-lisp/disass.el index e67b0220e14..8506ed69669 100644 --- a/lisp/emacs-lisp/disass.el +++ b/lisp/emacs-lisp/disass.el | |||
| @@ -54,9 +54,13 @@ OBJECT can be a symbol defined as a function, or a function itself | |||
| 54 | \(a lambda expression or a compiled-function object). | 54 | \(a lambda expression or a compiled-function object). |
| 55 | If OBJECT is not already compiled, we compile it, but do not | 55 | If OBJECT is not already compiled, we compile it, but do not |
| 56 | redefine OBJECT if it is a symbol." | 56 | redefine OBJECT if it is a symbol." |
| 57 | (interactive (list (intern (completing-read "Disassemble function: " | 57 | (interactive |
| 58 | obarray 'fboundp t)) | 58 | (let* ((fn (function-called-at-point)) |
| 59 | nil 0 t)) | 59 | (prompt (if fn (format "Disassemble function (default %s): " fn) |
| 60 | "Disassemble function: ")) | ||
| 61 | (def (and fn (symbol-name fn)))) | ||
| 62 | (list (intern (completing-read prompt obarray 'fboundp t nil nil def)) | ||
| 63 | nil 0 t))) | ||
| 60 | (if (and (consp object) (not (functionp object))) | 64 | (if (and (consp object) (not (functionp object))) |
| 61 | (setq object `(lambda () ,object))) | 65 | (setq object `(lambda () ,object))) |
| 62 | (or indent (setq indent 0)) ;Default indent to zero | 66 | (or indent (setq indent 0)) ;Default indent to zero |