]> git.eshelyaron.com Git - emacs.git/commitdiff
2000-12-25 Michael Kifer <kifer@cs.sunysb.edu>
authorMichael Kifer <kifer@cs.stonybrook.edu>
Mon, 25 Dec 2000 08:02:26 +0000 (08:02 +0000)
committerMichael Kifer <kifer@cs.stonybrook.edu>
Mon, 25 Dec 2000 08:02:26 +0000 (08:02 +0000)
* viper-init (viper-restore-cursor-type): added condition-case
guard.

lisp/emulation/viper-init.el

index d03632004c89b9691c2e48a8caac3792cbe0b305..da020f7ffd488c34a03e4fe01b9bd1d638fd3845 100644 (file)
@@ -970,9 +970,11 @@ Should be set in `~/.viper' file."
   :group 'viper-hooks)
 
 (defun viper-restore-cursor-type ()
-  (if viper-xemacs-p
-      (setq bar-cursor nil)
-    (setq cursor-type default-cursor-type)))
+  (condition-case nil
+      (if viper-xemacs-p
+         (setq bar-cursor nil)
+       (setq cursor-type default-cursor-type))
+    (error)))
 
 (defun viper-set-insert-cursor-type ()
   (if viper-xemacs-p