aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorMartin Rudalics2021-06-10 09:14:21 +0200
committerMartin Rudalics2021-06-10 09:14:21 +0200
commitb3dd0ce75ba9314eb7a682e5fcf8b4cfbc67655b (patch)
treeab7873f3a18ce3873200863e37fed9534558ce93 /etc
parentdd9385b404c28a155a91960a4f1c4c77fdc5413d (diff)
downloademacs-b3dd0ce75ba9314eb7a682e5fcf8b4cfbc67655b.tar.gz
emacs-b3dd0ce75ba9314eb7a682e5fcf8b4cfbc67655b.zip
Provide new option `delete-window-set-selected' (Bug#47300)
When `delete-window' deletes its frame's selected window, this new option allows to choose another window as replacement. * lisp/window.el (get-lru-window, get-mru-window) (get-largest-window): New optional argument NO-OTHER. (window-at-pos): New function. (delete-window-set-selected): New option. (delete-window): Handle `delete-window-set-selected'. * src/window.c (Fdelete_window_internal): Set the selected window of WINDOW's frame to the first window on that frame and let `delete-window' choose a more suitable window instead. * doc/lispref/windows.texi (Deleting Windows): Describe new option `delete-window-set-selected'. (Cyclic Window Ordering): Describe new NO-OTHER argument for `get-lru-window', `get-mru-window' and `get-largest-window'. * etc/NEWS: Mention `delete-window-set-selected' and the NO-OTHER argument.
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS11
1 files changed, 11 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 3075fa0cd4e..06c6efd995a 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -605,6 +605,17 @@ These options include 'windmove-default-keybindings',
605** Windows 605** Windows
606 606
607+++ 607+++
608*** New option 'delete-window-set-selected'.
609This allows to choose a frame's selected window after deleting the
610previously selected one.
611
612+++
613*** New argument NO-OTHER for some window functions.
614'get-lru-window', ‘get-mru-window’ and 'get-largest-window' now accept a
615new optional argument NO-OTHER which if non-nil avoids returning a
616window whose 'no-other-window' parameter is non-nil.
617
618+++
608*** New 'display-buffer' function 'display-buffer-use-least-recent-window'. 619*** New 'display-buffer' function 'display-buffer-use-least-recent-window'.
609This is like 'display-buffer-use-some-window', but won't reuse the 620This is like 'display-buffer-use-some-window', but won't reuse the
610current window, and when called repeatedly will try not to reuse a 621current window, and when called repeatedly will try not to reuse a