[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/buffer.c
From: |
Paul Eggert |
Subject: |
[Emacs-diffs] Changes to emacs/src/buffer.c |
Date: |
Tue, 23 Apr 2002 13:40:36 -0400 |
Index: emacs/src/buffer.c
diff -c emacs/src/buffer.c:1.381 emacs/src/buffer.c:1.382
*** emacs/src/buffer.c:1.381 Tue Apr 16 03:34:36 2002
--- emacs/src/buffer.c Tue Apr 23 13:40:36 2002
***************
*** 4973,4980 ****
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 = getenv ("PWD")) != 0
&& (IS_DIRECTORY_SEP (*pwd) || (*pwd && IS_DEVICE_SEP (pwd[1])))
&& stat (pwd, &pwdstat) == 0
--- 4973,4981 ----
if (NILP (buffer_defaults.enable_multibyte_characters))
Fset_buffer_multibyte (Qnil);
! /* 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