comparison src/buffer.c @ 44784:8180d4f92b70

(init_buffer): Fix PWD comment.
author Paul Eggert <eggert@twinsun.com>
date Tue, 23 Apr 2002 17:40:36 +0000
parents c54f8a37564e
children 56ce64222cbe
comparison
equal deleted inserted replaced
44783:c00838d6756f 44784:8180d4f92b70
4971 4971
4972 Fset_buffer (Fget_buffer_create (build_string ("*scratch*"))); 4972 Fset_buffer (Fget_buffer_create (build_string ("*scratch*")));
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
4981 && stat (".", &dotstat) == 0 4982 && stat (".", &dotstat) == 0
4982 && dotstat.st_ino == pwdstat.st_ino 4983 && dotstat.st_ino == pwdstat.st_ino