aboutsummaryrefslogtreecommitdiffhomepage
path: root/emacs
diff options
context:
space:
mode:
authorGravatar David Edmondson <dme@dme.org>2012-01-31 08:01:54 +0000
committerGravatar David Bremner <bremner@debian.org>2012-04-29 15:54:13 -0300
commitaf59d61a4c295a42038889a333fb39a8c05b6a91 (patch)
treeb39ea36401703967d3b8d2dc2ea23a03b398de39 /emacs
parent94250ac2c59c899812ebc64a6c437c74ff08af30 (diff)
emacs: Don't move to the next thread unless the cursor is at the end of the buffer.
When using the spacebar to scroll through a thread, hitting 'space' when the bottom of the last message is visible should take the cursor to the end of the buffer rather than immediately archiving the thread and moving to the next thread.
Diffstat (limited to 'emacs')
-rw-r--r--emacs/notmuch-show.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el
index 2c0b767f..e0dce210 100644
--- a/emacs/notmuch-show.el
+++ b/emacs/notmuch-show.el
@@ -1444,6 +1444,11 @@ current window), advance to the next open message."
;; This is not the last message - move to the next visible one.
(notmuch-show-next-open-message))
+ ((not (= (point) (point-max)))
+ ;; This is the last message, but the cursor is not at the end of
+ ;; the buffer. Move it there.
+ (goto-char (point-max)))
+
(t
;; This is the last message - change the return value
(setq ret t)))