diff options
| author | Richard M. Stallman | 1995-06-26 04:39:42 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-06-26 04:39:42 +0000 |
| commit | 4133b3001a9d708596d9da3f52758080b6a5ca89 (patch) | |
| tree | ad5c681ba27c9f9202f5e2c2c080d1aa712c42b5 /src | |
| parent | 74514898f807eeba5a0e54aedd85997d82f294d2 (diff) | |
| download | emacs-4133b3001a9d708596d9da3f52758080b6a5ca89.tar.gz emacs-4133b3001a9d708596d9da3f52758080b6a5ca89.zip | |
(init_cmdargs): Make Vinvocation_directory
absolute if it isn't already.
Diffstat (limited to 'src')
| -rw-r--r-- | src/emacs.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/emacs.c b/src/emacs.c index 2f17c312b3b..5a8af21463f 100644 --- a/src/emacs.c +++ b/src/emacs.c | |||
| @@ -218,6 +218,11 @@ init_cmdargs (argc, argv, skip_args) | |||
| 218 | Vinvocation_directory = Ffile_name_directory (found); | 218 | Vinvocation_directory = Ffile_name_directory (found); |
| 219 | } | 219 | } |
| 220 | 220 | ||
| 221 | if (!NILP (Vinvocation_directory) | ||
| 222 | && NILP (Ffile_name_absolute_p (Vinvocation_directory))) | ||
| 223 | /* Emacs was started with relative path, like ./emacs */ | ||
| 224 | Vinvocation_directory = Fexpand_file_name (Vinvocation_directory, Qnil); | ||
| 225 | |||
| 221 | Vinstallation_directory = Qnil; | 226 | Vinstallation_directory = Qnil; |
| 222 | 227 | ||
| 223 | if (!NILP (Vinvocation_directory)) | 228 | if (!NILP (Vinvocation_directory)) |