Re: [PATCH 1/2] add notmuch keybinding 'd'
authorJameson Graef Rollins <jrollins@finestructure.net>
Tue, 3 Jan 2012 21:35:23 +0000 (13:35 +1600)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:41:36 +0000 (09:41 -0800)
28/6778ee90c3970e99edf4a62330ac21aa0109f0 [new file with mode: 0644]

diff --git a/28/6778ee90c3970e99edf4a62330ac21aa0109f0 b/28/6778ee90c3970e99edf4a62330ac21aa0109f0
new file mode 100644 (file)
index 0000000..b03df13
--- /dev/null
@@ -0,0 +1,122 @@
+Return-Path: <jrollins@finestructure.net>\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 D1B2F429E48\r
+       for <notmuch@notmuchmail.org>; Tue,  3 Jan 2012 13:35:33 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -2.29\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-2.29 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_MED=-2.3, T_MIME_NO_TEXT=0.01] 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 GjvGPTlgkD4q for <notmuch@notmuchmail.org>;\r
+       Tue,  3 Jan 2012 13:35:31 -0800 (PST)\r
+Received: from outgoing-mail.its.caltech.edu (outgoing-mail.its.caltech.edu\r
+       [131.215.239.19])\r
+       by olra.theworths.org (Postfix) with ESMTP id A0065429E42\r
+       for <notmuch@notmuchmail.org>; Tue,  3 Jan 2012 13:35:31 -0800 (PST)\r
+Received: from earth-doxen.imss.caltech.edu (localhost [127.0.0.1])\r
+       by earth-doxen-postvirus (Postfix) with ESMTP id 3201566E0137;\r
+       Tue,  3 Jan 2012 13:35:31 -0800 (PST)\r
+X-Spam-Scanned: at Caltech-IMSS on earth-doxen by amavisd-new\r
+Received: from finestructure.net (DHCP-123-180.caltech.edu [131.215.123.180])\r
+       (Authenticated sender: jrollins)\r
+       by earth-doxen-submit (Postfix) with ESMTP id 211F166E00CF;\r
+       Tue,  3 Jan 2012 13:35:26 -0800 (PST)\r
+Received: by finestructure.net (Postfix, from userid 1000)\r
+       id C606594C; Tue,  3 Jan 2012 13:35:25 -0800 (PST)\r
+From: Jameson Graef Rollins <jrollins@finestructure.net>\r
+To: Jani Nikula <jani@nikula.org>, David Edmondson <dme@dme.org>, Antoine\r
+       =?utf-8?Q?Beaupr=C3=A9?= <anarcat@koumbit.org>, notmuch@notmuchmail.org\r
+Subject: Re: [PATCH 1/2] add notmuch keybinding 'd'\r
+In-Reply-To: <8762gsy2xp.fsf@nikula.org>\r
+References: <1266408746-28549-1-git-send-email-Sebastian@SSpaeth.de>\r
+       <1310841600-28281-1-git-send-email-anarcat@koumbit.org>\r
+       <cunvcos6dhp.fsf@hotblack-desiato.hh.sledj.net>\r
+       <8762gsy2xp.fsf@nikula.org>\r
+User-Agent: Notmuch/0.10.2+138~g0b4049e (http://notmuchmail.org) Emacs/23.3.1\r
+       (x86_64-pc-linux-gnu)\r
+Date: Tue, 03 Jan 2012 13:35:23 -0800\r
+Message-ID: <87hb0c8o6c.fsf@servo.finestructure.net>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; boundary="=-=-=";\r
+       micalg=pgp-sha256; protocol="application/pgp-signature"\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, 03 Jan 2012 21:35:34 -0000\r
+\r
+--=-=-=\r
+\r
+On Tue, 03 Jan 2012 21:57:22 +0200, Jani Nikula <jani@nikula.org> wrote:\r
+> The code's there, and talk is cheap... but I'd rather like to see a\r
+> solution that would make it easy for users to add arbitrary tagging\r
+> operations to key bindings, instead of a fixed binding for "deleted".\r
+\r
+It's already easy for users to add arbitrary key bindings.  It's emacs,\r
+and the whole point of which is that it's infinitely extensible [0]:\r
+\r
+(define-key notmuch-show-mode-map "d"\r
+  (lambda ()\r
+    "Delete current message and advance to next message."\r
+    (interactive)\r
+    (notmuch-show-add-tag "delete")\r
+    (notmuch-show-next-open-message-or-pop)))\r
+\r
+There really can't be an "easier" solution to add a key binding other\r
+than just adding the above to your .emacs, and I really don't think it\r
+would be worth it to try to make one.\r
+\r
+The fact that it's already so easy to customize the key bindings is why\r
+I've been reluctant (or even against) getting into protracted\r
+discussions about what the default key bindings should be.  Everyone is\r
+going to want a different behavior, and since it's easy enough to\r
+customize, just let users define what they want.\r
+\r
+> I wouldn't use it either, and I don't use "deleted" tag in the first\r
+> place. And even if I used it, I'd still like to keep the distinction\r
+> between "deleted after reading" and "deleted unread", which this patch\r
+> loses by removing the "unread" tag.\r
+\r
+Beyond what I just said about letting everyone customize things\r
+themselves, I agree that I don't personally want other tags added or\r
+removed when I "delete" a message.  The key binding above is actually\r
+the one I use.\r
+\r
+jamie.\r
+\r
+[0] http://notmuchmail.org/emacstips/#index6h2\r
+\r
+--=-=-=\r
+Content-Type: application/pgp-signature\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v1.4.11 (GNU/Linux)\r
+\r
+iQIcBAEBCAAGBQJPA3SbAAoJEO00zqvie6q8TZ8P/iuWQnLawkrz7w1FQKKNKduz\r
+O3iLMyZdO1BRQJt+98ZHTc+Ss5TWL4VVnR6De9JWMmDLzp7PzbZZl/VYCuv7/SeP\r
+wmNtOs87UP5dTt2pP6uIXZ55P3Q2e6LKI9I2A7Aj1VjUj0CuHdKRWxBFW+cWFlsp\r
+svwm27krpwUsq/RnZI2ydSFA2vqjMlC500v9/SiOtM6PZWsMYITJRFPa+hHPGKDQ\r
+bej0ZiKVjWdOeHRq8AmqggP+pS0Bh/AGxMaFRkYLvsXa3dKxEkAUAa8uG0MC+T4z\r
+83wqmvWKaIaPJXs4DrD/SwZXlsUJEr8MF5HkpgQD721LPHN2ukt8k3cB3hKccJ7k\r
+HjpgyKjY73y9EsHcR0ZpfcS/uPLMbUSYjBNjpE/XVglUIPwKGdYFMrkqghEf3CJn\r
+i4JDzRZUpVieE2UmBk9s/T7S8kTxAobwQSJae5GbQJXQP6H+ZmpJcgG58H+CfEHT\r
+Ym3QaFROrJvBMozWf2mGk3T65d/EGcyty7XBpF+chu7Jr6VsqbCvkGeNg6DDrNaV\r
+QlyAGvRgq1pr11IJTQAkUSHeTdzZph+UEudGVw4gU0BYwQnjcjydP1gq02ILLHYL\r
+U/jLVrohyNspzQK23y3u7UT/SehzPLR9JdTLFweossMVl21ihkmb8h3qIHoriV37\r
+CGmydU+8bZVX0DewDii8\r
+=3Lw7\r
+-----END PGP SIGNATURE-----\r
+--=-=-=--\r