termux-packages/packages/emacs/src-xdisp.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

22 lines
999 B
Diff

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.