unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Mark Walters <markwalters1009@gmail.com>
To: notmuch@notmuchmail.org, adi@adirat.com
Subject: [PATCH v5 3/7] emacs: hello: stop update from forcing the buffer to be displayed
Date: Sun,  9 Oct 2016 21:33:39 +0100	[thread overview]
Message-ID: <1476045223-5238-4-git-send-email-markwalters1009@gmail.com> (raw)
In-Reply-To: <1476045223-5238-1-git-send-email-markwalters1009@gmail.com>

Make the notmuch-hello refresh function (notmuch-hello-update) not
force the buffer to be displayed. All the callers call it when the
buffer is already displayed so it will only affect non-interactive
callers. Since it is just a trivial wrapper of notmuch-hello anyone
who wants to force the buffer to be displayed should just call
notmuch-hello.
---
 emacs/notmuch-hello.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el
index 089a19d..c858a20 100644
--- a/emacs/notmuch-hello.el
+++ b/emacs/notmuch-hello.el
@@ -604,11 +604,11 @@ with `notmuch-hello-query-counts'."
 
 (defimage notmuch-hello-logo ((:type png :file "notmuch-logo.png")))
 
-(defun notmuch-hello-update (&optional no-display)
-  "Update the current notmuch view."
+(defun notmuch-hello-update ()
+  "Update the notmuch-hello buffer."
   ;; Lazy - rebuild everything.
   (interactive)
-  (notmuch-hello no-display))
+  (notmuch-hello t))
 
 (defun notmuch-hello-window-configuration-change ()
   "Hook function to update the hello buffer when it is switched to."
-- 
2.1.4

  parent reply	other threads:[~2016-10-09 20:33 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-09 20:33 [PATCH v5 0/7] Add refresh all buffers functionality Mark Walters
2016-10-09 20:33 ` [PATCH v5 1/7] emacs: tree: make refresh use generic binding Mark Walters
2016-10-09 20:33 ` [PATCH v5 2/7] emacs: make the refresh functions more consistent Mark Walters
2016-10-09 22:12   ` Tomi Ollila
2016-10-10  7:21     ` Mark Walters
2016-10-10 18:17       ` Tomi Ollila
2016-10-09 20:33 ` Mark Walters [this message]
2016-10-09 20:33 ` [PATCH v5 4/7] emacs: notmuch-search: add no-display functionality Mark Walters
2016-10-09 20:33 ` [PATCH v5 5/7] emacs: notmuch-search-refresh-view: reuse buffer Mark Walters
2016-10-09 20:33 ` [PATCH v5 6/7] emacs: notmuch-show: refresh all windows displaying buffer Mark Walters
2016-10-09 20:33 ` [PATCH v5 7/7] emacs: notmuch-lib: add refresh all buffers function Mark Walters
2016-10-10 13:27 ` [PATCH v5 0/7] Add refresh all buffers functionality Ioan-Adrian Ratiu

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=1476045223-5238-4-git-send-email-markwalters1009@gmail.com \
    --to=markwalters1009@gmail.com \
    --cc=adi@adirat.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).