aboutsummaryrefslogtreecommitdiffstats
path: root/src/xterm.c
diff options
context:
space:
mode:
authorJoakim Verona2012-09-19 01:09:51 +0200
committerJoakim Verona2012-09-19 01:09:51 +0200
commit6c86337db3f2b22977d7b94b054458a2d446c504 (patch)
tree04725c50cbd76c8ffd0faf4cdce895a89a506a58 /src/xterm.c
parentaac9139d11cf7f9ee84d931ada85be8fa0c90f21 (diff)
parentfefa299077c02a931e5e72f7646e3dfa28f5e8ff (diff)
downloademacs-6c86337db3f2b22977d7b94b054458a2d446c504.tar.gz
emacs-6c86337db3f2b22977d7b94b054458a2d446c504.zip
not compiling yet
Diffstat (limited to 'src/xterm.c')
-rw-r--r--src/xterm.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 8a702800c38..5bc87d0ec64 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -22,7 +22,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
22 22
23#include <config.h> 23#include <config.h>
24#include <stdio.h> 24#include <stdio.h>
25#include <setjmp.h>
26 25
27#ifdef HAVE_X_WINDOWS 26#ifdef HAVE_X_WINDOWS
28 27
@@ -47,7 +46,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
47 46
48#include <fcntl.h> 47#include <fcntl.h>
49#include <errno.h> 48#include <errno.h>
50#include <setjmp.h>
51#include <sys/stat.h> 49#include <sys/stat.h>
52/* Caused redefinition of DBL_DIG on Netbsd; seems not to be needed. */ 50/* Caused redefinition of DBL_DIG on Netbsd; seems not to be needed. */
53/* #include <sys/param.h> */ 51/* #include <sys/param.h> */
@@ -7140,25 +7138,17 @@ XTread_socket (struct terminal *terminal, int expected, struct input_event *hold
7140 if (interrupt_input_blocked) 7138 if (interrupt_input_blocked)
7141 { 7139 {
7142 interrupt_input_pending = 1; 7140 interrupt_input_pending = 1;
7143#ifdef SYNC_INPUT
7144 pending_signals = 1; 7141 pending_signals = 1;
7145#endif
7146 return -1; 7142 return -1;
7147 } 7143 }
7148 7144
7149 interrupt_input_pending = 0; 7145 interrupt_input_pending = 0;
7150#ifdef SYNC_INPUT
7151 pending_signals = pending_atimers; 7146 pending_signals = pending_atimers;
7152#endif
7153 BLOCK_INPUT; 7147 BLOCK_INPUT;
7154 7148
7155 /* So people can tell when we have read the available input. */ 7149 /* So people can tell when we have read the available input. */
7156 input_signal_count++; 7150 input_signal_count++;
7157 7151
7158#ifndef SYNC_INPUT
7159 ++handling_signal;
7160#endif
7161
7162 /* For debugging, this gives a way to fake an I/O error. */ 7152 /* For debugging, this gives a way to fake an I/O error. */
7163 if (terminal->display_info.x == XTread_socket_fake_io_error) 7153 if (terminal->display_info.x == XTread_socket_fake_io_error)
7164 { 7154 {
@@ -7247,9 +7237,6 @@ XTread_socket (struct terminal *terminal, int expected, struct input_event *hold
7247 pending_autoraise_frame = 0; 7237 pending_autoraise_frame = 0;
7248 } 7238 }
7249 7239
7250#ifndef SYNC_INPUT
7251 --handling_signal;
7252#endif
7253 UNBLOCK_INPUT; 7240 UNBLOCK_INPUT;
7254 7241
7255 return count; 7242 return count;
@@ -7804,7 +7791,6 @@ x_connection_closed (Display *dpy, const char *error_message)
7804 7791
7805 error_msg = alloca (strlen (error_message) + 1); 7792 error_msg = alloca (strlen (error_message) + 1);
7806 strcpy (error_msg, error_message); 7793 strcpy (error_msg, error_message);
7807 handling_signal = 0;
7808 7794
7809 /* Inhibit redisplay while frames are being deleted. */ 7795 /* Inhibit redisplay while frames are being deleted. */
7810 specbind (Qinhibit_redisplay, Qt); 7796 specbind (Qinhibit_redisplay, Qt);
@@ -7892,7 +7878,7 @@ For details, see etc/PROBLEMS.\n",
7892 { 7878 {
7893 sigset_t unblocked; 7879 sigset_t unblocked;
7894 sigemptyset (&unblocked); 7880 sigemptyset (&unblocked);
7895#ifdef SIGIO 7881#ifdef USABLE_SIGIO
7896 sigaddset (&unblocked, SIGIO); 7882 sigaddset (&unblocked, SIGIO);
7897#endif 7883#endif
7898 sigaddset (&unblocked, SIGALRM); 7884 sigaddset (&unblocked, SIGALRM);
@@ -10439,10 +10425,8 @@ x_term_init (Lisp_Object display_name, char *xrm_option, char *resource_name)
10439 fcntl (connection, F_SETOWN, getpid ()); 10425 fcntl (connection, F_SETOWN, getpid ());
10440#endif /* ! defined (F_SETOWN) */ 10426#endif /* ! defined (F_SETOWN) */
10441 10427
10442#ifdef SIGIO
10443 if (interrupt_input) 10428 if (interrupt_input)
10444 init_sigio (connection); 10429 init_sigio (connection);
10445#endif /* ! defined (SIGIO) */
10446 10430
10447#ifdef USE_LUCID 10431#ifdef USE_LUCID
10448 { 10432 {