Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
314dbe9a
Commit
314dbe9a
authored
Apr 23, 2002
by
Paul Eggert
Browse files
(init_buffer): Fix PWD comment.
parent
3a2ceb9e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/buffer.c
src/buffer.c
+3
-2
No files found.
src/buffer.c
View file @
314dbe9a
...
...
@@ -4973,8 +4973,9 @@ init_buffer ()
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment