Commit b88a9e9f authored by Dave Love's avatar Dave Love

(elide-head): Use point-marker, not point.

parent 8321b22a
......@@ -93,7 +93,7 @@ This is suitable as an entry on `find-file-hooks' or appropriate mode hooks."
(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))
......@@ -102,7 +102,7 @@ This is suitable as an entry on `find-file-hooks' or appropriate mode hooks."
(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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment