termux-packages/packages/emacs/src-callproc.c.patch
Fredrik Fornwall 8ce98d7fe9 emacs: Update and patch more
Update emacs to 25.0.92, a prerelease for 25.1. Also patch some
more to avoid having it crashing on startup due to bugs in emacs
about undumped startup with a terminal. Closes #11.
2016-03-25 23:33:48 -04:00

13 lines
492 B
Diff

diff -u -r ../emacs-25.0.92/src/callproc.c ./src/callproc.c
--- ../emacs-25.0.92/src/callproc.c 2016-03-02 05:21:43.000000000 -0500
+++ ./src/callproc.c 2016-03-25 22:02:38.977310920 -0400
@@ -1619,7 +1619,7 @@
dir_warning ("arch-independent data dir", Vdata_directory);
sh = getenv ("SHELL");
- Vshell_file_name = build_string (sh ? sh : "/bin/sh");
+ Vshell_file_name = build_string (sh ? sh : "@TERMUX_PREFIX@/bin/sh");
#ifdef DOS_NT
Vshared_game_score_directory = Qnil;