emacs: Remove non-interactive call of goto-line

As the emacs compiler warns, the goto-line function is only intended for
interactive use. Instead use the approach recommended in the goto-line
documentation to avoid this.
This commit is contained in:
Carl Worth 2010-10-27 17:58:19 -07:00
parent 4ddb5ab4dd
commit 75f703e7c2

View file

@ -575,9 +575,10 @@ This function advances the next thread when finished."
(if (and atbob
(not (string= notmuch-search-target-thread "found")))
(set 'never-found-target-thread t))))))
(if (and never-found-target-thread
(when (and never-found-target-thread
notmuch-search-target-line)
(goto-line notmuch-search-target-line)))))))
(goto-char (point-min))
(forward-line (1- notmuch-search-target-line))))))))
(defcustom notmuch-search-line-faces nil
"Tag/face mapping for line highlighting in notmuch-search.