From: Mark Walters <markwalters1009@gmail.com>
To: notmuch@notmuchmail.org
Subject: [PATCH 09/11] emacs: move search based tree functions to notmuch.el
Date: Tue, 29 Oct 2013 22:55:36 +0000 [thread overview]
Message-ID: <1383087338-10220-10-git-send-email-markwalters1009@gmail.com> (raw)
In-Reply-To: <1383087338-10220-1-git-send-email-markwalters1009@gmail.com>
Move a couple of the search mode specifc caller helpers for tree from
tree into notmuch.el.
---
emacs/notmuch-tree.el | 18 ------------------
emacs/notmuch.el | 14 ++++++++++++++
2 files changed, 14 insertions(+), 18 deletions(-)
diff --git a/emacs/notmuch-tree.el b/emacs/notmuch-tree.el
index ebfb5e7..78b4a57 100644
--- a/emacs/notmuch-tree.el
+++ b/emacs/notmuch-tree.el
@@ -413,24 +413,6 @@ Does NOT change the database."
notmuch-show-query-context
(notmuch-show-get-message-id)))
-;; This function should be in notmuch.el but be we trying to minimise
-;; impact on the rest of the codebase.
-(defun notmuch-tree-from-search-current-query ()
- "Call notmuch tree with the current query"
- (interactive)
- (notmuch-tree notmuch-search-query-string))
-
-;; This function should be in notmuch.el but be we trying to minimise
-;; impact on the rest of the codebase.
-(defun notmuch-tree-from-search-thread ()
- "Show the selected thread with notmuch-tree"
- (interactive)
- (notmuch-tree (notmuch-search-find-thread-id)
- notmuch-search-query-string
- nil
- (notmuch-prettify-subject (notmuch-search-find-subject))
- t))
-
(defun notmuch-tree-message-window-kill-hook ()
"Close the message pane when exiting the show buffer."
(let ((buffer (current-buffer)))
diff --git a/emacs/notmuch.el b/emacs/notmuch.el
index 418c781..2c9a07c 100644
--- a/emacs/notmuch.el
+++ b/emacs/notmuch.el
@@ -439,6 +439,20 @@ If BARE is set then do not prefix with \"thread:\""
(concat "*" (truncate-string-to-width subject 30 nil nil t) "*"))
(message "End of search results."))))
+(defun notmuch-tree-from-search-current-query ()
+ "Call notmuch tree with the current query"
+ (interactive)
+ (notmuch-tree notmuch-search-query-string))
+
+(defun notmuch-tree-from-search-thread ()
+ "Show the selected thread with notmuch-tree"
+ (interactive)
+ (notmuch-tree (notmuch-search-find-thread-id)
+ notmuch-search-query-string
+ nil
+ (notmuch-prettify-subject (notmuch-search-find-subject))
+ t))
+
(defun notmuch-search-reply-to-thread (&optional prompt-for-sender)
"Begin composing a reply-all to the entire current thread in a new buffer."
(interactive "P")
--
1.7.9.1
next prev parent reply other threads:[~2013-10-29 22:56 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-29 22:55 [PATCH 00/11] Move notmuch-tree to mainline Mark Walters
2013-10-29 22:55 ` [PATCH 01/11] emacs: move notmuch-help to lib Mark Walters
2013-10-29 22:55 ` [PATCH 02/11] emacs: tree: remove unneeded declarations Mark Walters
2013-10-29 22:55 ` [PATCH 03/11] emacs: move notmuch-tree from contrib to mainline Mark Walters
2013-10-29 22:55 ` [PATCH 04/11] emacs: add tree to the makefile Mark Walters
2013-10-29 22:55 ` [PATCH 05/11] test: move emacs-tree test into mainline Mark Walters
2013-10-29 22:55 ` [PATCH 06/11] emacs: tree: remove test for emacs from tree test Mark Walters
2013-10-29 22:55 ` [PATCH 07/11] emacs: minimal change to autoload notmuch-tree Mark Walters
2013-10-29 22:55 ` [PATCH 08/11] test: tree: remove require from tests Mark Walters
2013-10-29 22:55 ` Mark Walters [this message]
2013-10-29 22:55 ` [PATCH 10/11] emacs: add z to common keymap Mark Walters
2013-10-29 22:55 ` [PATCH 11/11] emacs: move the show entry to tree into show.el Mark Walters
2013-10-30 18:01 ` [PATCH 00/11] Move notmuch-tree to mainline Tomi Ollila
2013-10-30 18:48 ` Mark Walters
2013-11-01 9:23 ` [PATCH v2 7-11] Fix commit messages Mark Walters
2013-11-01 9:23 ` [PATCH v2 7/11] emacs: minimal change to load notmuch-tree by default Mark Walters
2013-11-01 9:23 ` [PATCH v2 8/11] test: tree: remove require from tests Mark Walters
2013-11-01 9:23 ` [PATCH v2 9/11] emacs: move search based tree functions to notmuch.el Mark Walters
2013-11-01 9:23 ` [PATCH v2 10/11] emacs: add z to common keymap Mark Walters
2013-11-01 9:23 ` [PATCH v2 11/11] emacs: move the show entry to tree into show.el Mark Walters
2013-11-01 12:04 ` [PATCH v2 7-11] Fix commit messages Tomi Ollila
2013-11-07 12:20 ` [PATCH 00/11] Move notmuch-tree to mainline David Bremner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1383087338-10220-10-git-send-email-markwalters1009@gmail.com \
--to=markwalters1009@gmail.com \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).