chiark / gitweb /
preload-hacks: Some patches to make it work.
[termux-packages] / packages / emacs / lisp-term.el.patch.beforehostbuild
1 diff -u -r ../emacs-25.0.92/lisp/term.el ./lisp/term.el
2 --- ../emacs-25.0.92/lisp/term.el       2016-03-02 05:21:42.000000000 -0500
3 +++ ./lisp/term.el      2016-03-25 22:01:42.366218150 -0400
4 @@ -1346,7 +1346,7 @@
5                                            (or explicit-shell-file-name
6                                                (getenv "ESHELL")
7                                                (getenv "SHELL")
8 -                                              "/bin/sh"))))
9 +                                              "@TERMUX_PREFIX@/bin/sh"))))
10    (set-buffer (make-term "terminal" program))
11    (term-mode)
12    (term-char-mode)
13 @@ -1466,7 +1466,7 @@
14         ;; do the decoding by hand on the parts that are made of chars.
15         (coding-system-for-read 'binary))
16      (apply 'start-process name buffer
17 -          "/bin/sh" "-c"
18 +          "@TERMUX_PREFIX@/bin/sh" "-c"
19            (format "stty -nl echo rows %d columns %d sane 2>/dev/null;\
20  if [ $1 = .. ]; then shift; fi; exec \"$@\""
21                    term-height term-width)
22 @@ -4108,7 +4108,7 @@
23                                            (or explicit-shell-file-name
24                                                (getenv "ESHELL")
25                                                (getenv "SHELL")
26 -                                              "/bin/sh"))))
27 +                                              "@TERMUX_PREFIX@/bin/sh"))))
28  
29    ;; Pick the name of the new buffer.
30    (setq term-ansi-buffer-name