From: Dave Love Date: Mon, 10 Jan 2000 16:26:35 +0000 (+0000) Subject: (elide-head): Use point-marker, not point. X-Git-Tag: emacs-pretest-21.0.90~5403 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b88a9e9ffe73217a1e8277993d358f2c4db78a68;p=emacs.git (elide-head): Use point-marker, not point. --- 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)