diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2014-10-20 18:35:43 -0400 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2014-10-20 18:35:43 -0400 |
commit | 3b1f2e09998262fb103c9d2dee3383746977d1d1 (patch) | |
tree | 9063dad581bae2ce35f6794fa42b7437d3ad0308 /lisp/emulation/viper.el | |
parent | 2d8e7d1d0367cb9de1956224503afeaa2d4563cd (diff) | |
download | emacs-3b1f2e09998262fb103c9d2dee3383746977d1d1.tar.gz |
* list/emulation/viper: Add some FIXME comments.
Diffstat (limited to 'lisp/emulation/viper.el')
-rw-r--r-- | lisp/emulation/viper.el | 3 |
1 files changed, 3 insertions, 0 deletions
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." (if viper-mode () (setq viper-mode t) + ;; FIXME: Don't reload! (load-library "viper")) (if viper-first-time ; Important check. Prevents mix-up of startup @@ -887,6 +888,7 @@ Two differences: ;; When viper-mode is executed in such a case, it will set the major mode ;; back to fundamental-mode. (if (eq (default-value 'major-mode) 'fundamental-mode) + ;; FIXME: We should use after-change-major-mode-hook instead! (setq-default major-mode 'viper-mode)) (viper-setup-ESC-to-escape t) @@ -936,6 +938,7 @@ Two differences: (defadvice self-insert-command (around viper-self-insert-ad activate) "Ignore all self-inserting keys in the vi-state." + ;; FIXME: Use remapping? (if (and (eq viper-current-state 'vi-state) ;; Do not use called-interactively-p here. XEmacs does not have it ;; and interactive-p is just fine. |