Avoid using `(lambda ...) to build function values
* lisp/emacs-lisp/nadvice.el (advice-eval-interactive-spec): Avoid `(lambda ...).
This commit is contained in:
parent
9cbd25e5cd
commit
020fd63018
1 changed files with 3 additions and 1 deletions
|
@ -176,7 +176,9 @@ DOC is a string where \"FUNCTION\" and \"OLDFUN\" are expected.")
|
|||
;; FIXME: Despite appearances, this is not faithful: SPEC and
|
||||
;; (advice-eval-interactive-spec SPEC) will behave subtly differently w.r.t
|
||||
;; command-history (and maybe a few other details).
|
||||
(call-interactively `(lambda (&rest args) (interactive ,spec) args)))
|
||||
(call-interactively
|
||||
;; Sadly (lambda (&rest args) (interactive spec) args) doesn't work :-(
|
||||
(cconv--interactive-helper (lambda (&rest args) args) spec)))
|
||||
;; ((functionp spec) (funcall spec))
|
||||
(t (eval spec))))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue