diff options
| author | Richard M. Stallman <rms@gnu.org> | 1994-04-21 09:04:25 +0000 |
|---|---|---|
| committer | Richard M. Stallman <rms@gnu.org> | 1994-04-21 09:04:25 +0000 |
| commit | f67de86ff670434940ee5f1fc00982181dc356d8 (patch) | |
| tree | 0dc754601075ed68bfa3bb716933c8cc39f387a9 | |
| parent | f5ab9736a5e30006cd9e6dec5c6a1ed0d239e248 (diff) | |
| download | emacs-f67de86ff670434940ee5f1fc00982181dc356d8.tar.gz | |
(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\ it to change priority. (Emacs sets its uid back to the real uid.)"); emacs_priority = 0; - staticpro (&Vinstallation_directory); + DEFVAR_LISP ("invocation-name", &Vinvocation_name, + "The program name that was used to run Emacs.\n\ +Any directory names are omitted."); + + DEFVAR_LISP ("invocation-directory", &Vinvocation_directory, + "The directory in which the Emacs executable was found, to run it.\n\ +The value is nil if that directory's name is not known."); + + DEFVAR_LISP ("installation-directory", &Vinstallation_directory, + "A directory within which to look for the `lib-src' and `etc' directories.\n\ +This is non-nil when we can't find those directories in their standard\n\ +installed locations, but we can find them\n\ +near where the Emacs executable was found."); Vinstallation_directory = Qnil; - - /* These have already been set, in init_cmdargs, so don't set them here. */ - staticpro (&Vinvocation_name); - staticpro (&Vinvocation_directory); } |
