diff options
Diffstat (limited to 'lisp/elide-head.el')
-rw-r--r-- | lisp/elide-head.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/elide-head.el b/lisp/elide-head.el index 8c8d4eb2c93..cdf72ddda6b 100644 --- a/lisp/elide-head.el +++ b/lisp/elide-head.el @@ -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) |