Function: spam-stat-store-current-buffer

spam-stat-store-current-buffer is a byte-compiled function defined in spam-stat.el.gz.

Signature

(spam-stat-store-current-buffer)

Documentation

Store a copy of the current buffer in spam-stat-buffer.

Source Code

;; Defined in /usr/src/emacs/lisp/gnus/spam-stat.el.gz
;; Hooking into Gnus

(defun spam-stat-store-current-buffer ()
  "Store a copy of the current buffer in `spam-stat-buffer'."
  (let ((buf (current-buffer)))
    (with-current-buffer (get-buffer-create spam-stat-buffer-name)
      (erase-buffer)
      (insert-buffer-substring buf)
      (setq spam-stat-buffer (current-buffer)))))