diff options
| author | Juri Linkov | 2020-04-20 01:57:32 +0300 |
|---|---|---|
| committer | Juri Linkov | 2020-04-20 01:57:32 +0300 |
| commit | 9261a219ec20340b3323015b756ef023901aed43 (patch) | |
| tree | 8b86b34f89a6ee134779ed7315ffac1f451ff7e3 | |
| parent | e1d42da0d686e93534ee2abebe79bff95f18cb4d (diff) | |
| download | emacs-9261a219ec20340b3323015b756ef023901aed43.tar.gz emacs-9261a219ec20340b3323015b756ef023901aed43.zip | |
* doc/emacs/windows.texi (Window Convenience): Decribe more windmove features.
* doc/emacs/windows.texi (Window Convenience): Add descriptions of
windmove-display-default-keybindings,
windmove-delete-default-keybindings,
windmove-swap-states-in-direction.
* etc/NEWS: Regroup to move some parts closer to related sections.
| -rw-r--r-- | doc/emacs/windows.texi | 20 | ||||
| -rw-r--r-- | etc/NEWS | 60 |
2 files changed, 46 insertions, 34 deletions
diff --git a/doc/emacs/windows.texi b/doc/emacs/windows.texi index 2e07a98f57d..910ef8fd88d 100644 --- a/doc/emacs/windows.texi +++ b/doc/emacs/windows.texi | |||
| @@ -586,13 +586,25 @@ buffer. @xref{Follow Mode}. | |||
| 586 | @cindex directional window selection | 586 | @cindex directional window selection |
| 587 | @findex windmove-right | 587 | @findex windmove-right |
| 588 | @findex windmove-default-keybindings | 588 | @findex windmove-default-keybindings |
| 589 | @findex windmove-display-default-keybindings | ||
| 590 | @findex windmove-delete-default-keybindings | ||
| 591 | @findex windmove-swap-states-in-direction | ||
| 589 | The Windmove package defines commands for moving directionally | 592 | The Windmove package defines commands for moving directionally |
| 590 | between neighboring windows in a frame. @kbd{M-x windmove-right} | 593 | between neighboring windows in a frame. @kbd{M-x windmove-right} |
| 591 | selects the window immediately to the right of the currently selected | 594 | selects the window immediately to the right of the currently selected |
| 592 | one, and similarly for the left, up, and down | 595 | one, and similarly for the left, up, and down counterparts. |
| 593 | counterparts. @w{@kbd{M-x windmove-default-keybindings}} binds these | 596 | @w{@kbd{M-x windmove-default-keybindings}} binds these commands to |
| 594 | commands to @kbd{S-right} etc.; doing so disables shift selection for | 597 | @kbd{S-right} etc.; doing so disables shift selection for those keys |
| 595 | those keys (@pxref{Shift Selection}). | 598 | (@pxref{Shift Selection}). In the same way as keybindings can be |
| 599 | defined for commands that select windows directionally, you can use | ||
| 600 | @w{@kbd{M-x windmove-display-default-keybindings}} to define | ||
| 601 | keybindings for commands that specify in what direction to display the | ||
| 602 | window for the buffer that the next command is going to display. | ||
| 603 | Also there is @w{@kbd{M-x windmove-delete-default-keybindings}} to | ||
| 604 | define keybindings for commands that delete windows directionally, and | ||
| 605 | @w{@kbd{M-x windmove-swap-states-in-direction}} that define | ||
| 606 | keybindings for commands that swap the window contents of the selected | ||
| 607 | window with the window in the specified direction. | ||
| 596 | 608 | ||
| 597 | The command @kbd{M-x compare-windows} lets you compare the text | 609 | The command @kbd{M-x compare-windows} lets you compare the text |
| 598 | shown in different windows. @xref{Comparing Files}. | 610 | shown in different windows. @xref{Comparing Files}. |
| @@ -934,7 +934,7 @@ back, customize 'follow-hide-ghost-cursors' to nil. | |||
| 934 | *** 'windmove-create-window' when non-nil makes a new window. | 934 | *** 'windmove-create-window' when non-nil makes a new window. |
| 935 | This happens upon moving off the edge of the frame. | 935 | This happens upon moving off the edge of the frame. |
| 936 | 936 | ||
| 937 | --- | 937 | +++ |
| 938 | *** Windmove supports directional window display and selection. | 938 | *** Windmove supports directional window display and selection. |
| 939 | The new command 'windmove-display-default-keybindings' binds default | 939 | The new command 'windmove-display-default-keybindings' binds default |
| 940 | keys with provided modifiers (by default, Shift-Meta) to the commands | 940 | keys with provided modifiers (by default, Shift-Meta) to the commands |
| @@ -948,7 +948,7 @@ display the buffer in the same window, for example, 'S-M-0 C-h e' | |||
| 948 | displays the "*Messages*" buffer in the same window. 'S-M-t C-h C-n' | 948 | displays the "*Messages*" buffer in the same window. 'S-M-t C-h C-n' |
| 949 | displays NEWS in a new tab. | 949 | displays NEWS in a new tab. |
| 950 | 950 | ||
| 951 | --- | 951 | +++ |
| 952 | *** Windmove also supports directional window deletion. | 952 | *** Windmove also supports directional window deletion. |
| 953 | The new command 'windmove-delete-default-keybindings' binds default | 953 | The new command 'windmove-delete-default-keybindings' binds default |
| 954 | keys with provided prefix (by default, 'C-x') and modifiers (by default, | 954 | keys with provided prefix (by default, 'C-x') and modifiers (by default, |
| @@ -958,7 +958,7 @@ With a prefix arg 'C-u', also kills the buffer in that window. | |||
| 958 | With 'M-0', deletes the selected window and selects the window | 958 | With 'M-0', deletes the selected window and selects the window |
| 959 | that was in the specified direction. | 959 | that was in the specified direction. |
| 960 | 960 | ||
| 961 | --- | 961 | +++ |
| 962 | *** New command 'windmove-swap-states-in-direction' binds default keys | 962 | *** New command 'windmove-swap-states-in-direction' binds default keys |
| 963 | to the commands that swap the states of the selected window with the | 963 | to the commands that swap the states of the selected window with the |
| 964 | window in the specified direction. | 964 | window in the specified direction. |
| @@ -1011,10 +1011,6 @@ remapped to these, respectively. | |||
| 1011 | 1011 | ||
| 1012 | ** Dired | 1012 | ** Dired |
| 1013 | 1013 | ||
| 1014 | --- | ||
| 1015 | *** On systems that support suid/guid files, Dired now fontifies the | ||
| 1016 | permissions of such files with a special face 'dired-set-id'. | ||
| 1017 | |||
| 1018 | +++ | 1014 | +++ |
| 1019 | *** New command 'dired-create-empty-file'. | 1015 | *** New command 'dired-create-empty-file'. |
| 1020 | 1016 | ||
| @@ -1026,10 +1022,6 @@ It is by default bound to '* N'. | |||
| 1026 | *** The marking commands now report how many files were marked by the | 1022 | *** The marking commands now report how many files were marked by the |
| 1027 | command itself, not how many files are marked in total. | 1023 | command itself, not how many files are marked in total. |
| 1028 | 1024 | ||
| 1029 | --- | ||
| 1030 | *** A new face, 'dired-special', is used to highlight sockets, named | ||
| 1031 | pipes, block devices and character devices. | ||
| 1032 | |||
| 1033 | +++ | 1025 | +++ |
| 1034 | *** The new user option 'dired-create-destination-dirs' controls whether | 1026 | *** The new user option 'dired-create-destination-dirs' controls whether |
| 1035 | 'dired-do-copy' and 'dired-rename-file' should create non-existent | 1027 | 'dired-do-copy' and 'dired-rename-file' should create non-existent |
| @@ -1047,6 +1039,14 @@ Dired performs file renaming using underlying version control system. | |||
| 1047 | *** Zstandard compression is now supported for 'dired-do-compress' and | 1039 | *** Zstandard compression is now supported for 'dired-do-compress' and |
| 1048 | 'dired-do-compress-to'. | 1040 | 'dired-do-compress-to'. |
| 1049 | 1041 | ||
| 1042 | --- | ||
| 1043 | *** On systems that support suid/guid files, Dired now fontifies the | ||
| 1044 | permissions of such files with a special face 'dired-set-id'. | ||
| 1045 | |||
| 1046 | --- | ||
| 1047 | *** A new face, 'dired-special', is used to highlight sockets, named | ||
| 1048 | pipes, block devices and character devices. | ||
| 1049 | |||
| 1050 | ** Find-Dired | 1050 | ** Find-Dired |
| 1051 | 1051 | ||
| 1052 | --- | 1052 | --- |
| @@ -1068,12 +1068,6 @@ script. The default is nil. | |||
| 1068 | *** New command 'log-edit-generate-changelog-from-diff', bound to 'C-c C-w'. | 1068 | *** New command 'log-edit-generate-changelog-from-diff', bound to 'C-c C-w'. |
| 1069 | This generates ChangeLog entries from the VC fileset diff. | 1069 | This generates ChangeLog entries from the VC fileset diff. |
| 1070 | 1070 | ||
| 1071 | --- | ||
| 1072 | *** 'vc-dir' now shows a button allowing you to hide the stash list. | ||
| 1073 | Controlled by user option 'vc-git-show-stash'. Default t means show | ||
| 1074 | the entire list as before. An integer value limits the list length | ||
| 1075 | (but still allows you to show the entire list via the button). | ||
| 1076 | |||
| 1077 | +++ | 1071 | +++ |
| 1078 | *** Recording ChangeLog entries doesn't require an actual file. | 1072 | *** Recording ChangeLog entries doesn't require an actual file. |
| 1079 | If a ChangeLog file doesn't exist, and if the new user option | 1073 | If a ChangeLog file doesn't exist, and if the new user option |
| @@ -1084,9 +1078,11 @@ still be used if it exists.) Set the user option to nil to get the | |||
| 1084 | previous behavior of always creating a buffer that visits a ChangeLog | 1078 | previous behavior of always creating a buffer that visits a ChangeLog |
| 1085 | file. | 1079 | file. |
| 1086 | 1080 | ||
| 1087 | --- | 1081 | +++ |
| 1088 | *** New user option 'vc-find-revision-no-save'. | 1082 | *** The new 'd' command ('vc-dir-clean-files') in 'vc-dir-mode' |
| 1089 | With non-nil, 'vc-find-revision' doesn't write the created buffer to file. | 1083 | buffers will delete the marked files (or if no files are marked, the |
| 1084 | file under point). This command does not notify the VC backend, and | ||
| 1085 | is mostly useful for unregistered files. | ||
| 1090 | 1086 | ||
| 1091 | --- | 1087 | --- |
| 1092 | *** 'vc-dir-ignore' now takes a prefix argument to ignore all marked files. | 1088 | *** 'vc-dir-ignore' now takes a prefix argument to ignore all marked files. |
| @@ -1102,6 +1098,12 @@ When some files are marked, only those are stashed. | |||
| 1102 | When no files are marked, all modified files are stashed, as before. | 1098 | When no files are marked, all modified files are stashed, as before. |
| 1103 | 1099 | ||
| 1104 | --- | 1100 | --- |
| 1101 | *** 'vc-dir' now shows a button allowing you to hide the stash list. | ||
| 1102 | Controlled by user option 'vc-git-show-stash'. Default t means show | ||
| 1103 | the entire list as before. An integer value limits the list length | ||
| 1104 | (but still allows you to show the entire list via the button). | ||
| 1105 | |||
| 1106 | --- | ||
| 1105 | *** 'vc-git-stash' is now bound to 'C' in the stash headers. | 1107 | *** 'vc-git-stash' is now bound to 'C' in the stash headers. |
| 1106 | 1108 | ||
| 1107 | -- | 1109 | -- |
| @@ -1133,26 +1135,20 @@ you invoke 'C-x v m' ('vc-merge'). | |||
| 1133 | instead of revision numbers as completion candidates when it prompts | 1135 | instead of revision numbers as completion candidates when it prompts |
| 1134 | for a revision. | 1136 | for a revision. |
| 1135 | 1137 | ||
| 1136 | +++ | ||
| 1137 | *** 'C-u C-x v D' ('vc-root-version-diff') prompts for two revisions | ||
| 1138 | and compares their entire trees. | ||
| 1139 | |||
| 1140 | --- | 1138 | --- |
| 1141 | *** New user option 'vc-hg-revert-switches'. | 1139 | *** New user option 'vc-hg-revert-switches'. |
| 1142 | It specifies switches to pass to Hg's 'revert' command. | 1140 | It specifies switches to pass to Hg's 'revert' command. |
| 1143 | 1141 | ||
| 1142 | +++ | ||
| 1143 | *** 'C-u C-x v D' ('vc-root-version-diff') prompts for two revisions | ||
| 1144 | and compares their entire trees. | ||
| 1145 | |||
| 1144 | --- | 1146 | --- |
| 1145 | *** 'C-x v M D' ('vc-diff-mergebase') and 'C-x v M L' ('vc-log-mergebase') | 1147 | *** 'C-x v M D' ('vc-diff-mergebase') and 'C-x v M L' ('vc-log-mergebase') |
| 1146 | print diffs and logs between the merge base (common ancestor) of two | 1148 | print diffs and logs between the merge base (common ancestor) of two |
| 1147 | given revisions. | 1149 | given revisions. |
| 1148 | 1150 | ||
| 1149 | +++ | 1151 | +++ |
| 1150 | *** The new 'd' command ('vc-dir-clean-files') in 'vc-dir-mode' | ||
| 1151 | buffers will delete the marked files (or if no files are marked, the | ||
| 1152 | file under point). This command does not notify the VC backend, and | ||
| 1153 | is mostly useful for unregistered files. | ||
| 1154 | |||
| 1155 | +++ | ||
| 1156 | *** New command 'vc-log-search' asks for a pattern, searches it | 1152 | *** New command 'vc-log-search' asks for a pattern, searches it |
| 1157 | in the revision log, and displays matched log entries in the | 1153 | in the revision log, and displays matched log entries in the |
| 1158 | log buffer. For example, 'M-x vc-log-search RET bug#36644 RET' | 1154 | log buffer. For example, 'M-x vc-log-search RET bug#36644 RET' |
| @@ -1170,6 +1166,10 @@ revision's commit. (For some less capable VCSes, only the log entry | |||
| 1170 | is shown.) | 1166 | is shown.) |
| 1171 | 1167 | ||
| 1172 | --- | 1168 | --- |
| 1169 | *** New user option 'vc-find-revision-no-save'. | ||
| 1170 | With non-nil, 'vc-find-revision' doesn't write the created buffer to file. | ||
| 1171 | |||
| 1172 | --- | ||
| 1173 | *** 'C-x v =' can now mimic Magit's diff format. | 1173 | *** 'C-x v =' can now mimic Magit's diff format. |
| 1174 | Set the new user option 'diff-font-lock-prettify' to t for that, see | 1174 | Set the new user option 'diff-font-lock-prettify' to t for that, see |
| 1175 | below under "Diff mode". | 1175 | below under "Diff mode". |