unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Marcel Ventosa <mve1@runbox.com>
To: Juri Linkov <juri@linkov.net>
Cc: 45556@debbugs.gnu.org
Subject: bug#45556: 27.1; Unexpected behavior of `tab-bar-show' variable
Date: Wed, 6 Jan 2021 11:04:29 +0700	[thread overview]
Message-ID: <20210106110429.066f2715@argon> (raw)
In-Reply-To: <87zh1njkbf.fsf@mail.linkov.net>

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 <juri@linkov.net> 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.





  reply	other threads:[~2021-01-06  4:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-30 14:44 bug#45556: 27.1; Unexpected behavior of `tab-bar-show' variable Marcel Ventosa
2021-01-05 18:43 ` Juri Linkov
2021-01-06  4:04   ` Marcel Ventosa [this message]
2021-01-06 18:04     ` Juri Linkov
2021-01-07 18:09       ` Juri Linkov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210106110429.066f2715@argon \
    --to=mve1@runbox.com \
    --cc=45556@debbugs.gnu.org \
    --cc=juri@linkov.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).