summaryrefslogtreecommitdiff
path: root/lisp/gnus/gnus.el
diff options
context:
space:
mode:
authorEric Abrahamsen <eric@ericabrahamsen.net>2017-09-29 13:58:04 -0700
committerEric Abrahamsen <eric@ericabrahamsen.net>2017-10-21 19:22:22 -0700
commit73dda4e0b45a1f831d5f990fb29e958a76ccc518 (patch)
treec72e3ffe7fd751597727059be2c7cfe66f33d846 /lisp/gnus/gnus.el
parent92045f4546b9708dc9f69954799d211c1f56ff1e (diff)
downloademacs-scratch/gnus-docs.tar.gz
Add more comments and docstrings to Gnus source filesscratch/gnus-docs
Diffstat (limited to 'lisp/gnus/gnus.el')
-rw-r--r--lisp/gnus/gnus.el22
1 files changed, 19 insertions, 3 deletions
diff --git a/lisp/gnus/gnus.el b/lisp/gnus/gnus.el
index 8c0846be9f7..eaaf01b9b26 100644
--- a/lisp/gnus/gnus.el
+++ b/lisp/gnus/gnus.el
@@ -1161,7 +1161,21 @@ REST is a plist of following:
:variable-document The documentation for the variable.
:variable-group The group for customizing the variable.
:variable-type The type for customizing the variable.
-:variable-default The default value of the variable."
+:variable-default The default value of the variable.
+
+This macro can define several things for PARAM: a group
+parameter, a function accessor, and a variable. The parameter
+has the name PARAM, which is what will be stored in
+`gnus-newsrc-alist'. The function accesssor returns the value of
+the parameter when called with a group as its only argument. The
+variable is by default named `gnus-parameter-PARAM-alist', and
+holds a list of '(regexp value) pairs, where the regexp is
+matched again group names, and value is the default value for
+matched groups.
+
+In other words, PARAM is set for a single group, while
+`gnus-parameter-PARAM-alist' works the other way, by providing
+default parameter values for whole classes of matching groups."
(let* ((type (plist-get rest :type))
(parameter-type (plist-get rest :parameter-type))
(parameter-document (plist-get rest :parameter-document))
@@ -2689,8 +2703,10 @@ such as a mark that says whether an article is stored in the cache
"Gnus variables saved in the quick startup file.")
(defvar gnus-newsrc-alist nil
- "Assoc list of read articles.
-`gnus-newsrc-hashtb' should be kept so that both hold the same information.")
+ "Assoc list of groups and their info.
+Each element is a list of group name, marks and article numbers,
+and other parameters set by the user. `gnus-newsrc-hashtb'
+should be kept so that both hold the same information.")
(defvar gnus-registry-alist nil
"Assoc list of registry data.