From 2525c8cfab58db2930da0303bc78958e0b4ffdcd Mon Sep 17 00:00:00 2001 From: Henrik Enberg Date: Thu, 9 Mar 2006 02:15:53 +0000 Subject: [PATCH] (rmail-desc-get-header-display-state): Make sure whole header region is searched for overlays. --- lisp/mail/rmaildesc.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lisp/mail/rmaildesc.el b/lisp/mail/rmaildesc.el index 7d2e1ba4efd..cd712bd4f19 100644 --- a/lisp/mail/rmaildesc.el +++ b/lisp/mail/rmaildesc.el @@ -310,7 +310,10 @@ If the attribute is not set, return nil." (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." -- 2.39.5