summaryrefslogtreecommitdiff
path: root/lisp/gnus/gnus-int.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-int.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-int.el')
-rw-r--r--lisp/gnus/gnus-int.el26
1 files changed, 24 insertions, 2 deletions
diff --git a/lisp/gnus/gnus-int.el b/lisp/gnus/gnus-int.el
index 0c7381286cd..4bd66a0cb3a 100644
--- a/lisp/gnus/gnus-int.el
+++ b/lisp/gnus/gnus-int.el
@@ -22,6 +22,25 @@
;;; Commentary:
+;; Together with nnoo.el, this file defines the basic behavior of
+;; Gnus' backends. General server functions like `gnus-open-server'
+;; and `gnus-request-set-mark' all have a common behavior:
+
+;; 1. They accept a server as an argument, or else accept a group as
+;; an argument and find the server from the group.
+
+;; 2. For functions that aren't mandatory, they see if the server
+;; implements the function in question, using
+;; `gnus-check-backend-function'.
+
+;; 3. They get the server-specific version of the function with
+;; `gnus-get-function', and call it with `funcall'. Ie,
+;; `gnus-open-server' finds its function with:
+
+;; (gnus-get-function server 'open-server)
+
+;; and funcalls it.
+
;;; Code:
(eval-when-compile (require 'cl))
@@ -605,7 +624,7 @@ from other groups -- for instance, search results and the like."
(gnus-try-warping-via-registry)))))
(defun gnus-request-head (article group)
- "Request the head of ARTICLE in GROUP."
+ "Request the head (ie headers) of ARTICLE in GROUP."
(let* ((gnus-command-method (gnus-find-method-for-group group))
(head (gnus-get-function gnus-command-method 'request-head t))
res clean-up)
@@ -845,7 +864,10 @@ If GROUP is nil, all groups on GNUS-COMMAND-METHOD are scanned."
result))
(defun gnus-close-backends ()
- ;; Send a close request to all backends that support such a request.
+ "Send a close request to all backends that support closing."
+ ;; Why would this use `gnus-valid-select-methods', when those aren't
+ ;; actually servers? How is this different from what
+ ;; `gnus-group-suspend' does?
(let ((methods gnus-valid-select-methods)
(gnus-inhibit-demon t)
func gnus-command-method)