diff options
Diffstat (limited to 'lisp/emulation')
| -rw-r--r-- | lisp/emulation/tpu-mapper.el | 2 | ||||
| -rw-r--r-- | lisp/emulation/vi.el | 2 | ||||
| -rw-r--r-- | lisp/emulation/viper-keym.el | 19 | ||||
| -rw-r--r-- | lisp/emulation/viper.el | 7 | ||||
| -rw-r--r-- | lisp/emulation/ws-mode.el | 2 |
5 files changed, 21 insertions, 11 deletions
diff --git a/lisp/emulation/tpu-mapper.el b/lisp/emulation/tpu-mapper.el index 68a760e2011..db2daf09093 100644 --- a/lisp/emulation/tpu-mapper.el +++ b/lisp/emulation/tpu-mapper.el | |||
| @@ -375,7 +375,7 @@ | |||
| 375 | ;;; | 375 | ;;; |
| 376 | ;;; Load the newly defined keys and clean up | 376 | ;;; Load the newly defined keys and clean up |
| 377 | ;;; | 377 | ;;; |
| 378 | (eval-current-buffer) | 378 | (eval-buffer) |
| 379 | (kill-buffer (current-buffer)) | 379 | (kill-buffer (current-buffer)) |
| 380 | (kill-buffer "*scratch*") | 380 | (kill-buffer "*scratch*") |
| 381 | (kill-buffer "Gold-Keys") | 381 | (kill-buffer "Gold-Keys") |
diff --git a/lisp/emulation/vi.el b/lisp/emulation/vi.el index 70a52617431..cd0092e5e87 100644 --- a/lisp/emulation/vi.el +++ b/lisp/emulation/vi.el | |||
| @@ -403,7 +403,7 @@ form that is ready to be `apply'ed.") | |||
| 403 | (make-local-variable 'vi-mode-old-mode-name) | 403 | (make-local-variable 'vi-mode-old-mode-name) |
| 404 | (make-local-variable 'vi-mode-old-major-mode) | 404 | (make-local-variable 'vi-mode-old-major-mode) |
| 405 | (make-local-variable 'vi-mode-old-case-fold) | 405 | (make-local-variable 'vi-mode-old-case-fold) |
| 406 | (run-hooks 'vi-mode-hook)) | 406 | (run-mode-hooks 'vi-mode-hook)) |
| 407 | 407 | ||
| 408 | ;;;###autoload | 408 | ;;;###autoload |
| 409 | (defun vi-mode () | 409 | (defun vi-mode () |
diff --git a/lisp/emulation/viper-keym.el b/lisp/emulation/viper-keym.el index a74ca05b3df..f14f67d94c8 100644 --- a/lisp/emulation/viper-keym.el +++ b/lisp/emulation/viper-keym.el | |||
| @@ -50,16 +50,25 @@ | |||
| 50 | 50 | ||
| 51 | ;;; Variables | 51 | ;;; Variables |
| 52 | 52 | ||
| 53 | (defvar viper-toggle-key "\C-z" | 53 | (defcustom viper-toggle-key "\C-z" |
| 54 | "The key used to change states from emacs to Vi and back. | 54 | "The key used to change states from emacs to Vi and back. |
| 55 | In insert mode, this key also functions as Meta. | 55 | In insert mode, this key also functions as Meta. |
| 56 | Must be set in .viper file or prior to loading Viper. | 56 | Must be set in .viper file or prior to loading Viper. |
| 57 | This setting cannot be changed interactively.") | 57 | This setting cannot be changed interactively." |
| 58 | :type 'string | ||
| 59 | :group 'viper) | ||
| 60 | |||
| 61 | (defcustom viper-quoted-insert-key "\C-v" | ||
| 62 | "The key used to quote special characters when inserting them in Insert state." | ||
| 63 | :type 'string | ||
| 64 | :group 'viper) | ||
| 58 | 65 | ||
| 59 | (defvar viper-ESC-key "\e" | 66 | (defcustom viper-ESC-key "\e" |
| 60 | "Key used to ESC. | 67 | "Key used to ESC. |
| 61 | Must be set in .viper file or prior to loading Viper. | 68 | Must be set in .viper file or prior to loading Viper. |
| 62 | This setting cannot be changed interactively.") | 69 | This setting cannot be changed interactively." |
| 70 | :type 'string | ||
| 71 | :group 'viper) | ||
| 63 | 72 | ||
| 64 | ;;; Emacs keys in other states. | 73 | ;;; Emacs keys in other states. |
| 65 | 74 | ||
| @@ -242,7 +251,7 @@ viper-insert-basic-map. Not recommended, except for novice users.") | |||
| 242 | (define-key viper-insert-basic-map "\C-t" 'viper-forward-indent) | 251 | (define-key viper-insert-basic-map "\C-t" 'viper-forward-indent) |
| 243 | (define-key viper-insert-basic-map | 252 | (define-key viper-insert-basic-map |
| 244 | (if viper-xemacs-p [(shift tab)] [S-tab]) 'viper-insert-tab) | 253 | (if viper-xemacs-p [(shift tab)] [S-tab]) 'viper-insert-tab) |
| 245 | (define-key viper-insert-basic-map "\C-v" 'quoted-insert) | 254 | (define-key viper-insert-basic-map viper-quoted-insert-key 'quoted-insert) |
| 246 | (define-key viper-insert-basic-map "\C-?" 'viper-del-backward-char-in-insert) | 255 | (define-key viper-insert-basic-map "\C-?" 'viper-del-backward-char-in-insert) |
| 247 | (define-key viper-insert-basic-map [backspace] 'viper-del-backward-char-in-insert) | 256 | (define-key viper-insert-basic-map [backspace] 'viper-del-backward-char-in-insert) |
| 248 | (define-key viper-insert-basic-map "\C-\\" 'viper-alternate-Meta-key) | 257 | (define-key viper-insert-basic-map "\C-\\" 'viper-alternate-Meta-key) |
diff --git a/lisp/emulation/viper.el b/lisp/emulation/viper.el index e3582f2165a..3fdbccc2957 100644 --- a/lisp/emulation/viper.el +++ b/lisp/emulation/viper.el | |||
| @@ -990,12 +990,13 @@ remains buffer-local." | |||
| 990 | (setq global-mode-string | 990 | (setq global-mode-string |
| 991 | (append '("" viper-mode-string) (cdr global-mode-string)))) | 991 | (append '("" viper-mode-string) (cdr global-mode-string)))) |
| 992 | 992 | ||
| 993 | (defadvice describe-key (before viper-read-keyseq-ad protect activate) | 993 | (defadvice describe-key (before viper-describe-key-ad protect activate) |
| 994 | "Force to read key via `viper-read-key-sequence'." | 994 | "Force to read key via `viper-read-key-sequence'." |
| 995 | (interactive (list (viper-read-key-sequence "Describe key: ")))) | 995 | (interactive (list (viper-read-key-sequence "Describe key: ")) |
| 996 | )) | ||
| 996 | 997 | ||
| 997 | (defadvice describe-key-briefly | 998 | (defadvice describe-key-briefly |
| 998 | (before viper-read-keyseq-ad protect activate) | 999 | (before viper-describe-key-briefly-ad protect activate) |
| 999 | "Force to read key via `viper-read-key-sequence'." | 1000 | "Force to read key via `viper-read-key-sequence'." |
| 1000 | (interactive (list (viper-read-key-sequence "Describe key briefly: ")))) | 1001 | (interactive (list (viper-read-key-sequence "Describe key briefly: ")))) |
| 1001 | 1002 | ||
diff --git a/lisp/emulation/ws-mode.el b/lisp/emulation/ws-mode.el index 54be36299c5..482753f111e 100644 --- a/lisp/emulation/ws-mode.el +++ b/lisp/emulation/ws-mode.el | |||
| @@ -294,7 +294,7 @@ The key bindings are: | |||
| 294 | (use-local-map wordstar-mode-map) | 294 | (use-local-map wordstar-mode-map) |
| 295 | (setq mode-name "WordStar") | 295 | (setq mode-name "WordStar") |
| 296 | (setq major-mode 'wordstar-mode) | 296 | (setq major-mode 'wordstar-mode) |
| 297 | (run-hooks 'wordstar-mode-hook)) | 297 | (run-mode-hooks 'wordstar-mode-hook)) |
| 298 | 298 | ||
| 299 | 299 | ||
| 300 | (defun wordstar-center-paragraph () | 300 | (defun wordstar-center-paragraph () |