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
ddc61f46
Commit
ddc61f46
authored
Aug 08, 1993
by
Richard M. Stallman
Browse files
(expand_and_dir_to_file): Use Fdirectory_file_name.
parent
80667d53
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/fileio.c
src/fileio.c
+2
-2
No files found.
src/fileio.c
View file @
ddc61f46
...
...
@@ -1526,8 +1526,8 @@ expand_and_dir_to_file (filename, defdir)
stat behaves differently depending! */
if (XSTRING (abspath)->size > 1
&& XSTRING (abspath)->data[XSTRING (abspath)->size - 1] == '/')
abspath = Fsubstring (abspath, make_number (0),
make_number (XSTRING (abspath)->size - 1)
);
/* We cannot take shortcuts; they might be wrong for magic file names. */
abspath = Fdirectory_file_name (abspath
);
#endif
return abspath;
}
...
...
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