From 10741b57411e14acfea3948c7f71fff023a87f6e Mon Sep 17 00:00:00 2001 From: Tomi Ollila Date: Sat, 8 Dec 2012 00:25:48 +0200 Subject: [PATCH] Re: [PATCH v2] emacs: add support for stashing the thread id in show view --- 05/2bf202a401ff4a9c6f18829dd90513ee11d80e | 98 +++++++++++++++++++++++ 1 file changed, 98 insertions(+) create mode 100644 05/2bf202a401ff4a9c6f18829dd90513ee11d80e diff --git a/05/2bf202a401ff4a9c6f18829dd90513ee11d80e b/05/2bf202a401ff4a9c6f18829dd90513ee11d80e new file mode 100644 index 000000000..6ab584513 --- /dev/null +++ b/05/2bf202a401ff4a9c6f18829dd90513ee11d80e @@ -0,0 +1,98 @@ +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 EEA93431FAF + for ; Fri, 7 Dec 2012 14:25:54 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 0 +X-Spam-Level: +X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] + 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 JPNGsd2pfPF3 for ; + Fri, 7 Dec 2012 14:25:54 -0800 (PST) +Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) + by olra.theworths.org (Postfix) with ESMTP id 31082431FAE + for ; Fri, 7 Dec 2012 14:25:54 -0800 (PST) +Received: from guru.guru-group.fi (localhost [IPv6:::1]) + by guru.guru-group.fi (Postfix) with ESMTP id 10D1B100045; + Sat, 8 Dec 2012 00:25:49 +0200 (EET) +From: Tomi Ollila +To: Jani Nikula , notmuch@notmuchmail.org, + Mark Walters +Subject: Re: [PATCH v2] emacs: add support for stashing the thread id in show + view +In-Reply-To: <1354834085-8225-1-git-send-email-jani@nikula.org> +References: <87mwxqhkqu.fsf@qmul.ac.uk> + <1354834085-8225-1-git-send-email-jani@nikula.org> +User-Agent: Notmuch/0.14+116~g29fcdb5 (http://notmuchmail.org) Emacs/24.2.1 + (x86_64-unknown-linux-gnu) +X-Face: HhBM'cA~ +MIME-Version: 1.0 +Content-Type: text/plain +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: Fri, 07 Dec 2012 22:25:55 -0000 + +On Fri, Dec 07 2012, Jani Nikula wrote: + +> Add a prefix argument to notmuch-show-stash-message-id to stash thread +> id instead of message id. +> --- + +LTGM. + +Tomi + +> emacs/notmuch-show.el | 14 ++++++++++---- +> 1 file changed, 10 insertions(+), 4 deletions(-) +> +> diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el +> index 4d6c014..658a2be 100644 +> --- a/emacs/notmuch-show.el +> +++ b/emacs/notmuch-show.el +> @@ -1901,10 +1901,16 @@ thread from search." +> (interactive) +> (notmuch-common-do-stash (notmuch-show-get-from))) +> +> -(defun notmuch-show-stash-message-id () +> - "Copy id: query matching the current message to kill-ring." +> - (interactive) +> - (notmuch-common-do-stash (notmuch-show-get-message-id))) +> +(defun notmuch-show-stash-message-id (&optional stash-thread-id) +> + "Copy id: query matching the current message to kill-ring. +> + +> +If invoked with a prefix argument (or STASH-THREAD-ID is +> +non-nil), copy thread: query matching the current thread to +> +kill-ring." +> + (interactive "P") +> + (if stash-thread-id +> + (notmuch-common-do-stash notmuch-show-thread-id) +> + (notmuch-common-do-stash (notmuch-show-get-message-id)))) +> +> (defun notmuch-show-stash-message-id-stripped () +> "Copy message ID of current message (sans `id:' prefix) to kill-ring." +> -- +> 1.7.10.4 +> +> _______________________________________________ +> notmuch mailing list +> notmuch@notmuchmail.org +> http://notmuchmail.org/mailman/listinfo/notmuch -- 2.26.2