From: Eli Zaretskii Date: Sun, 12 Feb 2023 12:20:48 +0000 (+0200) Subject: Avoid warning about 'load-path' in non-interactive sessions X-Git-Tag: emacs-29.0.90~445 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8bc1b7d0b27;p=emacs.git Avoid warning about 'load-path' in non-interactive sessions * lisp/startup.el (command-line): Emit the warning about 'user-emacs-directory' in 'load-path' only in interactive sessions. (Bug#61014) --- diff --git a/lisp/startup.el b/lisp/startup.el index bb6250d3968..e5ec15eebea 100644 --- a/lisp/startup.el +++ b/lisp/startup.el @@ -1596,7 +1596,8 @@ please check its value") ;; or EMACSLOADPATH, so we basically always have to check. (let (warned) (dolist (dir load-path) - (and (not warned) + (and (not noninteractive) + (not warned) (stringp dir) (string-equal (file-name-as-directory (expand-file-name dir)) (expand-file-name user-emacs-directory))