diff options
| author | Eric Abrahamsen | 2017-09-29 13:58:04 -0700 |
|---|---|---|
| committer | Eric Abrahamsen | 2017-10-21 19:22:22 -0700 |
| commit | 73dda4e0b45a1f831d5f990fb29e958a76ccc518 (patch) | |
| tree | c72e3ffe7fd751597727059be2c7cfe66f33d846 /lisp/gnus/gnus.el | |
| parent | 92045f4546b9708dc9f69954799d211c1f56ff1e (diff) | |
| download | emacs-scratch/gnus-docs.tar.gz emacs-scratch/gnus-docs.zip | |
Add more comments and docstrings to Gnus source filesscratch/gnus-docs
Diffstat (limited to 'lisp/gnus/gnus.el')
| -rw-r--r-- | lisp/gnus/gnus.el | 22 |
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: | |||
| 1161 | :variable-document The documentation for the variable. | 1161 | :variable-document The documentation for the variable. |
| 1162 | :variable-group The group for customizing the variable. | 1162 | :variable-group The group for customizing the variable. |
| 1163 | :variable-type The type for customizing the variable. | 1163 | :variable-type The type for customizing the variable. |
| 1164 | :variable-default The default value of the variable." | 1164 | :variable-default The default value of the variable. |
| 1165 | |||
| 1166 | This macro can define several things for PARAM: a group | ||
| 1167 | parameter, a function accessor, and a variable. The parameter | ||
| 1168 | has the name PARAM, which is what will be stored in | ||
| 1169 | `gnus-newsrc-alist'. The function accesssor returns the value of | ||
| 1170 | the parameter when called with a group as its only argument. The | ||
| 1171 | variable is by default named `gnus-parameter-PARAM-alist', and | ||
| 1172 | holds a list of '(regexp value) pairs, where the regexp is | ||
| 1173 | matched again group names, and value is the default value for | ||
| 1174 | matched groups. | ||
| 1175 | |||
| 1176 | In other words, PARAM is set for a single group, while | ||
| 1177 | `gnus-parameter-PARAM-alist' works the other way, by providing | ||
| 1178 | default parameter values for whole classes of matching groups." | ||
| 1165 | (let* ((type (plist-get rest :type)) | 1179 | (let* ((type (plist-get rest :type)) |
| 1166 | (parameter-type (plist-get rest :parameter-type)) | 1180 | (parameter-type (plist-get rest :parameter-type)) |
| 1167 | (parameter-document (plist-get rest :parameter-document)) | 1181 | (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 | |||
| 2689 | "Gnus variables saved in the quick startup file.") | 2703 | "Gnus variables saved in the quick startup file.") |
| 2690 | 2704 | ||
| 2691 | (defvar gnus-newsrc-alist nil | 2705 | (defvar gnus-newsrc-alist nil |
| 2692 | "Assoc list of read articles. | 2706 | "Assoc list of groups and their info. |
| 2693 | `gnus-newsrc-hashtb' should be kept so that both hold the same information.") | 2707 | Each element is a list of group name, marks and article numbers, |
| 2708 | and other parameters set by the user. `gnus-newsrc-hashtb' | ||
| 2709 | should be kept so that both hold the same information.") | ||
| 2694 | 2710 | ||
| 2695 | (defvar gnus-registry-alist nil | 2711 | (defvar gnus-registry-alist nil |
| 2696 | "Assoc list of registry data. | 2712 | "Assoc list of registry data. |