changeset 88329:71fab2ef58c1

(rmail-desc-get-header-display-state): Make sure whole header region is searched for overlays.
author Henrik Enberg <henrik.enberg@telia.com>
date Thu, 09 Mar 2006 02:15:53 +0000
parents 4fdffe8ee492
children d0dbc21ee3cc
files lisp/mail/rmaildesc.el
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/mail/rmaildesc.el	Thu Mar 09 02:15:21 2006 +0000
+++ b/lisp/mail/rmaildesc.el	Thu Mar 09 02:15:53 2006 +0000
@@ -310,7 +310,10 @@
 
 (defun rmail-desc-get-header-display-state (n)
   "Return t if ignorable headers are being displayed, nil otherwise."
-  (null (overlays-at (rmail-desc-get-start n))))
+  (save-excursion
+    (save-restriction
+      (rmail-narrow-to-header n)
+      (null (overlays-in (point-min) (point-max))))))
 
 (defun rmail-desc-get-keyword (attr-index)
   "Return the keyword string associated with ATTR-INDEX."