]> git.notmuchmail.org Git - notmuch/commitdiff
emacs: allow to set RETAIN-STATE for `notmuch-show-refresh-view' interactively
authorDmitry Kurochkin <dmitry.kurochkin@gmail.com>
Mon, 13 Feb 2012 11:09:07 +0000 (15:09 +0400)
committerDavid Bremner <bremner@debian.org>
Wed, 15 Feb 2012 03:42:28 +0000 (23:42 -0400)
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

index 43408d987e90ea1d40712ff4b9653066ce0c18c0..aa9cceedd0e5c9dbcb96e1505d54f23cf80e409e 100644 (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