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
499a7f1c
Commit
499a7f1c
authored
Nov 07, 2014
by
Michael Albinus
Browse files
* callproc.c (encode_current_directory): Encode dir at the end.
parent
06ee88e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/callproc.c
src/callproc.c
+3
-2
No files found.
src/callproc.c
View file @
499a7f1c
...
...
@@ -150,8 +150,6 @@ encode_current_directory (void)
dir
=
expand_and_dir_to_file
(
dir
,
Qnil
);
if
(
STRING_MULTIBYTE
(
dir
))
dir
=
ENCODE_FILE
(
dir
);
if
(
NILP
(
Ffile_accessible_directory_p
(
dir
)))
report_file_error
(
"Setting current directory"
,
BVAR
(
current_buffer
,
directory
));
...
...
@@ -160,6 +158,9 @@ encode_current_directory (void)
if
(
!
NILP
(
Fstring_match
(
build_string
(
"^/:"
),
dir
,
Qnil
)))
dir
=
Fsubstring
(
dir
,
make_number
(
2
),
Qnil
);
if
(
STRING_MULTIBYTE
(
dir
))
dir
=
ENCODE_FILE
(
dir
);
RETURN_UNGCPRO
(
dir
);
}
...
...
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