subforms. Note that @code{push} and @code{pop} on an @code{nthcdr}
place can be used to insert or delete at any position in a list.
+Similarly, the macros @code{incf} and @code{decf} (@pxref{Arithmetic
+Operations}) can be used to increment or decrement generalized
+variables that are numbers.
+
The @file{cl-lib} library defines various extensions for generalized
variables, including additional @code{setf} places.
@xref{Generalized Variables,,, cl, Common Lisp Extensions}.
;;;###autoload
(defmacro incf (place &optional delta)
- "Increment PLACE by DELTA (default to 1).
+ "Increment generalized variable PLACE by DELTA (default to 1).
The DELTA is first added to PLACE, and then stored in PLACE.
Return the incremented value of PLACE.
+For more information about generalized variables, see Info node
+`(elisp) Generalized Variables'.
+
See also `decf'."
(declare (debug (gv-place &optional form)))
(gv-letplace (getter setter) place
;;;###autoload
(defmacro decf (place &optional delta)
- "Decrement PLACE by DELTA (default to 1).
+ "Decrement generalized variable PLACE by DELTA (default to 1).
The DELTA is first subtracted from PLACE, and then stored in PLACE.
Return the decremented value of PLACE.
+For more information about generalized variables, see Info node
+`(elisp) Generalized Variables'.
+
See also `incf'."
(declare (debug (gv-place &optional form)))
(gv-letplace (getter setter) place