(update_frame_menubar, set_frame_menubar, xmenu_show):
[bpt/emacs.git] / lisp / elide-head.el
index 8c8d4eb..9cd5920 100644 (file)
@@ -93,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))
@@ -102,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 ()