]> code.delx.au - gnu-emacs/blobdiff - lisp/elide-head.el
(x_set_frame_parameters): Avoid infinite recursion for
[gnu-emacs] / lisp / elide-head.el
index cdf72ddda6bf4ada47cc77bc19cffb54069594aa..9a23e622c455c5e59223e16e7e236181a14f997b 100644 (file)
@@ -1,4 +1,4 @@
-;;; elid-head.el --- hide headers in files
+;;; elide-head.el --- hide headers in files
 
 ;; Copyright (C) 1999 Free Software Foundation, Inc.
 
@@ -103,9 +103,10 @@ 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 'evaporate t)
            (overlay-put elide-head-overlay 'after-string "...")))))))
 
 (defun elide-head-show ()