all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: James N. V. Cash <james.cash@occasionallycogent.com>
To: Juri Linkov <juri@linkov.net>
Cc: , emacs-devel@gnu.org
Subject: Re: [PATCH] Address issue with tab-bar
Date: Thu, 17 Sep 2020 16:12:45 -0400	[thread overview]
Message-ID: <87zh5oi2ma.fsf@gmail.com> (raw)
In-Reply-To: <87een0nrza.fsf@mail.linkov.net>

[-- Attachment #1: Type: text/plain, Size: 810 bytes --]


Juri Linkov <juri@linkov.net> writes:

> But according to the documentation of 'tab-bar-show':
>
>   "If the value is =E2=80=981=E2=80=99, then hide the tab bar when it has=
 only one tab,
>   and show it again once more tabs are created."
>
> tab-bar-close-tab should hide the tab-bar on the selected frame
> with only one tab.
>
> So the problem is that tab-bar-new-tab doesn't show the tab-bar again
> when there are more than one tab.

Ah, in that case, I think we can just remove the first case in the cond
in tab-bar-new-tab-to; simple patch attached

> It seems this is a consequence of bug#42052 that tried to implement
> frame-local tab-bar where tab-bar-mode is always true, but it shows/hides
> frame-local tab-bars depending on the frame-parameter 'tab-bar-lines'.

(I think that was me, whoops)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Fix tabs not reappearing --]
[-- Type: text/x-diff, Size: 336 bytes --]

diff --git a/lisp/tab-bar.el b/lisp/tab-bar.el
index d8f932e7a4..e4b3c8cf19 100644
--- a/lisp/tab-bar.el
+++ b/lisp/tab-bar.el
@@ -801,7 +801,6 @@ tab-bar-new-tab-to
                           (nth to-index tabs)))
 
     (cond
-     (tab-bar-mode)
      ((eq tab-bar-show t)
       (tab-bar-mode 1))
      ((and (natnump tab-bar-show)

[-- Attachment #3: Type: text/plain, Size: 78 bytes --]


P.S. Juri, sorry for the double-send, I forgot to CC the list the first time

  reply	other threads:[~2020-09-17 20:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-17 15:33 [PATCH] Address issue with tab-bar James N V Cash
2020-09-17 19:07 ` Juri Linkov
2020-09-17 20:12   ` James N. V. Cash [this message]
2020-09-18  8:29     ` 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

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

  git send-email \
    --in-reply-to=87zh5oi2ma.fsf@gmail.com \
    --to=james.cash@occasionallycogent.com \
    --cc=emacs-devel@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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.