--- /dev/null
+[PATCH] clear ixon termios flag on initialization
+
+Otherwise ctrl-S/Q gets intercepted by the tty layer instead of
+handled by uemacs.
+
+Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
+diff --git a/posix.c b/posix.c
+index 97edd9f052b1..352c4712b689 100644
+--- a/posix.c
++++ b/posix.c
+@@ -53,17 +53,17 @@ void ttopen(void)
+ /*
+ * base new settings on old ones - don't change things
+ * we don't know about
+ */
+ ntermios = otermios;
+
+ /* raw CR/NL etc input handling, but keep ISTRIP if we're on a 7-bit line */
+ ntermios.c_iflag &= ~(IGNBRK | BRKINT | IGNPAR | PARMRK
+- | INPCK | INLCR | IGNCR | ICRNL);
++ | INPCK | INLCR | IGNCR | ICRNL | IXON);
+
+ /* raw CR/NR etc output handling */
+ ntermios.c_oflag &=
+ ~(OPOST | ONLCR | OLCUC | OCRNL | ONOCR | ONLRET);
+
+ /* No signal handling, no echo etc */
+ ntermios.c_lflag &= ~(ISIG | ICANON | XCASE | ECHO | ECHOE | ECHOK
+ | ECHONL | NOFLSH | TOSTOP | ECHOCTL |
+++ /dev/null
-diff -rup em-4.0.15-lt.oorig/display.c em-4.0.15-lt/display.c
---- em-4.0.15-lt.oorig/display.c 1994-05-21 12:40:56.000000000 +0200
-+++ em-4.0.15-lt/display.c 2005-11-16 16:54:22.000000000 +0100
-@@ -9,6 +9,7 @@
- */
-
- #include <stdio.h>
-+#include <errno.h>
- #include "estruct.h"
- #include "edef.h"
-
-diff -rup em-4.0.15-lt.oorig/main.c em-4.0.15-lt/main.c
---- em-4.0.15-lt.oorig/main.c 1994-05-21 12:41:03.000000000 +0200
-+++ em-4.0.15-lt/main.c 2005-11-16 16:54:01.000000000 +0100
-@@ -123,7 +123,7 @@ char *argv[]; /* argument strings */
- #endif
-
- #if UNIX
-- static void emergencyexit();
-+ void emergencyexit();
- #ifdef SIGWINCH
- extern void sizesignal();
- #endif
-@@ -599,7 +599,7 @@ quickexit(f, n)
- return(TRUE);
- }
-
--static void emergencyexit(signr)
-+void emergencyexit(signr)
- int signr;
- {
- quickexit(FALSE, 0);
-
+++ /dev/null
---- em-4.0.15-lt.oorig/lock.c 1999-05-16 09:04:17.000000000 +0200
-+++ em-4.0.15-lt/lock.c 2006-03-10 15:22:16.000000000 +0100
-@@ -152,10 +152,8 @@
-
- strcpy(obuf, errstr);
- strcat(obuf, " - ");
-- if (errno < sys_nerr)
-- strcat(obuf, sys_errlist[errno]);
-- else
-- strcat(obuf, "(can not get system error message)");
-+ strcat(obuf, strerror(errno));
-+
- mlwrite(obuf);
- }
- #endif
-
+++ /dev/null
-[PATCH] clear ixon termios flag on initialization
-
-Otherwise ctrl-S/Q gets intercepted by the tty layer instead of
-handled by uemacs.
-
-Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-diff -U8 em-4.0.15-lt-orig/posix.c em-4.0.15-lt/posix.c
---- em-4.0.15-lt-orig/posix.c 1999-05-16 02:06:19.000000000 -0500
-+++ em-4.0.15-lt/posix.c 2012-04-25 16:14:25.000000000 -0500
-@@ -45,17 +45,17 @@
- /*
- * base new settings on old ones - don't change things
- * we don't know about
- */
- ntermios = otermios;
-
- /* raw CR/NL etc input handling, but keep ISTRIP if we're on a 7-bit line */
- ntermios.c_iflag &= ~(IGNBRK | BRKINT | IGNPAR | PARMRK
-- | INPCK | INLCR | IGNCR | ICRNL);
-+ | INPCK | INLCR | IGNCR | ICRNL | IXON);
-
- /* raw CR/NR etc output handling */
- ntermios.c_oflag &= ~(OPOST | ONLCR | OLCUC | OCRNL | ONOCR | ONLRET);
-
- /* No signal handling, no echo etc */
- ntermios.c_lflag &= ~(ISIG | ICANON | XCASE | ECHO | ECHOE | ECHOK
- | ECHONL | NOFLSH | TOSTOP | ECHOCTL | ECHOPRT
- | ECHOKE | FLUSHO | PENDIN | IEXTEN);
#
################################################################################
-UEMACS_VERSION = 4.0.15-lt
-UEMACS_SOURCE = em-$(UEMACS_VERSION).tar.gz
-UEMACS_SITE = $(BR2_KERNEL_MIRROR)/software/editors/uemacs
+UEMACS_VERSION = fa00fe882f719351fdf7a4c4100baf4f3eab4d61
+UEMACS_SITE = $(BR2_KERNEL_MIRROR)/scm/linux/kernel/git/torvalds/uemacs.git
+UEMACS_SITE_METHOD = git
UEMACS_DEPENDENCIES = ncurses
define UEMACS_BUILD_CMDS