summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Kifer <kifer@cs.stonybrook.edu>2007-01-23 20:56:57 +0000
committerMichael Kifer <kifer@cs.stonybrook.edu>2007-01-23 20:56:57 +0000
commit19e42a0611f72c18ab84ecd2a226c52efea50571 (patch)
treee879001487ef79462f31db94a6b968b364423c71
parentedb39ab4e76dd27c17fef0aa6a79498ed61b4304 (diff)
downloademacs-19e42a0611f72c18ab84ecd2a226c52efea50571.tar.gz
2007-01-23 Michael Kifer <kifer@cs.stonybrook.edu>
* ediff-util.el (ediff-clone-buffer-for-region-comparison): change text of message. Activate mark. (ediff-activate-mark): set transient-mark-mode to t. * ediff.el (ediff-regions-wordwise,ediff-regions-linewise): changed docstrings. * viper-keym.el (viper-insert-basic-map): deleted binding for S-TAB.
-rw-r--r--lisp/ChangeLog11
-rw-r--r--lisp/ediff-util.el9
-rw-r--r--lisp/ediff.el10
-rw-r--r--lisp/emulation/viper-keym.el2
4 files changed, 20 insertions, 12 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index b8ce65b0c0c..f0b49c71d30 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,14 @@
+2007-01-23 Michael Kifer <kifer@cs.stonybrook.edu>
+
+ * viper-keym.el (viper-insert-basic-map): deleted binding for S-TAB.
+
+ * ediff-util.el (ediff-clone-buffer-for-region-comparison): change text
+ of message. Activate mark.
+ (ediff-activate-mark): set transient-mark-mode to t.
+
+ * ediff.el (ediff-regions-wordwise,ediff-regions-linewise): changed
+ docstrings.
+
2007-01-23 Martin Rudalics <rudalics@gmx.at>
* help-fns.el (describe-variable): Don't suppress display of
diff --git a/lisp/ediff-util.el b/lisp/ediff-util.el
index 49d34f1b167..7483128b71a 100644
--- a/lisp/ediff-util.el
+++ b/lisp/ediff-util.el
@@ -3346,13 +3346,14 @@ Without an argument, it saves customized diff argument, if available
(setq wind (ediff-get-visible-buffer-window cloned-buff))
(select-window wind)
(delete-other-windows)
+ (ediff-activate-mark)
(split-window-vertically)
(ediff-select-lowest-window)
(setq other-wind (selected-window))
(with-temp-buffer
(erase-buffer)
(insert
- (format "\n ******* Mark a region in buffer %s *******\n"
+ (format "\n ******* Mark a region in buffer %s (or confirm the existing one) *******\n"
(buffer-name cloned-buff)))
(insert
(ediff-with-current-buffer buff
@@ -4059,7 +4060,11 @@ Mail anyway? (y or n) ")
(defun ediff-activate-mark ()
(ediff-cond-compile-for-xemacs-or-emacs
(zmacs-activate-region) ; xemacs
- (setq mark-active t) ; emacs
+ (progn
+ (make-local-variable 'transient-mark-mode)
+ (setq mark-active t
+ transient-mark-mode t) ; emacs
+ )
))
(cond ((fboundp 'nuke-selective-display)
diff --git a/lisp/ediff.el b/lisp/ediff.el
index 312c2ee6a3c..c5f5c48f8da 100644
--- a/lisp/ediff.el
+++ b/lisp/ediff.el
@@ -922,10 +922,7 @@ If WIND-B is nil, use window next to WIND-A."
;;;###autoload
(defun ediff-regions-wordwise (buffer-A buffer-B &optional startup-hooks)
"Run Ediff on a pair of regions in specified buffers.
-Regions \(i.e., point and mark\) are assumed to be set in advance except
-for the second region in the case both regions are from the same buffer.
-In such a case the user is asked to interactively establish the second
-region.
+Regions \(i.e., point and mark\) can be set in advance or marked interactively.
This function is effective only for relatively small regions, up to 200
lines. For large regions, use `ediff-regions-linewise'."
(interactive
@@ -966,10 +963,7 @@ lines. For large regions, use `ediff-regions-linewise'."
;;;###autoload
(defun ediff-regions-linewise (buffer-A buffer-B &optional startup-hooks)
"Run Ediff on a pair of regions in specified buffers.
-Regions \(i.e., point and mark\) are assumed to be set in advance except
-for the second region in the case both regions are from the same buffer.
-In such a case the user is asked to interactively establish the second
-region.
+Regions \(i.e., point and mark\) can be set in advance or marked interactively.
Each region is enlarged to contain full lines.
This function is effective for large regions, over 100-200
lines. For small regions, use `ediff-regions-wordwise'."
diff --git a/lisp/emulation/viper-keym.el b/lisp/emulation/viper-keym.el
index cd1f30de2ba..9dd78ce8aa1 100644
--- a/lisp/emulation/viper-keym.el
+++ b/lisp/emulation/viper-keym.el
@@ -308,8 +308,6 @@ If running in a terminal, [(escape)] is not understood, so must use \"\\e\"."
(define-key viper-insert-basic-map "\C-d" 'viper-backward-indent)
(define-key viper-insert-basic-map "\C-w" 'viper-delete-backward-word)
(define-key viper-insert-basic-map "\C-t" 'viper-forward-indent)
-(define-key viper-insert-basic-map
- (if viper-xemacs-p [(shift tab)] [S-tab]) 'viper-insert-tab)
(define-key viper-insert-basic-map viper-quoted-insert-key 'quoted-insert)
(define-key viper-insert-basic-map "\C-?" 'viper-del-backward-char-in-insert)
(define-key viper-insert-basic-map [backspace] 'viper-del-backward-char-in-insert)