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 6C1CF431FD0 for ; Mon, 4 Jul 2011 14:36:47 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0.001 X-Spam-Level: X-Spam-Status: No, score=0.001 tagged_above=-999 required=5 tests=[FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001] 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 iTINf-8GeFTW for ; Mon, 4 Jul 2011 14:36:46 -0700 (PDT) Received: from smtp3-g21.free.fr (smtp3-g21.free.fr [212.27.42.3]) by olra.theworths.org (Postfix) with ESMTP id BC669431FB6 for ; Mon, 4 Jul 2011 14:36:45 -0700 (PDT) Received: from matthieu-netbook (unknown [82.239.207.166]) by smtp3-g21.free.fr (Postfix) with ESMTP id E7864A60E4; Mon, 4 Jul 2011 23:36:36 +0200 (CEST) From: Matthieu Lemerre To: Robin Green , Notmuch Mail Subject: Dangerous space bar key (was: Preventing the user shooting themself in the foot) In-Reply-To: <86iproe86u.fsf@greenrd.plus.com> References: <86iproe86u.fsf@greenrd.plus.com> User-Agent: Notmuch/0.6+mwhudson+1700~natty1 (http://notmuchmail.org) Emacs/23.2.1 (i686-pc-linux-gnu) Date: Mon, 04 Jul 2011 23:36:35 +0200 Message-ID: <877h7xafto.fsf@free.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: Mon, 04 Jul 2011 21:36:47 -0000 On Wed, 29 Jun 2011 20:42:01 +0100, Robin Green wrote: > It's really dangerous to use the 'a' key in notmuch-mode in an inbox > thread which has multiple unread replies! Yes, the other unread replies > will still be tagged unread, but the user might not immediately be aware > of them. It would be really useful to have an optional warning ("More > unread messages in this thread, are you sure?") for this situation! I take advantage of this thread to tell about another dangerous situation I've found related to the use of the space key in show mode. I like to use the space (and sometimes the backspace key) to read threads back and forth, but sometimes I might read stuff to quickly and archive a thread without wanting it. It is then complex to find it back (especially if the thread contained a single message and I hit space before actually reading the message, so I can't find it again). As a workaround, I have changed the space key function "notmuch-show-advance-and-archive" to not archive the thread if we are at the end of the thread, but to just do nothing. Thus I have to expicitely archive the thread when I have finished reading it, which I find much safer. I think the "and-archive" part of the space bar key should be at least configurable. The patch is pretty simple but I can provide it if needed. Note: The n and p keys are not good replacement for space/backspace. First, because they do not remove the 'read' tag. Second, when you are in the middle of a message, the p key go to the previous message instead of going on top of the current one. (Actually, the behaviour of n is fine, only p is annoying me). I think this is inconsistent with what others mode do (e.g. C-M-u in programming modes, or C-c C-p in org-mode), and the p key when in a message should go to the beginning of the current message. Matthieu