aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2015-12-26 18:30:07 +0200
committerEli Zaretskii2015-12-26 18:30:07 +0200
commitdd86e5a227b4ec44d7002885e843417ec9f3421f (patch)
tree5fcad14efaa117cb82dd620e850ddedf25f5a386
parent42ae568b3d187a42ead03d880efda076615e0d3a (diff)
downloademacs-dd86e5a227b4ec44d7002885e843417ec9f3421f.tar.gz
emacs-dd86e5a227b4ec44d7002885e843417ec9f3421f.zip
Document changes in 'compare-windows'
* lisp/vc/compare-w.el (compare-windows-removed) (compare-windows-added): Doc fix. * doc/emacs/files.texi (Comparing Files): Document the changes in window selection by 'compare-windows'.
-rw-r--r--doc/emacs/files.texi11
-rw-r--r--etc/NEWS13
-rw-r--r--lisp/vc/compare-w.el4
3 files changed, 17 insertions, 11 deletions
diff --git a/doc/emacs/files.texi b/doc/emacs/files.texi
index 5752d02fe85..4f7596e058c 100644
--- a/doc/emacs/files.texi
+++ b/doc/emacs/files.texi
@@ -1295,11 +1295,12 @@ would make to the file if you save the buffer.
1295 1295
1296@findex compare-windows 1296@findex compare-windows
1297 The command @kbd{M-x compare-windows} compares the text in the 1297 The command @kbd{M-x compare-windows} compares the text in the
1298current window with that in the next window. (For more information 1298current window with that in the window that was the selected window
1299about windows in Emacs, @ref{Windows}.) Comparison starts at point in 1299before you selected the current one. (For more information about
1300each window, after pushing each initial point value on the mark ring 1300windows in Emacs, @ref{Windows}.) Comparison starts at point in each
1301in its respective buffer. Then it moves point forward in each window, 1301window, after pushing each initial point value on the mark ring in its
1302one character at a time, until it reaches characters that don't match. 1302respective buffer. Then it moves point forward in each window, one
1303character at a time, until it reaches characters that don't match.
1303Then the command exits. 1304Then the command exits.
1304 1305
1305 If point in the two windows is followed by non-matching text when 1306 If point in the two windows is followed by non-matching text when
diff --git a/etc/NEWS b/etc/NEWS
index ee56d23d174..2f3019edf86 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -831,12 +831,17 @@ back-end for the buffer's file, or remove it from version control.
831the color range from `vc-annotate-color-map' is applied to the 831the color range from `vc-annotate-color-map' is applied to the
832background or to the foreground. 832background or to the foreground.
833 833
834*** `compare-windows' now compares text with the most recently used window 834+++
835instead of the next window. The new option `compare-windows-get-window-function' 835*** `compare-windows' now compares text with the most recently selected window
836allows to customize this. 836instead of the next window. If you want the previous behavior of
837comparing with the next window, customize the new option
838`compare-windows-get-window-function' to the value
839`compare-windows-get-next-window'.
837 840
841---
838*** Two new faces `compare-windows-removed' and `compare-windows-added' 842*** Two new faces `compare-windows-removed' and `compare-windows-added'
839replace the obsolete face `compare-windows'. 843replace the face `compare-windows', which is now an obsolete alias for
844`compare-windows-added'.
840 845
841--- 846---
842*** `log-edit-insert-changelog' converts "(tiny change)" to 847*** `log-edit-insert-changelog' converts "(tiny change)" to
diff --git a/lisp/vc/compare-w.el b/lisp/vc/compare-w.el
index cec16446984..d6e3240eaf7 100644
--- a/lisp/vc/compare-w.el
+++ b/lisp/vc/compare-w.el
@@ -132,13 +132,13 @@ out all highlighting later with the command `compare-windows-dehighlight'."
132 132
133(defface compare-windows-removed 133(defface compare-windows-removed
134 '((t :inherit diff-removed)) 134 '((t :inherit diff-removed))
135 "Face for highlighting of compare-windows removed regions." 135 "Face for highlighting `compare-windows' differing regions in the other window."
136 :group 'compare-windows 136 :group 'compare-windows
137 :version "25.1") 137 :version "25.1")
138 138
139(defface compare-windows-added 139(defface compare-windows-added
140 '((t :inherit diff-added)) 140 '((t :inherit diff-added))
141 "Face for highlighting of compare-windows added regions." 141 "Face for highlighting `compare-windows' differing regions in current window."
142 :group 'compare-windows 142 :group 'compare-windows
143 :version "25.1") 143 :version "25.1")
144 144