Function: viper-set-cursor-color-according-to-state
viper-set-cursor-color-according-to-state is a byte-compiled function
defined in viper-util.el.gz.
Signature
(viper-set-cursor-color-according-to-state &optional FRAME)
Source Code
;; Defined in /usr/src/emacs/lisp/emulation/viper-util.el.gz
;; Note that the colors this function uses might not be those
;; associated with FRAME, if there are frame-local values.
;; This was equally true before the advent of viper-frame-value.
;; Now it could be changed by passing frame to v-f-v.
(defun viper-set-cursor-color-according-to-state (&optional frame)
(cond ((eq viper-current-state 'replace-state)
(viper-change-cursor-color
(viper-frame-value viper-replace-overlay-cursor-color)
frame))
((and (eq viper-current-state 'emacs-state)
(viper-frame-value viper-emacs-state-cursor-color))
(viper-change-cursor-color
(viper-frame-value viper-emacs-state-cursor-color)
frame))
((eq viper-current-state 'insert-state)
(viper-change-cursor-color
(viper-frame-value viper-insert-state-cursor-color)
frame))
(t
(viper-change-cursor-color
(viper-frame-value viper-vi-state-cursor-color)
frame))))