diff options
| author | Glenn Morris | 2014-10-29 22:15:28 -0700 |
|---|---|---|
| committer | Glenn Morris | 2014-10-29 22:15:28 -0700 |
| commit | 52b410c60aebeb769ec9580af25ca50df2a44751 (patch) | |
| tree | ba5de0b896c5ea410ceb2f2f1866c0fac73ea236 /lisp/emulation | |
| parent | cc99f920f507d28bb1422f8a3d52723ddc734c8a (diff) | |
| parent | 237bf45a48999d5a8a3617822dddf3ea305bc269 (diff) | |
| download | emacs-52b410c60aebeb769ec9580af25ca50df2a44751.tar.gz emacs-52b410c60aebeb769ec9580af25ca50df2a44751.zip | |
Merge from emacs-24; up to 117634
Diffstat (limited to 'lisp/emulation')
| -rw-r--r-- | lisp/emulation/viper-util.el | 2 | ||||
| -rw-r--r-- | lisp/emulation/viper.el | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/lisp/emulation/viper-util.el b/lisp/emulation/viper-util.el index 178b23e1fca..4e3b71e3104 100644 --- a/lisp/emulation/viper-util.el +++ b/lisp/emulation/viper-util.el | |||
| @@ -984,7 +984,7 @@ Otherwise return the normal value." | |||
| 984 | ;; macros, since it enables certain macros to be shared between X and TTY modes | 984 | ;; macros, since it enables certain macros to be shared between X and TTY modes |
| 985 | ;; by correctly mapping key sequences for Left/Right/... (on an ascii | 985 | ;; by correctly mapping key sequences for Left/Right/... (on an ascii |
| 986 | ;; terminal) into logical keys left, right, etc. | 986 | ;; terminal) into logical keys left, right, etc. |
| 987 | (defun viper-read-key () | 987 | (defun viper-read-key () ;; FIXME: Use `read-key'? |
| 988 | (let ((overriding-local-map viper-overriding-map) | 988 | (let ((overriding-local-map viper-overriding-map) |
| 989 | (inhibit-quit t) | 989 | (inhibit-quit t) |
| 990 | help-char key) | 990 | help-char key) |
diff --git a/lisp/emulation/viper.el b/lisp/emulation/viper.el index d1353bdc8fa..c7394e1cea5 100644 --- a/lisp/emulation/viper.el +++ b/lisp/emulation/viper.el | |||
| @@ -531,6 +531,7 @@ If Viper is enabled, turn it off. Otherwise, turn it on." | |||
| 531 | (if viper-mode | 531 | (if viper-mode |
| 532 | () | 532 | () |
| 533 | (setq viper-mode t) | 533 | (setq viper-mode t) |
| 534 | ;; FIXME: Don't reload! | ||
| 534 | (load-library "viper")) | 535 | (load-library "viper")) |
| 535 | 536 | ||
| 536 | (if viper-first-time ; Important check. Prevents mix-up of startup | 537 | (if viper-first-time ; Important check. Prevents mix-up of startup |
| @@ -887,6 +888,7 @@ Two differences: | |||
| 887 | ;; When viper-mode is executed in such a case, it will set the major mode | 888 | ;; When viper-mode is executed in such a case, it will set the major mode |
| 888 | ;; back to fundamental-mode. | 889 | ;; back to fundamental-mode. |
| 889 | (if (eq (default-value 'major-mode) 'fundamental-mode) | 890 | (if (eq (default-value 'major-mode) 'fundamental-mode) |
| 891 | ;; FIXME: We should use after-change-major-mode-hook instead! | ||
| 890 | (setq-default major-mode 'viper-mode)) | 892 | (setq-default major-mode 'viper-mode)) |
| 891 | 893 | ||
| 892 | (viper-setup-ESC-to-escape t) | 894 | (viper-setup-ESC-to-escape t) |
| @@ -936,6 +938,7 @@ Two differences: | |||
| 936 | 938 | ||
| 937 | (defadvice self-insert-command (around viper-self-insert-ad activate) | 939 | (defadvice self-insert-command (around viper-self-insert-ad activate) |
| 938 | "Ignore all self-inserting keys in the vi-state." | 940 | "Ignore all self-inserting keys in the vi-state." |
| 941 | ;; FIXME: Use remapping? | ||
| 939 | (if (and (eq viper-current-state 'vi-state) | 942 | (if (and (eq viper-current-state 'vi-state) |
| 940 | ;; Do not use called-interactively-p here. XEmacs does not have it | 943 | ;; Do not use called-interactively-p here. XEmacs does not have it |
| 941 | ;; and interactive-p is just fine. | 944 | ;; and interactive-p is just fine. |