+2004-03-17 Masatake YAMATO <jet@gyve.org>
+
+ * smerge-mode.el (smerge-popup-context-menu): Put
+ `unwind-protect' arround `overlay-put' and `popup-menu'.
+
2004-03-16 Masatake YAMATO <jet@gyve.org>
* register.el (register): Provide `register' feature.
(popup-menu smerge-mode-menu)
;; Install overlay.
(setq o (make-overlay (match-beginning i) (match-end i)))
- (overlay-put o 'face 'highlight)
- (sit-for 0)
- (popup-menu (if (smerge-check 2)
- smerge-mode-menu
- smerge-context-menu))
- ;; Delete overlay.
- (delete-overlay o))))
+ (unwind-protect
+ (progn
+ (overlay-put o 'face 'highlight)
+ (sit-for 0)
+ (popup-menu (if (smerge-check 2)
+ smerge-mode-menu
+ smerge-context-menu)))
+ ;; Delete overlay.
+ (delete-overlay o)))))
;; There's no conflict at point, the text-props are just obsolete.
(save-excursion
(let ((beg (re-search-backward smerge-end-re nil t))