aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean Whitton2025-04-09 13:34:55 +0800
committerSean Whitton2025-04-09 13:34:55 +0800
commit09887a2d41f61dff749860fe41a5e8382bb03bd9 (patch)
treeedc9110e8dd4e02b85505bd8f8bc7925da503baf
parent253364e2c71bfaaa3ca623ed23f1cae6548a16c7 (diff)
downloademacs-09887a2d41f61dff749860fe41a5e8382bb03bd9.tar.gz
emacs-09887a2d41f61dff749860fe41a5e8382bb03bd9.zip
Rename some of the new window layout commands
* lisp/window-x.el (rotate-window-layout-counterclockwise): Rename to window-layout-rotate-anticlockwise. (rotate-window-layout-clockwise): Rename to window-layout-rotate-clockwise. (flip-window-layout-horizontally): Rename to window-layout-flip-leftright. (flip-window-layout-vertically): Rename to window-layout-flip-topdown. (transpose-window-layout): Rename to window-layout-transpose. * doc/lispref/windows.texi (Changing Window Layouts): * etc/NEWS: * lisp/ldefs-boot.el (rotate-window-layout-counterclockwise) (rotate-window-layout-clockwise, flip-window-layout-horizontally) (flip-window-layout-vertically, transpose-window-layout): Update for the renames.
-rw-r--r--doc/lispref/windows.texi12
-rw-r--r--etc/NEWS6
-rw-r--r--lisp/ldefs-boot.el10
-rw-r--r--lisp/window-x.el10
4 files changed, 19 insertions, 19 deletions
diff --git a/doc/lispref/windows.texi b/doc/lispref/windows.texi
index 417c323be6b..3a8dffd1af1 100644
--- a/doc/lispref/windows.texi
+++ b/doc/lispref/windows.texi
@@ -2256,7 +2256,7 @@ unless stated otherwise.
2256counterclockwise. 2256counterclockwise.
2257@cindex rotate window layout 2257@cindex rotate window layout
2258 2258
2259@deffn Command rotate-window-layout-clockwise &optional window 2259@deffn Command window-layout-rotate-clockwise &optional window
2260This command rotates the window layout clockwise by 90 degrees. Imagine 2260This command rotates the window layout clockwise by 90 degrees. Imagine
2261a layout with three live windows @var{A}, @var{B} and @var{C} as 2261a layout with three live windows @var{A}, @var{B} and @var{C} as
2262depicted on the left below. Then this command will produce the layout 2262depicted on the left below. Then this command will produce the layout
@@ -2276,8 +2276,8 @@ on the right.
2276@end smallexample 2276@end smallexample
2277@end deffn 2277@end deffn
2278 2278
2279@deffn Command rotate-window-layout-counterclockwise &optional window 2279@deffn Command window-layout-rotate-anticlockwise &optional window
2280This is like @code{rotate-window-layout-clockwise} but rotates the 2280This is like @code{window-layout-rotate-clockwise} but rotates the
2281layout in the opposite direction as demonstrated in the example below. 2281layout in the opposite direction as demonstrated in the example below.
2282 2282
2283@smallexample 2283@smallexample
@@ -2298,7 +2298,7 @@ The next two commands @sc{flip} the window layout---rotate it around an
2298imaginary horizontal or vertical axis. 2298imaginary horizontal or vertical axis.
2299@cindex flip window layout 2299@cindex flip window layout
2300 2300
2301@deffn Command flip-window-layout-vertically &optional window 2301@deffn Command window-layout-flip-topdown &optional window
2302This command flips windows such that windows on the bottom become 2302This command flips windows such that windows on the bottom become
2303windows on the top and vice-versa as in the example below. 2303windows on the top and vice-versa as in the example below.
2304 2304
@@ -2316,7 +2316,7 @@ windows on the top and vice-versa as in the example below.
2316@end smallexample 2316@end smallexample
2317@end deffn 2317@end deffn
2318 2318
2319@deffn Command flip-window-layout-horizontally &optional window 2319@deffn Command window-layout-flip-leftright &optional window
2320This command rearranges window in a way that the windows on the right 2320This command rearranges window in a way that the windows on the right
2321become the window on the left, and vice-versa. 2321become the window on the left, and vice-versa.
2322 2322
@@ -2338,7 +2338,7 @@ The next command can be used for @sc{transposing} windows---changing
2338horizontal splits to vertical ones and vice-versa. 2338horizontal splits to vertical ones and vice-versa.
2339@cindex transposing windows 2339@cindex transposing windows
2340 2340
2341@deffn Command transpose-window-layout &optional window 2341@deffn Command window-layout-transpose &optional window
2342This command reorganizes windows such that every horizontal split 2342This command reorganizes windows such that every horizontal split
2343becomes a vertical split and vice versa. 2343becomes a vertical split and vice versa.
2344 2344
diff --git a/etc/NEWS b/etc/NEWS
index 71eada99ed8..8d66e4f6bdd 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -227,9 +227,9 @@ albeit as a variable, not a user option.
227+++ 227+++
228*** New functions to modify window layout. 228*** New functions to modify window layout.
229Several functions to modify the window layout have been added: 229Several functions to modify the window layout have been added:
230'rotate-window-layout-clockwise', 'rotate-window-layout-anticlockwise', 230'window-layout-rotate-clockwise', 'window-layout-rotate-anticlockwise',
231'flip-window-layout-vertically', 'flip-window-layout-horizontally', 231'window-layout-flip-topdown', 'window-layout-flip-leftright',
232'transpose-window-layout', 'rotate-windows', and 'rotate-windows-back'. 232'window-layout-transpose', 'rotate-windows', and 'rotate-windows-back'.
233 233
234+++ 234+++
235*** Windmove commands now move to skipped windows if invoked twice in a row. 235*** Windmove commands now move to skipped windows if invoked twice in a row.
diff --git a/lisp/ldefs-boot.el b/lisp/ldefs-boot.el
index c1deb84754d..e1e203875f4 100644
--- a/lisp/ldefs-boot.el
+++ b/lisp/ldefs-boot.el
@@ -38064,7 +38064,7 @@ mode.
38064 38064
38065;;; Generated autoloads from window-x.el 38065;;; Generated autoloads from window-x.el
38066 38066
38067(autoload 'rotate-window-layout-counterclockwise "window-x" "\ 38067(autoload 'window-layout-rotate-anticlockwise "window-x" "\
38068Rotate window layout of WINDOW counterclockwise by 90 degrees. 38068Rotate window layout of WINDOW counterclockwise by 90 degrees.
38069 38069
38070If WINDOW is nil, it defaults to the root window of the selected frame. 38070If WINDOW is nil, it defaults to the root window of the selected frame.
@@ -38073,7 +38073,7 @@ Interactively, a prefix argument says to rotate the parent window of the
38073selected window. 38073selected window.
38074 38074
38075(fn &optional WINDOW)" t) 38075(fn &optional WINDOW)" t)
38076(autoload 'rotate-window-layout-clockwise "window-x" "\ 38076(autoload 'window-layout-rotate-clockwise "window-x" "\
38077Rotate window layout under WINDOW clockwise by 90 degrees. 38077Rotate window layout under WINDOW clockwise by 90 degrees.
38078 38078
38079If WINDOW is nil, it defaults to the root window of the selected frame. 38079If WINDOW is nil, it defaults to the root window of the selected frame.
@@ -38082,7 +38082,7 @@ Interactively, a prefix argument says to rotate the parent window of the
38082selected window. 38082selected window.
38083 38083
38084(fn &optional WINDOW)" t) 38084(fn &optional WINDOW)" t)
38085(autoload 'flip-window-layout-horizontally "window-x" "\ 38085(autoload 'window-layout-flip-leftright "window-x" "\
38086Horizontally flip windows under WINDOW. 38086Horizontally flip windows under WINDOW.
38087 38087
38088Flip the window layout so that the window on the right becomes the 38088Flip the window layout so that the window on the right becomes the
@@ -38094,7 +38094,7 @@ Interactively, a prefix argument says to flip the parent window of the
38094selected window. 38094selected window.
38095 38095
38096(fn &optional WINDOW)" t) 38096(fn &optional WINDOW)" t)
38097(autoload 'flip-window-layout-vertically "window-x" "\ 38097(autoload 'window-layout-flip-topdown "window-x" "\
38098Vertically flip windows under WINDOW. 38098Vertically flip windows under WINDOW.
38099 38099
38100Flip the window layout so that the top window becomes the bottom window, 38100Flip the window layout so that the top window becomes the bottom window,
@@ -38106,7 +38106,7 @@ Interactively, a prefix argument says to flip the parent window of the
38106selected window. 38106selected window.
38107 38107
38108(fn &optional WINDOW)" t) 38108(fn &optional WINDOW)" t)
38109(autoload 'transpose-window-layout "window-x" "\ 38109(autoload 'window-layout-transpose "window-x" "\
38110Transpose windows under WINDOW. 38110Transpose windows under WINDOW.
38111 38111
38112Reorganize the windows under WINDOW so that every horizontal split 38112Reorganize the windows under WINDOW so that every horizontal split
diff --git a/lisp/window-x.el b/lisp/window-x.el
index ad34f67c9c0..37344e9101a 100644
--- a/lisp/window-x.el
+++ b/lisp/window-x.el
@@ -77,7 +77,7 @@ where HEIGHT and WIDTH are the normal height and width of the window.
77 (if current-prefix-arg (window-parent) (window-main-window))) 77 (if current-prefix-arg (window-parent) (window-main-window)))
78 78
79;;;###autoload 79;;;###autoload
80(defun rotate-window-layout-counterclockwise (&optional window) 80(defun window-layout-rotate-anticlockwise (&optional window)
81 "Rotate window layout of WINDOW counterclockwise by 90 degrees. 81 "Rotate window layout of WINDOW counterclockwise by 90 degrees.
82 82
83If WINDOW is nil, it defaults to the root window of the selected frame. 83If WINDOW is nil, it defaults to the root window of the selected frame.
@@ -88,7 +88,7 @@ selected window."
88 (window--transpose window '(right . above) nil)) 88 (window--transpose window '(right . above) nil))
89 89
90;;;###autoload 90;;;###autoload
91(defun rotate-window-layout-clockwise (&optional window) 91(defun window-layout-rotate-clockwise (&optional window)
92 "Rotate window layout under WINDOW clockwise by 90 degrees. 92 "Rotate window layout under WINDOW clockwise by 90 degrees.
93 93
94If WINDOW is nil, it defaults to the root window of the selected frame. 94If WINDOW is nil, it defaults to the root window of the selected frame.
@@ -99,7 +99,7 @@ selected window."
99 (window--transpose window '(left . below) nil)) 99 (window--transpose window '(left . below) nil))
100 100
101;;;###autoload 101;;;###autoload
102(defun flip-window-layout-horizontally (&optional window) 102(defun window-layout-flip-leftright (&optional window)
103 "Horizontally flip windows under WINDOW. 103 "Horizontally flip windows under WINDOW.
104 104
105Flip the window layout so that the window on the right becomes the 105Flip the window layout so that the window on the right becomes the
@@ -113,7 +113,7 @@ selected window."
113 (window--transpose window '(below . left) t)) 113 (window--transpose window '(below . left) t))
114 114
115;;;###autoload 115;;;###autoload
116(defun flip-window-layout-vertically (&optional window) 116(defun window-layout-flip-topdown (&optional window)
117 "Vertically flip windows under WINDOW. 117 "Vertically flip windows under WINDOW.
118 118
119Flip the window layout so that the top window becomes the bottom window, 119Flip the window layout so that the top window becomes the bottom window,
@@ -127,7 +127,7 @@ selected window."
127 (window--transpose window '(above . right) t)) 127 (window--transpose window '(above . right) t))
128 128
129;;;###autoload 129;;;###autoload
130(defun transpose-window-layout (&optional window) 130(defun window-layout-transpose (&optional window)
131 "Transpose windows under WINDOW. 131 "Transpose windows under WINDOW.
132 132
133Reorganize the windows under WINDOW so that every horizontal split 133Reorganize the windows under WINDOW so that every horizontal split