diff options
| author | Michael Kifer | 2000-12-25 08:02:26 +0000 |
|---|---|---|
| committer | Michael Kifer | 2000-12-25 08:02:26 +0000 |
| commit | bea3997a05a027bcd8a066edd6044d1c9336a4ed (patch) | |
| tree | 34d0d5b1d7eace26440e15bf275f7c9a3e8749eb | |
| parent | 7261ece3c08f89db35cd3f486b02fb71249df240 (diff) | |
| download | emacs-bea3997a05a027bcd8a066edd6044d1c9336a4ed.tar.gz emacs-bea3997a05a027bcd8a066edd6044d1c9336a4ed.zip | |
2000-12-25 Michael Kifer <kifer@cs.sunysb.edu>
* viper-init (viper-restore-cursor-type): added condition-case
guard.
| -rw-r--r-- | lisp/emulation/viper-init.el | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lisp/emulation/viper-init.el b/lisp/emulation/viper-init.el index d03632004c8..da020f7ffd4 100644 --- a/lisp/emulation/viper-init.el +++ b/lisp/emulation/viper-init.el | |||
| @@ -970,9 +970,11 @@ Should be set in `~/.viper' file." | |||
| 970 | :group 'viper-hooks) | 970 | :group 'viper-hooks) |
| 971 | 971 | ||
| 972 | (defun viper-restore-cursor-type () | 972 | (defun viper-restore-cursor-type () |
| 973 | (if viper-xemacs-p | 973 | (condition-case nil |
| 974 | (setq bar-cursor nil) | 974 | (if viper-xemacs-p |
| 975 | (setq cursor-type default-cursor-type))) | 975 | (setq bar-cursor nil) |
| 976 | (setq cursor-type default-cursor-type)) | ||
| 977 | (error))) | ||
| 976 | 978 | ||
| 977 | (defun viper-set-insert-cursor-type () | 979 | (defun viper-set-insert-cursor-type () |
| 978 | (if viper-xemacs-p | 980 | (if viper-xemacs-p |