]> code.delx.au - gnu-emacs/commitdiff
* lisp/mail/rmail.el (rmail-copy-headers):
authorGlenn Morris <rgm@gnu.org>
Tue, 28 Apr 2015 07:09:19 +0000 (00:09 -0700)
committerGlenn Morris <rgm@gnu.org>
Tue, 28 Apr 2015 07:09:19 +0000 (00:09 -0700)
Handle rmail-nonignored-headers being nil.  (Bug#18878)

lisp/mail/rmail.el

index 43abc128c8af48d5f80503400199905f28fe8335..a76c31defafe9fceafcc99ebf39300179f23ea9f 100644 (file)
@@ -2942,7 +2942,8 @@ buffer to the end of the headers."
                              (1+ (match-beginning 0))
                            (point-max))))
              (if (and (looking-at ignored-headers)
-                      (not (looking-at rmail-nonignored-headers)))
+                      (not (and rmail-nonignored-headers
+                                (looking-at rmail-nonignored-headers))))
                  (goto-char lim)
                (append-to-buffer rmail-view-buffer (point) lim)
                (goto-char lim))))