emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 371565f: Fix the bogus change made 13 years ago (bu


From: Katsumi Yamaoka
Subject: [Emacs-diffs] master 371565f: Fix the bogus change made 13 years ago (bug#27084)
Date: Thu, 20 Jul 2017 03:17:04 -0400 (EDT)

branch: master
commit 371565f7d7746fe5682f4ddc3ab4ea820efccec7
Author: Katsumi Yamaoka <address@hidden>
Commit: Katsumi Yamaoka <address@hidden>

    Fix the bogus change made 13 years ago (bug#27084)
    
    * 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 | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el
index 9bdd0c6..f2e51fb 100644
--- a/lisp/gnus/gnus-sum.el
+++ b/lisp/gnus/gnus-sum.el
@@ -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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]