buffer-invisibility-spec is t (i.e. not a list).
(while overlays
(setq o (car overlays)
invis-prop (overlay-get o 'invisible))
- (if (or (memq invis-prop buffer-invisibility-spec)
- (assq invis-prop buffer-invisibility-spec))
+ (if (if (eq buffer-invisibility-spec t)
+ invis-prop
+ (or (memq invis-prop buffer-invisibility-spec)
+ (assq invis-prop buffer-invisibility-spec)))
(if (overlay-get o 'isearch-open-invisible)
(setq ov-list (cons o ov-list))
;; We found one overlay that cannot be