mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-03 08:30:09 +00:00
Trivial unrmail fix for empty input files.
* lisp/mail/unrmail.el (unrmail): Give an explicit error if the input file has no messages. Fixes: debbugs:10377
This commit is contained in:
parent
c869783d91
commit
665ae8654b
@ -1,5 +1,8 @@
|
||||
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)
|
||||
|
||||
|
@ -66,7 +66,8 @@ For example, invoke `emacs -batch -f batch-unrmail RMAIL'."
|
||||
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))
|
||||
|
Loading…
Reference in New Issue
Block a user