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
emacs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
emacs
emacs
Commits
8ee085a4
Commit
8ee085a4
authored
Apr 18, 2008
by
Stefan Monnier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(Fexpand_file_name): Refine last fix so `nm' is only
relocated if it points to `name'.
parent
ce203001
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
src/ChangeLog
src/ChangeLog
+5
-0
src/fileio.c
src/fileio.c
+5
-0
No files found.
src/ChangeLog
View file @
8ee085a4
2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
* fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
relocated if it points to `name'.
2008-04-17 Kenichi Handa <handa@m17n.org>
* data.c (Faset): Allow setting a multibyte character in an
...
...
src/fileio.c
View file @
8ee085a4
...
...
@@ -1045,6 +1045,7 @@ See also the function `substitute-in-file-name'. */)
/* These point to SDATA and need to be careful with string-relocation
during GC (via DECODE_FILE). */
unsigned char *nm, *newdir;
int nm_in_name;
/* This should only point to alloca'd data. */
unsigned char *target;
...
...
@@ -1158,11 +1159,13 @@ See also the function `substitute-in-file-name'. */)
}
nm = SDATA (name);
nm_in_name = 1;
#ifdef DOS_NT
/* We will force directory separators to be either all \ or /, so make
a local copy to modify, even if there ends up being no change. */
nm = strcpy (alloca (strlen (nm) + 1), nm);
nm_in_name = 0;
/* Note if special escape prefix is present, but remove for now. */
if (nm[0] == '/' && nm[1] == ':')
...
...
@@ -1321,6 +1324,7 @@ See also the function `substitute-in-file-name'. */)
if (index (nm, '/'))
{
nm = sys_translate_unix (nm);
nm_in_name = 0;
return make_specified_string (nm, -1, strlen (nm), multibyte);
}
#endif /* VMS */
...
...
@@ -1396,6 +1400,7 @@ See also the function `substitute-in-file-name'. */)
int offset = nm - SDATA (name);
hdir = DECODE_FILE (tem);
newdir = SDATA (hdir);
if (nm_in_name)
nm = SDATA (name) + offset;
}
#ifdef DOS_NT
...
...
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