]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch.el
notmuch.el: Don't use end-of-buffer which is inappropriate from programs
[notmuch] / notmuch.el
index 0e4c78136b0cd518c22303763c3d864e7ffd9a7f..cd3780fae8acadd59a3a52514ac52817e16918bb 100644 (file)
@@ -772,10 +772,10 @@ thread from that buffer can be show when done with this one)."
       (goto-char (window-start))
     (scroll-down nil)))
 
-(defun notmuch-search-goto-last-thread (&optional arg)
+(defun notmuch-search-goto-last-thread ()
   "Move point to the last thread in the buffer."
-  (interactive "^P")
-  (end-of-buffer arg)
+  (interactive)
+  (goto-char (point-max))
   (forward-line -1))
 
 ;;;###autoload