(update_frame_menubar, set_frame_menubar, xmenu_show):
[bpt/emacs.git] / lisp / elide-head.el
index 03e63b9..9cd5920 100644 (file)
@@ -47,6 +47,7 @@
 
 (defgroup elide-head nil
   "Eliding copyright headers and the like in source files."
+  :version "21.1"
   :prefix "elide-head"
   :group 'tools)
 
@@ -92,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))
@@ -101,10 +102,11 @@ 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)
-             (setq elide-head-overlay (make-overlay (point) end)))
+               (move-overlay elide-head-overlay (point-marker) 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 ()