diff options
| author | Glenn Morris | 2007-12-02 21:01:53 +0000 |
|---|---|---|
| committer | Glenn Morris | 2007-12-02 21:01:53 +0000 |
| commit | 694bc3c6e119d0d69ab43304d5fa885a869a77be (patch) | |
| tree | 7178e901ed11417e12a86b675fffebc75396cd44 /lisp/emulation | |
| parent | e83e8ab56f3aa83eea5f4ad45eadc7d08e5a73ed (diff) | |
| download | emacs-694bc3c6e119d0d69ab43304d5fa885a869a77be.tar.gz emacs-694bc3c6e119d0d69ab43304d5fa885a869a77be.zip | |
(top-level): Don't load viper-util when compiling. Move provide
statement to end.
Diffstat (limited to 'lisp/emulation')
| -rw-r--r-- | lisp/emulation/viper-keym.el | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/lisp/emulation/viper-keym.el b/lisp/emulation/viper-keym.el index e453983f496..85a94075720 100644 --- a/lisp/emulation/viper-keym.el +++ b/lisp/emulation/viper-keym.el | |||
| @@ -26,8 +26,6 @@ | |||
| 26 | 26 | ||
| 27 | ;;; Code: | 27 | ;;; Code: |
| 28 | 28 | ||
| 29 | (provide 'viper-keym) | ||
| 30 | |||
| 31 | ;; compiler pacifier | 29 | ;; compiler pacifier |
| 32 | (defvar viper-always) | 30 | (defvar viper-always) |
| 33 | (defvar viper-current-state) | 31 | (defvar viper-current-state) |
| @@ -35,15 +33,6 @@ | |||
| 35 | (defvar viper-expert-level) | 33 | (defvar viper-expert-level) |
| 36 | (defvar viper-ex-style-editing) | 34 | (defvar viper-ex-style-editing) |
| 37 | (defvar viper-ex-style-motion) | 35 | (defvar viper-ex-style-motion) |
| 38 | |||
| 39 | ;; loading happens only in non-interactive compilation | ||
| 40 | ;; in order to spare non-viperized emacs from being viperized | ||
| 41 | (if noninteractive | ||
| 42 | (eval-when-compile | ||
| 43 | (let ((load-path (cons (expand-file-name ".") load-path))) | ||
| 44 | (or (featurep 'viper-util) | ||
| 45 | (load "viper-util.el" nil t 'nosuffix)) | ||
| 46 | ))) | ||
| 47 | ;; end pacifier | 36 | ;; end pacifier |
| 48 | 37 | ||
| 49 | (require 'viper-util) | 38 | (require 'viper-util) |
| @@ -705,6 +694,9 @@ form ((key . function) (key . function) ... )." | |||
| 705 | alist)) | 694 | alist)) |
| 706 | 695 | ||
| 707 | 696 | ||
| 697 | (provide 'viper-keym) | ||
| 698 | |||
| 699 | |||
| 708 | ;;; Local Variables: | 700 | ;;; Local Variables: |
| 709 | ;;; eval: (put 'viper-deflocalvar 'lisp-indent-hook 'defun) | 701 | ;;; eval: (put 'viper-deflocalvar 'lisp-indent-hook 'defun) |
| 710 | ;;; End: | 702 | ;;; End: |