aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Kifer1997-06-20 21:43:44 +0000
committerMichael Kifer1997-06-20 21:43:44 +0000
commitf4ce0bd71e4ddac1e5daf081785b67a8685d8fb4 (patch)
tree1b23beb837035dd30fdd04fd399da645bbde0c06
parent0872e11f1595845e7f3ba2c0d8e53ec7fc0f49e3 (diff)
downloademacs-f4ce0bd71e4ddac1e5daf081785b67a8685d8fb4.tar.gz
emacs-f4ce0bd71e4ddac1e5daf081785b67a8685d8fb4.zip
new version
-rw-r--r--lisp/emulation/viper-mous.el8
-rw-r--r--lisp/emulation/viper.el31
2 files changed, 15 insertions, 24 deletions
diff --git a/lisp/emulation/viper-mous.el b/lisp/emulation/viper-mous.el
index d7e617f8796..4ba05c1790c 100644
--- a/lisp/emulation/viper-mous.el
+++ b/lisp/emulation/viper-mous.el
@@ -66,9 +66,11 @@ or a tripple-click.")
66 66
67;; time interval in millisecond within which successive clicks are 67;; time interval in millisecond within which successive clicks are
68;; considered related 68;; considered related
69(defconst vip-multiclick-timeout (if vip-xemacs-p 69(defconst vip-multiclick-timeout (if (vip-window-display-p)
70 mouse-track-multi-click-time 70 (if vip-xemacs-p
71 double-click-time) 71 mouse-track-multi-click-time
72 double-click-time)
73 500)
72 "*Time interval in millisecond within which successive clicks are 74 "*Time interval in millisecond within which successive clicks are
73considered related.") 75considered related.")
74 76
diff --git a/lisp/emulation/viper.el b/lisp/emulation/viper.el
index ab36617e0f6..2736f50ca35 100644
--- a/lisp/emulation/viper.el
+++ b/lisp/emulation/viper.el
@@ -489,6 +489,12 @@ This startup message appears whenever you load Viper, unless you type `y' now."
489 (add-hook 'basic-mode-hook 'viper-mode) 489 (add-hook 'basic-mode-hook 'viper-mode)
490 (defvar bat-mode-hook) 490 (defvar bat-mode-hook)
491 (add-hook 'bat-mode-hook 'viper-mode) 491 (add-hook 'bat-mode-hook 'viper-mode)
492
493 (defvar asm-mode-hook)
494 (add-hook 'asm-mode-hook 'viper-mode)
495
496 (defvar prolog-mode-hook)
497 (add-hook 'prolog-mode-hook 'viper-mode)
492 498
493 (defvar text-mode-hook) 499 (defvar text-mode-hook)
494 (add-hook 'text-mode-hook 'viper-mode) 500 (add-hook 'text-mode-hook 'viper-mode)
@@ -523,12 +529,6 @@ This startup message appears whenever you load Viper, unless you type `y' now."
523 "Run `vip-change-state-to-vi' after quitting emerge." 529 "Run `vip-change-state-to-vi' after quitting emerge."
524 (vip-change-state-to-vi)) 530 (vip-change-state-to-vi))
525 531
526 (vip-eval-after-load
527 "asm-mode"
528 '(defadvice asm-mode (after vip-asm-mode-ad activate)
529 "Run `vip-change-state-to-vi' on entry."
530 (vip-change-state-to-vi)))
531
532 ;; passwd.el sets up its own buffer, which turns up in Vi mode, 532 ;; passwd.el sets up its own buffer, which turns up in Vi mode,
533 ;; thus overriding the local map. We don't need Vi mode here. 533 ;; thus overriding the local map. We don't need Vi mode here.
534 (vip-eval-after-load 534 (vip-eval-after-load
@@ -536,12 +536,6 @@ This startup message appears whenever you load Viper, unless you type `y' now."
536 '(defadvice read-passwd-1 (before vip-passwd-ad activate) 536 '(defadvice read-passwd-1 (before vip-passwd-ad activate)
537 "Switch to emacs state while reading password." 537 "Switch to emacs state while reading password."
538 (vip-change-state-to-emacs))) 538 (vip-change-state-to-emacs)))
539
540 (vip-eval-after-load
541 "prolog"
542 '(defadvice prolog-mode (after vip-prolog-ad activate)
543 "Switch to Vi state in Prolog mode."
544 (vip-change-state-to-vi)))
545 539
546 ;; Emacs shell, ange-ftp, and comint-based modes 540 ;; Emacs shell, ange-ftp, and comint-based modes
547 (defvar comint-mode-hook) 541 (defvar comint-mode-hook)
@@ -617,15 +611,10 @@ This startup message appears whenever you load Viper, unless you type `y' now."
617 (vip-change-state-to-emacs)) 611 (vip-change-state-to-emacs))
618 612
619 ;; View mode 613 ;; View mode
620 (if vip-emacs-p 614 (defvar view-mode-hook)
621 (progn 615 (defvar view-hook)
622 (defvar view-mode-hook) 616 (add-hook 'view-hook 'vip-change-state-to-emacs)
623 (add-hook 'view-mode-hook 'vip-change-state-to-emacs)) 617 (add-hook 'view-mode-hook 'vip-change-state-to-emacs)
624 (defadvice view-minor-mode (after vip-view-ad activate)
625 "Switch to Emacs state in View mode."
626 (vip-change-state-to-emacs))
627 (defvar view-hook)
628 (add-hook 'view-hook 'vip-change-state-to-emacs))
629 618
630 ;; For VM users. 619 ;; For VM users.
631 ;; Put summary and other VM buffers in Emacs state. 620 ;; Put summary and other VM buffers in Emacs state.