changeset 27264:7c1aca21377a

(elide-head): Use point-marker, not point.
author Dave Love <fx@gnu.org>
date Mon, 10 Jan 2000 16:26:35 +0000
parents 8fe795290d2f
children bf497204328f
files lisp/elide-head.el
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/elide-head.el	Mon Jan 10 13:29:53 2000 +0000
+++ b/lisp/elide-head.el	Mon Jan 10 16:26:35 2000 +0000
@@ -93,7 +93,7 @@
 	      (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 @@
 	    (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)