Mercurial > emacs
comparison src/buffer.c @ 22171:e23d16d11ba9
(init_buffer): Support DOS_NT absolute file names.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Thu, 21 May 1998 02:05:53 +0000 |
parents | b6edeb61a779 |
children | 2a61a0a3a9be |
comparison
equal
deleted
inserted
replaced
22170:01df0098b07f | 22171:e23d16d11ba9 |
---|---|
3949 if (NILP (buffer_defaults.enable_multibyte_characters)) | 3949 if (NILP (buffer_defaults.enable_multibyte_characters)) |
3950 Fset_buffer_multibyte (Qnil); | 3950 Fset_buffer_multibyte (Qnil); |
3951 | 3951 |
3952 /* If PWD is accurate, use it instead of calling getwd. This is faster | 3952 /* If PWD is accurate, use it instead of calling getwd. This is faster |
3953 when PWD is right, and may avoid a fatal error. */ | 3953 when PWD is right, and may avoid a fatal error. */ |
3954 if ((pwd = getenv ("PWD")) != 0 && IS_DIRECTORY_SEP (*pwd) | 3954 if ((pwd = getenv ("PWD")) != 0 |
3955 && (IS_DIRECTORY_SEP (*pwd) || (*pwd && IS_DEVICE_SEP (pwd[1]))) | |
3955 && stat (pwd, &pwdstat) == 0 | 3956 && stat (pwd, &pwdstat) == 0 |
3956 && stat (".", &dotstat) == 0 | 3957 && stat (".", &dotstat) == 0 |
3957 && dotstat.st_ino == pwdstat.st_ino | 3958 && dotstat.st_ino == pwdstat.st_ino |
3958 && dotstat.st_dev == pwdstat.st_dev | 3959 && dotstat.st_dev == pwdstat.st_dev |
3959 && strlen (pwd) < MAXPATHLEN) | 3960 && strlen (pwd) < MAXPATHLEN) |