aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStefan Monnier2005-05-06 22:17:30 +0000
committerStefan Monnier2005-05-06 22:17:30 +0000
commit7ec64183c149b38c886352d60e2a062b4df8353a (patch)
tree83ab6a69f2418242e849b770dea1c870f0595f87 /src
parent226c2e40668f7716e44c4b722b4b25e38bf813ab (diff)
downloademacs-7ec64183c149b38c886352d60e2a062b4df8353a.tar.gz
emacs-7ec64183c149b38c886352d60e2a062b4df8353a.zip
(Fchar_table_range): Yet Another Int/Lisp_Object Mixup.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog86
-rw-r--r--src/fns.c2
2 files changed, 43 insertions, 45 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 112d6c21216..b5a0a2d6220 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12005-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * fns.c (Fchar_table_range): Yet Another Int/Lisp_Object Mixup.
4
12005-05-06 Eli Zaretskii <eliz@gnu.org> 52005-05-06 Eli Zaretskii <eliz@gnu.org>
2 6
3 * lread.c (Flocate_file_internal): Doc fix. 7 * lread.c (Flocate_file_internal): Doc fix.
@@ -15,10 +19,8 @@
15 (syms_of_macselect) [MAC_OSX]: Set default value of 19 (syms_of_macselect) [MAC_OSX]: Set default value of
16 Vmac_services_selection to PRIMARY. 20 Vmac_services_selection to PRIMARY.
17 21
18 * macterm.c (toolkit_scroll_bar_interaction): Remove unused 22 * macterm.c (toolkit_scroll_bar_interaction): Remove unused variable.
19 variable. 23 (mac_handle_tool_bar_click): Remove unused function and declaration.
20 (mac_handle_tool_bar_click): Remove unused function and
21 declaration.
22 [USE_TOOLKIT_SCROLL_BARS] (scroll_bar_timer_callback) 24 [USE_TOOLKIT_SCROLL_BARS] (scroll_bar_timer_callback)
23 (install_scroll_bar_timer, set_scroll_bar_timer) 25 (install_scroll_bar_timer, set_scroll_bar_timer)
24 (control_part_code_to_scroll_bar_part, construct_scroll_bar_click) 26 (control_part_code_to_scroll_bar_part, construct_scroll_bar_click)
@@ -30,29 +32,28 @@
30 [USE_TOOLKIT_SCROLL_BARS] (SCROLL_BAR_FIRST_DELAY) 32 [USE_TOOLKIT_SCROLL_BARS] (SCROLL_BAR_FIRST_DELAY)
31 (SCROLL_BAR_CONTINUOUS_DELAY): New macros. 33 (SCROLL_BAR_CONTINUOUS_DELAY): New macros.
32 (x_scroll_bar_create): Set control reference with NewControl. 34 (x_scroll_bar_create): Set control reference with NewControl.
33 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Initialize 35 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
34 track_top and track_height to nil. 36 Initialize track_top and track_height to nil.
35 (x_scroll_bar_set_handle, x_scroll_bar_note_movement): Put 37 (x_scroll_bar_set_handle, x_scroll_bar_note_movement):
36 functions in #ifndef USE_TOOLKIT_SCROLL_BARS. 38 Put functions in #ifndef USE_TOOLKIT_SCROLL_BARS.
37 (XTset_vertical_scroll_bar): Don't make space between scroll bar 39 (XTset_vertical_scroll_bar): Don't make space between scroll bar
38 and associated window. 40 and associated window.
39 (XTset_vertical_scroll_bar) [MAC_OSX]: Get scroll bar area width 41 (XTset_vertical_scroll_bar) [MAC_OSX]: Get scroll bar area width
40 from window config. 42 from window config.
41 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]: Set 43 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
42 track_top and track_height to nil when scroll bar size is changed. 44 Set track_top and track_height to nil when scroll bar size is changed.
43 Recalculate them if they are nil. 45 Recalculate them if they are nil.
44 (XTread_socket) [MAC_OSX]: Use control kind to determine if the 46 (XTread_socket) [MAC_OSX]: Use control kind to determine if the
45 clicked control is a scroll bar. 47 clicked control is a scroll bar.
46 (XTread_socket) [USE_TOOLKIT_SCROLL_BARS]: Use toolkit scroll bar 48 (XTread_socket) [USE_TOOLKIT_SCROLL_BARS]: Use toolkit scroll bar
47 event handler functions. Don't add modifiers to scroll bar click 49 event handler functions. Don't add modifiers to scroll bar click
48 events. Call scroll bar release handler when window is 50 events. Call scroll bar release handler when window is deactivated.
49 deactivated.
50 (mac_initialize): Remove unused code for X toolkit. 51 (mac_initialize): Remove unused code for X toolkit.
51 (syms_of_macterm) [!USE_TOOLKIT_SCROLL_BARS]: Initialize 52 (syms_of_macterm) [!USE_TOOLKIT_SCROLL_BARS]:
52 Vx_toolkit_scroll_bars to nil. 53 Initialize Vx_toolkit_scroll_bars to nil.
53 54
54 * macterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]: New 55 * macterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
55 members track_top and track_height. 56 New members track_top and track_height.
56 57
57 * sysselect.h [DARWIN || MAC_OSX]: Temporarily undefine 58 * sysselect.h [DARWIN || MAC_OSX]: Temporarily undefine
58 init_process when including sys/select.h. 59 init_process when including sys/select.h.
@@ -120,7 +121,7 @@
1202005-05-01 Kim F. Storm <storm@cua.dk> 1212005-05-01 Kim F. Storm <storm@cua.dk>
121 122
122 * xdisp.c (move_it_in_display_line_to): Stop if we move beyond 123 * xdisp.c (move_it_in_display_line_to): Stop if we move beyond
123 TO_CHARPOS. This may happen if last glyphs was an image or stretch 124 TO_CHARPOS. This may happen if last glyphs was an image or stretch
124 glyph. 125 glyph.
125 126
1262005-05-01 Luc Teirlinck <teirllm@auburn.edu> 1272005-05-01 Luc Teirlinck <teirllm@auburn.edu>
@@ -132,7 +133,7 @@
132 * xmenu.c [not HAVE_X_TOOLKIT] (xmenu_show): 133 * xmenu.c [not HAVE_X_TOOLKIT] (xmenu_show):
133 If user cancels the menu, quit unless FOR_CLICK. 134 If user cancels the menu, quit unless FOR_CLICK.
134 135
135 * macros.c (Vexecuting_kbd_macro): Renamed from Vexecuting_macro. 136 * macros.c (Vexecuting_kbd_macro): Rename from Vexecuting_macro.
136 All uses changed. 137 All uses changed.
137 (syms_of_macros): Define only executing-kbd-macro, not executing-macro. 138 (syms_of_macros): Define only executing-kbd-macro, not executing-macro.
138 * keyboard.c: Change Vexecuting_macro to Vexecuting_kbd_macro. 139 * keyboard.c: Change Vexecuting_macro to Vexecuting_kbd_macro.
@@ -154,8 +155,7 @@
154 155
1552005-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 1562005-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
156 157
157 * mac.c: Don't include time.h. Include sysselect.h after 158 * mac.c: Don't include time.h. Include sysselect.h after systime.h.
158 systime.h.
159 159
160 * macfns.c (Fx_server_version): Add BLOCK_INPUT around Gestalt. 160 * macfns.c (Fx_server_version): Add BLOCK_INPUT around Gestalt.
161 161
@@ -218,13 +218,12 @@
218 (mac.o): Depend on ccl.h. 218 (mac.o): Depend on ccl.h.
219 (macselect.o): New target. 219 (macselect.o): New target.
220 220
221 * emacs.c (main) [MAC_OS8 || MAC_OSX && HAVE_CARBON]: Call 221 * emacs.c (main) [MAC_OS8 || MAC_OSX && HAVE_CARBON]:
222 syms_of_macselect. 222 Call syms_of_macselect.
223 223
224 * frame.c (Fdelete_frame) [MAC_OS]: Call x_clear_frame_selections. 224 * frame.c (Fdelete_frame) [MAC_OS]: Call x_clear_frame_selections.
225 225
226 * mac.c [!TARGET_API_MAC_CARBON]: Don't include charset.h or 226 * mac.c [!TARGET_API_MAC_CARBON]: Don't include charset.h or coding.h.
227 coding.h.
228 (QCLIPBOARD): Remove variable. 227 (QCLIPBOARD): Remove variable.
229 (syms_of_mac): Don't initialize it. 228 (syms_of_mac): Don't initialize it.
230 (Fmac_paste_function, Fmac_cut_function, Fx_selection_exists_p): 229 (Fmac_paste_function, Fmac_cut_function, Fx_selection_exists_p):
@@ -238,10 +237,10 @@
238 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Likewise. 237 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Likewise.
239 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it. 238 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
240 239
241 * macterm.c (handling_window_update, terminate_flag): Remove 240 * macterm.c (handling_window_update, terminate_flag):
242 variables. 241 Remove variables.
243 (do_window_update, do_ae_quit_application, XTread_socket): Don't 242 (do_window_update, do_ae_quit_application, XTread_socket):
244 use them. 243 Don't use them.
245 (WNE_SLEEP_AT_SUSPEND, WNE_SLEEP_AT_RESUME): Don't define. 244 (WNE_SLEEP_AT_SUSPEND, WNE_SLEEP_AT_RESUME): Don't define.
246 [USE_CARBON_EVENTS && MAC_OSX] (mac_handle_service_event) 245 [USE_CARBON_EVENTS && MAC_OSX] (mac_handle_service_event)
247 (init_service_handler): Move to macselect.c. Remove declarations. 246 (init_service_handler): Move to macselect.c. Remove declarations.
@@ -336,8 +335,8 @@
336 Make a sub-chartable with correct initial value. 335 Make a sub-chartable with correct initial value.
337 336
338 * fns.c (Fset_char_table_range): Don't set slots used as default 337 * fns.c (Fset_char_table_range): Don't set slots used as default
339 values for ascii, eight-bit-control, eight-bit-graphic. Don't 338 values for ascii, eight-bit-control, eight-bit-graphic.
340 call Faref with charset-id. 339 Don't call Faref with charset-id.
341 (Fset_char_table_default): Document how to treat normal character 340 (Fset_char_table_default): Document how to treat normal character
342 argument. Handle special slots used as default values of ascii, 341 argument. Handle special slots used as default values of ascii,
343 eight-bit-control, eight-bit-control. Make a sub chartable if 342 eight-bit-control, eight-bit-control. Make a sub chartable if
@@ -372,8 +371,8 @@
372 create_text_encoding_info_alist instead. 371 create_text_encoding_info_alist instead.
373 (init_font_name_table) [TARGET_API_MAC_CARBON]: Use Font Manager 372 (init_font_name_table) [TARGET_API_MAC_CARBON]: Use Font Manager
374 routines also on Mac OS Classic. 373 routines also on Mac OS Classic.
375 (init_font_name_table) [!TARGET_API_MAC_CARBON]: Use 374 (init_font_name_table) [!TARGET_API_MAC_CARBON]:
376 add_font_name_table_entry. 375 Use add_font_name_table_entry.
377 (mac_do_list_fonts): Regard 0 in XLFD scaleble fields as 376 (mac_do_list_fonts): Regard 0 in XLFD scaleble fields as
378 specified. Derive unspecified scalable fields from specified one. 377 specified. Derive unspecified scalable fields from specified one.
379 (x_list_fonts): Consider Valternate_fontname_alist. 378 (x_list_fonts): Consider Valternate_fontname_alist.
@@ -471,8 +470,7 @@
471 470
472 * mac.c: Include charset.h and coding.h. 471 * mac.c: Include charset.h and coding.h.
473 [TARGET_API_MAC_CARBON] (Qutf_8): Remove extern. 472 [TARGET_API_MAC_CARBON] (Qutf_8): Remove extern.
474 [TARGET_API_MAC_CARBON] (cfstring_create_with_string): New 473 [TARGET_API_MAC_CARBON] (cfstring_create_with_string): New function.
475 function.
476 [TARGET_API_MAC_CARBON] (Fmac_get_preference): Use it. 474 [TARGET_API_MAC_CARBON] (Fmac_get_preference): Use it.
477 475
478 * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise. 476 * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
@@ -481,8 +479,8 @@
481 479
482 * macterm.c (x_autoselect_window_p): Remove variable. 480 * macterm.c (x_autoselect_window_p): Remove variable.
483 (last_window): New variable. 481 (last_window): New variable.
484 (XTreassert_line_highlight, x_change_line_highlight): Remove 482 (XTreassert_line_highlight, x_change_line_highlight):
485 declarations. 483 Remove declarations.
486 (mac_focus_changed, x_detect_focus_change): New functions and 484 (mac_focus_changed, x_detect_focus_change): New functions and
487 declarations. 485 declarations.
488 (XTextExtents16, front_emacs_window): Remove function. 486 (XTextExtents16, front_emacs_window): Remove function.
@@ -495,8 +493,8 @@
495 (XTread_socket): Move its contents here. Generate select-window 493 (XTread_socket): Move its contents here. Generate select-window
496 event on mouse movement if needed. Use x_detect_focus_change on 494 event on mouse movement if needed. Use x_detect_focus_change on
497 activate/deactivate events. Don't deiconify frame or invalidate 495 activate/deactivate events. Don't deiconify frame or invalidate
498 window rectangle when dnd items are dropped. Don't 496 window rectangle when dnd items are dropped.
499 activate/deactivate root control. 497 Don't activate/deactivate root control.
500 (frame_highlight, frame_unhighlight): Activate/deactivate root 498 (frame_highlight, frame_unhighlight): Activate/deactivate root
501 control here. 499 control here.
502 (syms_of_macterm): Delete DEFVAR_BOOL for x_autoselect_window_p. 500 (syms_of_macterm): Delete DEFVAR_BOOL for x_autoselect_window_p.
@@ -512,17 +510,17 @@
512 510
5132005-04-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 5112005-04-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
514 512
515 * mac.c [!TARGET_API_MAC_CARBON]: Include MacLocales.h. Don't 513 * mac.c [!TARGET_API_MAC_CARBON]: Include MacLocales.h.
516 include TextEncodingConverter.h. 514 Don't include TextEncodingConverter.h.
517 (mac_system_script_code, Vmac_system_locale): New variables. 515 (mac_system_script_code, Vmac_system_locale): New variables.
518 (syms_of_mac): Defvar them. 516 (syms_of_mac): Defvar them.
519 (mac_get_system_locale): New function. 517 (mac_get_system_locale): New function.
520 518
521 * macfns.c (x_set_name, x_set_title) [!TARGET_API_MAC_CARBON]: Use 519 * macfns.c (x_set_name, x_set_title) [!TARGET_API_MAC_CARBON]:
522 ENCODE_SYSTEM to encode title bar string. 520 Use ENCODE_SYSTEM to encode title bar string.
523 (x_create_tip_frame): Apply 2005-03-18 change for xfns.c. 521 (x_create_tip_frame): Apply 2005-03-18 change for xfns.c.
524 (Fx_file_dialog) [TARGET_API_MAC_CARBON && !MAC_OSX]: Use 522 (Fx_file_dialog) [TARGET_API_MAC_CARBON && !MAC_OSX]:
525 CFStringGetSystemEncoding to get system default string encoding. 523 Use CFStringGetSystemEncoding to get system default string encoding.
526 524
527 * macterm.c [!TARGET_API_MAC_CARBON]: Don't include 525 * macterm.c [!TARGET_API_MAC_CARBON]: Don't include
528 TextEncodingConverter.h. 526 TextEncodingConverter.h.
diff --git a/src/fns.c b/src/fns.c
index f0dff278117..fcb54d29a2c 100644
--- a/src/fns.c
+++ b/src/fns.c
@@ -2582,7 +2582,7 @@ Note that this function doesn't check the parent of CHAR_TABLE. */)
2582 { 2582 {
2583 size = ASIZE (range); 2583 size = ASIZE (range);
2584 if (size == 0) 2584 if (size == 0)
2585 args_out_of_range (range, 0); 2585 args_out_of_range (range, make_number (0));
2586 CHECK_NUMBER (AREF (range, 0)); 2586 CHECK_NUMBER (AREF (range, 0));
2587 charset_id = XINT (AREF (range, 0)); 2587 charset_id = XINT (AREF (range, 0));
2588 if (size > 1) 2588 if (size > 1)