aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCourtney Bane2011-05-17 21:26:48 -0300
committerStefan Monnier2011-05-17 21:26:48 -0300
commit04f2d78b95aee20f49df0a612005fdb67312e2b7 (patch)
tree9349109d54f5143ead827e4e525a7dd1828ffd8c
parent8a70d4b1e2543aa6d920cb3e77ab23c8f49a0a69 (diff)
downloademacs-04f2d78b95aee20f49df0a612005fdb67312e2b7.tar.gz
emacs-04f2d78b95aee20f49df0a612005fdb67312e2b7.zip
* src/term.c (Fresume_tty): Restore hooks before reinitializing.
Fixes: debbugs:8687
-rw-r--r--src/ChangeLog60
-rw-r--r--src/term.c1
2 files changed, 33 insertions, 28 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index ceb45afebc5..ddd3797c837 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12011-05-18 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
2
3 * term.c (Fresume_tty): Restore hooks before reinitializing (bug#8687).
4
12011-05-12 Drew Adams <drew.adams@oracle.com> 52011-05-12 Drew Adams <drew.adams@oracle.com>
2 6
3 * textprop.c (Fprevious_single_char_property_change): Doc fix (bug#8655). 7 * textprop.c (Fprevious_single_char_property_change): Doc fix (bug#8655).
@@ -8,8 +12,8 @@
8 `width' to `bar_area_x' and `bar_area_width', respectively. 12 `width' to `bar_area_x' and `bar_area_width', respectively.
9 (x_scroll_run): Take account of fringe background extension. 13 (x_scroll_run): Take account of fringe background extension.
10 14
11 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]: Rename 15 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
12 local vars `left' and `width' to `bar_area_x' and 16 Rename local vars `left' and `width' to `bar_area_x' and
13 `bar_area_width', respectively. 17 `bar_area_width', respectively.
14 (x_scroll_run) [USE_TOOLKIT_SCROLL_BARS]: Take account of fringe 18 (x_scroll_run) [USE_TOOLKIT_SCROLL_BARS]: Take account of fringe
15 background extension. 19 background extension.
@@ -126,8 +130,8 @@
126 * dbusbind.c: Do not use XPNTR on a value that may be an integer. 130 * dbusbind.c: Do not use XPNTR on a value that may be an integer.
127 Reported by Stefan Monnier in 131 Reported by Stefan Monnier in
128 <http://lists.gnu.org/archive/html/emacs-devel/2011-04/msg00919.html>. 132 <http://lists.gnu.org/archive/html/emacs-devel/2011-04/msg00919.html>.
129 (xd_remove_watch, Fdbus_init_bus, xd_read_queued_messages): Use 133 (xd_remove_watch, Fdbus_init_bus, xd_read_queued_messages):
130 SYMBOLP-guarded XSYMBOL, not XPNTR. 134 Use SYMBOLP-guarded XSYMBOL, not XPNTR.
131 135
132 * lisp.h (EMACS_INTPTR): Remove. All uses changed to intptr_t. 136 * lisp.h (EMACS_INTPTR): Remove. All uses changed to intptr_t.
133 (EMACS_UINTPTR): Likewise, with uintptr_t. 137 (EMACS_UINTPTR): Likewise, with uintptr_t.
@@ -313,8 +317,8 @@
313 * callproc.c: Indentation fixup. 317 * callproc.c: Indentation fixup.
314 318
315 * sysdep.c (wait_for_termination_1): Make static. 319 * sysdep.c (wait_for_termination_1): Make static.
316 (wait_for_termination, interruptible_wait_for_termination): Move 320 (wait_for_termination, interruptible_wait_for_termination):
317 after wait_for_termination_1. 321 Move after wait_for_termination_1.
318 322
3192011-05-01 Lars Magne Ingebrigtsen <larsi@gnus.org> 3232011-05-01 Lars Magne Ingebrigtsen <larsi@gnus.org>
320 324
@@ -430,8 +434,8 @@
430 (emacs_gnutls_write): Don't use uninitialized rtnval if nbyte <= 0. 434 (emacs_gnutls_write): Don't use uninitialized rtnval if nbyte <= 0.
431 435
432 * lisp.h: Fix a problem with aliasing and vector headers. (Bug#8546) 436 * lisp.h: Fix a problem with aliasing and vector headers. (Bug#8546)
433 GCC 4.6.0 optimizes based on type-based alias analysis. For 437 GCC 4.6.0 optimizes based on type-based alias analysis.
434 example, if b is of type struct buffer * and v of type struct 438 For example, if b is of type struct buffer * and v of type struct
435 Lisp_Vector *, then gcc -O2 was incorrectly assuming that &b->size 439 Lisp_Vector *, then gcc -O2 was incorrectly assuming that &b->size
436 != &v->size, and therefore "v->size = 1; b->size = 2; return 440 != &v->size, and therefore "v->size = 1; b->size = 2; return
437 v->size;" must therefore return 1. This assumption is incorrect 441 v->size;" must therefore return 1. This assumption is incorrect
@@ -451,8 +455,8 @@
451 (XSETPSEUDOVECTOR): Rewrite in terms of XSETTYPED_PSEUDOVECTOR. 455 (XSETPSEUDOVECTOR): Rewrite in terms of XSETTYPED_PSEUDOVECTOR.
452 (XSETSUBR): Rewrite in terms of XSETTYPED_PSEUDOVECTOR and XSIZE, 456 (XSETSUBR): Rewrite in terms of XSETTYPED_PSEUDOVECTOR and XSIZE,
453 since Lisp_Subr is a special case (no "next" field). 457 since Lisp_Subr is a special case (no "next" field).
454 (ASIZE): Now uses header.size rather than size. All 458 (ASIZE): Now uses header.size rather than size.
455 previous uses of XVECTOR (foo)->size replaced to use this macro, 459 All previous uses of XVECTOR (foo)->size replaced to use this macro,
456 to avoid the hassle of writing XVECTOR (foo)->header.size. 460 to avoid the hassle of writing XVECTOR (foo)->header.size.
457 (struct vectorlike_header): New type. 461 (struct vectorlike_header): New type.
458 (TYPED_PSEUDOVECTORP): New macro, also specifying the C type of the 462 (TYPED_PSEUDOVECTORP): New macro, also specifying the C type of the
@@ -501,7 +505,7 @@
501 Break out the floating-point parsing into a new 505 Break out the floating-point parsing into a new
502 function string_to_number, so that Fstring_to_number parses 506 function string_to_number, so that Fstring_to_number parses
503 floating point numbers consistently with the Lisp reader. 507 floating point numbers consistently with the Lisp reader.
504 (digit_to_number): Moved here from data.c. Make it static inline. 508 (digit_to_number): Move here from data.c. Make it static inline.
505 (E_CHAR, EXP_INT): Remove, replacing with ... 509 (E_CHAR, EXP_INT): Remove, replacing with ...
506 (E_EXP): New macro, to solve the "1.0e+" problem mentioned below. 510 (E_EXP): New macro, to solve the "1.0e+" problem mentioned below.
507 (string_to_number): New function, replacing isfloat_string. 511 (string_to_number): New function, replacing isfloat_string.
@@ -738,8 +742,8 @@
738 Fix doprnt so it could be used again safely in `verror'. (Bug#8435) 742 Fix doprnt so it could be used again safely in `verror'. (Bug#8435)
739 * doprnt.c: Include limits.h. 743 * doprnt.c: Include limits.h.
740 (SIZE_MAX): New macro. 744 (SIZE_MAX): New macro.
741 (doprnt): Return a size_t value. 2nd arg is now size_t. Many 745 (doprnt): Return a size_t value. 2nd arg is now size_t.
742 local variables are now size_t instead of int or unsigned. 746 Many local variables are now size_t instead of int or unsigned.
743 Improve overflow protection. Support `l' modifier for integer 747 Improve overflow protection. Support `l' modifier for integer
744 conversions. Support %l conversion. Don't assume an EMACS_INT 748 conversions. Support %l conversion. Don't assume an EMACS_INT
745 argument for integer conversions and for %c. 749 argument for integer conversions and for %c.
@@ -940,8 +944,8 @@
940 944
941 * syntax.c (update_syntax_table): Declare 2nd argument EMACS_INT. 945 * syntax.c (update_syntax_table): Declare 2nd argument EMACS_INT.
942 946
943 * textprop.c (verify_interval_modification, interval_of): Declare 947 * textprop.c (verify_interval_modification, interval_of):
944 arguments EMACS_INT. 948 Declare arguments EMACS_INT.
945 949
946 * intervals.c (adjust_intervals_for_insertion): Declare arguments 950 * intervals.c (adjust_intervals_for_insertion): Declare arguments
947 EMACS_INT. 951 EMACS_INT.
@@ -1192,8 +1196,8 @@
1192 (free_realized_fontset) #if-0 the body, which does nothing. 1196 (free_realized_fontset) #if-0 the body, which does nothing.
1193 (face_suitable_for_char_p): #if-0, as it's never called. 1197 (face_suitable_for_char_p): #if-0, as it's never called.
1194 * fontset.h (face_suitable_for_char_p): Remove decl. 1198 * fontset.h (face_suitable_for_char_p): Remove decl.
1195 * xfaces.c (face_at_string_position): Use 1199 * xfaces.c (face_at_string_position):
1196 FACE_SUITABLE_FOR_ASCII_CHAR_P, not FACE_SUITABLE_FOR_CHAR_P, 1200 Use FACE_SUITABLE_FOR_ASCII_CHAR_P, not FACE_SUITABLE_FOR_CHAR_P,
1197 since 0 is always ASCII. 1201 since 0 is always ASCII.
1198 1202
1199 * fns.c (weak_hash_tables): Now static. 1203 * fns.c (weak_hash_tables): Now static.
@@ -1302,8 +1306,8 @@
1302 (last_point_position_window): Remove decls. 1306 (last_point_position_window): Remove decls.
1303 * keyboard.c: Make these variables static. 1307 * keyboard.c: Make these variables static.
1304 1308
1305 * coding.h (coding, code_convert_region, encode_coding_gap): Remove 1309 * coding.h (coding, code_convert_region, encode_coding_gap):
1306 decls. 1310 Remove decls.
1307 * coding.c (Vsjis_coding_system, Vbig5_coding_system): 1311 * coding.c (Vsjis_coding_system, Vbig5_coding_system):
1308 (iso_code_class, detect_coding, code_convert_region): Now static. 1312 (iso_code_class, detect_coding, code_convert_region): Now static.
1309 (encode_coding_gap): Remove; unused. 1313 (encode_coding_gap): Remove; unused.
@@ -1334,7 +1338,7 @@
1334 exported only to the debugger. 1338 exported only to the debugger.
1335 1339
1336 * atimer.c (alarm_signal_handler, run_all_atimers): Now static. 1340 * atimer.c (alarm_signal_handler, run_all_atimers): Now static.
1337 * atimer.h (run_all_atimers): Removed; not exported. 1341 * atimer.h (run_all_atimers): Remove; not exported.
1338 1342
1339 font.c: Make copy_font_spec and merge_font_spec ordinary C functions. 1343 font.c: Make copy_font_spec and merge_font_spec ordinary C functions.
1340 * font.c (copy_font_spec): Rename from Fcopy_font_spec, since it 1344 * font.c (copy_font_spec): Rename from Fcopy_font_spec, since it
@@ -1589,8 +1593,8 @@
1589 1593
15902011-04-09 Chong Yidong <cyd@stupidchicken.com> 15942011-04-09 Chong Yidong <cyd@stupidchicken.com>
1591 1595
1592 * ftfont.c (get_adstyle_property, ftfont_pattern_entity): Use 1596 * ftfont.c (get_adstyle_property, ftfont_pattern_entity):
1593 unsigned char, to match FcChar8 type definition. 1597 Use unsigned char, to match FcChar8 type definition.
1594 1598
1595 * xterm.c (handle_one_xevent): 1599 * xterm.c (handle_one_xevent):
1596 * xmenu.c (create_and_show_popup_menu): 1600 * xmenu.c (create_and_show_popup_menu):
@@ -1663,8 +1667,8 @@
1663 1667
16642011-04-06 Chong Yidong <cyd@stupidchicken.com> 16682011-04-06 Chong Yidong <cyd@stupidchicken.com>
1665 1669
1666 * process.c (Flist_processes): Removed to Lisp. 1670 * process.c (Flist_processes): Remove to Lisp.
1667 (list_processes_1): Deleted. 1671 (list_processes_1): Delete.
1668 1672
16692011-04-06 Eli Zaretskii <eliz@gnu.org> 16732011-04-06 Eli Zaretskii <eliz@gnu.org>
1670 1674
@@ -1922,8 +1926,8 @@
1922 * callint.c (Fcall_interactively): Preserve lexical-binding mode for 1926 * callint.c (Fcall_interactively): Preserve lexical-binding mode for
1923 interactive spec. 1927 interactive spec.
1924 1928
1925 * bytecode.c (Bstack_ref, Bstack_set, Bstack_set2, BdiscardN): New 1929 * bytecode.c (Bstack_ref, Bstack_set, Bstack_set2, BdiscardN):
1926 byte-codes. 1930 New byte-codes.
1927 (exec_byte_code): New function extracted from Fbyte_code to handle new 1931 (exec_byte_code): New function extracted from Fbyte_code to handle new
1928 calling convention for byte-code-functions. Add new byte-codes. 1932 calling convention for byte-code-functions. Add new byte-codes.
1929 1933
@@ -1938,8 +1942,8 @@
19382011-03-31 Eli Zaretskii <eliz@gnu.org> 19422011-03-31 Eli Zaretskii <eliz@gnu.org>
1939 1943
1940 * xdisp.c (SCROLL_LIMIT): New macro. 1944 * xdisp.c (SCROLL_LIMIT): New macro.
1941 (try_scrolling): Use it when setting scroll_limit. Limit 1945 (try_scrolling): Use it when setting scroll_limit.
1942 scrolling to 100 screen lines. 1946 Limit scrolling to 100 screen lines.
1943 (redisplay_window): Even when falling back on "recentering", 1947 (redisplay_window): Even when falling back on "recentering",
1944 position point in the window according to scroll-conservatively, 1948 position point in the window according to scroll-conservatively,
1945 scroll-margin, and scroll-*-aggressively variables. (Bug#6671) 1949 scroll-margin, and scroll-*-aggressively variables. (Bug#6671)
diff --git a/src/term.c b/src/term.c
index c68228cc51a..519f04ca8fe 100644
--- a/src/term.c
+++ b/src/term.c
@@ -2595,6 +2595,7 @@ frame's terminal). */)
2595 FRAME_SET_VISIBLE (XFRAME (t->display_info.tty->top_frame), 1); 2595 FRAME_SET_VISIBLE (XFRAME (t->display_info.tty->top_frame), 1);
2596 } 2596 }
2597 2597
2598 set_tty_hooks (t);
2598 init_sys_modes (t->display_info.tty); 2599 init_sys_modes (t->display_info.tty);
2599 2600
2600 { 2601 {