-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
11 changed files
with
138 additions
and
109 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
diff -u -r ../emacs-25.0.92/lisp/loadup.el ./lisp/loadup.el | ||
--- ../emacs-25.0.92/lisp/loadup.el 2016-03-02 05:21:42.000000000 -0500 | ||
+++ ./lisp/loadup.el 2016-03-25 21:40:48.314906360 -0400 | ||
@@ -1,3 +1,7 @@ | ||
+;; Termux patch: See | ||
+;; https://lists.gnu.org/archive/html/bug-gnu-emacs/2016-03/msg00471.html | ||
+(setq-default bidi-display-reordering nil) | ||
+ | ||
;;; loadup.el --- load up standardly loaded Lisp files for Emacs | ||
|
||
;; Copyright (C) 1985-1986, 1992, 1994, 2001-2016 Free Software | ||
@@ -110,6 +114,12 @@ | ||
(load "format") | ||
(load "bindings") | ||
(load "window") ; Needed here for `replace-buffer-in-windows'. | ||
+;; Termux patch: See | ||
+;; https://lists.gnu.org/archive/html/bug-gnu-emacs/2016-03/msg00679.html | ||
+;; We are now capable of resizing the mini-windows, so give the | ||
+;; variable its advertised default value (it starts as nil, see | ||
+;; xdisp.c). | ||
+(setq resize-mini-windows 'grow-only) | ||
(setq load-source-file-function 'load-with-code-conversion) | ||
(load "files") | ||
|
||
@@ -465,3 +475,7 @@ | ||
;; End: | ||
|
||
;;; loadup.el ends here | ||
+ | ||
+;; Termux patch: See | ||
+;; https://lists.gnu.org/archive/html/bug-gnu-emacs/2016-03/msg00471.html | ||
+(setq-default bidi-display-reordering t) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
diff -u -r ../emacs-25.0.92/lisp/subr.el ./lisp/subr.el | ||
--- ../emacs-25.0.92/lisp/subr.el 2016-03-02 05:21:42.000000000 -0500 | ||
+++ ./lisp/subr.el 2016-03-25 22:03:57.240066240 -0400 | ||
@@ -2975,7 +2975,7 @@ | ||
(declare (advertised-calling-convention (name buffer command) "23.1")) | ||
(start-file-process | ||
name buffer | ||
- (if (file-remote-p default-directory) "/bin/sh" shell-file-name) | ||
+ (if (file-remote-p default-directory) "@TERMUX_PREFIX@/bin/sh" shell-file-name) | ||
(if (file-remote-p default-directory) "-c" shell-command-switch) | ||
(mapconcat 'identity args " "))) | ||
|
||
@@ -3019,7 +3019,7 @@ | ||
(declare (advertised-calling-convention | ||
(command &optional infile buffer display) "24.5")) | ||
(process-file | ||
- (if (file-remote-p default-directory) "/bin/sh" shell-file-name) | ||
+ (if (file-remote-p default-directory) "@TERMUX_PREFIX@/bin/sh" shell-file-name) | ||
infile buffer display | ||
(if (file-remote-p default-directory) "-c" shell-command-switch) | ||
(mapconcat 'identity (cons command args) " "))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
diff -u -r ../emacs-25.0.92/lisp/term.el ./lisp/term.el | ||
--- ../emacs-25.0.92/lisp/term.el 2016-03-02 05:21:42.000000000 -0500 | ||
+++ ./lisp/term.el 2016-03-25 22:01:42.366218150 -0400 | ||
@@ -1346,7 +1346,7 @@ | ||
(or explicit-shell-file-name | ||
(getenv "ESHELL") | ||
(getenv "SHELL") | ||
- "/bin/sh")))) | ||
+ "@TERMUX_PREFIX@/bin/sh")))) | ||
(set-buffer (make-term "terminal" program)) | ||
(term-mode) | ||
(term-char-mode) | ||
@@ -1466,7 +1466,7 @@ | ||
;; do the decoding by hand on the parts that are made of chars. | ||
(coding-system-for-read 'binary)) | ||
(apply 'start-process name buffer | ||
- "/bin/sh" "-c" | ||
+ "@TERMUX_PREFIX@/bin/sh" "-c" | ||
(format "stty -nl echo rows %d columns %d sane 2>/dev/null;\ | ||
if [ $1 = .. ]; then shift; fi; exec \"$@\"" | ||
term-height term-width) | ||
@@ -4108,7 +4108,7 @@ | ||
(or explicit-shell-file-name | ||
(getenv "ESHELL") | ||
(getenv "SHELL") | ||
- "/bin/sh")))) | ||
+ "@TERMUX_PREFIX@/bin/sh")))) | ||
|
||
;; Pick the name of the new buffer. | ||
(setq term-ansi-buffer-name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
; Enable terminal mouse events: | ||
(xterm-mouse-mode 1) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
See https://lists.gnu.org/archive/html/bug-gnu-emacs/2016-03/msg00679.html | ||
|
||
The other part of that patch is in lisp-loadup.el.patch | ||
|
||
diff -u -r ../emacs-25.0.92/src/xdisp.c ./src/xdisp.c | ||
--- ../emacs-25.0.92/src/xdisp.c 2016-03-02 05:21:43.000000000 -0500 | ||
+++ ./src/xdisp.c 2016-03-25 21:25:36.960819633 -0400 | ||
@@ -31598,7 +31598,12 @@ | ||
A value of `grow-only', the default, means let mini-windows grow only; | ||
they return to their normal size when the minibuffer is closed, or the | ||
echo area becomes empty. */); | ||
- Vresize_mini_windows = Qgrow_only; | ||
+ /* Contrary to the doc string, we initialize this to nil, so that | ||
+ loading loadup.el won't try to resize windows before loading | ||
+ window.el, where some functions we need to call for this live. | ||
+ We assign the 'grow-only' value right after loading window.el | ||
+ during loadup. */ | ||
+ Vresize_mini_windows = Qnil; | ||
|
||
DEFVAR_LISP ("blink-cursor-alist", Vblink_cursor_alist, | ||
doc: /* Alist specifying how to blink the cursor off. |
This file was deleted.
Oops, something went wrong.