From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Marcel Ventosa Newsgroups: gmane.emacs.bugs Subject: bug#45556: 27.1; Unexpected behavior of `tab-bar-show' variable Date: Wed, 6 Jan 2021 11:04:29 +0700 Message-ID: <20210106110429.066f2715@argon> References: <20201230214419.1eca9494@argon> <87zh1njkbf.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14942"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 45556@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 06 13:21: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 1kx7oL-0003lK-M6 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 06 Jan 2021 13:21:09 +0100 Original-Received: from localhost ([::1]:43680 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kx7oK-0000DZ-LP for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 06 Jan 2021 07:21:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49638) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kx7lM-0006Iz-DJ for bug-gnu-emacs@gnu.org; Wed, 06 Jan 2021 07:18:06 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60384) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kx7lK-0007UE-8f for bug-gnu-emacs@gnu.org; Wed, 06 Jan 2021 07:18:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kx7lK-00006y-4P for bug-gnu-emacs@gnu.org; Wed, 06 Jan 2021 07:18:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Marcel Ventosa Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 06 Jan 2021 12:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45556 X-GNU-PR-Package: emacs Original-Received: via spool by 45556-submit@debbugs.gnu.org id=B45556.1609935454377 (code B ref 45556); Wed, 06 Jan 2021 12:18:02 +0000 Original-Received: (at 45556) by debbugs.gnu.org; 6 Jan 2021 12:17:34 +0000 Original-Received: from localhost ([127.0.0.1]:43693 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kx7kr-000061-Ir for submit@debbugs.gnu.org; Wed, 06 Jan 2021 07:17:34 -0500 Original-Received: from aibo.runbox.com ([91.220.196.211]:51466) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kx03z-00017v-OD for 45556@debbugs.gnu.org; Tue, 05 Jan 2021 23:04:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=runbox.com; s=selector2; h=Content-Transfer-Encoding:Content-Type:MIME-Version: References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date; bh=+GGrZfjEfTYvySS4gMQeGb8yrU+dyQmG+TZH+oq/IYU=; b=MCVRIoX8b3SZ+CzTSwTI8EvsFl cwj55S8GXkKMoQIW3axSLgVO8uNL0rg3f9KytIEhO8eqnHmyL9EogLj3wxqgKsmMPeptGUWs/swst X44lT3vrsDhD57zzLhIFbYGaW3zKzFltVzrwHNu5xXlWYQC0SIOxY8undoQ5Mc5APjyHpy39X60UK MBQ1gZXr6S2PDchKAMIYExQOfTQ6lnJ3yAShlB9d2N+zLglMx7ScY0GoZiJ+GBFAxtuZAeg4q50Xo 3fC18IvDGBvFeq0ZELBLzZCa+VyUlpmJ+/N5BrAypJGj/A9//o33msQ2OG4CpcBc4PAMD8R8ygAuC xSglXMQg==; Original-Received: from [10.9.9.74] (helo=submission03.runbox) by mailtransmit03.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1kx03y-000528-1B; Wed, 06 Jan 2021 05:04:46 +0100 Original-Received: by submission03.runbox with esmtpsa [Authenticated alias (585453)] (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) id 1kx03o-0007HM-Qm; Wed, 06 Jan 2021 05:04:37 +0100 In-Reply-To: <87zh1njkbf.fsf@mail.linkov.net> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) X-Mailman-Approved-At: Wed, 06 Jan 2021 07:17:32 -0500 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:197415 Archived-At: Hi Juri, Thank you for your response! After your detailed explanation I was able to set things up the way I want, though I still have a question below inline. I was also unaware of the differences between setting a variable with 'setq' and 'customize-set-variable'. This was not a bug after all. But would it be useful to mention in the doc string that the variable's behavior will be different if modified by setq? Or is this already common knowledge? Best regards, Marcel On Tue, 05 Jan 2021 20:43:48 +0200 Juri Linkov wrote: > So there are two levels: at high level you can customize > 'tab-bar-show', and tab commands do the right thing. > > If you want more control, then you can use 'tab-bar-mode'. > Or if you want to enable/disable the tab bar individually > on each new frame, then you can use such configuration: > > (add-hook 'after-make-frame-functions 'toggle-frame-tab-bar) Somehow reading a function name "toggle-tab-bar-mode..." my understanding is that such a function would enable and disable tab-bar functionality itself, rather than only show and hide the bar. I see now that toggling the 'tab-bar-mode' minor mode also does not enable/disable the tab-bar functionality, but rather seems to just toggle the actual bar. Is this correct? If so, what is the difference between 'toggle-tab-bar-mode-from-frame' and 'tab-bar-mode'. Both of them seem to toggle the tab bar in _all_ frames.