aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStefan Monnier2003-02-22 22:22:27 +0000
committerStefan Monnier2003-02-22 22:22:27 +0000
commite52bd6b740c55eca2b59ce7e9d9b84d4994aeee9 (patch)
tree223e601c6b865501ec0ccdca5d22e036b5fe77e5 /src
parent2b47daccff702690b67ce5c8a33fe908079dda75 (diff)
downloademacs-e52bd6b740c55eca2b59ce7e9d9b84d4994aeee9.tar.gz
emacs-e52bd6b740c55eca2b59ce7e9d9b84d4994aeee9.zip
(string_to_multibyte): Remove unused var i.
(Flanginfo): Fix int/Lisp_Object mixup. (void_call2): New fun. (Fmap_char_table): Use it in place of call2.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog61
-rw-r--r--src/fns.c19
2 files changed, 51 insertions, 29 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index a68f8a182e3..40d5ffc48a5 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,18 @@
12003-02-22 Stefan Monnier <monnier@cs.yale.edu>
2
3 * fns.c (string_to_multibyte): Remove unused var i.
4 (Flanginfo): Fix int/Lisp_Object mixup.
5 (void_call2): New fun.
6 (Fmap_char_table): Use it in place of call2.
7
8 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
9
10 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
11
12 * keymap.c (copy_keymap_1): Make it static.
13
14 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
15
12003-02-22 David Ponce <david@dponce.com> 162003-02-22 David Ponce <david@dponce.com>
2 17
3 * lread.c (Fload): Don't check STRING_MULTIBYTE. 18 * lread.c (Fload): Don't check STRING_MULTIBYTE.
@@ -8,8 +23,8 @@
8 23
9 * process.c (create_process): Remove setting of subtty. 24 * process.c (create_process): Remove setting of subtty.
10 (emacs_get_tty_pgrp): New function. 25 (emacs_get_tty_pgrp): New function.
11 (Fprocess_running_child_p, process_send_signal): Call 26 (Fprocess_running_child_p, process_send_signal):
12 emacs_get_tty_pgrp instead of ioctl. 27 Call emacs_get_tty_pgrp instead of ioctl.
13 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails. 28 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
14 29
152003-02-21 Kai Gro,A_(Bjohann <kai.grossjohann@uni-duisburg.de> 302003-02-21 Kai Gro,A_(Bjohann <kai.grossjohann@uni-duisburg.de>
@@ -28,16 +43,15 @@
28 43
29 * s/hpux10-20.h: New file. 44 * s/hpux10-20.h: New file.
30 45
31 * process.c (wait_reading_process_input): Use 46 * process.c (wait_reading_process_input):
32 POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT. 47 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
33 48
342003-02-20 Kenichi Handa <handa@m17n.org> 492003-02-20 Kenichi Handa <handa@m17n.org>
35 50
36 * fontset.c (check_fontset_name): If NAME is nil, return the 51 * fontset.c (check_fontset_name): If NAME is nil, return the
37 default fontset. 52 default fontset.
38 (override_font_info): New function. 53 (override_font_info): New function.
39 (Fset_fontset_font): Document that NAME nil means the default 54 (Fset_fontset_font): Document that NAME nil means the default fontset.
40 fontset.
41 (Ffontset_info): If FONTSET is not the default fontset, merge 55 (Ffontset_info): If FONTSET is not the default fontset, merge
42 FONTSET onto the copy of the default fontset, and work on that 56 FONTSET onto the copy of the default fontset, and work on that
43 copy. Document that NAME nil means the default fontset. 57 copy. Document that NAME nil means the default fontset.
@@ -48,8 +62,8 @@
48 62
492003-02-19 Andreas Schwab <schwab@suse.de> 632003-02-19 Andreas Schwab <schwab@suse.de>
50 64
51 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte): Add 65 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
52 prototypes. 66 Add prototypes.
53 67
542003-02-19 Kenichi Handa <handa@m17n.org> 682003-02-19 Kenichi Handa <handa@m17n.org>
55 69
@@ -66,7 +80,7 @@
66 names. 80 names.
67 81
68 * xfaces.c (x_face_list_fonts): Allocate struct font_name here. 82 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
69 (sorted_font_list): Moved allocation of struct font_name to 83 (sorted_font_list): Move allocation of struct font_name to
70 x_face_list_fonts. 84 x_face_list_fonts.
71 (Fx_font_family_list): Set font-list-limit to -1 to get all font names. 85 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
72 (Fx_list_fonts): Set maxnames to -1 to get all font names. 86 (Fx_list_fonts): Set maxnames to -1 to get all font names.
@@ -120,8 +134,8 @@
120 134
1212003-02-16 Jason Rumney <jasonr@gnu.org> 1352003-02-16 Jason Rumney <jasonr@gnu.org>
122 136
123 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts): Negative 137 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
124 max_fonts parameter means list all. 138 Negative max_fonts parameter means list all.
125 139
1262003-02-14 Dave Love <fx@gnu.org> 1402003-02-14 Dave Love <fx@gnu.org>
127 141
@@ -169,8 +183,8 @@
169 183
170 * process.c (QCfilter_multibyte): New variable. 184 * process.c (QCfilter_multibyte): New variable.
171 (setup_process_coding_systems): New function. 185 (setup_process_coding_systems): New function.
172 (Fset_process_buffer, Fset_process_filter): Call 186 (Fset_process_buffer, Fset_process_filter):
173 setup_process_coding_systems. 187 Call setup_process_coding_systems.
174 (Fstart_process): Initialize the member `filter_multibyte' of 188 (Fstart_process): Initialize the member `filter_multibyte' of
175 struct Lisp_Process. 189 struct Lisp_Process.
176 (create_process): Call setup_process_coding_systems. 190 (create_process): Call setup_process_coding_systems.
@@ -219,8 +233,8 @@
2192003-02-07 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> 2332003-02-07 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
220 234
221 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame) 235 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
222 (x_make_frame_invisible, x_wm_set_icon_position): Use 236 (x_make_frame_invisible, x_wm_set_icon_position):
223 FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif. 237 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
224 238
225 * xfns.c (x_set_name, x_set_title): Ditto. 239 * xfns.c (x_set_name, x_set_title): Ditto.
226 240
@@ -295,12 +309,11 @@
2952003-01-31 Kenichi Handa <handa@m17n.org> 3092003-01-31 Kenichi Handa <handa@m17n.org>
296 310
297 * xdisp.c (SKIP_GLYPHS): New macro. 311 * xdisp.c (SKIP_GLYPHS): New macro.
298 (set_cursor_from_row): Skip all glyphs that comes from overlay 312 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
299 string.
300 313
3012003-01-30 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> 3142003-01-30 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
302 315
303 * gtkutil.c (free_frame_tool_bar): Removed debug printf. 316 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
304 317
3052003-01-30 Dave Love <fx@gnu.org> 3182003-01-30 Dave Love <fx@gnu.org>
306 319
@@ -422,8 +435,7 @@
4222003-01-24 Kenichi Handa <handa@m17n.org> 4352003-01-24 Kenichi Handa <handa@m17n.org>
423 436
424 * keyboard.c (adjust_point_for_property): New second arg MODIFIED. 437 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
425 It it is nonzero, don't pretend that an invisible area doesn't 438 It it is nonzero, don't pretend that an invisible area doesn't exist.
426 exist.
427 (command_loop_1): Call adjust_point_for_property with proper 439 (command_loop_1): Call adjust_point_for_property with proper
428 second arg. 440 second arg.
429 441
@@ -480,8 +492,8 @@
480 add function w32_define_cursor. 492 add function w32_define_cursor.
481 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor 493 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
482 and change member name output_data.x to output_data.w32. 494 and change member name output_data.x to output_data.w32.
483 (w32_initialize_display_info): Setup 495 (w32_initialize_display_info):
484 dpyinfo->vertical_scroll_bar_cursor. 496 Setup dpyinfo->vertical_scroll_bar_cursor.
485 497
486 * w32fns.c (Vx_hand_shape): New variable. 498 * w32fns.c (Vx_hand_shape): New variable.
487 (w32_wnd_proc): Add message entries for WM_SETCURSOR and 499 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
@@ -626,12 +638,11 @@
626 638
6272002-11-08 Juanma Barranquero <lektu@terra.es> 6392002-11-08 Juanma Barranquero <lektu@terra.es>
628 640
629 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable 641 * w32term.c (w32_draw_fringe_bitmap): Remove unused variable window.
630 window.
631 642
6322002-11-08 Pavel Jan,Am(Bk <Pavel@Janik.cz> 6432002-11-08 Pavel Jan,Am(Bk <Pavel@Janik.cz>
633 644
634 * process.c (Fformat_network_address): Removed unused locals p, 645 * process.c (Fformat_network_address): Remove unused locals p,
635 cp, and i. 646 cp, and i.
636 647
6372002-11-06 Dave Love <fx@gnu.org> 6482002-11-06 Dave Love <fx@gnu.org>
diff --git a/src/fns.c b/src/fns.c
index 729872722bd..fe3e0f82a3f 100644
--- a/src/fns.c
+++ b/src/fns.c
@@ -1047,7 +1047,6 @@ string_to_multibyte (string)
1047{ 1047{
1048 unsigned char *buf; 1048 unsigned char *buf;
1049 int nbytes; 1049 int nbytes;
1050 int i;
1051 1050
1052 if (STRING_MULTIBYTE (string)) 1051 if (STRING_MULTIBYTE (string))
1053 return string; 1052 return string;
@@ -2699,6 +2698,14 @@ map_char_table (c_function, function, subtable, arg, depth, indices)
2699 } 2698 }
2700} 2699}
2701 2700
2701static void void_call2 P_ ((Lisp_Object a, Lisp_Object b, Lisp_Object c));
2702static void
2703void_call2 (a, b, c)
2704 Lisp_Object a, b, c;
2705{
2706 call2 (a, b, c);
2707}
2708
2702DEFUN ("map-char-table", Fmap_char_table, Smap_char_table, 2709DEFUN ("map-char-table", Fmap_char_table, Smap_char_table,
2703 2, 2, 0, 2710 2, 2, 0,
2704 doc: /* Call FUNCTION for each (normal and generic) characters in CHAR-TABLE. 2711 doc: /* Call FUNCTION for each (normal and generic) characters in CHAR-TABLE.
@@ -2712,7 +2719,11 @@ The key is always a possible IDX argument to `aref'. */)
2712 2719
2713 CHECK_CHAR_TABLE (char_table); 2720 CHECK_CHAR_TABLE (char_table);
2714 2721
2715 map_char_table ((POINTER_TYPE *) call2, Qnil, char_table, function, 0, indices); 2722 /* When Lisp_Object is represented as a union, `call2' cannot directly
2723 be passed to map_char_table because it returns a Lisp_Object rather
2724 than returning nothing.
2725 Casting leads to crashes on some architectures. -stef */
2726 map_char_table (void_call2, Qnil, char_table, function, 0, indices);
2716 return Qnil; 2727 return Qnil;
2717} 2728}
2718 2729
@@ -3490,7 +3501,7 @@ The data read from the system are decoded using `locale-coding-system'. */)
3490 it is consistent with CODESET? If not, what to do? */ 3501 it is consistent with CODESET? If not, what to do? */
3491 Faset (v, make_number (i), 3502 Faset (v, make_number (i),
3492 code_convert_string_norecord (val, Vlocale_coding_system, 3503 code_convert_string_norecord (val, Vlocale_coding_system,
3493 Qnil)); 3504 0));
3494 } 3505 }
3495 return v; 3506 return v;
3496 } 3507 }
@@ -3508,7 +3519,7 @@ The data read from the system are decoded using `locale-coding-system'. */)
3508 str = nl_langinfo (months[i]); 3519 str = nl_langinfo (months[i]);
3509 val = make_unibyte_string (str, strlen (str)); 3520 val = make_unibyte_string (str, strlen (str));
3510 p->contents[i] = 3521 p->contents[i] =
3511 code_convert_string_norecord (val, Vlocale_coding_system, Qnil); 3522 code_convert_string_norecord (val, Vlocale_coding_system, 0);
3512 } 3523 }
3513 XSETVECTOR (val, p); 3524 XSETVECTOR (val, p);
3514 return val; 3525 return val;