diff options
| author | Werner LEMBERG | 2005-03-25 09:55:34 +0000 |
|---|---|---|
| committer | Werner LEMBERG | 2005-03-25 09:55:34 +0000 |
| commit | bece3937bf235133e1f32b531b22ac09634d11bc (patch) | |
| tree | 6cc4248238f4e6a41e3f8eff6eb3c4b6c4357fa1 | |
| parent | 9f556e4466482289f0e8210324069a06c6a8c7d8 (diff) | |
| download | emacs-bece3937bf235133e1f32b531b22ac09634d11bc.tar.gz emacs-bece3937bf235133e1f32b531b22ac09634d11bc.zip | |
* emacs-lisp/advice.el: Replace `legal' with `valid'.
| -rw-r--r-- | lisp/ChangeLog | 1 | ||||
| -rw-r--r-- | lisp/emacs-lisp/advice.el | 14 |
2 files changed, 8 insertions, 7 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index c5790b2310e..45f9e6b696b 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | 2 | ||
| 3 | * complete.el, thumbs.el: Replace `legal' with `valid'. | 3 | * complete.el, thumbs.el: Replace `legal' with `valid'. |
| 4 | * calendar/calendar.el: Replace `legal' with `valid'. | 4 | * calendar/calendar.el: Replace `legal' with `valid'. |
| 5 | * emacs-lisp/advice.el: Replace `legal' with `valid'. | ||
| 5 | 6 | ||
| 6 | 2005-03-25 Werner Lemberg <wl@gnu.org> | 7 | 2005-03-25 Werner Lemberg <wl@gnu.org> |
| 7 | 8 | ||
diff --git a/lisp/emacs-lisp/advice.el b/lisp/emacs-lisp/advice.el index cfaac96bbb1..171b68e457c 100644 --- a/lisp/emacs-lisp/advice.el +++ b/lisp/emacs-lisp/advice.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; advice.el --- an overloading mechanism for Emacs Lisp functions | 1 | ;;; advice.el --- an overloading mechanism for Emacs Lisp functions |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1993,1994,2000,01,2004 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 1993,1994,2000,01,2004,2005 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: Hans Chalupsky <hans@cs.buffalo.edu> | 5 | ;; Author: Hans Chalupsky <hans@cs.buffalo.edu> |
| 6 | ;; Maintainer: FSF | 6 | ;; Maintainer: FSF |
| @@ -2173,7 +2173,7 @@ Redefining advices affect the construction of an advised definition." | |||
| 2173 | ;; ============================================ | 2173 | ;; ============================================ |
| 2174 | ;; The advice-info of an advised function contains its `origname' which is | 2174 | ;; The advice-info of an advised function contains its `origname' which is |
| 2175 | ;; a symbol that is fbound to the original definition available at the first | 2175 | ;; a symbol that is fbound to the original definition available at the first |
| 2176 | ;; proper activation of the function after a legal re/definition. If the | 2176 | ;; proper activation of the function after a valid re/definition. If the |
| 2177 | ;; original was defined via fcell indirection then `origname' will be defined | 2177 | ;; original was defined via fcell indirection then `origname' will be defined |
| 2178 | ;; just so. Hence, to get hold of the actual original definition of a function | 2178 | ;; just so. Hence, to get hold of the actual original definition of a function |
| 2179 | ;; we need to use `ad-real-orig-definition'. | 2179 | ;; we need to use `ad-real-orig-definition'. |
| @@ -2238,7 +2238,7 @@ which PREDICATE returns non-nil)." | |||
| 2238 | ad-advice-classes)) | 2238 | ad-advice-classes)) |
| 2239 | 2239 | ||
| 2240 | (defun ad-read-advice-class (function &optional prompt default) | 2240 | (defun ad-read-advice-class (function &optional prompt default) |
| 2241 | "Read a legal advice class with completion from the minibuffer. | 2241 | "Read a valid advice class with completion from the minibuffer. |
| 2242 | An optional PROMPT will be used to prompt for the class. DEFAULT will | 2242 | An optional PROMPT will be used to prompt for the class. DEFAULT will |
| 2243 | be returned on empty input (defaults to the first non-empty advice | 2243 | be returned on empty input (defaults to the first non-empty advice |
| 2244 | class of FUNCTION)." | 2244 | class of FUNCTION)." |
| @@ -2312,7 +2312,7 @@ be used to prompt for the function." | |||
| 2312 | (defun ad-find-some-advice (function class name) | 2312 | (defun ad-find-some-advice (function class name) |
| 2313 | "Find the first of FUNCTION's advices in CLASS matching NAME. | 2313 | "Find the first of FUNCTION's advices in CLASS matching NAME. |
| 2314 | NAME can be a symbol or a regular expression matching part of an advice name. | 2314 | NAME can be a symbol or a regular expression matching part of an advice name. |
| 2315 | If CLASS is `any' all legal advice classes will be checked." | 2315 | If CLASS is `any' all valid advice classes will be checked." |
| 2316 | (if (ad-is-advised function) | 2316 | (if (ad-is-advised function) |
| 2317 | (let (found-advice) | 2317 | (let (found-advice) |
| 2318 | (ad-dolist (advice-class ad-advice-classes) | 2318 | (ad-dolist (advice-class ad-advice-classes) |
| @@ -2332,7 +2332,7 @@ If CLASS is `any' all legal advice classes will be checked." | |||
| 2332 | "Set enable FLAG of FUNCTION's advices in CLASS matching NAME. | 2332 | "Set enable FLAG of FUNCTION's advices in CLASS matching NAME. |
| 2333 | If NAME is a string rather than a symbol then it's interpreted as a regular | 2333 | If NAME is a string rather than a symbol then it's interpreted as a regular |
| 2334 | expression and all advices whose name contain a match for it will be | 2334 | expression and all advices whose name contain a match for it will be |
| 2335 | affected. If CLASS is `any' advices in all legal advice classes will be | 2335 | affected. If CLASS is `any' advices in all valid advice classes will be |
| 2336 | considered. The number of changed advices will be returned (or nil if | 2336 | considered. The number of changed advices will be returned (or nil if |
| 2337 | FUNCTION was not advised)." | 2337 | FUNCTION was not advised)." |
| 2338 | (if (ad-is-advised function) | 2338 | (if (ad-is-advised function) |
| @@ -2369,7 +2369,7 @@ FUNCTION was not advised)." | |||
| 2369 | 2369 | ||
| 2370 | (defun ad-enable-regexp-internal (regexp class flag) | 2370 | (defun ad-enable-regexp-internal (regexp class flag) |
| 2371 | "Set enable FLAGs of all CLASS advices whose name contains a REGEXP match. | 2371 | "Set enable FLAGs of all CLASS advices whose name contains a REGEXP match. |
| 2372 | If CLASS is `any' all legal advice classes are considered. The number of | 2372 | If CLASS is `any' all valid advice classes are considered. The number of |
| 2373 | affected advices will be returned." | 2373 | affected advices will be returned." |
| 2374 | (let ((matched-advices 0)) | 2374 | (let ((matched-advices 0)) |
| 2375 | (ad-do-advised-functions (advised-function) | 2375 | (ad-do-advised-functions (advised-function) |
| @@ -3755,7 +3755,7 @@ deactivation, which might run hooks and get into other trouble." | |||
| 3755 | (error nil)))) | 3755 | (error nil)))) |
| 3756 | 3756 | ||
| 3757 | 3757 | ||
| 3758 | ;; Completion alist of legal `defadvice' flags | 3758 | ;; Completion alist of valid `defadvice' flags |
| 3759 | (defvar ad-defadvice-flags | 3759 | (defvar ad-defadvice-flags |
| 3760 | '(("protect") ("disable") ("activate") | 3760 | '(("protect") ("disable") ("activate") |
| 3761 | ("compile") ("preactivate") ("freeze"))) | 3761 | ("compile") ("preactivate") ("freeze"))) |