mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +01:00
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:
parent
4ddb5ab4dd
commit
75f703e7c2
1 changed files with 3 additions and 2 deletions
|
@ -575,9 +575,10 @@ This function advances the next thread when finished."
|
||||||
(if (and atbob
|
(if (and atbob
|
||||||
(not (string= notmuch-search-target-thread "found")))
|
(not (string= notmuch-search-target-thread "found")))
|
||||||
(set 'never-found-target-thread t))))))
|
(set 'never-found-target-thread t))))))
|
||||||
(if (and never-found-target-thread
|
(when (and never-found-target-thread
|
||||||
notmuch-search-target-line)
|
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
|
(defcustom notmuch-search-line-faces nil
|
||||||
"Tag/face mapping for line highlighting in notmuch-search.
|
"Tag/face mapping for line highlighting in notmuch-search.
|
||||||
|
|
Loading…
Reference in a new issue