diff options
| author | Dmitry Antipov | 2014-06-05 10:24:54 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2014-06-05 10:24:54 +0400 |
| commit | ea633fff4c8e2e4a2b7f6117ba0a9d5a2685aecd (patch) | |
| tree | d055b3ab685fea0ab59223f9dfcedd858576eccd | |
| parent | 0d46b5f12c2e87c1fb2d5f103f2012c2f03a7ba9 (diff) | |
| download | emacs-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-- | ChangeLog | 4 | ||||
| -rw-r--r-- | configure.ac | 1 | ||||
| -rw-r--r-- | nt/ChangeLog | 4 | ||||
| -rw-r--r-- | nt/inc/ms-w32.h | 1 | ||||
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/keyboard.c | 6 | ||||
| -rw-r--r-- | src/process.c | 6 |
7 files changed, 15 insertions, 12 deletions
| @@ -1,3 +1,7 @@ | |||
| 1 | 2014-06-05 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 2 | |||
| 3 | * configure.ac (POLL_FOR_INPUT): Define with HAVE_WINDOW_SYSTEM. | ||
| 4 | |||
| 1 | 2014-06-05 Paul Eggert <eggert@cs.ucla.edu> | 5 | 2014-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 |
| 4848 | if test "$window_system" != "none"; then | 4848 | if 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" |
| 4851 | fi | 4852 | fi |
| 4852 | 4853 | ||
diff --git a/nt/ChangeLog b/nt/ChangeLog index 3c614b8ebec..cbbb5814762 100644 --- a/nt/ChangeLog +++ b/nt/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2014-06-05 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 2 | |||
| 3 | * inc/ms-w32.h (POLL_FOR_INPUT): Define with HAVE_WINDOW_SYSTEM. | ||
| 4 | |||
| 1 | 2014-05-29 Eli Zaretskii <eliz@gnu.org> | 5 | 2014-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 @@ | |||
| 1 | 2014-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 | |||
| 1 | 2014-06-04 Dmitry Antipov <dmantipov@yandex.ru> | 6 | 2014-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. */ |
| 378 | bool interrupts_deferred; | 378 | bool 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 | ||
| 388 | static struct timespec timer_idleness_start_time; | 382 | static 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); | |||
| 286 | static void handle_child_signal (int); | 286 | static void handle_child_signal (int); |
| 287 | static void create_pty (Lisp_Object); | 287 | static 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 | |||
| 295 | static Lisp_Object get_process (register Lisp_Object name); | 289 | static Lisp_Object get_process (register Lisp_Object name); |
| 296 | static void exec_sentinel (Lisp_Object proc, Lisp_Object reason); | 290 | static void exec_sentinel (Lisp_Object proc, Lisp_Object reason); |
| 297 | 291 | ||