Mercurial > emacs
changeset 44784:8180d4f92b70
(init_buffer): Fix PWD comment.
author | Paul Eggert <eggert@twinsun.com> |
---|---|
date | Tue, 23 Apr 2002 17:40:36 +0000 |
parents | c00838d6756f |
children | a59fec4b6783 |
files | src/buffer.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/buffer.c Tue Apr 23 17:34:54 2002 +0000 +++ b/src/buffer.c Tue Apr 23 17:40:36 2002 +0000 @@ -4973,8 +4973,9 @@ if (NILP (buffer_defaults.enable_multibyte_characters)) Fset_buffer_multibyte (Qnil); - /* If PWD is accurate, use it instead of calling getwd. This is faster - when PWD is right, and may avoid a fatal error. */ + /* If PWD is accurate, use it instead of calling getwd. PWD is + sometimes a nicer name, and using it may avoid a fatal error if a + parent directory is searchable but not readable. */ if ((pwd = getenv ("PWD")) != 0 && (IS_DIRECTORY_SEP (*pwd) || (*pwd && IS_DEVICE_SEP (pwd[1]))) && stat (pwd, &pwdstat) == 0