aboutsummaryrefslogtreecommitdiffstats
path: root/src/term.c
diff options
context:
space:
mode:
authorStefan Monnier2011-03-31 00:24:03 -0400
committerStefan Monnier2011-03-31 00:24:03 -0400
commit40d83b412f584cc02e68d4eac8fd5e6eb769e2fe (patch)
treeb56f27a7e6d75a8c1fd27b00179a27b5efea0a32 /src/term.c
parentf488fb6528738131ef41859e1f04125f2e50efce (diff)
parent44f230aa043ebb222aa0876b44d70484d5dd38db (diff)
downloademacs-40d83b412f584cc02e68d4eac8fd5e6eb769e2fe.tar.gz
emacs-40d83b412f584cc02e68d4eac8fd5e6eb769e2fe.zip
Merge from trunk
Diffstat (limited to 'src/term.c')
-rw-r--r--src/term.c28
1 files changed, 12 insertions, 16 deletions
diff --git a/src/term.c b/src/term.c
index e84bbe125f8..fc7726298c5 100644
--- a/src/term.c
+++ b/src/term.c
@@ -1952,7 +1952,7 @@ produce_glyphless_glyph (struct it *it, int for_no_font, Lisp_Object acronym)
1952 1952
1953 it->pixel_width = len; 1953 it->pixel_width = len;
1954 it->nglyphs = len; 1954 it->nglyphs = len;
1955 if (len > 0 && it->glyph_row) 1955 if (it->glyph_row)
1956 append_glyphless_glyph (it, face_id, str); 1956 append_glyphless_glyph (it, face_id, str);
1957} 1957}
1958 1958
@@ -2500,13 +2500,10 @@ A suspended tty may be resumed by calling `resume-tty' on it. */)
2500 /* First run `suspend-tty-functions' and then clean up the tty 2500 /* First run `suspend-tty-functions' and then clean up the tty
2501 state because `suspend-tty-functions' might need to change 2501 state because `suspend-tty-functions' might need to change
2502 the tty state. */ 2502 the tty state. */
2503 if (!NILP (Vrun_hooks)) 2503 Lisp_Object args[2];
2504 { 2504 args[0] = intern ("suspend-tty-functions");
2505 Lisp_Object args[2]; 2505 XSETTERMINAL (args[1], t);
2506 args[0] = intern ("suspend-tty-functions"); 2506 Frun_hook_with_args (2, args);
2507 XSETTERMINAL (args[1], t);
2508 Frun_hook_with_args (2, args);
2509 }
2510 2507
2511 reset_sys_modes (t->display_info.tty); 2508 reset_sys_modes (t->display_info.tty);
2512 delete_keyboard_wait_descriptor (fileno (f)); 2509 delete_keyboard_wait_descriptor (fileno (f));
@@ -2596,14 +2593,13 @@ frame's terminal). */)
2596 2593
2597 init_sys_modes (t->display_info.tty); 2594 init_sys_modes (t->display_info.tty);
2598 2595
2599 /* Run `resume-tty-functions'. */ 2596 {
2600 if (!NILP (Vrun_hooks)) 2597 /* Run `resume-tty-functions'. */
2601 { 2598 Lisp_Object args[2];
2602 Lisp_Object args[2]; 2599 args[0] = intern ("resume-tty-functions");
2603 args[0] = intern ("resume-tty-functions"); 2600 XSETTERMINAL (args[1], t);
2604 XSETTERMINAL (args[1], t); 2601 Frun_hook_with_args (2, args);
2605 Frun_hook_with_args (2, args); 2602 }
2606 }
2607 } 2603 }
2608 2604
2609 set_tty_hooks (t); 2605 set_tty_hooks (t);