• Juri Linkov's avatar
    * lisp/tab-bar.el: Store point position and frame buffer-lists in tab. · d7f62ce0
    Juri Linkov authored
    * 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.
    d7f62ce0
tab-bar.el 51.2 KB