diff options
| author | Chong Yidong | 2009-09-19 20:06:54 +0000 |
|---|---|---|
| committer | Chong Yidong | 2009-09-19 20:06:54 +0000 |
| commit | e2045997eef07a7e319a077b8c20701a8ce36da3 (patch) | |
| tree | 7fea7783a10d3c6572075dfff84b621b1f7f93e3 | |
| parent | 83f83a9815b0f34cb0ca77908e3e374febe1568e (diff) | |
| download | emacs-e2045997eef07a7e319a077b8c20701a8ce36da3.tar.gz emacs-e2045997eef07a7e319a077b8c20701a8ce36da3.zip | |
* emacs-lisp/advice.el (ad-get-argument, ad-set-argument): Doc
fix (Bug#3932).
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/emacs-lisp/advice.el | 6 |
2 files changed, 7 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 72d309fd0ee..dfd9aee6bf1 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2009-09-19 Chong Yidong <cyd@stupidchicken.com> | 1 | 2009-09-19 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 2 | ||
| 3 | * emacs-lisp/advice.el (ad-get-argument, ad-set-argument): Doc | ||
| 4 | fix (Bug#3932). | ||
| 5 | |||
| 3 | * subr.el (baud-rate): Remove long-obsolete function (Bug#4372). | 6 | * subr.el (baud-rate): Remove long-obsolete function (Bug#4372). |
| 4 | 7 | ||
| 5 | * time-stamp.el (time-stamp-month-dd-yyyy) | 8 | * time-stamp.el (time-stamp-month-dd-yyyy) |
diff --git a/lisp/emacs-lisp/advice.el b/lisp/emacs-lisp/advice.el index f9f80cdcbb6..8342f14ec5b 100644 --- a/lisp/emacs-lisp/advice.el +++ b/lisp/emacs-lisp/advice.el | |||
| @@ -2781,7 +2781,8 @@ to be accessed, it returns a list with the index and name." | |||
| 2781 | (list (- index (length reqopt-args)) rest-arg))))) | 2781 | (list (- index (length reqopt-args)) rest-arg))))) |
| 2782 | 2782 | ||
| 2783 | (defun ad-get-argument (arglist index) | 2783 | (defun ad-get-argument (arglist index) |
| 2784 | "Return form to access ARGLIST's actual argument at position INDEX." | 2784 | "Return form to access ARGLIST's actual argument at position INDEX. |
| 2785 | INDEX counts from zero." | ||
| 2785 | (let ((argument-access (ad-access-argument arglist index))) | 2786 | (let ((argument-access (ad-access-argument arglist index))) |
| 2786 | (cond ((consp argument-access) | 2787 | (cond ((consp argument-access) |
| 2787 | (ad-element-access | 2788 | (ad-element-access |
| @@ -2789,7 +2790,8 @@ to be accessed, it returns a list with the index and name." | |||
| 2789 | (argument-access)))) | 2790 | (argument-access)))) |
| 2790 | 2791 | ||
| 2791 | (defun ad-set-argument (arglist index value-form) | 2792 | (defun ad-set-argument (arglist index value-form) |
| 2792 | "Return form to set ARGLIST's actual arg at INDEX to VALUE-FORM." | 2793 | "Return form to set ARGLIST's actual arg at INDEX to VALUE-FORM. |
| 2794 | INDEX counts from zero." | ||
| 2793 | (let ((argument-access (ad-access-argument arglist index))) | 2795 | (let ((argument-access (ad-access-argument arglist index))) |
| 2794 | (cond ((consp argument-access) | 2796 | (cond ((consp argument-access) |
| 2795 | ;; should this check whether there actually is something to set? | 2797 | ;; should this check whether there actually is something to set? |