* lisp/emacs-lisp/nadvice.el (remove-function): Align with
add-function's behavior.
This commit is contained in:
parent
9bc67baa5a
commit
986545b57f
2 changed files with 4 additions and 1 deletions
|
@ -284,7 +284,7 @@ of the piece of advice."
|
|||
(cond ((eq 'local (car-safe place))
|
||||
(setq place `(advice--buffer-local ,@(cdr place))))
|
||||
((symbolp place)
|
||||
(error "Use (default-value '%S) or (local '%S)" place place)))
|
||||
(setq place `(default-value ',place))))
|
||||
(gv-letplace (getter setter) place
|
||||
(macroexp-let2 nil new `(advice--remove-function ,getter ,function)
|
||||
`(unless (eq ,new ,getter) ,(funcall setter new)))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue