notmuch.el: Don't use end-of-buffer which is inappropriate from programs
authorCarl Worth <cworth@cworth.org>
Fri, 20 Nov 2009 23:58:16 +0000 (00:58 +0100)
committerCarl Worth <cworth@cworth.org>
Fri, 20 Nov 2009 23:58:16 +0000 (00:58 +0100)
The documentation is quite clear about this case.

With this, we can now byte compile without warnings.

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