summaryrefslogtreecommitdiff
path: root/lisp/tab-line.el
Commit message (Collapse)AuthorAge
* ; Add 2023 to copyright years.Eli Zaretskii2023-01-01
|
* * lisp/tab-line.el (tab-line-cache-key-default): More cache keys (bug#60340).Juri Linkov2022-12-28
| | | | Move more cache keys here from 'tab-line-format' to give users more freedom.
* Use the function 'window-system' on the tab-bar/tab-line (bug#59620)Juri Linkov2022-12-04
| | | | | | | * lisp/tab-bar.el (tab-bar-separator) (tab-bar-format-align-right, tab-bar-auto-width): * lisp/tab-line.el (tab-line-format-template): Replace the variable 'window-system' with the function call '(window-system)'.
* ; * lisp/tab-line.el (tab-line-cache-key-function): Fix docstring (bug#57848).Juri Linkov2022-11-10
|
* * lisp/tab-line.el: Allow user-defined cache-key function (bug#57848)Juri Linkov2022-10-30
| | | | | | (tab-line-cache-key-default): New function. (tab-line-cache-key-function): New variable. (tab-line-format): Funcall tab-line-cache-key-function.
* * lisp/tab-line.el: Escape %-constructs in tab names (bug#57848)Juri Linkov2022-10-30
| | | | | (tab-line-tab-name-format-default): Replace % with %% in tab name to escape %-constructs from processing by mode-line-format.
* * lisp/tab-line.el (tab-line-auto-hscroll): Set word-wrap to nil (bug#58740).João Guerra2022-10-25
| | | | Copyright-paperwork-exempt: yes
* Prefer defvar-keymap in tab-line.elStefan Kangas2022-09-13
| | | | | | * lisp/tab-line.el (tab-line-tab-map, tab-line-add-map) (tab-line-tab-close-map, tab-line-left-map, tab-line-right-map): Prefer defvar-keymap.
* Make some additional defcustom types more restrictiveStefan Kangas2022-07-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/desktop.el (desktop-lazy-idle-delay): * lisp/files.el (dired-kept-versions) (kept-old-versions, kept-new-versions): * lisp/filesets.el (filesets-max-submenu-length) (filesets-max-entry-length, filesets-tree-max-level) (filesets-query-user-limit): * lisp/hi-lock.el (hi-lock-file-patterns-range) (hi-lock-highlight-range): * lisp/ido.el (ido-max-work-directory-list): * lisp/image/gravatar.el (gravatar-cache-ttl): * lisp/imenu.el (imenu-auto-rescan-maxout, imenu-max-items): * lisp/informat.el (Info-split-threshold): * lisp/mail/hashcash.el (hashcash-default-payment) (hashcash-default-accept-payment): * lisp/mail/mail-hist.el (mail-hist-history-size): * lisp/mail/smtpmail.el (smtpmail-retries): * lisp/msb.el (msb-display-most-recently-used): * lisp/nxml/rng-valid.el (rng-state-cache-distance) (rng-validate-chunk-size): * lisp/progmodes/gdb-mi.el (gdb-max-source-window-count): * lisp/recentf.el (recentf-arrange-by-rules-min-items): * lisp/simple.el (kill-ring-max, mark-ring-max) (global-mark-ring-max): * lisp/tab-line.el (tab-line-tab-name-truncated-max): * lisp/term.el (term-buffer-maximum-size, term-input-chunk-size): * lisp/thumbs.el (thumbs-max-image-number) (thumbs-thumbsdir-max-size, thumbs-relief, thumbs-margin) (thumbs-image-resizing-step): * lisp/type-break.el (type-break-interval) (type-break-good-rest-interval, type-break-query-interval) (type-break-warning-repeat): * lisp/vc/compare-w.el (compare-windows-sync-string-size): * lisp/woman.el (woman-fill-column): Use defcustom :type natnum. * lisp/emacs-lisp/backtrace.el (backtrace-line-length): * lisp/doc-view.el (doc-view-conversion-refresh-interval): Use defcustom :type natnum and allow the nil value. * lisp/gnus/spam-stat.el (spam-stat-process-directory-age): Use defcustom :type integer.
* * lisp/tab-line.el (tab-line-format): Use mode-line-window-selected-p.Juri Linkov2022-02-10
| | | | | | Recently 'mode-line-window-selected-p' was added to 'tab-line-tab-name-format-default'. Now add the same to another place that handles the face 'tab-line-tab-current' (bug#53629).
* Use mode-line-window-selected-p in tab-line-tab-name-format-default.Juri Linkov2022-02-06
| | | | | | * lisp/tab-line.el (tab-line-tab-name-format-default): Use the recently added function 'mode-line-window-selected-p' for the face 'tab-line-tab-current' (bug#53629).
* * lisp/tab-line.el: Support non-buffer tabs in some tab face functions.Juri Linkov2022-02-01
| | | | | | | (tab-line-tab-face-special, tab-line-tab-face-modified): For non-buffer tabs when 'tab-line-tabs-function' is e.g. 'tab-line-tabs-buffer-groups', try to get the buffer from the property 'buffer'. https://lists.gnu.org/archive/html/emacs-devel/2022-01/msg01923.html
* Merge remote-tracking branch 'origin/emacs-28' into trunkStefan Monnier2022-01-02
|\
| * * lisp/tab-line.el: Revert part of the fix in a6adfe21e4 (bug#52881)Juri Linkov2022-01-02
| | | | | | | | | | (tab-line--get-tab-property, tab-line-auto-hscroll): Use get-pos-property instead of get-text-property that fails after previous-single-property-change.
* | Merge from origin/emacs-28Eli Zaretskii2022-01-01
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 836be7a112 ; * etc/refcards/ru-refcard.tex: Update Copyright year. 86cbc6ee4a * lisp/net/tramp-sh.el: Adapt copyright year ebe8772f65 ; Minor fixes related to copyright years 23c1ee6989 ; * test/manual/etags/ETAGS.good_N: Adjust to copyright ye... 8d3fc7ec89 * src/xfaces.c (face_for_font): Make 'hash' be uintptr_t. 19dcb237b5 ; Add 2022 to copyright years. # Conflicts: # etc/NEWS # etc/refcards/ru-refcard.tex # lib/cdefs.h # lisp/erc/erc-dcc.el # lisp/erc/erc-imenu.el # lisp/erc/erc-replace.el # lisp/image-dired.el # lisp/progmodes/xref.el # m4/alloca.m4 # m4/byteswap.m4 # m4/errno_h.m4 # m4/getopt.m4 # m4/gnulib-common.m4 # m4/inttypes.m4 # m4/stddef_h.m4 # m4/stdint.m4 # m4/sys_socket_h.m4
| * ; Add 2022 to copyright years.Eli Zaretskii2022-01-01
| |
* | Merge from origin/emacs-28Stefan Kangas2022-01-01
|\| | | | | | | | | 67400da412 Improve doc strings of fringe indicator variables a6adfe21e4 * lisp/tab-line.el (tab-line--get-tab-property): New funct...
| * * lisp/tab-line.el (tab-line--get-tab-property): New function (bug#52881).Juri Linkov2021-12-31
| | | | | | | | | | | | | | (tab-line-auto-hscroll): Use ‘tab-line--get-tab-property’ instead of ‘get-pos-property 1’, and ‘get-text-property’ instead of ‘get-pos-property’. (tab-line-select-tab, tab-line-close-tab): Use tab-line--get-tab-property.
* | * lisp/tab-line.el (tab-line-tab-name-format-default): Add help-echo.Juri Linkov2021-12-30
| | | | | | | | (bug#52889)
* | Fix tab-line cycling when using buffer groups (bug#52050)Matt Kramer2021-11-24
| | | | | | | | | | | | | | | | * lisp/tab-line.el (tab-line-switch-to-prev-tab, tab-line-switch-to-next-tab): Remove tabs that aren't associated with a buffer, such as the `group-tab' that exists when `tab-line-tabs-function' is `tab-line-tabs-buffer-groups'. Copyright-paperwork-exempt: yes
* | * lisp/tab-line.el (tab-line-mode): Preserve existing value of tab-line-formatJuri Linkov2021-11-14
|/ | | | | Keep the old value of tab-line-format when enabling tab-line-mode and don't overwrite it with nil when disabling tab-line-mode (bug#51830).
* Add new and fix existing docstrings in tab-bar.el and tab-line.el (bug#51247)Juri Linkov2021-10-17
| | | | | | | * lisp/tab-bar.el (tab-bar--key-to-number) (tab-bar--event-to-item, tab-bar--format-tab) (tab-bar--format-tab-group, tab-bar--tab, tab-bar--current-tab) (tab-bar--current-tab-make): Add/fix docstrings.
* Improve doc strings in tab-line.elEli Zaretskii2021-10-17
| | | | | | | | | | | | | | | | | | * lisp/tab-line.el (tab-line-tab-name-function) (tab-line-tab-name-truncated-buffer, tab-line-tabs-mode-buffers) (tab-line-tabs-buffer-group-function) (tab-line-tabs-buffer-group-sort-function) (tab-line-tabs-buffer-groups, tab-line-tab-name-format-function) (tab-line-tab-name-format-default, tab-line-format-template) (tab-line-tab-face-inactive-alternating) (tab-line-tab-face-special, tab-line-tab-face-modified) (tab-line-format, tab-line-auto-hscroll, tab-line-hscroll-right) (tab-line-hscroll-left, tab-line-new-tab, tab-line-select-tab) (tab-line-switch-to-prev-tab, tab-line-switch-to-next-tab) (tab-line-close-tab-function, tab-line-close-tab) (tab-line-tab-context-menu, tab-line-context-menu) (tab-line-mode, tab-line-exclude-modes, tab-line-mode--turn-on): Add or fix doc strings.
* Copy parent face attributes to tab-line-tab-current instead of inheriting faceJuri Linkov2021-10-11
| | | | | | | * lisp/tab-line.el (tab-line-tab-current): Don't inherit face from 'tab-line-tab' to not inherit the face attribute :height from 'tab-line', because :height of mouse-face is added to the base face. Copy here most of the parent face attributes (bug#50798).
* * lisp/tab-line.el (tab-line-format): Add face-modified to the cache key.Juri Linkov2021-10-03
| | | | | | | When tab-line-tab-face-functions contains tab-line-tab-face-modified, add 'buffer-modified-p' status to the cache-key, so the cache will expire when the buffer modification status will change. https://lists.gnu.org/archive/html/emacs-devel/2021-10/msg00129.html
* * lisp/tab-line.el: Add modified-buffer faceAdam Porter2021-09-25
| | | | | | | | (tab-line-tab-modified): New face. (tab-line-tab-face-modified): New function. (tab-line-tab-face-functions): Use new function. * etc/NEWS: Update.
* * lisp/tab-line.el: Add context menu bound to down-mouse-3 like on tab bar.Juri Linkov2021-09-15
| | | | | | | | | | | | | * lisp/tab-line.el: Bind tab-line down-mouse-3 to tab-line-context-menu. (tab-line-tab-map): Rebind tab-line-select-tab from mouse-1 to down-mouse-1. Bind down-mouse-3 to tab-line-tab-context-menu. (tab-line-add-map): Rebind tab-line-new-tab from mouse-1 to down-mouse-1. (tab-line-left-map, tab-line-right-map): Rebind mouse-1 to down-mouse-1. (tab-line-tab-context-menu, tab-line-context-menu): New functions. (tab-line-hscroll-right, tab-line-hscroll-left) (tab-line-new-tab, tab-line-select-tab) (tab-line-switch-to-prev-tab, tab-line-switch-to-next-tab) (tab-line-close-tab): Rename event args to 'event'.
* Don't turn mouse-1 into mouse-2 when clicking on the tab-line (bug#49247)Juri Linkov2021-07-08
| | | | | * lisp/tab-line.el (tab-line-tab-name-format-default): For 'tab-line-tab-map' add the property 'follow-link' with the value 'ignore'.
* * lisp/tab-line.el: Face cleanup.Juri Linkov2021-03-17
|
* * lisp/tab-line.el: Update docstring of 'tab-line-tabs-function' (bug#47117)Gabriel do Nascimento Ribeiro2021-03-14
| | | | | | (tab-line-tabs-function): Mention 'tab-line-tabs-buffer-groups' in the docstring. (tab-line-tabs-buffer-groups): Add docstring.
* * lisp/tab-line.el: Add face for group-tab (bug#47118)Gabriel do Nascimento Ribeiro2021-03-14
| | | | | | | (tab-line-tab-face-functions): Add choice for 'tab-line-tab-face-group'. (tab-line-tab-group): New face. (tab-line-tabs-buffer-groups): Set alist key 'group-tab' for group tabs. (tab-line-tab-face-group): New function to set face for group tabs.
* * lisp/tab-line.el (tab-line-tab-name-format-function): New defcustom.Juri Linkov2021-02-23
| | | | | | (tab-line-tab-name-format-default): New function as the default value. (tab-line-format-template): Funcall tab-line-tab-name-format-function. This is like recently added tab-bar-tab-name-format-function.
* Prefer defvar-local in remaining librariesStefan Kangas2021-02-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/align.el (align-mode-rules-list) (align-mode-exclude-rules-list): * lisp/bookmark.el (bookmark-current-bookmark) (bookmark-annotation-name) (bookmark--annotation-from-bookmark-list): * lisp/calc/calc-embed.el (calc-embedded-all-active) (calc-embedded-some-active): * lisp/comint.el (comint-password-function): * lisp/completion.el (completion-syntax-table): * lisp/dframe.el (dframe-track-mouse-function) (dframe-help-echo-function, dframe-mouse-click-function) (dframe-mouse-position-function, dframe-timer) (dframe-attached-frame, dframe-controlled): * lisp/ehelp.el (electric-help-orig-major-mode): * lisp/eshell/esh-util.el (eshell-path-env): * lisp/expand.el (expand-pos, expand-index, expand-point): * lisp/face-remap.el (text-scale-mode-remapping) (text-scale-mode-lighter, text-scale-mode-amount) (text-scale-remap-header-line, buffer-face-mode-remapping): * lisp/ffap.el (ffap-menu-alist): * lisp/files-x.el (connection-local-variables-alist): * lisp/foldout.el (foldout-fold-list, foldout-mode-line-string): * lisp/follow.el (follow-start-end-invalid): * lisp/forms.el (forms--mode-setup): * lisp/gnus/message.el (message-cross-post-old-target) (message-options): * lisp/help-mode.el (help-xref-stack, help-xref-forward-stack) (help-xref-stack-item, help-xref-stack-forward-item): * lisp/hexl.el (hexl-mode--old-var-vals, hexl-ascii-overlay): * lisp/hilit-chg.el (hilit-chg-string): * lisp/ido.el (ido-eoinput): * lisp/imenu.el (imenu-generic-expression) (imenu-create-index-function, imenu-default-goto-function) (imenu-prev-index-position-function) (imenu-extract-index-name-function, imenu-name-lookup-function) (imenu-syntax-alist, imenu-case-fold-search): * lisp/jka-compr.el (jka-compr-really-do-compress): * lisp/language/ethio-util.el (ethio-prefer-ascii-space): * lisp/leim/quail/hangul.el (hangul-input-method-help-text): * lisp/leim/quail/japanese.el (quail-japanese-package-saved): * lisp/linum.el (linum-overlays, linum-available): * lisp/man.el (Man-original-frame, Man-arguments, Man--sections) (Man--refpages, Man-page-list, Man-current-page) (Man-page-mode-string): * lisp/pcomplete.el (pcomplete-current-completions) (pcomplete-last-completion-length) (pcomplete-last-completion-stub, pcomplete-last-completion-raw) (pcomplete-last-window-config, pcomplete-window-restore-timer): * lisp/reveal.el (reveal-open-spots, reveal-last-tick): * lisp/ruler-mode.el (ruler-mode): * lisp/scroll-lock.el (scroll-lock-preserve-screen-pos-save): * lisp/server.el (server-buffer-clients, server-existing-buffer): * lisp/tab-line.el (tab-line-exclude): * lisp/tar-mode.el (tar-data-buffer, tar-data-swapped): * lisp/thumbs.el (thumbs-current-tmp-filename) (thumbs-current-image-filename, thumbs-extra-images) (thumbs-image-num, thumbs-buffer, thumbs-marked-list): * lisp/tutorial.el (tutorial--point-before-chkeys) (tutorial--point-after-chkeys, tutorial--lang): * lisp/url/url-vars.el (url-current-object) (url-current-mime-headers, url-current-lastloc): * lisp/view.el (view-mode, view-old-buffer-read-only) (view-old-Helper-return-blurb, view-page-size) (view-half-page-size, view-last-regexp, view-return-to-alist) (view-exit-action, view-overlay): * lisp/wid-edit.el (widget-global-map, widget-field-new) (widget-field-list, widget-field-last, widget-field-was): * lisp/woman.el (woman-imenu-done): Prefer defvar-local.
* * lisp/tab-line.el (tab-line-new-tab): Use tty menus when supported.Jared Finder2021-01-30
|
* Update copyright year to 2021Paul Eggert2021-01-01
| | | | Run "TZ=UTC0 admin/update-copyright".
* * lisp/tab-line.el: New options, faces, and functionsAdam Porter2020-12-23
| | | | | | | | | | | | | | * lisp/tab-line.el: (tab-line-tab-face-functions): New option. (tab-line-tab-inactive-alternate): New face. (tab-line-tab-special): New face. (tab-line-tab-face-inactive-alternating): New function. (tab-line-tab-face-special): New function. (tab-line-format-template): Use them. * etc/NEWS: Update. With thanks to Juri Linkov and Eli Zaretskii for their guidance.
* Use '…' for ellipsis in truncate-string-to-width by default (bug#41250)Juri Linkov2020-10-04
| | | | | | | | | | | | | | | | * lisp/international/mule-util.el (truncate-string-ellipsis): Change the default value to nil. (truncate-string-ellipsis): New function. (truncate-string-to-width): Use the value returned from the function 'truncate-string-ellipsis'. * lisp/tab-bar.el (tab-bar-tab-name-truncated): * lisp/tab-line.el (tab-line-tab-name-ellipsis): Take advantage of the improvement of the ellipsis default value in truncate-string-to-width and truncate-string-ellipsis. * doc/lispref/display.texi (Size of Displayed Text): Improve description of truncate-string-ellipsis.
* ; * lisp/tab-line.el (tab-line-switch-cycling): Fix last change.Eli Zaretskii2020-09-13
|
* Clarify when tab-line-switch-cycling is usedKiso Katsuyuki2020-09-13
| | | | | | * lisp/tab-line.el (tab-line-switch-cycling): Clarify when the variable is used. Copyright-paperwork-exempt: yes
* ; Silence byte-compilation warning in last changeBasil L. Contovounesios2020-09-10
| | | | | * lisp/tab-line.el (tab-line-switch-cycling): Move definition before first use.
* ; Fix typo in last changeBasil L. Contovounesios2020-09-10
|
* Introduce a new variable tab-line-switch-cyclingKiso Katsuyuki2020-09-09
| | | | | | If it is set t, enable cycling tab switch. Default is nil. Copyright-paperwork-exempt: yes
* Suppress errors of tab-line-switch functionsKiso Katsuyuki2020-09-09
| | | | | | | | Traget errors occurs when tab-line-switch-to-prev-tab or tab-line-switch-to-next-tab is invoked in a buffer which is not in tabs Copyright-paperwork-exempt: yes
* Add support for horizontal scrolling in tab-lineDaniel Martín2020-09-07
| | | | | | | | | * lisp/tab-line.el ([tab-line wheel-left]): Bind left and right tab line scrolling to the 'wheel-left' and 'wheel-right' mouse events. ([tab-line S-wheel-right]): Analogous change for the functions that switch tabs. * etc/NEWS: Announce the new feature (bug#43224). Copyright-paperwork-exempt: yes
* Move tab-bar and tab-line faces to faces.el (part of bug#41200)Juri Linkov2020-06-08
| | | | | | | | | | | | | | | | These are basic faces, so they need to be defined in faces.el, otherwise (get 'tab-line 'face) returns 0. * lisp/faces.el (tab-bar, tab-line): Move faces here from tab-bar.el and tab-line.el. * lisp/tab-bar.el (tab-bar): Move face to faces.el. (tab-bar-faces): Add '((tab-bar custom-face)) to the second arg MEMBERS of 'defgroup'. * lisp/tab-line.el (tab-line): Move face to faces.el. (tab-line-faces): Add '((tab-line custom-face)) to the second arg MEMBERS of 'defgroup'.
* Fix bugs in tab-bar and tab-line and mention remaining features in manual.Juri Linkov2020-04-27
| | | | | | | | | | | | | | | | | | | | | | | | | * 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'.
* * lisp/tab-line.el (tab-line-new-button-show): New defcustom.Juri Linkov2020-03-20
| | | | | | * lisp/tab-line.el (tab-line-format-template): Use tab-line-new-button-show. (tab-line-new-tab-choice): Remove choice 'nil' with "No button". (tab-line-separator): Add docstring.
* * lisp/tab-line.el: Fix tab-line-format and tab-line-format-template.Juri Linkov2020-03-17
| | | | | | | * lisp/tab-line.el (tab-line-format): Use buffer-name in the cache key instead of just buffer object to invalidate the cache on buffer renaming. (tab-line-format-template): Always leave the separator after the last tab like tab-bar.el already does.
* * lisp/tab-line.el: Fix auto-hscrolling (bug#39649)Juri Linkov2020-02-29
| | | | | | | | | | | | | | | | Distinguish offsets between manual-vs-automatic scrolling as integers-vs-floats instead of positive-vs-negative integers. * lisp/tab-line.el (tab-line-format-template): Use 'numberp' instead of 'integerp', and 'truncate' instead of 'abs'. (tab-line-format): When the window-buffer was updated, set window-parameter to float to enable auto-hscroll after it was disabled on manual scrolling. (tab-line-auto-hscroll-buffer): New variable with internal buffer. (tab-line-auto-hscroll): Erase in tab-line-auto-hscroll-buffer. Use 'numberp' instead of 'integerp', 'truncate' instead of 'abs', and 'float' instead of '-'. (tab-line-hscroll): Use 'numberp' instead of 'integerp', and 'truncate' instead of 'abs'.
* Fix faces tab-bar and tab-line.Juri Linkov2020-02-05
| | | | | | * lisp/tab-bar.el (tab-bar) <defface>: * lisp/tab-line.el (tab-line) <defface>: Check for min-colors 88 instead of type x.