From ff9c8a5cfa0ab734eb262151de7f9743d2c81a3f Mon Sep 17 00:00:00 2001 From: Mark Walters Date: Thu, 10 Jan 2013 10:41:15 +0000 Subject: [PATCH] [PATCH 0/2] contrib: pick: allow target message --- 3d/d8816f128182cc86e505722870c4e6efc4852a | 87 +++++++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 3d/d8816f128182cc86e505722870c4e6efc4852a diff --git a/3d/d8816f128182cc86e505722870c4e6efc4852a b/3d/d8816f128182cc86e505722870c4e6efc4852a new file mode 100644 index 000000000..3914a0225 --- /dev/null +++ b/3d/d8816f128182cc86e505722870c4e6efc4852a @@ -0,0 +1,87 @@ +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 12FAB431FBC + for ; Thu, 10 Jan 2013 02:41:23 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 0.201 +X-Spam-Level: +X-Spam-Status: No, score=0.201 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, + 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 hDAw10vzEJbe for ; + Thu, 10 Jan 2013 02:41:22 -0800 (PST) +Received: from mail-wg0-f52.google.com (mail-wg0-f52.google.com + [74.125.82.52]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client + certificate requested) by olra.theworths.org (Postfix) with ESMTPS id + 370AF431FAF for ; Thu, 10 Jan 2013 02:41:22 -0800 + (PST) +Received: by mail-wg0-f52.google.com with SMTP id 12so173037wgh.19 + for ; Thu, 10 Jan 2013 02:41:21 -0800 (PST) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; + h=x-received:from:to:cc:subject:date:message-id:x-mailer; + bh=br5OqM79xzXH4DMm+svZPKRCmW7nO4aF/YS5M9+4Zk8=; + b=SkUfFSNTNijz7ybJtGefYLQOJt/RKHIfyuLitr39po4sX85S5bd1he8LnOL/1m8XMA + aGKZO46bLb5+XVcvoc4i0iJ0V/WYu7jXwRJJ4RI+zf7CiSqthlvnL941RR9LEElXsNzx + Nsm4WRn2lc49u48Mn4wzVqO6OkOAwUnYwJroZYGgqdD++d60S/xQ0mq2Vz4sIBKZyusK + U/jtQNwI5yOG2jVx+bvvvatJ+cs3RIRTgq+u1g9ieESmwU04lHkqp9gMAlFvGdZuqpm7 + UEPQpp+Oyu1Z6AJOoQqEHfC9qgXFJZk+2LrpimnD0Jno7yaeylrWcfClfQmm5DquJFH6 + SHzQ== +X-Received: by 10.180.80.170 with SMTP id s10mr7874612wix.27.1357814479674; + Thu, 10 Jan 2013 02:41:19 -0800 (PST) +Received: from localhost (93-97-24-31.zone5.bethere.co.uk. [93.97.24.31]) + by mx.google.com with ESMTPS id t17sm1679942wiv.6.2013.01.10.02.41.18 + (version=TLSv1.2 cipher=RC4-SHA bits=128/128); + Thu, 10 Jan 2013 02:41:19 -0800 (PST) +From: Mark Walters +To: notmuch@notmuchmail.org +Subject: [PATCH 0/2] contrib: pick: allow target message +Date: Thu, 10 Jan 2013 10:41:15 +0000 +Message-Id: <1357814477-1348-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: Thu, 10 Jan 2013 10:41:23 -0000 + +These two patches allow the caller of pick to specify a target message +that pick should jump to when it appears. This is used by refresh-view +(to keep the same current message) and by the entry from show +(notmuch-pick-from-show-current-thread). + +It would be easy to add functionality so that, if no target-message is +specified, pick goes to the first matching message. + +In the future this should be used to remove the horrible hack in +notmuch-pick-show-match-message-with-wait. + +Best wishes + +Mark + + + +Mark Walters (2): + contrib: pick: move save-excursion closer to message insertion + contrib: pick: add a target message for pick + + contrib/notmuch-pick/notmuch-pick.el | 43 ++++++++++++++++++++++++--------- + 1 files changed, 31 insertions(+), 12 deletions(-) + +-- +1.7.9.1 + -- 2.26.2