Mercurial > emacs
diff lisp/emulation/viper-macs.el @ 18172:e145ccc61a22
new version
author | Michael Kifer <kifer@cs.stonybrook.edu> |
---|---|
date | Mon, 09 Jun 1997 04:00:50 +0000 |
parents | e92598964ee6 |
children | 1405083241e8 |
line wrap: on
line diff
--- a/lisp/emulation/viper-macs.el Sun Jun 08 21:45:16 1997 +0000 +++ b/lisp/emulation/viper-macs.el Mon Jun 09 04:00:50 1997 +0000 @@ -28,17 +28,20 @@ (defvar vip-custom-file-name) (defvar vip-current-state) -(eval-when-compile - (let ((load-path (cons (expand-file-name ".") load-path))) - (or (featurep 'viper-util) - (load "viper-util.el" nil nil 'nosuffix)) - (or (featurep 'viper-keym) - (load "viper-keym.el" nil nil 'nosuffix)) - (or (featurep 'viper-mous) - (load "viper-mous.el" nil nil 'nosuffix)) - (or (featurep 'viper-cmd) - (load "viper-cmd.el" nil nil 'nosuffix)) - )) +;; loading happens only in non-interactive compilation +;; in order to spare non-viperized emacs from being viperized +(if noninteractive + (eval-when-compile + (let ((load-path (cons (expand-file-name ".") load-path))) + (or (featurep 'viper-util) + (load "viper-util.el" nil nil 'nosuffix)) + (or (featurep 'viper-keym) + (load "viper-keym.el" nil nil 'nosuffix)) + (or (featurep 'viper-mous) + (load "viper-mous.el" nil nil 'nosuffix)) + (or (featurep 'viper-cmd) + (load "viper-cmd.el" nil nil 'nosuffix)) + ))) ;; end pacifier (require 'viper-util) @@ -317,14 +320,6 @@ -(defadvice start-kbd-macro (after vip-kbd-advice activate) - "Remove Viper's intercepting bindings for C-x ). -This may be needed if the previous `:map' command terminated abnormally." - (define-key vip-vi-intercept-map "\C-x)" nil) - (define-key vip-insert-intercept-map "\C-x)" nil) - (define-key vip-emacs-intercept-map "\C-x)" nil)) - - ;;; Recording, unrecording, executing