]> code.delx.au - gnu-emacs/blobdiff - lisp/elide-head.el
(describe-mode): Test mini-mode symbol for being
[gnu-emacs] / lisp / elide-head.el
index cdf72ddda6bf4ada47cc77bc19cffb54069594aa..50c77684ae5dd52d1c1aeec613cf80385157b726 100644 (file)
@@ -103,7 +103,7 @@ This is suitable as an entry on `find-file-hooks' or appropriate mode hooks."
            (end-of-line)
            (if (overlayp elide-head-overlay)
                (move-overlay elide-head-overlay (point-marker) end)
-             (setq elide-head-overlay (make-overlay (point) end)))
+             (setq elide-head-overlay (make-overlay (point-marker) end)))
            (overlay-put elide-head-overlay 'invisible t)
            (overlay-put elide-head-overlay 'intangible t)
            (overlay-put elide-head-overlay 'after-string "...")))))))