summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Magne Ingebrigtsen <larsi@gnus.org>2012-04-11 16:26:55 +0200
committerLars Magne Ingebrigtsen <larsi@gnus.org>2012-04-11 16:26:55 +0200
commitb49f886ef4fc71f0f3719edc0e5a14b700df4d5c (patch)
tree4761bef69d2b5e4a5f571f0e64304a41d0863ce5
parenta63067fcfe742d5c16eb53cf1a603e23c37b0a3a (diff)
downloademacs-b49f886ef4fc71f0f3719edc0e5a14b700df4d5c.tar.gz
* vcursor.el (vcursor-move): Increase the priority of the overlay.
Fixes: debbugs:9663
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/vcursor.el7
2 files changed, 9 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index cde2c91be3d..20574a95e9a 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
+2012-04-11 Lars Magne Ingebrigtsen <larsi@gnus.org>
+
+ * vcursor.el (vcursor-move): Increase the priority of the overlay
+ (bug#9663).
+
2012-04-11 Deniz Dogan <deniz.a.m.dogan@gmail.com>
* net/rcirc.el (rcirc-kill-channel-buffers): New variable.
diff --git a/lisp/vcursor.el b/lisp/vcursor.el
index 95928ebe87a..19cb7a9df8d 100644
--- a/lisp/vcursor.el
+++ b/lisp/vcursor.el
@@ -656,12 +656,13 @@ another window. With LEAVE-W, use the current `vcursor-window'."
(or window-system
(display-color-p)
(overlay-put vcursor-overlay 'before-string vcursor-string))
- (overlay-put vcursor-overlay 'face 'vcursor))
+ (overlay-put vcursor-overlay 'face 'vcursor)
+ ;; 200 is purely an arbitrary "high" number. See bug#9663.
+ (overlay-put vcursor-overlay 'priority 200))
(or leave-w (vcursor-find-window nil t))
;; vcursor-window now contains the right buffer
(or (pos-visible-in-window-p pt vcursor-window)
- (set-window-point vcursor-window pt)))
- )
+ (set-window-point vcursor-window pt))))
(defun vcursor-insert (text)
"Insert TEXT, respecting `vcursor-interpret-input'."