aboutsummaryrefslogtreecommitdiffstats
path: root/src/term.c
diff options
context:
space:
mode:
authorJoakim Verona2015-01-25 21:19:27 +0100
committerJoakim Verona2015-01-25 21:19:27 +0100
commitd522fd8ca73e668bfafd0419bc5f71f2751cca24 (patch)
tree4b57a4d2d26e578035801f1c895dcfda5895e09d /src/term.c
parente5087278b9bcab5847ce63d80c0d74c27f50e719 (diff)
parenta3689d3c661fe36df971c875760f8d500b5ae994 (diff)
downloademacs-d522fd8ca73e668bfafd0419bc5f71f2751cca24.tar.gz
emacs-d522fd8ca73e668bfafd0419bc5f71f2751cca24.zip
Merge branch 'master' into xwidget
Diffstat (limited to 'src/term.c')
-rw-r--r--src/term.c18
1 files changed, 7 insertions, 11 deletions
diff --git a/src/term.c b/src/term.c
index d48bf7b6eaf..15d33b4e3ee 100644
--- a/src/term.c
+++ b/src/term.c
@@ -2253,10 +2253,9 @@ A suspended tty may be resumed by calling `resume-tty' on it. */)
2253 /* First run `suspend-tty-functions' and then clean up the tty 2253 /* First run `suspend-tty-functions' and then clean up the tty
2254 state because `suspend-tty-functions' might need to change 2254 state because `suspend-tty-functions' might need to change
2255 the tty state. */ 2255 the tty state. */
2256 Lisp_Object args[2]; 2256 Lisp_Object term;
2257 args[0] = intern ("suspend-tty-functions"); 2257 XSETTERMINAL (term, t);
2258 XSETTERMINAL (args[1], t); 2258 CALLN (Frun_hook_with_args, intern ("suspend-tty-functions"), term);
2259 Frun_hook_with_args (2, args);
2260 2259
2261 reset_sys_modes (t->display_info.tty); 2260 reset_sys_modes (t->display_info.tty);
2262 delete_keyboard_wait_descriptor (fileno (f)); 2261 delete_keyboard_wait_descriptor (fileno (f));
@@ -2353,13 +2352,10 @@ frame's terminal). */)
2353 set_tty_hooks (t); 2352 set_tty_hooks (t);
2354 init_sys_modes (t->display_info.tty); 2353 init_sys_modes (t->display_info.tty);
2355 2354
2356 { 2355 /* Run `resume-tty-functions'. */
2357 /* Run `resume-tty-functions'. */ 2356 Lisp_Object term;
2358 Lisp_Object args[2]; 2357 XSETTERMINAL (term, t);
2359 args[0] = intern ("resume-tty-functions"); 2358 CALLN (Frun_hook_with_args, intern ("resume-tty-functions"), term);
2360 XSETTERMINAL (args[1], t);
2361 Frun_hook_with_args (2, args);
2362 }
2363 } 2359 }
2364 2360
2365 set_tty_hooks (t); 2361 set_tty_hooks (t);