aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Blandy1991-12-04 05:48:56 +0000
committerJim Blandy1991-12-04 05:48:56 +0000
commit9453ea7be3e2bdd7a3ac8835f35c9f3463efd21d (patch)
treea90343e93dadbba74e3e5ef27724aeb86611384d
parent63007de27b78d74d2608fb00ddd71b9514317b85 (diff)
downloademacs-9453ea7be3e2bdd7a3ac8835f35c9f3463efd21d.tar.gz
emacs-9453ea7be3e2bdd7a3ac8835f35c9f3463efd21d.zip
*** empty log message ***
-rw-r--r--src/callproc.c28
-rw-r--r--src/lisp.h10
2 files changed, 27 insertions, 11 deletions
diff --git a/src/callproc.c b/src/callproc.c
index fb25a647188..11b5c7c4089 100644
--- a/src/callproc.c
+++ b/src/callproc.c
@@ -57,7 +57,7 @@ extern char **environ;
57 57
58#define max(a, b) ((a) > (b) ? (a) : (b)) 58#define max(a, b) ((a) > (b) ? (a) : (b))
59 59
60Lisp_Object Vexec_path, Vexec_directory; 60Lisp_Object Vexec_path, Vexec_directory, Vdata_directory;
61 61
62Lisp_Object Vshell_file_name; 62Lisp_Object Vshell_file_name;
63 63
@@ -448,7 +448,9 @@ init_callproc ()
448{ 448{
449 register char * sh; 449 register char * sh;
450 register char **envp; 450 register char **envp;
451 Lisp_Object execdir; 451 Lisp_Object tempdir;
452
453 Vdata_directory = Ffile_name_as_directory (build_string (PATH_DATA));
452 454
453 /* Turn PATH_EXEC into a path. `==' is just a string which we know 455 /* Turn PATH_EXEC into a path. `==' is just a string which we know
454 will not be the name of an environment variable. */ 456 will not be the name of an environment variable. */
@@ -456,14 +458,22 @@ init_callproc ()
456 Vexec_directory = Ffile_name_as_directory (Fcar (Vexec_path)); 458 Vexec_directory = Ffile_name_as_directory (Fcar (Vexec_path));
457 Vexec_path = nconc2 (decode_env_path ("PATH", ""), Vexec_path); 459 Vexec_path = nconc2 (decode_env_path ("PATH", ""), Vexec_path);
458 460
459 execdir = Fdirectory_file_name (Vexec_directory); 461 tempdir = Fdirectory_file_name (Vexec_directory);
460 if (access (XSTRING (execdir)->data, 0) < 0) 462 if (access (XSTRING (tempdir)->data, 0) < 0)
461 { 463 {
462 printf ("Warning: executable/documentation dir (%s) does not exist.\n", 464 printf ("Warning: arch-dependent data dir (%s) does not exist.\n",
463 XSTRING (Vexec_directory)->data); 465 XSTRING (Vexec_directory)->data);
464 sleep (2); 466 sleep (2);
465 } 467 }
466 468
469 tempdir = Fdirectory_file_name (Vdata_directory);
470 if (access (XSTRING (tempdir)->data, 0) < 0)
471 {
472 printf ("Warning: arch-independent data dir (%s) does not exist.\n",
473 XSTRING (Vdata_directory)->data);
474 sleep (2);
475 }
476
467#ifdef VMS 477#ifdef VMS
468 Vshell_file_name = build_string ("*dcl*"); 478 Vshell_file_name = build_string ("*dcl*");
469#else 479#else
@@ -495,8 +505,12 @@ Initialized from the SHELL environment variable.");
495Each element is a string (directory name) or nil (try default directory)."); 505Each element is a string (directory name) or nil (try default directory).");
496 506
497 DEFVAR_LISP ("exec-directory", &Vexec_directory, 507 DEFVAR_LISP ("exec-directory", &Vexec_directory,
498 "Directory that holds programs that come with GNU Emacs,\n\ 508 "Directory of architecture-dependent files that come with GNU Emacs,\n\
499intended for Emacs to invoke."); 509especially executable programs intended for Emacs to invoke.");
510
511 DEFVAR_LISP ("data-directory", &Vdata_directory,
512 "Directory of architecture-independent files that come with GNU Emacs,\n\
513intended for Emacs to use.");
500 514
501#ifndef MAINTAIN_ENVIRONMENT 515#ifndef MAINTAIN_ENVIRONMENT
502 DEFVAR_LISP ("process-environment", &Vprocess_environment, 516 DEFVAR_LISP ("process-environment", &Vprocess_environment,
diff --git a/src/lisp.h b/src/lisp.h
index 12fbd7fcb5d..8ba14163f6d 100644
--- a/src/lisp.h
+++ b/src/lisp.h
@@ -890,7 +890,7 @@ extern Lisp_Object Vpurify_flag;
890extern Lisp_Object Fcons (), Flist(), Fmake_list (); 890extern Lisp_Object Fcons (), Flist(), Fmake_list ();
891extern Lisp_Object Fmake_vector (), Fvector (), Fmake_symbol (), Fmake_marker (); 891extern Lisp_Object Fmake_vector (), Fvector (), Fmake_symbol (), Fmake_marker ();
892extern Lisp_Object Fmake_string (), build_string (), make_string (); 892extern Lisp_Object Fmake_string (), build_string (), make_string ();
893extern Lisp_Object make_uninit_string (); 893extern Lisp_Object make_array (), make_uninit_string ();
894extern Lisp_Object Fpurecopy (), make_pure_string (); 894extern Lisp_Object Fpurecopy (), make_pure_string ();
895extern Lisp_Object pure_cons (), make_pure_vector (); 895extern Lisp_Object pure_cons (), make_pure_vector ();
896extern Lisp_Object Fgarbage_collect (); 896extern Lisp_Object Fgarbage_collect ();
@@ -900,6 +900,7 @@ extern Lisp_Object Vprin1_to_string_buffer;
900extern Lisp_Object Fprin1 (), Fprin1_to_string (), Fprinc (); 900extern Lisp_Object Fprin1 (), Fprin1_to_string (), Fprinc ();
901extern Lisp_Object Fterpri (), Fprint (); 901extern Lisp_Object Fterpri (), Fprint ();
902extern Lisp_Object Vstandard_output, Qstandard_output; 902extern Lisp_Object Vstandard_output, Qstandard_output;
903extern Lisp_Object Qexternal_debugging_output;
903extern void temp_output_buffer_setup (), temp_output_buffer_show (); 904extern void temp_output_buffer_setup (), temp_output_buffer_show ();
904extern int print_level, print_escape_newlines; 905extern int print_level, print_escape_newlines;
905extern Lisp_Object Qprint_escape_newlines; 906extern Lisp_Object Qprint_escape_newlines;
@@ -1004,6 +1005,7 @@ extern Lisp_Object Fdowncase (), Fupcase (), Fcapitalize ();
1004/* defined in keyboard.c */ 1005/* defined in keyboard.c */
1005 1006
1006extern Lisp_Object Qdisabled; 1007extern Lisp_Object Qdisabled;
1008extern Lisp_Object Qmode_line, Qvertical_split;
1007extern Lisp_Object Vhelp_form, Vtop_level; 1009extern Lisp_Object Vhelp_form, Vtop_level;
1008extern Lisp_Object Fdiscard_input (), Frecursive_edit (); 1010extern Lisp_Object Fdiscard_input (), Frecursive_edit ();
1009extern Lisp_Object Fcommand_execute (), Finput_pending_p (); 1011extern Lisp_Object Fcommand_execute (), Finput_pending_p ();
@@ -1027,6 +1029,8 @@ extern Lisp_Object Qwindowp;
1027extern Lisp_Object Fget_buffer_window (); 1029extern Lisp_Object Fget_buffer_window ();
1028extern Lisp_Object Fsave_window_excursion (); 1030extern Lisp_Object Fsave_window_excursion ();
1029extern Lisp_Object Fset_window_configuration (), Fcurrent_window_configuration (); 1031extern Lisp_Object Fset_window_configuration (), Fcurrent_window_configuration ();
1032extern Lisp_Object Fcoordinates_in_window_p ();
1033extern Lisp_Object Fwindow_at ();
1030 1034
1031/* defined in screen.c */ 1035/* defined in screen.c */
1032extern Lisp_Object Fscreenp (); 1036extern Lisp_Object Fscreenp ();
@@ -1057,8 +1061,6 @@ extern Lisp_Object Fset_screen_height ();
1057extern Lisp_Object Fset_screen_width (); 1061extern Lisp_Object Fset_screen_width ();
1058extern Lisp_Object Fset_screen_size (); 1062extern Lisp_Object Fset_screen_size ();
1059extern Lisp_Object Fset_screen_position (); 1063extern Lisp_Object Fset_screen_position ();
1060extern Lisp_Object Fcoordinates_in_window_p ();
1061extern Lisp_Object Flocate_window_from_coordinates ();
1062#ifndef HAVE_X11 1064#ifndef HAVE_X11
1063extern Lisp_Object Frubber_band_rectangle (); 1065extern Lisp_Object Frubber_band_rectangle ();
1064#endif /* HAVE_X11 */ 1066#endif /* HAVE_X11 */
@@ -1075,7 +1077,7 @@ extern Lisp_Object Fget_process (), Fget_buffer_process (), Fprocessp ();
1075extern Lisp_Object Fprocess_status (), Fkill_process (); 1077extern Lisp_Object Fprocess_status (), Fkill_process ();
1076 1078
1077/* defined in callproc.c */ 1079/* defined in callproc.c */
1078extern Lisp_Object Vexec_path, Vexec_directory; 1080extern Lisp_Object Vexec_path, Vexec_directory, Vdata_directory;
1079 1081
1080#ifdef MAINTAIN_ENVIRONMENT 1082#ifdef MAINTAIN_ENVIRONMENT
1081/* defined in environ.c */ 1083/* defined in environ.c */