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 =".
This commit is contained in:
Dmitry Kurochkin 2012-02-13 15:09:07 +04:00 committed by David Bremner
parent a5674c2158
commit d8bff4b3af

View file

@ -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