]> git.eshelyaron.com Git - emacs.git/commit
Use quit-restore-window to close tab (bug#39446)
authorJuri Linkov <juri@linkov.net>
Mon, 10 Feb 2020 00:49:36 +0000 (02:49 +0200)
committerJuri Linkov <juri@linkov.net>
Mon, 10 Feb 2020 00:49:36 +0000 (02:49 +0200)
commitac9acc1864b02b92de4eb2e98db7b5b0cd03e019
tree16c26e1bb91bf14ec8ed6e292a0ba961e5414ba2
parent5e7bead8eac9a79dfd74452a7bd5199f12ad0c45
Use quit-restore-window to close tab (bug#39446)

* lisp/tab-bar.el (display-buffer-in-new-tab): New function with code
from display-buffer-in-tab.
(display-buffer-in-tab): Call display-buffer-in-new-tab.
(switch-to-buffer-other-tab): Instead of 'display-buffer-same-window'
use '(reusable-frames . t)'.

* lisp/windmove.el (windmove-display-in-direction): Set arg 'type'
to 'tab' for window--display-buffer when creating a new tab.

* lisp/window.el (quit-restore-window): Call tab-bar-close-tab
when quit-restore type is 'tab'.
(display-buffer-record-window): Set window-parameter 'quit-restore'
to 'tab' for type 'tab'.
(window--display-buffer): Set window-prev-buffers to nil for tab too.
lisp/tab-bar.el
lisp/windmove.el
lisp/window.el