Dangerous space bar key (was: Preventing the user shooting themself in the foot)
authorMatthieu Lemerre <racin@free.fr>
Mon, 4 Jul 2011 21:36:35 +0000 (23:36 +0200)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:38:58 +0000 (09:38 -0800)
80/6d01c819624ff61ff974a44460cebb131778ed [new file with mode: 0644]

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