]> git.eshelyaron.com Git - emacs.git/commitdiff
* configure.ac (POLL_FOR_INPUT): Define with HAVE_WINDOW_SYSTEM.
authorDmitry Antipov <dmantipov@yandex.ru>
Thu, 5 Jun 2014 06:24:54 +0000 (10:24 +0400)
committerDmitry Antipov <dmantipov@yandex.ru>
Thu, 5 Jun 2014 06:24:54 +0000 (10:24 +0400)
* nt/inc/ms-w32.h (POLL_FOR_INPUT): Likewise.
* src/keyboard.c, src/process.c: Do not define POLL_FOR_INPUT here
because it will be defined in generated config.h if needed.

ChangeLog
configure.ac
nt/ChangeLog
nt/inc/ms-w32.h
src/ChangeLog
src/keyboard.c
src/process.c

index 8b2713a703d9d4bd0926892774fdbaaf19263dff..721ab3193b4ba89d58f49434fdea9b2d70ab74e5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2014-06-05  Dmitry Antipov  <dmantipov@yandex.ru>
+
+       * configure.ac (POLL_FOR_INPUT): Define with HAVE_WINDOW_SYSTEM.
+
 2014-06-05  Paul Eggert  <eggert@cs.ucla.edu>
 
        * configure.ac: --without-all now implies --without-xft, --disable-acl.
index fbfedb02795bcde7dfe4cee90a8b34a6c1a02691..f5485942bd868a60fcfc84420707a9ef2ea66221 100644 (file)
@@ -4847,6 +4847,7 @@ AC_SUBST(LD_SWITCH_SYSTEM_TEMACS)
 ## Common for all window systems
 if test "$window_system" != "none"; then
   AC_DEFINE(HAVE_WINDOW_SYSTEM, 1, [Define if you have a window system.])
+  AC_DEFINE(POLL_FOR_INPUT, 1, [Define if you poll periodically to detect C-g.])
   WINDOW_SYSTEM_OBJ="fontset.o fringe.o image.o"
 fi
 
index 3c614b8ebec133a0410c99cc8417b803f2a4e2ee..cbbb58147625453eb82fd0e4c298d059b7e7caa1 100644 (file)
@@ -1,3 +1,7 @@
+2014-06-05  Dmitry Antipov  <dmantipov@yandex.ru>
+
+       * inc/ms-w32.h (POLL_FOR_INPUT): Define with HAVE_WINDOW_SYSTEM.
+
 2014-05-29  Eli Zaretskii  <eliz@gnu.org>
 
        * Makefile.in (DONT_INSTALL): Now empty.
index 1cf78bac83a9add608a335d219f124aa6b411c75..edb143c68d4c74aad97e5cb80cc42559c661f5b1 100644 (file)
@@ -159,6 +159,7 @@ extern char *getenv ();
 #ifdef HAVE_NTGUI
 # ifndef HAVE_WINDOW_SYSTEM
 #  define HAVE_WINDOW_SYSTEM 1
+#  define POLL_FOR_INPUT 1
 # endif
 #endif
 
index 8cbd4c54e334796632d4508aaf4a07e0b3ae81fd..2a149a07214aac38481e07b099d87ecfec82e75b 100644 (file)
@@ -1,3 +1,8 @@
+2014-06-05  Dmitry Antipov  <dmantipov@yandex.ru>
+
+       * keyboard.c, process.c: Do not define POLL_FOR_INPUT here
+       because it will be defined in generated config.h if needed.
+
 2014-06-04  Dmitry Antipov  <dmantipov@yandex.ru>
 
        Use terminal-specific hooks to display popup dialogs.
index 17bfc81b82f46987869a167cd4a88143c215babd..80b1f521310c87377d70d4153726bb3859c4e6cc 100644 (file)
@@ -377,12 +377,6 @@ bool interrupt_input;
 /* Nonzero while interrupts are temporarily deferred during redisplay.  */
 bool interrupts_deferred;
 
-/* If we support a window system, turn on the code to poll periodically
-   to detect C-g.  It isn't actually used when doing interrupt input.  */
-#ifdef HAVE_WINDOW_SYSTEM
-#define POLL_FOR_INPUT
-#endif
-
 /* The time when Emacs started being idle.  */
 
 static struct timespec timer_idleness_start_time;
index 9321cdc48758fd905b809efcb222ccf3508da965..7f9b5ac59d140949d021fe391aa101f98cf02367 100644 (file)
@@ -286,12 +286,6 @@ static int read_process_output (Lisp_Object, int);
 static void handle_child_signal (int);
 static void create_pty (Lisp_Object);
 
-/* If we support a window system, turn on the code to poll periodically
-   to detect C-g.  It isn't actually used when doing interrupt input.  */
-#ifdef HAVE_WINDOW_SYSTEM
-#define POLL_FOR_INPUT
-#endif
-
 static Lisp_Object get_process (register Lisp_Object name);
 static void exec_sentinel (Lisp_Object proc, Lisp_Object reason);