2008-11-22 Michael Kifer <kifer@cs.stonybrook.edu>
authorMichael Kifer <kifer@cs.stonybrook.edu>
Sat, 22 Nov 2008 06:29:09 +0000 (06:29 +0000)
committerMichael Kifer <kifer@cs.stonybrook.edu>
Sat, 22 Nov 2008 06:29:09 +0000 (06:29 +0000)
* 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

lisp/ChangeLog
lisp/emulation/viper-cmd.el
lisp/emulation/viper-init.el
lisp/emulation/viper.el

index f4457b0..45ce93e 100644 (file)
@@ -1,3 +1,12 @@
+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):
index a6e7339..4b5fc4b 100644 (file)
@@ -1046,7 +1046,7 @@ as a Meta key and any number of multiple escapes is allowed."
                (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))
index 9894ec8..856f8e7 100644 (file)
@@ -525,18 +525,10 @@ will make it hard to use Vi-style timeout macros."
   :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
 
index 25d7af9..36420a2 100644 (file)
@@ -14,7 +14,7 @@
 ;; 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.