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
01937013
Commit
01937013
authored
Feb 27, 1996
by
Richard M. Stallman
Browse files
(Fexpand_file_name): Fix confusion in detecting
that default_directory is already absolute so need not be expanded.
parent
22041a64
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
src/fileio.c
src/fileio.c
+8
-3
No files found.
src/fileio.c
View file @
01937013
...
...
@@ -795,10 +795,15 @@ See also the function `substitute-in-file-name'.")
The EQ test avoids infinite recursion. */
if (! NILP (default_directory) && !EQ (default_directory, name)
/* This saves time in a common case. */
/* Save time in some common cases. */
#ifdef DOS_NT
/* Detect MSDOS file names with device names. */
&& ! (XSTRING (default_directory)->size >= 3
&& IS_DIRECTORY_SEP (XSTRING (default_directory)->data[0])
&& IS_DEVICE_SEP (XSTRING (default_directory)->data[1])))
&& IS_DEVICE_SEP (o[1]) && IS_DIRECTORY_SEP (o[2]))
#endif
/* Detect Unix absolute file names. */
&& ! (XSTRING (default_directory)->size >= 2
&& IS_DIRECTORY_SEP (o[0])))
{
struct gcpro gcpro1;
...
...
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