From 03053baebee8a89f1b1d470a6173b9f1e80f0b39 Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Wed, 19 Mar 2025 21:24:56 +0100 Subject: ; Improve documentation of incf and decf * doc/lispref/variables.texi (Setting Generalized Variables): Mention incf and decf. * lisp/emacs-lisp/gv.el (incf, decf): Add references to Info manual documentation on generalized variables. --- lisp/emacs-lisp/gv.el | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'lisp/emacs-lisp') diff --git a/lisp/emacs-lisp/gv.el b/lisp/emacs-lisp/gv.el index 8e69c8d0447..b44f7dc87f3 100644 --- a/lisp/emacs-lisp/gv.el +++ b/lisp/emacs-lisp/gv.el @@ -317,11 +317,14 @@ The return value is the last VAL in the list. ;;;###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 @@ -329,11 +332,14 @@ See also `decf'." ;;;###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 -- cgit v1.2.3