1. 09 Nov, 2019 1 commit
  2. 06 Nov, 2019 1 commit
  3. 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.
    • 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.
  4. 30 Oct, 2019 1 commit
  5. 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.
  6. 28 Oct, 2019 1 commit
  7. 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.
  8. 26 Oct, 2019 3 commits
  9. 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.
    • 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.
    • 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.
  10. 22 Oct, 2019 1 commit
  11. 20 Oct, 2019 5 commits
    • Juri Linkov's avatar
      * lisp/tab-bar.el: Use autoloaded seq-position. · 5cc1bd5e
      Juri Linkov authored
      * lisp/tab-bar.el (tab-bar--current-tab-index)
      (tab-bar--tab-index, tab-bar--tab-index-by-name):
      Use seq-position.
      (tab-bar-select-tab, tab-bar-new-tab, tab-bar-close-tab)
      (tab-bar-close-other-tabs, tab-bar-rename-tab)
      (tab-bar-list-execute): Call force-mode-line-update
      unconditionally independent from tab-bar-mode.
      (tab-bar-rename-tab, tab-bar-rename-tab-by-name):
      Use read-from-minibuffer instead of read-string
      to be able to enter empty string.
    • Juri Linkov's avatar
    • Juri Linkov's avatar
      * lisp/tab-bar.el (tab-bar-swap-tabs, tab-bar-move-tab): New commands. · 912966a5
      Juri Linkov authored
      (tab-swap, tab-move): New aliases to new commands.
    • Juri Linkov's avatar
      Provide default value for tab-name/frame-name reading minibuffer · dff8978f
      Juri Linkov authored
      * lisp/tab-bar.el (tab-bar-rename-tab, tab-bar-rename-tab-by-name):
      Provide default value for read-string.
      (tab-bar-select-tab-by-name): Alias for tab-bar-switch-to-tab.
      * lisp/frame.el (set-frame-name): Provide default value for
      read-string in interactive spec.
      * lisp/cus-start.el (tab-bar-position): Use choice instead of boolean.
    • Juanma Barranquero's avatar
      lisp/*.el: Fix typos and improve some docstrings · 41ba8231
      Juanma Barranquero authored
      * lisp/auth-source.el (auth-source-backend-parse-parameters)
      (auth-source--decode-octal-string, auth-source-plstore-search):
      * lisp/registry.el (registry-lookup)
      (registry-lookup-secondary, registry-lookup-secondary-value)
      (registry-search, registry-delete, registry-size, registry-full)
      (registry-insert, registry-reindex, registry-prune)
      * lisp/subr.el (nbutlast, process-live-p):
      * lisp/tab-bar.el (tab-bar-list):
      * lisp/cedet/ede/linux.el (ede-linux--get-archs)
      (ede-linux--include-path, ede-linux-load):
      * lisp/erc/erc-log.el (erc-log-all-but-server-buffers):
      * lisp/erc/erc-pcomplete.el (pcomplete-erc-commands)
      (pcomplete-erc-ops, pcomplete-erc-not-ops, pcomplete-erc-nicks)
      (pcomplete-erc-all-nicks, pcomplete-erc-channels)
      (pcomplete-erc-command-name, pcomplete-erc-parse-arguments):
      * lisp/eshell/em-term.el (eshell-visual-command-p):
      * lisp/gnus/gnus-cache.el (gnus-cache-fully-p):
      * lisp/gnus/nnmail.el (nnmail-get-active)
      * lisp/mail/mail-utils.el (mail-string-delete):
      * lisp/mail/supercite.el (sc-hdr, sc-valid-index-p):
      * lisp/net/ange-ftp.el (ange-ftp-use-smart-gateway-p):
      * lisp/net/nsm.el (nsm-save-fingerprint-maybe)
      (nsm-network-same-subnet, nsm-should-check):
      * lisp/net/rcirc.el (rcirc-looking-at-input):
      * lisp/net/tramp-cache.el (tramp-get-hash-table):
      * lisp/net/tramp-compat.el (tramp-compat-process-running-p):
      * lisp/net/tramp-smb.el (tramp-smb-get-share)
      (tramp-smb-get-localname, tramp-smb-read-file-entry)
      (tramp-smb-get-cifs-capabilities, tramp-smb-get-stat-capability):
      * lisp/net/zeroconf.el (zeroconf-list-service-names)
      (zeroconf-list-service-types, zeroconf-list-services)
      (zeroconf-get-host, zeroconf-get-domain)
      * lisp/nxml/rng-xsd.el (rng-xsd-compile)
      (rng-xsd-make-date-time-regexp, rng-xsd-convert-date-time):
      * lisp/obsolete/erc-hecomplete.el (erc-hecomplete)
      (erc-command-list, erc-complete-at-prompt):
      * lisp/org/ob-scheme.el (org-babel-scheme-get-buffer-impl):
      * lisp/org/ob-shell.el (org-babel--variable-assignments:sh-generic)
      * lisp/org/org-clock.el (org-day-of-week):
      * lisp/progmodes/cperl-mode.el (cperl-char-ends-sub-keyword-p):
      * lisp/progmodes/gud.el (gud-find-c-expr, gud-innermost-expr)
      (gud-prev-expr, gud-next-expr):
      * lisp/textmodes/table.el (table--at-cell-p, table--probe-cell)
      (table--put-cell-valign-property): Fix typos.
      * lisp/so-long.el (fboundp): Doc fix.
      (so-long-mode-line-info, so-long-mode)
      (so-long--check-header-modes): Fix typos.
      * lisp/emulation/viper-mous.el (viper-surrounding-word)
      (viper-mouse-click-get-word): Fix typos.
      (viper-mouse-click-search-word): Doc fix.
      * lisp/erc/erc-backend.el (erc-forward-word, erc-word-at-arg-p)
      (erc-bounds-of-word-at-point): Fix typos.
      (erc-decode-string-from-target, define-erc-response-handler):
      Refill docstring.
      * lisp/erc/erc-dcc.el (pcomplete/erc-mode/DCC): Fix typo.
      (erc-dcc-get-host, erc-dcc-auto-mask-p, erc-dcc-get-file):
      Doc fixes.
      * lisp/erc/erc-networks.el (erc-network-name): Fix typo.
      (erc-determine-network): Refill docstring.
      * lisp/net/dbus.el (dbus-list-hash-table)
      (dbus-string-to-byte-array, dbus-byte-array-to-string)
      (dbus-check-event): Fix typos.
      (dbus-introspect-get-property): Doc fix.
      * lisp/net/tramp-adb.el (tramp-adb-file-name-handler):
      Rename ARGS to ARGUMENTS.  Doc fix.
      (tramp-adb-sh-fix-ls-output, tramp-adb-execute-adb-command)
      (tramp-adb-find-test-command): Fix typos.
      * lisp/net/tramp.el (tramp-set-completion-function)
      (tramp-get-completion-methods, tramp-get-completion-user-host)
      (tramp-get-inode, tramp-get-device, tramp-mode-string-to-int)
      (tramp-call-process, tramp-call-process-region)
      (tramp-process-lines): Fix typos.
      (tramp-interrupt-process): Doc fix.
      * lisp/org/ob-core.el (org-babel-named-src-block-regexp-for-name)
      (org-babel-named-data-regexp-for-name): Doc fix.
      (org-babel-src-block-names, org-babel-result-names): Fix typos.
      * lisp/progmodes/inf-lisp.el (lisp-input-filter): Doc fix.
      (lisp-fn-called-at-pt): Fix typo.
      * lisp/progmodes/xref.el (xref-backend-identifier-at-point):
      Doc fix.
      (xref-backend-identifier-completion-table): Fix typo.
  12. 19 Oct, 2019 1 commit
    • Juri Linkov's avatar
      Use 'C-x t' for tab-prefix-map instead of 'C-x 6' still used by 2C-mode-map. · 58d23f5f
      Juri Linkov authored
      * doc/emacs/commands.texi (Keys): Add 'C-x t'.
      * doc/emacs/frames.texi (Tab Bars): Replace 'C-x 6' with 'C-x t'.
      * doc/lispref/keymaps.texi (Prefix Keys): Add 'C-x t' (tab-prefix-map).
      * doc/lispref/maps.texi (Standard Keymaps): Add tab-prefix-map, tab-bar-map.
      * lisp/dired.el: Rebind 'C-x 6 d' to 'C-x t d'.  Use tab-prefix-map.
      * lisp/subr.el (ctl-x-6-map, ctl-x-6-prefix, ctl-x-t-prefix): Remove.
      (tab-prefix-map): New keymap bound to 'C-x t'.
      * lisp/tab-bar.el: Use tab-prefix-map instead of ctl-x-6-map.
      * lisp/textmodes/two-column.el: Restore autoload global setting of
      "\C-x6" to 2C-command.
      * lisp/ldefs-boot.el: Update to add setting "\C-x6" to 2C-command.
      * doc/emacs/commands.texi (Keys):
      * doc/emacs/text.texi (Two-Column):
      * doc/lispref/keymaps.texi (Prefix Keys):
      * doc/lispref/maps.texi (Standard Keymaps):
      Restore 'C-x 6' bound to '2C-mode-map'.
  13. 15 Oct, 2019 4 commits
    • Juri Linkov's avatar
      Declare tab-bar-tabs the single source of truth in regard to current tab name · 2912de1e
      Juri Linkov authored
      * lisp/tab-bar.el: Replace all calls of tab-bar-tabs
      with '(funcall tab-bar-tabs-function)'.
      (tab-bar-tabs): Update the current tab name here
      instead of tab-bar-make-keymap-1.
      (tab-bar-make-keymap-1): Move the current tab name updating
      to tab-bar-tabs.
    • Robert Cochran's avatar
      Allow tabs to have consistent given names · bf112e23
      Robert Cochran authored
      * lisp/tab-bar.el (tab-bar--tab): Pull automatic name information from
      current tab
      (tab-bar--current-tab): Pull automatic name information from current
      tab, or from new optional template argument
      (tab-bar-select-tab): Pass the target tab as a template when setting
      it as current tab
      (tab-bar-rename-tab, tab-bar-rename-tab-by-name): New functions
      * doc/emacs/frames.texi (Tab Bars): Document new tab rename functionality.
    • Juri Linkov's avatar
      * lisp/tab-bar.el (tab-bar-select-tab-modifiers): New defcustom. · 56a7c608
      Juri Linkov authored
      (tab-bar-mode): Use tab-bar-select-tab-modifiers to bind
      Don't override user customized key bindings of C-TAB, C-S-TAB.
      On disabling tab-bar-mode, unset only keys bound by tab-bar.
    • Juri Linkov's avatar
      Don't use expand-file-name to find images for tabs. · ffa90546
      Juri Linkov authored
      * lisp/tab-bar.el (tab-bar-mode):
      * lisp/tab-line.el (tab-line-new-button, tab-line-close-button):
      Remove expand-file-name with data-directory.
  14. 14 Oct, 2019 4 commits
  15. 13 Oct, 2019 1 commit
  16. 12 Oct, 2019 1 commit
  17. 09 Oct, 2019 1 commit
    • Juri Linkov's avatar
      * lisp/tab-bar.el: Don't show window count for one window. · 235b8b3a
      Juri Linkov authored
      * lisp/tab-bar.el (tab-bar-tab-name-selected-window): Don't show the number
      of windows when there is only one window in the window configuration.
      (tab-bar-close-other-tabs): Rename from tab-close-other.
      Take into account tab-bar-show to turn off when needed.
      (tab-close-other): Alias to tab-bar-close-other-tabs.
  18. 07 Oct, 2019 1 commit
  19. 06 Oct, 2019 1 commit
  20. 05 Oct, 2019 2 commits
    • Juri Linkov's avatar
      More tab bar related key bindings. · 6b915359
      Juri Linkov authored
      * lisp/subr.el (ctl-x-6-map, ctl-x-6-prefix): Move here from tab-bar.el
      to make it available to other modes like dired for 'C-x 6 d'.
      * lisp/dired.el (dired-other-tab): New command bound to 'C-x 6 d'.
      * lisp/tab-bar.el: Bind 'C-x 6 o' to tab-next.
      * doc/emacs/frames.texi (Tab Bars): Describe C-x 6 prefix key bindings.
    • Juri Linkov's avatar
      * lisp/tab-bar.el: In tab switching allow absolute and relative args. · e3fcf1f3
      Juri Linkov authored
      * lisp/tab-bar.el (tab-bar-tab-hints): New defcustom.
      (tab-bar-make-keymap-1): Use tab-bar-tab-hints.
      (tab-bar--tab, tab-bar--current-tab, tab-bar--current-tab-index)
      (tab-bar--tab-index, tab-bar--tab-index-by-name): New internal functions.
      (tab-bar-select-tab): Use arg as absolute position of tab to select.
      (tab-bar-switch-to-next-tab, tab-bar-switch-to-prev-tab): Use arg
      as offset relative to the current tab.
      (tab-bar-switch-to-tab): New command.
      (tab-bar-new-tab): Simplify by using cl-pushnew.
      (tab-bar-close-current-tab): Remove (the current tab is closed
      by nil arg of tab-bar-close-tab).
      (tab-bar-close-tab): Use arg as absolute position of tab to close.
      (tab-bar-close-tab-by-name): New command.
  21. 02 Oct, 2019 1 commit
    • Juri Linkov's avatar
      * lisp/tab-bar.el (tab-bar-show): New defcustom. · 52ab9485
      Juri Linkov authored
      * lisp/tab-bar.el (tab-bar-close-current-tab, tab-bar-close-tab):
      (tab-bar-new-tab): Use tab-bar-show.
      * doc/emacs/frames.texi (Tab Bars): Add tab-bar-show.
      * lisp/speedbar.el (speedbar-mode): Set buffer-local tab-bar-mode
      and tab-line-format to nil to not show in dedicated speedbar frame.
  22. 01 Oct, 2019 1 commit
  23. 28 Sep, 2019 1 commit
  24. 25 Sep, 2019 1 commit
    • Juri Linkov's avatar
      Improve customization. · e47c389c
      Juri Linkov authored
      * lisp/tab-bar.el (tab-bar-new-tab-choice)
      (tab-bar-close-button-show): New defcustoms.
      (tab-bar-tab-name-function): New defvar.
      * lisp/tab-line.el (tab-line-new-tab-choice)
      (tab-line-close-button-show): New defcustoms.