aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuri Linkov2020-04-20 01:57:32 +0300
committerJuri Linkov2020-04-20 01:57:32 +0300
commit9261a219ec20340b3323015b756ef023901aed43 (patch)
tree8b86b34f89a6ee134779ed7315ffac1f451ff7e3
parente1d42da0d686e93534ee2abebe79bff95f18cb4d (diff)
downloademacs-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.texi20
-rw-r--r--etc/NEWS60
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
590between neighboring windows in a frame. @kbd{M-x windmove-right} 593between neighboring windows in a frame. @kbd{M-x windmove-right}
591selects the window immediately to the right of the currently selected 594selects the window immediately to the right of the currently selected
592one, and similarly for the left, up, and down 595one, and similarly for the left, up, and down counterparts.
593counterparts. @w{@kbd{M-x windmove-default-keybindings}} binds these 596@w{@kbd{M-x windmove-default-keybindings}} binds these commands to
594commands to @kbd{S-right} etc.; doing so disables shift selection for 597@kbd{S-right} etc.; doing so disables shift selection for those keys
595those keys (@pxref{Shift Selection}). 598(@pxref{Shift Selection}). In the same way as keybindings can be
599defined for commands that select windows directionally, you can use
600@w{@kbd{M-x windmove-display-default-keybindings}} to define
601keybindings for commands that specify in what direction to display the
602window for the buffer that the next command is going to display.
603Also there is @w{@kbd{M-x windmove-delete-default-keybindings}} to
604define keybindings for commands that delete windows directionally, and
605@w{@kbd{M-x windmove-swap-states-in-direction}} that define
606keybindings for commands that swap the window contents of the selected
607window 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
598shown in different windows. @xref{Comparing Files}. 610shown in different windows. @xref{Comparing Files}.
diff --git a/etc/NEWS b/etc/NEWS
index def1bce29aa..bca2037c176 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -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.
935This happens upon moving off the edge of the frame. 935This 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.
939The new command 'windmove-display-default-keybindings' binds default 939The new command 'windmove-display-default-keybindings' binds default
940keys with provided modifiers (by default, Shift-Meta) to the commands 940keys 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'
948displays the "*Messages*" buffer in the same window. 'S-M-t C-h C-n' 948displays the "*Messages*" buffer in the same window. 'S-M-t C-h C-n'
949displays NEWS in a new tab. 949displays NEWS in a new tab.
950 950
951--- 951+++
952*** Windmove also supports directional window deletion. 952*** Windmove also supports directional window deletion.
953The new command 'windmove-delete-default-keybindings' binds default 953The new command 'windmove-delete-default-keybindings' binds default
954keys with provided prefix (by default, 'C-x') and modifiers (by default, 954keys 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.
958With 'M-0', deletes the selected window and selects the window 958With 'M-0', deletes the selected window and selects the window
959that was in the specified direction. 959that 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
963to the commands that swap the states of the selected window with the 963to the commands that swap the states of the selected window with the
964window in the specified direction. 964window 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
1016permissions 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
1027command itself, not how many files are marked in total. 1023command itself, not how many files are marked in total.
1028 1024
1029---
1030*** A new face, 'dired-special', is used to highlight sockets, named
1031pipes, 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
1044permissions of such files with a special face 'dired-set-id'.
1045
1046---
1047*** A new face, 'dired-special', is used to highlight sockets, named
1048pipes, 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'.
1069This generates ChangeLog entries from the VC fileset diff. 1069This 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.
1073Controlled by user option 'vc-git-show-stash'. Default t means show
1074the 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.
1079If a ChangeLog file doesn't exist, and if the new user option 1073If 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
1084previous behavior of always creating a buffer that visits a ChangeLog 1078previous behavior of always creating a buffer that visits a ChangeLog
1085file. 1079file.
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'
1089With non-nil, 'vc-find-revision' doesn't write the created buffer to file. 1083buffers will delete the marked files (or if no files are marked, the
1084file under point). This command does not notify the VC backend, and
1085is 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.
1102When no files are marked, all modified files are stashed, as before. 1098When 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.
1102Controlled by user option 'vc-git-show-stash'. Default t means show
1103the 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').
1133instead of revision numbers as completion candidates when it prompts 1135instead of revision numbers as completion candidates when it prompts
1134for a revision. 1136for a revision.
1135 1137
1136+++
1137*** 'C-u C-x v D' ('vc-root-version-diff') prompts for two revisions
1138and compares their entire trees.
1139
1140--- 1138---
1141*** New user option 'vc-hg-revert-switches'. 1139*** New user option 'vc-hg-revert-switches'.
1142It specifies switches to pass to Hg's 'revert' command. 1140It 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
1144and 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')
1146print diffs and logs between the merge base (common ancestor) of two 1148print diffs and logs between the merge base (common ancestor) of two
1147given revisions. 1149given revisions.
1148 1150
1149+++ 1151+++
1150*** The new 'd' command ('vc-dir-clean-files') in 'vc-dir-mode'
1151buffers will delete the marked files (or if no files are marked, the
1152file under point). This command does not notify the VC backend, and
1153is 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
1157in the revision log, and displays matched log entries in the 1153in the revision log, and displays matched log entries in the
1158log buffer. For example, 'M-x vc-log-search RET bug#36644 RET' 1154log 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
1170is shown.) 1166is shown.)
1171 1167
1172--- 1168---
1169*** New user option 'vc-find-revision-no-save'.
1170With 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.
1174Set the new user option 'diff-font-lock-prettify' to t for that, see 1174Set the new user option 'diff-font-lock-prettify' to t for that, see
1175below under "Diff mode". 1175below under "Diff mode".