[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/emulation/vip.el
From: |
Juanma Barranquero |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/emulation/vip.el |
Date: |
Tue, 04 Feb 2003 07:56:08 -0500 |
Index: emacs/lisp/emulation/vip.el
diff -c emacs/lisp/emulation/vip.el:1.26 emacs/lisp/emulation/vip.el:1.27
*** emacs/lisp/emulation/vip.el:1.26 Mon Jul 16 08:22:59 2001
--- emacs/lisp/emulation/vip.el Tue Feb 4 07:56:02 2003
***************
*** 49,55 ****
(defvar vip-insert-local-map nil
"Local map used in insert command mode. (Buffer-specific.)")
!
(make-variable-buffer-local 'vip-emacs-local-map)
(make-variable-buffer-local 'vip-insert-local-map)
--- 49,55 ----
(defvar vip-insert-local-map nil
"Local map used in insert command mode. (Buffer-specific.)")
!
(make-variable-buffer-local 'vip-emacs-local-map)
(make-variable-buffer-local 'vip-insert-local-map)
***************
*** 113,119 ****
(defvar vip-f-forward nil
"For use by \";\" command.")
!
(defvar vip-f-offset nil
"For use by \";\" command.")
--- 113,119 ----
(defvar vip-f-forward nil
"For use by \";\" command.")
!
(defvar vip-f-offset nil
"For use by \";\" command.")
***************
*** 378,384 ****
'delete-backward-char))
(define-key vip-insert-local-map "\C-w"
'vip-delete-backward-word))
! ((eq new-mode 'emacs-mode)
(vip-change-mode-line "Emacs:")
(use-local-map vip-emacs-local-map)))
(setq vip-current-mode new-mode)
--- 378,384 ----
'delete-backward-char))
(define-key vip-insert-local-map "\C-w"
'vip-delete-backward-word))
! ((eq new-mode 'emacs-mode)
(vip-change-mode-line "Emacs:")
(use-local-map vip-emacs-local-map)))
(setq vip-current-mode new-mode)
***************
*** 508,514 ****
"Compute numeric prefix arg value. Invoked by CHAR. VALUE is the value
obtained so far, and COM is the command part obtained so far."
(while (and (>= char ?0) (<= char ?9))
! (setq value (+ (* (if (numberp value) value 0) 10) (- char ?0)))
(setq char (read-char)))
(setq prefix-arg value)
(if com (setq prefix-arg (cons prefix-arg com)))
--- 508,514 ----
"Compute numeric prefix arg value. Invoked by CHAR. VALUE is the value
obtained so far, and COM is the command part obtained so far."
(while (and (>= char ?0) (<= char ?9))
! (setq value (+ (* (if (numberp value) value 0) 10) (- char ?0)))
(setq char (read-char)))
(setq prefix-arg value)
(if com (setq prefix-arg (cons prefix-arg com)))
***************
*** 561,567 ****
(setq com char)
(setq char (read-char)))))))
(if (atom com)
! ;; com is a single char, so we construct prefix-arg
;; and if char is ?, describe prefix arg, otherwise exit by
;; pushing the char back
(progn
--- 561,567 ----
(setq com char)
(setq char (read-char)))))))
(if (atom com)
! ;; com is a single char, so we construct prefix-arg
;; and if char is ?, describe prefix arg, otherwise exit by
;; pushing the char back
(progn
***************
*** 615,621 ****
(interactive "P")
(condition-case conditions
(vip-prefix-arg-com
! last-command-char
(cond ((null arg) nil)
((consp arg) (car arg))
((numberp arg) arg)
--- 615,621 ----
(interactive "P")
(condition-case conditions
(vip-prefix-arg-com
! last-command-char
(cond ((null arg) nil)
((consp arg) (car arg))
((numberp arg) arg)
***************
*** 935,941 ****
command was invoked with argument > 1."
(let ((i-com (car vip-d-com)) (val (car (cdr vip-d-com))))
(if (and val (> val 1)) ;; first check that val is non-nil
! (progn
(setq vip-d-com (list i-com (1- val) ?r))
(vip-repeat nil)
(setq vip-d-com (list i-com val ?r))))))
--- 935,941 ----
command was invoked with argument > 1."
(let ((i-com (car vip-d-com)) (val (car (cdr vip-d-com))))
(if (and val (> val 1)) ;; first check that val is non-nil
! (progn
(setq vip-d-com (list i-com (1- val) ?r))
(vip-repeat nil)
(setq vip-d-com (list i-com val ?r))))))
***************
*** 1037,1043 ****
(vip-change-subr (mark) (point))
(vip-change (mark) (point))))
(setq vip-d-com (list 'vip-substitute val ?r))))
!
(defun vip-substitute-line (arg)
"Substitute lines."
(interactive "p")
--- 1037,1043 ----
(vip-change-subr (mark) (point))
(vip-change (mark) (point))))
(setq vip-d-com (list 'vip-substitute val ?r))))
!
(defun vip-substitute-line (arg)
"Substitute lines."
(interactive "p")
***************
*** 1057,1063 ****
(interactive "P")
(let ((val (vip-p-val arg)))
(vip-line (cons val ?Y))))
!
;; region command
--- 1057,1063 ----
(interactive "P")
(let ((val (vip-p-val arg)))
(vip-line (cons val ?Y))))
!
;; region command
***************
*** 1076,1082 ****
(move-marker vip-com-point (point))
(exchange-point-and-mark)
(vip-execute-com 'vip-Region val com)))
!
(defun vip-replace-char (arg)
"Replace the following ARG chars by the character read."
(interactive "P")
--- 1076,1082 ----
(move-marker vip-com-point (point))
(exchange-point-and-mark)
(vip-execute-com 'vip-Region val com)))
!
(defun vip-replace-char (arg)
"Replace the following ARG chars by the character read."
(interactive "P")
***************
*** 1171,1177 ****
(progn
(forward-char)
(vip-execute-com 'vip-end-of-word val com)))))
!
(defun vip-backward-word (arg)
"Backward word."
(interactive "P")
--- 1171,1177 ----
(progn
(forward-char)
(vip-execute-com 'vip-end-of-word val com)))))
!
(defun vip-backward-word (arg)
"Backward word."
(interactive "P")
***************
*** 2911,2917 ****
(vip-change-mode-to-emacs)
(shell))
! (defun ex-substitute (&optional repeat r-flag)
"ex substitute.
If REPEAT use previous reg-exp which is ex-reg-exp or
vip-s-string"
--- 2911,2917 ----
(vip-change-mode-to-emacs)
(shell))
! (defun ex-substitute (&optional repeat r-flag)
"ex substitute.
If REPEAT use previous reg-exp which is ex-reg-exp or
vip-s-string"
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] Changes to emacs/lisp/emulation/vip.el,
Juanma Barranquero <=