From: Mark Walters <markwalters1009@gmail.com>
To: notmuch@notmuchmail.org
Subject: [PATCH 5/5] emacs: make show set --with-excluded
Date: Sat, 3 Mar 2012 13:05:18 +0000 [thread overview]
Message-ID: <1330779918-28024-6-git-send-email-markwalters1009@gmail.com> (raw)
In-Reply-To: <1330779918-28024-1-git-send-email-markwalters1009@gmail.com>
Show has to set --with-excluded to deal with cases where it is asked
to show a single excluded message. It use JSON so it can easily pass
the exclude information to the user.
---
emacs/notmuch-show.el | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el
index 4a60631..39c5713 100644
--- a/emacs/notmuch-show.el
+++ b/emacs/notmuch-show.el
@@ -1099,13 +1099,15 @@ function is used."
(append (list "\'") basic-args
(list "and (" notmuch-show-query-context ")\'"))
(append (list "\'") basic-args (list "\'")))))
- (notmuch-show-insert-forest (notmuch-query-get-threads args))
+ (notmuch-show-insert-forest (notmuch-query-get-threads
+ (append (list "--with-excluded") args)))
;; If the query context reduced the results to nothing, run
;; the basic query.
(when (and (eq (buffer-size) 0)
notmuch-show-query-context)
(notmuch-show-insert-forest
- (notmuch-query-get-threads basic-args))))
+ (notmuch-query-get-threads
+ (append (list "--with-excluded") basic-args)))))
(jit-lock-register #'notmuch-show-buttonise-links)
--
1.7.2.3
next prev parent reply other threads:[~2012-03-03 13:04 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-03 13:05 [PATCH 0/5] Move to --with-excluded approach to excludes Mark Walters
2012-03-03 13:05 ` [PATCH 1/5] lib: rename (and negate) set_omit_excluded set_with_excluded Mark Walters
2012-03-03 13:05 ` [PATCH 2/5] cli: move count to the new --with-excluded naming scheme Mark Walters
2012-03-03 13:05 ` [PATCH 3/5] cli: move search " Mark Walters
2012-03-03 13:05 ` [PATCH 4/5] cli: move show " Mark Walters
2012-03-03 13:05 ` Mark Walters [this message]
2012-03-11 1:19 ` [PATCH 0/5] Move to --with-excluded approach to excludes Jameson Graef Rollins
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=1330779918-28024-6-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).