Function: gnus-set-global-variables
gnus-set-global-variables is a byte-compiled function defined in
gnus-sum.el.gz.
Signature
(gnus-set-global-variables)
Documentation
Set the global equivalents of the buffer-local variables.
They are set to the latest values they had. These reflect the summary buffer that was in action when the last article was fetched.
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/gnus-sum.el.gz
(defun gnus-set-global-variables ()
"Set the global equivalents of the buffer-local variables.
They are set to the latest values they had. These reflect the summary
buffer that was in action when the last article was fetched."
(when (derived-mode-p 'gnus-summary-mode)
(setq gnus-summary-buffer (current-buffer))
(let ((name gnus-newsgroup-name)
(marked gnus-newsgroup-marked)
(spam gnus-newsgroup-spam-marked)
(unread gnus-newsgroup-unreads)
(headers gnus-current-headers)
(data gnus-newsgroup-data)
(summary gnus-summary-buffer)
(article-buffer gnus-article-buffer)
(original gnus-original-article-buffer)
(gac gnus-article-current)
(reffed gnus-reffed-article-number)
(score-file gnus-current-score-file)
(default-charset gnus-newsgroup-charset)
vlist)
(dolist (local gnus-newsgroup-variables)
(push (eval (if (consp local) (car local)
local)
t)
vlist))
(setq vlist (nreverse vlist))
(with-temp-buffer
(setq gnus-newsgroup-name name
gnus-newsgroup-marked marked
gnus-newsgroup-spam-marked spam
gnus-newsgroup-unreads unread
gnus-current-headers headers
gnus-newsgroup-data data
gnus-article-current gac
gnus-summary-buffer summary
gnus-article-buffer article-buffer
gnus-original-article-buffer original
gnus-reffed-article-number reffed
gnus-current-score-file score-file
gnus-newsgroup-charset default-charset)
(dolist (local gnus-newsgroup-variables)
(set (if (consp local)
(car local)
local)
(pop vlist)))))))