From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id uAMpKh7T72JGEAAAbAwnHQ (envelope-from ) for ; Sun, 07 Aug 2022 16:58:38 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 0EwxKh7T72IEUwAAauVa8A (envelope-from ) for ; Sun, 07 Aug 2022 16:58:38 +0200 Received: from mail.notmuchmail.org (yantan.tethera.net [135.181.149.255]) (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 703553FACA for ; Sun, 7 Aug 2022 16:58:38 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 3612A5F3E3; Sun, 7 Aug 2022 14:58:17 +0000 (UTC) Received: from mail.kisara.moe (119.ip-51-38-65.eu [51.38.65.119]) by mail.notmuchmail.org (Postfix) with ESMTPS id 386365E027 for ; Sun, 7 Aug 2022 14:58:11 +0000 (UTC) Received: from localhost.localdomain (unknown [141.98.252.161]) (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 mail.kisara.moe (Postfix) with ESMTPSA id A3F9CA0B55; Sun, 7 Aug 2022 16:58:10 +0200 (CEST) From: Mohsin Kaleem To: David Bremner , notmuch@notmuchmail.org Subject: [PATCH 5/9] feat: Add more interactive specs Date: Sun, 7 Aug 2022 15:57:29 +0100 Message-Id: <20220807145733.129867-5-mohkale@kisara.moe> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220807145733.129867-1-mohkale@kisara.moe> References: <87v8re66mg.fsf@tethera.net> <20220807145733.129867-1-mohkale@kisara.moe> MIME-Version: 1.0 Message-ID-Hash: S747EIXURNXC6VOF2EN5RRKER3DTRJKQ X-Message-ID-Hash: S747EIXURNXC6VOF2EN5RRKER3DTRJKQ X-MailFrom: mohkale@kisara.moe X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0 CC: Mohsin Kaleem X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: DE ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1659884318; 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-owner:list-unsubscribe:list-subscribe:list-post; bh=efPPkHhw4DRbHG+EHByXOxkEgIz1esbQE6ovWXZbwZY=; b=e09c9SJ2/jsbcLIz6svDQKew8xBJ3GPISyDo5m0GO8LlQvfTtBbj6Iv6H9ImgaKIBqhcUM oeMf87irMN/ESQAs0g0w6AXMKNWlf+y0cUdYy+ONZ4WSZR/2TvDlfMasHGOisy4CWpByU0 Fa/SuLmyFpmT3dpZKhNzZpGMNZB7YhExp4k2xTShWcax3v1TojnCbt4tK9e4NQEaeWZXUG KEBs8k+WVhcqj3KH2TZWK50LwRMLgNpDYkQbOjLTZu9GtfdCgsCEIJnPEl4Qjx7kkUNtl+ o3/LBbtFK+4lzsv55tBfuc3aLrh+E3Fg7GZTvHdIBRaDQdroVXzzJwg8K3Ib0w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659884318; a=rsa-sha256; cv=none; b=q1s7FTpsxZ/sHiduZgcNGX6HgvAq2GlH/m6Yj8djxnUUd2YalrswzKGuoAzS9fyw5K2X0V DSLMLoXENrVTmMMov2sDRyVlhFAGd0ffP4Xk3vnqGdNGVMW8w/Fp9BeRmNYpS4jWpzPuFx YY/7V7CA88jVKZSjZVo0tXN5RFB3NqMQeiEKycqbtZtPJCb7NmHBCT08Q3UfSt5INs3hOy lc3wCLM2H2PGxwOCrgFk4mtEW4FXmJYJ6KGyS6ycHpKLEoOYW9R/GyR4LYlxEAuxDfkuf1 Ze0+2EkkoucIx4aYokUpcYHE8dhKn+NMHXSJDi2aiaam1MKQh977IGXQU2kyEA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=kisara.moe (policy=none); spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: 2.87 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=kisara.moe (policy=none); spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 703553FACA X-Spam-Score: 2.87 X-Migadu-Scanner: scn0.migadu.com X-TUID: /thDPm9dfh3U --- emacs/notmuch-tree.el | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/emacs/notmuch-tree.el b/emacs/notmuch-tree.el index 9ed8a3d9..5f999424 100644 --- a/emacs/notmuch-tree.el +++ b/emacs/notmuch-tree.el @@ -1215,7 +1215,15 @@ The arguments are: it is nil \"*notmuch-tree\" followed by QUERY is used. OPEN-TARGET: If TRUE open the target message in the message pane. UNTHREADED: If TRUE only show matching messages in an unthreaded view." - (interactive) + (interactive + (list + ;; Prompt for a query + nil + ;; Fill other args with nil. + nil nil nil nil nil nil + ;; Populate these from the default value of these options. + (default-value 'notmuch-search-oldest-first) + (default-value 'notmuch-search-exclude))) (unless query (setq query (notmuch-read-query (concat "Notmuch " (if unthreaded "unthreaded " "tree ") @@ -1239,7 +1247,15 @@ The arguments are: "Display threads matching QUERY in unthreaded view. See function NOTMUCH-TREE for documentation of the arguments" - (interactive) + (interactive + (list + ;; Prompt for a query + nil + ;; Fill other args with nil. + nil nil nil nil + ;; Populate these from the default value of these options. + (default-value 'notmuch-search-oldest-first) + (default-value 'notmuch-search-exclude))) (notmuch-tree query query-context target buffer-name open-target t nil oldest-first exclude)) -- 2.37.1