From: Carl Worth Date: Fri, 20 Nov 2009 23:58:16 +0000 (+0100) Subject: notmuch.el: Don't use end-of-buffer which is inappropriate from programs X-Git-Tag: 0.1~395 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=882a58de5fdfb8500ef3d75189299dadba2c96d0 notmuch.el: Don't use end-of-buffer which is inappropriate from programs The documentation is quite clear about this case. With this, we can now byte compile without warnings. --- diff --git a/notmuch.el b/notmuch.el index 0e4c7813..cd3780fa 100644 --- a/notmuch.el +++ b/notmuch.el @@ -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