diff options
| author | Ken Raeburn | 2000-06-18 20:14:37 +0000 |
|---|---|---|
| committer | Ken Raeburn | 2000-06-18 20:14:37 +0000 |
| commit | 52e386c2dc5082721412b9cccf961a5ab25eec0b (patch) | |
| tree | d251d0cc4fc034253a24a5cf6e29b0c287e28ad9 | |
| parent | dc1741f3a3cecb04f62708762aa586a420cafa08 (diff) | |
| download | emacs-52e386c2dc5082721412b9cccf961a5ab25eec0b.tar.gz emacs-52e386c2dc5082721412b9cccf961a5ab25eec0b.zip | |
fix up more Lisp_Object/int conversion issues
| -rw-r--r-- | src/ChangeLog | 22 | ||||
| -rw-r--r-- | src/charset.c | 2 | ||||
| -rw-r--r-- | src/coding.h | 2 | ||||
| -rw-r--r-- | src/keyboard.c | 3 | ||||
| -rw-r--r-- | src/sound.c | 2 | ||||
| -rw-r--r-- | src/xterm.c | 9 |
6 files changed, 34 insertions, 6 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 292eefd05ce..e5a1569f30b 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,25 @@ | |||
| 1 | 2000-06-18 Ken Raeburn <raeburn@gnu.org> | ||
| 2 | |||
| 3 | * charset.c (update_charset_table): Use XINT on "iso_final_char" | ||
| 4 | when treating it as an integer. | ||
| 5 | |||
| 6 | * coding.h (encode_coding_string): Declare. | ||
| 7 | |||
| 8 | * keyboard.c (read_key_sequence): Use XINT on "pos" when treating | ||
| 9 | it as an integer. | ||
| 10 | |||
| 11 | * keymap.c (Fwhere_is_internal): Rename argument "keymap" to | ||
| 12 | "xkeymap" to avoid shadowing the "enum map_type" value that needs | ||
| 13 | to be passed to get_local_map. | ||
| 14 | |||
| 15 | * sound.c (Fplay_sound): Don't call make_number on | ||
| 16 | Frun_hook_with_args count argument. | ||
| 17 | |||
| 18 | * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer | ||
| 19 | for lisp objects in X event structure data field, when lisp | ||
| 20 | objects are represented with unions. | ||
| 21 | (x_scroll_bar_to_input_event): Ditto. | ||
| 22 | |||
| 1 | 2000-06-16 Ken Raeburn <raeburn@gnu.org> | 23 | 2000-06-16 Ken Raeburn <raeburn@gnu.org> |
| 2 | 24 | ||
| 3 | * xdisp.c (decode_mode_spec): In "no_value" case, do NUL | 25 | * xdisp.c (decode_mode_spec): In "no_value" case, do NUL |
diff --git a/src/charset.c b/src/charset.c index 2c04743dac6..2ddb1b407dd 100644 --- a/src/charset.c +++ b/src/charset.c | |||
| @@ -562,7 +562,7 @@ update_charset_table (charset_id, dimension, chars, width, direction, | |||
| 562 | } | 562 | } |
| 563 | 563 | ||
| 564 | /* Update table iso_charset_table. */ | 564 | /* Update table iso_charset_table. */ |
| 565 | if (iso_final_char >= 0 | 565 | if (XINT (iso_final_char) >= 0 |
| 566 | && ISO_CHARSET_TABLE (dimension, chars, iso_final_char) < 0) | 566 | && ISO_CHARSET_TABLE (dimension, chars, iso_final_char) < 0) |
| 567 | ISO_CHARSET_TABLE (dimension, chars, iso_final_char) = charset; | 567 | ISO_CHARSET_TABLE (dimension, chars, iso_final_char) = charset; |
| 568 | } | 568 | } |
diff --git a/src/coding.h b/src/coding.h index e3643580011..7dd39ee25dd 100644 --- a/src/coding.h +++ b/src/coding.h | |||
| @@ -636,6 +636,8 @@ extern Lisp_Object code_convert_string P_ ((Lisp_Object, | |||
| 636 | extern Lisp_Object code_convert_string_norecord P_ ((Lisp_Object, Lisp_Object, | 636 | extern Lisp_Object code_convert_string_norecord P_ ((Lisp_Object, Lisp_Object, |
| 637 | int)); | 637 | int)); |
| 638 | extern void setup_raw_text_coding_system P_ ((struct coding_system *)); | 638 | extern void setup_raw_text_coding_system P_ ((struct coding_system *)); |
| 639 | extern Lisp_Object encode_coding_string P_ ((Lisp_Object, | ||
| 640 | struct coding_system *, int)); | ||
| 639 | extern Lisp_Object Qcoding_system, Qeol_type, Qcoding_category_index; | 641 | extern Lisp_Object Qcoding_system, Qeol_type, Qcoding_category_index; |
| 640 | extern Lisp_Object Qraw_text, Qemacs_mule; | 642 | extern Lisp_Object Qraw_text, Qemacs_mule; |
| 641 | extern Lisp_Object Qbuffer_file_coding_system; | 643 | extern Lisp_Object Qbuffer_file_coding_system; |
diff --git a/src/keyboard.c b/src/keyboard.c index fe3da4be8a8..9a2f18f043c 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -7974,7 +7974,8 @@ read_key_sequence (keybuf, bufsize, prompt, dont_downcase_last, | |||
| 7974 | string = POSN_STRING (EVENT_START (key)); | 7974 | string = POSN_STRING (EVENT_START (key)); |
| 7975 | pos = XCDR (string); | 7975 | pos = XCDR (string); |
| 7976 | string = XCAR (string); | 7976 | string = XCAR (string); |
| 7977 | if (pos >= 0 && pos < XSTRING (string)->size) | 7977 | if (XINT (pos) >= 0 |
| 7978 | && XINT (pos) < XSTRING (string)->size) | ||
| 7978 | { | 7979 | { |
| 7979 | map = Fget_text_property (pos, Qlocal_map, string); | 7980 | map = Fget_text_property (pos, Qlocal_map, string); |
| 7980 | if (!NILP (map)) | 7981 | if (!NILP (map)) |
diff --git a/src/sound.c b/src/sound.c index 52fe1c18bcd..965285a9c5f 100644 --- a/src/sound.c +++ b/src/sound.c | |||
| @@ -435,7 +435,7 @@ a system-dependent default device name is used.") | |||
| 435 | 435 | ||
| 436 | args[0] = Qplay_sound_functions; | 436 | args[0] = Qplay_sound_functions; |
| 437 | args[1] = sound; | 437 | args[1] = sound; |
| 438 | Frun_hook_with_args (make_number (2), args); | 438 | Frun_hook_with_args (2, args); |
| 439 | 439 | ||
| 440 | /* There is only one type of device we currently support, the VOX | 440 | /* There is only one type of device we currently support, the VOX |
| 441 | sound driver. Set up the device interface functions for that | 441 | sound driver. Set up the device interface functions for that |
diff --git a/src/xterm.c b/src/xterm.c index ce60fed07ff..ad00a4eccf1 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -7445,7 +7445,7 @@ x_send_scroll_bar_event (window, part, portion, whole) | |||
| 7445 | ev->display = FRAME_X_DISPLAY (f); | 7445 | ev->display = FRAME_X_DISPLAY (f); |
| 7446 | ev->window = FRAME_X_WINDOW (f); | 7446 | ev->window = FRAME_X_WINDOW (f); |
| 7447 | ev->format = 32; | 7447 | ev->format = 32; |
| 7448 | ev->data.l[0] = (long) window; | 7448 | ev->data.l[0] = (long) XFASTINT (window); |
| 7449 | ev->data.l[1] = (long) part; | 7449 | ev->data.l[1] = (long) part; |
| 7450 | ev->data.l[2] = (long) 0; | 7450 | ev->data.l[2] = (long) 0; |
| 7451 | ev->data.l[3] = (long) portion; | 7451 | ev->data.l[3] = (long) portion; |
| @@ -7472,8 +7472,11 @@ x_scroll_bar_to_input_event (event, ievent) | |||
| 7472 | struct input_event *ievent; | 7472 | struct input_event *ievent; |
| 7473 | { | 7473 | { |
| 7474 | XClientMessageEvent *ev = (XClientMessageEvent *) event; | 7474 | XClientMessageEvent *ev = (XClientMessageEvent *) event; |
| 7475 | Lisp_Object window = (Lisp_Object) ev->data.l[0]; | 7475 | Lisp_Object window; |
| 7476 | struct frame *f = XFRAME (XWINDOW (window)->frame); | 7476 | struct frame *f; |
| 7477 | |||
| 7478 | XSETFASTINT (window, ev->data.l[0]); | ||
| 7479 | f = XFRAME (XWINDOW (window)->frame); | ||
| 7477 | 7480 | ||
| 7478 | ievent->kind = scroll_bar_click; | 7481 | ievent->kind = scroll_bar_click; |
| 7479 | ievent->frame_or_window = window; | 7482 | ievent->frame_or_window = window; |