diff options
Diffstat (limited to 'src/term.c')
| -rw-r--r-- | src/term.c | 18 |
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); |