summaryrefslogtreecommitdiff
path: root/lisp/tab-bar.el
Commit message (Collapse)AuthorAgeFilesLines
* Make some defcustom types more restrictiveStefan Kangas2022-07-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/abbrev.el (abbrev-suggest-hint-threshold): * lisp/bookmark.el (bookmark-bmenu-file-column) (bookmark-menu-length): * lisp/buff-menu.el (Buffer-menu-size-width) (Buffer-menu-mode-width): * lisp/calendar/calendar.el (calendar-week-start-day) (calendar-intermonth-spacing, calendar-column-width) (calendar-day-digit-width): * lisp/calc/calc.el (calc-undo-length): * lisp/calendar/timeclock.el (timeclock-workday): * lisp/comint.el (comint-buffer-maximum-size) (comint-input-ring-size): * lisp/doc-view.el (doc-view-resolution, doc-view-image-width): * lisp/emacs-lisp/bytecomp.el (byte-compile-docstring-max-column): * lisp/emacs-lisp/comp.el (native-comp-debug) (native-comp-verbose, native-comp-async-jobs-number): * lisp/emacs-lisp/package.el (package-name-column-width) (package-version-column-width, package-status-column-width) (package-archive-column-width): * lisp/eshell/esh-mode.el (eshell-buffer-maximum-lines): * lisp/frame.el (blink-cursor-blinks): * lisp/info.el (Info-breadcrumbs-depth): * lisp/jit-lock.el (jit-lock-chunk-size): * lisp/kmacro.el (kmacro-ring-max): * lisp/menu-bar.el (yank-menu-length, yank-menu-max-items): * lisp/midnight.el (clean-buffer-list-delay-general) (clean-buffer-list-delay-special): * lisp/net/dictionary.el (dictionary-port) (dictionary-proxy-port): * lisp/net/ldap.el (ldap-default-port): * lisp/net/pop3.el (pop3-port, pop3-stream-length): * lisp/net/rcirc.el (rcirc-default-port): * lisp/net/sieve-manage.el (sieve-manage-default-port): * lisp/play/spook.el (spook-phrase-default-count): * lisp/play/tetris.el (tetris-buffer-width) (tetris-buffer-height, tetris-width, tetris-height) (tetris-top-left-x, tetris-top-left-y): * lisp/profiler.el (profiler-sampling-interval): * lisp/progmodes/sql.el (sql-port): * lisp/recentf.el (recentf-max-menu-items): * lisp/strokes.el (strokes-grid-resolution): * lisp/tab-bar.el (tab-bar-tab-name-truncated-max): * lisp/term/xterm.el (xterm-max-cut-length): * lisp/time.el (display-time-interval, world-clock-timer-second): * lisp/url/url-cache.el (url-cache-expire-time): * lisp/url/url-cookie.el (url-cookie-save-interval): * lisp/url/url-history.el (url-history-save-interval): * lisp/url/url-queue.el (url-queue-parallel-processes) (url-queue-timeout): * lisp/url/url-vars.el (url-max-password-attempts) (url-max-redirections): * lisp/vc/emerge.el (emerge-min-visible-lines): * lisp/vc/vc.el (vc-log-show-limit): * lisp/window.el (window-min-height, window-min-width): * lisp/winner.el (winner-ring-size): Use :type natnum. * lisp/savehist.el (savehist-file-modes): Fix setting to nil value and use :type natnum.
* Quote some literal keys to get help-key-binding faceStefan Kangas2022-07-031-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/align.el (align): * lisp/bindings.el (undo-repeat-map): * lisp/calc/calc-embed.el (calc-do-embedded): * lisp/calc/calc-prog.el (calc-user-define-invocation): * lisp/calc/calc-yank.el (calc--edit-mode): * lisp/comint.el (comint-history-isearch) * lisp/dired.el (dired-mode): * lisp/emulation/viper.el (viper-mode): * lisp/erc/erc-button.el (erc-button-face): * lisp/erc/erc-track.el (erc-track-enable-keybindings): * lisp/gnus/gnus-art.el (gnus-article-button-face): * lisp/gnus/gnus-eform.el (gnus-edit-form): * lisp/gnus/gnus-sum.el (gnus-summary-stop-at-end-of-message) (gnus-summary-goto-unread): * lisp/icomplete.el (icomplete-show-matches-on-no-input): * lisp/image-mode.el (image-scroll-up): * lisp/international/iso-transl.el (iso-transl-set-language): * lisp/isearch.el (isearch-forward-regexp): * lisp/misc.el (butterfly): * lisp/outline.el (outline-minor-mode-cycle-filter) (outline-minor-mode-cycle): * lisp/progmodes/grep.el (rgrep): * lisp/progmodes/gud.el (gud-gdb-repeat-map, gud-sdb-repeat-map) (gud-dbx-repeat-map, gud-xdb-repeat-map, gud-perldb-repeat-map) (gud-pdb-repeat-map, gud-guiler-repeat-map, gud-jdb-repeat-map): * lisp/progmodes/idlw-shell.el (idlwave-shell-graphics-window-size) (idlwave-shell-mode): * lisp/progmodes/idlwave.el (idlwave-shell-debug-modifiers) (idlwave-list-shell-load-path-shadows): * lisp/progmodes/python.el (python-shell-get-process-or-error): * lisp/repeat.el (repeat-check-key): * lisp/replace.el (query-replace, query-replace-regexp) (read-regexp): * lisp/simple.el (read-extended-command-predicate): * lisp/tab-bar.el (tab-bar-switch-repeat-map) (tab-bar-move-repeat-map): * lisp/term.el (ansi-term): * lisp/textmodes/reftex-index.el (reftex-index-phrases-set-macro-key): * lisp/vc/emerge.el (emerge-scroll-left, emerge-scroll-right): * lisp/windmove.el: * lisp/winner.el (winner-mode): Quote literal keys to get 'help-key-binding' face. * lisp/comint.el (comint-insert-previous-argument): Use regular quotes.
* Further audits of single quotes in Lisp doc stringsLars Ingebrigtsen2022-05-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * test/manual/etags/el-src/emacs/lisp/progmodes/etags.el (tags-apropos-additional-actions): * lisp/window.el (delete-window-choose-selected): * lisp/vc/ediff-merg.el (ediff-combination-pattern): * lisp/vc/diff.el (diff-no-select): * lisp/tab-bar.el (tab-bar-new-tab-choice): * lisp/simple.el (next-error-message-highlight): (backward-delete-char-untabify): * lisp/ses.el (ses-jump-cell-name-function): * lisp/org/org.el (org-latex-to-html-convert-command): * lisp/org/org-agenda.el (org-agenda-sorting-strategy): * lisp/net/tramp.el (tramp-default-file-modes): * lisp/net/newst-treeview.el (newsticker-treeview-use-feed-name-from-url-list-in-treeview): * lisp/net/eww.el (eww-auto-rename-buffer): * lisp/mwheel.el (mouse-wheel-scroll-amount): * lisp/mail/rmail.el (rmail-re-abbrevs): * lisp/info.el (Info-history-forward-menu): * lisp/gnus/nnselect.el (nnselect-retrieve-headers-override-function): * lisp/gnus/gnus-start.el (gnus-subscribe-hierarchical-interactive): * lisp/fringe.el (fboundp): * lisp/eshell/esh-var.el (eshell-variable-aliases-list): * lisp/emacs-lisp/checkdoc.el (checkdoc-column-zero-backslash-before-paren): * lisp/dired-aux.el (dired-confirm-shell-command): * lisp/calendar/calendar.el (calendar-time-zone-style): * lisp/ansi-color.el (ansi-color-faces-vector): (ansi-color-names-vector): Audit use of various single quotes in Lisp doc strings.
* * lisp/tab-bar.el (switch-to-buffer-other-tab): Use pop-to-buffer (bug#55582).Juri Linkov2022-05-231-3/+3
| | | | | Replace display-buffer with pop-to-buffer that sets the current buffer explicitly.
* * lisp/tab-bar.el: Use pixel-based alignment (bug#55207)Juri Linkov2022-05-041-3/+3
| | | | | | * lisp/tab-bar.el (tab-bar-format-align-right): Use string-pixel-width on the string with tab-bar face to get the width in pixels to align. (tab-bar-format-global): Remove string-trim-right to keep padding-right.
* Audit quoting the quote character in doc stringsLars Ingebrigtsen2022-04-221-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * test/src/regex-emacs-tests.el (regex-tests-compare): (regex-tests-compare): (regex-tests-match): * test/lisp/xml-tests.el (xml-parse-tests--qnames): * test/lisp/mh-e/mh-thread-tests.el (mh-thread-tests-before-from): * test/lisp/cedet/srecode-utest-template.el (srecode-utest-map-reset): * test/lisp/calc/calc-tests.el (calc-tests-equal): * lisp/window.el (get-lru-window): (get-mru-window): (get-largest-window): (quit-restore-window): (display-buffer): * lisp/vc/vc-rcs.el (vc-rcs-consult-headers): * lisp/url/url-auth.el (url-digest-auth-build-response): * lisp/tutorial.el (tutorial--find-changed-keys): * lisp/transient.el (transient-suffix-object): * lisp/textmodes/rst.el (rst-insert-list-new-item): * lisp/textmodes/bibtex.el (bibtex-clean-entry): * lisp/tab-bar.el (tab-bar--key-to-number): (toggle-frame-tab-bar): * lisp/ses.el (ses-recalculate-cell): (ses-define-local-printer): (ses-prin1): * lisp/progmodes/xref.el (xref--find-ignores-arguments): * lisp/progmodes/verilog-mode.el (verilog-single-declaration-end): * lisp/progmodes/tcl.el (tcl-mode-hook): * lisp/progmodes/gdb-mi.el (gdb-get-buffer-create): * lisp/progmodes/elisp-mode.el (elisp--xref-make-xref): * lisp/play/dunnet.el (dun-room-objects): * lisp/outline.el (outline--cycle-state): * lisp/org/ox-publish.el (org-publish-find-property): * lisp/org/ox-html.el (org-html--unlabel-latex-environment): * lisp/org/org-table.el (org-table-collapse-header): * lisp/org/org-plot.el (org--plot/prime-factors): * lisp/org/org-agenda.el (org-agenda--mark-blocked-entry): (org-agenda-set-restriction-lock): * lisp/org/ob-lua.el (org-babel-lua-read-string): * lisp/org/ob-julia.el (org-babel-julia-evaluate-external-process): (org-babel-julia-evaluate-session): * lisp/org/ob-core.el (org-babel-default-header-args): * lisp/obsolete/mouse-sel.el (mouse-select): (mouse-select-secondary): * lisp/net/tramp.el (tramp-methods): * lisp/net/eww.el (eww-accept-content-types): * lisp/net/dictionary-connection.el (dictionary-connection-status): * lisp/minibuffer.el (completion-flex--make-flex-pattern): * lisp/mh-e/mh-mime.el (mh-have-file-command): * lisp/mh-e/mh-limit.el (mh-subject-to-sequence): (mh-subject-to-sequence-threaded): (mh-subject-to-sequence-unthreaded): * lisp/mail/feedmail.el (feedmail-queue-buffer-file-name): (feedmail-vm-mail-mode): * lisp/ls-lisp.el (ls-lisp--sanitize-switches): * lisp/keymap.el (key-valid-p): * lisp/international/ccl.el (ccl-compile-branch-blocks): * lisp/image/image-converter.el (image-convert): * lisp/gnus/spam.el (spam-backend-check): * lisp/gnus/nnselect.el (nnselect-generate-artlist): * lisp/gnus/nnmairix.el (nnmairix-widget-other): * lisp/gnus/message.el (message-mailto): * lisp/gnus/gnus-sum.el (gnus-collect-urls-from-article): * lisp/gnus/gnus-search.el (gnus-search-prepare-query): * lisp/frame.el (frame-size-history): * lisp/eshell/esh-var.el (eshell-parse-variable-ref): * lisp/eshell/em-dirs.el (eshell-expand-multiple-dots): * lisp/erc/erc-backend.el (erc-bounds-of-word-at-point): * lisp/emulation/cua-rect.el (cua--rectangle-operation): * lisp/emacs-lisp/text-property-search.el (text-property-search-forward): * lisp/emacs-lisp/package.el (package-desc-suffix): * lisp/emacs-lisp/faceup.el (faceup-test-explain): * lisp/emacs-lisp/comp.el (comp-curr-allocation-class): (comp-alloc-class-to-container): (comp-add-cstrs): (comp-remove-type-hints-func): (batch-byte+native-compile): * lisp/emacs-lisp/cl-macs.el (cl--optimize): * lisp/elec-pair.el (electric-pair--syntax-ppss): * lisp/doc-view.el (doc-view-doc-type): * lisp/cedet/semantic/symref.el (semantic-symref-tool-alist): (semantic-symref-hit-to-tag-via-db): (semantic-symref-hit-to-tag-via-buffer): * lisp/cedet/semantic/lex-spp.el (semantic-lex-spp-get-overlay): * lisp/cedet/semantic/java.el (semantic-java-doc-keywords-map): * lisp/cedet/semantic/find.el (semantic-brute-find-tag-by-function): * lisp/cedet/semantic/db.el (semanticdb-project-predicate-functions): * lisp/cedet/semantic.el (semantic-working-type): * lisp/cedet/ede/files.el (ede-flush-directory-hash): * lisp/calc/calc.el (calc--header-line): * lisp/auth-source.el (auth-source-pick-first-password): (auth-source--decode-octal-string): * etc/themes/modus-themes.el (modus-themes--paren): (modus-themes--agenda-habit): * admin/cus-test.el (cus-test-vars-with-changed-state): Fix quoting in doc strings. In code examples, the ' character is quoted with \\=, and regularize 'foo to `foo', and quote strings like "foo" instead of 'foo'.
* * lisp/tab-bar.el (tab-bar-undo-close-tab): Update tab-bar-lines (bug#54684)Juri Linkov2022-04-031-2/+3
|
* * lisp/tab-bar.el (tab-bar-new-tab-to): Don't funcall const values.Juri Linkov2022-03-201-1/+2
| | | | | Filter out the values 'clone' and 'window' of 'tab-bar-new-tab-choice' from function call.
* * lisp/tab-bar.el: Create new unique windows with 'C-x t n' (bug#54038).Juri Linkov2022-02-231-11/+18
| | | | | | | | | | | | | * lisp/tab-bar.el (tab-bar-new-tab-choice): Replace the value 'nil' with explicit 'clone'. (tab-bar-move-window-to-tab): Ignore possible side/atom window parameters with ignore-window-parameters while deleting window. (tab-bar-new-tab-to): When 'tab-bar-new-tab-choice' is 'clone', create new unique windows with the same layout using window-state-get and window-state-put. Do the same after deleting other windows when 'tab-bar-new-tab-choice' is 'window'. (tab-bar-duplicate-tab): Replace the value 'nil' with 'clone' for 'tab-bar-new-tab-choice'.
* * lisp/tab-bar.el (tab-bar-new-tab-choice): Add const 'window'. Update doc.Juri Linkov2022-02-061-5/+14
| | | | | | (tab-bar-new-tab-to): Remove window parameters 'window-side' and 'window-atom' from the old window. Move split-window/delete-window inside ignore-window-parameters (bug#53662).
* * lisp/tab-bar.el (tab-bar-menu-bar-button): New variable (bug#51648).Juri Linkov2022-01-291-1/+5
| | | | (tab-bar-format-menu-bar): Use it.
* Merge from origin/emacs-28Eli Zaretskii2022-01-011-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-011-1/+1
| |
* | * lisp/tab-bar.el (tab-bar-history-mode-map): New defvar-keymap.Juri Linkov2021-12-271-0/+4
| |
* | Merge from origin/emacs-28Stefan Kangas2021-12-131-1/+1
|\| | | | | | | | | | | | | | | 9bd3f78645 Make `M-x run-python' select the window again 62139aeb42 * lisp/tab-bar.el (tab-bar-switch-to-last-tab): Add 'abs' ... ea8422204f * make-dist (manifest): Filter out msdos/autogen/* files. b5354e989d Rewrite the "Quitting Windows" section of Emacs Lisp Refer... 64ea1a178c Fix eshell for systems that do not have subprocesses
| * * lisp/tab-bar.el (tab-bar-switch-to-last-tab): Add 'abs' for precautions.Juri Linkov2021-12-121-1/+1
| | | | | | | | https://lists.gnu.org/archive/html/emacs-devel/2021-11/msg01149.html
* | Merge from origin/emacs-28Stefan Kangas2021-12-031-4/+3
|\| | | | | | | | | | | | | | | | | | | 9c222b9c1a Port to C compilers that lack size-0 arrays fed35a8951 Port emacsclient to Solaris 10 f35d6a9c73 * CONTRIBUTE: Improve commit message instructions e0ee1d003a Work around IBM XL C compiler bug 6b99b6eb8b * admin/make-tarball.txt: Various clarifications. bbf4140091 * admin/diff-tar-files: Don't assume .tar.gz. 0a50ad11db * lisp/tab-bar.el (tab-bar-close-other-tabs): Fix regression.
| * * lisp/tab-bar.el (tab-bar-close-other-tabs): Fix regression.Juri Linkov2021-12-021-4/+3
| | | | | | | | | | | | * test/lisp/tab-bar-tests.el: New file. (tab-bar-tests-close-other-tabs-with-arg): Test for regression that closed the selected tab after selecting it.
* | * lisp/tab-bar.el: 'C-x t RET' creates a new tab for non-existent tab name.Juri Linkov2021-11-221-2/+8
| | | | | | | | | | * lisp/tab-bar.el (tab-bar-switch-to-tab): Create a new tab and rename it to NAME when can't find the tab with the given NAME (bug#51935).
* | * lisp/tab-bar.el (tab-bar-history-old-minibuffer-depth): Remove variable.Juri Linkov2021-11-221-11/+4
| | | | | | | | | | (tab-bar--history-pre-change, tab-bar--history-change): Use minibuffer-depth instead of this variable (bug#51370).
* | Merge from origin/emacs-28Stefan Kangas2021-11-191-2/+4
|\| | | | | | | | | | | | | | | | | 02853edba7 Fix sorting of menus in `context-menu-local' (bug#50067). 14271d050a Fix flyspell-correct-word selected from context menu opene... bf824843f4 * lisp/repeat.el (describe-repeat-maps): Print all bound k... 6fc94fb99e * lisp/tab-bar.el: Use 'mouse-1' for history buttons like ... 5eeaf85767 Improve documentation of window hooks 7404f4b4e0 Improve doc string of 'highlight-nonselected-windows'
| * * lisp/tab-bar.el: Use 'mouse-1' for history buttons like for 'add-tab' buttonJuri Linkov2021-11-181-2/+4
| | | | | | | | | | | | * lisp/tab-bar.el (tab-bar-mouse-down-1, tab-bar-mouse-1): Handle clicks for 'history-back' and 'history-forward' the same way as 'add-tab' clicks.
* | * lisp/tab-bar.el: Optimize data usage for nil tab-bar-history-mode.Juri Linkov2021-11-181-13/+21
| | | | | | | | | | | | | | | | | | * lisp/tab-bar.el (tab-bar--tab): Add wc-history-back and wc-history-forward only when tab-bar-history-mode is non-nil. (tab-bar-select-tab): Use wc-history-back and wc-history-forward only when tab-bar-history-mode is non-nil. (tab-bar-new-tab-to): Reset tab-bar-history-back and tab-bar-history-forward to nil.
* | * lisp/tab-bar.el: Avoid micro-steps in tab-bar-history-back/forward.Juri Linkov2021-11-181-4/+15
|/ | | | | | | | | * lisp/tab-bar.el (tab-bar-history-pre-command) (tab-bar-history-done-command): New variables. (tab-bar--history-pre-change): Set 'tab-bar-history-omit' and 'tab-bar-history-pre-command'. (tab-bar--history-change): Use 'tab-bar-history-done-command' and 'tab-bar-history-pre-command' (bug#51370).
* * lisp/tab-bar.el (tab-bar-select-tab): Add check for wc-frame (bug#51883).Juri Linkov2021-11-161-1/+5
|
* * lisp/tab-bar.el: Doc fixes for commands bound to modifier keys.Juri Linkov2021-11-161-7/+12
| | | | | (tab-bar-select-tab-modifiers) (tab-bar-select-tab, tab-bar-switch-to-last-tab): Doc fixes.
* * lisp/tab-bar.el (tab-bar-move-repeat-map): Fix alias binding of tab-move.Juri Linkov2021-10-241-1/+2
| | | | (tab-bar-move-tab-backward): Put 'repeat-map' symbol property.
* ; More accurate doc string for 'tab-bar-format'Eli Zaretskii2021-10-211-2/+7
| | | | | * lisp/tab-bar.el (tab-bar-format): Make the doc string more accurate. (Bug#51247)
* * lisp/tab-bar.el (tab-bar-menu-bar): New command (bug#51247).Juri Linkov2021-10-201-17/+18
| | | | | | (tab-bar-format): Rename option 'tab-bar-format-menu-global' to 'tab-bar-format-menu-bar'. (tab-bar-format-menu-bar): Rename from 'tab-bar-format-menu-global'.
* Rename tab-bar-drag-maybe to tab-bar--dragging-in-progressJuri Linkov2021-10-181-4/+4
| | | | | | | | | * lisp/tab-bar.el (tab-bar--event-to-item, tab-bar-mouse-down-1) (tab-bar-mouse-move-tab): Rename tab-bar-drag-maybe to tab-bar--dragging-in-progress. * src/xdisp.c (note_mouse_highlight): Rename tab_bar_drag_maybe to tab_bar__dragging_in_progress.
* Minor fixes for recent changes in ELisp manualEli Zaretskii2021-10-181-10/+14
| | | | | | | | * doc/lispref/windows.texi (Basic Windows, Windows and Frames) (Selecting Windows): * doc/lispref/objects.texi (Window Type): * doc/lispref/frames.texi (Input Focus, Frame Layout): Fix wording, punctuation, and indexing.
* * lisp/tab-bar.el: Improve docstrings (bug#51247)Juri Linkov2021-10-171-14/+17
| | | | | | | * lisp/tab-bar.el (tab-bar--key-to-number) (tab-bar--event-to-item, tab-bar--format-tab-group) (tab-bar--current-tab-make): Improve docstrings. (switch-to-buffer-other-tab): Obsolete the arg NORECORD.
* * lisp/tab-bar.el (tab-bar-mouse-move-tab): Don't drag tab to itself.Juri Linkov2021-10-171-2/+3
|
* Add tab-bar-drag-maybe for indication of tab dragging (bug#50993)Martin Rudalics2021-10-171-0/+5
| | | | | | | | | | * lisp/tab-bar.el (tab-bar--event-to-item) (tab-bar-mouse-move-tab): Set tab-bar-drag-maybe to nil. (tab-bar-mouse-down-1): Set tab-bar-drag-maybe to t. * src/xdisp.c (note_mouse_highlight): Set cursor to 'hand_cursor' when tab_bar_drag_maybe is true. (syms_of_xdisp): New variable tab-bar-drag-maybe.
* * lisp/tab-bar.el: Add a new tab on [mouse-1] instead of [down-mouse-1]Juri Linkov2021-10-171-14/+16
| | | | | | | | | | * lisp/tab-bar.el (tab-bar-mouse-down-1): Rename from tab-bar-mouse-select-tab. Ignore 'add-tab'. (tab-bar-mouse-1): Rename from tab-bar-mouse-close-tab-from-button. Use binding of 'add-tab'. (tab-bar-map): Rebind [down-mouse-1] from tab-bar-mouse-select-tab to tab-bar-mouse-down-1, and [mouse-1] from tab-bar-mouse-close-tab-from-button to tab-bar-mouse-1 (bug#51246).
* Add new and fix existing docstrings in tab-bar.el and tab-line.el (bug#51247)Juri Linkov2021-10-171-12/+32
| | | | | | | * 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.
* More documentation fixes in tab-bar.elEli Zaretskii2021-10-171-41/+65
| | | | | | | | | | | | | | | * lisp/tab-bar.el (tab-bar-detach-tab, tab-bar-move-window-to-tab) (tab-bar-new-tab-to, tab-bar-new-tab, tab-bar-close-tab-select) (tab-bar-close-last-tab-choice, tab-bar-tab-pre-close-functions) (tab-bar-close-tab, tab-bar-close-tab-by-name) (tab-bar-close-other-tabs, tab-bar-rename-tab) (tab-bar-rename-tab-by-name, tab-bar-move-tab-to-group) (tab-bar-change-tab-group, tab-bar-close-group-tabs) (tab-switcher-next-line, tab-switcher-prev-line) (tab-switcher-unmark, tab-switcher-delete, tab-switcher-select) (tab-bar-get-buffer-tab, display-buffer-in-tab) (display-buffer-in-new-tab, switch-to-buffer-other-tab) (find-file-other-tab, find-file-read-only-other-tab): Doc fixes.
* Improve doc strings of tab-bar commandsEli Zaretskii2021-10-171-10/+28
| | | | | | | | | | * lisp/tab-bar.el (tab-bar-mouse-select-tab) (tab-bar-mouse-move-tab, tab-bar-mouse-close-tab-from-button) (tab-bar-mouse-close-tab, tab-bar-mouse-context-menu) (tab-bar-switch-to-next-tab, tab-bar-switch-to-prev-tab) (tab-bar-switch-to-last-tab, tab-bar-switch-to-recent-tab) (tab-bar-move-tab-backward, tab-bar-move-tab) (tab-bar-move-tab-to-frame): Add/fix doc strings.
* * lisp/tab-bar.el (tab-detach, tab-window-detach): New aliases.Juri Linkov2021-10-071-20/+22
| | | | | (tab-bar-mouse-context-menu, tab-bar-duplicate-tab): Use word "clone" in help/doc string.
* Clone the frame window configuration in 'clone-frame'Juri Linkov2021-10-061-3/+3
| | | | | | | | | | | | | * doc/emacs/frames.texi (Creating Frames): Mention the cloned window configuration for clone-frame. * lisp/frame.el (clone-frame): Change second arg to 'no-windows' and clone window configuration when it's nil. * lisp/tab-bar.el (tab-bar-mouse-context-menu) (tab-bar-detach-tab): Replace "Detach" with "Move" in help/doc strings. https://lists.gnu.org/archive/html/emacs-devel/2021-10/msg00408.html
* * lisp/tab-bar.el (tab-bar-detach-tab): Handle frame selected by make-frame.Juri Linkov2021-10-031-6/+20
| | | | | | (tab-bar-move-window-to-tab): New command. (tab-bar-new-tab-to): Handle the value 'window' of tab-bar-new-tab-choice. https://lists.gnu.org/archive/html/emacs-devel/2021-09/msg02197.html
* * lisp/tab-bar.el (tab-bar-move-tab-to-frame): Delete frame with last tab.Juri Linkov2021-09-291-0/+1
|
* * lisp/tab-bar.el: (tab-bar-detach-tab) New commandAdam Porter2021-09-291-0/+16
| | | | | | | | (tab-bar-detach-tab): New command. (tab-bar-mouse-context-menu): Add menu entry. With thanks to Matt Beshara <m@mfa.pw> for his feedback. https://lists.gnu.org/archive/html/emacs-devel/2021-09/msg02141.html
* ; Adjust overly long docstrings to fit 80 charactersStefan Kangas2021-09-261-3/+4
|
* * lisp/tab-bar.el (tab-bar-new-tab-to): Use ignore-window-parameters.Juri Linkov2021-09-251-1/+2
| | | | | Suggested by Adam Porter <adam@alphapapa.net> in https://lists.gnu.org/archive/html/emacs-devel/2021-09/msg01758.html
* * lisp/tab-bar.el: Preserve all existing tab parameters when switching tabs.Juri Linkov2021-09-211-6/+27
| | | | | | * lisp/tab-bar.el (tab-bar--tab, tab-bar--current-tab-make): Copy other possible tab parameters. https://lists.gnu.org/archive/html/emacs-devel/2021-09/msg01544.html
* * lisp/tab-bar.el (tab-bar-new-tab): Add optional arg 'from-number'.Juri Linkov2021-09-201-7/+10
| | | | | | (tab-bar-mouse-context-menu): Use tab-number as an arg for 'tab-bar-duplicate-tab'. (tab-bar-duplicate-tab): Add optional arg 'from-number'.
* ; Minor stylistic fixes found by checkdocStefan Kangas2021-09-161-2/+2
|
* * lisp/tab-bar.el (tab-bar-format): Add new option tab-bar-format-menu-globalJuri Linkov2021-09-151-1/+24
| | | | (tab-bar-format-menu-global): New function.
* * lisp/tab-bar.el (tab-bar-close-other-tabs): Add arg ‘tab-number’.Juri Linkov2021-09-151-6/+21
| | | | | (tab-bar-mouse-context-menu): Bind menu-item "Close other tabs" to tab-bar-close-other-tabs with arg ‘tab-number’.