X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=emacs%2Fnotmuch-show.el;h=e0dce21070f6a8714484d3a7b40214b42bcbe9ea;hp=2c0b767f6964f39d93f04006126ba07823a16fca;hb=af59d61a4c295a42038889a333fb39a8c05b6a91;hpb=94250ac2c59c899812ebc64a6c437c74ff08af30 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)))