all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#9663: 23.2; feature wish: put priority on vcursor overlay
@ 2011-10-03 19:48 Hendrik Tews
  2011-10-06  4:10 ` Kevin Rodgers
  0 siblings, 1 reply; 14+ messages in thread
From: Hendrik Tews @ 2011-10-03 19:48 UTC (permalink / raw)
  To: 9663

Hi,

the vcursor is invisible in the locked regions of Proof General,
because the overlay of the locked region has priority 100 and the
vcursor overlay has no priority set. 

Below I attach a patch that adds a defcustom
vcursor-overlay-priority to the vcursor package, which fixes this
problem. (I hereby assign copyright in this patch to the emacs
project/FSF.)

Bye,

Hendrik Tews


*** vcursor-23.2.el     2011-10-03 21:33:10.000000000 +0200
--- vcursor.el  2011-10-03 21:29:59.000000000 +0200
*************** scrolling set this.  It is used by the `
*** 508,513 ****
--- 508,521 ----
    :type 'boolean
    :group 'vcursor)
  
+ (defcustom vcursor-overlay-priority 500
+   "Priority of the overlay that symbolizes the vcursor.
+ Increase this value if the vcursor becomes invisible when moving
+ into other specifically colored regions of text."
+   :type 'integer
+   :group 'vcursor
+   :version "23.4")
+ 
  (defvar vcursor-temp-goal-column nil
    "Keeps track of temporary goal columns for the virtual cursor.")
  
*************** another window.  With LEAVE-W, use the c
*** 657,663 ****
        (or window-system
          (display-color-p)
          (overlay-put vcursor-overlay 'before-string vcursor-string))
!       (overlay-put vcursor-overlay 'face 'vcursor))
      (or leave-w (vcursor-find-window nil t))
      ;; vcursor-window now contains the right buffer
      (or (pos-visible-in-window-p pt vcursor-window)
--- 665,672 ----
        (or window-system
          (display-color-p)
          (overlay-put vcursor-overlay 'before-string vcursor-string))
!       (overlay-put vcursor-overlay 'face 'vcursor)
!       (overlay-put vcursor-overlay 'priority vcursor-overlay-priority))
      (or leave-w (vcursor-find-window nil t))
      ;; vcursor-window now contains the right buffer
      (or (pos-visible-in-window-p pt vcursor-window)





^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2012-04-11 14:27 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-03 19:48 bug#9663: 23.2; feature wish: put priority on vcursor overlay Hendrik Tews
2011-10-06  4:10 ` Kevin Rodgers
2011-11-01  8:57   ` Hendrik Tews
2011-11-01 19:59     ` Stefan Monnier
2011-11-01 21:23       ` Hendrik Tews
2011-11-02  1:19         ` Stefan Monnier
2011-11-02  7:37           ` Hendrik Tews
2012-04-11 11:35         ` Lars Magne Ingebrigtsen
2012-04-11 11:54           ` Hendrik Tews
2012-04-11 12:22             ` Eli Zaretskii
2012-04-11 13:25               ` Hendrik Tews
2012-04-11 13:43                 ` Stefan Monnier
2012-04-11 14:14                 ` Eli Zaretskii
2012-04-11 14:27                   ` Lars Magne Ingebrigtsen

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.