Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
6cde1b21
Commit
6cde1b21
authored
Mar 11, 2009
by
Juanma Barranquero
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* emacsclient.c (main): Revert part of last change,
so drive-relative file names again work on Windows.
parent
7679cfc8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
0 deletions
+25
-0
lib-src/ChangeLog
lib-src/ChangeLog
+5
-0
lib-src/emacsclient.c
lib-src/emacsclient.c
+20
-0
No files found.
lib-src/ChangeLog
View file @
6cde1b21
2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
* emacsclient.c (main): Revert part of last change, so
drive-relative file names again work on Windows.
2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
* emacsclient.c (main): Always pass cwd via "-dir". Pass the file
...
...
lib-src/emacsclient.c
View file @
6cde1b21
...
...
@@ -1635,6 +1635,26 @@ main (argc, argv)
continue
;
}
}
#ifdef WINDOWSNT
else
if
(
!
file_name_absolute_p
(
argv
[
i
])
&&
(
isalpha
(
argv
[
i
][
0
])
&&
argv
[
i
][
1
]
==
':'
))
/* Windows can have a different default directory for each
drive, so the cwd passed via "-dir" is not sufficient
to account for that.
If the user uses <drive>:<relpath>, we hence need to be
careful to expand <relpath> with the default directory
corresponding to <drive>. */
{
char
*
filename
=
(
char
*
)
xmalloc
(
MAX_PATH
);
DWORD
size
;
size
=
GetFullPathName
(
argv
[
i
],
MAX_PATH
,
filename
,
NULL
);
if
(
size
>
0
&&
size
<
MAX_PATH
)
argv
[
i
]
=
filename
;
else
free
(
filename
);
}
#endif
send_to_emacs
(
emacs_socket
,
"-file "
);
quote_argument
(
emacs_socket
,
argv
[
i
]);
...
...
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