aboutsummaryrefslogtreecommitdiffstats
path: root/src/term.c
diff options
context:
space:
mode:
authorDan Nicolaescu2007-09-21 20:19:10 +0000
committerDan Nicolaescu2007-09-21 20:19:10 +0000
commit23d4cba5c7601c1a3bb3d2c79e535dab8d9adac0 (patch)
tree1b638a1e924d8a7af594c2ceb392e3d7932ba645 /src/term.c
parent71f44e7ad49b434c191a84fcd46a7dfa94894735 (diff)
downloademacs-23d4cba5c7601c1a3bb3d2c79e535dab8d9adac0.tar.gz
emacs-23d4cba5c7601c1a3bb3d2c79e535dab8d9adac0.zip
* xt-mouse.el (xterm-mouse-mode): Re-enable suspend-tty-functions.
* term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning up the tty state.
Diffstat (limited to 'src/term.c')
-rw-r--r--src/term.c19
1 files changed, 11 insertions, 8 deletions
diff --git a/src/term.c b/src/term.c
index 160e387e98d..be3430574f7 100644
--- a/src/term.c
+++ b/src/term.c
@@ -2244,6 +2244,17 @@ A suspended tty may be resumed by calling `resume-tty' on it. */)
2244 2244
2245 if (f) 2245 if (f)
2246 { 2246 {
2247 /* First run `suspend-tty-functions' and then clean up the tty
2248 state because `suspend-tty-functions' might need to change
2249 the tty state. */
2250 if (!NILP (Vrun_hooks))
2251 {
2252 Lisp_Object args[2];
2253 args[0] = intern ("suspend-tty-functions");
2254 XSETTERMINAL (args[1], t);
2255 Frun_hook_with_args (2, args);
2256 }
2257
2247 reset_sys_modes (t->display_info.tty); 2258 reset_sys_modes (t->display_info.tty);
2248 2259
2249 delete_keyboard_wait_descriptor (fileno (f)); 2260 delete_keyboard_wait_descriptor (fileno (f));
@@ -2258,14 +2269,6 @@ A suspended tty may be resumed by calling `resume-tty' on it. */)
2258 if (FRAMEP (t->display_info.tty->top_frame)) 2269 if (FRAMEP (t->display_info.tty->top_frame))
2259 FRAME_SET_VISIBLE (XFRAME (t->display_info.tty->top_frame), 0); 2270 FRAME_SET_VISIBLE (XFRAME (t->display_info.tty->top_frame), 0);
2260 2271
2261 /* Run `suspend-tty-functions'. */
2262 if (!NILP (Vrun_hooks))
2263 {
2264 Lisp_Object args[2];
2265 args[0] = intern ("suspend-tty-functions");
2266 XSETTERMINAL (args[1], t);
2267 Frun_hook_with_args (2, args);
2268 }
2269 } 2272 }
2270 2273
2271 /* Clear display hooks to prevent further output. */ 2274 /* Clear display hooks to prevent further output. */