From: Stefan Monnier Date: Sun, 17 Nov 2013 23:11:27 +0000 (-0500) Subject: * lisp/emacs-lisp/nadvice.el (remove-function): Align with X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~797 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=986545b57f27403e9f8729bb6252957bc8baf2ea;p=emacs.git * lisp/emacs-lisp/nadvice.el (remove-function): Align with add-function's behavior. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index f408df795a0..a749f70b4fc 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,8 @@ 2013-11-17 Stefan Monnier + * emacs-lisp/nadvice.el (remove-function): Align with + add-function's behavior. + * progmodes/gdb-mi.el: Avoid backtracking in regexp matcher. (gdb--string-regexp): New constant. (gdb-tooltip-print, gdb-var-evaluate-expression-handler) 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)))))