diff options
| author | Richard M. Stallman | 1994-04-21 09:04:46 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-04-21 09:04:46 +0000 |
| commit | 3a3056e5eafb81c587eb72cb442dcd9c02e7dcba (patch) | |
| tree | 2dc7cacca9b8211bd96e67438fd7847110c4f596 /src/lread.c | |
| parent | f67de86ff670434940ee5f1fc00982181dc356d8 (diff) | |
| download | emacs-3a3056e5eafb81c587eb72cb442dcd9c02e7dcba.tar.gz emacs-3a3056e5eafb81c587eb72cb442dcd9c02e7dcba.zip | |
(init_lread): Maybe put build-time Lisp dirs on load-path.
(init_lread): Improve warning message.
Diffstat (limited to 'src/lread.c')
| -rw-r--r-- | src/lread.c | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/src/lread.c b/src/lread.c index d6fa228a674..c5185eebb00 100644 --- a/src/lread.c +++ b/src/lread.c | |||
| @@ -1870,12 +1870,20 @@ init_lread () | |||
| 1870 | if (!NILP (Vinstallation_directory)) | 1870 | if (!NILP (Vinstallation_directory)) |
| 1871 | { | 1871 | { |
| 1872 | /* Add to the path the lisp subdir of the | 1872 | /* Add to the path the lisp subdir of the |
| 1873 | installation dir. */ | 1873 | installation dir, if it exists. */ |
| 1874 | Lisp_Object tem; | 1874 | Lisp_Object tem, tem1; |
| 1875 | tem = Fexpand_file_name (build_string ("lisp"), | 1875 | tem = Fexpand_file_name (build_string ("lisp"), |
| 1876 | Vinstallation_directory); | 1876 | Vinstallation_directory); |
| 1877 | if (NILP (Fmember (tem, Vload_path))) | 1877 | tem1 = Ffile_exists_p (tem); |
| 1878 | Vload_path = nconc2 (Vload_path, Fcons (tem, Qnil)); | 1878 | if (!NILP (tem1)) |
| 1879 | { | ||
| 1880 | if (NILP (Fmember (tem, Vload_path))) | ||
| 1881 | Vload_path = nconc2 (Vload_path, Fcons (tem, Qnil)); | ||
| 1882 | } | ||
| 1883 | else | ||
| 1884 | /* That dir doesn't exist, so add the build-time | ||
| 1885 | Lisp dirs instead. */ | ||
| 1886 | Vload_path = nconc2 (Vload_path, dump_path); | ||
| 1879 | } | 1887 | } |
| 1880 | } | 1888 | } |
| 1881 | } | 1889 | } |
| @@ -1897,7 +1905,8 @@ init_lread () | |||
| 1897 | { | 1905 | { |
| 1898 | dirfile = Fdirectory_file_name (dirfile); | 1906 | dirfile = Fdirectory_file_name (dirfile); |
| 1899 | if (access (XSTRING (dirfile)->data, 0) < 0) | 1907 | if (access (XSTRING (dirfile)->data, 0) < 0) |
| 1900 | fprintf (stderr, "Warning: lisp library (%s) does not exist.\n", | 1908 | fprintf (stderr, |
| 1909 | "Warning: Lisp directory `%s' does not exist.\n", | ||
| 1901 | XSTRING (Fcar (path_tail))->data); | 1910 | XSTRING (Fcar (path_tail))->data); |
| 1902 | } | 1911 | } |
| 1903 | } | 1912 | } |