comparison src/lread.c @ 13601:0a091134e047

(Vsource_directory): New variable. (init_lread): Initialize it. (syms_of_lread): Set up Lisp var.
author Richard M. Stallman <rms@gnu.org>
date Mon, 20 Nov 1995 06:38:57 +0000
parents 4f5a9ce67782
children c387f71fe4b6
comparison
equal deleted inserted replaced
13600:4c8f65a17dc9 13601:0a091134e047
68 68
69 extern Lisp_Object Qevent_symbol_element_mask; 69 extern Lisp_Object Qevent_symbol_element_mask;
70 70
71 /* non-zero if inside `load' */ 71 /* non-zero if inside `load' */
72 int load_in_progress; 72 int load_in_progress;
73
74 /* Directory in which the sources were found. */
75 Lisp_Object Vsource_directory;
73 76
74 /* Search path for files to be loaded. */ 77 /* Search path for files to be loaded. */
75 Lisp_Object Vload_path; 78 Lisp_Object Vload_path;
76 79
77 /* This is the user-visible association list that maps features to 80 /* This is the user-visible association list that maps features to
2242 if (initialized) 2245 if (initialized)
2243 { 2246 {
2244 Lisp_Object dump_path; 2247 Lisp_Object dump_path;
2245 2248
2246 dump_path = decode_env_path (0, PATH_DUMPLOADSEARCH); 2249 dump_path = decode_env_path (0, PATH_DUMPLOADSEARCH);
2250
2251 Vsource_directory = Fexpand_file_name (build_string ("../"),
2252 Fcar (dump_path));
2253
2247 if (! NILP (Fequal (dump_path, Vload_path))) 2254 if (! NILP (Fequal (dump_path, Vload_path)))
2248 { 2255 {
2249 Vload_path = decode_env_path (0, normal); 2256 Vload_path = decode_env_path (0, normal);
2250 if (!NILP (Vinstallation_directory)) 2257 if (!NILP (Vinstallation_directory))
2251 { 2258 {
2405 DEFVAR_BOOL ("load-force-doc-strings", &load_force_doc_strings, 2412 DEFVAR_BOOL ("load-force-doc-strings", &load_force_doc_strings,
2406 "Non-nil means `load' should force-load all dynamic doc strings.\n\ 2413 "Non-nil means `load' should force-load all dynamic doc strings.\n\
2407 This is useful when the file being loaded is a temporary copy."); 2414 This is useful when the file being loaded is a temporary copy.");
2408 load_force_doc_strings = 0; 2415 load_force_doc_strings = 0;
2409 2416
2417 DEFVAR_LISP ("source-directory", &Vsource_directory,
2418 "Directory in which Emacs sources were found when Emacs was built.\n\
2419 You cannot count on them to still be there!");
2420 Vsource_directory = Qnil;
2410 load_descriptor_list = Qnil; 2421 load_descriptor_list = Qnil;
2411 staticpro (&load_descriptor_list); 2422 staticpro (&load_descriptor_list);
2412 2423
2413 Qcurrent_load_list = intern ("current-load-list"); 2424 Qcurrent_load_list = intern ("current-load-list");
2414 staticpro (&Qcurrent_load_list); 2425 staticpro (&Qcurrent_load_list);