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 ms0.migadu.com with LMTPS id 6DKzDhsC12A+RwEAgWs5BA (envelope-from ) for ; Sat, 26 Jun 2021 12:31:55 +0200 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 UDpDChsC12CnBQAAbx9fmQ (envelope-from ) for ; Sat, 26 Jun 2021 10:31:55 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [144.217.243.247]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 88886D6F1 for ; Sat, 26 Jun 2021 12:31:54 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id DAB3629033; Sat, 26 Jun 2021 06:31:50 -0400 (EDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id 40D9F29030 for ; Sat, 26 Jun 2021 06:31:47 -0400 (EDT) Received: by fethera.tethera.net (Postfix, from userid 1001) id 06BFD5FD21; Sat, 26 Jun 2021 06:31:47 -0400 (EDT) Received: (nullmailer pid 116418 invoked by uid 1000); Sat, 26 Jun 2021 10:31:46 -0000 From: David Bremner To: jao , notmuch@notmuchmail.org Subject: Re: [PATCH 3/7] emacs/tree: command to toggle search sort order in tree mode In-Reply-To: <20210626022846.233052-4-jao@gnu.org> References: <20210626022846.233052-1-jao@gnu.org> <20210626022846.233052-4-jao@gnu.org> Date: Sat, 26 Jun 2021 07:31:46 -0300 Message-ID: <87h7hkhq7h.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: EETEHP7SGNBOEAMECW3YZIY6NWP2KR4V X-Message-ID-Hash: EETEHP7SGNBOEAMECW3YZIY6NWP2KR4V X-MailFrom: david@tethera.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header CC: jao X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1624703515; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=+/XlJ+VrJdKWZN/xxlsmCBccNL5jytFfXunnsTAF4ns=; b=olfXKWz3tlx3tVAK9tVRL+77jk3BVqH8PNFmO/dRbdC+u3ddPiaM5/6Ond8n/2XFK7CkJC upbJeBLb/FOijyjnK4IegCt+M8qaLc/GUoqtH1CkeKyvXMAKLacxEHCEWCLt/BUT+1QV9r 9Pg9GyY0lf1CNz6snkzo0R707GDEstTTdh+Lw0rsyNEmD3k8f7lpyREV6dSAW7IqNUwhyo OS3fpPBPsXJkc2BAkbzos+rWH3humVb77aXHmb46ZYKVgUmdvP+5y+bgg/4mSHhe+Qid/n yy56rRtnqbC22eX6ym4w/d0yRDq0w9GOEZGDvet8wPpvbNDvFRKdHZraP0sEKQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1624703515; a=rsa-sha256; cv=none; b=p9QCG62/NjIP4RAASsFa3vxpbSiK/X0QKPO6+3rJY2AUfKp5sqJDIu+XE84JiUDOAdc0of 9/hBFi75o8bLf5xPBZDJ/dykCcC6qYiHtoOPdivHOD3sTcjGBfPYNuPNLCirMwQxYxxjK8 k6VoNpux0NTuDo9t0ORa5vEXrNp2L0lokbxv8XrZecPyiHyUCCZrhp72ExZWS1311Gh9q+ zhlLI7swSTn+gWvEfCBML3s6OqIweRwg9BfdHUeCoX6Qcx68zKNXn2Czsu6sjm43/oX0xn 1RRuDSwjOx0Oqt1v8TZuOhzv/sX68qWHJ7J0Jhs90gli9TziPGbZ/z85GFOEJQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -2.06 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 88886D6F1 X-Spam-Score: -2.06 X-Migadu-Scanner: scn0.migadu.com X-TUID: NPSjvEIEWZR5 jao writes: > New command notmuch-tree-toggle-order for switching the sort order (by > reissuing the search with a different flag) in a notmuch-tree buffer. > --- > emacs/notmuch-tree.el | 14 +++++++++++++- > 1 file changed, 13 insertions(+), 1 deletion(-) > > diff --git a/emacs/notmuch-tree.el b/emacs/notmuch-tree.el > index 6ef8e439..c23dacfc 100644 > --- a/emacs/notmuch-tree.el > +++ b/emacs/notmuch-tree.el > @@ -322,6 +322,7 @@ then NAME behaves like CMD." > ;; that additionally close the message window. > (define-key map [remap notmuch-bury-or-kill-this-buffer] 'notmuch-tree-quit) > (define-key map [remap notmuch-search] 'notmuch-tree-to-search) > + (define-key map [remap notmuch-search] 'notmuch-tree-toggle-order) > (define-key map [remap notmuch-help] 'notmuch-tree-help) > (define-key map [remap notmuch-mua-new-mail] 'notmuch-tree-new-mail) > (define-key map [remap notmuch-jump-search] 'notmuch-tree-jump-search) That remap command looks like a copy-paste failure. Does it actually work? d