From d8bff4b3af412cd56283e6e2cda256b79d2fd40b Mon Sep 17 00:00:00 2001 From: Dmitry Kurochkin Date: Mon, 13 Feb 2012 15:09:07 +0400 Subject: [PATCH] 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 =". --- emacs/notmuch-show.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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