]> git.eshelyaron.com Git - emacs.git/commitdiff
* emacs-lisp/advice.el (ad-get-argument, ad-set-argument): Doc
authorChong Yidong <cyd@stupidchicken.com>
Sat, 19 Sep 2009 20:06:54 +0000 (20:06 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Sat, 19 Sep 2009 20:06:54 +0000 (20:06 +0000)
fix (Bug#3932).

lisp/ChangeLog
lisp/emacs-lisp/advice.el

index 72d309fd0eedd6184e99f8a579a825d8ba400184..dfd9aee6bf1781b53f6ebb960416f9bde8cf1b13 100644 (file)
@@ -1,5 +1,8 @@
 2009-09-19  Chong Yidong  <cyd@stupidchicken.com>
 
+       * emacs-lisp/advice.el (ad-get-argument, ad-set-argument): Doc
+       fix (Bug#3932).
+
        * subr.el (baud-rate): Remove long-obsolete function (Bug#4372).
 
        * time-stamp.el (time-stamp-month-dd-yyyy)
index f9f80cdcbb647d3b6a27f200c6ba3f4e634d67d2..8342f14ec5bf05ca99299fcec42f53bda6760809 100644 (file)
@@ -2781,7 +2781,8 @@ to be accessed, it returns a list with the index and name."
           (list (- index (length reqopt-args)) rest-arg)))))
 
 (defun ad-get-argument (arglist index)
-  "Return form to access ARGLIST's actual argument at position INDEX."
+  "Return form to access ARGLIST's actual argument at position INDEX.
+INDEX counts from zero."
   (let ((argument-access (ad-access-argument arglist index)))
     (cond ((consp argument-access)
           (ad-element-access
@@ -2789,7 +2790,8 @@ to be accessed, it returns a list with the index and name."
          (argument-access))))
 
 (defun ad-set-argument (arglist index value-form)
-  "Return form to set ARGLIST's actual arg at INDEX to VALUE-FORM."
+  "Return form to set ARGLIST's actual arg at INDEX to VALUE-FORM.
+INDEX counts from zero."
   (let ((argument-access (ad-access-argument arglist index)))
     (cond ((consp argument-access)
           ;; should this check whether there actually is something to set?