From 8bc1b7d0b27176e1d9039aec40d6e6f4d50f34b7 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sun, 12 Feb 2023 14:20:48 +0200 Subject: [PATCH] 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) --- lisp/startup.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)) -- 2.39.2