From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id gFp9G9SPRl86QQAA0tVLHw (envelope-from ) for ; Wed, 26 Aug 2020 16:37:40 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 2LpLF9SPRl+bVAAAbx9fmQ (envelope-from ) for ; Wed, 26 Aug 2020 16:37:40 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B5105940631 for ; Wed, 26 Aug 2020 16:37:39 +0000 (UTC) Received: from localhost ([::1]:53446 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kAyQa-0002FA-It for larch@yhetil.org; Wed, 26 Aug 2020 12:37:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52734) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kAyQA-0002F1-J7 for emacs-orgmode@gnu.org; Wed, 26 Aug 2020 12:37:10 -0400 Received: from mail-eopbgr140097.outbound.protection.outlook.com ([40.107.14.97]:39310 helo=EUR01-VE1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kAyQ8-0000cX-6l for emacs-orgmode@gnu.org; Wed, 26 Aug 2020 12:37:10 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lPEr4A+O5JRsTEsmeZ5fVz9XC1/pbWDuiTXds81l2BlqAQTnyrvPNYjm5UCXVkRJnWOu5n7VOg4cN6nbAyQdMiGFAs5R2nJ8/ja8T7UDXw3FqnZGpYE+HQ8U/LOr0gqlTZfleNUmS8N171qF0pD2XynA0M/fCaGciqAPv6Pfe4yXk2vxNmFVycuZgDmRc8U7nSObY0olAu6DEgFkcNC3HpWkv2QdMHOVJyWpgJDK1K63aMCXEGmvrNOapf/bxojZjsXzz30RwW2oQ01vAjSStfCrPEcuoNYdshouO+ZGNlqpkmBt0WCcHpcfs7Dvacm7u+11Xk91Y9WF+7vZjeLpuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=G8EsQTwWXRW1znbr9G1j0i11LJQ/oGRpJPGZyggFgpw=; b=FcYVd4r4v9NWSifW4RPUq1fF32lGEqoS0T24eu/2F+CBMtR7z7bt40T1q74xFYhsS5+wMu8kxHtM3OkRQWfrtMhf66XUYKB7oDMUY1kJlXGdDbwIKUxIAQYmxbsmQZB74ghY+8SnsB6kG4GwE2RCXEKSJd23o7KZ24Y8DQ4IbomeQYB+O4IbbnClwiwrjgUPf1qr1eM5t7EDNRkIhGKtWOo0KikQRdjYbqT/yOqkmNWH5PTIaGJFv/baBHvtoaRa4s5WWqH1iuwB3JIttGjeUwcRC3UbIiLolTtx8XAj+DsCiHyIpkYyzQQow54MoWk8jCbMMJR5VxdAxrdBMvCb3A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ucl.ac.uk; dmarc=pass action=none header.from=ucl.ac.uk; dkim=pass header.d=ucl.ac.uk; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=liveuclac.onmicrosoft.com; s=selector2-liveuclac-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=G8EsQTwWXRW1znbr9G1j0i11LJQ/oGRpJPGZyggFgpw=; b=rGRxfEu9MxoOJ/4W7B9HVGBPoO+BxchagxA1Qi8K3hQ8SuggageWw/uyD9YnSS/uIPItz4jMj9f+iW36a4QQd9XMzezL6JE7aKnNZLvBVacVyndIOYpqBE6sCyid1HZ0Qu/MmEFGT7f98EH4sckgZWd9p7NP2QjQwtlYaOc3m7M= Received: from VI1PR0102MB3327.eurprd01.prod.exchangelabs.com (2603:10a6:803:10::26) by VI1PR01MB5437.eurprd01.prod.exchangelabs.com (2603:10a6:803:d5::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3326.19; Wed, 26 Aug 2020 16:21:57 +0000 Received: from VI1PR0102MB3327.eurprd01.prod.exchangelabs.com ([fe80::5c59:e39d:c149:5e03]) by VI1PR0102MB3327.eurprd01.prod.exchangelabs.com ([fe80::5c59:e39d:c149:5e03%6]) with mapi id 15.20.3326.019; Wed, 26 Aug 2020 16:21:57 +0000 From: Eric S Fraga To: Emacs Org mode mailing list Subject: new feature for consideration: other-tab for org-agenda-window-setup Organization: On the Interweb somewhere X-Url: http://www.ucl.ac.uk/~ucecesf/ Mail-Followup-To: Emacs Org mode mailing list Date: Wed, 26 Aug 2020 17:21:55 +0100 Message-ID: <87eentqsws.fsf@ucl.ac.uk> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Content-Type: multipart/mixed; boundary="=-=-=" X-ClientProxiedBy: LO2P265CA0463.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:a2::19) To VI1PR0102MB3327.eurprd01.prod.exchangelabs.com (2603:10a6:803:10::26) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from t3610 (95.146.75.255) by LO2P265CA0463.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:a2::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3326.19 via Frontend Transport; Wed, 26 Aug 2020 16:21:56 +0000 X-Url: http://www.ucl.ac.uk/~ucecesf/ X-Originating-IP: [95.146.75.255] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a65e40c9-85c4-40c5-ebc3-08d849dc26fa X-MS-TrafficTypeDiagnostic: VI1PR01MB5437: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4303; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: d8sJ3V88J2WWhMEKmLJBiWRqnv7zmD9EPI/w3lVwSYZ7DOs03SkCvU7ZWP9iJZn9R/WOTU5+CxMBiaVg1IfkDNS53gqal3MZHvoXQLbRBphE4WV15UN+eHI2ySfYX5G0+ZV66WnMknSrSqj02oOfAIEDhYw9YLZZVmRb4gAq9D/BIk5l8JPpV70d6ppaOkmEbG9BS0YK9VFl+97ew0u6vDgWyOhlu/e+8ZRfDDlhkEAbo7dBRhBRTN77gL1zAfr6c2n+9ndpH1vRq5Y6Nlj3XN9Bov5kojqsHXe68McekjY3VQ/DqL43sH5T1Cesb5cR X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR0102MB3327.eurprd01.prod.exchangelabs.com; PTR:; CAT:NONE; SFS:(4636009)(39860400002)(396003)(346002)(136003)(376002)(366004)(2906002)(66946007)(6486002)(66616009)(66476007)(66556008)(235185007)(786003)(478600001)(6496006)(52116002)(5660300002)(36916002)(316002)(8936002)(26005)(186003)(16526019)(86362001)(6916009)(8676002)(956004)(36756003)(2616005); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: dFeFOxN2NlTWUPbJuUCfCdWDHNMEMwKfInRcIZxoRNU1mdxYI3uaeZxdEyuXuFtKwPKRjDnTZgRVDmw64PZylxsUzpm4KdSDFKpjRreqfTeRSNCyzCpB89PilI7MH+DwRrEUvkSMDB5tvay/KaMOQEs3AkkTD49q/WR3476RLou9p+9OwmdJn9mAHeWPC/+nIsJmJ8WXY2BskQ9tPB4EL60aGfk3kwtIk8CaQBn309CUVerQPzH6A2Xn+kQu7liG+EFHru1LRGp/4EpSeZHKJFIG6jF3DVTTk/hTPhgn1r/HsIWlhhM2FwKGAH94fW3Znyv+xs7+goMcw2WHZdS489dLgZNNg35Or7br0fzDy7etyPgVdJGH5xFFLzb0nuYg5CFJI8lYbhXAQR/l00aKriF3ZGE70vD42uRbXf/X9lz2LFCmVf3EP0l2fOE4yTafpXBD/Oo1Ac0pvsoxRB0wUnYEoT6//qUIHvw4E3DXdJ4RNTTvWOq+L+n4uJ3mUeEshBWZ0jEjt34ziH96MEsYlH572XMtp2796+pgpLl+0QksWgkaJi0m936+bxUMCC75pDjUCFE5FMderBHrpAbKixq6tlFSsQGmDvEX3LArQ8SjMDBQGvhTyk5tUFUqzseaQhpgdthB15O9y5hUjRQ3ag== X-OriginatorOrg: ucl.ac.uk X-MS-Exchange-CrossTenant-Network-Message-Id: a65e40c9-85c4-40c5-ebc3-08d849dc26fa X-MS-Exchange-CrossTenant-AuthSource: VI1PR0102MB3327.eurprd01.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Aug 2020 16:21:57.0465 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 1faf88fe-a998-4c5b-93c9-210a11d9a5c2 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: nt+lkhD9aRiXxHE2+1xS+BmundY3nkCtyCnPZ8cRN1x6hG7R+chkJ5ZPTUI0q98RK9EngCYLRrlOU4im+m9exA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR01MB5437 Received-SPF: none client-ip=40.107.14.97; envelope-from=e.fraga@ucl.ac.uk; helo=EUR01-VE1-obe.outbound.protection.outlook.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/26 12:37:05 X-ACL-Warn: Detected OS = Windows NT kernel [generic] [fuzzy] X-Spam_score_int: -8 X-Spam_score: -0.9 X-Spam_bar: / X-Spam_report: (-0.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FORGED_SPF_HELO=1, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_NONE=0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=liveuclac.onmicrosoft.com header.s=selector2-liveuclac-onmicrosoft-com header.b=rGRxfEu9; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=ucl.ac.uk (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -2.11 X-TUID: yThEubcqrTq6 --=-=-= Content-Type: text/plain Hi, for those of us using more recent versions of Emacs, the new tab-bar-mode can be quite useful. As I have been playing with, I thought it would make sense to have the option for agenda views to pop-up in a new tab as an option. I've coded something that behaves in a similar way to the 'other-frame option that currently exists for org-agenda-window-setup. Patch attached. Comments welcome, of course. -- : Eric S Fraga via Emacs 28.0.50, Org release_9.3.7-719-gcdfc40.dirty --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-added-other-tab-option-for-org-agenda-window-setup.patch >From e715a495f9659a5cef39e25822e18651ecefcf32 Mon Sep 17 00:00:00 2001 From: Eric S Fraga Date: Wed, 26 Aug 2020 17:17:42 +0100 Subject: [PATCH] added other-tab option for org-agenda-window-setup * org-agenda.el (org-agenda-prepare-window, org-agenda--quit): handle other-tab option for agenda view creation and exit. --- lisp/org-agenda.el | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index 8ebc882fc..abb969fe4 100644 --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -1100,11 +1100,15 @@ reorganize-frame Show only two windows on the current frame, the current window and the agenda. other-frame Use `switch-to-buffer-other-frame' to display agenda. Also, when exiting the agenda, kill that frame. +other-tab Use `switch-to-buffer-other-tab' to display the agenda. + Also, kill that tab when exiting the agenda view. + See also the variable `org-agenda-restore-windows-after-quit'." :group 'org-agenda-windows :type '(choice (const current-window) (const other-frame) + (const other-tab) (const other-window) (const only-window) (const reorganize-frame))) @@ -1118,11 +1122,11 @@ It only matters if `org-agenda-window-setup' is `reorganize-frame'." (defcustom org-agenda-restore-windows-after-quit nil "Non-nil means restore window configuration upon exiting agenda. -Before the window configuration is changed for displaying the agenda, -the current status is recorded. When the agenda is exited with -`q' or `x' and this option is set, the old state is restored. If -`org-agenda-window-setup' is `other-frame', the value of this -option will be ignored." +Before the window configuration is changed for displaying the +agenda, the current status is recorded. When the agenda is +exited with `q' or `x' and this option is set, the old state is +restored. If `org-agenda-window-setup' is `other-frame' or +`other-tab', the value of this option will be ignored." :group 'org-agenda-windows :type 'boolean) @@ -3769,6 +3773,8 @@ FILTER-ALIST is an alist of filters we need to apply when (org-switch-to-buffer-other-window abuf)) ((eq org-agenda-window-setup 'other-frame) (switch-to-buffer-other-frame abuf)) + ((eq org-agenda-window-setup 'other-tab) + (switch-to-buffer-other-tab abuf)) ((eq org-agenda-window-setup 'only-window) (delete-other-windows) (pop-to-buffer-same-window abuf)) @@ -7389,6 +7395,8 @@ agenda." (cond ((eq org-agenda-window-setup 'other-frame) (delete-frame)) + ((eq org-agenda-window-setup 'other-tab) + (tab-bar-close-tab)) ((and org-agenda-restore-windows-after-quit wconf) ;; Maybe restore the pre-agenda window configuration. Reset -- 2.28.0 --=-=-=--