(when (re-search-forward (caar rest) nil t)
(setq beg (point))
(when (re-search-forward (cdar rest) nil t)
- (setq end (point)
+ (setq end (point-marker)
rest nil))))
(if rest (setq rest (cdr rest))))
(if (not (and beg end))
(goto-char beg)
(end-of-line)
(if (overlayp elide-head-overlay)
- (move-overlay elide-head-overlay (point) end)
+ (move-overlay elide-head-overlay (point-marker) end)
(setq elide-head-overlay (make-overlay (point) end)))
(overlay-put elide-head-overlay 'invisible t)
(overlay-put elide-head-overlay 'intangible t)