Try to simplify the initialization of Vload_path
authorGlenn Morris <rgm@gnu.org>
Sat, 7 Jul 2012 18:06:32 +0000 (11:06 -0700)
committerGlenn Morris <rgm@gnu.org>
Sat, 7 Jul 2012 18:06:32 +0000 (11:06 -0700)
commit929e7845741487751d88cc43c180a540f3996210
tree4c7ce3ec3f7d03d9122936a14ad8e8c809b7eb29
parent58dd0aa4c5a1e67d5b78a14e98b9da1a1433fbb4
Try to simplify the initialization of Vload_path

* src/lread.c (load_path_check): New function, split from init_lread.
(init_lread): Reorganize.  Motivation:
If EMACSLOADPATH is set, check/warn about that rather than the
defaults, which we are not going to use.  Hence we can remove
the turn_off_warning and WINDOWSNT || HAVE_NS tests.
Don't warn if site-lisp directories are missing.
If not installed, start from a blank load-path, since
PATH_LOADSEARCH refers to the eventual installation directories.
src/ChangeLog
src/lread.c