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)
This commit is contained in:
parent
3d17aee13d
commit
8bc1b7d0b2
1 changed files with 2 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Reference in a new issue