From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id MK9CJOr3O2Q2IAAASxT56A (envelope-from ) for ; Sun, 16 Apr 2023 15:28:10 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id KOxFI+r3O2Q0MQAAG6o9tA (envelope-from ) for ; Sun, 16 Apr 2023 15:28:10 +0200 Received: from mail.notmuchmail.org (yantan.tethera.net [IPv6:2a01:4f9:c011:7a79::1]) (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 4A64926203 for ; Sun, 16 Apr 2023 15:28:10 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 3A30A5F3E6; Sun, 16 Apr 2023 13:27:55 +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 5F36E5DD5A for ; Sun, 16 Apr 2023 13:27:48 +0000 (UTC) Received: from localhost.localdomain (unknown [146.70.133.55]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by mail.kisara.moe (Postfix) with ESMTPSA id 26726A0FB5; Sun, 16 Apr 2023 15:18:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kisara.moe; s=default; t=1681651092; bh=gVJWDsO9eE96+hvdtMCGUNNQNBpkW6zmK7aM/QYIZMk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=yh3m5KqotE4wYkgyc7/QHz7JXhNxhmFptZBscAPTSsVUOr+Lcdffp4P8uTapDx2Bj FmB9ysyGnmqqhfsJref8FJyitbgeIWjyodJlyqiX4okXIHJnLhhzPhNP1d9G+gkhrn pz/3AONDIbBvSgqLtJvOxMhb98hGxTnL9VBlS8SyVm7S8i7REZwIXad7ztztThTIqx /SX8m5pOAKVP8Vs+nNgTgcF/5SEjrAFsU+ulsG566IGLRJXtECh9jSIwZkoHTcUvQ1 vLctsCR/VZRaK4d/n1MpOimS+CNfvNyzi4gX5djLp3313zmlLPFwWu8NN7YHDm+/EG ceOihTwPUTViw== From: mohkale@kisara.moe To: notmuch@notmuchmail.org, David Bremner Subject: [PATCH v2 0/3] emacs: Add new option notmuch-search-hide-excluded Date: Sun, 16 Apr 2023 14:18:08 +0100 Message-Id: <20230416131811.658253-1-mohkale@kisara.moe> X-Mailer: git-send-email 2.40.0 In-Reply-To: <87v8re66mg.fsf@tethera.net> References: <87v8re66mg.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: DYEH7P27KNEEHWXSGHBUD3SZYHCAEKMD X-Message-ID-Hash: DYEH7P27KNEEHWXSGHBUD3SZYHCAEKMD 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-Country: DE X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1681651690; a=rsa-sha256; cv=none; b=KPcByQwiWZMSeeE6YJrvb/wKqn3eKeHkaJoO09/DOiVq2vjUflPrR09nZh2mZMTxBLNM+0 9gqUjBxwtrN0a5369bDB/lNHIJJlRObujS4nVuLTJtiBUrGh7rtSsEnwSgyDyJx18i0LKt jFMlQqqNFardZN+SmJjWsnsDdUhKafgTJ9H8iA8klwThpiYPgEywSvxeX8SiPlYgM/dwW5 /6AC/lMhAynSVm2w0XPpnSRf6Yfo0hBxOgwhnRKNjcW07OlKcjDHgtlninvdRZJYOfI6sR iOe1/KDJMAmGlgfvoBubHcbZeYFOAWFJ5QMqq7nmdbEnO0tAxUcCg+C6Wnjjkw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=kisara.moe header.s=default header.b=yh3m5Kqo; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org; dmarc=fail reason="SPF not aligned (relaxed)" header.from=kisara.moe (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1681651690; 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:dkim-signature; bh=osniIRRhZ9uIMIuxRD1zYFCdQtNY3JhF/aw1zA+ffrI=; b=teXm2q2RHuMlhs3bgO+W1l/XCK0FrfVsxciy+PjqS4jcawjd4/yBvgHhnEhT/z9dP8l4cK MBNN7LSGWM7y/vTYuyLP4Sp36r4oxXuiVzYEM8Wq8lvU1POUwguj4lDVIF3n4kyX5lYWTu R/nMnsIlEOycnna4OJHpRqHBheToU3phPdNdGfJd8Iu1kZYnVH78mLTd+ZuZJ7dxqqMvO5 iwYVuMXAX+7CmJBAGvfKWnrfGVfe0fFO+xrL+Cl3H5nif3YqBszAY18DlKA8mIp9AyOfC2 KdzRTvP3w3oFNlToBJNKIOv1WVwW9Ft/05MQqphPNC6k9QQjUdYZgYAO2EVzvg== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: 0.11 X-Spam-Score: 0.11 X-Migadu-Queue-Id: 4A64926203 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=kisara.moe header.s=default header.b=yh3m5Kqo; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org; dmarc=fail reason="SPF not aligned (relaxed)" header.from=kisara.moe (policy=none) X-TUID: EpKpTMZ/T/H+ From: Mohsin Kaleem Hi, I've finally managed to come back to this patch series. Since last time I've collapsed all the separate commits into 3 main ones. The first adds the new option and then updates the commands and tests that should be affected by it. The second allows you to configure message exclusion in notmuch-saved-searches. The last adds several tests for the new functionality. Mohsin Kaleem (3): emacs: Add new option notmuch-search-hide-excluded emacs: Allow notmuch-saved-searches to hide excluded messages test/emacs: Add test cases for notmuch-search-hide-excluded devel/emacs-keybindings.org | 2 +- doc/notmuch-emacs.rst | 7 + emacs/notmuch-hello.el | 40 ++-- emacs/notmuch-jump.el | 11 +- emacs/notmuch-lib.el | 10 + emacs/notmuch-tree.el | 60 ++++-- emacs/notmuch.el | 52 +++-- test/T310-emacs.sh | 2 +- test/T460-emacs-tree.sh | 2 +- test/T461-emacs-search-exclude.sh | 185 ++++++++++++++++++ .../notmuch-search-tag-inbox-with-excluded | 25 +++ .../notmuch-search-tag-inbox-without-excluded | 21 ++ .../notmuch-tree-tag-inbox-with-excluded | 53 +++++ .../notmuch-tree-tag-inbox-without-excluded | 49 +++++ ...notmuch-unthreaded-tag-inbox-with-excluded | 53 +++++ ...much-unthreaded-tag-inbox-without-excluded | 49 +++++ .../notmuch-tree-tag-inbox-oldest-first | 53 +++++ 17 files changed, 629 insertions(+), 45 deletions(-) create mode 100755 test/T461-emacs-search-exclude.sh create mode 100644 test/emacs-exclude.expected-output/notmuch-search-tag-inbox-with-excluded create mode 100644 test/emacs-exclude.expected-output/notmuch-search-tag-inbox-without-excluded create mode 100644 test/emacs-exclude.expected-output/notmuch-tree-tag-inbox-with-excluded create mode 100644 test/emacs-exclude.expected-output/notmuch-tree-tag-inbox-without-excluded create mode 100644 test/emacs-exclude.expected-output/notmuch-unthreaded-tag-inbox-with-excluded create mode 100644 test/emacs-exclude.expected-output/notmuch-unthreaded-tag-inbox-without-excluded create mode 100644 test/emacs-tree.expected-output/notmuch-tree-tag-inbox-oldest-first -- 2.40.0