(defun foo (a b c)
(interactive ...I need this...)
(body ...))
(defun foo_ (fn &rest _)
...)
(advice-add #'foo :around #'foo_)
我需要foo
当中的交互式部分以及由交互确定的参数a b c
,不知道通过advice-add
如何实现?
(我知道通过defadvice
和ad-get-arg
可以实现这个需求,但是在某些函数中这个方案出现了问题:本应该通过minibuffer
多次获取参数的,只有第一个参数获取到了,之后的参数获取都跳过了,before around after
都是一样的错误)