summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Bernoulli <jonas@bernoul.li>2020-10-02 15:09:00 +0200
committerjao <jao@gnu.org>2020-12-02 19:29:18 +0000
commit248d67f7632c191cf97955d346915736692bda72 (patch)
tree58ccd8a63d69cff31651e7a7bd39a5828d5bc71c
parent5d8a721c48e5d839ed69c3cac7f2cf65c6998627 (diff)
downloadgeiser-248d67f7632c191cf97955d346915736692bda72.tar.gz
geiser-248d67f7632c191cf97955d346915736692bda72.tar.bz2
Add doc-string to geiser-custom--defcustom
Also add a FIXME comment about how this macro isn't actually needed.
-rw-r--r--elisp/geiser-custom.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/elisp/geiser-custom.el b/elisp/geiser-custom.el
index 8d04885..8095863 100644
--- a/elisp/geiser-custom.el
+++ b/elisp/geiser-custom.el
@@ -50,6 +50,12 @@
(add-to-list 'geiser-custom--memoized-vars name))
(defmacro geiser-custom--defcustom (name &rest body)
+ "Like `defcustom' but also put NAME on an internal list.
+That list is used by `geiser-reload' to preserve the values
+of the listed variables. It is not used for anything else."
+ ;; FIXME Remembering the value like this is not actually
+ ;; necessary. Evaluting `defcustom' always preserves the
+ ;; existing value, if any.
(declare (doc-string 3) (debug (name body)))
`(progn
(geiser-custom--memoize ',name)