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 156A06DE0F5A for ; Thu, 28 Nov 2019 08:14:21 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.2 X-Spam-Level: X-Spam-Status: No, score=-0.2 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1] 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 KKz-h2MUZSTB for ; Thu, 28 Nov 2019 08:14:18 -0800 (PST) Received: from jb55.com (jb55.com [45.79.91.128]) by arlo.cworth.org (Postfix) with ESMTPS id 450986DE0944 for ; Thu, 28 Nov 2019 08:14:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d= jb55.com; h=from:to:subject:date:message-id; s=default; bh=ZYe6gQB/OGw9fQKYB7xDuFS4Dj2OpbFnpRnQNEbIjJ0=; b=pokOChuMdAnp8G1qE9N94D28eEQr4N9Ra4zaTByIKhfClEmNE7vpy8uzwrGEYFPybMtHjHICHCbfRd8em2nx6NgpP5TNz2wVdoCo+eTCy7KPKZhRU8MNCBaX9aDF+9H2G55bdvXVyVnC1p1cKPrBBie/bBlCFQraaOqhSqL7Hf7pgmZ8LvkLOGwYl+u7/OC/Sg3OnJI2QNnTs1eIn09b0dSUfQNQmIYgGbr1eMII4nDxa6VSGEUNc6mlZqF4Nv/ZYH6r1b7zCzset4I7GBSPs2nZGpIXxDTUUjc3DW8DMoUQk32DmAH6i8tbgR33nKhT03gqnPkRuJ67eA7727yrjQ== Received: from jb55.com (S0106f0f249a68533.gv.shawcable.net [24.69.143.198]) by jb55.com (OpenSMTPD) with ESMTPSA id c75feb5a TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Thu, 28 Nov 2019 16:14:16 +0000 (UTC) From: William Casarin To: notmuch@notmuchmail.org Subject: [PATCH v2 0/8] Port notmuch-show's x/X bindings to notmuch-tree Date: Thu, 28 Nov 2019 08:13:53 -0800 Message-Id: <20191128161401.28844-1-jb55@jb55.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.29 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: Thu, 28 Nov 2019 16:14:21 -0000 These patches bring notmuch-tree more in line with the user experience of notmuch-show by adding the x/X bindings. v2: - fix a bug when moving between open messages - include M-RET keybinding patch from id:20191113225752.26502-1-jb55@jb55.com v1: id:20191117222929.1064-1-jb55@jb55.com William Casarin (8): emacs/tree: return true if a thread was found in next-thread emacs/tree: add notmuch-tree-goto-matching-message emacs/tree: add notmuch-tree-matching-message emacs/tree: add kill-both prefix argument to notmuch-tree-quit emacs/tree: add notmuch-tree-archive-message-than-next-or-exit emacs/tree: add notmuch-tree-archive-thread-then-exit emacs/tree: add x/X bindings emacs: bind M-RET to notmuch-tree-from-search-thread emacs/notmuch-tree.el | 72 +++++++++++++++++++++++++++++++------------ emacs/notmuch.el | 1 + 2 files changed, 53 insertions(+), 20 deletions(-) Range-diff: 1: 04f7138f = 1: 16972fa8 emacs/tree: return true if a thread was found in next-thread 2: c1f58bf3 = 2: 54e166a9 emacs/tree: add notmuch-tree-goto-matching-message 3: ef6d5da3 = 3: d68d2050 emacs/tree: add notmuch-tree-matching-message 4: 777ea3eb = 4: 8432bc9a emacs/tree: add kill-both prefix argument to notmuch-tree-quit 5: fc2497ad ! 5: 0c3f996d emacs/tree: add notmuch-tree-archive-message-than-next-or-exit @@ emacs/notmuch-tree.el: nil otherwise." - (notmuch-tree-goto-matching-message prev) - (when (window-live-p notmuch-tree-message-window) - (notmuch-tree-show-message-in))) -+ (if (and pop-at-end (not (notmuch-tree-goto-matching-message prev))) ++ (if (and (not (notmuch-tree-goto-matching-message prev)) pop-at-end) + (notmuch-tree-quit pop-at-end) + (when (window-live-p notmuch-tree-message-window) + (notmuch-tree-show-message-in)))) 6: bf3107fa = 6: 17545910 emacs/tree: add notmuch-tree-archive-thread-then-exit 7: 9fea4f9e = 7: fbcb3ee0 emacs/tree: add x/X bindings -: -------- > 8: ac0f03a2 emacs: bind M-RET to notmuch-tree-from-search-thread base-commit: 7ad7cfbff232431377562271901ee00202bf0bd0 -- 2.23.0