]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/mail/unrmail.el (unrmail): Tweak previous change.
authorGlenn Morris <rgm@gnu.org>
Tue, 10 Jan 2012 02:22:13 +0000 (21:22 -0500)
committerGlenn Morris <rgm@gnu.org>
Tue, 10 Jan 2012 02:22:13 +0000 (21:22 -0500)
(for trailing whitespace in otherwise empty BABYL files).

lisp/ChangeLog
lisp/mail/unrmail.el

index dfc213738060439757401f0aef66ced638de9f2d..bf229a4acbc0c142ed4694f64731694743ef6fd8 100644 (file)
@@ -1,3 +1,7 @@
+2012-01-10  Glenn Morris  <rgm@gnu.org>
+
+       * mail/unrmail.el (unrmail): Tweak previous change.
+
 2012-01-09  Chong Yidong  <cyd@gnu.org>
 
        * custom.el (custom-safe-themes): Use SHA-256 for hashing.
index 929f97746b0734082aaa39b4d9547f2d52271276..af16bbf8c73f873e40e6b7d1e4a3a7ed0db34bcd 100644 (file)
@@ -66,11 +66,11 @@ For example, invoke `emacs -batch -f batch-unrmail RMAIL'."
          from to)
       (goto-char (point-min))
       (search-forward "\n\^_" nil t)   ; Skip BABYL header.
-      (if (= (setq from (point)) (point-max))
-         (error "The input file contains no messages"))
+      (setq from (point))
       (goto-char (point-max))
       (search-backward "\n\^_" from 'mv)
-      (setq to (point))
+      (if (= from (setq to (point)))
+         (error "The input file contains no messages"))
       (unless (and coding-system
                   (coding-system-p coding-system))
        (setq coding-system