* viper.el: date change.
* viper-cmd.el (viper-envelop-ESC-key):
viper-translate-all-ESC-keysequences is now a function.
* viper-init (viper-translate-all-ESC-keysequences): make this variable
+2008-11-22 Michael Kifer <kifer@cs.stonybrook.edu>
+
+ * viper.el: date change.
+
+ * viper-cmd.el (viper-envelop-ESC-key):
+ viper-translate-all-ESC-keysequences is now a function.
+
+ * viper-init (viper-translate-all-ESC-keysequences): make this variable
+
2008-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
* vc-hooks.el (vc-follow-link, vc-find-file-hook):
(let* ((first-key (elt keyseq 0))
(key-mod (event-modifiers first-key)))
(cond ((and (viper-ESC-event-p first-key)
- (not viper-translate-all-ESC-keysequences))
+ (not (viper-translate-all-ESC-keysequences)))
;; put keys following ESC on the unread list
;; and return ESC as the key-sequence
(viper-set-unread-command-events (viper-subseq keyseq 1))
:type 'integer
:group 'viper-misc)
-(defcustom viper-translate-all-ESC-keysequences (not (viper-window-display-p))
- "Allow translation of all key sequences into commands.
-Normally, Viper lets Emacs translate only those ESC key sequences that are
-defined in the low-level key-translation-map or function-key-map, such as those
-emitted by the arrow and function keys. Other sequences, e.g., \\e/, are
-treated as ESC command followed by a `/'. This is done for people who type fast
-and tend to hit other characters right after they hit ESC. Other people like
-Emacs to translate ESC sequences all the time.
-The default is to translate all sequences only when using a dumb terminal.
-This permits you to use ESC as a meta key in insert mode."
- :type 'boolean
- :group 'viper-misc)
+;; This function determines if ESC key sequences are to be translated into
+;; commands.
+(defun viper-translate-all-ESC-keysequences ()
+ (not (viper-window-display-p)))
;; Modes and related variables
;; filed in the Emacs bug reporting system against this file, a copy
;; of the bug report be sent to the maintainer's email address.
-(defconst viper-version "3.14 of November 16, 2008"
+(defconst viper-version "3.14 of November 22, 2008"
"The current version of Viper")
;; This file is part of GNU Emacs.