diff options
| -rw-r--r-- | src/emacs.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/emacs.c b/src/emacs.c index 04f45a3a866..b93d9212ad5 100644 --- a/src/emacs.c +++ b/src/emacs.c | |||
| @@ -128,6 +128,10 @@ int noninteractive; | |||
| 128 | but nothing terrible happens if user sets this one. */ | 128 | but nothing terrible happens if user sets this one. */ |
| 129 | 129 | ||
| 130 | int noninteractive1; | 130 | int noninteractive1; |
| 131 | |||
| 132 | /* Save argv and argc. */ | ||
| 133 | char **initial_argv; | ||
| 134 | int initial_argc; | ||
| 131 | 135 | ||
| 132 | /* Signal code for the fatal signal that was received */ | 136 | /* Signal code for the fatal signal that was received */ |
| 133 | int fatal_error_code; | 137 | int fatal_error_code; |
| @@ -192,6 +196,9 @@ init_cmdargs (argc, argv, skip_args) | |||
| 192 | register int i; | 196 | register int i; |
| 193 | Lisp_Object name, dir; | 197 | Lisp_Object name, dir; |
| 194 | 198 | ||
| 199 | initial_argv = argv; | ||
| 200 | initial_argc = argc; | ||
| 201 | |||
| 195 | Vinvocation_name = Ffile_name_nondirectory (build_string (argv[0])); | 202 | Vinvocation_name = Ffile_name_nondirectory (build_string (argv[0])); |
| 196 | Vinvocation_directory = Ffile_name_directory (build_string (argv[0])); | 203 | Vinvocation_directory = Ffile_name_directory (build_string (argv[0])); |
| 197 | /* If we got no directory in argv[0], search PATH to find where | 204 | /* If we got no directory in argv[0], search PATH to find where |