summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2021-09-06 13:13:22 +0300
committerEli Zaretskii <eliz@gnu.org>2021-09-06 13:13:22 +0300
commit61562c78dd86f7d93e2610e5c826ca8a3b0d40f4 (patch)
tree8a818c1b9a83bd31480cc1ebd3fbee81d5a4fc67 /lisp
parent555a1ee4680025f8f68905529c7eebabbd0b7bda (diff)
downloademacs-61562c78dd86f7d93e2610e5c826ca8a3b0d40f4.tar.gz
emacs-61562c78dd86f7d93e2610e5c826ca8a3b0d40f4.tar.bz2
emacs-61562c78dd86f7d93e2610e5c826ca8a3b0d40f4.zip
; * lisp/tab-bar.el (toggle-frame-tab-bar, tab-bar-new-tab-to): Doc fix.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/tab-bar.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/tab-bar.el b/lisp/tab-bar.el
index 4ec1143128b..7f6afd7d533 100644
--- a/lisp/tab-bar.el
+++ b/lisp/tab-bar.el
@@ -260,7 +260,9 @@ See `tab-bar-mode' for more information."
(tab-bar-mode arg)))
(defun toggle-frame-tab-bar (&optional frame)
- "Toggle tab bar of FRAME.
+ "Toggle tab bar of the selected frame.
+When calling from Lisp, use the optional argument FRAME to toggle
+the tab bar on that frame.
This is useful when you want to enable the tab bar individually
on each new frame when the global `tab-bar-mode' is disabled,
or when you want to disable the tab bar individually on each
@@ -1074,7 +1076,8 @@ to the tab argument will be applied after all functions are called."
"Add a new tab at the absolute position TO-INDEX.
TO-INDEX counts from 1. If no TO-INDEX is specified, then add
a new tab at the position specified by `tab-bar-new-tab-to'.
-Negative TO-INDEX counts tabs from the end of the tab bar.
+Negative TO-INDEX counts tabs from the end of the tab bar,
+and -1 means the new tab will become the last one.
Argument addressing is absolute in contrast to `tab-bar-new-tab'
where argument addressing is relative.
After the tab is created, the hooks in