aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorKaroly Lorentey2004-01-11 02:45:44 +0000
committerKaroly Lorentey2004-01-11 02:45:44 +0000
commit4ca927b4e0eb688a0eb224463288443164dd716f (patch)
tree07e786aa4aba5640b38a872163b8960c86368d92 /lib-src
parent8f1ce42333b410e736053a7c5cbbf102032c84f2 (diff)
downloademacs-4ca927b4e0eb688a0eb224463288443164dd716f.tar.gz
emacs-4ca927b4e0eb688a0eb224463288443164dd716f.zip
Fix C-g handling with multiple ttys.
src/sysdep.c (init_sys_modes): Disable interrupt and quit keys on secondary terminals. Added a big fat comment about this. lib-src/emacsclient.c (init_signals): Don't pass SIGINT and SIGQUIT to Emacs. src/keyboard.c (interrupt_signal): Exit Emacs if there are no frames on the controlling tty. Otherwise set internal_last_event_frame to the controlling tty's top frame. src/term.c (ring_bell, tty_ring_bell): Don't look at updating_frame. git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-52
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/emacsclient.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c
index 356784ae45c..cfbf73a20c7 100644
--- a/lib-src/emacsclient.c
+++ b/lib-src/emacsclient.c
@@ -299,8 +299,14 @@ init_signals (void)
299{ 299{
300 /* Set up signal handlers. */ 300 /* Set up signal handlers. */
301 signal (SIGWINCH, pass_signal_to_emacs); 301 signal (SIGWINCH, pass_signal_to_emacs);
302
303 /* Don't pass SIGINT and SIGQUIT to Emacs, because it has no way of
304 deciding which terminal the signal came from. C-g is now a
305 normal input event on secondary terminals. */
306#if 0
302 signal (SIGINT, pass_signal_to_emacs); 307 signal (SIGINT, pass_signal_to_emacs);
303 signal (SIGQUIT, pass_signal_to_emacs); 308 signal (SIGQUIT, pass_signal_to_emacs);
309#endif
304} 310}
305 311
306 312