Function: gnus-load
gnus-load is a byte-compiled function defined in gnus-start.el.gz.
Signature
(gnus-load FILE)
Documentation
Load FILE, but in such a way that read errors can be reported.
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/gnus-start.el.gz
(defun gnus-load (file)
"Load FILE, but in such a way that read errors can be reported."
(with-temp-buffer
(insert-file-contents file)
(while (not (eobp))
(condition-case type
(let ((form (read (current-buffer))))
(eval form t))
(error
(unless (eq (car type) 'end-of-file)
(let ((errmsg (format "Error in %s line %d" file
(count-lines (point-min) (point)))))
(ding)
(unless (gnus-yes-or-no-p (concat errmsg "; continue? "))
(error "%s" errmsg)))))))))