Commit a08ce41e authored by Noam Postavsky's avatar Noam Postavsky

Don't --load directories

* lisp/startup.el (command-line-1): Only pass expanded FILENAME argument
of --load when it refers to a normal file, since `load' doesn't handle
directories (Bug #16406).
parent 55dde6c1
......@@ -2393,7 +2393,7 @@ nil default-directory" name)
;; Take file from default dir if it exists there;
;; otherwise let `load' search for it.
(file-ex (expand-file-name file)))
(when (file-exists-p file-ex)
(when (file-regular-p file-ex)
(setq file file-ex))
(load file nil t)))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment