Function: nnoo-push-server
nnoo-push-server is a byte-compiled function defined in nnoo.el.gz.
Signature
(nnoo-push-server BACKEND CURRENT)
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/nnoo.el.gz
(defun nnoo-push-server (backend current)
(let ((bstate (assq backend nnoo-state-alist))
(defs (nnoo-variables backend)))
;; Remove the old definition.
(setcdr (cdr bstate) (delq (assoc current (cddr bstate)) (cddr bstate)))
;; If this is the first time we push the server (i. e., this is
;; the nil server), then we update the default values of
;; all the variables to reflect the current values.
(when (equal current "*internal-non-initialized-backend*")
(let ((defaults (nnoo-variables backend))
def)
(while (setq def (pop defaults))
(setcdr def (symbol-value (car def))))))
(let (state)
(while defs
(push (cons (caar defs) (symbol-value (caar defs)))
state)
(pop defs))
(nconc bstate (list (cons current state))))))