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
1521a8fa
Commit
1521a8fa
authored
Nov 20, 1995
by
Richard M. Stallman
Browse files
(Vsource_directory): New variable.
(init_lread): Initialize it. (syms_of_lread): Set up Lisp var.
parent
19d0c48a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
src/lread.c
src/lread.c
+11
-0
No files found.
src/lread.c
View file @
1521a8fa
...
...
@@ -71,6 +71,9 @@ extern Lisp_Object Qevent_symbol_element_mask;
/* non-zero if inside `load' */
int load_in_progress;
/* Directory in which the sources were found. */
Lisp_Object Vsource_directory;
/* Search path for files to be loaded. */
Lisp_Object Vload_path;
...
...
@@ -2244,6 +2247,10 @@ init_lread ()
Lisp_Object dump_path;
dump_path = decode_env_path (0, PATH_DUMPLOADSEARCH);
Vsource_directory = Fexpand_file_name (build_string ("../"),
Fcar (dump_path));
if (! NILP (Fequal (dump_path, Vload_path)))
{
Vload_path = decode_env_path (0, normal);
...
...
@@ -2407,6 +2414,10 @@ The default is nil, which means use the function `read'.");
This is useful when the file being loaded is a temporary copy.");
load_force_doc_strings = 0;
DEFVAR_LISP ("source-directory", &Vsource_directory,
"Directory in which Emacs sources were found when Emacs was built.\n\
You cannot count on them to still be there!");
Vsource_directory = Qnil;
load_descriptor_list = Qnil;
staticpro (&load_descriptor_list);
...
...
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