Re: [RFC][PATCH v1] emacs: Improve the behaviour of the 'q' binding.
authorJani Nikula <jani@nikula.org>
Tue, 28 Oct 2014 17:08:53 +0000 (19:08 +0200)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 18:05:44 +0000 (10:05 -0800)
65/e4d9842c56eb2da8d9b75c5f9c3ff0648c4bd2 [new file with mode: 0644]

diff --git a/65/e4d9842c56eb2da8d9b75c5f9c3ff0648c4bd2 b/65/e4d9842c56eb2da8d9b75c5f9c3ff0648c4bd2
new file mode 100644 (file)
index 0000000..04b3ac8
--- /dev/null
@@ -0,0 +1,116 @@
+Return-Path: <jani@nikula.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 1BD9B431FB6\r
+       for <notmuch@notmuchmail.org>; Tue, 28 Oct 2014 10:09:06 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 9flM-YsPu7DS for <notmuch@notmuchmail.org>;\r
+       Tue, 28 Oct 2014 10:08:58 -0700 (PDT)\r
+Received: from mail-wg0-f47.google.com (mail-wg0-f47.google.com\r
+ [74.125.82.47])       (using TLSv1 with cipher RC4-SHA (128/128 bits))        (No client\r
+ certificate requested)        by olra.theworths.org (Postfix) with ESMTPS id\r
+ 3B0F7431FAE   for <notmuch@notmuchmail.org>; Tue, 28 Oct 2014 10:08:58 -0700\r
+ (PDT)\r
+Received: by mail-wg0-f47.google.com with SMTP id a1so1383157wgh.6\r
+       for <notmuch@notmuchmail.org>; Tue, 28 Oct 2014 10:08:55 -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:from:to:subject:in-reply-to:references\r
+       :user-agent:date:message-id:mime-version:content-type;\r
+       bh=ggwORSy8GlNEyGPevIRvfinFNScvO5GPo8s3tywb/XU=;\r
+       b=eIUTb+gJvJCvhOUtZf7VVWOZLCdFmU4UgPTrUsP2akCChIC1Yx+N7TFFGi0rC+K42a\r
+       C2uUWus48jfU6PcX3fXcuFIWx6ytREXXbtYgomla92VMIxDTA2kkOTwC6TC8AS1kz9Rl\r
+       WWQajqmsVNQZx17eCEMgP2kY4qFiy6j4AnenDyN6bxteD3X4QreugDHQzQVQAm4O3Fec\r
+       UNpnQThABMWlW2rw8fScwC6KFNO65A2ti1X+Ss6o3xy8O4Inlqg7HEN+gaEArnQ2gn70\r
+       dEBP2r8/66c8R/vThKLNmTKe1r+J2yP0/XxZ2HYh9kpxs1fwobeCq/no767Xxs2wS9Da\r
+       VOyA==\r
+X-Gm-Message-State:\r
+ ALoCoQnLG2zpI4IASndKU2KGwH51Efc5/EQETDSnsdldqKDSeTgnc9a8MEikDWKYGRolYfpnSiOq\r
+X-Received: by 10.194.205.132 with SMTP id lg4mr5800017wjc.84.1414516135664;\r
+       Tue, 28 Oct 2014 10:08:55 -0700 (PDT)\r
+Received: from localhost (dsl-hkibrasgw2-58c36d-48.dhcp.inet.fi.\r
+       [88.195.109.48])\r
+       by mx.google.com with ESMTPSA id b6sm2834355wiy.22.2014.10.28.10.08.54\r
+       for <multiple recipients>\r
+       (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
+       Tue, 28 Oct 2014 10:08:54 -0700 (PDT)\r
+From: Jani Nikula <jani@nikula.org>\r
+To: David Edmondson <dme@dme.org>, notmuch@notmuchmail.org\r
+Subject: Re: [RFC][PATCH v1] emacs: Improve the behaviour of the 'q' binding.\r
+In-Reply-To: <cunmw8wql0f.fsf@gargravarr.hh.sledj.net>\r
+References: <cunmw8wql0f.fsf@gargravarr.hh.sledj.net>\r
+User-Agent: Notmuch/0.18.2+148~g0318cd3 (http://notmuchmail.org) Emacs/24.3.1\r
+       (x86_64-pc-linux-gnu)\r
+Date: Tue, 28 Oct 2014 19:08:53 +0200\r
+Message-ID: <87sii8nmu2.fsf@nikula.org>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\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: Tue, 28 Oct 2014 17:09:06 -0000\r
+\r
+On Thu, 16 Oct 2014, David Edmondson <dme@dme.org> wrote:\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
+>\r
+> This arose from a discussion in #notmuch. Please try it and see if you\r
+> like the new behaviour.\r
+\r
+Yes, very much, thank you. In most cases I want 'q' to only affect the\r
+current window. I like to be able to 'C-x 2' a search view, and have the\r
+two windows work more or less independently.\r
+\r
+BR,\r
+Jani.\r
+\r
+\r
+>\r
+>  emacs/notmuch-lib.el | 8 ++++++--\r
+>  1 file changed, 6 insertions(+), 2 deletions(-)\r
+>\r
+> diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el\r
+> index 1e166c6..bc6f119 100644\r
+> --- a/emacs/notmuch-lib.el\r
+> +++ b/emacs/notmuch-lib.el\r
+> @@ -240,9 +240,13 @@ depending on the value of `notmuch-poll-script'."\r
+>      (call-process notmuch-command nil nil nil "new")))\r
+>  \r
+>  (defun notmuch-kill-this-buffer ()\r
+> -  "Kill the current buffer."\r
+> +  "Undisplay the current buffer."\r
+>    (interactive)\r
+> -  (kill-buffer (current-buffer)))\r
+> +  ;; If more than one window is showing this buffer, bury rather than\r
+> +  ;; kill it.\r
+> +  (if (> (length (get-buffer-window-list nil nil t)) 1)\r
+> +      (bury-buffer)\r
+> +    (kill-buffer)))\r
+>  \r
+>  (defun notmuch-documentation-first-line (symbol)\r
+>    "Return the first line of the documentation string for SYMBOL."\r
+> -- \r
+> 2.1.1\r
+>\r
+> _______________________________________________\r
+> notmuch mailing list\r
+> notmuch@notmuchmail.org\r
+> http://notmuchmail.org/mailman/listinfo/notmuch\r