From: Dmitry Kurochkin <dmitry.kurochkin@gmail.com>
Date: Mon, 13 Feb 2012 11:09:07 +0000 (+0400)
Subject: emacs: allow to set RETAIN-STATE for `notmuch-show-refresh-view' interactively
X-Git-Tag: debian/0.12_rc1-1~81
X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=d8bff4b3af412cd56283e6e2cda256b79d2fd40b;p=notmuch-old

emacs: allow to set RETAIN-STATE for `notmuch-show-refresh-view' interactively

The notmuch-show view refresh function (`notmuch-show-refresh-view',
bound to "=") accepts an optional RETAIN-STATE argument.  The patch
allows to set this argument interactively by using "C-u =".
---

diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el
index 43408d98..aa9cceed 100644
--- a/emacs/notmuch-show.el
+++ b/emacs/notmuch-show.el
@@ -1124,7 +1124,7 @@ This includes:
 Refreshes the current view, observing changes in display
 preferences. If RETAIN-STATE is non-nil then the state of the
 buffer is stored and re-applied after the refresh."
-  (interactive)
+  (interactive "P")
   (let ((inhibit-read-only t)
 	state)
     (if retain-state