Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id CB76A431FBD for ; Mon, 13 Feb 2012 03:10:28 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.799 X-Spam-Level: X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KrZI157I-GpH for ; Mon, 13 Feb 2012 03:10:28 -0800 (PST) Received: from mail-bk0-f53.google.com (mail-bk0-f53.google.com [209.85.214.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 3D622431FBC for ; Mon, 13 Feb 2012 03:10:28 -0800 (PST) Received: by bkcit16 with SMTP id it16so286488bkc.26 for ; Mon, 13 Feb 2012 03:10:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:subject:date:message-id:x-mailer; bh=FiVricpeRkgrgIYPE+gcd5/kcOaYLkH8iVpo9wFxGp4=; b=iIv1dKo/0sewjkEvxZdDICt0BuOdKnzA/av4fQnBgs3CI8JAwXBjx5JFOm71ztqnS5 dYOLaQUoMrjw/cbf0nsgbT2XDXQh5/09iBEYkMCBUTpD5LOy1jXD4XZNbJov4vxDZk85 r8GwOyO4QAyPLMjLyM8Gp+MIyc/LNIP71KnF8= Received: by 10.204.154.20 with SMTP id m20mr555895bkw.90.1329131426896; Mon, 13 Feb 2012 03:10:26 -0800 (PST) Received: from localhost ([91.144.186.21]) by mx.google.com with ESMTPS id x20sm45116087bka.9.2012.02.13.03.10.26 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 13 Feb 2012 03:10:26 -0800 (PST) From: Dmitry Kurochkin To: notmuch@notmuchmail.org Subject: [PATCH] emacs: allow to set RETAIN-STATE for `notmuch-show-refresh-view' interactively Date: Mon, 13 Feb 2012 15:09:07 +0400 Message-Id: <1329131347-13803-1-git-send-email-dmitry.kurochkin@gmail.com> X-Mailer: git-send-email 1.7.9 X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Feb 2012 11:10:28 -0000 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