aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2009-08-28 04:24:59 +0000
committerStefan Monnier2009-08-28 04:24:59 +0000
commit009fdc2e72c00036815a06bd29c9dbf7add7a0c0 (patch)
tree17c053ef58af71b5aa79887562223551ce9d1ccf
parentb56a5ae0fee0c641a3d874b4cce4c38813b941df (diff)
downloademacs-009fdc2e72c00036815a06bd29c9dbf7add7a0c0.tar.gz
emacs-009fdc2e72c00036815a06bd29c9dbf7add7a0c0.zip
* emulation/viper-init.el (viper-restore-cursor-type):
* emulation/cua-base.el (cua--update-indications): Replace default-cursor-type with (default-value 'cursor-type).
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/emulation/cua-base.el4
-rw-r--r--lisp/emulation/viper-init.el3
3 files changed, 7 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index f69a3f287e3..ada67dc7147 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,9 @@
12009-08-28 Stefan Monnier <monnier@iro.umontreal.ca> 12009-08-28 Stefan Monnier <monnier@iro.umontreal.ca>
2 2
3 * emulation/viper-init.el (viper-restore-cursor-type):
4 * emulation/cua-base.el (cua--update-indications):
5 Replace default-cursor-type with (default-value 'cursor-type).
6
3 * mail/sendmail.el (mail-recover-1): 7 * mail/sendmail.el (mail-recover-1):
4 * international/mule-diag.el (describe-current-coding-system-briefly) 8 * international/mule-diag.el (describe-current-coding-system-briefly)
5 (describe-current-coding-system): 9 (describe-current-coding-system):
diff --git a/lisp/emulation/cua-base.el b/lisp/emulation/cua-base.el
index d74738900e4..a99a3f76250 100644
--- a/lisp/emulation/cua-base.el
+++ b/lisp/emulation/cua-base.el
@@ -1196,8 +1196,8 @@ If ARG is the atom `-', scroll upward by nearly full screen."
1196 (set-cursor-color color)) 1196 (set-cursor-color color))
1197 (if (and type 1197 (if (and type
1198 (symbolp type) 1198 (symbolp type)
1199 (not (eq type default-cursor-type))) 1199 (not (eq type (default-value 'cursor-type))))
1200 (setq default-cursor-type type)))) 1200 (setq-default cursor-type type))))
1201 1201
1202 1202
1203;;; Pre-command hook 1203;;; Pre-command hook
diff --git a/lisp/emulation/viper-init.el b/lisp/emulation/viper-init.el
index 901a73fcecf..0227842b450 100644
--- a/lisp/emulation/viper-init.el
+++ b/lisp/emulation/viper-init.el
@@ -35,7 +35,6 @@
35(defvar default-input-method) 35(defvar default-input-method)
36(defvar describe-current-input-method-function) 36(defvar describe-current-input-method-function)
37(defvar bar-cursor) 37(defvar bar-cursor)
38(defvar default-cursor-type)
39(defvar cursor-type) 38(defvar cursor-type)
40;; end pacifier 39;; end pacifier
41 40
@@ -971,7 +970,7 @@ Should be set in `~/.viper' file."
971 (condition-case nil 970 (condition-case nil
972 (if (featurep 'xemacs) 971 (if (featurep 'xemacs)
973 (set (make-local-variable 'bar-cursor) nil) 972 (set (make-local-variable 'bar-cursor) nil)
974 (setq cursor-type default-cursor-type)) 973 (setq cursor-type (default-value 'cursor-type)))
975 (error nil))) 974 (error nil)))
976 975
977(defun viper-set-insert-cursor-type () 976(defun viper-set-insert-cursor-type ()