diff options
| author | Jim Blandy | 1991-12-04 05:48:56 +0000 |
|---|---|---|
| committer | Jim Blandy | 1991-12-04 05:48:56 +0000 |
| commit | 9453ea7be3e2bdd7a3ac8835f35c9f3463efd21d (patch) | |
| tree | a90343e93dadbba74e3e5ef27724aeb86611384d | |
| parent | 63007de27b78d74d2608fb00ddd71b9514317b85 (diff) | |
| download | emacs-9453ea7be3e2bdd7a3ac8835f35c9f3463efd21d.tar.gz emacs-9453ea7be3e2bdd7a3ac8835f35c9f3463efd21d.zip | |
*** empty log message ***
| -rw-r--r-- | src/callproc.c | 28 | ||||
| -rw-r--r-- | src/lisp.h | 10 |
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 | ||
| 60 | Lisp_Object Vexec_path, Vexec_directory; | 60 | Lisp_Object Vexec_path, Vexec_directory, Vdata_directory; |
| 61 | 61 | ||
| 62 | Lisp_Object Vshell_file_name; | 62 | Lisp_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."); | |||
| 495 | Each element is a string (directory name) or nil (try default directory)."); | 505 | Each 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\ |
| 499 | intended for Emacs to invoke."); | 509 | especially 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\ | ||
| 513 | intended 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; | |||
| 890 | extern Lisp_Object Fcons (), Flist(), Fmake_list (); | 890 | extern Lisp_Object Fcons (), Flist(), Fmake_list (); |
| 891 | extern Lisp_Object Fmake_vector (), Fvector (), Fmake_symbol (), Fmake_marker (); | 891 | extern Lisp_Object Fmake_vector (), Fvector (), Fmake_symbol (), Fmake_marker (); |
| 892 | extern Lisp_Object Fmake_string (), build_string (), make_string (); | 892 | extern Lisp_Object Fmake_string (), build_string (), make_string (); |
| 893 | extern Lisp_Object make_uninit_string (); | 893 | extern Lisp_Object make_array (), make_uninit_string (); |
| 894 | extern Lisp_Object Fpurecopy (), make_pure_string (); | 894 | extern Lisp_Object Fpurecopy (), make_pure_string (); |
| 895 | extern Lisp_Object pure_cons (), make_pure_vector (); | 895 | extern Lisp_Object pure_cons (), make_pure_vector (); |
| 896 | extern Lisp_Object Fgarbage_collect (); | 896 | extern Lisp_Object Fgarbage_collect (); |
| @@ -900,6 +900,7 @@ extern Lisp_Object Vprin1_to_string_buffer; | |||
| 900 | extern Lisp_Object Fprin1 (), Fprin1_to_string (), Fprinc (); | 900 | extern Lisp_Object Fprin1 (), Fprin1_to_string (), Fprinc (); |
| 901 | extern Lisp_Object Fterpri (), Fprint (); | 901 | extern Lisp_Object Fterpri (), Fprint (); |
| 902 | extern Lisp_Object Vstandard_output, Qstandard_output; | 902 | extern Lisp_Object Vstandard_output, Qstandard_output; |
| 903 | extern Lisp_Object Qexternal_debugging_output; | ||
| 903 | extern void temp_output_buffer_setup (), temp_output_buffer_show (); | 904 | extern void temp_output_buffer_setup (), temp_output_buffer_show (); |
| 904 | extern int print_level, print_escape_newlines; | 905 | extern int print_level, print_escape_newlines; |
| 905 | extern Lisp_Object Qprint_escape_newlines; | 906 | extern 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 | ||
| 1006 | extern Lisp_Object Qdisabled; | 1007 | extern Lisp_Object Qdisabled; |
| 1008 | extern Lisp_Object Qmode_line, Qvertical_split; | ||
| 1007 | extern Lisp_Object Vhelp_form, Vtop_level; | 1009 | extern Lisp_Object Vhelp_form, Vtop_level; |
| 1008 | extern Lisp_Object Fdiscard_input (), Frecursive_edit (); | 1010 | extern Lisp_Object Fdiscard_input (), Frecursive_edit (); |
| 1009 | extern Lisp_Object Fcommand_execute (), Finput_pending_p (); | 1011 | extern Lisp_Object Fcommand_execute (), Finput_pending_p (); |
| @@ -1027,6 +1029,8 @@ extern Lisp_Object Qwindowp; | |||
| 1027 | extern Lisp_Object Fget_buffer_window (); | 1029 | extern Lisp_Object Fget_buffer_window (); |
| 1028 | extern Lisp_Object Fsave_window_excursion (); | 1030 | extern Lisp_Object Fsave_window_excursion (); |
| 1029 | extern Lisp_Object Fset_window_configuration (), Fcurrent_window_configuration (); | 1031 | extern Lisp_Object Fset_window_configuration (), Fcurrent_window_configuration (); |
| 1032 | extern Lisp_Object Fcoordinates_in_window_p (); | ||
| 1033 | extern Lisp_Object Fwindow_at (); | ||
| 1030 | 1034 | ||
| 1031 | /* defined in screen.c */ | 1035 | /* defined in screen.c */ |
| 1032 | extern Lisp_Object Fscreenp (); | 1036 | extern Lisp_Object Fscreenp (); |
| @@ -1057,8 +1061,6 @@ extern Lisp_Object Fset_screen_height (); | |||
| 1057 | extern Lisp_Object Fset_screen_width (); | 1061 | extern Lisp_Object Fset_screen_width (); |
| 1058 | extern Lisp_Object Fset_screen_size (); | 1062 | extern Lisp_Object Fset_screen_size (); |
| 1059 | extern Lisp_Object Fset_screen_position (); | 1063 | extern Lisp_Object Fset_screen_position (); |
| 1060 | extern Lisp_Object Fcoordinates_in_window_p (); | ||
| 1061 | extern Lisp_Object Flocate_window_from_coordinates (); | ||
| 1062 | #ifndef HAVE_X11 | 1064 | #ifndef HAVE_X11 |
| 1063 | extern Lisp_Object Frubber_band_rectangle (); | 1065 | extern 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 (); | |||
| 1075 | extern Lisp_Object Fprocess_status (), Fkill_process (); | 1077 | extern Lisp_Object Fprocess_status (), Fkill_process (); |
| 1076 | 1078 | ||
| 1077 | /* defined in callproc.c */ | 1079 | /* defined in callproc.c */ |
| 1078 | extern Lisp_Object Vexec_path, Vexec_directory; | 1080 | extern 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 */ |