[PATCH v2 2/5] emacs: add no-display arg to notmuch-hello-refresh-hook

Subject: [PATCH v2 2/5] emacs: add no-display arg to notmuch-hello-refresh-hook

Date: Sun, 2 Sep 2012 17:48:34 +0300

To: notmuch@notmuchmail.org

Cc:

From: Jani Nikula


Add no-display arg to notmuch-hello-refresh-hook to allow each hook to
decide what is appropriate when no-display is t, i.e. when not
switching to the notmuch-hello buffer.

This breaks existing hooks people might have, which will now need to
accept the argument.

Signed-off-by: Jani Nikula <jani@nikula.org>
---
 emacs/notmuch-hello.el |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el
index 4dfe5d2..fa14443 100644
--- a/emacs/notmuch-hello.el
+++ b/emacs/notmuch-hello.el
@@ -816,7 +816,7 @@ it (i.e. use `set-buffer' rather than `switch-to-buffer')."
       (unless (widget-at)
 	(when notmuch-hello-search-pos
 	  (goto-char notmuch-hello-search-pos)))))
-  (run-hooks 'notmuch-hello-refresh-hook)
+  (run-hook-with-args 'notmuch-hello-refresh-hook no-display)
   (setq notmuch-hello-first-run nil))
 
 (defun notmuch-folder ()
-- 
1.7.9.5


Thread: