mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-26 07:33:47 +00:00
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
@ -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…
Reference in New Issue
Block a user