mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 09:24:54 +01:00
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.
This commit is contained in:
parent
94250ac2c5
commit
af59d61a4c
1 changed files with 5 additions and 0 deletions
|
@ -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)))
|
||||
|
|
Loading…
Reference in a new issue