emacs: Respect load-prefer-newer when loading `notmuch-init-file'

Before this change, `load-prefer-newer' was ignored.

Set NOERROR and MUST-SUFFIX arguments of `load' to t, and NOSUFFIX
argument to nil, to preserve the behaviour of the deleted `let' form.
This commit is contained in:
Sean Whitton 2020-05-31 23:17:04 -07:00 committed by David Bremner
parent b624b406ff
commit 3e6e219384

View file

@ -1148,8 +1148,6 @@ beginning of the line."
;; After provide to avoid loops if notmuch was require'd via notmuch-init-file.
(if init-file-user ; don't load init file if the -q option was used.
(let ((init-file (locate-file notmuch-init-file '("/")
(get-load-suffixes))))
(if init-file (load init-file nil t t))))
(load notmuch-init-file t t nil t))
;;; notmuch.el ends here