]> git.eshelyaron.com Git - emacs.git/commit
* lisp/tab-bar.el: Store point position and frame buffer-lists in tab.
authorJuri Linkov <juri@linkov.net>
Tue, 29 Oct 2019 22:31:11 +0000 (00:31 +0200)
committerJuri Linkov <juri@linkov.net>
Tue, 29 Oct 2019 22:31:11 +0000 (00:31 +0200)
commitd7f62ce0cd58f6275bbf88925f3abbbd1db212a8
tree4750df4d47ea051bdc4e5a99a4bc74d53fc4f19f
parentd3517de4b472ede7abaf3a552c5064be979e6eff
* lisp/tab-bar.el: Store point position and frame buffer-lists in tab.

* lisp/tab-bar.el (tab-bar--tab): Store additionally point-marker,
frame parameters buffer-list and buried-buffer-list, both for wc and ws.
Use seq-filter.
(tab-bar-select-tab): Restore point-marker after restoring
window-configuration.  Also restore frame parameters buffer-list
and buried-buffer-list both for window-configuration and window-state.
(tab-bar-history-limit, tab-bar-history--minibuffer-depth): New variables.
(tab-bar-history-current): Rename from tab-bar-history--pre-change.
(tab-bar-history--pre-change): Set tab-bar-history-current.
(tab-bar--history-change): Use seq-take for tab-bar-history-limit.
(tab-bar-history-back, tab-bar-history-forward): Restore point-marker.
(tab-bar-list-noselect): Use seq-remove.

* lisp/emacs-lisp/seq.el (seq-take, seq-filter): Add autoload cookie.
lisp/emacs-lisp/seq.el
lisp/tab-bar.el