Commit 5282dec1 authored by Michael Albinus's avatar Michael Albinus
Browse files

* callproc.c (encode_current_directory): Support handling of file

names prepended by "/:".

Fixes: debbugs:18891
parent fd161081
2014-11-07 Michael Albinus <michael.albinus@gmx.de>
* callproc.c (encode_current_directory): Support handling of file
names prepended by "/:". (Bug#18891)
2014-11-06 Alan Mackenzie <acm@muc.de>
* syntax.c (back_comment): Fix off-by-one error (bug#18022).
......
......@@ -152,10 +152,14 @@ encode_current_directory (void)
if (STRING_MULTIBYTE (dir))
dir = ENCODE_FILE (dir);
if (! file_accessible_directory_p (SSDATA (dir)))
if (NILP (Ffile_accessible_directory_p (dir)))
report_file_error ("Setting current directory",
BVAR (current_buffer, directory));
/* Remove "/:" from dir. */
if (Fstring_match (build_string ("^/:"), dir, Qnil))
dir = Fsubstring (dir, make_number (2), Qnil);
RETURN_UNGCPRO (dir);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment