Fix Emacs in Windows
This commit is contained in:
@@ -41,18 +41,24 @@ impl Emacs {
|
|||||||
|
|
||||||
print_separator("Emacs");
|
print_separator("Emacs");
|
||||||
|
|
||||||
// Convert the whitespace in the emacs lisp code to NONBREAKING SPACE.
|
let mut command = run_type.execute(&emacs);
|
||||||
let escaped: String = EMACS_UPGRADE
|
|
||||||
|
command
|
||||||
|
.args(&["--batch", "--debug-init", "-l"])
|
||||||
|
.arg(init_file)
|
||||||
|
.arg("--eval");
|
||||||
|
|
||||||
|
#[cfg(unix)]
|
||||||
|
command.arg(
|
||||||
|
EMACS_UPGRADE
|
||||||
.chars()
|
.chars()
|
||||||
.map(|c| if c.is_whitespace() { '\u{00a0}' } else { c })
|
.map(|c| if c.is_whitespace() { '\u{00a0}' } else { c })
|
||||||
.collect();
|
.collect(),
|
||||||
|
);
|
||||||
|
|
||||||
run_type
|
#[cfg(not(unix))]
|
||||||
.execute(&emacs)
|
command.arg(EMACS_UPGRADE);
|
||||||
.args(&["--batch", "-l"])
|
|
||||||
.arg(init_file)
|
command.check_run()
|
||||||
.arg("--eval")
|
|
||||||
.arg(escaped)
|
|
||||||
.check_run()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user