From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 902AB429E2F for ; Wed, 25 Jan 2012 02:19:00 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[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 I-60n+f8mlGI for ; Wed, 25 Jan 2012 02:19:00 -0800 (PST) Received: from mail-ww0-f41.google.com (mail-ww0-f41.google.com [74.125.82.41]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 9D6B8431FD5 for ; Wed, 25 Jan 2012 02:18:59 -0800 (PST) Received: by wgbdt11 with SMTP id dt11so1242578wgb.2 for ; Wed, 25 Jan 2012 02:18:58 -0800 (PST) MIME-Version: 1.0 Received: by 10.180.86.9 with SMTP id l9mr18142417wiz.15.1327486738339; Wed, 25 Jan 2012 02:18:58 -0800 (PST) Received: from hotblack-desiato.hh.sledj.net (host81-149-164-25.in-addr.btopenworld.com. [81.149.164.25]) by mx.google.com with ESMTPS id di5sm62063627wib.3.2012.01.25.02.18.56 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 25 Jan 2012 02:18:57 -0800 (PST) Received: by hotblack-desiato.hh.sledj.net (Postfix, from userid 30000) id B75CE9FCDA; Wed, 25 Jan 2012 10:18:55 +0000 (GMT) From: David Edmondson To: notmuch@notmuchmail.org Subject: [PATCH 0/3] reworked crypto toggle, plus a couple of other toggles Date: Wed, 25 Jan 2012 10:18:46 +0000 Message-Id: <1327486729-18052-1-git-send-email-dme@dme.org> X-Mailer: git-send-email 1.7.8.3 X-Gm-Message-State: ALoCoQm39qenohCG9T35n+B1EHVXqkbdbHutoAeV9D0SET9dvy5OCAJEhHRwYKIoW05MCtpLuq93 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: Wed, 25 Jan 2012 10:19:00 -0000 The crypto toggle previously worked using an argument to `notmuch-show' and various other functions and relied on killing and re-creating the notmuch-show-mode buffer. Various other pseudo-buffer-local variables were present based on an ad-hoc scheme. Replace the ad-hoc scheme with real buffer-local variables and then update `notmuch-show-refresh-view' to erase and re-paint rather than kill and re-create. Update the crypto switch accordingly. Add two other toggles: - whether non-matching messages are available, - the indentation of message contents. Both of these default to the current behaviour. A wart in the first patch is the handling of the `notmuch-show-process-crypto' default. It is set based on `notmuch-crypto-process-mime', but the users choice of setting for that variable may not have been applied at the point where `notmuch-show-process-crypto' inherits it. My inclination is to remove `notmuch-crypto-process-mime' altogether (declared it an obsolete variable) and allow users to set a default for `notmuch-show-process-crypto' directly, but that is not done in this patchset while awaiting feedback. `notmuch-crypto-process-mime' is used only in notmuch-show.el, so the setting really belongs there with an appropriate name. David Edmondson (3): emacs: Rework crypto switch toggle. emacs: Allow `notmuch-show-mode' to display only matching messages. emacs: Allow the indentation of content to be toggled. emacs/notmuch-show.el | 143 +++++++++++++++++++++++++++++-------------------- emacs/notmuch.el | 7 +-- 2 files changed, 87 insertions(+), 63 deletions(-) -- 1.7.8.3