diff options
author | Stefan Kangas <stefankangas@gmail.com> | 2025-03-19 21:24:56 +0100 |
---|---|---|
committer | Stefan Kangas <stefankangas@gmail.com> | 2025-03-19 21:29:50 +0100 |
commit | 03053baebee8a89f1b1d470a6173b9f1e80f0b39 (patch) | |
tree | d9cb6600ab657e35ad0b1018b08bb52fb347cbb5 /lisp/emacs-lisp | |
parent | 1fca171addd830fab78fb7cc1c73c43cd7d7a2e9 (diff) | |
download | emacs-03053baebee8a89f1b1d470a6173b9f1e80f0b39.tar.gz emacs-03053baebee8a89f1b1d470a6173b9f1e80f0b39.tar.bz2 emacs-03053baebee8a89f1b1d470a6173b9f1e80f0b39.zip |
; 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.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r-- | lisp/emacs-lisp/gv.el | 10 |
1 files changed, 8 insertions, 2 deletions
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 |