diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2013-11-17 18:11:27 -0500 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2013-11-17 18:11:27 -0500 |
commit | 986545b57f27403e9f8729bb6252957bc8baf2ea (patch) | |
tree | 9f16118056d5b16b2f674dfcbd2ba6de230c81b1 /lisp/emacs-lisp | |
parent | 9bc67baa5ad14110529ccfc4dfcb5b41be26be53 (diff) | |
download | emacs-986545b57f27403e9f8729bb6252957bc8baf2ea.tar.gz emacs-986545b57f27403e9f8729bb6252957bc8baf2ea.tar.bz2 emacs-986545b57f27403e9f8729bb6252957bc8baf2ea.zip |
* lisp/emacs-lisp/nadvice.el (remove-function): Align with
add-function's behavior.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r-- | lisp/emacs-lisp/nadvice.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/nadvice.el b/lisp/emacs-lisp/nadvice.el index 576e72088e9..0352164caf5 100644 --- a/lisp/emacs-lisp/nadvice.el +++ b/lisp/emacs-lisp/nadvice.el @@ -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))))) |