comparison src/lread.c @ 7004:0c4d3481bb1b

(init_lread): Maybe put build-time Lisp dirs on load-path. (init_lread): Improve warning message.
author Richard M. Stallman <rms@gnu.org>
date Thu, 21 Apr 1994 09:04:46 +0000
parents 7c566d0e4b3d
children 6915bf781a38
comparison
equal deleted inserted replaced
7003:176bb79caecf 7004:0c4d3481bb1b
1868 { 1868 {
1869 Vload_path = decode_env_path (0, normal); 1869 Vload_path = decode_env_path (0, normal);
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 }
1882 else 1890 else
1883 Vload_path = decode_env_path (0, normal); 1891 Vload_path = decode_env_path (0, normal);
1895 dirfile = Fcar (path_tail); 1903 dirfile = Fcar (path_tail);
1896 if (XTYPE (dirfile) == Lisp_String) 1904 if (XTYPE (dirfile) == Lisp_String)
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 }
1904 } 1913 }
1905 1914