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