Function: with-spam-stat-max-buffer-size

with-spam-stat-max-buffer-size is a macro defined in spam-stat.el.gz.

Signature

(with-spam-stat-max-buffer-size &rest BODY)

Documentation

Narrow the buffer down to the first 4k characters, then evaluate BODY.

Source Code

;; Defined in /usr/src/emacs/lisp/gnus/spam-stat.el.gz
;; Parsing

(defmacro with-spam-stat-max-buffer-size (&rest body)
  "Narrow the buffer down to the first 4k characters, then evaluate BODY."
  `(save-restriction
     (when (> (- (point-max)
		 (point-min))
	      spam-stat-max-buffer-length)
       (narrow-to-region (point-min)
			 (+ (point-min) spam-stat-max-buffer-length)))
     ,@body))