* lisp/mail/unrmail.el (unrmail): Give an explicit error if the input
file has no messages.
Fixes: debbugs:10377
2012-01-06 Glenn Morris <rgm@gnu.org>
+ * mail/unrmail.el (unrmail): Give an explicit error if the input file
+ has no messages. (Bug#10377)
+
* info.el (Info-mode-map): Bind e to end-of-buffer, rather
than Info-edit. (Bug#10385)
from to)
(goto-char (point-min))
(search-forward "\n\^_" nil t) ; Skip BABYL header.
- (setq from (point))
+ (if (= (setq from (point)) (point-max))
+ (error "The input file contains no messages"))
(goto-char (point-max))
(search-backward "\n\^_" from 'mv)
(setq to (point))