aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/emulation
diff options
context:
space:
mode:
authorMiles Bader2006-09-05 02:54:22 +0000
committerMiles Bader2006-09-05 02:54:22 +0000
commitaf6ea8ad8d62810d901561ae4a56d89f22ebacf0 (patch)
tree02ee24f2f69b71a0690c99a5b007becf76077f74 /lisp/emulation
parent76e590a3f4d983dbbbf9e1a1bbd7753e251c64a6 (diff)
parent750a6cf4b21da81c1b451b8f4dc898127954c133 (diff)
downloademacs-af6ea8ad8d62810d901561ae4a56d89f22ebacf0.tar.gz
emacs-af6ea8ad8d62810d901561ae4a56d89f22ebacf0.zip
Merge from emacs--devo--0
Patches applied: * emacs--devo--0 (patch 414-422) - Update from CVS - Merge from gnus--rel--5.10 * gnus--rel--5.10 (patch 128-130) - Update from CVS - Merge from emacs--devo--0 Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-108
Diffstat (limited to 'lisp/emulation')
-rw-r--r--lisp/emulation/viper-cmd.el11
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