* lisp/gnus/gnus-sum.el (gnus-summary-toggle-header):
Fix the way to test if there is no visible header (bug#27084).
(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