emacs: Backport patch for resizing during startup
authorFredrik Fornwall <fredrik@fornwall.net>
Thu, 28 Apr 2016 13:56:22 +0000 (09:56 -0400)
committerFredrik Fornwall <fredrik@fornwall.net>
Thu, 28 Apr 2016 13:56:22 +0000 (09:56 -0400)
packages/emacs/build.sh
packages/emacs/lisp-window.el.patch.beforehostbuild [new file with mode: 0644]

index 59bf0d5..0a8c2fa 100644 (file)
@@ -1,6 +1,7 @@
 TERMUX_PKG_HOMEPAGE=http://www.gnu.org/software/emacs/
 TERMUX_PKG_DESCRIPTION="Extensible, customizable text editor-and more"
 TERMUX_PKG_VERSION=25.0.93
+TERMUX_PKG_BUILD_REVISION=1
 TERMUX_PKG_SRCURL=ftp://alpha.gnu.org/gnu/emacs/pretest/emacs-${TERMUX_PKG_VERSION}.tar.xz
 TERMUX_PKG_DEPENDS="ncurses, gnutls, libxml2"
 TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--without-x --with-xpm=no --with-jpeg=no --with-png=no --with-gif=no --with-tiff=no --without-gconf --without-gsettings --with-gnutls --with-xml2"
diff --git a/packages/emacs/lisp-window.el.patch.beforehostbuild b/packages/emacs/lisp-window.el.patch.beforehostbuild
new file mode 100644 (file)
index 0000000..fc9bc33
--- /dev/null
@@ -0,0 +1,25 @@
+Fix failed startup when resizing.
+
+From http://debbugs.gnu.org/cgi/bugreport.cgi?bug=23369
+and will hopefully be in the next emacs upstream version.
+
+diff -u -r ../emacs-25.0.93/lisp/window.el ./lisp/window.el
+--- ../emacs-25.0.93/lisp/window.el    2016-04-22 08:17:00.000000000 -0400
++++ ./lisp/window.el   2016-04-28 08:44:26.318178636 -0400
+@@ -8520,6 +8520,7 @@
+ displaying that processes's buffer."
+   (let ((processes (process-list))
+         (process-windows nil))
++   (when processes
+     (walk-windows
+      (lambda (window)
+        (let ((buffer (window-buffer window))
+@@ -8538,7 +8539,7 @@
+                         nil)
+                     (setf iter (cdr iter)))))))
+      1 t)
+-    process-windows))
++    process-windows)))
+ (defun window--adjust-process-windows ()
+   "Update process window sizes to match the current window configuration."