diff options
Diffstat (limited to 'lisp/emulation')
| -rw-r--r-- | lisp/emulation/viper-cmd.el | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/lisp/emulation/viper-cmd.el b/lisp/emulation/viper-cmd.el index af757a2a55c..1685b829f64 100644 --- a/lisp/emulation/viper-cmd.el +++ b/lisp/emulation/viper-cmd.el | |||
| @@ -892,12 +892,17 @@ Vi's prefix argument will be used. Otherwise, the prefix argument passed to | |||
| 892 | (t | 892 | (t |
| 893 | ;;(setq ch (read-char-exclusive)) | 893 | ;;(setq ch (read-char-exclusive)) |
| 894 | (setq ch (aref (read-key-sequence nil) 0)) | 894 | (setq ch (aref (read-key-sequence nil) 0)) |
| 895 | (if viper-xemacs-p | ||
| 896 | (setq ch (event-to-character ch))) | ||
| 895 | ;; replace ^M with the newline | 897 | ;; replace ^M with the newline |
| 896 | (if (eq ch ?\C-m) (setq ch ?\n)) | 898 | (if (eq ch ?\C-m) (setq ch ?\n)) |
| 897 | ;; Make sure ^V and ^Q work as quotation chars | 899 | ;; Make sure ^V and ^Q work as quotation chars |
| 898 | (if (memq ch '(?\C-v ?\C-q)) | 900 | (if (memq ch '(?\C-v ?\C-q)) |
| 899 | ;;(setq ch (read-char-exclusive)) | 901 | (progn |
| 900 | (setq ch (aref (read-key-sequence nil) 0)) | 902 | ;;(setq ch (read-char-exclusive)) |
| 903 | (setq ch (aref (read-key-sequence nil) 0)) | ||
| 904 | (if viper-xemacs-p | ||
| 905 | (setq ch (event-to-character ch)))) | ||
| 901 | ) | 906 | ) |
| 902 | (insert ch)) | 907 | (insert ch)) |
| 903 | ) | 908 | ) |
| @@ -1750,7 +1755,7 @@ invokes the command before that, etc." | |||
| 1750 | 1755 | ||
| 1751 | ;; Hook used in viper-undo | 1756 | ;; Hook used in viper-undo |
| 1752 | (defun viper-after-change-undo-hook (beg end len) | 1757 | (defun viper-after-change-undo-hook (beg end len) |
| 1753 | (if undo-in-progress | 1758 | (if (and (boundp 'undo-in-progress) undo-in-progress) |
| 1754 | (setq undo-beg-posn beg | 1759 | (setq undo-beg-posn beg |
| 1755 | undo-end-posn (or end beg)) | 1760 | undo-end-posn (or end beg)) |
| 1756 | ;; some other hooks may be changing various text properties in | 1761 | ;; some other hooks may be changing various text properties in |