aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Love2000-01-10 16:26:35 +0000
committerDave Love2000-01-10 16:26:35 +0000
commitb88a9e9ffe73217a1e8277993d358f2c4db78a68 (patch)
tree6ab18a9128b62f65f5ec7c10d6974cc89f7c51f4
parent8321b22a9337d0b1bea77531f20a315ddf99a9b3 (diff)
downloademacs-b88a9e9ffe73217a1e8277993d358f2c4db78a68.tar.gz
emacs-b88a9e9ffe73217a1e8277993d358f2c4db78a68.zip
(elide-head): Use point-marker, not point.
-rw-r--r--lisp/elide-head.el4
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."
93 (when (re-search-forward (caar rest) nil t) 93 (when (re-search-forward (caar rest) nil t)
94 (setq beg (point)) 94 (setq beg (point))
95 (when (re-search-forward (cdar rest) nil t) 95 (when (re-search-forward (cdar rest) nil t)
96 (setq end (point) 96 (setq end (point-marker)
97 rest nil)))) 97 rest nil))))
98 (if rest (setq rest (cdr rest)))) 98 (if rest (setq rest (cdr rest))))
99 (if (not (and beg end)) 99 (if (not (and beg end))
@@ -102,7 +102,7 @@ This is suitable as an entry on `find-file-hooks' or appropriate mode hooks."
102 (goto-char beg) 102 (goto-char beg)
103 (end-of-line) 103 (end-of-line)
104 (if (overlayp elide-head-overlay) 104 (if (overlayp elide-head-overlay)
105 (move-overlay elide-head-overlay (point) end) 105 (move-overlay elide-head-overlay (point-marker) end)
106 (setq elide-head-overlay (make-overlay (point) end))) 106 (setq elide-head-overlay (make-overlay (point) end)))
107 (overlay-put elide-head-overlay 'invisible t) 107 (overlay-put elide-head-overlay 'invisible t)
108 (overlay-put elide-head-overlay 'intangible t) 108 (overlay-put elide-head-overlay 'intangible t)