From: Mark Walters Date: Sun, 29 Apr 2012 00:06:43 +0000 (+0100) Subject: [Patch v4 0/3] Add filter to emacs show mode X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=b45f88589eb167aa1c8b23c711ea9792c3f24bad;p=notmuch-archives.git [Patch v4 0/3] Add filter to emacs show mode --- diff --git a/47/51ab8d0acf1d6f3825fd66098bcc21dda36c98 b/47/51ab8d0acf1d6f3825fd66098bcc21dda36c98 new file mode 100644 index 000000000..5010bbde8 --- /dev/null +++ b/47/51ab8d0acf1d6f3825fd66098bcc21dda36c98 @@ -0,0 +1,96 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id 8B2D3431FB6 + for ; Sat, 28 Apr 2012 17:06:35 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 2.7 +X-Spam-Level: ** +X-Spam-Status: No, score=2.7 tagged_above=-999 required=5 + tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, + FREEMAIL_ENVFROM_END_DIGIT=1, FREEMAIL_FROM=0.001, + FREEMAIL_REPLY=2.499, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id YPBXZsjv-rfA for ; + Sat, 28 Apr 2012 17:06:35 -0700 (PDT) +Received: from mail-wi0-f179.google.com (mail-wi0-f179.google.com + [209.85.212.179]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id D286F431FAE + for ; Sat, 28 Apr 2012 17:06:34 -0700 (PDT) +Received: by wibhn6 with SMTP id hn6so1430533wib.2 + for ; Sat, 28 Apr 2012 17:06:32 -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:x-mailer; + bh=Evk0J+qlykIYsf18WHC77HSmmEeDPymBTwe3SN9j/aw=; + b=MDLMJbM6KP+X2enG2XAEulMTH2qhHqudJwuDRWS5gUoo7uD1ieeP+sOCTqIZfxeCrf + A+Ho9iB3BukM6g05yV9VzNuwBEqLUOPnJyVkshTkIMvkkPdTdA08g1lx++6yKjyZPIqa + L0hvkSWbcQpnlDPgDn36iu0zqmOHy3M8Z65iUYazzzfzN1mbkJda5IL2gNgCqm0TjwK1 + ilnuPKIclUwEFnfa6sVLVcQRRvtGLiw+cU47YzoKSxxTIfWE43mWbMC6yLQoTI4Q8Tfs + 1Rz0Go6lXxuImQUvMTFuwaEUkoLmbtwppMnEVlLUTCGj25zGmQL2AZ/+kWmt28nWPU8V + GH7Q== +Received: by 10.180.79.135 with SMTP id j7mr17570790wix.19.1335657992055; + Sat, 28 Apr 2012 17:06:32 -0700 (PDT) +Received: from localhost (94-192-233-223.zone6.bethere.co.uk. + [94.192.233.223]) by mx.google.com with ESMTPS id + k6sm16564339wie.9.2012.04.28.17.06.30 (version=TLSv1/SSLv3 cipher=OTHER); + Sat, 28 Apr 2012 17:06:30 -0700 (PDT) +From: Mark Walters +To: notmuch@notmuchmail.org +Subject: [Patch v4 0/3] Add filter to emacs show mode +Date: Sun, 29 Apr 2012 01:06:43 +0100 +Message-Id: <1335658006-20161-1-git-send-email-markwalters1009@gmail.com> +X-Mailer: git-send-email 1.7.9.1 +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +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: Sun, 29 Apr 2012 00:06:35 -0000 + +This is version 4 of the patch set allowing the user to "filter" which +messages are open in emacs show mode. The previous version was at +id:"1335467689-6513-1-git-send-email-markwalters1009@gmail.com" + +The change in this version is to keep position in the thread (at least +to the same message). + +The first patch (new in this series) just splits out a sub-function +notmuch-show-goto-msg-id from notmuch-show-apply-state. + +The second patch is almost the same as the first patch in the previous +series but uses the new notmuch-show-goto-msg-id function to maintain +position in the thread. + +The final patch is identical to the final patch of the previous series +which moves the key-binding for filter in emacs search mode to 'l' to +match the new binding in show-mode. + +Best wishes + +Mark + + + +Mark Walters (3): + emacs: split notmuch-show-apply-state + emacs: add a filter option to show + emacs: Bind filter in search to 'l' + + emacs/notmuch-show.el | 30 +++++++++++++++++++++++------- + emacs/notmuch.el | 4 ++-- + 2 files changed, 25 insertions(+), 9 deletions(-) + +-- +1.7.9.1 +