diff options
| author | Paul Eggert | 2002-04-23 17:40:36 +0000 |
|---|---|---|
| committer | Paul Eggert | 2002-04-23 17:40:36 +0000 |
| commit | 314dbe9a7f28624812679ebc458f03cf1ba12ab2 (patch) | |
| tree | ec4a5c0de229cd3fd5b7467a42e84e254eb6f1db /src/buffer.c | |
| parent | 3a2ceb9e9c31603a154223e177043761a60d4228 (diff) | |
| download | emacs-314dbe9a7f28624812679ebc458f03cf1ba12ab2.tar.gz emacs-314dbe9a7f28624812679ebc458f03cf1ba12ab2.zip | |
(init_buffer): Fix PWD comment.
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/buffer.c b/src/buffer.c index 6acb2ae624a..b2d8ada9a97 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -4973,8 +4973,9 @@ init_buffer () | |||
| 4973 | if (NILP (buffer_defaults.enable_multibyte_characters)) | 4973 | if (NILP (buffer_defaults.enable_multibyte_characters)) |
| 4974 | Fset_buffer_multibyte (Qnil); | 4974 | Fset_buffer_multibyte (Qnil); |
| 4975 | 4975 | ||
| 4976 | /* If PWD is accurate, use it instead of calling getwd. This is faster | 4976 | /* If PWD is accurate, use it instead of calling getwd. PWD is |
| 4977 | when PWD is right, and may avoid a fatal error. */ | 4977 | sometimes a nicer name, and using it may avoid a fatal error if a |
| 4978 | parent directory is searchable but not readable. */ | ||
| 4978 | if ((pwd = getenv ("PWD")) != 0 | 4979 | if ((pwd = getenv ("PWD")) != 0 |
| 4979 | && (IS_DIRECTORY_SEP (*pwd) || (*pwd && IS_DEVICE_SEP (pwd[1]))) | 4980 | && (IS_DIRECTORY_SEP (*pwd) || (*pwd && IS_DEVICE_SEP (pwd[1]))) |
| 4980 | && stat (pwd, &pwdstat) == 0 | 4981 | && stat (pwd, &pwdstat) == 0 |