diff options
| author | Richard M. Stallman | 1994-04-21 09:04:25 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-04-21 09:04:25 +0000 |
| commit | f67de86ff670434940ee5f1fc00982181dc356d8 (patch) | |
| tree | 0dc754601075ed68bfa3bb716933c8cc39f387a9 | |
| parent | f5ab9736a5e30006cd9e6dec5c6a1ed0d239e248 (diff) | |
| download | emacs-f67de86ff670434940ee5f1fc00982181dc356d8.tar.gz emacs-f67de86ff670434940ee5f1fc00982181dc356d8.zip | |
(init_cmdargs): Check only for etc and lib-src subdirs
when setting Vinstallation_directory.
(syms_of_emacs): Make Lisp vars invocation-name, invocation-directory
and installation-directory.
| -rw-r--r-- | src/emacs.c | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/src/emacs.c b/src/emacs.c index d5b89b896d9..fd2a736e2d0 100644 --- a/src/emacs.c +++ b/src/emacs.c | |||
| @@ -1024,10 +1024,18 @@ and only if the Emacs executable is installed with setuid to permit\n\ | |||
| 1024 | it to change priority. (Emacs sets its uid back to the real uid.)"); | 1024 | it to change priority. (Emacs sets its uid back to the real uid.)"); |
| 1025 | emacs_priority = 0; | 1025 | emacs_priority = 0; |
| 1026 | 1026 | ||
| 1027 | staticpro (&Vinstallation_directory); | 1027 | DEFVAR_LISP ("invocation-name", &Vinvocation_name, |
| 1028 | "The program name that was used to run Emacs.\n\ | ||
| 1029 | Any directory names are omitted."); | ||
| 1030 | |||
| 1031 | DEFVAR_LISP ("invocation-directory", &Vinvocation_directory, | ||
| 1032 | "The directory in which the Emacs executable was found, to run it.\n\ | ||
| 1033 | The value is nil if that directory's name is not known."); | ||
| 1034 | |||
| 1035 | DEFVAR_LISP ("installation-directory", &Vinstallation_directory, | ||
| 1036 | "A directory within which to look for the `lib-src' and `etc' directories.\n\ | ||
| 1037 | This is non-nil when we can't find those directories in their standard\n\ | ||
| 1038 | installed locations, but we can find them\n\ | ||
| 1039 | near where the Emacs executable was found."); | ||
| 1028 | Vinstallation_directory = Qnil; | 1040 | Vinstallation_directory = Qnil; |
| 1029 | |||
| 1030 | /* These have already been set, in init_cmdargs, so don't set them here. */ | ||
| 1031 | staticpro (&Vinvocation_name); | ||
| 1032 | staticpro (&Vinvocation_directory); | ||
| 1033 | } | 1041 | } |