1. 30 May, 2020 1 commit
  2. 24 May, 2020 1 commit
  3. 26 Apr, 2020 1 commit
    • Juri Linkov's avatar
      Fix bugs in tab-bar and tab-line and mention remaining features in manual. · f0e1bf56
      Juri Linkov authored
      * doc/emacs/frames.texi (Tab Bars): Mention tab-bar-new-tab-to,
      tab-bar-close-last-tab-choice, tab-bar-close-tab-select, tab-undo,
      tab-select, tab-bar-history-mode.
      
      * doc/emacs/windows.texi (Tab Line): Mention tab-line-tabs-function.
      
      * lisp/tab-bar.el (tab-bar-select-tab-modifiers): Mention
      tab-bar-tab-hints in docstring.
      (tab-bar-tab-hints): Mention tab-bar-select-tab-modifiers
      in docstring.
      (tab-bar-select-tab): Mention tab-bar-select-tab-modifiers
      in docstring.
      (tab-bar-switch-to-tab): Expand the docstring.
      (tab-bar-new-tab-to): Fix bug in handling 'left' value.
      (tab-bar-close-tab): Fix bug in handling 'left' value.
      (tab-bar-undo-close-tab): Use funcall tab-bar-tabs-function
      instead of direct call to tab-bar-tabs.
      (tab-bar-history-back, tab-bar-history-forward): Add docstrings.
      (tab-bar-history-mode): Expand docstring.
      
      * lisp/tab-line.el (tab-line-format): Fix bug for handling window
      switching that should set face 'tab-line-tab-current'.
      f0e1bf56
  4. 13 Mar, 2020 2 commits
    • Eli Zaretskii's avatar
      Fix last change · 1ab766fd
      Eli Zaretskii authored
      * lisp/tab-bar.el (tab-bar-new-button-show): Fix wording of the
      doc string.
      1ab766fd
    • Juri Linkov's avatar
      * lisp/tab-bar.el: Last-minute changes. · ecfe6339
      Juri Linkov authored
      * lisp/tab-bar.el (tab-bar-mode): Check for non-nil
      tab-bar-new-button and tab-bar-close-button.
      (tab-bar-new-button-show): New defcustom.
      (tab-bar-make-keymap-1): Check for tab-bar-new-button-show.
      (tab-bar-separator): Add docstring.
      ecfe6339
  5. 10 Feb, 2020 1 commit
    • Juri Linkov's avatar
      Use quit-restore-window to close tab (bug#39446) · ac9acc18
      Juri Linkov authored
      * 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.
      ac9acc18
  6. 04 Feb, 2020 1 commit
    • Juri Linkov's avatar
      Fix faces tab-bar and tab-line. · ef5fba9f
      Juri Linkov authored
      * lisp/tab-bar.el (tab-bar) <defface>:
      * lisp/tab-line.el (tab-line) <defface>:
      Check for min-colors 88 instead of type x.
      ef5fba9f
  7. 29 Jan, 2020 1 commit
    • Juri Linkov's avatar
      Tab-bar related fixes. · de411615
      Juri Linkov authored
      * lisp/cus-start.el (tab-bar-mode): Use dedicated group 'tab-bar'.
      
      * lisp/tab-bar.el (tab-bar-history-mode): Add :group 'tab-bar'.
      (tab-bar-get-buffer-tab): Add optional arg 'ignore-current-tab'.
      
      * lisp/desktop.el (desktop-buffers-not-to-save-function): Add docstring.
      de411615
  8. 22 Jan, 2020 1 commit
    • Juri Linkov's avatar
      Tab-bar related finishing touches. · 92f080dd
      Juri Linkov authored
      * lisp/tab-bar.el (tab-bar-tab-name-ellipsis): Use shorter name
      instead of tab-bar-tab-name-truncated-ellipsis.
      (tab-bar-new-tab-to) <defcustom>: Add 'function' option.
      (tab-bar-new-tab-to) <function>: Use it.
      
      * lisp/tab-line.el (tab-line-close-tab): Add missing arg 'tab' to
      tab-line-close-tab-function funcall.
      92f080dd
  9. 20 Jan, 2020 1 commit
    • Juri Linkov's avatar
      Allow optional truncation of tab names in tab-bar and tab-line (bug#38693) · 3ba0db41
      Juri Linkov authored
      * lisp/tab-line.el (tab-line-tab-name-truncated-max): New defcustom.
      (tab-line-tab-name-truncated-buffer): Use tab-line-tab-name-truncated-max
      consistently with similar options in tab-bar.el.
      (tab-line-tabs-limit): Remove variable.
      (tab-line-tabs-window-buffers): Remove use of tab-line-tabs-limit
      that was an experimental feature before horizontal scrolling was implemented.
      (tab-line-close-tab-function): Rename from tab-line-close-tab-action
      and allow a customizaed function as option.
      (tab-line-close-tab): Call function if tab-line-close-tab-function
      is customized to a function.
      
      * lisp/tab-bar.el (tab-bar-tab-name-function): Add option
      tab-bar-tab-name-truncated.
      (tab-bar-tab-name-truncated-max): New defcustom.
      (tab-bar-tab-name-truncated-ellipsis): New variable.
      (tab-bar-tab-name-truncated): New function.
      3ba0db41
  10. 01 Jan, 2020 1 commit
  11. 22 Dec, 2019 1 commit
  12. 21 Dec, 2019 1 commit
  13. 19 Dec, 2019 1 commit
    • Juri Linkov's avatar
      * lisp/tab-bar.el: Sort tab names by recency for tab switching (bug#38624) · dad47bff
      Juri Linkov authored
      * lisp/tab-bar.el (tab-bar--tabs-recent): New function with code
      extracted from tab-bar--tab-index-recent.
      (tab-bar-switch-to-tab): Use tab-bar--tabs-recent in interactive spec
      to sort names of tabs by recency for default values of completing-read.
      (tab-prefix-map): Bind RET to tab-bar-select-tab-by-name, and 'm' to tab-move.
      dad47bff
  14. 15 Dec, 2019 4 commits
  15. 07 Dec, 2019 1 commit
  16. 04 Dec, 2019 2 commits
  17. 03 Dec, 2019 1 commit
  18. 02 Dec, 2019 1 commit
  19. 26 Nov, 2019 1 commit
  20. 16 Nov, 2019 1 commit
    • Juri Linkov's avatar
      * lisp/tab-bar.el: Add missing arg. · 3dcf06bf
      Juri Linkov authored
      * lisp/tab-bar.el (tab-bar-list-next-line)
      (tab-bar-list-prev-line): Add missing interactive spec for prefix arg.
      
      * lisp/mouse.el (mouse-buffer-menu-mode-groups): Add "Git" regexp
      to match "Git-Region-History" mode name for "Version Control" group.
      3dcf06bf
  21. 10 Nov, 2019 1 commit
  22. 09 Nov, 2019 1 commit
  23. 06 Nov, 2019 1 commit
  24. 03 Nov, 2019 2 commits
    • Juri Linkov's avatar
      * lisp/tab-bar.el: Better handling of tab-bar-history. · da087965
      Juri Linkov authored
      * lisp/tab-bar.el (tab-bar-history-limit): Increase to 10 since wc
      is not saved to the desktop file anymore, so doesn't affect its size.
      (tab-bar-history--pre-change, tab-bar--history-change):
      Store wc before possibly entering the minibuffer.
      da087965
    • Juri Linkov's avatar
      * lisp/tab-bar.el: Filter out non-persistent tab parameters from frameset. · c472df8a
      Juri Linkov authored
      * lisp/tab-bar.el (frameset-filter-tabs): New function
      added to 'frameset-filter-alist' for frame parameter 'tabs'.
      (tab-bar--tab): Remove ws-bl/ws-bbl that are not needed because
      frameset doesn't save frame buffer-list to desktop anyway.
      (tab-bar-select-tab): Remove ws-bl/ws-bbl related code.
      
      * lisp/emacs-lisp/seq.el (seq-reduce): Add autoload cookie.
      c472df8a
  25. 30 Oct, 2019 1 commit
  26. 29 Oct, 2019 1 commit
    • 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
  27. 28 Oct, 2019 1 commit
  28. 27 Oct, 2019 1 commit
    • Juri Linkov's avatar
      * lisp/tab-bar.el: Add tab-bar-history-mode with arrow buttons for navigation. · 7e300762
      Juri Linkov authored
      * lisp/tab-bar.el (tab-bar-back-button, tab-bar-forward-button):
      New variables.
      (tab-bar-make-keymap-1): Show these buttons in tab-bar-history-mode.
      (tab-bar--tab): Add history-back and history-forward.
      (tab-bar-select-tab): Restore history-back and history-forward.
      (tab-bar-history-omit, tab-bar-history-back)
      (tab-bar-history-forward, tab-bar-history-pre-change): New variables.
      (tab-bar-history-pre-change, tab-bar-history-change)
      (tab-bar-history-back, tab-bar-history-forward)
      (tab-bar-history-mode): New functions.
      7e300762
  29. 26 Oct, 2019 3 commits
  30. 23 Oct, 2019 3 commits
    • Juri Linkov's avatar
      * lisp/tab-bar.el: Allow to specify interactively where to add a new tab. · 96afd74b
      Juri Linkov authored
      * lisp/tab-bar.el (tab-bar-new-tab-to): Rename from tab-bar-new-tab.
      Add optional arg TO-INDEX.
      (tab-bar-new-tab): New implementation to use relative ARG.
      (tab-new-to): Alias to tab-bar-new-tab-to.
      96afd74b
    • Juri Linkov's avatar
      * lisp/tab-bar.el: Rename tab-bar-swap-tabs to tab-bar-move-tab-to. · 9f52f61b
      Juri Linkov authored
      * lisp/tab-bar.el (tab-bar-move-tab-to): Rename from tab-bar-swap-tabs.
      Change logic to push the moved tab between existing tabs.
      (tab-bar-move-tab): Call tab-bar-move-tab-to instead of tab-bar-swap-tabs.
      (tab-move-to): Rename alias from tab-swap.
      9f52f61b
    • Juri Linkov's avatar
      Implement tab close undo feature for tab-bar. · 666686a3
      Juri Linkov authored
      * lisp/tab-bar.el (tab-bar-closed-tabs): New variable.
      (tab-bar-close-tab): Add closed tab to tab-bar-closed-tabs.
      Disable tab-bar-mode on closing the last tab.
      (tab-bar-close-other-tabs): Add all closed tabs to tab-bar-closed-tabs.
      (tab-bar-undo-close-tab): New command.
      (tab-undo): Alias to tab-bar-undo-close-tab.
      666686a3