From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 0C4F16DE1100 for ; Mon, 19 Sep 2016 02:40:00 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.146 X-Spam-Level: X-Spam-Status: No, score=-0.146 tagged_above=-999 required=5 tests=[AWL=0.424, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UeRylxa6AYKz for ; Mon, 19 Sep 2016 02:39:58 -0700 (PDT) Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by arlo.cworth.org (Postfix) with ESMTPS id BB2FE6DE10E8 for ; Mon, 19 Sep 2016 02:39:57 -0700 (PDT) Received: by mail-wm0-f66.google.com with SMTP id b184so13939670wma.3 for ; Mon, 19 Sep 2016 02:39:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=m4hx3mAt5bS9IDaWu+bE6IQBitwsNlmMnqFXi0R5yEw=; b=YKcxPYSxiy+BESy647VGFUNWJxQzMNtzJpxlLvTTZlyrLyhZOWT7ji13k3nTZApa3Q hA0WEW2UHrFCZuJLq0f52YmdKOXGXe8+Bn9r293aXbFnDEYFGXeY7IKHdOvVOEsQ2MbQ 34cY9UDr8D44CMFayFILu3Hi2kU2r47dFef8SYNK+ZWKIa8mTfk+6hlqnc6ugdagz0ii stk4ufykkSh+h6KArJJihLb8kCztPq1evXA//KsBOUImorgVzH40LBAj4FbXWrxMvJeO 1ZAKgkEN16guVhl4eTk5/sQtLHBcYZCTDptghFyDWbWQAHvOaxOX3U534DxH/GfTjWjn EyCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=m4hx3mAt5bS9IDaWu+bE6IQBitwsNlmMnqFXi0R5yEw=; b=drrHcdbLhc5bF2ncmoXOLXGiCUX5I5P+iQJKQqOvbEieFxxmY9UhkBygYvUisNp7wg nIaxKVm11G+V13JBfgbHab3oiwr8E8jS8pThaLB/L7pvGEkMNBs236rThwlwJut2KjO6 4gCwXSSvp6/nWC6cmBGfSF4wdbrxCLeKCZdZBIdm5iZse3Q325H443jBq6vMFofIw9y/ IQ0UKeIMxCOr2LrS8LPa3r3E/81Ee9eqsKJsSFpX5K23Q29SCEiMdzry0fK8SMCQxfsr S/xl3p92pOtNF5a5AB1MLWDXaqC9ZRhLxaqC/KZQAhrXMK9jsf0q4El7dGpYnKPkSCvV Ppbg== X-Gm-Message-State: AE9vXwOhbx9lu0Lw87MzrTBaxAjY04h7Yn/0d46tgVdARwI3MnYH8+IgfF5ICebWleH81A== X-Received: by 10.28.170.197 with SMTP id t188mr9238587wme.42.1474277993467; Mon, 19 Sep 2016 02:39:53 -0700 (PDT) Received: from localhost (188.28.172.134.threembb.co.uk. [188.28.172.134]) by smtp.gmail.com with ESMTPSA id w207sm21122548wmd.8.2016.09.19.02.39.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Sep 2016 02:39:52 -0700 (PDT) From: Mark Walters To: notmuch@notmuchmail.org Subject: [PATCH] emacs: tree: make jump close message pane Date: Mon, 19 Sep 2016 10:39:49 +0100 Message-Id: <1474277989-13572-1-git-send-email-markwalters1009@gmail.com> X-Mailer: git-send-email 2.1.4 X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Sep 2016 09:40:00 -0000 j is in the global notmuch keymap bound to notmuch jump. In tree-mode it makes sense to close the message pane first (otherwise the new search runs in the small top pane of tree-mode). --- I think this is essentially a bugfix -- I can't see why someone would want to keep the message pane open in tree-mode when using notmuch jump: the broad ethos of tree-mode is that the tree-view and the message pane are really one window. Best wishes Mark emacs/notmuch-tree.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/emacs/notmuch-tree.el b/emacs/notmuch-tree.el index 5431384..851e112 100644 --- a/emacs/notmuch-tree.el +++ b/emacs/notmuch-tree.el @@ -241,6 +241,8 @@ FUNC." (define-key map [remap notmuch-search] 'notmuch-tree-to-search) ;; Override because we want to close message pane first. (define-key map [remap notmuch-mua-new-mail] (notmuch-tree-close-message-pane-and #'notmuch-mua-new-mail)) + ;; Override because we want to close message pane first. + (define-key map [remap notmuch-jump-search] (notmuch-tree-close-message-pane-and #'notmuch-jump-search)) (define-key map "S" 'notmuch-search-from-tree-current-query) -- 2.1.4