aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Antipov2014-06-05 10:24:54 +0400
committerDmitry Antipov2014-06-05 10:24:54 +0400
commitea633fff4c8e2e4a2b7f6117ba0a9d5a2685aecd (patch)
treed055b3ab685fea0ab59223f9dfcedd858576eccd
parent0d46b5f12c2e87c1fb2d5f103f2012c2f03a7ba9 (diff)
downloademacs-ea633fff4c8e2e4a2b7f6117ba0a9d5a2685aecd.tar.gz
emacs-ea633fff4c8e2e4a2b7f6117ba0a9d5a2685aecd.zip
* configure.ac (POLL_FOR_INPUT): Define with HAVE_WINDOW_SYSTEM.
* 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.
-rw-r--r--ChangeLog4
-rw-r--r--configure.ac1
-rw-r--r--nt/ChangeLog4
-rw-r--r--nt/inc/ms-w32.h1
-rw-r--r--src/ChangeLog5
-rw-r--r--src/keyboard.c6
-rw-r--r--src/process.c6
7 files changed, 15 insertions, 12 deletions
diff --git a/ChangeLog b/ChangeLog
index 8b2713a703d..721ab3193b4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
12014-06-05 Dmitry Antipov <dmantipov@yandex.ru>
2
3 * configure.ac (POLL_FOR_INPUT): Define with HAVE_WINDOW_SYSTEM.
4
12014-06-05 Paul Eggert <eggert@cs.ucla.edu> 52014-06-05 Paul Eggert <eggert@cs.ucla.edu>
2 6
3 * configure.ac: --without-all now implies --without-xft, --disable-acl. 7 * configure.ac: --without-all now implies --without-xft, --disable-acl.
diff --git a/configure.ac b/configure.ac
index fbfedb02795..f5485942bd8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -4847,6 +4847,7 @@ AC_SUBST(LD_SWITCH_SYSTEM_TEMACS)
4847## Common for all window systems 4847## Common for all window systems
4848if test "$window_system" != "none"; then 4848if test "$window_system" != "none"; then
4849 AC_DEFINE(HAVE_WINDOW_SYSTEM, 1, [Define if you have a window system.]) 4849 AC_DEFINE(HAVE_WINDOW_SYSTEM, 1, [Define if you have a window system.])
4850 AC_DEFINE(POLL_FOR_INPUT, 1, [Define if you poll periodically to detect C-g.])
4850 WINDOW_SYSTEM_OBJ="fontset.o fringe.o image.o" 4851 WINDOW_SYSTEM_OBJ="fontset.o fringe.o image.o"
4851fi 4852fi
4852 4853
diff --git a/nt/ChangeLog b/nt/ChangeLog
index 3c614b8ebec..cbbb5814762 100644
--- a/nt/ChangeLog
+++ b/nt/ChangeLog
@@ -1,3 +1,7 @@
12014-06-05 Dmitry Antipov <dmantipov@yandex.ru>
2
3 * inc/ms-w32.h (POLL_FOR_INPUT): Define with HAVE_WINDOW_SYSTEM.
4
12014-05-29 Eli Zaretskii <eliz@gnu.org> 52014-05-29 Eli Zaretskii <eliz@gnu.org>
2 6
3 * Makefile.in (DONT_INSTALL): Now empty. 7 * Makefile.in (DONT_INSTALL): Now empty.
diff --git a/nt/inc/ms-w32.h b/nt/inc/ms-w32.h
index 1cf78bac83a..edb143c68d4 100644
--- a/nt/inc/ms-w32.h
+++ b/nt/inc/ms-w32.h
@@ -159,6 +159,7 @@ extern char *getenv ();
159#ifdef HAVE_NTGUI 159#ifdef HAVE_NTGUI
160# ifndef HAVE_WINDOW_SYSTEM 160# ifndef HAVE_WINDOW_SYSTEM
161# define HAVE_WINDOW_SYSTEM 1 161# define HAVE_WINDOW_SYSTEM 1
162# define POLL_FOR_INPUT 1
162# endif 163# endif
163#endif 164#endif
164 165
diff --git a/src/ChangeLog b/src/ChangeLog
index 8cbd4c54e33..2a149a07214 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12014-06-05 Dmitry Antipov <dmantipov@yandex.ru>
2
3 * keyboard.c, process.c: Do not define POLL_FOR_INPUT here
4 because it will be defined in generated config.h if needed.
5
12014-06-04 Dmitry Antipov <dmantipov@yandex.ru> 62014-06-04 Dmitry Antipov <dmantipov@yandex.ru>
2 7
3 Use terminal-specific hooks to display popup dialogs. 8 Use terminal-specific hooks to display popup dialogs.
diff --git a/src/keyboard.c b/src/keyboard.c
index 17bfc81b82f..80b1f521310 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -377,12 +377,6 @@ bool interrupt_input;
377/* Nonzero while interrupts are temporarily deferred during redisplay. */ 377/* Nonzero while interrupts are temporarily deferred during redisplay. */
378bool interrupts_deferred; 378bool interrupts_deferred;
379 379
380/* If we support a window system, turn on the code to poll periodically
381 to detect C-g. It isn't actually used when doing interrupt input. */
382#ifdef HAVE_WINDOW_SYSTEM
383#define POLL_FOR_INPUT
384#endif
385
386/* The time when Emacs started being idle. */ 380/* The time when Emacs started being idle. */
387 381
388static struct timespec timer_idleness_start_time; 382static struct timespec timer_idleness_start_time;
diff --git a/src/process.c b/src/process.c
index 9321cdc4875..7f9b5ac59d1 100644
--- a/src/process.c
+++ b/src/process.c
@@ -286,12 +286,6 @@ static int read_process_output (Lisp_Object, int);
286static void handle_child_signal (int); 286static void handle_child_signal (int);
287static void create_pty (Lisp_Object); 287static void create_pty (Lisp_Object);
288 288
289/* If we support a window system, turn on the code to poll periodically
290 to detect C-g. It isn't actually used when doing interrupt input. */
291#ifdef HAVE_WINDOW_SYSTEM
292#define POLL_FOR_INPUT
293#endif
294
295static Lisp_Object get_process (register Lisp_Object name); 289static Lisp_Object get_process (register Lisp_Object name);
296static void exec_sentinel (Lisp_Object proc, Lisp_Object reason); 290static void exec_sentinel (Lisp_Object proc, Lisp_Object reason);
297 291