From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: cro cefisso Newsgroups: gmane.emacs.devel Subject: [tab-line] Tabs don't show up at start-up Date: Tue, 7 Nov 2023 13:26:05 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40334"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Nov 07 13:28:27 2023 Return-path: Envelope-to: ged-emacs-devel@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 1r0LBy-000AEP-V1 for ged-emacs-devel@m.gmane-mx.org; Tue, 07 Nov 2023 13:28:26 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r0LB3-0001T6-DU; Tue, 07 Nov 2023 07:27:29 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r0L9t-0006UB-Bk for emacs-devel@gnu.org; Tue, 07 Nov 2023 07:26:18 -0500 Original-Received: from mout.gmx.net ([212.227.15.18]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r0L9l-0005Fo-QQ for emacs-devel@gnu.org; Tue, 07 Nov 2023 07:26:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.com; s=s31663417; t=1699359965; x=1699964765; i=crocefisso@gmx.com; bh=Q7HPZtuFjntHGNQ/2uVTcjqUYk8CPfXrF+BOksb8PhY=; h=X-UI-Sender-Class:From:To:Subject:Date; b=Z6xmxajlxJedAINY+0/DCIbKfYhPDCtqfCq/b4cJ2iH/1U9r/yzophN6yV5bONva CCLiSFj11G2Ha35V0RX2YOHLrqMIV7ZEE9vqAd1o7OhmPA53fzI3eODIQXFmZi8LR k0dnxw7e1tLkGMHzXGOWhqSday1Pz0D+i4lwCiIum/KI6ZH+plbPbuRFntwr34VEz G26wfz9E2Ds5X669uLuK/2+rLWeokoXkRf7m0EneZFqOcSRTWwpEksFxLHNpOQPQe f2mElmWDY7ru3b5RY5Wu/FPigCI9ShYRpd0CvwHHEKUNuI8M6Hspjb0kBsL9TIrtr EXcWxzL6qBKDq+xyRA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from [146.70.202.118] ([146.70.202.118]) by web-mail.gmx.net (3c-app-mailcom-bs02.server.lan [172.19.170.129]) (via HTTP); Tue, 7 Nov 2023 13:26:05 +0100 Importance: normal Sensitivity: Normal X-Priority: 3 X-Provags-ID: V03:K1:xXLAXcJZ5QZir81bR3Ou1oYcpjR92Az9S2RNEDE6P0fVJ50JzObFV1U31X2ceTLTQfHKM gGYnNHTeZbfN5f1BZN3z21HDhZ+KdAAs6LLYIFFuUQaWCS0KxSW+msQSEGdjCZaluqwgjwFmtCye HJZEvADcrlCZMHufDRtVLeBQbHP06M4MxO4vkD3JzL0QrCJXWKtnDVSch9G+hf/fRdp87bTK1+jp NW7vrM6krlonYEMj+LQLl/eTc16arIJUJ/R1lsjl6nAD2hoxG0ycO7cFfekNycsNdlxKOIIpTnYH hA= UI-OutboundReport: notjunk:1;M01:P0:TtrihS6Nang=;tn3kBpmXXldcbUhCpZMIU55MuFy xgd3MM+PJKo3pY6v2JHVYKDeAZNawsCV90pcQeMuijOLKEFX8DSXI8so0zlXjeoGxXtfMOohI y7LoTEDP5o75/86ecKhvUlHLIaKt3/BEfVKF+SZ00peYrih8EWbQ1yS8VY/hDStFnKfWzrAB4 kbyc0A23AxMVJBfzTJelyTqbxVTR+gd8mCX5bdt4DQ76VtrBtbZjHSC6gz1TPkinAYSR7oN2x KeZ45XcLDwT0roCvu9a7kWf0HFcjwa3lRCGgZxQPmwgfpaf1LWdh+auqvBRwrCfEdCyMeXcR/ Sh04bG6tAGcCrRH22cYS73aFfAAAGTvm7mf2kQ91a82DwOaubiJSaChjgCNXD0QF7A56tmIZN VRFkkS6ZsDaavzYLsR/iHP1ekbILZDVxMPlu6Lw2UDr3zSi116OP2PStU+2/PJmZeGQgSOyWk bTnN6GQjpRavpynIigMBq+6nTzZRY3EgoEeLwKfKsjSiMpHvIUlAIPTNuld1MSf2ktrB7obdk KtMpmZhnsMm1UeFD/Yv84R/DeMFFoYyFIx/Tu9nvmpmGZumaDTkJHuNcMpJ+okAXTRZcVuKrJ hHyvqmAHgMrC5IddHareuo2jZxX5lH/6lQdJsPRwy+AAzusYKtO1s8IfSCDNhDgyKPvzNLsrX 9FMmlWIwkTJI31mzwusEXAXgmDVFio3Q5ZUaEskDWulxtAZqJJQCuHclcVpbgBnRYRIU7/HGU k5ihKSYWps2lriZlCaf8440sXbCIQoHzIMjt7/hNK5KEstyQzls3/Bz8CtlUHR7M4CTq95Xc Received-SPF: pass client-ip=212.227.15.18; envelope-from=crocefisso@gmx.com; helo=mout.gmx.net X-Spam_score_int: -26 X-Spam_score: -2.7 X-Spam_bar: -- X-Spam_report: (-2.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, MIME_HTML_ONLY=0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 07 Nov 2023 07:27:26 -0500 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:312302 Archived-At:
The bug concerns tab-line.el and you can find a discussion about it here: https://github.com/thread314/intuitive-tab-line-mode/issues/6
 
Here's how I configure tab-line:

#+begin_src emacs-lisp 
  (use-package tab-line
    :ensure nil
    :config
    (global-tab-line-mode 1)
    :bind
    ("C-<prior>" . tab-line-switch-to-prev-tab)
    ("C-<iso-lefttab>" . tab-line-switch-to-prev-tab)
    ("C-<next>" . tab-line-switch-to-next-tab)
    ("C-<tab>" . tab-line-switch-to-next-tab)
    :custom
    (tab-line-new-button-show nil)  ;; do not show add-new button
    (tab-line-close-button-show nil)  ;; do not show close button
    (tab-line-separator " ")  ;; set it to empty
    )
#+end_src
 
The issue is that no tab appears before I do one of the following keybind : C-<prior>, "C-<iso-lefttab>, C-<next>, C-<tab>.
This bug only occurs when the keybindings are specified inside use-package. If the keybinds are specified outside of use-package, the bug disappears:
 
#+begin_src emacs-lisp 
  (use-package tab-line
    :ensure nil
    :config
    (global-tab-line-mode 1)
    :custom
    (tab-line-new-button-show nil)  ;; do not show add-new button
    (tab-line-close-button-show nil)  ;; do not show close button
    (tab-line-separator " ")  ;; set it to empty
    )
    (global-set-key (kbd "C-<prior>") 'tab-line-switch-to-prev-tab)
    (global-set-key (kbd "C-<iso-lefttab>") 'tab-line-switch-to-prev-tab)
    (global-set-key (kbd "C-<next>") 'tab-line-switch-to-next-tab)
    (global-set-key (kbd "C-<tab>") 'tab-line-switch-to-next-tab)
#+end_src