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 A9160431FD0 for ; Sun, 10 Jul 2011 22:40:41 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.699 X-Spam-Level: X-Spam-Status: No, score=-0.699 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-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 xXpL3Kyvwn-u for ; Sun, 10 Jul 2011 22:40:38 -0700 (PDT) Received: from mail-vw0-f53.google.com (mail-vw0-f53.google.com [209.85.212.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 56052429E26 for ; Sun, 10 Jul 2011 22:40:37 -0700 (PDT) Received: by vws13 with SMTP id 13so2781810vws.26 for ; Sun, 10 Jul 2011 22:40:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:from:to:subject:date:message-id:x-mailer:in-reply-to :references; bh=qMLfg/maxTOe/OBC4KXsmqKymmkmee8rYwEJV7zQ8Vc=; b=iL1rdWNKnHV7hmz/GUypTlWtrs0wx0G7AtHzOwocfKURME2QpjwJKBBmHH/e01QBlx bKXbelly18A3MTYM8+7USyFrvDLwbkfHOjpc3MP1ONxxZaO58aL00TmrtNZCCsfoPQ+t Z3g4NcbuF/z099IKiixCRfKhdI36rQS6Ugb8k= Received: by 10.52.109.38 with SMTP id hp6mr1997957vdb.435.1310362836205; Sun, 10 Jul 2011 22:40:36 -0700 (PDT) Received: from localhost.localdomain (c-98-216-100-90.hsd1.ma.comcast.net [98.216.100.90]) by mx.google.com with ESMTPS id bl2sm5324172vbb.9.2011.07.10.22.40.35 (version=SSLv3 cipher=OTHER); Sun, 10 Jul 2011 22:40:35 -0700 (PDT) Sender: Jason Woofenden From: Jason Woofenden To: notmuch@notmuchmail.org Subject: [PATCH 1/5] vim: fix space key: now archives (did opposite) Date: Mon, 11 Jul 2011 01:40:06 -0400 Message-Id: <1310362810-10926-2-git-send-email-jason@jasonwoof.com> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1310362810-10926-1-git-send-email-jason@jasonwoof.com> References: <1310362810-10926-1-git-send-email-jason@jasonwoof.com> 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, 11 Jul 2011 05:40:42 -0000 In vim, in the message view, space is supposed to remove the "unread" and "inbox" tags, but was sometimes adding them instead. This patch assures that they are always removed by this binding. --- vim/plugin/notmuch.vim | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/vim/plugin/notmuch.vim b/vim/plugin/notmuch.vim index 768a011..d493580 100644 --- a/vim/plugin/notmuch.vim +++ b/vim/plugin/notmuch.vim @@ -596,7 +596,7 @@ function! s:NM_show_advance_marking_read_and_archiving() let filter = NM_combine_tags('tag:', advance_tags, 'OR', '()') \ + ['AND'] \ + NM_combine_tags('', ids, 'OR', '()') - call map(advance_tags, '"+" . v:val') + call map(advance_tags, '"-" . v:val') call NM_tag(filter, advance_tags) call NM_show_next(1, 1) return -- 1.7.5.4