From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#37998: 27.0.50; gnus RFE: gnus-other-tab a la gnus-other-frame Date: Wed, 27 Nov 2019 23:28:22 +0200 Organization: LINKOV.NET Message-ID: <87sgm98989.fsf@mail.linkov.net> References: <87tv7qne5x.fsf@gnus.org> <87k17y96bx.fsf@gnus.org> <87o8x4hnu8.fsf@mail.linkov.net> <87lfs8t8lk.fsf@gnus.org> <87r21u2qo3.fsf@mail.linkov.net> <87muchechg.fsf@gnus.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="249444"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: Sam Steingold , 37998@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 27 22:56:27 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ia5IM-0012d2-Hv for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 Nov 2019 22:56:22 +0100 Original-Received: from localhost ([::1]:43526 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ia5IK-0008VW-Fq for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 Nov 2019 16:56:20 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50350) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ia5I5-0008VA-Qd for bug-gnu-emacs@gnu.org; Wed, 27 Nov 2019 16:56:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ia5I2-00015N-CE for bug-gnu-emacs@gnu.org; Wed, 27 Nov 2019 16:56:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50319) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ia5I2-00014x-70 for bug-gnu-emacs@gnu.org; Wed, 27 Nov 2019 16:56:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ia5I2-00087J-0v; Wed, 27 Nov 2019 16:56:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Wed, 27 Nov 2019 21:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37998 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: wontfix Original-Received: via spool by 37998-submit@debbugs.gnu.org id=B37998.157489176131194 (code B ref 37998); Wed, 27 Nov 2019 21:56:01 +0000 Original-Received: (at 37998) by debbugs.gnu.org; 27 Nov 2019 21:56:01 +0000 Original-Received: from localhost ([127.0.0.1]:56292 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ia5I1-000874-1o for submit@debbugs.gnu.org; Wed, 27 Nov 2019 16:56:01 -0500 Original-Received: from azure.elm.relay.mailchannels.net ([23.83.212.7]:61236) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ia5Hz-00086u-LF for 37998@debbugs.gnu.org; Wed, 27 Nov 2019 16:56:00 -0500 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 8C5E0500F31; Wed, 27 Nov 2019 21:55:58 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a94.g.dreamhost.com (100-96-14-7.trex.outbound.svc.cluster.local [100.96.14.7]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 116D75013DD; Wed, 27 Nov 2019 21:55:58 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a94.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.18.5); Wed, 27 Nov 2019 21:55:58 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Stupid-Glossy: 2af0be6f128ace44_1574891758346_3730438085 X-MC-Loop-Signature: 1574891758346:2213645656 X-MC-Ingress-Time: 1574891758346 Original-Received: from pdx1-sub0-mail-a94.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a94.g.dreamhost.com (Postfix) with ESMTP id EE2A89C45A; Wed, 27 Nov 2019 13:55:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=KyWelIRI/NbSRnQYkUWy/pE+HOE=; b= MG8ZtBgert3vkEcC5fwhMt9lUdtGo8+bSTs1zrDwRshvHhG6oXyJfrJQy9pGPWVh G1dNg8NIrLrLWnJ0V8V++fscKByCZUirLDgEkvprqgJohM+ND6WuqfrZ3qgTgE1v e9UR7dB2UThDsf1ot4+5qdst2DNU35O0oAr2Q4PBr3I= Original-Received: from mail.jurta.org (m91-129-96-42.cust.tele2.ee [91.129.96.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a94.g.dreamhost.com (Postfix) with ESMTPSA id 5150E9C458; Wed, 27 Nov 2019 13:55:51 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a94 In-Reply-To: <87muchechg.fsf@gnus.org> (Lars Ingebrigtsen's message of "Wed, 27 Nov 2019 13:21:31 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:172561 Archived-At: --=-=-= Content-Type: text/plain >> Maybe gnus-configure-frame should check if an original window is >> still alive? > > Possibly? Could you suggest a patch? Maybe something like (together with documentation addition): --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=gnus-tabs.patch diff --git a/lisp/gnus/gnus-win.el b/lisp/gnus/gnus-win.el index b39c9faab6..bcf90f1d55 100644 --- a/lisp/gnus/gnus-win.el +++ b/lisp/gnus/gnus-win.el @@ -367,11 +367,14 @@ gnus-configure-frame (setq result (or (gnus-configure-frame (car comp-subs) window) result)) - (select-window new-win) - (setq window new-win) + (if (not (window-live-p new-win)) + ;; pop-to-buffer might have deleted the original window + (setq window (selected-window)) + (select-window new-win) + (setq window new-win)) (setq comp-subs (cdr comp-subs)))) ;; Return the proper window, if any. - (when result + (when (window-live-p result) (select-window result))))))) (defvar gnus-frame-split-p nil) diff --git a/doc/misc/gnus.texi b/doc/misc/gnus.texi index e43aa92c99..d563d52d58 100644 --- a/doc/misc/gnus.texi +++ b/doc/misc/gnus.texi @@ -813,6 +813,7 @@ Top * Symbolic Prefixes:: How to supply some Gnus functions with options. * Formatting Variables:: You can specify what buffers should look like. * Window Layout:: Configuring the Gnus buffer windows. +* Tabbed Interface:: Configuring the Gnus tabs. * Faces and Fonts:: How to change how faces look. * Mode Lines:: Displaying information in the mode lines. * Highlighting and Menus:: Making buffers look all nice and cozy. @@ -22189,6 +22190,7 @@ Various * Symbolic Prefixes:: How to supply some Gnus functions with options. * Formatting Variables:: You can specify what buffers should look like. * Window Layout:: Configuring the Gnus buffer windows. +* Tabbed Interface:: Configuring the Gnus tabs. * Faces and Fonts:: How to change how faces look. * Mode Lines:: Displaying information in the mode lines. * Highlighting and Menus:: Making buffers look all nice and cozy. @@ -22985,6 +22987,36 @@ Window Layout @end itemize +@node Tabbed Interface +@section Tabbed Interface +@cindex tabbed interface +@cindex tabs + +Gnus supports display of different buffers in dedicated tabs +that you can select using the tab bar. + +To open the group buffer in a new tab named @samp{Gnus}, use: + +@lisp +(push '("\\`\\*Group\\*\\'" . + (display-buffer-in-tab + (name . "Gnus"))) + display-buffer-alist) +@end lisp + +To read every summary in a separate explicitly named tab, use: + +@lisp +(push '("\\`\\*Summary .*\\*\\'" . + (display-buffer-in-tab + (name . (lambda (buffer _alist) + (setq buffer (buffer-name buffer)) + (when (string-match "\\`\\*Summary \\(.*\\)\\*\\'" buffer) + (format "Group %s" (match-string 1 buffer))))))) + display-buffer-alist) +@end lisp + + @node Faces and Fonts @section Faces and Fonts @cindex faces --=-=-=--