Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
3a3056e5
Commit
3a3056e5
authored
Apr 21, 1994
by
Richard M. Stallman
Browse files
(init_lread): Maybe put build-time Lisp dirs on load-path.
(init_lread): Improve warning message.
parent
f67de86f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
src/lread.c
src/lread.c
+14
-5
No files found.
src/lread.c
View file @
3a3056e5
...
...
@@ -1870,12 +1870,20 @@ init_lread ()
if (!NILP (Vinstallation_directory))
{
/* Add to the path the lisp subdir of the
installation dir. */
Lisp_Object
tem
;
installation dir
, if it exists
. */
Lisp_Object tem
, tem1
;
tem = Fexpand_file_name (build_string ("lisp"),
Vinstallation_directory);
if
(
NILP
(
Fmember
(
tem
,
Vload_path
)))
Vload_path
=
nconc2
(
Vload_path
,
Fcons
(
tem
,
Qnil
));
tem1 = Ffile_exists_p (tem);
if (!NILP (tem1))
{
if (NILP (Fmember (tem, Vload_path)))
Vload_path = nconc2 (Vload_path, Fcons (tem, Qnil));
}
else
/* That dir doesn't exist, so add the build-time
Lisp dirs instead. */
Vload_path = nconc2 (Vload_path, dump_path);
}
}
}
...
...
@@ -1897,7 +1905,8 @@ init_lread ()
{
dirfile = Fdirectory_file_name (dirfile);
if (access (XSTRING (dirfile)->data, 0) < 0)
fprintf
(
stderr
,
"Warning: lisp library (%s) does not exist.
\n
"
,
fprintf (stderr,
"Warning: Lisp directory `%s' does not exist.\n",
XSTRING (Fcar (path_tail))->data);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment