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 8D119429E25 for ; Tue, 10 Jan 2012 19:12:24 -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 7+Z4FoD8iZwv for ; Tue, 10 Jan 2012 19:12:24 -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 DCA95431FD0 for ; Tue, 10 Jan 2012 19:12:23 -0800 (PST) Received: from earth-doxen.imss.caltech.edu (localhost [127.0.0.1]) by earth-doxen-postvirus (Postfix) with ESMTP id 9867466E0153; Tue, 10 Jan 2012 19:12:23 -0800 (PST) X-Spam-Scanned: at Caltech-IMSS on earth-doxen by amavisd-new Received: from finestructure.net (gwave-171.ligo.caltech.edu [131.215.114.171]) (Authenticated sender: jrollins) by earth-doxen-submit (Postfix) with ESMTP id C7C8D66E014B; Tue, 10 Jan 2012 19:12:19 -0800 (PST) Received: by finestructure.net (Postfix, from userid 1000) id A95AA3E7; Tue, 10 Jan 2012 19:12:19 -0800 (PST) From: Jameson Graef Rollins To: David Bremner , David Edmondson , Notmuch Mail Subject: Re: another attempt to add delete functionality in emacs In-Reply-To: <87sjjns4wz.fsf@convex-new.cs.unb.ca> References: <1325975294-646-1-git-send-email-jrollins@finestructure.net> <87sjjns4wz.fsf@convex-new.cs.unb.ca> User-Agent: Notmuch/0.10.2+168~g34b8bac (http://notmuchmail.org) Emacs/23.3.1 (x86_64-pc-linux-gnu) Date: Tue, 10 Jan 2012 19:12:16 -0800 Message-ID: <87ehv7nd9r.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: Wed, 11 Jan 2012 03:12:24 -0000 --=-=-= On Tue, 10 Jan 2012 16:01:32 -0400, David Bremner wrote: > Just thinking out loud here, but it does seem a bit unfortunate to me > that it represents a pretty fundamental divergence between the CLI and > the emacs interface. Mind you, I guess one could make the same argument > about the libs versus the CLI. Lack of configuration information in the > library (possibly among other reasons) makes this not too nice to > support in the current library either. I think a consensus has formed that this functionality (automatically suppressing messages with certain tags from searches) is better left to the CLI, rather than implementing it just in the emacs UI. Unfortunately I'm not going to get to that any time soon. However, without that functionality, I really see no reason why we should be adding any built-in support for adding "deleted" tags in the emacs UI. Without the CLI change, "deleted" tags aren't handled any differently than any other tag, so why should the default emacs UI care. If users want to bind keys to special tagging operations, they can do so for themselves [0]. In fact, I'm now starting to think we don't need to add any support for special tagging operations (such as "deleted") even if we *do* have support for suppressing them in the CLI. Special tagging operations should only be supported if the tagged messages are somehow handled specially. If not, then again, we should just leave them up to the user [0]. All that said, I think I'll just resubmit the couple small changes to the emacs UI that I think we should consider adopting anyway. jamie. [0] (define-key notmuch-show-mode-map "d" (lambda () "Delete message" (interactive) (notmuch-show-add-tag "deleted") (notmuch-show-next-open-message))) --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQIcBAEBCAAGBQJPDP4RAAoJEO00zqvie6q8KV0P/AnwDvs2HckJTLAdZHQTFxSa FGFOD+iKE1hI+qQNvvCvaoiJpuUvixOxOWCCxhCct7ZntiKgloH59NB1hHBy7LOM kvaaLjBWptpNKtUi9vSPJAJrUMJuHRIVnc5xFDfsDJlkcE4C+5QrxCHFdUm1xLKd RQW4m2jgV1KOmsGQ4AgSu51bUKiD6YqobvphDECUj5laGBRiNF0e9d1DrwfHsoro dmUrmcX0wDaGRaMIjcOtk9dxrj2E16LdcR/ZDq5bBjN1oXUW5uQCOAlm9FACaYDI kp1cm+d/OPtrZ1yIOcaVxhtJM7Ap6R2UBYtCjRuyXfEfdpZIs7A+40M6bfhE0ROz F0rgjBFkxcpCdRHLtYh5zA0IGi/PabWdNCAMmueV+CaK1Xle9B/mnn0hCyjhFVug 2WGnYuRi5hp7UTzacTbjahOgavbQ/KFELMT2plBEeZQlRAIMWWplMbdXyC5g95Lt +1ztAdmsTmdHzZYI+uIHO9vvseE2PWB59/G1X0ngbpwMc9MSltgyz+6puqTMQahx 43N63Y/9NfX1FnrvhIDy/qX4M/X9mLWgDGgyitDCiCYb2d+yg/uRN9zXUUi+jLe1 lJ2Or9LKkFjdVeefyoHXp9idTSaEj/LTKem8ActxJ95Gp52qKNHKqmpGYKxgtcej oyS+JyesRWiKlI2pGysW =Bhsp -----END PGP SIGNATURE----- --=-=-=--