unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH] emacs: allow to set RETAIN-STATE for `notmuch-show-refresh-view' interactively
@ 2012-02-13 11:09 Dmitry Kurochkin
  2012-02-13 11:30 ` Tomi Ollila
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Dmitry Kurochkin @ 2012-02-13 11:09 UTC (permalink / raw)
  To: notmuch

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 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el
index 43408d9..aa9ccee 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
-- 
1.7.9

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-02-15  3:49 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-13 11:09 [PATCH] emacs: allow to set RETAIN-STATE for `notmuch-show-refresh-view' interactively Dmitry Kurochkin
2012-02-13 11:30 ` Tomi Ollila
2012-02-13 15:29 ` Austin Clements
2012-02-13 15:44   ` David Edmondson
2012-02-13 15:59   ` Dmitry Kurochkin
2012-02-13 19:02   ` Daniel Schoepe
2012-02-13 19:14     ` Tomi Ollila
2012-02-15  3:49 ` David Bremner

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).