diff options
author | Tsuyoshi Kitamoto <tsuyoshi.kitamoto@gmail.com> | 2012-11-13 13:09:20 -0500 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2012-11-13 13:09:20 -0500 |
commit | a77b8d5eb0ac3ea68f8a6e647677b1286ab47d30 (patch) | |
tree | 512e31dd3b7fab9c594bb19b95a1e956be7138ce /lisp/emacs-lisp | |
parent | fa470af020b518efb92a7213ac805a9d5d0b6061 (diff) | |
download | emacs-a77b8d5eb0ac3ea68f8a6e647677b1286ab47d30.tar.gz emacs-a77b8d5eb0ac3ea68f8a6e647677b1286ab47d30.tar.bz2 emacs-a77b8d5eb0ac3ea68f8a6e647677b1286ab47d30.zip |
* emacs-lisp/advice.el: Fix typos in comment.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r-- | lisp/emacs-lisp/nadvice.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/nadvice.el b/lisp/emacs-lisp/nadvice.el index ca1ebf3cad2..ff30d9e7fa4 100644 --- a/lisp/emacs-lisp/nadvice.el +++ b/lisp/emacs-lisp/nadvice.el @@ -30,7 +30,7 @@ ;; holds a function. ;; This part provides mainly 2 macros: `add-function' and `remove-function'. ;; -;; - The second part provides `add-advice' and `remove-advice' which are +;; - The second part provides `advice-add' and `advice-remove' which are ;; refined version of the previous macros specially tailored for the case ;; where the place that we want to modify is a `symbol-function'. @@ -234,7 +234,7 @@ of the piece of advice." (cond ((special-form-p def) ;; Not worth the trouble trying to handle this, I think. - (error "add-advice failure: %S is a special form" symbol)) + (error "advice-add failure: %S is a special form" symbol)) ((and (symbolp def) (eq 'macro (car-safe (ignore-errors (indirect-function def))))) (let ((newval (cons 'macro (cdr (indirect-function def))))) |