[PATCH v2] emacs: Improve the behaviour of the 'q' binding.
authorDavid Edmondson <dme@dme.org>
Wed, 29 Oct 2014 14:18:48 +0000 (14:18 +0000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 18:05:49 +0000 (10:05 -0800)
71/d065303b304b733b1b30f00a9782a4082f9cf2 [new file with mode: 0644]

diff --git a/71/d065303b304b733b1b30f00a9782a4082f9cf2 b/71/d065303b304b733b1b30f00a9782a4082f9cf2
new file mode 100644 (file)
index 0000000..889d0c6
--- /dev/null
@@ -0,0 +1,90 @@
+Return-Path: <dme@dme.org>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id B61F9431FB6\r
+       for <notmuch@notmuchmail.org>; Wed, 29 Oct 2014 07:18:59 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.699\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.699 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_LOW=-0.7, UNPARSEABLE_RELAY=0.001]\r
+       autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id 93EQ6w2+25r0 for <notmuch@notmuchmail.org>;\r
+       Wed, 29 Oct 2014 07:18:55 -0700 (PDT)\r
+Received: from mail-wg0-f43.google.com (mail-wg0-f43.google.com\r
+ [74.125.82.43])       (using TLSv1 with cipher RC4-SHA (128/128 bits))        (No client\r
+ certificate requested)        by olra.theworths.org (Postfix) with ESMTPS id\r
+ C5D0D431FC2   for <notmuch@notmuchmail.org>; Wed, 29 Oct 2014 07:18:54 -0700\r
+ (PDT)\r
+Received: by mail-wg0-f43.google.com with SMTP id n12so2011533wgh.16\r
+       for <notmuch@notmuchmail.org>; Wed, 29 Oct 2014 07:18:52 -0700 (PDT)\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+       d=1e100.net; s=20130820;\r
+       h=x-gm-message-state:user-agent:from:to:subject:date:message-id;\r
+       bh=eFdJpK+PHC9yIKsWaVOHIpz53lLxvKqtW2u59rpOLsI=;\r
+       b=jUE4juB9JWsgk4o7MB1yyS5W1PODX7RaIv8LsRHpqbsJh17Ef0RryM7/Zh4ZV44yty\r
+       JvtKrWhrl8LlRRD99BxH/b+ZDOQOvk2HjaNKs0McoRRYv4rESfWR2iDNofP6fQjMcyWb\r
+       aVgsubrJaMZqRCFT4YzxUVfXv2cBTU4QHlwBWXYoW1vsjBIBDVTy/VABglU/YURBs4rG\r
+       s7qQYvSKeH7bf5YXgdMdrgJE5yd+OAji55oU8odU9c5TMAhISNplkrMHV53elykILov1\r
+       eH1HpUeOQ68fj6J5drRXuog4gszfKsGDy9FLIByl0JBuBNBdznKSpXIPCuYkjGWICWH5\r
+       Vb/g==\r
+X-Gm-Message-State:\r
+ ALoCoQnu0ql6zibSkdXBhLrsLWfumfYrmGqHt6HIyEjk5rV4qaD6jwBp2+qe+ha6TSUwok0gBMqR\r
+X-Received: by 10.194.100.98 with SMTP id ex2mr12556509wjb.48.1414592332068;\r
+       Wed, 29 Oct 2014 07:18:52 -0700 (PDT)\r
+Received: from disaster-area.hh.sledj.net\r
+       ([2a01:348:1a2:1:ea39:35ff:fe2c:a227])\r
+       by mx.google.com with ESMTPSA id dr5sm5701390wib.4.2014.10.29.07.18.50\r
+       for <notmuch@notmuchmail.org>\r
+       (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
+       Wed, 29 Oct 2014 07:18:51 -0700 (PDT)\r
+Received: from localhost (30000@localhost [local]);\r
+       by localhost (OpenSMTPD) with ESMTPA id 97656b76;\r
+       for <notmuch@notmuchmail.org>; Wed, 29 Oct 2014 14:18:49 +0000 (UTC)\r
+User-Agent: OpenSMTPD enqueuer (Demoostik)\r
+From: David Edmondson <dme@dme.org>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH v2] emacs: Improve the behaviour of the 'q' binding.\r
+Date: Wed, 29 Oct 2014 14:18:48 +0000\r
+Message-Id: <1414592329-15899-1-git-send-email-dme@dme.org>\r
+X-Mailer: git-send-email 2.1.1\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Wed, 29 Oct 2014 14:18:59 -0000\r
+\r
+\r
+emacs: Improve the behaviour of the 'q' binding.\r
+\r
+When a user hits 'q' in a notmuch buffer, kill the buffer only if\r
+there are no other windows currently showing it.\r
+\r
+v2:\r
+- Change the name of `notmuch-kill-this-buffer' to be clearer.\r
+\r
+\r
+David Edmondson (1):\r
+  emacs: Improve the behaviour of the 'q' binding.\r
+\r
+ emacs/notmuch-lib.el  | 13 +++++++++----\r
+ emacs/notmuch-show.el |  2 +-\r
+ emacs/notmuch-tree.el |  2 +-\r
+ emacs/notmuch.el      |  4 ++--\r
+ 4 files changed, 13 insertions(+), 8 deletions(-)\r
+\r
+-- \r
+2.1.1\r
+\r