]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix the bogus change made 13 years ago (bug#27084)
authorKatsumi Yamaoka <yamaoka@jpl.org>
Thu, 20 Jul 2017 07:16:48 +0000 (07:16 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Thu, 20 Jul 2017 07:16:48 +0000 (07:16 +0000)
* lisp/gnus/gnus-sum.el (gnus-summary-toggle-header):
Fix the way to test if there is no visible header (bug#27084).

lisp/gnus/gnus-sum.el

index 9bdd0c66f5693c5a2e7ef9541f09dce79bcba1ec..f2e51fb225f830914c9606f2b704fc1d0ffcd9c9 100644 (file)
@@ -9780,8 +9780,11 @@ If ARG is a negative number, hide the unwanted header lines."
             (inhibit-point-motion-hooks t)
             (hidden (if (numberp arg)
                         (>= arg 0)
-                      (or (not (looking-at "[^ \t\n]+:"))
-                          (gnus-article-hidden-text-p 'headers))))
+                      (or
+                       ;; The case where there's no visible header
+                       ;; that matches `gnus-visible-headers'.
+                       (looking-at "\n?\\'")
+                       (gnus-article-hidden-text-p 'headers))))
             s e)
        (delete-region (point-min) (point-max))
        (with-current-buffer gnus-original-article-buffer