--- /dev/null
+Return-Path: <amdragon@mit.edu>\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 29DE5429E33\r
+ for <notmuch@notmuchmail.org>; Fri, 13 Jul 2012 20:47:54 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+ tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 gdqDqO7rL1Jq for <notmuch@notmuchmail.org>;\r
+ Fri, 13 Jul 2012 20:47:53 -0700 (PDT)\r
+Received: from dmz-mailsec-scanner-2.mit.edu (DMZ-MAILSEC-SCANNER-2.MIT.EDU\r
+ [18.9.25.13])\r
+ by olra.theworths.org (Postfix) with ESMTP id 948D1431FC3\r
+ for <notmuch@notmuchmail.org>; Fri, 13 Jul 2012 20:47:53 -0700 (PDT)\r
+X-AuditID: 1209190d-b7fd56d000000933-f2-5000ebe98422\r
+Received: from mailhub-auth-4.mit.edu ( [18.7.62.39])\r
+ by dmz-mailsec-scanner-2.mit.edu (Symantec Messaging Gateway) with SMTP\r
+ id F4.99.02355.9EBE0005; Fri, 13 Jul 2012 23:47:53 -0400 (EDT)\r
+Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103])\r
+ by mailhub-auth-4.mit.edu (8.13.8/8.9.2) with ESMTP id q6E3lqWH027226; \r
+ Fri, 13 Jul 2012 23:47:52 -0400\r
+Received: from drake.dyndns.org\r
+ (209-6-116-242.c3-0.arl-ubr1.sbo-arl.ma.cable.rcn.com\r
+ [209.6.116.242]) (authenticated bits=0)\r
+ (User authenticated as amdragon@ATHENA.MIT.EDU)\r
+ by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id q6E3lpNc022354\r
+ (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);\r
+ Fri, 13 Jul 2012 23:47:52 -0400 (EDT)\r
+Received: from amthrax by drake.dyndns.org with local (Exim 4.77)\r
+ (envelope-from <amdragon@mit.edu>)\r
+ id 1SptKh-0000ow-FK; Fri, 13 Jul 2012 23:47:51 -0400\r
+From: Austin Clements <amdragon@MIT.EDU>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH] emacs: Make moving to the previous message move to the\r
+ previous boundary\r
+Date: Fri, 13 Jul 2012 23:47:48 -0400\r
+Message-Id: <1342237668-2489-1-git-send-email-amdragon@mit.edu>\r
+X-Mailer: git-send-email 1.7.10\r
+X-Brightmail-Tracker:\r
+ H4sIAAAAAAAAA+NgFlrMIsWRmVeSWpSXmKPExsUixG6nrvvyNUOAwduVXBar5/JYXL85k9mB\r
+ yWPnrLvsHs9W3WIOYIrisklJzcksSy3St0vgyjiwWbbgHX/Fx9/bWBsYJ/B2MXJwSAiYSMye\r
+ pNDFyAlkiklcuLeerYuRi0NIYB+jxPz9DYwQzgZGiTU/m6Ayj5gkts/dzQzhzGWUmL12DTtI\r
+ P5uAhsS2/csZQWwRAWmJnXdns4LYzAKOEp/3L2IDsYUFIiXe/G5hBrFZBFQlZt5bBmbzCthL\r
+ 7Ji8jgniDnmJp/f72CYw8i5gZFjFKJuSW6Wbm5iZU5yarFucnJiXl1qka6SXm1mil5pSuokR\r
+ FBackrw7GN8dVDrEKMDBqMTDm+rPECDEmlhWXJl7iFGSg0lJlJf3FVCILyk/pTIjsTgjvqg0\r
+ J7X4EKMEB7OSCK95G1CONyWxsiq1KB8mJc3BoiTOeyXlpr+QQHpiSWp2ampBahFMVoaDQ0mC\r
+ lxkY/kKCRanpqRVpmTklCGkmDk6Q4TxAw91AaniLCxJzizPTIfKnGBWlxHkLQRICIImM0jy4\r
+ XljcvmIUB3pFmDcDpIoHGPNw3a+ABjMBDZ71858/0OCSRISUVANjb7KiKM9RR8UHvGHtSa4b\r
+ VD63FyWyPkyffHhl12G/sCecN6y+Vhk98dPln1AVHe21ykf8+i6B14u8Ex6qOrZ8kpr0SeW3\r
+ ae2qJ9tzRB682fyzgOnFH4YVr5n+b+qe2sZ/1d3vXr+/tKBP+Xrzl+uXPy/grpR+wXpXwn7f\r
+ 5G4vkdD7GeVu6RJKLMUZiYZazEXFiQDDujJptgIAAA==\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: Sat, 14 Jul 2012 03:47:54 -0000\r
+\r
+Previously, notmuch-show-previous-message would move to the beginning\r
+of the message before the message containing point. This patch makes\r
+it instead move to the previous message *boundary*. That is, if point\r
+isn't already at the beginning of the message, it moves to the\r
+beginning of the current message. This is consistent with\r
+notmuch-show-next-message, which can be thought of as moving to the\r
+next message boundary. Several people have expressed a preference for\r
+this.\r
+---\r
+\r
+This patch accompanies the series in [0] (though they're independent\r
+and can be applied in either order). This makes the behavior of 'p'\r
+and 'P' in show-mode conceptually similar to the new behavior of 'p'\r
+in search-mode.\r
+\r
+[0] 1342140319-19859-1-git-send-email-amdragon@mit.edu\r
+\r
+ emacs/notmuch-show.el | 10 +++++++---\r
+ 1 file changed, 7 insertions(+), 3 deletions(-)\r
+\r
+diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el\r
+index 6335d45..02e319f 100644\r
+--- a/emacs/notmuch-show.el\r
++++ b/emacs/notmuch-show.el\r
+@@ -1525,9 +1525,11 @@ thread, navigate to the next thread in the parent search buffer."\r
+ (goto-char (point-max)))))\r
+ \r
+ (defun notmuch-show-previous-message ()\r
+- "Show the previous message."\r
++ "Show the previous message or the start of the current message."\r
+ (interactive)\r
+- (notmuch-show-goto-message-previous)\r
++ (if (= (point) (notmuch-show-message-top))\r
++ (notmuch-show-goto-message-previous)\r
++ (notmuch-show-move-to-message-top))\r
+ (notmuch-show-mark-read)\r
+ (notmuch-show-message-adjust))\r
+ \r
+@@ -1587,7 +1589,9 @@ to show, nil otherwise."\r
+ (defun notmuch-show-previous-open-message ()\r
+ "Show the previous open message."\r
+ (interactive)\r
+- (while (and (notmuch-show-goto-message-previous)\r
++ (while (and (if (= (point) (notmuch-show-message-top))\r
++ (notmuch-show-goto-message-previous)\r
++ (notmuch-show-move-to-message-top))\r
+ (not (notmuch-show-message-visible-p))))\r
+ (notmuch-show-mark-read)\r
+ (notmuch-show-message-adjust))\r
+-- \r
+1.7.10\r
+\r