diff options
| author | Eli Zaretskii | 2015-12-26 18:30:07 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2015-12-26 18:30:07 +0200 |
| commit | dd86e5a227b4ec44d7002885e843417ec9f3421f (patch) | |
| tree | 5fcad14efaa117cb82dd620e850ddedf25f5a386 | |
| parent | 42ae568b3d187a42ead03d880efda076615e0d3a (diff) | |
| download | emacs-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.texi | 11 | ||||
| -rw-r--r-- | etc/NEWS | 13 | ||||
| -rw-r--r-- | lisp/vc/compare-w.el | 4 |
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 |
| 1298 | current window with that in the next window. (For more information | 1298 | current window with that in the window that was the selected window |
| 1299 | about windows in Emacs, @ref{Windows}.) Comparison starts at point in | 1299 | before you selected the current one. (For more information about |
| 1300 | each window, after pushing each initial point value on the mark ring | 1300 | windows in Emacs, @ref{Windows}.) Comparison starts at point in each |
| 1301 | in its respective buffer. Then it moves point forward in each window, | 1301 | window, after pushing each initial point value on the mark ring in its |
| 1302 | one character at a time, until it reaches characters that don't match. | 1302 | respective buffer. Then it moves point forward in each window, one |
| 1303 | character at a time, until it reaches characters that don't match. | ||
| 1303 | Then the command exits. | 1304 | Then 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 |
| @@ -831,12 +831,17 @@ back-end for the buffer's file, or remove it from version control. | |||
| 831 | the color range from `vc-annotate-color-map' is applied to the | 831 | the color range from `vc-annotate-color-map' is applied to the |
| 832 | background or to the foreground. | 832 | background or to the foreground. |
| 833 | 833 | ||
| 834 | *** `compare-windows' now compares text with the most recently used window | 834 | +++ |
| 835 | instead of the next window. The new option `compare-windows-get-window-function' | 835 | *** `compare-windows' now compares text with the most recently selected window |
| 836 | allows to customize this. | 836 | instead of the next window. If you want the previous behavior of |
| 837 | comparing 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' |
| 839 | replace the obsolete face `compare-windows'. | 843 | replace 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 | ||