From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#51247: 28.0.60; Insufficient documentation of tab-bar.el internal functions Date: Wed, 20 Oct 2021 19:50:53 +0300 Organization: LINKOV.NET Message-ID: <87ee8f1vyq.fsf@mail.linkov.net> References: <831r4kghcu.fsf@gnu.org> <83mtn7frz3.fsf@gnu.org> <87tuhfv726.fsf@mail.linkov.net> <83lf2rforp.fsf@gnu.org> <87mtn7v4cw.fsf@mail.linkov.net> <83h7dffnlc.fsf@gnu.org> <87a6j7v3e2.fsf@mail.linkov.net> <83bl3mftqm.fsf@gnu.org> <87czo2peob.fsf@mail.linkov.net> <83a6j6e1d4.fsf@gnu.org> <87wnmal1u8.fsf@mail.linkov.net> <838ryqe0ll.fsf@gnu.org> <837deae081.fsf@gnu.org> <8735oyl10i.fsf@mail.linkov.net> <835ytudzky.fsf@gnu.org> <87ee8ijljn.fsf@mail.linkov.net> <834k9edyra.fsf@gnu.org> <871r4hldq8.fsf@mail.linkov.net> <83lf2pcj4h.fsf@gnu.org> <8735ow7rx4.fsf@mail.linkov.net> <83sfwwapzd.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13613"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: 51247@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 20 18:52:09 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mdEoz-0003Q9-Fh for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 20 Oct 2021 18:52:09 +0200 Original-Received: from localhost ([::1]:46364 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mdEoy-0000X3-8B for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 20 Oct 2021 12:52:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55210) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mdEos-0000Wg-6x for bug-gnu-emacs@gnu.org; Wed, 20 Oct 2021 12:52:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43806) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mdEor-0004gf-Un for bug-gnu-emacs@gnu.org; Wed, 20 Oct 2021 12:52:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mdEor-0007OI-TA for bug-gnu-emacs@gnu.org; Wed, 20 Oct 2021 12:52:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 20 Oct 2021 16:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51247 X-GNU-PR-Package: emacs Original-Received: via spool by 51247-submit@debbugs.gnu.org id=B51247.163474871628397 (code B ref 51247); Wed, 20 Oct 2021 16:52:01 +0000 Original-Received: (at 51247) by debbugs.gnu.org; 20 Oct 2021 16:51:56 +0000 Original-Received: from localhost ([127.0.0.1]:55352 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdEom-0007Nx-Jb for submit@debbugs.gnu.org; Wed, 20 Oct 2021 12:51:56 -0400 Original-Received: from relay5-d.mail.gandi.net ([217.70.183.197]:57611) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdEol-0007Nj-Ek for 51247@debbugs.gnu.org; Wed, 20 Oct 2021 12:51:55 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id 58D4C1C000D; Wed, 20 Oct 2021 16:51:47 +0000 (UTC) In-Reply-To: <83sfwwapzd.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 20 Oct 2021 14:35:18 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:217695 Archived-At: >> You assumed in the doc string that those menu items as used >> to display a menu, whereas in fact those menu items as used >> to display tabs and other buttons on the tab bar. > > I'm trying to understand the difference between the two kinds of > menus, the one which causes the tab bar to display tabs, vs the one > that causes the display of a single tab that drops down a menu. > Please help me understand that difference. The tab bar is created from the list where elements are either a string, or a menu-item with a title and a binding. The title is displayed as a button on the tab bar. Clicking on such button calls the binding. The binding usually is a command that switches tabs. But the binding can do everything. To make the distinction more clear, I created a new command `tab-bar-menu-bar' that is bound to the button created by `tab-bar-format-menu-bar'.