eval-command-interactive-spec: Shorten code
* lisp/emacs-lisp/subr-x.el (eval-command-interactive-spec): Don't reimplement checking for an 'interactive-form symbol property. `interactive-form' already does this. Thanks to Stefan Monnier.
This commit is contained in:
parent
7ca1d782f5
commit
d751915ef4
1 changed files with 1 additions and 3 deletions
|
@ -507,9 +507,7 @@ Used by `emacs-authors-mode' and `emacs-news-mode'."
|
|||
(defun eval-command-interactive-spec (command)
|
||||
"Evaluate COMMAND's interactive form and return resultant list.
|
||||
If COMMAND has no interactive form, return nil."
|
||||
(advice-eval-interactive-spec
|
||||
(cadr (or (and (symbolp command) (get command 'interactive-form))
|
||||
(interactive-form command)))))
|
||||
(advice-eval-interactive-spec (cadr (interactive-form command))))
|
||||
|
||||
(provide 'subr-x)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue