aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/emulation
diff options
context:
space:
mode:
authorMichael Kifer2007-11-02 06:03:12 +0000
committerMichael Kifer2007-11-02 06:03:12 +0000
commit33468a59c6b42e489bc8ae147c43818d8b76a2a7 (patch)
tree22f2abf83551c006bcc231dcb890e1dac202f48c /lisp/emulation
parent246a4316dea32514edf84e9e2552627327149160 (diff)
downloademacs-33468a59c6b42e489bc8ae147c43818d8b76a2a7.tar.gz
emacs-33468a59c6b42e489bc8ae147c43818d8b76a2a7.zip
2007-11-02 Michael Kifer <kifer@cs.stonybrook.edu>
* viper-ex.el (viper-ex): do not ignore the region. * viper-cmd.el (viper-prev-destructive-command) (viper-insert-prev-from-insertion-ring): use ring-copy instead of copy-sequence. * ediff-util.el (ediff-make-current-diff-overlay): do not use face-name. Got rid of ediff-copy-list. * ediff-diff.el (ediff-set-fine-diff-properties-in-one-buffer): do not use face-name. (ediff-test-utility,ediff-diff-mandatory-option) (ediff-reset-diff-options): removed to simplify yhe mandatory option handling on windows. (ediff-set-diff-options): added. (ediff-diff-options): changed. * ediff-vers.el (ediff-vc-internal): use ediff-vc-revision-other-window. (ediff-vc-merge-internal): use ediff-vc-revision-other-window and ediff-vc-working-revision. Require vc-hooks.
Diffstat (limited to 'lisp/emulation')
-rw-r--r--lisp/emulation/viper-cmd.el7
-rw-r--r--lisp/emulation/viper-ex.el24
2 files changed, 18 insertions, 13 deletions
diff --git a/lisp/emulation/viper-cmd.el b/lisp/emulation/viper-cmd.el
index 82dc312cf28..88af961e488 100644
--- a/lisp/emulation/viper-cmd.el
+++ b/lisp/emulation/viper-cmd.el
@@ -1902,7 +1902,7 @@ With prefix argument, find next destructive command."
1902 (setq viper-intermediate-command 1902 (setq viper-intermediate-command
1903 'repeating-display-destructive-command) 1903 'repeating-display-destructive-command)
1904 ;; first search through command history--set temp ring 1904 ;; first search through command history--set temp ring
1905 (setq viper-temp-command-ring (copy-sequence viper-command-ring))) 1905 (setq viper-temp-command-ring (ring-copy viper-command-ring)))
1906 (setq cmd (if next 1906 (setq cmd (if next
1907 (viper-special-ring-rotate1 viper-temp-command-ring 1) 1907 (viper-special-ring-rotate1 viper-temp-command-ring 1)
1908 (viper-special-ring-rotate1 viper-temp-command-ring -1))) 1908 (viper-special-ring-rotate1 viper-temp-command-ring -1)))
@@ -1936,7 +1936,7 @@ to in the global map, instead of cycling through the insertion ring."
1936 (length viper-last-inserted-string-from-insertion-ring)))) 1936 (length viper-last-inserted-string-from-insertion-ring))))
1937 ) 1937 )
1938 ;;first search through insertion history 1938 ;;first search through insertion history
1939 (setq viper-temp-insertion-ring (copy-sequence viper-insertion-ring))) 1939 (setq viper-temp-insertion-ring (ring-copy viper-insertion-ring)))
1940 (setq this-command 'viper-insert-from-insertion-ring) 1940 (setq this-command 'viper-insert-from-insertion-ring)
1941 ;; so that things will be undone properly 1941 ;; so that things will be undone properly
1942 (setq buffer-undo-list (cons nil buffer-undo-list)) 1942 (setq buffer-undo-list (cons nil buffer-undo-list))
@@ -2790,6 +2790,7 @@ On reaching beginning of line, stop and signal error."
2790 2790
2791(defun viper-next-line-carefully (arg) 2791(defun viper-next-line-carefully (arg)
2792 (condition-case nil 2792 (condition-case nil
2793 ;; do not use forward-line! need to keep column
2793 (next-line arg) 2794 (next-line arg)
2794 (error nil))) 2795 (error nil)))
2795 2796
@@ -3089,6 +3090,7 @@ On reaching beginning of line, stop and signal error."
3089 (let ((val (viper-p-val arg)) 3090 (let ((val (viper-p-val arg))
3090 (com (viper-getCom arg))) 3091 (com (viper-getCom arg)))
3091 (if com (viper-move-marker-locally 'viper-com-point (point))) 3092 (if com (viper-move-marker-locally 'viper-com-point (point)))
3093 ;; do not use forward-line! need to keep column
3092 (next-line val) 3094 (next-line val)
3093 (if viper-ex-style-motion 3095 (if viper-ex-style-motion
3094 (if (and (eolp) (not (bolp))) (backward-char 1))) 3096 (if (and (eolp) (not (bolp))) (backward-char 1)))
@@ -3132,6 +3134,7 @@ If point is on a widget or a button, simulate clicking on that widget/button."
3132 (let ((val (viper-p-val arg)) 3134 (let ((val (viper-p-val arg))
3133 (com (viper-getCom arg))) 3135 (com (viper-getCom arg)))
3134 (if com (viper-move-marker-locally 'viper-com-point (point))) 3136 (if com (viper-move-marker-locally 'viper-com-point (point)))
3137 ;; do not use forward-line! need to keep column
3135 (previous-line val) 3138 (previous-line val)
3136 (if viper-ex-style-motion 3139 (if viper-ex-style-motion
3137 (if (and (eolp) (not (bolp))) (backward-char 1))) 3140 (if (and (eolp) (not (bolp))) (backward-char 1)))
diff --git a/lisp/emulation/viper-ex.el b/lisp/emulation/viper-ex.el
index 627d2ff1814..d9cc97719ca 100644
--- a/lisp/emulation/viper-ex.el
+++ b/lisp/emulation/viper-ex.el
@@ -651,17 +651,19 @@ reversed."
651 (setq initial-str (format "%d,%d" reg-beg-line reg-end-line))) 651 (setq initial-str (format "%d,%d" reg-beg-line reg-end-line)))
652 652
653 (setq com-str 653 (setq com-str
654 (or string (viper-read-string-with-history 654 (if string
655 ":" 655 (concat initial-str string)
656 initial-str 656 (viper-read-string-with-history
657 'viper-ex-history 657 ":"
658 ;; no default when working on region 658 initial-str
659 (if initial-str 659 'viper-ex-history
660 nil 660 ;; no default when working on region
661 (car viper-ex-history)) 661 (if initial-str
662 map 662 nil
663 (if initial-str 663 (car viper-ex-history))
664 " [Type command to execute on current region]")))) 664 map
665 (if initial-str
666 " [Type command to execute on current region]"))))
665 (save-window-excursion 667 (save-window-excursion
666 ;; just a precaution 668 ;; just a precaution
667 (setq viper-ex-work-buf (get-buffer-create viper-ex-work-buf-name)) 669 (setq viper-ex-work-buf (get-buffer-create viper-ex-work-buf-name))