From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#41691: [PATCH] Add bookmark-jump-other-tab Date: Thu, 04 Jun 2020 02:00:32 +0300 Organization: LINKOV.NET Message-ID: <87bllzvjov.fsf@mail.linkov.net> References: <20200603163925.11161-1-pirata@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="120988"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) Cc: Javier Olaechea , 41691@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 04 01:06:29 2020 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 1jgcSr-000VNO-A7 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 04 Jun 2020 01:06:29 +0200 Original-Received: from localhost ([::1]:49242 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jgcSq-0008MA-Ay for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 03 Jun 2020 19:06:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57076) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jgcSR-0007at-0L for bug-gnu-emacs@gnu.org; Wed, 03 Jun 2020 19:06:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33174) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jgcSQ-0006bt-Nt for bug-gnu-emacs@gnu.org; Wed, 03 Jun 2020 19:06:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jgcSQ-0005AC-Jl for bug-gnu-emacs@gnu.org; Wed, 03 Jun 2020 19:06:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 03 Jun 2020 23:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41691 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 41691-submit@debbugs.gnu.org id=B41691.159122555219826 (code B ref 41691); Wed, 03 Jun 2020 23:06:02 +0000 Original-Received: (at 41691) by debbugs.gnu.org; 3 Jun 2020 23:05:52 +0000 Original-Received: from localhost ([127.0.0.1]:44719 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jgcSG-00059h-Ed for submit@debbugs.gnu.org; Wed, 03 Jun 2020 19:05:52 -0400 Original-Received: from relay8-d.mail.gandi.net ([217.70.183.201]:44513) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jgcSF-000595-57 for 41691@debbugs.gnu.org; Wed, 03 Jun 2020 19:05:51 -0400 X-Originating-IP: 91.129.108.6 Original-Received: from mail.gandi.net (m91-129-108-6.cust.tele2.ee [91.129.108.6]) (Authenticated sender: juri@linkov.net) by relay8-d.mail.gandi.net (Postfix) with ESMTPSA id 1EC941BF20B; Wed, 3 Jun 2020 23:05:43 +0000 (UTC) In-Reply-To: (Glenn Morris's message of "Wed, 03 Jun 2020 13:16:17 -0400") 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:181485 Archived-At: > Personally I hope that every "-other-window" command doesn't get an > "-other-tab" counterpart (to go along with "-other-frame"), but rather > that a single systematic method is developed, like the elpa.gnu.org > package other-frame-window. Ref eg > > https://lists.gnu.org/r/emacs-devel/2019-10/msg00261.html > > (AFAICS nothing has been implemented) Actually, this is already implemented, but without an obvious keybinding. This small patch binds a general command to 'C-x t t' (or maybe a better key would be 'C-x t w'). Then after typing 'C-x t t' as a prefix key sequence, the next command will display its buffer in a new tab: diff --git a/lisp/tab-bar.el b/lisp/tab-bar.el index 76e7f8c33a..529f5e5e4b 100644 --- a/lisp/tab-bar.el +++ b/lisp/tab-bar.el @@ -1585,6 +1585,7 @@ tab-prefix-map (define-key tab-prefix-map "b" 'switch-to-buffer-other-tab) (define-key tab-prefix-map "f" 'find-file-other-tab) (define-key tab-prefix-map "\C-f" 'find-file-other-tab) +(define-key tab-prefix-map "t" 'windmove-display-new-tab) (provide 'tab-bar)