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 B61F9431FB6 for ; Wed, 29 Oct 2014 07:18:59 -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=[RCVD_IN_DNSWL_LOW=-0.7, UNPARSEABLE_RELAY=0.001] 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 93EQ6w2+25r0 for ; Wed, 29 Oct 2014 07:18:55 -0700 (PDT) Received: from mail-wg0-f43.google.com (mail-wg0-f43.google.com [74.125.82.43]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id C5D0D431FC2 for ; Wed, 29 Oct 2014 07:18:54 -0700 (PDT) Received: by mail-wg0-f43.google.com with SMTP id n12so2011533wgh.16 for ; Wed, 29 Oct 2014 07:18:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:user-agent:from:to:subject:date:message-id; bh=eFdJpK+PHC9yIKsWaVOHIpz53lLxvKqtW2u59rpOLsI=; b=jUE4juB9JWsgk4o7MB1yyS5W1PODX7RaIv8LsRHpqbsJh17Ef0RryM7/Zh4ZV44yty JvtKrWhrl8LlRRD99BxH/b+ZDOQOvk2HjaNKs0McoRRYv4rESfWR2iDNofP6fQjMcyWb aVgsubrJaMZqRCFT4YzxUVfXv2cBTU4QHlwBWXYoW1vsjBIBDVTy/VABglU/YURBs4rG s7qQYvSKeH7bf5YXgdMdrgJE5yd+OAji55oU8odU9c5TMAhISNplkrMHV53elykILov1 eH1HpUeOQ68fj6J5drRXuog4gszfKsGDy9FLIByl0JBuBNBdznKSpXIPCuYkjGWICWH5 Vb/g== X-Gm-Message-State: ALoCoQnu0ql6zibSkdXBhLrsLWfumfYrmGqHt6HIyEjk5rV4qaD6jwBp2+qe+ha6TSUwok0gBMqR X-Received: by 10.194.100.98 with SMTP id ex2mr12556509wjb.48.1414592332068; Wed, 29 Oct 2014 07:18:52 -0700 (PDT) Received: from disaster-area.hh.sledj.net ([2a01:348:1a2:1:ea39:35ff:fe2c:a227]) by mx.google.com with ESMTPSA id dr5sm5701390wib.4.2014.10.29.07.18.50 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 Oct 2014 07:18:51 -0700 (PDT) Received: from localhost (30000@localhost [local]); by localhost (OpenSMTPD) with ESMTPA id 97656b76; for ; Wed, 29 Oct 2014 14:18:49 +0000 (UTC) User-Agent: OpenSMTPD enqueuer (Demoostik) From: David Edmondson To: notmuch@notmuchmail.org Subject: [PATCH v2] emacs: Improve the behaviour of the 'q' binding. Date: Wed, 29 Oct 2014 14:18:48 +0000 Message-Id: <1414592329-15899-1-git-send-email-dme@dme.org> X-Mailer: git-send-email 2.1.1 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, 29 Oct 2014 14:18:59 -0000 emacs: Improve the behaviour of the 'q' binding. When a user hits 'q' in a notmuch buffer, kill the buffer only if there are no other windows currently showing it. v2: - Change the name of `notmuch-kill-this-buffer' to be clearer. David Edmondson (1): emacs: Improve the behaviour of the 'q' binding. emacs/notmuch-lib.el | 13 +++++++++---- emacs/notmuch-show.el | 2 +- emacs/notmuch-tree.el | 2 +- emacs/notmuch.el | 4 ++-- 4 files changed, 13 insertions(+), 8 deletions(-) -- 2.1.1