Fix formatting of src/ChangeLog entries.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
05c65251
EZ
12011-02-16 Eli Zaretskii <eliz@gnu.org>
2
3 * w32fns.c (Fx_create_frame): Use KVAR.
4
5 * w32term.c (w32_create_terminal): Use KVAR.
6
7 * s/ms-w32.h (MODE_LINE_BINARY_TEXT): Remove.
eef5ce6e 8 (getloadavg): Declare prototype which was removed from lisp.h.
05c65251
EZ
9
10 * xdisp.c (decode_mode_spec): Don't use MODE_LINE_BINARY_TEXT.
11
12 * fileio.c (Finsert_file_contents, Fwrite_region): Remove
13 references to buffer_file_type.
14 (syms_of_fileio): Don't intern and staticpro
15 find-buffer-file-type.
16
17 * callproc.c (syms_of_callproc): Remove references to
18 buffer_file_type.
19
20 * buffer.c (reset_buffer_local_variables): Don't set
21 buffer_file_type.
22 (init_buffer_once): Likewise.
23 (syms_of_buffer): Don't define buffer-file-type.
24
25 * buffer.h (struct buffer): Remove buffer_file_type.
26
1344aad4
TT
272011-02-16 Tom Tromey <tromey@parfait>
28
15f58304
EZ
29 * callint.c (Fcall_interactively): Update for change to field names.
30 * doc.c (Fsubstitute_command_keys): Update for change to field names.
31 * cmds.c (Fself_insert_command): Update for change to field names.
1344aad4 32 * keymap.c (Fcurrent_active_maps, Fkey_binding)
15f58304 33 (Fdescribe_buffer_bindings): Update for change to field names.
1344aad4
TT
34 * macros.c (Fstart_kbd_macro, end_kbd_macro, Fend_kbd_macro)
35 (store_kbd_macro_char, Fcall_last_kbd_macro, Fexecute_kbd_macro):
15f58304 36 Update for change to field names.
1344aad4
TT
37 * keyboard.c (echo_char, echo_dash, echo_now, cancel_echoing)
38 (echo_length, echo_truncate, cmd_error, command_loop_1)
39 (read_char, kbd_buffer_store_event_hold, make_lispy_event)
40 (menu_bar_items, tool_bar_items, read_char_minibuf_menu_prompt)
41 (read_key_sequence, Fcommand_execute, Fexecute_extended_command)
42 (Fdiscard_input, init_kboard, init_keyboard, mark_kboards):
15f58304
EZ
43 Update for change to field names.
44 * xfns.c (Fx_create_frame): Update for change to field names.
45 * xterm.c (x_connection_closed, x_term_init): Update for change to
46 field names.
1344aad4 47 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN, init_tty):
15f58304 48 Update for change to field names.
1344aad4 49 * window.c (window_scroll_pixel_based, window_scroll_line_based):
15f58304 50 Update for change to field names.
1344aad4 51 * frame.c (make_frame_without_minibuffer, Fhandle_switch_frame)
15f58304 52 (delete_frame): Update for change to field names.
1344aad4
TT
53 * lisp.h (DEFVAR_KBOARD): Update for change to field names.
54 * keyboard.h (struct kboard): Rename all Lisp_Object fields.
55 (KBOARD_INTERNAL_FIELD, KVAR): New macros.
56
eb4916d7
TT
572011-02-16 Tom Tromey <tromey@redhat.com>
58
59 * lisp.h (DEFVAR_BUFFER_DEFAULTS): Use BVAR.
60
4b4deea2
TT
612011-02-16 Tom Tromey <tromey@parfait>
62
63 * xfns.c (x_create_tip_frame, Fx_show_tip): Replace B_ with BVAR.
64 * xfaces.c (compute_char_face): Replace B_ with BVAR.
65 * xdisp.c (pos_visible_p, init_iterator, reseat_1)
66 (message_dolog, update_echo_area, ensure_echo_area_buffers)
67 (with_echo_area_buffer, setup_echo_area_for_printing)
68 (set_message_1, update_menu_bar, update_tool_bar)
69 (text_outside_line_unchanged_p, redisplay_internal)
70 (try_scrolling, try_cursor_movement, redisplay_window)
71 (try_window_reusing_current_matrix, row_containing_pos)
72 (try_window_id, get_overlay_arrow_glyph_row, display_line)
73 (Fcurrent_bidi_paragraph_direction, display_mode_lines)
74 (decode_mode_spec_coding, decode_mode_spec, display_count_lines)
75 (get_window_cursor_type, note_mouse_highlight): Replace B_ with
76 BVAR.
77 * window.c (window_display_table, unshow_buffer, window_loop)
78 (window_min_size_2, set_window_buffer, Fset_window_buffer)
79 (select_window, Fforce_window_update, temp_output_buffer_show)
80 (Fset_window_configuration, save_window_save): Replace B_ with
81 BVAR.
82 * w32fns.c (x_create_tip_frame, Fx_show_tip, Fw32_shell_execute):
83 Replace B_ with BVAR.
84 * undo.c (record_point, record_insert, record_delete)
85 (record_marker_adjustment, record_first_change)
86 (record_property_change, Fundo_boundary, truncate_undo_list)
87 (Fprimitive_undo): Replace B_ with BVAR.
88 * syntax.h (Vstandard_syntax_table, CURRENT_SYNTAX_TABLE)
89 (SETUP_BUFFER_SYNTAX_TABLE): Replace B_ with BVAR.
90 * syntax.c (update_syntax_table, dec_bytepos, Fsyntax_table)
91 (Fset_syntax_table, Fmodify_syntax_entry, skip_chars)
92 (skip_syntaxes, scan_lists): Replace B_ with BVAR.
93 * search.c (compile_pattern_1, compile_pattern, looking_at_1)
94 (string_match_1, fast_looking_at, newline_cache_on_off)
95 (search_command, search_buffer, simple_search, boyer_moore)
96 (Freplace_match): Replace B_ with BVAR.
97 * process.c (get_process, list_processes_1, Fstart_process)
98 (Fmake_serial_process, Fmake_network_process)
99 (read_process_output, send_process, exec_sentinel)
100 (status_notify, setup_process_coding_systems): Replace B_ with
101 BVAR.
102 * print.c (PRINTDECLARE, PRINTPREPARE, PRINTFINISH, printchar)
103 (strout, print_string, temp_output_buffer_setup, print_object):
104 Replace B_ with BVAR.
105 * msdos.c (IT_frame_up_to_date): Replace B_ with BVAR.
106 * minibuf.c (read_minibuf, get_minibuffer, Fread_buffer): Replace
107 B_ with BVAR.
108 * marker.c (Fmarker_buffer, Fset_marker, set_marker_restricted)
109 (set_marker_both, set_marker_restricted_both, unchain_marker):
110 Replace B_ with BVAR.
111 * lread.c (readchar, unreadchar, openp, readevalloop)
112 (Feval_buffer, Feval_region): Replace B_ with BVAR.
113 * lisp.h (DOWNCASE_TABLE, UPCASE_TABLE): Replace B_ with BVAR.
114 * keymap.c (Flocal_key_binding, Fuse_local_map)
115 (Fcurrent_local_map, push_key_description)
116 (Fdescribe_buffer_bindings): Replace B_ with BVAR.
117 * keyboard.c (command_loop_1, read_char_minibuf_menu_prompt)
118 (read_key_sequence): Replace B_ with BVAR.
119 * intervals.h (TEXT_PROP_MEANS_INVISIBLE): Replace B_ with BVAR.
120 * intervals.c (set_point_both, get_local_map): Replace B_ with
121 BVAR.
122 * insdel.c (check_markers, insert_char, insert_1_both)
123 (insert_from_string_1, insert_from_gap, insert_from_buffer_1)
124 (adjust_after_replace, replace_range, del_range_2)
125 (modify_region, prepare_to_modify_buffer)
126 (Fcombine_after_change_execute): Replace B_ with BVAR.
127 * indent.c (buffer_display_table, recompute_width_table)
128 (width_run_cache_on_off, current_column, scan_for_column)
129 (Findent_to, position_indentation, compute_motion, vmotion):
130 Replace B_ with BVAR.
131 * fringe.c (get_logical_cursor_bitmap)
132 (get_logical_fringe_bitmap, update_window_fringes): Replace B_
133 with BVAR.
134 * frame.c (make_frame_visible_1): Replace B_ with BVAR.
135 * font.c (font_at): Replace B_ with BVAR.
136 * fns.c (Fbase64_encode_region, Fbase64_decode_region, Fmd5):
137 Replace B_ with BVAR.
138 * filelock.c (unlock_all_files, Flock_buffer, Funlock_buffer)
139 (unlock_buffer): Replace B_ with BVAR.
140 * fileio.c (Fexpand_file_name, Ffile_directory_p)
141 (Ffile_regular_p, Ffile_selinux_context)
142 (Fset_file_selinux_context, Ffile_modes, Fset_file_modes)
143 (Fset_file_times, Ffile_newer_than_file_p, decide_coding_unwind)
144 (Finsert_file_contents, choose_write_coding_system)
145 (Fwrite_region, build_annotations, Fverify_visited_file_modtime)
146 (Fset_visited_file_modtime, auto_save_error, auto_save_1)
147 (Fdo_auto_save, Fset_buffer_auto_saved): Replace B_ with BVAR.
148 * editfns.c (region_limit, Fmark_marker, save_excursion_save)
149 (save_excursion_restore, Fprevious_char, Fchar_before)
150 (general_insert_function, Finsert_char, Finsert_byte)
151 (make_buffer_string_both, Finsert_buffer_substring)
152 (Fcompare_buffer_substrings, subst_char_in_region_unwind)
153 (subst_char_in_region_unwind_1, Fsubst_char_in_region)
154 (Ftranslate_region_internal, save_restriction_restore)
155 (Fchar_equal): Replace B_ with BVAR.
156 * dispnew.c (Fframe_or_buffer_changed_p): Replace B_ with BVAR.
157 * dispextern.h (WINDOW_WANTS_MODELINE_P)
158 (WINDOW_WANTS_HEADER_LINE_P): Replace B_ with BVAR.
159 * dired.c (directory_files_internal): Replace B_ with BVAR.
160 * data.c (swap_in_symval_forwarding, set_internal)
161 (Fmake_local_variable, Fkill_local_variable, Flocal_variable_p):
162 Replace B_ with BVAR.
163 * composite.c (fill_gstring_header)
164 (composition_compute_stop_pos, composition_adjust_point)
165 (Ffind_composition_internal): Replace B_ with BVAR.
166 * coding.c (decode_coding, encode_coding)
167 (make_conversion_work_buffer, decode_coding_gap)
168 (decode_coding_object, encode_coding_object)
169 (Fdetect_coding_region, Ffind_coding_systems_region_internal)
170 (Funencodable_char_position, Fcheck_coding_systems_region):
171 Replace B_ with BVAR.
172 * cmds.c (Fself_insert_command, internal_self_insert): Replace B_
173 with BVAR.
174 * charset.c (Ffind_charset_region): Replace B_ with BVAR.
175 * character.h (FETCH_CHAR_ADVANCE, INC_BOTH, DEC_BOTH)
176 (ASCII_CHAR_WIDTH): Replace B_ with BVAR.
177 * character.c (chars_in_text, Fget_byte): Replace B_ with BVAR.
178 * category.h (Vstandard_category_table): Replace B_ with BVAR.
179 * category.c (check_category_table, Fcategory_table)
180 (Fset_category_table, char_category_set): Replace B_ with BVAR.
181 * casetab.c (Fcurrent_case_table, set_case_table): Replace B_ with
182 BVAR.
183 * casefiddle.c (casify_object, casify_region): Replace B_ with
184 BVAR.
185 * callproc.c (Fcall_process, Fcall_process_region): Replace B_
186 with BVAR.
187 * callint.c (check_mark, Fcall_interactively): Replace B_ with
188 BVAR.
189 * bytecode.c (Fbyte_code): Replace B_ with BVAR.
190 * buffer.h (FETCH_CHAR, FETCH_CHAR_AS_MULTIBYTE, BVAR): Replace B_
191 with BVAR.
192 * buffer.c (Fbuffer_live_p, Fget_file_buffer)
193 (get_truename_buffer, Fget_buffer_create)
194 (clone_per_buffer_values, Fmake_indirect_buffer, reset_buffer)
195 (reset_buffer_local_variables, Fbuffer_name, Fbuffer_file_name)
196 (Fbuffer_local_value, buffer_lisp_local_variables)
197 (Fset_buffer_modified_p, Frestore_buffer_modified_p)
198 (Frename_buffer, Fother_buffer, Fbuffer_enable_undo)
199 (Fkill_buffer, Fset_buffer_major_mode, set_buffer_internal_1)
200 (set_buffer_temp, Fset_buffer, set_buffer_if_live)
201 (Fbarf_if_buffer_read_only, Fbury_buffer, Ferase_buffer)
202 (Fbuffer_swap_text, swapfield_, Fbuffer_swap_text)
203 (Fset_buffer_multibyte, swap_out_buffer_local_variables)
204 (record_overlay_string, overlay_strings, init_buffer_once)
205 (init_buffer, syms_of_buffer): Replace B_ with BVAR.
206
8678d9e4 2072011-02-16 Eli Zaretskii <eliz@gnu.org>
a73d395b
EZ
208
209 * xdisp.c (redisplay_internal): Resynchronize `w' if the selected
210 window is changed inside calls to do_pending_window_change.
211 (Bug#8020)
212
1f5d53eb
PE
2132011-02-16 Paul Eggert <eggert@cs.ucla.edu>
214
215 Remove no-longer needed getloadavg symbols.
216 * m/alpha.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
217 * m/amdx86-64.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
218 * m/ia64.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
219 * m/ibms390.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
220 * m/macppc.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
221 * m/sparc.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
222 * m/template.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
223 * m/vax.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
224 * s/aix4-2.h (KERNEL_FILE, LDAV_SYMBOL): Remove.
225 * s/bsd-common.h (KERNEL_FILE, LDAV_SYMBOL): Remove #undef.
226 * s/hpux10-20.h (KERNEL_FILE, LOAD_AVE_TYPE, LOAD_AVE_CVT):
227 (LDAV_SYMBOL): Remove.
228 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Remove.
229 * s/usg5-4-common.h (KERNEL_FILE, LDAV_SYMBOL): Remove.
230
231 Import getloadavg module from gnulib.
232 * deps.mk (getloadavg.o): Remove; gnulib now does this.
233 * lisp.h (getloadavg) [!defined HAVE_GETLOADAVG]: Remove; gnulib
234 now does this.
235 * src/s/freebsd.h (HAVE_GETLOADAVG): Remove; gnulib now does this.
236 * src/s/netbsd.h (HAVE_GETLOADAVG): Likewise.
237 * config.in: Regenerate.
238
8017fd6b
EZ
2392011-02-15 Eli Zaretskii <eliz@gnu.org>
240
241 * nsfns.m (ns_set_name_as_filename, Fns_read_file_name): Use B_.
242
75b43359
MWD
2432011-02-14 Michael Welsh Duggan <md5i@md5i.com>
244
245 * print.c (float_to_string): Ensure that a decimal point is
246 printed if using dtoastr (Bug#8033).
247
fc3ca113
EZ
2482011-02-14 Eli Zaretskii <eliz@gnu.org>
249
1f5d53eb 250 * msdos.c (IT_frame_up_to_date):
ef72f149
EZ
251 * s/msdos.h (MODE_LINE_BINARY_TEXT): Use B_ for the MS-DOS build.
252
fc3ca113
EZ
253 * dired.c (directory_files_internal):
254 * fileio.c (Finsert_file_contents):
255 * insdel.c (prepare_to_modify_buffer):
256 * xdisp.c (pos_visible_p):
257 * s/ms-w32.h (MODE_LINE_BINARY_TEXT):
258 * w32fns.c (Fw32_shell_execute, Fx_show_tip, x_create_tip_frame):
259 Use B_ for the MS-Windows build.
260
3928f2b6
JD
2612011-02-14 Jan Djärv <jan.h.d@swipnet.se>
262
263 * xrdb.c (x_load_resources): For LUCID and XFT, don't put a
264 resource that specifies helvetica for menus and dialogs.
265
266 * xmenu.c (apply_systemfont_to_dialog): Apply to *dialog.font.
267 (apply_systemfont_to_menu): Set resources *menubar*font and
268 *popup*font. Remove defflt.
269 (set_frame_menubar, create_and_show_popup_menu): Call
270 apply_systemfont_to_menu before lw_create_widget.
271
4bb81cc2
TT
2722011-02-14 Tom Tromey <tromey@redhat.com>
273
fc3ca113
EZ
274 * buffer.c (init_buffer_once, syms_of_buffer): Use B_ in DOS_NT case.
275
4bb81cc2
TT
276 * keyboard.h: Remove obsolete comment.
277
5d8ea120
TT
2782011-02-14 Tom Tromey <tromey@parfait>
279
280 * composite.c (fill_gstring_header)
281 (composition_compute_stop_pos, composition_adjust_point)
282 (Ffind_composition_internal): Use B_.
283 * intervals.c (set_point_both, get_local_map): Use B_.
284 * callproc.c (Fcall_process, Fcall_process_region): Use B_.
285 * process.c (get_process, list_processes_1, Fstart_process)
286 (Fmake_serial_process, Fmake_network_process)
287 (read_process_output, send_process, exec_sentinel)
288 (status_notify, setup_process_coding_systems): Use B_.
289 * bytecode.c (Fbyte_code): Use B_.
290 * syntax.c (update_syntax_table, dec_bytepos, Fsyntax_table)
291 (Fset_syntax_table, Fmodify_syntax_entry, skip_chars)
292 (skip_syntaxes, scan_lists): Use B_.
293 * lread.c (readchar, unreadchar, openp, readevalloop)
294 (Feval_buffer, Feval_region): Use B_.
295 * print.c (printchar, strout, print_string, PRINTDECLARE)
296 (PRINTPREPARE, PRINTFINISH, temp_output_buffer_setup)
297 (print_object): Use B_.
298 * font.c (font_at): Use B_.
299 * fns.c (Fbase64_encode_region, Fbase64_decode_region, Fmd5): Use
300 B_.
301 * callint.c (check_mark, Fcall_interactively): Use B_.
302 * editfns.c (region_limit, Fmark_marker, save_excursion_save)
303 (save_excursion_restore, Fprevious_char, Fchar_before)
304 (general_insert_function, Finsert_char, Finsert_byte)
305 (make_buffer_string_both, Finsert_buffer_substring)
306 (Fcompare_buffer_substrings, subst_char_in_region_unwind)
307 (subst_char_in_region_unwind_1, Fsubst_char_in_region)
308 (Ftranslate_region_internal, save_restriction_restore)
309 (Fchar_equal): Use B_.
310 * data.c (swap_in_symval_forwarding, set_internal)
311 (Fmake_local_variable, Fkill_local_variable, Flocal_variable_p):
312 Use B_.
313 * undo.c (record_point, record_insert, record_delete)
314 (record_marker_adjustment, record_first_change)
315 (record_property_change, Fundo_boundary, truncate_undo_list)
316 (Fprimitive_undo): Use B_.
317 * search.c (compile_pattern_1, compile_pattern, looking_at_1)
318 (string_match_1, fast_looking_at, newline_cache_on_off)
319 (search_command, search_buffer, simple_search, boyer_moore)
320 (Freplace_match): Use B_.
321 * indent.c (buffer_display_table, recompute_width_table)
322 (width_run_cache_on_off, current_column, scan_for_column)
323 (Findent_to, position_indentation, compute_motion, vmotion): Use
324 B_.
325 * casefiddle.c (casify_object, casify_region): Use B_.
326 * casetab.c (Fcurrent_case_table, set_case_table): Use B_.
327 * cmds.c (Fself_insert_command, internal_self_insert): Use B_.
328 * fileio.c (Fexpand_file_name, Ffile_directory_p)
329 (Ffile_regular_p, Ffile_selinux_context)
330 (Fset_file_selinux_context, Ffile_modes, Fset_file_modes)
331 (Fset_file_times, Ffile_newer_than_file_p, decide_coding_unwind)
332 (Finsert_file_contents, choose_write_coding_system)
333 (Fwrite_region, build_annotations, Fverify_visited_file_modtime)
334 (Fset_visited_file_modtime, auto_save_error, auto_save_1)
335 (Fdo_auto_save, Fset_buffer_auto_saved): Use B_.
336 * minibuf.c (read_minibuf, get_minibuffer, Fread_buffer): Use B_.
337 * marker.c (Fmarker_buffer, Fset_marker, set_marker_restricted)
338 (set_marker_both, set_marker_restricted_both, unchain_marker): Use
339 B_.
340 * insdel.c (check_markers, insert_char, insert_1_both)
341 (insert_from_string_1, insert_from_gap, insert_from_buffer_1)
342 (adjust_after_replace, replace_range, del_range_2)
343 (modify_region, prepare_to_modify_buffer)
344 (Fcombine_after_change_execute): Use B_.
345 * filelock.c (unlock_all_files, Flock_buffer, Funlock_buffer)
346 (unlock_buffer): Use B_.
347 * keymap.c (Flocal_key_binding, Fuse_local_map)
348 (Fcurrent_local_map, push_key_description)
349 (Fdescribe_buffer_bindings): Use B_.
350 * keyboard.c (command_loop_1, read_char_minibuf_menu_prompt)
351 (read_key_sequence): Use B_.
352 * fringe.c (get_logical_cursor_bitmap)
353 (get_logical_fringe_bitmap, update_window_fringes): Use B_.
354 * xfns.c (x_create_tip_frame, Fx_show_tip): Use B_.
355 * xfaces.c (compute_char_face): Use B_.
356 * character.c (chars_in_text, Fget_byte): Use B_.
357 * category.c (check_category_table, Fcategory_table)
358 (Fset_category_table, char_category_set): Use B_.
359 * coding.c (decode_coding, encode_coding)
360 (make_conversion_work_buffer, decode_coding_gap)
361 (decode_coding_object, encode_coding_object)
362 (Fdetect_coding_region, Ffind_coding_systems_region_internal)
363 (Funencodable_char_position, Fcheck_coding_systems_region): Use
364 B_.
365 * charset.c (Ffind_charset_region): Use B_.
366 * window.c (window_display_table, unshow_buffer, window_loop)
367 (window_min_size_2, set_window_buffer, Fset_window_buffer)
368 (select_window, Fforce_window_update, temp_output_buffer_show)
369 (Fset_window_configuration, save_window_save): Use B_.
370 * xdisp.c (pos_visible_p, init_iterator, reseat_1)
371 (message_dolog, update_echo_area, ensure_echo_area_buffers)
372 (with_echo_area_buffer, setup_echo_area_for_printing)
373 (set_message_1, update_menu_bar, update_tool_bar)
374 (text_outside_line_unchanged_p, redisplay_internal)
375 (try_scrolling, try_cursor_movement, redisplay_window)
376 (try_window_reusing_current_matrix, row_containing_pos)
377 (try_window_id, get_overlay_arrow_glyph_row, display_line)
378 (Fcurrent_bidi_paragraph_direction, display_mode_lines)
379 (decode_mode_spec_coding, decode_mode_spec, display_count_lines)
380 (get_window_cursor_type, note_mouse_highlight): Use B_.
381 * frame.c (make_frame_visible_1): Use B_.
382 * dispnew.c (Fframe_or_buffer_changed_p): Use B_.
383 * dispextern.h (WINDOW_WANTS_HEADER_LINE_P)
384 (WINDOW_WANTS_MODELINE_P): Use B_.
385 * syntax.h (Vstandard_syntax_table): Update.
386 (CURRENT_SYNTAX_TABLE, SETUP_BUFFER_SYNTAX_TABLE): Use B_.
387 * intervals.h (TEXT_PROP_MEANS_INVISIBLE): Update.
388 (TEXT_PROP_MEANS_INVISIBLE): Use B_.
389 * character.h (FETCH_CHAR_ADVANCE): Update.
390 (INC_BOTH, ASCII_CHAR_WIDTH, DEC_BOTH): Use B_.
391 * category.h (Vstandard_category_table): Update.
392 * lisp.h (DEFVAR_BUFFER_DEFAULTS): Update for change to field
393 names.
394 (DOWNCASE_TABLE, UPCASE_TABLE): Use B_.
395 * buffer.c (swapfield_): New macro.
396 (Fbuffer_swap_text): Use swapfield_ where appropriate.
397 (Fbuffer_live_p, Fget_file_buffer, get_truename_buffer)
398 (Fget_buffer_create, clone_per_buffer_values)
399 (Fmake_indirect_buffer, reset_buffer)
400 (reset_buffer_local_variables, Fbuffer_name, Fbuffer_file_name)
401 (Fbuffer_local_value, buffer_lisp_local_variables)
402 (Fset_buffer_modified_p, Frestore_buffer_modified_p)
403 (Frename_buffer, Fother_buffer, Fbuffer_enable_undo)
404 (Fkill_buffer, Fset_buffer_major_mode, set_buffer_internal_1)
405 (set_buffer_temp, Fset_buffer, set_buffer_if_live)
406 (Fbarf_if_buffer_read_only, Fbury_buffer, Ferase_buffer)
407 (Fbuffer_swap_text, Fset_buffer_multibyte)
408 (swap_out_buffer_local_variables, record_overlay_string)
409 (overlay_strings, init_buffer_once, init_buffer, syms_of_buffer):
410 Use B_.
411 * buffer.h (struct buffer): Rename all Lisp_Object fields.
412 (BUFFER_INTERNAL_FIELD, B_): New macro.
413 (FETCH_CHAR, FETCH_CHAR_AS_MULTIBYTE): Use B_.
414
42f60557
JD
4152011-02-14 Jan Djärv <jan.h.d@swipnet.se>
416
417 * gtkutil.c (xg_tool_bar_menu_proxy): Handle case when tool bar label
418 is null.
419
2f9a22e2
J
4202011-02-13 Jan Djärv <jan.h.d@swipnet.se>
421
422 * callproc.c (Fcall_process):
423 * process.c (create_process): Replace Gtk with GConf in SIGPIPE
424 comment.
425
84eb0351 4262011-02-12 Martin Rudalics <rudalics@gmx.at>
bae1fa42
MR
427
428 * window.c (select_window): Check inhibit_point_swap argument when
429 deciding whether to return immediately.
430
84eb0351 4312011-02-12 Jan Djärv <jan.h.d@swipnet.se>
9aabf64c
JD
432
433 * nsterm.m (setFrame, initFrame): Make sure pixel_height doesn't become
434 zero (Bug#7348).
435
84eb0351
CY
4362011-02-12 Chong Yidong <cyd@stupidchicken.com>
437
438 * config.in (TERMINFO): New definition.
439
440 * s/netbsd.h: Use it to choose between terminfo and termcap
441 (Bug#7642).
442
33d605d0
PE
4432011-02-12 Paul Eggert <eggert@cs.ucla.edu>
444
445 * md5.c (md5_process_bytes): Use sizeof, not __alignof__.
446 The difference doesn't matter here, in practice, and sizeof is
447 more portable to non-GCC compilers. Also, this makes the code
448 match the already-existing comment.
449
c0ad4ea5
AS
4502011-02-12 Andreas Schwab <schwab@linux-m68k.org>
451
452 * process.c (create_process): Reset SIGPIPE handler in the child.
453 * callproc.c (Fcall_process): Likewise. (Bug#5238)
454
50fd938f
EZ
4552011-02-12 Eli Zaretskii <eliz@gnu.org>
456
457 * xdisp.c <this_line_min_pos>: New variable.
458 (move_it_in_display_line_to): Record in this_line_min_pos the
459 smallest position iterated across.
460 (display_line): Use this_line_min_pos to record the smallest
461 position in the line even if it is not displayed due to
462 hscrolling. (Bug#7939)
463
af59aa6e
PE
4642011-02-12 Paul Eggert <eggert@cs.ucla.edu>
465
cec81b22
PE
466 Port to Sun C 5.11, which has __attribute__ ((__aligned (N))).
467 * md5.h (ATTRIBUTE_ALIGNED): New macro.
468 (struct md5_ctx): Use it.
469
af59aa6e
PE
470 Port to Solaris 10, which doesn't support FC_HINT_STYLE.
471 * xftfont.c (FC_HINT_STYLE): #define to "hintstyle" if not
472 defined.
473 * xsettings.c (parse_settings, apply_xft_settings): Don't assume
474 FC_HINT_STYLE is supported.
475
02c3706c
JD
4762011-02-11 Jan Djärv <jan.h.d@swipnet.se>
477
478 * xterm.c (x_set_frame_alpha): Access data before it is free:d.
479 Make sure we don't do x_catch_errors twice.
480
5ac75e8f
GM
4812011-02-10 Glenn Morris <rgm@gnu.org>
482
483 * Makefile.in (really-lwlib): Depend on globals.h, for parallel builds.
484
d37f40ed
EZ
4852011-02-09 Eli Zaretskii <eliz@gnu.org>
486
5ac75e8f
GM
487 * makefile.w32-in (GLOBAL_SOURCES, SOME_MACHINE_OBJECTS, obj):
488 New macros.
d37f40ed
EZ
489 (globals.h, gl-stamp): New targets.
490 (clean): Clean gl-stamp and globals.h.
491
33cd3ee4
AS
4922011-02-09 Andreas Schwab <schwab@linux-m68k.org>
493
494 * Makefile.in (gl-stamp): Create globals.h here.
495 (globals.h): Don't do it here.
496 (mostlyclean): Clean globals.h and gl-stamp.
497
f9f2e7f5
PE
4982011-02-09 Paul Eggert <eggert@cs.ucla.edu>
499
500 * Makefile.in ($(otherobj)): Depend on globals.h.
501 Otherwise 'make -j10' failed on my host, because the build lacked
502 necessary dependencies, e.g., vm-limit.o depends on globals.h.
503
00b3c7ac
TT
5042011-02-08 Tom Tromey <tromey@redhat.com>
505
506 * Makefile.in (NS_OBJC_OBJ): New variable.
507 (base_obj): Rename from 'obj'.
508 (obj): New variable.
509 (globals.h, gl-stamp, $(obj)): New targets.
510 (GLOBAL_SOURCES): New variable.
511 * globals.h: Remove.
512 * nsselect.m (Vselection_alist): Define. Reverts part of
513 2011-01-19T22:11:33Z!jan.h.d@swipnet.se.
514 * buffer.c: Don't use "no_cell" for name of kill-buffer-hook's
515 variable.
516 * xselect.c (Vselection_alist): Define. Reverts part of 2011-01-19T23:32:42Z!eggert@cs.ucla.edu.
517
8f3b2e12
KH
5182011-02-08 Kenichi Handa <handa@m17n.org>
519
520 * font.c (Ffont_get): Do not cache :otf value.
521
4f043d0f
PE
5222011-02-07 Paul Eggert <eggert@cs.ucla.edu>
523
524 conform to C89 pointer rules
525
526 * dired.c (scmp, file_name_completion):
527 Change types between char * and unsigned char *, to satisfy C89
528 rules about pointer type compatibility.
47ce90e4 529 * casefiddle.c (casify_object, casify_region): Likewise.
a7e979a4 530 * search.c (Freplace_match, Fregexp_quote): Likewise.
90256841
PE
531 * alloc.c (make_string, make_specified_string, make_pure_string):
532 Likewise.
57ace6d0 533 * data.c (Fstring_to_number): Likewise.
09125ef8
PE
534 * print.c (float_to_string, PRINTFINISH, printchar, strout):
535 (print_object): Likewise.
e7f8264d
PE
536 * editfns.c (init_editfns, Fchar_to_string, Fbyte_to_string):
537 (Fuser_full_name, Fsubst_char_in_region, Ftranslate_region_internal):
538 (Fformat): Likewise.
a2db9982 539 * callint.c (Fcall_interactively): Likewise.
f1e59824
PE
540 * fns.c (string_make_multibyte, string_to_multibyte):
541 (string_make_unibyte, Fstring_as_unibyte, Fstring_to_unibyte):
542 (Fbase64_encode_region, base64_encode_1, Fbase64_decode_region, Fmd5):
543 Likewise.
4a25e32a 544 * lread.c (read1, hash_string): Likewise.
400a67ff
PE
545 * process.c (read_process_output, send_process, Fprocess_send_region):
546 Likewise.
0ca76b1e 547 * callproc.c (Fcall_process): Likewise.
7469ef5d
PE
548 * doprnt.c (doprnt): Likewise.
549 * indent.c (compute_motion): Likewise.
efe0234f 550 * xfont.c (xfont_decode_coding_xlfd): Likewise.
3ce2f8ac 551 * ralloc.c (resize_bloc): Likewise.
b19beacc 552 * image.c (tiff_load): Likewise.
c45e5276 553 * xml.c (make_dom, parse_region): Likewise.
7469ef5d
PE
554 * character.c (strwidth): Make its argument const char *, not const
555 unsigned char *, since more callers prefer it that way. All callers
556 changed.
4f043d0f 557
9eee99eb
PE
5582011-02-06 Paul Eggert <eggert@cs.ucla.edu>
559
4c83cffc
PE
560 * xterm.c (x_alloc_nearest_color_1): Avoid unportable int assumption.
561 Emacs assumes two's complement elsewhere, but the assumption is
562 easy to remove here, and this suppresses a warning with Sun C 5.8.
563
82470039
PE
564 conform to C89 pointer rules
565
566 * xterm.c (x_draw_fringe_bitmap, handle_one_xevent, x_bitmap_icon):
567 (same_x_server, x_term_init):
9eee99eb
PE
568 Change types between char * and unsigned char *, to satisfy C89
569 rules about pointer type compatibility.
82470039
PE
570 * doc.c (get_doc_string, Fsnarf_documentation):
571 (Fsubstitute_command_keys): Likewise.
5f742c1b
PE
572 * xfns.c (Fx_open_connection, Fx_window_property): Likewise.
573 * bitmaps/gray.xbm (gray_bits): Likewise.
b8dc29e9 574 * image.c (xbm_read_bitmap_data, xbm_load_image, xbm_load): Likewise.
847c0824
PE
575 * keyboard.c (echo_char, MULTI_LETTER_MOD, tty_read_avail_input):
576 Likewise.
01c9aa3a 577 * keymap.c (Ftext_char_description): Likewise.
637de37e 578 * minibuf.c (Fread_buffer): Likewise.
5976c3fe
PE
579 * fileio.c (IS_DRIVE) [defined WINDOWSNT]:
580 (DRIVE_LETTER) [defined DOS_NT]:
581 (report_file_error, Ffile_name_directory, Ffile_name_nondirectory):
582 (make_temp_name, Fexpand_file_name, file_name_absolute_p):
583 (search_embedded_absfilename, Fsubstitute_in_file_name):
584 (barf_or_query_if_file_exists, Fmake_directory_internal):
585 (Fdelete_directory_internal, Ffile_name_absolute_p, read_non_regular):
586 (Finsert_file_contents, Fwrite_region):
587 Likewise.
b68864e5
PE
588 * insdel.c (insert, insert_and_inherit, insert_before_markers):
589 (insert_before_markers_and_inherit, insert_1, insert_1_both):
590 Likewise. This changes these functions' signatures, which is
591 more convenient since most callers use char *. All remaining
592 callers changed.
593 * editfns.c (general_insert_function): Change signature to
594 match changes to insert functions' signatures.
01c9aa3a
PE
595 * keymap.c (map_keymap_char_table_item, map_keymap_internal): Use
596 explicit cast when converting between void * and function pointer
597 types, as C89 requires this.
9eee99eb 598
32299e33
PE
5992011-02-05 Paul Eggert <eggert@cs.ucla.edu>
600
601 don't ignore chdir failure
602 * sysdep.c (sys_subshell) [!defined DOS_NT]: Diagnose chdir
603 failure and exit.
604 (sys_subshell) [defined DOS_NT]: Mark with a FIXME the two
605 remaining unchecked chdir calls in this function; some DOS/NT
606 expert needs to fix them.
607 * emacs.c (main): Mark with a FIXME the unchecked chdir calls
608 in this function; some NextStep expert needs to fix them.
609
233ba4d9 6102011-02-05 Glenn Morris <rgm@gnu.org>
95838641
GM
611
612 * xfaces.c (Finternal_set_lisp_face_attribute):
613 Try to clarify some error messages. (Bug#2659)
614
233ba4d9 6152011-02-05 Stefan Monnier <monnier@iro.umontreal.ca>
aca092ac
SM
616
617 * editfns.c (save_restriction_restore): Don't forget to invalidate the
618 current_column cache (bug#7946).
619
233ba4d9 6202011-02-05 Kenichi Handa <handa@m17n.org>
ea2460a0
KH
621
622 * ftfont.c (ftfont_open): Use FC_DUAL only when it is defined.
623
624 * xftfont.c (xftfont_open): Likewise.
625
233ba4d9 6262011-02-05 Andreas Schwab <schwab@linux-m68k.org>
29feb0e9
AS
627
628 * window.c (Fselect_window): Add missing return value.
629
d67985d3
PE
6302011-02-05 Paul Eggert <eggert@cs.ucla.edu>
631
25a48bd0
PE
632 xstrcasecmp: conform to C89 pointer rules
633 * xfaces.c (xstrcasecmp): Change args from const unsigned char *
634 to const char *, since they're usually low-level C strings, and
635 this stays compatible with C89 pointer rules. All callers changed.
636
dfb6afda
PE
637 * charset.c: conform to C89 pointer rules
638 (define_charset_internal): Switch between char * and unsigned char *.
639
cc618f4e
PE
640 * xmenu.c: conform to C89 const rules
641 (xmenu_show, xdialog_show): Declare local var as char *, not
642 const char *, to stay compatible with C89 const rules.
643
9bcaafce
PE
644 * xdisp.c: conform to C89 pointer rules
645 (store_mode_line_noprop, display_string, reseat_to_string):
646 (c_string_pos, number_of_chars, message_dolog):
647 (message_log_check_duplicate, set_message_1, store_mode_line_noprop):
648 (display_mode_element, display_string):
649 Switch between char * and unsigned char * to stay compatible wth
650 C89 pointer rules.
651
5b0534c8
PE
652 * regex.c: conform to C89 pointer rules
653 (re_wctype): Add cast, as C89 does not allow assigning between
654 char * and unsigned char *.
655 (regex_compile): Likewise.
656
d67985d3
PE
657 sync from gnulib to remove HAVE_STDBOOL_H
658 * config.in: Regenerate.
659
a5d733f5
EZ
6602011-02-04 Eli Zaretskii <eliz@gnu.org>
661
f90e08f5
EZ
662 * makefile.w32-in (LISP_H, PROCESS_H): New variables.
663 Replace all uses of lisp.h with $(LISP_H), and all uses of
664 process.h with $(PROCESS_H).
665 ($(BLD)/editfns.$(O)): Depend on ../lib/strftime.h.
666 ($(BLD)/print.$(O)): Depend on ../lib/ftoastr.h and ../lib/intprops.h.
667
be50df37
EZ
668 * deps.mk: Update for recent changes: gnutls support, gnulib
669 imports, addition of globals.h.
670
f90e08f5
EZ
671 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on
672 ../lib/ignore-value.h.
a5d733f5 673
67342916
PE
6742011-02-03 Paul Eggert <eggert@cs.ucla.edu>
675
676 allow C code to suppress warnings about ignored return values
677
678 We need to go through the code and for each such warning, either
679 fix the code to pay attention to the returned value, or tell GCC
680 that we really do want to ignore the returned value. Here is one
681 example of how to do the latter.
682 * sysdep.c: Include <ignore-value.h>.
683 (sys_subshell): Suppress an undesirable warning about not checking
684 the returned value of 'write', as there's nothing useful one can
685 do with that returned value.
686
36941b32
JD
6872011-02-03 Jan Djärv <jan.h.d@swipnet.se>
688
689 * xterm.c (x_connection_closed): Remove all calls that calls
690 XSync (Bug#7949).
691
3082f617
EZ
6922011-02-01 Eli Zaretskii <eliz@gnu.org>
693
694 * image.c (tiff_load): Avoid compiler warning in 2nd arg to
695 TIFFClientOpen.
696
4df0af9b
JD
6972011-02-01 Jan Djärv <jan.h.d@swipnet.se>
698
699 * xsmfns.c (ice_connection_closed): Call delete_read_fd.
700 (x_session_check_input): Change args and return type so it can be used
701 as argument to add_read_fd. Make static. Remove call to select.
702 Call kbd_buffer_store_event for emacs_event.
703 (smc_save_yourself_CB): Also store initial argv to SmRestartCommand.
704 (ice_conn_watch_CB): Call add_read_fd.
705
706 * xterm.c (XTread_socket): Remove HAVE_X_SM block with call to
707 x_session_check_input.
708 (x_session_initialized): Remove definition.
709 (x_initialize): Remove setting of x_session_initialized.
710
711 * xterm.h (x_session_check_input): Remove declaration.
712
a4180391
PE
7132011-02-01 Paul Eggert <eggert@cs.ucla.edu>
714
715 format-time-string now supports subsecond time stamp resolution
716 * editfns.c (emacs_nmemftime): Renamed from emacs_memftimeu,
717 for consistency with its new argument and with gnulib nstrftime.
718 All callers changed. New argument NS.
719 (Fformat_time_string): Check that the time argument's microseconds
720 component, if any, is in range; this avoids integer overflow and
721 also nstrftime needs this. Document %N.
722
14beddf4 7232011-01-31 Andreas Schwab <schwab@linux-m68k.org>
df61c790
AS
724
725 * image.c (DEF_IMGLIB_FN): Add parameter rettype, use it instead
726 of int. All uses adjusted.
727 (PNG_JMPBUF, png_load, jpeg_load, tiff_load, gif_load)
728 (svg_load_image): Remove casts.
729
14beddf4 7302011-01-31 Chong Yidong <cyd@stupidchicken.com>
7f9c5df9
CY
731
732 * image.c (fn_png_longjmp, fn_png_set_longjmp_fn): New png
733 function definitions for compiling with libpng-1.5.
734 (PNG_LONGJMP, PNG_JMPBUF): New macros for libpng-1.5.
735 (my_png_error, png_load): Use them. Suggested by Thomas Klausner
736 (Bug#7908).
737
70b0d280
EZ
7382011-01-31 Eli Zaretskii <eliz@gnu.org>
739
8b3c625b
EZ
740 * s/ms-w32.h (HAVE_STRFTIME): Don't define.
741
70b0d280
EZ
742 * makefile.w32-in (OBJ2): Remove strftime.$(O).
743 ($(BLD)/strftime.$(O)): Remove prerequisites.
744
16fab143
PE
7452011-01-31 Paul Eggert <eggert@cs.ucla.edu>
746
747 src/emacs.c now gets version number from configure.in
748 * emacs.c (emacs_version): Set to VERSION so that it
749 is determined automatically from ../configure.in.
750
546961a9
JM
7512011-01-31 Jim Meyering <meyering@redhat.com>
752
753 * charset.c (load_charset_map): Don't deref NULL on failed malloc.
754 Use xmalloc rather than malloc.
755
42a5b22f
PE
7562011-01-30 Paul Eggert <eggert@cs.ucla.edu>
757
16c3e636
PE
758 strftime: import from gnulib
759 * Makefile.in (obj): Remove strftime.o, as gnulib now does this for us.
760 * deps.mk (strftime.o): Remove.
761 * editfns.c: Include <strftime.h>, supplied by gnulib.
762 (emacs_strftimeu): Remove decl.
763 (emacs_memftimeu): Use nstrftime (the gnulib name) rather than
764 emacs_strftimeu.
765 * config.in: Regenerate.
766 * strftime.c: Remove; we now use strftime from gnulib.
767
42a5b22f
PE
768 Use SSDATA when the context wants char *.
769 * alloc.c, buffer.c, bytecode.c, callproc.c, dired.c:
770 * dispnew.c, doc.c, editfns.c, emacs.c, fileio.c, filelock.c:
771 * fns.c, font.c, frame.c, image.c, indent.c, keyboard.c:
772 * lread.c, minibuf.c, print.c, process.c, search.c, widget.c:
773 * xdisp.c, xfaces.c, xfns.c, xml.c, xselect.c, xterm.c:
774 Use SSDATA (not SDATA) when the context of the expression wants
775 char * (not unsigned char *).
776
2787bba3
JD
7772011-01-30 Jan Djärv <jan.h.d@swipnet.se>
778
779 * .gdbinit: Read global lisp variables as globals.f_V*.
780
4ec88040
AS
7812011-01-30 Andreas Schwab <schwab@linux-m68k.org>
782
783 * font.c (PROP_MATCH): Remove parameter N and use strlen instead.
784 All uses changed.
785 (PROP_SAVE): Likewise.
786
b6bcd048
CY
7872011-01-29 Chong Yidong <cyd@stupidchicken.com>
788
789 * keyboard.c (make_lispy_position): Fix typo in last change
790 (Bug#7935).
791
f915f0f7
EZ
7922011-01-29 Eli Zaretskii <eliz@gnu.org>
793
794 * s/ms-w32.h (HAVE_MKTIME): Remove.
795
796 * makefile.w32-in (LOCAL_FLAGS): Add -I../lib.
797 (GNULIB): New variable.
798 (LIBS): Add $(GNULIB).
799 $(TEMACS): Depend on $(GNULIB).
800 <top-level>: Fix font-lock disrupted by a lone `"'.
801
497a1925
JD
8022011-01-29 Jan Djärv <jan.h.d@swipnet.se>
803
804 * nsselect.m (ns_string_from_pasteboard): Get length of string
805 and use make_string instead of build_string (Bug#7934).
806 (ns_string_to_pasteboard_internal): Use initWithBytesNoCopy
807 instead of stringWithUTF8String (Bug#7934).
808
481ae085
JD
8092011-01-29 Anders Lindgren <andlind@gmail.com> (tiny change)
810
811 * nsfont.m (nsfont_open): Ensure that fonts with inexact
812 descenders would not become one pixel too tall (Bug#7887).
813
6b918613
CY
8142011-01-28 Chong Yidong <cyd@stupidchicken.com>
815
816 * keyboard.c (make_lispy_position): For clicks on right fringe or
817 margin, compute text position using the X coordinate relative to
818 the left of the text area (Bug#7839).
819
9e269017
KH
8202011-01-28 Kenichi Handa <handa@m17n.org>
821
822 * ftfont.c (ftfont_spec_pattern): Check each extra property
823 value.
824
17dd1fc8
SM
8252011-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
826
827 * xdisp.c (safe_eval_handler): Distinguish symbols and strings.
828
372fb76b
CY
8292011-01-27 Chong Yidong <cyd@stupidchicken.com>
830
831 * font.c (font_parse_fcname): Undefine a temporary macro.
832
e7f7fbaa
SM
8332011-01-26 Stefan Monnier <monnier@iro.umontreal.ca>
834
835 Let the debugger continue to the normal handler (bug#7825).
836 * eval.c (maybe_call_debugger): Declare before new use.
837 (find_handler_clause): Don't call debugger any more.
838 Ignore Vstack_trace_on_error.
839 Use XCAR/XCDR.
840 (syms_of_eval): Remove Vstack_trace_on_error.
841 (Fsignal): Only modify handlerlist when we know we need to do it.
842 Call the debugger when necessary.
843 * globals.h (Vstack_trace_on_error): Remove.
844
6608a7d8
CY
8452011-01-26 Chong Yidong <cyd@stupidchicken.com>
846
847 * font.c (font_parse_fcname): Rewrite GTK font name parser.
848
06d8ace5 8492011-01-25 Stefan Monnier <monnier@iro.umontreal.ca>
f996bbcb
SM
850
851 * xdisp.c (handle_fontified_prop): Be careful with font-lock changing
852 the buffer's point-max (bug#7876).
853
06d8ace5 8542011-01-25 Chong Yidong <cyd@stupidchicken.com>
19634648
CY
855
856 * lisp.h (XPNTR): Obey DATA_SEG_BITS in all non-USE_LSB_TAG cases.
06d8ace5 857 Remove unused case (Bug#6811).
19634648 858
8ab70320
JD
8592011-01-23 Jan Djärv <jan.h.d@swipnet.se>
860
861 * nsterm.m (x_set_offset): Set dont_constrain to 0 so the call to
862 setFrameTopLeftPoint is constrained.
863
51b59d79
PE
8642011-01-23 Paul Eggert <eggert@cs.ucla.edu>
865
9055082e
PE
866 Check return values of some library calls.
867 * emacs.c (main): Check dup result.
868 * frame.c: Include <limits.h>, for INT_MIN and INT_MAX.
869 (frame_name_fnn_p): Check strtol result.
870
5c7d01a5 871 * image.c (x_create_bitmap_from_xpm_data): Add cast to fix type clash
f77fabaf
PE
872 when calling XpmCreatePixmapFromData.
873
51b59d79
PE
874 Promote SSDATA macro from gtkutil.c and xsmfns.c to lisp.h.
875 * lisp.h (SSDATA): New macro.
876 All uses of (char *) SDATA (x) replaced with SSDATA (x),
877 and all uses of (unsigned char *) SDATA (x) replaced with SDATA (x).
878 * gtkutil.c (SSDATA): Remove, as lisp.h now defines this.
879 * xsmfns.c (SSDATA): Likewise.
880
e6b84b30
MR
8812011-01-22 Martin Rudalics <rudalics@gmx.at>
882
883 * window.c (select_window): New function.
884 (Fselect_window): Call it.
885 (inhibit_point_swap): Variable deleted.
886 (Fset_window_configuration): Call select_window directly.
887
3fb69558
JD
8882011-01-22 Jan Djärv <jan.h.d@swipnet.se>
889
890 * nsterm.m (constrainFrameRect): Only constrain the first time called.
891
449ab399
JD
8922011-01-21 Jan Djärv <jan.h.d@swipnet.se>
893
e2f79c8d
JD
894 * nsterm.m (x_set_offset, windowDidMove): When calculating y, use first
895 screen, not the window screen.
896 (x_set_window_size): Remove constraints.
897 Calculate origin.y only if zooming is 0 and without referring to a
898 screen.
899 (windowWillResize): Don't modify frameSize.
900 (windowDidBecomeKey, mouseDown): Set dont_constrain to 1.
901 (initFrameFromEmacs): Initialize ns_userRect.
902 (windowShouldZoom): Set zooming to one. Remove all other code.
903 (windowWillUseStandardFrame): Move static ns_userRect to EmacsView.
904 Zero it after restore.
905 (constrainFrameRect): New method for EmacsWindow.
906 (mouseDragged): Always post NSWindowDidResizeNotification after call to
907 windowWillResize.
908
909 * nsterm.h (ns_output): Add dont_constrain and zooming.
910 (EmacsView): Add ns_userRect.
911
449ab399
JD
912 * nsterm.m (keyDown): If ns_right_alternate_modifier is Qleft, check
913 if ns_alternate_modifier is none.
914
e885315d
JD
9152011-01-20 Jan Djärv <jan.h.d@swipnet.se>
916
917 * unexmacosx.c: Add comment about include order.
918
bb1c6663
GM
9192011-01-20 Glenn Morris <rgm@gnu.org>
920
c11136ec
GM
921 * minibuf.c (syms_of_minibuf) <read-expression-history>:
922 Give it a doc string.
923 * globals.h: Add Vread_expression_history.
924
bb1c6663
GM
925 * macros.c (syms_of_macros) <kbd-macro-termination-hook>:
926 Give it a doc string.
927 * globals.h: Add Vkbd_macro_termination_hook.
928
9aea757b
CY
9292011-01-20 Chong Yidong <cyd@stupidchicken.com>
930
931 * fns.c (Fyes_or_no_p): Revert 2011-01-07 change, removing ARGS.
932
e1ef0dac
PE
9332011-01-19 Paul Eggert <eggert@cs.ucla.edu>
934
935 Fix X11 compilation failure.
936 * globals.h (struct emacs_globals): Document f_Vselection_alist.
937 * xselect.c (Vselection_alist): Remove declaration, moving its
938 documentation to globals.h. This fixes a compilation failure
939 induced by the earlier change to globals.h today.
940
fb9d0f5a
JD
9412011-01-19 Jan Djärv <jan.h.d@swipnet.se>
942
8beb828a
JD
943 * unexmacosx.c: Include config.h before unistd.h (Bug#7859).
944
fb9d0f5a
JD
945 * nsterm.m (ns_input_file, ns_input_font, ns_input_fontsize)
946 (ns_input_line, ns_input_color, ns_input_text, ns_working_text)
947 (ns_input_spi_name, ns_input_spi_arg)
948 (ns_alternate_modifier, ns_right_alternate_modifier)
949 (ns_command_modifier, ns_right_command_modifier, ns_control_modifier)
950 (ns_right_control_modifier, ns_function_modifier)
951 (ns_antialias_text, ns_confirm_quit): Move to globals.h.
952 (Vx_toolkit_scroll_bars, x_use_underline_position_properties)
953 (x_underline_at_descent_line): Remove declaration.
954 (syms_of_nsterm): Remove & from DEFVAR_LISP and DEFVAR_BOOL.
955
956 * nsselect.m (Vns_sent_selection_hooks, Vns_lost_selection_hooks
957 (Vselection_alist, Vselection_converter_alist): Move to globals.h.
958 (syms_of_nsselect): Remove & from DEFVAR_LISP.
959
960 * nsmenu.m (Voverriding_local_map, Voverriding_local_map_menu_flag):
961 Remove declaration.
962
963 * nsfont.m (Vns_reg_to_script, ns_antialias_text): Move to
964 globals.h.
965 (syms_of_nsfont): Remove & from DEFVAR_LISP.
966
967 * nsfns.m (Vmenu_bar_mode, Vtool_bar_mode): Remove declaration.
968 (Vns_icon_type_alist, Vns_version_string): Move to globals.h.
969 (syms_of_nsfns): Remove & from DEFVAR_LISP calls.
970
971 * globals.h (struct emacs_globals): Add f_ns_input_file,
972 f_ns_input_font, f_ns_input_fontsize, f_ns_input_line,
973 f_ns_input_color, f_ns_input_text, f_ns_working_text,
974 f_ns_input_spi_name, f_ns_input_spi_arg, f_ns_alternate_modifier,
975 f_ns_right_alternate_modifier, f_ns_command_modifier,
976 f_ns_right_command_modifier, f_ns_control_modifier,
977 f_ns_right_control_modifier, f_ns_function_modifier,
978 f_ns_antialias_text, f_ns_confirm_quit, f_Vns_icon_type_alist,
979 f_Vns_version_string, f_Vns_sent_selection_hooks,
980 f_Vns_lost_selection_hooks, f_Vselection_alist, f_Vns_reg_to_script
981 and corresponding defines.
982
983
4e55715e
SS
9842011-01-19 Sam Steingold <sds@gnu.org>
985
986 * w32.c (check_windows_init_file): Remove declarations of
987 Vwindow_system, Vload_path, Qfile_exists_p to fix compilation.
817a735d 988 * w32fns.c: Fix an error introduced by the previous patch.
4e55715e 989
ef79d2fa
TT
9902011-01-19 Tom Tromey <tromey@redhat.com>
991
992 * window.c: Fix error introduced by previous patch.
993
29208e82
TT
9942011-01-18 Tom Tromey <tromey@parfait>
995
996 * globals.h: New file.
997 * xterm.h (Vx_pixel_size_width_font_regexp): Remove declaration.
998 * window.h (Vinitial_window_system, Vminibuf_scroll_window)
999 (Vwindow_system_version): Remove declaration.
1000 * w32term.h (Vw32_enable_palette)
1001 (Vx_pixel_size_width_font_regexp): Remove declaration.
1002 * w32menu.c (Voverriding_local_map)
1003 (Voverriding_local_map_menu_flag): Remove declaration.
1004 * w32inevt.c (Vw32_alt_is_meta, Vw32_apps_modifier)
1005 (Vw32_capslock_is_shiftlock, Vw32_enable_caps_lock)
1006 (Vw32_enable_num_lock, Vw32_lwindow_modifier)
1007 (Vw32_pass_lwindow_to_system, Vw32_pass_rwindow_to_system)
1008 (Vw32_phantom_key_code, Vw32_recognize_altgr)
1009 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
1010 (w32_use_full_screen_buffer): Remove declaration.
1011 * w32.c (Vsystem_configuration, Vw32_downcase_file_names)
1012 (Vw32_generate_fake_inodes, Vw32_get_true_file_attributes)
1013 (w32_num_mouse_buttons, w32_pipe_read_delay): Remove declaration.
1014 * termopts.h (Vtruncate_partial_width_windows, inverse_video)
1015 (no_redraw_on_reenter, visible_bell): Remove declaration.
1016 * sysdep.c (Vsystem_name): Remove declaration.
1017 * syntax.h (parse_sexp_lookup_properties): Remove declaration.
1018 * menu.h (Vmenu_updating_frame): Remove declaration.
1019 * macros.h (Vexecuting_kbd_macro, executing_kbd_macro_index):
1020 Remove declaration.
1021 * lisp.h (Vafter_init_time, Vafter_load_alist)
1022 (Vauto_save_list_file_name, Vbefore_init_time, Vcommand_history)
1023 (Vcompletion_regexp_list, Vcurrent_load_list)
1024 (Vcurrent_prefix_arg, Vdata_directory, Vdebug_on_error)
1025 (Vdoc_directory, Vdoc_file_name, Vdynamic_library_alist)
1026 (Vexec_directory, Vexec_path, Vexec_suffixes)
1027 (Vface_font_rescale_alist, Vface_ignored_fonts, Vfeatures)
1028 (Vhelp_form, Vhistory_length, Vinhibit_field_text_motion)
1029 (Vinhibit_quit, Vinhibit_read_only, Vinhibit_redisplay)
1030 (Vinstallation_directory, Vinvocation_directory)
1031 (Vinvocation_name, Vload_file_rep_suffixes, Vload_history)
1032 (Vload_suffixes, Vmark_even_if_inactive, Vmemory_full)
1033 (Vmessage_log_max, Vobarray, Vprint_length, Vprint_level)
1034 (Vpurify_flag, Vquit_flag, Vsaved_region_selection)
1035 (Vscalable_fonts_allowed, Vselect_active_regions)
1036 (Vshell_file_name, Vstandard_input, Vstandard_output)
1037 (Vsystem_name, Vtemporary_file_directory, Vthrow_on_input)
1038 (Vtop_level, Vtty_erase_char, Vundo_outer_limit)
1039 (Vuser_login_name, Vwindow_scroll_functions)
1040 (Vwindow_system_version, Vx_no_window_manager)
1041 (Vx_resource_class, Vx_resource_name, baud_rate)
1042 (completion_ignore_case, debug_on_next_call, gc_cons_threshold)
1043 (history_delete_duplicates, inhibit_x_resources)
1044 (last_nonmenu_event, load_in_progress, max_specpdl_size)
1045 (minibuffer_auto_raise, print_escape_newlines, scroll_margin)
1046 (use_dialog_box, use_file_dialog): Remove declaration. Include
1047 globals.h.
1048 * keymap.h (Voverriding_local_map)
1049 (Voverriding_local_map_menu_flag, meta_prefix_char): Remove
1050 declaration.
1051 * keyboard.h (Vdouble_click_time, Vfunction_key_map)
1052 (Vinput_method_function, Vkey_translation_map)
1053 (Vlucid_menu_bar_dirty_flag, Vthis_original_command)
1054 (do_mouse_tracking, extra_keyboard_modifiers)
1055 (num_nonmacro_input_events): Remove declaration.
1056 * intervals.h (Vchar_property_alias_alist)
1057 (Vdefault_text_properties, Vinhibit_point_motion_hooks)
1058 (Vtext_property_default_nonsticky): Remove declaration.
1059 * gtkutil.h (x_gtk_file_dialog_help_text)
1060 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
1061 (x_gtk_whole_detached_tool_bar): Remove declaration.
1062 * frame.h (Vdefault_frame_alist, Vframe_alpha_lower_limit)
1063 (Vmenu_bar_mode, Vmouse_highlight, Vterminal_frame)
1064 (Vtool_bar_mode, Vx_resource_class, Vx_resource_name)
1065 (focus_follows_mouse): Remove declaration.
1066 * fontset.h (Valternate_fontname_alist, Vfontset_alias_alist)
1067 (Vignore_relative_composition, Votf_script_alist)
1068 (Vuse_default_ascent, Vvertical_centering_font_regexp): Remove
1069 declaration.
1070 * font.h (Vfont_log): Remove declaration.
1071 * dosfns.h (Vdos_display_scancodes, Vdos_version)
1072 (Vdos_windows_version, dos_codepage, dos_country_code)
1073 (dos_decimal_point, dos_hyper_key, dos_keyboard_layout)
1074 (dos_keypad_mode, dos_super_key, dos_timezone_offset): Remove
1075 declaration.
1076 * disptab.h (Vglyph_table, Vstandard_display_table): Remove
1077 declaration.
1078 * dispextern.h (Vface_remapping_alist, Vglyphless_char_display)
1079 (Vmouse_autoselect_window, Voverflow_newline_into_fringe)
1080 (Vshow_trailing_whitespace, Vtool_bar_button_margin)
1081 (Vtool_bar_style, cursor_in_echo_area, display_hourglass_p)
1082 (inverse_video, mode_line_in_non_selected_windows)
1083 (tool_bar_button_relief, tool_bar_max_label_size)
1084 (underline_minimum_offset)
1085 (unibyte_display_via_language_environment, x_stretch_cursor_p):
1086 Remove declaration.
1087 * composite.h (Vauto_composition_function)
1088 (Vcomposition_function_table): Remove declaration.
1089 * commands.h (Vexecuting_kbd_macro)
1090 (Vminibuffer_local_completion_map)
1091 (Vminibuffer_local_filename_completion_map)
1092 (Vminibuffer_local_filename_must_match_map)
1093 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
1094 (Vminibuffer_local_ns_map, Vthis_command)
1095 (Vunread_command_events, cursor_in_echo_area)
1096 (last_command_event, last_nonmenu_event, unread_command_char):
1097 Remove declaration.
1098 * coding.h (Vcoding_system_for_read, Vcoding_system_for_write)
1099 (Vdefault_file_name_coding_system)
1100 (Vdefault_process_coding_system, Vfile_name_coding_system)
1101 (Vlast_coding_system_used, Vlocale_coding_system)
1102 (Vselect_safe_coding_system_function)
1103 (Vtranslation_table_for_input, coding_system_require_warning)
1104 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
1105 (eol_mnemonic_unix, inherit_process_coding_system): Remove
1106 declaration.
1107 * charset.h (Vcharset_list, Vcurrent_iso639_language): Remove
1108 declaration.
1109 * character.h (Vauto_fill_chars, Vchar_direction_table)
1110 (Vchar_script_table, Vchar_width_table, Vprintable_chars)
1111 (Vscript_representative_chars, Vtranslation_table_vector)
1112 (Vunicode_category_table): Remove declaration.
1113 * ccl.h (Vfont_ccl_encoder_alist): Remove declaration.
1114 * buffer.h (Vafter_change_functions, Vbefore_change_functions)
1115 (Vdeactivate_mark, Vfirst_change_hook, Vtransient_mark_mode)
1116 (inhibit_modification_hooks): Remove declaration.
1117 * xterm.c (syms_of_xterm): Update.
1118 (Vx_alt_keysym, Vx_hyper_keysym, Vx_keysym_table)
1119 (Vx_meta_keysym, Vx_super_keysym, Vx_toolkit_scroll_bars)
1120 (x_mouse_click_focus_ignore_position)
1121 (x_underline_at_descent_line)
1122 (x_use_underline_position_properties): Remove.
1123 * xsmfns.c (syms_of_xsmfns): Update.
1124 (Vx_session_id, Vx_session_previous_id): Remove.
1125 * xsettings.c (syms_of_xsettings): Update.
1126 (Vxft_settings, use_system_font): Remove.
1127 * xselect.c (syms_of_xselect): Update.
1128 (Vselection_converter_alist, Vx_lost_selection_functions)
1129 (Vx_sent_selection_functions, x_selection_timeout): Remove.
1130 * xfns.c (syms_of_xfns): Update.
1131 (Vgtk_version_string, Vmotif_version_string)
1132 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
1133 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
1134 (Vx_no_window_manager, Vx_nontext_pointer_shape)
1135 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
1136 (Vx_sensitive_text_pointer_shape)
1137 (Vx_window_horizontal_drag_shape, x_gtk_file_dialog_help_text)
1138 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
1139 (x_gtk_use_system_tooltips, x_gtk_whole_detached_tool_bar):
1140 Remove.
1141 * xfaces.c (syms_of_xfaces): Update.
1142 (Vface_default_stipple, Vface_font_rescale_alist)
1143 (Vface_ignored_fonts, Vface_new_frame_defaults)
1144 (Vface_remapping_alist, Vfont_list_limit)
1145 (Vscalable_fonts_allowed, Vtty_defined_color_alist): Remove.
1146 * xdisp.c (syms_of_xdisp): Update.
1147 (Vauto_resize_tool_bars, Vblink_cursor_alist)
1148 (Vdisplay_pixels_per_inch, Vfontification_functions)
1149 (Vframe_title_format, Vglobal_mode_string)
1150 (Vglyphless_char_display, Vhourglass_delay, Vhscroll_step)
1151 (Vicon_title_format, Vinhibit_redisplay)
1152 (Vline_number_display_limit, Vline_prefix)
1153 (Vmax_mini_window_height, Vmenu_bar_update_hook)
1154 (Vmenu_updating_frame, Vmessage_log_max)
1155 (Vmouse_autoselect_window, Vnobreak_char_display)
1156 (Voverlay_arrow_position, Voverlay_arrow_string)
1157 (Voverlay_arrow_variable_list, Vredisplay_end_trigger_functions)
1158 (Vresize_mini_windows, Vshow_trailing_whitespace)
1159 (Vtool_bar_border, Vtool_bar_button_margin, Vtool_bar_style)
1160 (Vtruncate_partial_width_windows, Vvoid_text_area_pointer)
1161 (Vwindow_scroll_functions, Vwindow_size_change_functions)
1162 (Vwindow_text_change_functions, Vwrap_prefix)
1163 (auto_raise_tool_bar_buttons_p, automatic_hscrolling_p)
1164 (debug_end_pos, display_hourglass_p, emacs_scroll_step)
1165 (highlight_nonselected_windows, hscroll_margin)
1166 (inhibit_eval_during_redisplay, inhibit_free_realized_faces)
1167 (inhibit_menubar_update, inhibit_try_cursor_movement)
1168 (inhibit_try_window_id, inhibit_try_window_reusing)
1169 (line_number_display_limit_width)
1170 (make_cursor_line_fully_visible_p, message_truncate_lines)
1171 (mode_line_inverse_video, multiple_frames, overline_margin)
1172 (scroll_conservatively, scroll_margin, tool_bar_button_relief)
1173 (tool_bar_max_label_size, underline_minimum_offset)
1174 (unibyte_display_via_language_environment, x_stretch_cursor_p):
1175 Remove.
1176 * window.c (syms_of_window): Update.
1177 (Vminibuf_scroll_window, Vother_window_scroll_buffer)
1178 (Vrecenter_redisplay, Vscroll_preserve_screen_position)
1179 (Vtemp_buffer_show_function, Vwindow_configuration_change_hook)
1180 (Vwindow_point_insertion_type, auto_window_vscroll_p)
1181 (mode_line_in_non_selected_windows, next_screen_context_lines)
1182 (window_min_height, window_min_width): Remove.
1183 (scroll_margin): Remove declaration.
1184 * w32term.c (syms_of_w32term): Update.
1185 (Vw32_capslock_is_shiftlock, Vw32_grab_focus_on_raise)
1186 (Vw32_recognize_altgr, Vw32_swap_mouse_buttons)
1187 (Vx_toolkit_scroll_bars, w32_num_mouse_buttons)
1188 (w32_use_visible_system_caret, x_underline_at_descent_line)
1189 (x_use_underline_position_properties): Remove.
1190 (Vcommand_line_args, Vsystem_name, extra_keyboard_modifiers):
1191 Remove declaration.
1192 * w32select.c (syms_of_w32select): Update.
1193 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
1194 * w32proc.c (syms_of_ntproc): Update.
1195 (Vw32_downcase_file_names, Vw32_generate_fake_inodes)
1196 (Vw32_get_true_file_attributes, Vw32_quote_process_args)
1197 (Vw32_start_process_inherit_error_mode)
1198 (Vw32_start_process_share_console)
1199 (Vw32_start_process_show_window, w32_pipe_read_delay): Remove.
1200 (Vsystem_name): Remove declaration.
1201 * w32font.c (syms_of_w32font): Update.
1202 (Vw32_charset_info_alist): Remove.
1203 * w32fns.c (globals_of_w32fns, syms_of_w32fns): Update.
1204 (Vw32_alt_is_meta, Vw32_apps_modifier, Vw32_bdf_filename_alist)
1205 (Vw32_color_map, Vw32_enable_caps_lock, Vw32_enable_num_lock)
1206 (Vw32_enable_palette, Vw32_lwindow_modifier)
1207 (Vw32_pass_alt_to_system, Vw32_pass_lwindow_to_system)
1208 (Vw32_pass_rwindow_to_system, Vw32_phantom_key_code)
1209 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
1210 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
1211 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
1212 (Vx_no_window_manager, Vx_nontext_pointer_shape)
1213 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
1214 (Vx_sensitive_text_pointer_shape)
1215 (Vx_window_horizontal_drag_shape, w32_ansi_code_page)
1216 (w32_enable_synthesized_fonts, w32_mouse_button_tolerance)
1217 (w32_mouse_move_interval)
1218 (w32_pass_extra_mouse_buttons_to_system)
1219 (w32_pass_multimedia_buttons_to_system, w32_quit_key)
1220 (w32_strict_fontnames, w32_strict_painting): Remove.
1221 (Vhourglass_delay, Vmenu_bar_mode, Vtool_bar_mode)
1222 (Vw32_recognize_altgr, Vwindow_system_version)
1223 (w32_num_mouse_buttons, w32_use_visible_system_caret): Remove
1224 declaration.
1225 * w32console.c (syms_of_ntterm): Update.
1226 (w32_use_full_screen_buffer): Remove.
1227 (Vtty_defined_color_alist): Remove declaration.
1228 * w16select.c (syms_of_win16select): Update.
1229 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
1230 * undo.c (syms_of_undo): Update.
1231 (Vundo_outer_limit, Vundo_outer_limit_function)
1232 (undo_inhibit_record_point, undo_limit, undo_strong_limit):
1233 Remove.
1234 * textprop.c (syms_of_textprop): Update.
1235 (Vchar_property_alias_alist, Vdefault_text_properties)
1236 (Vinhibit_point_motion_hooks, Vtext_property_default_nonsticky):
1237 Remove.
1238 * terminal.c (syms_of_terminal): Update.
1239 (Vdelete_terminal_functions, Vring_bell_function): Remove.
1240 * term.c (syms_of_term): Update.
1241 (Vresume_tty_functions, Vsuspend_tty_functions)
1242 (no_redraw_on_reenter, system_uses_terminfo, visible_cursor):
1243 Remove.
1244 * syntax.c (syms_of_syntax): Update.
1245 (Vfind_word_boundary_function_table, multibyte_syntax_as_symbol)
1246 (open_paren_in_column_0_is_defun_start)
1247 (parse_sexp_ignore_comments, parse_sexp_lookup_properties)
1248 (words_include_escapes): Remove.
1249 * search.c (syms_of_search): Update.
1250 (Vinhibit_changing_match_data, Vsearch_spaces_regexp): Remove.
1251 * process.c (syms_of_process): Update.
1252 (Vprocess_adaptive_read_buffering, Vprocess_connection_type)
1253 (delete_exited_processes): Remove.
1254 * print.c (syms_of_print): Update.
1255 (Vfloat_output_format, Vprint_charset_text_property)
1256 (Vprint_circle, Vprint_continuous_numbering, Vprint_gensym)
1257 (Vprint_length, Vprint_level, Vprint_number_table)
1258 (Vstandard_output, print_escape_multibyte)
1259 (print_escape_newlines, print_escape_nonascii, print_quoted):
1260 Remove.
1261 * msdos.c (syms_of_msdos): Update.
1262 (Vdos_unsupported_char_glyph): Remove.
1263 (unibyte_display_via_language_environment): Remove declaration.
1264 * minibuf.c (syms_of_minibuf): Update.
1265 (Vcompletion_regexp_list, Vhistory_add_new_input)
1266 (Vhistory_length, Vminibuffer_completing_file_name)
1267 (Vminibuffer_completion_confirm)
1268 (Vminibuffer_completion_predicate, Vminibuffer_completion_table)
1269 (Vminibuffer_exit_hook, Vminibuffer_help_form)
1270 (Vminibuffer_history_position, Vminibuffer_history_variable)
1271 (Vminibuffer_prompt_properties, Vminibuffer_setup_hook)
1272 (Vread_buffer_function, Vread_expression_map)
1273 (completion_ignore_case, enable_recursive_minibuffers)
1274 (history_delete_duplicates, minibuffer_allow_text_properties)
1275 (minibuffer_auto_raise, read_buffer_completion_ignore_case):
1276 Remove.
1277 * marker.c (syms_of_marker): Update.
1278 (byte_debug_flag): Remove.
1279 * macros.c (syms_of_macros): Update.
1280 (Vexecuting_kbd_macro, executing_kbd_macro_index): Remove.
1281 * lread.c (syms_of_lread): Update.
1282 (Vafter_load_alist, Vbyte_boolean_vars)
1283 (Vbytecomp_version_regexp, Vcurrent_load_list)
1284 (Veval_buffer_list, Vload_file_name, Vload_file_rep_suffixes)
1285 (Vload_history, Vload_path, Vload_read_function)
1286 (Vload_source_file_function, Vload_suffixes, Vobarray)
1287 (Vold_style_backquotes, Vpreloaded_file_list, Vread_circle)
1288 (Vread_symbol_positions_list, Vread_with_symbol_positions)
1289 (Vsource_directory, Vstandard_input, Vuser_init_file, Vvalues)
1290 (force_load_messages, load_convert_to_unibyte)
1291 (load_dangerous_libraries, load_force_doc_strings)
1292 (load_in_progress): Remove.
1293 * keymap.c (syms_of_keymap): Update.
1294 (Vdefine_key_rebound_commands, Vemulation_mode_map_alists)
1295 (Vminibuffer_local_completion_map)
1296 (Vminibuffer_local_filename_completion_map)
1297 (Vminibuffer_local_filename_must_match_map)
1298 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
1299 (Vminibuffer_local_ns_map, Vminor_mode_map_alist)
1300 (Vminor_mode_overriding_map_alist, Vwhere_is_preferred_modifier):
1301 Remove.
1302 * keyboard.c (syms_of_keyboard): Update.
1303 (Vauto_save_timeout, Vcommand_error_function)
1304 (Vcommand_hook_internal, Vdeactivate_mark)
1305 (Vdeferred_action_function, Vdeferred_action_list)
1306 (Vdisable_point_adjustment, Vdouble_click_time)
1307 (Vecho_keystrokes, Venable_disabled_menus_and_buttons)
1308 (Vfunction_key_map, Vglobal_disable_point_adjustment)
1309 (Vhelp_char, Vhelp_event_list, Vhelp_form)
1310 (Vinput_method_function, Vinput_method_previous_message)
1311 (Vkey_translation_map, Vlast_event_frame)
1312 (Vlucid_menu_bar_dirty_flag, Vmenu_bar_final_items)
1313 (Vminibuffer_message_timeout, Voverriding_local_map)
1314 (Voverriding_local_map_menu_flag, Vpost_command_hook)
1315 (Vpre_command_hook, Vprefix_help_command)
1316 (Vsaved_region_selection, Vselect_active_regions)
1317 (Vshow_help_function, Vspecial_event_map, Vsuggest_key_bindings)
1318 (Vthis_command, Vthis_command_keys_shift_translated)
1319 (Vthis_original_command, Vthrow_on_input, Vtimer_idle_list)
1320 (Vtimer_list, Vtool_bar_separator_image_expression, Vtop_level)
1321 (Vtty_erase_char, Vunread_command_events)
1322 (Vunread_input_method_events, Vunread_post_input_method_events)
1323 (auto_save_interval, cannot_suspend, do_mouse_tracking)
1324 (double_click_fuzz, extra_keyboard_modifiers)
1325 (inhibit_local_menu_bar_menus, last_command_event)
1326 (last_input_event, last_nonmenu_event, menu_prompt_more_char)
1327 (menu_prompting, meta_prefix_char, num_input_keys)
1328 (num_nonmacro_input_events, polling_period, unread_command_char):
1329 Remove.
1330 * insdel.c (syms_of_insdel): Update.
1331 (Vcombine_after_change_calls, check_markers_debug_flag): Remove.
1332 * indent.c (syms_of_indent): Update.
1333 (indent_tabs_mode): Remove.
1334 * image.c (syms_of_image): Update.
1335 (Vimage_cache_eviction_delay, Vimage_types)
1336 (Vimagemagick_render_type, Vmax_image_size, Vx_bitmap_file_path)
1337 (cross_disabled_images): Remove.
1338 * fringe.c (syms_of_fringe): Update.
1339 (Vfringe_bitmaps, Voverflow_newline_into_fringe): Remove.
1340 * frame.c (syms_of_frame): Update.
1341 (Vdefault_frame_alist, Vdefault_frame_scroll_bars)
1342 (Vdelete_frame_functions, Vframe_alpha_lower_limit)
1343 (Vmake_pointer_invisible, Vmenu_bar_mode, Vmouse_highlight)
1344 (Vmouse_position_function, Vterminal_frame, Vtool_bar_mode)
1345 (Vx_resource_class, Vx_resource_name, focus_follows_mouse):
1346 Remove.
1347 * fontset.c (syms_of_fontset): Update.
1348 (Valternate_fontname_alist, Vfont_encoding_charset_alist)
1349 (Vfontset_alias_alist, Vignore_relative_composition)
1350 (Votf_script_alist, Vuse_default_ascent)
1351 (Vvertical_centering_font_regexp): Remove.
1352 * font.c (syms_of_font): Update.
1353 (Vfont_encoding_alist, Vfont_log, Vfont_slant_table)
1354 (Vfont_weight_table, Vfont_width_table): Remove.
1355 * fns.c (syms_of_fns): Update.
1356 (Vfeatures, use_dialog_box, use_file_dialog): Remove.
1357 * filelock.c (syms_of_filelock): Update.
1358 (Vtemporary_file_directory): Remove.
1359 * fileio.c (syms_of_fileio): Update.
1360 (Vafter_insert_file_functions, Vauto_save_include_big_deletions)
1361 (Vauto_save_list_file_name, Vauto_save_visited_file_name)
1362 (Vdefault_file_name_coding_system, Vfile_name_coding_system)
1363 (Vfile_name_handler_alist, Vinhibit_file_name_handlers)
1364 (Vinhibit_file_name_operation, Vset_auto_coding_function)
1365 (Vwrite_region_annotate_functions)
1366 (Vwrite_region_annotations_so_far)
1367 (Vwrite_region_post_annotation_function)
1368 (delete_by_moving_to_trash, write_region_inhibit_fsync): Remove.
1369 (Vw32_get_true_file_attributes): Remove declaration.
1370 * eval.c (syms_of_eval): Update.
1371 (Vdebug_ignored_errors, Vdebug_on_error, Vdebug_on_signal)
1372 (Vdebugger, Vinhibit_quit, Vmacro_declaration_function)
1373 (Vquit_flag, Vsignal_hook_function, Vstack_trace_on_error)
1374 (debug_on_next_call, debug_on_quit, debugger_may_continue)
1375 (max_lisp_eval_depth, max_specpdl_size): Remove.
1376 * emacs.c (syms_of_emacs): Update.
1377 (Vafter_init_time, Vbefore_init_time, Vcommand_line_args)
1378 (Vdynamic_library_alist, Vemacs_copyright, Vemacs_version)
1379 (Vinstallation_directory, Vinvocation_directory)
1380 (Vinvocation_name, Vkill_emacs_hook, Vpath_separator)
1381 (Vprevious_system_messages_locale, Vprevious_system_time_locale)
1382 (Vsystem_configuration, Vsystem_configuration_options)
1383 (Vsystem_messages_locale, Vsystem_time_locale, Vsystem_type)
1384 (inhibit_x_resources, noninteractive1): Remove.
1385 * editfns.c (syms_of_editfns): Update.
1386 (Vbuffer_access_fontified_property)
1387 (Vbuffer_access_fontify_functions, Vinhibit_field_text_motion)
1388 (Voperating_system_release, Vsystem_name, Vuser_full_name)
1389 (Vuser_login_name, Vuser_real_login_name): Remove.
1390 * dosfns.c (syms_of_dosfns): Update.
1391 (Vdos_display_scancodes, Vdos_version, Vdos_windows_version)
1392 (dos_codepage, dos_country_code, dos_decimal_point)
1393 (dos_hyper_key, dos_keyboard_layout, dos_keypad_mode)
1394 (dos_super_key, dos_timezone_offset): Remove.
1395 * doc.c (syms_of_doc): Update.
1396 (Vbuild_files, Vdoc_file_name): Remove.
1397 * dispnew.c (syms_of_display): Update.
1398 (Vglyph_table, Vinitial_window_system)
1399 (Vredisplay_preemption_period, Vstandard_display_table)
1400 (Vwindow_system_version, baud_rate, cursor_in_echo_area)
1401 (inverse_video, redisplay_dont_pause, visible_bell): Remove.
1402 * dired.c (syms_of_dired): Update.
1403 (Vcompletion_ignored_extensions): Remove.
1404 (Vw32_get_true_file_attributes): Remove declaration.
1405 * dbusbind.c (syms_of_dbusbind): Update.
1406 (Vdbus_debug, Vdbus_registered_buses)
1407 (Vdbus_registered_objects_table): Remove.
1408 * data.c (syms_of_data): Update.
1409 (Vmost_negative_fixnum, Vmost_positive_fixnum): Remove.
1410 * composite.c (syms_of_composite): Update.
1411 (Vauto_composition_function, Vauto_composition_mode)
1412 (Vcompose_chars_after_function, Vcomposition_function_table):
1413 Remove.
1414 * coding.c (syms_of_coding): Update.
1415 (Vcharset_revision_table, Vcoding_category_list)
1416 (Vcoding_system_alist, Vcoding_system_for_read)
1417 (Vcoding_system_for_write, Vcoding_system_list)
1418 (Vdefault_process_coding_system, Venable_character_translation)
1419 (Vfile_coding_system_alist, Vlast_code_conversion_error)
1420 (Vlast_coding_system_used, Vlatin_extra_code_table)
1421 (Vlocale_coding_system, Vnetwork_coding_system_alist)
1422 (Vprocess_coding_system_alist)
1423 (Vselect_safe_coding_system_function)
1424 (Vstandard_translation_table_for_decode)
1425 (Vstandard_translation_table_for_encode)
1426 (Vtranslation_table_for_input, coding_system_require_warning)
1427 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
1428 (eol_mnemonic_unix, inherit_process_coding_system)
1429 (inhibit_eol_conversion, inhibit_iso_escape_detection)
1430 (inhibit_null_byte_detection): Remove.
1431 * cmds.c (syms_of_cmds): Update.
1432 (Vpost_self_insert_hook): Remove.
1433 * charset.c (syms_of_charset): Update.
1434 (Vcharset_list, Vcharset_map_path, Vcurrent_iso639_language)
1435 (inhibit_load_charset_map): Remove.
1436 * character.c (syms_of_character): Update.
1437 (Vauto_fill_chars, Vchar_direction_table, Vchar_script_table)
1438 (Vchar_width_table, Vprintable_chars)
1439 (Vscript_representative_chars, Vtranslation_table_vector)
1440 (Vunicode_category_table): Remove.
1441 * ccl.c (syms_of_ccl): Update.
1442 (Vcode_conversion_map_vector, Vfont_ccl_encoder_alist)
1443 (Vtranslation_hash_table_vector): Remove.
1444 * category.c (syms_of_category): Update.
1445 (Vword_combining_categories, Vword_separating_categories): Remove.
1446 * callproc.c (syms_of_callproc): Update.
1447 (Vconfigure_info_directory, Vdata_directory, Vdoc_directory)
1448 (Vexec_directory, Vexec_path, Vexec_suffixes)
1449 (Vinitial_environment, Vprocess_environment)
1450 (Vshared_game_score_directory, Vshell_file_name): Remove.
1451 * callint.c (syms_of_callint): Update.
1452 (Vcommand_debug_status, Vcommand_history, Vcurrent_prefix_arg)
1453 (Vmark_even_if_inactive, Vmouse_leave_buffer_hook): Remove.
1454 * bytecode.c (syms_of_bytecode): Update.
1455 (Vbyte_code_meter, byte_metering_on): Remove.
1456 * buffer.c (syms_of_buffer): Update.
1457 (Vafter_change_functions, Vbefore_change_functions)
1458 (Vchange_major_mode_hook, Vfirst_change_hook)
1459 (Vinhibit_read_only, Vkill_buffer_query_functions)
1460 (Vtransient_mark_mode, inhibit_modification_hooks): Remove.
1461 * alloc.c (syms_of_alloc): Update.
1462 (Vgc_cons_percentage, Vgc_elapsed, Vmemory_full)
1463 (Vmemory_signal_data, Vpost_gc_hook, Vpurify_flag)
1464 (cons_cells_consed, floats_consed, garbage_collection_messages)
1465 (gc_cons_threshold, gcs_done, intervals_consed)
1466 (misc_objects_consed, pure_bytes_used, string_chars_consed)
1467 (strings_consed, symbols_consed, vector_cells_consed): Remove.
1468
1469 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
1470 (DEFVAR_INT): Assume global is in `globals'.
1471 * alloc.c (globals): Define.
1472
448c0820
TT
14732011-01-18 Tom Tromey <tromey@redhat.com>
1474
1475 * image.c (Vimagemagick_render_type): Remove redundant
1476 definition.
1477
8442d95d
TT
14782011-01-18 Tom Tromey <tromey@redhat.com>
1479
1480 * xdisp.c (emacs_scroll_step): Rename from scroll_step.
1481 (try_scrolling): Rename argument to 'arg_scroll_conservatively'.
1482 (redisplay_window): Update.
1483 (syms_of_xdisp): Update.
1484
cab0ba98
TT
14852011-01-18 Tom Tromey <tromey@redhat.com>
1486
1487 * gtkutil.h (x_gtk_use_old_file_dialog, x_gtk_show_hidden_files)
1488 (x_gtk_file_dialog_help_text, x_gtk_whole_detached_tool_bar):
1489 Declare.
1490 * gtkutil.c (xg_uses_old_file_dialog):
1491 (xg_get_file_with_chooser):
1492 (xg_tool_bar_detach_callback): Don't redeclare globals.
1493
422745d0
TT
14942011-01-18 Tom Tromey <tromey@redhat.com>
1495
1496 * lisp.h (DEFVAR_BUFFER_DEFAULTS): New macro.
1497 * buffer.c (syms_of_buffer): Use DEFVAR_BUFFER_DEFAULTS.
1498
7cae64b4
PE
14992011-01-18 Paul Eggert <eggert@cs.ucla.edu>
1500
1501 * lisp.h (DECL_ALIGN): Define if HAVE_ATTRIBUTE_ALIGNED, not if
1502 defined __GNUC__. ../configure now checks for this GCC feature,
1503 which is now also supported by IBM and Oracle compilers.
1504 (USE_LSB_TAG) [defined DECL_ALIGN]: Also define if defined __sun,
1505 since Solaris malloc returns mult-of-8.
1506
a9faac5c 15072011-01-18 Stefan Monnier <monnier@iro.umontreal.ca>
0514b4be
SM
1508
1509 * image.c (syms_of_image): Don't access XSYMBOL's internals directly.
1510
a3e44e79 15112011-01-17 Paul Eggert <eggert@cs.ucla.edu>
fa2c4f56 1512
6e8e6bf2
PE
1513 Give a name FLOAT_TO_STRING_BUFSIZE to the constant 350.
1514 * lisp.h (FLOAT_TO_STRING_BUFSIZE): New macro.
1515 * data.c (Fnumber_to_string): Use it.
1516 * print.c (float_to_string, print_object): Likewise.
1517
4004364e
PE
1518 Include <unistd.h> unilaterally.
1519 * alloc.c, atimer.c, buffer.c, callproc.c, dired.c, dispnew.c, doc.c:
1520 * doprnt.c, editfns.c, emacs.c, fileio.c, filelock.c, fns.c:
1521 * getloadavg.c, getpagesize.h, gmalloc.c, image.c, keyboard.c:
1522 * lread.c, process.c, process.h, ralloc.c, regex.c, sysdep.c:
1523 * systty.h, term.c, termcap.c, xfns.c, xrdb.c, xselect.c, xsmfns.c:
1524 * xterm.c:
1525 Include <unistd.h> without worrying about HAVE_UNISTD_H, since
1526 unistd.h is always present now, possibly supplied by gnulib.
1527
e84aba69
PE
1528 * mktime.c: Remove; moving to ../lib.
1529
1e11dbe3
PE
1530 Use gnulib's mktime module.
1531 * deps.mk (mktime.o): Remove rule.
1532
fa2c4f56
PE
1533 Use gnulib's ftoastr module.
1534 * print.c: Include ftoastr.h.
1535 (FLT_RADIX, DBL_MANT_DIG, DBL_DIG, DBL_MIN, DOUBLE_DIGITS_BOUND):
1536 Remove; no longer needed.
1537 (float_to_string): Use dtoastr rather than rolling our own code,
1538 which had an off-by-one bug on non-IEEE hosts.
1539
9a514d4a
PE
1540 Automate syncing from gnulib.
1541 * Makefile.in (lib): New macro.
1542 (ALL_CFLAGS): Add -I$(lib) -I$(srcdir)/../lib.
1543 ($(lib)/libgnu.a): New rule.
1544 (temacs$(EXEEXT)): Also link $(lib)/libgnu.a.
1545
717c30e0
PE
1546 * xfns.c (x_real_positions): Fix signedness of local var 'ign'.
1547 XGetGeometry wants unsigned int *, not int *, for its last 4 args,
1548 so change the type of 'ign' to unsigned int from int.
1549
8865d794
PE
1550 * regex.c (analyse_first): Remove unreachable 'continue' statement.
1551
4ef36a7b
PE
1552 * xterm.h (struct x_display_info): Remove stray semicolon.
1553 The extra semicolon didn't conform to the C standard.
1554 Problem reported by Sun cc.
1555
6df4097e
PE
1556 * lisp.h: Redo flags and XSET slightly to avoid overflow diagnostics.
1557 These changes make compilation easier to follow with Sun cc.
1558 (ARRAY_MARK_FLAG): Make it signed, so that it can be assigned to
1559 EMACS_INT values without provoking overflow diagnostics.
1560 (PSEUDOVECTOR_FLAG): Likewise, for consistency.
1561 (XSET) [! USE_LSB_TAG]: Use unsigned left shift to avoid overflow
1562 diagnostic with signed left shift.
9fba3563 1563
410ed5c3
PE
1564 * fileio.c (make_temp_name): Remove unreachable code.
1565
97be3ce3
PE
1566 * fontset.c (free_realized_fontset): Mark unreachable code with if (0).
1567 Previously it was marked by preceding it with "return;", but
1568 Sun cc complains about this.
1569
9fba3563
PE
1570 * coding.c (decode_coding_emacs_mule): Remove unreachable code.
1571 This is a typo left over from 2009-03-06T07:51:52Z!handa@m17n.org,
1572 which fixed Bug#2370. Caught by Sun cc.
1573
6dc1d2d3
MR
15742011-01-15 Martin Rudalics <rudalics@gmx.at>
1575
1576 * window.c (inhibit_point_swap): New variable.
1577 (Fselect_window): If inhibit_point_swap is nonzero, avoid swapping
1578 point this time.
1579 (Fset_window_configuration): Set inhibit_point_swap to 1 instead
1580 of setting selected_window to nil (Bug#7728).
1581
f853f599
TH
15822011-01-11 Tassilo Horn <tassilo@member.fsf.org>
1583
8dabbfd6
SM
1584 * image.c (imagemagick_load_image, Finit_image_library):
1585 Free intermediate image after creating a MagickWand from it.
1586 Terminate MagickWand environment after image loading.
f853f599 1587
2bc92a93
MA
15882011-01-10 Michael Albinus <michael.albinus@gmx.de>
1589
1590 * dbusbind.c (Fdbus_register_service): Raise an error in case of
1591 unexpected return values.
1592 (Fdbus_register_method): Remove connection initialization.
1593
15942011-01-10 Jan Moringen <jan.moringen@uni-bielefeld.de>
5b83ba18
MA
1595
1596 * dbusbind.c (QCdbus_request_name_allow_replacement): New symbol;
1597 used by Fdbus_register_service.
1598 (QCdbus_request_name_replace_existing): Likewise.
1599 (QCdbus_request_name_do_not_queue): Likewise.
1600 (QCdbus_request_name_reply_primary_owner): Likewise.
1601 (QCdbus_request_name_reply_in_queue): Likewise.
1602 (QCdbus_request_name_reply_exists): Likewise.
1603 (QCdbus_request_name_reply_already_owner): Likewise.
1604 (Fdbus_register_service): New function.
1605 (Fdbus_register_method): Use Fdbus_register_service to do the name
1606 registration.
1607 (syms_of_dbusbind): Add symbols dbus-register-service,
1608 :allow-replacement, :replace-existing, :do-not-queue,
1609 :primary-owner, :existing, :in-queue and :already-owner.
1610
21a76236
CY
16112011-01-09 Chong Yidong <cyd@stupidchicken.com>
1612
1613 * gtkutil.c (update_frame_tool_bar): Don't advance tool-bar index
1614 when removing extra buttons.
1615
3d91e302
CY
16162011-01-08 Chong Yidong <cyd@stupidchicken.com>
1617
1618 * fns.c (Fyes_or_no_p): Doc fix.
1619
0d23ffb5
AS
16202011-01-08 Andreas Schwab <schwab@linux-m68k.org>
1621
1622 * fns.c (Fyes_or_no_p): Add usage.
1623
9dc3366b
GM
16242011-01-08 Glenn Morris <rgm@gnu.org>
1625
d0981f82
GM
1626 * makefile.w32-in ($(EMACS)):
1627 * Makefile.in (emacs$(EXEEXT)): -batch implies -q.
1628
9dc3366b
GM
1629 * xdisp.c (syms_of_xdisp) <Qrisky_local_variable>: Move from here...
1630 * emacs.c (syms_of_emacs) <Qrisky_local_variable>: ...to here.
1631
466cbae9
AS
16322011-01-07 Andreas Schwab <schwab@linux-m68k.org>
1633
1634 * image.c (imagemagick_load_image): Fix some resource leaks and
1635 error handling.
1636
8c51d2a2
CY
16372011-01-07 Chong Yidong <cyd@stupidchicken.com>
1638
1639 * fns.c (Fyes_or_no_p): Accept format string args.
1640
66b7b0fe
GM
16412011-01-07 Glenn Morris <rgm@gnu.org>
1642
1643 * emacs.c (no_site_lisp): New int.
1644 (USAGE1): Add --no-site-lisp, mention -Q uses it.
1645 (main): Set no_site_lisp.
1646 (standard_args): Add --no-site-lisp.
1647 * lisp.h (no_site_lisp): New int.
1648 * lread.c (init_lread): If no_site_lisp, don't re-add site-lisp
1649 directories to Vload_path.
1650
2018939f
AS
16512011-01-05 Andreas Schwab <schwab@linux-m68k.org>
1652
1653 * alloc.c (mark_stack): Use __builtin_unwind_init if available.
1654
6ed843e5
MA
16552011-01-04 Jan Moringen <jan.moringen@uni-bielefeld.de>
1656
8dabbfd6 1657 * dbusbind.c (Fdbus_register_method): Add optional parameter
6ed843e5
MA
1658 dont_register_service. Updated docstring accordingly.
1659
3f9b7090
GM
16602011-01-04 Glenn Morris <rgm@gnu.org>
1661
1662 * emacs.c (emacs_copyright): Update short copyright year to 2011.
1663
d82bce4a
EZ
16642011-01-03 Eli Zaretskii <eliz@gnu.org>
1665
1666 * image.c (png_jmpbuf): Remove definition.
1667 (my_png_error, png_load): Don't use png_jmpbuf.
1668
7c420169
CY
16692011-01-02 Eli Zaretskii <eliz@gnu.org>
1670
1671 * keyboard.c (Vselect_active_regions): Doc fix. (Bug#7702)
1672
16732011-01-02 Eli Zaretskii <eliz@gnu.org>
5be1c984
EZ
1674
1675 * image.c <Qlibpng_version>: New variable.
1676 (syms_of_image): Intern and staticpro it. Set its value to the
1677 version of PNG library we were compiled with.
1678 (my_png_error, png_load): Avoid GCC warnings about direct access
1679 to png_ptr->jmpbuf. (Bug#7716)
18da2e74
EZ
1680 (png_jmpbuf): New macro.
1681 (my_png_error, png_load): Use it instead of #ifdef'ing according
1682 to PNG_LIBPNG_VER_MAJOR and PNG_LIBPNG_VER_MINOR.
5be1c984 1683
7c420169 16842011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
cf07311b
SM
1685
1686 * .gdbinit (xgetptr): Fix the union+lsb case.
1687 (xbacktrace): Fix the union case.
1688
7c420169 16892011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
794b75c7
SM
1690
1691 * window.c (Fmove_to_window_line): Avoid abort when called in a buffer
1692 different from selected-window's.
1693
7c420169 16942011-01-02 Eli Zaretskii <eliz@gnu.org>
2e4ab211 1695
71fe378d
EZ
1696 * keyboard.c (parse_menu_item): Prepend " " to the key sequence
1697 equivalent of a menu item when the key sequence is given by the
1698 `:keys' attribute. (Bug#7662)
1699
2e4ab211
EZ
1700 * xdisp.c (Fformat_mode_line): Doc fix: no need to state that only
1701 the basic faces are supported.
1702
7c420169 17032011-01-02 Jan Djärv <jan.h.d@swipnet.se>
84595ff0
JD
1704
1705 * xterm.c (x_check_fullscreen): Fix pixel/character mixup.
1706
7c420169 17072011-01-02 Eli Zaretskii <eliz@gnu.org>
30d621a2
EZ
1708
1709 * xdisp.c (Fformat_mode_line): Fix last change.
1710
7c420169 17112011-01-02 Chong Yidong <cyd@stupidchicken.com>
4bf3e46e
CY
1712
1713 * xdisp.c (Fformat_mode_line): Restrict the FACE argument to basic
1714 faces (Bug#7587).
1715
7c420169 17162011-01-02 Eli Zaretskii <eliz@gnu.org>
1b2a627f
EZ
1717
1718 * fileio.c (Fexpand_file_name): One more doc fix.
1719
3afff00e
CY
17202011-01-01 Chong Yidong <cyd@stupidchicken.com>
1721
1722 * gtkutil.c (xg_get_tool_bar_widgets): Use NULL for a missing
1723 image or label in the container.
1724 (xg_make_tool_item): Replace VERT_ONLY arg with HORIZ, TEXT_IMAGE.
1725 (xg_show_toolbar_item): Function deleted.
1726 (xg_tool_item_stale_p): New function.
1727 (update_frame_tool_bar): Calculate tool-bar style once per call.
1728 Instead of hiding text labels, omit them. Don't use
1729 xg_show_toolbar_item; create new GtkToolItems from scratch if
1730 necessary, instead of trying to re-use them. This avoids an
1731 annoying animation when changing tool-bars.
1732
aeb7e951
JD
17332010-12-31 Jan Djärv <jan.h.d@swipnet.se>
1734
1735 * nsfns.m (ns_set_name_as_filename): Always use buffer name for
1736 title and buffer filename only for RepresentedFilename.
1737 Handle bad UTF-8 in buffer name (Bug#7517).
1738
5bbb4727
JD
17392010-12-30 Jan Djärv <jan.h.d@swipnet.se>
1740
1741 * coding.h (ENCODE_UTF_8): Remove "Used by ..." comment.
1742
1743 * nsfns.m (ns_set_name_iconic): Remove.
1744 (ns_set_name_internal): New function (Bug#7517).
1745 (Vicon_title_format): Extern declare.
1746 (ns_set_name): Call ns_set_name_internal.
1747 (x_explicitly_set_name): Remove call to ns_set_name_iconic.
1748 (x_implicitly_set_name): Ditto.
1749 (x_set_title): Remove commet about EXPLICIT. Call ns_set_name_internal.
1750 (ns_set_name_as_filename): Encode name with ENCODE_UTF_8 (Bug#7517).
1751
f1aab3ff
ŠN
17522010-12-29 Štěpán Němec <stepnem@gmail.com> (tiny change)
1753
1754 * window.c (syms_of_window): Add missing defsubr for
1755 window-use-time.
1756
365525b3
AS
17572010-12-28 Andreas Schwab <schwab@linux-m68k.org>
1758
1759 * xterm.h (x_alloc_lighter_color_for_widget): Restore declaration.
1760 * xterm.c (x_alloc_lighter_color_for_widget): Restore.
1761
59fc5cf9
AS
17622010-12-27 Andreas Schwab <schwab@linux-m68k.org>
1763
2f7c71a1
AS
1764 * buffer.c: Remove unused declarations.
1765 * buffer.h: Likewise.
1766 * charset.h: Likewise.
1767 * composite.h: Likewise.
1768 * dispextern.h: Likewise.
1769 * dispnew.c: Likewise.
1770 * font.h: Likewise.
1771 * fontset.c: Likewise.
1772 * fontset.h: Likewise.
1773 * intervals.h: Likewise.
1774 * keymap.h: Likewise.
1775 * lisp.h: Likewise.
1776 * syntax.c: Likewise.
1777 * syntax.h: Likewise.
1778 * termhooks.h: Likewise.
1779 * window.h: Likewise.
1780 * xsettings.h: Likewise.
1781 * xterm.c: Likewise.
1782 * xterm.h: Likewise.
1783
1784 * chartab.c (sub_char_table_ref): Make static.
1785 * dispnew.c (line_hash_code, required_matrix_height)
1786 (required_matrix_width): Likewise.
1787 * eval.c (interactive_p, apply_lambda): Likewise.
1788 * fns.c (string_make_multibyte, copy_hash_table, hash_clear):
1789 Likewise.
1790 * font.c (QCadstyle, QCregistry, font_make_spec)
1791 (font_parse_fcname, font_encode_char, font_at): Likewise.
1792 * frame.c (x_frame_get_arg): Likewise.
1793 * keymap.c (get_keyelt): Likewise.
1794 * lread.c (read_filtered_event): Likewise.
1795 * print.c (write_string_1): Likewise.
1796 * window.c (delete_window, window_height, window_width)
1797 (foreach_window): Likewise.
1798 * xrdb.c (x_get_customization_string, x_get_resource): Likewise.
1799 * xterm.c (x_scroll_bar_clear, xembed_set_info)
1800 (xembed_send_message): Likewise.
1801
1802 * eval.c (run_hook_list_with_args): Delete.
1803 * font.c (font_unparse_gtkname, font_update_lface): Likewise.
1804 * terminal.c (get_terminal_param): Likewise.
1805 * xterm.c (x_alloc_lighter_color_for_widget): Likewise.
1806
c4b607ed
AS
1807 * scroll.c: Fix comment.
1808
59fc5cf9
AS
1809 * dispnew.c (add_window_display_history)
1810 (add_frame_display_history, glyph_row_slice_p)
1811 (find_glyph_row_slice, flush_stdout)
1812 (check_matrix_pointer_lossage, matrix_row)
1813 (check_matrix_invariants, check_window_matrix_pointers)
1814 (check_matrix_pointers, window_to_frame_vpos)
1815 (window_to_frame_hpos): Prototize.
1816 * textprop.c (erase_properties): Likewise.
1817
a65b85b5
SM
18182010-12-22 Stefan Monnier <monnier@iro.umontreal.ca>
1819
17870c01
SM
1820 * print.c (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): Remove.
1821 (print_preprocess): Fix handling of uninterned symbols in last change.
1822
a65b85b5
SM
1823 * print.c (print, print_preprocess, print_object): Use a hash table
1824 rather than a linear table for Vprint_number_table.
1825
f13183cf
CY
18262010-12-20 Chong Yidong <cyd@stupidchicken.com>
1827
1828 * frame.c (focus_follows_mouse): Default to 0 (Bug#7269).
1829
94975270
CY
18302010-12-20 Chong Yidong <cyd@stupidchicken.com>
1831
1832 * keyboard.c (Vtool_bar_separator_image_expression): New variable.
1833 (parse_tool_bar_item): Use it to obtain image separators for
1834 displays not using native tool-bar separators.
1835
1836 * xdisp.c (build_desired_tool_bar_string): Don't handle separators
1837 specially, since this is now done in parse_tool_bar_item.
1838
ef1b0ba7
SM
18392010-12-19 Stefan Monnier <monnier@iro.umontreal.ca>
1840
1841 Minor clean up to silence some gcc warnings.
1842 * window.c (Fset_window_buffer):
1843 * xterm.c (x_set_frame_alpha): Restructure code to silence
1844 compiler warning.
1845 (handle_one_xevent): Remove unused var `p'.
1846 (do_ewmh_fullscreen): Remove unused var `lval'.
1847 (xembed_set_info): Remove unused var `atom'.
1848 * textprop.c (Fremove_list_of_text_properties): Add braces to silence
1849 compiler warning.
1850 * fontset.c (fontset_id_valid_p, dump_fontset):
1851 * ftfont.c (ftfont_drive_otf): Modernize k&r declaration.
1852 * eval.c (Feval, Ffuncall): Avoid unneeded gotos.
1853 * dispnew.c (update_frame, update_frame_1): Compile the `do_pause'
1854 label only when it's used.
1855 * image.c (x_create_bitmap_from_xpm_data):
1856 * dispextern.h (x_create_bitmap_from_xpm_data): Use const char** like
1857 its callers.
1858 * coding.c (detect_coding_utf_16): Remove unused vars `src_base' and
1859 `consumed_chars'.
1860 (DECODE_EMACS_MULE_21_COMPOSITION): Remove unused var `charbuf_base'.
1861 (decode_coding_emacs_mule): Remove unused label `retry'.
1862 (detect_eol): Add parens to silence compiler warning.
1863 * alloc.c (bytes_used_when_reconsidered): Move to the #ifdef where
1864 it's used to silence the compiler.
1865 (make_number): Modernize k&r declaration.
1866 (mark_char_table): Add parens to silence compiler warning.
1867
4039c786
CY
18682010-12-17 Chong Yidong <cyd@stupidchicken.com>
1869
1870 * keyboard.c (parse_tool_bar_item): Allow menu separators in
1871 tool-bar maps.
1872 (menu_separator_name_p): New function, from gtkutil.c.
1873 (separator_names): Move from gtkutil.c.
1874
1875 * keyboard.h (menu_separator_name_p): Add prototype.
1876
1877 * gtkutil.c (XG_BIN_CHILD): New macro.
1878 (xg_get_menu_item_label, xg_update_menubar)
1879 (xg_update_menu_item, xg_tool_bar_menu_proxy)
1880 (xg_show_toolbar_item, update_frame_tool_bar): Use it.
1881 (separator_names, xg_separator_p): Move to keyboard.c.
ef1b0ba7
SM
1882 (create_menus, xg_update_submenu, update_frame_tool_bar):
1883 Use menu_separator_name_p.
4039c786
CY
1884
1885 * nsmenu.m (name_is_separator): Function deleted.
1886 (addItemWithWidgetValue): Use menu_separator_name_p.
1887
1888 * w32menu.c (name_is_separator): Function deleted.
1889 (add_menu_item): Use menu_separator_name_p.
1890
aa936e8e
JD
18912010-12-16 Jan Djärv <jan.h.d@swipnet.se>
1892
1893 * nsterm.m (ns_draw_window_cursor): If the cursor color is the
1894 same as the background, use the face forground as cursor.
1895
f49d1f52 18962010-12-13 Eli Zaretskii <eliz@gnu.org>
15579471
EZ
1897
1898 * fileio.c (Fexpand_file_name): Doc fix. (Bug#7617)
1899
f49d1f52 19002010-12-13 Eli Zaretskii <eliz@gnu.org>
76feb864 1901
f0559026
EZ
1902 * xdisp.c (string_pos_nchars_ahead, c_string_pos)
1903 (face_before_or_after_it_pos, next_element_from_string)
1904 (next_element_from_c_string, produce_stretch_glyph): Remove unused
1905 calculations of maximum string length before calling
1906 string_char_and_length and STRING_CHAR_AND_LENGTH.
1907 (string_char_and_length): Update commentary: MAXLEN is no longer
1908 needed.
1909
f49d1f52 19102010-12-13 Jan Djärv <jan.h.d@swipnet.se>
0b9fc69a
JD
1911
1912 * keyboard.c (kbd_buffer_get_event): Construct SAVE_SESSION_EVENT
1913 as (Qsave_session arg).
1914
1915 * xsmfns.c (smc_interact_CB): Set arg to Qnil.
1916 (smc_die_CB): Make an event with arg Qt.
1917 (Fhandle_save_session): If event has Qt as argument,
1918 call Fkill_emacs (Bug#7552).
1919
f49d1f52
SM
19202010-12-13 Chong Yidong <cyd@stupidchicken.com>
1921
1922 * buffer.c (transient-mark-mode): Doc fix (Bug#7465).
1923
19242010-12-13 Jan Djärv <jan.h.d@swipnet.se>
2b815743
JD
1925
1926 * xsmfns.c (smc_die_CB): Call Fkill_emacs (Bug#7552).
1927
f49d1f52 19282010-12-13 Chong Yidong <cyd@stupidchicken.com>
d8b2a962
CY
1929
1930 * dispextern.h (struct it): New member overlay_strings_charpos.
1931
1932 * xdisp.c (next_overlay_string, load_overlay_strings): Record the
1933 charpos where we computed n_overlay_strings.
1934 (next_overlay_string): Load overlay strings at recorded position,
1935 which may not be the same as the iterator's charpos (Bug#7016).
1936
f49d1f52 19372010-12-13 Chong Yidong <cyd@stupidchicken.com>
77f1ed6c
CY
1938
1939 * xdisp.c (try_scrolling): Avoid infloop if the first line is
1940 obscured due to a vscroll (Bug#7537).
1941
f49d1f52 19422010-12-13 Jan Djärv <jhd@zeplinf.localdomain>
2a91a0b5
JD
1943
1944 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
1945
1946 * nsterm.m (x_set_window_size, windowWillResize, initFrameFromEmacs):
1947 Use FRAME_TOOLBAR_HEIGHT.
1948 (x_set_offset): Handle XNegative and YNegative in
1949 f->size_hint_flags (Bug#7510).
1950
39321b94
EZ
19512010-12-11 Eli Zaretskii <eliz@gnu.org>
1952
1953 * w32fns.c (Fx_show_tip): Call try_window with last argument
1954 TRY_WINDOW_IGNORE_FONTS_CHANGE. Delete the TODO ifdef: problem
1955 solved. Round up the tip height to an integral multiple of the
1956 frame's line height. Add FRAME_COLUMN_WIDTH to the tip width.
1957 (Bug#7398)
1958
ec1b9b17
GM
19592010-12-08 Glenn Morris <rgm@gnu.org>
1960
1961 * fileio.c (Fverify_visited_file_modtime): Default to current buffer.
1962
3c2317e8
LMI
19632010-12-06 Lars Magne Ingebrigtsen <larsi@gnus.org>
1964
1965 * xml.c (parse_region): Ignore blank HTML nodes.
1966 (make_dom): Return CDATA sections (like <style>foo</style>) as
1967 text nodes.
1968
bba3e508
SM
19692010-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
1970
1971 * lread.c (read1): Allow newstyle unquote outside of backquote.
1972 Disallow old-style backquotes inside new-style backquotes.
1973 Don't count unquotes to figure out when we're "syntactically inside
1974 but semantically outside of a backquote" any more.
1975 Extend the restriction no-unescaped-commas-and-backquotes-in-symbols
1976 to all contexts.
1977
d23d8608
CY
19782010-12-05 Chong Yidong <cyd@stupidchicken.com>
1979
1980 * process.c: Remove checks for HAVE_SYS_IOCTL_H (Bug#7484).
1981
d6a003a8
AS
19822010-12-04 Andreas Schwab <schwab@linux-m68k.org>
1983
1984 * Makefile.in (M_FILE): Substitute @M_FILE@ instead of @machfile@.
1985 (S_FILE): Substitute @S_FILE@ instead of @opsysfile@.
1986 * m/arm.h, m/sh3.h, m/xtensa.h: Remove files.
1987
201ef780
AS
19882010-12-03 Andreas Schwab <schwab@linux-m68k.org>
1989
1990 * lisp.h (union Lisp_Object): Explicitly declare signedness of
1991 bit-field.
1992 (XINT): Remove variant for EXPLICIT_SIGN_EXTEND.
1993 * m/alpha.h (EXPLICIT_SIGN_EXTEND): Don't define.
1994 * m/amdx86-64.h (EXPLICIT_SIGN_EXTEND): Likewise.
1995 * m/ia64.h (EXPLICIT_SIGN_EXTEND): Likewise.
1996 * m/ibms390.h (EXPLICIT_SIGN_EXTEND): Likewise.
1997 * m/ibms390x.h (EXPLICIT_SIGN_EXTEND): Likewise.
1998 * m/iris4d.h (EXPLICIT_SIGN_EXTEND): Likewise.
1999 * m/m68k.h (EXPLICIT_SIGN_EXTEND): Likewise.
2000 * m/sparc.h (EXPLICIT_SIGN_EXTEND): Likewise.
2001 * m/template.h (EXPLICIT_SIGN_EXTEND): Likewise.
2002 * m/hp800.h: Remove file.
2003 * m/mips.h: Remove file.
2004
146490c3
JD
20052010-12-03 Jan Djärv <jan.h.d@swipnet.se>
2006
2007 * nsterm.m (ns_dumpglyphs_image): If drawing cursor, fill background
2008 with cursor color and draw a rectangle around the image (Bug#7412).
2009
babc8f0d
AS
20102010-12-03 Andreas Schwab <schwab@linux-m68k.org>
2011
2012 * frame.c (x_set_font): Remove unused variable.
2013
9583e9a0
JD
20142010-12-02 Jan Djärv <jan.h.d@swipnet.se>
2015
dd723bbd
JD
2016 * nsmenu.m (update_frame_tool_bar): Remove NSLog on invalid image.
2017
9583e9a0
JD
2018 * nsterm.m (ns_draw_glyph_string): Switch fore- and background if
2019 drawing text under filled box cursor (Bug#7479).
2020
07976ae3 20212010-11-27 Kenichi Handa <handa@m17n.org>
b84ae584
KH
2022
2023 * charset.c (emacs_mule_charset): Make it an array of charset ID;
2024 i.e. integer.
bba3e508 2025 (Fdefine_charset_internal): Adjust for the above change.
b84ae584
KH
2026 (init_charset_once): Likewise.
2027
bba3e508
SM
2028 * charset.h (emacs_mule_charset): Adjust the prototype.
2029 Delete duplicated extern.
b84ae584
KH
2030
2031 * coding.c (emacs_mule_char): Adjust for the change of
2032 emacs_mule_charset.
2033
2034 * lread.c (read_emacs_mule_char): Adjust for the change of
2035 emacs_mule_charset.
2036
07976ae3 20372010-11-27 Eli Zaretskii <eliz@gnu.org>
b8e5cf1d
EZ
2038
2039 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
2040 of w32api >= 3.15. (Bug#6989) (Bug#7452)
2041
07976ae3 20422010-11-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
96ad0af7
YM
2043
2044 * alloc.c (mark_terminals): Ensure that the image cache is marked
2045 even if the terminal object was marked earlier (Bug#6301).
2046
35f1de62
CY
20472010-11-21 Chong Yidong <cyd@stupidchicken.com>
2048
2049 * editfns.c (Fbyte_to_string): Signal an error arg is not a byte.
2050
07976ae3 20512010-11-27 Jan Djärv <jan.h.d@swipnet.se>
8d7f026f
JD
2052
2053 * gtkutil.c (menubar_map_cb): New function (Bug#7425).
2054 (xg_update_frame_menubar): Connect signal map to menubar_map_cb.
b762841f 2055 Use 23 as menubar height if 0. (Bug#7425).
8d7f026f 2056
8547874a
EZ
20572010-11-26 Eli Zaretskii <eliz@gnu.org>
2058
228482b2
EZ
2059 * xdisp.c (set_message_1): Force paragraph direction in echo area
2060 be left-to-right.
2061
8547874a
EZ
2062 * keyboard.c (make_lispy_position): Put a meaningful value in yret
2063 when the click is on the header or mode line.
2064
1e2dddbe
EZ
20652010-11-25 Eli Zaretskii <eliz@gnu.org>
2066
2067 * xdisp.c (set_cursor_from_row): Don't forget to consider the
2068 `cursor' property of the first character in overlay strings.
12365240 2069 (Bug#7474) (Bug#7481)
1e2dddbe 2070
50795d1f
JD
20712010-11-24 Jan Djärv <jan.h.d@swipnet.se>
2072
2073 * nsterm.m (NSLeftControlKeyMask, NSLeftCommandKeyMask)
2074 (NSLeftAlternateKeyMask): New defines.
c80c6166
JD
2075 (keyDown): Parse left and right keys separately (Bug#7458).
2076 Compare Left key masks exactly (Bug#7458).
50795d1f 2077
f8ab8c1f
EZ
20782010-11-23 Eli Zaretskii <eliz@gnu.org>
2079
2080 * intervals.c (temp_set_point_both): Define before calling, to
2081 avoid GCC warnings.
2082
2e8a4797
DN
20832010-11-23 Dan Nicolaescu <dann@ics.uci.edu>
2084
b29116ef
DN
2085 * nsmenu.m: Use #include <config.h> instead of "config.h".
2086
b932f8b1
DN
2087 * term.c (Qglyphless_char,last_glyphless_glyph_frame)
2088 (last_glyphless_glyph_face_id. last_glyphless_glyph_merged_face_id):
2089 Move declarations ...
2090 * lisp.h (Qglyphless_char,last_glyphless_glyph_frame)
2091 (last_glyphless_glyph_face_id. last_glyphless_glyph_merged_face_id):
2092 ... here.
2093
42c8bc9b
DN
2094 * emacs.c (gdb_use_union, gdb_valbits,gdb_gctypebits)
2095 (gdb_data_seg_bits, gdb_array_mark_flag, PVEC_FLAG)
2096 (gdb_pvec_type):
2097 * print.c (print_output_debug_flag):
2098 * lisp.h (debug_print): Mark as EXTERNALLY_VISIBLE.
2099 (safe_debug_print): New declaration.
2100
2e8a4797
DN
2101 * xterm.c:
2102 * systty.h:
2103 * sound.c: Include <sys/ioctl.h> unconditionally.
2104
b609f591
YM
21052010-11-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2106
2107 * alloc.c (mark_maybe_object): Return early if given a Lisp
2108 integer (Bug#6301).
2109
731e263a
KB
21102010-11-21 Ken Brown <kbrown@cornell.edu>
2111
2112 * sheap.c (STATIC_HEAP_SIZE): Revert previous change.
2113
b7d1e144
JD
21142010-11-21 Jan Djärv <jan.h.d@swipnet.se>
2115
2116 * nsterm.m (ns_right_command_modifier, ns_right_control_modifier):
2117 Define (Bug#7458).
2118 (NSRightCommandKeyMask, NSRightControlKeyMask): Define (Bug#7458).
2119 (EV_MODIFIERS): Check for NSRightCommandKeyMask and
2120 NSRightControlKeyMask also (Bug#7458).
2121 (keyDown): Ditto (Bug#7458).
2122 (syms_of_nsterm): Defvar ns-right-command-modifier and
2123 ns-right-control-modifier (Bug#7458).
2124
b7982059
DN
21252010-11-21 Dan Nicolaescu <dann@ics.uci.edu>
2126
bee3419f
DN
2127 * sysdep.c (sys_subshell): Remove SET_EMACS_PRIORITY.
2128 * emacs.c (emacs_priority, syms_of_emacs): Remove emacs_priority.
2129
b7982059
DN
2130 * intervals.h (temp_set_point, temp_set_point_both):
2131 * buffer.h (offset_intervals, copy_intervals): Remove INLINE.
2132
01664ed1
KB
21332010-11-20 Ken Brown <kbrown@cornell.edu>
2134
2135 * sheap.c (STATIC_HEAP_SIZE): Increase to 13MB.
2136
7c2d713b
EZ
21372010-11-20 Eli Zaretskii <eliz@gnu.org>
2138
2139 * term.c (produce_glyphless_glyph): Use \uNNNN, \UNNNNNN, or
2140 \xNNNNNN for hex-code display of glyphless characters.
2141
d2bd5189
JD
21422010-11-20 Jan Djärv <jan.h.d@swipnet.se>
2143
2144 * gtkutil.c (xg_make_tool_item): Take vert_only as argument.
2145 Set important to ! vert_only.
2146 (xg_show_toolbar_item): Don't show label horizontally if
2147 tool item isn't important.
2148 (update_frame_tool_bar): Get TOOL_BAR_ITEM_VERT_ONLY and pass it to
2149 xg_make_tool_item, or update important on existing tool item.
2150
2151 * keyboard.c (QCvert_only): New variable.
2152 (parse_tool_bar_item): Check for QCvert_only.
2153 (syms_of_keyboard): Initialize QCvert_only.
2154
2155 * dispextern.h (tool_bar_item_idx): Add TOOL_BAR_ITEM_VERT_ONLY.
2156
d9a95e67
EZ
21572010-11-20 Eli Zaretskii <eliz@gnu.org>
2158
2159 * msdos.c (dos_rawgetc): Use gen_help_event, instead of doing the
2160 same in-line.
2161
b6557553
AS
21622010-11-20 Andreas Schwab <schwab@linux-m68k.org>
2163
2164 * xfaces.c (lookup_face): Make static.
2165 * dispnew.c (copy_row_except_pointers): Likewise.
2166 * syntax.c (dec_bytepos): Likewise.
2167 (inc_bytepos): Remove.
2168 * dispextern.h (lookup_face): Remove declaration.
2169
f48fe1f0
EZ
21702010-11-19 Eli Zaretskii <eliz@gnu.org>
2171
2172 * xdisp.c (set_cursor_from_row): Display cursor after all the
2173 glyphs that come from an overlay. Don't overstep the last glyph
2174 when skipping glyphs from an overlay. (Bug#6687)
2175
654ef137
DN
21762010-11-18 Dan Nicolaescu <dann@ics.uci.edu>
2177
84dfc8a7
DN
2178 * alloc.c (refill_memory_reserve): Move declaration ...
2179 * lisp.h (refill_memory_reserve): ... here.
2180
94fa3833
DN
2181 * strftime.c (_strftime_copytm): Add declaration.
2182
dde990a0
DN
2183 * callproc.c (syms_of_callproc): Use intern_c_string.
2184
50c77428
DN
2185 Move declarations from .c files to .h files.
2186 * process.c (timers_run):
2187 * minibuf.c (quit_char):
2188 * lread.c (read_emacs_mule_char):
2189 * keyboard.c (minibuf_level, message_enable_multibyte)
2190 (pending_malloc_warning):
2191 * insdel.c (Vselect_active_regions, Vsaved_region_selection)
2192 (Qonly): Remove declarations.
2193 * lisp.h (pending_malloc_warning, Vsaved_region_selection)
2194 (Vselect_active_regions):
2195 * keyboard.h (timers_run): Add declarations.
2196
654ef137
DN
2197 * strftime.c (my_strftime_gmtime_r, my_strftime_localtime_r)
2198 (tm_diff): Convert definitions to standard C.
2199 (extra_args_spec_iso): Remove, unused.
2200
4a47c275 22012010-11-18 Jan Djärv <jan.h.d@swipnet.se>
37de8fd0
J
2202
2203 * xsettings.c (init_gconf): Check HAVE_G_TYPE_INIT.
2204
2205 * config.in (HAVE_G_TYPE_INIT): New symbol.
2206
4a47c275 22072010-11-18 Eli Zaretskii <eliz@gnu.org>
c7926fe2
EZ
2208
2209 * lread.c (Fload): Mention `load-in-progress' and
2210 `load-file-name'. (Bug#7346)
2211
86520d8c
EZ
2212 * keyboard.c (kbd_buffer_nr_stored): Define only ifdef subprocesses.
2213 (kbd_buffer_store_event_hold, kbd_buffer_get_event)
2214 (tty_read_avail_input): Call kbd_buffer_nr_stored only ifdef
2215 subprocesses. Use buffer_free only ifdef subprocesses.
2216
2217 * process.c (init_process) [subprocesses]: Init kbd_is_on_hold in
2218 the subprocesses version, not in the non-subprocesses one.
2219
794a4b6d
EZ
2220 * Makefile.in: Don't use ## comment, it breaks the MSDOS build.
2221
146d267b
EZ
22222010-11-17 Eli Zaretskii <eliz@gnu.org>
2223
2224 * xdisp.c (set_cursor_from_row): Fix cursor positioning in empty
2225 lines on text-mode terminals. (bug#7417)
2226
fad0d565
SM
22272010-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
2228
2229 * xterm.c (get_current_wm_state): Rename from get_current_vm_state.
2230 (do_ewmh_fullscreen, x_handle_net_wm_state): Update callers.
2231
6b4bb703
KH
22322010-11-17 Kenichi Handa <handa@m17n.org>
2233
2234 * coding.c (Fset_terminal_coding_system_internal): Fix previous
2235 change (set charset-ID list instead of charset-symbol list).
2236
9173a8fb
CY
22372010-11-16 Chong Yidong <cyd@stupidchicken.com>
2238
2239 * keyboard.c (make_lispy_position): For text area clicks, record Y
2240 pixel position relative to the text area, excluding header line.
2241 Also change X and Y to Lisp_Objects, not pointers; don't return
2242 coordinate values via pointers. Pass ON_TEXT_AREA coordinate to
2243 buffer_posn_from_coords counting from the start of the text area.
2244 (Fposn_at_x_y, make_lispy_event): Callers changed.
2245
2246 * window.c (coordinates_in_window): Change X and Y to ints rather
2247 than pointers; don't return coordinates via pointers.
2248 (struct check_window_data): Change X and Y from pointers to ints.
2249 (window_from_coordinates): Remove args WX and WY; don't return
2250 coordinates via pointers.
2251 (Fcoordinates_in_window_p, window_from_coordinates):
2252 (check_window_containing, Fwindow_at): Callers changed.
2253 (window_relative_x_coord): New function.
2254
2255 * window.h (window_from_coordinates, window_relative_x_coord):
2256 Update prototypes.
2257
2258 * dispnew.c (buffer_posn_from_coords): Assume that X counts from
2259 the start of the text area.
2260
2261 * xdisp.c (remember_mouse_glyph): Change window_from_coordinates
2262 call. Use window_relative_x_coord.
2263 (note_mouse_highlight): Change window_from_coordinates call.
2264
2265 * w32term.c (w32_read_socket):
2266 * msdos.c (dos_rawgetc):
2267 * xterm.c (handle_one_xevent): Likewise.
2268
d2762c86
DN
22692010-11-16 Dan Nicolaescu <dann@ics.uci.edu>
2270
2271 * strftime.c (LOCALE_PARAM_DECL): Update for standard C.
2272 (LOCALE_PARAM, LOCALE_PARAM_PROTO): Remove, unused.
2273 (memcpy_lowcase, so_week_days, extra_args_spec, emacs_strftimeu):
2274 Convert definitions to standard C.
2275 * regex.c: Do not include <stdlib.h>, config.h does it.
2276 Include unistd.h.
2277 (xrealloc, init_syntax_once, re_match, regcomp, regexec)
2278 (regerror, regfree): Convert definitions to standard C.
2279 * mktime.c (my_mktime_localtime_r, ydhms_tm_diff, ranged_convert)
2280 (__mktime_internal): Convert definitions to standard C.
2281
c2f0866a
DN
22822010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
2283
42a7e7f1
DN
2284 * w32proc.c:
2285 * w32inevt.c:
2286 * w32heap.c:
2287 * w32.c: Remove config.h include guards.
2288
67802943
DN
2289 * callproc.c (child_setup): Reorder code to simplify #ifdefs.
2290 No code changes.
2291
f0e1af46
DN
2292 * process.c: Include <sys/ioctl.h> unconditionally,
2293 keyboard.c already does it.
2294
c2f0866a
DN
2295 * keyboard.c (pending_malloc_warning): Add const to match
2296 definition in alloc.c.
2297 (Fset_input_interrupt_mode): Simplify #ifdefs.
2298
92d3ab7e
DN
22992010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
2300
12e610e8
DN
2301 Clean up systty.h macros.
2302 * systty.h (EMACS_GET_TTY_PGRP, EMACS_SET_TTY_PGRP, EMACS_GET_TTY)
2303 (EMACS_SET_TTY): Remove unneeded abstraction, instead inline the
2304 definition in all uses.
2305 (EMACS_TTY_TABS_OK): Remove, it has a single user.
2306 * sysdep.c (discard_tty_input, child_setup_tty)
2307 (init_sys_modes, tabs_safe_p, reset_sys_modes):
2308 * emacs.c (shut_down_emacs):
2309 * callproc.c (child_setup):
2310 * term.c (dissociate_if_controlling_tty): Inline removed macros.
2311
92d3ab7e
DN
2312 * data.c (sign_extend_temp, sign_extend_lisp_int): Remove, unused.
2313
a3e6bad4
CY
23142010-11-14 Chong Yidong <cyd@stupidchicken.com>
2315
2316 * w32fns.c (Fx_create_frame):
2317 * nsfns.m (Fx_create_frame): Don't check for the cursorColor
2318 resource here; it's now done at startup.
2319
5a232ffb
J
23202010-11-14 Jan Djärv <jan.h.d@swipnet.se>
2321
2322 * xterm.c (set_wm_state): Add Qnil to final cons.
2323
2324 * xselect.c (x_send_client_event): Remove unused variables cons and
2325 size.
2326
24021b38
YM
23272010-11-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2328
2329 * keyboard.c (modify_event_symbol) : Add const to array elements of
2330 arg NAME_TABLE.
2331 (lispy_accent_keys, lispy_function_keys, lispy_multimedia_keys)
2332 (lispy_kana_keys, iso_lispy_function_keys, lispy_wheel_names)
2333 (lispy_wheel_names, lispy_drag_n_drop_names, modifier_names):
2334 Add const to array elements.
2335 (scroll_bar_parts): Make static. Fix position of const.
2336
2337 * w32fns.c (lispy_function_keys): Add const to extern.
2338
2339 * w32inevt.c (lispy_function_keys): Likewise.
2340
afa42fe3
CY
23412010-11-14 Chong Yidong <cyd@stupidchicken.com>
2342
2343 * xfns.c (Fx_create_frame): Don't check for the cursorColor
2344 resource here; it's now done at startup.
2345
53260a94
DN
23462010-11-13 Dan Nicolaescu <dann@ics.uci.edu>
2347
c865c575 2348 * xmenu.c: Make it clear that ../lwlib/lwlib.h is only needed for Motif.
ff2e8052 2349
c865c575 2350 Fix compilation on Solaris.
ff2e8052
DN
2351 * sysdep.c: Do not #include <term.h>.
2352 (tputs): Add declaration, similar to what cm.c does. (Bug#7178)
2353
53260a94
DN
2354 * s/ms-w32.h (HAVE_TERMIOS_H): Do not undef, not used anymore.
2355
933e29ff
J
23562010-11-13 Jan Djärv <jan.h.d@swipnet.se>
2357
2358 * xterm.c (set_wm_state): Don't put Atom in cons, call
2359 make_fixnum_or_float on them first.
2360 (x_term_init): Initialize Xatom_net_supporting_wm_check and
2361 Xatom_net_supported correctly.
2362
2363 * xselect.c (x_send_client_event): Move CHECK_STRING ...
2364 (Fx_send_client_event): to here.
2365
a048073e
MR
23662010-11-13 Martin Rudalics <rudalics@gmx.at>
2367
2368 * window.c (Fwindow_use_time): New function.
2369
0eb025fb
EZ
23702010-11-13 Eli Zaretskii <eliz@gnu.org>
2371
2372 * xdisp.c (set_cursor_from_row): Fix cursor positioning on
2373 zero-width characters.
2374
2375 * .gdbinit (pgx): Adapt to latest changes in `struct glyph'.
2376
2377 * w32term.c (x_draw_glyphless_glyph_string_foreground): Draw the
2378 box before drawing the glyphs inside it.
2379
2380 * xdisp.c (syms_of_xdisp) <glyphless-char-display>: Doc fix.
2381
bba3e508
SM
2382 * dispextern.h (enum glyphless_display_method):
2383 Rename GLYPHLESS_DISPLAY_HEXA_CODE to GLYPHLESS_DISPLAY_HEX_CODE.
2384 All users changed.
0eb025fb 2385
bba3e508
SM
2386 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
2387 Fix comments.
0eb025fb
EZ
2388 (produce_glyphless_glyph): Enclose "U+nnnn" and "empty box"
2389 whitespace in "[]", to simulate a box. Don't use uninitialized
2390 variable `width'.
2391
c869cc37
JD
23922010-11-11 Julien Danjou <julien@danjou.info>
2393
2d9074ba
JD
2394 * xsettings.c (init_xsettings): Use already fetch atoms.
2395
2396 * xsmfns.c (create_client_leader_window): Use SM_CLIENT_ID atom
2397 from dpyinfo.
2398
2399 * xselect.c (Fx_send_client_event): Split and create
2400 x_send_client_event.
2401
2402 * lisp.h: Do not EXFUN Fx_send_client_event.
2403
2404 * xterm.c (x_set_frame_alpha): Use _NET_WM_WINDOW_OPACITY atom
2405 from dpyinfo.
2406 (wm_supports): Use atoms from dpyinfo.
2407 (do_ewmh_fullscreen): Use atoms from dpyinfo.
2408 (x_ewmh_activate_frame): Use atoms from dpyinfo.
2409 (xembed_set_info): Use atoms from dpyinfo.
2410 (x_term_init): Fetch _XEMBED_INFO, _NET_SUPPORTED,
2411 _NET_SUPPORTING_WM_CHECK, _NET_WM_WINDOW_OPACITY and
2412 _NET_ACTIVE_WINDOW, XSETTINGS atoms.
2413 Get all atoms in one round-trip.
2414 (set_wm_state): Use x_send_client_event rather than
2415 Fx_send_client_event, using Atom directly.
2416 (x_ewmh_activate_frame): Ditto.
2417 (x_set_sticky): Pass atoms to set_wm_state.
2418 (do_ewmh_fullscreen): Ditto.
2419
2420
2421 * xterm.h (x_display_info): Add Xatom_net_supported,
2422 Xatom_net_supporting_wm_check, Xatom_net_active_window,
2423 Xatom_net_wm_window_opacity, Xatom_XEMBED_INFO, SM_CLIENT_ID.
2424
c869cc37
JD
2425 * xfns.c (Fx_show_tip): Fix typo in docstring.
2426
1a4236ea
SM
24272010-11-11 Stefan Monnier <monnier@iro.umontreal.ca>
2428
2429 * cmds.c (Fself_insert_command): Don't call XFASTINT without checking
2430 it's not negative.
2431
3106121c
YM
24322010-11-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2433
2434 * font.c (font_filter_properties): Add const to array elements of
2435 properties args.
2436
2437 * font.h (font_filter_properties): Likewise.
2438
2439 * ftfont.c (ftfont_booleans, ftfont_non_booleans): Add const to array
2440 elements.
2441
2442 * w32font.c (w32font_booleans, w32font_non_booleans): Likewise.
2443
da1fec2b
MA
24442010-11-10 Michael Albinus <michael.albinus@gmx.de>
2445
2446 * dbusbind.c (QCdbus_type_unix_fd): New Lisp object.
2447 (XD_BASIC_DBUS_TYPE, xd_symbol_to_dbus_type, xd_signature)
2448 (xd_append_arg, xd_retrieve_arg): Support DBUS_TYPE_UNIX_FD.
2449 (Fdbus_call_method): Add DBUS_TYPE_UNIX_FD type mapping to doc string.
2450 (syms_of_dbusbind): Initialize QCdbus_type_unix_fd).
2451
bd6bc222
GM
24522010-11-10 Glenn Morris <rgm@gnu.org>
2453
2454 * emacs.c (syms_of_emacs) <system-type>: Doc fix.
2455
c0098065
EZ
24562010-11-09 Eli Zaretskii <eliz@gnu.org>
2457
bd6bc222 2458 * xfns.c (x_real_positions): Fix declaration-after-statement problem.
c0098065 2459
d607b96b 24602010-11-09 Chong Yidong <cyd@stupidchicken.com>
be3faa80
CY
2461
2462 * image.c (free_image): Don't garbage the frame here, since this
2463 function can be called while redisplaying (Bug#7210).
2464 (uncache_image): Garbage the frame here (Bug#6426).
2465
d607b96b 24662010-11-09 Jan Djärv <jan.h.d@swipnet.se>
184765cc 2467
d607b96b
SM
2468 * xfns.c (x_real_positions): Only use _NET_FRAME_EXTENTS if our
2469 parent is the root window. Check this after traversing window tree.
184765cc 2470
d607b96b 2471 * xterm.c (x_term_init): Initialize Xatom_net_frame_extents.
bd80a886 2472
d607b96b 2473 * xterm.h (struct x_display_info): Xatom_net_frame_extents is new.
bd80a886 2474
d607b96b
SM
2475 * xfns.c (x_real_positions): Try to get _NET_FRAME_EXTENTS first
2476 before traversing window tree (Bug#5721).
c2e124a9 2477
27f92be7
J
24782010-11-07 Jan Djärv <jan.h.d@swipnet.se>
2479
66b16767
J
2480 * xfns.c (set_machine_and_pid_properties): Let X set WM_CLIENT_MACHINE.
2481
25f38310
SM
2482 * xdisp.c (note_mode_line_or_margin_highlight):
2483 Initialize Cursor to No_Cursor for HAVE_WINDOW_SYSTEM also.
27f92be7 2484
a971c0a7
EZ
24852010-11-06 Eli Zaretskii <eliz@gnu.org>
2486
2487 * xfns.c (Fx_show_tip): If any of the tool-tip text lines is R2L,
2488 adjust width of tool-tip frame to the width of text, excluding the
2489 stretch glyph at the beginning of R2L glyph rows.
2490
2491 * w32fns.c (Fx_show_tip): Likewise.
2492
80417b95
JD
24932010-11-06 Jan Djärv <jan.h.d@swipnet.se>
2494
2495 * nsfont.m: Include termchar for new mouse-highlight.
6dc61cf1 2496 (nsfont_draw): Use MOUSE_HL_INFO.
80417b95 2497
28118eb6
EZ
24982010-11-05 Eli Zaretskii <eliz@gnu.org>
2499
c1fc2d3a 2500 Unify mouse-highlight code for all GUI and TTY sessions.
cf482c50
EZ
2501
2502 * term.c: Remove static mouse_face_* variables. All users
2503 changed.
2504 (term_show_mouse_face, term_clear_mouse_face)
2505 (fast_find_position, term_mouse_highlight): Functions deleted.
2506 (tty_draw_row_with_mouse_face): New function.
2507 (term_mouse_movement): Call note_mouse_highlight instead of
2508 term_mouse_highlight.
2509
bbf534ce
EZ
2510 * nsterm.m (ns_update_window_begin, ns_update_window_end)
2511 (ns_update_end, x_destroy_window, ns_frame_up_to_date)
2512 (ns_dumpglyphs_box_or_relief, ns_maybe_dumpglyphs_background)
2513 (ns_dumpglyphs_image, ns_dumpglyphs_stretch)
2514 (ns_initialize_display_info, keyDown, mouseMoved, mouseExited):
2515 Replace Display_Info with Mouse_HLInfo everywhere where
2516 mouse_face_* members were accessed for mouse highlight purposes.
2517
2518 * xterm.c (x_update_window_begin, x_update_window_end)
2519 (x_update_end, XTframe_up_to_date, x_set_mouse_face_gc)
bba3e508
SM
2520 (handle_one_xevent, x_free_frame_resources, x_term_init):
2521 Replace Display_Info with Mouse_HLInfo everywhere where mouse_face_*
bbf534ce
EZ
2522 members were accessed for mouse highlight purposes.
2523
2524 * w32term.c (x_update_window_begin, x_update_window_end)
2525 (x_update_end, w32_read_socket, x_free_frame_resources)
2526 (w32_initialize_display_info): Replace Display_Info with
2527 Mouse_HLInfo everywhere where mouse_face_* members were accessed
2528 for mouse highlight purposes.
2529
2530 * xdisp.c (show_mouse_face, note_mode_line_or_margin_highlight)
2531 (note_mouse_highlight) [HAVE_WINDOW_SYSTEM]: Don't run GUI code
2532 unless the frame is on a window-system.
c1fc2d3a 2533 (get_tool_bar_item, handle_tool_bar_click)
7ea692f6
EZ
2534 (note_tool_bar_highlight, draw_glyphs, erase_phys_cursor)
2535 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
2536 (note_mode_line_or_margin_highlight, note_mouse_highlight)
2537 (x_clear_window_mouse_face, cancel_mouse_face, expose_frame):
2538 Replace Display_Info with Mouse_HLInfo everywhere where
2539 mouse_face_* members were accessed for mouse highlight purposes.
c1fc2d3a 2540 (coords_in_mouse_face_p): Move prototype out of the
d009ae66
EZ
2541 HAVE_WINDOW_SYSTEM conditional.
2542 (x_y_to_hpos_vpos, frame_to_window_pixel_xy): Move out of the
2543 HAVE_WINDOW_SYSTEM block.
bba3e508
SM
2544 (try_window_id) [HAVE_GPM || MSDOS]:
2545 Call x_clear_window_mouse_face.
d009ae66 2546 (draw_row_with_mouse_face): Implementation for HAVE_WINDOW_SYSTEM
c1fc2d3a
EZ
2547 systems. Call tty_draw_row_with_mouse_face for TTY systems.
2548 (show_mouse_face): Call draw_row_with_mouse_face, instead of
2549 calling draw_glyphs directly.
d009ae66
EZ
2550 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
2551 (cursor_in_mouse_face_p, rows_from_pos_range)
2552 (mouse_face_from_buffer_pos, mouse_face_from_string_pos)
2553 (note_mode_line_or_margin_highlight, note_mouse_highlight)
2554 (x_clear_window_mouse_face, cancel_mouse_face): Move out of the
2555 HAVE_WINDOW_SYSTEM block. Ifdef away window-system specific
2556 fragments.
2557 (note_mouse_highlight): Call popup_activated for MSDOS as well.
2558 Clear mouse highlight if pointer is over glyphs whose OBJECT is an
2559 integer.
2560 (mouse_face_from_buffer_pos): Add parentheses around && within ||.
bba3e508
SM
2561 (x_consider_frame_title, tool_bar_lines_needed):
2562 Move prototypes to HAVE_WINDOW_SYSTEM-only part.
c1fc2d3a
EZ
2563 (get_window_cursor_type): Move inside a HAVE_WINDOW_SYSTEM-only
2564 part. Remove "#ifdef HAVE_WINDOW_SYSTEM" from body of function.
2565 (null_glyph_slice): Move declaration into HAVE_WINDOW_SYSTEM-only
2566 part.
d009ae66
EZ
2567
2568 * dispnew.c (mirror_make_current): Set Y coordinate of the
2569 mode-line and header-line rows.
c1fc2d3a
EZ
2570 (init_display): Setup initial frame's output_data for text
2571 terminal frames.
d009ae66 2572
c1fc2d3a
EZ
2573 * xmenu.c (popup_activated): Don't define on MSDOS, which now has
2574 its own definition on msdos.c.
d009ae66
EZ
2575
2576 * msdos.c (show_mouse_face, clear_mouse_face)
2577 (fast_find_position, IT_note_mode_line_highlight)
2578 (IT_note_mouse_highlight): Functions deleted.
2579 (IT_frame_up_to_date, dos_rawgetc): Call note_mouse_highlight
2580 instead of IT_note_mouse_highlight.
2581 (draw_row_with_mouse_face, popup_activated): New functions.
c1fc2d3a
EZ
2582 (dos_set_window_size, draw_row_with_mouse_face, IT_update_begin)
2583 (IT_update_end, IT_frame_up_to_date, internal_terminal_init)
2584 (dos_rawgetc): Replace Display_Info with Mouse_HLInfo everywhere
2585 where mouse_face_* members were accessed for mouse highlight
2586 purposes.
2587
2588 * msdos.h (initialize_msdos_display): Add prototype.
2589
2590 * frame.h (MOUSE_HL_INFO): New macro.
2591
2592 * lisp.h (Mouse_HLInfo): New data type.
2593
2594 * xterm.h (struct x_display_info):
2595 * w32term.h (struct w32_display_info):
2596 * nsterm.h (struct ns_display_info):
2597 * termchar.h (struct tty_display_info): Use it instead of
2598 mouse_face_* members.
2599
2600 * dispextern.h (show_mouse_face, clear_mouse_face): Update type of
2601 1st argument.
2602 (frame_to_window_pixel_xy, note_mouse_highlight)
2603 (x_clear_window_mouse_face, cancel_mouse_face, clear_mouse_face)
2604 (show_mouse_face, cursor_in_mouse_face_p): Move prototypes out of
2605 HAVE_WINDOW_SYSTEM conditional.
2606 (draw_row_with_mouse_face): Declare prototype.
2607 (tty_draw_row_with_mouse_face): Declare prototype.
2608
6e8d7c47
EZ
26092010-11-05 Eli Zaretskii <eliz@gnu.org>
2610
bba3e508
SM
2611 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
2612 Remove unused variables.
6e8d7c47 2613
f31ba3f0
AR
26142010-11-05 Adrian Robert <Adrian.B.Robert@gmail.com>
2615
2616 * nsterm.m (EmacsView-mouseExited:): Correct error in conditional
2617 logic pointed out by Eli Zaretskii.
2618
448e17d6
LMI
26192010-11-04 Lars Magne Ingebrigtsen <larsi@gnus.org>
2620
0c3a9a9f
GM
2621 * coding.c (coding-category-list): Refer to set-coding-system-priority
2622 instead of the obsolete set-coding-priority in the doc string.
448e17d6 2623
f31ba3f0 2624
3fdebbf9 26252010-11-04 Adrian Robert <Adrian.B.Robert@gmail.com>
f31ba3f0
AR
2626
2627 * nsfont.m (nsfont_draw): Correct previous patch to return
2628 correct value.
2629 * nsimage.m (EmacsImage-setXBMColor:): Correct previous patch:
2630 don't change the method signature, change the return.
2631
26322010-11-04 Ismail Donmez <ismail@namtrac.org> (tiny change)
3fdebbf9
AR
2633
2634 * nsfont.m (nsfont_draw)
2635 * nsimage.m (EmacsImage-setXBMColor:)
f31ba3f0 2636 * nsterm.m (EmacsView-performDragOperation:): Correct empty return.
3fdebbf9 2637
17c0c952
JD
26382010-11-03 Julien Danjou <julien@danjou.info>
2639
2640 * image.c (gif_load): Add support for transparency and specified
2641 :background.
2642
b18fad6d
KH
26432010-11-01 Kenichi Handa <handa@m17n.org>
2644
2645 * dispextern.h (lookup_glyphless_char_display): Extern it.
2646
2647 * termhooks.h (struct terminal): New member charset_list.
2648
2649 * coding.c (Fset_terminal_coding_system_internal): Set the
2650 `charset_list' member of struct terminal.
2651
a8039db1 2652 * term.c (produce_glyphs): Handle the case it->what == IT_GLYPHLESS.
b18fad6d
KH
2653 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
2654
2655 * xdisp.c (lookup_glyphless_char_display): Make it non-static.
2656 (lookup_glyphless_char_display): Set it->what at the end.
2657 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
2658 (last_glyphless_glyph_merged_face_id): Make them non-static.
2659
a8039db1
JB
2660 * w32term.c (x_draw_glyphless_glyph_string_foreground):
2661 Fix the arg with_background for font->driver->draw.
65b6b59a 2662
a8039db1 26632010-11-01 Kenichi Handa <handa@m17n.org>
0269bd90 2664
a8039db1
JB
2665 * w32gui.h (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
2666 Surround chp by parentheses.
0269bd90 2667
a8039db1 26682010-11-01 Kenichi Handa <handa@m17n.org>
b2cca856
KH
2669
2670 Implement various display methods for glyphless characters.
2671
2672 * xdisp.c (Qglyphless_char, Vglyphless_char_display)
2673 (Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space)
2674 (Qzero_width): New variables.
2675 (THIN_SPACE_WIDTH): New macro.
2676 (lookup_glyphless_char_display): New funciton.
2677 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
2678 (last_glyphless_glyph_merged_face_id): New variables.
2679 (get_next_display_element): Check glyphless characters.
2680 (redisplay_internal): Initialize last_glyphless_glyph_frame and
2681 last_glyphless_glyph_face_id.
2682 (fill_glyphless_glyph_string): New function.
2683 (BUILD_GLYPHLESS_GLYPH_STRING): New macro.
2684 (BUILD_GLYPH_STRINGS): Handle the case GLYPHLESS_GLYPH.
2685 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
2686 (x_produce_glyphs): If a suitable font is not found, produce a
2687 glyphless glyph. Handle the case it->what == IT_GLYPHLESS.
2688 (syms_of_xdisp): Intern and staticpro Qglyphless_char,
2689 Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space, and
2690 Qzero_width.
2691 (Vglyphless_char_display): Declare it as a Lisp variable.
2692
2693 * dispextern.h (enum glyph_type): Add GLYPHLESS_GLYPH.
a8039db1
JB
2694 (struct glyph): Change the size of the member "type" to 3.
2695 Add glyphless to the union slice and u.
b2cca856
KH
2696 (enum display_element_type): Add IT_GLYPHLESS.
2697 (enum glyphless_display_method): New enum.
2698 (struct it): New member glyphless_method.
2699 (Vglyphless_char_display): Extern it.
2700
2701 * xterm.c (x_draw_glyphless_glyph_string_foreground): New function.
2702 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
2703
a8039db1 2704 * w32term.c (x_draw_glyphless_glyph_string_foreground): New function.
b2cca856
KH
2705 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
2706
2707 * nsterm.m (ns_draw_glyph_string): Handle the case
2708 GLYPHLESS_GLYPH (the detail is not yet implemented).
2709
c8c59954
GM
27102010-10-31 Glenn Morris <rgm@gnu.org>
2711
80696982
GM
2712 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Fix merge, maybe.
2713
c8c59954
GM
2714 * frame.c (syms_of_frame) <tool-bar-mode>:
2715 Default to nil if !HAVE_WINDOW_SYSTEM. (Bug#7299)
2716
46eadc7a
CY
27172010-10-31 Chong Yidong <cyd@stupidchicken.com>
2718
2719 * xterm.c (x_connection_closed): Print informative error message
2720 when aborting on GTK. This requires using shut_down_emacs
2721 directly instead of Fkill_emacs.
2722
ffe75e6b
EZ
27232010-10-29 Eli Zaretskii <eliz@gnu.org>
2724
2725 * emacs.c (main): Call syms_of_filelock unconditionally.
2726
2727 * filelock.c (syms_of_filelock): Move out of #ifdef CLASH_DETECTION
2728 clause, but keep part of it conditioned on CLASH_DETECTION.
2729
9d794026
GM
27302010-10-29 Glenn Morris <rgm@gnu.org>
2731
4f4f2973
GM
2732 * nsfns.m (Fx-display-save-under, Fx-open-connection)
2733 (Fxw-color-defined-p, Fxw-display-color-p, Fx-show-tip):
2734 * w32fns.c (Fxw_color_defined_p, Fx_open_connection):
2735 * xfns.c (Fxw_color_defined_p, Fx_open_connection):
2736 Sync docs between X, W32, NS.
2737
9d794026
GM
2738 * buffer.c (syms_of_buffer) <abbrev-mode, transient-mark-mode>:
2739 * frame.c (syms_of_frame) <tool-bar-mode>: Move doc here from Lisp.
2740
d46f6bbb
JB
27412010-10-26 Juanma Barranquero <lekktu@gmail.com>
2742
2743 * eval.c (init_eval_once): Set max_lisp_eval_depth to 600;
2744 otherwise, bootstrapping on Windows fails to compile macroexp.el.
2745
2e35f1a2
EZ
27462010-10-26 Eli Zaretskii <eliz@gnu.org>
2747
2748 * cmds.c (internal_self_insert): Don't insert if argument N is
84b28888 2749 zero or negative. (Bug#7281)
2e35f1a2 2750
8daaeda6
J
27512010-10-26 Jan Djärv <jan.h.d@swipnet.se>
2752
2753 * gtkutil.c (qttip_cb): Set title to empty for ATK (Bug#7278).
2754
6a5c2175
GM
27552010-10-25 Glenn Morris <rgm@gnu.org>
2756
2757 * Makefile.in (SOME_MACHINE_LISP): Remove easymenu.elc.
2758
7c051dd8
GM
27592010-10-24 Glenn Morris <rgm@gnu.org>
2760
2761 * w32fns.c (Fx_synchronize, Fx_change_window_property)
2762 (Fx_window_property, Fx_file_dialog):
2763 * xfns.c (Fx_synchronize, Fx_change_window_property)
2764 (Fx_window_property, Fx_file_dialog): Sync docs between w32 and X.
2765
23c261f5
CY
27662010-10-24 Chong Yidong <cyd@stupidchicken.com>
2767
2768 * xterm.c (x_connection_closed): Kill Emacs unconditionally.
2769
d414c713 27702010-10-24 Eli Zaretskii <eliz@gnu.org>
89baa1df
EZ
2771
2772 * frame.c (Fframep, Fwindow_system): Deprecate use as a predicate.
2773
2774 * dispnew.c (syms_of_display) <initial-window-system, window-system>:
2775 Deprecate use as a boolean flag.
2776
947f5e01
JM
27772010-10-24 Jim Meyering <jim@meyering.net>
2778
2779 * emacs.c (argmatch): Don't treat "--" as "--chdir".
2780
65807d73
GM
27812010-10-24 Glenn Morris <rgm@gnu.org>
2782
f5f25615
GM
2783 * w16select.c (syms_of_win16select) <selection-coding-system>:
2784 <next-selection-coding-system>:
2785 * w32select.c (syms_of_w32select) <selection-coding-system>:
2786 <next-selection-coding-system>:
3646b86d
GM
2787 Sync docs with select.el.
2788
46710489
GM
2789 * xfaces.c (syms_of_xfaces) <tty-defined-color-alist>: Sync doc with
2790 Lisp version.
2791
ea883883
GM
2792 * w32term.c (syms_of_w32term) <x-use-underline-position-properties>:
2793 Sync doc with the xterm.c version.
2794
65807d73
GM
2795 * w32term.c (syms_of_w32term) <x-toolkit-scroll-bars>:
2796 * xterm.c (syms_of_xterm) <x-toolkit-scroll-bars>: Sync docs.
2797
f3d87560
GM
27982010-10-23 Glenn Morris <rgm@gnu.org>
2799
66c6abf0 2800 * buffer.c (syms_of_buffer) <cursor-in-non-selected-windows>:
e1fd756b 2801 * frame.c (syms_of_frame) <menu-bar-mode>:
6e82cf1a 2802 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode, display-hourglass>:
a102db1e 2803 <hourglass-delay>: Sync docs with Lisp.
f3d87560 2804
7b7e2c18
EZ
28052010-10-23 Eli Zaretskii <eliz@gnu.org>
2806
d1d6801e 2807 Implement mouse highlight for bidi-reordered lines.
d0010be5
EZ
2808
2809 * xdisp.c (fast_find_string_pos): #ifdef away, not used anymore.
2810 (mouse_face_from_string_pos): New function, replaces
2811 fast_find_string_pos.
2812 (note_mouse_highlight): Call it instead of fast_find_string_pos.
d1d6801e
EZ
2813 (note_mode_line_or_margin_highlight): Support bidi-reordered
2814 strings and R2L glyph rows. Fix comments.
2f3f89b3
EZ
2815 (note_mouse_highlight): When bidi reordering is turned on in a
2816 buffer, call next-single-property-change and
ef1b0ba7
SM
2817 previous-single-property-change with last argument nil.
2818 Clear mouse highlight when mouse pointer is in a R2L row on the stretch
d1d6801e 2819 glyph that stands for no text beyond the line end.
1f382a02
EZ
2820 (row_containing_pos): Don't return too early when CHARPOS is in a
2821 bidi-reordered continued line. Return immediately when the first
2822 hit is found in a line that is not continued, or when an exact
2823 match for CHARPOS is found.
d1d6801e
EZ
2824 (rows_from_pos_range): New function.
2825 (mouse_face_from_buffer_pos): Use it instead of calling
2826 row_containing_pos for START_CHARPOS and END_CHARPOS. Rewrite the
2827 function to support mouse highlight in bidi-reordered lines and
2828 not to assume that START_CHARPOS is always in mouse_face_beg_row.
2829 If necessary, swap mouse_face_beg_row and mouse_face_end_row so
2830 that the former is always above the latter or identical to it.
1554d88e 2831 (show_mouse_face): Support drawing highlighted R2L lines.
1b5a721b
EZ
2832 (coords_in_mouse_face_p): New function, bidi-aware.
2833 (cursor_in_mouse_face_p, note_mouse_highlight, erase_phys_cursor):
2834 Call it instead of comparing with mouse-face members of dpyinfo.
2835 (note_mode_line_or_margin_highlight): Fix confusingly swapped
2836 usage of hpos and vpos.
544bbc31 2837
dee186b6
J
28382010-10-22 Jan Djärv <jan.h.d@swipnet.se>
2839
2840 * xrdb.c: Include keyboard.h for MOTIF.
2841
2842 * xmenu.c: Revert 2010-07-27 change: lwlib.h is needed for
2843 MOTIF (Bug#7263).
2844
2845 * xfns.c: Include Xm/TextF and Xm/List.
bba3e508
SM
2846 (file_dialog_cb, file_dialog_unmap_cb, clean_up_file_dialog):
2847 Make ANSI prototypes.
dee186b6 2848
5fb59edb
GM
28492010-10-22 Glenn Morris <rgm@gnu.org>
2850
2851 * Makefile.in (SOME_MACHINE_LISP): Add w32-vars.
2852 Remove ccl and duplicate mouse.
2853
8b78d5e3
CY
28542010-10-21 Chong Yidong <cyd@stupidchicken.com>
2855
2856 * insdel.c (prepare_to_modify_buffer): Don't set
2857 saved-region-selection if modification hooks are disabled.
2858
b8a47412
CY
28592010-10-19 Chong Yidong <cyd@stupidchicken.com>
2860
2861 * cmds.c (Fdelete_char): Doc fix.
2862
ca3fa302 28632010-10-19 Ken Brown <kbrown@cornell.edu>
5419963b
KB
2864
2865 * s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
2866
ca3fa302 28672010-10-19 Kenichi Handa <handa@m17n.org>
31daa5e1
KH
2868
2869 Fix incorrect font metrics when the same font is opened with
2870 different pixelsizes.
2871
2872 * xftfont.c: Include composite.h.
2873 (xftfont_shape): New function.
2874 (syms_of_xftfont): Set xftfont_driver.shape.
2875
c978536f
JD
28762010-10-18 Julien Danjou <julien@danjou.info>
2877
2878 * frame.c (Fframe_pointer_visible_p):
2879 Add `frame-pointer-visible-p' to get the pointer visibility.
2880
4b2d9ec2
LMI
28812010-10-18 Lars Magne Ingebrigtsen <larsi@gnus.org>
2882
2883 * gnutls.c (emacs_gnutls_read): Return 0 if we get a
2884 non-"EAGAIN"-like error to signal to Emacs that the socket should
2885 be closed.
2886
9cf66cf2
EZ
28872010-10-15 Eli Zaretskii <eliz@gnu.org>
2888
c3911ead
EZ
2889 * unexcoff.c (make_hdr): Fix prototype according to changes in
2890 2010-10-03T13:59:56Z!dann@ics.uci.edu.
2891
9cf66cf2
EZ
2892 * image.c (tiff_load): Cast 3rd argument to avoid compiler warning.
2893
be98da05
TH
28942010-10-15 Tassilo Horn <tassilo@member.fsf.org>
2895
2896 * Makefile.in (really-oldXMenu): Fix typo in variable name that
2897 made building the X menu fail.
cc98b256 2898 (really-oldXMenu): Fix my previous fix.
be98da05 2899
220d91b8 29002010-10-14 Damyan Pepper <damyanp@gmail.com>
9fa82824
DP
2901
2902 Fix handling of font properties on Windows (bug#6303).
2903 * font.c (font_filter_properties): New function, refactored from
2904 ftfont_filter_properties.
2905 * font.h (font_filter_properties): Declare.
2906 * ftfont.c (ftfont_filter_properties): Use font_filter_properties.
2907 * w32font.c (w32font_booleans, w32font_non_booleans): New variables.
2908 (w32font_filter_properties): New function.
2909 (w32font_driver): Add w32font_filter_properties.
2910
220d91b8 29112010-10-14 Juanma Barranquero <lekktu@gmail.com>
51e4f4a8 2912
c0943d3d 2913 * font.c (Ffont_variation_glyphs):
51e4f4a8
JB
2914 * ccl.c (Fccl_execute_on_string): Fix typo in docstring.
2915
24f981c9
JB
29162010-10-14 Juanma Barranquero <lekktu@gmail.com>
2917
2918 * w32fns.c (w32_wnd_proc, file_dialog_callback):
2919 * w32font.c (w32_generic_family):
2920 * w32inevt.c (key_event):
2921 * w32menu.c (fill_in_menu):
2922 * w32proc.c (reader_thread, w32_executable_type, compare_env)
2923 (merge_and_sort_env, int_from_hex, enum_locale_fn, enum_codepage_fn):
2924 * w32term.c (w32_read_socket): Make static.
2925
850690cc
JB
29262010-10-13 Juanma Barranquero <lekktu@gmail.com>
2927
2928 * image.c (DEF_IMGLIB_FN): Add argument to adapt to strict
2929 prototypes; all callers changed.
2930
5e371708
JB
29312010-10-13 Juanma Barranquero <lekktu@gmail.com>
2932
2933 * makefile.w32-in (TLIB2): Rename from TLIBW32.
2934 (OBJ2): New macro.
2935 (WIN32OBJ, FONTOBJ): Remove.
2936 (OBJ1): Redistribute object files with OBJ2.
2937 (LIBS, $(TEMACS)): Use TLIB2.
2938 (make-buildobj-CMD, make-buildobj-SH): Use OBJ2.
2939 ($(TLIB2), TAGS, TAGS-LISP, TAGS-gmake): Depend on OBJ2.
2940
2e288d54
JB
29412010-10-13 Juanma Barranquero <lekktu@gmail.com>
2942
2943 * emacs.c (Vdynamic_library_alist)
2944 (syms_of_emacs) <dynamic-library-alist>: Move from image.c and rename.
2945 Doc fix.
2946
2947 * lisp.h (Vdynamic_library_alist): Declare extern.
2948
2949 * image.c (Vimage_library_alist)
2950 (syms_of_image) <image-library-alist>: Move to emacs.c and rename.
2951 (lookup_image_type): Use Vdynamic_library_alist.
2952 (Finit_image_library): Doc fix.
2953
aba1381b
DN
29542010-10-12 Dan Nicolaescu <dann@ics.uci.edu>
2955
2956 * Makefile.in (lispsource, libsrc, etc, oldxmenudir, lwlibdir)
2957 (lispdir): Remove trailing /, update all uses.
2958
4c14013d 29592010-10-12 Jan Djärv <jan.h.d@swipnet.se>
a2e35ef5
JD
2960
2961 * nsterm.m (Qleft): Declare.
2962 (ns_right_alternate_modifier): New variable
2963 (NSRightAlternateKeyMask): New define.
2964 (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
2965 ns_right_alternate_modifier isn't Qleft.
2966 (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
2967 as emacs modifier for NSRightAlternateKeyMask.
2968 (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
2969
355cdaf3
LMI
29702010-10-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
2971
2972 * gnutls.c (emacs_gnutls_write): If we're trying to write before
2973 gnutls is ready, return EAGAIN as the errno.
2974
4c620157
DN
29752010-10-10 Dan Nicolaescu <dann@ics.uci.edu>
2976
edfd76ce
DN
2977 * vm-limit.c:
2978 * unexhp9k800.c:
2979 * unexelf.c:
2980 * unexaix.c:
2981 * termcap.c: Remove #ifdef emacs / #ifndef emacs code, unused.
2982
a4daeecf
DN
2983 * Makefile.in (temacs): Use $(ALL_CFLAGS) on the link line.
2984 (PROFILING_LDFLAGS): Remove, not needed anymore.
2985
2cb72a75 2986 * Makefile.in: Use $(...) everywhere instead of ${...}
4cf3ad30
DN
2987 (CRT_DIR): Move near potential user.
2988 (START_FILE): Move near CRT_DIR, it might use it.
2cb72a75 2989
4c620157
DN
2990 * sysdep.c (LPASS8): Remove, unused.
2991 (emacs_ospeed): Change from being a global to a local in the only
2992 user: init_baud_rate.
2993
b845653d
LMI
29942010-10-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
2995
2996 * gnutls.c (syms_of_gnutls): All the bootprops are keywords.
bda6d2bd 2997 (emacs_gnutls_write): Remove the debuggin fsync call.
b845653d 2998 (emacs_gnutls_read): Return -1 if we got an error from
bda6d2bd 2999 gnutls_read. This allows us to actually read lots of data from
b845653d 3000 the GnuTLS stream.
2e6c74c5
LMI
3001 (emacs_gnutls_write): Check for GNUTLS_E_AGAIN and not EINTR.
3002 According to the documentation, this is correct, and it seems to
3003 make things work.
b845653d 3004
3625b3e2
CY
30052010-10-09 Chong Yidong <cyd@stupidchicken.com>
3006
3007 * xterm.c (x_draw_relief_rect): Clear corner pixels.
3008
8b1c619f
MA
30092010-10-08 Michael Albinus <michael.albinus@gmx.de>
3010
3011 * keyboard.c: Revert last change; it was not intended to be
3012 synchronized with the trunk.
3013
93d50df8
KH
30142010-10-08 Kenichi Handa <handa@m17n.org>
3015
2b7c9342 3016 * coding.c (complement_process_encoding_system): Fix previous change.
5886ec9c 3017
4628bef1 30182010-10-08 Michael Albinus <michael.albinus@gmx.de>
a79b0f28
MA
3019
3020 * dbusbind.c (syms_of_dbusbind): Move putenv call ...
3021 (Fdbus_init_bus): ... here. (Bug#7113)
3022
4628bef1 30232010-10-08 Glenn Morris <rgm@gnu.org>
7b2bf907
GM
3024
3025 * buffer.c (before-change-functions, after-change-functions):
3026 Three-year overdue doc fix following 2007-08-13 change.
3027
4628bef1 30282010-10-08 Kenichi Handa <handa@m17n.org>
1911a33b
KH
3029
3030 * coding.c (coding_inherit_eol_type): If parent doesn't specify
3031 eol-format, inherit from the system's default.
3032 (complement_process_encoding_system): Make a new coding system
3033 inherit the original eol-format.
3034
4628bef1 30352010-10-08 Kenichi Handa <handa@m17n.org>
fcaf8878
KH
3036
3037 * coding.c (complement_process_encoding_system): New function.
3038
3039 * coding.h (complement_process_encoding_system): Extern it.
3040
3041 * callproc.c (Fcall_process): Complement the coding system for
3042 encoding arguments.
3043 (Fcall_process_region): Complement the coding system for encoding
3044 the input to the process.
3045
3046 * process.c (Fstart_process): Complement the coding system for
3047 encoding arguments.
3048 (send_process): Complement the coding system for encoding what
3049 sent to the process.
3050
4628bef1 30512010-10-08 Kenichi Handa <handa@m17n.org>
18acb5ad
KH
3052
3053 * xfont.c (xfont_open): Fix setting of font->average_width from
3054 :avgwidth property (Bug#7123).
3055
4628bef1 30562010-10-08 Michael Albinus <michael.albinus@gmx.de>
dec83468
MA
3057
3058 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
3059 is more portable.
3060
3061 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
84eb0351 3062 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
dec83468
MA
3063 has not defined SIGIO.
3064
389454fb
CY
30652010-10-08 Chong Yidong <cyd@stupidchicken.com>
3066
3067 * xterm.c (x_draw_relief_rect): If box width is larger than 1,
3068 draw the outermost line using the black relief, for legibility.
3069 Omit drawing the four corner pixels.
3070
51b403bd
CY
30712010-10-04 Chong Yidong <cyd@stupidchicken.com>
3072
3073 * keyboard.c (echo_prompt): Function moved into read_key_sequence.
3074 (read_key_sequence): Inline echo_prompt.
3075 (echo_dash): Add a dash only if key is continued (Bug#7137).
3076
3e6ae1a4
DN
30772010-10-04 Dan Nicolaescu <dann@ics.uci.edu>
3078
3079 Remove O_RDONLY, O_WRONLY definitions, not needed.
3080 * unexcoff.c:
3081 * lread.c:
3082 * fileio.c:
3083 * doc.c:
3084 * callproc.c:
3085 * alloc.c:
3086 * termcap.c: Remove O_RDONLY O_WRONLY definitions.
3087
c1ae068b
LMI
30882010-10-03 Teodor Zlatanov <tzz@lifelogs.com>
3089
3090 * gnutls.h (GNUTLS_LOG2): Convenience macro.
3091
3092 * gnutls.c: Add property list symbol holders.
3093 (emacs_gnutls_handshake): Clarify how sockets are passed to
3094 GnuTLS.
3095 (gnutls_log_function2): Convenience function using GNUTLS_LOG2.
3096 (Fgnutls_boot): Get all parameters from a plist. Require trustfiles
3097 and keyfiles to be a list of file names. Default to "NORMAL" for
3098 the priority string. Improve logging.
3099
e2afe435
GM
31002010-10-03 Glenn Morris <rgm@gnu.org>
3101
3102 * fileio.c (Vdirectory_sep_char): Remove.
3103
dd5ecd6b
DN
31042010-10-03 Dan Nicolaescu <dann@ics.uci.edu>
3105
b5437a05
DN
3106 * termhooks.h: Remove #ifdef CONSP.
3107
4777478a
DN
3108 * xterm.c (NO_INLINE, noinline): Move definitions to ../configure.in.
3109
a3d5088d
DN
3110 Include <fcntl.h> unconditionally.
3111 * termcap.c:
3112 * sysdep.c:
3113 * lread.c:
3114 * keyboard.c:
3115 * filelock.c:
3116 * fileio.c:
3117 * doc.c:
3118 * callproc.c:
3119 * alloc.c: Remove include guards for <fcntl.h>, process.c already
3120 does it.
3121
82719735
DN
3122 * process.c: Do not include <sys/wait.h>, syswait.h does it.
3123
9de940b5
DN
3124 * sysdep.c (flush_pending_output): Remove code, does not do
3125 anything on any platform.
3126
57507bf8 3127 Remove unused code.
bba3e508
SM
3128 * sysdep.c (select_alarm, sys_select, read_input_waiting):
3129 Remove select emulation, all systems support select.
57507bf8
DN
3130 (set_exclusive_use): Remove, the only user is in an #if 0 block.
3131 * process.c (create_process): Remove #if 0 code.
3132
dd5ecd6b
DN
3133 Remove unused arguments for unexec.
3134 The third one is never used, and the last two are always passed as zero.
3135 * emacs.c (unexec): Add declaration.
3136 (Fdump_emacs): Only pass the first two arguments to unexec.
3137 Simplify #ifdef.
3138 * unexw32.c (unexec):
3139 * unexsol.c (unexec):
3140 * unexhp9k800.c (unexec):
3141 * unexcw.c (unexec): Remove the last 3 arguments, unused.
3142 * unexelf.c (unexec): Remove the last 3 arguments, unused.
3143 (find_section): Use const.
3144 * unexmacosx.c (unexec): Remove the last 3 arguments, unused.
3145 (unexec_error): Declare it NO_RETURN.
3146 * unexcoff.c (make_hdr): Assume bss_start is always zero, remove
3147 it as an argument, remove data_start and entry_address arguments, unused.
3148 (unexec): Remove bss_start, data_start and
3149 entry_address arguments.
3150 * unexaix.c (make_hdr): Assume bss_start is always zero, remove
3151 it as an argument, remove data_start and entry_address arguments, unused.
3152 (unexec): Remove bss_start, data_start and
3153 entry_address arguments.
3154
74f1829d
JB
31552010-10-03 Juanma Barranquero <lekktu@gmail.com>
3156
7f467e14
JB
3157 * makefile.w32-in (TAGS, TAGS-LISP, TAGS-gmake): Add $(FONTOBJ).
3158
74f1829d
JB
3159 * gnutls.c (emacs_gnutls_handshake, gnutls_make_error)
3160 (gnutls_emacs_global_init, gnutls_emacs_global_deinit): Make static.
3161 (Fgnutls_get_initstage, Fgnutls_deinit, Fgnutls_boot, Fgnutls_bye):
3162 Fix typos in docstrings.
3163 (Fgnutls_error_fatalp, Fgnutls_error_string): Doc fixes.
3164 (Fgnutls_errorp): Doc fix; use ERR for the argument name.
3165
6926550f
CY
31662010-10-03 Chong Yidong <cyd@stupidchicken.com>
3167
3168 * keyboard.c (command_loop_1): Make sure the mark is really alive
3169 before using it (Bug#7044).
3170
54b65f7b
JB
31712010-10-02 Juanma Barranquero <lekktu@gmail.com>
3172
3173 * makefile.w32-in (tags): Rename target to full-tags.
3174
383ebd15
EZ
31752010-10-02 Eli Zaretskii <eliz@gnu.org>
3176
3177 * emacs.c (main): Remove !WINDOWSNT conditional.
3178 (Fkill_emacs): Don't mention exemption on MS-Windows.
3179
9c524fcb
GM
31802010-10-02 Glenn Morris <rgm@gnu.org>
3181
3226d6ca
GM
3182 * character.c (Fchar_bytes): Remove obsolete function.
3183 (syms_of_character): Remove Schar_bytes.
3184
9c524fcb
GM
3185 * emacs.c (fatal_error_signal): Also run Fkill_emacs on SIGINT.
3186 (main) [!WINDOWSNT]: Handle SIGINT with fatal_error_signal
3187 in batch-mode.
3188 (Fkill_emacs): Doc fix. Also run the hook in batch mode.
3189 (kill-emacs-hook): Doc fix.
3190
1b217849
LMI
31912010-10-02 Lars Magne Ingebrigtsen <larsi@gnus.org>
3192
3193 * xml.c (Flibxml_parse_xml_region, Flibxml_parse_html_region)
bba3e508 3194 (parse_region): Rework to take regions instead of strings, and
1b217849
LMI
3195 renamed to reflect that these are the libxml functions.
3196
54cc6a83
EZ
31972010-10-01 Eli Zaretskii <eliz@gnu.org>
3198
0ebf79de
EZ
3199 * term.c (init_tty) [DOS_NT]: Don't call Wcm_clear after setting
3200 screen dimensions in tty->Wcm.
3201
54cc6a83
EZ
3202 * xdisp.c (set_cursor_from_row): When the row is truncated and
3203 point is outside the range of displayed characters, position the
3204 cursor inside the scroll margin. (Bug#6349)
3205
321401d1
DN
32062010-10-01 Dan Nicolaescu <dann@ics.uci.edu>
3207
4cacd822
DN
3208 Do not include stdlib.h and string.h, config.h does it.
3209 * xfont.c:
3210 * w32term.c:
3211 * w32reg.c:
3212 * w32inevt.c:
3213 * w32heap.c:
3214 * w32console.c:
3215 * w16select.c:
3216 * unexsol.c:
3217 * term.c:
3218 * sound.c:
3219 * scroll.c (m):
3220 * gtkutil.c:
3221 * font.c:
3222 * filelock.c:
3223 * fileio.c:
3224 * dosfns.c:
3225 * dbusbind.c:
3226 * bidi.c:
3227 * callproc.c:
3228 * process.c:
3229 * msdos.c:
3230 * charset.c: Do not include stdlib.h and string.h, config.h does it.
3231
bba3e508
SM
3232 * callproc.c (SIGCHLD): Remove conditional definition, syssignal.h
3233 defines it.
0781e7ab 3234
9bf58201
DN
3235 * process.c: Move #include <pty.h> earlier.
3236 (SIGCHLD): Remove conditional definition, syssignal.h defines it.
3237 (pty_name): Move definition later.
3238
088dcc3e
DN
3239 * nsselect.m (syms_of_nsselect):
3240 * nsmenu.m (syms_of_nsmenu):
3241 * nsfns.m (syms_of_nsfns):
3242 * msdos.c (syms_of_msdos):
4cacd822 3243
088dcc3e
DN
3244 * image.c (syms_of_image):
3245 * charset.c (syms_of_charset): Use intern_c_string instead of intern.
3246
321401d1
DN
3247 * point.h: Remove, unused.
3248
73077a9a
EZ
32492010-10-01 Eli Zaretskii <eliz@gnu.org>
3250
3251 * makefile.w32-in (TAGS, frc, TAGS-LISP, ../nt/TAGS, tags)
3252 (TAGS-gmake, TAGS-nmake, TAGS-LISP-gmake, TAGS-LISP-nmake)
3253 (nt-TAGS-gmake, nt-TAGS-nmake): New targets.
3254
55e572ef
DN
32552010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
3256
3257 * xml.c (parse_string): Use const.
3258
d4b6d95d
LMI
32592010-09-30 Lars Magne Ingebrigtsen <larsi@gnus.org>
3260
ef1b0ba7
SM
3261 * eval.c (Fbacktrace): Don't overwrite print-level on exit.
3262 Also only override Vprint_level if it isn't already bound, and increase
d4b6d95d
LMI
3263 the level to 8 to produce more useful backtraces for bug reports.
3264
e4b6db12
DN
32652010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
3266
3267 * Makefile.in: ecrt0.c does not exist anymore, do not mention it.
3268
1becef93
JB
32692010-09-30 Juanma Barranquero <lekktu@gmail.com>
3270
3271 * w32console.c (vga_stdcolor_name): Remove unused function;
3272 presumed dead after 2007-11-30T13:57:21Z!jasonr@gnu.org.
3273
df7fcaff
LMI
32742010-09-29 Lars Magne Ingebrigtsen <larsi@gnus.org>
3275
bac5cef8
LMI
3276 * gnutls.c (emacs_gnutls_handshake): Made into internal function.
3277 (Fgnutls_boot): Start the handshake.
3278 (emacs_gnutls_read): Perform the handshake from the reader loop.
e6059fa2
LMI
3279 (Fgnutls_boot): Remove some debugging messages.
3280 Change indentation throughout to use the Emacs style.
3281 (emacs_gnutls_handshake): Cast the fds to something that's
3282 possibly the expected length.
3283 (emacs_gnutls_write): Return -1 if we try to write before handshake.
bac5cef8 3284
df7fcaff
LMI
3285 * process.h (Lisp_Process): Add a gnutls_p field to Lisp_Process.
3286
3287 * process.c (make_process): Set the gnutls_p field to zero by
3288 default.
3289 (read_process_output): Always call the gnutls_read function if the
3290 stream is a gnutls stream.
3291 (send_process): Ditto for writes.
3292
3293 * gnutls.c (emacs_gnutls_write, emacs_gnutls_read): Refuse to read
3294 or write anything until the state is GNUTLS_STAGE_READY.
3295 (Fgnutls_boot): Mark the stream as being a gnutls stream.
3296
d585695f
EZ
32972010-09-29 Eli Zaretskii <eliz@gnu.org>
3298
af7ef32d
EZ
3299 * xdisp.c (reseat_1): Initialize bidi_it.paragraph_dir to
3300 NEUTRAL_DIR.
3301 (handle_invisible_prop, iterate_out_of_display_property)
3302 (next_element_from_buffer): If bidi_it.first_elt is set, call
3303 bidi_paragraph_init with NO_DEFAULT_P argument non-zero.
3304 (Bug#7128)
3305
d585695f
EZ
3306 * print.c (print_object): Fix format string and argument types for
3307 printing a Lisp_Misc_Marker.
3308
3309 * xdisp.c (pos_visible_p, c_string_pos, number_of_chars)
3310 (load_overlay_strings, get_overlay_strings_1)
3311 (get_overlay_strings, forward_to_next_line_start)
3312 (back_to_previous_visible_line_start, reseat, reseat_to_string)
3313 (get_next_display_element, next_element_from_string)
3314 (next_element_from_c_string, next_element_from_buffer)
3315 (move_it_vertically_backward, move_it_by_lines, add_to_log)
3316 (message_dolog, message_log_check_duplicate, message2_nolog)
3317 (message3, message3_nolog, vmessage, set_message, set_message_1)
3318 (hscroll_window_tree, text_outside_line_unchanged_p)
3319 (set_cursor_from_row, set_vertical_scroll_bar, redisplay_window)
3320 (find_last_unchanged_at_beg_row)
3321 (find_first_unchanged_at_end_row, row_containing_pos)
3322 (trailing_whitespace_p, display_mode_element, decode_mode_spec)
bba3e508
SM
3323 (display_count_lines, x_produce_glyphs, note_mouse_highlight):
3324 Use EMACS_INT for buffer and string positions.
d585695f
EZ
3325
3326 * dispextern.h (struct it) <string_nchars>: Declare EMACS_INT.
3327 (row_containing_pos): Adjust prototype.
3328
3329 * lisp.h (pos_visible_p, message2, message2_nolog, message3)
3330 (message2_nolog, set_message): Adjust prototypes.
3331
a6f3211f
SM
33322010-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
3333
3334 * gnutls.c (Fgnutls_boot): Remove unused vars `data' and `srp_cred'.
3335 (Fgnutls_boot): Use SDATA.
3336 (Fgnutls_handshake): Remove unused var `max_log_level'.
3337
e0720500
MA
33382010-09-27 Michael Albinus <michael.albinus@gmx.de>
3339
11a5af7c 3340 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
e0720500
MA
3341 (Bug#7113)
3342
d8a4b27a
J
33432010-09-27 Jan Djärv <jan.h.d@swipnet.se>
3344
42d3022b
J
3345 * xgselect.c (xg_select): Clear file descriptors not set from
3346 rfds and wfds.
3347
d8a4b27a
J
3348 * process.c (wait_reading_process_output): Add missing FD_CLR
3349 for write_mask (must mirror connect_wait_mask).
3350
8ed70bf3
LMI
33512010-09-27 Teodor Zlatanov <tzz@lifelogs.com>
3352
3353 * gnutls.c (gnutls_log_function): Show level and "gnutls.c"
3354 prefix.
3355 (Fgnutls_boot): Use changed process members. Use log level with a
3356 function parameter to set it. Bring back Emacs-level debugging
3357 messages at log level 1 and 2.
3358
3359 * process.c (make_process): Initialize gnutls_log_level.
3360
3361 * process.h: Add gnutls_log_level and rename x509_cred and
3362 anon_cred to have the gnutls_ prefix for consistency.
3363
3364 * gnutls.h (GNUTLS_LOG): Add convenience macro.
3365
bedf4aab
JB
33662010-09-27 Juanma Barranquero <lekktu@gmail.com>
3367
3368 * w32.c (g_b_init_get_sid_identifier_authority)
3369 (GetSidIdentifierAuthority_Proc, get_sid_identifier_authority):
3370 Remove, not used.
3371 (globals_of_w32): Don't set g_b_init_get_sid_identifier_authority.
3372 (init_winsock): Remove useless assignment.
3373 (open_process_token, get_token_information, lookup_account_sid)
3374 (get_sid_sub_authority, get_sid_sub_authority_count, get_file_security)
3375 (get_security_descriptor_owner, get_security_descriptor_group)
3376 (is_valid_sid, equal_sid, get_length_sid, copy_sid)
3377 (get_native_system_info, get_system_times, init_user_info, crlf_to_lf)
3378 (is_unc_volume, GetCachedVolumeInformation, get_volume_info)
3379 (is_fat_volume, open_unc_volume, read_unc_volume, close_unc_volume)
3380 (unc_volume_file_attributes, convert_from_time_t)
3381 (create_toolhelp32_snapshot, process32_first, process32_next)
3382 (open_thread_token, impersonate_self, revert_to_self)
3383 (get_process_memory_info, get_process_working_set_size)
3384 (global_memory_status, global_memory_status_ex, socket_to_fd)
3385 (shutdown_handler): Make static.
3386
08609ffd
MA
33872010-09-27 Michael Albinus <michael.albinus@gmx.de>
3388
3389 * dbusbind.c (dbus_fd_cb, xd_get_dispatch_status)
3390 (xd_pending_messages): Functions removed.
3391 (xd_read_queued_messages): Add parameters fd, *data, for_read in
3392 order to be compatible with add_read_fd. Determine bus from data,
3393 and call xd_read_message just for this bus.
3394 (xd_add_watch): Use xd_read_queued_messages as callback function.
3395 Add data.
3396
3397 * lisp.h (xd_pending_messages, xd_read_queued_messages): Remove.
3398
d2e9d0bb
LMI
33992010-09-27 Lars Magne Ingebrigtsen <larsi@gnus.org>
3400
ef1b0ba7 3401 * gnutls.c (gnutls_log_function): Add more debugging.
ec9f09be 3402 (emacs_gnutls_read): Don't infloop while reading.
d2e9d0bb 3403
4be9765d
KH
34042010-09-27 Kenichi Handa <handa@m17n.org>
3405
3406 These changes are to remove restriction on the number of glyphs in
3407 one composition.
3408
3409 * dispextern.h (struct glyph): Change the member "slice" to union.
3410 Remove u.cmp.from and u.cmp.to. Give more bits to u.cmp.id.
bba3e508 3411 (GLYPH_SLICE_EQUAL_P): Adjust for the above change.
4be9765d
KH
3412
3413 * dispnew.c (buffer_posn_from_coords): Use glyph->slice.img
3414 instead of glyph->slice.
3415 (marginal_area_string): Likewise.
3416
3417 * term.c (encode_terminal_code): Use glyph->slice.cmp instead of
3418 glyph->u.cmp.
3419 (append_composite_glyph): Likewise.
3420
3421 * xdisp.c (dump_glyph): Use glyph->slice.cmp instead of
3422 glyph->u.cmp.
3423 (fill_gstring_glyph_string, x_get_glyph_overhangs)
3424 (append_composite_glyph): Likewise.
3425 (fill_image_glyph_string): Use glyph->slice.img instead of
3426 glyph->slice.
3427 (append_glyph, produce_image_glyph, append_stretch_glyph)
3428 (note_mouse_highlight): Likewise.
3429
3fad2ad2
J
34302010-09-26 Jan Djärv <jan.h.d@swipnet.se>
3431
bf05eed6
J
3432 * process.c (add_keyboard_wait_descriptor)
3433 (delete_keyboard_wait_descriptor): Reinstate ifdef subprocesses.
82d6e50b
J
3434 (wait_reading_process_output): Don't pass write_mask to select
3435 if SELECT_CANT_DO_WRITE_MASK is defined.
3436 (SELECT_CANT_DO_WRITE_MASK): Define if SELECT_CANT_DO_WRITE_MASK.
bf05eed6 3437
3fad2ad2
J
3438 * process.h (add_read_fd, delete_read_fd, add_write_fd)
3439 (delete_write_fd): Declare.
3440
3441 * process.c (gpm_wait_mask, max_gpm_desc): Remove.
3442 (write_mask): New variable.
ef1b0ba7 3443 (max_input_desc): Rename from max_keyboard_desc.
3fad2ad2 3444 (fd_callback_info): New variable.
70e31436
JB
3445 (add_read_fd, delete_read_fd, add_write_fd, delete_write_fd):
3446 New functions.
3fad2ad2
J
3447 (Fmake_network_process): FD_SET write_mask.
3448 (deactivate_process): FD_CLR write_mask.
3449 (wait_reading_process_output): Connecting renamed to Writeok.
70e31436
JB
3450 check_connect removed. check_write is new. Remove references to gpm.
3451 Use Writeok/check_write unconditionally (i.e. no #ifdef
3fad2ad2
J
3452 NON_BLOCKING_CONNECT) instead of Connecting.
3453 Loop over file descriptors and call callbacks in fd_callback_info
3454 if file descriptor is ready for I/O.
3455 (add_gpm_wait_descriptor): Just call add_keyboard_wait_descriptor.
3456 (delete_gpm_wait_descriptor): Just call delete_keyboard_wait_descriptor.
3457 (keyboard_bit_set): Use max_input_desc.
70e31436
JB
3458 (add_keyboard_wait_descriptor, delete_keyboard_wait_descriptor):
3459 Remove #ifdef subprocesses. Use max_input_desc.
3fad2ad2
J
3460 (init_process): Initialize write_mask and fd_callback_info.
3461
3462 * keyboard.c (readable_events, gobble_input): Remove DBUS code.
3463
3464 * dbusbind.c: Include process.h.
3465 (dbus_fd_cb, xd_find_watch_fd, xd_toggle_watch)
3466 (xd_read_message_1): New functions.
70e31436
JB
3467 (xd_add_watch, xd_remove_watch): Call xd_find_watch_fd.
3468 Handle watch for both read and write.
3fad2ad2
J
3469 (Fdbus_init_bus): Also register xd_toggle_watch.
3470 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
3471 (Fdbus_method_error_internal, Fdbus_send_signal): Remove call
3472 to dbus_connection_flush.
70e31436 3473 (xd_read_message): Move most of the code to xd_read_message_1.
3fad2ad2
J
3474 Call xd_read_message_1 until status is COMPLETE.
3475
dce4c2ac
DN
34762010-09-26 Dan Nicolaescu <dann@ics.uci.edu>
3477
3478 * term.c: Do not include sys/ioctl.h, not needed.
70e31436
JB
3479 (init_tty): Reorder code to reduce the number of #ifdefs.
3480 No code changes.
dce4c2ac 3481
8af55556
TZ
34822010-09-26 Teodor Zlatanov <tzz@lifelogs.com>
3483
3484 * process.h: Set up GnuTLS support.
3485
3486 * process.c (make_process, Fstart_process)
3487 (read_process_output, send_process): Set up GnuTLS support for
3488 process input/output file descriptors.
3489
3490 * gnutls.h: The GnuTLS glue for Emacs, macros and enums.
3491
3492 * gnutls.c: The source code for GnuTLS support in Emacs.
3493
3494 * emacs.c: Set up GnuTLS support and call syms_of_gnutls.
3495
3496 * config.in: Set up GnuTLS support.
3497
3498 * Makefile.in (LIBGNUTLS_LIBS, LIBGNUTLS_CFLAGS, ALL_CFLAGS)
3499 (obj, LIBES): Set up GnuTLS support.
3500
83e245c4
JB
35012010-09-26 Juanma Barranquero <lekktu@gmail.com>
3502
3503 * w32.c (get_emacs_configuration_options): Fix previous change.
3504
d24ec09a
CY
35052010-09-25 Chong Yidong <cyd@stupidchicken.com>
3506
3507 * insdel.c (prepare_to_modify_buffer): Ensure the mark marker is
3508 alive before using it (Bug#6977).
3509
b7bdc47c
LMI
35102010-09-25 Lars Magne Ingebrigtsen <larsi@gnus.org>
3511
a952d5f3
LMI
3512 * xdisp.c (face_before_or_after_it_pos): EMACS_INT/int fixup.
3513
3514 * dispextern.h: EMACS_INT/int fixup.
3515
3516 * xdisp.c (string_pos_nchars_ahead, init_iterator): EMACS_INT/int
3517 fixup.
3518
b7bdc47c
LMI
3519 * xrdb.c (magic_file_p): EMACS_INT/int fixup.
3520
41118bd3
EZ
35212010-09-25 Eli Zaretskii <eliz@gnu.org>
3522
2452438f
EZ
3523 * window.c (Fpos_visible_in_window_p, Fdelete_other_windows)
3524 (Fselect_window, window_scroll_pixel_based)
3525 (window_scroll_line_based, Frecenter, Fset_window_configuration):
3526 Use EMACS_INT for buffer positions.
3527
3528 * textprop.c (validate_interval_range, interval_of)
3529 (property_change_between_p, Fadd_text_properties)
3530 (set_text_properties_1, Fremove_text_properties)
3531 (Fremove_list_of_text_properties, Ftext_property_any)
3532 (Ftext_property_not_all, copy_text_properties)
3533 (text_property_list, extend_property_ranges)
3534 (verify_interval_modification): Use EMACS_INT for buffer
3535 positions.
3536
f877c546
EZ
3537 * term.c (fast_find_position, term_mouse_highlight): Use EMACS_INT
3538 for buffer positions.
3539
3540 * process.c (read_process_output, send_process)
3541 (Fprocess_send_region, status_notify): Use EMACS_INT for buffer
3542 and string positions and size.
3543
da43f021
EZ
3544 * print.c (print_object, print_string, strout): Use EMACS_INT for
3545 string indices.
3546
3547 * minibuf.c (string_to_object): Use EMACS_INT for string position
3548 and size.
3549
3550 * marker.c (verify_bytepos): Use EMACS_INT for buffer positions.
3551
3552 * lread.c <read_from_string_index, read_from_string_index_byte>
3553 <read_from_string_limit, readchar_count>: Define EMACS_INT.
3554 (readchar, unreadchar, read_internal_start): Use EMACS_INT for
3555 buffer positions and string length.
3556
41118bd3
EZ
3557 * keyboard.c <last_point_position, last_non_minibuf_size>: Declare
3558 EMACS_INT.
3559 (echo_truncate, adjust_point_for_property, read_char)
3560 (gen_help_event, make_lispy_event, modify_event_symbol)
3561 (Fexecute_extended_command, stuff_buffered_input): Use EMACS_INT
3562 for buffer positions and string length.
3563
3564 * keyboard.h (gen_help_event): Adjust prototype.
3565
3566 * termhooks.h <struct input_event>: Make `code' member EMACS_INT.
3567
3568 * commands.h <last_point_position>: Declare EMACS_INT.
3569
3570 * xdisp.c <help_echo_pos>: Define as EMACS_INT.
3571 (truncate_echo_area): Accept EMACS_INT argument.
3572
3573 * dispextern.h <help_echo_pos>: Declare EMACS_INT.
3574
3575 * lisp.h (truncate_echo_area): Adjust prototype.
3576
3577 * composite.c (composition_adjust_point): Return EMACS_INT.
3578
3579 * composite.h (composition_adjust_point): Adjust prototype.
3580
ba3033ee
JB
35812010-09-25 Juanma Barranquero <lekktu@gmail.com>
3582
3583 * process.c (Fmake_network_process): When arg :host is 'local,
3584 use address 127.0.0.1, not name "localhost". (Bug#6781)
3585
4f3a2f8d
EZ
35862010-09-24 Eli Zaretskii <eliz@gnu.org>
3587
5816888b
EZ
3588 * indent.c (Fcurrent_indentation, indented_beyond_p)
3589 (compute_motion): Use EMACS_INT for buffer position variables.
3590
3591 * lisp.h (indented_beyond_p): Adjust prototype.
3592
3593 * buffer.c (overlay_strings): Return EMACS_INT.
3594
3595 * buffer.h (overlay_strings): Adjust prototype.
3596
3597 * region-cache.c (pp_cache): Adjust format to arguments.
3598
3599 * eval.c <specpdl_size, lisp_eval_depth>: Declare EMACS_INT.
3600 (call_debugger): Use EMACS_INT for specpdl_size related variables.
3601 (verror): Use EMACS_INT for size of allocated buffer.
3602
ace1712c
EZ
3603 * keyboard.c (make_lispy_position): Use EMACS_INT for buffer
3604 positions.
3605
3606 * xdisp.c (redisplay_internal, try_window_id)
bba3e508
SM
3607 (set_cursor_from_row, find_first_unchanged_at_end_row):
3608 Use EMACS_INT for buffer positions.
ace1712c 3609
f5276b75 3610 * dispextern.h (set_cursor_from_row): Adjust prototype.
ace1712c
EZ
3611
3612 * dispnew.c (increment_matrix_positions)
3613 (increment_row_positions, copy_glyph_row_contents)
3614 (mode_line_string, marginal_area_string): Use EMACS_INT for buffer
3615 positions.
3616
3617 * dispextern.h (mode_line_string, marginal_area_string)
bba3e508
SM
3618 (increment_matrix_positions, increment_row_positions):
3619 Adjust prototypes.
ace1712c
EZ
3620
3621 * data.c (Faref, Faset): Use EMACS_INT for string length and
3622 positions.
3623
3624 * cmds.c (internal_self_insert): Use EMACS_INT for the count of
3625 characters to insert.
3626
3627 * ccl.c (Fccl_execute_on_string): Use EMACS_INT for string
3628 position and size.
3629
4f3a2f8d
EZ
3630 * syntax.c (scan_words, update_syntax_table)
3631 (prev_char_comend_first, back_comment, skip_chars)
bba3e508
SM
3632 (skip_syntaxes, Fforward_comment, Fbackward_prefix_chars):
3633 Use EMACS_INT for buffer and string positions.
4f3a2f8d
EZ
3634
3635 * syntax.h (scan_words, update_syntax_table): Adjust prototypes.
3636
3637 * casefiddle.c (operate_on_word): Use EMACS_INT for buffer
3638 positions.
3639
db063399
LMI
36402010-09-24 Lars Magne Ingebrigtsen <larsi@gnus.org>
3641
f0812d35
LMI
3642 * scroll.c (calculate_scrolling, line_ins_del)
3643 (calculate_direct_scrolling, scroll_cost): Fix EMACS_INT/int
3644 conversion.
3645
f5c7fc27
LMI
3646 * region-cache.c (move_cache_gap, set_cache_region, pp_cache)
3647 (region_cache_backward, region_cache_forward)
3648 (revalidate_region_cache, set_cache_region): FIX EMACS_INT/int
3649 conversion.
3650
db063399
LMI
3651 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
3652
3653 * eval.c (verror): Fix EMACS_INT/int conversion.
3654
07914cd0 3655 * print.c (PRINTDECLARE, PRINTPREPARE, strout, print_string)
db063399
LMI
3656 (print_preprocess, print_check_string_charset_prop)
3657 (print_object): Fix EMACS_INT/int conversion.
3658
3659 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
3660
e6d4aefa
EZ
36612010-09-24 Eli Zaretskii <eliz@gnu.org>
3662
69481da7
EZ
3663 * callproc.c (Fcall_process): Use EMACS_INT for count of
3664 characters read from the subprocess.
3665
61bfec98
EZ
3666 * bidi.c (struct bidi_paragraph_info): Use EMACS_INT for buffer
3667 positions.
3668 (bidi_cache_search, bidi_cache_find): Use EMACS_INT for buffer
3669 positions.
3670
145582a0
EZ
3671 * buffer.c (struct sortvec): Use EMACS_INT for buffer positions.
3672 (struct sortstrlist, overlay_str_len): Use EMACS_INT for string
3673 length.
3674 (advance_to_char_boundary, Fset_buffer_multibyte)
3675 (overlays_at, overlays_in, mouse_face_overlay_overlaps)
3676 (overlay_touches_p, record_overlay_string, overlay_strings)
3677 (recenter_overlay_lists, fix_start_end_in_overlays)
3678 (modify_overlay, Fmove_overlay, report_overlay_modification)
3679 (evaporate_overlays): Use EMACS_INT for buffer positions.
3680
bba3e508
SM
3681 * lisp.h (fix_start_end_in_overlays, overlay_touches_p):
3682 Adjust prototypes.
145582a0 3683
446470a9
EZ
3684 * dispextern.h (struct bidi_saved_info): Use EMACS_INT for buffer
3685 positions.
3686
e6d4aefa
EZ
3687 * fns.c (Fcompare_strings, Fstring_lessp, concat)
3688 (string_make_unibyte, Fstring_as_unibyte, Fsubstring)
3689 (Fsubstring_no_properties, substring_both, Ffillarray)
3690 (Fclear_string, mapcar1, Fmapconcat, Fmapcar, Fmapc)
3691 (Fbase64_encode_region, Fbase64_encode_string, base64_encode_1)
3692 (Fbase64_decode_region, Fbase64_decode_string, base64_decode_1)
3693 (Fmd5): Use EMACS_INT for buffer and string positions and length
3694 variables and arguments.
3695
3696 * lisp.h (substring_both): Adjust prototype.
3697
eb652396
JB
36982010-09-24 Juanma Barranquero <lekktu@gmail.com>
3699
3700 Remove W32 API function pointer unused since 2005-02-15 (revno 2005-02-15T23:19:26Z!jasonr@gnu.org).
3701 * w32fns.c (clipboard_sequence_fn): Don't declare.
3702 (globals_of_w32fns): Don't initialize it.
3703
266a86bd 37042010-09-23 Stefan Monnier <monnier@iro.umontreal.ca>
fbb3da77
SM
3705
3706 * syntax.c (back_comment): Detect the case where a 1-char comment
3707 starter is also the 2nd char of a 2-char comment ender.
3708
266a86bd 37092010-09-23 Jan Djärv <jan.h.d@swipnet.se>
2b5b82db
J
3710
3711 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
3712
40283062
LMI
37132010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
3714
db063399
LMI
3715 * eval.c (verror): EMACS_INT/int cleanup.
3716
faf8b5bc
LMI
3717 * lisp.h (SPECPDL_INDEX): Cast to int, since we're not going to
3718 unwind_protect more than 2GB worth of functions.
3719
3720 * editfns.c (Finsert_char): EMACS_INT/int cleanup.
3721
40283062
LMI
3722 * lisp.h: Have oblookup take EMACS_INT to allow interning big
3723 string and avoid compiler warnings.
3724 (USE_SAFE_ALLOCA): Cast to int to avoid compilation warnings in
3725 all users.
3726
3727 * lread.c (oblookup): EMACS_INT/int cleanup.
3728
3729 * cmds.c (Fforward_line, Fdelete_char): EMACS_INT/int cleanup.
3730
fe3537c3
EZ
37312010-09-23 Eli Zaretskii <eliz@gnu.org>
3732
3733 * editfns.c (clip_to_bounds): Return an EMACS_INT value.
3734
3735 * lisp.h (clip_to_bounds): Adjust prototype.
3736
3737 * intervals.c (adjust_for_invis_intang): Return EMACS_INT value.
3738
0350982f
LMI
37392010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
3740
84c9ce05
LMI
3741 * lisp.h: doprnt.c EMACS_INT/int cleanup.
3742
3743 * doprnt.c (doprnt): EMACS_INT/int cleanup.
3744
3745 * doc.c (Fsnarf_documentation, get_doc_string): EMACS_INT/int
3746 cleanup.
3747
0350982f
LMI
3748 * lisp.h: Change the definition of all marker.c functions that
3749 take and return buffer stuff to be EMACS_INT instead of int.
3750
3751 * marker.c (buf_charpos_to_bytepos, CONSIDER, set_marker_both)
3752 (buf_charpos_to_bytepos, bytepos_to_charpos)
3753 (buf_bytepos_to_charpos, Fbuffer_has_markers_at)
3754 (set_marker_restricted, set_marker_both): Convert int to EMACS_INT
3755 for all buffer positions.
3756
c50bd0d2
CY
37572010-09-23 Chong Yidong <cyd@stupidchicken.com>
3758
3759 * intervals.c (traverse_intervals, rotate_right, rotate_left)
3760 (split_interval_right, find_interval, next_interval)
3761 (delete_node, delete_interval, interval_deletion_adjustment)
3762 (adjust_intervals_for_deletion, merge_interval_right)
3763 (merge_interval_left, graft_intervals_into_buffer)
3764 (copy_intervals): Convert EMACS_UINTs to EMACS_INT.
3765
3766 * intervals.h (traverse_intervals): Update prototype.
3767
14162469
EZ
37682010-09-23 Eli Zaretskii <eliz@gnu.org>
3769
c098fdb8
EZ
3770 * indent.c (compute_motion): Use EMACS_INT for arguments to
3771 region_cache_forward.
3772
bba3e508
SM
3773 * region-cache.c (struct boundary, struct region_cache):
3774 Use EMACS_INT for positions.
c098fdb8
EZ
3775 (find_cache_boundary, move_cache_gap, insert_cache_boundary)
3776 (delete_cache_boundaries, set_cache_region)
3777 (invalidate_region_cache, know_region_cache)
bba3e508
SM
3778 (region_cache_forward, region_cache_backward, pp_cache):
3779 Use EMACS_INT for buffer positions.
c098fdb8
EZ
3780
3781 * region-cache.h (know_region_cache, invalidate_region_cache)
3782 (region_cache_forward, region_cache_backward): Adjust prototypes.
3783
3784 * search.c (string_match_1, fast_c_string_match_ignore_case)
3785 (looking_at_1, scan_buffer, scan_newline)
3786 (find_next_newline_no_quit, find_before_next_newline)
3787 (search_command, trivial_regexp_p, search_buffer, simple_search)
3788 (boyer_moore, wordify, Freplace_match): Use EMACS_INT for buffer
3789 and string positions and length.
3790
caefdbe7
EZ
3791 * lisp.h (scan_buffer, scan_newline, find_next_newline_no_quit)
3792 (find_before_next_newline): Adjust prototypes.
c098fdb8 3793
29cdc13e
EZ
3794 * editfns.c (transpose_markers, update_buffer_properties)
3795 (buildmark, clip_to_bounds, Fgoto_char, overlays_around)
3796 (get_pos_property, Fconstrain_to_field)
3797 (Fline_beginning_position, Fline_end_position, Fprevious_char)
3798 (Fchar_after, Fchar_before, Finsert_char)
3799 (Finsert_buffer_substring, Fcompare_buffer_substrings)
bba3e508
SM
3800 (Fsubst_char_in_region, Fformat, Ftranspose_regions):
3801 Use EMACS_INT for buffer and string position variables.
c098fdb8 3802 (Finsert_char): Protect against too large insertions.
29cdc13e
EZ
3803
3804 * lisp.h (clip_to_bounds): Adjust prototype.
3805
e79123aa
EZ
3806 * intervals.c (traverse_intervals, rotate_right, rotate_left)
3807 (balance_an_interval, split_interval_right, split_interval_left)
3808 (find_interval, next_interval, update_interval)
3809 (adjust_intervals_for_insertion, delete_node, delete_interval)
3810 (interval_deletion_adjustment, adjust_intervals_for_deletion)
3811 (offset_intervals, merge_interval_right, merge_interval_left)
3812 (graft_intervals_into_buffer, adjust_for_invis_intang)
3813 (move_if_not_intangible, get_local_map, copy_intervals)
3814 (copy_intervals_to_string, compare_string_intervals)
3815 (set_intervals_multibyte_1): Use EMACS_INT for buffer positions
6e48267a 3816 and for interval tree size.
e79123aa
EZ
3817
3818 * intervals.h (traverse_intervals, split_interval_right)
3819 (split_interval_left, find_interval, offset_intervals)
3820 (graft_intervals_into_buffer, copy_intervals)
3821 (copy_intervals_to_string, move_if_not_intangible, get_local_map)
3822 (update_interval): Adjust prototypes.
3823
579c18d0
EZ
3824 * xdisp.c (check_point_in_composition, reconsider_clip_changes):
3825 Use EMACS_INT for buffer position variables and arguments.
3826
3827 * composite.c (get_composition_id, find_composition)
3828 (run_composition_function, compose_text)
3829 (composition_gstring_width, autocmp_chars)
3830 (composition_update_it, Ffind_composition_internal): Use EMACS_INT
3831 for buffer positions and string length variables and arguments.
3832
3833 * composite.h (get_composition_id, find_composition, compose_text)
3834 (composition_gstring_width): Adjust prototypes.
3835
3836 * editfns.c (Fformat): Use EMACS_INT for string size variables.
3837
bba3e508
SM
3838 * xdisp.c (store_mode_line_noprop, display_mode_element):
3839 Use EMACS_INT for string positions.
579c18d0
EZ
3840
3841 * intervals.c (get_property_and_range): Use EMACS_INT for buffer
3842 position arguments.
3843
3844 * intervals.h (get_property_and_range): Adjust prototype.
14162469
EZ
3845
3846 * character.c (parse_str_as_multibyte, str_as_multibyte)
3847 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
579c18d0 3848 (string_count_byte8, string_escape_byte8, c_string_width)
bba3e508
SM
3849 (strwidth, lisp_string_width, multibyte_chars_in_text):
3850 Use EMACS_INT for string length variables and arguments.
14162469
EZ
3851
3852 * character.h (parse_str_as_multibyte, str_as_multibyte)
579c18d0 3853 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
bba3e508
SM
3854 (c_string_width, strwidth, lisp_string_width):
3855 Adjust prototypes.
14162469 3856
579c18d0
EZ
3857 * font.c (font_intern_prop): Use EMACS_INT for string length
3858 variables.
3859
3860 * font.c (font_intern_prop): Use EMACS_INT for string length
3861 variables.
3862
14162469
EZ
3863 * fns.c (Fstring_as_multibyte): Use EMACS_INT for string length
3864 variables.
3865
3866 * alloc.c <total_string_size>: Declare as EMACS_INT, not int.
3867 (Fmake_string): Protect against too large strings.
3868 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
3869 (live_misc_p): Use ptrdiff_t instead of int for pointer
3870 differences.
3871 (string_bytes, check_sblock, check_string_free_list)
3872 (allocate_string_data, compact_small_strings, Fmake_string)
3873 (Fmake_bool_vector, make_string, make_unibyte_string)
3874 (make_multibyte_string, make_string_from_bytes)
bba3e508
SM
3875 (make_specified_string_string, Fmake_list, Fmake_vector):
3876 Use EMACS_INT for string length variables and arguments.
14162469
EZ
3877 (find_string_data_in_pure, make_pure_string, make_pure_c_string)
3878 (Fpurecopy): Use EMACS_INT for string size.
3879 (mark_vectorlike, mark_char_table, mark_object): Use EMACS_UINT
3880 for vector size.
3881
3882 * lisp.h (make_string, make_unibyte_string, make_multibyte_string)
3883 (make_string_from_bytes, make_specified_string_string)
579c18d0
EZ
3884 (make_pure_string, string_bytes, check_point_in_composition):
3885 Adjust prototypes.
14162469 3886
c8a66ab8
EZ
38872010-09-22 Eli Zaretskii <eliz@gnu.org>
3888
3889 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
3890 (check_translation): Use EMACS_INT for buffer positions and
3891 length.
3892
3893 * undo.c (record_marker_adjustment, record_delete)
3894 (record_change, record_point, record_insert)
3895 (record_property_change, Fprimitive_undo): Use EMACS_INT for
3896 buffer positions.
3897
3898 * lisp.h (record_marker_adjustment, record_delete)
3899 (record_change, record_point, record_insert)
3900 (record_property_change, Fprimitive_undo): Adjust prototypes.
3901
38c54d9d
JB
39022010-09-22 Juanma Barranquero <lekktu@gmail.com>
3903 Eli Zaretskii <eliz@gnu.org>
3904
3905 * w32.c (get_emacs_configuration_options): Fix buffer overrun.
3906
413d18e7
EZ
39072010-09-22 Eli Zaretskii <eliz@gnu.org>
3908
3909 * minibuf.c (Fminibuffer_contents)
3910 (Fminibuffer_contents_no_properties)
3911 (Fminibuffer_completion_contents): Use EMACS_INT for minibuffer
3912 positions.
3913
3914 * keyboard.c (command_loop_1): Use EMACS_INT to compare point with
3915 mark.
3916
3917 * alloc.c (make_uninit_string, make_uninit_multibyte_string)
3918 (allocate_string_data): Accept EMACS_INT for string length.
3919
3920 * editfns.c (Ffield_string, Ffield_string_no_properties)
3921 (make_buffer_string, make_buffer_string_both, Fbuffer_substring)
3922 (Fbuffer_substring_no_properties, find_field, Fdelete_field)
3923 (Ffield_string, Ffield_string_no_properties, Ffield_beginning)
3924 (Ffield_end): Use EMACS_INT for buffer positions.
3925
3926 * insdel.c (prepare_to_modify_buffer): Use EMACS_INT to compare
3927 point with mark.
3928
3929 * lisp.h (allocate_string_data, make_uninit_string)
3930 (make_uninit_multibyte_string, make_buffer_string)
3931 (make_buffer_string_both): Adjust prototypes.
3932
4b9832a6
CY
39332010-09-22 Chong Yidong <cyd@stupidchicken.com>
3934
3935 * xml.c: Switch to GNU indentation.
3936 (make_dom): Change parse tree format to match xml.el.
3937 (Fxml_parse_html_string_internal): Rename from html-parse-string.
3938 (Fxml_parse_string_internal): Rename from xml-parse-string.
3939
86282aab
KH
39402010-09-22 Kenichi Handa <handa@m17n.org>
3941
3942 * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos
3943 only if we are not at a composition.
3944 (set_iterator_to_next): Give it->end_charpos to
3945 composition_compute_stop_pos.
3946 (set_iterator_to_next, next_element_from_buffer): Likewise.
3947
3948 * dispnew.c (buffer_posn_from_coords): Fix position when the
3949 current display element is a grapheme cluster in bidi-reordered
3950 region.
3951
840b985a
AR
39522010-09-21 Ari Roponen <ari.roponen@gmail.com> (tiny change)
3953
3954 * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
3955 the regions may overlap.
3956
5bc88f4b
JB
39572010-09-21 Juanma Barranquero <lekktu@gmail.com>
3958
3959 * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
3960
92bc9a36
DN
39612010-09-21 Dan Nicolaescu <dann@ics.uci.edu>
3962
d19e096e
DN
3963 * emacs.c: Do not include sys/ioctl.h, not needed.
3964
92bc9a36
DN
3965 * doprnt.c: Do not include stdlib.h, config.h does it.
3966 Move #include before macro definition.
3967
15f844ac
DN
39682010-09-20 Dan Nicolaescu <dann@ics.uci.edu>
3969
48e24408
DN
3970 * Makefile.in (temacs): Link using $(CC) not $(LD).
3971 (LD_FIRSTFLAG): Define using autoconf.
3972 (LD): Remove.
3973
65539506
DN
3974 Remove HAVE_TERMIOS definitions.
3975 * s/usg5-4-common.h (HAVE_TERMIOS):
3976 * s/template.h (HAVE_TERMIOS):
3977 * s/gnu-linux.h (HAVE_TERMIOS):
3978 * s/darwin.h (HAVE_TERMIOS):
3979 * s/cygwin.h (HAVE_TERMIOS):
3980 * s/bsd-common.h (HAVE_TERMIOS):
3981 * s/aix4-2.h (HAVE_TERMIOS):
3982 * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
3983 defined on all non-MS platforms.
3984 (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
3985
15f844ac
DN
3986 * xterm.c (xt_action_hook): Use const.
3987
7d701334
JB
39882010-09-20 Juanma Barranquero <lekktu@gmail.com>
3989
3990 Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
3991 * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
3992 (gethostname) [!HAVE_SOCKETS]: Remove.
3993 (SOCK_REPLACE_HANDLE): Remove macro.
3994 (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
3995 (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
3996 * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
3997 (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
3998
f3ec267a
EZ
39992010-09-18 Eli Zaretskii <eliz@gnu.org>
4000
4001 * deps.mk (xml.o): Add dependencies.
4002
93acd23d
JB
4003 * xdisp.c (Fcurrent_bidi_paragraph_direction):
4004 Call bidi_paragraph_init with NO_DEFAULT_P non-zero. (Bug#7038)
bea4f10c
EZ
4005
4006 * bidi.c (bidi_paragraph_init): Accept an additional argument
4007 NO_DEFAULT_P; all callers changed. If NO_DEFAULT_P is non-zero,
4008 search back until a paragraph with a strong directional character
4009 is found, and use that to determine paragraph's base direction.
4010
4011 * dispextern.h (bidi_paragraph_init): Update prototype.
4012
69e847be
EZ
40132010-09-17 Eli Zaretskii <eliz@gnu.org>
4014
4015 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
4016 of w32api >= 3.15. (Bug#6989)
4017
283357a7
LMI
40182010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
4019
4020 * process.c (wait_reading_process_output): Don't message about
4021 accept-process-output unless the time limit really is zero.
4022
4ddb20d6
SM
40232010-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
4024
4025 * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
4026 int/Lisp_Object mixup).
4027
e24ad6dd
J
40282010-09-17 Jan Djärv <jan.h.d@swipnet.se>
4029
4030 * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
4031 not HELP.
4032
fb0cf781
J
40332010-09-17 Stephen Berman <stephen.berman@gmx.net>
4034
4035 * frame.c (Ftool_bar_pixel_width): New function to expose tool
4036 bar's pixel width to Lisp (Bug#7048).
4037
4ddb20d6
SM
40382010-09-14 Juanma Barranquero <lekktu@gmail.com>
4039
4040 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
fb0cf781 4041
318a04c6
J
40422010-09-17 Jan Djärv <jan.h.d@swipnet.se>
4043
4044 * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
4045 with argument top/left if tool bar is vertical/horizontal (Bug#7051).
4046
78a21772
KH
40472010-09-17 Kenichi Handa <handa@m17n.org>
4048
4049 * ftfont.c (ftfont_check_otf): Fix previous change.
4050
fa3f6039
KH
40512010-09-14 Kenichi Handa <handa@m17n.org>
4052
4053 * ftfont.c (ftfont_check_otf): Fix the case of checking just
4054 existence of GSUB or GPOS.
4055
2b5491fa
JB
40562010-09-14 Juanma Barranquero <lekktu@gmail.com>
4057
4058 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
4059
c97c655f
LMI
40602010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
4061
ef1b0ba7 4062 * xml.c (parse_buffer): Rename to parse_string(), since that's
c97c655f
LMI
4063 what it does.
4064 (parse_string): Return nil when the document can't be parsed.
4065
6664fc59 40662010-09-14 Jan Djärv <jan.h.d@swipnet.se>
5f61a25c
J
4067
4068 * xterm.c (get_current_vm_state): New function.
4069 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
4070 want_fullscreen so set_wm_state calls are few (Bug#7013).
4071 (x_handle_net_wm_state): Move code to get_current_vm_state and
4072 call that function.
4073
6664fc59 40742010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
65b3d997
A
4075
4076 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
4077
6664fc59 40782010-09-14 Kenichi Handa <handa@m17n.org>
a552b35a
KH
4079
4080 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
4081 we may use designation or locking-shift.
4082
6664fc59 40832010-09-14 Kenichi Handa <handa@m17n.org>
396475b7
KH
4084
4085 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
4086 sequence when the source is multibyte.
4087
1da70e99
AS
40882010-09-14 Andreas Schwab <schwab@linux-m68k.org>
4089
6664fc59
JB
4090 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
4091 Don't make first argument optional. Doc fix.
1da70e99 4092
26632d8d
LMI
40932010-09-14 Leo <sdl.web@gmail.com> (tiny change)
4094
4095 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
4096 parameters for the doc string.
4097
21fa8e37
LMI
40982010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
4099
4100 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
4101
5616cc54
SM
41022010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4103
4104 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
4105 (syms_of_fns): Don't defsubr Sy_or_n_p.
4106 * lisp.h: Don't declare Fy_or_n_p.
4107 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
4108
381408e2
LMI
41092010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
4110
4111 * xml.c (Fxml_parse_buffer): New function to parse XML files.
4112
41132010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
4114
4115 * xml.c: New file.
4116 (Fhtml_parse_buffer): New function to interface to the libxml2
4117 html parsing function.
4118
733946e7
JB
41192010-09-05 Juanma Barranquero <lekktu@gmail.com>
4120
4121 * biditype.h: Regenerate.
4122
7574650a
AS
41232010-09-04 Andreas Schwab <schwab@linux-m68k.org>
4124
4125 * nsimage.m (ns_load_image): Check argument types.
4126
4127 * image.c: Remove all uses of gcpro.
4128 (xpm_load): Check all lisp types.
4129 (pbm_load): Likewise.
4130 (png_load): Likewise.
4131 (jpeg_load): Likewise.
4132 (tiff_load): Likewise.
4133 (gif_load): Likewise.
4134 (imagemagick_load_image): Likewise.
4135 (imagemagick_load): Likewise.
4136 (svg_load): Likewise.
4137 (gs_load): Likewise.
4138
6e6b8e25
EZ
41392010-09-04 Eli Zaretskii <eliz@gnu.org>
4140
bba3e508
SM
4141 * w32uniscribe.c (uniscribe_shape): Update commentary.
4142 Don't try to reorder grapheme clusters, since LGSTRING should always
6e6b8e25
EZ
4143 hold them in the logical order.
4144 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
4145 return glyph codes in the logical order.
4146
dbfe4532
AS
41472010-09-04 Andreas Schwab <schwab@linux-m68k.org>
4148
4149 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
b7d187f8 4150 (imagemagick_load_image): Fix type mismatch.
5e5992c2 4151 (Fimagemagick_types): Likewise. Doc fix.
dbfe4532 4152
6d7cc563
JD
41532010-09-02 Jan Djärv <jan.h.d@swipnet.se>
4154
4155 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
4156
4157 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
4158
4159 * xselect.c: Remove declaration of cut-buffer objects and functions.
4160 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
4161 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
4162 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
4163 (Fx_rotate_cut_buffers_internal): Remove.
4164 (syms_of_xselect): Remove defsubr of above.
4165 Remove intern of QCUT_BUFFERn.
4166
8f4e9110
SM
41672010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
4168
4169 * cmds.c (Vblink_paren_function): Remove.
4170 (internal_self_insert): Make it insert N chars at a time.
4171 Don't call blink-paren-function.
4172 (Fself_insert_command): Adjust accordingly.
4173 (syms_of_cmds): Don't declare blink-paren-function.
4174
d419e1d9
KH
41752010-08-31 Kenichi Handa <handa@m17n.org>
4176
4177 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
4178 characters.
4179
4180 * term.c (encode_terminal_code): Fix the previous change.
5616cc54
SM
4181 (produce_glyphs): Don't set it->char_to_display here.
4182 Don't handle unibyte-display-via-language-environment here.
d419e1d9
KH
4183 (produce_special_glyphs): Set temp_it.char_to_display before
4184 calling produce_glyphs.
4185
4186 * xdisp.c (get_next_display_element): Set it->char_to_display
4187 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
4188 characters.
4189 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
4190 calling PRODUCE_GLYPHS.
4191 (append_space_for_newline): Save and store it->char_to_display.
4192 Set it->char_to_display before calling PRODUCE_GLYPHS.
4193 (extend_face_to_end_of_line): Set it->char_to_display before
4194 calling PRODUCE_GLYPHS.
4195 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
4196 character to its byte value.
4197 (get_char_glyph_code): New function.
4198 (produce_stretch_glyph): Set it2.char_to_display too before
4199 calling x_produce_glyphs.
4200 (x_produce_glyphs): Simplify by using the same code for ASCII and
65b3d997
A
4201 non-ASCII characters. Don't set it->char_to_display here.
4202 Don't handle unibyte-display-via-language-environment here. For a
2b5491fa 4203 character of no glyph, use font->space_width instead of FONT_WIDTH.
d419e1d9 4204
b819f760
SM
42052010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
4206
4207 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
4208
07fa68a7
CY
42092010-08-31 Chong Yidong <cyd@stupidchicken.com>
4210
4211 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
4212
cd196f12
SM
42132010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
4214
4215 * marker.c (Fcopy_marker): Make the first arg optional.
4216
49a752bb
KH
42172010-08-30 Kenichi Handa <handa@m17n.org>
4218
4219 * composite.c (composition_update_it): Fix computing of
4220 cmp_it->width.
4221
769ae9e1
KH
42222010-08-29 Kenichi Handa <handa@m17n.org>
4223
9e69cb05 4224 * term.c (encode_terminal_code): Encode byte chars to the
5616cc54 4225 corresponding bytes.
9e69cb05 4226
4520b858
J
42272010-08-29 Jan Djärv <jan.h.d@swipnet.se>
4228
4229 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
4230
fe50eb41
KH
42312010-08-26 Kenichi Handa <handa@m17n.org>
4232
4233 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
4234 on calling composition_compute_stop_pos.
4235
f6aa6ec6
KH
42362010-08-25 Kenichi Handa <handa@m17n.org>
4237
9dfdbc0a
KH
4238 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
4239 :otf.
4240
f6aa6ec6
KH
4241 * composite.c (composition_compute_stop_pos): Don't break
4242 composition at PT.
4243 (composition_reseat_it): Likewise. Fix calculation of character
4244 position starting a composition.
4245 (Fcomposition_get_gstring): Don't limit the number of components
4246 for automatic composition.
4247
ff94e32c
KH
42482010-08-25 Kenichi Handa <handa@m17n.org>
4249
4250 * composite.c (composition_compute_stop_pos): In forward search,
4251 pay attention to the possibility that some character after ENDPOS
4252 will be composed with charactrs before ENDPOS.
4253
1c409d0b
CY
42542010-08-24 Chong Yidong <cyd@stupidchicken.com>
4255
4256 * keyboard.c (command_loop_1): Don't clobber primary selection
4257 during handle-switch-frame (Bug#6872).
4258
0c372655
MA
42592010-08-23 Michael Albinus <michael.albinus@gmx.de>
4260
4261 * dbusbind.c: Accept UNIX domain sockets as bus address.
4262 (Fdbus_close_bus): New function.
4263 (Vdbus_registered_buses): New variable.
4264 (xd_initialize): Implement string as bus address.
4265 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
4266 (Fdbus_get_unique_name, Fdbus_call_method)
4267 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
4268 (Fdbus_method_error_internal, Fdbus_send_signal)
4269 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
4270 check. This is done in xd_initialize_bus. Adapt doc string, if
4271 necessary.
4272 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
4273 Vdbus_registered_buses.
4274 (Vdbus_registered_objects_table): Create hash.
4275
7133b7ee
JL
42762010-08-22 Juri Linkov <juri@jurta.org>
4277
4278 * keyboard.c (Fexecute_extended_command): Move reading a command name
4279 with `completing-read' to a new Elisp function `read-extended-command'.
4280 Call it to read a command to `function' (bug#5364, bug#5214).
4281
198a7a97
CY
42822010-08-22 Chong Yidong <cyd@stupidchicken.com>
4283
4284 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
4285
b0126eac 42862010-08-22 Andreas Schwab <schwab@linux-m68k.org>
b72e0717
AS
4287
4288 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
4289 instead of SAFE_ALLOCA.
4290
b0126eac 42912010-08-22 Chong Yidong <cyd@stupidchicken.com>
3a7a9129
CY
4292
4293 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
4294 (Bug#6214).
4295
b0126eac 42962010-08-22 Jan Djärv <jan.h.d@swipnet.se>
983b8302
J
4297
4298 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
4299
b0126eac
CY
43002010-08-22 Jan Djärv <jan.h.d@swipnet.se>
4301
4302 * doc.c (Fsnarf_documentation): Initialize skip_file before
4303 build-files test.
4304
692f3ddc 43052010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
b0126eac 4306
692f3ddc
JB
4307 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
4308 New definitions.
b0126eac
CY
4309 (HAVE_TERMIO): Remove.
4310
5f2f0bc1
EZ
43112010-08-22 Eli Zaretskii <eliz@gnu.org>
4312
b613941b
EZ
4313 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
4314
a583bbef
EZ
4315 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
4316 for w32.
4317
4318 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
4319 it's done in nt/config.nt.
4320
4321 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
4322
5f2f0bc1
EZ
4323 * unexcoff.c (report_error, make_hdr, write_segment)
4324 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
4325 Convert argument lists and prototypes to ANSI C.
4326 (make_hdr, write_segment): Remove unused variables.
4327 (unexec): Remove commented-out line. Initialize `new' to shut up
4328 compiler warnings.
4329
a7ebc409
DN
43302010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
4331
4332 Simplify termio code.
4333 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
4334 HAVE_TERMIO code is obsolete.
4335 Replace HAVE_TERMIOS conditionals with !DOS_NT.
4336 * systty.h: Do not define HAVE_TCATTR.
4337 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
4338 Do not define EMACS_HAVE_TTY_PGRP. Only define
4339 EMACS_GET_TTY_PGRP for !DOS_NT.
4340 * sysdep.c: Include sysselect.h unconditionally. Do not include
bba3e508
SM
4341 sys/ioctl.h and termios.h, systty.h does it.
4342 Use HAVE_SYS_UTSNAME_H instead of USG as an include guard.
a7ebc409
DN
4343 (init_baud_rate): Remove HAVE_TERMIO code.
4344 (child_setup_tty): Remove HAVE_TERMIO code.
4345 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
4346 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
4347 (new_ltchars, new_tchars): Remove, unused.
4348 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
bba3e508
SM
4349 code. Remove special casing for __mips__, it was a no-op.
4350 Remove HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
a7ebc409
DN
4351 (init_sys_modes): Remove HPUX special case.
4352 * process.c: Include stdlib.h unconditionally. Do not include
4353 fcntl.h, systty.h does it. Remove conditional code for
4354 HAVE_SERIAL, it is always true.
4355 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
4356 always true when SIGNALS_VIA_CHARACTERS is true.
4357 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
4358 !WINDOWSNT means HAVE_TERMIOS.
4359 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
4360 conditional, which is true for all HAVE_TERMIOS systems.
4361 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
4362 instead of HAVE_TERMIOS.
4363 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
4364 EMACS_HAVE_TTY_PGRP.
4365 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
4366 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
4367 anyway.
4368
914f049b 43692010-08-21 Eli Zaretskii <eliz@gnu.org>
40629f17
EZ
4370
4371 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
4372 mirroring pixel positions.
4373
d931da8c
DN
43742010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
4375
b5c76d0c
DN
4376 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
4377 write only.
4378 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
4379 malloc_sbrk_used, nothing uses them.
4380
74815588
DN
4381 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
4382 defined, unconditionally defined in lisp.h.
4383
f5817d1c
DN
4384 * term.c: Do not include <termios.h>, systty.h does it.
4385
d931da8c
DN
4386 * s/unixware.h (HAVE_TCATTR):
4387 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
4388 systty.h defines it when HAVE_TERMIOS is defined.
4389
ff2de6d2 43902010-08-20 Eli Zaretskii <eliz@gnu.org>
491a1546 4391
b43c883c 4392 * dispnew.c (buffer_posn_from_coords): Fix last change for text
00c53994 4393 terminals: add one-character offset for R2L lines.
b43c883c 4394
491a1546
EZ
4395 * emacs.c <emacs_version>: Add a comment regarding
4396 msdos/mainmake.v2's dependency on the syntax of this declaration.
4397
2396cbba
EZ
43982010-08-20 Eli Zaretskii <eliz@gnu.org>
4399
4400 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
4401 position for R2L lines by mirroring the pixel position wrt the
4402 text are box. Improve commentary.
4403
7df6150a
AS
44042010-08-20 Andreas Schwab <schwab@linux-m68k.org>
4405
4406 * image.c (imagemagick_clear_image): Remove debugging output.
4407
a2e5caf7
SM
44082010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
4409
4410 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
4411 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
4412 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
4413 self-insert-face.
4414 (syms_of_cmds): Initialize the new vars.
4415
20d60baf
JR
44162010-08-19 Jason Rumney <jasonr@gnu.org>
4417
cc477da7
JR
4418 * w32menu.c (set_frame_menubar): Remove call to undefined function.
4419
20d60baf
JR
4420 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
4421
2c0ac867
J
44222010-08-19 Jan Djärv <jan.h.d@swipnet.se>
4423
4424 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
4425
93352106
EZ
44262010-08-18 Eli Zaretskii <eliz@gnu.org>
4427
4428 * xterm.c (x_draw_bar_cursor):
4429 * w32term.c (x_draw_bar_cursor): If the character under cursor is
4430 R2L, draw the bar cursor on its right rather than on its left.
4431
c785836d
SM
44322010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
4433
0193499f
SM
4434 * eval.c (Fdefmacro): Only obey one declaration.
4435
c785836d
SM
4436 * casefiddle.c (casify_region): Setup gl_state.
4437
9cb728a5
J
44382010-08-18 Jan Djärv <jan.h.d@swipnet.se>
4439
4440 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
4441
e1e18511
J
44422010-08-18 Jan Djärv <jan.h.d@swipnet.se>
4443
1d77b63e 4444 * gtkutil.c (update_frame_tool_bar): Literal strings are const char*.
e1e18511 4445
64cb6c78
J
44462010-08-18 David De La Harpe Golden <david@harpegolden.net>
4447
4448 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
4449 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
4450 QPRIMARY => NXPrimaryPboard.
4451 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
4452 NXPrimaryPboard => QPRIMARY.
4453 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
4454 NXSecondaryPboard = SecondarySelection.
4455 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
4456
0c9b8993
GM
44572010-08-18 Joakim Verona <joakim@verona.se>
4458
4459 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
4460 defined:
4461 (imagemagick_image_p): New function to test for ImageMagic image.
4462 (imagemagick_load): New function to load ImageMagick image.
4463 (imagemagick_load_image): New function, helper for imagemagick_load.
4464 (imagemagick-types): New function.
4465 (Qimagemagick): New Lisp_object.
4466 (imagemagick-render-type): New variable, decides which renderer to use.
ccd80618 4467
c3554f68
SM
44682010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
4469
4470 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
4471 is a string.
4472
1ff2e434
J
44732010-08-17 Jan Djärv <jan.h.d@swipnet.se>
4474
4475 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
4476 x_set_tool_bar_position handler.
4477
0cc56427
EZ
44782010-08-17 Eli Zaretskii <eliz@gnu.org>
4479
4480 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
4481 x_set_tool_bar_position handler, needed to support changes from
4482 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
4483
e45a249b
JD
44842010-08-16 Jan Djärv <jan.h.d@swipnet.se>
4485
921242c6
J
4486 * nsselect.m: include keyboard.h for QPRIMARY, remove its
4487 declaration (Bug#6863).
573d150b 4488 (syms_of_nsselect): Don't intern QPRIMARY.
921242c6 4489
e45a249b
JD
4490 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
4491
4492 * keyboard.h (QPRIMARY): Declare (Bug#6864).
4493
7c23dd44
CY
44942010-08-16 Chong Yidong <cyd@stupidchicken.com>
4495
4496 * keyboard.c (command_loop_1): Avoid setting selection twice,
4497 since it's done in deactivate-mark as well.
4498 (Vselect_active_regions): Change default to t. Replace `lazy'
4499 with non-default value `only', meaning only set PRIMARY for
4500 temporarily active regions.
4501
4502 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
4503 select-active-regions.
4504
0005830c
J
45052010-08-15 Jan Djärv <jan.h.d@swipnet.se>
4506
4507 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
4508 isn't a string.
4509
603dfc72
AS
45102010-08-15 Andreas Schwab <schwab@linux-m68k.org>
4511
4512 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
4513
c25ce9d0
J
45142010-08-15 Jan Djärv <jan.h.d@swipnet.se>
4515
c3554f68
SM
4516 * keyboard.c (parse_tool_bar_item): malloc buf.
4517 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
4518 new_lbl (Bug#6855).
c25ce9d0 4519
5872c762
EZ
45202010-08-14 Eli Zaretskii <eliz@gnu.org>
4521
b236615c
EZ
4522 * xterm.c (x_draw_stretch_glyph_string):
4523 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
4524 the cursor on the right edge of the stretch glyph.
4525
c3554f68
SM
4526 * xdisp.c (window_box_right_offset, window_box_right):
4527 Fix commentary.
b236615c 4528
5872c762
EZ
4529 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
4530 direction when point is inside a run of whitespace characters.
4531
4532 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
4533
e66f9a1b
JR
45342010-08-14 Jason Rumney <jasonr@gnu.org>
4535
4536 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
4537
79d6f59e
CY
45382010-08-14 Chong Yidong <cyd@stupidchicken.com>
4539
4540 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
4541
1c9b4129
JR
45422010-08-13 Jason Rumney <jasonr@gnu.org>
4543
4544 * w32menu.c (simple_dialog_show): Use unicode message box if available.
4545 (MessageBoxW_Proc): New function typedef.
4546 (unicode-message-box): New function pointer.
4547 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
4548
2b4e6277
J
45492010-08-13 Jan Djärv <jan.h.d@swipnet.se>
4550
4551 * frame.h (Qtool_bar_position): Declare.
4552
4553 * xfns.c (Fx_create_frame): Call x_default_parameter for
4554 Qtool_bar_position.
4555
94c97d85
EZ
45562010-08-13 Eli Zaretskii <eliz@gnu.org>
4557
8ee81892
EZ
4558 * unexcoff.c: Remove the parts used when "emacs" is not defined.
4559 (report_error, report_error_1): Ditto.
4560 (write_segment): Remove "#if 0" unused code.
4561 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
4562 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
4563 (start_of_text): Remove unused function (was used only if NO_REMAP
4564 was NOT defined).
4565
891ef8f7
EZ
4566 * msdos.c (IT_set_face): Fix format string to match argument
4567 types.
4568 (IT_write_glyphs, IT_note_mode_line_highlight)
4569 (IT_set_frame_parameters): Remove unused variables.
4570 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
4571 (IT_set_terminal_modes): Disambiguate expression in if clause.
4572 (Fmsdos_remember_default_colors): Return Qnil.
4573 (IT_set_frame_parameters): Add parens to disambiguate boolean
4574 expression for logging the cursor type to termscript.
4575 (keyboard_layout_list, keypad_translate_map)
4576 (grey_key_translate_map): Add braces in inner initializers.
4577 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
4578 (dos_rawgetc): Remove unused label.
4579 (XMenuActivate): Add braces to remove ambiguous `else'.
4580 (dos_ttraw): Always return a value.
4581 (spawnve): Declare.
4582 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
4583
4584 * dosfns.h (x_set_title): Declare.
4585
4586 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
4587 Remove unused variables.
4588
4589 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
4590 variables.
4591 (init_dosfns): Declare get_lim_data.
4592 (system_process_attributes): Declare Fget_internal_run_time.
4593
38e41e0e
EZ
4594 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
4595 list to be consistent with menu.h.
4596
94c97d85
EZ
4597 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
4598 warnings due to mixing of "char *" and "const char *".
4599
c5683ceb
SM
46002010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
4601
4602 Introduce a new comment style "c" flag.
4603 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
4604 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
4605 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
4606 (syntax_prefix_flag_p): New function.
4607 (Fstring_to_syntax): Understand new "c" flag.
4608 (Finternal_describe_syntax_value): Recognize new flag; use the
4609 SYNTAX_FLAGS_* macros.
4610 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
4611 comment style to accomodate the new styles.
4612 (back_comment, forw_comment, Fforward_comment, scan_lists)
4613 (scan_sexps_forward): Update code to obey the new comment style flag.
4614
4615 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
4616
4617 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
4618
7aee76f4
J
46192010-08-11 Jan Djärv <jan.h.d@swipnet.se>
4620
3a46642b
J
4621 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
4622 first.
94dff98f 4623 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
3a46642b
J
4624
4625 * gtkutil.h (xg_check_special_colors): Declare.
4626
4627 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
4628 (xg_create_frame_widgets): Connect theme name changes to
4629 style_changed_cb.
4630
42ca4633
J
4631 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
4632 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
4633 (x_term_init): Use char[] display_opt and name_opt instead of
93acd23d 4634 string literal. file is const char*.
42ca4633
J
4635
4636 * xsmfns.c (NOSPLASH_OPT): Change to char[].
4637 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
4638 props. Free them at the end.
4639
4640 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
4641
c5683ceb
SM
4642 * xrdb.c (get_system_app): Make path const and use char *p for
4643 non-const char.
42ca4633
J
4644
4645 * xmenu.c (Fx_popup_dialog): error_name is const char*.
93acd23d 4646 (xmenu_show): error parameter is const char **. pane_string is const
42ca4633
J
4647 char *.
4648 (button_names): Is const char *.
4649 (xdialog_show): error_name and pane_string is const.
4650
4651 * process.h (synch_process_death): Is const char*.
4652
4653 * w32menu.c (w32_menu_show):
4654 * nsmenu.m (ns_menu_show): error parameter is const char **.
4655
4656 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
4657 is const char **.
4658
4659 * menu.c (Fx_popup_menu): error_name is const.
4660
4661 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
4662 with unsigned char and XtPointer with void *.
4663
4664 * gtkutil.h: Replace widget_value with struct _widget_value.
4665 (enum button_type, struct _widget_value): Remove and use the one from
4666 keyboard.h.
4667
4668 * gtkutil.c (get_utf8_string): Always return an allocated string.
4669 Parameter is const.
4670 (create_dialog, xg_create_one_menuitem, create_menus)
4671 (xg_item_label_same_p, xg_update_menu_item): Free result from
4672 get_utf8_string.
4673 (xg_separator_p, xg_item_label_same_p): label is const.
4674
4675 * font.h (font_open_by_name): Make name const.
4676
4677 * font.c (font_open_by_name): Make name const.
4678
4679 * floatfns.c (matherr): Use a const char* variable for x->name.
4680
4681 * emacs.c (main): Pass char[] to putenv instead of literal.
4682
4683 * callproc.c (synch_process_death): Make const.
4684 (Fcall_process): Make signame const.
4685
9c5bd55a
J
4686 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
4687 (addDisplayItemWithImage): Use const char*.
4688
4689 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
4690 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
4691
4692 * nsfont.m (ns_descriptor_to_entity): Use const char*.
4693
4694 * keyboard.h (_widget_value): name, value and key are const char*.
4695
7aee76f4
J
4696 * unexmacosx.c (unexec_error): Use const char *.
4697
09d93395
DN
46982010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
4699
4700 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 4701 (font_parse_name, font_open_by_name):
09d93395 4702 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 4703 (font_parse_name, font_open_by_name): Remove const.
09d93395 4704
671d409f
AS
47052010-08-09 Andreas Schwab <schwab@linux-m68k.org>
4706
4707 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
4708 definition.
4709
4710 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
4711 * m/amdx86-64.h: Likewise.
4712 * m/arm.h: Likewise.
4713 * m/hp800.h: Likewise.
4714 * m/ia64.h: Likewise.
4715 * m/ibmrs6000.h: Likewise.
4716 * m/ibms390.h: Likewise.
4717 * m/intel386.h: Likewise.
4718 * m/iris4d.h: Likewise.
4719 * m/m68k.h: Likewise.
4720 * m/macppc.h: Likewise.
4721 * m/mips.h: Likewise.
4722 * m/sh3.h: Likewise.
4723 * m/sparc.h: Likewise.
4724 * m/template.h: Likewise.
4725 * m/vax.h: Likewise.
4726 * m/xtensa.h: Likewise.
4727 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
4728 WORDS_BIG_ENDIAN.
4729 * lisp.h: Likewise.
4730 * md5.c: Likewise.
4731 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
4732
8ea90aa3
DN
47332010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
4734
4735 Use const char* instead of char*.
4736 Reduce the number of warnings with -Wwrite-strings.
4737 * xrdb.c (get_environ_db, get_system_name):
4738 * unexelf.c (find_section):
4739 * term.c (string_cost, string_cost_one_line, per_line_cost)
4740 (get_named_tty, init_tty):
4741 * sysdep.c (sys_subshell):
4742 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
4743 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
4744 * search.c (Freplace_match):
4745 * process.c (Fmake_network_process, send_process, init_process):
4746 * lread.c (Fload, init_lread):
4747 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
4748 * keyboard.c (parse_tool_bar_item, struct event_head):
4749 * gtkutil.h (xg_get_font_name):
4750 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
4751 (make_widget_for_menu_item, make_menu_item, create_menus)
4752 (xg_make_tool_item):
4753 * font.c (parse_matrix, font_parse_name):
4754 * floatfns.c (rounding_driver, float_error_fn_name):
4755 * filelock.c (get_boot_time_1, lock_file_1):
4756 * fileio.c (barf_or_query_if_file_exists, check_writable):
4757 * editfns.c (get_system_name, get_operating_system_release)
4758 (Fencode_time, Fset_time_zone_rule):
4759 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
4760 * buffer.c (defvar_per_buffer): Use const.
4761
7815fe19 47622010-08-08 Kenichi Handa <handa@m17n.org>
7a84eee5 4763
692f3ddc 4764 * charset.c: Include <stdlib.h>.
7a84eee5
KH
4765 (struct charset_sort_data): New struct.
4766 (charset_compare): New function.
692f3ddc 4767 (Fsort_charsets): New function.
7a84eee5
KH
4768 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
4769
4770 * coding.c (decode_coding_iso_2022): Fix checking of dimension
4771 number in CTEXT extended segment.
4772
7815fe19 47732010-08-08 Juanma Barranquero <lekktu@gmail.com>
f5f6c0e0
JB
4774
4775 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
4776 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
4777
7815fe19 47782010-08-08 Juanma Barranquero <lekktu@gmail.com>
b756c005
JB
4779
4780 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
4781 (Fhash_table_size): Fix typos in docstrings.
4782 (Fmake_hash_table): Doc fix.
4783
7815fe19 47842010-08-08 Juanma Barranquero <lekktu@gmail.com>
b4f588fa
JB
4785
4786 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
4787 Doc fix (bug#5625).
4788
7815fe19 47892010-08-08 Ken Brown <kbrown@cornell.edu>
9f8c08a7
KB
4790
4791 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
4792 the MSDOS definition.
4793
1b6d8cf0
DN
47942010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
4795
675e2c69
DN
4796 Use const char* instead of char*.
4797 * xterm.c (x_create_toolkit_scroll_bar):
4798 * xfont.c (xfont_list_pattern):
4799 * xfns.c (x_default_scroll_bar_color_parameter)
4800 (xic_create_fontsetname, x_default_font_parameter)
4801 (x_screen_planes):
4802 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
4803 (store_mode_line_string, decode_mode_spec, display_string):
4804 * menu.c (digest_single_submenu):
4805 * keymap.h (initial_define_key, initial_define_lispy_key):
4806 * keymap.c (initial_define_key, initial_define_lispy_key):
4807 * image.c (image_error, image_keyword):
4808 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
4809 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
4810 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
4811 (ftfont_list, ftfont_match):
4812 * frame.c (frame_parm_table):
4813 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
4814 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
4815 (font_add_log, font_deferred_log):
4816 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
4817 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
4818 (font_add_log, font_deferred_log):
4819 * emacs.c (argmatch):
4820 * dispextern.h (struct it):
4821 * coding.c (ENCODE_DESIGNATION):
4822 * charset.c (define_charset_internal): Use const.
4823
25717ca1
DN
4824 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
4825
c5683ceb
SM
4826 * xrdb.c: Remove include guard.
4827 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
1b6d8cf0
DN
4828 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
4829 realloc->xrealloc instead of using #defines.
4830
efb41e21
EZ
48312010-08-08 Eli Zaretskii <eliz@gnu.org>
4832
cd21226d 4833 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
c5683ceb
SM
4834 * editfns.c (Fline_beginning_position, Fline_end_position):
4835 State in the doc strings that start and end of line are in the
4836 logical order.
cd21226d 4837
efb41e21
EZ
4838 * xdisp.c (display_line): Move the handling of overlay arrow after
4839 the call to find_row_edges. (Bug#6699)
4840
746812d9
CY
48412010-08-07 Chong Yidong <cyd@stupidchicken.com>
4842
4843 * keyboard.c (command_loop_1):
4844 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
4845
9852377f
CY
48462010-08-07 Chong Yidong <cyd@stupidchicken.com>
4847
4848 * insdel.c (prepare_to_modify_buffer): Save active region text to
4849 Vsaved_region_selection.
4850
4851 * xselect.c (QPRIMARY): Move to keyboard.c.
4852
4853 * keyboard.c (Vselect_active_regions): Move from simple.el.
8d9e03e4
JB
4854 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
4855 (command_loop_1): Set window selection prior to deactivating the mark.
9852377f 4856
0e9c8657
JB
48572010-08-07 Juanma Barranquero <lekktu@gmail.com>
4858
4859 * alloc.c (lisp_malloc):
4860 * buffer.c (set_buffer_internal, set_buffer_internal_1):
4861 * charset.h (emacs_mule_charset):
4862 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
4863 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
4864 (bitch_at_user):
4865 * lisp.h (Fcheck_coding_system, Fget_text_property)
4866 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
4867 Remove duplicate declarations.
4868
648801d1
DN
48692010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
4870
32bc6709
DN
4871 * process.c: Simplify include logic.
4872
3ef1d108
DN
4873 * keyboard.h (quit_char): Add declaration.
4874 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
8d9e03e4
JB
4875 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
4876 Add declarations.
3ef1d108
DN
4877 * sysdep.c:
4878 * w32.c: Remove the above declarations.
4879
97ec208f
DN
4880 Remove extern declarations in .c files, .h files have them.
4881 * xterm.c:
4882 * xdisp.c:
97ec208f
DN
4883 * msdos.c:
4884 * image.c:
4885 * gtkutil.c:
4886 * fileio.c:
4887 * eval.c: Remove declarations.
4888
94eed851
DN
4889 * frame.c (frame_params): Make const.
4890
36e053eb
DN
4891 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
4892
0e843971
DN
4893 * emacs.c (emacs_copyright, emacs_version): Make static.
4894 (Vinitial_window_system, Vauto_save_list_file_name)
4895 (Vinhibit_redisplay): Remove declarations.
4896 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
4897 for AIX.
4898
648801d1
DN
4899 Use const for some arrays and functions.
4900 * xterm.h (xg_set_icon_from_xpm_data):
4901 * xfns.c (xg_set_icon_from_xpm_data):
4902 * term.c (fkeys):
4903 * keyboard.c (lispy_accent_keys, lispy_function_keys)
4904 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
4905 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
4906 (frame.c frame_parms):
4907 * emacs-icon.h (gnu_xpm_bits):
4908 * callint.c (callint_argfuns): Use const.
4909
8646d999
J
49102010-08-06 Jan Djärv <jan.h.d@swipnet.se>
4911
4912 * sysdep.c: Move include term.h last of includes (Bug#6812).
4913
cb4545ad
EZ
49142010-08-06 Eli Zaretskii <eliz@gnu.org>
4915
4916 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
4917
4918 * msdos.c (IT_display_cursor): Log cursor position on termscript.
4919
4920 * .gdbinit (pgx): Display the avoid_cursor_p flag.
4921
da7e2be6
JB
49222010-08-06 Juanma Barranquero <lekktu@gmail.com>
4923
4924 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
4925
3d608a86
J
49262010-08-06 Jan Djärv <jan.h.d@swipnet.se>
4927
7908fb60
J
4928 * xterm.h (x_get_focus_frame): Declare.
4929
4930 * keyboard.h (poll_for_input_1): Unconditionally declare.
4931
4094bf36
J
4932 * nsterm.h (x_set_menu_bar_lines): Declare.
4933
4934 * window.c: Don't include menu.h, it depends on lots of other .h-files.
4935
3d608a86
J
4936 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
4937
4938 * window.c: Include menu.h.
4939
4940 * unexmacosx.c (print_region_list, print_regions)
4941 (build_region_list, find_emacs_zone_regions)
4942 (unexec_regions_merge, read_load_commands, dump_it)
4943 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
4944
4945 * term.c: Check HAVE_SYS_IOCTL_H.
4946
686b968e 4947 * sysdep.c: Check HAVE_TERM_H.
3d608a86 4948
686b968e 4949 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
3d608a86
J
4950
4951 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
4952 (ns_ring_bell, ns_defined_color, hide_hourglass)
4953 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
4954 Convert to ANSI C prototypes.
4955 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
4956 before code.
4957
4958 * nsterm.h : Include sysselect.h.
4959 (x_sync, x_get_focus_frame, x_set_mouse_position)
4960 (x_set_mouse_pixel_position, x_make_frame_visible)
4961 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
4962 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
4963 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
4964 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
686b968e 4965 Declare.
3d608a86
J
4966
4967 * nsmenu.m (popup_activated, name_is_separator)
4968 (syms_of_nsmenu): Convert to ANSI C prototypes.
4969 (runMenuAt): Prototypes and move declarations before code.
4970
4971 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
4972
4973 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
4974 prototypes.
4975
4976 * nsfns.m (have_menus_p, ns_display_info_for_name)
4977 (x_set_cursor_type, ns_appkit_version_str)
4978 (ns_appkit_version_int, ns_do_applescript)
4979 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
4980 (syms_of_nsfns): Convert to ANSI C prototypes.
4981
4982 * menu.h (x_set_menu_bar_line): Declare.
4983 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
4984
4985 * lisp.h (fmod_float): Declare.
4986
4987 * image.c (xpm_scan, xpm_make_color_table_v)
4988 (xpm_put_color_table_v, xpm_get_color_table_v)
4989 (xpm_make_color_table_h, xpm_put_color_table_h)
4990 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
4991 (xpm_load): Convert to ANSI C prototypes.
4992
4993 * emacs.c: Include nsterm.h if HAVE_NS.
4994
4995 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
4996
fce70521
DN
49972010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
4998
4999 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
5000 subprocesses, only MSDOS does not define HAVE_SOCKETS.
5001 (socket_options): Use const char* for name.
5002
a11889ab
JB
50032010-08-06 Juanma Barranquero <lekktu@gmail.com>
5004
5005 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
5006
5007 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
5008 Don't declare xmalloc_widget_value and digest_single_submenu.
5009
5010 * w32font.c (Qlatin): Remove declaration.
5011
5012 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
5013
c95b508f 5014 * dired.c (compile_pattern): Restore declaration.
a11889ab 5015
6254cdda
DN
50162010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
5017
04bab72c
DN
5018 Remove extern declarations in .c files, .h files have them.
5019 * data.c:
5020 * dired.c:
5021 * editfns.c:
5022 * filelock.c:
5023 * fns.c:
5024 * font.c:
5025 * fontset.c:
5026 * frame.c:
5027 * fringe.c:
5028 * ftfont.c:
5029 * gtkutil.c:
5030 * indent.c:
5031 * keyboard.c:
5032 * keymap.c:
5033 * lread.c:
5034 * menu.c:
5035 * print.c:
5036 * search.c:
5037 * sound.c:
5038 * window.c:
5039 * xdisp.c:
5040 * xfaces.c:
5041 * xfns.c:
5042 * xfont.c:
5043 * xftfont.c:
5044 * xmenu.c:
5045 * xterm.c: Remove declarations.
5046
dff94ed5
DN
5047 Cleanup syssignal.h.
5048 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
5049 (main_thread): Move down to remove #ifdef.
5050 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
5051 Remove conditional definition following unconditional ones.
5052
99f3388e
DN
5053 * lisp.h: Remove HAVE_SHM code, unused.
5054 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
5055 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
5056 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
5057 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
5058 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
5059 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
5060 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
5061 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
5062 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
5063 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
5064 (Qwindow_scroll_functions, Vafter_load_alist)
5065 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
5066 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
5067 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
5068 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
5069 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
5070 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
5071 (initial_argv, last_nonmenu_event, load_in_progress)
5072 (noninteractive_need_newline, scroll_margin): Add declarations.
5073
bba3e508
SM
5074 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
5075 Remove declarations, menu.h has them.
99f3388e
DN
5076 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
5077 (Vinput_method_function, Qinput_method_function)
5078 (Qevent_symbol_element_mask, last_event_timestamp):
5079 * dispextern.h (Voverflow_newline_into_fringe):
5080 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
5081 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
5082 (syms_of_w32font, syms_of_nsfont):
5083 * fontset.h (find_font_encoding, Qlatin):
5084 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
5085 (Vtool_bar_mode, set_frame_menubar):
5086 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
5087 * xterm.h (Qx_gtk_map_stock):
5088 * keymap.h (meta_prefix_char): Add declarations.
5089
9f5dd6f2
DN
5090 * term.c: Remove dead code.
5091
6254cdda
DN
5092 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
5093 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
5094 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
5095 which is what was there before BSD_PGRPS was removed.
5096
29cf3e20
EZ
50972010-08-05 Eli Zaretskii <eliz@gnu.org>
5098
5099 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
5100
5101 * unexcoff.c: Renamed from unexec.c.
5102
aaa0a19a
SM
51032010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
5104
5105 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
5106
8d1d9587
JB
51072010-08-03 Johan Bockgård <bojohan@gnu.org>
5108
5109 * data.c (Flocal_variable_p): Handle variable aliases correctly.
e0d62a9b 5110 (Bug#6744)
8d1d9587 5111
9a747ba6
JD
51122010-08-02 Jan Djärv <jan.h.d@swipnet.se>
5113
4d464ae4
JD
5114 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
5115 to TRUE if depth of screen is < 16.
5116
ac01763e
JD
5117 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
5118 USE_GTK_TOOLTIP.
e0d62a9b
JB
5119 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
5120 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4d464ae4 5121 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
ac01763e
JD
5122 USE_GTK_TOOLTIP.
5123 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
5124
5125 * xterm.h (USE_GTK_TOOLTIP): New define.
5126 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
5127
9a747ba6
JD
5128 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
5129 to Control-D (Bug#6771).
5130
7b0815ba
JB
51312010-08-02 Juanma Barranquero <lekktu@gmail.com>
5132
5133 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
5134 Wording by Drew Adams <drew.adams@oracle.com>.
5135
aa1859f5
J
51362010-08-01 Jan Djärv <jan.h.d@swipnet.se>
5137
5138 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
5139 ttip_lbl.
5140
5141 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
5142 calling gtk_widget_queue_draw.
5143 (x_free_frame_resources): Call xg_free_frame_widgets.
5144
5145 * xfns.c (x_gtk_use_system_tooltips): New variable.
5146 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
5147 new gtkutil tooltip functions to show the tooltip.
5148 (Fx_hide_tip): Call xg_hide_tooltip.
5149 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
5150
5151 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
5152 (xg_show_tooltip, xg_hide_tooltip): Declare.
5153
5154 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
e0d62a9b
JB
5155 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
5156 New functions.
aa1859f5
J
5157 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
5158 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
5159 Remove code that is commented out.
5160
76417ef4
SM
51612010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
5162
5163 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
5164
16041401
CY
51652010-07-31 Chong Yidong <cyd@stupidchicken.com>
5166
5167 * xselect.c (x_own_selection): Use list4.
5168
2c09a58f
DN
51692010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
5170
5171 * buffer.c (Qwindow): Do not define, already defined in data.c.
5172 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
5173
59df9fdd 51742010-07-29 Chad Brown <yandros@mit.edu>
1c97e857 5175
59df9fdd
JB
5176 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
5177 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
5178 * config.in: Undef HAVE_DIRENT_H.
1c97e857 5179 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
59df9fdd 5180 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1c97e857 5181
1b231651
DN
51822010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
5183
5184 Rename s/usg5-4.h -> s/usg5-4-common.h.
5185 * s/usg5-4.h: Rename file to ...
5186 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
5187 * s/unixware.h:
5188 * s/sol2-6.h:
5189 * s/irix6-5.h: Update includes accordingly.
5190
bfeabdc3
JD
51912010-07-29 Jan Djärv <jan.h.d@swipnet.se>
5192
2ebf1083
J
5193 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
5194
bfeabdc3 5195 * xterm.h (struct x_output): Add toolbar_top_height,
e0d62a9b
JB
5196 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
5197 Remove toolbar_height.
5198 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
bfeabdc3
JD
5199 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
5200 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
5201 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
5202
5203 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
5204
5205 * xfns.c (x_set_tool_bar_position): New function.
5206 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
5207 (x_frame_parm_handlers): Add x_set_tool_bar_position.
e0d62a9b 5208 (syms_of_xfns): If USE_GTK, provide move-toolbar.
bfeabdc3
JD
5209
5210 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
5211 and FRAME_TOOLBAR_LEFT_WIDTH.
5212
5213 * gtkutil.h (xg_change_toolbar_position): Declare.
5214
5215 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
5216 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
5217 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
5218 (xg_create_frame_widgets): Create a hobox for placing widgets
5219 vertically. Use gtk_box_pack_start.
ef1b0ba7 5220 (xg_height_or_width_changed): Rename from xg_height_changed.
bfeabdc3
JD
5221 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
5222 (xg_update_frame_menubar, free_frame_menubar): Change to
5223 xg_height_or_width_changed.
5224 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
5225 size correctly. Remove hardcoded 4, instead use handlebox size -
5226 toolbar size.
5227 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
e0d62a9b 5228 size correctly. Use handlebox size + toolbar size as additional size.
bfeabdc3
JD
5229 (xg_pack_tool_bar): POS is a new parameter.
5230 Set orientation of tool bar based on pos.
5231 Only make handlebox_widget if NULL.
5232 Check if tool bar goes to vbox or hbox depending on pos.
5233 (xg_update_tool_bar_sizes): New function.
686b968e 5234 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
bfeabdc3
JD
5235 height, call xg_update_tool_bar_sizes instead.
5236 (free_frame_tool_bar): Remove from hbox or vbox depending on
5237 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
5238 (xg_change_toolbar_position): New function.
5239
5240 * frame.h (struct frame): Add tool_bar_position.
5241 (Qbottom): Declare.
5242
5243 * frame.c (Qtool_bar_position): New variable.
5244 (make_frame): Set tool_bar_position to Qtop.
5245 (frame_parms): Add tool-bar-position.
5246 (x_report_frame_params): Store tool_bar_position.
5247 (x_set_fringe_width): Reset wm size hint after fringe changes.
5248
26469a38
DN
52492010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
5250
5251 Make lisp_time_argument declaration work on all systems.
5252 * lisp.h (lisp_time_argument): Move declaration ...
5253 * systime.h (lisp_time_argument): ... here
5254 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
5255
8848b728
JD
52562010-07-29 Jan Djärv <jan.h.d@swipnet.se>
5257
5258 * vm-limit.c (POINTER): Add typedef for it.
5259 (start_of_data): Change return type from POINTER to char *.
5260
5261 * frame.h (Qtty_color_mode): Move declaration out of ifdef
5262 HAVE_WINDOW_SYSTEM.
5263
76fd1ee9
DN
52642010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
5265
0441987e
DN
5266 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
5267 Remove reference to __osf__, unused.
5268
56a000c7
DN
5269 * mem-limits.h: Remove duplicated includes.
5270 (NULL): Remove definition, unused.
5271 (POINTER): Remove definition.
5272 (start_of_data): Use char* in prototype, as the function
5273 definition does.
5274
e6cba650
DN
5275 Remove extern declarations from .c files, and them to .h files.
5276 * keyboard.h (Qhelp_echo, waiting_for_input)
5277 (input_available_clear_time, ignore_mouse_drag_p)
5278 (Vdouble_click_time, real_this_command, Vthis_original_command):
5279 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
5280 (Voverriding_local_map_menu_flag):
5281 * lisp.h (Qinteractive_form, use_file_dialog)
5282 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
5283 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
5284 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
5285 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
5286 (Qfunction, debug_on_next_call, Qfield)
5287 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
5288 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
5289 (Qfile_directory_p, Qinsert_file_contents)
5290 (Qcompletion_ignore_case, Qcompletion_ignore_case)
5291 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
5292 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
5293 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
5294 (Qminibuffer_prompt)
5295 (Vtemporary_file_directory,char_ins_del_vector, Qface):
5296 * xterm.h (gray_bitmap_width, gray_bitmap_height)
5297 (gray_bitmap_bits, xic_create_fontsetname):
5298 * coding.h (Vtranslation_table_for_input): Add extern declarations.
5299
5300 * xsmfns.c (Vuser_login_name):
5301 * xrdb.c (Vdouble_click_time):
5302 * xfaces.c (xic_create_fontsetname):
5303 * w32select.c (waiting_for_input):
5304 * print.c (minibuffer_auto_raise):
5305 * msdos.c (Qhelp_echo):
5306 * macros.c (real_this_command):
5307 * keymap.c (Voverriding_local_map):
5308 * xterm.c (poll_for_input_1, gray_bitmap_width)
5309 (gray_bitmap_height, gray_bitmap_bits;
5310 * xmenu.c ( Voverriding_local_map)
5311 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
5312 (use_file_dialog, Xt_app_con):
5313 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
5314 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
5315 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
5316 (Qtool_bar_lines, ignore_mouse_drag_p):
5317 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
5318 (Qrear_nonsticky, nconc2):
5319 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
5320 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
5321 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
5322 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
5323 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
5324 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
5325 (gc_in_progress):
5326 * doc.c (Voverriding_local_map, Qremap):
5327 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
5328 (Vcompletion_regexp_list):
5329 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
5330 (Qcompletion_ignore_case):
5331 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
5332 (Vhistory_length, Vthis_original_command, real_this_command)
5333 (Qface, Qminibuffer_prompt, history_delete_duplicates):
5334 * image.c (Qrisky_local_variable):
5335 * fontset.c (QCname):
5336 * fns.c (minibuffer_auto_raise, QCname):
5337 * dispnew.c (char_ins_del_cost):
5338 * composite.c (font_fill_lglyph_metrics):
5339 * cmds.c (Qface, Vtranslation_table_for_input):
5340 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
5341 * ccl.c (charset_unicode):
5342 * callproc.c (Vtemporary_file_directory):
5343 * buffer.c (emacs_strerror): Remove extern declarations.
5344
5345 * data.c (Qwindow): Make non-static, used from other files too.
5346 * frame.c (validate_x_resource_name): Remove shadow definition for i.
5347
76fd1ee9
DN
5348 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
5349 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
5350 * s/usg5-4.h (COFF):
5351 * s/template.h:
5352 * s/msdos.h (COFF, NO_REMAP):
5353 * s/ms-w32.h (NO_REMAP):
5354 * s/hpux10-20.h (NO_REMAP):
5355 * m/sparc.h (SEGMENT_MASK):
5356 * m/m68k.h (NO_REMAP):
5357 * m/intel386.h (SEGMENT_MASK):
5358 * m/arm.h (NO_REMAP):
5359 * m/alpha.h (COFF):
5360 * m/template.h: Remove references to unused defines.
5361
8a52f00a
JD
53622010-07-28 Jan Djärv <jan.h.d@swipnet.se>
5363
5364 * xsettings.c (Ftool_bar_get_system_style): Also check for
5365 Qtext_image_horiz.
5366
5367 * xdisp.c (Qtext_image_horiz): Define.
5368 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 5369 to documentation of tool-bar-style.
8a52f00a
JD
5370
5371 * lisp.h (Qtext_image_horiz): Declare.
5372
5373 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
5374 style text_image_horiz.
5375
89dc303e
DN
53762010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
5377
60799703
DN
5378 * emacs.c (Fkill_emacs): Remove return statement.
5379
37254dc1
DN
5380 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
5381 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
bba3e508
SM
5382 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys):
5383 Remove local extern declarations.
37254dc1 5384
71c7345a
DN
5385 * xmenu.c: Do not included lwlib.h, not needed.
5386
6ba577cb
DN
5387 * m/iris4d.h (XUINT, XSET): Remove, not needed.
5388
fdb183d6
DN
5389 * process.c: Move definitions earlier to minimize #ifdefs.
5390
5391 * xterm.h (x_get_customization_string, x_load_resources)
5392 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
5393 (x_check_errors, x_property_data_to_lisp, defined_color)
5394 (xic_set_xfontset, x_defined_color): Use const.
5395
5396 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
5397 (x_text_icon, x_check_errors, x_connection_closed): Use const.
5398
5399 * xselect.c (selection_data_to_lisp_data)
5400 (x_property_data_to_lisp):
5401 * xrdb.c (x_get_string_resource, file_p)
5402 (x_get_customization_string, magic_file_p, search_magic_path)
5403 (get_system_app, get_user_app, x_load_resources, x_get_resource)
5404 (x_get_string_resource): Use const.
5405
5406 * xfns.c: Include xlwmenu.h when USE_LUCID.
5407 (x_defined_color, xic_set_xfontset): Use const.
5408 (Fx_hide_tip): Remove local extern declaration.
5409
5410 * xfaces.c (Qmouse_face): Remove declaration.
5411 (face_color_gray_p, tty_defined_color, defined_color)
686b968e 5412 (face_color_gray_p, face_color_supported_p): Add const.
fdb183d6
DN
5413
5414 * xdisp.c (do_mouse_tracking): Remove declaration.
5415 (add_to_log): Use const.
5416
5417 * minibuf.c (Qmouse_face): Remove declaration.
5418
5419 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
5420
5421 * keyboard.h (do_mouse_tracking): Add declaration.
5422
5423 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
5424 (QCdata, QCtype, Qcenter): Remove declarations.
5425
5426 * frame.c (x_get_resource_string, x_get_string_resource)
5427 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
5428 (x_default_parameter): Use const.
5429
5430 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
5431 (QCheight, QCsize, QCname): Remove declarations.
5432
5433 * emacs.c (main): Remove local extern declaration.
5434
5435 * editfns.c (region_limit, syms_of_editfns): Remove local extern
5436 declarations.
5437
5438 * dispnew.c: Remove duplicate #include <unistd.h>.
5439 (update_window, update_frame_1, init_display): Remove local extern
5440 declarations.
5441
5442 * dispextern.h (add_to_log): Remove declaration.
5443 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
5444 (x_frame_get_and_record_arg, x_default_parameter): Add const.
5445
5446 * dired.c (scmp): Add const.
5447 (directory_files_internal): Remove local extern declaration.
5448
5449 * data.c (Finteractive_form): Use const.
5450
5451 * composite.c (syms_of_composite): Remove local extern declarations.
5452
5453 * charset.c (add_to_log): Remove declaration.
5454
5455 * character.c (strwidth, parse_str_to_multibyte): Add const.
5456
5457 * character.h (strwidth, parse_str_to_multibyte): Likewise.
5458
5459 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
5460
89dc303e 5461 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
5462 (Lisp_Subr): Make doc and intspec constant.
5463 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
5464 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
5465 (QCheight, QCsize, QCname, QCwidth, QCforeground)
5466 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
5467 (display_arg): Add declarations.
89dc303e 5468
0ed082fe 54692010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
5470
5471 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
5472
0ed082fe
JB
5473 * window.c (Fwindow_height): Doc fix (bug#6518).
5474
54752010-07-27 Juanma Barranquero <lekktu@gmail.com>
5476
5477 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
5478
ccaf0336
DN
54792010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
5480
977105dc
DN
5481 * keyboard.c (Ftop_level, Fexit_recursive_edit)
5482 (Fabort_recursive_edit): Remove return statements in NO_RETURN
5483 functions.
5484
f5ada890
DN
5485 * frame.h (Qtty_color_mode): Add declaration.
5486
ccaf0336
DN
5487 * lisp.h (Ftop_level, Fexit_recursive_edit)
5488 (Fabort_recursive_edit): Mark as NO_RETURN.
5489
dfe3c90f
KH
54902010-07-26 Kenichi Handa <handa@m17n.org>
5491
5492 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 5493 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 5494
7d383292
JB
54952010-07-26 Juanma Barranquero <lekktu@gmail.com>
5496
5497 * lread.c (unreadpure, mapatoms_1): Make static.
5498
da31e629
JB
54992010-07-25 Juanma Barranquero <lekktu@gmail.com>
5500
5501 * terminfo.c (tparam): Fix prototype of tparm.
5502
7bfa6d77
AS
55032010-07-25 Andreas Schwab <schwab@linux-m68k.org>
5504
dcc19aac
AS
5505 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
5506 find start of text segment.
5507 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
5508 is defined.
5509
7bfa6d77
AS
5510 * callproc.c (set_initial_environment): Avoid unbalanced braces.
5511
63f9a672
KB
55122010-07-25 Ken Brown <kbrown@cornell.edu>
5513
5514 * vm-limit.c (check_memory_limits): Fix previous change;
5515 accidentally reverted an earlier change.
5516
24933075
KB
55172010-07-25 Ken Brown <kbrown@cornell.edu>
5518
5519 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
5520 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
5521
361358ea
JB
55222010-07-25 Juanma Barranquero <lekktu@gmail.com>
5523
5524 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
5525 * dired.c (opendir, readdir): Fix prototypes.
5526 * editfns.c (w32_get_internal_run_time): Fix prototypes.
5527 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
5528 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
5529 (telldir): Remove declaration.
5530 * ralloc.c (real_morecore, __morecore): Fix prototypes.
5531 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
5532 * syssignal.h (strsignal): Fix prototype.
5533 * term.c (tparam): Fix prototype.
5534 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
5535 (term_get_fkeys): Set inside "#ifndef DOS_NT".
5536 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
5537 and __morecore.
5538 * w32gui.h (XParseGeometry): Fix prototype.
5539 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
5540 * w32term.c (my_set_focus): Declare inside #if 0.
5541 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
5542 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
5543 (drain_message_queue, get_next_msg, post_msg, parse_button)
5544 (ClipboardSequence_Proc): Fix prototypes.
5545 (wait_for_sync): Remove declaration.
5546
630b9592
JB
55472010-07-24 Juanma Barranquero <lekktu@gmail.com>
5548
5549 * w32fns.c (w32_to_x_color): Remove, unused.
5550
6a0d6611
AS
55512010-07-24 Andreas Schwab <schwab@linux-m68k.org>
5552
5553 * lisp.h: Remove leftover P_.
5554
4e8608ff
DN
55552010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
5556
5557 * ecrt0.c, unexalpha.c: Remove files, unused.
5558
c8197983
AS
55592010-07-24 Andreas Schwab <schwab@linux-m68k.org>
5560
5561 * cmds.c (internal_self_insert): Make static.
5562 * lisp.h (internal_self_insert): Remove declaration.
5563
97b372d7
JB
55642010-07-23 Juanma Barranquero <lekktu@gmail.com>
5565
33ac0414
JB
5566 * alloc.c (free_float):
5567 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
5568 * frame.c (delete_frame_handler):
5569 * ralloc.c (reorder_bloc):
5570 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
5571 Remove unused static functions.
5572
94da8397
JB
5573 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
5574 it is called only from NS code.
5575
2e6c8532
JB
5576 * w32term.c (my_set_focus): #ifdef away; it is called only from
5577 "#ifdef 0" code.
5578
97b372d7
JB
5579 * w32fns.c (x_edge_detection):
5580 * xfaces.c (may_use_scalable_font_p):
5581 Remove obsolete static declarations.
5582
7c3320d8
JB
55832010-07-20 Juanma Barranquero <lekktu@gmail.com>
5584
5585 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
5586 (emacs_blocked_realloc, uninterrupt_malloc):
5587 * fringe.c (w32_reset_fringes):
5588 * image.c (convert_mono_to_color_image, lookup_rgb_color)
5589 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
5590 * sound.c (be2hs, do_play_sound):
5591 * vm-limit.c (get_lim_data, ret_lim_data):
5592 * w32term.c (x_free_frame_resources):
5593 * xfaces.c (x_create_gc, x_free_gc):
5594 Convert definitions to standard C.
5595
d5273788
SM
55962010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
5597
5598 * eval.c (Feval, Ffuncall): Use the new names.
5599
5600 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
5601 (DEFUN): Add braces around the union initialisation and use ## to
5602 specify the right union alternative and avoid a cast.
5603
8d16a259
JB
56042010-07-18 Juanma Barranquero <lekktu@gmail.com>
5605
5606 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
5607
3b8eff32
CY
56082010-07-17 Chong Yidong <cyd@stupidchicken.com>
5609
5610 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
5611
499322ce
J
56122010-07-17 Jan Djärv <jan.h.d@swipnet.se>
5613
5614 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
5615 is related to the menu bar (Bug#6499).
a628ad9d 5616 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 5617
f6003da5 56182010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
5619
5620 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
5621
5622 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
5623
5624 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
5625 i.e. don't put back ButtonRelease (Bug#6608).
5626
5627 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
5628 instead of Window. Call xg_event_is_for_menubar when
5629 USE_GTK (Bug#6499).
5630
5631 * gtkutil.h (xg_event_is_for_menubar): Declare.
5632
5633 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
5634
f6003da5 56352010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
5636
5637 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
5638 when it's the same as the old foreground. (Bug#6609)
5639
23243f29
J
56402010-07-16 Jan Djärv <jan.h.d@swipnet.se>
5641
5642 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
5643 widget is non-null (Bug#6645).
5644
2b23d2a6
AS
56452010-07-15 Andreas Schwab <schwab@linux-m68k.org>
5646
01b564ff
AS
5647 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
5648 Convert old-style definition.
5649
2b23d2a6
AS
5650 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
5651 timestamp argument.
5652
c4affd2c
EZ
56532010-07-15 Eli Zaretskii <eliz@gnu.org>
5654
5655 * fringe.c (update_window_fringes): Restore mistakenly reverted
5656 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
5657
cf28cebc
J
56582010-07-14 Jan Djärv <jan.h.d@swipnet.se>
5659
5660 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
5661 (SET_SAVED_KEY_EVENT): Remove (not used).
5662 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
5663 remove size parameter.
5664 (handle_one_xevent): Check popup_activated () for menu for Xt also.
5665 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
5666 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
5667 ButtonRelease.
6b2c4bd9
J
5668 (x_set_window_size_1): scroll_bar_actual_width is always
5669 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
5670
5671 * xdisp.c (pending_menu_activation): Remove extern declaration.
5672 (prepare_menu_bars): Remove setting of pending_menu_activation.
5673
5674 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
5675 (x_activate_menubar): Set popup_activated_flag for Xt also.
5676 Remove setting of pending_menu_activation.
cf28cebc
J
5677 (set_frame_menubar): Remove check of pending_menu_activation.
5678 Declare menubar_size before code. Correct spelling in comment.
5679
f6c1c771
KH
56802010-07-14 Kenichi Handa <handa@m17n.org>
5681
5682 * font.c (font_open_entity): Cancel previous change.
5683 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
5684
20477505
EZ
56852010-07-13 Eli Zaretskii <eliz@gnu.org>
5686
77defa9a
EZ
5687 Remove subprocesses #ifdefs.
5688 * process.c <inhibit_sentinels>: Move to the common part.
5689 (Fwaiting_for_user_input_p): Move to the common part; return nil
5690 if async subprocesses aren't supported.
5691 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
5692 MS-DOS. Remove "#ifdef subprocesses".
5693 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
5694 (gettimeofday): Remove "#ifdef subprocesses".
5695 (wait_without_blocking): Remove function.
5696 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
5697 Remove "#ifdef subprocesses".
5698 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
5699 compiled on MS-DOS.
5700 * callproc.c (Fcall_process) [!MSDOS]: Don't call
5701 wait_for_termination on MS-DOS.
5702 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
5703 initialization of inhibit_sentinels.
5704 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
5705 subprocesses" conditional.
5706 * callproc.c (Fcall_process) [!subprocesses]: Don't call
5707 wait_for_termination, since `buffer' cannot be an integer when
5708 async subprocesses are not supported
5709 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
5710 for ifdefing away the call to Fprocess_status.
5711
20477505
EZ
5712 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
5713 away the entire body of the function.
5714
b3ffc17c
DN
57152010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
5716
01faa934
DN
5717 Remove subprocesses #ifdefs from term.c.
5718 * process.c (add_keyboard_wait_descriptor)
5719 (delete_keyboard_wait_descriptor): Move to common section, do
5720 nothing when subprocesses is not defined.
a628ad9d
JB
5721 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
5722 Remove subprocesses #ifdefs.
01faa934 5723
b3ffc17c
DN
5724 Convert maybe_fatal to standard C.
5725 * lisp.h (verror): Declare.
5726 * eval.c (verror): New function containing the code from ...
5727 (error): ... this. Call verror.
5728 * term.c (vfatal): New function containing the code from ...
5729 (fatal): ... this. Call vfatal.
5730 (maybe_fatal): Convert to standard C, use variable number of
5731 arguments. Declare as non-return.
5732 (init_tty): Fix maybe_fatal call.
5733
0521f580
DN
57342010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
5735
5736 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
5737 (_scroll_bar_note_movement): Convert definitions to standard C.
5738 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
5739 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
5740
ebd15611
DN
57412010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
5742
5743 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
5744 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
5745 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
5746 (xaw_jump_callback, xaw_scroll_callback)
5747 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
bba3e508
SM
5748 (x_wm_set_size_hint, x_activate_timeout_atimer):
5749 Convert definitions to standard C.
ebd15611
DN
5750 * xmenu.c (menubar_id_to_frame, popup_get_selection)
5751 (popup_activate_callback, popup_deactivate_callback)
5752 (menu_highlight_callback, menubar_selection_callback)
5753 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
5754 (free_frame_menubar, popup_selection_callback, as)
5755 (create_and_show_popup_menu, dialog_selection_callback)
5756 (create_and_show_dialog):
5757 * xfns.c (hack_wm_protocols, x_window):
5758 * xfaces.c (x_update_menu_appearance):
5759 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
5760 (char_to_pixel_size, round_size_to_char, get_wm_shell)
5761 (set_frame_size, update_wm_hints, setup_frame_gcs)
5762 (update_various_frame_slots, update_from_various_frame_slots)
5763 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
5764 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
5765 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
5766
de06a2dd
AS
57672010-07-12 Andreas Schwab <schwab@linux-m68k.org>
5768
a628ad9d 5769 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 5770
fc549af9
EZ
57712010-07-12 Eli Zaretskii <eliz@gnu.org>
5772
5773 * process.c (setup_process_coding_systems): Move to the part
5774 shared by non-subprocesses systems, and make its body empty when
5775 subprocesses is not defined.
5776 (close_process_descs): Move to the part shared by non-subprocesses
5777 systems.
1408902e
EZ
5778 (wait_reading_process_output) [!subprocesses]: Convert arg list to
5779 ANSI C.
fc549af9 5780
d5a3eaaf
AS
57812010-07-12 Andreas Schwab <schwab@linux-m68k.org>
5782
5783 * editfns.c (transpose_markers): Convert old-style definition.
5784 * emacs.c (abort, shut_down_emacs, fixup_locale)
5785 (synchronize_system_time_locale)
5786 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
5787 * floatfns.c (extract_float, matherr, init_floatfns)
5788 (syms_of_floatfns): Likewise.
5789 * fns.c (make_hash_table): Likewise.
5790 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
5791 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
5792 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
5793 (ftfont_variation_glyphs): Likewise.
5794 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
5795 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
5796 * lread.c (read_filtered_event): Likewise.
5797 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
5798 * process.c (wait_reading_process_output): Likewise.
5799 * scroll.c (do_line_insertion_deletion_costs): Likewise.
5800 * search.c (search_buffer, boyer_moore): Likewise.
5801 * syntax.c (scan_sexps_forward): Likewise.
5802 * xdisp.c (try_scrolling): Likewise.
5803 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
5804 (face_at_string_position): Likewise.
5805 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
5806 * xselect.c (x_get_window_property, receive_incremental_selection)
5807 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
5808 Likewise.
5809 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
5810
6f704c76
DN
58112010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
5812
ded80a25
DN
5813 * callproc.c (child_setup): Remove subprocesses conditional.
5814 Remove code dealing with SET_EMACS_PRIORITY, unused.
5815
49d937f4 5816 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
5817 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
5818
5819 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
5820 (__do_global_dtors, __main): Use void in definition.
5821 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
5822 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
5823 the only users from ...
5824 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
5825 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
5826 (HAVE_VOLATILE): Remove, unused.
5827
6f704c76
DN
5828 Convert more function definitions to standard C.
5829 * xdisp.c (window_box_edges, handle_single_display_spec)
5830 (display_string): Convert definition to standard C.
5831 * scroll.c (do_direct_scrolling, scrolling_1):
5832 * dispnew.c (allocate_matrices_for_frame_redisplay)
5833 (mirrored_line_dance):
5834 * coding.c (code_convert_string):
5835 * charset.c (map_charset_chars):
5836 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
5837 (Fregister_ccl_program, Fregister_code_conversion_map):
5838 * keyboard.c (kbd_buffer_nr_stored): Likewise.
5839 (head_table): Make static and const.
5840
e6cfa7c3
AS
58412010-07-12 Andreas Schwab <schwab@linux-m68k.org>
5842
5843 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
5844 (PROFILING_LDFLAGS): Set from substitution.
5845 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
5846 CFLAGS last.
5847
892dd565
KH
58482010-07-12 Kenichi Handa <handa@m17n.org>
5849
6f2cdcd1
KH
5850 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
5851 (shortlisp): Likewise.
5852
892dd565
KH
5853 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
5854
5855 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
5856 of FONT_ENTITY_INDEX.
5857 (Ffont_get): If KEY is :otf and the font-object doesn't have the
5858 property, get the property value dynamically.
5859 (Ffont_put): Accept font-entity and font-object too.
ef1b0ba7 5860 (Ffont_get_glyhphs): Rename from Fget_font_glyphs. Arguments and
892dd565 5861 return value changed.
bba3e508 5862 (syms_of_font): Adjust for the above change.
892dd565 5863
ae96d47a
AS
58642010-07-11 Andreas Schwab <schwab@linux-m68k.org>
5865
c8fc18ee
AS
5866 * blockinput.h: Remove obsolete comment.
5867
89887d67
AS
5868 * lisp.h: Include <stddef.h>.
5869 (OFFSETOF): Don't define.
5870 (VECSIZE): Use offsetof instead of OFFSETOF.
5871 (PSEUDOVECSIZE): Likewise.
5872 * process.c (conv_sockaddr_to_lisp): Likewise.
5873 * alloc.c: Don't include <stddef.h>.
5874 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
5875
ae96d47a
AS
5876 * process.c: Remove obsolete comment.
5877
635c0aa1
CY
58782010-07-11 Chong Yidong <cyd@stupidchicken.com>
5879
5880 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
5881
a64df650
AS
58822010-07-11 Andreas Schwab <schwab@linux-m68k.org>
5883
8966b757
AS
5884 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
5885 index, rindex.
5886 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
5887 * editfns.c (Fuser_full_name, Fformat): Likewise.
5888 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
5889 * fileio.c (Ffile_symlink_p): Likewise.
5890 * filelock.c (current_lock_owner): Likewise.
5891 * font.c (font_parse_name, font_parse_family_registry): Likewise.
5892 * fontset.c (fontset_pattern_regexp): Likewise.
5893 * lread.c (read1): Likewise.
5894 * sysdep.c (init_system_name): Likewise.
5895 * xfns.c (select_visual): Likewise.
5896 * s/hpux10-20.h (index, rindex): Don't define.
5897 * s/ms-w32.h (index): Likewise.
5898 * s/usg5-4.h: Likewise.
5899
cf237e27
AS
5900 * callproc.c (relocate_fd): Use F_DUPFD if defined.
5901
a8fe7202
AS
5902 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
5903 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
5904 (egetenv): Likewise.
5905 * doprnt.c (doprnt): Likewise.
5906 * editfns.c (set_time_zone_rule, format2): Likewise.
5907 * emacs.c (decode_env_path): Likewise.
5908 * eval.c (signal_error, error): Likewise.
5909 * insdel.c (replace_range_2): Likewise.
5910 * keyboard.c (cmd_error_internal): Likewise.
5911 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
5912 * print.c (write_string, write_string_1, print_error_message):
5913 Likewise.
5914 * vm-limit.c (warn_function, memory_warnings): Likewise.
5915 * xdisp.c (message1, message1_nolog, message_with_string)
5916 (vmessage, message, message_nolog): Likewise.
5917 * emacs.c: Remove duplicate declaration.
5918 * keyboard.h: Likewise.
5919 * lisp.h: Update prototypes.
5920
bb8e180f
AS
5921 * eval.c: Fix indentation problem.
5922
83380e65
AS
5923 * keyboard.c: Include "process.h"
5924
a64df650
AS
5925 * eval.c: Remove obsolete noinline declaration.
5926 * fns.c: Likewise.
5927
6a8033e1
KR
59282010-07-11 Ken Raeburn <raeburn@raeburn.org>
5929
5930 * doprnt.c (doprnt): Take a va_list argument instead of count and
5931 pointer.
5932 * eval.c (error): Change to a standard-C variadic function.
ef1b0ba7 5933 * xdisp.c (vmessage): Rename from message, made static, and
6a8033e1
KR
5934 changed to take a va_list argument.
5935 (message): New variadic wrapper.
5936 (message_nolog): Now a variadic function, calling vmessage.
5937 * lisp.h: Include stdarg.h for va_list.
5938 (doprnt, error, message, message_nolog): Decls updated.
5939
462aa963
EZ
59402010-07-11 Eli Zaretskii <eliz@gnu.org>
5941
5942 * process.c (syms_of_process) <delete-exited-processes>: Define
5943 even if !subprocesses.
5944 (delete_exited_processes): Ditto.
5945
5946 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
5947 (delete_exited_processes): Don't define.
5948
48104462
CY
59492010-07-10 Chong Yidong <cyd@stupidchicken.com>
5950
5951 * frame.c (make_frame): Initialize menu_bar_lines and
5952 tool_bar_lines members.
bba3e508
SM
5953 (make_initial_frame, make_terminal_frame):
5954 Initialize menu_bar_lines using value of menu-bar-mode.
48104462
CY
5955
5956 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
5957
f388c88a
EZ
59582010-07-10 Eli Zaretskii <eliz@gnu.org>
5959
5960 * process.c: Reshuffle #include's. Condition some of the global
5961 and static variables on `subprocesses'.
5962 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
5963 Leave only one implementation.
5964 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
5965 (kill_buffer_processes, Flist_system_processes)
5966 (Fprocess_attributes, init_process, syms_of_process): Unify the
5967 implementations for with subprocesses and without them.
5968
723f5a07
J
59692010-07-09 Jan Djärv <jan.h.d@swipnet.se>
5970
5971 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
5972 correct size for Motif.
5973 (free_frame_menubar): Call x_set_window_size to update frame size.
5974
5975 * xfns.c (x_window): Set borderWidth to 0 for pane and
5976 EmacsFrame. Frame size calculation is wrong otherwise.
5977
2536a4b7
MA
59782010-07-09 Michael Albinus <michael.albinus@gmx.de>
5979
5980 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
5981 allows to suppress errors when polling in Emacs' main loop.
5982 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
5983 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
5984 (Fdbus_method_error_internal, Fdbus_send_signal)
5985 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
5986 (Fdbus_register_method): Use it. (Bug#6579)
5987
5842a27b
DN
59882010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
5989
5990 * alloc.c: Convert DEFUNs to standard C.
5991 * buffer.c:
5992 * bytecode.c:
5993 * callint.c:
5994 * callproc.c:
5995 * casefiddle.c:
5996 * casetab.c:
5997 * category.c:
5998 * character.c:
5999 * charset.c:
6000 * chartab.c:
6001 * cmds.c:
6002 * coding.c:
6003 * composite.c:
6004 * data.c:
6005 * dbusbind.c:
6006 * dired.c:
6007 * dispnew.c:
6008 * doc.c:
6009 * dosfns.c:
6010 * editfns.c:
6011 * emacs.c:
6012 * eval.c:
6013 * fileio.c:
6014 * filelock.c:
6015 * floatfns.c:
6016 * fns.c:
6017 * font.c:
6018 * fontset.c:
6019 * frame.c:
6020 * fringe.c:
6021 * image.c:
6022 * indent.c:
6023 * insdel.c:
6024 * keyboard.c:
6025 * keymap.c:
6026 * lread.c:
6027 * macros.c:
6028 * marker.c:
6029 * menu.c:
6030 * minibuf.c:
6031 * msdos.c:
6032 * nsfns.m:
6033 * nsmenu.m:
6034 * nsselect.m:
6035 * print.c:
6036 * process.c:
6037 * search.c:
6038 * sound.c:
6039 * syntax.c:
6040 * term.c:
6041 * terminal.c:
6042 * textprop.c:
6043 * undo.c:
6044 * w16select.c:
6045 * w32console.c:
6046 * w32fns.c:
6047 * w32font.c:
6048 * w32menu.c:
6049 * w32proc.c:
6050 * w32select.c:
6051 * window.c:
6052 * xdisp.c:
6053 * xfaces.c:
6054 * xfns.c:
6055 * xmenu.c:
6056 * xselect.c:
6057 * xsettings.c:
6058 * xsmfns.c: Likewise.
6059
d568829b
EZ
60602010-07-08 Eli Zaretskii <eliz@gnu.org>
6061
6062 * process.c (kbd_is_on_hold, hold_keyboard_input)
6063 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
6064
52214050
J
60652010-07-08 Jan Djärv <jan.h.d@swipnet.se>
6066
6067 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
6068 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
6069 unless USE_LUCID.
6070
313d9eb2
DN
60712010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
6072
a628ad9d
JB
6073 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
6074 declaration.
d8825aa3 6075
295d0d8f
DN
6076 Clean up include guards.
6077 * tparam.c: Remove include guards for config.h, string.h and code
6078 that assumes #ifndef emacs.
6079 * termcap.c:
6080 * unexalpha.c:
6081 * sysdep.c:
6082 * filemode.c:
6083 * filelock.c:
6084 * bidi.c: Likewise.
6085
49d9e6b0
DN
6086 Remove prefix-args.c
6087 * prefix-args.c: Remove file.
6088 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
6089 * Makefile.in (temacs${EXEEXT}): Remove references to
6090 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
6091 (mostlyclean): Remove reference to prefix-args.
6092 (prefix-args): Remove.
6093
313d9eb2
DN
6094 Simplify cstart_of_data, start_of_code and related code.
6095 * mem-limits.h: Remove !emacs and _LIBC conditional code.
6096 (start_of_data): Merge into start_of_data function.
6097 * sysdep.c (start_of_text): Remove. Move simplified versions of
6098 it in the only users: unexaix.c and unexec.c.
6099 (read_input_waiting): Remove local declaration of quit_char.
6100 (start, etext): Remove declarations.
6101 (start_of_data): Merge with the version in mem-limits.h and move
6102 to vm-limits.c.
6103 * vm-limit.c (start_of_data): Merged and simplified version of the
6104 code formerly in mem-limits.h and sysdep.c.
6105 * unexec.c (start): New declaration, moved from sysdep.c.
6106 (start_of_text): Simplified version of the code formerly in sysdep.c.
6107 * unexaix.c (start_of_text): Simplified version of the code
6108 formerly in sysdep.c.
6109 * m/alpha.h (HAVE_TEXT_START): Remove.
6110 (TEXT_START): Move ...
6111 * unexalpha.c (TEXT_START): ... here.
6112 * s/hpux10-20.h (TEXT_START): Remove.
6113 * s/darwin.h (TEXT_START):
6114 * m/mips.h (TEXT_START):
6115 * m/macppc.h (HAVE_TEXT_START):
6116 * m/m68k.h (TEXT_START):
6117 * m/iris4d.h (TEXT_START):
6118 * m/intel386.h (TEXT_START):
6119 * m/ibmrs6000.h (TEXT_START):
6120 * m/ia64.h (HAVE_TEXT_START):
6121 * s/msdos.h (TEXT_START): Likewise.
6122
72af86bd
AS
61232010-07-07 Andreas Schwab <schwab@linux-m68k.org>
6124
6125 * alloc.c (overrun_check_malloc, overrun_check_realloc)
6126 (overrun_check_free, xstrdup, allocate_string)
6127 (allocate_string_data, compact_small_strings, Fmake_string)
6128 (make_unibyte_string, make_multibyte_string)
6129 (make_string_from_bytes, make_specified_string, make_float)
6130 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
6131 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
6132 memcpy, memmove, memset, memcmp.
6133 * atimer.c (start_atimer, set_alarm): Likewise.
6134 * buffer.c (clone_per_buffer_values, report_overlay_modification)
6135 (mmap_realloc, init_buffer_once): Likewise.
6136 * callint.c (Fcall_interactively): Likewise.
6137 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
6138 (getenv_internal_1): Likewise.
6139 * casefiddle.c (casify_object): Likewise.
6140 * ccl.c (ccl_driver): Likewise.
6141 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
6142 * charset.c (load_charset_map_from_file)
6143 (load_charset_map_from_file, load_charset_map_from_vector)
6144 (Fdefine_charset_internal): Likewise.
6145 * cm.c (Wcm_clear): Likewise.
6146 * coding.c (decode_eol, decode_coding_object)
6147 (Fset_coding_system_priority, make_subsidiaries): Likewise.
6148 * data.c (Faset): Likewise.
6149 * dired.c (directory_files_internal, file_name_completion_stat):
6150 Likewise.
6151 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
6152 (clear_glyph_row, copy_row_except_pointers)
6153 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
6154 (save_current_matrix, restore_current_matrix)
6155 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
6156 (mirror_line_dance, scrolling_window): Likewise.
6157 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
6158 Likewise.
6159 * doprnt.c (doprnt): Likewise.
6160 * editfns.c (Fuser_full_name, make_buffer_string_both)
6161 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
6162 * emacs.c (sort_args): Likewise.
6163 * eval.c (Fapply, Ffuncall): Likewise.
6164 * fileio.c (Ffile_name_directory, make_temp_name)
6165 (Fexpand_file_name, search_embedded_absfilename)
6166 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
6167 (auto_save_error): Likewise.
6168 * fns.c (Fstring_equal, Fcopy_sequence, concat)
6169 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
6170 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
6171 (Fmake_hash_table): Likewise.
6172 * fringe.c (Fdefine_fringe_bitmap): Likewise.
6173 * ftfont.c (ftfont_text_extents): Likewise.
6174 * getloadavg.c (getloadavg): Likewise.
6175 * image.c (define_image_type, make_image, make_image_cache)
6176 (x_create_x_image_and_pixmap, xbm_image_p)
6177 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
6178 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
6179 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
6180 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
6181 (tiff_image_p, tiff_read_from_memory, gif_image_p)
6182 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
6183 Likewise.
6184 * indent.c (scan_for_column, compute_motion): Likewise.
6185 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
6186 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
6187 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
6188 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
6189 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
6190 (store_user_signal_events, menu_bar_items, tool_bar_items)
6191 (process_tool_bar_item, append_tool_bar_item)
6192 (read_char_minibuf_menu_prompt, read_key_sequence)
6193 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
6194 Likewise.
6195 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
6196 Likewise.
6197 * lisp.h (STRING_COPYIN): Likewise.
6198 * lread.c (Fload, read1, oblookup): Likewise.
6199 * msdos.c (Frecent_doskeys): Likewise.
6200 * nsfns.m (Fx_create_frame): Likewise.
6201 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
6202 Likewise.
6203 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
6204 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
6205 Likewise.
6206 * nsmenu.m (ns_update_menubar): Likewise.
6207 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
6208 * print.c (print_unwind, printchar, strout, print_string)
6209 (print_error_message): Likewise.
6210 * process.c (conv_lisp_to_sockaddr, set_socket_option)
6211 (Fmake_network_process, Fnetwork_interface_list)
6212 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
6213 (init_process): Likewise.
6214 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
6215 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
6216 Likewise.
6217 * scroll.c (do_scrolling, do_direct_scrolling)
6218 (scrolling_max_lines_saved): Likewise.
6219 * search.c (search_buffer, wordify, Freplace_match): Likewise.
6220 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
6221 * syntax.c (skip_chars, skip_syntaxes): Likewise.
6222 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
6223 (emacs_set_tty): Likewise.
6224 * term.c (encode_terminal_code, calculate_costs)
6225 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
6226 Likewise.
6227 * termcap.c (tgetst1, gobble_line): Likewise.
6228 * termhooks.h (EVENT_INIT): Likewise.
6229 * tparam.c (tparam1): Likewise.
6230 * unexalpha.c (unexec): Likewise.
6231 * unexec.c (write_segment): Likewise.
6232 * unexmacosx.c (unexec_write_zero): Likewise.
6233 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
6234 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
6235 * w32font.c (w32font_list_family, w32font_text_extents)
6236 (w32font_list_internal, w32font_match_internal)
6237 (w32font_open_internal, compute_metrics, Fx_select_font):
6238 Likewise.
6239 * w32menu.c (set_frame_menubar, add_menu_item)
6240 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
6241 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
6242 * w32uniscribe.c (uniscribe_list_family): Likewise.
6243 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
6244 * window.c (make_window, replace_window, set_window_buffer)
6245 (Fsplit_window): Likewise.
6246 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
6247 (add_to_log, message3, x_consider_frame_title)
6248 (append_space_for_newline, extend_face_to_end_of_line)
6249 (decode_mode_spec_coding, init_glyph_string): Likewise.
6250 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
6251 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
6252 (face_attr_equal_p, make_realized_face, make_face_cache)
6253 (free_realized_faces, lookup_named_face, smaller_face)
6254 (face_with_height, lookup_derived_face)
6255 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
6256 (Finternal_set_font_selection_order, realize_default_face)
6257 (compute_char_face, face_at_buffer_position)
6258 (face_for_overlay_string, face_at_string_position, merge_faces):
6259 Likewise.
6260 * xfns.c (xic_create_fontsetname, Fx_create_frame)
6261 (Fx_window_property, x_create_tip_frame)
6262 (Fx_backspace_delete_keys_p): Likewise.
6263 * xfont.c (xfont_list, xfont_match, xfont_list_family)
6264 (xfont_text_extents): Likewise.
6265 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
6266 * xrdb.c (magic_file_p, x_get_resource): Likewise.
6267 * xselect.c (x_queue_event, x_get_window_property)
6268 (receive_incremental_selection): Likewise.
6269 * xsmfns.c (x_session_check_input): Likewise.
6270 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
6271 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
6272 Likewise.
6273 * character.h (BCOPY_SHORT): Removed.
6274 * config.in: Regenerate.
6275 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
6276 * emacs.c (main) [PROFILING]: Don't declare
6277 dump_opcode_frequencies.
6278 * lisp.h (safe_bcopy): Remove declaration.
6279 (memset) [!HAVE_MEMSET]: Declare.
6280 (memcpy) [!HAVE_MEMCPY]: Likewise.
6281 (memmove) [!HAVE_MEMMOVE]: Likewise.
6282 (memcmp) [!HAVE_MEMCMP]: Likewise.
6283 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
6284 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
6285 Don't define.
6286 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
6287 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
6288 (BCOPY_DOWNWARD_SAFE): Don't define.
6289 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
6290 (memcpy) [!HAVE_MEMCPY]: Define.
6291 (memmove) [!HAVE_MEMMOVE]: Define.
6292 (memcmp) [!HAVE_MEMCMP]: Define.
6293
cb768704
J
62942010-07-07 Jan Djärv <jan.h.d@swipnet.se>
6295
6296 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
6297 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
6298 New functions.
cb768704
J
6299 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
6300 select on empty input mask.
6301 (init_process): Initialize kbd_is_on_hold to 0.
6302
6303 * process.h (hold_keyboard_input, unhold_keyboard_input)
6304 (kbd_on_hold_p): Declare.
6305
6306 * keyboard.c (input_available_signal): Declare.
6307 (kbd_buffer_nr_stored): New function.
6308 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
6309 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
6310 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
6311 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
6312 (tty_read_avail_input): If input is on hold, return.
6313 Don't read more that free slots in kbd_buffer (Bug#6571).
6314
3a8ce822
EZ
63152010-07-07 Eli Zaretskii <eliz@gnu.org>
6316
6317 * msdos.h:
6318 * msdos.c:
6319 * dosfns.c:
6320 * w16select.c: Convert function definitions to ANSI C.
6321
a628ad9d
JB
6322 * msdos.h (ctrl_break_func, install_ctrl_break_check):
6323 Remove unused prototypes.
3a8ce822 6324
cf84bb53
JB
63252010-07-07 Juanma Barranquero <lekktu@gmail.com>
6326
6327 * coding.c, sysdep.c: Convert some more functions to standard C.
6328
1a4990fb
JB
63292010-07-07 Juanma Barranquero <lekktu@gmail.com>
6330
6331 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
6332 (encode_coding_object): Use SPECPDL_INDEX.
6333 (syms_of_coding): Use DOS_NT.
6334
c0f2f16b
DN
63352010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
6336
48fb6855
DN
6337 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
6338
c0f2f16b
DN
6339 Make the function member of Lisp_Subr use standard C prototypes.
6340 * lisp.h (struct Lisp_Subr): Use a union for the function member.
6341 (DECL_ALIGN): Add a cast for the function.
6342 * eval.c (Feval, Ffuncall): Use the proper type for each type
6343 function call.
6344
67aecef9
CY
63452010-07-06 Chong Yidong <cyd@stupidchicken.com>
6346
6347 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
6348 fringe face id, so face-remapping-alist works (Bug#6091).
6349
b56ceb92
JB
63502010-07-06 Juanma Barranquero <lekktu@gmail.com>
6351
6352 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
6353 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
6354 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
6355
7af07b96
AS
63562010-07-06 Andreas Schwab <schwab@linux-m68k.org>
6357
6358 * xterm.c (x_get_keysym_name): Change type of parameter to int.
6359 * lisp.h: Declare x_get_keysym_name.
6360 * keyboard.c (modify_event_symbol): Don't declare
6361 x_get_keysym_name here.
6362
69e24e34
DN
63632010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
6364
6365 * ecrt0.c: Revert conversion to standard C.
6366
d3da34e0 63672010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
6368
6369 * vm-limit.c (memory_warnings):
6370 * keyboard.c (modify_event_symbol):
6371 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
6372 (round2, emacs_rint):
6373 * process.c (send_process, old_sigpipe): Convert function
6374 definitions and declarations to standard C.
6375
63762010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
6377
6378 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
6379 * xdisp.c: Convert function definitions to standard C.
6380
6381 * cm.c (cmputc): Arg C is now int, not char.
6382 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
6383
00be444c
J
63842010-07-05 James Cloos <cloos@jhcloos.com>
6385
6386 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
6387
6388 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
6389 _NET_WM_ICON_NAME atoms.
6390
6391 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
6392 and _NET_WM_ICON_NAME properties, too, matching what is
6393 done in the Gtk+ case.
6394
e4c8d29a
J
63952010-07-05 Jan Djärv <jan.h.d@swipnet.se>
6396
ff919460
J
6397 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
6398
e4c8d29a
J
6399 * xsmfns.c (SSDATA): New macro.
6400 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
6401 passed to strlen/strcpy/strcat.
bba3e508
SM
6402 (create_client_leader_window): Surround with #ifndef USE_GTK.
6403 Cast 7:th arg to XChangeProperty to (unsigned char *).
e4c8d29a
J
6404
6405 * xsettings.c (something_changedCB, parse_settings)
6406 (apply_xft_settings): Reformat prototype.
6407 (something_changedCB, init_gconf): Remove unused variable i.
6408 (read_settings): Remove unused variable long_len.
6409
6410 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
6411 (xg_get_image_for_pixmap, create_dialog)
6412 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
6413 (menuitem_highlight_callback, make_menu_item)
6414 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
6415 (xg_create_scroll_bar, xg_update_scrollbar_pos)
6416 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
6417 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
6418 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
6419 (xg_tool_bar_item_expose_callback): Reformat prototype.
6420 (xg_update_menubar): GList *group => GSList *group.
6421 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
6422 before use.
6423 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
6424 to GTK_IMAGE (wimage).
6425
dd4c5104
DN
64262010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
6427
898b4c5c
DN
6428 * atimer.c: Use "" instead of <> for local includes for
6429 consistency with the rest of the code.
6430
dd4c5104
DN
6431 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
6432 * xrdb.c (get_system_name):
6433 * window.c (shrink_windows):
6434 * syntax.c (forw_comment):
6435 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
6436 (ins_del_costs):
6437 * mem-limits.h (start_of_data):
6438 * lread.c (readevalloop):
6439 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
6440 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
6441 * frame.c (x_get_focus_frame):
6442 * floatfns.c (fmod_float):
6443 * fileio.c (choose_write_coding_system):
6444 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
6445 (malloc_initialize_hook, sort_args, synchronize_locale):
6446 * doprnt.c (doprnt):
6447 * dired.c (compile_pattern):
6448 * data.c (fmod_float):
6449 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
6450 (map_char_table_for_charset):
6451 * charset.c (define_charset_internal):
6452 * alloc.c (Fgarbage_collect): Convert declarations or definitions
6453 to standard C.
6454
9a39b306 64552010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 6456 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
6457
6458 * lread.c (read1): Fix up last change to not mess up `c'.
6459
e6cb2cbb
JB
64602010-07-04 Juanma Barranquero <lekktu@gmail.com>
6461
6462 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
6463
438105ed
JB
64642010-07-04 Juanma Barranquero <lekktu@gmail.com>
6465
6466 Fix prototypes.
6467
e5447b22 6468 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 6469 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
6470 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
6471 arg, as required by internal_condition_case_1.
dcc7404b 6472 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
6473 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
6474 (analyse_first): Fix "const const".
e5447b22 6475 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 6476 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 6477 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 6478
971de7fb
DN
64792010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
6480
6481 * alloc.c: Convert function definitions to standard C.
6482 * atimer.c:
6483 * bidi.c:
6484 * bytecode.c:
6485 * callint.c:
6486 * callproc.c:
6487 * casefiddle.c:
6488 * casetab.c:
6489 * category.c:
6490 * ccl.c:
6491 * character.c:
6492 * charset.c:
6493 * chartab.c:
6494 * cmds.c:
6495 * coding.c:
6496 * composite.c:
6497 * data.c:
6498 * dbusbind.c:
6499 * dired.c:
6500 * dispnew.c:
6501 * doc.c:
6502 * doprnt.c:
6503 * ecrt0.c:
6504 * editfns.c:
6505 * fileio.c:
6506 * filelock.c:
6507 * filemode.c:
6508 * fns.c:
6509 * font.c:
6510 * fontset.c:
6511 * frame.c:
6512 * fringe.c:
6513 * ftfont.c:
6514 * ftxfont.c:
6515 * gtkutil.c:
6516 * indent.c:
6517 * insdel.c:
6518 * intervals.c:
6519 * keymap.c:
6520 * lread.c:
6521 * macros.c:
6522 * marker.c:
6523 * md5.c:
6524 * menu.c:
6525 * minibuf.c:
6526 * prefix-args.c:
6527 * print.c:
6528 * ralloc.c:
6529 * regex.c:
6530 * region-cache.c:
6531 * scroll.c:
6532 * search.c:
6533 * sound.c:
6534 * strftime.c:
6535 * syntax.c:
6536 * sysdep.c:
6537 * termcap.c:
6538 * terminal.c:
6539 * terminfo.c:
6540 * textprop.c:
6541 * tparam.c:
6542 * undo.c:
6543 * unexelf.c:
6544 * window.c:
6545 * xfaces.c:
6546 * xfns.c:
6547 * xfont.c:
6548 * xftfont.c:
6549 * xgselect.c:
6550 * xmenu.c:
6551 * xrdb.c:
6552 * xselect.c:
6553 * xsettings.c:
6554 * xsmfns.c:
6555 * xterm.c: Likewise.
6556
ae492bec
EZ
65572010-07-03 Eli Zaretskii <eliz@gnu.org>
6558
76ea4cc9
EZ
6559 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
6560 frames other than the initial one. Fix reversal of colors when
bba3e508
SM
6561 `reverse' is specified in the frame parameters.
6562 Call update_face_from_frame_parameter instead of
76ea4cc9
EZ
6563 internal-set-lisp-face-attribute. Initialize screen colors from
6564 initial_screen_colors[] when f->default_face_done_p is zero,
6565 instead of depending on being called with default-frame-alist as
6566 the alist argument.
6567
6568 * xfaces.c (update_face_from_frame_parameter): Move out of
6569 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
6570 with HAVE_WINDOW_SYSTEM.
6571
1e6255ae
EZ
6572 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
6573 to menu-bar-mode, if not set in the frame parameters or in
6574 default-frame-alist.
6575
ae492bec
EZ
6576 * w32console.c (sys_tputs): Adjust argument list to prototype in
6577 term.c.
6578
3a35a84c
JB
65792010-07-03 Juanma Barranquero <lekktu@gmail.com>
6580
6581 * lisp.h (memory_warnings): Fix prototype.
6582
6583 * cm.h (evalcost): Fix prototype.
6584
6585 * cm.c (evalcost): Fix arg type.
6586
c532d349
DN
65872010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
6588
6589 * term.c (term_clear_mouse_face, Fidentity):
6590 * syssignal.h (signal_handler_t):
6591 * lisp.h (memory_warnings):
6592 * coding.h (preferred_coding_system):
6593 * cm.h (evalcost):
6594 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
6595
c0b36d46
EZ
65962010-07-02 Eli Zaretskii <eliz@gnu.org>
6597
6598 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
6599 from prototypes.
6600
6601 * msdos.h (load_pixmap): Don't define away.
6602
383e0970
J
66032010-07-02 Jan Djärv <jan.h.d@swipnet.se>
6604
f57e2426
J
6605 * lisp.h:
6606 * atimer.h: Remove define for P_.
6607
6608 * alloc.c: Remove __P and P_ from .c and .m files.
6609 * atimer.c:
6610 * buffer.c:
6611 * callint.c:
6612 * category.c:
6613 * charset.c:
6614 * chartab.c:
6615 * cm.c:
6616 * coding.c:
6617 * composite.c:
6618 * data.c:
6619 * dired.c:
6620 * dispnew.c:
6621 * doc.c:
6622 * editfns.c:
6623 * emacs.c:
6624 * eval.c:
6625 * fileio.c:
6626 * filelock.c:
6627 * fns.c:
6628 * font.c:
6629 * fontset.c:
6630 * frame.c:
6631 * ftfont.c:
6632 * ftxfont.c:
6633 * gmalloc.c:
6634 * gtkutil.c:
6635 * image.c:
6636 * indent.c:
6637 * intervals.c:
6638 * keyboard.c:
6639 * keymap.c:
6640 * lread.c:
6641 * marker.c:
6642 * menu.c:
6643 * minibuf.c:
6644 * print.c:
6645 * process.c:
6646 * scroll.c:
6647 * search.c:
6648 * sound.c:
6649 * strftime.c:
6650 * syntax.c:
6651 * sysdep.c:
6652 * term.c:
6653 * terminal.c:
6654 * textprop.c:
6655 * unexalpha.c:
6656 * w32console.c:
6657 * w32fns.c:
6658 * w32font.c:
6659 * w32menu.c:
6660 * w32term.c:
6661 * w32uniscribe.c:
6662 * window.c:
6663 * xdisp.c:
6664 * xfaces.c:
6665 * xfns.c:
6666 * xfont.c:
6667 * xftfont.c:
6668 * xmenu.c:
6669 * xselect.c:
6670 * xterm.c: Likewise.
6671
383e0970 6672 Remove P_ and __P macros.
f57e2426
J
6673 * atimer.h: Remove P_ and __P macros.
6674 * buffer.h:
383e0970
J
6675 * category.h:
6676 * ccl.h:
6677 * character.h:
6678 * charset.h:
6679 * cm.h:
6680 * coding.h:
6681 * composite.h:
6682 * dispextern.h:
6683 * disptab.h:
9e892c8d 6684 * dosfns.h:
383e0970
J
6685 * font.h:
6686 * fontset.h:
6687 * frame.h:
6688 * gtkutil.h:
6689 * indent.h:
6690 * intervals.h:
6691 * keyboard.h:
6692 * keymap.h:
6693 * lisp.h:
6694 * macros.h:
6695 * md5.h:
6696 * menu.h:
6697 * msdos.h:
6698 * nsterm.h:
6699 * puresize.h:
6700 * region-cache.h:
6701 * syntax.h:
6702 * syssignal.h:
6703 * systime.h:
6704 * termhooks.h:
9e892c8d 6705 * w32font.h:
383e0970
J
6706 * w32term.h:
6707 * widget.h:
6708 * window.h:
6709 * xgselect.h:
6710 * xsettings.h:
6711 * xterm.h: Likewise.
6712
98601119
DN
67132010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
6714
d9170db5
DN
6715 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
6716
98601119
DN
6717 Cleanup old code.
6718 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
6719 * syssignal.h: Remove code for Lynx, not supported anymore.
6720 * vm-limit.c: Remove unused code the depends on emacs not being
6721 defined and NO_LIM_DATA being defined.
6722 * mem-limits.h: Remove dead code.
6723
1f984e12
J
67242010-07-01 Jan Djärv <jan.h.d@swipnet.se>
6725
c49d071a
J
6726 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
6727
9d5405ec
J
6728 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
6729 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
6730
7a18115b
J
6731 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
6732 parameters, they are already absolute.
6733
a628ad9d
JB
6734 * nsterm.m (x_set_window_size, initFrameFromEmacs):
6735 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 6736
a628ad9d 6737 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 6738
a628ad9d
JB
6739 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
6740 Update FRAME_TOOLBAR_HEIGHT.
581a8100 6741
a628ad9d
JB
6742 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
6743 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 6744
c1ef4455
CY
67452010-06-30 Chong Yidong <cyd@stupidchicken.com>
6746
bba3e508
SM
6747 * frame.c (get_future_frame_param, Fmake_terminal_frame):
6748 Don't check default-frame-alist.
c1ef4455 6749
ce8f5a9a
AS
67502010-06-30 Andreas Schwab <schwab@linux-m68k.org>
6751
6752 * process.c (create_process): Avoid using invalid file descriptors.
6753
6754 * callproc.c (child_setup): Avoid closing a file descriptor twice.
6755
bf935339
J
67562010-06-30 Jan Djärv <jan.h.d@swipnet.se>
6757
6758 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
6759 Improve documentation. Return font regardless of use_system_font.
6760 (syms_of_xsettings): Improve documentation for font-use-system-font.
6761
7c33a057
CY
67622010-07-10 Chong Yidong <cyd@stupidchicken.com>
6763
2ec1b5ee
CY
6764 * xfaces.c (realize_face): Garbage the frame if a face is removed
6765 (Bug#6593).
6766
67672010-07-05 Andreas Schwab <schwab@linux-m68k.org>
6768
6769 * keyboard.c: Remove duplicate <setjmp.h>.
6770 (read_key_sequence): Remove volatile qualifiers.
6771
67722010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6773
6774 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
6775 (struct glyph_row): New members left_fringe_offset and
6776 right_fringe_offset.
6777
6778 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
6779 specially.
6780 * w32term.c (w32_draw_fringe_bitmap): Likewise.
6781 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
6782
6783 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 6784 Take account of bitmap offset.
2ec1b5ee
CY
6785 (draw_window_fringes): Take account of window vscroll.
6786 (update_window_fringes): Likewise. Extend top-aligned top indicator
6787 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
6788 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
6789 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
6790
67912010-07-04 Juanma Barranquero <lekktu@gmail.com>
6792
6793 * w32fns.c (Qtooltip): Declare.
6794 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
6795
67962010-07-03 Jan Djärv <jan.h.d@swipnet.se>
6797
6798 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
6799 grab on just Press (Bug#6499).
6800
68012010-07-02 Chong Yidong <cyd@stupidchicken.com>
6802
6803 * frame.c (Qtooltip): New var.
6804 (delete_frame): Use it. Fix faulty if statement. Don't update
6805 mode line for tooltip frames. Suggested by Martin Rudalics.
6806
6807 * xfns.c (x_create_tip_frame):
6808 * w32fns.c (x_create_tip_frame): Use it.
6809
68102010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
6811
6812 * xftfont.c (xftfont_open): Check font width one by one also when
6813 spacing is dual.
6814
6815 * ftfont.c (ftfont_open): Ditto.
6816
6259c2ec
GM
68172010-06-30 Glenn Morris <rgm@gnu.org>
6818
a46007e9
GM
6819 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
6820
6259c2ec
GM
6821 * Makefile.in (CANNOT_DUMP): Update for configure name change.
6822
6823 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
6824 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
6825 * s/darwin.h (SYSTEM_MALLOC):
6826 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
6827
5d1d3d04
J
68282010-06-29 Jan Djärv <jan.h.d@swipnet.se>
6829
6830 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
6831 (ns_get_screen): Don't assign integer to f.
6832 (Fx_display_color_cells): Declarations before statements.
6833
e547b051
J
68342010-06-28 Jan Djärv <jan.h.d@swipnet.se>
6835
5fc8e5bc
J
6836 * xfns.c (x_default_font_parameter): Remove got_from_system
6837 (Bug#6526).
6838
e547b051 6839 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
bba3e508
SM
6840 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper):
6841 New defines based on what configure finds.
e547b051
J
6842
6843 * xterm.c (XTflash): Use gtk_widget_get_window.
6844 (xg_scroll_callback): Use gtk_adjustment_get_upper and
6845 gtk_adjustment_get_page_size.
6846 (handle_one_xevent): Use gtk_widget_get_mapped.
6847 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
6848 messages.
6849
6850 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
6851
6852 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
6853 HAVE_GTK_FILE_SELECTION_NEW.
6854
bba3e508
SM
6855 * gtkutil.c (xg_display_open, xg_display_close):
6856 Remove HAVE_GTK_MULTIDISPLAY, it is always defined.
e547b051
J
6857 (xg_display_open): Return type is void.
6858 (gtk_widget_set_has_window)
6859 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
6860 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
6861 (gtk_adjustment_set_page_increment)
6862 (gtk_adjustment_get_step_increment): #define these if not found
6863 by configure.
6864 (remove_submenu): New define based on Gtk+ version.
bba3e508
SM
6865 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar):
6866 Use gtk_widget_get_window.
e547b051
J
6867 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
6868 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
6869 (create_dialog): Use gtk_dialog_get_action_area and
6870 gtk_dialog_get_content_area.
6871 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
6872 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
6873 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
bba3e508
SM
6874 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item):
6875 Use g_object_ref and g_object_unref.
6876 (xg_update_menu_item, xg_tool_bar_menu_proxy):
6877 Use gtk_widget_get_sensitive.
e547b051
J
6878 (xg_update_submenu): Use remove_submenu.
6879 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
6880 properties instead to get old x and y position.
6881 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
6882 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 6883 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
6884 (xg_get_tool_bar_widgets): New function.
6885 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
6886 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
6887 (toolbar_set_orientation): New #define based on if configure
6888 finds gtk_orientable_set_orientation.
6889 (xg_create_tool_bar): Call toolbar_set_orientation.
6890 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
6891 instead of gtk_box_pack_start_defaults.
6892
b9229673
CY
68932010-06-28 Chong Yidong <cyd@stupidchicken.com>
6894
6895 * cmds.c (Fdelete_backward_char): Move into Lisp.
6896
bbc803b0
DN
68972010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
6898
6899 * s/freebsd.h (BSD4_2): Remove redundant definition.
6900 bsd-common.h defines it already.
6901
6431f2e6
CY
69022010-06-27 Chong Yidong <cyd@stupidchicken.com>
6903
6904 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
6905 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
6906 tool-bar-mode, which are now set using these X resources at
6907 startup, to determine the defaults (Bug#2249).
6908
6909 * w32fns.c (Fx_create_frame):
6910 * nsfns.m (Fx_create_frame): Likewise.
6911
6912 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
6913
8c079ebb
JB
69142010-06-24 Juanma Barranquero <lekktu@gmail.com>
6915
6916 * gtkutil.c (xg_update_scrollbar_pos):
6917 Avoid C99 mid-block variable declaration.
6918
e9b7ab96
JD
69192010-06-22 Jan Djärv <jan.h.d@swipnet.se>
6920
bc869eca
JD
6921 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
6922
2b7e356a 6923 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
6924
6925 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
6926 if height is less than scroll bar min size.
6927 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
6928
e9b7ab96
JD
6929 * xfns.c (x_default_font_parameter): Try to open font from system
6930 before using it (bug#6478). Rename got_from_gconf to got_from_system.
6931
a628ad9d 69322010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
6933
6934 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
6935
70c4cfbb
EZ
69362010-06-20 Eli Zaretskii <eliz@gnu.org>
6937
6938 * xdisp.c (try_scrolling): When scroll-conservatively is set to
6939 most-positive-fixnum, be extra accurate when scrolling window
6940 start, to avoid missing the cursor line.
6941
ad5a12b5
EZ
69422010-06-19 Eli Zaretskii <eliz@gnu.org>
6943
6944 * xdisp.c (try_scrolling): Compute the limit for searching point
6945 in forward scroll from scroll_max, instead of an arbitrary limit
ef1b0ba7
SM
6946 of 10 screen lines.
6947 See http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
ad5a12b5
EZ
6948 and
6949 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
6950 for details.
6951
2a64315a 69522010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
6953
6954 * editfns.c (Fbyte_to_string): Pacify compiler.
6955
288cf4e9
SM
69562010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
6957
6958 * lread.c (read1): Phase out old-style backquotes a bit more.
6959
6e6e5760
EZ
69602010-06-12 Eli Zaretskii <eliz@gnu.org>
6961
cbc4fd20
EZ
6962 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
6963 bidimirror.h.
6964
6965 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
6966
317fbf33
EZ
6967 * bidi.c (bidi_initialize): Remove explicit initialization of
6968 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 6969 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 6970 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
6971
6972 * biditype.h: New file.
6973
cbc4fd20
EZ
6974 * bidimirror.h: New file.
6975
6e6e5760
EZ
6976 * window.c (syms_of_window): Doc fix (bug#6409).
6977
4176cba2
RF
69782010-06-12 Romain Francoise <romain@orebokech.com>
6979
6980 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
6981 ediff-hook.
6982
cb4bfcb5
GM
69832010-06-10 Glenn Morris <rgm@gnu.org>
6984
64c60c2f
GM
6985 * editfns.c (Fbyte_to_string): Pacify compiler.
6986
cb4bfcb5
GM
6987 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
6988
2ec1b5ee
CY
69892010-06-26 Andreas Schwab <schwab@linux-m68k.org>
6990
6991 * alloc.c (Fmake_byte_code): Don't access undefined argument
6992 (Bug#6517).
6993
69942010-06-25 Chong Yidong <cyd@stupidchicken.com>
6995
6996 * xdisp.c (next_element_from_image): Ensure that after-strings are
6997 read the next time we hit handle_stop (Bug#1336).
6998
69992010-06-23 Andreas Schwab <schwab@linux-m68k.org>
7000
7001 * lread.c (read1): Signal error if #s is not followed by paren.
7002
70032010-06-19 Chong Yidong <cyd@stupidchicken.com>
7004
7005 * image.c (free_image): Mark frame as garbaged (Bug#6426).
7006
7007 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
7008
70092010-06-15 Glenn Morris <rgm@gnu.org>
7010
7011 * editfns.c (Fbyte_to_string): Pacify compiler.
7012
e454a4a3
SM
70132010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
7014
7015 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
7016 Check `object's type before accessing its guts.
7017
c1b1acc2
DN
70182010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
7019
7020 * s/usg5-4.h: Fix previous change.
7021 Suggested by Lawrence Mitchell <wence@gmx.li>
7022
657d4c0b
AS
70232010-06-08 Andreas Schwab <schwab@linux-m68k.org>
7024
7025 * minibuf.c (Fall_completions): Add more checks.
7026
9b27fd9f
JB
70272010-06-08 Juanma Barranquero <lekktu@gmail.com>
7028
7029 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
7030
a99ebb40
DN
70312010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
7032
d7c5d87d
DN
7033 * lread.c (X_OK): Remove, unused.
7034
0263a941
DN
7035 * dispnew.c: Remove obsolete comment.
7036
a99ebb40
DN
7037 Remove INCLUDED_FCNTL.
7038 * xterm.c (INCLUDED_FCNTL):
7039 * callproc.c (INCLUDED_FCNTL):
7040 * alloc.c (INCLUDED_FCNTL):
7041 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
7042 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
7043
13b5221f
MR
70442010-06-07 Martin Rudalics <rudalics@gmx.at>
7045
7046 * window.c (Fselect_window): Move `record_buffer' up to the
7047 beginning of this function, so the buffer gets recorded
7048 even if the selected window does not change.
7049 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
7050
5220357f
JB
70512010-06-07 Juanma Barranquero <lekktu@gmail.com>
7052
7053 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
7054 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
7055
3085237c
DN
70562010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
7057
7058 Remove BSTRING related code, all platforms define it.
7059 * s/usg5-4.h (BSTRING): Remove definition.
7060 * s/template.h (BSTRING):
7061 * s/msdos.h (BSTRING):
7062 * s/ms-w32.h (BSTRING):
7063 * s/hpux10-20.h (BSTRING):
7064 * s/gnu-linux.h (BSTRING):
7065 * s/darwin.h (BSTRING):
7066 * s/cygwin.h (BSTRING):
7067 * s/bsd-common.h (BSTRING):
7068 * s/aix4-2.h (BSTRING): Likewise.
7069 * sysdep.c: Remove code depending on BSTRING not being defined.
7070
409f2919
JB
70712010-06-05 Juanma Barranquero <lekktu@gmail.com>
7072
7073 Remove obsolete macro BASE_LEADING_CODE_P.
7074 * character.h (BASE_LEADING_CODE_P): Remove.
7075 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
7076 * buffer.c (Fset_buffer_multibyte):
7077 * indent.c (scan_for_column, compute_motion):
7078 * insdel.c (count_combining_before, count_combining_after):
7079 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
7080
087fc47a
JB
70812010-06-04 Juanma Barranquero <lekktu@gmail.com>
7082
7083 Turn `directory-sep-char' into a noop.
7084
7085 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
7086 (DIRECTORY_SEP): Define unconditionally.
7087
7088 * s/ms-w32.h (DIRECTORY_SEP): Remove.
7089
7090 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
7091 call dostounix_filename directly.
7092
7093 * fileio.c (CORRECT_DIR_SEPS): Remove.
7094 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
7095 (Fsubstitute_in_file_name): Use dostounix_filename instead.
7096 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
7097 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
7098
7099 * w32proc.c (CORRECT_DIR_SEPS): Remove.
7100 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
7101
0eb7675e
AS
71022010-06-03 Andreas Schwab <schwab@linux-m68k.org>
7103
a628ad9d
JB
7104 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
7105 (Bug#6346)
0eb7675e 7106
78edd3b7
JB
71072010-06-03 Juanma Barranquero <lekktu@gmail.com>
7108
7109 * ccl.c (Fccl_program_p): Fix typo in docstring.
7110
eb697db5
DN
71112010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
7112
7113 Move UNEXEC definition to autoconf.
7114 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
7115 * s/sol2-10.h (UNEXEC):
7116 * s/irix6-5.h (UNEXEC):
7117 * s/hpux10-20.h (UNEXEC):
7118 * s/gnu-linux.h (UNEXEC):
7119 * s/darwin.h (UNEXEC):
7120 * s/cygwin.h (UNEXEC):
7121 * s/bsd-common.h (UNEXEC):
7122 * s/aix4-2.h (UNEXEC):
7123 * m/alpha.h (UNEXEC): Likewise.
7124 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
7125
aa3830c4
JB
71262010-06-03 Juanma Barranquero <lekktu@gmail.com>
7127
7128 Remove obsolete pre-unicode2 macros.
7129 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
7130 * composite.c (composition_reseat_it):
7131 * data.c (Faset):
7132 * fns.c (Ffillarray):
7133 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
7134 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
7135
d234d13e
JL
71362010-06-03 Juri Linkov <juri@jurta.org>
7137
7138 * buffer.c (Fother_buffer): Add CHECK_FRAME.
7139 (Fswitch_to_buffer): Remove unused variable `err'.
7140
0d4bcf4d
GM
71412010-06-03 Glenn Morris <rgm@gnu.org>
7142
e23dc1e2
GM
7143 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
7144
05b09564
GM
7145 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
7146 now that AH_BOTTOM does it.
7147
824e2978
GM
7148 * m/hp800.h (HAVE_ALLOCA):
7149 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
7150
0d4bcf4d
GM
7151 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
7152 Remove NOT_C_CODE tests, it is always true now.
7153
c55d2abf
DN
71542010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
7155
08a494a3
DN
7156 Fix config.h includes.
7157 * xsettings.c:
7158 * xgselect.c:
7159 * nsterm.m:
7160 * nsselect.m:
7161 * nsimage.m:
7162 * nsfont.m:
7163 * nsfns.m:
7164 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
7165 other files do.
7166
75934b1d
DN
7167 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
7168
9f32a766
DN
7169 * s/sol2-6.h: Remove obsolete comments.
7170
c55d2abf
DN
7171 Remove unnecessary alloca.h includes.
7172 * keymap.c: Do not include alloca.h, config.h does that.
7173 * sysdep.c: Likewise. Do not define fwrite, not used.
7174
06ac62b4
SM
71752010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
7176
7177 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
7178 the HAVE_TERMIO where it belongs (bug#6149).
7179
1ab8293c
SM
71802010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
7181
7182 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
7183 of bug#6305).
7184
6dcfd253
EZ
71852010-05-30 Eli Zaretskii <eliz@gnu.org>
7186
7187 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
7188 state is always cached (bug#6306).
7189
6d26bbb2
EZ
71902010-05-29 Eli Zaretskii <eliz@gnu.org>
7191
06fa4a23
EZ
7192 Fix cursor motion in bidi-reordered continued lines.
7193 * xdisp.c (try_cursor_movement): Backup to non-continuation line
7194 only after finding point's row. Fix the logic. Rewrite the loop
ef1b0ba7
SM
7195 over continuation lines in bidi-reordered buffers.
7196 Return CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
6d26bbb2
EZ
7197 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
7198
f5783df3
MA
71992010-05-28 Michael Albinus <michael.albinus@gmx.de>
7200
7201 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
7202
7d56b2dd
KH
72032010-05-28 Kenichi Handa <handa@m17n.org>
7204
7205 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
7206 Don't sheck SPEC if it is nil.
7207 (font_list_entities): Call font_delete_unmatched if
b925d231 7208 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 7209
e58d4ff7
GM
72102010-05-28 Glenn Morris <rgm@gnu.org>
7211
7212 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
7213
f1a5d776
CY
72142010-05-27 Chong Yidong <cyd@stupidchicken.com>
7215
7216 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
7217 whether to trash.
7218 (internal_delete_file, Frename_file): Callers changed.
7219 (delete_by_moving_to_trash): Doc fix.
7220 (Fdelete_directory_internal): Don't move to trash.
7221
7222 * callproc.c (delete_temp_file):
7223 * buffer.c (Fkill_buffer): Callers changed.
7224
7225 * lisp.h: Update prototype.
7226
f44a59e6
CY
72272010-05-27 Chong Yidong <cyd@stupidchicken.com>
7228
7229 * xdisp.c (redisplay_window): After redisplay, check if point is
7230 still valid before setting it (Bug#6177).
7231
81ac4f35
GM
72322010-05-27 Glenn Morris <rgm@gnu.org>
7233
7234 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
7235 Convert comments to Makefile format.
7236
7237 * Makefile.in (bootstrap-clean): No more Makefile.c.
7238
ccd89fb3
GM
72392010-05-26 Glenn Morris <rgm@gnu.org>
7240
90278cb6
GM
7241 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
7242 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
7243
ccd89fb3
GM
7244 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
7245 Remove.
7246 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
7247
b7050583
KH
72482010-05-26 Kenichi Handa <handa@m17n.org>
7249
7250 * composite.c (composition_compute_stop_pos): Fix condition for
7251 backward scanning.
7252
e5458003
GM
72532010-05-25 Glenn Morris <rgm@gnu.org>
7254
c345fe90
GM
7255 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
7256 Move before TEMACS_LDFLAGS.
7257 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
7258 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
7259
2e0689ab
GM
7260 * Makefile.in (NOT_C_CODE): No longer define.
7261 (config.h): No longer include.
7262
8009a5e8
GM
7263 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
7264 variables it may reference.
7265
e5458003
GM
7266 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
7267 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
7268
10f72a37
KH
72692010-05-25 Kenichi Handa <handa@m17n.org>
7270
7271 * dispextern.h (struct composition_it): New members rule_idx and
7272 charpos.
7273
7274 * xdisp.c (set_iterator_to_next): While scanning backward, assume
7275 that the character positions of IT point the last character of the
7276 current grapheme cluster.
7277 (next_element_from_composition): Don't change character positions
7278 of IT.
7279 (append_composite_glyph): Set glyph->charpos to
7280 it->cmp_it.charpos.
7281
7282 * composite.c (autocmp_chars): Change the first argument to RULE,
7283 and try composition with RULE only.
7284 (composition_compute_stop_pos): Record the index number of the
7285 composition rule in CMP_IT->rule_idx.
7286 (composition_reseat_it): Call autocmp_chars repeatedly until the
7287 correct rule of the composition is found.
7288 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
7289 is at the last character of the current grapheme cluster when
7290 CMP_IT->reversed_p is nonzero.
7291
171eda53 72922010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 7293
171eda53
SM
7294 * editfns.c (Fbyte_to_string): New function.
7295
66a9f7f4
SM
72962010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
7297
7298 * process.c (Fmake_network_process): Set :host to nil if it's not used.
7299 Suggested by Masatake YAMATO <yamato@redhat.com>.
7300
d8c315d1
EZ
73012010-05-23 Eli Zaretskii <eliz@gnu.org>
7302
171eda53 7303 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 7304
f5b416d2 73052010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
7306
7307 * s/netbsd.h: If terminfo is found, use it in preference to
7308 termcap. (Bug#6190) [Backport from trunk]
7309
0416466c
EZ
73102010-05-19 Eli Zaretskii <eliz@gnu.org>
7311
11117830 7312 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
7313
7314 * dispextern.h (struct glyph_row): New members minpos and maxpos.
7315 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
7316 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
7317 and maxpos members instead of start.pos and end.pos, respectively.
7318
7319 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
7320 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
7321 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
7322 (try_window_reusing_current_matrix, try_window_id):
7323 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
7324 (init_from_display_pos, init_iterator): Use EMACS_INT for
7325 character and byte positions.
66a9f7f4 7326 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
7327 arguments for minimum and maximum buffer positions seen by
7328 display_line for this row. Don't use iterator to find the
7329 position following the maximum one; instead, increment the
11117830
EZ
7330 position found by display_line directly. Fix logic; eol_pos
7331 should be tested before the rest. Handle the case of characters
7332 delivered from display vector (bug#6036). Fix tests related to
7333 it->method. Handle the truncated_on_right_p rows.
7334 (RECORD_MAX_MIN_POS): New macro.
7335 (display_line): Use it to record the minimum and maximum buffer
7336 positions for glyphs in the row being assembled. Record the
7337 position of the newline that terminates the line. If word wrap is
7338 in effect, restore minimum and maximum positions seen up to the
7339 wrap point, when iterator returns to it.
7340 (try_window_reusing_current_matrix): Give up if in bidi-reordered
7341 row and cursor not already at point. Restore original pre-bidi
7342 code for unidirectional buffers.
d36fe237
EZ
7343
7344 * dispnew.c (increment_row_positions, check_matrix_invariants):
7345 Increment and check row->start.pos and row->end.pos, in addition
7346 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
7347
11117830
EZ
7348 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
7349 Display truncated_on_left_p and truncated_on_right_p flags.
7350 Formatting fixes.
7351 (pmtxrows): Display the ordinal number of each row. Don't display
7352 rows beyond the last one.
7353
7354 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
7355 it is not copied by bidi_copy_it.
7356
6e83d800
EZ
73572010-05-22 Eli Zaretskii <eliz@gnu.org>
7358
7359 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
7360 (Bug#6237)
7361
110683ad
CY
73622010-05-22 Chong Yidong <cyd@stupidchicken.com>
7363
7364 * image.c (Fimage_flush): Rename from image-refresh.
7365
98fe5161
CY
73662010-05-21 Chong Yidong <cyd@stupidchicken.com>
7367
7368 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
7369 just one window.
7370
7371 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
7372 (clear_image_cache): If the number of cached images is unusually
7373 large, decrease the cache eviction delay (Bug#6230).
7374
e8752c66
GM
73752010-05-21 Glenn Morris <rgm@gnu.org>
7376
66dbf213
GM
7377 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
7378 Move these rules to ns.mk.
7379 * ns.mk: New file.
7380
04384b2d
GM
7381 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
7382
e8752c66
GM
7383 * Makefile.in (CANNOT_DUMP): New, set by configure.
7384 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
7385
2e2bbddb
JL
73862010-05-20 Juri Linkov <juri@jurta.org>
7387
7388 * fileio.c (Fdelete_file): Change interative spec to use
7389 `read-file-name' like in `find-file-read-args' where the default
7390 value is `default-directory' instead of `buffer-file-name'.
7391 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
7392
31c4aaf6
KR
73932010-05-20 Kevin Ryde <user42@zip.com.au>
7394
7395 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
7396 (Voverriding_terminal_local_map, Vsystem_key_alist)
7397 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
7398
9d5cf9b6
GM
73992010-05-20 Glenn Morris <rgm@gnu.org>
7400
7401 * Makefile.in (DEPDIR): New constant.
7402 (DEPFLAGS): Set with configure, not cpp.
7403 (MKDEPDIR): New, set by configure.
7404 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
7405 (clean): Use $DEPDIR.
7406 (deps_frag): Include from configure.
7407 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
7408 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
7409
bba3e508
SM
7410 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state):
7411 Fix reallocation of the cache. (Bug#6210)
ead6f8f5 7412
7f34aec3
GM
74132010-05-19 Glenn Morris <rgm@gnu.org>
7414
d494e8f2
GM
7415 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
7416
c1d0dcfd
GM
7417 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
7418 (GNULIB_VAR): Remove.
7419 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
7420
7421 * m/ibms390x.h (LINKER):
7422 * m/macppc.h (LINKER) [GNU_LINUX]:
7423 * s/aix4-2.h (ORDINARY_LINK):
7424 * s/cygwin.h (LINKER):
7425 * s/darwin.h (ORDINARY_LINK):
7426 * s/gnu.h (ORDINARY_LINK):
7427 * s/netbsd.h (LINKER):
7428 * s/usg5-4.h (ORDINARY_LINK):
7429 Move to configure.
7430
7f34aec3
GM
7431 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
7432
754790b6
CY
74332010-05-18 Chong Yidong <cyd@stupidchicken.com>
7434
7435 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
7436 prevent stack overflow if number of arguments is too large
7437 (Bug#6214).
7438
161e44d1
JB
74392010-05-18 Juanma Barranquero <lekktu@gmail.com>
7440
7441 * charset.c (load_charset_map_from_file): Don't call close after fclose.
7442
be4ff9da
GM
74432010-05-18 Glenn Morris <rgm@gnu.org>
7444
9539dc5d
GM
7445 * s/gnu-linux.h: Combine two conditionals.
7446
7447 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
7448 $(POST_ALLOC_OBJ).
7449
40dc6bf4
GM
7450 * Makefile.in (RALLOC_OBJ): New, set by configure.
7451 (rallocobj): Replace with the previous variable.
7452 (otherobj): Use $RALLOC_OBJ.
7453
7454 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
7455 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
7456
be4ff9da
GM
7457 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
7458 (gmallocobj, vmlimitobj): Replace with previous two variables.
7459 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
7460
16455a85
GM
74612010-05-17 Glenn Morris <rgm@gnu.org>
7462
7463 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
7464 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
7465
5fdb7468
GM
74662010-05-16 Glenn Morris <rgm@gnu.org>
7467
7ca1f3f9
GM
7468 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
7469
7541dad5
GM
7470 * Makefile.in (clean): Get rid of HAVE_NS conditional.
7471
da53fab9
GM
7472 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
7473 trailing "/".
7474
b02a6645
GM
7475 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
7476 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
7477
8877ca0f
GM
7478 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
7479 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
7480 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
7481 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
7482 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
7483
5fdb7468
GM
7484 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
7485 Remove ${STARTFLAGS}, nothing ever sets it.
7486
95adb4b1
DN
74872010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
7488
7489 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
7490
676b6304
GM
74912010-05-16 Glenn Morris <rgm@gnu.org>
7492
9beab9ce
GM
7493 * Makefile.in (LIBX_BASE): Always define.
7494
8a95f0e7
GM
7495 * Makefile.in (LIBX_OTHER): Move out of cpp section.
7496
676b6304
GM
7497 * Makefile.in (LIBXT): Always define.
7498
6e546d18
GM
74992010-05-15 Glenn Morris <rgm@gnu.org>
7500
4235ca47 7501 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 7502
6e546d18
GM
7503 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
7504 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
7505
8c5ff6dd
KR
75062010-05-15 Ken Raeburn <raeburn@raeburn.org>
7507
560bb7ae 7508 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
7509 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
7510
8b4eb796
KR
7511 * emacs.c (main): Initialize initial-environment and
7512 process-environment before generating from env, not after.
7513
8c5ff6dd
KR
7514 Handle --version reasonably in CANNOT_DUMP configuration.
7515 * emacs.c (emacs_version, emacs_copyright): New string variables.
7516 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
7517 (syms_of_emacs): Defvar them, and initialize them from the C
7518 string variables.
7519 (main): If initialization hasn't been done, print initial version
7520 info from the C strings, instead of starting an interactive session.
7521
dbd3f723
EZ
75222010-05-15 Eli Zaretskii <eliz@gnu.org>
7523
d20e1419
EZ
7524 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
7525 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
7526 (bidi_paragraph_init): Remove redundant assertion that we are at
7527 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
7528
7529 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
7530 (syms_of_xdisp): Defsubr it.
7531
d36fe237
EZ
7532 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
7533
dbd3f723
EZ
7534 * Makefile.in: Fix MSDOS-related comments.
7535
02be533b
GM
75362010-05-15 Glenn Morris <rgm@gnu.org>
7537
1a82cca9
GM
7538 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
7539 (really-lwlib, really-oldXMenu): Always define.
7540 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
7541
3df7b338
GM
7542 * Makefile.in: Simplify cpp conditional.
7543
2b5f541b
GM
7544 * Makefile.in (${ns_appdir}): Simplify using umask.
7545
02be533b
GM
7546 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
7547
4e2db1fe
SM
75482010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
7549
7550 * eval.c (specbind): Remove left-over duplicate test.
7551 Disallow let-binding frame-local vars. Add comment.
7552
4b292a22
EZ
75532010-05-14 Eli Zaretskii <eliz@gnu.org>
7554
2fe72643 7555 Make the cache of bidi iterator states dynamically allocated.
1edbd309 7556 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
7557 (bidi_init_it): Call it.
7558 (bidi_cache_iterator_state): Enlarge the cache if needed.
7559
4e2db1fe 7560 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
7561 bidi_get_next_char_visually. All callers changed.
7562
82ebc97b
KH
75632010-05-14 Kenichi Handa <handa@m17n.org>
7564
7565 * dispextern.h (struct composition_it): New member reversed_p.
7566
7567 * composite.c (composition_compute_stop_pos): Search backward if
7568 ENDPOS < CHARPOS.
7569 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
7570 Set CMP_IT->reversed_p.
b4b6e17e 7571 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 7572
4e2db1fe
SM
7573 * xdisp.c (set_iterator_to_next):
7574 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
7575 scanning backward. Call composition_compute_stop_pos if scan
7576 direction is changed.
7577 (next_element_from_buffer): Call composition_compute_stop_pos with
7578 negative ENDPOS if we are scanning backward.
7579 (next_element_from_composition): Pay attention to
7580 IT->cmp_it.reversed_p.
7581
0e5d7800
KH
75822010-05-14 Kenichi Handa <handa@m17n.org>
7583
560bb7ae 7584 * font.c (font_range): Return the range for the font found at first.
0e5d7800 7585
cb027b32
GM
75862010-05-14 Glenn Morris <rgm@gnu.org>
7587
177b0288
GM
7588 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
7589
fbc00890
GM
7590 * Makefile.in (mktime, X11, register): Move undefs to configure.
7591
f14d1dfd
GM
7592 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
7593 (MSDOS_X_OBJ): New variable.
7594 (MSDOS_SUPPORT_REAL): New constant.
7595 (MSDOS_SUPPORT): Set as a variable, not with cpp.
7596 (obj): Use MSDOS_X_OBJ.
7597 (lisp): Use MSDOS_SUPPORT as a variable.
7598
11842bd8
GM
7599 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
7600 (GPM_MOUSE_SUPPORT): Now it's a constant.
7601 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
7602 not cpp.
7603
489d31a4 7604 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 7605 (ns_appresdir): Remove, unused.
e20f1f07 7606
489d31a4
GM
7607 * Makefile.in (SHELL): Move outside cpp section.
7608
cb027b32
GM
7609 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
7610
5a903aa9
GM
76112010-05-13 Glenn Morris <rgm@gnu.org>
7612
3369c79f
GM
7613 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
7614 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
7615
d5e982a6
GM
7616 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
7617 HAVE_WINDOW_SYSTEM must be too.
7618
6192e163
GM
7619 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
7620 (lisp): Remove WINNT_SUPPORT.
7621
472c5d6b
GM
7622 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
7623 Let configure set these variables (to empty) in this case as well.
7624
0116466b
GM
7625 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
7626 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
7627
5a903aa9
GM
7628 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
7629 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
7630 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
7631 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
7632 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 7633 the values output by configure.
5a903aa9
GM
7634 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
7635
1a0d7c06
GM
76362010-05-12 Glenn Morris <rgm@gnu.org>
7637
b5457f14
GM
7638 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
7639 (LINKER_WAS_SPECIFIED): Remove.
7640
1a0d7c06
GM
7641 * Makefile.in (LIB_GCC): Set using configure, not cpp.
7642 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
7643 * m/arm.h (LIB_GCC) [GNU_LINUX]:
7644 * s/cygwin.h (LIB_GCC):
7645 * s/freebsd.h (LIB_GCC):
7646 * s/gnu-linux.h (LIB_GCC):
7647 * s/msdos.h (LIB_GCC):
7648 * s/netbsd.h (LIB_GCC):
7649 Move to configure.
7650
d1ddd1d0 76512010-05-11 Karel Klíč <kklic@redhat.com>
c90ca7b7
KH
7652
7653 * ftfont.c: Fix incorrect parentheses of #if condition for
7654 definining M17N_FLT_USE_NEW_FEATURE.
7655
acddf8ae
GM
76562010-05-11 Glenn Morris <rgm@gnu.org>
7657
7658 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
7659 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
7660
ae5e04fa
EZ
76612010-05-10 Eli Zaretskii <eliz@gnu.org>
7662
7663 * xdisp.c (init_iterator): Don't turn on bidi reordering in
7664 unibyte buffers. See
7665 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
7666
7490175b
GM
76672010-05-10 Glenn Morris <rgm@gnu.org>
7668
97efb629
GM
7669 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
7670 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
7671 (LIBES): Use LIBS_SYSTEM as a variable.
7672 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
7673 * s/aix4-2.h (LIBS_SYSTEM):
7674 * s/freebsd.h (LIBS_SYSTEM):
7675 * s/hpux10-20.h (LIBS_SYSTEM):
7676 * s/sol2-6.h (LIBS_SYSTEM):
7677 * s/unixware.h (LIBS_SYSTEM):
7678 Move to configure.
7679
7490175b
GM
7680 * s/aix4-2.h (MAIL_USE_LOCKF):
7681 * s/bsd-common.h (MAIL_USE_FLOCK):
7682 * s/darwin.h (MAIL_USE_FLOCK):
7683 * s/gnu-linux.h (MAIL_USE_FLOCK):
7684 * s/irix6-5.h (MAIL_USE_FLOCK):
7685 * s/template.h (MAIL_USE_FLOCK):
7686 Move to configure.
7687
0235128c 76882010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
7689
7690 * Version 23.2 released.
7691
0235128c 76922010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
7693
7694 * composite.c (autocmp_chars): Save point as marker before calling
7695 auto-composition-function (Bug#5984).
7696
7697 * lisp.h (restore_point_unwind): Add prototype.
7698
7699 * fileio.c (restore_point_unwind): Remove static attribute.
7700
0235128c 77012010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
7702
7703 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
7704 new feature of libotf and m17n-flt.
0235128c
SM
7705 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
7706 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
7707 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
7708 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
7709 that OUT is NULL. Use OTF_drive_gsub_with_log and
7710 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
7711 OTF_drive_gpos.
7712 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
7713 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
7714 Setup mflt_enable_new_feature and mflt_try_otf.
7715
4721152c
J
77162010-05-08 Jan Djärv <jan.h.d@swipnet.se>
7717
7718 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
7719
7720 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
7721 box and toolbar (Bug #6139).
7722 (xg_create_tool_bar): Remove comment (Bug #6139).
7723 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
7724 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
7725
ee0a16cf
JB
77262010-05-08 Juanma Barranquero <lekktu@gmail.com>
7727
7728 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
7729 Update dependencies.
7730
96d79611
EZ
77312010-05-08 Eli Zaretskii <eliz@gnu.org>
7732
7733 * fringe.c (update_window_fringes): Set up truncation bitmaps for
7734 R2L lines.
7735
40c17879
GM
77362010-05-08 Glenn Morris <rgm@gnu.org>
7737
7b42b29f
GM
7738 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
7739
40c17879
GM
7740 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
7741 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
7742 (termcapobj): Replace with TERMCAP_OBJ.
7743 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
7744 (LIBES): Use LIBS_TERMCAP as a variable.
7745
7746 * s/freebsd.h (osreldate.h): No longer include, since this file
7747 does not use __FreeBSD_version any more.
7748
7749 * s/aix4-2.h (TERMINFO):
7750 * s/cygwin.h (TERMINFO):
7751 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
7752 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
7753 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
7754 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
7755 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
7756 * s/irix6-5.h (TERMINFO):
7757 * s/netbsd.h (LIBS_TERMCAP):
7758 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
7759 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
7760 * s/usg5-4.h (TERMINFO):
7761 Move to configure.
7762
94b612ad
SM
77632010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
7764
7765 * eval.c (unbind_to): Don't unbind a local binding into the global
7766 binding when the local binding disappeared. Inversely, don't unbind
7767 a global binding into a newly created local binding.
7768 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
7769 can specify the frame to use, when applicable. Adjust callers.
7770
15e12598 77712010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 7772 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
7773
7774 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
7775
f724825e
EZ
77762010-05-07 Eli Zaretskii <eliz@gnu.org>
7777
5cba3209
EZ
7778 * w32fns.c: Include w32.h.
7779 (Fw32_shell_execute): Decode the error message before passing it
7780 to `error'. (Bug#6126)
7781
d16bdfc3
EZ
7782 * msdos.c (dos_set_window_size):
7783 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
7784 instead of `XSYMBOL (foo)->value'.
7785
59d93e87
EZ
77862010-05-07 Eli Zaretskii <eliz@gnu.org>
7787
9fdec8bc
EZ
7788 Fix the MS-DOS build, broken by autoconfiscation.
7789
7790 * Makefile.in: Don't use Make-style comments past the "start of
7791 cpp stuff" line.
7792 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
7793
7794 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
7795 edited directly by msdos/sed1v2.inp).
f724825e 7796
2f86b22b
GM
77972010-05-07 Glenn Morris <rgm@gnu.org>
7798
7799 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
7800 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
7801 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
7802 move out of cpp section.
7803 * s/freebsd.h (LD_SWITCH_SYSTEM):
7804 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
7805 * s/netbsd.h (LD_SWITCH_SYSTEM):
7806 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
7807
49ebbd65
DN
78082010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
7809
7810 Define LIB_STANDARD and START_FILES using autoconf.
7811 * s/usg5-4.h (LIB_STANDARD):
7812 * s/netbsd.h (START_FILES):
7813 * s/irix6-5.h (LIB_STANDARD):
7814 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
7815 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
7816 * s/freebsd.h (START_FILES):
7817 * s/darwin.h (START_FILES):
7818 * s/cygwin.h (START_FILES):
7819 * s/aix4-2.h (LIB_STANDARD):
7820 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
7821 * Makefile.in (STARTFILES): Rename to START_FILES, define using
7822 autoconf, not cpp.
7823
d43c06d6
DN
78242010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
7825
28823648
DN
7826 Remove NEED_BSDTTY and NEED_UNISTD_H.
7827 * s/hpux10-20.h (NEED_BSDTTY): Remove.
7828 * s/aix4-2.h (NEED_UNISTD_H): Remove.
7829 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
7830 <sys/ptyio.h> and <unistd.h>.
7831
aca00430
DN
7832 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
7833
d43c06d6
DN
7834 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
7835 * s/gnu.h (START_FILES): Remove empty definition.
7836
3e56b11d
JD
78372010-05-06 Jan Djärv <jan.h.d@swipnet.se>
7838
7839 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
7840
e3cf0cde
GM
78412010-05-06 Glenn Morris <rgm@gnu.org>
7842
7843 * Makefile.in (CPP, LN_S): Remove unused variables.
7844
774b9a60
SM
78452010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
7846
7847 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
7848
4ab92842
LM
78492010-05-05 Lawrence Mitchell <wence@gmx.li>
7850
7851 * m/sparc.h: Fix typo in earlier change.
7852
178f2507
SM
78532010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
7854
7855 Misc tweaks.
7856 * eval.c (Fdefvaralias): Remove unintended nested if.
7857 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
7858
80f00217 78592010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
7860
7861 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
7862
ef03a4e6
DN
78632010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
7864
58eb6cf0
DN
7865 Remove BSD_PGRPS.
7866 * s/bsd-common.h (BSD_PGRPS): Remove undef.
7867 * s/gnu-linux.h (BSD_PGRPS): Remove.
7868 * term.c (dissociate_if_controlling_tty):
7869 * sysdep.c (narrow_foreground_group, widen_foreground_group)
7870 (init_sys_modes, reset_sys_modes):
7871 * emacs.c (main):
7872 * callproc.c (Fcall_process, child_setup): Remove code depending
7873 on BSD_PGRPS.
7874
ef03a4e6
DN
7875 Remove POSIX_SIGNALS.
7876 * s/usg5-4.h (POSIX_SIGNALS):
7877 * s/netbsd.h (POSIX_SIGNALS):
7878 * s/msdos.h (POSIX_SIGNALS):
7879 * s/ms-w32.h (POSIX_SIGNALS):
7880 * s/hpux11.h (POSIX_SIGNALS):
7881 * s/gnu.h (POSIX_SIGNALS):
7882 * s/gnu-linux.h (POSIX_SIGNALS):
7883 * s/freebsd.h (POSIX_SIGNALS):
7884 * s/darwin.h (POSIX_SIGNALS):
7885 * s/cygwin.h (POSIX_SIGNALS):
7886 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
7887 * s/unixware.h:
7888 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
7889 * process.c (create_process):
7890 * syssignal.h:
7891 * sysdep.c (wait_for_termination, init_signals):
7892 * process.c (create_process):
7893 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
7894 remove all code that assumes the contrary.
7895
49628785
GM
78962010-05-04 Glenn Morris <rgm@gnu.org>
7897
27a2cdfc
GM
7898 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
7899 variable.
7900 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
7901 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
7902 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
7903 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
7904 LD_SWITCH_SYSTEM_tmp.
7905 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
7906 New variables, set by configure.
7907
eb21eab5
GM
7908 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
7909 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
7910 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
7911 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
7912 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
7913
49628785
GM
7914 * s/aix4-2.h (C_SWITCH_SYSTEM):
7915 * m/alpha.h (C_SWITCH_MACHINE):
7916 Move to configure.in.
7917 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
7918 New variables, set by configure.
7919 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
7920 $c_switch_machine and $c_switch_system.
7921
7dff330b
DN
79222010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
7923
7924 * s/hpux10-20.h (LIB_STANDARD): New definition.
7925 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
7926 on it, not used anymore.
7927
53967e09
CY
79282010-05-03 Chong Yidong <cyd@stupidchicken.com>
7929
7930 * eval.c (internal_condition_case_n): Rename from
7931 internal_condition_case_2.
7932 (internal_condition_case_2): New function.
7933
7934 * xdisp.c (safe_call): Use internal_condition_case_n.
7935
7936 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
7937 (internal_delete_file, Frename_file): Callers changed.
7938
7939 * buffer.c (Fkill_buffer):
7940 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
7941
7942 * lisp.h: Update prototypes.
7943
3dee6fdb
GM
79442010-05-03 Glenn Morris <rgm@gnu.org>
7945
7946 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
7947 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
7948 (LIBXT): Set with configure, not cpp.
7949 (LIBX): Remove.
7950 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
7951
a101e0fb
DN
79522010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
7953
7954 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
7955 The FreeBSD is not needed, the default works, Solaris version is
7956 not needed, and the remaining case is not supported by configure.
7957
f63d0028
JD
79582010-05-02 Jan Djärv <jan.h.d@swipnet.se>
7959
7960 * xsmfns.c (CHDIR_OPT): New define.
7961 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
7962 restarting emacs.
7963
7964 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
7965 shut_down_emacs.
7966
7967 * emacs.c (USAGE1): Mention --chdir.
7968 (main): Handle --chdir.
7969 (standard_args): Add --chdir.
7970 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
7971 #5552).
7972
e4814a9f
DN
79732010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
7974
cd03c74a
DN
7975 Remove LD_SWITCH_MACHINE.
7976 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
7977 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
7978
c3a398a1
DN
7979 Clean up IRIX code.
7980 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
7981 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
7982
87e7285c
DN
7983 Clean up AIX code.
7984 * m/ibmrs6000.inp: Remove file, unused.
7985 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
7986 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
7987 definition ...
7988 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
7989
80f00217
JB
7990 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
7991 unused.
e4814a9f 7992
59ca28de
EZ
79932010-05-01 Eli Zaretskii <eliz@gnu.org>
7994
197daef4
EZ
7995 Emulate POSIX_SIGNALS on MS-Windows.
7996
7997 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
7998 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
7999
8000 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
8001 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
8002 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
8003
80f00217
JB
8004 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
8005 New stubs.
197daef4 8006
af7c7572
EZ
8007 Miscellaneous fixes of bidi display.
8008
59ca28de
EZ
8009 * xdisp.c (find_row_end): New function, refactored from display_line.
8010 (display_line): Use it.
017ea819
EZ
8011 (extend_face_to_end_of_line): In almost-filled rows, extend only
8012 if the row is R2L and not continued.
166e930d 8013 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 8014 Preserve overlay and string info in row->end.
166e930d
EZ
8015 (insert_left_trunc_glyphs): Support addition of left truncation
8016 glyphs to R2L rows.
b47e0dcf 8017 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
8018 glyph between adjacent windows. Fix a crash when a display string
8019 is continued to the next line. Don't return zero if cursor was
8020 found by `cursor' property of a display string.
b47e0dcf
EZ
8021 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
8022 test for that explicitly.
59ca28de 8023
7acac9f4
GM
80242010-05-01 Glenn Morris <rgm@gnu.org>
8025
8026 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
8027 for clarity.
8028 (OTHER_OBJ): Remove.
8029 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
8030 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
8031
45841e65
KK
80322010-05-01 Karel Klíč <kklic@redhat.com>
8033
8034 * fileio.c (Ffile_selinux_context): Context functions may return null.
8035
afc61943
DN
80362010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
8037
80f00217 8038 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 8039
5a1bb006
GM
80402010-04-30 Glenn Morris <rgm@gnu.org>
8041
8042 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
8043 (OTHER_OBJ): Define as a separate variable, for clarity.
8044
210af043
J
80452010-04-30 Jan Djärv <jan.h.d@swipnet.se>
8046
8047 * xsettings.c: include limits.h and update file comment.
8048
0a7df391
GM
80492010-04-30 Glenn Morris <rgm@gnu.org>
8050
d5096f16
GM
8051 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
8052 Set with configure, not cpp.
8053 (LIBW): Remove, replace with $TOOLKIT_LIBW.
8054
7eb1ac33
GM
8055 * Makefile.in (mallocobj): Remove.
8056 (otherobj): Simplify using @OTHER_OBJ@.
8057
517d086b
GM
8058 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
8059 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
8060 Don't bother making nsgui.h dependency platform-specific.
8061
0a7df391
GM
8062 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
8063
d6d23852
SM
80642010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
8065
d2630aef
SM
8066 * process.c (read_process_output, exec_sentinel): Don't burp if the
8067 sentinel/filter kills the current buffer (bug#6060).
8068
f9dddf52 8069 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
8070 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
8071 Remove unused var `args'.
8072 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
8073 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
8074 * doc.c (store_function_docstring): Use XSETCAR.
8075
f1e3642a
GM
80762010-04-28 Glenn Morris <rgm@gnu.org>
8077
faf535f8
GM
8078 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
8079 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
8080
c40f9449
GM
8081 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
8082
658f86ca
GM
8083 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
8084 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
8085
bc0b5f61
GM
8086 * Makefile.in (FONT_OBJ): New, set by configure.
8087 (FONT_DRIVERS): Use $FONT_OBJ.
8088
294c50a0
GM
8089 * Makefile.in (LIBXMU): Set with configure, not cpp.
8090 * s/aix4-2.h (LIBXMU):
8091 * s/hpux10-20.h (LIBXMU):
8092 Remove definition, now set in configure.
8093
e6ec4e99
GM
8094 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
8095
f1e3642a
GM
8096 * m/amdx86-64.h [i386]: Move this test to configure.in.
8097
c6ea2936
GM
80982010-04-27 Glenn Morris <rgm@gnu.org>
8099
8fdac2c3
GM
8100 * Makefile.in (LIBXTR6): Set with configure, not cpp.
8101 * s/unixware.h (NEED_LIBW): Remove definition.
8102
986fb647
GM
8103 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
8104 (TOOLKIT_LIBW): New, set by configure.
8105 (@X_TOOLKIT_TYPE@): No longer define it.
8106
c6ea2936
GM
8107 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
8108 (MOTIF_LIBW): Set with configure, not cpp.
8109 * s/aix4-2.h (LIB_MOTIF):
8110 * s/gnu-linux.h (LIB_MOTIF):
8111 * s/unixware.h (LIB_MOTIF): Move to configure.in.
8112
aaa36002
DN
81132010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
8114
8115 Reduce CPP usage.
8116 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
8117 (obj): Use autoconf for unexec instead of cpp.
bba3e508
SM
8118 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE):
8119 Remove definitions and undefs. Inline definitions in the only user.
ed6281b0 8120 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 8121
b678dd8b
GM
81222010-04-27 Glenn Morris <rgm@gnu.org>
8123
76cda504
GM
8124 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
8125 since the defaults (set by the system file) are fine in most cases.
8126 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
8127 * m/ibms390x.h (START_FILES, LIB_STANDARD):
8128 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
8129 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
8130 Remove definitions, since they are set correctly in s/gnu-linux.h.
8131 * s/freebsd.h (START_FILES, LIB_STANDARD):
8132 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
8133 * s/hpux10-20.h (START_FILES):
8134 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
8135 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
8136
b678dd8b
GM
8137 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
8138 (MOTIF_LIBW): Use $LIBXP.
8139 (otherobj): Use $WIDGET_OBJ.
8140
9452ded1
DN
81412010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
8142
7e10844c
DN
8143 * Makefile.in (LIBS_MACHINE): Remove, unused.
8144
9452ded1
DN
8145 Use autoconf instead of cpp for LIB_MATH.
8146 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
8147 * s/cygwin.h (LIB_MATH): Likewise.
8148 * Makefile.in (LIB_MATH): Do not define with cpp.
8149 (LIBES): Use autoconf for LIB_MATH.
8150
fcebfc6a
KH
81512010-04-26 Kenichi Handa <handa@m17n.org>
8152
8153 * composite.c (Ffind_composition_internal): Fix the return value
8154 for an automatic composition.
8155
39e2ad1b
DN
81562010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
8157
8158 Remove all NO_ARG_ARRAY uses.
8159 * fns.c (concat2, concat3, nconc2):
8160 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
8161 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
8162 * m/xtensa.h (NO_ARG_ARRAY):
8163 * m/template.h (NO_ARG_ARRAY):
8164 * m/sparc.h (NO_ARG_ARRAY):
8165 * m/sh3.h (NO_ARG_ARRAY):
8166 * m/mips.h (NO_ARG_ARRAY):
8167 * m/macppc.h (NO_ARG_ARRAY):
8168 * m/iris4d.h (NO_ARG_ARRAY):
8169 * m/intel386.h (NO_ARG_ARRAY):
8170 * m/ibms390x.h (NO_ARG_ARRAY):
8171 * m/ibms390.h (NO_ARG_ARRAY):
8172 * m/ibmrs6000.h (NO_ARG_ARRAY):
8173 * m/ia64.h (NO_ARG_ARRAY):
8174 * m/hp800.h (NO_ARG_ARRAY):
8175 * m/arm.h (NO_ARG_ARRAY):
8176 * m/amdx86-64.h (NO_ARG_ARRAY):
8177 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
8178
adf4f59c
EZ
81792010-04-25 Eli Zaretskii <eliz@gnu.org>
8180
6bdf5d65
EZ
8181 * xdisp.c (display_line): Don't assume 2nd call to
8182 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
8183 (iterate_out_of_display_property): New function, body from pop_it.
8184 (pop_it): Use it.
adf4f59c 8185
dfbbda83
GM
81862010-04-24 Glenn Morris <rgm@gnu.org>
8187
8188 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
8189 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
8190 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
8191 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
8192
2d4018aa
EZ
81932010-04-24 Eli Zaretskii <eliz@gnu.org>
8194
a49884a6
EZ
8195 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
8196 use `get_next_display_element' and `set_iterator_to_next' to
8197 advance to the next character, when looking for the character that
8198 begins the next row.
8199
76db6fcc 8200 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
8201 definition of "struct Lisp_Symbol".
8202
70eab5c1
GM
82032010-04-24 Glenn Morris <rgm@gnu.org>
8204
8205 * Makefile.in (CRT_DIR): New variable, set by configure.
8206 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
8207 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
8208
1ad4cc3d
DN
82092010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
8210
e769f484
DN
8211 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
8212
4196ff33
DN
8213 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
8214
879b0ee4
DN
8215 Remove redundant flags.
8216 * s/freebsd.h (C_SWITCH_SYSTEM):
8217 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
8218 * s/netbsd.h (C_SWITCH_SYSTEM):
8219 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
8220 of these.
8221
03cbbcb8
DN
8222 Simplify m/intel386.h.
8223 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
8224 user: ecrt0.c.
8225 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
8226 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
8227 the only user: s/unixware.h.
8228 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
8229 from m/intel386.h.
bba3e508
SM
8230 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE):
8231 Definitions moved here from m/intel386.h.
03cbbcb8 8232
1ad4cc3d
DN
8233 * m/mips.h: Remove #if 0 code.
8234
8785b888
EZ
82352010-04-23 Eli Zaretskii <eliz@gnu.org>
8236
728588cc
EZ
8237 Fix display of composed characters from L2R scripts in bidi buffers.
8238 * xdisp.c (set_iterator_to_next, next_element_from_composition):
8239 After advancing IT past the composition, resync the bidi iterator
8240 with IT's position. (Bug#5977)
8241
a63f80b4
DN
82422010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
8243
8244 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
8245 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
8246
ff5dec5c
SM
82472010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
8248
8249 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
8250
8785b888
EZ
82512010-04-23 Eli Zaretskii <eliz@gnu.org>
8252
58ccf243 8253 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
8254 * xdisp.c (pop_it): When the stack is popped after displaying
8255 from a string, bidi-iterate to exit from the text portion covered
8256 by the `display' property or overlay. (Bug#5988, bug#5920)
8257
feeb1604
DN
82582010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
8259
8e324eb6
DN
8260 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
8261 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
8262
809fcaba
DN
8263 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
8264 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
8265
ed710380
DN
8266 Simplify STARTFILES definition.
8267 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
8268 relying on Makefile.in to define it.
8269 * s/cygwin.h (START_FILES): Likewise.
8270 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
8271
feeb1604
DN
8272 Clean up Solaris code.
8273 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
8274 (LIB_MOTIF): Remove, configure takes care of this.
8275 (NOT_USING_MOTIF): Remove, unused.
8276 * xrdb.c: Remove #if 0-ed #include.
8277 (SYSV): Remove conditional for old SysV.
8278 * sysdep.c (closedir): Remove conditional code for Solaris,
8279 Solaris has closedir.
8280
a0d0b563
JD
82812010-04-22 Jan Djärv <jan.h.d@swipnet.se>
8282
8283 * xsettings.c (read_and_apply_settings): Check if current_font is
8284 NULL before strcmp (Bug#6001).
8285
56bae7c7
DN
82862010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
8287
8288 Clean up HP-UX files.
8289 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
8290 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
8291 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
8292 * s/hpux10-20.h: ... to the only user, here.
8293
372b7a95
EZ
82942010-04-21 Eli Zaretskii <eliz@gnu.org>
8295
8296 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
8297 use buffer-local values of paragraph-start and paragraph-separate.
8298 <paragraph_start_re, paragraph_separate_re>: Rename from
8299 fallback_paragraph_start_re and fallback_paragraph_separate_re.
8300 (Bug#5992)
8301
f904c0f9
JD
83022010-04-21 Jan Djärv <jan.h.d@swipnet.se>
8303
8304 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
8305 current_tool_bar_style are new.
8306 (store_config_changed_event): Rename from store_font_changed_event.
8307 (XSETTINGS_TOOL_BAR_STYLE): New define.
8308 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
8309 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
8310 HAVE_XFT.
8311 (something_changedCB): store_font_changed_event is now
c4cc8b9a 8312 store_config_changed_event.
bba3e508
SM
8313 (parse_settings): Rename from parse_xft_settings.
8314 Read non-xft xsettings outside #ifdef HAVE_XFT.
ef1b0ba7 8315 (read_settings): Rename from read_xft_settings.
f904c0f9
JD
8316 (apply_xft_settings): Take current settings as parameter. Do not
8317 call read_(xft)_settings.
8318 (read_and_apply_settings): New function.
bba3e508
SM
8319 (xft_settings_event): Do non-xft stuff out of HAVE_XFT.
8320 Call read_and_apply_settings if there are settings to be read.
ef1b0ba7 8321 (init_xsettings): Rename from init_xfd_settings.
f904c0f9
JD
8322 Call read_and_apply_settings unconditionally.
8323 (xsettings_initialize): Call init_xsettings.
8324 (Ftool_bar_get_system_style): New function.
8325 (syms_of_xsettings): Define Qmonospace_font_name and
8326 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 8327 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 8328 dynamic-setting.
31a01b90 8329 Move misplaced HAVE_GCONF
f904c0f9
JD
8330
8331 * xsettings.h (Ftool_bar_get_system_style): Declare.
8332
8333 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
8334 Qtext, Qboth, Qboth_horiz are new.
8335 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
8336 Vtool_bar_style, tool_bar_max_label_size.
8337
8338 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
8339
8340 * keyboard.c: QClabel is new.
8341 (parse_tool_bar_item): Take out QClabel from tool bar items.
8342 Try to construct a label if ther is no QClabel.
8343 (syms_of_keyboard): Intern :label as QClabel.
8344
8345 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
8346 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
8347 New.
8348
8349 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
8350 dynamic-setting.el.
8351
8352 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
8353 (xg_make_tool_item, xg_show_toolbar_item): New function.
8354 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
8355 Call xg_make_tool_item to make a tool bar item.
8356 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
8357
8358 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
8359 into account for toolbars.
8360
c632dfda
JD
83612010-04-21 Jan Djärv <jan.h.d@swipnet.se>
8362
8363 * data.c (make_blv): Declarations before code (Bug#5993).
8364
10efe302
GM
83652010-04-21 Glenn Morris <rgm@gnu.org>
8366
8367 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
8368 Define using autoconf, not cpp.
8369 (LIBXSM): New variable, set by autoconf.
8370 (LIBXT): Use $LIBXSM.
8371
4285ac5a
DN
83722010-04-21 Dan Nicolaescu <local_user@dannlt>
8373
3ec759e7
DN
8374 Remove NOMULTIPLEJOBS, unused.
8375 * s/template.h (NOMULTIPLEJOBS):
8376 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
8377
4285ac5a
DN
8378 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
8379 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
8380 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
8381 detects -znocombreloc and passes it to the linker
8382 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
8383
2807228d
GM
83842010-04-21 Glenn Morris <rgm@gnu.org>
8385
8386 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
8387
574c05e2
KK
83882010-04-21 Karel Klíč <kklic@redhat.com>
8389
8390 * Makefile.in (LIBSELINUX_LIBS): New.
8391 (LIBES): Add $LIBSELINUX_LIBS.
8392 * eval.c, lisp.h (call7): New function.
8393 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
8394 (Ffile_selinux_context, Fset_file_selinux_context):
8395 New functions.
8396 (Fcopy_file): New parameter preserve-selinux-context.
8397 (Frename_file): Preserve selinux context when renaming by copy-file.
8398
91eac4bb 83992010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 8400 Eli Zaretskii <eliz@gnu.org>
91eac4bb 8401
50426a04
JB
8402 Don't depend on cm.c or termcap.c on Windows, use stubs.
8403 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
8404 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
8405 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
8406 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
8407 (sys_tputs, sys_tgetstr): New stubs.
8408 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
8409 (tputs, tgetstr): New; define to sys_*.
91eac4bb 8410
938efb77
JB
84112010-04-20 Juanma Barranquero <lekktu@gmail.com>
8412
8413 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
8414
b4bf28b7
SM
84152010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
8416
8b1e1112
SM
8417 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
8418 Just signal a warning rather than an error when inside a let.
8419 (Fmake_variable_frame_local): Add the same test.
8420
933ac235
SM
8421 * font.c (syms_of_font): Make the style table vars read-only.
8422
b4bf28b7
SM
8423 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
8424 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
8425
8426 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
8427
93d68d0c
EZ
84282010-04-20 Eli Zaretskii <eliz@gnu.org>
8429
8430 Fix R2L paragraph display on TTY.
8431
8432 * xdisp.c (unproduce_glyphs): New function.
8433 (display_line): Use it when produced glyphs are discarded from R2L
8434 glyph rows.
8435 (append_composite_glyph): In R2L rows, prepend the glyph rather
8436 than appending it.
8437
8438 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
8439 rather than append it. Set up the resolved_level and bidi_type
8440 attributes of the appended glyph.
283ccc18
EZ
8441 (produce_special_glyphs): Mirror the backslash continuation
8442 character in R2L lines.
93d68d0c 8443
283ccc18 8444 Implement display of R2L paragraphs in GUI sessions.
26cdf528 8445
283ccc18
EZ
8446 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
8447 append_stretch_glyph.
bba3e508
SM
8448 (set_cursor_from_row) <cursor_x>: Remove unused variable.
8449 Fix off-by-one error in computing x at end of text in the row.
283ccc18
EZ
8450 (append_stretch_glyph): In reversed row, prepend the glyph rather
8451 than append it. Set resolved_level and bidi_type of the glyph.
8452 (extend_face_to_end_of_line): If the row is reversed, prepend a
8453 stretch glyph whose width is such that the rightmost glyph will be
8454 drawn at the right margin of the window. Fix off-by-one error on
bba3e508
SM
8455 TTY frames in testing whether a line needs face extension.
8456 Fix face extension at ZV. If this is the last glyph row, use
283ccc18
EZ
8457 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
8458 region face.
bba3e508
SM
8459 (set_cursor_from_row, display_line):
8460 Use MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
26cdf528 8461 row->continuation_lines_width.
283ccc18
EZ
8462 (next_element_from_buffer): Don't call bidi_paragraph_init if we
8463 are at ZV. Fixes a crash when reseated to ZV by
8464 try_window_reusing_current_matrix.
45903529
EZ
8465 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
8466 which happens with R2L glyph rows. Fixes a crash when inserting a
8467 character at end of an R2L line.
283ccc18
EZ
8468 (set_cursor_from_row): Don't be fooled by truncated rows: don't
8469 treat them as having zero-width characters. Improve comments.
8470 Don't reverse pos_before and pos_after for reversed glyph rows.
8471 Set cursor.x to negative value when the cursor might be on the
8472 left fringe.
8473 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
8474 left fringe, not the right one.
f951a506
EZ
8475 (notice_overwritten_cursor, draw_phys_cursor_glyph)
8476 (erase_phys_cursor): For reversed cursor_row, support cursor on
8477 the left fringe.
8478
283ccc18
EZ
8479 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
8480 of continuation indicators on the fringes.
8481 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
8482 left fringe.
8483
f951a506
EZ
8484 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
8485 draw cursor on the left fringe.
8486
8487 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
8488 cursor on the left fringe.
8489
f951a506
EZ
8490 * dispnew.c (update_text_area): Handle reversed desired rows when
8491 the cursor is on the left fringe.
8492 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
8493 below, not by 0, for when the cursor is on the left fringe.
8494
3bb49aaf
JD
84952010-04-20 Jan Djärv <jan.h.d@swipnet.se>
8496
8497 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
8498 widget is a scrollbar.
8499
c0be27fd
KH
85002010-04-20 Kenichi Handa <handa@m17n.org>
8501
8502 * charset.c (char_charset): Consider Vcharset_non_preferred_head
8503 only when the arg CHARSET_LIST is nil.
8504
ce5b453a
SM
85052010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
8506
8507 Make variable forwarding explicit rather the using special values.
8508 Basically, this makes the structure of buffer-local values and object
8509 forwarding explicit in the type of Lisp_Symbols rather than use
8510 special Lisp_Objects for that. This tends to lead to slightly more
8511 verbose code, but is more C-like, simpler, and makes it easier to make
8512 sure we handled all cases, among other things by letting the compiler
8513 help us check it.
8514 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
8515 Removing forwarding objects.
8516 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
8517 (struct Lisp_Symbol): Make the various forms of variable-forwarding
8518 explicit rather than hiding them inside Lisp_Object "values".
8519 (XFWDTYPE): New macro.
8520 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
8521 (XBUFFER_LOCAL_VALUE): Remove.
8522 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
8523 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
8524 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
8525 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
8526 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
8527 Remove the Lisp_Misc_* header.
8528 (struct Lisp_Buffer_Local_Value): Redefine.
8529 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
8530 (struct Lisp_Misc_Any): Add filler to get the right size.
8531 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
8532 Lisp_Intfwd.
8533 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
8534 (DEFVAR_KBOARD): Allocate a forwarding object.
8535 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
8536 (let_shadows_global_binding_p): New function.
8537 (union Lisp_Val_Fwd): New type.
8538 (make_blv): New function.
8539 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
8540 (store_symval_forwarding, swap_in_global_binding, Fboundp)
8541 (swap_in_symval_forwarding, find_symbol_value, Fset)
8542 (let_shadows_buffer_binding_p, set_internal, default_value)
8543 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
8544 (Fkill_local_variable, Fmake_variable_frame_local)
8545 (Flocal_variable_p, Flocal_variable_if_set_p)
8546 (Fvariable_binding_locus):
8547 * xdisp.c (select_frame_for_redisplay):
8548 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
8549 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
8550 * frame.c (store_frame_param):
8551 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
8552 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
8553 value structure.
8554 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
8555 (clone_per_buffer_values): Only adjust markers into the current buffer.
8556 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
8557 (Fbuffer_local_value, set_buffer_internal_1)
8558 (swap_out_buffer_local_variables):
8559 Adapt to the new symbol value structure.
8560 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
8561 (defvar_per_buffer): Take a new arg for the fwd object.
8562 (buffer_lisp_local_variables): Return a proper alist (different fix
8563 for bug#4138).
8564 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
8565 (Fgarbage_collect): Don't handle buffer_defaults specially.
8566 (mark_object): Handle new symbol value structure rather than the old
8567 special Lisp_Misc_* objects.
8568 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
8569 * term.c (set_tty_color_mode):
8570 * bidi.c (bidi_initialize): Don't access the ->value field directly.
8571 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
8572 a buffer_local_flags.
8573 * print.c (print_object): Get rid of impossible forwarding objects.
8574
fd3998ff
EZ
85752010-04-19 Eli Zaretskii <eliz@gnu.org>
8576
8577 * bidi.c (bidi_get_type, bidi_get_category)
8578 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
8579 (bidi_type_of_next_char, bidi_level_of_next_char):
8580 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 8581
e42cd1a7
JB
85822010-04-19 Juanma Barranquero <lekktu@gmail.com>
8583
8584 * dired.c (Ffile_attributes): Fix typo in docstring.
8585
6e104790 85862010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
8587
8588 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
8589 NSInteger (Bug#5811).
8590
6e104790 85912010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
8592
8593 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
8594 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
8595
6e104790 85962010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
8597
8598 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
8599
6e104790
SM
86002010-04-19 Chong Yidong <cyd@stupidchicken.com>
8601
8602 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
8603 terminal frames (Bug#5837).
8604
37dcfea0
EZ
86052010-04-19 Eli Zaretskii <eliz@gnu.org>
8606
d1da276f
EZ
8607 * .gdbinit (xsubchartable): New command.
8608
37dcfea0
EZ
86092010-04-19 Eli Zaretskii <eliz@gnu.org>
8610
8611 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 8612 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
8613 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
8614 and
8615 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
8616
e9515805
SM
86172010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
8618
8619 * alloc.c (Fpurecopy): Hash-cons if requested.
8620 (syms_of_alloc): Update purify-flag docstring.
8621
22aa44a8
JD
86222010-04-18 Jan Djärv <jan.h.d@swipnet.se>
8623
8624 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
8625 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
8626
ebb5722e
EZ
86272010-04-17 Eli Zaretskii <eliz@gnu.org>
8628
8629 Fix a crash when an NSM character is inserted at BEGV.
8630
8631 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
8632 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
8633 NEUTRAL_B or UNKNOWN_BT.
8634
0f4442ef
EZ
86352010-04-16 Eli Zaretskii <eliz@gnu.org>
8636
8637 * xdisp.c (set_cursor_from_row): Don't consider possibility of
8638 other rows with cursor unless they are different from this row and
8639 this row is part of a continued line. (Bug#5943)
8640
7d4e45f8
DN
86412010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
8642
8643 * s/freebsd.h: Restore osreldate.h include.
8644 Suggested by Naohiro Aota.
8645
5ba5ec85
J
86462010-04-16 Jan Djärv <jan.h.d@swipnet.se>
8647
8648 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
8649
20af301d
CY
86502010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
8651
8652 * s/cygwin.h: Avoid linking against static libgcc.
8653
a4b000fb
JL
86542010-04-15 Juri Linkov <juri@jurta.org>
8655
8656 * window.c: Add Qscroll_command.
8657 Remove Vscroll_preserve_screen_position_commands.
8658 (window_scroll_pixel_based, window_scroll_line_based): Check the
8659 `scroll-command' property on the last command instead of searching
8660 the last command in Vscroll_preserve_screen_position_commands.
8661 (syms_of_window): Initialize and staticpro `Qscroll_command'.
8662 Put Qscroll_command property on Qscroll_up and Qscroll_down.
8663 (scroll-preserve-screen-position): Doc fix.
8664 (Vscroll_preserve_screen_position_commands): Remove variable.
8665
bc319ba4
DN
86662010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
8667
6bb24457
DN
8668 * xdisp.c (message): Do not use NO_ARG_ARRAY.
8669
19d4c244
DN
86702010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
8671
8672 Reduce cpp use in Makefile.in.
8673 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
8674 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
8675 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
8676 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
8677 (CRT0_COMPILE): Remove, inline it in the only user.
8678
32129746
JL
86792010-04-14 Juri Linkov <juri@jurta.org>
8680
8681 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
8682 `scroll-up-command' and `M-v' from `scroll-down' to
8683 `scroll-down-command'.
8684
9013a7f8
JL
86852010-04-14 Juri Linkov <juri@jurta.org>
8686
8687 * window.c (Vscroll_preserve_screen_position_commands): New variable
8688 with the default value as the list of Qscroll_down and Qscroll_up.
8689 (window_scroll_pixel_based, window_scroll_line_based): Search the
8690 last command in the list Vscroll_preserve_screen_position_commands
8691 instead of comparing with Qscroll_up and Qscroll_down.
8692
4bef8d26
JD
86932010-04-13 Jan Djärv <jan.h.d@swipnet.se>
8694
92848133
JD
8695 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
8696 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
8697 does that.
8698
4bef8d26
JD
8699 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
8700 to zero.
8701
58b963f7
SM
87022010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
8703
84164a0d
SM
8704 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
8705
2b0a91e7
SM
8706 Try to solve the problem of spurious EOF chars in long lines of text
8707 sent to interactive subprocesses.
8708 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
8709 (system_process_attributes): Remove unused var `ttotal'.
8710 * process.c (send_process): Don't bother breaking long line with EOF
8711 chars when talking to ttys any more.
8712 (wait_reading_process_output): Output a warning when called in such
8713 a way that it could block without being interruptible.
8714
58b963f7
SM
8715 Try to detect file modification within the same second.
8716 * buffer.h (struct buffer): New field modtime_size.
8717 * buffer.c (reset_buffer): Initialize it.
8718 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
8719 (Fverify_visited_file_modtime): Check it.
8720 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
8721 (Fset_visited_file_modtime): Set (or clear) it.
8722
01f5787b
SM
87232010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
8724
8725 * process.c (status_notify): Remove unused var `ro'.
8726
83725342
JD
87272010-04-12 Jan Djärv <jan.h.d@swipnet.se>
8728
8729 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
8730 more than one visual (Bug#5938).
8731
b9465836
DN
87322010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
8733
50426a04
JB
8734 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
8735 Undefine.
b9465836 8736
8d9c8ece
DN
87372010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
8738
b1f52161
DN
8739 Remove C_SWITCH_SYSTEM_TEMACS.
8740 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
8741 (malloc, realloc, free): Use emacs, not temacs for conditional
8742 definition.
8743
8744 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
8745 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
8746
8d9c8ece
DN
8747 Use autoconf, not cpp for some variables.
8748 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
8749 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
8750 (ALL_CFLAGS): Use them as make variables.
8751 (really-lwlib, really-oldXMenu): Do not pass them.
8752
1ecb2d3f
JD
87532010-04-11 Jan Djärv <jan.h.d@swipnet.se>
8754
8755 * xmenu.c (apply_systemfont_to_dialog): New.
8756 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
8757
3a4fa2f2
SM
87582010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
8759
97e53006
SM
8760 * process.c (exec_sentinel): Preserve current-buffer.
8761
3a4fa2f2
SM
8762 * process.c (read_process_output): Move the save-current-buffer to
8763 apply to both the filter and the non-filter branches.
8764
88df7221
DN
87652010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
8766
8767 * s/msdos.h (UNEXEC): New definition.
8768
5634ff85
YM
87692010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8770
6eff5c3d
YM
8771 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
8772 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
8773
8774 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
8775 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
8776 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
8777 TRY_WINDOW_CHECK_MARGINS.
8778
8779 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
8780 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
8781 width only when it is for padding.
5634ff85 8782
b13aef54
J
87832010-04-09 Jan Djärv <jan.h.d@swipnet.se>
8784
8785 * xfns.c (Fx_show_tip): Call try_window in a loop until
8786 fonts_changed_p is zero (Bug#2423).
8787
21d28484
EZ
87882010-04-08 Eli Zaretskii <eliz@gnu.org>
8789
8790 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
8791 the end of TEXT_AREA. (Bug#5856)
8792
0269ef77
JD
87932010-04-08 Jan Djärv <jan.h.d@swipnet.se>
8794
8795 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
8796 HAVE_GCONF.
8797
5930fe97
EZ
87982010-04-08 Eli Zaretskii <eliz@gnu.org>
8799
8800 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
8801 prev.orig_type, for resolving type of NSM. (Bug#5858)
8802
99852628
JD
88032010-04-08 Jan Djärv <jan.h.d@swipnet.se>
8804
8805 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
8806 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
8807 in current_font.
8808 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
8809 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
8810 New functions.
8811 (syms_of_xsettings): Initialize current_font.
8812 defsubr Sfont_get_system_normal_font.
99852628 8813
686b968e
JB
8814 * xsettings.h (Ffont_get_system_normal_font)
8815 (xsettings_get_system_normal_font): Declare.
99852628
JD
8816
8817 * xfns.c (extern xlwmenu_default_font): Remove.
8818 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
8819 to xlwmenu.c.
8820
8821 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
8822 menu items in UTF-8.
8823
8824 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
8825 (apply_systemfont_to_menu): New function.
bba3e508
SM
8826 (set_frame_menubar, create_and_show_popup_menu):
8827 Call apply_systemfont_to_menu.
99852628 8828
7fc874c4
J
88292010-04-07 Jan Djärv <jan.h.d@swipnet.se>
8830
8831 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
8832 FRAME_LINE_TO_PIXEL_Y.
8833
8834 * xterm.c (x_set_window_size_1): Don't add border_width/height to
8835 pixelwidth/height.
8836
863bf481
DN
88372010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
8838
5e5a3b92
DN
8839 Simplify code for HP machines.
8840 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
8841 for GNU_LINUX, not needed.
8842 (UNEXEC, NEED_BSDTTY): Move definitions...
8843 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
8844
863bf481
DN
8845 * m/iris4d.h (UNEXEC): Move definition ...
8846 * s/irix6-5.h (UNEXEC): ... here.
8847
3e6bec3b
JD
88482010-04-04 Jan Djärv <jan.h.d@swipnet.se>
8849
8850 * xfns.c (set_machine_and_pid_properties): New function.
8851 (Fx_create_frame): Call set_machine_and_pid_properties.
8852
2912322b
SM
88532010-04-03 Eli Zaretskii <eliz@gnu.org>
8854
bba3e508
SM
8855 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char):
8856 Check bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
1502b819
EZ
8857 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
8858
2912322b
SM
8859 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
8860 in this function. (Bug#5703)
8861
88622010-04-03 Chong Yidong <cyd@stupidchicken.com>
8863
8864 * nsterm.h: Fix last change.
8865
c435b432
DN
88662010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
8867
a568f507
DN
8868 * m/intel386.h (NO_REMAP): Move definition ...
8869 * s/msdos.h (NO_REMAP): ... here.
8870
4cd9f6c2
DN
8871 * m/vax.h (CRT0_DUMMIES): Remove, unused.
8872
c435b432
DN
8873 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
8874 used on those platforms.
8875
42a2c622
DN
88762010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
8877
8878 Remove extern errno declarations.
8879 * xterm.c:
8880 * xrdb.c:
8881 * w32term.c:
8882 * unexec.c:
8883 * unexaix.c:
8884 * sysdep.c:
8885 * process.c:
8886 * lread.c:
8887 * keyboard.c:
8888 * floatfns.c:
8889 * filelock.c:
8890 * fileio.c:
8891 * emacs.c (main):
8892 * ecrt0.c:
8893 * dispnew.c:
8894 * callproc.c:
8895 * buffer.c: Remove errno extern declarations.
8896 * s/netbsd.h (NEED_ERRNO): Remove.
8897
8224f93d
DN
88982010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
8899
8900 Remove all uses of LIBX11_SYSTEM.
8901 * Makefile.in (LIBX11_SYSTEM): Remove.
8902 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
8903 instead.
8904
814062c7
EZ
89052010-04-01 Eli Zaretskii <eliz@gnu.org>
8906
ed68db4d
EZ
8907 Remove support for DJGPP v1.x (bug#5813).
8908
8909 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
8910 * s/msdos.h:
8911 * unexec.c (make_hdr, copy_text_and_data):
8912 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 8913 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
8914 (IT_set_terminal_modes, __write, _rename, gethostname)
8915 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
8916 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
8917 the value of __DJGPP__.
ed68db4d
EZ
8918 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
8919 compatibility code.
8224f93d
DN
8920 * lread.c:
8921 * gmalloc.c (memalign):
8922 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
8923 * emacs.c (main):
8924 * dosfns.c (init_dosfns):
ed68db4d
EZ
8925 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
8926
52f4d8d5
EZ
89272010-04-01 Eli Zaretskii <eliz@gnu.org>
8928
814062c7
EZ
8929 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
8930 string with `cursor' property comes from an `after-string'
8931 overlay. (Bug#5816)
8932
0dc2e11d
GM
89332010-04-01 Glenn Morris <rgm@gnu.org>
8934
8935 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
8936 Define as Makefile variables.
8937 (LIBX): Use above variables rather than directly using autoconf.
8938
1d29df59
DN
89392010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
8940
8941 Clean up BSD_SYSTEM use.
8942 * xterm.c:
8943 * process.c:
8944 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
8945 for including <sys/ioctl.h>.
8946 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
8947 code is only used for MSDOS.
8948
1546c559
JL
89492010-03-31 Juri Linkov <juri@jurta.org>
8950
8951 * image.c: Add `Qextension_data'.
8952 (syms_of_image): Initialize and staticpro `Qextension_data'.
8953 (Fimage_metadata): Rename from `Fimage_extension_data'.
8954 (gif_load): Put GIF extension data to the property
8955 `Qextension_data'.
8956
6521c534
CY
89572010-03-31 Chong Yidong <cyd@stupidchicken.com>
8958
8959 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
8960 * nsterm.h: Fix prototype.
8961
52c30783
EZ
89622010-03-31 Eli Zaretskii <eliz@gnu.org>
8963
8964 * xdisp.c (highlight_trailing_whitespace): Support highlight of
8965 trailing whitespace in right-to-left rows.
8966
855a0da7
SM
89672010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
8968
8969 Get rid of the direct_output optimizations.
8970 * keyboard.c (nonundocount): Remove extern declaration.
8971 (command_loop_1): Remove brittle optimisation for cheap and
8972 common operations.
8973 * xdisp.c (redisplay_internal): Don't bother checking
8974 redisplay_performed_directly_p any more.
8975 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
8976 any more.
8977 * dispnew.c (redisplay_performed_directly_p)
8978 (direct_output_for_insert, direct_output_forward_char):
8979 * dispextern.h (redisplay_performed_directly_p)
8980 (direct_output_for_insert, direct_output_forward_char): Remove.
8981 * cmds.c (nonundocount): Make it static.
8982
85738751 89832010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
8984
8985 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
8986
85738751 89872010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
8988
8989 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
8990 invisible (Bug#5766).
8991
85738751 89922010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 8993
855a0da7
SM
8994 * xdisp.c (x_consider_frame_title, update_window_cursor):
8995 Remove HAVE_NS conditionals.
194d44e7 8996 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
8997
8998 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
8999 filename for the title.
9000 (ns_set_doc_edited): Do nothing if the selected window is a
9001 minibuffer window.
9002
9003 * nsterm.h: Add prototypes for ns_set_name_as_filename and
9004 ns_set_doc_edited.
9005
9006 * nsterm.m: Remove unneeded prototype.
9007
85738751 90082010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
9009
9010 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
9011 in the DOC file. (Bug#5336)
9012
85738751 90132010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
9014
9015 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
9016
75d1428c
SM
90172010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
9018
9019 * window.c (keys_of_window): Remove redundant/overridden bindings.
9020
82043cfb
EZ
90212010-03-30 Eli Zaretskii <eliz@gnu.org>
9022
9023 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
9024 Restore original behavior when the iterator is not bidi_p.
9025
b5dd0ae7
DN
90262010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
9027
9028 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
9029
bd924a5d
EZ
90302010-03-30 Eli Zaretskii <eliz@gnu.org>
9031
9032 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
9033 are outside the range of cached character positions.
9034
3580374b
JB
90352010-03-30 Juanma Barranquero <lekktu@gmail.com>
9036
9037 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
9038
a7b02820
EZ
90392010-03-30 Eli Zaretskii <eliz@gnu.org>
9040
9041 Initial support for bidirectional editing.
9042
9043 * Makefile.in (obj): Include bidi.o.
9044 (bidi.o): New target.
9045
9046 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
9047 ($(BLD)/bidi.$(O)): New target.
9048
9049 * bidi.c: New file.
9050
9051 * buffer.h (struct buffer): New members bidi_display_reordering
9052 and bidi_paragraph_direction.
9053
9054 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
9055 and bidi_paragraph_direction.
9056 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
9057 and bidi-paragraph-direction.
9058 (Fbuffer_swap_text): Swap the values of
9059 bidi_display_reordering and bidi_paragraph_direction.
9060
9061 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
9062 (bidi_type_t, bidi_dir_t): New types.
9063 (bidi_saved_info, bidi_stack, bidi_it): New structures.
9064 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
9065 prev_stop, base_level_stop, and eol_pos.
9066 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
9067 (IT_STACK_SIZE): Enlarge to 5.
9068 (struct glyph_row): New member reversed_p.
9069 <string_buffer_position>: Update prototype.
9070 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
9071 glyph_row if bidi_it.paragraph_dir == R2L.
9072 (struct glyph): New members resolved_level and bidi_type.
9073
9074 * dispnew.c (direct_output_forward_char): Give up if we need bidi
9075 processing or buffer's direction is right-to-left.
9076 (prepare_desired_row): Preserve the reversed_p flag.
9077 (row_equal_p): Compare the reversed_p attributes as well.
9078
bba3e508
SM
9079 * xdisp.c (init_iterator): Initialize it->bidi_p.
9080 Call bidi_init_it and set it->paragraph_embedding from the current
a7b02820
EZ
9081 buffer's value of bidi_paragraph_direction.
9082 (reseat_1): Initialize bidi_it.first_elt.
9083 (set_iterator_to_next, next_element_from_buffer): Use the value of
9084 paragraph_embedding to determine the paragraph direction.
9085 (set_iterator_to_next): Under bidi reordering, call
9086 bidi_get_next_char_visually. Call bidi_paragraph_init if the
9087 new_paragraph flag is set in the bidi iterator.
9088 (next_element_from_buffer): If bidi_it.first_elt is set,
9089 initialize paragraph direction and find the first character to
9090 display in the visual order. If reseated to a middle of a line,
bba3e508
SM
9091 prime the bidi iterator starting at the line's beginning.
9092 Handle the situation where we overstepped stop_charpos due to
a7b02820
EZ
9093 non-linearity of the bidi iteration. Likewise for when we back up
9094 beyond the previous stop_charpos. When moving across stop_charpos,
9095 record it in prev_stop.
9096 (display_line): Set row->end and it->start for the next row to the
9097 next character in logical order. Always extend reversed_p rows to
9098 the end of line, even if they end at ZV. Copy the reversed_p flag
9099 to the next glyph row. Keep calling set_cursor_from_row for
9100 bidi-reordered rows even if we already have a possible candidate
9101 for cursor position. Set row_end after all the row's glyphs have
9102 been produced, by looping over the glyphs. Record the position
9103 after EOL in it->eol_pos, and use it to set end_pos of the last
9104 row produced for a continued line.
9105 <Qright_to_left, Qleft_to_right>: New variables.
9106 (syms_of_xdisp): Initialize and staticpro them.
9107 (string_buffer_position_lim): New function.
9108 (string_buffer_position): Most of code moved to
9109 string_buffer_position_lim. Last argument and return value are
9110 now EMACS_INT; all callers changed.
9111 (set_cursor_from_row): Rewritten to support bidirectional text and
9112 reversed glyph rows.
bba3e508
SM
9113 (text_outside_line_unchanged_p, try_window_id):
9114 Disable optimizations if we are reordering bidirectional text and the
a7b02820
EZ
9115 paragraph direction can be affected by the change.
9116 (append_glyph, append_composite_glyph)
9117 (produce_image_glyph, append_stretch_glyph): Set the
9118 resolved_level and bidi_type members of each glyph.
9119 (append_glyph): If the glyph row is reversed, prepend the glyph
9120 rather than appending it.
9121 (handle_stop_backwards): New function.
9122 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
9123 (reseat): call handle_stop_backwards to recompute prev_stop and
9124 base_level_stop for the new position.
9125 (handle_invisible_prop): Under bidi iteration, skip invisible text
9126 using bidi_get_next_char_visually. If we are `reseat'ed, init the
9127 paragraph direction. Update IT->prev_stop after skipping
9128 invisible text.
9129 (move_it_in_display_line_to): New variables prev_method
9130 and prev_pos. Compare for strict equality in
9131 BUFFER_POS_REACHED_P.
9132 (try_cursor_movement): Examine all the candidate rows that occlude
9133 point, to return the best match. If rows are bidi-reordered
9134 and point moved backwards, back up to the row that is not a
9135 continuation line, and start looking for a suitable row from
9136 there.
9137
9138 * term.c (append_glyph): Reverse glyphs by pre-pending them,
9139 rather than appending, if the glyph_row's reversed_p flag is set.
9140 Set the resolved_level and bidi_type members of each glyph.
9141
9142 * .gdbinit (pbiditype): New command.
9143 (pgx): Use it to display bidi level and type of the glyph.
9144 (pitx): Display some bidi information about the iterator.
9145 (prowlims, pmtxrows): New commands.
9146
32a8894e
DN
91472010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
9148
9149 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
9150 * s/usg5-4.h (LIBS_DEBUG):
9151 * s/irix6-5.h (C_DEBUG_SWITCH):
9152 * s/gnu-linux.h (LIBS_DEBUG):
9153 * s/darwin.h (LIBS_DEBUG):
9154 * s/bsd-common.h (LIBS_DEBUG):
9155 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
9156 * m/iris4d.h (LIBS_DEBUG):
9157 * m/hp800.h (LIBS_DEBUG): Remove definitions.
9158
9159 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
9160 (LIBS_DEBUG): Remove definition.
9161
649dbf36
CY
91622010-03-27 Chong Yidong <cyd@stupidchicken.com>
9163
9164 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
9165 Windows.
9166
cad4261f
YM
91672010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9168
9169 * process.c (Fmake_network_process): Don't call turn_on_atimers around
9170 `connect' (Bug#5723).
9171
cd591dbc
HE
91722010-03-25 Helmut Eller <eller.helmut@gmail.com>
9173
9174 * process.c (Fmake_network_process): Call `select' for interrupted
9175 `connect' rather than creating new socket (Bug#5173).
9176
e867cb5d 91772010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
9178
9179 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
9180
9181 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
9182
9183 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
9184
e867cb5d 91852010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
9186
9187 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
9188 XLoadQueryFont.
9189
e867cb5d 91902010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
9191
9192 * coding.c (decode_coding_ccl): Fix previous change for the
9193 multibyte case.
fb608df3
KH
9194 (encode_coding_ccl): Don't setup ccl program here. Fix for the
9195 case that the output buffer is fullfilled.
9196 (encode_coding): Setup ccl program here.
fbdc1721 9197
5845f0ed
DN
91982010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
9199
814fb708
DN
9200 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
9201
5845f0ed
DN
9202 Simplify LIBS_MACHINE definitions.
9203 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
9204 * m/iris4d.h (LIBS_MACHINE): Likewise.
9205 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
9206 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 9207 * s/netbsd.h: Remove commented out code.
5845f0ed 9208
b7064064
DN
92092010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
9210
df7734b2
DN
9211 Remove dead code dealing with POSIX_SIGNALS.
9212 * atimer.c (set_alarm): Remove dead code, all USG systems define
9213 POSIX_SIGNALS.
9214 * data.c (arith_error): Likewise.
9215 * keyboard.c (input_available_signal, handle_user_signal)
9216 (interrupt_signal): Likewise.
9217 * process.c (sigchld_handler): Likewise.
9218 (create_process): Remove if 0 code. Remove HPUX conditional when
9219 !defined (POSIX_SIGNALS), it cannot be true.
9220 * syssignal.h: Remove USG5_4 and USG conditionals when
9221 !POSIX_SIGNALS, they cannot be true.
9222
b7064064
DN
9223 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
9224 NO_SOCK_SIGIO, not used anymore.
9225
55da5ee3
DN
92262010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
9227
0be96e3a
DN
9228 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
9229 support vax on BSDs.
9230
55da5ee3
DN
9231 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
9232 * s/aix4-2.h (ORDINARY_LINK): ... here.
9233
c0282183
AS
92342010-03-21 Andreas Schwab <schwab@linux-m68k.org>
9235
82c3d67a
AS
9236 * Makefile.in (abs_builddir): Define.
9237 (bootstrap_exe): Use it.
9238 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 9239
3613edce
SM
92402010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
9241
9242 * Makefile.in (bootstrap_exe): Use an absolute name.
9243
7f110ddc
DN
92442010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
9245
22e87574
DN
9246 Remove support for old GNU/Linux using libc version 5.
9247 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
9248 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
9249
05a670e6
DN
9250 Consolidate redundant definitions in s/bsd-common.h.
9251 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
9252 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
9253 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
9254 doing it in all files that include this one.
9255 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
9256 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
9257 (LDAV_SYMBOL, KERNEL_FILE): Remove.
9258 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
9259 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
9260 (LDAV_SYMBOL, KERNEL_FILE): Remove.
9261 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
9262 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
9263 (LDAV_SYMBOL, KERNEL_FILE): Remove.
9264
2968f561
DN
9265 Consolidate redundant definitions.
9266 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
9267 it's undefined in all files that include this one.
9268 (POSIX_SIGNALS): Define here instead of doing it in all files that
9269 include this one.
9270 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
9271 (POSIX_SIGNALS): Do not define.
9272 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
9273 (POSIX_SIGNALS): Do not define.
9274 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
9275 (POSIX_SIGNALS): Do not define.
9276
15d25dc0
DN
9277 Remove support for old UNIX System V systems.
9278 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
9279 * s/usg-5-4-2.h: Remove.
9280
07e339e4
DN
9281 Remove support for Solaris on PPC and for old versions.
9282 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
9283 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
9284 that cancel each other.
9285 * s/sol2-3.h:
9286 * s/sol2-4.h:
9287 * s/sol2-5.h: Remove.
9288 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
9289 (NO_REMAP): Remove, unused.
9290 (UNEXEC): Move definition ...
9291 * s/aix4-2.h (UNEXEC): ... here.
9292
7f110ddc
DN
9293 * s/openbsd.h: Remove support for non-ELF and for systems that do
9294 not support shared libraries.
9295 * s/netbsd.h:
9296 * s/freebsd.h: Likewise.
9297
605f35cd
DN
92982010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
9299
9300 Remove non-working support for lynxos 3.0.
9301 * s/lynxos.h: Remove file.
9302
9303 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
9304 COFF_BSD_SYMBOLS, nothing defines it anymore.
9305
aed71cf4
DN
93062010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
9307
9308 Remove obsolete uses of HAVE_SHM.
9309 * emacs.c (standard_args):
9310 (Fdump_emacs):
9311 (syms_of_emacs): Remove code depending on HAVE_SHM.
9312
9313 * alloc.c: Remove HAVE_SHM dependent definition.
9314
9315 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
9316
aded53ff
GM
93172010-03-18 Glenn Morris <rgm@gnu.org>
9318
17284745
GM
9319 * emacs.c (USAGE4): Hard-code bug address.
9320 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
9321 (bug_reporting_address): Remove.
9322 (main): Don't call bug_reporting_address.
9323
aded53ff
GM
9324 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
9325 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
9326
303500aa
CY
93272010-03-15 Chong Yidong <cyd@stupidchicken.com>
9328
9329 * xfns.c (Fx_create_frame):
9330 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
9331 on left.
9332
cef3058f
CY
93332010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
9334
9335 * editfns.c (Fformat): Account for string precision when computing
9336 field width (Bug#5710).
9337
a647d59d
CY
93382010-03-12 Chong Yidong <cyd@stupidchicken.com>
9339
4fa42018
CY
9340 * xfns.c (Fx_create_frame): Set default to Qright.
9341
a647d59d
CY
9342 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
9343 all window systems.
9344
6da23aaa
EZ
93452010-03-12 Eli Zaretskii <eliz@gnu.org>
9346
a96f6398 9347 These changes remove termcap.c from the build on Posix platforms.
83d02def 9348 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
9349 (MSDOS_OBJ): ...to here.
9350 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
9351 now identical to when LIBS_TERMCAP is defined.
9352
9353 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
9354
9355 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
9356
a96f6398 9357 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 9358
288f9fc0
CY
93592010-03-10 Chong Yidong <cyd@stupidchicken.com>
9360
9361 * Branch for 23.2.
9362
d48cd3f4
SM
93632010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
9364
9365 Cleanup setup of gl_state in various parts of the code.
9366 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
9367 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
9368 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
9369 (skip_chars):
9370 * regex.c (regex_compile): Use it.
9371 (re_compile_pattern): Don't set gl_state.current_syntax_table since
9372 it's now set in regex_compile when/if we need it.
9373
618db430
SM
93742010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
9375
c0335e02
SM
9376 Make it possible to C-g in a tight bytecode loop again (bug#5680).
9377 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
9378 (QUIT): Use it to consolidate code and remove redundancy.
9379 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
9380
254c06a8
SM
9381 * regex.c (regex_compile): Setup gl_state as well.
9382
618db430
SM
9383 * syntax.c (skip_chars): Setup gl_state (bug#3823).
9384 (in_classes): Use CONSP before XCAR/XCDR.
9385
233f0c9f
CY
93862010-03-03 Chong Yidong <cyd@stupidchicken.com>
9387
9388 * keymap.c (Fwhere_is_internal): Use Fequal to compare
9389 definitions, so that keyboard macros are correctly handled
9390 (Bug#5481).
9391
75f80e63
EZ
93922010-03-02 Eli Zaretskii <eliz@gnu.org>
9393
9394 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
9395 text that could be relocated inside the call to emacs_mule_char.
9396 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
9397 (CODING_DECODE_CHAR): Add a comment describing its purpose.
9398
dcfb9bc4
KH
93992010-03-02 Kenichi Handa <handa@m17n.org>
9400
fc9a17bc
KH
9401 * character.c (parse_str_as_multibyte): Fix handling of the
9402 multibyte form of raw-bytes.
9403 (str_as_multibyte): Likewise.
9404
dcfb9bc4
KH
9405 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
9406 form of raw-bytes.
9407
412c01b6
CY
94082010-02-28 Chong Yidong <cyd@stupidchicken.com>
9409
9410 * charset.c (load_charset_map_from_file)
9411 (load_charset_map_from_vector): Zero out allocated
9412 charset_map_entries before using them.
9413
df7e1ea0
AS
94142010-02-27 Andreas Schwab <schwab@linux-m68k.org>
9415
9416 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
9417
fe69a722
CY
94182010-02-27 Chong Yidong <cyd@stupidchicken.com>
9419
4ed28cf4
CY
9420 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
9421 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 9422
7379cfce
KH
94232010-02-26 Kenichi Handa <handa@m17n.org>
9424
f88cc4d6
KH
9425 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
9426
7379cfce
KH
9427 * xdisp.c (reseat_to_string): Fix previous change.
9428
cf2fdcfb
CY
94292010-02-26 David Reitter <david.reitter@gmail.com>
9430
9431 * nsfont.m (nsfont_draw): ns_antialias_text should be a
9432 Lisp_Object (Bug#4736).
9433
cc6c7c75
KH
94342010-02-25 Kenichi Handa <handa@m17n.org>
9435
9436 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
9437
32e737d7
JD
94382010-02-24 Jan Djärv <jan.h.d@swipnet.se>
9439
9440 * xterm.c (XTflash): Move declarations before statements.
9441
9442 * gtkutil.c (xg_get_gdk_display): Remove (unused).
9443 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
9444 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
9445 (xg_create_tool_bar): Remove unused variables.
9446 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 9447 (xg_create_frame_widgets): Remove variable grav.
32e737d7 9448
676cae9f
CY
94492010-02-21 Chong Yidong <cyd@stupidchicken.com>
9450
9451 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
9452
886cc2b8
SM
94532010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
9454
9455 * term.c (fatal): Add a final \n if needed (bug#5596).
9456
ddb2d8e2
CY
94572010-02-18 Chong Yidong <cyd@stupidchicken.com>
9458
9459 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
9460
2a4f8d3d
GM
94612010-02-18 Glenn Morris <rgm@gnu.org>
9462
9463 * callint.c (Finteractive): Doc fix.
9464
ebaf11b6
KH
94652010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
9466
886cc2b8
SM
9467 * coding.c (record_conversion_result):
9468 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
9469 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
9470 memory allocation error.
9471
d0396581
KH
94722010-02-17 Kenichi Handa <handa@m17n.org>
9473
886cc2b8
SM
9474 * coding.c (decode_coding_ccl): Don't setup ccl program here.
9475 Fix for the case that the output buffer is fullfilled.
d0396581
KH
9476 (decode_coding): Setup ccl program here. Keep looping when the
9477 decoder stopped because the output buffer is
9478 fullfilled (bug#5534).
9479
9480 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
9481
98599f74
JD
94822010-02-13 Jan Djärv <jan.h.d@swipnet.se>
9483
471e4f04 9484 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 9485 bug #5571.
886cc2b8 9486 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 9487 overdrawn.
98599f74 9488
182659ae
JD
94892010-02-10 Jan Djärv <jan.h.d@swipnet.se>
9490
9491 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
9492 doing_interact here.
9493 (ice_connection_closed): New function.
9494 (x_session_check_input, smc_die_CB, ice_io_error_handler)
9495 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
9496 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
9497 returns I/O error.
9498 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
9499 bug #5512.
9500
9be32c4e 95012010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
9502
9503 * nsfont.m (nsfont_open): The system's value for the font descent
9504 is negative, so round it down to avoid clipping.
9505
a2f3eb19
CY
95062010-02-06 Chong Yidong <cyd@stupidchicken.com>
9507
9508 * charset.c (load_charset_map_from_file)
9509 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 9510 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 9511
3088147c
CY
95122010-02-05 Chong Yidong <cyd@stupidchicken.com>
9513
9514 * charset.c (load_charset_map_from_file): Allocate large
9515 charset_map_entries structure on the heap rather than the stack.
9516 (Bug#5526).
9517
b57d9029
KH
95182010-01-31 Kenichi Handa <handa@m17n.org>
9519
9520 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 9521 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 9522
c67d885b
CY
95232010-01-31 Chong Yidong <cyd@stupidchicken.com>
9524
9525 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
9526 <deactivated@gmail.com> (Bug#3605).
9527
8fab2362
CY
95282010-01-31 David De La Harpe Golden <david@harpegolden.net>
9529
9530 * fileio.c (Frename_file): Correctly rename symlinks to
9531 directories (Bug#5496).
9532
cb2a62f2
CY
95332010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
9534
9535 * nsterm.m (ns_ring_bell): Handle visible bell like X.
9536
944c7a26
AS
95372010-01-30 Andreas Schwab <schwab@linux-m68k.org>
9538
9539 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
9540
c024ac08
CY
95412010-01-29 Chong Yidong <cyd@stupidchicken.com>
9542
9543 * frame.c (DEFAULT_ROWS): Change default to 35.
9544
9545 * xfns.c (x_default_font_parameter): Change default XFT font to
9546 monospace-10 (Bug#3643).
9547
af93af83
EZ
95482010-01-29 Eli Zaretskii <eliz@gnu.org>
9549
9550 * w32inevt.c (key_event): Remove unnecessary comparison of
9551 event->uChar.AsciiChar with 128.
9552
ca0eb708
CY
95532010-01-28 Chong Yidong <cyd@stupidchicken.com>
9554
b242dbfc
CY
9555 * fileio.c (Frename_file): Fix last change (Bug#5487).
9556
ca0eb708
CY
9557 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
9558
9559 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
9560
45d45af5
JD
95612010-01-28 Jan Djärv <jan.h.d@swipnet.se>
9562
9563 * xfns.c (Fx_create_frame): Remove window size matching code from
9564 2010-01-15.
a73f9c9d 9565 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 9566
7e233730
JR
95672010-01-27 Jason Rumney <jasonr@gnu.org>
9568
9569 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 9570 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 9571
86e893e3
KH
95722010-01-27 Kenichi Handa <handa@m17n.org>
9573
9574 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 9575 pattern string (Bug#4209).
86e893e3 9576
8719abec
CY
95772010-01-27 David De La Harpe Golden <david@harpegolden.net>
9578
9579 * fileio.c (Frename_file): Call copy-directory and
9580 delete-directory for directories, in order to handle cross-device
9581 renaming (Bug#3353).
9582
844794c8
JD
95832010-01-25 Jan Djärv <jan.h.d@swipnet.se>
9584
aa3e13b5 9585 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 9586 sizes 24 and 10. Bug #3643.
844794c8 9587
bd4b5750
SM
95882010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
9589
8dc1adf6 9590 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
9591 * keymap.c (shadow_lookup): Add `remap' arg.
9592 (describe_map, describe_vector): Update calls to shadow_lookup.
9593 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
9594 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
9595 perform remapping during shadow_lookup check of remapped_sequences.
9596
285d07e2
CY
95972010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
9598
9599 * image.c (png_load): Use png_sig_cmp instead of the obsolete
9600 png_check_sig, which has been removed in libpng 1.4.
9601
c6d09b8d
CY
96022010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
9603
9604 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
9605 lacks this header file).
9606
3d782998
YM
96072010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9608
9609 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
9610 as in Emacs 22.
9611
2aff7c53
YM
96122010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9613
9614 * lisp.h (make_pure_string): String pointer arg now points to const.
9615
9616 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
9617 args now point to const.
9618
74327f7a
EZ
96192010-01-22 Eli Zaretskii <eliz@gnu.org>
9620
9621 * lread.c (Fload): Don't treat files without .elc extension as
9622 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
9623 them. (bug#5303)
9624
4d1e6632
KH
96252010-01-20 Kenichi Handa <handa@m17n.org>
9626
9627 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
9628 treat the source as actual byte sequence.
9629
1fdede8f
AM
96302010-01-19 Alan Mackenzie <acm@muc.de>
9631
9632 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 9633 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
9634 `signal_after_change_p' to `coherent_change_p', and make the
9635 invocation of `modify_region' conditional on it.
9636
67477f30
JD
96372010-01-19 Jan Djärv <jan.h.d@swipnet.se>
9638
9639 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
9640 for debug purpose.
9641 (syms_of_xsettings): Declare xft-settings.
9642
244b023e
CY
96432010-01-18 Chong Yidong <cyd@stupidchicken.com>
9644
9645 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
9646
617364fe
CY
96472010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
9648
9649 * xterm.c (event_handler_gdk): Block input (Bug#5037).
9650
4fe22cdf
CY
96512010-01-16 Chong Yidong <cyd@stupidchicken.com>
9652
9653 * emacs.c (standard_args): Adjust arg priorities to reflect how
9654 they are processed in startup.el.
9655
e118d2be
AS
96562010-01-16 Andreas Schwab <schwab@linux-m68k.org>
9657
9658 * Makefile.in (lisp, shortlisp): Update.
9659
523ae620
SM
96602010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
9661
9662 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
9663 code, link the new kboard into all_kboard before running Lisp code,
9664 and protect the new terminal with GCPRO (Bug#5365).
9665 (x_term_init): Remove unused var `atom'.
9666 (x_delete_display, x_delete_terminal): Remove unused var `i'.
9667
f0d13888
JD
96682010-01-15 Jan Djärv <jan.h.d@swipnet.se>
9669
9670 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
9671 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
9672 to find out usable size of the desktop. Don't make frames larger than
ac146f82 9673 this. Bug #3643.
f0d13888 9674
cc320f07
KH
96752010-01-15 Kenichi Handa <handa@m17n.org>
9676
9677 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
9678
7ffdf101
CY
96792010-01-15 Chong Yidong <cyd@stupidchicken.com>
9680
9681 * nsterm.m (Qnone): Define.
9682
9683 * nsfns.m (Qnone): Move definition to nsterm.m.
9684
d12bd917
KH
96852010-01-14 Kenichi Handa <handa@m17n.org>
9686
9687 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
9688 systems.
9689
d9a7c140
KH
96902010-01-14 Kenichi Handa <handa@m17n.org>
9691
9692 Make auto-composition work on all buffers even if they are
9693 fundamental mode.
9694
9695 * composite.c (Vauto_composition_mode): New variable.
9696 (composition_compute_stop_pos): Check Vauto_composition_mode
9697 instead of Vauto_composition_function.
9698 (composition_adjust_point, Ffind_composition_internal): Likewise.
9699 (syms_of_composite): Declare Lisp variable
9700 "auto-composition-mode" here.
9701
63286bb2
CY
97022010-01-13 Chong Yidong <cyd@stupidchicken.com>
9703
9704 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
9705 during call to vendor-specific-keysyms (Bug#5365).
9706
c2623ee7
YM
97072010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9708
9709 * keyboard.c (input_available_signal) [SYNC_INPUT]:
9710 Call SIGNAL_THREAD_CHECK (Bug#5333).
9711
9712 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
9713 Call SIGNAL_THREAD_CHECK.
9714
0b5397c2
SM
97152010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
9716
9717 Try to fix bug#5314. This is probably not the final word, tho.
9718 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
9719 recent-auto-save-p as a side-effect.
9720 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
9721 * buffer.c (Fkill_buffer, reset_buffer):
9722 * editfns.c (Fsubst_char_in_region):
9723 * fileio.c (Finsert_file_contents, Fdo_auto_save)
9724 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
9725
dc954cb2
KH
97262010-01-13 Kenichi Handa <handa@m17n.org>
9727
9728 Display buffer name, etc. in mode line by composing correctly.
9729
9730 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
9731 STRING is not nil.
0b5397c2 9732 (display_mode_element): Adjust for the change of
dc954cb2
KH
9733 decode_mode_spec and display_line.
9734 (decode_mode_spec): Change arg MULTIBYTE to STRING.
9735 (display_string): Handle the case that STRING is non-null and
9736 LISP_STRING is not nil.
9737
0b5397c2
SM
9738 * xterm.c (x_draw_composite_glyph_string_foreground):
9739 Pay attention to s->face->overstrike.
dc954cb2
KH
9740
9741 * composite.c (composition_reseat_it): Don't check PT if STRING is
9742 non nil.
9743
4a00eaca
YM
97442010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9745
9746 * keyboard.c (read_char): Don't apply previous change when current
9747 buffer is unchanged by command execution.
9748
60abb287
JD
97492010-01-12 Jan Djärv <jan.h.d@swipnet.se>
9750
9751 * keyboard.c (read_char): Return after executing from special map.
9752
893db5bc
GM
97532010-01-12 Glenn Morris <rgm@gnu.org>
9754
9755 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
9756 bug-gnu-emacs rather than emacs-pretest-bug.
9757
4d03ece0
CY
97582010-01-11 Chong Yidong <cyd@stupidchicken.com>
9759
9760 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
9761 initializing the Lisp variables that depend on them.
9762
1df47e38
YM
97632010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9764
9765 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
9766 Clear areas that will not be updated after change of menu bar lines.
9767 Clear the menu bar window's current matrix when the window gets empty.
9768
2f1c6384
CY
97692010-01-09 Chong Yidong <cyd@stupidchicken.com>
9770
e398c61c
CY
9771 * intervals.h, textprop.c (extend_property_ranges): Return value
9772 and args changed. Discard properties that begin at or after the
9773 new end (Bug#5306).
9774
9775 * editfns.c (Fformat): Caller changed.
9776
e5a29a10
CY
9777 * nsterm.m (ns_set_default_prefs): Delete function.
9778 (syms_of_nsterm): Initialize ns_command_modifier,
9779 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
9780 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
9781
2f1c6384
CY
9782 * xdisp.c (pos_visible_p): Check for invisible text at the correct
9783 position (Bug#4040).
9784
d427a9fa
EZ
97852010-01-09 Eli Zaretskii <eliz@gnu.org>
9786
9787 * editfns.c (Ffloat_time): Doc fix.
9788
21b9df2f
JD
97892010-01-09 Jan Djärv <jan.h.d@swipnet.se>
9790
9791 * xfns.c (Fx_create_frame): Don't create frame larger than display
9792 by default bug#3643.
9793
4b00d3b1
YM
97942010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9795
9796 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
9797 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
9798 windows above internal border.
9799
9800 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
9801 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
9802 windows above internal border.
9803
9804 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
9805 tool bar windows specially.
9806
9807 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
9808
9809 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
9810 specially.
9811 (XTflash): Take account of menu bar height.
9812
9813 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
9814 specially.
9815
5075d853
JD
98162010-01-08 Jan Djärv <jan.h.d@swipnet.se>
9817
ac146f82 9818 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
9819 also be true before we can return early (bug #5339).
9820
474217c8
CY
98212010-01-06 David Reitter <david.reitter@gmail.com>
9822
9823 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
9824 (Fns_display_usable_bounds): Rewrite, computing bounds properly
9825 (Bug#3233).
9826
c0e6d47d
JD
98272010-01-06 Jan Djärv <jan.h.d@swipnet.se>
9828
d0cf45b7
JD
9829 * font.c (font_open_entity): Enable chache and call cached_font_ok
9830 for the driver if defined.
9831 (QCuser_spec): New symbol.
9832 (font_spec_from_name): Save name as user-spec.
9833 (font_load_for_lface): Keep user-spec instead of name.
9834 (font_open_by_name): Save name as user-spec.
9835 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 9836 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
9837
9838 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
9839 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
9840 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
9841
9842 * font.h (struct font_driver): Add cached_font_ok.
9843
c0e6d47d
JD
9844 * xterm.c (x_clear_frame): Queue draw for scroll bars.
9845
7c583cd8
JD
98462010-01-05 Jan Djärv <jan.h.d@swipnet.se>
9847
9848 * xterm.c (x_new_font): Move code for setting rows/cols before
9849 resizing ...
ac146f82 9850 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
9851
9852 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
9853 (xg_frame_resized, xg_frame_set_char_size):
9854 Call xg_clear_under_internal_border.
7c583cd8 9855 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 9856
03f77f0a
CY
98572010-01-05 Chong Yidong <cyd@stupidchicken.com>
9858
9859 * keyboard.c (read_key_sequence): Catch keyboard switch after
9860 making a new tty frame (Bug#5095).
9861
2a1ef5be
KH
98622010-01-05 Kenichi Handa <handa@m17n.org>
9863
9864 * fontset.c (fontset_find_font): Fix getting the frame pointer.
9865
e3eb1dae
SM
98662010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
9867
9868 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
9869 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
9870 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
9871
777013f2
MA
98722010-01-03 Michael Albinus <michael.albinus@gmx.de>
9873
9874 * dbusbind.c (xd_add_watch): Improve debug message.
9875 (xd_remove_watch): Improve debug message. If DATA is the session
9876 bus, unset D-Bus session environment.
9877 (Fdbus_init_bus): Pass the bus as argument to
9878 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 9879
8932b1c2
CY
98802010-01-01 Chong Yidong <cyd@stupidchicken.com>
9881
87231e2c
CY
9882 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
9883
4801c5fa
CY
9884 * lread.c (syms_of_lread): Make it clearer that these are the
9885 names of loaded files (Bug#5068).
9886
8932b1c2
CY
9887 * eval.c (run_hook_with_args): Handle the case where the global
9888 value has the obsolete single-function form (Bug#5026).
9889
11e3c684
CY
98902009-12-27 Chong Yidong <cyd@stupidchicken.com>
9891
9892 * minibuf.c (Fall_completions): Minor optimization.
9893
5b28ce35
EZ
98942009-12-26 Eli Zaretskii <eliz@gnu.org>
9895
5ce6e4f4
JB
9896 * .gdbinit (pgx): Fix display of composite glyphs.
9897 Display cmp.from and cmp.to as well.
9898 (pitx): Fix last change.
5b28ce35 9899
bcffff46
KH
99002009-12-25 Kenichi Handa <handa@m17n.org>
9901
9902 * composite.h (composition_adjust_point): Update prototype.
9903
9904 * composite.c (composition_reseat_it): Don't make a composition
9905 spanning over point.
9906 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
9907 composable characters.
9908 (composition_adjust_point): New arg NEW_PT. Callers changed.
9909
9910 * keyboard.c (command_loop_1): Force redisplay if the last point
9911 was within a composition.
9912 (adjust_point_for_property): Don't adjust point for automatic
9913 composition when called after buffer modification.
9914
3f670e9a
EZ
99152009-12-19 Eli Zaretskii <eliz@gnu.org>
9916
5ce6e4f4
JB
9917 * .gdbinit (pitx): Don't use enum names, use their values.
9918 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
9919 (pgx): Don't use enum names, use their values.
9920 (pitmethod): New helper command.
9921 (pitx): Use it to display iteration method.
9922 (pgrowit): New command.
9923
ad903955
EZ
9924 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
9925
3f670e9a
EZ
9926 Update dependencies in Makefile.in.
9927
9928 * Makefile.in (alloc.o): Depend on termhooks.h.
9929 (atimer.o): Depend on blockinput.h.
9930 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
9931 and frame.h.
9932 (callint.o): Depend on systime.h, coding.h, and composite.h.
9933 (callproc.o): Depend on buffer.h.
9934 (casefiddle.o): Don't depend on charset.h.
9935 (casetab.o): Depend on character.h.
9936 (ccl.o): Depend on composite.h.
9937 (chartab.o): Depend on ccl.h.
9938 (cm.o): Depend on dispextern.h.
9939 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
9940 (coding.o): Don't depend on $(INTERVALS_H).
9941 (composite.o): Don't depend on dispextern.h explicitly (it's in
9942 $(INTERVALS_H)). Depend on ccl.h.
9943 (data.o): Depend on systime.h, coding.h, composite.h,
9944 dispextern.h, font.h, and ccl.h.
9945 (dired.o): Depend on composite.h.
9946 (dispnew.o): Depend on coding.h. Don't depend explicitly on
9947 composite.h (it's in $(INTERVALS_H)).
9948 (doc.o): Depend on systime.h, coding.h, and composite.h.
9949 (editfns.o): Don't depend explicitly on dispextern.h.
9950 (emacs.o): Depend on frame.h and coding.h.
9951 (eval.o): Depend on coding.h, composite.h, and xterm.h.
9952 (fileio.o): Depend on frame.h and commands.h. Don't depend
9953 explicitly on dispextern.h.
9954 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
9955 composite.h.
9956 (fns.o): Don't depend on termhooks.h.
9957 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
9958 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
9959 coding.h, $(INTERVALS_H), window.h, xterm.h.
9960 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
9961 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
9962 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
9963 fontset.h, ccl.h, and ftfont.h.
9964 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
9965 (gtkutil.o): Depend on dispextern.h and composite.h.
9966 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
9967 termhooks.h, and ccl.h.
9968 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
9969 (intervals.o): Depend on systime.h and coding.h.
9970 (keyboard.o): Depend on composite.h and coding.h.
9971 (keymap.o): Depend on coding.h and frame.h.
9972 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
9973 (macros.o): Depend on systime.h, coding.h, and composite.h.
9974 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
9975 and atimer.h.
9976 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
9977 dispextern.h explicitly.
0b5397c2
SM
9978 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
9979 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
9980 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
9981 (regex.o): Don't depend on charset.h.
9982 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
9983 (search.o): Don't depend explicitly on composite.h.
9984 (sound.o): Depend on atimer.h and systime.h.
9985 (syntax.o): Don't depend explicitly on composite.h.
9986 (sysdep.o): Depend on coding.h and composite.h.
9987 (term.o): Depend on xterm.h and buffer.h.
9988 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
9989 (textprop.o): Don't depend on dispextern.h explicitly.
9990 (undo.o): Depend on dispextern.h.
9991 (window.o): Depend on coding.h and termhooks.h. Don't depend on
9992 dispextern.h and composite.h explicitly.
9993 (xdisp.o): Depend on ccl.h.
9994 (xfaces.o): Depend on coding.h and ccl.h.
9995 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
9996 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
9997 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
9998 ftfont.h.
9999 (xgselect.o): New dependency.
10000 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
10001 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
10002 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
10003 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
10004 (xsmfns.o): Depend on frame.h and dispextern.h.
10005 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
10006 sysselect.h.
10007
7a6f7fea
AS
100082009-12-19 Andreas Schwab <schwab@linux-m68k.org>
10009
10010 * font.c (Fclear_font_cache): Pass correct cache argument to
10011 font_clear_cache.
10012
f4c21026
AS
100132009-12-16 Andreas Schwab <schwab@linux-m68k.org>
10014
10015 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
10016 twice.
10017
f7ab0997
CY
100182009-12-15 Chong Yidong <cyd@stupidchicken.com>
10019
10020 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
10021 calling file-remote-p. Reported by Jim Meyering.
10022
fa8e045a
MA
100232009-12-15 Michael Albinus <michael.albinus@gmx.de>
10024
10025 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 10026 avoid compiler warnings. (Bug #5217)
fa8e045a 10027
a63dba42
KH
100282009-12-14 Kenichi Handa <handa@m17n.org>
10029
10030 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
10031 in 8-bit encoding.
10032
5ce6e4f4 100332009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
10034
10035 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
10036 tooltip windows.
10037
223e5fc6
JD
100382009-12-13 Jan Djärv <jan.h.d@swipnet.se>
10039
36acb2a7
JD
10040 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
10041 Xatom_net_window_type.
10042
10043 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
10044 Xatom_net_window_type.
10045
b8f00677
JD
10046 * xterm.c (my_log_handler): New function.
10047 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 10048 so we can filter out buggy messages. (Bug #5120).
b8f00677 10049
e5f0bc9a
JD
10050 * xterm.c (xg_scroll_callback): Parameter list changed,
10051 use parameter GtkScrollType to determine scroll/line/page.
10052 Only allow dragging if a button < 4 is grabbed (bug #5177).
10053 (xg_end_scroll_callback): New function.
10054 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
10055 xg_create_scroll_bar.
10056
10057 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
10058 (scroll_end_callback): Remove.
10059 (xg_create_scroll_bar): Add parameter end_callback, bind it to
10060 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 10061 bug #5177.
e5f0bc9a
JD
10062 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
10063 bug #5177.
10064
10065 * gtkutil.h (XG_LAST_SB_DATA): Remove.
10066 (xg_create_scroll_bar): Add GCallback end_callback.
10067
223e5fc6
JD
10068 * xftfont.c (QClcdfilter): New variable.
10069 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
10070 (syms_of_xftfont): Initialize QClcdfilter.
10071
3c055b77
JD
100722009-12-12 Jan Djärv <jan.h.d@swipnet.se>
10073
10074 * xsettings.c (struct xsettings): Add member seen.
10075 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 10076 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
10077 (apply_xft_settings): Only update Xft settings with what member seen
10078 indicates as new.
10079
05fe33ff
EZ
100802009-12-12 Eli Zaretskii <eliz@gnu.org>
10081
c4cc8b9a 10082 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
10083 (struct glyph): Use EMACS_INT for charpos.
10084 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
10085 region_beg_charpos, region_end_charpos,
10086 redisplay_end_trigger_charpos, and also for
10087 iterator_stack_entry.end_charpos and
10088 iterator_stack_entry.stop_charpos.
10089
e8d7886a
JD
100902009-12-12 Jan Djärv <jan.h.d@swipnet.se>
10091
5ce6e4f4 10092 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
10093 (xg_create_scroll_bar): Call scroll_end_callback on button release
10094 event (bug #5177).
10095 (xg_event_is_for_scrollbar): != replaced with ==.
10096
d0db2ec8
KH
100972009-12-12 Kenichi Handa <handa@m17n.org>
10098
10099 * ftfont.c (struct ftfont_info): New member matrix.
10100 (ftfont_open): Setup xftfont_info->matrix.
10101 (MFLTFontFT): New member matrix.
10102 (FLOOR, CEIL, ROUND): New macros.
10103 (ftfont_get_metrics): Handle matrix transformation.
10104 (ftfont_shape_by_flt): New arg matrix. Callers changed.
10105
10106 * xftfont.c (struct xftfont_info): New member matrix.
10107 (xftfont_open): Setup xftfont_info->matrix.
10108
101092009-12-10 Kenichi Handa <handa@m17n.org>
10110
10111 * xdisp.c (append_space_for_newline): Consider face-remapping.
10112
2cc7b62f
AS
101132009-12-09 Andreas Schwab <schwab@linux-m68k.org>
10114
b87dd913
AS
10115 * xsettings.c: Include "keyboard.h".
10116
eba5eb94
AS
10117 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
10118
2cc7b62f
AS
10119 Fix implicit function declarations.
10120 * cmds.c: Include "frame.h".
10121 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
10122 * frame.h: Move declaration of delete_frame outside of
10123 HAVE_WINDOW_SYSTEM.
10124
a4ef73c8
CY
101252009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
10126
10127 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
10128
10129 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
10130 GTK builds.
10131
944a300c
AS
101322009-12-07 Andreas Schwab <schwab@linux-m68k.org>
10133
10134 * unexelf.c (unexec): Don't search for .data twice.
10135
022eef62
CY
101362009-12-05 Chong Yidong <cyd@stupidchicken.com>
10137
426ac949
CY
10138 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
10139 if push failed.
10140 (handle_line_prefix): Set avoid_cursor_p here. Check return value
10141 of push_display_prop (Bug#5000).
10142
022eef62
CY
10143 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
10144 value of font_list_entities (Bug#5085).
10145
be95bee9
JB
101462009-12-04 Juanma Barranquero <lekktu@gmail.com>
10147
10148 Fix `string-to-number' to deal consistently with integers and floats.
10149 * lread.c (isfloat_string): New argument ignore_trailing to accept all
10150 trailing characters, not just whitespace.
10151 (read1): Pass new arg 0 to keep old behavior.
10152 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
10153 trailing chars, as it is already done for integers. Doc fixes.
10154 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
10155
24c2d7ce
EZ
101562009-12-04 Eli Zaretskii <eliz@gnu.org>
10157
0b5397c2
SM
10158 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
10159 Delete unused enumeration value.
24c2d7ce 10160
7e694795
EZ
101612009-12-03 Eli Zaretskii <eliz@gnu.org>
10162
10163 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
10164
84b31826
SM
101652009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
10166
10167 * process.c (Fmake_network_process): Fix up the tests for
10168 "connectionless socket", so they DTRT for seqpacket sockets as well.
10169
f00c449b
SM
101702009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
10171
10172 * process.c (Qseqpacket): New symbol.
10173 (HAVE_SEQPACKET): New macro.
10174 (Fmake_network_process): Accept new :type `seqpacket'.
10175 (init_process): Add `seqpacket' feature when applicable.
10176 (syms_of_process): Initialize Qseqpacket.
10177
8096a0ff
YM
101782009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10179
10180 * font.c (font_load_for_lface, font_open_by_name): Don't store name
10181 if entity is Qnil.
10182
3e0de07f
SM
101832009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
10184
10185 * print.c (print_preprocess): Preprocess the key_and_value table of
10186 hashtables, even tho they're "hidden" (bug#5082).
10187
abeafb2a
JD
101882009-11-29 Jan Djärv <jan.h.d@swipnet.se>
10189
10190 * frame.c (frame_make_pointer_invisible)
10191 (frame_make_pointer_visible): Declare f before statements.
10192
4bf47195
EZ
101932009-11-28 Eli Zaretskii <eliz@gnu.org>
10194
10195 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
10196 omitted dependencies on lisp.h.
10197
c525b3f2
JD
101982009-11-27 Jan Djärv <jan.h.d@swipnet.se>
10199
ece2d4ed
JD
10200 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
10201 is NULL.
10202
10203 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
10204
10205 * frame.c (frame_make_pointer_invisible)
3e0de07f 10206 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
10207 frame.
10208
c525b3f2
JD
10209 * search.c (simple_search): Remove warning by making *p const.
10210
2f00e299
DN
102112009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
10212
10213 * xdisp.c (power_letter): Remove duplicate const.
10214
084b049b
JD
102152009-11-25 Jan Djärv <jan.h.d@swipnet.se>
10216
a1fadc6f
JD
10217 * term.c (delete_tty): Remove check for last terminal (bug#4970).
10218
5ce6e4f4 10219 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
10220 defaults (bug #5025).
10221
28259cac
SM
102222009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
10223
10224 * insdel.c (adjust_markers_for_delete): Move it in the
10225 right direction! (bug#4803)
10226
e8e14166
YM
102272009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10228
10229 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
10230
10231 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
10232
86677b58
GM
102332009-11-24 Glenn Morris <rgm@gnu.org>
10234
10235 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
10236
581e51e8
JD
102372009-11-23 Jan Djärv <jan.h.d@swipnet.se>
10238
cfc86c7a
JD
10239 * Makefile.in: Must create deps for ecrt0.o in its rule.
10240
581e51e8
JD
10241 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
10242 because that is what Gtk+ font dialog understands.
10243
10244 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
10245 of Fcopy_sequence.
10246 (font_open_by_name): Put name given into QCname for font-object returned.
10247
10248 * frame.c (x_set_font): Save original font name as frame parameter
10249 font-parameter.
10250
10251 * xsettings.c (set_default_xft_settings): New function.
10252 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
10253 is found.
10254
8b264ecb
AS
102552009-11-22 Andreas Schwab <schwab@linux-m68k.org>
10256
10257 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
10258 searching backwards through multibyte buffer.
10259
872870b2
JD
102602009-11-21 Jan Djärv <jan.h.d@swipnet.se>
10261
10262 * xterm.c: #include xgselect.h.
10263 (x_initialize): Call xgselect_initialize.
10264
10265 * xsettings.c (something_changedCB): C++ comments => C comments.
10266 (init_gconf): Do not deal with any GLib file descriptors, xg_select
10267 does that now.
10268
10269 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
10270 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
10271 (scroll_bar_button_cb): Remove.
5ce6e4f4 10272 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
10273 event.
10274 (xg_create_scroll_bar): Don't bind button-press-event and
10275 button-release-event.
10276
10277 * process.c: Include xgselect.h if defined (USE_GTK) ||
10278 defined (HAVE_GCONF).
10279 (wait_reading_process_output): Call xg_select for the same condition.
10280
10281 * xgselect.c (xg_select): New function to better integrate with
10282 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
10283
10284 * xgselect.h: New file, declare xg_select, xgselect_initialize.
10285
10286 * Makefile.in (XOBJ): Add xgselect.o.
10287
62a6e103
AS
102882009-11-21 Andreas Schwab <schwab@linux-m68k.org>
10289
0b5397c2
SM
10290 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
10291 Remove ignored second argument. All callers changed.
62a6e103
AS
10292 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
10293 (RE_STRING_CHAR_AND_LENGTH): Likewise.
10294 * xdisp.c (string_char_and_length): Likewise.
10295
b0ca0f33
DN
102962009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
10297
10298 * xterm.c (x_new_font):
10299 * print.c (print_object):
10300 * cmds.c (Fself_insert_command): Move declarations before statements.
10301
dd5a6279
CY
103022009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
10303
10304 * s/cygwin.h: Remove unneeded linker flags.
10305
4a8e097d
JD
103062009-11-20 Jan Djärv <jan.h.d@swipnet.se>
10307
0d1d0d26
JD
10308 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
10309
10310 * xsettings.h: Declare xsettings_get_system_font.
10311
10312 * xsettings.c (xsettings_get_system_font): New function.
10313 (init_gconf): No use initiating gconf unless we have Xft also.
10314 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
10315 HAVE_GCONF.
10316
4a8e097d
JD
10317 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
10318 add a blank entry so it doesn't collapse into nothing.
10319
8ab1650e
SM
103202009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
10321
10322 * lread.c (Funintern): Comment out last change.
10323
82c602f0
RS
103242009-11-19 Richard Stallman <rms@gnu.org>
10325
10326 * lread.c (Funintern): Error if symbol is t or nil.
10327
87e32266
SM
103282009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
10329
10330 * insdel.c (make_gap_larger): Don't make as many assumptions about the
10331 representation of Lisp integers.
10332 Reported by MJ Chan <mjchan.inbox@gmail.com>.
10333
1b9ac145
AS
103342009-11-17 Andreas Schwab <schwab@linux-m68k.org>
10335
10336 * lisp.h: Remove declaration of Ffont_get_system_font.
10337 * xfns.c: Move include of "xsettings.h".
10338 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
10339
dfb3c4c6
JD
103402009-11-17 Jan Djärv <jan.h.d@swipnet.se>
10341
87e32266
SM
10342 * xsettings.c (something_changedCB, Ffont_get_system_font):
10343 Check use_system_font.
dfb3c4c6
JD
10344 (syms_of_xsettings): DEFVAR font-use-system-font.
10345
9370c1d8
AS
103462009-11-17 Andreas Schwab <schwab@linux-m68k.org>
10347
25fe851a
AS
10348 * xfns.c (x_default_font_parameter): Remove dead assignment.
10349
9370c1d8
AS
10350 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
10351
637fa988
JD
103522009-11-17 Jan Djärv <jan.h.d@swipnet.se>
10353
87e32266 10354 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 10355 not have FC_LCD_*. #define them if not there.
a6eb20d8 10356
87e32266 10357 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 10358
637fa988
JD
10359 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
10360
10361 * xterm.c (handle_one_xevent): Call xft_settings_event for
10362 ClientMessage, PropertyNotify and DestroyNotify.
10363 (x_term_init): If we have XFT, get DPI from Xft.dpi.
10364 Call xsettings_initialize.
10365
10366 * xftfont.c (xftfont_fix_match): New function.
10367 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
10368 Call xftfont_fix_match after XftFontMatch.
10369
10370 * xfont.c (xfont_driver): Initialize all members.
10371
87e32266
SM
10372 * xfns.c (x_default_font_parameter):
10373 Try font from Ffont_get_system_font.
637fa988
JD
10374 Do not get font from x_default_parameter if we got one from
10375 Ffont_get_system_font.
87e32266 10376 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
10377
10378 * w32font.c (w32font_driver): Initialize all members.
10379
10380 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
10381
10382 * lisp.h: Declare syms_of_xsettings.
10383
87e32266
SM
10384 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
10385 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
10386
10387 * ftfont.c (ftfont_filter_properties): New function.
10388
10389 * frame.c (x_set_font): Remove unused variable lval.
10390
87e32266 10391 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
10392
10393 * font.c (font_put_extra): Don't return if val is nil, it means
10394 boolean option is off.
10395 (font_parse_fcname): Collect all extra properties in extra_props
10396 and call filter_properties for all drivers with extra_props and
10397 font as parameter.
87e32266
SM
10398 (font_open_entity): Do not use cache, it does not pick up new
10399 fontconfig settings like hinting.
637fa988
JD
10400 (font_load_for_lface): If spec had a name in it, store it in entity.
10401
a73f9c9d 10402 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
10403
10404 * config.in: HAVE_GCONF is new.
10405
10406 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
10407 xsettings.o is new.
10408
5a942932
KH
104092009-11-17 Kenichi Handa <handa@m17n.org>
10410
10411 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
10412 back to the default font in case that no suitable font is found.
10413
b7c7a4d1
SM
104142009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
10415
10416 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
10417 Suggested by Chad Brown <yandros@mit.edu>.
10418 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
10419
072f1e39
JD
104202009-11-16 Jan Djärv <jan.h.d@swipnet.se>
10421
10422 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
10423
5d1e70a2
AS
104242009-11-14 Andreas Schwab <schwab@linux-m68k.org>
10425
87e32266 10426 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 10427
a53cfbe5
JD
104282009-11-14 Jan Djärv <jan.h.d@swipnet.se>
10429
473a99b7
JD
10430 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
10431 has a parent.
10432
a53cfbe5 10433 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 10434 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
10435
10436 * config.in: Generated (AUTO_DEPEND).
10437
f04bb9b2
MA
104382009-11-13 Michael Albinus <michael.albinus@gmx.de>
10439
b7c7a4d1 10440 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
10441 Vdbus_registered_functions_table, because it contains also
10442 properties. Fix docstring.
b7c7a4d1 10443 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 10444
8f11f7ec
SM
104452009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
10446
10447 * alloc.c (mark_object): Don't reprocess marked strings.
10448 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
10449 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
10450
8a605fe8
KH
104512009-11-13 Kenichi Handa <handa@m17n.org>
10452
8f11f7ec 10453 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
10454 semantics of Vword_combining_categories.
10455 (Vword_combining_categories): Describe the slight change of the
10456 semantics.
10457
241c4680
EZ
104582009-11-13 Eli Zaretskii <eliz@gnu.org>
10459
10460 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
10461
10462 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
10463
5d58e44c
SM
104642009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
10465
10466 * xdisp.c (syms_of_xdisp): Fix typo in last change.
10467
5e13f9d3
JB
104682009-11-12 Juanma Barranquero <lekktu@gmail.com>
10469
10470 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
10471
cf54c754
DR
104722009-11-11 David Reitter <david.reitter@gmail.com>
10473
10474 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
10475 variables to fix 2009-11-09 change.
10476
a4ada374
DN
104772009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
10478
91433552
DN
10479 * process.c (ifflag_def): Make flag_sym constant.
10480 (Fnetwork_interface_info): Use a constant pointer.
10481 (ifflag_table):
10482 * xfns.c (cursor_bits):
10483 * xdisp.c (power_letter):
10484 * termcap.c (speeds, esctab):
10485 * sysdep.c (baud_convert):
10486 * keyboard.c (lispy_accent_codes, modifier_names):
10487 * image.c (xbm_format, xpm_format, pbm_format, png_format)
10488 (jpeg_format, tiff_format, gif_format, svg_format)
10489 (interlace_start, interlace_increment, gs_format):
10490 * gtkutil.c (separator_names):
10491 * fringe.c (swap_nibble):
10492 * fns.c (base64_value_to_char, base64_char_to_value):
10493 * fileio.c (make_temp_name_tbl):
10494 * coding.c (suffixes): Make constant.
10495
f4265f6c
DN
10496 * frame.c (make_initial_frame):
10497 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
10498 build_string.
10499 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
10500
04420943
DN
10501 * s/freebsd.h:
10502 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
10503
0a5d24ae
DN
10504 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
10505 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
10506
a4ada374
DN
10507 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
10508 * xterm.c (syms_of_xterm):
10509 * xfaces.c (syms_of_xfaces):
10510 * xdisp.c (syms_of_xdisp):
10511 * lread.c (syms_of_lread):
10512 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
10513 build_string.
91433552 10514
a4ada374
DN
10515 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
10516
af98fc7f
SM
105172009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
10518
8ab1650e 10519 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 10520
e90292a9
JD
105212009-11-10 Jan Djärv <jan.h.d@swipnet.se>
10522
10523 * keyboard.h: Declare timer_check.
10524
10525 * keyboard.c (timer_check_2): New function that does what the old
10526 timer_check did.
10527 (timer_check): Call timer_check_2 until -1 or a non-zero time is
10528 returned, i.e. don't return -1 with timers pending.
10529
10530 * process.c: Remove extern declaration of timer_check.
10531
10532 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
10533 even if timer_check returned -1.
10534
af98fc7f
SM
10535 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
10536 xg_dialog_data.
e90292a9
JD
10537 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
10538 the event loop.
10539 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
10540 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
10541 Destroy the dialog after xg_dialog_run.
10542
045b83c0
SM
105432009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
10544
10545 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
10546
1fb99a3a
JD
105472009-11-10 Jan Djärv <jan.h.d@swipnet.se>
10548
10549 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
10550
04e452cb
JB
105512009-11-09 Juanma Barranquero <lekktu@gmail.com>
10552
10553 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
10554
ef7417fd
SM
105552009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
10556
10557 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
10558 w32menu.c, and nsmenu.m.
10559 Simplify the obsolete case where position is nil.
10560 (cleanup_popup_menu): New function, moved from nsmenu.m.
10561 (struct skp): Remove slot `notreal'.
10562 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
10563 adjust callers.
10564 (single_menu_item): Adjust call to parse_menu_item.
10565 (syms_of_menu): Defsubr x-popup-menu.
10566 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
10567 (keymap_panes): Don't export any more.
10568 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
10569 (xmenu_show): Declare.
10570 * keyboard.c (parse_menu_item): Remove arg `notreal'.
10571 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
10572 * keyboard.h (parse_menu_item): Update declaration.
10573 * xmenu.c (Fx_popup_menu): Remove.
10574 (syms_of_xmenu): Don't defsubr x-popup-menu.
10575 * w32menu.c (Fx_popup_menu): Remove.
10576 (syms_of_w32menu): Don't defsubr x-popup-menu.
10577 * nsmenu.m (cleanup_popup_menu): Remove.
10578 (ns_menu_show): Rename from ns_popup_menu and remove all the code
10579 moved to menu.c's Fx_popup_menu.
10580 (Fx_popup_menu): Remove.
10581 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
10582 menu_items (it's done in menu.c already).
10583
424d6179
SM
105842009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
10585
10586 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
10587 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
10588
c0df13a6 105892009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
10590
10591 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 10592 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
10593 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
10594 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
10595
2de9f71c
SM
105962009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
10597
10598 Let integers use up 2 tags to give them one extra bit and thus double
10599 their range.
10600 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
10601 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
10602 New macros.
10603 (enum Lisp_Type): Use them. Give explicit values.
10604 (Lisp_Type_Limit): Remove.
10605 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
10606 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
10607 Pay attention to USE_2_TAGS_FOR_INTS.
10608 (INTEGERP): Use LISP_INT_TAG_P.
10609 * fns.c (internal_equal): Simplify the default case.
10610 (sxhash): Use case_Lisp_Int.
10611 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
10612 any more.
10613 (Ftype_of): Use case_Lisp_Int.
10614 (store_symval_forwarding): Take into account the fact that Ints can
10615 now have more than one tag.
10616 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
686b968e 10617 (buffer_slot_type_mismatch):
2de9f71c
SM
10618 * xfaces.c (face_attr_equal_p):
10619 * print.c (print_object):
10620 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
10621 Use case_Lisp_Int.
10622
323637a2
EZ
106232009-11-06 Eli Zaretskii <eliz@gnu.org>
10624
7ac65b38
EZ
10625 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
10626
323637a2
EZ
10627 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
10628 warning.
10629
e511451f
JD
106302009-11-06 Jan Djärv <jan.h.d@swipnet.se>
10631
10632 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
10633
10634 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
10635
10636 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
10637 ButtonPressRelease and MotionNotify (bug#4870).
10638
5e2327cf
DN
106392009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
10640
5adc433e
DN
10641 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
10642
d67b4f80
DN
10643 * xterm.c (syms_of_xterm):
10644 * xselect.c (syms_of_xselect):
10645 * xmenu.c (syms_of_xmenu):
10646 * xfns.c (syms_of_xfns):
10647 * xfaces.c (syms_of_xfaces):
10648 * xdisp.c (syms_of_xdisp):
10649 * window.c (syms_of_window):
10650 * w32fns.c (syms_of_w32fns):
10651 * undo.c (syms_of_undo):
10652 * textprop.c (syms_of_textprop):
10653 * terminal.c (syms_of_terminal):
10654 * syntax.c (syms_of_syntax):
10655 * sound.c (syms_of_sound):
10656 * search.c (syms_of_search):
10657 * print.c (syms_of_print):
10658 * minibuf.c (syms_of_minibuf):
10659 * macros.c (syms_of_macros):
10660 * keymap.c (syms_of_keymap, initial_define_key)
10661 (initial_define_lispy_key):
10662 * keyboard.c (syms_of_keyboard):
10663 * insdel.c (syms_of_insdel):
10664 * image.c (syms_of_image):
10665 * fringe.c (syms_of_fringe):
10666 * frame.c (syms_of_frame):
10667 * fontset.c (syms_of_fontset):
10668 * fns.c (syms_of_fns):
10669 * fns.c (syms_of_fns):
10670 * fileio.c (syms_of_fileio):
10671 * fileio.c (syms_of_fileio):
10672 * eval.c (syms_of_eval):
10673 * doc.c (syms_of_doc):
10674 * dispnew.c (syms_of_display):
10675 * dired.c (syms_of_dired):
10676 * dbusbind.c (syms_of_dbusbind):
10677 * data.c (syms_of_data):
10678 * composite.c (syms_of_composite):
10679 * coding.c (syms_of_coding):
10680 * cmds.c (syms_of_cmds):
10681 * charset.c (define_charset_internal, syms_of_character):
10682 * ccl.c (syms_of_ccl):
10683 * category.c (syms_of_category, init_category_once):
10684 * casetab.c (syms_of_casetab):
10685 * casefiddle.c (syms_of_casefiddle):
10686 * callint.c (syms_of_callint):
10687 * bytecode.c (syms_of_bytecode):
10688 * buffer.c (keys_of_buffer, syms_of_buffer):
10689 * alloc.c (syms_of_alloc):
10690 * process.c (syms_of_process, init_process):
10691 * lread.c (syms_of_lread, init_obarray):
10692 * font.c (build_style_table):
10693 * emacs.c (syms_of_emacs, main): Replace calls to intern with
10694 intern_c_string, calls to make_pure_string with
10695 make_pure_c_string. Use pure_cons instead of Fcons.
10696
5e2327cf
DN
10697 * process.c (socket_options): Make it const.
10698 (set_socket_option, init_process): Use a const pointer.
10699
10700 * lread.c (intern_c_string): New function.
10701 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
10702 (defvar_int): Uset it. Make the name const char*.
10703
10704 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
10705 (defvar_int): Update prototypes.
10706 (DEFUN, EXFUN): Support for prototypes is now required.
10707 (intern_c_string): New prototype.
10708 (struct Lisp_Subr): Make symbol_name constant.
10709
10710 * font.c (struct table_entry): Remove unused member. Make NAMES
10711 constant.
10712 (weight_table, slant_table, width_table): Make constant.
10713
10714 * emacs.c (struct standard_args): Make name and longname constant.
10715
10716 * character.h (DEFSYM): Use intern_c_string.
10717
a56eaaef
DN
107182009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
10719
10720 * alloc.c (make_pure_c_string): New function.
10721
10722 * eval.c (Fautoload): Purecopy all arguments.
10723
f6a07420
KH
107242009-11-05 Kenichi Handa <handa@m17n.org>
10725
10726 * fileio.c (Finsert_file_contents): Be sure set coding-system of
10727 the buffer in case of replace.
10728
5d28d4b1
DN
107292009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
10730
10731 * puresize.h (BASE_PURESIZE): Increase to 1620000.
10732
b349d111
SM
107332009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
10734
d528b1ce
SM
10735 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
10736 when applicable (bug#4851).
10737
b349d111
SM
10738 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
10739 (P_): Support for prototypes is now required.
10740
c38eb027
CY
107412009-10-31 Chong Yidong <cyd@stupidchicken.com>
10742
10743 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
10744 (Bug#4827).
10745
0405f8d9
EZ
107462009-10-30 Eli Zaretskii <eliz@gnu.org>
10747
d528b1ce 10748 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 10749
ca0a881a
DN
107502009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
10751
10752 * puresize.h (BASE_PURESIZE): Increase to 1470000.
10753
d528b1ce
SM
10754 * lread.c (Fload): Purecopy the file name when building
10755 Vpreloaded_file_list.
ca0a881a 10756
47e0e0e4
JR
107572009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
10758
10759 * w32fns.c (syms_of_w32fns): Change default value of
10760 w32-scroll-lock-modifier to nil. (Bug#2827)
10761
057bce6f
JB
107622009-10-26 Juanma Barranquero <lekktu@gmail.com>
10763
782a943e 10764 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 10765
242bc74c
AS
107662009-10-26 Andreas Schwab <schwab@redhat.com>
10767
10768 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
10769
522d013a
JB
107702009-10-26 Juanma Barranquero <lekktu@gmail.com>
10771
10772 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
10773 For delta < 0, skip check that only makes sense when the mini-window
10774 is going to be enlarged. (Bug#4534)
10775
18060980
CY
107762009-10-25 Chong Yidong <cyd@stupidchicken.com>
10777
10778 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
10779 string in menu maps (Bug#4471).
10780
fec8f0fe
CY
107812009-10-24 Chong Yidong <cyd@stupidchicken.com>
10782
10783 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
10784 FRAME_NS_VIEW on terminal frames (Bug#4765).
10785
10d66ec0
AS
107862009-10-24 Andreas Schwab <schwab@linux-m68k.org>
10787
1cae01f7
AS
10788 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
10789 DBUS_TYPE_UINTnn separately to get proper sign extension.
10790
58a12889
AS
10791 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
10792 can properly handle unsigned types.
d528b1ce 10793 (make_uid, make_gid): Remove.
58a12889 10794
987c9327
AS
10795 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
10796 types again.
10797
522d013a 10798 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
10799 (system_process_attributes): Likewise.
10800
905a9ed3
DN
108012009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
10802
10803 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
10804
10805 * eval.c (Fautoload): Purecopy the filename. Simplify.
10806
10807 * category.c (Fdefine_category): Purecopy docstring.
10808
a599b3e8
AS
108092009-10-23 Andreas Schwab <schwab@linux-m68k.org>
10810
7b792fc9
AS
10811 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
10812
a599b3e8
AS
10813 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
10814
b35ac83e
CY
108152009-10-23 Chong Yidong <cyd@stupidchicken.com>
10816
10817 * window.c (Fwindow_edges, Fwindow_pixel_edges)
10818 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
10819 (Bug#4775).
10820
e8903e00
SM
108212009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
10822
10823 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
10824 (init_fileio_once):
10825 * lisp.h (init_fileio_once): Remove.
10826 * emacs.c (main): Don't call init_fileio_once.
10827
8f43cbf3
DN
108282009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
10829
10830 * puresize.h (BASE_PURESIZE): Increase to 1430000.
10831
26898943
AS
108322009-10-21 Andreas Schwab <schwab@linux-m68k.org>
10833
10834 * doprnt.c (doprnt): Fix overflow check.
10835
5c646d5a
JD
108362009-10-21 Jan Djärv <jan.h.d@swipnet.se>
10837
3132a7ea
JD
10838 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
10839
5c646d5a
JD
10840 * xterm.h (x_wait_for_event): Declare it.
10841
10842 * xterm.c (pending_event_wait): New variable.
10843 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
10844 see pending_event_wait.eventtype.
10845 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
10846 (x_new_font): Call change_frame_size with new rows/columns before we
10847 try to resize the frame.
5c646d5a 10848 (x_wait_for_event): New function.
d528b1ce
SM
10849 (x_set_window_size_1): Don't change gravity unless change_gravity
10850 is set.
5c646d5a
JD
10851 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
10852 don't change frame size, instead wait for the ConfigureNotify.
10853 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
10854 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
10855 (x_initialize): Initialize pending_event_wait.
10856
10857 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
10858 size.
10859
10860 * widget.c (EmacsFrameSetValues): Add comment.
10861 (EmacsFrameSetCharSize): Just call x_set_window_size.
10862
10863 * gtkutil.c (xg_frame_set_char_size): Flush events and call
10864 x_wait_for_event.
d528b1ce 10865 (flush_and_sync): Remove again.
5c646d5a
JD
10866 (xg_get_font_name): Suggest monospace if no previous font is known.
10867
e9c1637d
SM
108682009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
10869
10870 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 10871 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 10872
5a72cccb
YM
108732009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10874
10875 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
10876 processing pending events when event is filtered for input method.
ab04798f 10877 (Bug#3681)
5a72cccb 10878
2629aa37
JB
108792009-10-20 Juanma Barranquero <lekktu@gmail.com>
10880
10881 * fns.c: Add #endif accidentally removed in previous change.
10882
c3417a74
DN
108832009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
10884
10885 * fns.c: Remove code for unsupported system: MAC_OS.
10886 * image.c: Likewise. Include setjmp.h.
10887
9685cef2
JD
108882009-10-19 Jan Djärv <jan.h.d@swipnet.se>
10889
10890 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
10891 pixel -1 (bug #4742).
10892
d7306fe6
DN
108932009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
10894
019d2c4c
DN
10895 * process.c (create_pty): Remove conditionals for no longer
10896 supported systems: UNIPLUS and RTU.
10897
ee6bacd4
DN
10898 * xterm.c:
10899 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
10900
d7306fe6
DN
10901 * alloc.c: Do not define struct catchtag.
10902 * eval.c: Move struct catchtag definition ...
10903 * lisp.h: ... here.
10904
10905 * image.c: Move png.h #include earlier to avoid warnings.
10906
10907 * xterm.c:
10908 * xsmfns.c:
10909 * xselect.c:
10910 * xrdb.c:
10911 * xmenu.c:
10912 * xftfont.c:
10913 * xfont.c:
10914 * xfns.c:
10915 * xfaces.c:
10916 * xdisp.c:
10917 * window.c:
10918 * widget.c:
10919 * w32xfns.c:
10920 * w32uniscribe.c:
10921 * w32term.c:
10922 * w32select.c:
10923 * w32reg.c:
10924 * w32proc.c:
10925 * w32menu.c:
10926 * w32inevt.c:
10927 * w32heap.c:
10928 * w32font.c:
10929 * w32fns.c:
10930 * w32console.c:
10931 * w32.c:
10932 * w16select.c:
10933 * vm-limit.c:
10934 * unexsol.c:
10935 * unexec.c:
10936 * unexcw.c:
10937 * unexaix.c:
10938 * undo.c:
10939 * tparam.c:
10940 * textprop.c:
10941 * terminfo.c:
10942 * terminal.c:
10943 * termcap.c:
10944 * term.c:
10945 * syntax.c:
10946 * sound.c:
10947 * sheap.c:
10948 * search.c:
10949 * scroll.c:
10950 * region-cache.c:
10951 * regex.c:
10952 * ralloc.c:
10953 * process.c:
10954 * print.c:
b024548b
DN
10955 * nsterm.m:
10956 * nsselect.m:
10957 * nsmenu.m:
10958 * nsimage.m:
10959 * nsfont.m:
10960 * nsfns.m:
d7306fe6
DN
10961 * msdos.c:
10962 * minibuf.c:
10963 * menu.c:
10964 * marker.c:
10965 * macros.c:
10966 * keymap.c:
10967 * keyboard.c:
10968 * intervals.c:
10969 * insdel.c:
10970 * indent.c:
10971 * gtkutil.c:
10972 * ftxfont.c:
10973 * ftfont.c:
10974 * fringe.c:
10975 * frame.c:
10976 * fontset.c:
10977 * font.c:
10978 * fns.c:
10979 * floatfns.c:
10980 * filelock.c:
10981 * fileio.c:
10982 * emacs.c:
10983 * editfns.c:
10984 * dosfns.c:
10985 * doprnt.c:
10986 * doc.c:
10987 * dispnew.c:
10988 * dired.c:
10989 * dbusbind.c:
10990 * data.c:
10991 * composite.c:
10992 * coding.c:
10993 * cmds.c:
10994 * cm.c:
10995 * chartab.c:
10996 * charset.c:
10997 * character.c:
10998 * ccl.c:
10999 * category.c:
11000 * casetab.c:
11001 * casefiddle.c:
11002 * callproc.c:
11003 * callint.c:
11004 * bytecode.c:
11005 * buffer.c:
11006 * atimer.c: Include setjmp.h. (Bug#4643)
11007
fd5f21e6
SM
110082009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
11009
4c0354d7
SM
11010 Remove leftover table unibyte_to_multibyte_table.
11011 * character.c (unibyte_to_multibyte_table): Remove.
11012 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
11013 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
11014 * character.h (UNIBYTE_TO_CHAR): New macro.
11015 (MAKE_CHAR_MULTIBYTE): Use it.
11016 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
11017 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
11018 (message_dolog, set_message_1):
11019 * search.c (Freplace_match):
11020 * editfns.c (Fcompare_buffer_substrings):
11021 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
11022 (concat):
11023 * insdel.c (copy_text, count_size_as_multibyte):
11024 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
11025 * term.c (produce_glyphs):
11026 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
11027 * regex.c (RE_CHAR_TO_MULTIBYTE):
11028 * cmds.c (internal_self_insert):
11029 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
11030
fd5f21e6
SM
11031 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
11032
4418646e
DN
110332009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
11034
11035 * puresize.h (BASE_PURESIZE): Increase to 1310000.
11036
35f5c1d2
JB
110372009-10-16 Juanma Barranquero <lekktu@gmail.com>
11038
11039 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
11040
a0cd8f6b
AR
110412009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
11042
11043 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
11044 still needed under Tiger.
11045
11046 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
11047
11048 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
11049 __Apple__.
11050
11051 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
11052
01a8d3fa
KH
110532009-10-15 Kenichi Handa <handa@m17n.org>
11054
11055 * print.c (print_object): Escape a symbol like "2E10" too.
11056
bf6c75c9 110572009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
11058
11059 Cleanups and changes for 64-bit compile under Snow Leopard.
11060 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
11061
11062 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
11063
c5959062 11064 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
11065 (ns_findfonts, nsfont_list_family): Use long format in printf, and
11066 cast argument.
11067 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 11068 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
11069
11070 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
11071
11072 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
11073 where appropriate.
11074
11075 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
11076 where appropriate.
6e4780c5
JB
11077 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
11078 Use stringWithUTF8String.
bf6c75c9
AR
11079 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
11080
6e4780c5
JB
11081 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
11082 Add formal protocol mention to inheritance.
bf6c75c9
AR
11083 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
11084
6e4780c5
JB
11085 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
11086 Fix printf format.
bf6c75c9
AR
11087 (ns_query_color): Use CGFloat where appropriate.
11088 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 11089 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
11090 argument.
11091
3d87f118
AR
11092 * config.in (NS_HAVE_NSINTEGER): Drop.
11093
a95c8102
AR
11094 * dbusbind.c (dbus-method-return-internal)
11095 (dbus-method-error-internal): Use long format in printf, and cast
11096 argument.
11097
11098 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
11099 in printf, and cast argument.
11100
6873acca 11101 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
11102 cast argument.
11103
9ec6f100
GM
111042009-10-11 Glenn Morris <rgm@gnu.org>
11105
11106 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
11107
5be883cd
JD
111082009-10-08 Jan Djärv <jan.h.d@swipnet.se>
11109
11110 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
11111 menu bar with a small width so it doesn't enlarge the frame.
11112
d7a39b51
JB
111132009-10-08 Juanma Barranquero <lekktu@gmail.com>
11114
11115 * fontset.c (Fset_fontset_font): Fix typos in error messages.
11116
0c2b6f8e
GM
111172009-10-06 Glenn Morris <rgm@gnu.org>
11118
11119 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
11120 SOME_MACHINE_LISP (this enters indirectly via DOC).
11121
e02131a2
EZ
111222009-10-05 Eli Zaretskii <eliz@gnu.org>
11123
11124 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
11125
b4744254
EZ
111262009-10-04 Eli Zaretskii <eliz@gnu.org>
11127
11128 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
11129 Doc fix.
11130
dbf64827
JB
111312009-10-03 Martin Rudalics <rudalics@gmx.at>
11132
11133 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
11134
e9a0aef8
MA
111352009-10-02 Michael Albinus <michael.albinus@gmx.de>
11136
d528b1ce 11137 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
11138 used anymore outside fileio.c.
11139
11140 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
11141
64eb2b56
JB
111422009-10-01 Juanma Barranquero <lekktu@gmail.com>
11143
11144 * lisp.h (Qdelete_directory_internal):
11145 Declare, instead of Qdelete_directory.
11146
11147 * w32fns.c (Fsystem_move_file_to_trash): Use it.
11148
9d28c33e
SM
111492009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
11150
11151 * eval.c (Fcalled_interactively_p): Add `kind' argument.
11152
9d8f3bd9
MA
111532009-10-01 Michael Albinus <michael.albinus@gmx.de>
11154
9d28c33e 11155 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
11156 Fdelete_directory. It is not a command anymore. It has no file
11157 name handler.
11158
9694740b
SM
111592009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
11160
11161 * xdisp.c (get_next_display_element): Use an enum in last change.
11162
748e162f
KH
111632009-09-28 Kenichi Handa <handa@m17n.org>
11164
9694740b 11165 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
11166 unibyte_display_via_language_environment in handling
11167 Vnobreak_char_display.
11168
17efd58d
AR
111692009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11170
11171 * nsterm.h (ns_app_name): New extern variable.
11172
11173 * nsterm.m (ns_app_name): New variable.
11174 (ns_term_init): Set and use it.
11175 (ns_term_shutdown): Use it.
11176
11177 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
11178 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
11179
11180 * nsfns.m (ns_set_name_iconic, ns_set_name)
11181 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
11182 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
11183
9694740b
SM
11184 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
11185 Remove double-casting in client_data comparison.
31c2d412 11186
3208cb35
YM
111872009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11188
11189 * keyboard.c (make_lispy_event): Remember last wheel direction.
11190 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
11191
b7d552d6
GM
111922009-09-26 Glenn Morris <rgm@gnu.org>
11193
11194 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
11195 internal.elc. Add term/pc-win.elc.
11196 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
11197 term/x-win.elc.
11198 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
11199 term/w32-win.elc.
11200 (NS_SUPPORT): New.
11201 (lisp): Add NS_SUPPORT.
11202 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
11203
4ff670a8
DR
112042009-09-25 David Reitter <david.reitter@gmail.com>
11205
11206 * nsmenu.m (EmacsMenu-clear): Recognize application menu
11207 on Mac OS X 10.6+ (bug#4513).
11208
feabfb6c
JB
112092009-09-24 Juanma Barranquero <lekktu@gmail.com>
11210
11211 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
11212 some parts of Emacs code (like font selection) don't grok them.
11213 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 11214
de59072a
AS
112152009-09-24 Andreas Schwab <schwab@redhat.com>
11216
11217 * coding.c (decode_coding_iso_2022): Fix operator precedence.
11218
a489517b
JB
112192009-09-24 Juanma Barranquero <lekktu@gmail.com>
11220
11221 * dired.c (Fdirectory_files): Fix typo in docstring.
11222
0592970c
AR
112232009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
11224
11225 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
11226 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
11227 (EmacsScroller-setPosition:portion:whole:): Remove -display call
11228 under GNUstep.
11229 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
11230
11231 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
11232 glyph advancement.
11233
48e8a88b
AR
112342009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
11235
11236 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 11237 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
11238
11239 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
11240 deleted (bug #4492).
11241
e14f0a78
AR
11242 * nsfont.m (Vns_reg_to_script): New lisp variable.
11243 (syms_of_nsfont): Declare it.
11244 (ns_registry_to_script): New function.
11245 (ns_get_req_script): Call it.
11246 (ns_findfonts): Don't give up on non-unicode registry.
11247
11248 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
11249
5b650faa
SM
112502009-09-20 Tom Tromey <tromey@redhat.com>
11251
11252 * eval.c (find_handler_clause): Make stack-trace-on-error work in
11253 batch mode (bug#4228).
11254
a489517b 112552009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
11256
11257 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 11258 carefully. (Bug #4339)
0bae4e09 11259
fcfe06f3
CY
112602009-09-18 Chong Yidong <cyd@stupidchicken.com>
11261
d798ba87 11262 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 11263
31642728
AR
112642009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
11265
11266 * emacs.c (inhibit_x_resources): Update doc string for NS.
bba3e508
SM
11267 (main) [HAVE_NS]: Don't process --no-init-file option.
11268 Remove legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
11269
11270 * nsterm.h (ns_no_defaults): Remove.
11271
11272 * nsterm.m (ns_no_defaults): Remove.
11273 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
11274 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
11275 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
11276 don't update the NSWindow itself.
bba3e508
SM
11277 (EmacsView-windowWillUseStandardFrame:defaultFrame:):
11278 Improve state detection and store user rect ourselves. (Bug #3581)
31642728
AR
11279
11280 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
11281 ns_use_qd_smoothing.
11282
11283 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
11284 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 11285 (x-close-connection): Drop PSFlush() under OS X.
a489517b 11286 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 11287
8686ac71
JB
112882009-09-17 Juanma Barranquero <lekktu@gmail.com>
11289
11290 * emacs.c (inhibit_x_resources): New variable.
11291 (main) [HAVE_NS]: Don't process --quick command line option.
11292 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
11293
11294 * lisp.h (inhibit_x_resources): Declare it extern.
11295
11296 * w32reg.c (x_get_string_resource):
11297 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
11298
e227ba05
EZ
112992009-09-17 Eli Zaretskii <eliz@gnu.org>
11300
362654a6
JB
11301 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
11302 Add lisp/term/internal.elc.
e227ba05 11303
742d40e8
SM
113042009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
11305
11306 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
11307 (bug#4461).
11308
005bd5a2
DN
113092009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
11310
11311 * puresize.h (BASE_PURESIZE): Increase to 1290000.
11312
11313 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
11314 (OBJECTS_MACHINE): Remove, unused.
11315
f9af9719
SM
113162009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
11317
11318 * frame.c (x_get_resource_string): Remove unused.
11319
0307c7d2
JD
113202009-09-15 Jan Djärv <jan.h.d@swipnet.se>
11321
11322 * xterm.c (x_new_font): Call change_frame_size before calling
11323 x_set_window_size, in case frame size won't change.
11324
11325 * frame.c (x_set_font): Remove dead code.
11326
428b13d6
SM
113272009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
11328
11329 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
11330
5766c380
SM
113312009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
11332
11333 * lread.c (Fload): Don't output a message after loading an obsolete
11334 package any more (done in Lisp now).
11335
2fd0161b
CY
113362009-09-12 Chong Yidong <cyd@stupidchicken.com>
11337
11338 * fns.c (syms_of_fns): Doc fix (Bug#4227).
11339
bc5e75b6
SM
113402009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
11341
11342 * keymap.c (Fwhere_is_internal): Use nconc2.
11343
c31c985e
AM
113442009-09-11 Alan Mackenzie <acm@muc.de>
11345
11346 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
11347 batch mode.
11348
78012bd2
AS
113492009-09-11 Andreas Schwab <schwab@linux-m68k.org>
11350
11351 * xdisp.c (display_mode_element): Detect cycles.
11352
9d889332
SM
113532009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
11354
11355 * keymap.c (where_is_internal): Don't erroneously return nil right after
11356 filling the cache.
11357 (where_is_internal_1): Fix up typo.
11358
7ab5d780
GM
113592009-09-11 Glenn Morris <rgm@gnu.org>
11360
11361 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
11362 share a common doc-string.
11363
5238a749
SM
113642009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
11365
66d77eda
SM
11366 * keymap.c (get_keymap): Return the actual keymap symbol rather than
11367 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
11368
5238a749
SM
11369 * keymap.c (QCadvertised_binding): New constant.
11370 (syms_of_keymap): Initialize it.
11371 (Fwhere_is_internal): Try and use bindings from :advertised-binding
11372 if applicable.
11373
19f48442
SM
113742009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
11375
50d4ba39
SM
11376 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
11377 (parse_menu_item): Streamline since bindings are recomputed all the
11378 time anyway. Don't bother checking Vdefine_key_rebound_commands any
11379 more and don't support lmenu's menu-alias any more either.
11380
a88a5372
SM
11381 * keymap.c (where_is_internal_data): Make noindirect a boolean.
11382 (where_is_internal): Strip it down to only traverse the keymaps.
11383 Move the cache handling from Fwhere_is_internal to here.
11384 (Fwhere_is_internal): Move the handling of remapping and the choice of
11385 the best binding from where_is_internal to here.
11386 Unify the cached/noncached paths, so remapping is also handled
11387 correctly when the cache is used, and so the cache can be used to
11388 speed up remap-handling when applicable.
11389 Give preference to non-remapped bindings.
11390 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
11391 non-remapped bindings.
11392 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
11393 command remapping.
11394
19f48442
SM
11395 * xdisp.c (display_mode_element): Move list length limit from 50 to
11396 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
11397
599498c3 113982009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
11399
11400 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
11401
f9b7b5ac
SM
114022009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
11403
a53af587
JB
11404 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
11405 (Bug#4334)
11406
f9b7b5ac
SM
11407 * keymap.c (where_is_internal): Filter out shadowed remappings.
11408 Assume that where_is_internal returns unshadowed bindings to simplify
11409 the code and get rid of the gotos. Use ASIZE.
11410
04f4b72d
JD
114112009-09-04 Jan Djärv <jan.h.d@swipnet.se>
11412
4da146f2
JD
11413 * xterm.c (x_focus_changed): If we get a focusout and pointer
11414 is invisible, make it visible.
11415
04f4b72d
JD
11416 * xterm.h: Remove condition for declaration of
11417 x_*_window_to_frame.
11418
7cef7ce3
SM
114192009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
11420
11421 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
11422 initial terminal as well.
11423
a54fa5b7
JD
114242009-09-02 Jan Djärv <jan.h.d@swipnet.se>
11425
11426 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 11427 x_menubar_window_to_frame.
a54fa5b7 11428
50426a04 11429 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
11430 (XTmouse_position): Do not return valid positions
11431 for clicks in the menubar and the toolbar for Gtk+.
11432
11433 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
11434 if the widget for the event has the same top level as a frame,
11435 return the frame.
11436 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
11437 internal windows, bug #4122.
11438 (x_non_menubar_window_to_frame): Remove.
11439
5a021dd0
GM
114402009-09-02 Glenn Morris <rgm@gnu.org>
11441
11442 * buffer.c (default-major-mode): Move most of the doc from here...
11443 (major-mode): ... to here.
11444
548fe2f3
NR
114452009-08-30 Nick Roberts <nickrob@snap.net.nz>
11446
11447 * process.c (wait_reading_process_output): Keep the descriptor
11448 when pty is used by a non-child process, e.g., in I/O buffer of
11449 GDB this allows inferior to be restarted.
11450
e0840eef
EZ
114512009-08-29 Eli Zaretskii <eliz@gnu.org>
11452
11453 * xdisp.c (redisplay_internal): Remove redundant test and collapse
11454 both branches into one.
11455
82e98df4
SM
114562009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
11457
11458 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
11459 (main): Use enable-multibyte-characters rather than
11460 default-enable-multibyte-characters. Output a warning message when
11461 running a unibyte session.
11462
890617cb
YM
114632009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11464
11465 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
11466 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
11467 (copy_data_segment): Also copy __program_vars section.
11468 (copy_dyld_info) [LC_DYLD_INFO]: New function.
11469 (dump_it) [LC_DYLD_INFO]: Use it.
11470
11471 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
11472
e7adeadc
EZ
114732009-08-28 Eli Zaretskii <eliz@gnu.org>
11474
11475 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
11476 $(SRC)/buildobj.h.
ef1b0ba7 11477 (buildobj.h): Rename from $(SRC)/buildobj.h.
e7adeadc
EZ
11478 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
11479 $(SRC)/buildobj.h.
11480 (clean): Add buildobj.h.
11481
3ed8bbdc
TZ
114822009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
11483
11484 * print.c (print_object): Set escapeflag to 1 when printing
11485 hashtable keys and values.
11486
155a6764
SM
114872009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
11488
11489 * lread.c (read_integer): Use doubles (and potentially return a float
11490 number) as we do in string-to-number.
11491 (read1): Use strtol to read integers, signal errors on strtol's
11492 overflow and use floats if strtol's output is too large for
11493 Elisp integers.
11494
877610de
EZ
114952009-08-27 Eli Zaretskii <eliz@gnu.org>
11496
11497 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
11498 (make-buildobj-SH): Fix last change.
11499 (SRC): Move to before where it's first used.
11500
ef73e7be
KH
115012009-08-27 Kenichi Handa <handa@m17n.org>
11502
550c8289
KH
11503 * process.c (send_process): Use encode_coding_object instead of
11504 encode_coding_string to perform eol-conversion even if the string
11505 is unibyte.
11506
60afa08d
KH
11507 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
11508 character.
11509
ef73e7be 11510 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 11511 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 11512
7b3a82d7
DN
115132009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
11514
5654bf63
DN
11515 * callproc.c (Fcall_process): Remove always true #if.
11516
7b3a82d7
DN
11517 * lisp.h: Replace #if 0 code for checking with text pointing to
11518 the --enable-checking configure flag.
11519
11520 * emacs.c (main): Mention the --enable-profiling configure flag
11521 instead of using CFLAGS.
11522
878bde49
KR
115232009-08-26 Ken Raeburn <raeburn@raeburn.org>
11524
11525 * Makefile.in (buildobj.h): New target.
11526 (doc.o): Depend on it.
11527 (temacs${EXEEXT}): Don't generate buildobj.lst.
11528 (mostlyclean): Delete buildobj.h, not buildobj.lst.
11529 * makefile.w32-in ($(SRC)/buildobj.h): New target.
11530 ($(BLD)/doc.$(O)): Depend on it.
11531 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
11532 provided by Eli Zaretskii.)
11533 ($(TEMACS)): Don't generate buildobj.lst.
11534 * doc.c: Include buildobj.h.
11535 (buildobj): New static variable.
11536 (Fsnarf_documentation): Use it, instead of opening and reading
11537 buildobj.lst.
11538
1574224c
MA
115392009-08-25 Michael Albinus <michael.albinus@gmx.de>
11540
11541 * dbusbind.c (Fdbus_call_method)
11542 (Fdbus_call_method_asynchronously): Use English numeric format for
11543 timeout values in doc string.
11544
d9da2f45
KH
115452009-08-25 Kenichi Handa <handa@m17n.org>
11546
ef73e7be
KH
11547 * alloc.c (mark_char_table): New function.
11548 (mark_object): Use mark_char_table for a char-table.
11549
d9da2f45
KH
11550 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
11551 (CHAR_TABLE_REF): Use it.
11552
c8edcc01
KR
115532009-08-23 Ken Raeburn <raeburn@raeburn.org>
11554
11555 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
11556 before invoking the newly build emacs to check for load-path
11557 shadowing.
11558
7763401b
GM
115592009-08-22 Glenn Morris <rgm@gnu.org>
11560
11561 * Makefile.in (bootstrap_exe): New variable.
11562 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
11563 Use ${bootstrap_exe}.
11564
729eadda
EZ
115652009-08-22 Eli Zaretskii <eliz@gnu.org>
11566
11567 * coding.h (encode_coding_string): Don't encode unibyte strings.
11568 (Bug#4047)
11569
eb4c6ace
MA
115702009-08-22 Michael Albinus <michael.albinus@gmx.de>
11571
11572 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
11573
11574 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
11575 intended as hotfix only.
11576 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
11577
36e34d1b
AR
115782009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
11579
11580 * nsterm.m (ns_get_color): Update documentation properly for last
bba3e508
SM
11581 change, and clean up loose ends in the code left by it.
11582 Fix longstanding bug with 16-bit hex parsing, and add support for
36e34d1b
AR
11583 yet another X11 format (rgb:r/g/b) for compatibility.
11584 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
11585 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
11586
f983eb8a
SM
115872009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
11588
11589 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
11590
3f56d3c6
MA
115912009-08-20 Michael Albinus <michael.albinus@gmx.de>
11592
11593 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
11594 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
11595 (xd_initialize, xd_pending_messages): Check, whether
11596 $DBUS_SESSION_BUS_ADDRESS is set.
11597
fb641d68
YM
115982009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11599
11600 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
11601
11602 * nsterm.m (ns_get_color): Remove incompatible color formats again.
11603
cf59a374
GM
116042009-08-20 Glenn Morris <rgm@gnu.org>
11605
11606 * emacs.c (system-type): Doc fix.
11607
1373f3be
SM
116082009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
11609
11610 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
11611 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
11612
058ed861
MA
116132009-08-18 Michael Albinus <michael.albinus@gmx.de>
11614
1373f3be
SM
11615 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
11616 New functions.
058ed861
MA
11617 (xd_initialize): Revert change from 2009-08-16.
11618
563a866e 116192009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
11620
11621 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 11622 font-group vector, return nil.
5fc05db0 11623
e42bdf01
CY
116242009-08-17 Chong Yidong <cyd@stupidchicken.com>
11625
11626 * process.c (status_notify): Don't perform redisplay.
11627 (Fdelete_process, list_processes_1, process_send_signal):
11628 Expliticly perform redisplay.
11629 (wait_reading_process_output): Always check process status, but
11630 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
11631
4230ab74
KR
116322009-08-17 Ken Raeburn <raeburn@raeburn.org>
11633
1373f3be 11634 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
11635 (XFLOAT_INIT): New macro for storing a float value.
11636 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
11637 * fns.c (sxhash): Copy out the value of a float in order to
11638 examine its bytes.
11639 * dbusbind.c (xd_append_arg): Likewise.
11640
4230ab74
KR
11641 * emacs.c (main): Don't call syms_of_data twice.
11642
a0645cdd
MA
116432009-08-16 Michael Albinus <michael.albinus@gmx.de>
11644
11645 * dbusbind.c (xd_initialize): Add connection file descriptor to
11646 input_wait_mask, in order to let select() detect, whether a new
11647 message has been arrived.
ca4f31ea 11648 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 11649
485db0ba
MA
116502009-08-15 Michael Albinus <michael.albinus@gmx.de>
11651
1373f3be
SM
11652 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
11653 New functions.
485db0ba
MA
11654
11655 * lisp.h (xd_pending_messages): Declare.
11656
11657 * keyboard.c (readable_events): Call xd_pending_messages.
11658
b5b98ff4
CY
116592009-08-15 Chong Yidong <cyd@stupidchicken.com>
11660
1373f3be 11661 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 11662
f8354c6e
CY
11663 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
11664
b5b98ff4
CY
11665 * buffer.c (set_buffer_internal_1)
11666 (swap_out_buffer_local_variables): Check for unbound local
11667 variables (Bug#4138).
11668
8b9fc636
EZ
116692009-08-14 Eli Zaretskii <eliz@gnu.org>
11670
11671 * process.c (create_pty): Fix last change.
11672
ce959360
CY
116732009-08-13 Chong Yidong <cyd@stupidchicken.com>
11674
11675 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
11676 (xbm_load_image): Caller changed.
64b807c9 11677 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 11678
c7baf7e9
NR
116792009-08-13 Nick Roberts <nickrob@snap.net.nz>
11680
11681 * process.c (create_pty): New function.
11682 (Fstart_process): Use it to allow Emacs to just associate a pty
11683 with the buffer. See associated change in gdb-mi.el.
11684 (list_processes_1): Deal with no program name.
11685 (start_process_unwind): Use pid == -2 to mean no process.
11686
1ac9108a
SM
116872009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
11688
11689 * cmds.c (nonundocount): New global variable.
11690 (keys_of_cmds): Initialize it.
11691 (Fself_insert_command): Use it to combine upto 20 sequential chars
11692 into a single undo entry, just like the Qself_insert_command code in
11693 keyboard.c does.
11694 Call frame_make_pointer_invisible, also like the Qself_insert_command
11695 code in keyboard.c does.
11696 * keyboard.c (command_loop_1): Use the new global nonundocount rather
11697 than its own local replacement for it.
11698
e267324c
KR
116992009-08-10 Ken Raeburn <raeburn@raeburn.org>
11700
1ac9108a 11701 * fns.c (concat): Don't re-set string length to its current value.
77437343 11702
1ac9108a
SM
11703 * coding.h (decode_coding_string, encode_coding_string):
11704 Use SBYTES macro.
f0bed503 11705
1ac9108a 11706 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
11707 (doprnt): Merge with doprnt1, discarding lispstrings code.
11708 * lisp.h (doprnt_lisp): Don't declare.
11709
416e006d
JL
117102009-08-07 Juri Linkov <juri@jurta.org>
11711
11712 * puresize.h (BASE_PURESIZE): Increase to 1270000.
11713
6f7d5780
DN
117142009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
11715
11716 * print.c (syms_of_print): Undo previous change.
11717
f19a0f5b
TZ
117182009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
11719
11720 * lread.c (read1, syms_of_lread): Read hashtables back from the
11721 readable format.
11722
11723 * print.c (print_preprocess, print_object): Print hashtables fully
11724 and readably.
11725 (syms_of_print): Provide 'hashtable-print-readable.
11726
b9173dc2
AR
117272009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
11728
11729 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
11730 no family set.
11731 (nsfont_open): Handle case when entity has no family.
11732
1586503c
AR
117332009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
11734
11735 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
11736 element, not a list, for match case.
11737
087048cd
KH
117382009-07-28 Kenichi Handa <handa@m17n.org>
11739
11740 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
11741 rigidly.
11742
11743 * xfont.c (xfont_list_pattern): Don't ignore the return value of
11744 font_parse_xlfd. Check font properties more rigidly.
11745
780c2506
DN
117462009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
11747
31fd7c5c
JB
11748 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
11749 bsd-common.h.
780c2506 11750
a8c0cc18
KH
117512009-07-27 Kenichi Handa <handa@m17n.org>
11752
11753 * xfaces.c (face_with_height): Call font_clear_prop.
11754
4fbe2306
CY
117552009-07-26 Chong Yidong <cyd@stupidchicken.com>
11756
111d9af3
CY
11757 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
11758
11759 * xterm.c (x_term_init): Use Qx.
11760
4fbe2306
CY
11761 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
11762
1ac9108a 11763 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
11764 (ns_get_color): Revert 2009-07-16 change.
11765
beb0b7f9
EZ
117662009-07-25 Eli Zaretskii <eliz@gnu.org>
11767
11768 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 11769 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 11770
2baf5e76
KR
117712009-07-25 Ken Raeburn <raeburn@raeburn.org>
11772
1ac9108a
SM
11773 * coding.h (decode_coding_string, encode_coding_string):
11774 Use SCHARS macro.
8890e5f5 11775
2baf5e76 11776 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 11777 (load_depth): Delete.
2baf5e76
KR
11778 (Qload_in_progress): New variable.
11779 (load_unwind): Don't reference load_depth or load_in_progress.
11780 (Fload): Likewise; specbind Qload_in_progress instead.
11781 (init_lread): Don't initialize load_depth.
11782 (syms_of_lread): Initialize and protect Qload_in_progress.
11783
1395c6f5
AR
117842009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
11785
11786 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
11787
4e2f36cf
AR
117882009-07-23 Yavor Doganov <yavor@gnu.org>
11789
11790 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
11791
5dd9a6f7
AR
117922009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
11793
11794 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
11795 Bugs 3792, 3720, 2402.
11796 (ns_lookup_indexed_color): Check for bad index.
11797 (ns_index_color): Init unused slot to 0.
11798 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
11799 Bug 3714, possibly 3082.
5dd9a6f7 11800
c902b920
JR
118012009-07-22 Jason Rumney <jasonr@gnu.org>
11802
1ac9108a
SM
11803 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
11804 Position IME window at cursor (Bug#2570).
c902b920
JR
11805 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
11806 (globals_of_w32fns): Dynamically load functions required above.
11807
11808 * w32term.c (w32_draw_window_cursor): Send message to reposition
11809 any IME window.
11810
090101cf
CY
118112009-07-21 Chong Yidong <cyd@stupidchicken.com>
11812
11813 * fileio.c: Revert 2009-07-16 changes.
11814 (Vauto_save_include_big_deletions): New variable.
11815 (Fdo_auto_save): Disable auto-save only if
11816 auto-save-include-big-deletions is nil.
11817
e6583e3d
CY
118182009-07-21 Chong Yidong <cyd@stupidchicken.com>
11819
11820 * xdisp.c (move_it_to): For continued lines ending in a tab, take
11821 the overflowed pixels into account (Bug#3879).
11822
ece435a5
KR
118232009-07-21 Ken Raeburn <raeburn@raeburn.org>
11824
11825 * lread.c (load_depth): New variable.
11826 (Fload, load_unwind, init_lread): Set it to the load recursion
11827 depth; set load_in_progress as a simple boolean based on the
11828 current load_depth. (Bug#3892)
11829
40b2d973
AR
118302009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11831
11832 * nsfont.m (ns_has_attribute): Remove.
11833 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
11834
10be7e0d
JL
118352009-07-18 Juri Linkov <juri@jurta.org>
11836
11837 * process.c (Fset_process_query_on_exit_flag): Mention killing
11838 a buffer in docstring.
11839
fa055055
KH
118402009-07-17 Kenichi Handa <handa@m17n.org>
11841
11842 * casetab.c (shuffle): Fix the logic of setting up the cycle.
11843
042f7b69
YM
118442009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11845
11846 * nsfns.m (Fns_set_alpha): Remove function.
11847 (syms_of_nsfns): Don't defsubr it.
11848
11849 * nsterm.m (ns_get_color): Remove incompatible color formats.
11850 (ns_color_to_lisp): Generate #rrggbb color format string.
11851
4be941e3
RS
118522009-07-16 Richard Stallman <rms@gnu.org>
11853
11854 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
11855 (Fset_buffer_auto_saved): Handle save_length = -2.
11856
4e6b227d
CY
118572009-07-16 Chong Yidong <cyd@stupidchicken.com>
11858
11859 * xterm.c (Qx_gtk_map_stock): New var.
11860
11861 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
11862 of calling intern each time.
11863
a1856973
YM
118642009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11865
11866 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
11867 does tiling.
11868
11869 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
11870
497e54d8
KH
118712009-07-14 Kenichi Handa <handa@m17n.org>
11872
72d36834
KH
11873 * font.c (font_vconcat_entity_vectors): New function.
11874 (struct font_sort_data): New member font_driver_preference.
11875 (font_compare): Check font_driver_preference.
11876 (font_sort_entities): The format of the first argument changed.
11877 (font_delete_unmatched): Likewise.
11878 (font_list_entities): The return type changed.
11879 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
11880 (font_find_for_lface): Adjuste for the above changes.
11881 Don't suppress the checking of C even if the repertory supports it.
11882 (Flist_fonts): Adjust for the above changes.
72d36834 11883
1ac9108a
SM
11884 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
11885 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
11886 Reject a font who has adstyle property that is different from a
11887 langname derived from registry property.
1ac9108a 11888 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 11889
b6046155
EZ
118902009-07-13 Eli Zaretskii <eliz@gnu.org>
11891
11892 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
11893 local copy of dirfilename.
11894
fb6b6049
KH
118952009-07-13 Kenichi Handa <handa@m17n.org>
11896
e2402a5e
KH
11897 * chartab.c (sub_char_table_ref_and_range): Fix the range check
11898 against max_char.
11899
fb6b6049
KH
11900 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
11901 calling XSYMBOL (sym).
11902
65156807
EZ
119032009-07-11 Eli Zaretskii <eliz@gnu.org>
11904
1ac9108a
SM
11905 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
11906 New function.
11907 (directory_files_internal) [WINDOWSNT]:
11908 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
11909 the filesystem of the directory is fast or slow.
11910
11911 * w32.c (logon_network_drive): Don't assume PATH is an absolute
11912 file name.
11913 (is_slow_fs): New function.
11914 (stat): Use it to determine whether to issue more system calls to
11915 get accurate file attributes, when w32-get-true-file-attributes is
11916 `local'.
11917
e0ab5fcf
JD
119182009-07-10 Jan Djärv <jan.h.d@swipnet.se>
11919
11920 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 11921 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
11922 parameter font-parameter as default to the font dialog.
11923
784ceded
KH
119242009-07-10 Kenichi Handa <handa@m17n.org>
11925
11926 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
11927
fb8edc0b
EZ
119282009-07-09 Eli Zaretskii <eliz@gnu.org>
11929
1ac9108a 11930 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 11931
fb8edc0b
EZ
11932 * w32.c (stat): Treat UNC file names as residing on remote
11933 drives. (Bug#3542)
11934
635c75b1
KH
119352009-07-09 Kenichi Handa <handa@m17n.org>
11936
11937 * fontset.c (fontset_find_font): Fix previous change.
11938
c1d5ce94
MA
119392009-07-08 Michael Albinus <michael.albinus@gmx.de>
11940
11941 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
11942 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
11943 error flag.
11944
edb61b39
KH
119452009-07-08 Kenichi Handa <handa@m17n.org>
11946
374bf7e4
KH
11947 * fontset.c (fontset_find_font): Fix the logic of handling
11948 charset_matched.
11949 (font_for_char): Delete unused var.
11950 (generate_ascii_font_name): Delete it.
11951
edb61b39
KH
11952 * coding.h (JIS_TO_SJIS2): Fix the code range check.
11953
11954 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
11955 (encode_coding_sjis): Fix the code range check.
11956
0f3f018c
CY
119572009-07-07 Chong Yidong <cyd@stupidchicken.com>
11958
11959 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
11960 (Fexpand_file_name): Copy string data properly (Bug#3772).
11961
fcaf6f3a
JD
119622009-07-07 Jan Djärv <jan.h.d@swipnet.se>
11963
11964 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
11965 first MapNotify.
11966
6809ca75
KH
119672009-07-07 Kenichi Handa <handa@m17n.org>
11968
11969 * character.h (unibyte_has_multibyte_table): Delete extern.
11970 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
11971
11972 * charset.c (Fset_charset_priority): Update charset_unibyte.
11973 (syms_of_charset): Initialize charset_unibyte.
11974
11975 * character.c (unibyte_has_multibyte_table): Delete it.
11976 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
11977 charset_unibyte.
11978 (multibyte_char_to_unibyte_safe): Likewise.
11979 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
11980
1ac9108a 11981 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
11982 (x_produce_glyphs): Likewise.
11983
11984 * .gdbinit (xcharset): Fix the treating $arg0.
11985
ad9e2d54
EZ
119862009-07-04 Eli Zaretskii <eliz@gnu.org>
11987
11988 Emulation of `getloadavg' on MS-Windows.
50426a04 11989 * w32.c: Include float.h.
ad9e2d54
EZ
11990 (g_b_init_get_native_system_info, g_b_init_get_system_times)
11991 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
11992 (get_native_system_info, get_system_times): New functions.
11993 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
11994 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
11995 (globals_of_w32): Initialize g_b_init_get_native_system_info,
11996 g_b_init_get_system_times, and num_of_processors.
11997
0a3472c7
JR
119982009-07-03 Jason Rumney <jasonr@gnu.org>
11999
12000 * w32term.c (w32_initialize): Use standard types.
12001
80904120
EZ
120022009-07-03 Eli Zaretskii <eliz@gnu.org>
12003
12004 * dired.c (Ffile_attributes): Decode user and group names by the
12005 locale's encoding. (Bug#3443)
12006
6978862d
DN
120072009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
12008
f8d23104
DN
12009 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
12010 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
12011
12012 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
12013
12014 * term.c (init_tty): Remove spurious #ifdef.
12015
6978862d
DN
12016 * m/mips.h: Mention this file is also used for netbsd.
12017 * m/pmax.h: Remove file.
12018
e044e4fc
JD
120192009-07-03 Jan Djärv <jan.h.d@swipnet.se>
12020
12021 * xterm.h (struct x_display_info): Add invisible_cursor.
12022 (struct x_output): Add current_cursor.
12023
12024 * xterm.c (XTtoggle_invisible_pointer): New function.
12025 (x_define_frame_cursor): Don't define cursor if invisible or the
12026 same as before. Set current_cursor.
12027 (x_create_terminal): Set toggle_invisible_pointer_hook.
12028
12029 * xfns.c (make_invisible_cursor): New function.
12030 (x_set_mouse_color): Call make_invisible_cursor.
12031 Set current_cursor.
12032 (x_window): Set current_cursor.
12033
12034 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
12035
12036 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
12037 inserting a character.
12038 (read_avail_input): Call frame_make_pointer_visible.
12039
12040 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
12041 (frame_make_pointer_invisible, frame_make_pointer_visible):
12042 New functions.
e044e4fc
JD
12043 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
12044
12045 * frame.h: Declare frame_make_pointer_invisible and
12046 frame_make_pointer_visible.
12047 (struct frame): Add pointer_invisible.
12048
574c8efa
JD
120492009-07-02 Jan Djärv <jan.h.d@swipnet.se>
12050
7b507248
JD
12051 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
12052 frame isn't visible.
12053 (xg_frame_resized): If width/height is -1, get size of window
12054 from X server.
12055
12056 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
12057 for MapNotify.
12058
835bdaa7 12059 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 12060 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 12061 (flush_and_sync): Reintroduce.
574c8efa 12062
3f1c6666 120632009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 12064
31fd7c5c 12065 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
12066
12067 * xterm.c (x_handle_net_wm_state): Also look for sticky.
12068 (x_term_init): Initialize Xatom_net_wm_state_sticky.
12069
12070 * frame.h: Declare Qsticky.
12071
cad9ef74
JD
12072 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
12073
12074 * nsfns.m (ns_frame_parm_handlers): Ditto.
12075
12076 * frame.c: Declare Qsticky.
12077 (frame_parms): Add sticky.
12078
12079 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
12080
12081 * xterm.h: Declare x_set_sticky.
12082
12083 * xterm.c (x_set_sticky): New function.
12084
69b16610
JD
12085 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
12086 (xg_tool_bar_menu_proxy): Attach enter/leave events to
12087 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
12088
12089 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
12090
12091 * frame.c: Qmaximized is new.
12092 (x_set_frame_parameters): Do not handle fullscreen specially.
12093 Only set width and height if explicitly set.
12094 (x_set_fullscreen): Handle Qmaximized.
12095 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
12096 (syms_of_frame): Initialize Qmaximized.
12097
1ac9108a
SM
12098 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
12099 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
12100
12101 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
12102 for Expose event. Add call to x_check_fullscreen for MapNotify event.
12103 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
12104 set gravity to NorthWestGravity when USE_GTK.
12105 (set_wm_state): New function.
31fd7c5c 12106 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
12107 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
12108 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 12109 or the case when no window manager is running. That means remove calls
3f1c6666
JD
12110 to x_real_positions and x_fullscreen_adjust.
12111
12112 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
12113 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
12114 flush_and_sync.
12115 (xg_height_changed): New function.
12116 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
12117 and gtk_window_set_policy. Set frame gravity after parsing the
12118 geometry string.
3f1c6666
JD
12119 (xg_update_frame_menubar, free_frame_menubar)
12120 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
12121 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
12122 Remove calls to xg_frame_set_char_size.
12123
fd503d99
KH
121242009-07-01 Kenichi Handa <handa@m17n.org>
12125
12126 * keyboard.c (decode_keyboard_code): New function.
12127 (tty_read_avail_input): Decode the input bytes if necessary.
12128
1ac9108a
SM
12129 * coding.c (setup_coding_system):
12130 Initialize coding->carryover_bytes to 0.
fd503d99
KH
12131 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
12132 use Qno_conversion.
12133
24ed93fb
YM
121342009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12135
12136 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
12137
99061dfc
CY
121382009-06-30 Chong Yidong <cyd@stupidchicken.com>
12139
1ac9108a 12140 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 12141
ff90fbde
JR
121422009-06-30 Jason Rumney <jasonr@gnu.org>
12143
12144 * w32term.c (w32_initialize): Use GetModuleHandle for library that
12145 is already loaded.
12146 Set user model ID if supported (bug#1849).
12147
5f445726
JM
121482009-06-29 Jim Meyering <meyering@redhat.com>
12149
12150 Remove useless if-before-xfree test.
12151 * nsfont.m (nsfont_close): Remove useless test.
12152 * term.c (delete_tty): Likewise.
12153 * w32.c (system_process_attributes): Likewise.
12154 * w32font.c (w32font_close): Likewise.
12155 * xfaces.c (x_free_gc): Likewise.
12156 * xselect.c (buffer): Likewise.
12157
b9607587
AS
121582009-06-28 Andreas Schwab <schwab@linux-m68k.org>
12159
12160 * process.c (send_process): Keep decoded string in a local
12161 variable and protect it from GC. (Bug#3521)
12162
89ba96f4
EZ
121632009-06-28 Eli Zaretskii <eliz@gnu.org>
12164
12165 * term.c (create_tty_output) [MSDOS]: #ifdef away.
12166 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
12167
098a1589
CY
121682009-06-28 Chong Yidong <cyd@stupidchicken.com>
12169
485422be
CY
12170 * xdisp.c (start_display, handle_face_prop)
12171 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
12172 (redisplay_window, try_window_id, produce_image_glyph):
12173 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 12174
098a1589
CY
12175 * xterm.c (x_update_window_begin, x_new_focus_frame)
12176 (x_scroll_bar_handle_click, handle_one_xevent)
12177 (handle_one_xevent, XTread_socket, x_focus_on_frame)
12178 (x_make_frame_visible, x_make_frame_invisible)
12179 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
12180 code chunks that are now obsolete.
12181
78c38319
MA
121822009-06-28 Michael Albinus <michael.albinus@gmx.de>
12183
12184 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
12185 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
12186 for hours, when optimzation is enabled.
12187 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
12188 (xd_read_message): Make them static.
12189
4189ed40
CY
121902009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
12191
12192 * term.c (turn_on_face): Allow simultaneously bold and dim
12193 terminal faces (Bug#3530).
12194
cd9b5e16
CY
121952009-06-27 Chong Yidong <cyd@stupidchicken.com>
12196
4e23bedb
CY
12197 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
12198
cd9b5e16
CY
12199 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
12200 truncation glyphs (Bug#3686).
12201
07cc3c35
GM
122022009-06-27 Glenn Morris <rgm@gnu.org>
12203
12204 * m/pmax.h: Restore file, with only netbsd portions.
12205
31fd7c5c 122062009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 12207
cd9b5e16 12208 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 12209
42d4a64f
KH
122102009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
12211
12212 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
12213 the arg FORCE_SYMBOL.
12214
930fe55b 122152009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
12216
12217 * fontset.c (fontset_find_font): When a usable rfont_def is found
12218 in a fallback font-group, make it the first element of the group.
12219
57ebc3fd
CY
122202009-06-24 Chong Yidong <cyd@stupidchicken.com>
12221
12222 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
12223
f084f942
KH
122242009-06-24 Kenichi Handa <handa@m17n.org>
12225
12226 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
12227 set for C.
12228 (fontset_font): Record the availability of a font for C both in
12229 the realized fontsets of the current one and the default one.
12230
2f686c87
DN
122312009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
12232
12233 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
12234 conditional, it is always defined on AIX.
12235
666e158e
MB
122362009-06-23 Miles Bader <miles@gnu.org>
12237
12238 * window.c (Vrecenter_redisplay): New variable.
12239 (syms_of_window): Initialize it.
12240 (Qtty): New extern declaration.
12241 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
12242
c6da7cd2
JM
122432009-06-23 Jim Meyering <meyering@redhat.com>
12244
1ac9108a
SM
12245 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
12246 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 12247 pointer dereferences are guaranteed to be valid.
c6da7cd2 12248
678dca3d
KH
122492009-06-23 Kenichi Handa <handa@m17n.org>
12250
74d75424
KH
12251 * emacs.c (main): Call init_font ().
12252
12253 * font.h (Vfont_log): Extern it.
12254 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
12255
12256 * font.c (font_sort_entities, font_list_entities)
12257 (font_matching_entity, font_open_entity)
12258 (font_close_object): Change font_add_log to FONT_ADD_LOG.
12259 (Vfont_log): Delete static.
12260 (font_log_env_checked): Delete this variable.
12261 (font_add_log): Don't check font_log_env_checked.
12262 (font_deferred_log): Check Vfont_log.
12263 (init_font): New function.
12264
678dca3d
KH
12265 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
12266
12267 * w32font.c: Change font_add_log to FONT_ADD_LOG.
12268
12269 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
12270
12271 * xfont.c: Change font_add_log to FONT_ADD_LOG.
12272
12273 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
12274 (face_for_char): Don't call font_deferred_log here.
12275 (font_for_char): Likewise.
12276
8a668709
CY
122772009-06-22 Chong Yidong <cyd@stupidchicken.com>
12278
9a01ee33
CY
12279 * w32term.c (x_draw_glyph_string): Use the glyph string's width
12280 rather than its background_width for drawing the overline and
12281 underline (Bug#489).
12282
12283 * xterm.c (x_draw_glyph_string): Use the glyph string's width
12284 rather than its background_width for drawing the overline and
12285 underline (Bug#489).
ec7c9926
CY
12286 (xg_default_icon_file): New variable.
12287 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
12288 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 12289
8a668709
CY
12290 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
12291 (load_overlay_strings): Remove externs.
12292 (fast_find_position): Function deleted.
12293 (mouse_face_from_buffer_pos): New function, based on
12294 fast_find_position. Correctly handle before-strings,
12295 display-strings, and after-strings (Bug#1220).
12296 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
12297
4d4c02d8
CY
122982009-06-21 Chong Yidong <cyd@stupidchicken.com>
12299
1ac9108a 12300 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
12301 (move_it_in_display_line_to, move_it_in_display_line_to)
12302 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
12303
70243478
CY
123042009-06-21 Chong Yidong <cyd@stupidchicken.com>
12305
12306 * Branch for 23.1.
12307
13087e59
JR
123082009-06-21 Jason Rumney <jasonr@gnu.org>
12309
12310 * w32term.c (keyboard_codepage): New static variable.
12311 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
12312 (w32_read_socket) [WM_CHAR]: Use it to decode character
12313 input (bug#3237).
12314 (w32_initialize): Initialize it.
12315 (codepage_for_locale): New function.
12316
4735b74e
KR
123172009-06-20 Ken Raeburn <raeburn@raeburn.org>
12318
12319 * process.c (status_message): Pass Faset index argument as a lisp
12320 object, so as to work with USE_LISP_UNION_TYPE.
12321
0e727afa
YM
123222009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12323
12324 * coding.c (Ffind_coding_systems_region_internal):
12325 Cache checked characters.
12326
cf299835
KH
123272009-06-18 Kenichi Handa <handa@m17n.org>
12328
1ac9108a 12329 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 12330
90f20d94
AS
123312009-06-18 Andreas Schwab <aschwab@redhat.com>
12332
12333 * xdisp.c (redisplay_internal): Check that the frame is still
12334 live after redisplay of its windows.
12335 (redisplay_windows): Check that the window is still live.
12336
7f1faf1c
KH
123372009-06-17 Andreas Schwab <schwab@linux-m68k.org>
12338
12339 * coding.c (detect_coding_utf_16): Fix previous change.
12340
cc13543e
KH
123412009-06-16 Kenichi Handa <handa@m17n.org>
12342
12343 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
12344 UTF-16 by checking the dispersion of Eth and Oth bytes.
12345
977b85f4
AS
123462009-06-15 Andreas Schwab <schwab@linux-m68k.org>
12347
12348 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
12349
66bd43d1
KH
123502009-06-15 Kenichi Handa <handa@m17n.org>
12351
12352 * process.c (status_message): Fix previous change. Be sure to
12353 decode a localized string.
12354
cb5ca9c5
YM
123552009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12356
12357 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
12358 add comment explaining why.
12359
ec7709ba 123602009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 12361
ec7709ba 12362 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 12363
4b7f335c
AR
123642009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
12365
12366 * nsfont.m (ns_attribute_value): Remove.
12367 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
12368 (ns_has_attribute): Shrink the normal range.
12369 (ns_findfonts): Don't worry about requested spec in determining
12370 need for synthItal.
e41820ee 12371 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 12372
73b26103
SZ
123732009-06-14 Seiji Zenitani <zenitani@mac.com>
12374
12375 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
12376
5753e4da
KH
123772009-06-11 Kenichi Handa <handa@m17n.org>
12378
12379 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
12380 overhang for the static composition case.
12381
3561b671
KH
123822009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12383
5753e4da
KH
12384 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
12385 overhang for the automatic composition case.
12386
3561b671
KH
12387 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
12388 composition case.
12389
852bbd41
CY
123902009-06-10 Chong Yidong <cyd@stupidchicken.com>
12391
12392 * xdisp.c (get_next_display_element): When handling wrap-prefix
12393 and line-prefix, treat \n as a control character (bug#3502).
12394
9903d1e6
KH
123952009-06-10 Kenichi Handa <handa@m17n.org>
12396
12397 * font.c (font_parse_family_registry): Fix for one-char foundry.
12398 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
12399
0bcbaaaa
CY
124002009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
12401
12402 * process.c (status_message): Fix handling of multibyte signal
12403 string (Bug#3499).
12404
40aa3f13
JM
124052009-06-09 Jim Meyering <meyering@redhat.com>
12406
1f80c7e2
CY
12407 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
12408 color name is missing.
40aa3f13 12409
72d51285
KH
124102009-06-09 Kenichi Handa <handa@m17n.org>
12411
12412 * charset.c (Fmap_charset_chars): In docstring, state clearly that
12413 FROM-CODE and TO-CODE are codepoints of CHARSET.
12414
c1d04d84
AR
124152009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
12416
12417 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
12418
124192009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
12420
12421 Changes to support :script/:lang/:otf in NS font driver.
12422 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
12423 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
12424 indicate not part of font driver interface, and change callers.
12425 (ns_get_family): Remove pointless null check.
12426 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
12427 ns_spec_to_descriptor, ns_descriptor_to_entity.
12428 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
12429 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
12430 (ns_spec_to_descriptor, ns_descriptor_to_entity)
12431 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
12432 (ns_get_req_script, ns_accumulate_script_ranges)
12433 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
12434 New functions.
12435 (nsfont_list, nsfont_match): Use ns_findfonts.
12436 (nsfont_open): Use font descriptor instead of traits.
12437 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
12438 (dump_glyphstring): Rename to ns_dump_glyphstring.
12439
c7eb9816
AR
12440 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
12441
c1d04d84
AR
12442 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
12443
12444 * fontset.c (fontset_from_font): Remove NS-specific code.
12445
ec7709ba 124462009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
12447
12448 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
12449 nonactive windows.
12450
31fd7c5c 124512009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 12452
1ac9108a 12453 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 12454
68852c13 124552009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
12456
12457 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
12458
6756cd1d
CY
124592009-06-07 Chong Yidong <cyd@stupidchicken.com>
12460
12461 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
12462 account for the overflowing of newlines into the last glyph on the
12463 display line (Bug#3482).
12464
28bf482a
DR
124652009-06-05 David Reitter <david.reitter@gmail.com>
12466
ec7709ba
JB
12467 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
12468 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
12469 Fns_selection_exists_p, Fns_selection_owner_p.
12470
fdb55376
JR
124712009-06-03 Jason Rumney <jasonr@gnu.org>
12472
12473 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
12474 available. (Bug#3379)
12475
05129fbe
KH
124762009-05-29 Kenichi Handa <handa@m17n.org>
12477
1ac9108a
SM
12478 * coding.c (get_translation_table):
12479 Check Venable_character_translation.
05129fbe 12480
ec7709ba 124812009-05-26 David Reitter <david.reitter@gmail.com>
15891144 12482
ec7709ba
JB
12483 * nsterm.m (ns_raise_frame): Only raise frame if visible.
12484 (x_make_frame_visible): Move frame to front rather than calling
15891144 12485 ns_raise_frame().
ec7709ba 12486 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 12487 isn't key window.
ec7709ba 12488 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
12489 drawRect may be called by NSView even if the frame is hidden.
12490
ec7709ba
JB
12491 * nsfns.m (Fx_create_frame): Follow other ports in
12492 determining visibility; default to t. Ensure async_visible is set.
15891144 12493
21f73755
EZ
124942009-05-23 Eli Zaretskii <eliz@gnu.org>
12495
12496 * dired.c (Ffile_attributes): Doc fix.
12497
34001e41
CY
124982009-05-22 Chong Yidong <cyd@stupidchicken.com>
12499
12500 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
12501
46306a17
SM
125022009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
12503
12504 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
12505 and xfont_scratch_props.
12506 (syms_of_xfont): Do it here instead.
12507 (xfont_find_ccl_program): Delete, unused.
12508 (xfont_open): Delete unused var `i'.
12509
ef6e0694
KH
125102009-05-21 Kenichi Handa <handa@m17n.org>
12511
12512 * fontset.c (Qlatin): Don't make it static.
12513
46306a17
SM
12514 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
12515 New functions.
ef6e0694
KH
12516 (xfont_scripts_cache, xfont_scratch_props): New variables.
12517 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
12518 (xfont_list_pattern): Argument changed. Callers changed.
12519 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
12520 (xfont_list): Don't reject a font spec with :script property.
12521 (xfont_has_char): Fix setting of encoding.
12522 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
12523 xfont_scratch_props.
12524
125252009-05-19 Kenichi Handa <handa@m17n.org>
12526
46306a17 12527 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
12528 Callers changed.
12529
125302009-05-18 Kenichi Handa <handa@m17n.org>
12531
12532 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
12533
ac71ced7
SM
125342009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
12535
12536 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
12537 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
12538
1c6d1051
YM
125392009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12540
12541 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
12542 (x_delete_terminal): Dissociate resource database from display and
12543 then call XrmDestroyDatabase before closing display.
12544
9b9b779c
AR
125452009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
12546
12547 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
12548 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
12549 whether selected frame is viable before raising it (based on patch
12550 by David Reitter), and improve commentary.
12551 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 12552
cccd42d5
KH
125532009-05-15 Kenichi Handa <handa@m17n.org>
12554
12555 * font.c (Ffont_spec): Check arguments.
12556
337fbd17
CY
125572009-05-14 Chong Yidong <cyd@stupidchicken.com>
12558
12559 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
12560 weight when testing attributes (Bug#3282).
12561
47a6002f
JD
125622009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12563
12564 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
12565 what we expect to get in the next ConfigureNotify event.
12566
9cb363db
YM
12567 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
12568 before Xft one (Bug#1696).
12569
b9126609
CY
125702009-05-07 David Reitter <david.reitter@gmail.com>
12571
12572 * nsfns.m (Fx_display_planes): Compute bitplanes using
12573 NSBitsPerPixelFromDepth (Bug#3207).
12574
27a69fd9
CY
125752009-05-10 Chong Yidong <cyd@stupidchicken.com>
12576
12577 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
12578
00f37552
TTN
125792009-05-10 Ulrich Mueller <ulm@gentoo.org>
12580
12581 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
12582
2d82a920
DR
125832009-05-07 David Reitter <david.reitter@gmail.com>
12584
ec7709ba
JB
12585 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
12586 Respect mouse face background.
2d82a920 12587
46b0d52d
DR
125882009-05-07 David Reitter <david.reitter@gmail.com>
12589
ec7709ba
JB
12590 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
12591 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
12592 in ns_update_begin and ns_update_end.
12593
ce1b23bb
SM
125942009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
12595
5996e1b7
SM
12596 * nsfns.m (ns_get_screen): Rewrite.
12597 Don't presume selected-frame is of type `ns'.
12598
ba98e3a0
SM
12599 * font.c (font_update_drivers): Sanity fallback to avoid disabling
12600 all drivers.
12601
ce1b23bb
SM
12602 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
12603
bcda200f
YM
126042009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12605
12606 * keyboard.h (add_user_signal): Fix typo in extern.
12607
12608 * lisp.h (add_user_signal): Remove extern.
12609
12610 * unexelf.c (unexec): Consider a section to precede the .bss section
12611 if its addresses overlap that of .bss.
12612 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
12613 instead of dumping process.
12614
864660a2
SM
126152009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
12616
12617 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
12618
50da4e56
SM
126192009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
12620
12621 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
12622
51520a1a
DN
126232009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
12624
12625 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
12626 any statements.
12627
409ea3a1
AS
126282009-05-02 Andreas Schwab <schwab@linux-m68k.org>
12629
59c4c60f
AS
12630 * process.c (read_process_output): Make sure the current buffer is
12631 always restored.
12632
409ea3a1
AS
12633 * coding.c (record_conversion_result): Don't modify
12634 Vlast_code_conversion_error for successful result.
12635 (alloc_destination): Don't clobber conversion result. (Bug#1650)
12636
56f00ed2
KH
126372009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
12638
12639 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 12640 (load_charset_map): Remove unnecessary code.
56f00ed2 12641
4491c9d2
DR
126422009-04-30 David Reitter <david.reitter@gmail.com>
12643
35f5b128 12644 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
12645 through f24.
12646
6970f632
CY
126472009-04-30 Chong Yidong <cyd@stupidchicken.com>
12648
12649 * xfaces.c (face_at_buffer_position): New arg base_face_id.
12650
12651 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
12652 face_at_buffer_position.
12653 (face_before_or_after_it_pos, get_next_display_element)
12654 (note_mouse_highlight): Update face_at_buffer_position call.
12655
12656 * term.c (term_mouse_highlight):
12657 * msdos.c (IT_note_mouse_highlight):
12658 * fontset.c (Finternal_char_font):
35f5b128 12659 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
12660
12661 * dispextern.h (face_at_buffer_position): Update prototype.
12662
0c616f63
KH
126632009-04-30 Kenichi Handa <handa@m17n.org>
12664
35f5b128 12665 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 12666
ad3aaf33
AS
126672009-04-29 Andreas Schwab <schwab@linux-m68k.org>
12668
12669 * callproc.c (Fcall_process): Fix GC protection. Make sure
12670 current buffer is always restored.
12671
c3c963a0
YM
126722009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12673
12674 * atimer.c (init_atimer): Also clear stopped_atimers.
12675
12676 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
12677
7e3386cb
YM
12678 * process.c (create_process): Clean up merger residues of
12679 2008-07-17 change.
12680
91f68422
CY
126812009-04-29 Ulrich Mueller <ulm@gentoo.org>
12682
12683 * lread.c (Vread_circle): New variable.
12684 (read1): Disable recursive read if Vread_circle is nil.
12685
24b34550
KH
126862009-04-29 Kenichi Handa <handa@m17n.org>
12687
12688 * fontset.h (set_default_ascii_font): Delete extern.
12689
12690 * fontset.c (set_default_ascii_font): Delete this unused function.
12691
12692 * frame.c (x_set_font): When ARG is a font-object, check if the
12693 font-object matches with the ASCII font-spec of the frame's
9c358bda 12694 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 12695
77bf07e1
AS
126962009-04-28 Andreas Schwab <schwab@linux-m68k.org>
12697
12698 * fns.c (Flocale_info): Protect vector from GC during decoding.
12699
12700 * process.c (Fstart_process): Protect argv strings from GC during
12701 encoding.
12702
2c55aacf
AS
127032009-04-27 Andreas Schwab <schwab@linux-m68k.org>
12704
12705 * sysdep.c: Include <ctype.h>.
12706
b892d3c9
DR
127072009-04-27 David Reitter <david.reitter@gmail.com>
12708
35f5b128 12709 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
12710 Remove commented-out code.
12711
9d0644c4
JB
127122009-04-26 Johan Bockgård <bojohan@gnu.org>
12713
12714 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
12715
b7053016
JR
127162009-04-25 Jason Rumney <jasonr@gnu.org>
12717
12718 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
12719
4e8231f3
YM
127202009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12721
12722 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
12723 Swap bytes in short integer if fringe bitmap width > 8.
12724
493dcf2c
KH
127252009-04-23 Kenichi Handa <handa@m17n.org>
12726
12727 * xfaces.c (Fx_list_fonts): If a font size is specified in
12728 PATTERN, set it in returned scalable fonts.
12729
401e9e57
CY
127302009-04-22 Chong Yidong <cyd@stupidchicken.com>
12731
708e05dc
CY
12732 * keyboard.c (Fset_input_meta_mode): Doc fix.
12733
12734 * dispnew.c (Fsend_string_to_terminal): Doc fix.
12735
1ac9108a 12736 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
12737
12738 * coding.c (Fterminal_coding_system): Doc fix.
12739
12740 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
12741 (Fx_display_pixel_height, Fx_display_planes)
12742 (Fx_display_color_cells, Fx_server_max_request_size)
12743 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
12744 (Fx_display_mm_height, Fx_display_mm_width)
12745 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
12746 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
12747 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
12748 (check_x_display_info): Handle terminal objects instead of
12749 terminal ids.
12750
401e9e57
CY
12751 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
12752 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
12753 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
12754 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 12755
df80c7f0
KH
127562009-04-21 Kenichi Handa <handa@m17n.org>
12757
5a8f12af 12758 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 12759 (font_score): Check AVGWIDTH too.
908567ef 12760
df80c7f0
KH
12761 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
12762 worst case.
1ac9108a
SM
12763 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
12764 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 12765
705af33f
JR
127662009-04-19 Jason Rumney <jasonr@gnu.org>
12767
12768 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 12769 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
12770
12771 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
12772 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
12773 get_phys_cursor_geometry.
12774
b71ac3dd 12775 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
12776 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
12777 using get_phys_cursor_geometry.
12778
12779 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
12780 correctly calculated.
12781
dc2933eb
JD
127822009-04-19 Jan Djärv <jan.h.d@swipnet.se>
12783
1ac9108a
SM
12784 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
12785 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
12786 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
12787 is deprecated.
12788
973e7849
AS
127892009-04-18 Andreas Schwab <schwab@linux-m68k.org>
12790
12791 * font.c (font_put_frame_data): Use xfree instead of free.
12792
314d66f4
JB
127932009-04-17 Juanma Barranquero <lekktu@gmail.com>
12794
12795 * w32font.c (Qja, Qko): Remove declarations.
12796 (syms_of_w32font): Don't DEFSYM them.
12797
cf702558
CY
127982009-04-17 Chong Yidong <cyd@stupidchicken.com>
12799
12800 * font.c (Qja, Qko): Move definitions here from ftfont.c.
12801
12802 * font.h (Qja, Qko): Extern them.
12803
12804 * ftfont.c (Qja, Qko): Remove declarations.
12805
12806 * xfont.c (Qja, Qko): Remove declarations.
12807
b50504f5
KH
128082009-04-17 Kenichi Handa <handa@m17n.org>
12809
bde25748
KH
12810 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
12811 string from a vector to handle Latin-1 characters correctly.
12812
b50504f5
KH
12813 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
12814 entity even if the cache hits.
12815
f4646fff
AS
128162009-04-16 Andreas Schwab <schwab@linux-m68k.org>
12817
12818 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 12819 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 12820
e7deaab0
AS
12821 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
12822 * lisp.h: Adjust prototypes.
12823
0a0e7d49
CY
128242009-04-16 Chong Yidong <cyd@stupidchicken.com>
12825
12826 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
12827 change (Bug#3003).
12828
3c908a57
KH
128292009-04-16 Kenichi Handa <handa@m17n.org>
12830
1ac9108a 12831 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
12832
12833 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
12834 adstyle.
12835
12836 * ftfont.c (Qja, Qko): Don't make them static.
12837 (enum ftfont_cache_for): New enum.
12838 (fc_charset_table): Undo the previous change.
12839 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
12840 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
12841 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
12842 non-scarable font, try to get AVERAGE_WIDTH.
12843 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
12844 Change ft_face_cache from a list of a hash-table. Don't check
12845 `ja' and `ko' adstyle here.
12846 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
12847 FTFONT_CACHE_FOR_CHARET.
12848 (ftfont_get_charset): Undo the previous change.
1ac9108a 12849 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
12850 (ftfont_close): Likewise.
12851 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
12852
12853 * font.c (font_sort_entites): Change the meaning of the arg
12854 BEST-ONLY. Don't optimize for VEC of lenght 1.
12855 (font_select_entity): Just return the value of font_sort_entites.
12856
12857 * xfaces.c (merge_face_vectors): Reflect font properties in
12858 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
12859 font_clear_prop if a face attribute doesn't change.
12860
3c908a57
KH
12861 * charset.h (charset_ksc5601): Extern it.
12862
12863 * charset.c (charset_ksc5601): New variable.
12864 (Fdefine_charset_internal): Set charset_ksc5601.
12865 (init_charset_once): Initialize charset_ksc5601 to -1.
12866
d65859c3
DN
128672009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
12868
12869 * fileio.c (history_delete_duplicates): Remove unused declaration.
12870
12871 * callint.c (history_delete_duplicates): New declaration.
12872 (Fcall_interactively): Remove command history duplicates when
12873 history_delete_duplicates is true.
12874
3ba010e5
EZ
128752009-04-14 Eli Zaretskii <eliz@gnu.org>
12876
12877 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
12878
06f19b91
KH
128792009-04-14 Kenichi Handa <handa@m17n.org>
12880
12881 * font.c (Ffont_info): Fix docstring. Fix the second element of
12882 the returned value (bug#2949).
12883
2cce8bfc
CY
128842009-04-14 Chong Yidong <cyd@stupidchicken.com>
12885
12886 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
12887
d156542d
KH
128882009-04-14 Kenichi Handa <handa@m17n.org>
12889
12890 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
12891 encoding charset is ascii_compatible.
12892
12893 * charset.c (Fdefine_charset_internal): Make charset
12894 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
12895 code_offset is 0, and covers all ASCII characters.
12896
86fa089e
SM
128972009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
12898
12899 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
12900 (ns_string_to_pasteboard_internal):
12901 * nsmenu.m (process_dialog):
12902 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
12903 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
12904 * lisp.h (Fx_load_color_file): Declare.
12905
a8a3728b
KH
129062009-04-13 Kenichi Handa <handa@m17n.org>
12907
1ac9108a 12908 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
12909 (font_select_entity): Suppress the code to optimize for the same
12910 kind of fonts.
12911 (font_load_for_lface): Get a font that supports at least ASCII
12912 characters.
12913
12914 * ftfont.c (Qja, Qko): New variables.
12915 (fc_charset_table): Delete uniquifier data for iso8859-1.
12916 (ftfont_get_latin1_charset): New function.
12917 (get_adstyle_property): New function.
12918 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
12919 bitmap fonts.
12920 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
12921 Delete iso-8859-1 range from the charset of fonts whose adstyle is
12922 `ko' or `ja'.
12923 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 12924 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
12925 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
12926 property.
12927 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
12928 (syms_of_ftfont): DEFSYM Qja and Qko.
12929
483670b5
KH
129302009-04-09 Kenichi Handa <handa@m17n.org>
12931
12b55765
KH
12932 * charset.c (map_charset_chars): For a charset of `superset'
12933 method, fix calculation of code range.
12934
483670b5
KH
12935 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
12936 from the list of extra properties.
12937 (font_clear_prop): Be sure to delete `:name' font property.
12938
57d3b93b
KH
129392009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12940
b4b2c2ca
YM
12941 * dispnew.c (redraw_overlapping_rows): Fix detection of
12942 overlapping for topmost and bottommost rows.
12943
1ac9108a 12944 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 12945
472c3609
JR
129462009-04-06 Jason Rumney <jasonr@gnu.org>
12947
12948 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
12949
ab193662
KH
129502009-04-06 Kenichi Handa <handa@m17n.org>
12951
12952 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
12953
12954 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
12955
0c26f026
KH
129562009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12957
12958 * ftfont.c (ftfont_open): Fix checking of the return value of
12959 FT_Load_Char. Fix setting font->underline_thickness.
12960
e173bbce
CY
129612009-04-04 Chong Yidong <cyd@stupidchicken.com>
12962
12963 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
12964 (Fterminal_parameters, Fterminal_parameter)
12965 (Fset_terminal_parameter): In doc string, refer to terminal
12966 objects rather than terminal ids.
12967
693a2698
EZ
129682009-04-04 Eli Zaretskii <eliz@gnu.org>
12969
12970 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
12971 ret_lim_data. (Bug#2867)
12972
d5221487
CY
129732009-04-03 Chong Yidong <cyd@stupidchicken.com>
12974
12975 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
12976 so they don't get wider than the window, matching 2006-01-23
12977 change to the partner function in xdisp.c (Bug#2800).
12978
223509a3
KH
129792009-04-03 Kenichi Handa <handa@m17n.org>
12980
12981 * print.c (print_object): Make each lowest sub_char_table start a
12982 new line (Bug#2866).
12983
74fcd0b1
KH
129842009-04-02 Kenichi Handa <handa@m17n.org>
12985
12986 * fontset.c (fontset_font): Record no-font when a fontset
12987 explicitly tells not to try another font-specs.
12988
c542407d
SM
129892009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
12990
12991 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
12992
e3869731
KH
129932009-03-30 Kenichi Handa <handa@m17n.org>
12994
d8d2f142
KH
12995 * fontset.c (fontset_from_font): Specify only registry in a
12996 font-spec for all characters supported by that registry.
12997
e3869731
KH
12998 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
12999 even if HAVE_M17N_FLT is not defined.
13000
5da5f805
CY
130012009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
13002
13003 * ftfont.c: Conditionalize prototyping and use of
13004 ftfont_variation_glyphs.
13005
ab226c50
SM
130062009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
13007
9628fed7
SM
13008 * frame.c (delete_frame): Work around compiler bug.
13009
13010 * editfns.c (general_insert_function): Adjust to insdel.c changes.
13011 * insdel.c (prepare_to_modify_buffer, signal_before_change):
13012 Some more EMACS_INT.
13013 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
13014
13015 * xdisp.c (dump_glyph): Fix typo.
13016
ae19ba7c
SM
13017 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
13018 (adjust_markers_gap_motion, adjust_markers_for_delete)
13019 (adjust_markers_for_insert, adjust_point)
13020 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
13021 (make_gap, copy_text, count_size_as_multibyte, insert)
13022 (insert_and_inherit, insert_before_markers)
13023 (insert_before_markers_and_inherit, insert_1)
13024 (count_combining_before, count_combining_after, insert_1_both)
13025 (insert_from_string, insert_from_string_before_markers)
13026 (insert_from_string_1, insert_from_gap, insert_from_buffer)
13027 (insert_from_buffer_1, adjust_after_replace)
13028 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
13029 (replace_range_2, del_range, del_range_1, del_range_byte)
13030 (del_range_both, del_range_2, modify_region)
13031 (prepare_to_modify_buffer, signal_before_change)
13032 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
13033 for buffer positions and sizes.
13034 * lisp.h: Adjust prototypes accordingly.
13035
13036 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
13037 (non_regular_inserted, non_regular_nbytes, read_non_regular)
13038 (Finsert_file_contents): Use EMACS_INT for buffer positions.
13039
ab226c50
SM
13040 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
13041
46dfb8fb
JD
130422009-03-27 Jan Djärv <jan.h.d@swipnet.se>
13043
13044 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
13045 lines and columns so we keep the same pixel height and width.
13046
13047 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
13048 the property _NET_WM_STATE has changed.
46dfb8fb
JD
13049 (x_handle_net_wm_state): New function to update frame parameter
13050 fullscreen.
13051 (x_term_init): Initialize atoms for _NET_WM_STATE.
13052
13053 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
13054
d347e494
SM
130552009-03-27 Kevin Ryde <user42@zip.com.au>
13056
13057 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
13058 Gpm_GetEvent as an error that justifies closing the filedescriptor.
13059 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
13060 (Fgpm_mouse_stop): Pass that new parameter.
13061 * termhooks.h (close_gpm): Adjust prototype.
13062
84db11d6
SM
130632009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
13064
c95a5008
SM
13065 * lisp.h (Fx_focus_frame): Declare.
13066
84db11d6
SM
13067 * callint.c (Fcall_interactively): For '^' just delegate the work to
13068 handle-shift-selection.
13069 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
13070
0a1958d6
CY
130712009-03-24 Chong Yidong <cyd@stupidchicken.com>
13072
0bfdff23
CY
13073 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
13074
0a1958d6
CY
13075 * data.c (Qinteractive_form): New variable.
13076 (Finteractive_form): Use it.
13077
13078 * eval.c (Fcommandp): Use Qinteractive_form.
13079
58aec0d6
JR
130802009-03-24 Jason Rumney <jasonr@gnu.org>
13081
13082 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
13083 Calculate total size precisely. Decode environment variables
13084 before substituting. (Bug#38)
13085
553dd618
KH
130862009-03-24 Kenichi Handa <handa@m17n.org>
13087
13088 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 13089 encoding (Bug#2722).
553dd618 13090
c39ea606
JD
130912009-03-23 Jan Djärv <jan.h.d@swipnet.se>
13092
13093 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
13094 that gdpy is set.
13095
bc9b2b5e
AM
130962009-03-22 Alan Mackenzie <acm@muc.de>
13097
13098 * callint.c (Finteractive): Clarify the doc string - even
13099 promptless elements need \n separators.
13100
9f995a76
JR
131012009-03-22 Jason Rumney <jasonr@gnu.org>
13102
13103 * w32term.c (syms_of_w32term): Doc fix for
13104 x-use-underline-position-properties.
13105
22749e9a
EZ
131062009-03-21 Eli Zaretskii <eliz@gnu.org>
13107
13108 * w32.c (getpwuid): Change argument type to unsigned.
13109 (struct w32_id): Change type of `rid' member to unsigned.
13110 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
13111 argument ID to unsigned. All callers changed.
13112 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
13113
e00553bf
EZ
131142009-03-20 Eli Zaretskii <eliz@gnu.org>
13115
13116 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
13117 negative, produce a float value.
13118
13119 * dired.c (make_uid, make_gid): New functions.
13120 (Ffile_attributes): Use them to avoid negative UID and GID.
13121
f761d6b6
JB
131222009-03-20 Juanma Barranquero <lekktu@gmail.com>
13123
13124 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
13125 (syms_of_keyboard) <command-hook-internal, input-method-function>:
13126 Fix typos in docstrings.
13127
d507f8d7
KH
131282009-03-19 Kenichi Handa <handa@m17n.org>
13129
13130 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
13131 changed, use font_load_for_lface to get a new font object.
13132 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
13133
13134 * frame.c (x_set_font): Handle the case that ARG is a cons.
13135
c68845e0
GM
131362009-03-19 Glenn Morris <rgm@gnu.org>
13137
13138 * fileio.c (Fsubstitute_in_file_name): Doc fix.
13139
bfa49dd1
CY
131402009-03-19 Chong Yidong <cyd@stupidchicken.com>
13141
13142 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
13143
8458d4c1
KH
131442009-03-19 Kenichi Handa <handa@m17n.org>
13145
13146 * charset.c (load_charset_map_from_file): When a mapfile can't be
13147 loaded, signal an error.
13148
78e7d1fe
EZ
131492009-03-18 Eli Zaretskii <eliz@gnu.org>
13150
13151 * dired.c (Ffile_attributes): Make sure UID and GID are always
13152 positive, even if the value is too large for a positive EMACS_INT.
13153 Doc fix.
13154
13155 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
13156
5da9fdfa
YM
131572009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13158
13159 * xmenu.c (xdialog_show): Move Fredisplay call ...
13160 (Fx_popup_dialog): ... here.
13161
7519c40d
SM
131622009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
13163
13164 * dired.c (file_name_completion): Disable the first optimization just
13165 installed, since it is not implemented correctly.
13166
2cd298e2
SM
131672009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
13168
13169 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 13170 only if the entry can affect bestmatch.
2cd298e2
SM
13171 Stop the search early, as Ftry_completion already does.
13172
48d37adf
CY
131732009-03-17 Chong Yidong <cyd@stupidchicken.com>
13174
e10c9c93 13175 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 13176
9286b16a
CY
131772009-03-15 Chong Yidong <cyd@stupidchicken.com>
13178
13179 * keyboard.c (parse_menu_item): Don't display remappings as menu
13180 equivalent bindings (Bug#788).
13181
f7b146dc
JR
131822009-03-15 Jason Rumney <jasonr@gnu.org>
13183
13184 * w32term.h (WM_EMACS_PAINT): New message.
13185 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
13186 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
13187 before passing to lisp thread. (Bug#950)
13188
f761d6b6 131892009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 13190
d93f9575
CY
13191 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
13192 variable as it was never reset.
13193 (ns_term_init): Remove initialization of Lisp-settable defaults
13194 and ns_expand_space.
13195 (-setPanelFromDefaultValues): Remove ns_expand_space.
13196 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
13197 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
13198 i.e. no additional spacing, similar to Carbon port.
13199
d93f9575
CY
13200 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
13201 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 13202
305018ec
JD
132032009-03-14 Jan Djärv <jan.h.d@swipnet.se>
13204
13205 * sound.c (alsa_configure): Remove call to deprecated
13206 snd_pcm_sw_params_set_xfer_align.
13207
f761d6b6 132082009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
13209
13210 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
13211 after clicking in a detached tool bar.
13212 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
13213
46e722a9
SM
132142009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
13215
348db3dd
SM
13216 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
13217 int/Lisp_Object mixup).
46e722a9 13218
a3d16f39
KH
132192009-03-13 Kenichi Handa <handa@m17n.org>
13220
13221 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 13222 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
13223 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
13224 (set_fontset_font): Change ARG to a vector. Handle range_list in
13225 ARG correctly.
13226 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 13227 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
13228 the above change.
13229 (fontset_from_font): Fix previous change.
fe24f56a 13230 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
13231 entry. If FONTSET is the default fontset, don't set the extra
13232 slot of the returning char-table.
13233
b066e6b6
JB
132342009-03-12 Juanma Barranquero <lekktu@gmail.com>
13235
13236 * nsfns.m (Fx_close_connection): Doc fix.
13237 (Fns_do_applescript): Reflow docstring.
13238 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
13239 (Fx_display_pixel_width, Fx_display_pixel_height)
13240 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
13241 Fix typos in docstrings.
13242 (Fns_set_alpha): Fix typos in error messages.
13243
d472514e 132442009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 13245
d472514e 13246 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
13247 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
13248 were used for such events.
13249
d472514e
JB
13250 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
13251 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 13252
d472514e 13253 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
13254 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
13255
fb930676
KH
132562009-03-11 Kenichi Handa <handa@m17n.org>
13257
ff85581a
KH
13258 * font.h (font_open_by_spec): Extern it.
13259
c50b7e98
KH
13260 * font.c (font_open_by_spec): New function.
13261 (font_open_by_name): Use font_open_by_spec.
13262
fb930676
KH
13263 * frame.c (x_set_font): When ARG is a font-object, don't alter the
13264 fontset of the frame.
13265
13266 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
13267 modify the default font of frames that use this fontset.
13268 (num_auto_fontsets): New variable.
13269 (fontset_from_font): Use num_auto_fontsets to decide a fontset
13270 name. Be sure to set FONTSET_ASCII to the correct font name.
13271 (update_auto_fontset_alist): New function.
13272
df4e8455
JB
132732009-03-11 Juanma Barranquero <lekktu@gmail.com>
13274
13275 * makefile.w32-in: Update dependencies.
13276
0a375797
AR
132772009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
13278
13279 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
13280
61313fa3
SM
132812009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
13282
13283 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
13284
b55103fb
CY
132852009-03-10 Chong Yidong <cyd@stupidchicken.com>
13286
13287 * lread.c (Feval_buffer): Doc fix.
13288
dde2559c
KH
132892009-03-09 Kenichi Handa <handa@m17n.org>
13290
13291 * charset.c (Qfile_name_handler_alist): Extern it.
13292 (load_charset_map_from_file): Temporarily bind
13293 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
13294
df4e8455 132952009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 13296
47f588bb
GM
13297 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
13298 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 13299
4ddf94bd
AR
133002009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
13301
4c9bdfc2
AR
13302 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
13303 (x_set_window_size): Change back to calculated method of setting
13304 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
13305 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
13306 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
13307
fe41ae9e
AR
13308 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
13309
4c9bdfc2
AR
13310 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
13311 accelerator in parens under GNUstep.
13312
825d0875
KH
133132009-03-06 Kenichi Handa <handa@m17n.org>
13314
13315 These changes are to detect incorrect composition sequence without
f3b3be74 13316 looking ahead the source. (Bug#2370)
825d0875
KH
13317
13318 * coding.h: Include "composite.h".
13319 (enum compisition_state): New enum.
13320 (struct compisition_status): New struct.
13321 (struct iso_2022_spec): New member cmp_status.
13322 (struct emacs_mule_spec): New struct.
13323 (struct coding_system): New members ctext_extended_segment_len and
13324 embedded_utf_8. Change the union member
13325 spec.emacs_mule_full_support to spec.emacs_mule.
13326
13327 * coding.c (CODING_ISO_CMP_STATUS): New macro.
13328 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 13329 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
13330 (ADD_COMPOSITION_DATA): New arg nbytes.
13331 (emacs_mule_char): New arg cmp_status.
13332 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
13333 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
13334 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
13335 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
13336 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
13337 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
13338 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
13339 (EMACS_MULE_COMPOSITION_END): New macro.
13340 (emacs_mule_finish_composition): New function.
13341 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
13342 (decode_coding_emacs_mule): Avoid long looking ahead while
13343 handling composition.
13344 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
13345 (ENCODE_COMPOSITION_RULE): New macro.
13346 (finish_composition): New function.
13347 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
13348 (DECODE_COMPOSITION_START): New implementation.
13349 (DECODE_COMPOSITION_END): Likewise.
13350 (STORE_COMPOSITION_RULE): New macro.
13351 (decode_coding_iso_2022): Avoid long looking ahead while handling
13352 composition, CTEXT extended segment, and embedded UTF-8.
13353 (setup_coding_system): For a coding of type iso-2022, reset
13354 CODING_ISO_EXTSEGMENT_LEN (coding) and
13355 CODING_ISO_EMBEDDED_UTF_8 (coding).
13356 (get_translation): Delete arguments last_block, from_nchars,
13357 to_nchars. Callers changed.
13358 (produce_chars): Don't modify charbuf. Adjusted for the change of
13359 get_translation.
98a326f7 13360 (produce_composition): Adjust for the new annotation sequence.
825d0875 13361 (handle_composition_annotation): Likewise.
98a326f7 13362 (consume_chars): Adjust for the change of get_translation.
825d0875 13363
ccbc4452
AR
133642009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
13365
4ddf94bd 13366 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 13367
988a7ddb
KH
133682009-03-05 Kenichi Handa <handa@m17n.org>
13369
13370 * font.c (font_select_entity): New function.
13371 (font_find_for_lface): Use font_select_entity to select a font.
13372
13373 * fontset.c (fontset_find_font): If a font found without
a8a3728b 13374 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
13375 font with C restriction.
13376
98a326f7 133772009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 13378
be1bce46 13379 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 13380
10ea2b82
JR
133812009-03-04 Jason Rumney <jasonr@gnu.org>
13382
2c93b248 13383 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 13384 characters that have already been read. (Bug#2569)
2c93b248 13385
10ea2b82
JR
13386 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
13387 Log an error message if check_image_size failed.
13388 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 13389 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 13390
71a0c011
EZ
133912009-03-02 Eli Zaretskii <eliz@gnu.org>
13392
13393 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
13394 when decoding process output.
13395
2f63bba8
RS
133962009-03-01 Richard M Stallman <rms@gnu.org>
13397
13398 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
13399
13400 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
13401
0a9564cb
EZ
134022009-02-28 Eli Zaretskii <eliz@gnu.org>
13403
13404 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
13405 (decode_coding_emacs_mule, decode_coding_iso_2022)
13406 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
13407 (decode_coding_raw_text, decode_coding_charset)
13408 (setup_coding_system, decode_eol, decode_coding, consume_chars):
13409 Honor inhibit-eol-conversion. (Bug #2186)
13410
449148b3
JR
134112009-02-28 Jason Rumney <jasonr@gnu.org>
13412
13413 * coding.c (detect_coding_charset): If not checking latin extra,
13414 fail on characters between 0x80 and 0xA0. (Bug#2354)
13415
a4aee864
EZ
134162009-02-28 Eli Zaretskii <eliz@gnu.org>
13417
13418 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 13419 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 13420
d88bee5a
GM
134212009-02-27 Glenn Morris <rgm@gnu.org>
13422
13423 * callint.c (Finteractive): Doc fix.
13424
a808f22d
KH
134252009-02-27 Kenichi Handa <handa@m17n.org>
13426
13427 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
13428
caf8d60c
CY
134292009-02-27 Chong Yidong <cyd@stupidchicken.com>
13430
13431 * font.c (font_style_to_value): Set value for unknown symbols to
13432 100 instead of 255.
b61137ea
CY
13433 (weight_table, slant_table, width_table): Treat "unspecified" as
13434 the default value.
caf8d60c 13435
1a0de25c
JB
134362009-02-26 Juanma Barranquero <lekktu@gmail.com>
13437
13438 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
13439
8fc45744
JB
134402009-02-25 Juanma Barranquero <lekktu@gmail.com>
13441
107bd7d1
JB
13442 * lread.c (Fload): Stop checking Vloads_in_progress and signal
13443 error as soon as a recursive load is detected.
8fc45744 13444
f097e223
AR
134452009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
13446
13447 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
13448 before caching.
13449
8810a12f
KH
134502009-02-24 Kenichi Handa <handa@m17n.org>
13451
13452 * fontset.c (fontset_find_font): Fix the condition for checking
13453 unavailable font.
13454
2c7d1565
GM
134552009-02-24 Glenn Morris <rgm@gnu.org>
13456
13457 * xfaces.c (Finternal_set_font_selection_order): Remove leading
13458 whitespace that confuses documentation.
13459
a20878b6
MB
134602009-02-23 Miles Bader <miles@gnu.org>
13461
13462 * process.c (Flist_system_processes, Fprocess_attributes)
13463 (syms_of_process): Rename `system-process-attributes' to
13464 `process-attributes'.
13465
b3b58c01
AS
134662009-02-22 Andreas Schwab <schwab@linux-m68k.org>
13467
1b3b981b
AS
13468 * coding.h (struct coding_system): Make safe_charsets a pointer to
13469 unsigned char.
13470 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
13471 being 255.
13472 (SAFE_CHARSET_P): Likewise.
13473 (setup_iso_safe_charsets): Properly setup safe_charsets.
13474 (Fdefine_coding_system_internal): Likewise.
13475 (setup_coding_system): Likewise. Remove unneeded casts.
13476 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
bba3e508
SM
13477 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS.
13478 Remove unneeded casts.
1b3b981b 13479
b3b58c01
AS
13480 * insdel.c (del_range_2): Don't modify gap contents when called
13481 from decode_coding_object. (Bug#1809)
13482
0b6f228c
CY
134832009-02-21 Chong Yidong <cyd@stupidchicken.com>
13484
13485 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
13486 Qfont_object.
13487 (Ftype_of): Recognize font objects.
13488
13489 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
13490
bba3e508
SM
13491 * font.c (Qfont_spec, Qfont_entity, Qfont_object):
13492 Definitions moved to data.c.
0b6f228c 13493
52f8870b
AR
134942009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13495
13496 * nsterm.m (x_make_frame_invisible): Unset async_visible,
13497 async_iconified. Based on a patch by Christian Lynbech
13498 <christian.lynbech@tieto.com>.
13499 (EmacsView-windowDidMiniaturize:): Unset async_visible.
13500
7087d5e9
GM
135012009-02-20 Glenn Morris <rgm@gnu.org>
13502
13503 * syntax.c (Fskip_chars_forward): Fix doc typo.
13504
41d2ceef
CY
135052009-02-20 Chong Yidong <cyd@stupidchicken.com>
13506
13507 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
13508
1a3b7ca6
CY
135092009-02-19 Chong Yidong <cyd@stupidchicken.com>
13510
13511 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
13512
73cce38d
KH
135132009-02-19 Kenichi Handa <handa@m17n.org>
13514
13515 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 13516 Don't overflow coding->carryover. (Bug#2370)
73cce38d 13517
a51092ee
DN
135182009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
13519
13520 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
13521
c423ecca
KH
135222009-02-18 Kenichi Handa <handa@m17n.org>
13523
13524 * font.c (font_check_otf_features): Fix handling of `nil' element.
13525 (Ffont_spec): Describe :lang and :otf in the docstring.
13526
4c1958f4
AS
135272009-02-16 Andreas Schwab <schwab@suse.de>
13528
13529 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
13530 string.
13531
5704f39a
KH
135322009-02-16 Kenichi Handa <handa@m17n.org>
13533
13534 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 13535 (Bug#1723)
5704f39a 13536
8f0085aa
CY
135372009-02-14 Chong Yidong <cyd@stupidchicken.com>
13538
a057d86a 13539 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
13540
13541 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
13542 (handle_line_prefix): Suppress wrapping of wrap prefixes.
13543
aff01dd9
EZ
135442009-02-14 Eli Zaretskii <eliz@gnu.org>
13545
13546 * msdos.c (MAX_SCREEN_BUF): New macro.
13547 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
13548 Encode the entire run of glyphs sharing the same face, instead of
13549 doing that one glyph at a time (fixes a bug with displaying
13550 double-size characters).
13551
ba301db3
AR
135522009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
13553
13554 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
13555
13556 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
13557 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 13558 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
13559
13560 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 13561 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 13562
51d861de
SM
135632009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
13564
ac146f82 13565 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
13566 invisible areas.
13567
7fed8996
JR
135682009-02-12 Jason Rumney <jasonr@gnu.org>
13569
631ea4fb
JR
13570 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
13571 (add_font_entity_to_list): Call check_face_name even when family
13572 is unspecified.
13573
cb4a3e42
JR
13574 * w32term.c (x_display_pixel_height, x_display_pixel_width):
13575 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 13576 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 13577
7fed8996 13578 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 13579 raster fonts. (Bug#2219)
7fed8996 13580
895416e3
KH
135812009-02-12 Kenichi Handa <handa@m17n.org>
13582
13583 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
13584 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
13585 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 13586 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
13587 (find_automatic_composition): While looking forward and backward,
13588 check static composition. Fix where to stop looking forward.
13589 (composition_adjust_point): Fix checking of static composition.
13590 (Fcomposition_get_gstring): Pay attention to
1dacf998 13591 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
13592
13593 * lisp.h (fast_looking_at): Extern it.
13594
13595 * search.c (fast_looking_at): New function.
13596
51d861de 13597 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
13598 <struct glyph>.u.cmp.to.
13599 (append_composite_glyph): Likewise.
13600
51d861de 13601 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
13602 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
13603 composition.
51d861de 13604 (append_composite_glyph): Adjust for the change of
895416e3
KH
13605 <strcut glyph>.u.cmp.to.
13606
8510724d
JB
136072009-02-11 Juanma Barranquero <lekktu@gmail.com>
13608
13609 * casetab.c (init_casetab_once):
13610 * coding.c (ALLOC_CONVERSION_WORK_AREA):
13611 * font.c (font_update_lface):
13612 * fontset.c (Fnew_fontset):
13613 * ftfont.c (ftfont_drive_otf):
13614 * xfont.c (xfont_open):
13615 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
13616
294fa707
SM
136172009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13618
13619 * fileio.c (Fwrite_region): !NILP -> CONSP.
13620
b5bfebec
AS
136212009-02-10 Andreas Schwab <schwab@suse.de>
13622
13623 * process.c (send_process): Properly relocate pointer into data
adab88bd 13624 when using encoded data. (Bug#2272)
b5bfebec 13625
cb84a2be
KH
136262009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
13627
13628 * coding.c (detect_coding_charset): Fix previous change.
13629
89e09428
JR
136302009-02-08 Jason Rumney <jasonr@gnu.org>
13631
13632 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 13633 disappeared while hourglass was displayed. (Bug #2193)
89e09428 13634
4470a277
AS
136352009-02-07 Andreas Schwab <schwab@suse.de>
13636
13637 * unexelf.c (unexec): Fix error message.
13638
3175b12a
AR
136392009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
13640
13641 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 13642 when modal window is active. (Bug #2152)
3175b12a
AR
13643 (applicationShouldTerminate:): Remove now-unneeded while loop
13644 around NSRunAlertPanel.
13645
13646 * nsmenu.m (popupSession): New file-global variable.
13647 (pop_down_menu): End the popupSession before closing dialog.
13648 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
13649 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
13650 don't query NSApp for events (just sleep instead).
13651
8434d0b8
EZ
136522009-02-07 Eli Zaretskii <eliz@gnu.org>
13653
51d861de
SM
13654 * coding.c (syms_of_coding) <translation-table-for-input>:
13655 Modify doc string to discourage use for character code unification.
8434d0b8 13656
aa82edfd
CY
136572009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13658
13659 * atimer.c (run_timers): Update pending_atimers.
13660
2d283c7c
CY
136612009-02-06 Chong Yidong <cyd@stupidchicken.com>
13662
eb306cab
CY
13663 * image.c (svg_load_image): Fix last change.
13664
2d283c7c
CY
13665 * xfns.c (Fx_create_frame): Signal an error if no font is
13666 found (Bug#2147).
13667
4d8e170e
JB
136682009-02-05 Juanma Barranquero <lekktu@gmail.com>
13669
13670 * character.c (syms_of_character) <script-representative-chars>:
13671 Fix typo in docstring.
13672
c96169a0
AR
136732009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
13674
13675 * nsmenu.m (pop_down_menu): New function.
13676 (ns_popup_dialog): Call it on unwind.
13677 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
13678 call timer_check() (Bug#2154).
13679 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
13680 handling_signal is set.
13681 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
13682
31fd7c5c 13683 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
13684
13685 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
13686
13687 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
13688
51d861de
SM
13689 * keyboard.c (poll_for_input_1, handle_async_input):
13690 Set handling_signal under HAVE_NS.
c96169a0 13691
aacd8ba1
GM
136922009-02-04 Glenn Morris <rgm@gnu.org>
13693
13694 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
13695
4cb75c4b
KH
136962009-02-04 Kenichi Handa <handa@m17n.org>
13697
13698 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
13699
13700 * charset.c (Fchar_charset): New optional arg restriction.
13701
13702 * coding.h (coding_system_charset_list): Extern it.
13703
13704 * coding.c (coding_system_charset_list): New function.
13705
13706 * composite.c: Include coding.h and termhooks.h.
13707 (composition_gstring_p): Fix for the terminal case.
13708 (composition_gstring_width): Likewise.
13709 (fill_gstring_body): Likewise.
13710 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
13711 the frame.
13712 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
13713 is within a composition.
867d4bb3 13714 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
13715
13716 * term.c (encode_terminal_code): Fix handling of composition.
13717 (produce_composite_glyph): For static composition, get pixel_width
13718 from struct composition.
13719
826ba17e
AS
137202009-02-02 Andreas Schwab <schwab@suse.de>
13721
13722 * unexelf.c (unexec): Handle unaligned bss offset.
13723
8ad093db
AR
137242009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13725
13726 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
13727 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 13728
8ad093db
AR
13729 * keyboard.c (handle_interrupt): Don't call
13730 quit_throw_to_read_char() under NS.
d0a76a6e 13731
8ad093db
AR
13732 * blockinput.h: Remove NS-specific code.
13733
4d18a7a2
DN
137342009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
13735
db878925
DN
13736 * dispnew.c (window_change_signal): Don't try to get the size of a
13737 suspended tty frame.
13738 * term.c (Fresume_tty): Resize if the size has changed while the
13739 tty was suspended.
13740
4d18a7a2
DN
13741 * alloc.c (mark_stack): Properly conditionalize previous change.
13742
8984df7c
JB
137432009-01-30 Juanma Barranquero <lekktu@gmail.com>
13744
13745 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
13746 * w32term.c (w32_read_socket) [SYNC_INPUT]:
13747 Remove; this code is not used on Windows.
13748
75f4f1ac
EZ
137492009-01-30 Eli Zaretskii <eliz@gnu.org>
13750
13751 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
13752 EOLs that also has stray ^M characters.
13753
07a1e794
JB
137542009-01-30 Juanma Barranquero <lekktu@gmail.com>
13755
13756 * atimer.c (run_timers, alarm_signal_handler):
13757 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
13758 * w32inevt.c (w32_console_read_socket):
13759 * w32term.c (w32_read_socket):
13760 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
13761
a8b11cc9
CY
137622009-01-30 Chong Yidong <cyd@stupidchicken.com>
13763
13764 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
13765 Initialize it as a relative filename pattern.
13766 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
13767 (Fcall_process_region): Simplify temp file creation using
13768 temporary-file-directory.
13769
c279587b
EZ
137702009-01-29 Eli Zaretskii <eliz@gnu.org>
13771
13772 * msdos.c: Rename pending_signals to msdos_pending_signals.
13773 (sig_suspender, sigprocmask): Adjust.
13774
a8fe3242
CY
137752009-01-29 Chong Yidong <cyd@stupidchicken.com>
13776
13777 * keyboard.c (pending_signals): New var.
13778 (poll_for_input, input_available_signal, init_keyboard): Set it.
13779 (process_pending_signals): New function.
13780
13781 * lisp.h (QUIT): Check pending_signals instead of
13782 interrupt_input_pending. Use process_pending_signals.
13783
51d861de 13784 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 13785
51d861de 13786 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
13787
13788 * sysdep.c (emacs_write): Use process_pending_signals.
13789
13790 * xterm.c (XTread_socket): Update pending_signals.
13791
13792 * w32term.c (w32_read_socket): Update pending_signals.
13793
13794 * w32inevt.c (w32_console_read_socket): Update pending_signals.
13795
6570a1c4
KH
137962009-01-29 Kenichi Handa <handa@m17n.org>
13797
13798 * xftfont.c (xftfont_has_char): New function.
13799 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
13800
d72a4afa
AR
138012009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
13802
13803 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
13804 under GNUstep.
13805 (ns_query_color): New declaration.
13806
13807 * nsterm.m (ns_confirm_quit): New variable.
13808 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
13809 (EmacsApp-applicationShouldTerminate:): Use it.
13810 (EmacsPrefsController): Let user set it.
13811 (ns_query_color): New function.
13812 (ns_defined_color): Use it.
13813 (ns_initialize): Drop.
13814 (ns_term_init): Add two lines from ns_initialize(), and set
13815 input_interrupt_mode to nil.
13816
13817 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 13818 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 13819
9fe78804
KH
138202009-01-28 Kenichi Handa <handa@m17n.org>
13821
13822 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
13823 (fontset_get_font_group): Remember that no font-group is specified
13824 for C.
9fe78804 13825
fa57de36
CY
138262009-01-27 Chong Yidong <cyd@stupidchicken.com>
13827
930600e9
CY
13828 * fns.c (concat): Check for string overflow (bug#1787).
13829
fa57de36
CY
13830 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
13831 Quadruple undo limits (bug#1501).
13832
7179ce7b
KH
138332009-01-27 Kenichi Handa <handa@m17n.org>
13834
13835 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
13836 directly use GT_Get_Char_index.
13837
13838 * xftfont.c (struct xftfont_info): New member `index'.
13839
13840 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 13841 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 13842
5be8fcc0
CY
138432009-01-26 Kenichi Handa <handa@m17n.org>
13844
13845 * fontset.c (fontset_find_font): Fix handling of non-cons return
13846 value of fontset_get_font_group.
13847 (fontset_font): Revert last change.
13848
19ae3e61
JR
138492009-01-26 Jason Rumney <jasonr@gnu.org>
13850
13851 * w32font.c (w32font_list_internal): Return quickly if registry is
13852 unknown. Simplify final return.
13853 (add_font_entity_to_list): Break complex logic down into more
13854 manageable chunks. Move unknown registry check to
13855 w32font_list_internal.
13856
8612b71a
AR
138572009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
13858
13859 Changes to remove Feval calls from GUI under NS.
13860
d8038940
JB
13861 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
13862 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
13863 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
13864
13865 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
13866 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
13867 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
13868 instead of NON_ASCII_KEYSTROKE_EVENT.
13869 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
13870 (EmacsApp-applicationShouldTerminate:): Query user.
13871 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
13872 instead of Feval.
13873
13874 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
13875
13876 * keyboard.c (kbd_buffer_get_event): Check for it.
13877 (keys_of_keyboard): Define lispy keys for
13878 ns-put/unput-working-text.
13879
13880 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
13881 versions.
13882 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
13883
6288ae55
CY
138842009-01-25 Chong Yidong <cyd@stupidchicken.com>
13885
13886 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 13887 setting current_buffer directly. (Bug#2044)
6288ae55 13888
289e7f8f
CY
138892009-01-24 Chong Yidong <cyd@stupidchicken.com>
13890
5ce87308 13891 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 13892 any work. (Bug#1952, bug#1990).
5ce87308 13893
64cc3cf6 13894 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 13895
b3243e6f
AR
138962009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
13897
13898 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
13899 (ns_no_defaults): New declaration.
13900 (main): Use it.
e0d2e69a 13901
d900b2af 13902 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 13903
d900b2af 13904 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 13905
d900b2af
AR
13906 * nsterm.m (ns_no_defaults): New variable.
13907 (ns_initialize): Don't read defaults when ns_no_defaults.
13908 (EmacsView-readSelectionFromPasteboard:)
13909 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 13910 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
13911 (ns_dumpglyphs_stretch): New function.
13912 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 13913 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 13914
e0d2e69a
AR
13915 * nsimage.m (setPixmapData:): Set to ignore image DPI.
13916
3ac71f5d
CY
139172009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
13918
13919 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
13920 call for Sparc64.
13921
3fe53a83
AR
139222009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
13923
13924 * nsfns.m:
13925 * nsgui.h:
13926 * nsmenu.m:
13927 * nsselect.m:
13928 * nsterm.h:
13929 * nsterm.m: Remove '23' comments that indicated code added during
13930 update from emacs-20 -> emacs-23.
13931
10f87c6f 139322009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
13933
13934 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 13935 ns_alternate_modifier. (Bug#1217)
a3b53a85 13936
c7cef62d
AR
13937 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
13938 Display all shortcuts, including those w/o super modifier.
13939
575fb8bd
AR
13940 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
13941
918b848b
CY
139422009-01-22 Chong Yidong <cyd@stupidchicken.com>
13943
13944 * fileio.c (Vwrite_region_post_annotation_function)
13945 (Vwrite_region_annotation_buffers): New vars.
13946 (build_annotations_unwind): Just reset
13947 Vwrite_region_annotation_buffers.
13948 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
13949 Call write-region-post-annotation-function.
13950 (build_annotations): Add to Vwrite_region_annotation_buffers if
13951 buffer changes.
13952
a39e2539
AR
139532009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
13954
13955 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
13956 Tiger.
51d861de
SM
13957 * nsfns.m (ns_do_applescript):
13958 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 13959
35ed44db
AR
139602009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
13961
13962 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
13963
cbe0b5bf
AR
139642009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
13965
13966 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 13967
6049d3a0
AR
13968 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
13969
13970 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
13971 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
13972 handle Ctrl-tab. (Bug#1841)
13973 (ns_get_color): Use unsigned long long for scanned hex string value.
13974 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 13975 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 13976 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 13977 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 13978 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 13979 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 13980 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 13981
d3810c21 13982 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 13983 DPI. (Bug#1316)
d3810c21
AR
13984 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
13985 values in onTiger section.
4c7077c3 13986
e301e634
CY
139872009-01-19 Chong Yidong <cyd@stupidchicken.com>
13988
7f82490b
CY
13989 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
13990 Check return value of font_spec_from_name.
64cc3cf6 13991 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
13992
13993 * font.c (font_spec_from_name): Return Qnil if font name could not
13994 be parsed.
13995 (font_parse_name): Treat a `?' character as part of an XLFD.
13996
e301e634
CY
13997 * fns.c (Fsubstring): Doc fix.
13998
1c0db158
KH
139992009-01-19 Kenichi Handa <handa@m17n.org>
14000
51d861de 14001 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
14002 (ftfont_list): Likewise.
14003
acf20901
JB
140042009-01-18 Juanma Barranquero <lekktu@gmail.com>
14005
fff4e459
JB
14006 * dbusbind.c (Fdbus_register_signal):
14007 * process.c (conv_sockaddr_to_lisp):
14008 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
14009
acf20901
JB
14010 * callproc.c (Fgetenv_internal): Doc fix.
14011
e7abcdfb
CY
140122009-01-16 Chong Yidong <cyd@stupidchicken.com>
14013
14014 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
14015 it is not even used.
14016
b60861e6
GM
140172009-01-16 Glenn Morris <rgm@gnu.org>
14018
14019 * font.c (Ffont_variation_glyphs): Silence compiler.
14020
8db52afe
JB
140212009-01-15 Juanma Barranquero <lekktu@gmail.com>
14022
14023 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
14024 Reported by David Robinow <drobinow@gmail.com>.
14025
4cddb209
KH
140262009-01-15 Kenichi Handa <handa@m17n.org>
14027
51d861de 14028 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 14029
f247f67b
JR
140302009-01-14 Jason Rumney <jasonr@gnu.org>
14031
14032 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 14033 never a fontset. (Bug#1562)
f247f67b 14034
f56a4450
KH
140352009-01-14 Kenichi Handa <handa@m17n.org>
14036
14037 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 14038 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 14039
4e99855e
CY
140402009-01-13 Chong Yidong <cyd@stupidchicken.com>
14041
14042 * font.c (font_clear_prop): If clearing the family, clear the font
14043 width index too.
14044
fff4e459 14045 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 14046
24f01470
JB
140472009-01-12 Juanma Barranquero <lekktu@gmail.com>
14048
14049 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
14050 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
14051 functions, use sizeof.
14052
a41240a3
MR
140532009-01-12 Martin Rudalics <rudalics@gmx.at>
14054
14055 * keyboard.c (read_char): Fix case where last_nonmenu_event
14056 returned a bad value with submenus. (Bug#447)
14057
944636b8
CY
140582009-01-12 Chong Yidong <cyd@stupidchicken.com>
14059
14060 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
14061 family, clear the font width index too.
14062
0dad7c6f
JR
140632009-01-11 Jason Rumney <jasonr@gnu.org>
14064
14065 * keyboard.c (cmd_error_internal): Exit when errors occur before
14066 frame creation and not in daemon mode. (Bug#1836)
14067
7c2363af
CY
140682009-01-10 Chong Yidong <cyd@stupidchicken.com>
14069
14070 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
14071 of a display vector, backtrack.
14072 (try_window_reusing_current_matrix): Check glyph type before
14073 referencing charpos member.
14074
97b1b294
EZ
140752009-01-10 Eli Zaretskii <eliz@gnu.org>
14076
14077 Fix Bug #876:
14078
14079 * coding.c (inhibit_null_byte_detection): New variable.
14080 (detect_coding, detect_coding_system): Don't pay attention to null
14081 bytes if inhibit_null_byte_detection is non-zero.
51d861de 14082 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
14083 <inhibit-iso-escape-detection>: Doc fix.
14084
4624b6e3
JR
140852009-01-09 Jason Rumney <jasonr@gnu.org>
14086
14087 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 14088 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
14089 Only report Unicode Plane 2 fonts as unicode-sip.
14090
323b840c
CY
140912009-01-09 Chong Yidong <cyd@stupidchicken.com>
14092
51d861de
SM
14093 * xfaces.c (Fx_font_family_list): Delete function.
14094 Move compatibility version to faces.el.
323b840c 14095
51d861de 14096 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 14097
eba7400d
MR
140982009-01-09 Martin Rudalics <rudalics@gmx.at>
14099
14100 * frame.c (x_set_frame_parameters): Remember requested value for
14101 fullscreen before it's reset by the parameter handler.
14102
4b09796d
GM
141032009-01-09 Glenn Morris <rgm@gnu.org>
14104
14105 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 14106 (last_command_event): ... and update all users.
4b09796d
GM
14107 (last_input_char): For clarity, rename to...
14108 (last_input_event): ... and update all users.
14109 (last-command-char, last-input-char): Move to subr.el as aliases.
14110 * cmds.c, commands.h: Update for last_command_char rename.
14111
14ccea62
CY
141122009-01-08 Chong Yidong <cyd@stupidchicken.com>
14113
51d861de 14114 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 14115
5f004711
JR
141162009-01-08 Jason Rumney <jasonr@gnu.org>
14117
14118 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
14119 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
14120 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
14121 Don't declare.
fff4e459 14122 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
14123 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
14124
b71f6f73
KH
141252009-01-07 Kenichi Handa <handa@m17n.org>
14126
50b06221 14127 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 14128 remember the coding system used for decoding in
50b06221
KH
14129 coding_system (Bug#1039).
14130
b71f6f73 14131 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 14132 breaking the loop. (Bug#870)
b71f6f73
KH
14133 (decode_coding_utf_16, decode_coding_emacs_mule)
14134 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14135 (decode_coding_charset): Likewise.
14136
56f668f7
MR
141372009-01-05 Martin Rudalics <rudalics@gmx.at>
14138
14139 * frame.c (x_set_frame_parameters): Make sure height (width) get
14140 applied when fullwidth (fullheight) is set. (Bug#1522)
14141
5da9424d
JB
141422009-01-04 Juanma Barranquero <lekktu@gmail.com>
14143
14144 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
14145 (utc_base): Declare as ULONGLONG, not long double.
14146 (convert_time_raw): Delete.
14147 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
14148 (initialize_utc_base): New function.
14149 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
14150 (convert_from_time_t): Use initialize_utc_base; compute result with
14151 64-bit arithmetic.
14152 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
14153
c4605e09
EZ
141542009-01-03 Eli Zaretskii <eliz@gnu.org>
14155
9acef61c 14156 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
14157 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
14158 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
14159 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
14160 [!subprocesses]: Define.
14161 (syms_of_process) [!subprocesses]: Intern and staticpro them.
14162 (Flist_system_processes, Fsystem_process_attributes)
14163 [!subprocesses]: Call list_system_processes and
14164 system_process_attributes instead of returning Qnil.
14165
9acef61c
JB
14166 * dosfns.c (system_process_attributes, list_system_processes):
14167 New functions.
c4605e09
EZ
14168
14169 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
14170
14171 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
14172 Don't use the default (no-op) implementation.
14173
8b7d0a16
JR
141742009-01-03 Jason Rumney <jasonr@gnu.org>
14175
a6d46bc1
JR
14176 * keyboard.c (parse_modifiers_uncached): Wheel events are
14177 clicks (bug#687).
14178
8b7d0a16
JR
14179 * w32term.c (x_query_colors, x_query_color): New functions.
14180
14181 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
14182 (svg_load_image): Cast returned pointers from dynamically loaded
14183 functions. Eliminate W32 specific code.
14184
bfe11752
DN
141852009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
14186
89e2438a
DN
14187 * nsfns.m (x_set_foreground_color, x_set_background_color)
14188 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
14189 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
14190 x_ prefix instead of ns_. Update references.
14191 (syms_of_nsfns): Add a FIXME comment.
14192
14193 * nsterm.m (x_set_cursor_type): New prototype.
14194 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
14195
bfe11752
DN
14196 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
14197 for Solaris instead of incorrectly providing Qutime and Qcutime.
14198
031da700
EZ
141992009-01-02 Eli Zaretskii <eliz@gnu.org>
14200
14201 * w32.c (process_times): Compute sum of utime and stime.
14202 (system_process_attributes): Add Qtime to the alist.
14203
14204 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
14205 and add them to the alist.
14206
14207 * process.c (top level) <Qtime, Qctime>: New variables.
14208 (syms_of_process): staticpro them.
14209 (Fsystem_process_attributes): Add their documentation to the doc
14210 string.
14211
14212 * process.h: Declare Qtime and Qctime.
14213
df23bf08
JR
142142009-01-02 Jason Rumney <jasonr@gnu.org>
14215
9acef61c 14216 * image.c (Qgobject): New symbol.
df23bf08
JR
14217 (syms_of_image): Initialize it.
14218 (init_svg_functions): Load some functions from gobject library.
14219
5bbdf7aa
DN
142202009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
14221
14222 * frame.c (make_terminal_frame): Remove redundant code and useless
14223 block.
14224
63136da6
AS
142252009-01-01 Andreas Schwab <schwab@suse.de>
14226
14227 * process.c (conv_sockaddr_to_lisp): Add workaround for
14228 getsockname bug on BSD.
14229
9ef69046
CY
142302009-01-01 Chong Yidong <cyd@stupidchicken.com>
14231
d6fafbe0
CY
14232 * xfns.c (x_create_tip_frame): Set border width of the X window.
14233
51d861de 14234 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 14235
f9c34147
JR
142362009-01-01 Jason Rumney <jasonr@gnu.org>
14237
9acef61c 14238 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
14239 Don't block input, as per earlier xterm.c changes.
14240
f5497e45
AR
142412008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
14242
14243 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
14244 (ns_appkit_version_int): New function.
14245 (x-server-version): Use ns_appkit_version_int and follow 21+
14246 convention of returning 3 integers.
14247
c19cab20
KH
142482008-12-30 Kenichi Handa <handa@m17n.org>
14249
14250 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
14251 (CHAR_SURROGATE_PAIR_P): New macro.
14252
14253 * font.h (struct font_driver): New member get_variation_glyphs.
14254
9acef61c 14255 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
14256 (Ffont_variation_glyphs): New function.
14257 (syms_of_font): Defsubr it.
14258
14259 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
14260 ftfont_variation_glyphs.
14261 (setup_otf_gstring): New function.
14262 (ftfont_drive_otf): Use it.
14263 (ftfont_shape_by_flt): Handle variation selector.
14264 (ftfont_variation_glyphs): New function.
14265
28cd591f
MR
142662008-12-30 Martin Rudalics <rudalics@gmx.at>
14267
14268 * frame.c (Vemacs_iconified): Remove.
14269
7f714baf
JR
142702008-12-30 Jason Rumney <jasonr@gnu.org>
14271
14272 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 14273 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 14274
9d2d22ab
CY
142752008-12-30 Chong Yidong <cyd@stupidchicken.com>
14276
14277 * indent.c (Fvertical_motion): Don't advance iterator if we have
14278 reseated to the desired position.
14279
14280 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
14281 checking for pos match.
14282
545312c2
KH
142832008-12-30 Kenichi Handa <handa@m17n.org>
14284
1ede3eb6
KH
14285 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
14286 just get the low 8-bit of the code.
14287
545312c2
KH
14288 * font.c (font_intern_prop): Validate str as multibyte.
14289
bd7bbf29
DN
142902008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
14291
31e0750e
DN
14292 * dispextern.h (struct face): Move lface and hash from the middle
14293 of bitfields.
14294
bd7bbf29
DN
14295 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
14296
b5672e7c
DN
142972008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
14298
14299 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
14300 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
14301 instead of intervals.h.
14302
d704470f
AS
143032008-12-26 Andreas Schwab <schwab@suse.de>
14304
14305 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
14306 cons.
14307
54b33868
MR
143082008-12-26 Martin Rudalics <rudalics@gmx.at>
14309
14310 * textprop.c (Qminibuffer_prompt): New variable.
14311 (syms_of_textprop): Initialize it.
14312 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
14313 in minibuffer-prompt face. (Bug#1662)
14314
40b615d6
JR
143152008-12-25 Jason Rumney <jasonr@gnu.org>
14316
14317 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
14318
baae5c2d
JR
143192008-12-24 Jason Rumney <jasonr@gnu.org>
14320
14321 * ralloc.c (r_alloc_reset_variable): New function.
14322
14323 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 14324 record of what points where. (Bug#716)
baae5c2d 14325
a9051c88
DN
143262008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
14327
14328 * minibuf.c (read_minibuf): Follow the non-interactive case when
14329 running as a daemon, before detaching.
14330
8b146312
AS
143312008-12-22 Andreas Schwab <schwab@suse.de>
14332
14333 * buffer.c (init_buffer): Use realloc instead of xrealloc.
14334 * gtkutil.c (free_widget_value): Use xfree instead of free.
14335
56f2de10
MR
143362008-12-22 Martin Rudalics <rudalics@gmx.at>
14337
14338 * frame.c (delete_frame): New function derived from
14339 Fdelete_frame to handle Qnoelisp value for FORCE argument.
14340 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
14341 (Fdelete_frame): Call delete_frame. Remove line from doc-string
14342 saying that FORCE non-nil doesn't run `delete-frame-functions'.
14343 * frame.h: Extern delete_frame.
14344 * window.c (window_loop):
14345 * terminal.c (delete_terminal):
14346 * xterm.c (x_connection_closed):
14347 * xfns.c (Fx_hide_tip):
9acef61c 14348 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 14349
1fc200d6
JR
143502008-12-21 Jason Rumney <jasonr@gnu.org>
14351
14352 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
14353 when character maps to .notdef character.
14354
5e252df2
SM
143552008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
14356
14357 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
14358
99b72cc4
JR
143592008-12-20 Jason Rumney <jasonr@gnu.org>
14360
14361 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 14362 a graphical frame on Windows. (Bug#1325)
99b72cc4 14363
acc49a52
JD
143642008-12-20 Jan Djärv <jan.h.d@swipnet.se>
14365
14366 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
14367
6ea15123
CY
143682008-12-20 Chong Yidong <cyd@stupidchicken.com>
14369
14370 * minibuf.c (Fread_buffer): Doc fix.
14371
b2dab6c8
JR
143722008-12-20 Jason Rumney <jasonr@gnu.org>
14373
54ea0c87 14374 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 14375 server name in UNC paths. (Bug#719)
54ea0c87 14376
b2dab6c8 14377 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 14378 charbuf. (Bug#1035)
b2dab6c8 14379
6d1921be
DN
143802008-12-19 Daniel Engeler <engeler@gmail.com>
14381
14382 * sysdep.c (serial_configure): Fix typo.
14383
53934c98
DN
143842008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
14385
14386 * sysdep.c: Include alloca.h.
f4f634e8
DN
14387 (system_process_attributes): Add implementation for Solaris.
14388
14389 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 14390
06e111a6
DN
143912008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
14392
14393 Reorganize implementation of Flist_system_processes and
14394 Fsystem_process_attributes. No functional changes.
14395 * process.c: Don't #include pwd.h, grp.h and limits.h.
14396 (Flist_system_processes): Just call list_system_processes.
14397 (Fsystem_process_attributes): Just call system_process_attributes.
14398 (procfs_list_system_processes, time_from_jiffies)
14399 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
14400 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
14401
14402 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
14403 (list_system_processes): Rename from
14404 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
14405 Provide a do nothing implementation.
14406 (system_process_attributes): Rename from
14407 procfs_list_system_processes.
14408 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 14409 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
14410
14411 * w32.c (list_system_processes): Rename from
14412 w32_list_system_processes.
14413 (system_process_attributes): Rename from
14414 w32_system_process_attributes.
14415
14416 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
14417
14418 * process.h (w32_list_system_processes)
14419 (w32_system_process_attributes): Remove.
362654a6
JB
14420 (list_system_processes, system_process_attributes):
14421 New prototypes.
06e111a6 14422
6a705b23
KH
144232008-12-19 Kenichi Handa <handa@m17n.org>
14424
14425 * xfont.c (xfont_decode_coding_xlfd): New function.
14426 (xfont_encode_coding_xlfd): New function.
14427 (xfont_list_pattern): Decode XLFD by iso-8859-1.
14428 (xfont_list): Decode and encode XLFD by iso-8859-1.
14429 (xfont_match): Likewise.
14430 (xfont_list_family): Likewise.
14431 (xfont_open): Likewise.
14432
d66c0241 14433 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
14434 names are utf-8.
14435
d66c0241 14436 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
14437 names are utf-8.
14438
5a130941
JD
144392008-12-18 Jan Djärv <jan.h.d@swipnet.se>
14440
14441 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
14442 changed.
bfd20325
JD
14443 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
14444 clicked on a detached tool bar button.
5a130941 14445
fd95644b
DN
144462008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
14447
14448 * emacs.c (main): Print and error and exit when no data is read
14449 from the pipe.
14450
e6eee6ae
JR
144512008-12-17 Jason Rumney <jasonr@gnu.org>
14452
14453 * w32font.c (w32font_has_char): Always return -1.
14454
a35dd56b
KH
144552008-12-16 Kenichi Handa <handa@m17n.org>
14456
14457 * font.c (font_open_entity): Fix previous change.
14458
0e3635c2
DN
144592008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
14460
14461 * process.c: Include <limits.h>.
14462
d4835507 144632008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
14464
14465 * font.c (font_update_drivers): Fix mistake in reconstructing the
14466 driver list.
14467
144682008-12-16 Chong Yidong <cyd@stupidchicken.com>
14469
14470 * font.c (font_clear_cache): Fix format of font cache data.
14471
e2cbc401
CY
144722008-12-15 Chong Yidong <cyd@stupidchicken.com>
14473
14474 * xftfont.c (xftfont_open): Free Xft font pattern if
14475 XftFontOpenPattern fails.
14476
14477 * xterm.c (x_free_frame_resources): Remove extraneous call to
14478 free_frame_faces.
14479
b131d535
CY
144802008-12-13 Chong Yidong <cyd@stupidchicken.com>
14481
14482 * xterm.c (x_delete_display): Move xim_close_dpy call to
14483 x_delete_terminal.
14484 (x_delete_terminal): Call xim_close_dpy.
14485
e6df5336
JR
144862008-12-13 Jason Rumney <jasonr@gnu.org>
14487
14488 * w32font.c (intern_font_name): New function.
14489 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
14490 (w32font_open_internal, Fx_select_font): Decode font name.
14491 (fill_in_logfont, list_all_matching_fonts): Encode font name.
14492
14493 * w32font.h (intern_font_name): Declare new function.
14494
14495 * w32uniscribe.c (add_opentype_font_name_to_list):
14496 Use intern_font_name.
14497
20d68145
CY
144982008-12-13 Chong Yidong <cyd@stupidchicken.com>
14499
9f2554de
CY
14500 * frame.c (Fdelete_frame): Call free_font_driver_list.
14501
3d9bec9a
CY
14502 * font.c (free_font_driver_list): Implement missing function.
14503
20d68145
CY
14504 * w32term.c (w32_term_init): Don't initialize the image cache
14505 here; it will be done in init_frame_faces.
14506
14507 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
bba3e508
SM
14508 (struct x_display_info): Remove unused member null_pixel.
14509 New member xim_callback_data.
20d68145
CY
14510
14511 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
14512 (xim_initialize): Save pointer to callback function data.
14513 (xim_close_dpy): Free callback function data. Call XCloseIM,
14514 reverting 2008-11-04 change by David Smith.
14515 (x_term_init): Don't initialize the image cache here; it will be
14516 done in init_frame_faces. Remove ancient "null_pixel" cruft.
14517 (x_delete_display): Free x_dnd_atoms member.
14518
96f9306b
KH
145192008-12-13 Kenichi Handa <handa@m17n.org>
14520
ef1b0ba7 14521 * font.c (font_rescale_ratio): Move from xfaces.c.
6dec9044 14522 Argument type changed. Handle a font-spec too.
96f9306b 14523 (font_score): Check Vface_font_rescale_alist.
6dec9044 14524 (font_open_entity): Likewise. (Bug#1547)
96f9306b 14525
ef1b0ba7 14526 * xfaces.c (font_rescale_ratio): Move to font.c.
96f9306b 14527
8d5b4964
CY
145282008-12-13 Chong Yidong <cyd@stupidchicken.com>
14529
14530 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
14531
e6df5336
JR
145322008-12-12 Jason Rumney <jasonr@gnu.org>
14533
bba3e508
SM
14534 * w32fns.c (x_display_info_for_name, Fx_open_connection):
14535 Set Vwindow_system_version to the real w32 major version.
e6df5336 14536
97c6058a
DN
145372008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
14538
14539 * term.c (init_tty): Move setting the terminal name before the
14540 potential user: maybe_fatal.
14541
ec4e88d7
CY
145422008-12-11 Chong Yidong <cyd@stupidchicken.com>
14543
ef1b0ba7 14544 * term.c (tty_free_frame_resources): Rename from delete_tty_output;
d4835507 14545 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 14546
b4233ec9
JR
145472008-12-11 Jason Rumney <jasonr@gnu.org>
14548
8ec71e23 14549 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 14550 SYMBOL_CHARSET. (Bug#547)
8ec71e23 14551
b4233ec9 14552 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 14553 size for surrogates. (Bug#1096, bug#872)
b4233ec9 14554
011a0143
JB
145552008-12-11 Juanma Barranquero <lekktu@gmail.com>
14556
14557 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
14558
3c309f34
JB
145592008-12-11 Juanma Barranquero <lekktu@gmail.com>
14560
14561 * process.c (Fsystem_process_attributes, syms_of_process):
14562 Fix typo in name of Ssystem_process_attributes.
14563 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
14564
fedc6ab5
JB
145652008-12-11 Juanma Barranquero <lekktu@gmail.com>
14566
14567 * syntax.c (Fmodify_syntax_entry): Doc fix.
14568
ba3de0e8
JB
145692008-12-10 Juanma Barranquero <lekktu@gmail.com>
14570
14571 * font.c (Ffont_spec): Move usage to end of docstring.
14572
174f1c74
JR
145732008-12-10 Jason Rumney <jasonr@gnu.org>
14574
14575 * w32font.c (Qcham): New symbol.
14576 (font_supported_scripts): Add cham, and comments for other new
14577 scripts in bitfield from OpenType spec.
9d32f818
JR
14578 (add_font_entity_to_list): Limit unicode-sip fonts to those that
14579 contain characters beyond the bmp.
174f1c74 14580
7b649478
KH
145812008-12-10 Kenichi Handa <handa@m17n.org>
14582
14583 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 14584 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
14585 Qunicode_sip.
14586
2133e2d1
JB
145872008-12-10 Juanma Barranquero <lekktu@gmail.com>
14588
14589 * coding.c (QCdefault_char): Rename from QCdefalut_char.
14590 (Fcoding_system_put): Use QCdefault_char.
14591 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
14592
9af886ee
CY
145932008-12-09 Chong Yidong <cyd@stupidchicken.com>
14594
74d819eb
CY
14595 * xftfont.c (syms_of_xftfont): Fix typo.
14596
4ccfa1c0 14597 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 14598
7c19d3ae
DN
145992008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
14600
14601 * emacs.c (main): Close daemon_pipe on exec.
14602
567826bb
CY
146032008-12-08 Chong Yidong <cyd@stupidchicken.com>
14604
14605 * termchar.h (struct tty): New members termcap_term_buffer and
14606 termcap_strings_buffer.
14607
14608 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 14609 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
14610 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
14611 All callers changed.
14612 (init_tty): Store termcap data and string buffers in new struct
14613 tty members termcap_term_buffer and termcap_strings_buffer.
14614 (delete_tty): Free them.
4ccfa1c0 14615 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 14616
aa96c42b
SZ
146172008-12-07 Seiji Zenitani <zenitani@mac.com>
14618
14619 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 14620 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 14621
b7e1d896
CY
146222008-12-06 Chong Yidong <cyd@stupidchicken.com>
14623
14624 * coding.c (make_conversion_work_buffer): Disable buffer
14625 modification hooks in the work buffer.
14626
b5ec91a5
EZ
146272008-12-05 Eli Zaretskii <eliz@gnu.org>
14628
14629 * process.c (procfs_system_process_attributes): If `nread' has a
14630 negative value, assign zero to it.
14631
a5d2a52b
CY
146322008-12-05 Chong Yidong <cyd@stupidchicken.com>
14633
68c5540b 14634 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 14635
7bf1bb21
KH
146362008-12-05 Kenichi Handa <handa@m17n.org>
14637
14638 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
14639 second character is a combining character.
14640
2fdc7d00
EZ
146412008-12-05 Eli Zaretskii <eliz@gnu.org>
14642
14643 * process.c (procfs_system_process_attributes): Don't use cmd,
14644 cmdsize, and q without initializing them first.
14645
bf6bfba8
JR
146462008-12-04 Jason Rumney <jasonr@gnu.org>
14647
14648 * w32font.c (w32font_draw): Initialize orig_clip before getting
14649 it, and delete it when finished.
14650
a3b1a468
DN
146512008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
14652
14653 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
14654 case when running as a daemon before detaching.
14655
8b8be8eb
JB
146562008-12-03 Juanma Barranquero <lekktu@gmail.com>
14657
805f2638 14658 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 14659
b1bde622
KH
146602008-12-03 Kenichi Handa <handa@m17n.org>
14661
e500c47d
KH
14662 * font.c (font_at): Set `multibyte' at first.
14663
ca516334
KH
14664 * coding.c (decode_coding_charset): Check type of an element of
14665 vector VALIDS.
7bf1bb21 14666 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 14667
4ccfa1c0 14668 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
14669 (font_for_char): Likewise.
14670
1e5ecd37
CY
146712008-12-03 Chong Yidong <cyd@stupidchicken.com>
14672
d5b01609 14673 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
14674 (font_update_lface): Handle fonts with corrupted size specs,
14675 i.e. non-int and non-float.
d5b01609 14676
11e3a6e4 14677 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 14678 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 14679 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 14680
ab06788b
CY
14681 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
14682
1e5ecd37 14683 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 14684 underline_minimum_offset for underline position.
1e5ecd37 14685
63c125ab
DN
146862008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
14687
14688 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
14689
14690 * character.c (c_string_width): Specify the type for LEN.
14691
3a8406e1
KH
146922008-12-03 Kenichi Handa <handa@m17n.org>
14693
4ccfa1c0 14694 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 14695 (decode_coding_utf_8): Likewise.
4ccfa1c0 14696 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 14697 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 14698
651df7d9
CY
146992008-12-02 Chong Yidong <cyd@stupidchicken.com>
14700
14701 * keyboard.c (make_lispy_position): Only use PT if the selected
14702 window is current.
14703
1f625c6c
AS
147042008-12-02 Andreas Schwab <schwab@suse.de>
14705
f7741ce9
AS
14706 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
14707
1f625c6c
AS
14708 * doprnt.c (doprnt1): Fix size of charbuf.
14709
92bc2678
CY
147102008-12-02 Chong Yidong <cyd@stupidchicken.com>
14711
14712 * keyboard.c (timer_check): Revert last change.
14713
93b9e8cc
JB
147142008-12-02 Juanma Barranquero <lekktu@gmail.com>
14715
14716 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
14717
fd7a37d5
JB
147182008-12-01 Juanma Barranquero <lekktu@gmail.com>
14719
14720 * makefile.w32-in: Update dependencies.
14721 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
14722
c115043b
AS
147232008-12-01 Andreas Schwab <schwab@suse.de>
14724
14725 * font.c (register_font_driver): Use xmalloc.
14726 (font_put_frame_data): Likewise.
14727
f5668d2a
CY
147282008-12-01 Chong Yidong <cyd@stupidchicken.com>
14729
860d96be
CY
14730 * xfaces.c (realize_x_face): Make abort condition clearer.
14731
f5668d2a
CY
14732 * gtkutil.c (update_frame_tool_bar): Initialize variable.
14733
379c17e7
CY
147342008-11-30 Chong Yidong <cyd@stupidchicken.com>
14735
14736 * keyboard.c (timer_check): After a timer runs, ensure that the
14737 selected window's buffer is current.
14738
35f36d65
JB
147392008-11-30 Juanma Barranquero <lekktu@gmail.com>
14740
f952c61c
JB
14741 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
14742 It was accidentally restored by the Unicode merge.
14743
35f36d65
JB
14744 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
14745
b23077df
JB
147462008-11-29 Juanma Barranquero <lekktu@gmail.com>
14747
14748 * w32proc.c: Include "coding.h".
14749 (Fw32_short_file_name): Encode filename passed to Windows API.
14750 (Fw32_long_file_name): Encode filename passed to Windows API and
14751 decode back the result. (Bug#1433)
14752
b8ebe9dd
KH
147532008-11-29 Kenichi Handa <handa@m17n.org>
14754
8cc53f96
KH
14755 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
14756 not before accessing it.
14757
b8ebe9dd
KH
14758 * charset.c (Fdefine_charset_internal): After calculating
14759 min_char, max_char, and fastmap, copy the charset structure again.
14760 (encode_char): Fix the previous change.
14761
59bc82c0
SZ
147622008-11-28 Seiji Zenitani <zenitani@mac.com>
14763
14764 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
14765
14766 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
14767
14768 * nsterm.m (x_set_frame_alpha): New function.
14769
32247e3d
EZ
147702008-11-27 Eli Zaretskii <eliz@gnu.org>
14771
14772 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
14773
b003e5ff
JB
147742008-11-27 Juanma Barranquero <lekktu@gmail.com>
14775
14776 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
14777 pointer to check_face_name.
14778
708550f5
KH
147792008-11-27 Kenichi Handa <handa@m17n.org>
14780
14781 * category.h (SET_CATEGORY_SET): Call set_category_set.
14782 (set_category_set): Extern it.
14783
14784 * category.c (hash_get_category_set): New function.
bba3e508 14785 (Fmodify_category_entry): Adjust for the change of
708550f5
KH
14786 char_table_ref_and_range. Call hash_get_category_set to get a
14787 category set to store in the table.
14788
14789 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
14790 Funify_charset.
14791
2ae37cf0 14792 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
14793 (DECODE_CHAR): Check if the decoder vector is ready.
14794 (ENCODE_CHAR): Check if the encoder char-table is ready.
14795 (maybe_unify_char): Extern it.
14796
14797 * charset.c (Vchar_unified_charset_table): Delete it.
14798 (inhibit_load_charset_map): New variable.
14799 (temp_charset_work): New variable.
14800 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
14801 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
14802 New macros.
bba3e508
SM
14803 (load_charset_map): Meaning of control_flag changed.
14804 If inhibit_load_charset_map is nonzero, setup a table in
708550f5
KH
14805 temp_charset_work.
14806 (load_charset): New argument control_flag.
14807 (map_charset_for_dump): New function.
14808 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
14809 map_charset_for_dump.
14810 (Fdefine_charset_internal): If the charset method is MAP, load
14811 mapping tables by calling load_charset.
14812 (Funify_charset): Don't load a mapping table but directly set
14813 Vchar_unify_table.
14814 (maybe_unify_char): New function.
14815 (decode_char): Don't handle the deleted method MAP_DEFERRED.
14816 Handle the case of inhibit_load_charset_map being nonzero.
14817 (encode_char): Don't handle the deleted method MAP_DEFERRED.
14818 Handle the case of inhibit_load_charset_map being nonzero.
14819 (Fclear_charset_maps): Just free temp_charset_work.
14820 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
14821 variable.
14822
bba3e508 14823 * chartab.c (sub_char_table_ref_and_range): Adjust for the
708550f5
KH
14824 change of char_table_ref_and_range.
14825 (char_table_ref_and_range): Change the meaning of argument FROM
14826 and TO. Now the caller must provide initial values for *FROM
14827 and *TO.
14828
bba3e508 14829 * fontset.c (fontset_add): Adjust for the change of
708550f5
KH
14830 char_table_ref_and_range.
14831 (fontset_get_font_group): Likewise.
14832 (Ffontset_info): Likewise.
14833
bba3e508 14834 * keymap.c (describe_vector): Adjust for the change of
708550f5
KH
14835 char_table_ref_and_range. For char-table, put boundary between
14836 non-ASCII and 8-bit characters.
14837
14838 * print.c (print_object): For bool-vector, delete unnecessary
14839 check of ASCII_BYTE_P.
14840
9196133b
JR
148412008-11-26 Jason Rumney <jasonr@gnu.org>
14842
14843 * w32font.c (w32font_open_internal): Don't include external
9acef61c 14844 leading in font height. (Bug#879)
9196133b 14845
9f688acf
GM
148462008-11-26 Glenn Morris <rgm@gnu.org>
14847
14848 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
14849 redefinition with ifdef. (Bug#1383)
14850
90d19aff
AR
148512008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
14852
14853 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
14854
4ccfa1c0 148552008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
14856
14857 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
14858 New EmacsView methods.
14859 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
14860 Fixes bug #1048,1357,1414.
14861
148622008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
14863
14864 Fix bug #1362.
14865 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
14866 is not an indexed color.
14867 * nsterm.m (free_indexed_color): Add argument checking.
14868 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
14869
e7d5ecb3
CY
148702008-11-24 Chong Yidong <cyd@stupidchicken.com>
14871
14872 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
14873 Document confirm-after-completion value for
14874 minibuffer-completion-confirm.
14875
c285743c
JR
148762008-11-24 Jason Rumney <jasonr@gnu.org>
14877
14878 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
14879 warning.
14880
b0857706
JR
148812008-11-23 Jason Rumney <jasonr@gnu.org>
14882
14883 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
14884 restored before returning.
14885
14886 * w32font.c (check_face_name): New function.
14887 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 14888 fonts. (Bug#642)
b0857706 14889
ee50ff07
MR
148902008-11-22 Martin Rudalics <rudalics@gmx.at>
14891
14892 * buffer.c (Fswitch_to_buffer): Reword and mention new option
14893 confirm-nonexistent-file-or-buffer in doc-string.
14894
b8ff72fa
SM
148952008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
14896
14897 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
14898 Fix copy/paste typo. Add checks.
14899
cee53ed4
KH
149002008-11-21 Kenichi Handa <handa@m17n.org>
14901
14902 * coding.c (detect_coding_iso_2022): Reject invalid composition
14903 sequence.
14904 (DECODE_COMPOSITION_START): If the current source is the last
14905 block, and the current composition doesn't end, regard this
14906 sequence as invalid.
14907 (decode_coding_iso_2022): Handle invalid composition sequence.
14908
f6ef1e65
MR
149092008-11-20 Martin Rudalics <rudalics@gmx.at>
14910
14911 * window.c (coordinates_in_window): Don't return
14912 ON_VERTICAL_BORDER for the rightmost position of a mode/header
14913 line when the window is not the rightmost one. (Bug#1372)
14914
e08b1705
MR
149152008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
14916
14917 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
14918
ad98e89f
EZ
149192008-11-15 Eli Zaretskii <eliz@gnu.org>
14920
14921 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
14922 and bright_bg if noninteractive is non-zero.
14923
fb098a4b
CY
149242008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14925
14926 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
14927 x_draw_glyph_string_background.
14928
14929 * w32term.c (x_draw_glyph_string): Likewise.
14930
ce952b6e
CY
149312008-11-15 Chong Yidong <cyd@stupidchicken.com>
14932
14933 * xterm.c (x_draw_glyph_string): Stop drawing the background of
14934 the next glyph string once past the overhang width.
14935
14936 * nsterm.m (ns_draw_glyph_string): Likewise.
14937
14938 * w32term.c (x_draw_glyph_string): Likewise.
14939
26ea7079
CY
149402008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
14941
14942 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
14943 double file close.
14944
1c33c906
MR
149452008-11-14 Martin Rudalics <rudalics@gmx.at>
14946
14947 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
14948 dedicated status of window before attempting to display another
14949 buffer in it.
14950
8fc29035
JB
149512008-11-14 Juanma Barranquero <lekktu@gmail.com>
14952
14953 * msdos.c (Fmsdos_long_file_names):
14954 (syms_of_msdos) <dos-unsupported-char-glyph>:
14955 * dosfns.c (Fint86): Fix typos in docstrings.
14956
55fb4286
EZ
149572008-11-14 Eli Zaretskii <eliz@gnu.org>
14958
14959 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
14960
3fda0315
KY
149612008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
14962
14963 * puresize.h (BASE_PURESIZE): Increase to 1260000.
14964
7e849c17
CY
149652008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
14966
14967 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
14968
14969 * frame.h: Negative alpha means "don't touch".
14970
14971 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
14972
14973 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
14974
b9fd67bd
DN
149752008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
14976
14977 * hftctl.c:
14978 * chpdef.h:
14979 * acldef.h: Remove files used only for systems no longer supported.
14980
14981 * Makefile.in: Fix .o alphabetical ordering.
14982 (hftctl.o): Remove dependency, file removed.
14983 (keymap.o, print.o): Depend on charset.h.
14984
d5998e03
KH
149852008-11-10 Kenichi Handa <handa@m17n.org>
14986
2ae37cf0 14987 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 14988
be70e183
CY
149892008-11-08 Chong Yidong <cyd@stupidchicken.com>
14990
14991 * dired.c (file_name_completion): If completion_ignore_case is
14992 enabled, ignore case when checking completion-regexp-list.
14993
7cf94eac
EZ
149942008-11-08 Eli Zaretskii <eliz@gnu.org>
14995
14996 * vm-limit.c (get_lim_data): Fix last change.
14997
ee107a89
KH
149982008-11-08 Kenichi Handa <handa@m17n.org>
14999
15000 * character.c (Fget_byte): New function.
15001 (syms_of_character): Defsubr Fget_byte.
15002
5fd15622
CY
150032008-11-07 Chong Yidong <cyd@stupidchicken.com>
15004
15005 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
15006 cursor position is valid after scrolling.
15007
13d62fad
JB
150082008-11-06 Juanma Barranquero <lekktu@gmail.com>
15009
15010 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
15011
a1dd2936
GM
150122008-11-06 Glenn Morris <rgm@gnu.org>
15013
15014 * xterm.c (handle_one_xevent): Don't let popup menus cause
15015 mouse-autoselect-window related window switching. (Bug#1261)
15016
860cd236
CY
150172008-11-04 David Smith <davidsmith@acm.org> (tiny change)
15018
15019 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
15020
653a3150
AS
150212008-11-04 Andreas Schwab <schwab@suse.de>
15022
15023 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
15024
870f5cac
CY
150252008-11-03 Chong Yidong <cyd@stupidchicken.com>
15026
15027 * xfns.c (Fx_wm_set_size_hint): New function.
15028
1e02f3cb
MR
150292008-11-03 Martin Rudalics <rudalics@gmx.at>
15030
15031 * textprop.c (Fprevious_single_char_property_change): Return 0
15032 when there's no change in a string. (Bug#1301)
15033
e630dfc6
MR
150342008-11-02 Martin Rudalics <rudalics@gmx.at>
15035
15036 * frame.c (do_switch_frame): New argument NORECORD passed to
15037 Fselect_window.
15038 (Fselect_frame): New argument NORECORD passed to
15039 do_switch_frame.
15040 (Fset_frame_selected_window): New argument NORECORD passed to
15041 Fselect_frame.
15042 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
15043 in call of do_switch_frame.
15044 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
15045 Handle NORECORD argument in call of Fselect_frame.
15046 * lisp.h (do_switch_frame, Fselect_frame)
15047 (Fset_frame_selected_window): Adjust declarations.
15048 * window.c (select_frame_norecord): New function.
15049 (run_window_configuration_change_hook): Use it and call
15050 Fselect_frame with NORECORD set.
15051 (Fselect_window): Pass NORECORD to Fselect_frame.
15052 (Fset_window_configuration): Handle NORECORD argument in call of
15053 do_switch_frame.
15054 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
15055 Fset_frame_selected_window.
15056 * keyboard.c (command_loop_1): Handle NORECORD in call of
15057 Fselect_frame (currently ifdefd).
15058
9020b223
GM
150592008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
15060
15061 * emacs.c (USAGE2): Untabify.
15062
793ffee8
SM
150632008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
15064
15065 * composite.c (fill_gstring_header): Fix copy/paste typo.
15066
ab6d1131
MR
150672008-10-31 Martin Rudalics <rudalics@gmx.at>
15068
15069 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
15070 (Fother_window): Rename argument and rewrite doc-string.
15071 (select_window_norecord): Fix return value. (Bug#1276)
15072
601a9cf1
JB
150732008-10-30 Juanma Barranquero <lekktu@gmail.com>
15074
15075 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
15076 new frames overriding foreground for tooltips. Based on similar patch
15077 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
15078
813b0652
CY
150792008-10-29 Chong Yidong <cyd@stupidchicken.com>
15080
15081 * emacs.c (Fdaemon_initialized): Initialize nfd.
15082
4414f58f
MR
150832008-10-29 Martin Rudalics <rudalics@gmx.at>
15084
15085 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
15086 (Fwindow_text_height): Clarify doc-strings.
15087 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
15088 doc-string of window-scroll-functions.
15089
ecdcaa09
RS
150902008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
15091
15092 * category.c (syms_of_category): Fix typo in docstring.
15093
23fe745a
JB
150942008-10-28 Juanma Barranquero <lekktu@gmail.com>
15095
15096 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
15097 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
15098 Fix typos in docstrings.
15099
ff808935
DN
151002008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
15101
15102 * emacs.c (daemon_pipe): Make non-static.
15103 (IS_DAEMON): Move definition ...
15104 * lisp.h (IS_DAEMON): ... here.
15105 (daemon_pipe): Declare.
15106 (is_daemon): Remove.
15107 * dispnew.c (init_display): Use IS_DAEMON.
15108
fc012771
SM
151092008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
15110
15111 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
15112 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
15113
15114 * emacs.c (is_daemon): Remove.
15115 (main): Don't set is_daemon.
15116 (IS_DAEMON): New macro.
15117 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 15118 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
15119 parent exits.
15120 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
15121
d8bdbe6f
CY
151222008-10-27 Chong Yidong <cyd@stupidchicken.com>
15123
d1a072bf
CY
15124 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
15125 over-sized glyph, draw it with the default glyph width.
15126
e2e325aa
CY
15127 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
15128 glyph, draw it with the default glyph width.
15129
15130 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
15131 glyph, draw it with the default glyph width.
15132
d8bdbe6f
CY
15133 * xdisp.c (try_scrolling): When computing the distance from the
15134 scroll margin to PT, try moving some distance past the window
15135 bottom before giving up.
15136
7bfac547
MR
151372008-10-27 Martin Rudalics <rudalics@gmx.at>
15138
15139 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
15140 (Fset_window_buffer): Explain in doc-string that a window can be
15141 "strongly" dedicated to its buffer.
15142
4ff029f6
DN
151432008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
15144
15145 * emacs.c (daemon_name): New variable.
15146 (main): Deal with --daemon=SERVER_NAME.
15147 (Fdaemonp): Return a name if one was passed to --daemon.
15148
5790ef40
DN
151492008-10-26 Romain Francoise <romain@orebokech.com>
15150
f9bd0df9 15151 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
15152 (main): Create a pipe before forking, make the parent exit only after
15153 the child has closed its end of the pipe. Move closing the
15154 descriptors ...
15155 (Fdaemon_initialized): ... here. New function.
15156
f5385255
SM
151572008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
15158
4d632321
SM
15159 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
15160 the previous unoptimized table.
15161
f5385255
SM
15162 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
15163 the distinction between non-nil and non-t value of `dedicated'.
15164
6c56a0f3
CY
151652008-10-25 Chong Yidong <cyd@stupidchicken.com>
15166
15167 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 15168 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 15169
fec89261
MR
151702008-10-25 Martin Rudalics <rudalics@gmx.at>
15171
15172 * window.c (Fget_buffer_window, Fdelete_windows_on)
15173 (Freplace_buffer_in_windows): Make buffer argument optional and
15174 rename to buffer_or_name.
15175
34fcddd0
CY
151762008-10-24 Chong Yidong <cyd@stupidchicken.com>
15177
f5385255
SM
15178 * xdisp.c (handle_single_display_spec, handle_display_prop):
15179 Undo 2005-05-16 change.
34fcddd0
CY
15180 (handle_stop): Pop iterator if it's loaded with an empty string.
15181 (get_overlay_strings_1): Don't save iterator if it's loaded with
15182 an empty string (bug#1201).
15183
064766f2
KH
151842008-10-24 Kenichi Handa <handa@m17n.org>
15185
15186 * ftfont.c (ftfont_otf_features): Fix previous change.
15187 (ftfont_otf_capability): Check FeatureList.FeatureCount before
15188 calling ftfont_otf_features.
15189
f9bd0df9 151902008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
15191
15192 * font.c (font_match_p): Fix for the case that a vector of
15193 characters is in script-representative-chars.
15194
1dae9197
MA
151952008-10-24 Michael Albinus <michael.albinus@gmx.de>
15196
15197 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 15198 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
15199 (xd_read_queued_messages): Catch Qdbus_error from the macros.
15200 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 15201 macro. (Bug#1186)
1dae9197 15202
f9bd0df9 152032008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
15204
15205 * s/sol2-10.h: New file.
15206
878a4584
JB
152072008-10-23 Juanma Barranquero <lekktu@gmail.com>
15208
15209 * xdisp.c (fill_glyph_string): Fix typo in source (though the
15210 poor beast has survived 9+ years and the jump from xterm.c!).
15211
cd265ca6
MR
152122008-10-23 Martin Rudalics <rudalics@gmx.at>
15213
15214 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
15215 Reword doc-string.
f5385255 15216 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 15217
472a4dc9
JB
152182008-10-23 Juanma Barranquero <lekktu@gmail.com>
15219
15220 * character.c (syms_of_character) <script-representative-chars>:
15221 <unicode-category-table>: Doc fixes.
15222
159bd5a2
NF
152232008-10-23 Noah Friedman <friedman@splode.com>
15224
15225 * coding.c (make_conversion_work_buffer): Check that
15226 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
15227 Fget_buffer_create.
15228
49f9c344
KH
152292008-10-23 Kenichi Handa <handa@m17n.org>
15230
15231 * font.c (font_add_log): Check the values of extra properties.
15232
12bb3111
MR
152332008-10-22 Martin Rudalics <rudalics@gmx.at>
15234
15235 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
15236 Reword doc-string.
15237 (Fset_window_parameter): Use NILP.
15238 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 15239 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 15240
bbeb4e99
JB
152412008-10-22 Juanma Barranquero <lekktu@gmail.com>
15242
15243 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
15244
152452008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
15246
15247 * nsfns.m (ns_appkit_version): New function.
15248 (x-server-version): Use it.
15249 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
15250 (x-server-vendor): Don't check_ns().
15251
15252 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
15253
a9b555d3
JB
152542008-10-22 Juanma Barranquero <lekktu@gmail.com>
15255
15256 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
15257 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
15258
4626499f
KH
152592008-10-22 Kenichi Handa <handa@m17n.org>
15260
e3681952
KH
15261 * syntax.c (scan_words): Call word_boundary_p instead of comparing
15262 scripts.
15263
4626499f
KH
15264 * category.c (word_boundary_p): Check scripts instead of charset.
15265 Handle nil value in word-separating-categories and
15266 word-combining-categories.
15267 (syms_of_category): Fix docstrings of word-separating-categories
15268 and word-combining-categories.
15269
1560f91a
EZ
152702008-10-21 Eli Zaretskii <eliz@gnu.org>
15271
15272 * coding.c (Fencode_coding_region, Fdecode_coding_region)
15273 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
15274
f4668441
MR
152752008-10-21 Martin Rudalics <rudalics@gmx.at>
15276
15277 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
15278 Rename arg "buffer" to "buffer_or_name".
15279 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
15280 it optional.
15281 (no_switch_window): Remove since the return value is not used.
a9b555d3 15282 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
15283 Consider window as dedicated when Fwindow_dedicated_p returns a
15284 non-nil value.
15285 * lisp.h: Remove prototype for no_switch_window.
15286
fd75ddb2
JD
152872008-10-21 Jan Djärv <jan.h.d@swipnet.se>
15288
15289 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 15290 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 15291
07295713
KH
152922008-10-21 Kenichi Handa <handa@m17n.org>
15293
15294 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
15295 check Vlatin_extra_code_table.
15296
712adc82
EZ
152972008-10-20 Eli Zaretskii <eliz@gnu.org>
15298
15299 * fileio.c (Fset_file_modes): Doc fix.
15300
f549eb0b
MA
153012008-10-19 Michael Albinus <michael.albinus@gmx.de>
15302
15303 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
15304 in arrays.
15305
aac0c6e3
MR
153062008-10-19 Martin Rudalics <rudalics@gmx.at>
15307
15308 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
15309 Mention kill-buffer in doc-string.
15310 (Fset_window_buffer): Reinsert tem check removed in last commit.
15311 (Fenlarge_window, Fshrink_window): Have argument names and
15312 doc-string follow Elisp manual more closely.
15313
153142008-10-18 Eli Zaretskii <eliz@gnu.org>
15315
15316 * fileio.c (Fset_file_modes): Doc fix.
15317
153182008-10-18 Martin Rudalics <rudalics@gmx.at>
15319
15320 * window.c (Fwindow_width, Fset_window_start)
15321 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
15322 (Fdelete_windows_on, Freplace_buffer_in_windows):
15323 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
15324 (Fwindow_dedicated_p): Make window argument optional.
15325 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
15326 (Fset_window_buffer): Respect any non-nil dedicated value for
15327 window. Rename "buffer" argument to "buffer_or_name".
15328
153292008-10-18 Ulrich Mueller <ulm@gentoo.org>
15330
15331 * m/sh3.h: New file, machine description for SuperH.
15332
153332008-10-17 Martin Rudalics <rudalics@gmx.at>
15334
15335 * window.c (Fsplit_window): Rename arg horflag to horizontal.
15336
153372008-10-17 Kenichi Handa <handa@m17n.org>
15338
15339 * ftfont.c (ftfont_otf_features): Fix indexing
15340 gsub_gpos->FeatureList.Feature. Check the validity of indices.
15341
153422008-10-16 Magnus Henoch <mange@freemail.hu>
15343
15344 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
15345 (Fdbus_call_method_asynchronously): Ditto.
15346 This change makes C-h f display the argument list.
15347
153482008-10-16 Chong Yidong <cyd@stupidchicken.com>
15349
15350 * fileio.c (Fexpand_file_name): Doc fix.
15351
15352 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
15353 of :foreground and :background equivalent to unspecified (20.x
15354 compatibility).
15355
153562008-10-15 Eli Zaretskii <eliz@gnu.org>
15357
15358 * buffer.c (syms_of_buffer): Doc fix.
15359
153602008-10-14 Kenichi Handa <handa@m17n.org>
15361
15362 * font.c (font_clear_prop): When clearing font width, clear the
15363 average width field too.
15364
153652008-10-12 Andreas Schwab <schwab@suse.de>
15366
15367 * ftfont.c (ftfont_shape_by_flt): Make static.
15368 * ftfont.h (ftfont_shape_by_flt): Don't declare.
15369
15370 * font.c: Don't include <m17n-flt.h>.
15371
153722008-10-10 Eli Zaretskii <eliz@gnu.org>
15373
15374 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
15375
153762008-10-09 Eli Zaretskii <eliz@gnu.org>
15377
15378 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
15379 away code.
15380
153812008-10-09 Chong Yidong <cyd@stupidchicken.com>
15382
15383 * dispnew.c (update_text_area): Avoid looping due to large glyph
15384 overhangs (bug#1070).
15385
153862008-10-09 Kenichi Handa <handa@m17n.org>
15387
15388 * fontset.c (face_for_char): If face->fontset is negative, just
15389 return ascii_face.
15390
f5385255
SM
15391 * font.c (font_delete_unmatched): Fix previous change.
15392 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
15393
153942008-10-09 Martin Rudalics <rudalics@gmx.at>
15395
15396 * frame.c (Fraise_frame): On text-only terminals select frame in
15397 order to make it visible. (Bug#1061)
15398
153992008-10-08 Chong Yidong <cyd@stupidchicken.com>
15400
15401 * fontset.c (fontset_find_font): Check frame validity.
15402
154032008-10-07 Chong Yidong <cyd@stupidchicken.com>
15404
a9b555d3 15405 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
15406 (xg_display_close): Allow Emacs to close all displays (bug#985).
15407
154082008-10-06 Andreas Schwab <schwab@suse.de>
15409
f5385255 15410 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
15411
154122008-10-06 Chong Yidong <cyd@stupidchicken.com>
15413
f5385255 15414 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 15415
a9b555d3 15416 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
15417
15418 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
15419 during initialization.
15420
154212008-10-04 Eli Zaretskii <eliz@gnu.org>
15422
15423 * xdisp.c (redisplay_internal): If frame switched, redisplay the
15424 whole thing on MSDOS frames as well as on a TTY.
15425
15426 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
15427 well as for TTY.
15428 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
15429 well as on a TTY.
15430
15431 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
15432 as well as for TTY.
15433
15434 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
15435
15436 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
15437 MSDOS frames as well.
15438
154392008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
15440
15441 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
15442 correct arguments.
b71ac3dd 15443 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
15444
154452008-10-03 Glenn Morris <rgm@gnu.org>
15446
15447 * emacs.c (USAGE1): Add --daemon.
15448
154492008-10-02 Eli Zaretskii <eliz@gnu.org>
15450
15451 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
15452 100, so it's in percents as advertised.
15453
154542008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
15455
15456 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
15457 (ns_output.current_cursor, ns_output.desired_cursor)
15458 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
15459 (FRAME_NEW_CURSOR_COLOR): Remove.
15460
15461 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 15462 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
15463 enumeration (HOLLOW_BOX_CURSOR, etc.).
15464
15465 * nsterm.m (ns_frame_rehighlight): Remove commented code.
15466 (draw_window_cursor): Simplify code.
f5385255
SM
15467 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
15468 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 15469 updates manually.
a9b555d3
JB
15470 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
15471 Use core Emacs cursor types.
aac0c6e3 15472
b8ff72fa 15473 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
15474
154752008-10-02 Martin Rudalics <rudalics@gmx.at>
15476
15477 * process.c (Faccept_process_output): Fix doc-string.
15478
154792008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
15480
15481 * gmalloc.c (__sbrk): Also define for uClibc.
15482
15483 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
15484 for uClibc.
15485
154862008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
15487
15488 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
15489 styles.
15490 (nsfont_open): Reenable the cache.
15491
154922008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
15493
15494 * font.c (font_matching_entity): Reflect ATTRS in font selection.
15495 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
15496
154972008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
15498
15499 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
15500 a suspended terminal.
15501
155022008-09-30 Michael Albinus <michael.albinus@gmx.de>
15503
15504 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
15505
155062008-09-30 Eli Zaretskii <eliz@gnu.org>
15507
15508 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
15509
155102008-09-30 Chong Yidong <cyd@stupidchicken.com>
15511
15512 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
15513 in a continued line coincides with a line beginning.
15514
155152008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
15516
15517 * nsfont.m (nsfont_trait_distance): Fix bug.
15518 (nsfont_list): Return a list rather than a vector (syncs with Handa
15519 changes of 2008-05-14).
15520 (nsfont_open): Improve logging.
15521
155222008-09-29 Andreas Schwab <schwab@suse.de>
15523
15524 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
15525
155262008-09-28 Martin Rudalics <rudalics@gmx.at>
15527
15528 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
15529 name as char-resolve-modifiers.
15530 Reported by: Markus Triska <markus.triska@gmx.at>
15531
155322008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
15533
15534 * dispnew.c (init_display): Return earlier when running as a daemon.
15535
155362008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
15537
15538 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
15539
155402008-09-27 Eli Zaretskii <eliz@gnu.org>
15541
15542 * composite.c (Fcomposition_get_gstring)
15543 (Fcompose_region_internal, Fcompose_string_internal)
15544 (Ffind_composition_internal): Doc fix.
15545 (syms_of_composite) <compose-chars-after-function>: Doc fix.
15546 (syms_of_composite) <auto-composition-function>: Doc fix.
15547 (syms_of_composite) <composition-function-table>: Doc fix.
15548
155492008-09-25 Chong Yidong <cyd@stupidchicken.com>
15550
15551 * search.c (wordify): New argument for lax word-ends.
15552 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
15553
155542008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
15555
15556 * lisp.h (is_daemon): Declare.
15557 * dispnew.c (init_display): Do not try to initialize the terminal
15558 when running as a daemon.
15559
155602008-09-22 Chong Yidong <cyd@stupidchicken.com>
15561
15562 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
15563 x_display_pixel_height.
15564
155652008-09-22 Martin Rudalics <rudalics@gmx.at>
15566
15567 * undo.c (record_point): Don't call Fundo_boundary for first
15568 change. (Bug#731)
15569
155702008-09-22 Juanma Barranquero <lekktu@gmail.com>
15571
15572 * emacs.c (Fdaemonp): Doc fix.
15573
155742008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
15575
15576 * emacs.c (main): Place #ifdef in the proper place.
15577
155782008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
15579
15580 * emacs.c (standard_args): Add --daemon.
15581 (main): Disconnect from the terminal when --daemon is passed.
15582 (is_daemon): New variable.
15583 (Fdaemonp): New function.
15584 (syms_of_emacs): Defsubr it.
15585
155862008-09-20 Chong Yidong <cyd@stupidchicken.com>
15587
15588 * xdisp.c (get_next_display_element): Handle string display
15589 correctly when checking for the end of a box run.
15590
155912008-09-20 Glenn Morris <rgm@gnu.org>
15592
15593 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
15594 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
15595 (Frename_file): Avoid copying to trash if a rename involves
15596 a delete. (Bug#964).
15597
155982008-09-20 Eli Zaretskii <eliz@gnu.org>
15599
15600 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
15601 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
15602 frames as well as termcap frames.
15603 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
15604 get_named_tty.
15605
156062008-09-19 Eli Zaretskii <eliz@gnu.org>
15607
15608 * process.c (procfs_system_process_attributes): Fix cmdline in
15609 case /proc/PID/cmdline is empty.
15610
15611 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
15612 x_display_pixel_height.
15613
156142008-09-19 Juanma Barranquero <lekktu@gmail.com>
15615
15616 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
15617
15618 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
15619 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
15620
156212008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
15622
15623 * dispextern.h (struct it): Move line_wrap away from the middle of
15624 bitfields. Move voffset in struct iterator_stack_entry after the
15625 bitfields. Move tab_width near after another short.
15626
156272008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
15628
15629 * frame.h (struct frame): Move alpha from the middle of bitfields.
15630
15631 * window.h (struct window): Move frozen_window_start_p after the
15632 rest of the bitfields to reduce padding.
15633
156342008-09-18 Chong Yidong <cyd@stupidchicken.com>
15635
15636 * xterm.h (x_display_info): Remove `height' and `width' members.
15637
15638 * nsterm.h (ns_display_info): Remove `height' and `width' members.
15639
15640 * w32term.h (w32_display_info): Remove `height', `width',
15641 `height_in', and `width_in' members.
15642
b8ff72fa
SM
15643 * xterm.c (x_display_pixel_height, x_display_pixel_width):
15644 New functions.
aac0c6e3
MR
15645 (x_calc_absolute_position): Use them.
15646 (x_term_init): Omit removed `height' and `width' members.
15647
b8ff72fa
SM
15648 * w32term.c (x_display_pixel_height, x_display_pixel_width):
15649 New functions.
aac0c6e3
MR
15650 (w32_read_socket, x_calc_absolute_position): Use them.
15651 (w32_initialize_display_info, w32_term_init): Omit removed members
15652 of w32_display_info.
15653
b8ff72fa
SM
15654 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
15655 New functions.
15656 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 15657
b8ff72fa
SM
15658 * xterm.c (x_display_pixel_height, x_display_pixel_width):
15659 New functions.
aac0c6e3
MR
15660 (x_calc_absolute_position): Use them.
15661 (x_term_init): Omit removed `height' and `width' members.
15662
15663 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
15664 (compute_tip_xy):
15665 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
15666 * xmenu.c (menu_position_func): Use x_display_pixel_height and
15667 x_display_pixel_width.
15668
156692008-09-18 Kenichi Handa <handa@m17n.org>
15670
15671 * composite.c (fill_gstring_header): Don't check FROM and TO here.
15672 (composition_compute_stop_pos): Fix handling of static composition.
15673 (Fcomposition_get_gstring): Check FROM and TO at first.
15674
156752008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
15676
46e722a9 15677 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
15678 mixup (YAILOM).
15679
156802008-09-17 Chong Yidong <cyd@stupidchicken.com>
15681
15682 * indent.c (Fvertical_motion): Use position reported by iterator
15683 instead of PT for determining screen motion (bug#943).
15684
156852008-09-17 Romain Francoise <romain@orebokech.com>
15686
15687 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
15688
156892008-09-17 Kenichi Handa <handa@m17n.org>
15690
15691 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
15692
15693 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
15694 if necessary.
15695
156962008-09-16 Kenichi Handa <handa@m17n.org>
15697
15698 * coding.c (make_conversion_work_buffer): Avoid calling
15699 Fget_buffer_create if it is not necessary.
15700
157012008-09-15 Martin Rudalics <rudalics@gmx.at>
15702
15703 * window.c (Fselect_window): Don't update window_select_count and
15704 use_time when norecord is not nil.
15705
157062008-09-14 Kenichi Handa <handa@m17n.org>
15707
15708 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
15709 specpdl_ptr.
15710
157112008-09-12 Kenichi Handa <handa@m17n.org>
15712
15713 * indent.c (scan_for_column): Don't handle automatic composition
15714 if the current buffer is not associated with a window.
15715
15716 * composite.c (composition_reseat_it): If the current buffer is
15717 not associated with a window, ignore the automatic composition.
15718 (find_automatic_composition): Likewise.
15719
157202008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
15721
15722 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
15723 (Fgpm_mouse_stop): Use it.
15724 * termhooks.h (close_gpm): Declare.
15725 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
15726 connection if Gpm_GetEvent fails.
15727
15728 * window.c (set_window_buffer): Always preserve current-buffer.
15729
157302008-09-12 Glenn Morris <rgm@gnu.org>
15731
15732 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
15733
157342008-09-11 Glenn Morris <rgm@gnu.org>
15735
15736 * charset.c (charset-map-path): Doc fix.
15737
157382008-09-10 Kenichi Handa <handa@m17n.org>
15739
15740 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
15741
15742 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
15743 compose a grapheme cluster with the preceding base glyph.
15744
15745 * composite.c (composition_compute_stop_pos): Fix previous change.
15746 Reset cmp_it->id to -1 at first.
15747
157482008-09-10 Glenn Morris <rgm@gnu.org>
15749
15750 * Makefile.in (character.o, chartab.o): Fix config.h typo.
15751
157522008-09-09 Chong Yidong <cyd@stupidchicken.com>
15753
15754 * keyboard.c (read_key_sequence): Reapply translation maps when
15755 switching keyboards.
15756
157572008-09-09 Kenichi Handa <handa@m17n.org>
15758
15759 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
15760 characters.
15761
15762 * composite.c (FORWARD_CHAR): Fix calculation
15763 of (POSITION).pos_byte.
15764 (composition_compute_stop_pos): Limit the search of composition to
15765 at most 500 characters ahead. If we reach the limit or find a
15766 newline, set cmp_it->ch to -2 and return 0.
15767 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
15768
157692008-09-08 Kenichi Handa <handa@m17n.org>
15770
15771 * indent.c (Fvertical_motion): Be sure to set
15772 it_overshoot_expected if it.cmp_it.id is non-negative.
15773
157742008-09-07 Andreas Schwab <schwab@suse.de>
15775
15776 * callproc.c (Fcall_process): Don't hold references to string data
15777 across garbage collection. Move initialisation of new_argv down
15778 to avoid compiler bug.
15779
157802008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
15781
15782 * process.c (Fsystem_process_attributes): Doc fix.
15783
157842008-09-07 Chong Yidong <cyd@stupidchicken.com>
15785
15786 * callproc.c (Fcall_process): Canonicalize current directory name.
15787
15788 * xdisp.c (move_it_to): When moving by vpos, ensure that the
15789 iterator advances to the next line if the current line ends in a
15790 continued tab.
15791
157922008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
15793
15794 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
15795 member to point to cmp_from.
15796
15797 * xdisp.c: Doc fix for references to gidx data member.
15798
157992008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
15800
15801 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
15802
158032008-09-07 Kenichi Handa <handa@m17n.org>
15804
15805 * composite.c (FORWARD_CHAR): Check STOP after
15806 incrementing (POSITION).pos.
15807
158082008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
15809
15810 * process.c (Fsystem_process_attributes): Doc fix.
15811
158122008-09-06 Chong Yidong <cyd@stupidchicken.com>
15813
15814 * keyboard.c (Ftop_level): Doc fix.
15815
158162008-09-06 Eli Zaretskii <eliz@gnu.org>
15817
15818 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
15819 minibuffer, don't let lower part of menu invade the echo area.
15820
15821 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
15822 "char *q" to access menu text and advance through it. Revert the
15823 change that displayed ">" instead of ASCII character 0x10.
15824
158252008-09-05 Eli Zaretskii <eliz@gnu.org>
15826
15827 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
15828 toggle boxes and radio buttons on MS-DOS as well.
15829
158302008-09-05 Kenichi Handa <handa@m17n.org>
15831
15832 * composite.c (autocmp_chars): Check lookback count.
15833 (composition_compute_stop_pos): Set cmp_it->lookback.
15834 (composition_reseat_it): Check lookback count.
15835 (struct position_record): New struct.
15836 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
15837 (find_automatic_composition): New function.
15838 (composition_adjust_point): Use find_automatic_composition.
15839
15840 * dispextern.h (struct composition_it): New member lookback.
15841
158422008-09-02 Chong Yidong <cyd@stupidchicken.com>
15843
15844 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
15845 if moving by a single line.
15846
158472008-09-02 Andreas Schwab <schwab@suse.de>
15848
15849 * xterm.c (x_delete_display): Fix merge error.
15850
15851 * fileio.c (Fexpand_file_name): Remove unused variables.
15852
158532008-09-02 Eli Zaretskii <eliz@gnu.org>
15854
15855 * fileio.c (Fexpand_file_name): Copy argument `name' into local
15856 storage on all platforms, not just on DOS_NT.
15857
158582008-09-02 Jason Rumney <jasonr@gnu.org>
15859
b8ff72fa
SM
15860 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
15861 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
15862
158632008-09-01 Chong Yidong <cyd@stupidchicken.com>
15864
15865 * xfaces.c (Finternal_set_alternative_font_family_alist)
15866 (Finternal_set_alternative_font_registry_alist): Properly copy
15867 entire alist structure.
15868
158692008-09-01 Kenichi Handa <handa@m17n.org>
15870
d66c0241 15871 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 15872 representative chars of the script is a vector.
d66c0241
JB
15873 (ftfont_list): Handle the case where the representative chars of
15874 the script is a vector.
aac0c6e3
MR
15875
15876 * character.c (syms_of_character): Docstring of
15877 script-representative-chars fixed.
15878
158792008-08-31 Eli Zaretskii <eliz@gnu.org>
15880
15881 * msdos.c (BUILD_CHAR_GLYPH): New macro.
15882 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
15883 the menu. Allocate larger buffer for `text', to account for
15884 possible ^C characters.
15885
158862008-08-31 Martin Rudalics <rudalics@gmx.at>
15887
15888 * xdisp.c (prepare_menu_bars): Don't call
15889 Vwindow_size_change_functions with arg Qt.
15890
158912008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
15892
15893 * font.h (font_range):
15894 * fileio.c (report_file_error):
46e722a9
SM
15895 * composite.c (composition_update_it): Yet another int/Lisp_Object
15896 mixup (YAILOM).
aac0c6e3
MR
15897
158982008-08-30 Glenn Morris <rgm@gnu.org>
15899
15900 * data.c (Fmake_variable_frame_local): Doc fix.
15901
15902 * frame.c (Fmodify_frame_parameters): Doc fix.
15903
159042008-08-30 Eli Zaretskii <eliz@gnu.org>
15905
15906 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
15907 needed by GetTokenInformation.
15908 (w32_system_process_attributes): Check return values of all system
15909 APIs.
15910
15911 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
15912 only when the state changes.
15913 (IT_update_begin, IT_update_end): Add termscript trace.
15914
15915 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
15916 clipboard is unavailable. Set dst to NULL if it doesn't point to
15917 malloc'ed data.
15918 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
15919 passing random values to xfree.
15920
15921 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 15922 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
15923
159242008-08-29 Jason Rumney <jasonr@gnu.org>
15925
15926 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
15927
159282008-08-29 Eli Zaretskii <eliz@gnu.org>
15929
15930 * composite.c (fill_gstring_body): Avoid compiler warnings.
15931
15932 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
15933 LGLYPH_SET_CODE to avoid compiler warnings.
15934
2ae37cf0 15935 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
15936
15937 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
15938
15939 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
15940 LGLYPH_SET_CODE.
15941
159422008-08-29 Kenichi Handa <handa@m17n.org>
15943
15944 * fileio.c (report_file_error): Don't downcase the first character
15945 of errstring if it is still unibyte.
15946
159472008-08-29 Kenichi Handa <handa@m17n.org>
15948
15949 These changes are to re-implement the automatic composition so
15950 that it doesn't use text properties.
15951
15952 * Makefile.in (ftfont.o): Depend on composite.h.
15953 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
15954
15955 * character.h (Vunicode_category_table): Extern it.
15956
15957 * character.c (Vunicode_category_table): New variable.
15958 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
15959
15960 * chartab.c (optimize_sub_char_table): Perform more greedy
15961 optimization.
15962
b8ff72fa
SM
15963 * composite.h (enum composition_method):
15964 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
15965 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
15966 (Vcomposition_function_table): Extern it.
15967 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
15968 (composition_gstring_put_cache, composition_gstring_from_id)
15969 (composition_gstring_p, composition_gstring_width)
15970 (composition_compute_stop_pos, composition_reseat_it)
15971 (composition_update_it, composition_adjust_point): Extern them.
15972 (Fcomposition_get_gstring): EXFUN it.
15973
d66c0241 15974 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
15975 (Vcomposition_function_table)
15976 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
15977 (gstring_hash_table, gstring_work, gstring_work_headers):
15978 New variables.
aac0c6e3
MR
15979 (gstring_lookup_cache, composition_gstring_put_cache)
15980 (composition_gstring_from_id, composition_gstring_p)
15981 (composition_gstring_width, fill_gstring_header)
15982 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
15983 (composition_reseat_it, composition_update_it)
b8ff72fa 15984 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
15985 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
15986 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 15987 Defsubr composition_get_gstring.
aac0c6e3
MR
15988
15989 * dispextern.h (struct glyph): New union u.cmp. Delete the member
15990 cmp_id.
15991 (struct glyph_string): Delete the member gidx. New members
15992 cmp_id, cmp_from, and cmp_to.
15993 (enum it_method): Delete GET_FROM_COMPOSITION.
15994 (struct composition_it): New struct.
15995 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
15996 Delete c, len, cmp_id, cmp_len in u.comp.
15997
15998 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 15999 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 16000 (enum lglyph_indices): Likewise.
b8ff72fa 16001 (font_range): Adjust extern.
aac0c6e3
MR
16002 (font_fill_lglyph_metrics): Extern it.
16003
16004 * font.c (QCf): New variable.
16005 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
16006 (font_prepare_composition): Delete this function.
16007 (font_range): Type and arguments changed.
16008 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
16009 (font_fill_lglyph_metrics): New function.
b8ff72fa 16010 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 16011 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
16012 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
16013 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
16014
16015 * fontset.h (font_for_char): Extern it.
16016
16017 * fontset.c (font_for_char): New function.
16018
16019 * ftfont.c: Include composite.h.
16020 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 16021 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
16022
16023 * indent.c: Include composite.h and dispextern.h.
16024 (check_composition): Delete this function.
16025 (scan_for_column): Handle composition by
16026 composition_compute_stop_pos, composition_reseat_it, and
16027 composition_update_it.
16028 (compute_motion): Likewise.
16029 (Fvertical_motion): Fix checking of composition.
16030
16031 * keyboard.c (adjust_point_for_property): Check composition by
16032 composition_adjust_point.
16033
b8ff72fa 16034 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
16035 struct glyph_string.
16036
b8ff72fa
SM
16037 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
16038 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
16039 struct glyph.
16040 (produce_composite_glyph): Likewise.
16041
b8ff72fa
SM
16042 * w32term.c (x_draw_composite_glyph_string_foreground):
16043 Adjust for the change of struct glyph_string.
aac0c6e3
MR
16044 (x_draw_glyph_string): Likewise.
16045
16046 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
16047 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
16048
16049 * xdisp.c: Include font.h.
16050 (it_props): Delete the entry for Qauto_composed.
16051 (init_iterator): Initialize it->cmp_it.id to -1.
16052 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 16053 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
16054 (handle_auto_composed_prop): Delete it.
16055 (handle_composition_prop): Handle only static composition.
16056 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
16057 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 16058 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
16059 (pop_it): Likewise.
16060 (get_next_element): Delete next_element_from_composition.
16061 (CHAR_COMPOSED_P): New macro.
16062 (get_next_display_element): For automatic composition, get a face
16063 from the font in the glyph-string.
16064 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 16065 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
16066 (next_element_from_string): Check if the character at the current
16067 position is composed by CHAR_COMPOSED_P.
16068 (next_element_from_buffer): Likewise.
d66c0241
JB
16069 (next_element_from_composition): Adjust for the change of struct it.
16070 Update it->cmp_it.
b8ff72fa
SM
16071 (dump_glyph): Adjust for the change of struct glyph.
16072 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
16073 it and struct glyph. Don't handle automatic composition here.
16074 (fill_gstring_glyph_string): New function.
16075 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 16076 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
16077 (BUILD_GSTRING_GLYPH_STRING): New macro.
16078 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
16079 automatic composition.
b8ff72fa 16080 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 16081 struct glyph.
b8ff72fa 16082 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 16083
b8ff72fa 16084 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
16085 the change of struct glyph_string.
16086 (x_draw_glyph_string): Likewise.
16087
160882008-08-29 Glenn Morris <rgm@gnu.org>
16089
16090 * buffer.c (word-wrap): Doc fix.
16091 * xdisp.c (truncate-partial-width-windows): Doc fix.
16092 Increase default to 50.
16093
160942008-08-29 Chong Yidong <cyd@stupidchicken.com>
16095
16096 * xdisp.c (update_tool_bar_unwind): New function.
16097 (update_tool_bar): Temporarily set selected frame before building
16098 tool-bar items.
16099
161002008-08-28 Michael Albinus <michael.albinus@gmx.de>
16101
16102 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
16103 snprintf, respectively.
16104 (xd_append_arg): Convert strings with Fstring_make_unibyte.
16105
161062008-08-28 Chong Yidong <cyd@stupidchicken.com>
16107
16108 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
16109 LDFLAGS to GNUstep CC invocation.
16110
161112008-08-27 Chong Yidong <cyd@stupidchicken.com>
16112
16113 * indent.c (Fvertical_motion): Revert last change. Handle the
16114 general case where we are moving forward, and PT spans multiple
16115 screen lines.
16116
16117 * eval.c (find_handler_clause): Temporarily increase
16118 max-lisp-eval-depth while printing the backtrace buffer, to
16119 guarantee that help-mode code can run.
16120
161212008-08-27 Eli Zaretskii <eliz@gnu.org>
16122
16123 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
16124 colors under -rv.
16125 (IT_set_frame_parameters): Don't swap foreground and background
16126 colors if `(reverse . t)' is present in the frame properties.
16127 (internal_terminal_init): Call init_frame_faces only for the
16128 initial frame.
16129
161302008-08-27 Andreas Schwab <schwab@suse.de>
16131
16132 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
16133
161342008-08-27 Andreas Schwab <schwab@suse.de>
16135
16136 * search.c (search_buffer): Set char_base to zero only at the end.
16137
161382008-08-27 Kenichi Handa <handa@m17n.org>
16139
b8ff72fa 16140 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
16141
161422008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
16143
16144 * xterm.c (x_term_init): Temporarily hide the partially
16145 initialized terminal while calling vendor-specific-keysyms.
16146
161472008-08-26 Eli Zaretskii <eliz@gnu.org>
16148
16149 * msdos.c (internal_terminal_init): Most initializations done only
16150 once, especially initial_screen_colors[] and termscript open.
16151
161522008-08-26 Chong Yidong <cyd@stupidchicken.com>
16153
16154 * eval.c (Fcondition_case): Doc fix.
16155
16156 * widgetprv.h (EmacsFramePart): Change font member to the new font
16157 struct.
16158
16159 * widget.c: Include character.h and font.h for XSETFONT.
16160 (setup_frame_gcs): Compute X font id from font struct, just once.
16161
161622008-08-26 Eli Zaretskii <eliz@gnu.org>
16163
16164 * term.c (get_named_tty): Fix last change.
16165
161662008-08-26 Chong Yidong <cyd@stupidchicken.com>
16167
16168 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 16169 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
16170
161712008-08-25 Eli Zaretskii <eliz@gnu.org>
16172
16173 * frame.c (do_switch_frame): Mark previously displayed frame as
16174 obscured for FRAME_MSDOS_P frames as well.
16175
161762008-08-24 Eli Zaretskii <eliz@gnu.org>
16177
16178 * frame.c (make_terminal_frame): Initialize f->terminal,
16179 f->terminal->reference_count, and scroll bars on MS-DOS as well.
16180 Set the top frame to newly created frame.
16181 (Fmake_terminal_frame): Reuse the_only_display_info.
16182
16183 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
16184 estimating available memory.
16185
b97439ce 161862008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
16187
16188 * nsterm.m (ns_draw_window_cursor): Don't call
16189 NSDisableScreenUpdates and NSEnableScreenUpdates on
16190 non-NS_IMPL_COCOA systems.
16191
161922008-08-23 Andreas Schwab <schwab@suse.de>
16193
16194 * process.c (procfs_system_process_attributes): Fix use of
16195 uninitialized variables.
16196
161972008-08-23 Eli Zaretskii <eliz@gnu.org>
16198
16199 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
16200
16201 * dispnew.c (init_display): Remove MS-DOS specific conditions for
16202 calling tty-set-up-initial-frame-faces.
16203
b8ff72fa
SM
16204 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
16205 Allow MSDOS frames along with X frames.
aac0c6e3
MR
16206
16207 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
16208 addition to output_termcap.
16209
16210 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
16211
16212 * termchar.h (FRAME_TTY): Support output_msdos_raw.
16213 (struct tty_display_info) [MSDOS]: Add fields related to mouse
16214 highlight.
16215
16216 * process.c [!subprocesses]: Define QCname.
16217 (syms_of_process): Intern and staticpro it.
16218
16219 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
16220 Adjust for changes in encoding/decoding routines.
16221 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
16222 encode_coding and decode_coding.
16223
b8ff72fa 16224 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
16225
16226 * dosfns.c: Include frame.h before termhooks.h.
16227 (dos_cleanup): Use CURTTY ()->termscript instead of a global
16228 variable termscript.
16229
16230 * s/msdos.h (USER_FULL_NAME): Define.
16231 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
16232
16233 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
16234 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
16235 pw->pw_gecos.
16236
16237 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
16238 SELECTED_FRAME as additional (1st) argument.
16239 (tty_read_avail_input): Handle output_msdos_raw in
16240 addition to output_termcap.
16241
16242 * msdos.c: Include frame.h before termhooks.h.
16243 (mouse_on, mouse_off, mouse_moveto, mouse_init)
16244 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
16245 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
16246 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
16247 (IT_set_terminal_modes, IT_reset_terminal_modes)
16248 (IT_set_frame_parameters): Use tty->termscript instead of a global
16249 variable termscript.
16250 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
16251 global variable terminal_coding. Don't refer to
16252 Vnonascii_translation_table.
16253 (internal_terminal_init): Set Vwindow_system in current_kboard.
16254 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
16255 Announce date and time of session start, if termscript is open.
16256 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
16257 term.c:init_tty). Open termscript only of not already open.
16258 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
16259 here instead of dos_ttraw. Don't initialize display if this is an
16260 initial tty. Don't set FRAME_FONT.
16261 (Vwindow_system_version): Bump to 23.
16262 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
16263 is available, set up mouse_position_hook.
16264 (dos_ttraw, IT_set_terminal_modes): If called with initial
16265 terminal, do nothing.
16266 (IT_set_frame_parameters): Handle the Qtty_type frame
16267 parameter by calling internal_terminal_init.
16268 (dos_set_window_size, show_mouse_face)
16269 (clear_mouse_face, IT_note_mode_line_highlight)
16270 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
16271 (dos_rawgetc): Use tty_display_info instead of x_display_info.
16272 (initialize_msdos_display): New function.
16273 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
16274 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
16275 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
16276 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 16277 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
16278 (request_sigio, unrequest_sigio): Don't define, now defined on
16279 sysdep.c.
16280 (IT_write_glyphs): Rewrite to use encode_terminal_code.
16281
16282 * term.c [MSDOS]: Include msdos.h.
16283 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
16284 conditional to DOS_NT. Allow only one call to this function in a
16285 session. Don't allocate a new struct tty_display_info; instead,
16286 reuse the_only_display_info. Call get_tty_size to get screen
16287 dimensions. Call init_baud_rate to set bad_rate.
16288 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
16289 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 16290 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
16291 (get_tty_terminal, get_named_tty, Ftty_type)
16292 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
16293 output_termcap.
b8ff72fa
SM
16294 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
16295 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 16296 only when subprocesses are supported.
aac0c6e3
MR
16297
16298 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
16299 f->output_data.x.
16300 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
16301 terminal devices.
16302
5582fbc7 16303 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
16304 x_output.
16305 (FRAME_FONT): Use output_data.tty.
16306 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
16307 (struct x_display_info): Rename from display_info. Update all users in
16308 msdos.c.
aac0c6e3 16309 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 16310 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
16311 (dos_ttraw): Update prototype.
16312
16313 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
16314 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
16315
163162008-08-23 Jason Rumney <jasonr@gnu.org>
16317
16318 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
16319 (fn_TIFFSetDirectory): New library function used.
16320 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
16321 (tiff_load): Use :index to select among multiple images. Set count
16322 property when multiple images exist.
16323 (gif_format): Use :index, not :image.
16324
163252008-08-23 Chong Yidong <cyd@stupidchicken.com>
16326
16327 * xdisp.c (try_scrolling): Check INT_MAX instead of
16328 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
16329 to obtain INT_MAX.
16330
163312008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
16332
16333 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
16334
163352008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
16336
16337 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
16338 GNUstep library location.
16339
163402008-08-21 Chong Yidong <cyd@stupidchicken.com>
16341
16342 * xfaces.c (x_update_menu_appearance): Check validity of menu font
16343 before using it.
16344
16345 * puresize.h (BASE_PURESIZE): Increase to 1250000.
16346
163472008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
16348
16349 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
16350 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
16351 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
16352 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
16353 (EmacsApp-cursor_blink_handler): Remove declaration.
16354 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
16355 match 01 Feb 2008 changes in xterm.c.
16356 (ns_read_socket): Add cast to avoid warning.
16357 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
16358 GNUstep.
16359
163602008-08-20 Chong Yidong <cyd@stupidchicken.com>
16361
16362 * xselect.c (x_get_foreign_selection): Return nil if desired
16363 selection could not be obtained, instead of signalling an error.
16364
163652008-08-20 David Reitter <david.reitter@gmail.com>
16366
16367 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
16368 * nsterm.m: Remove ns-specific code for cursor blinking.
16369 (ns_draw_window_cursor): Clear cursor properly rather than
16370 redrawing the area. Respect width of bar cursors.
16371 These changes enable the use of generic blink-cursor-mode and
16372 generic cursor types in NS and support smooth cursor movements (do
16373 not blink off after command).
16374 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
16375 Nextstep, too.
16376
163772008-08-19 Kenichi Handa <handa@m17n.org>
16378
16379 * font.c (Vfont_log_deferred): New variable.
16380 (font_add_log): Check Vfont_log_deferred.
16381 (font_deferred_log): New function.
16382
16383 * font.h (font_deferred_log): Extern it.
16384
16385 * fontset.c (reorder_font_vector): Use encoding charset of fonts
16386 for sorting.
16387 (face_for_char): Use deferred log.
16388
163892008-08-18 Kenichi Handa <handa@m17n.org>
16390
16391 * fontset.c (face_for_char): Add font log.
16392
16393 * font.c (font_add_log): Add the font properties :script, :lang,
16394 and :otf in the log.
16395
163962008-08-17 Chong Yidong <cyd@stupidchicken.com>
16397
16398 * xdisp.c: Remove dead code.
16399 (handle_invisible_prop, next_overlay_string): Defer call to
16400 setup_for_ellipsis.
16401 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
16402
164032008-08-15 Chong Yidong <cyd@stupidchicken.com>
16404
16405 * xfaces.c (lookup_derived_face): Properly handle possible zero
16406 return value of get_lface_attributes.
16407 (merge_faces): Don't tell lookup_derived_face to signal an error
16408 if face is not found.
16409
16410 * dired.c (Fdirectory_files): Doc fix.
16411
16412 * process.c (make_process): Initialize kill_without_query struct
16413 member.
16414
164152008-08-15 Eli Zaretskii <eliz@gnu.org>
16416
16417 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
16418 Alternative calculation of totphys for Visual Studio 6.
16419
16420 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
16421
16422 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
16423 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
16424 All users changed.
16425 (stat): Only root directory passed to GetDriveType. Allow RAM
16426 disk as well as local fixed disk when w32-get-true-file-attributes
16427 is set to `local'.
16428 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
16429 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
16430 (w32_cached_id, w32_add_to_cache): New functions.
16431 (get_name_and_id): Look account names in the cache before calling
16432 lookup_account_sid.
16433 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
16434 New initialization flags.
16435 (globals_of_w32): Initialize them to zero.
16436 (w32_system_process_attributes): Use w32_cached_id and
16437 w32_add_to_cache.
16438
164392008-08-14 Lawrence Mitchell <wence@gmx.li>
16440
16441 * lread.c (Fread_char, Fread_char_exclusive): If no character
16442 event is read before timeout is reached, return nil, rather than
16443 converting to a number.
16444
164452008-08-14 Chong Yidong <cyd@stupidchicken.com>
16446
16447 * fns.c (use_dialog_box): Doc fix.
16448
16449 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
16450 on OS X.
16451
164522008-08-13 Chong Yidong <cyd@stupidchicken.com>
16453
16454 * frame.c (Qns_parse_geometry): New var.
16455 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
16456
164572008-08-11 Chong Yidong <cyd@stupidchicken.com>
16458
16459 * xdisp.c (x_produce_glyphs): Handle the case when font has no
16460 space character in calculating tabs.
16461
164622008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
16463
16464 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
16465
164662008-08-10 Glenn Morris <rgm@gnu.org>
16467
16468 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
16469 silence gcc "limited range of data type" warnings in some
16470 make_fixnum_or_float calls.
16471
164722008-08-09 Eli Zaretskii <eliz@gnu.org>
16473
16474 * w32.c (w32_system_process_attributes): If the process does not
16475 exist, return nil.
16476
16477 * w32.c: Include thelp32.h, psapi.h and coding.h.
16478 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
16479 declarations.
16480 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
16481 (Process32Next_Proc): New typedefs.
16482 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
16483 (g_b_init_process32_next, g_b_init_open_thread_token)
16484 (g_b_init_impersonate_self, g_b_init_revert_to_self)
16485 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
16486 (g_b_init_get_process_working_set_size)
16487 (g_b_init_global_memory_status_ex): New static variables.
16488 (globals_of_w32): Initialize them.
16489 (create_toolhelp32_snapshot, process32_first, process32_next)
16490 (open_thread_token, impersonate_self, revert_to_self)
16491 (get_process_memory_info, get_process_working_set_size)
16492 (global_memory_status, global_memory_status_ex): New wrapper
16493 functions.
16494 (w32_list_system_processes, w32_system_process_attributes)
16495 (enable_privilege, restore_privilege, ltime, process_times):
16496 New functions.
16497 (convert_time_raw): New function.
16498 (convert_time): Remove conversion of FILETIME into time in 100
16499 nsec units, call convert_time_raw instead.
16500
16501 * process.h (w32_list_system_processes, w32_system_process_attributes):
16502 Add prototypes.
16503 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
16504 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
16505 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
16506 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
16507
16508 * process.c (Fsystem_process_attributes): Doc fix.
16509
165102008-08-08 Chong Yidong <cyd@stupidchicken.com>
16511
16512 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
16513 a continued multi-char glyph; if so, advance to the actual glyph.
16514
165152008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
16516
16517 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
16518
16519 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
16520 (.m.o): Use it.
16521 * config.in: Regenerate.
16522
165232008-08-07 Chong Yidong <cyd@stupidchicken.com>
16524
16525 * xdisp.c (redisplay_window): Revert last change.
16526 (try_window): Check bottom scroll margin too.
16527
165282008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
16529
16530 * config.in: Regenerate.
16531
16532 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
16533 -list-load-path-shadows'.
16534 (nsgui.h): Reduce number of things depending on it.
16535
165362008-08-06 Chong Yidong <cyd@stupidchicken.com>
16537
16538 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
16539 instead of window-end which does the wrong thing at eob.
16540 (try_cursor_movement): Minor optimization.
16541 (redisplay_window): If scroll margin is defined, don't assume
16542 window doesn't need scrolling.
16543
165442008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
16545
16546 * config.in: Regenerate.
16547
16548 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
16549 (mostlyclean): Don't delete *.d under NS.
16550
16551 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
16552
165532008-08-06 Kenichi Handa <handa@m17n.org>
16554
16555 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
16556
165572008-08-06 Andreas Schwab <schwab@suse.de>
16558
16559 * config.in: Regenerate.
16560
165612008-08-05 Chong Yidong <cyd@stupidchicken.com>
16562
16563 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
16564 forcing a window start.
16565
16566 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
16567 (auto_save_1): Update modtime when auto-save-list-file-name is on.
16568
165692008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
16570
16571 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
16572 argument.
16573
165742008-08-05 Juanma Barranquero <lekktu@gmail.com>
16575
16576 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
16577 <scroll-down-aggressively, before-change-functions>:
16578 <after-change-functions>: Reflow docstrings.
16579
165802008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 16581 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
16582
16583 Dock menu customization, based on a patch by Ken Raeburn, plus some
16584 other fixes.
16585 * nsmenu.m (dockMenu): New variable.
16586 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
16587
16588 * nsterm.h (dockMenu): Declare.
16589
16590 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
16591 (ns_term_init): Initialize dockMenu.
16592 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
16593 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
16594 left.
16595
16596 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
16597
165982008-08-04 Chong Yidong <cyd@stupidchicken.com>
16599
16600 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
16601
16602 * config.in: Regenerate.
16603
166042008-08-04 Seiji Zenitani <zenitani@mac.com>
16605
16606 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
16607
166082008-08-04 Chong Yidong <cyd@stupidchicken.com>
16609
16610 * nsterm.h (find_and_call_menu_selection): Fix prototype.
16611
166122008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
16613
16614 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
16615
16616 * keyboard.h: Comment an #endif.
16617
16618 * lisp.h (have_menus_p): Adjust comment.
16619
16620 * menu.c (find_and_return_menu_selection): Fix comparison with
16621 client_data.
16622
16623 * nsmenu.m (popup_activated_flag): New variable.
16624 (popup_activated): New function.
16625 (menu-or-popup-active-p): New exported lisp definition.
16626 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
16627 when popup done.
16628 (ns_popup_dialog): Set popup_activated_flag.
16629
16630 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
16631 version for GNUstep (handled by conditional typedef in nsterm.m).
16632 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
16633 in rgb.txt).
16634
16635 * process.c (init_process): Use DARWIN_OS, not DARWIN.
16636
16637 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
16638
16639 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
16640
16641 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
16642 shortcircuit if popup_activated like GTK and X toolkit.
16643
16644 * m/inter386.h: Change DARWIN to DARWIN_OS.
16645
16646 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
16647 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
bba3e508
SM
16648 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood.
16649 Expand comment on NO_SOCK_SIGIO.
aac0c6e3
MR
16650
166512008-08-03 Chong Yidong <cyd@stupidchicken.com>
16652
16653 * nsterm.m (windowDidResize): Remove stopModal call.
16654
166552008-08-03 Andreas Schwab <schwab@suse.de>
16656
16657 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
16658 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
16659
166602008-08-02 Chong Yidong <cyd@stupidchicken.com>
16661
16662 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
16663 Don't use uninitialized pointer variable when using getrlimit.
16664
166652008-08-02 Jason Rumney <jasonr@gnu.org>
16666
16667 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
16668
166692008-08-02 Eli Zaretskii <eliz@gnu.org>
16670
16671 * alloc.c (NSTATICS): Bump to 0x640.
16672
16673 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
16674
16675 * lisp.h: Add prototype for directory_files_internal.
16676
16677 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
16678 New functions.
16679 (syms_of_process): Defsubr them. Add initializations for various
16680 Q* symbols used in procfs_system_process_attributes.
16681 (procfs_list_system_processes, procfs_system_process_attributes)
16682 [HAVE_PROCFS]: New functions.
16683 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
16684 (procfs_get_total_memory): New functions.
16685
166862008-08-01 Juanma Barranquero <lekktu@gmail.com>
16687
16688 * xfaces.c (Fx_load_color_file): Fix previous change;
16689 it is #ifdef WINDOWSNT, not WINDOWS_NT.
16690
166912008-08-01 Michael Albinus <michael.albinus@gmx.de>
16692
16693 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
16694
166952008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16696
16697 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
16698
166992008-08-01 Chong Yidong <cyd@stupidchicken.com>
16700
16701 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
16702
16703 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
16704 define NSApplicationDelegateReplySuccess.
16705 (EmacsView -converstationIdentifier): Use long instead of
16706 NSInteger for GNUstep, since it doesn't have NSInteger.
16707
16708 * xmenu.c: Revert last change.
16709
16710 * keyboard.h: Fix last change.
16711
167122008-08-01 Juanma Barranquero <lekktu@gmail.com>
16713
16714 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
16715 on Windows.
16716
167172008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16718
16719 Warning clearing and clean-up in NS port.
16720 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
16721 Add prototypes.
16722 * nsgui.h (FACE_DEFAULT): Remove, unused.
16723 (XGCValues): Change colors to unsigned long.
16724 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
16725 nsterm.m.
16726 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
16727 (ns_list_fonts): Remove, unused.
16728 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
16729 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
16730 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
16731 (nsfont_draw): Compare face colors to 0, not nil.
16732 * nsmenu.m (struct widget_value): Drop unneeded declaration.
16733 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
16734 (-addSubmenuWithTitle:): Use NSMenuItem class.
16735 (ns_popup_menu): Use NO, not NULL, for enabled setting.
16736 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
16737 (ns_clip_to_row): Make gc arg a BOOL.
16738 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
16739 ns_clip_to_row() call.
16740 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
16741 used). Cast FRAME_FONT assignments.
16742 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
16743 (ns_string_to_lispmod): Change arg to const char.
16744 (ns_term_init): Use NSMenuItem class.
16745 (EmacsApp -openFile:): Move to different section of file.
16746 (EmacsApp -application:openFiles:): Don't return a value, call
16747 -replyToOpenOrPrint:.
16748 (EmacsView -keyDown:): Fix up cast.
16749 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
16750 (EmacsView -menuDown:): Cast tag in call to
16751 find_and_call_menu_selection().
16752 (ns_list_fonts): Remove, unused.
16753 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
16754 (ns_fontname_to_xlfd): Make static.
16755 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
16756 Remove prototypes (now in keyboard.h).
16757 (next_menubar_widget_id): Remove, unused.
16758 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
16759 Remove prototypes (now in keyboard.h).
16760 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
16761
167622008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
16763
16764 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
16765 (floatfns.o): Depend on syssignal.h.
16766 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
16767
16768 * systty.h: Fix previous change that removed BSD_TERMIOS.
16769 Add comments to #ifdefs.
16770
167712008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16772
16773 * w32fns.c (w32-load-color-file): Remove.
16774 (x-open-connection): Use renamed Fx_load_color_file.
16775 * xfaces.c (x-load-color-file): Add.
16776 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
16777 Emacs.clr.
16778 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
16779
167802008-07-31 Michael Albinus <michael.albinus@gmx.de>
16781
16782 * dbusbind.c (Fdbus_call_method_asynchronously)
16783 (Fdbus_method_error_internal): New defuns.
16784 (xd_read_message): Handle also reply messages.
16785 (Vdbus_registered_functions_table): Extend docstring.
16786
167872008-07-31 Juanma Barranquero <lekktu@gmail.com>
16788
16789 * keyboard.c (gobble_input): Fix previous change.
16790
167912008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
16792
16793 * bitmaps/README:
16794 * xfns.c:
16795 * termcap.c:
16796 * term.c:
16797 * syswait.h:
16798 * systty.h:
16799 * systime.h:
16800 * syssignal.h:
16801 * sysdep.c:
16802 * process.h:
16803 * process.c:
16804 * print.c:
16805 * ndir.h:
16806 * lread.c:
16807 * keyboard.c:
16808 * getpagesize.h:
16809 * floatfns.c:
16810 * fileio.c:
16811 * emacs.c:
16812 * doc.c:
16813 * dispnew.c:
16814 * dired.c:
16815 * data.c:
16816 * callproc.c:
16817 * buffer.c:
16818 * README:
16819 * Makefile.in:
16820 * s/template.h:
16821 * s/msdos.h:
16822 * m/vax.h: Remove VMS support.
16823 * s/vms.h:
16824 * vlimit.h:
16825 * uaf.h:
16826 * temacs.opt:
16827 * param.h:
16828 * ioctl.h: Remove file.
16829
168302008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
16831
16832 * s/ms-w32.h (MULTI_KBOARD): Remove.
16833 * xterm.c:
16834 * xselect.c:
16835 * xfns.c:
16836 * window.c:
16837 * w32term.c:
16838 * w32fns.c:
16839 * terminal.c:
16840 * termhooks.h:
16841 * term.c:
16842 * sysdep.c:
16843 * keyboard.h:
16844 * keyboard.c:
16845 * frame.h:
16846 * frame.c:
16847 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
16848 * config.in: Regenerate.
16849
168502008-07-30 Jason Rumney <jasonr@gnu.org>
16851
16852 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
16853
16854 * w32font.c (w32font_encode_char): Leave as unicode if in range.
16855 (w32font_open_internal): Get unicode version of textmetrics.
16856 Don't enable or disable glyph indices here.
16857 (w32font_open): Disable use of glyph indices.
16858
16859 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
16860
168612008-07-30 Chong Yidong <cyd@stupidchicken.com>
16862
16863 * minibuf.c (Vread_buffer_function): Doc fix.
16864
168652008-07-30 John Paul Wallington <jpw@pobox.com>
16866
16867 * minibuf.c (read_buffer_completion_ignore_case): New var.
16868 (Fread_buffer): Use it.
16869
168702008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
16871
16872 * systty.h (sensemode): Remove empty #if. Remove reference to
16873 BSD_TERMIOS, unused.
16874
16875 * sysdep.c: Remove reference to DGUX.
16876 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
16877
16878 * config.in: Regenerate.
16879
168802008-07-30 Jason Rumney <jasonr@gnu.org>
16881
16882 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
16883
168842008-07-29 Jason Rumney <jasonr@gnu.org>
16885
16886 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
16887 is populated.
16888 (uniscribe_encode_char): Always use uniscribe.
16889 Avoid using context if cache is populated.
16890
168912008-07-29 Jan Djärv <jan.h.d@swipnet.se>
16892
16893 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
16894 open menu.
16895
16896 * gtkutil.c (menu_nav_ended): Remove.
16897 (create_menus): Remove signal connect for menu_nav_ended.
16898
168992008-07-28 Chong Yidong <cyd@stupidchicken.com>
16900
16901 * xdisp.c (redisplay_window): Check return value of
16902 compute_window_start_on_continuation_line before forcing a window
16903 start.
16904
169052008-07-28 Jason Rumney <jasonr@gnu.org>
16906
16907 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
16908
16909 * w32term.c (w32_enable_unicode_output, cleartype_active):
16910 Remove obsolete display options.
16911 (x_draw_glyph_string_background): Don't use old cleartype_active
16912 workaround.
16913 (w32_initialize): Remove cleartype_active initialization.
16914 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
16915
169162008-07-28 Andreas Schwab <schwab@suse.de>
16917
16918 * lisp.h (init_weak_hash_tables, syms_of_font)
16919 (xd_read_queued_messages, syms_of_dbusbind): Declare.
16920 (remove_hash_entry): Don't declare.
16921 * eval.c (maybe_call_debugger): Make static and move before use.
16922 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
16923 * xdisp.c: Include "gtkutil.h" if USE_GTK.
16924 * xterm.h (x_set_frame_alpha): Declare.
16925
169262008-07-28 Jan Djärv <jan.h.d@swipnet.se>
16927
16928 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
16929 (create_menus): Connect selection-done to menu_nav_ended.
16930
169312008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
16932
16933 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
16934 Set Vx_resource_name to a fallback. Replace read of 'buffered'
16935 parameter with read of 'alpha' one.
16936 (Qns_frame_parameter): Remove.
5582fbc7 16937 * nsselect.m (selection-coding-system)
aac0c6e3
MR
16938 (next-selection-coding-system, Vselection_coding_system)
16939 (Vnext_selection_coding_system): Drop.
16940
169412008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
16942
16943 * nsfns.m (do-applescript, do_applescript): Rename to
16944 ns-do-applescript, ns_do_applescript, and move within file.
16945
169462008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
16947
16948 Remove support for Mac Carbon.
16949 * mactoolbox.c:
16950 * macterm.h:
16951 * macterm.c:
16952 * macselect.c:
16953 * macmenu.c:
16954 * macgui.h:
16955 * macfns.c:
16956 * mac.c: Remove file.
16957 * s/darwin.h:
16958 * m/intel386.h:
16959 * xfaces.c:
16960 * xdisp.c:
16961 * window.c:
16962 * tparam.c:
16963 * termhooks.h:
16964 * termcap.c:
16965 * term.c:
16966 * syssignal.h:
16967 * sysselect.h:
16968 * sysdep.c:
16969 * process.c:
16970 * lread.c:
16971 * lisp.h:
16972 * keyboard.c:
16973 * image.c:
16974 * fringe.c:
16975 * frame.h:
16976 * frame.c:
16977 * fontset.c:
16978 * font.h:
16979 * font.c:
16980 * fns.c:
16981 * fileio.c:
16982 * emacs.c:
16983 * dispnew.c:
16984 * dispextern.h:
16985 * config.in:
16986 * atimer.c:
2ae37cf0 16987 * Makefile.in: Remove code for Carbon.
aac0c6e3 16988
f0131492 169892008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
16990
16991 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
16992
169932008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16994
16995 * macterm.h (kCGBitmapByteOrder32Host): New define for
16996 non-universal SDKs.
16997
16998 * image.c (mac_create_cg_image_from_image, image_load_image_io)
16999 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
17000
17001 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
17002 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
17003
170042008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
17005
17006 * w32inevt.c: Include dispextern.h.
17007
170082008-07-26 Andreas Schwab <schwab@suse.de>
17009
17010 * print.c (print_object): Fix off-by-one in last change.
17011
170122008-07-25 Juanma Barranquero <lekktu@gmail.com>
17013
17014 * term.c (syms_of_term): Don't initialize default_orig_pair,
17015 default_set_foreground and default_set_background on Windows.
17016
170172008-07-25 Jason Rumney <jasonr@gnu.org>
17018
17019 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
17020 ScriptItemize. Clean up return value checking. Remove unused
17021 variables.
17022 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
17023 shaping engine.
17024
17025 * w32font.c (w32font_has_char): Handle the case where we can't
17026 determine the script for a character.
17027
170282008-07-25 Chong Yidong <cyd@stupidchicken.com>
17029
17030 * term.c (syms_of_term): Initialize default_orig_pair,
17031 default_set_foreground, and default_set_background.
17032
17033 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
17034 clash (bug#86).
17035 (getloadavg): Callers changed.
17036
17037 * image.c (svg_load_image): Fix last change.
17038 (svg_load_image): Use rsvg_handle_get_dimensions to check that
17039 image size is valid. Use g_object_unref instead of deprecated
17040 rsvg_handle_free to free rsvg handle.
17041 (x_from_xcolors): Don't initialize pixmap (silence compiler).
17042
170432008-07-25 Jason Rumney <jasonr@gnu.org>
17044
17045 * w32font.c (w32font_encode_char): Encode characters outside BMP as
17046 surrogates before looking up glyph index.
17047 (w32font_text_extents): Encode as surrogates if falling back to
17048 functions that need UTF-16 wide chars.
17049
17050 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
17051 BMP as surrogates before looking up glyph index.
17052
170532008-07-25 Chong Yidong <cyd@stupidchicken.com>
17054
17055 * image.c (svg_load_image): Check for failure in return value of
17056 rsvg_handle_get_pixbuf. Free rsvg handle when done.
17057
170582008-07-25 Jason Rumney <jasonr@gnu.org>
17059
17060 * w32font.c (Fx_select_font): Reverse sense of second arg.
17061
170622008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
17063
17064 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
17065 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
17066
17067 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
17068 (PURESIZE): Use it.
17069
170702008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
17071
17072 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
17073 * m/alpha.h (TEXT_END):
17074 * m/ibmrs6000.h (TEXT_END):
17075 * m/macppc.h (TEXT_END):
17076 * s/darwin.h (TEXT_END):
17077 * s/msdos.h (TEXT_END): Remove, unused.
17078 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
17079 * s/cygwin.h: Remove comment.
17080
17081 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
17082 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
17083 * m/intel386.h (DOT_GLOBAL_START):
17084 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
17085 (USG): Remove, file not used on USG platforms.
17086
17087 * Makefile.in (HAVE_X11): Remove empty #else.
17088
170892008-07-24 Andreas Schwab <schwab@suse.de>
17090
17091 * fileio.c (Finsert_file_contents): Properly adjust undo list
17092 after format conversion.
17093
170942008-07-24 Jan Djärv <jan.h.d@swipnet.se>
17095
17096 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
17097 (menu_nav_ended): Remove.
17098 (create_menus): Remove signal connect for menu_nav_ended.
17099 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
17100 create_menus.
17101 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
17102
171032008-07-23 Jason Rumney <jasonr@gnu.org>
17104
17105 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
17106 with opened font.
17107 (w32font_open): Set font type to gdi.
17108
17109 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
17110
171112008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
17112
17113 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
17114 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
17115 defines it.
17116 * unexec.c (ADDR_CORRECT): Define unconditionally.
17117
17118 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
17119
17120 * unexec.c: Remove code depending on !COFF and USG, the file is
17121 not used for such systems.
17122
17123 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
17124 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
17125 (LD_SWITCH_SYSTEM_1): Remove, update users.
17126
17127 * s/darwin.h (DATA_END):
17128 * m/intel386.h (DATA_END):
17129 * m/ibmrs6000.h (DATA_END):
17130 * m/alpha.h (DATA_END): Remove, unused.
17131
17132 * config.in: Regenerate.
17133 * s/ms-w32.h (subprocesses): Define unconditionally.
17134 * s/template.h (subprocesses): Update comment.
17135 * s/vms.h (subprocesses):
17136 * s/usg5-4.h (subprocesses):
17137 * s/hpux10-20.h (subprocesses):
17138 * s/gnu-linux.h (subprocesses):
17139 * s/cygwin.h (subprocesses):
17140 * s/bsd-common.h (subprocesses):
17141 * s/aix4-2.h (subprocesses):
17142 * s/darwin.h (subprocesses): Do not define, defined by default now.
17143
17144 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
17145 Remove all references.
17146 (temacs): Add GNUstep specific ld flags.
17147
17148 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
17149 similarly to what X does.
17150
171512008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
17152
17153 * nsfns.m (x-list-fonts): Remove.
17154 (syms_of_nsfns): Drop the x-list-fonts declaration.
17155 * nsterm.m: Get rid of remaining "//" comments.
17156
171572008-07-22 Chong Yidong <cyd@stupidchicken.com>
17158
17159 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
17160
17161 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
17162 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
17163 (Fns_own_selection_internal, Fx_disown_selection_internal)
17164 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
17165
17166 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
17167 ... */' style of docstrings. Doc fixes.
17168
171692008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
17170
17171 * terminfo.c (UP, BC, PC): Undo previous change.
17172
17173 * nsfns.m: Rename ns prefixed functions/variables to the
17174 corresponding x versions. Update references.
17175
171762008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
17177
17178 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
17179
171802008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
17181
17182 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
17183 Remove forwarding functions.
17184 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
17185 non-static.
17186 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
17187 non-static.
17188 (ns_frame_parm_handlers): Use the new names.
17189 (syms_of_nsfns): Move to the end of file.
17190
17191 * nsterm.m (syms_of_nsterm): Move to the end of file.
17192
17193 * dispnew.c (init_display): Remove code for X10.
17194
171952008-07-22 Jason Rumney <jasonr@gnu.org>
17196
17197 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
17198 bare drive.
17199
172002008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
17201
17202 * nsterm.m (syms_of_nsterm): Remove debugging println.
17203
172042008-07-22 David Reitter <david.reitter@gmail.com>
17205
17206 * nsfns.m (do_applescript, F_do_applescript): NS version of the
17207 Carbon implementation of the same functionality: execute arbitrary
17208 AppleScript code.
17209
172102008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
17211
17212 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
17213 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
17214 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
17215 (Fx_display_mm_height, Fx_display_mm_width)
17216 (Fx_display_backing_store, Fx_display_visual_class)
17217 (Fx_display_save_under, Fx_open_connection)
17218 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
17219 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
17220 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
17221 (Fx_display_pixel_width, Fx_display_pixel_height)
17222 (Fx_display_usable_bounds, Fx_display_planes)
17223 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
17224 ... */' style of docstrings.
17225
172262008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
17227
17228 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
17229 on this platform.
17230 (mips):
17231 * m/iris4d.h (mips): Do not define.
17232 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
17233
17234 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
17235
17236 * image.c:
17237 * nsfns.m:
17238 * nsselect.m:
17239 * nsterm.h:
17240 * nsterm.m: Rename ns prefixed functions/variables to the
17241 corresponding x versions. Update references.
17242
17243 * m/ibms390x.h (NO_REMAP): Do not undefine.
17244
17245 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
17246
172472008-07-21 Chong Yidong <cyd@stupidchicken.com>
17248
17249 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
17250 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
17251 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
17252 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
17253 (Fns_display_mm_height, Fns_display_mm_width)
17254 (Fns_display_backing_store, Fns_display_visual_class)
17255 (Fns_display_save_under, Fns_open_connection)
17256 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
17257 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
17258 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
17259 (Fns_display_pixel_width, Fns_display_pixel_height)
17260 (Fns_display_usable_bounds, Fx_display_planes)
17261 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
17262
172632008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
17264
17265 * print.c (print_object): Check print_depth before searching for
17266 circularities.
17267
172682008-07-21 Michael Albinus <michael.albinus@gmx.de>
17269
17270 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
17271 only sprintf.
17272
172732008-07-21 Kenichi Handa <handa@m17n.org>
17274
17275 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
17276
172772008-07-20 Andreas Schwab <schwab@suse.de>
17278
17279 * syntax.c (find_start_pos, find_start_value)
17280 (find_start_value_byte, find_start_begv, find_defun_start)
17281 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
17282
172832008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
17284
17285 * s/sol2-3.h: Insert contents of s/sol2.h.
17286 (LD_SWITCH_SYSTEM): Remove redundant definition.
17287 * s/sol2.h: Remove, unused.
17288
172892008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
17290
17291 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
17292
172932008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
17294
17295 * Makefile.in (ns_appdir): Fix typo in find command.
17296
172972008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
17298
17299 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
17300
17301 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
17302 added not supported anymore.
17303
17304 * s/usg5-4-2.h (LIBS_SYSTEM):
17305 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
17306
17307 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
17308 * s/lynxos.h (GETPGRP_NO_ARG):
17309 * s/hpux10-20.h (NO_SIOCTL_H):
17310 * s/gnu.h (GETPGRP_NO_ARG):
17311 * s/gnu-linux.h (NO_SIOCTL_H):
17312 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
17313 * s/cygwin.h (GETPGRP_NO_ARG):
17314 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
17315 (C_DEBUG_SWITCH): Remove duplicate definition.
17316
17317 * m/ibms390.h: Remove boilerplate comments.
17318
17319 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
17320
17321 * process.c (HAVE_SERIAL): Consolidate ifdefs.
17322 (wait_reading_process_output): Remove code for SunOS, platform not
17323 supported anymore. Use SOLARIS2 instead of sun.
17324
173252008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
17326
17327 * font.c (font_open_by_name): Under NS, default lface height to zero.
17328 (font_open_for_lface): Under NS, set size based on frame fontsize.
17329 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
17330 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
17331
173322008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
17333
17334 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
17335 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
17336 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
17337 YES/NO.
17338 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
17339 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
17340 * Makefile.in (clean): Clear out build destination dir.
17341
173422008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
17343
17344 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
17345 xterm, xselect.
17346 * lisp.h: Remove declaration of hash_remove.
17347 * nsgui.h: Remove redefinitions of hash_remove.
17348 * fns.c (hash_remove): Rename to hash_remove_from_table.
17349
173502008-07-19 Seiji Zenitani <zenitani@mac.com>
17351
17352 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
17353 strdup() the family UTF8String before modifying it.
17354
173552008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
17356
17357 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
17358 NS_FACE_BACKGROUND with 0 instead of nil.
17359 * nsfont.m (nsfont_draw): Same.
17360
173612008-07-19 Chong Yidong <cyd@stupidchicken.com>
17362
17363 * nsfns.m (ns_set_background_color): Fix crash.
17364
173652008-07-18 Chong Yidong <cyd@stupidchicken.com>
17366
17367 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
17368
173692008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
17370
17371 * puresize.h (BASE_PURESIZE): Increase to 1240000.
17372
173732008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17374
17375 * gtkutil.c: Include <config.h> instead of "config.h".
17376
17377 * lisp.h (Foverlay_buffer): Add EXFUN.
17378
17379 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
17380 child process to complete child_setup. Undo 2005-09-21 change.
17381
17382 * s/darwin.h: Mention setsid after vfork.
17383
173842008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17385
17386 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
17387 Depend on macgui.h.
17388
17389 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
17390 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
17391
17392 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
17393 and f19.
17394 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
17395
17396 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
17397 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
17398 Remove enumerators.
17399
17400 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
17401 Check if FACE_FROM_ID returns NULL.
17402
174032008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
17404
17405 * w32inevt.c (change_frame_size): Remove extern declaration.
17406 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
17407 change_frame_size.
17408
174092008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
17410
17411 * getloadavg.c: Revert last change (2008-07-15).
17412
174132008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
17414
17415 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 17416 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
17417 from configure.
17418
174192008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
17420
17421 * s/sol2.h:
17422 * s/sol2-4.h: Reorganize conditionals.
17423
17424 * ecrt0.c: Remove code depending on m68000, not used anymore.
17425
17426 * fns.c (hash_remove): Make static.
17427 * lisp.h (hash_remove): Don't prototype.
17428
17429 * m/ibmrs6000.h:
17430 * m/ibms390x.h:
17431 * m/macppc.h: Remove boilerplate comments.
17432
17433 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
17434 Solaris, which does not need them.
17435
17436 * m/vax.h: Remove comments about unsupported systems.
17437
17438 * s/darwin.h: Reorganize ifdefs.
17439
174402008-07-17 Andreas Schwab <schwab@suse.de>
17441
17442 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
17443
174442008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
17445
17446 Use SDATA. Follow coding convention of placing operators at
17447 beginning of next line rather than end of previous line, and placing
17448 spaces around infix operators.
17449
17450 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
17451 in case it was defined already.
17452 USE @GNUSTEP_MAKEFILES@ rather than envvars.
17453 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
17454 ns_default.
17455 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
17456 Lisp_Objects.
17457 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
17458 (ns_defined_color, ns_color_to_lisp): Declare.
17459 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
17460 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
17461 it's accepted even with USE_LISP_UNION_TYPE.
17462 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
17463 (update_frame_tool_bar): Remove apparently obsolete tests for
17464 non-integerness of f->tool_bar_lines.
17465 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
17466 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
17467 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
17468 (nsfont_open): Don't confuse NULL for Qnil.
17469 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
17470 * menu.h (find_and_call_menu_selection):
17471 * menu.c (find_and_call_menu_selection): Use just int for vector size.
17472 (find_and_return_menu_selection): Always return something.
17473 * frame.h: Include dispextern.h for Display_Info.
17474 (display_x_get_resource): Declare.
17475
174762008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
17477
17478 * syntax.c: Remove stdio.h include accidentally introduced in
17479 Emacs.app commit.
17480 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
17481 NS_IMPL_COCOA.
17482 * keyboard.c (handle_async_input, input_available_signal): Remove
17483 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
17484
174852008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
17486
17487 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
17488 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
17489 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
17490 Use SDATA.
17491
17492 * keymap.c: Remove all NS-specific code.
17493 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
17494 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
17495 where_is_preferred_modifier, return a different value depending on how
17496 preferred is the binding.
17497 (where_is_internal): Adjust accordingly.
17498 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
17499 Adjust to new preferred_sequence_p.
17500 (syms_of_keymap): Declare `where-is-preferred-modifier'.
17501 * keyboard.c (parse_solitary_modifier): Not static any more.
17502 * keyboard.h (parse_solitary_modifier): Declare.
17503
175042008-07-16 Andreas Schwab <schwab@suse.de>
17505
17506 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
17507 of easymenu.
17508
175092008-07-16 Chong Yidong <cyd@stupidchicken.com>
17510
17511 * xdisp.c (move_it_in_display_line): Account for word wrap, so
17512 that we don't move off the line.
17513
175142008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
17515
17516 * keyboard.c (Qsuper): Remove.
17517 (parse_menu_item): Don't call where_is_internal specially for NS.
17518
175192008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
17520
17521 * s/gnu-linux.h: Remove boilerplate comments.
17522
17523 * m/alpha.h (__ELF__): Consolidate conditions.
17524
17525 * m/m68k.h (linux): Use GNU_LINUX instead.
17526 Remove boilerplate comments.
17527
17528 * m/intel386.h: Undo refactoring from previous change.
17529 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
17530 too, remove dead code.
17531 (linux): Use GNU_LINUX instead.
17532
175332008-07-16 Jason Rumney <jasonr@gnu.org>
17534
17535 * w32gui.h: Repeat 26 June changes lost by last change.
17536
175372008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
17538
17539 * systty.h: Remove code for Aix on 386, unsupported platform.
17540
17541 * s/ms-w32.h: Remove boilerplate comments.
17542 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
17543
17544 * s/gnu-linux.h (TERM): Remove support.
17545 (HAVE_SYSVIPC): Remove, unused.
17546 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
17547 for this system.
17548
17549 * process.c: Remove support for IRIS, unused.
17550 Remove support for TERM, not relevant anymore.
17551
17552 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
17553 used with the definition.
17554
17555 * s/aix4-2.h (static): Do not undef.
17556
17557 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
17558 only used on Aix.
17559 (HAVE_SYSVIPC): Remove, unused.
17560
17561 * m/hp800.h (CANNOT_DUMP): Do not undef.
17562
17563 * m/alpha.h: Fix comment.
17564
17565 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
17566 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
17567 used by this configuration.
17568 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
17569 * unexec.c: Remove code depending on HPUX and
17570 USG_SHARED_LIBRARIES, not used with this file. Remove code
17571 depending on IRIS, unused. Remove if 0-ed code.
17572
17573 * s/template.h: Remove comments about static.
17574
17575 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
17576 Remove if 0-ed code.
17577 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
17578 were the same as the default.
17579 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
17580 Remove boilerplate comments.
17581 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
17582 (HAVE_SYSVIPC): Remove, unused.
17583 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
17584
17585 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
17586 Remove boilerplate comments.
17587 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
17588 Remove boilerplate comments.
17589 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
17590 Remove boilerplate comments.
17591 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
17592
17593 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
17594 USG systems which do not use DATA_SEG_BITS.
17595 Refactor code. Remove boilerplate comments.
17596
17597 * m/ibms390.h:
17598 * m/m68k.h:
17599 * s/bsd-common.h:
17600 * s/cygwin.h:
17601 * s/darwin.h:
17602 * s/freebsd.h:
17603 * s/gnu.h:
17604 * s/msdos.h: Remove boilerplate comments.
17605
17606 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 17607 do not use this file.
aac0c6e3
MR
17608 (IRIS_4D): Remove, unused.
17609
17610 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 17611 do not use this file.
aac0c6e3
MR
17612 (SIGN_EXTEND_CHAR):
17613 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
17614 * unexmips.c: Remove file, unused.
17615
17616 * editfns.c (Fuser_full_name): Replace the only use of
17617 USER_FULL_NAME with its value.
17618 * config.in: Regenerate.
17619
176202008-07-16 David Reitter <david.reitter@gmail.com>
17621
17622 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
17623 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
17624
176252008-07-16 Glenn Morris <rgm@gnu.org>
17626
17627 * emacs.c (system-type): Doc fix.
17628
176292008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
17630
17631 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
17632 If the cache doesn't work, let's fix it, rather than work around it.
17633
176342008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
17635
17636 * Makefile.in: Correct additions for nsfont.o in last commit.
17637 * nsfont.m: New file (forgot last commit).
17638
176392008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
17640
bba3e508
SM
17641 * callproc.c (set_initial_environment):
17642 Initialize Vprocess_environment under CANNOT_DUMP (fixes crash when
aac0c6e3
MR
17643 batch-compiling for bootstrap).
17644
176452008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 17646 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 17647
c4cc8b9a
JB
17648 * frame.c (make_initial_frame): Call init_frame_faces(f) in
17649 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
17650
176512008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
17652
17653 Changes and additions for NeXTstep windowing system (Cocoa and
17654 GNUstep) support.
17655
17656 * Makefile.in:
17657 * config.in: Support defines and build commands for NS port.
17658 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
17659 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
17660 * dispextern.h: Include nsgui.h and add needed typedefs under NS
17661 windowing.
17662 (struct face): Add synth_ital field.
17663 * dispnew.c: Include nsterm.h when compiling under NS windowing.
17664 (init_display): Initialize Vinitial_window_system to "ns" when so
17665 compiled.
17666 * emacs.c: Include GSConfig.h when compiling under GNUstep.
17667 (display_arg): Use under NS.
17668 (main): Under NS, allocate autorelease pool and handle command line
17669 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
17670 (standard_args): Add NS-specific args.
17671 (shut_down_emacs): Shut down NS terminal if compiled under NS.
17672 * font.c (DEFAULT_ENCODING): New variable.
17673 (font_find_for_lface): Use it.
17674 (syms_of_font): Load syms_of_nsfont under NS.
17675 * font.h: Declare nsfont_driver when compiled under NS.
17676 * fontset.c: When compiling under NS, include nsterm.h.
17677 (fontset_from_font): Autoconstruct fontset under NS.
17678 * frame.c (various): Under NS, include nsterm.h, add Qns window system
17679 symbol, document and use it.
17680 (do_switch_frame): When for_deletion under Cocoa, add
17681 Fraise_frame(Qnil).
17682 (x_set_frame_parameters): Ensure font attribute changes are picked up.
17683 (x_get_arg): Allow "yes" and "no" as boolean values.
17684 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
17685 Qright under Cocoa.
17686 (focus-follows-mouse): Default to 0 under NS.
17687 * frame.h (enum output_method): Add output_ns.
17688 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
17689 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
17690 (FRAME_WINDOW_P): NS-specific definition.
17691 * fringe.c (max_used_fringe_bitmap): Make public.
17692 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
17693 (getloadavg): Use NeXT code under descendant OS's.
17694 * image.c (includes and header section, x_create_bitmap_from_data)
17695 (x_create_bitmap_from_file, free_bitmap_record, image_background)
17696 (image_background_transparent, x_clear_image_1)
17697 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
17698 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
17699 (x_to_xcolors, x_from_xcolors, x_disable_image)
17700 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
17701 other GUIs, including XPM support using code originally written for
17702 Carbon GUI.
17703 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
17704 using NS API.
17705 (image_ascent): Use font metrics macros instead of direct struct field
17706 access.
17707 * keyboard.c (includes): Add nsterm.h when compiling under NS.
17708 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
17709 Also, handle NS as GTK for menu bar purposes.
17710 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
17711 toolkit where they differ.
17712 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
17713 use cachelist, still needed under NS.
17714 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
17715 (struct widget_value): Define it here for menu.c.
17716 * keymap.c (includes): Include modifier internals.
17717 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
17718 NS.
17719 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
17720 support for preferring sequences using certain modifiers, specified by
17721 the FIRSTONLY argument.
17722 * lisp.h (hash_remove): Rename to avoid name clash when compiling
17723 under NS GNUstep implementation.
17724 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
17725 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
17726 * menu.c: Include nsterm.h under NS.
17727 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
17728 (free_menubar_widget_tree_value, update_submenu_strings)
17729 (find_and_call_menu_selection): Treat NS as X and NT.
17730 (find_and_return_menu_selection): New function, used for popup menus.
17731 * nsgui.h:
17732 * nsterm.h:
17733 * nsfns.m:
17734 * nsimage.m:
17735 * nsmenu.m:
17736 * nsselect.m:
17737 * nsterm.m: New files.
17738 * process.c (wait_reading_process_output): Under NS, call ns_select()
17739 instead of plain select().
17740 * syntax.c (char_quoted): Under NS, avoid a crash when called near
17741 beginning of buffer.
17742 * sysselect.h (init_process): Rename when compiling under Cocoa to
17743 avoid name conflict.
17744 * termhooks.h (display_info): Add ns_display_info to union.
17745 * terminal.c (Fterminal_live_p): Add ns to terminal types.
17746 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
17747 COCOA environment.
17748 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
17749 unexec() signature. (Note, this will dump, but the resulting file
17750 crashes; unexosx is used instead; keeping around for reference and
17751 possible aid in getting dump working under GNUstep.)
17752 * w32gui.h (button_type, widget_value): Remove definitions (now in
17753 keyboard.h).
17754 * window.c: Include nsterm.h when compiling under NS.
17755 * xdisp.c (includes): Include nsterm.h when compiling under NS.
17756 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
17757 other GUI windowing systems.
17758 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
17759 GTK.
17760 (x_consider_frame_title): Under NS, set icon type and frame
17761 modified-state indicator; use ns_set_name_as_filename() when using
17762 formatted title.
17763 (update_window_cursor): Make public when compiling under NS.
17764 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
17765 (hourglass_atimer, Vhourglass_delay
17766 * xfaces.c (header section, init_frame_faces, clear_font_table)
17767 (defined_color, unload_color, x_face_list_fonts)
17768 (prepare_face_for_display): Add NS support parallel to other GUIs.
17769 Emulate GCs like other non-X GUIs.
17770 (split_font_name): Don't lowercase font name under NS.
17771 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
17772 under NS.
17773 * s/darwin.h: Add support for compilation under NS.
17774
177752008-07-15 Jason Rumney <jasonr@gnu.org>
17776
17777 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
17778 (w32_show_hourglass): Rename from show_hourglass.
17779 (w32_hide_hourglass): Rename from hide_hourglass.
17780 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
17781 (Vhourglass_delay): Declare extern.
17782 (hourglass_started): Remove.
17783
17784 * xdisp.c (Vhourglass_delay): Remove static.
17785 (hourglass_started, start_hourglass, cancel_hourglass):
17786 Don't include these versions on WINDOWSNT.
17787
177882008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
17789
17790 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
17791 variables (formerly in xfns.c).
17792 (show_hourglass, hide_hourglass): New prototypes (same).
17793 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
17794 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
17795 in xfns.c).
17796 (syms_of_xdisp): Declare/initialize display-hourglass,
17797 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
17798 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
17799 formerly in xfns.c.
17800 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
17801 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
17802 (start_hourglass, cancel_hourglass): Remove.
17803 (show_hourglass, hide_hourglass): Remove prototypes and static
17804 modifiers.
17805 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
17806 hourglass_atimer, hourglass_shown_p declaration/initialization.
17807 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
17808 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
17809 (start_hourglass, cancel_hourglass): Remove.
17810 (show_hourglass, hide_hourglass): Remove prototypes and static
17811 modifiers.
17812 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
17813 hourglass_atimer, hourglass_shown_p declaration/initialization.
17814 * w32fns.c (display_hourglass_p, Vhourglass_delay)
17815 (DEFAULT_HOURGLASS_DELAY): Remove.
17816 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
17817 hourglass_shown_p declaration/initialization.
17818
178192008-07-14 Jason Rumney <jasonr@gnu.org>
17820
17821 * w32fns.c (w32_get_arg): Remove wrapper function.
17822 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
17823 directly.
17824 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
17825
178262008-07-14 Kenichi Handa <handa@m17n.org>
17827
17828 * xfont.c (xfont_open): Add workaround for X's bug.
17829
178302008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
17831
17832 * fontset.c: Include <stdio.h> unconditionally.
17833
178342008-07-13 Michael Albinus <michael.albinus@gmx.de>
17835
17836 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
17837 for filtering.
17838
178392008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
17840
17841 * s/vms.h: Use __GNUC__ instead of _GNUC_.
17842
17843 * m/macppc.h:
17844 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
17845
c4cc8b9a 17846 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
17847 (SPECIAL_EMACS_INT):
17848 * m/ia64.h (SPECIAL_EMACS_INT):
17849 * m/amdx86-64.h (SPECIAL_EMACS_INT):
17850 * s/gnu.h (NLIST_STRUCT):
17851 * s/aix4-2.h (X11R5_INHIBIT_I18N):
17852 * s/gnu-linux.h (LINUX):
17853 * s/msdos.h (HAVE_FACES):
17854 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
17855
17856 * systty.h:
17857 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
17858 anymore.
17859
178602008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
17861
17862 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
17863 always defined as int.
17864
17865 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
17866 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
17867 * s/gnu-linux.h (HAVE_WAIT_HEADER):
17868 * s/freebsd.h (HAVE_WAIT_HEADER):
17869 * s/bsd-common.h (HAVE_UNION_WAIT):
17870 * s/aix4-2.h (HAVE_WAIT_HEADER):
17871 * m/mips.h (HAVE_UNION_WAIT):
17872 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
17873 (COFF, static): Do not define, they are undefined later in the file.
17874
17875 * process.c (update_status): Don't use a union.
17876 (status_convert):
17877 (sigchld_handler): Use int instead of WAITTYPE.
17878
178792008-07-12 Chong Yidong <cyd@stupidchicken.com>
17880
17881 * indent.c (Fvertical_motion): Restore hscroll before moving to
17882 goal column.
17883
178842008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
17885
17886 * lisp.h: Remove left over code.
17887
178882008-07-11 Andreas Schwab <schwab@suse.de>
17889
17890 * lisp.h: Fix logic in last change.
17891
17892 * menu.h: New file.
17893 * menu.c: Include it.
17894 * xmenu.c: Likewise.
17895 * Makefile.in: Update dependencies.
17896
178972008-07-11 Kenichi Handa <handa@m17n.org>
17898
17899 * fontset.c (fontset_from_font): Cancel the previous change.
17900
179012008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
17902
17903 * lisp.h:
17904 * w32heap.c:
17905 * emacs.c:
17906 * alloc.c: Replace all references of NO_UNION_TYPE with
17907 USE_LISP_UNION_TYPE.
17908
17909 * m/xtensa.h (NO_UNION_TYPE):
17910 * m/vax.h (NO_UNION_TYPE):
17911 * m/template.h (NO_UNION_TYPE):
17912 * m/sparc.h (NO_UNION_TYPE):
17913 * m/mips.h (NO_UNION_TYPE):
17914 * m/macppc.h (NO_UNION_TYPE):
17915 * m/m68k.h (NO_UNION_TYPE):
17916 * m/iris4d.h (NO_UNION_TYPE):
17917 * m/intel386.h (NO_UNION_TYPE):
17918 * m/ibms390x.h (NO_UNION_TYPE):
17919 * m/ibms390.h (NO_UNION_TYPE):
17920 * m/ibmrs6000.h (NO_UNION_TYPE):
17921 * m/ia64.h (NO_UNION_TYPE):
17922 * m/hp800.h (NO_UNION_TYPE):
17923 * m/arm.h (NO_UNION_TYPE):
17924 * m/amdx86-64.h (NO_UNION_TYPE):
17925 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
17926 defining it the same.
17927
179282008-07-10 Chong Yidong <cyd@stupidchicken.com>
17929
17930 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
17931
179322008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
17933
17934 * fileio.c:
50426a04 17935 * sysdep.c:
aac0c6e3
MR
17936 * systty.h:
17937 * m/ibmrs6000.h:
17938 * m/iris4d.h:
17939 * s/aix4-2.h:
17940 * s/freebsd.h:
17941 * s/gnu-linux.h:
17942 * s/hpux10-20.h:
17943 * s/hpux11.h:
17944 * s/netbsd.h:
17945 * s/sol2-3.h:
17946 * s/sol2-4.h:
17947 * s/sol2.h:
17948 * s/usg5-4.h:
17949 * s/vms.h: Remove references to unused variables.
17950
179512008-07-10 Andreas Schwab <schwab@suse.de>
17952
17953 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
17954 pattern before matching the generic family.
17955
179562008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
17957
17958 * unexec.c:
17959 * s/vms.h:
17960 * s/usg5-4-2.h:
17961 * s/sol2-5.h:
17962 * s/freebsd.h:
17963 * s/darwin.h: Remove dead code.
17964
17965 * m/template.h:
17966 * m/sparc.h:
17967 * m/mips.h:
17968 * m/m68k.h:
17969 * m/iris4d.h:
17970 * m/intel386.h:
17971 * m/ibms390x.h:
17972 * m/ibms390.h:
17973 * m/ia64.h:
17974 * m/hp800.h:
17975 * m/arm.h:
17976 * m/amdx86-64.h: Remove dead code and references to unused
17977 and compiler defined symbols.
17978
17979 * unexmips.c:
17980 * unexelf.c: Remove references to desupported systems.
17981
17982 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
17983
17984 * m/powermac.h: Remove boilerplate comments.
17985 (NO_REMAP): Remove unused definition.
17986
17987 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
17988 define them.
17989
179902008-07-10 Kenichi Handa <handa@m17n.org>
17991
17992 * xfont.c (xfont_open): Log the reason of failure.
17993
179942008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
17995
17996 * fontset.c (fontset_get_font_group):
17997 * font.c (font_check_otf): Specify argument types.
17998
179992008-07-09 Kenichi Handa <handa@m17n.org>
18000
18001 * coding.c (detect_coding_utf_8): Set detect_info->found only when
18002 non-ASCII char is found.
18003
18004 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
18005 (reorder_font_vector): Change the arg preferred_family to font.
18006 Prefer the spec matching with font.
18007 (fontset_get_font_group): New function.
18008 (fontset_find_font): Change the format of an element of a realized
18009 fontset. Use fontset_get_font_group.
18010 (fontset_font): Try the current fontset, the default fontset, the
18011 fallbacks of the current fontset, and the fallbacks of the default
18012 fontset in this order.
18013 (face_for_char): Delete the shortcut to use the current font.
18014 (fontset_from_font): Don't set fonts for Latin in the fontset.
18015
18016 * font.h (font_make_object, font_match_p): Adjust prototypes.
18017
18018 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
18019
18020 * font.c (font_make_object): New arg entity and pixelsize.
18021 (font_check_otf_features, font_check_otf): New functions.
18022 (font_match_p): Check :lang, :script, and :otf properties.
18023
18024 * xfont.c (xfont_open): Adjust it for the change of
18025 font_make_object.
18026 (xfont_text_extents): Fix initial setting of metrics.
18027
18028 * ftfont.c (struct ftfont_info): New member index, delete member
18029 fc_charset_idx. Make the member order compatible with struct
18030 xftfont_info.
18031 (fc_charset_table): Change charset names to registry names.
18032 (ftfont_pattern_entity): Delete the args registry and
18033 fc_charset_idx. Change the value of :font-entity property
18034 to (FONTNAME . INDEX). Always set :registry property to
18035 `iso10646-1'.
18036 (struct ftfont_cache_data): New struct.
18037 (ftfont_lookup_cache): New arg for_face.
18038 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
18039 (ftfont_driver): Set the member otf_capability.
18040 (ftfont_get_charset): Adjust it for the change of
18041 fc_charset_table.
18042 (OTF_TAG_SYM): New macro.
18043 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
18044 for the change of fc_charset_table.
18045 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
18046 ftfont_pattern_entity. Add FC_INDEX to objset.
18047 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
18048 and ftfont_pattern_entity.
18049 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
18050 font_make_object, struct ftfont_info.
18051 (ftfont_has_char): Use ftfont_get_fc_charset.
18052 (ftfont_otf_features, ftfont_otf_capability): New functions.
18053 (ftfont_shape): Use ftfont_get_otf.
18054 (ftfont_text_extents): Fix initial setting of metrics.
18055
18056 * xftfont.c (struct xftfont_info): New member ft_size. Make the
18057 member order compatible with struct ftfont_info.
bba3e508
SM
18058 (xftfont_open): Add FC_CHARSET to the pattern.
18059 Set xftfont_info->ft_size. Don't unlock the face. Check BDF
aac0c6e3
MR
18060 properties if appropriate.
18061 (xftfont_close): Unlock the face.
18062 (xftfont_anchor_point, xftfont_shape): Deleted.
18063 (syms_of_xftfont): Don't set members anchor_point and shape of
18064 xftfont_driver.
18065
18066 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
18067 font_make_object.
18068
18069 * w32font.c (w32font_open): Adjust it for the change of
18070 font_make_object.
18071 (w32font_open_internal): Don't set properties of font_object here.
18072
180732008-07-08 Chong Yidong <cyd@stupidchicken.com>
18074
18075 * macfns.c (x_create_tip_frame):
18076 * w32fns.c (x_create_tip_frame):
18077 * xfns.c (x_create_tip_frame): Pass parameter argument to
18078 face-set-after-frame-default.
18079
18080 * xfaces.c (Finternal_merge_in_global_face): Save merged
18081 attributes for the default face back into the face vector.
18082
180832008-07-08 Andreas Schwab <schwab@suse.de>
18084
18085 * fontset.h: Declare fontset_from_font. Don't declare
18086 new_fontset_from_font and fontset_from_font_name.
18087 * xterm.c: Include "fontset.h".
18088 * Makefile.in (xterm.o): Update dependencies.
18089
180902008-07-08 Glenn Morris <rgm@gnu.org>
18091
18092 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
18093 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
18094
180952008-07-07 Chong Yidong <cyd@stupidchicken.com>
18096
18097 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
18098 (x_set_frame_parameters): Don't bind it.
18099
181002008-07-07 Juanma Barranquero <lekktu@gmail.com>
18101
18102 * w32fns.c (map_w32_filename): Declare extern.
18103
181042008-07-07 Jason Rumney <jasonr@gnu.org>
18105
18106 * w32term.c (WS_EX_LAYERED): Define if not already.
18107
181082008-07-06 Chong Yidong <cyd@stupidchicken.com>
18109
18110 * xfaces.c (set_font_frame_param): Don't try to set the font
18111 parameter if it is still unspecified in the lface.
18112
181132008-07-05 Chong Yidong <cyd@stupidchicken.com>
18114
18115 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
18116 face if it didn't already exist.
18117
18118 * xdisp.c (try_window_id): Give up if word-wrapping is on.
18119
181202008-07-05 Andreas Schwab <schwab@suse.de>
18121
18122 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
18123
181242008-07-05 Chong Yidong <cyd@stupidchicken.com>
18125
18126 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
18127 word-wrapping.
18128 (IT_DISPLAYING_WHITESPACE): New macro.
18129 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
18130 when word-wrapping. Simplify word-wrapping logic. Use correct
18131 pixel positions when saving copies of the iterator.
18132 (display_line): Use proper wrap point if the last character on a
18133 line was preceded by whitespace.
18134
181352008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
18136
18137 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
18138
181392008-07-04 Kenichi Handa <handa@m17n.org>
18140
18141 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
18142
18143 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
18144
181452008-07-02 Jason Rumney <jasonr@gnu.org>
18146
18147 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 18148 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
18149
18150 * xdisp.c (next_element_from_display_vector): Move assignment out
18151 of if statement.
18152
181532008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
18154
18155 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
18156
18157 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
18158 (syms_of_fileio): Initialize and export them.
18159 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
18160
18161 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
18162 (Fsystem_move_file_to_trash): New function.
18163 (syms_of_w32fns): Export it to lisp.
18164
181652008-07-01 Jason Rumney <jasonr@gnu.org>
18166
18167 * w32font.c (w32font_text_extents): Don't count overhang as part
18168 of width.
18169
181702008-06-30 Miles Bader <miles@gnu.org>
18171
18172 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
18173 Add `avoid_cursor_p' field.
18174
18175 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
18176 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
18177 (append_glyph, append_composite_glyph, produce_image_glyph)
18178 (append_stretch_glyph): Initialize avoid_cursor_p.
18179 (get_it_property): Rename from `get_line_height_property'.
18180 (x_produce_glyphs): Use get_it_property.
18181 (handle_line_prefix, push_display_prop): New functions.
18182 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
18183 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
18184 New variables.
18185 (syms_of_xdisp): Initialize them.
18186
181872008-06-30 Kenichi Handa <handa@m17n.org>
18188
18189 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
18190 XftDefaultSubstitute (they are called in XftFontMatch).
18191 (xftfont_open): Fix args to ftfont_font_format.
18192
18193 * ftfont.c (fc_charset_table): New member lang.
18194 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 18195 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
18196 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
18197 (ftfont_open): Fix args to ftfont_font_format.
18198 (ftfont_font_format): New arg filename.
18199
182002008-06-30 Chong Yidong <cyd@stupidchicken.com>
18201
18202 * xfaces.c (Finternal_merge_in_global_face): If default face was
18203 modified, realize it again. Update the font face attribute.
18204
182052008-06-29 Jason Rumney <jasonr@gnu.org>
18206
18207 * w32term.c (x_set_frame_alpha): Fix logic.
18208
182092008-06-29 Kenichi Handa <handa@m17n.org>
18210
18211 * fontset.c (Finternal_char_font): Return font-object instead of
18212 font-name.
18213
18214 * composite.c (get_composition_id): Fix the width calculation for TAB.
18215
182162008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
18217
18218 * indent.c (Fvertical_motion): Properly handle float column arg.
18219
182202008-06-28 Jason Rumney <jasonr@gnu.org>
18221
18222 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
18223 (pfnSetLayeredWindowAttributes): New function pointer.
18224 (w32_initialize): Initialize it when supported.
18225 (x_set_frame_alpha): New function.
18226
18227 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
18228 (w32_frame_parm_handlers): Set alpha handler.
18229
18230 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
18231
182322008-06-27 Jason Rumney <jasonr@gnu.org>
18233
18234 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
18235 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
18236 (w32_to_x_charset, x_to_w32_charset)
18237 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
18238 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
18239 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
18240 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
18241 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
18242 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
18243 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
18244 (Qw32_charset_unicode): Remove.
18245 (syms_of_w32fns): Update for above changes.
18246
18247 * w32font.c (w32_to_x_charset, x_to_w32_charset)
18248 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
18249 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
18250 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
18251 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
18252 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
18253 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
18254 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
18255 (syms_of_w32font): Update for above changes.
18256
182572008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
18258
18259 * s/usg5-4.h: Fix previous change: keep the correct branch of a
18260 removed #if.
18261 (USG_SHARED_LIBRARIES): Remove duplicate definition.
18262
182632008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 18264 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
18265
18266 * makefile.w32-in (LOCAL_FLAGS):
18267 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
18268
18269 * sysdep.c (_spawnlp, _getpid):
18270 Declare with explicit _cdecl instead of _CRTAPI1.
18271
18272 * editfns.c (Fget_internal_run_time):
18273 Check for WINDOWSNT with #ifdef, not #if.
18274
182752008-06-26 Jason Rumney <jasonr@gnu.org>
18276
18277 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
18278
18279 * w32term.c (x_draw_glyph_string_foreground)
18280 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
18281 Use FONT_HANDLE macro.
18282 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
18283
18284 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
18285 (uniscribe_encode_char): Use FONT_HANDLE macro.
18286
18287 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
18288 (w32font_text_extents): Use precast w32_font.
18289 (w32font_close): Free cached metrics.
18290 (w32font_open_internal): Allocate space for name on stack.
18291
182922008-06-26 Chong Yidong <cyd@stupidchicken.com>
18293
18294 * xdisp.c (extend_face_to_end_of_line): Fix last change.
18295
182962008-06-26 Jason Rumney <jasonr@gnu.org>
18297
18298 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
18299 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
18300
183012008-06-26 Juanma Barranquero <lekktu@gmail.com>
18302
18303 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
18304
183052008-06-26 Jason Rumney <jasonr@gnu.org>
18306
18307 * w32bdf.c, w32bdf.h: Remove obsolete files.
18308
18309 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
18310
18311 * w32gui.h: Don't include w32bdf.h.
18312 (XCharStruct, enum w32_char_font_type, W32FontStruct):
18313 Remove obsolete font support.
18314
18315 * w32font.h (struct w32font_info): Remove compat_w32_font.
18316 Add hfont member.
18317 (FONT_COMPAT): Remove obsolete macro.
18318
18319 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
18320 (w32font_encode_char, w32font_text_extents): Use new hfont member.
18321 (w32font_open_internal): Remove compat code. Set new hfont member.
18322 (Fx_select_font): Use new hfont member.
18323
18324 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
18325 (uniscribe_encode_char): Use new hfont member.
18326
18327 * w32term.c (x_draw_glyph_string_foreground)
18328 (x_draw_composite_glyph_string_foreground): Use new hfont member.
18329 (x_draw_glyph_string): Use metrics in w32font_info.
18330
183312008-06-26 Kenichi Handa <handa@m17n.org>
18332
18333 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
18334
183352008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
18336
18337 * unexnext.c:
18338 * m/ews4800.h:
18339 * m/hp9000s300.h:
18340 * m/ibm370aix.h:
18341 * m/mips-siemens.h:
18342 * m/ncr386.h:
18343 * m/next.h:
18344 * m/pmax.h:
18345 * m/powerpcle.h:
18346 * m/tandem-s2.h:
18347 * s/386bsd.h:
18348 * s/bsd386.h:
18349 * s/bsd4-1.h:
18350 * s/bsd4-2.h:
18351 * s/bsdos2-1.h:
18352 * s/bsdos2.h:
18353 * s/bsdos3.h:
18354 * s/bsdos4.h:
18355 * s/nextstep.h:
18356 * s/ultrix4-3.h:
18357 * s/usg5-0.h:
18358 * s/usg5-2-2.h:
18359 * s/usg5-2.h:
18360 * s/usg5-4-3.h:
18361 * s/ux4800.h:
18362 * s/uxpds.h:
18363 * s/uxpv.h: Remove support for obsolete systems.
18364 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 18365 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
18366 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
18367 Remove, insert contents in s/aix4-2.h.
18368 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
18369 * s/bsd4-3.h: Rename to ...
18370 * s/bsd-common.h: ... this.
18371 * data.c:
18372 * doc.c:
18373 * ecrt0.c:
18374 * emacs.c:
18375 * fileio.c:
18376 * floatfns.c:
18377 * keyboard.c:
18378 * mem-limits.h:
18379 * print.c:
18380 * process.c:
18381 * sysdep.c:
18382 * syssignal.h:
18383 * systty.h:
18384 * syswait.h:
18385 * term.c:
18386 * unexec.c:
18387 * unexelf.c:
18388 * unexhp9k800.c:
18389 * m/hp800.h:
18390 * m/ibmrs6000.h:
18391 * m/mips.h:
18392 * m/vax.h:
18393 * s/darwin.h:
18394 * s/freebsd.h:
18395 * s/gnu.h:
18396 * s/ms-w32.h:
18397 * s/msdos.h:
18398 * s/netbsd.h:
18399 * s/template.h: Remove references to obsolete variables.
18400
18401 * Makefile.in: Add dependencies for all unexec files.
18402 (admindir): Remove unused variable.
18403 (UNEXEC_SRC): Remove references.
18404
184052008-06-25 Chong Yidong <cyd@stupidchicken.com>
18406
18407 * xfns.c (x_default_font_parameter): If Xft is available, first
18408 try Monospace-12 for the default font.
18409
184102008-06-25 Jason Rumney <jasonr@gnu.org>
18411
18412 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
18413
184142008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
18415
18416 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
18417
18418 * buffer.c (syms_of_buffer): Remove default-word-wrap.
18419
184202008-06-25 Juanma Barranquero <lekktu@gmail.com>
18421
18422 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
18423 <scroll-conservatively>: Fix typo in docstring.
18424
18425 * xselect.c (Fx_send_client_event): Doc fix.
18426
184272008-06-25 Kenichi Handa <handa@m17n.org>
18428
18429 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
18430
18431 * font.c (font_parse_fcname): Remove unused variables.
18432 (font_sort_entites): Delete the arg SPEC. Caller changed.
18433 Fix for the case of ! best_only.
18434 (font_delete_unmatched): Check DPI and AVGWIDTH too.
18435
18436 * lisp.h (Fstring_to_unibyte): EXFUN it.
18437
18438 * character.h (str_to_unibyte): Extern it.
18439
18440 * character.c (str_to_unibyte): New function.
18441
18442 * fns.c (Fstring_to_unibyte): New function.
18443 (syms_of_fns): Defsubr it.
18444
184452008-06-24 Kenichi Handa <handa@m17n.org>
18446
18447 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
18448 DPI too.
18449 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
18450
184512008-06-24 Andreas Schwab <schwab@suse.de>
18452
18453 * Makefile.in (${lispsource}loaddefs.el): Rename from
18454 ../lisp/loaddefs.el.
18455 (bootstrap-clean): Do what distclean does but don't remove
18456 Makefile.
18457 (distclean): Depend on bootstrap-clean and remove Makefile.
18458
184592008-06-24 Chong Yidong <cyd@stupidchicken.com>
18460
18461 * buffer.h (struct buffer): New member word_wrap.
18462
18463 * buffer.c (syms_of_buffer): New variables default-word-wrap and
18464 word-wrap.
18465 (init_buffer_once): Initialize them.
18466
18467 * dispextern.h (struct it): Replace bool truncate_lines_p with a
18468 line_wrap enum possessing three possible values.
18469
18470 * termopts.h: Replace truncate_partial_width_windows with
18471 Vtruncate_partial_width_windows.
18472
18473 * dispnew.c (direct_output_for_insert): Avoid direct output when
18474 inserting a space with word wrap on.
18475
18476 * indent.c (compute_motion): Obey integer values of
18477 truncate-partial-width-windows.
18478
18479 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
18480 replacing truncate_partial_width_windows.
18481 (init_iterator): If Vtruncate_partial_width_windows is an integer,
18482 truncate only if the window width is below that integer.
18483 (start_display, resize_mini_window, produce_stretch_glyph)
18484 (display_string, move_it_in_display_line_to): Use line_wrap.
bba3e508
SM
18485 (back_to_previous_visible_line_start, reseat_1):
18486 Reset string_from_display_prop_p.
aac0c6e3
MR
18487 (display_line): Extend default face to end of line when wrapping.
18488
184892008-06-24 Kim F. Storm <storm@cua.dk>
18490
18491 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
18492 to wrap continued lines at word boundaries.
18493
184942008-06-24 Jason Rumney <jasonr@gnu.org>
18495
18496 * font.c (Ffont_face_attributes): Multiply pixel size before point
18497 conversion to avoid multiplying rounding error.
18498
184992008-06-23 Jason Rumney <jasonr@gnu.org>
18500
18501 * w32term.c (x_draw_glyph_string_background)
18502 (x_draw_glyph_string): Remove old bdf font code.
18503
18504 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
18505
185062008-06-22 Kenichi Handa <handa@m17n.org>
18507
18508 * font.c (font_find_for_lface): Try the adstyle specified in
18509 the property of LFACE_FONT of LFACE (if any).
18510
185112008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 18512 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
18513
18514 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
18515
185162008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
18517
18518 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
18519 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
18520 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
18521 (witness-emacs): Remove.
18522 (lisp, shortlisp): Move loaddefs.el earlier.
18523 (mostlyclean): Forget about witness-emacs.
18524
185252008-06-22 Glenn Morris <rgm@gnu.org>
18526
18527 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
18528 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
18529
185302008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
18531
18532 * Makefile.in (PRECOMP): Remove.
18533 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
18534 (witness-emacs): Run `compile-first'.
18535 (.el.elc): Use the new compile-onefile target.
18536
185372008-06-21 Kenichi Handa <handa@m17n.org>
18538
18539 * xftfont.c (xftfont_open): Handle QCembolden only when
18540 FC_EMBOLDEN is defined.
18541
185422008-06-21 Andreas Schwab <schwab@suse.de>
18543
18544 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
18545 (.el.elc): Likewise.
18546
185472008-06-21 Miles Bader <miles@gnu.org>
18548
18549 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
18550 build dir, not the lisp source dir.
18551
185522008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
18553
18554 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
18555 (bootstrapclean): Remove.
18556 (.el.elc): New rule.
18557 (PRECOMP): New var.
18558 (../lisp/subdirs.el): Remove.
18559 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
18560 (witness-emacs): New target.
18561 (mostlyclean): Remove witness-emacs as well.
18562 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
18563 Add witness-emacs dependency.
18564
185652008-06-20 Chong Yidong <cyd@stupidchicken.com>
18566
18567 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
18568 defined by the font.
18569
185702008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
18571
18572 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
18573 (bootstrap-clean): New target that keeps TAGS around.
18574 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
18575 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
18576
185772008-06-20 Jason Rumney <jasonr@gnu.org>
18578
18579 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
18580 Remove obsolete font code.
18581
18582 * w32font.c (font_matches_spec): Use csb bitfield from font signature
18583 to determine language support.
18584
185852008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
18586
18587 * sysdep.c (cfsetspeed): New fun extracted from the code.
18588 (cfmakeraw): Move before first use.
18589
185902008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
18591
18592 * sysdep.c (cfmakeraw): Provide fallback implementation.
18593 (serial_configure): Provide fallback implementation of cfsetspeed.
18594
185952008-06-20 Kenichi Handa <handa@m17n.org>
18596
18597 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
18598 the pattern.
18599
18600 * fontset.c (fontset_from_font): Copy font_spec before changing
18601 the elements.
18602
18603 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
18604
186052008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
18606
18607 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
18608 for explicit `font' parameters.
18609
18610 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
18611
186122008-06-19 Kenichi Handa <handa@m17n.org>
18613
18614 * frame.c: Include <ctype.h>.
18615 (x_set_font_backend): Allow spacing characters in the X resource
18616 for FontBackend.
18617
186182008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
18619
18620 * w32fns.c, xfns.c (Qfont_param): New var.
18621 (syms_of_w32fns): Initialize it.
18622 (x_default_font_parameter): Record explicit `font' into
18623 `font-parameter'.
18624
186252008-06-18 Kenichi Handa <handa@m17n.org>
18626
18627 * font.c (font_parse_xlfd): Fix previous change.
18628 (font_parse_fcname): Don't use :fc-unknown-spec.
18629 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
18630 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
18631 (font_add_log): Prepend the driver name to the resulting fonts.
18632
18633 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
18634 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
18635 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
18636
18637 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
18638 (QCembolden): New variables.
18639 (syms_of_xftfont): DEFSYM them.
18640 (xftfont_open): Call XftFontMatch. Don't trust the result of
18641 XftTextExtents8 if the pixel_size is less than 5.
18642
186432008-06-18 Andreas Schwab <schwab@suse.de>
18644
18645 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
18646 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
18647
186482008-06-18 Jason Rumney <jasonr@gnu.org>
18649
18650 * w32font.c (w32font_list, w32font_match): Add logging.
18651
18652 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
18653
186542008-06-17 Chong Yidong <cyd@stupidchicken.com>
18655
18656 * font.c (font_parse_fcname): Store divider characters for
18657 unknown-spec list. For known key symbols, intern using correct
18658 symbol name.
18659
186602008-06-17 Kenichi Handa <handa@m17n.org>
18661
18662 * xfaces.c (realize_default_face): If the frame is not on window
18663 system, set the fontset of face to nil.
18664
186652008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
18666
18667 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
18668
186692008-06-16 Juanma Barranquero <lekktu@gmail.com>
18670
18671 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
18672 (build_font_name_from_vector): Delete externs.
18673
18674 * xfaces.c (struct font_name): Don't declare.
18675
186762008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
18677
18678 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
18679
186802008-06-16 Chong Yidong <cyd@stupidchicken.com>
18681
18682 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
18683
186842008-06-16 Juanma Barranquero <lekktu@gmail.com>
18685
18686 * font.c (Ffont_spec): Fix usage in docstring.
18687 (Ffont_face_attributes): Doc fix.
18688
186892008-06-16 Andreas Schwab <schwab@suse.de>
18690
18691 * font.c (Ffont_face_attributes): Fix definition.
18692
186932008-06-16 Jason Rumney <jasonr@gnu.org>
18694
18695 * font.h (font_style_symbolic_from_value): Remove.
18696
18697 * font.c (font_style_symbolic_from_value): Remove.
18698 (font_style_symbolic): Revert to pre 2008-06-13 version.
18699
18700 * w32font.c (w32_to_fc_weight): New function.
18701 (w32font_full_name, logfont_to_fcname): Use it.
18702
187032008-06-16 Kenichi Handa <handa@m17n.org>
18704
18705 * font.c (font_check_object): Delete it.
18706 (font_clear_cache): Check if a font-object is alive.
18707 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
18708 font-object to nil.
18709 (font_close_object): Don't check FONT_CLOSE_OBJECT.
18710 (font_at): Don't call font_check_object.
18711 (Ffont_get): Return a symbol for :weight, :slant, and :width.
18712
187132008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
18714
18715 * puresize.h (BASE_PURESIZE): Increase to 1230000.
18716
187172008-06-16 Chong Yidong <cyd@stupidchicken.com>
18718
18719 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
18720
187212008-06-15 Chong Yidong <cyd@stupidchicken.com>
18722
18723 * font.c (font_parse_fcname): Only one decimal point.
18724 (font_unparse_fcname): Handle data in family and foundry indices
18725 as symbols, not strings.
18726 (font_unparse_gtkname, Ffont_face_attributes): New functions.
18727
18728 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
18729
18730 * font.h (font_unparse_gtkname): Add prototype.
18731
187322008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
18733
18734 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
18735
187362008-06-15 Andreas Schwab <schwab@suse.de>
18737
18738 * font.c (font_update_drivers): Fix crash when no drivers match.
18739
187402008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
18741
18742 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
18743 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
18744
187452008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
18746
18747 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
18748
187492008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
18750
18751 * process.c (Fserial_process_configure, Fprocess_send_eof):
18752 Use EQ to compare Lisp_Objects.
18753
187542008-06-13 Jason Rumney <jasonr@gnu.org>
18755
18756 * w32fns.c (Fw32_select_font): Remove old font API function.
18757
18758 * w32font.c (logfont_to_fcname): New function.
18759 (Fx_select_font): New font dialog function compatible with
18760 GTK/fontconfig version.
18761
18762 * font.c (font_style_symbolic_from_value): New function.
18763 (font_style_symbolic): Use it.
18764
18765 * font.h (font_style_symbolic_from_value): Declare new function.
18766
187672008-06-13 Juanma Barranquero <lekktu@gmail.com>
18768
18769 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
18770 <font-width-table>: Fix typos in docstrings.
18771
187722008-06-13 Daniel Engeler <engeler@gmail.com>
18773
18774 These changes add serial port access.
18775 * process.c: Add HAVE_SERIAL.
18776 (Fdelete_process, Fprocess_status, Fset_process_buffer)
18777 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
18778 (list_processes_1, select_wrapper, Fstop_process)
18779 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
18780 (status_notify): Modify to handle serial processes.
18781 [HAVE_SERIAL] (Fserial_process_configure)
18782 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
18783 New functions.
18784 * process.h (struct Lisp_Process): Add `type'.
18785 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
18786 New functions.
18787 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
18788 serial ports.
b71ac3dd 18789 (serial_open, serial_configure): New functions.
aac0c6e3
MR
18790 * w32.h: Add FILE_SERIAL.
18791 (struct _child_process): Add ovl_read, ovl_write.
18792
187932008-06-13 Kenichi Handa <handa@m17n.org>
18794
18795 * dispextern.h (enum lface_attribute_index): New member
18796 LFACE_FOUNDRY_INDEX.
18797
18798 * font.c (font_score): Delete arg alternate_families. Check only
18799 weight, slant, width, and size. Ignore the difference of alias
18800 style symbols.
18801 (font_sort_entites): Adjust for the above change. Reflect the
18802 order of font-driver to scores.
18803 (font_list_entities): Don't check alternate_familes here.
18804 (font_clear_prop): Handle foundry.
18805 (font_update_lface): Don't parse "foundry-family" form here.
18806 Handle FONT_FOUNDRY_INDEX.
18807 (font_find_for_lface): Likewise. Handle alternate families here.
18808 If registry is nil, try iso8859-1 and ascii-0.
18809 (font_open_for_lface): Pay attention to size in ENTITY.
18810 (font_open_by_name): Simplify by calling font_load_for_lface.
18811 (free_font_driver_list): Delete it.
18812 (font_update_drivers): Preserve the order of backends.
18813 (syms_of_font): Setting of sort_shift_bits adjusted for the change
18814 of font_score and font_sort_entites.
18815 (font_update_sort_order): Likewise.
18816
18817 * xfaces.c (LFACE_FOUNDRY): New macro.
18818 (check_lface_attrs): Check foundry.
18819 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
18820 (merge_face_vectors): Check foundry.
18821 (merge_face_ref): Likewise.
18822 (Finternal_set_lisp_face_attribute): Likewise.
18823 (x_update_menu_appearance): Likewise.
18824 (Finternal_get_lisp_face_attribute): Likewise.
18825 (lface_hash): Likewise.
18826 (lface_same_font_attributes_p): Likewise.
18827 (x_supports_face_attributes_p): Likewise.
18828 (tty_supports_face_attributes_p): Likewise.
18829 (Finternal_set_alternative_font_family_alist): Intern strings.
18830 (Finternal_set_alternative_font_registry_alist): Downcase strings.
18831 (realize_default_face): Set LFACE_FOUNDRY (lface).
18832
18833 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
18834 font-driver at first.
18835
18836 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
18837
188382008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
18839
18840 * lread.c (Fload): Use xfree, not free on saved_doc_string.
18841
188422008-06-12 Jim Meyering <meyering@redhat.com>
18843
18844 Make unexec_free handle NULL the same way free does.
18845 * unexmacosx.c (unexec_free): Ignore a NULL argument.
18846
188472008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
18848
18849 * character.h (CHAR_TO_BYTE_SAFE): New macro.
18850 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
18851 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
18852 (WEAK_ALIAS): Simplify.
18853 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
18854 when searching a unibyte buffer.
18855
188562008-06-12 Chong Yidong <cyd@stupidchicken.com>
18857
18858 * xfns.c (Fx_select_font): Rename from x-font-dialog.
18859
188602008-06-12 Juanma Barranquero <lekktu@gmail.com>
18861
18862 * w32font.c: Include ctype.h.
18863
188642008-06-11 Jason Rumney <jasonr@gnu.org>
18865
18866 * w32font.c (w32font_encode_char): Detect missing glyphs that are
18867 misreported as space.
18868 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
18869 as aliases for registry iso10646-1.
18870
188712008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
18872
18873 * buffer.c (clone_per_buffer_values): Skip `name'.
18874
188752008-06-11 Chong Yidong <cyd@stupidchicken.com>
18876
18877 * font.c (font_parse_fcname): Fix last change; accept decimal
18878 points in font size.
18879
188802008-06-10 Jason Rumney <jasonr@gnu.org>
18881
18882 * w32uniscribe.c (add_opentype_font_name_to_list):
18883 Skip non unicode fonts.
18884
188852008-06-10 Chong Yidong <cyd@stupidchicken.com>
18886
18887 * xfns.c (Fx_font_dialog): New function.
18888
18889 * gtkutil.c (xg_dialog_response_cb): Rename from
18890 xg_file_response_callback.
18891 (pop_down_dialog): Rename from pop_down_file_dialog.
18892 (xg_get_file_name): Callers changed.
18893 (xg_get_font_name): New function.
18894
18895 * gtkutil.h (xg_get_font_name): Insert prototype.
18896
188972008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
18898
18899 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
18900 x_underline_minimum_display_offset.
18901 (syms_of_xdisp): Declare it here rather than in xterm.c.
18902 * dispextern.h (underline_minimum_offset): Declare it.
18903 * w32term.c (x_draw_glyph_string): Use it.
18904 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
18905 (syms_of_xterm): Don't declare it any more.
18906 (x_draw_glyph_string): Adjust to the new name.
18907
8719abec 189082008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
18909
18910 * xterm.c (x_underline_minimum_display_offset): New var.
18911 (x_draw_glyph_string): Use it.
18912 (syms_of_xterm): Declare it.
18913
189142008-06-10 Chong Yidong <cyd@stupidchicken.com>
18915
18916 * font.c (font_parse_fcname): Accept GTK-style font names too.
18917
189182008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
18919
18920 * dired.c (file_name_completion): Don't return t if the match is exact
18921 but with different capitalization.
18922 * minibuf.c (Ftry_completion): Simplify.
18923
18924 * window.c (Vwindow_point_insertion_type): New var.
18925 (set_window_buffer): Use it.
18926 (syms_of_window): Init and export it to Lisp.
18927
189282008-06-10 Kenichi Handa <handa@m17n.org>
18929
18930 * font.h (font_intern_prop): Prototype adjusted.
18931
18932 * font.c (font_intern_prop): New arg force_symbol.
18933 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
18934 Adjust for the change of font_intern_prop.
18935
18936 * ftfont.c (ftfont_pattern_entity):
18937 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
18938 (w32_registry):
18939 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
18940 the change of font_intern_prop.
18941
189422008-06-09 Juanma Barranquero <lekktu@gmail.com>
18943
18944 * w32menu.c (digest_single_submenu): Declare extern.
18945
189462008-06-09 Jason Rumney <jasonr@gnu.org>
18947
18948 * w32term.c (x_make_frame_visible): Use alternate restore flags.
18949
18950 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
18951 (parse_single_submenu): Remove.
18952 (digest_single_submenu): Remove.
18953 (syms_of_w32menu): Don't initialise variables that have moved
18954 to menu.c.
18955 (set_frame_menubar): Sync with version in xmenu.c.
18956 (w32_menu_show): Sync with xmenu_show in xmenu.c.
18957
18958 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
18959 Make static again.
18960
189612008-06-09 Jason Rumney <jasonr@gnu.org>
18962
18963 Changes to w32 files related to the move of common menu code
18964 to menu.c on 2008-06-08 by Chong Yidong.
18965
18966 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
18967 defs to w32gui.h.
18968 (single_keymap_panes, push_menu_item, push_menu_pane):
18969 Make globally visible.
18970
18971 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
18972 (local_free, malloc_widget_value, free_widget_value)
18973 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
18974 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
18975 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
18976 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
18977 (menu_items, menu_items_allocated, menu_items_used)
18978 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
18979 (init_menu_items, finish_menu_items, discard_menu_items)
18980 (grow_menu_items, push_submenu_start, push_submenu_end)
18981 (push_left_right_boundary, push_menu_pane, push_menu_item)
18982 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
18983 (free_menubar_widget_tree_value, parse_single_submenu)
18984 (update_submenu_strings): Remove functions.
18985 (xmalloc_widget_value): Remove and declare extern.
18986
18987 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
18988 (OBJ1): Build it.
18989
18990 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
18991 (local_heap, local_alloc, local_free, malloc_widget_value)
18992 (free_widget_value): Define here.
18993
189942008-06-09 Kenichi Handa <handa@m17n.org>
18995
18996 * font.h (Qascii_0): Extern it.
18997
18998 * font.c (Qascii_0): New variable.
18999 (syms_of_font): DEFSYM it.
19000 (font_open_by_name): If the registry "iso8859-1" fails, try also
19001 "ascii-0".
19002
19003 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
19004
190052008-06-08 Kenichi Handa <handa@m17n.org>
19006
19007 * .gdbinit (xfont): New command.
19008
190092008-06-08 Andreas Schwab <schwab@suse.de>
19010
19011 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
19012 * Makefile.in (menu.o): Update dependencies.
19013
19014 * Makefile.in (obj): Always add menu.o.
19015 * emacs.c (main): Always call syms_of_menu.
19016 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
19017
190182008-06-08 Chong Yidong <cyd@stupidchicken.com>
19019
19020 * Makefile.in: Compile menu.c.
19021
19022 * lisp.h: Declare syms_of_menu.
19023
19024 * emacs.c (main): Call syms_of_menu.
19025
19026 * keyboard.h: Relocate platform-independent menu definitions from
19027 xmenu.c.
19028
19029 * menu.c: New file. Relocate platform-independent menu
19030 definitions from xmenu.c. Suggested by Adrian Robert.
19031
19032 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 19033 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
19034 (menu_items_used, menu_items_n_panes)
19035 (menu_items_submenu_depth): Move to keyboard.h.
19036 (init_menu_items, finish_menu_items, unuse_menu_items)
19037 (discard_menu_items, restore_menu_items, save_menu_items)
19038 (grow_menu_items, push_submenu_start, push_submenu_end)
19039 (push_left_right_boundary, push_menu_pane, push_menu_item)
19040 (keymap_panes, single_keymap_panes, single_menu_item)
19041 (list_of_panes, list_of_items, find_and_call_menu_selection)
19042 (xmalloc_widget_value, free_menubar_widget_value_tree)
19043 (parse_single_submenu, digest_single_submenu)
19044 (update_submenu_strings): Move to menu.c.
19045
190462008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
19047
19048 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
19049
190502008-06-06 Miles Bader <miles@gnu.org>
19051
19052 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
19053 face, not frame default.
19054
190552008-06-05 Martin Rudalics <rudalics@gmx.at>
19056
19057 * window.c (pop_up_windows, pop_up_frames)
19058 (display_buffer_reuse_frames, Vpop_up_frame_function)
19059 (Vdisplay_buffer_function, Veven_window_heights)
19060 (Vspecial_display_buffer_names, Vspecial_display_regexps)
19061 (Vspecial_display_function, Vsame_window_buffer_names)
19062 (Vsame_window_regexps, split_height_threshold)
19063 (Vsplit_window_preferred_function): Move those vars to window.el.
19064 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
19065 (Fdisplay_buffer): Move those functions to window.el.
19066 (syms_of_window): Remove corresponding declarations.
19067 (display_buffer): New function.
19068 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
19069 * dispnew.c (Flast_nonminibuf_frame): New function.
19070 * buffer.c (Fpop_to_buffer): Move to window.el.
19071
190722008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
19073
19074 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
19075
190762008-06-05 Kenichi Handa <handa@m17n.org>
19077
19078 * coding.c (detect_coding): Fix previous change.
19079 (detect_coding_system): Likewise.
19080
190812008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
19082
19083 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
19084
19085 * keymap.c (Vminibuffer_local_filename_must_match_map):
19086 Rename from Vminibuffer_local_must_match_filename_map.
19087 (syms_of_keymap):
19088 * minibuf.c (Fcompleting_read): Adjust accordingly.
19089 * commands.h: Rename declaration as well.
19090
190912008-06-05 Kenichi Handa <handa@m17n.org>
19092
19093 * font.c (Ffont_spec): Don't use font_parse_family_registry for
19094 family name.
19095 (Ffont_put): Likewise.
19096
19097 * fontset.c (fontset_find_font): Call font_open_for_lface with the
19098 current font-spec.
19099
19100 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
19101 is unspecified.
19102
19103 * xfaces.c (realize_x_face): If the font-related face attributes
19104 are the same as those of default face, realize a new fontset from
19105 default->fontset.
19106 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
19107
191082008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
19109
19110 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
19111 (move_it_in_display_line): New wrapper.
19112
19113 * window.c (window_scroll_pixel_based_preserve_x)
19114 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
19115 (window_scroll_pixel_based, window_scroll_line_based):
19116 Use them to preserve column positions.
19117 (syms_of_window): Initialize them.
19118
19119 * indent.c (Fvertical_motion): Extend first arg to allow passing an
19120 (HPOS . VPOS) pair.
19121
19122 * dispextern.h (move_it_in_display_line): Declare.
19123
191242008-06-05 Juanma Barranquero <lekktu@gmail.com>
19125
19126 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
19127 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
19128 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
19129
191302008-06-04 Juanma Barranquero <lekktu@gmail.com>
19131
19132 * window.c (Fset_window_parameter): Doc fix.
19133 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
19134
191352008-06-04 Joakim Verona <joakim@verona.se>
19136
19137 * window.h (struct window): Add new member window_parameters.
19138
19139 * window.c (Fwindow_parameters, Fwindow_parameter)
19140 (Fset_window_parameter): New defuns.
19141 (syms_of_window): Defsubr the new defuns.
19142 (make_window): Initialize window_parameters to nil.
19143
191442008-06-04 John Paul Wallington <jpw@pobox.com>
19145
19146 * eval.c (Fdefmacro): Doc fix.
19147
191482008-06-04 Kenichi Handa <handa@m17n.org>
19149
19150 * coding.c (detect_coding): Fix handling of coding->head_ascii.
19151 Be sure to call setup_coding_system when we find a proper coding system.
19152 (detect_coding_system): Fix handling of coding->head_ascii.
19153
191542008-06-03 Andreas Schwab <schwab@suse.de>
19155
19156 * font.c (font_prop_validate_spacing): Fix last change.
19157
191582008-06-03 Kenichi Handa <handa@m17n.org>
19159
19160 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
19161 (font_parse_fcname): Fix handling of unknown key.
19162
19163 * xfont.c (xfont_list): Try an alias.
19164
19165 * charset.c (char_charset): Return NULL if the arg charset_list is
19166 specified and C doesn't belong to any of them.
19167
191682008-06-02 Chip Coldwell <coldwell@redhat.com>
19169
19170 * font.c (font_pixel_size): Don't take cdr of an integer.
19171
191722008-06-02 Jim Meyering <meyering@redhat.com>
19173
19174 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
19175 * alloc.c (xfree): Return right away for a NULL arg.
19176 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
19177 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
19178 * mac.c (create_apple_event_from_event_ref): Likewise.
19179 (create_apple_event_from_drag_ref, cfstring_create_normalized):
19180 Likewise.
19181 * doprnt.c (doprnt1): Likewise.
19182 * frame.c (frame): Likewise.
19183 * keyboard.c (wipe_kboard): Likewise.
19184 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
19185 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
19186 * term.c (tty_default_color_capabilities, maybe_fatal)
19187 (delete_tty): Likewise.
19188 * w16select.c (string): Likewise.
19189 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
19190 * w32bdf.c (w32_free_bdf_font): Likewise.
19191 * w32fns.c (w32_unload_font): Likewise.
19192 * w32font.c (w32font_close): Likewise.
19193 * window.c (size_window): Likewise.
19194 * xselect.c (receive_incremental_selection): Likewise.
19195 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
19196 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
19197 * w32.c (stat): Likewise.
19198
19199 Remove useless if-before-free tests.
19200 * editfns.c (Fset_time_zone_rule): Likewise.
19201 * lread.c (nosuffix): Likewise.
19202 * ralloc.c (get_bloc): Likewise.
19203 * regex.c (reg_free): Likewise.
19204 * xftfont.c (xftfont_open, xftfont_close): Likewise.
19205 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
19206 * xsmfns.c (smc_save_yourself_CB): Likewise.
19207
192082008-06-02 Kenichi Handa <handa@m17n.org>
19209
19210 * font.c (font_find_for_lface): Handle float font size.
19211 (font_open_for_lface): Likewise.
19212
19213 * xfaces.c (x_supports_face_attributes_p): Check face->font before
19214 comparing the properties.
19215
192162008-06-01 Jason Rumney <jasonr@gnu.org>
19217
19218 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
19219 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
19220 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
19221 Don't add empty script list.
19222 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
19223
192242008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
19225
19226 * Makefile.in (dot, dotdot): Remove, update users.
19227 ".." has been used elsewhere in the file for a long time.
19228 (LIBXT_STATIC): Remove conditional based on unused variable.
19229
192302008-06-01 Miles Bader <miles@gnu.org>
19231
19232 * xfaces.c (Vface_remapping_alist): New variable.
19233 (syms_of_xfaces): Initialize it.
19234 (enum named_merge_point_kind): New type.
19235 (struct named_merge_point): Add `named_merge_point_kind' field.
19236 (push_named_merge_point): Make cycle detection respect different
19237 named-merge-point kinds.
19238 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
19239 Remove face-name alias resolution.
19240 (lface_from_face_name): New definition using
19241 `lface_from_face_name_no_resolve'.
19242 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
19243 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
19244 (get_lface_attributes): New definition that layers face-remapping on
19245 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
19246 (lookup_basic_face): New function.
19247 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
19248 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
19249 `get_lface_attributes'.
19250 (face_at_buffer_position): Use `lookup_basic_face' to lookup
19251 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
19252 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
19253
19254 * xdisp.c (init_iterator): Pass base_face_id through
19255 `lookup_basic_face' when we actually use it as a face-id.
19256 (handle_single_display_prop): Use `lookup_basic_face' to lookup
19257 DEFAULT_FACE_ID.
19258
19259 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
19260 lookup the initial face-id.
19261
19262 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
19263
192642008-06-01 Juanma Barranquero <lekktu@gmail.com>
19265
19266 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
19267 (Fremove_text_properties): Fix typos in docstrings.
19268
192692008-05-31 Kenichi Handa <handa@m17n.org>
19270
19271 * font.c (font_list_entities): Fix the car part of data to be
19272 stored in the cache.
19273
19274 * ftfont.c (ftfont_font_format): Don't use strcasestr.
19275
192762008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
19277
19278 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
19279 Add a `test' argument so another predicate than `equal' can be used.
19280 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
19281 (map_char_table): Remove unused vars `c' and `i'.
19282 * lisp.h (Foptimize_char_table): Adjust declaration.
19283 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
19284
192852008-05-30 Kenichi Handa <handa@m17n.org>
19286
19287 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
19288 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
19289 defined.
19290
192912008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
19292
19293 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
19294 (Fmake_variable_frame_local): Disallow mixing buffer-local and
19295 frame-local settings for the same variable.
19296
192972008-05-30 Kenichi Handa <handa@m17n.org>
19298
19299 * fontset.c (Ffont_info): Move to font.c.
19300 (syms_of_fontset): Delete defsubr of Sfont_info.
19301
19302 * font.c (font_style_to_value, font_score): Delete casting of the
19303 args to xstcasecmp.
19304 (register_font_driver): Increment num_font_drivers only when
19305 registering the driver globally.
19306 (Ffont_info): Move from fontset.c. Handle a font object too.
19307 (syms_of_font): Defsubr Sfont_info.
19308
193092008-05-29 Kenichi Handa <handa@m17n.org>
19310
19311 * coding.h (enum define_coding_utf8_arg_index): New enum.
19312 (enum coding_attr_index): Change coding_attr_utf_16_bom to
19313 coding_attr_utf_bom.
19314 (enum utf_bom_type): Rename from utf_16_bom_type.
19315 (struct utf_16_spec): Adjust for the above change.
19316 (struct coding_system): Add utf_8_bom in `spec' union.
19317
19318 * coding.c (CODING_UTF_8_BOM): New macro.
19319 (enum coding_category): Delete coding_category_utf_8, add
19320 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
19321 coding_category_utf_8_sig.
19322 (CATEGORY_MASK_UTF_8): Delete it.
19323 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
19324 (CATEGORY_MASK_UTF_8_SIG): New macros.
19325 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
19326 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
19327 CATEGORY_MASK_UTF_8_SIG.
19328 (CATEGORY_MASK_UTF_8): New macro.
19329 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
19330 (detect_coding_utf_8): Check BOM.
19331 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
19332 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
19333 (encode_coding_utf_16): Likewise.
19334 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
19335 (detect_coding, detect_coding_system): Handle utf-8-auto.
19336 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
19337 (syms_of_coding): Fix setting up of Vcoding_category_table.
19338
193392008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
19340
19341 * process.c (Faccept_process_output): If `millisec' is non-nil,
19342 `seconds' default to 0.
19343 (wait_reading_process_output): Also return non-nil if we read output
19344 from a non-running process.
19345
193462008-05-29 Jason Rumney <jasonr@gnu.org>
19347
19348 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
19349 `raster' specified.
19350 (add_font_entity_to_list): Allow non-opentype truetype fonts back
19351 in the uniscribe backend, but disallow any font that has no
19352 unicode subrange support.
19353
193542008-05-29 Juanma Barranquero <lekktu@gmail.com>
19355
19356 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
19357 Fix typos in docstrings.
19358
193592008-05-29 Kenichi Handa <handa@m17n.org>
19360
19361 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
19362 (Fx_family_fonts): Set frame correctly.
19363
193642008-05-28 Jason Rumney <jasonr@gnu.org>
19365
19366 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
19367
193682008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
19369
19370 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
19371 calling build_annotations.
19372
193732008-05-28 Juanma Barranquero <lekktu@gmail.com>
19374
19375 * coding.c (Fdecode_coding_region, Fencode_coding_region)
19376 (Fencode_coding_string):
19377 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
19378 <latin-extra-code-table>: Fix typos in docstrings.
19379 (syms_of_coding) <coding-system-alist>: Doc fix.
19380 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
19381
193822008-05-28 Kenichi Handa <handa@m17n.org>
19383
19384 * fontset.c (Ffont_info): Don't call font_close_object.
19385
19386 * font.c (font_parse_family_registry): Use Ffont_put to validate
19387 foundry and family.
19388 (font_delete_unmatched): Don't check spacing.
19389 (font_list_entities): Add spacing to the spec to list fonts.
19390
19391 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
19392 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
19393
19394 * coding.c (encode_coding_raw_text): Fix previous change.
19395 (encode_coding_object): When the dst_object is a buffer and is
19396 different from src_object, move gap to PT.
19397
193982008-05-27 Chong Yidong <cyd@stupidchicken.com>
19399
19400 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
19401
194022008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
19403
19404 * coding.c (encode_coding_raw_text): Set coding->produced_char for
19405 all branches. Compute it differently.
19406
19407 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
19408
194092008-05-27 Juanma Barranquero <lekktu@gmail.com>
19410
19411 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
19412 into "else if () ... else ...".
19413
194142008-05-27 Jason Rumney <jasonr@gnu.org>
19415
19416 * w32font.c (w32font_open_internal): Determine if glyph indices
19417 are likely to work here.
19418
194192008-05-27 Chong Yidong <cyd@stupidchicken.com>
19420
19421 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
19422 draw overlap glyphs with appropriate highlighting.
19423
194242008-05-27 Kenichi Handa <handa@m17n.org>
19425
19426 * xfont.c (xfont_open): Fix calculation of font->average_width.
19427
194282008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
19429
19430 * casefiddle.c (casify_object): Try to guess better whether the
19431 argument is a byte or a char.
19432
194332008-05-26 Andreas Schwab <schwab@suse.de>
19434
19435 * xselect.c (x_reply_selection_request): Properly handle format == 32.
19436 Always send multiples of format size.
19437
19438 * xterm.c (x_set_frame_alpha): Fix type mismatch.
19439
194402008-05-26 Jason Rumney <jasonr@gnu.org>
19441
19442 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
19443 (compute_metrics): Don't set failure if we just cleared the cache.
19444 (w32_weight_table): Remove unused variable.
19445 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
19446 backwards compatibility.
19447
194482008-05-25 Kenichi Handa <handa@m17n.org>
19449
19450 * w32term.c (x_draw_glyph_string):
19451 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
19452
19453 * xfaces.c: Delete unused function prototypes.
19454 (xstrlwr, font_frame): Delete them.
19455 (clear_face_cache): Delete unused variable.
19456
19457 * xftfont.c (xftfont_open): Delete unused variable.
19458 If underline_thickness is not 1, adjust underline_position.
19459
19460 * ftxfont.c (ftxfont_open): Delete unused variable.
19461
19462 * fontset.c (face_for_char): Optimize for the case of no charset
19463 property.
19464
19465 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
19466 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
19467 (otf_open, font_otf_capability, generate_otf_features)
19468 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
19469 Comment out by surrounding "#if 0" and "#endif" for the moment.
19470 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
19471 (syms_of_font): Codes for accessing above commented out.
19472
194732008-05-24 Eli Zaretskii <eliz@gnu.org>
19474
19475 * w32proc.c: Include dispextern.h.
19476
19477 * w32.c: Include dispextern.h.
19478
194792008-05-23 Juanma Barranquero <lekktu@gmail.com>
19480
19481 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
19482 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
19483 Fix typos in docstrings.
19484
194852008-05-23 Jason Rumney <jasonr@gnu.org>
19486
19487 * xsmfns.c: Remove includes that are already included by config.h.
19488
194892008-05-23 Kenichi Handa <handa@m17n.org>
19490
19491 * charset.c (Qemacs, charset_emacs): New variables.
19492 (char_charset): Fix for non-Unicode characters.
19493 (syms_of_charset): Define charset_emacs.
19494
19495 * w32term.c (x_draw_glyph_string): Be sure to update
19496 s->underline_thickness and s->underline_position. Be sure to draw
19497 underline within the current line area.
19498
19499 * xterm.c (x_draw_glyph_string): Be sure to update
19500 s->underline_thickness and s->underline_position. Be sure to draw
19501 underline within the current line area.
19502
19503 * fontset.c: Delete unused variables and add casting for char *
19504 throughout the file.
19505 (fontset_font): Try the fallback fonts of the current fontset
19506 before consulting the default fontset.
19507
19508 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
19509
19510 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
19511
195122008-05-22 Jason Rumney <jasonr@gnu.org>
19513
19514 * font.c: Don't include strings.h.
19515
19516 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
19517
19518 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
19519 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
19520 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
19521 to call xstrcasecmp.
19522
19523 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
19524
19525 * fontset.c (fs_query_fontset): Use xstrcasecmp.
19526
19527 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
19528
19529 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
19530
195312008-05-22 Kenichi Handa <handa@m17n.org>
19532
19533 * puresize.h (BASE_PURESIZE): Increase to 1220000.
19534
19535 * font.c (font_prop_validate_style): Adjust for the format
19536 change of font_style_table.
19537
19538 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
19539 two args.
19540
19541 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
19542 two args.
19543
195442008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
19545
19546 * minibuf.c (keys_of_minibuf): Delete.
19547 * lisp.h (keys_of_minibuf): Delete.
19548 * emacs.c (main): Don't call keys_of_minibuf.
19549
195502008-05-22 Kenichi Handa <handa@m17n.org>
19551
19552 * ftfont.c (ftfont_resolve_generic_family): Rename from
19553 ftfont_list_generic_family. Return a single family for each
19554 generic family.
19555 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
19556 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
19557 Call font_add_log.
19558 (ftfont_match): Call font_add_log.
19559
19560 * font.h (Ffont_xlfd_name): EXFUN adjusted.
19561 (FONT_DEBUG): Define it.
19562 (font_add_log): Extern it.
19563 (font_assert): Rename from xassert.
19564
19565 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
19566 (xfont_list_family): Call font_add_log.
19567 (xfont_match): Likewise.
19568 (memq_no_quit): Delete.
19569
19570 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
19571 call of Ffont_xlfd_name.
19572
19573 * xfaces.c (struct table_entry, slant_table, weight_table)
19574 (swidth_table): Move to font.c.
19575
19576 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
19577 xassert are changed to font_assert. Delete many unused variables.
19578 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
19579 New variables.
19580 (struct table_entry): Move from xfaces.c and modified.
19581 (weight_table, slant_table, width_table): Move from xfaces.c and
19582 contents adjusted for the change of struct table_entry.
19583 (font_style_to_value, font_style_symbolic): Adjust for the
19584 format change of font_style_table.
19585 (font_parse_family_registry): Don't overwrite existing foundry and
19586 family of font_spec.
19587 (font_score): Fix calculation of diff for sizes.
19588 (font_sort_entites): Call font_add_log.
19589 (font_delete_unmatched): Return a newly created list.
19590 (font_list_entities): Fix previous change. Call font_add_log.
19591 (font_matching_entity, font_open_entity, font_close_entity):
19592 Call font_add_log.
19593 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
19594 (Finternal_set_font_style_table): Delete.
19595 (BUILD_STYLE_TABLE): New macro.
19596 (build_style_table): New function.
19597 (Vfont_log, font_log_env_checked): New variables.
19598 (font_add_log): New function.
19599 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
19600 Declare Lisp variables "font-weight-table", "font-slant-table",
19601 "font-width-table", and "font-log". Initialize font_style_table.
19602
196032008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
19604
19605 * xterm.c (x_set_frame_alpha): Move declarations before statements.
19606
196072008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 19608 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
19609
19610 * frame.c (Qalpha): Add a new frame parameter `alpha'.
19611 (Vframe_alpha_lower_limit): New variable.
19612 (x_set_alpha): New function.
19613
19614 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
19615
19616 * xfns.c (x-create-frame, Qalpha):
19617 Initialize the frame parameter `alpha'.
19618 * xterm.c (OPAQUE, OPACITY): New.
19619 (x_set_frame_alpha): New function.
19620 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
19621
19622 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
19623 * w32fns.c (w32_frame_parm_handlers): Likewise.
19624
196252008-05-20 Jason Rumney <jasonr@gnu.org>
19626
19627 * w32font.c (add_font_entity_to_list): Don't add non-opentype
19628 truetype fonts to opentype list.
19629
196302008-05-20 Juanma Barranquero <lekktu@gmail.com>
19631
19632 * fontset.c (Ffontset_info): Doc fix.
19633 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
19634 <ignore-relative-composition>: Fix typos in docstrings.
19635
19636 * font.c (syms-of-font) <font-encoding-alist>:
19637 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
19638 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
19639 (Ffont_otf_alternates): Doc fixes.
19640
196412008-05-20 Kenichi Handa <handa@m17n.org>
19642
19643 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
19644 font.h through out the file.
19645 (FONT_DRIVERS): Rename from FONTOBJ.
19646 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
19647 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
19648
19649 * emacs.c (main): Call syms_of_font unconditionally.
19650
19651 * font.h (find_font_encoding): Extern it.
19652
19653 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
19654 fontset.c.
194d44e7 19655 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
19656 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
19657 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
19658 only when HAVE_WINDOW_SYSTEM is defined.
19659 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
19660 when HAVE_WINDOW_SYSTEM is defined.
19661
19662 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
19663 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
19664
19665 * xfaces.c: Include font.h unconditionally.
19666 (merge_face_ref, merge_face_vectors)
19667 (Finternal_set_lisp_face_attribute): Cancel the previous change.
19668
196692008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
19670
19671 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
19672 indirect_variable.
19673 * eval.c (lisp_indirect_variable): New fun.
19674 (Fuser_variable_p): Use it.
19675
196762008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
19677
19678 * lisp.h (indirect_variable):
19679 * data.c (indirect_variable, let_shadows_buffer_binding_p):
19680 Use Lisp_Symbol pointers rather than Lisp_Object.
19681 Adjust callers.
19682 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
19683 To this end, change calling-convention.
19684
19685 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
19686 if some non-hidden buffers are selected by string&pred.
19687
196882008-05-19 Chong Yidong <cyd@stupidchicken.com>
19689
19690 * process.c (wait_reading_process_output): Always check status
19691 when in batch mode.
19692
196932008-05-19 Kenichi Handa <handa@m17n.org>
19694
19695 * font.c (font_list_entities): Fix handling of cache.
19696 (font_matching_entity): Likewise.
19697
19698 * ftfont.c (cs_iso8859_1): Delete.
19699 (ft_face_cache): New variable.
19700 (struct ftfont_info): New member fc_charset_idx.
19701 (ftfont_build_basic_charsets): Delete.
19702 (fc_charset_table): New variable.
19703 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
19704 . FC_CHARSET_IDX) as :font-entity property in the font entity.
19705 Callers changed.
19706 (ftfont_lookup_cache, ftfont_get_charset): New functions.
19707 (ftfont_spec_pattern): New argument fc_charset_idx.
19708 Check registry more rigidly. Change callers.
19709 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
19710 change of :font-entity property of the font.
19711
19712 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
19713 property of the font.
19714
197152008-05-18 Juanma Barranquero <lekktu@gmail.com>
19716
19717 * coding.c (Fcoding_system_p): Rename argument to match docstring.
19718 (Funencodable_char_position, Fcheck_coding_systems_region)
19719 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
19720 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
19721 (Ffind_operation_coding_system, Fset_coding_system_priority)
19722 (Fcoding_system_eol_type): Doc fixes.
19723
197242008-05-17 Glenn Morris <rgm@gnu.org>
19725
19726 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
19727
197282008-05-16 Eli Zaretskii <eliz@gnu.org>
19729
19730 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
19731 and st_gid.
19732
19733 * frame.c (Fdelete_frame): Don't call font_update_drivers if
19734 HAVE_WINDOW_SYSTEM is not defined.
19735
19736 * xfaces.c (merge_face_ref, merge_face_vectors)
19737 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
19738 HAVE_WINDOW_SYSTEM is defined.
19739 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
19740
197412008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
19742
19743 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
19744
197452008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19746
19747 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
19748
197492008-05-15 Kenichi Handa <handa@m17n.org>
19750
19751 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
19752 preference.
19753
197542008-05-15 Glenn Morris <rgm@gnu.org>
19755
19756 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
19757
197582008-05-15 Chong Yidong <cyd@stupidchicken.com>
19759
19760 * fns.c (init_fns): Don't initialize weak_hash_tables here.
19761 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
19762
19763 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
19764
197652008-05-15 Kenichi Handa <handa@m17n.org>
19766
19767 * ftfont.c (ftfont_list): Downcase family name to check generic
19768 families.
19769
19770 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
19771 font-spec for QCfont value.
19772
19773 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
19774 buffer. Check the return value of it.
19775
197762008-05-14 Jason Rumney <jasonr@gnu.org>
19777
19778 * w32term.c (w32_get_glyph_overhangs): Remove.
19779 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
19780
197812008-05-14 Kenichi Handa <handa@m17n.org>
19782
19783 * font.c (font_prop_validate): Make nil a valid value.
19784 (font_clear_cache): Check if the cached vector of entities is nil
19785 or not.
19786
197872008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19788
19789 * emacs.c (main_thread): Conditionalize on
19790 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
19791 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
19792
19793 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
19794 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
19795 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
19796
197972008-05-14 Kenichi Handa <handa@m17n.org>
19798
19799 * coding.c (detect_coding_iso_2022): Ignore a coding category that
19800 has no corresponding coding system.
19801
198022008-05-14 Jason Rumney <jasonr@gnu.org>
19803
19804 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
19805
19806 * w32font.h (w32font_open_internal): Update declaration.
19807
19808 * w32font.c (w32font_open_internal): Change last argument from
19809 w32font_info struct to font object. Fill in font object from
19810 font_entity. Get Outline metrics if possible. Use them to
19811 calculate underline position and thickness. Use xlfd name as name
19812 property. Don't set codepage.
19813 (w32font_open): Pass font_object to w32font_open_internal. Don't
19814 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
19815 (w32font_draw): Use s->font.
19816 (clear_cached_metrics): Don't clear non-existent blocks.
19817
19818 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
19819 font was not found.
19820 (x_draw_glyph_string): Use underline position and thickness from font.
19821
19822 * w32uniscribe.c (uniscribe_open): Pass font_object to
19823 w32font_open_internal.
19824
198252008-05-14 Kenichi Handa <handa@m17n.org>
19826
19827 These changes are to delete all legacy font-handling codes, and
19828 make Emacs use only font-backends.
19829
19830 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
19831 (frame.o, image.o, print.o): Depend on $(FONTSRC).
19832
19833 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
19834
19835 * charset.h (Vcharset_non_preferred_head)
19836 (Vcurrent_iso639_language): Extern them.
19837
19838 * charset.c (Vcharset_non_preferred_head): New variable.
19839 (Vcurrent_iso639_language): New variable.
19840 (syms_of_charset): Declare it as a Lisp variable.
19841 (char_charset): Don't check non preferred charsets. As a last
19842 resort, return charset_unicode.
19843 (Fset_charset_priority): Update Vcharset_non_preferred_head.
19844
19845 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
19846 conditionals. Don't check enable_font_backend. Delete all codes
19847 used only when USE_FONT_BACKEND is not defined.
19848
19849 * dispextern.h (struct glyph_string): Change type of `font' to
19850 `struct font *'.
19851 (struct glyph_string): New member underline_position and
19852 underline_thickness.
19853 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
bba3e508
SM
19854 (struct face): Change type of `font' to `struct font *'.
19855 Remove members `font_name', `font_info_id'.
aac0c6e3
MR
19856 (per_char_metric, encode_char): Delete externs.
19857 (calc_pixel_width_or_height): Adjust the prototype.
19858
19859 * emacs.c (enable_font_backend): Delete extern.
19860 (main): Don't set enable_font_backend. Don't check the command
19861 line argument "-disable-font-backend".
19862
19863 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
19864 (enum font_property_index): New members FONT_DPI_INDEX,
19865 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
19866 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
19867 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
19868 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
19869 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
19870 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
19871 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
19872 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
19873 (struct font_spec, struct font_entity): New structs.
ef1b0ba7 19874 (FONT_ENCODING_NOT_DECIDED): Move from fontset.h.
aac0c6e3
MR
19875 (struct font): Many members from old "struct font_info" moved to
19876 here. Members font and entity deleted.
19877 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
19878 the new font-related objects.
19879 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
19880 (CHECK_FONT_GET_OBJECT): Likewise.
19881 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
ef1b0ba7 19882 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move from font.h.
bba3e508
SM
19883 (struct font_driver): New members case_sensitive anc check.
19884 Type of the member list and open changed.
aac0c6e3
MR
19885 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
19886 (font_symbolic_width, font_find_object, font_get_spec)
19887 (font_set_lface_from_name): Delete extern.
19888 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
19889
19890 * font.c: Include <strings.h>.
19891 (enable_font_backend): Delete it.
19892 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
19893 (CHECK_VALIDATE_FONT_SPEC): Delete it.
ef1b0ba7 19894 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move to font.h.
aac0c6e3
MR
19895 (null_string): Delete it.
19896 (null_vector): Make it static.
19897 (font_family_alist): Delete it.
19898 (Qnormal): Extern it.
19899 (QCextra, QClanguage): Delete it.
19900 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
19901 (font_make_spec, font_make_entity, font_make_object)
ef1b0ba7 19902 (font_intern_prop): Rename from intern_downcase. Don't downcase
aac0c6e3 19903 the string. Callers changed.
bba3e508 19904 (font_pixel_size): Adjust for the format change of font-related
aac0c6e3
MR
19905 objects.
19906 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
19907 (font_style_to_value, font_style_symbolic): New function.
19908 (build_font_family_alist): Delete it.
19909 (font_registry_charsets): Use Fassoc_string instead of
19910 assq_no_quit.
19911 (font_prop_validate_symbol): Don't return null_string.
bba3e508 19912 (font_prop_validate_style): Adjust for the change of
aac0c6e3
MR
19913 style-related values in a font vector.
19914 (font_property_table): Delete entries for QClanguage and
19915 QCantialias, add entries for QCavgwidth.
19916 (get_font_prop_index): Delete the 2nd argument FROM.
19917 (font_prop_validate): Arguments changed.
bba3e508 19918 (font_put_extra): Adjust for the change of font-related objects.
aac0c6e3
MR
19919 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
19920 (font_parse_fcname, font_unparse_fcname)
19921 (font_prepare_composition): Likewise.
ef1b0ba7 19922 (font_parse_family_registry): Rename from font_merge_old_spec.
aac0c6e3 19923 (otf_open): Delete the 1st arg entity.
bba3e508 19924 (font_otf_capability): Adjust for the above change.
aac0c6e3
MR
19925 (font_score): New arg alternate_families. Adjusted for the change
19926 of font-related objects.
19927 (font_sort_entites): New arg best_only.
19928 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
19929 Delete them.
19930 (font_match_p): Check alternate families.
19931 (font_find_object): Delete it.
19932 (font_check_object): New function.
bba3e508 19933 (font_clear_cache): Adjust for the change of font-related objects.
aac0c6e3
MR
19934 (font_delete_unmatched): New arg.
19935 (font_list_entities): Call font_driver->list with a spec that
19936 doesn't specify style-related properties.
19937 (font_matching_entity): Arguments changed. Caller changed.
bba3e508 19938 (font_open_entity): Adjust for the change of font-related objects.
aac0c6e3
MR
19939 (font_close_object, font_has_char, font_encode_char)
19940 (font_get_name, font_get_spec): Likewise.
19941 (font_spec_from_name, font_clear_prop, font_update_lface):
19942 New functions.
19943 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
19944 (font_prepare_for_face, font_done_for_face, font_open_by_name)
bba3e508 19945 (font_at): Adjust for the change of font-related objects.
aac0c6e3
MR
19946 (font_range): New function.
19947 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
bba3e508 19948 (Ffont_xlfd_name): Adjust for the change of font-related objects.
aac0c6e3 19949 (Fcopy_font_spec, Fmerge_font_spec): New function.
ef1b0ba7 19950 (Ffont_family_list): Rename from list-families.
aac0c6e3
MR
19951 (Finternal_set_font_style_table): Arguments changed.
19952 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
bba3e508 19953 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjust for the
aac0c6e3
MR
19954 change of font-related objects.
19955 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
19956
19957 * fontset.h (struct font_info): Delete it. Most members go to
19958 struct font.
ef1b0ba7 19959 (FONT_ENCODING_NOT_DECIDED): Move to font.h.
aac0c6e3
MR
19960 (enum FONT_SPEC_INDEX): Delete it.
19961 (font_info, list_fonts_func, load_font_func, query_font_func)
19962 (set_frame_fontset_func, find_ccl_program_func)
bba3e508
SM
19963 (get_font_repertory_func, new_fontset_from_font_name):
19964 Delete externs.
aac0c6e3
MR
19965 (fontset_from_font_name): Extern it.
19966 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
19967 (FONT_INFO_FROM_FACE): Deleted.
19968 (face_for_font): Adjust prototype.
19969
19970 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
19971 conditionals. Don't check enable_font_backend. Delete all codes
19972 used only when USE_FONT_BACKEND is not defined.
19973 (get_font_info_func, list_font_func, load_font_func)
19974 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
19975 (get_font_repertory_func): Delete them.
19976 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
19977 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
19978 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
19979 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
19980 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
19981 (fontset_compare_rfontdef): New function.
19982 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
19983 rfont-defs by qsort. Adjusted for the change of font-group vector.
19984 (load_font_get_repertory): Deleted.
19985 (fontset_find_font): Use new macros to ref/set elements of
19986 font-def and rfont-def.
19987 (fontset_font): Fix the timing of remembering that no font for C.
19988 (free_face_fontset): Do nothing if the face has no fontset.
19989 (face_suitable_for_char_p): Use new macros to ref/set elements of
19990 rfont-def.
19991 (face_for_char): Likewise. Call face_for_char with font_object.
19992 (fs_load_font): Delete. Delete #pragma surrounding it.
19993 (fs_query_fontset): Use strcasecmp instead of strcmp.
bba3e508 19994 (generate_ascii_font_name): Adjust for the format change of
aac0c6e3
MR
19995 font-spec.
19996 (Fset_fontset_font): Likewise. Use new macros to set elements of
19997 font-def.
19998 (Fnew_fontset): Use font_unparse_xlfd to generate
19999 FONTSET_ASCII (fontset).
20000 (new_fontset_from_font_name): Deleted.
ef1b0ba7 20001 (fontset_from_font): Rename from new_fontset_from_font. Check if
aac0c6e3
MR
20002 a fontset is already created for the font. FIx updating of
20003 Vfontset_alias_alist.
20004 (fontset_ascii_font): Deleted.
bba3e508 20005 (Ffont_info): Adjust for the format change of font-spec.
aac0c6e3
MR
20006 (Finternal_char_font): Likewise.
20007 (Ffontset_info): Likewise.
20008 (syms_of_fontset): Don't check load_font_func.
20009
20010 * fns.c (internal_equal): Handle PREV_FONT.
20011
20012 * frame.h: Delete USE_FONT_BACKEND conditional.
20013
20014 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
20015 conditionals. Don't check enable_font_backend. Delete all codes
20016 used only when USE_FONT_BACKEND is not defined.
20017 (x_set_font): Call x_new_font, not x_new_fontset2.
20018 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
20019 already set for the frame.
20020
bba3e508
SM
20021 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed.
20022 Make a font-entity by font_make_entity. Use font_intern_prop instead
aac0c6e3
MR
20023 of intern_downcase. Use FONT_SET_STYLE to set a style-related
20024 font property. If a font is scalable, set avgwidth property to 0.
20025 Set font-entity property by font_put_extra.
20026 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
bba3e508 20027 (ffont_driver): Adjust for the change of struct font_driver.
aac0c6e3
MR
20028 (ftfont_spec_pattern): New function.
20029 (ftfont_list): Return a list, not vector.
20030 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
20031 (ftfont_list_family): Don't downcase names.
20032 (ftfont_free_entity): Deleted.
20033 (ftfont_open): Return a font-object. Adjusted for the change of
20034 struct font. Get underline_thickness and underline_position from
20035 font property. Don't update dpyinfo->smallest_font_height and
20036 dpyinfo->smallest_char_width.
20037 (ftfont_close): Don't free `struct font'.
bba3e508 20038 (ftfont_has_char): Adjust for the format change of font-entity.
aac0c6e3
MR
20039 (ftfont_encode_char, ftfont_text_extents): Likewise.
20040
20041 * ftxfont.c (ftxfont_list): Return a list, not vector.
20042 (ftxfont_open): Return a font-object. Adjusted for the change of
20043 struct font. Get underline_thickness and underline_position from
20044 font property. Don't update dpyinfo->smallest_font_height and
20045 dpyinfo->smallest_char_width.
20046 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
bba3e508 20047 (ftxfont_draw): Adjust for the change of struct font.
aac0c6e3 20048
bba3e508
SM
20049 * image.c (image_ascent): Don't include "charset.h".
20050 Include "character.h" and "font.h".
aac0c6e3
MR
20051
20052 * lisp.h (enum pvec_type): New member PREV_FONT.
20053 (Fassoc_string): EXFUN it.
20054
20055 * print.c: Include font.h.
20056 (print_object): Handle font-related objects.
20057
20058 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
20059 conditionals. Don't check enable_font_backend. Delete all codes
20060 used only when USE_FONT_BACKEND is not defined.
20061 (handle_auto_composed_prop): Do nothing if it->f is not on a
20062 window system. Check how many following characters can be
20063 displayed by the same font.
20064 (calc_pixel_width_or_height): Type of the 4th arg is changed to
20065 'struct font *'.
20066 (get_char_face_and_encoding): Assign the whole encoding task to
20067 the `encode-char' method of a font driver.
bba3e508 20068 (fill_composite_glyph_string): Adjust for the change of `struct
aac0c6e3
MR
20069 face' and `struct glyph_string'.
20070 (fill_glyph_string): Likewise.
20071 (get_per_char_metric): Arguments changed.
bba3e508 20072 (x_get_glyph_overhangs): Adjust for the change of `struct face'
aac0c6e3
MR
20073 and `struct glyph_string'.
20074 (produce_stretch_glyph, calc_line_height_property)
20075 (x_produce_glyphs): Likewise.
20076
20077 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
20078 conditionals. Don't check enable_font_backend. Delete all codes
bba3e508
SM
20079 used only when USE_FONT_BACKEND is not defined.
20080 Use FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
aac0c6e3
MR
20081 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
20082 (Qp): Extern them.
20083 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
20084 Deleted.
20085 (struct font_name): Deleted.
20086 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
20087 (compare_fonts_by_sort_order): New function.
20088 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
20089 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
20090 Deleted.
20091 (Fx_family_fonts): Use font_list_entities, and sort fonts by
20092 compare_fonts_by_sort_order.
20093 (Fx_font_family_list): Call Ffont_family_list.
20094 (face_numeric_value, face_numeric_weight, face_numeric_slant)
20095 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
20096 (face_symbolic_slant, face_symbolic_swidth)
20097 (split_font_name_into_vector, build_font_name_from_vector)
20098 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
20099 (font_rescale_ratio, split_font_name, build_font_name)
20100 (free_font_names, sort_fonts, x_face_list_fonts)
20101 (face_font_available_p, sorted_font_list, cmp_font_names)
20102 (font_list_1, concat_font_list, font_list, remove_duplicates):
20103 Deleted.
20104 (Fx_list_fonts): Use Ffont_list.
20105 (LFACE_AVGWIDTH): Deleted.
20106 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
20107 by FONTP.
20108 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
20109 (set_lface_from_font_name): Delete it.
ef1b0ba7 20110 (set_lface_from_font): Rename from
aac0c6e3
MR
20111 set_lface_from_font_and_fontset. Caller changed. Don't set
20112 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
20113 for face.
20114 (merge_face_vectors): Copy font-spec if necessary.
20115 Clear properties of the font-spec if necessary.
20116 (merge_face_ref): Clear properties of the font-spec if necessary.
20117 (Finternal_set_lisp_face_attribute): Likewise.
20118 (set_font_frame_param): Use font_load_for_lface to load a
20119 font-object, and call Fmodify_frame_parameters with it.
20120 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
20121 font name by Ffont_xlfd_name.
20122 (Finternal_lisp_face_attribute_values): Don't check QCweight,
20123 QCslant, and QCwidth.
20124 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
20125 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
20126 Compare fonts by EQ.
20127 (lookup_non_ascii_face): Deleted.
20128 (face_for_font): The 2nd argument changed.
20129 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
20130 Check atomic font properties by case insensitive.
20131 (realize_non_ascii_face): Set face->overstrike correctly.
20132 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
20133 (dump_realized_face): Get font name from
20134 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
20135
20136 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
20137 conditionals. Don't check enable_font_backend. Delete all codes
20138 used only when USE_FONT_BACKEND is not defined.
20139 (xic_create_xfontset): Original code deleted and renamed from
20140 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
20141 (x_make_gc): Don't set GCFont in GCs.
20142 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
20143 opened by "fixed".
20144 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
20145 find_ccl_program_func, query_font_func, set_frame_fontset_func,
20146 get_font_repertory_func.
20147
20148 * xfont.c: Include <stdlib.h> and "ccl.h".
20149 (struct xfont_info): New structure.
20150 (xfont_query_font): Deleted.
ef1b0ba7 20151 (xfont_find_ccl_program): Rename from x_find_ccl_program and
aac0c6e3 20152 moved from xterm.c.
bba3e508 20153 (xfont_driver): Adjust for the change of struct font_driver.
aac0c6e3 20154 (compare_font_names): New function.
ef1b0ba7
SM
20155 (xfont_list_pattern): Sort font names case insensitively.
20156 Make font_entity by calling font_make_entity. Avoid auto-scaled fonts.
aac0c6e3
MR
20157 (xfont_list): Return a list, not vector.
20158 (xfont_match): If the font doesn't have QCname property, generate
20159 a name from the other font properties.
20160 (xfont_open): Return a font-object. Adjusted for the change of
20161 struct font. Get underline_thickness and underline_position from
20162 font property. Don't update dpyinfo->smallest_font_height and
20163 dpyinfo->smallest_char_width.
20164 (xfont_close): Don't free struct font.
bba3e508 20165 (xfont_prepare_face): Adjust for the change of struct font.
aac0c6e3 20166 (xfont_done_face): Deleted.
bba3e508 20167 (xfont_has_char): Adjust for the change of struct font.
aac0c6e3
MR
20168 (xfont_encode_char, xfont_draw): Likewise.
20169 (xfont_check): New function.
20170
bba3e508 20171 * xftfont.c (xftfont_list): Adjust for the change of `list'
aac0c6e3 20172 callback function.
bba3e508
SM
20173 (xftfont_match): Adjust for the format change of font-entity.
20174 (xftfont_open): Adjust for the format change of font-entity and
aac0c6e3
MR
20175 font-object. Adjusted for the change of struct font. Return a
20176 font-object. Don't update dpyinfo->smallest_font_height and
20177 dpyinfo->smallest_char_width.
20178 (xftfont_close): Block input while calling XftFontClose.
20179 (xftfont_prepare_face): Don't block input while calling
20180 xftfont_get_colors. Adjusted for the change of struct font.
20181 (xftfont_shape): Return value of error case fixed.
20182
20183 * xrdb.c (x_load_resources): Don't setup a fontset resource.
20184
20185 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
20186 conditionals.
20187 (FONT_WIDTH): Return (f)->max_width.
20188 (struct x_display_info): Delete member `font'.
20189 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
20190 (x_find_ccl_program, x_get_font_repertory): Delete externs.
20191 (struct x_output): Change type of `font' to `struct font *'.
20192
20193 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
20194 conditionals. Don't check enable_font_backend. Delete all codes
20195 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
20196 (x_per_char_metric, x_encode_char): Deleted.
20197 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
bba3e508 20198 (x_compute_glyph_string_overhangs): Adjust for the change of
aac0c6e3
MR
20199 `struct face'.
20200 (x_draw_glyph_string_foreground)
20201 (x_draw_composite_glyph_string_foreground): Likewise.
20202 (x_draw_glyph_string): Likewise. Use font->underline_position and
20203 font->underline_thickness.
ef1b0ba7 20204 (x_new_font): Rename from x_new_fontset2.
aac0c6e3
MR
20205 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
20206 (x_check_font): Call `check' method of a font driver.
20207 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
20208 (x_query_font, x_get_font_repertory): Deleted.
ef1b0ba7 20209 (x_find_ccl_program): Rename and moved to xfont.c.
bba3e508 20210 (x_redisplay_interface): Adjust for the change of `struct
aac0c6e3
MR
20211 redisplay_interface'.
20212
20213 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
20214 conditionals. Don't check enable_font_backend. Delete all codes
20215 used only when USE_FONT_BACKEND is not defined. Surround non-used
20216 code by "#ifdef OLD_FONT" and "endif".
20217 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
20218
20219 * w32font.h (struct w32font_info): New member.
20220 (FONT_COMPAT): New macro.
20221 (w32font_open_internal): Prototype adjusted.
20222
20223 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
20224 OLD_FONT" and "endif".
20225
20226 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
20227 conditionals. Don't check enable_font_backend. Delete all codes
20228 used only when USE_FONT_BACKEND is not defined.
20229 (w32font_open): Return a font-object. Make a font-object by
20230 font_make_object. Adjusted for the change of struct w32font_info.
20231 (w32font_close): Don't free struct font. Adjusted for the change
20232 of struct w32font_info.
20233 (w32font_encode_char, w32font_text_extents, w32font_draw):
ef1b0ba7 20234 Adjust for the change of struct w32font_info.
aac0c6e3
MR
20235 (w32font_draw): Likewise.
20236 (w32font_list_internal): Return a list, not vector.
20237 (w32font_open_internal): Change the 4th arg to font-object.
20238 Adjusted for the change of struct w32font_info and font-object format.
20239 (add_font_name_to_list): Don't downcase names.
20240 (w32_enumfont_pattern_entity): Make a font-entity by
20241 font_make_entity. Adjusted for the format change of font-entity.
20242 Use FONT_SET_STYLE to set a style-related font property. If a
20243 font is scalable, set avgwidth property to 0. Set font-entity
20244 property by font_put_extra.
bba3e508 20245 (font_matches_spec): Adjust for the format change of font-entity.
aac0c6e3
MR
20246 (w32_weight_table, w32_decode_weight): New variables.
20247 (w32_encode_weight): New function.
bba3e508 20248 (fill_in_logfont): Adjust for the format change of font-spec.
aac0c6e3
MR
20249 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
20250 weight value.
bba3e508 20251 (w32font_driver): Adjust for the change of struct font_driver.
aac0c6e3
MR
20252
20253 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
20254 conditionals. Don't check enable_font_backend. Surround non-used
20255 code by "#ifdef OLD_FONT" and "endif".
20256 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
bba3e508 20257 (FONT_AVG_WIDTH): Adjust for the change of struct font.
aac0c6e3
MR
20258
20259 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
20260 conditionals. Don't check enable_font_backend. Delete all codes
20261 used only when USE_FONT_BACKEND is not defined. Surround non-used
20262 code by "#ifdef OLD_FONT" and "endif".
20263
20264 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
20265 (uniscribe_open): Return value changed to font-object.
20266 Adjusted for the format change of font-object.
bba3e508 20267 (uniscribe_otf_capability): Adjust for the change of struct font.
aac0c6e3 20268 (add_opentype_font_name_to_list): Don't downcase names.
bba3e508 20269 (uniscribe_font_driver): Adjust for the change of struct
aac0c6e3
MR
20270 font_driver.
20271
202722008-05-13 Chong Yidong <cyd@stupidchicken.com>
20273
20274 * dispnew.c (update_frame_1): Check if tty output is still valid
20275 before flushing it.
20276
202772008-05-13 Jan Djärv <jan.h.d@swipnet.se>
20278
20279 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
20280 to Gtk+ menus.
20281
202822008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
20283
20284 * dired.c (file_name_completion): Tweak the code so as to always do it
20285 in a single pass. Tighten the scope of some variables.
20286
20287 * dired.c (Qdefault_directory): New var.
20288 (file_name_completion): Use it instead of Fexpand_file_name.
20289 (syms_of_dired): Initialize it.
20290
202912008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
20292
20293 * fileio.c (double_dollars): Remove dead code.
20294
202952008-05-10 Eli Zaretskii <eliz@gnu.org>
20296
20297 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
20298 Mention w32-get-true-file-attributes in doc string.
20299
20300 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
20301
203022008-05-09 Glenn Morris <rgm@gnu.org>
20303
20304 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
20305 2008-04-23.
20306
203072008-05-09 Eli Zaretskii <eliz@gnu.org>
20308
20309 Support for reporting owner and group of each file on MS-Windows:
20310 * dired.c (stat_uname, stat_gname): New functions, with special
20311 implementation for w32.
20312 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
20313
20314 * w32.c: Rename the_passwd_* to dflt_passwd_*.
20315 (dflt_group_name): New static variable.
20316 (dflt_group): Rename from the_group.
20317 (init_user_info): Init dflt_group fields. Get user's group name
20318 from LookupAccountSid.
20319 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
20320 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
20321 New initialization states.
20322 (globals_of_w32): Initialize them to zero. Initialize the default
20323 group name to "None".
20324 (GetFileSecurity_Name): New global var, the name of the function
20325 to call for GetFileSecurity.
20326 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
20327 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
20328 (get_file_security, get_security_descriptor_owner)
20329 (get_security_descriptor_group, is_valid_sid)
20330 (get_file_security_desc, get_rid, get_name_and_id)
20331 (get_file_owner_and_group): New functions.
20332 (stat): Use get_file_security_desc and get_file_owner_and_group to
20333 report the owner and primary group of each file. Don't ignore the
20334 high 32 bits of file's size, now that st_size is 64-bit wide.
20335 Fix test when to get true file attributes.
20336 (init_user_info): Use get_rid instead of equivalent inline code.
20337 (fstat): Don't ignore the high 32 bits of file's size.
20338
203392008-05-09 Chong Yidong <cyd@stupidchicken.com>
20340
20341 * image.c (png_load): Use correct bit-depth for setting background
20342 color.
20343
203442008-05-08 Eli Zaretskii <eliz@gnu.org>
20345
20346 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
20347 epa-hook.elc.
20348
203492008-05-08 Juanma Barranquero <lekktu@gmail.com>
20350
20351 * font.c (Ffont_match_p): Don't use `iff' in docstring.
20352
203532008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
20354
20355 * macfns.c (Fx_create_frame): Make a copy of frame parameters
20356 because the original parameters are in pure storage now.
20357 (mac_window): Remove unused params. Update callers.
20358
203592008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
20360
20361 * lread.c (substitute_object_recurse): Use lower-level primitives.
20362 Don't signal errors when traversing sub-char-tables.
20363 Don't loop over all the possible characters when traversing char-tables.
20364
20365 * print.c (print_preprocess): Add sub-char-tables to the print-table,
20366 just like we do in print.c.
20367
203682008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
20369
20370 * minibuf.c (Ftry_completion): Remove code left over from when we used
20371 scmp instead of Fcompare_strings.
20372
203732008-05-04 Juanma Barranquero <lekktu@gmail.com>
20374
20375 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
20376
203772008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20378
20379 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
20380 Create bitmap context in native byte order.
20381
20382 * macterm.c (XDrawLine)
20383 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
20384 context in native byte order.
20385
203862008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20387
20388 * config.in: Regenerate.
20389
20390 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
20391 New definitions for Image I/O support.
20392 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
20393 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
20394 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
20395 (mac_data_provider_release_data, image_load_image_io)
20396 [USE_MAC_IMAGE_IO]: New functions.
20397 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
20398 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
20399 (init_image_func_pointer) [MAC_OSX]: Remove function.
20400 (image_load_quartz2d) [MAC_OSX]: Check availability of
20401 CGImageCreateWithPNGDataProvider at compile time.
20402 Use lowercase `false' for boolean constant.
20403 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
20404 Use image_load_image_io.
20405 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
20406 Don't check MyCGImageCreateWithPNGDataProvider.
20407 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
20408 Don't call init_image_func_pointer.
20409
20410 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
20411
20412 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
20413 Make variable non-static.
20414 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
20415 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
20416
20417 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
20418 (RED_FROM_ULONG): Mask off higher bits.
20419 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
20420
20421 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
20422 Include AvailabilityMacros.h.
20423 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
20424 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
20425
204262008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
20427
20428 * chartab.c (Fset_char_table_range): If range is t, really set all
20429 chars to that value.
20430
204312008-05-03 Eli Zaretskii <eliz@gnu.org>
20432
20433 * dired.c (Ffile_attributes): Don't allow the device number become
20434 negative.
20435
204362008-05-02 Daiki Ueno <ueno@unixuser.org>
20437
20438 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
20439
204402008-05-02 Juri Linkov <juri@jurta.org>
20441
20442 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
20443 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
20444 DEFAULT argument as a list of default values in docstrings.
20445
204462008-05-01 Chong Yidong <cyd@stupidchicken.com>
20447
20448 * puresize.h (BASE_PURESIZE): Increase to 1210000.
20449
204502008-05-01 Martin Rudalics <rudalics@gmx.at>
20451
20452 * dispnew.c (change_frame_size_1): Preserve small windows when
20453 shrinking frames by calling set_window_height|width with third
20454 arg 2.
20455
20456 * window.h (struct window): Replace field too_small_ok by field
20457 resize_proportionally.
20458
20459 * window.c (make_window): Initialize resize_proportionally.
20460 (enlarge_window): Temporarily set resize_proportionally to make
20461 sure that shrink_windows does scale the window proportionally.
20462 (shrink_windows): When window has resize_proportionally set try
20463 to shrink it proportionally by stealing from other windows.
20464 (struct saved_window, Fset_window_configuration)
20465 (compare_window_configurations): Handle resize_proportionally.
20466 (WINDOW_TOTAL_SIZE): New macro.
20467 (window_min_size, shrink_windows, size_window): Use it.
20468 (check_min_window_sizes): Remove. Invalid values of
20469 window-min-height|width are handled by window_min_size_2 now.
20470 (size_window, Fsplit_window, enlarge_window)
20471 (adjust_window_trailing_edge, grow_mini_window): Don't call
20472 check_min_window_sizes.
20473 (window_min_size_2, window_min_size_1, window_min_size):
20474 New argument safe_p for retrieving "safe" minimum sizes.
20475 (Fdisplay_buffer, Fsplit_window, enlarge_window)
20476 (adjust_window_trailing_edge, grow_mini_window):
20477 Adjust arguments of window_min_size... functions.
20478 (shrink_windows): Argument min_size removed. New argument
20479 safe_p allows shrinking windows to their safe minimum sizes.
20480 Calculate minimum size and decide whether a window shall be
20481 deleted for each window individually.
20482 (size_window): When nodelete_p equals 2, tell shrink_windows to
20483 delete windows only if their new minimum size is no more safe.
20484 (shrink_window_lowest_first): Call window_min_size_1 to make
20485 sure to preserve modeline of bottom-most window when resizing
20486 the minibuffer.
20487 (Fset_window_configuration, Fcurrent_window_configuration)
20488 (compare_window_configurations): Do not handle
20489 window-min-height|width any more.
20490 (syms_of_window): Clarify window-min-height|width doc-strings.
20491
204922008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
20493
20494 * dired.c (file_name_completion): Fix up the encoding/decoding issue
20495 some more. Copy some of the code from Ftry_completions.
20496 Remove special case code that dates back to initial revision when the
20497 slash was only added when necessary and that can't trigger nowadays.
20498
204992008-04-27 Kenichi Handa <handa@m17n.org>
20500
20501 * font.c (font_prop_validate): Signal `error' instead of `font'.
20502
205032008-04-29 Jason Rumney <jasonr@gnu.org>
20504
20505 * w32fns.c (Fw32_battery_status): New defun.
20506 (syms_of_w32fns): Defsubr it.
20507
205082008-04-28 Andreas Schwab <schwab@suse.de>
20509
20510 * dired.c (file_name_completion): Fix another mixing of encoded
20511 and decoded names.
20512
205132008-04-28 Juanma Barranquero <lekktu@gmail.com>
20514
20515 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
20516
205172008-04-27 Juanma Barranquero <lekktu@gmail.com>
20518
20519 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
20520
205212008-04-27 Andreas Schwab <schwab@suse.de>
20522
20523 * dired.c (file_name_completion): Fix inappropriate mixing of
20524 encoded and decoded names.
20525
20526 * xterm.c (XTread_socket): Fix use of uninitialized variable.
20527
20528 * puresize.h (BASE_PURESIZE): Increase to 1200000.
20529
205302008-04-26 Eli Zaretskii <eliz@gnu.org>
20531
20532 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
20533 2008-03-31, it's not needed anymore with `struct stat' definition
20534 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
20535 for the same reasons.
20536
205372008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
20538
20539 * m/sparc.h: Additional redefinitions for GNU/Linux.
20540
205412008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20542
20543 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
20544 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
20545 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
20546 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
20547 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
20548 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
20549 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20550 Likewise.
20551
20552 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
20553 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
20554 (mac_ax_number_of_characters): Add externs.
20555 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
20556 [USE_MAC_TSM]: Likewise.
20557 (mac_handle_text_input_event) [MAC_OSX]:
20558 Handle kEventTextInputOffsetToPos for no active input area case.
20559 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
20560 (mac_handle_document_access_event)
20561 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
20562 (install_application_handler) [MAC_OSX]: Register handlers for
20563 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
20564 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20565 Register mac_handle_document_access_event.
20566
20567 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
20568 Make functions non-static.
20569
205702008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
20571
20572 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
20573 (read_file_name_completion_ignore_case, insert_default_directory)
20574 (Qdefault_directory): Move to minibuffer.el.
20575 (Fread_file_name): Call the new `read-file-name' instead.
20576
205772008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20578
20579 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
20580 Make function non-static.
20581 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
20582 Remove function.
20583 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
20584 Move to mactoolbox.c.
20585 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
20586
20587 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
20588 (mac_rect_make): New macro.
20589
20590 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
20591 instead of float.
20592 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
20593 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
20594 (XSetBackground) [USE_CG_DRAWING]: Likewise.
20595 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
20596 CGRectMake.
20597 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
20598 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
20599 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
20600 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
20601 instead of WindowRef in argument type.
20602 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
20603 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
20604 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
20605 instead of DISPLAY. All uses changed.
20606 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
20607 (x_calc_absolute_position): Simplify so as not to use
20608 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
20609
20610 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
20611 instead of WindowRef in argument type.
20612 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
20613 [TARGET_API_MAC_CARBON]: Remove externs.
20614 (create_apple_event, mac_event_parameters_to_lisp)
20615 [TARGET_API_MAC_CARBON]: Add externs.
20616
20617 * mactoolbox.c (Vmac_ts_script_language_on_focus)
20618 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
20619 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
20620 is clicked.
20621 (x_activate_menubar): Remove extern for saved_menu_event_location.
20622 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
20623 Move from mac.c.
20624
206252008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20626
20627 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
20628 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
20629
206302008-04-23 Jason Rumney <jasonr@gnu.org>
20631
20632 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
20633 attributes only for local files.
20634
20635 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
20636 default to Qlocal.
20637
206382008-04-22 Juri Linkov <juri@jurta.org>
20639
20640 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
20641 read-buffer-to-switch instead of using the letter "B".
20642
206432008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
20644
20645 * fileio.c (Qdefault_directory): New variable.
20646 (Fread_file_name): Use it to pass `dir' to the completion functions.
20647
206482008-04-20 Chong Yidong <cyd@stupidchicken.com>
20649
20650 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
20651
206522008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
20653
20654 * keyboard.c (Vpre_help_message): Remove.
20655 (show_help_echo): Remove default C code.
20656
20657 * dired.c (directory_files_internal, file_name_completion):
20658 Only call ENCODE_FILE if the string is indeed decoded.
20659
206602008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
20661
20662 * Makefile.in (TOOLKIT_DEFINES): Remove.
20663 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
20664
206652008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20666
20667 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
20668 (mactoolbox.o): New target.
20669
20670 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
20671 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
20672
20673 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
20674 Use mac_set_frame_window_background instead of XSetWindowBackground.
20675 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
20676 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
20677 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
20678 instead of SetWindowTitleWithCFString.
20679 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
20680 Move function to mactoolbox.c.
20681 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
20682 Use mac_set_window_modified instead of SetWindowModified.
20683 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
20684 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
20685 (Fx_focus_frame): Use mac_front_non_floating_window instead of
20686 FrontNonFloatingWindow. Use mac_activate_window instead of
20687 ActivateWindow. Use mac_active_non_floating_window instead of
20688 ActiveNonFloatingWindow.
20689 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
20690 Use mac_show_hourglass and mac_hide_hourglass.
20691 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
20692 instead of GetGlobalMouse.
20693 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
20694 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
20695 Use mac_bring_window_to_front instead of BringToFront.
20696 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
20697 mactoolbox.c.
20698 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
20699 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
20700 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
20701 mactoolbox.c.
20702
20703 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
20704 (XtPointer): Move typedef from macmenu.c.
20705 (enum button_type): Move enum from macmenu.c.
20706 (widget_value): Move typedef from macmenu.c.
20707 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
20708 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
20709 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
20710 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
20711 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
20712 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
20713 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
20714 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
20715 (Selection): Move typedef from macselect.c.
20716 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
20717 macterm.c.
20718 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
20719 (mac_is_window_collapsed, mac_bring_window_to_front)
20720 (mac_send_window_behind, mac_hide_window, mac_show_window)
20721 (mac_collapse_window, mac_front_non_floating_window)
20722 (mac_active_non_floating_window, mac_activate_window)
20723 (mac_move_window_structure, mac_move_window, mac_size_window)
20724 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
20725
20726 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
20727 (enum mac_menu_kind): Move enum to mactoolbox.c.
20728 (min_menu_id): Move variable to mactoolbox.c.
20729 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
20730 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
20731 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
20732 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
20733 [TARGET_API_MAC_CARBON]: Likewise.
20734 (XtPointer): Move typedef to macgui.h.
20735 (enum button_type): Move enum to macgui.h.
20736 (widget_value): Move typedef to macgui.h.
20737 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
20738 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
20739 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
20740 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
20741 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
20742 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
20743 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
20744 (popup_activated_flag): Make variable non-static.
20745 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
20746 (add_menu_item, fill_menu, dispose_menus):
20747 Move functions to mactoolbox.c.
20748 (restore_show_help_function, menu_target_item_handler)
20749 (install_menu_target_item_handler, mac_handle_dialog_event)
20750 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
20751 [TARGET_API_MAC_CARBON]: Likewise.
20752 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
20753 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
20754 (find_and_call_menu_selection, name_is_separator): Make function
20755 non-static.
20756 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
20757 to mactoolbox.c.
20758 (set_frame_menubar): Don't call install_menu_quit_handler.
20759 (menu_item_selection): New variable.
20760 (mac_menu_show): Use create_and_show_popup_menu.
20761 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
20762 selection but set variable menu_item_selection. All uses changed.
20763 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
20764 Call install_menu_quit_handler. Move to mactoolbox.c.
20765
20766 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
20767 (Selection): Move typedef to macgui.h.
20768 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
20769 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
20770 Make variables non-static.
20771 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
20772 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
20773 Make functions non-static.
20774 (Vmac_service_selection) [MAC_OSX]: Likewise.
20775 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
20776 (mac_valid_selection_target_p, mac_clear_selection)
20777 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
20778 (mac_put_selection_value, mac_selection_has_target_p)
20779 (mac_get_selection_value, mac_get_selection_target_list)
20780 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
20781 Move functions to mactoolbox.c.
20782 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
20783 Likewise.
20784 (copy_scrap_flavor_data, mac_handle_service_event)
20785 (install_service_handler) [MAC_OSX]: Likewise.
20786 (syms_of_macselect) <Vmac_dnd_known_types>:
20787 Use mac_dnd_default_known_types.
20788
20789 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
20790 Move to mactoolbox.c.
20791 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
20792 (Fx_selection_owner_p): Add EXFUN.
20793 (install_window_handler, remove_window_handler, XSetWindowBackground):
20794 Remove externs.
20795 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
20796 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
20797 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
20798 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
20799 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
20800 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
20801 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
20802 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
20803 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
20804 (create_and_show_popup_menu, mac_get_selection_from_symbol)
20805 (mac_valid_selection_target_p, mac_clear_selection)
20806 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
20807 (mac_put_selection_value, mac_selection_has_target_p)
20808 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
20809 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
20810 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
20811 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
20812 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
20813 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
20814 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
20815 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
20816 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
20817
20818 * mactoolbox.c: New file.
20819
208202008-04-18 Jason Rumney <jasonr@gnu.org>
20821
20822 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
20823
208242008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
20825
20826 * character.c (Fmultibyte_char_to_unibyte):
20827 Return latin1 chars unchanged.
20828
20829 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
20830 relocated if it points to `name'.
20831
208322008-04-17 Kenichi Handa <handa@m17n.org>
20833
20834 * data.c (Faset): Allow setting a multibyte character in an
20835 ASCII-only unibyte string.
20836
20837 * lisp.h (STRING_SET_MULTIBYTE): New macro.
20838
208392008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
20840
20841 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
20842 done in config.h.
20843
208442008-04-16 Juanma Barranquero <lekktu@gmail.com>
20845
20846 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
20847 (Fchar_direction): Add usage in the docstring.
20848
208492008-04-15 Chong Yidong <cyd@stupidchicken.com>
20850
20851 * keyboard.c (read_key_sequence): Remove always-true checks.
20852
208532008-04-14 Jason Rumney <jasonr@gnu.org>
20854
20855 * w32font.c (w32font_open_internal): Set max_bounds.descent in
20856 compatibility struct, for better underline positioning.
20857
208582008-04-13 David Hansen <david.hansen@gmx.net>
20859
20860 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
20861 string.
20862
208632008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
20864
20865 * m/hp800.h (XUINT, XSET): Remove.
20866
208672008-04-12 Juanma Barranquero <lekktu@gmail.com>
20868
20869 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
20870 previous change.
20871
208722008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
20873
20874 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
20875 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
20876
208772008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
20878
20879 * keymap.h (map_keymap_canonical): Declare.
20880 * xmenu.c (single_keymap_panes): Use it.
20881
208822008-04-11 Glenn Morris <rgm@gnu.org>
20883
20884 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
20885 set the target's value to that of the alias.
20886
208872008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
20888
20889 * term.c (set_tty_color_mode): Left over typo.
20890
208912008-04-10 Michael Albinus <michael.albinus@gmx.de>
20892
20893 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
20894 only after check for file name handler functions. Signal, when
20895 native functionality is not supported.
20896 (syms_of_fileio): Declare it unconditionally.
20897
208982008-04-10 Jason Rumney <jasonr@gnu.org>
20899
20900 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
20901 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
20902
20903 * w32.c (logon_network_drive): Also logon to remote drives that
20904 are mapped to drive letters.
20905
209062008-04-10 Glenn Morris <rgm@gnu.org>
20907
20908 * xdisp.c (truncate-partial-width-windows): Doc fix.
20909
209102008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
20911
20912 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
20913 Move functions to minibuffer.el.
20914 (syms_of_fileio): Don't declare them.
20915
209162008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
20917
20918 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
20919 (syms_of_minibuf): Remove its initialization.
20920
20921 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
20922
209232008-04-09 Juanma Barranquero <lekktu@gmail.com>
20924
20925 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
20926
209272008-04-09 Jason Rumney <jasonr@gnu.org>
20928
20929 * makefile.w32-in (distclean): Delete makefile too.
20930 (maintainer-clean): New target.
20931
20932 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
20933
20934 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
20935 for new font backend and composite cases.
20936
209372008-04-09 Jan Djärv <jan.h.d@swipnet.se>
20938
20939 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
20940 Most of the code moved to run_timers.
20941 (do_pending_atimers): Call run_timers.
20942 (run_timers): New function.
20943
20944 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
20945 run atimers.
20946
20947 * process.c (wait_reading_process_output): The same as above.
20948
209492008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
20950
20951 * minibuf.c (last_exact_completion): Remove variable.
20952 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
20953 (complete_and_exit_1, complete_and_exit_2)
20954 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
20955 (Fdisplay_completion_list, display_completion_list_1)
20956 (Fminibuffer_completion_help, Fself_insert_and_exit)
20957 (Fexit_minibuffer, Fminibuffer_message): Move functions to
20958 minibuffer.el.
20959 (syms_of_minibuf): Remove corresponding initializations.
20960
20961 * keyboard.c (Qdeactivate_mark): New var.
20962 (command_loop_1): Use it to call `deactivate-mark'.
20963 (syms_of_keyboard): Initialize it.
20964
20965 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
20966 to another frame.
20967 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
20968 Don't call set_tty_color_mode.
20969 (store_frame_param): Reset previous_frame rather than call
20970 set_tty_color_mode.
20971 * term.c (set_tty_color_mode): Rewrite.
20972 * dispextern.h (set_tty_color_mode): New type.
20973 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
20974
209752008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
20976
20977 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
20978 for generic chars, which do not exist any more in emacs-unicode.
20979
209802008-04-08 Michael Albinus <michael.albinus@gmx.de>
20981
20982 * coding.c (detect_coding_emacs_mule)
20983 (Ffind_operation_coding_system): Fix typo.
20984
209852008-04-08 Jason Rumney <jasonr@gnu.org>
20986
20987 * w32uniscribe.c (SNAME): Extract only symbol name.
20988
20989 * w32font.h (struct w32_metric_cache): New struct.
20990 (w32font_info): Use it.
20991 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
20992 (CACHE_BLOCKSIZE): New constants.
20993
20994 * w32font.c (Qja, Qko, Qzh): New symbols.
20995 (syms_of_w32font): Initialise them.
20996 (font_matches_spec): Use them to filter by language.
20997 (recompute_cached_metrics): Remove function.
20998 (compute_metrics, clear_cached_metrics): New functions.
20999 (w32font_encode_char): Use them to manage metric cache.
21000 (w32font_text_extents): Cache metrics for all glyphs on demand.
21001 Delay converting glyph indices to WORD until needed.
21002 (w32font_open_internal): Initialize metric cache to empty.
21003 (registry_to_w32_charset): Charset should always be a symbol.
21004 (fill_in_logfont, list_all_matching_fonts): Family should
21005 always be a symbol.
21006
210072008-04-06 Jason Rumney <jasonr@gnu.org>
21008
21009 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
21010 Give up if glyph indices not supported. Use uniscribe obtained
21011 ABC widths for individual metrics. Map glyph clusters back to
21012 characters using fClusterStart flag. Return number of glyphs
21013 produced, not chars processed.
21014 (uniscribe_shape): Map char at FROM to current glyph.
21015
210162008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21017
21018 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
21019 Use SetMenuItemHierarchicalMenu.
21020
210212008-04-05 Jason Rumney <jasonr@gnu.org>
21022
21023 * image.c (pbm_load): Allow color values up to 65535.
21024 Throw an error if max_color_idx is outside the supported range.
21025 Report an error when image size is invalid.
21026 Read two bytes at a time when raw images have max_color_idx above 255.
21027
aac0c6e3
MR
210282008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
21029
21030 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
21031 append "CCL: Quitted" when the CCL program is quitted.
21032 (setup_ccl_program): Initialize ccl->quit_silently to zero.
21033
21034 * ccl.h (struct ccl_program): New member quit_silently.
21035
210362008-04-05 Chong Yidong <cyd@stupidchicken.com>
21037
21038 * search.c (compile_pattern_1): Treat non-nil and non-string of
21039 search-spaces-regexp as nil.
21040
21041 * minibuf.c (Fassoc_string): Tweak docstring.
21042
210432008-04-05 Eli Zaretskii <eliz@gnu.org>
21044
21045 * dired.c (Ffile_attributes): Support inode numbers wider than 32
21046 bits. Remove ugly WINDOWSNT-specific kludge introduced on
21047 2008-03-14 to force inode be positive.
21048
21049 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
21050 _S_* ones, since we now use our own sys/stat.h.
21051 (stat, fstat): Don't mangle the inode number.
21052 (init_user_info): Don't restrict UID and GID to 0-60000 range.
21053
210542008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
21055
21056 * frame.h (struct frame): Give one more bit to `visible' since we use
21057 values larger than 1 to indicate obscured frames on ttys.
21058
21059 * keymap.c (Qkeymap_canonicalize): New var.
21060 (Fmap_keymap_internal): New fun.
21061 (describe_map): Use keymap-canonicalize.
21062
21063 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
21064 (Fundo_boundary): Set them.
21065 (syms_of_undo): Initialize them.
21066 (record_point): Use them instead of last_point_position*.
21067 (last_undo_buffer): Change type.
21068
210692008-04-04 Jason Rumney <jasonr@gnu.org>
21070
21071 * w32font.c (w32font_text_extents): Use font's ascent and descent.
21072 (recompute_cached_metrics): Don't set ascent and descent per char.
21073
21074 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
21075 (uniscribe_check_otf): Add GC protection before consing.
21076 Rearrange loop for counting features.
21077
210782008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
21079
21080 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
21081 buffer with byte-size of source buffer.
21082
210832008-04-03 Chong Yidong <cyd@stupidchicken.com>
21084
21085 * callint.c (Fcall_interactively): Handle temporary region even
21086 when shift-select-mode is off.
21087
210882008-04-03 Jason Rumney <jasonr@gnu.org>
21089
21090 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
21091
210922008-04-03 Kenichi Handa <handa@m17n.org>
21093
21094 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
21095 (CATEGORY_MASK_UTF_16): Likewise.
21096 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
21097 binary file.
21098 (detect_coding): Add null-byte detection for a binary file.
21099 (detect_coding_system): Likewise.
21100
211012008-04-03 Jason Rumney <jasonr@gnu.org>
21102
21103 * w32uniscribe.c: New file.
21104
21105 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
21106
21107 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
21108
21109 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
21110 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
21111 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
21112 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
21113 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
21114 (Qphonetic): New symbols.
21115 (syms_of_w32font): Initialize them.
21116 (font_supported_scripts): Use them.
21117 (w32font_list_family): List all charsets.
21118 (w32font_text_extents, recompute_cached_metrics): Fix metric
21119 calculations.
21120 (w32_enumfont_pattern_entity): Make full_type a DWORD.
21121 Give opentype fonts their own format.
21122 (font_matches_spec): New arguments backend and logfont.
21123 Handle :otf spec for uniscribe backend.
21124 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
21125 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
21126
21127 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
21128 font backend.
21129 (globals_of_w32fns): Initialize uniscribe font backend.
21130
21131 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
21132 dependencies.
21133 (w32uniscribe.$(O)): New file to build.
21134 (FONT_OBJ): Include w32uniscribe.$(O).
21135 (LIBS): Add uniscribe libraries.
21136
21137 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
21138
211392008-04-02 Chong Yidong <cyd@stupidchicken.com>
21140
21141 * callint.c (Vshift_select_mode): New var.
21142 (Finteractive): Document new ^ spec.
21143 (Fcall_interactively): Call handle-shift-selection if the ^ spec
21144 is present.
21145
21146 * keyboard.c (Vthis_command_keys_shift_translated): New var.
21147 (command_loop_1): Avoid running the direct display versions of
21148 forward-char and backward-char if shift-selection may occur.
21149 (read_key_sequence): Set Vthis_command_keys_shift_translated if
21150 shift-translation takes place.
21151
21152 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
21153 avoid clobbering by define-minor-mode.
21154
21155 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
21156 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
21157
21158 * syntax.c (Fforward_word): Add ^ interactive spec.
21159
21160 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
21161 (Fscroll_right): Add ^ interactive spec.
21162
211632008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
21164
21165 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
21166
21167 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
21168
21169 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
21170
211712008-03-31 Juri Linkov <juri@jurta.org>
21172
21173 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
21174
211752008-03-30 Jan Djärv <jan.h.d@swipnet.se>
21176
21177 * gtkutil.c (xg_set_geometry): Fix indentation.
21178 (xg_resize_outer_widget): Remove.
21179 (x_wm_size_hint_off): Fix indentation.
21180 (xg_frame_set_char_size): Call flush_and_sync after
21181 gtk_window_resize.
21182 (x_wm_set_size_hint): Pass NULL as geometry window to
21183 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
21184 Add menu bar and tool bar height to base height.
21185 (xg_update_frame_menubar, free_frame_menubar)
21186 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
21187 (update_frame_tool_bar, free_frame_tool_bar):
21188 Change xg_resize_outer_widget to xg_frame_set_char_size.
21189
211902008-03-30 Michael Albinus <michael.albinus@gmx.de>
21191
21192 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
21193 (Fdbus_call_method): New parameter TIMEOUT.
21194 (dbus-send-signal): Optimize UNGCPRO call.
21195
211962008-03-29 Juri Linkov <juri@jurta.org>
21197
21198 * window.c (Fdisplay_buffer): Move call to
21199 Vsplit_window_preferred_function out of conditions that check
21200 if window is eligible for vertical splitting.
21201 When Vsplit_window_preferred_function is non-nil, call it and use
21202 its non-nil return value as window. Otherwise, continue doing
21203 vertical splitting using Fsplit_window with arg horflag=nil.
21204 (syms_of_window) <Vsplit_window_preferred_function>: Change the
21205 default value from `split-window' to nil.
21206
212072008-03-29 Juri Linkov <juri@jurta.org>
21208
21209 * callint.c (Fcall_interactively): Revert 2008-03-16 change
21210 for interactive code letters 'b' and 'B'.
21211
212122008-03-29 Eli Zaretskii <eliz@gnu.org>
21213
21214 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
21215 multibyte string.
21216
212172008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
21218
21219 * keyboard.c (pending_funcalls): New var.
21220 (timer_check): Run it.
21221 (syms_of_keyboard): Initialize it.
21222 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
21223 (Vdelete_terminal_functions): New vars.
21224 (syms_of_terminal): Initialize them.
21225 (Fdelete_terminal): Run delete-terminal-functions.
21226 * xdisp.c (safe_eval): Rewrite.
21227 (safe_call2): New fun.
21228 * frame.c (Qdelete_frame_functions): New var.
21229 (syms_of_frame): Initialize it.
21230 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
21231 * lisp.h (safe_call2, pending_funcalls): Declare.
21232
212332008-03-28 Andreas Schwab <schwab@suse.de>
21234
21235 * indent.c (Fmove_to_column): Move declaration before statements.
21236
212372008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
21238
21239 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
21240 (struct frame): Use bit fields for boolean vars.
21241
21242 * process.c (server_accept_connection): Simplify naming.
21243 (emacs_get_tty_pgrp): Use SDATA.
21244
21245 * coding.c (decode_coding_object): Fix last change.
21246
212472008-03-27 Jason Rumney <jasonr@gnu.org>
21248
21249 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
21250
212512008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
21252
21253 * charset.c (Fdefine_charset_internal): Change the way of
21254 registering charsets in Vcharset_order_list.
21255 (syms_of_charset): Make the charset `eight-bit' supplementary.
21256
212572008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
21258
21259 * regex.c (EXTEND_BUFFER): Change order of pointer addition
21260 operations, to avoid having the difference between pointers
21261 overflow.
21262
212632008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
21264
21265 * indent.c (check_display_width): New fun.
21266 (scan_for_column): Use it.
21267
21268 * data.c (syms_of_data): Mark most-positive-fixnum and
21269 most-negative-fixnum as constants.
21270
21271 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
21272
21273 * indent.c (scan_for_column): Extract from current_column_1.
21274 Merge with the same code from Fmove_to_column.
21275 (current_column_1, Fmove_to_column): Use it.
21276
212772008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
21278
21279 * keymap.c (map_keymap_internal): New fun.
21280 (map_keymap): Use it.
21281 (Fmap_keymap_internal): New fun.
21282 (Fmap_keymap): Remove left-out test from before make_save_value.
21283
21284 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
21285
21286 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
21287 Use XCAR/XCDR.
21288
21289 * process.h (struct Lisp_Process): Remove filter_multibyte.
21290 * process.c (QCfilter_multibyte): Remove.
21291 (setup_process_coding_systems): Don't use filter_multibyte.
21292 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
21293 (read_process_output): Don't adjust multibyteness to filter_multibyte.
21294 (Fset_process_filter_multibyte): Change the coding-system to
21295 approximate the previous behavior.
21296 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
21297 coding-system.
21298
21299 * coding.c (decode_coding_object): When not decoding into a buffer,
21300 obey the coding system's preference of (uni|multi)byte.
21301
213022008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
21303
21304 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
21305 every char is changed and has a different byte-length.
21306 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
21307 Fix int -> EMACS_INT.
21308
213092008-03-23 David Hansen <david.hansen@gmx.net>
21310
21311 * dbusbind.c (xd_read_message): Remove extra copying of message
21312 strings. Check for NULL `interface' or `member'.
21313
213142008-03-22 Eli Zaretskii <eliz@gnu.org>
21315
21316 * w32.c (readdir): If FindFirstFile/FindNextFile return in
21317 cFileName a file name that includes `?' characters, use the 8+3
21318 alias in cAlternateFileName instead.
21319
213202008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
21321
21322 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
21323
213242008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
21325
21326 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
21327 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
21328 work on current_buffer only instead (that was already the case
21329 for some of the code anyway).
21330 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
21331 (temp_set_point, temp_set_point_both): Use EMACS_INT.
21332 (SET_PT, SET_PT_BOTH): Adjust.
21333 * intervals.h (set_point, temp_set_point, set_point_both)
21334 (temp_set_point_both): Remove redundant declarations.
21335
213362008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
21337
21338 * fileio.c (Finsert_file_contents):
21339 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
21340 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
21341 when buffer != current_buffer anyway.
21342
213432008-03-20 Andreas Schwab <schwab@suse.de>
21344
21345 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
21346 as default.
21347
213482008-03-19 Jason Rumney <jasonr@gnu.org>
21349
21350 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
21351 (syms_of_w32fns): Initialize them.
21352 (HOURGLASS_ID): New constant.
21353 (x_window_to_frame): Don't check hourglass_window.
21354 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
21355 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
21356 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
21357 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
21358 Only change the cursor if hourglass is not active.
21359 (Fx_create_frame): Initialize frame's current_cursor.
21360 (hourglass_atimer): Remove.
21361 (hourglass_started): New function.
21362 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
21363 (show_hourglass): Adapt to w32, changing argument to frame.
21364
21365 * w32term.h (struct w32_output): Remove hourglass_window.
21366 Add current_cursor.
21367
21368 * eval.c (call_debugger, Fsignal):
21369 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
21370 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
21371 (Fexecute_extended_command, cancel_hourglass_unwind):
21372 * minibuf.c (read_minibuf):
21373 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
21374
213752008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
21376
21377 * window.c (run_funs): New fun.
21378 (run_window_configuration_change_hook): Use it to run the buffer-local
21379 and the global part of the hook.
21380
21381 * xdisp.c (format_mode_line_unwind_data): Add window argument.
21382 (unwind_format_mode_line): Restore selected window.
21383 (x_consider_frame_title, Fformat_mode_line): Set selected window.
21384
213852008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
21386
21387 * editfns.c (Fchar_equal): Check they are valid characters.
21388
21389 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
21390
213912008-03-17 Andreas Schwab <schwab@suse.de>
21392
21393 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
21394 against a charset.
21395
21396 * lisp.h (Fbuffer_list): Declare.
21397
213982008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 21399
aac0c6e3
MR
21400 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
21401 handlebox_widget is != 0.
21402
214032008-03-16 Juri Linkov <juri@jurta.org>
21404
21405 * callint.c (Fcall_interactively): For interactive code letters
21406 'b' and 'B' put the buffer list into the list of default "future"
21407 values of the minibuffer.
21408
214092008-03-16 Andreas Schwab <schwab@suse.de>
21410
21411 * keyboard.c (read_key_sequence): Fix downcasing of letters with
21412 modifiers.
21413
21414 * regex.c (re_match_2_internal): Correct matching of a charset
21415 against latin-1 characters.
21416
214172008-03-16 Kenichi Handa <handa@m17n.org>
21418
21419 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
21420 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
21421 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
21422 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
21423 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
21424 CHAR_STRING_ADVANCE.
21425 (produce_chars): Fix for the case that the source and the
21426 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
21427 instead of CHAR_STRING_ADVANCE.
21428 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
21429 STRING_CHAR_ADVANCE.
21430
214312008-03-15 Andreas Schwab <schwab@suse.de>
21432
21433 * regex.c (re_match_2_internal): Correct matching of eight bit
21434 characters in unibyte strings.
21435
214362008-03-15 Martin Rudalics <rudalics@gmx.at>
21437
21438 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
21439 at end of range when it coincides with the end of the buffer.
21440
214412008-03-14 Eli Zaretskii <eliz@gnu.org>
21442
21443 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
21444
21445 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
21446
214472008-03-14 Jason Rumney <jasonr@gnu.org>
21448
21449 * editfns.c (initial_tz): New variable.
21450 (syms_of_editfns): Initialize it.
21451 (Fset_time_zone_rule): Set it when first called.
21452 Use it when TZSTRING is nil.
21453
21454 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
21455 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
21456 (monitor_from_point_fn, get_monitor_info_fn): New globals.
21457 (globals_of_w32fns): Initialize them.
21458 (compute_tip_xy): Use them to position tooltips.
21459
214602008-03-14 Glenn Morris <rgm@gnu.org>
21461
21462 * emacs.c (main): Revert previous change.
21463 (standard_args): Revert -internal-script back to -scriptload,
21464 and remove the long-option form.
21465
214662008-03-13 Glenn Morris <rgm@gnu.org>
21467
21468 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
21469 Remove option -enable-font-backend.
21470
214712008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
21472
21473 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
21474
214752008-03-11 Jan Djärv <jan.h.d@swipnet.se>
21476
21477 * xterm.c (x_connection_closed): For GTK: If this is the last
21478 terminal just exit without closing the display.
21479
214802008-03-11 Jason Rumney <jasonr@gnu.org>
21481
21482 * w32font.c (w32font_full_name): Use floor to round.
21483
f0131492 214842008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
21485
21486 * sound.c (alsa_configure): Declare vol at beginning of block.
21487
21488 * fontset.c (Ffontset_info): Remove extra semicolon.
21489
214902008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
21491
21492 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
21493 size of resulting string.
21494
214952008-03-10 Jason Rumney <jasonr@gnu.org>
21496
21497 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
21498
214992008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21500
21501 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
21502 Don't pretend as if characters with display property haven't been
21503 consumed for string-replacing-string case.
21504
215052008-03-08 Kim F. Storm <storm@cua.dk>
21506
21507 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
21508 (get_next_display_element, next_element_from_string)
21509 (next_element_from_ellipsis, next_element_from_buffer): Use it.
21510
215112008-03-08 Andreas Schwab <schwab@suse.de>
21512
21513 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
21514
215152008-03-06 Jason Rumney <jasonr@gnu.org>
21516
21517 * w32font.c (w32_registry): Take font_type argument. Use ANSI
21518 when charset not specified. Only translate ANSI to unicode when
21519 font_type is truetype.
21520 (w32font_coverage_ok): New function.
21521 (add_font_entity_to_list): Use it to filter unsuitable fonts.
21522
215232008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
21524
21525 * lread.c (Fread_char): Resolve modifiers.
21526 (Fread_char_exclusive): Likewise.
21527
21528 * character.c (char_resolve_modifier_mask): New function.
21529 (char_string): Use char_resolve_modifier_mask.
21530 (Fchar_resolve_modifiers): New function.
21531 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
21532 function.
21533
215342008-03-04 Jason Rumney <jasonr@gnu.org>
21535
21536 * makefile.w32-in: Always include w32font.c in the build.
21537 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
21538
215392008-03-04 Andreas Schwab <schwab@suse.de>
21540
21541 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
21542 (versionclean): Likewise.
21543
215442008-03-04 Juanma Barranquero <lekktu@gmail.com>
21545
21546 * .cvsignore: Add oo.
21547
215482008-03-03 Andreas Schwab <schwab@suse.de>
21549
21550 * coding.c (decode_coding_object): Inhibit gap shrinking while
21551 decoding in place.
21552
215532008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
21554
21555 * w32term.c: Remove unused include "gnu.h".
21556 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
21557
21558 * gnu.h: Rename to ...
21559 * emacs-icon.h: ... this.
21560 * xterm.c: Use emacs-icon.h instead of gnu.h.
21561 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
21562
215632008-03-03 Juanma Barranquero <lekktu@gmail.com>
21564
21565 * w32font.c: Include math.h.
21566
215672008-03-03 Jason Rumney <jasonr@gnu.org>
21568
21569 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
21570 Compute options separately.
21571 (w32font_open_internal): Set glyph_idx before caching metrics.
21572
21573 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
21574 Define if system headers don't.
21575 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
21576 (w32font_encode_char): Don't declare here.
21577
21578 * w32font.c (Quniscribe, QCformat): New symbols.
21579 (syms_of_w32font): Define them.
21580 (w32font_has_char): Indicate uncertainty.
21581 (w32font_encode_char): Encode as glyph point. Make static.
21582 (recompute_cached_metrics): New function.
21583 (w32font_open_internal): Use it. Set font to use glyph points
21584 initially. Set format based on type of font.
21585 (w32font_text_extents, w32font_draw): Optionally use glyph points.
21586 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
21587 on it. Set format based on information available here.
21588 (add_font_entity_to_list): Identify backend based on opentype_only.
21589
215902008-03-02 Andreas Schwab <schwab@suse.de>
21591
21592 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
21593
21594 * coding.c (decode_coding_big5, produce_chars):
21595 Fix typos in last change.
21596
215972008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
21598
21599 * gnu.h: New icon.
21600
216012008-03-02 Kenichi Handa <handa@m17n.org>
21602
21603 * coding.c (decode_coding_utf_8): When eol-type of CODING is
21604 `dos', don't decode '\r' if that is the last in the source.
21605 (decode_coding_utf_16, decode_coding_emacs_mule)
21606 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
21607 (decode_coding_raw_text, decode_coding_charset): Likewise.
21608 (produce_chars): Don't decode EOL here. Use EMACS_INT.
21609
216102008-03-01 Jason Rumney <jasonr@gnu.org>
21611
21612 * w32font.c (w32font_full_name): Report point size for scalable fonts.
21613
216142008-03-01 Kim F. Storm <storm@cua.dk>
21615
21616 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
21617
216182008-03-01 Jason Rumney <jasonr@gnu.org>
21619
21620 * w32font.c (w32font_full_name): New function.
21621 (w32font_open_internal): Use it.
21622
216232008-03-01 Kim F. Storm <storm@cua.dk>
21624
21625 * dispnew.c (line_draw_cost): Fix invalid glyph check.
21626
216272008-03-01 Jason Rumney <jasonr@gnu.org>
21628
21629 * font.c (font_unparse_fcname): Increase len when style is a symbol.
21630
216312008-03-01 Jan Djärv <jan.h.d@swipnet.se>
21632
21633 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
21634 xg_frame_resized when the event is for the edit widget.
21635
ef1b0ba7 21636 * gtkutil.h (xg_frame_resized): Rename from xg_resize_widgets.
aac0c6e3
MR
21637
21638 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
21639 set_char_size.
ef1b0ba7 21640 (xg_frame_resized): Rename from xg_resize_widgets. Remove all
aac0c6e3
MR
21641 operations on widgets here. Just set frame size if needed.
21642 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
21643 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
21644 (x_wm_set_size_hint): Set size hints on the edit widget only, not
21645 the whole frame.
21646 (xg_create_tool_bar): Move attachment of the tool bar to
21647 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
21648 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
21649
216502008-03-01 Jason Rumney <jasonr@gnu.org>
21651
21652 * w32fns.c (w32_msg_pump): Disable debug code.
21653
216542008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21655
21656 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
21657
216582008-02-29 Chong Yidong <cyd@stupidchicken.com>
21659
21660 * xdisp.c (next_overlay_string): Don't set
21661 overlay_strings_at_end_processed_p if we're currently reading from
21662 a display string.
21663
216642008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
21665
21666 * xdisp.c (get_overlay_strings_1): Fix typo.
21667
216682008-02-29 Chong Yidong <cyd@stupidchicken.com>
21669
21670 * xdisp.c (get_overlay_strings_1): Add missing argument type.
21671
216722008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
21673
21674 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
21675
21676 * xdisp.c (display_mode_element): Cancel the previous change.
21677 (decode_mode_spec): Likewise.
21678 (handle_auto_composed_prop): Don't make composition if it->string
21679 is a string.
21680
216812008-02-27 Kim F. Storm <storm@cua.dk>
21682
21683 * lisp.h (GLYPH): Change type from int to struct with separate char
21684 and face_id members.
21685 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
21686 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
21687 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
21688 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
21689 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
21690 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
21691 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
21692 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
21693 handle new Lisp glyph code encoding, either an integer or a cons.
21694
21695 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
21696 (GLYPH_ALIAS): Delete.
21697 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
21698 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
21699 (GLYPH_FROM_CHAR): Replace macro by ...
21700 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
21701
21702 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
21703 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
21704 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
21705 (GLYPH_INVALID_P): New macro.
21706 (spec_glyph_lookup_face): Update prototype.
21707
21708 * dispnew.c (line_draw_cost): Adapt to new glyph type.
21709 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
21710 new glyph code encoding.
21711 (spec_glyph_lookup_face): No return value; update passed glyph instead.
21712 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
21713
21714 * xdisp.c (get_next_display_element, next_element_from_display_vector):
21715 Adapt to new glyph type and new glyph code encoding.
21716
21717 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
21718
21719 * indent.c (current_column, current_column_1, Fmove_to_column)
21720 (compute_motion): Adapt to new glyph code encoding.
21721
21722 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
21723
217242008-02-27 Chong Yidong <cyd@stupidchicken.com>
21725
21726 * process.c (wait_reading_process_output): Check for window
21727 changes caused by timers.
21728 Suggested by Johan Bockgård.
21729
217302008-02-27 Glenn Morris <rgm@gnu.org>
21731
21732 * emacs.c (USAGE1): Add `--disable-font-backend'.
21733
217342008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
21735
21736 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
21737 is made to the buffer.
21738
217392008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
21740
21741 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
21742 (face_at_string_position):
21743 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
21744 (face_at_string_position):
21745 * xdisp.c (display_string, next_overlay_change):
21746 * buffer.h (overlays_at):
21747 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
21748 Update callers.
21749
217502008-02-26 Chong Yidong <cyd@stupidchicken.com>
21751
21752 * editfns.c (Fformat): Doc fix.
21753
217542008-02-26 Juanma Barranquero <lekktu@gmail.com>
21755
21756 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
21757 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
21758 (Ffont_otf_alternates, Fquery_font): Doc fixes.
21759
217602008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
21761
21762 * buffer.c (Fbuffer_swap_text): New function.
21763 (syms_of_buffer): Defsubr it.
21764
217652008-02-25 Chong Yidong <cyd@stupidchicken.com>
21766
21767 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
21768
217692008-02-25 Jason Rumney <jasonr@gnu.org>
21770
21771 * w32font.c (w32font_draw): Draw one character at a time when padding.
21772
217732008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
21774
21775 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
21776 Handle a nil arg. Use run_window_configuration_change_hook.
21777 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
21778 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
21779 Use run_window_configuration_change_hook.
21780
217812008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
21782
21783 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
21784 1-pixel width.
21785
217862008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
21787
21788 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
21789 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
21790 if the glyph in the font is zero pixel with.
21791
21792 * dispextern.h (struct glyph_string): New member padding_p.
21793
21794 * w32font.c (w32font_draw): Pay attention to s->padding_p.
21795
21796 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
21797
21798 * xfont.c (xfont_draw): Pay attention to s->padding_p.
21799
21800 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
21801
21802 * font.c: If the font driver doesn't have `shape' function, return Qnil.
21803
218042008-02-25 Jason Rumney <jasonr@gnu.org>
21805
21806 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
21807
218082008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
21809
21810 Allow fine-grained image-cache flushing.
21811 * dispextern.h (struct image): Add `dependencies' field.
21812 (clear_image_caches): Change arg to Lisp_Object.
21813 * image.c (make_image): Initialize `dependencies' field.
21814 (clear_image_cache): Change arg to allow fine-grained flushing.
21815 Perform the flush even if image-cache-eviction-delay is nil.
21816 (clear_image_caches): Change arg to Lisp_Object.
21817 (Fclear_image_cache): Expand meaning of the argument.
21818 (mark_image): Mark `dependencies' field.
21819 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
21820 (lface_hash): Use XHASH rather than XFASTINT.
21821 (face_at_buffer_position): Fix int -> EMACS_INT position.
21822 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
21823 (select_frame_for_redisplay): Remove code duplication.
21824 (redisplay_internal): Adapt arg to call to clear_image_caches.
21825
218262008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
21827
21828 * s/vms4-0.h:
21829 * s/vms4-2.h:
21830 * s/vms4-4.h:
21831 * s/vms5-5.h: Remove, unused.
21832
21833 * s/irix5-2.h:
21834 * s/irix6-0.h:
21835 * s/riscos5.h:
21836 * s/mach-bsd4-3.h:
21837 * m/mips4.h: Remove files for obsolete systems.
21838
21839 * Makefile.in:
21840 * filelock.c:
21841 * unexmips.c:
21842 * m/hp9000s300.h:
21843 * m/iris4d.h:
21844 * s/aix3-1.h:
21845 * s/hpux.h:
21846 * s/msdos.h:
21847 * s/usg5-0.h:
21848 * s/usg5-2-2.h:
21849 * s/usg5-2.h:
21850 * s/usg5-3.h: Remove references to obsolete variables.
21851
21852 * s/irix5-0.h: Remove, move all the contents ...
21853 * s/irix6-5.h: ... here. Simplify.
21854 * config.in: Regenerate.
21855
218562008-02-24 Jason Rumney <jasonr@gnu.org>
21857
21858 * w32term.c (x_draw_glyph_string_background): Clear the background
21859 manually when cleartype is in use.
21860 (x_draw_glyph_string_foreground): Draw text transparently when
21861 cleartype is in use.
21862
21863 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
21864 a font into it unless we have to.
21865
218662008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
21867
21868 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
21869 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 21870
aac0c6e3
MR
218712008-02-18 Jason Rumney <jasonr@gnu.org>
21872
21873 * w32fns.c (Fw32_shell_execute): Encode parameters.
21874
218752008-02-09 Eli Zaretskii <eliz@gnu.org>
21876
21877 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
21878
218792008-02-05 Juanma Barranquero <lekktu@gmail.com>
21880
21881 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
21882
218832008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
21884
21885 * xterm.c (x_set_offset): Don't change the gravity if
21886 CHANGE_GRAVITY is -1.
21887
218882008-02-23 Chong Yidong <cyd@stupidchicken.com>
21889
21890 * fileio.c (auto_save_error_occurred): New var.
21891 (auto_save_error): Set it.
21892 (Fdo_auto_save): Don't overwrite the error message if an auto-save
21893 error occurred.
21894
218952008-02-23 Eli Zaretskii <eliz@gnu.org>
21896
21897 * w32.c (globals_of_w32): Add initializations for
21898 g_b_init_get_sid_sub_authority and
21899 g_b_init_get_sid_sub_authority_count.
21900
219012008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
21902
21903 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
21904 (font_parse_xlfd): Use them for sanity check.
21905 (Finternal_set_font_style_table): Make sure the table is bijective.
21906
21907 Consolidate the image_cache to the terminal struct.
21908 * termhooks.h (P_): Remove redundant def.
21909 (struct terminal): New field `image_cache'.
21910 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
21911 of FRAME_X_IMAGE_CACHE.
21912 * xterm.h (struct x_display_info): Remove image_cache field.
21913 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
21914 * w32term.h (struct w32_display_info): Remove image_cache field.
21915 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
21916 * macterm.h (struct mac_display_info): Remove image_cache field.
21917 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
21918 * xterm.c (x_term_init):
21919 * w32term.c (w32_term_init):
21920 * macterm.c (mac_term_init): Set the image_cache in the terminal.
21921 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
21922 Remove declarations.
21923 (clear_image_caches, mark_image_cache): New declarations.
21924 * xfaces.c (clear_face_cache):
21925 * xdisp.c (redisplay_internal): Use clear_image_caches.
21926 * image.c (clear_image_cache): Don't check that a frame is on
21927 a window-system before checking if it shares the same cache.
21928 (clear_image_caches): New function.
21929 (Fclear_image_cache): Use it.
21930 (mark_image): Move from allo.c.
21931 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
21932 * alloc.c (mark_image, mark_image_cache): Move to image.c.
21933 (mark_object): Don't call mark_image_cache for frames.
21934 (mark_terminals): Call mark_image_cache.
21935
21936 * lisp.h (Fdelete_terminal): Declare.
21937
21938 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
21939 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
21940 wrong_type_argument.
21941
219422008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
21943
21944 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
21945 malayalam.el, and tamil.el. Add sinhala.el.
21946
219472008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
21948
21949 * xterm.c (x_connection_closed): Consolidate identical tests.
21950 (x_delete_terminal): Don't crash if called via x_connection_closed.
21951
219522008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
21953
21954 * xdisp.c (decode_mode_spec): New arg string.
21955 (display_mode_element): Adjust for the above change.
21956
219572008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
21958
21959 * callint.c (Fcall_interactively): Use AREF.
21960
219612008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
21962
21963 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
21964
219652008-02-18 Jan Djärv <jan.h.d@swipnet.se>
21966
21967 * xfns.c (Fx_show_tip): Set string to " " if empty.
21968
219692008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
21970
21971 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
21972 with Qt.
21973
219742008-02-17 Kenichi Handa <handa@m17n.org>
21975
21976 * ftfont.c (ftfont_shape): Return Lispy number.
21977
21978 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
21979 for GCs.
21980 (Finternal_set_font_selection_order): Call font_update_sort_order
21981 only when enable_font_backend is set.
21982 (realize_x_face): Set face->font_info to that of default face only
21983 when enable_font_backend is set.
21984
21985 * xdisp.c (handle_composition_prop): Set it->c to the fist
21986 character of the composed region.
21987 (fill_composite_glyph_string): Set base_face->font_info to
21988 s->font_info. Get a face for ascii from base_face->ascii_face.
21989 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
21990 with a face already decided.
21991 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
21992 non-negative.
21993 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
21994 call font_prepare_composition unconditionally.
21995
21996 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
21997
21998 * xterm.h (struct x_display_info): New member font.
21999
22000 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
22001 (x_set_mouse_face_gc, x_new_font): Likewise.
22002 (x_term_init): Setup display_info->font.
22003 (x_delete_terminal): Free display_info->font.
22004
22005 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
22006
22007 * ftxfont.c (ftxfont_default_fid): Delete it.
22008 (ftxfont_open): Set xfont->fid to 0.
22009 (ftxfont_end_for_frame): Clear data specific to the frame and the
22010 font-driver.
22011
22012 * xftfont.c (xftfont_default_fid): Delete it.
22013 (xftfont_open): Set xfont->fid to 0.
22014
22015 * fontset.c (FONTSET_OBJLIST): New macro.
22016 (fontset_find_font): Update font-object list of the fontset.
22017 (free_realized_fontset): New function.
22018 (free_face_fontset): Call free_realized_fontset.
22019 (Ffont_info): Call font_close_object only when enable_font_backend
22020 is set.
22021
22022 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
22023 [HAVE_NTGUI]: Include w32term.h.
22024 [MAC_OS]: Include macterm.ch.
22025 (font_otf_ValueRecord): Use make_number.
22026 (font_finish_cache): Fix handling of reference count.
22027 (font_clear_cache): Update num_fonts.
22028 (font_open_entity): Update smallest_char_width and
22029 smallest_font_height of the frame.
22030 (font_close_object): Update num_fonts.
22031 (Fclear_font_cache): Fix finding the target cache data.
22032
220332008-02-16 Glenn Morris <rgm@gnu.org>
22034
22035 * fontset.c (Finternal_char_font): Fix compilation warning.
22036
220372008-02-16 Eli Zaretskii <eliz@gnu.org>
22038
22039 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
22040 instead of char arrays. Enlarge the size of array passed to
22041 get_token_information.
22042
22043 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
22044 warnings.
22045
220462008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
22047
22048 * .gdbinit: Don't set `args', it breaks gdb --args.
22049
220502008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
22051
22052 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
22053 within a narrowed buffer.
22054
220552008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
22056
22057 * coding.c (decode_coding_object, encode_coding_object):
22058 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
22059
220602008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
22061
22062 * coding.c (coding_set_destination): Use BEG_BYTE rather than
22063 hardcoding 1.
22064 (detect_coding_system):
22065 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
22066 (string_char_to_byte, string_byte_to_char, insert_from_gap):
22067 * insdel.c (insert_from_gap):
22068 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
22069 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
22070 (string_to_multibyte):
22071 * character.c (chars_in_text, multibyte_chars_in_text):
22072 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
22073
22074 * character.h (FETCH_STRING_CHAR_ADVANCE)
22075 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
22076 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
22077 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
22078
22079 * casefiddle.c (casify_region): Only call after-change and composition
22080 functions on the part of the region that was changed.
22081
22082 * keyboard.c (read_avail_input):
22083 * frame.c (Fdelete_frame): Call Fdelete_terminal.
22084
220852008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
22086
22087 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
22088 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
22089
220902008-02-11 Juanma Barranquero <lekktu@gmail.com>
22091
22092 * w32menu.c (push_submenu_start, push_submenu_end)
22093 (push_left_right_boundary, push_menu_pane, push_menu_item):
22094 * keyboard.c (read_key_sequence): Don't pass args with side effects
22095 to AREF, it fails when compiling with -DENABLE_CHECKING.
22096
220972008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
22098
22099 * Makefile.in (${lispsource}international/charprop.el):
22100 Delete this target.
22101
22102 * search.c (boyer_moore): Fix incorrect synching of the trunk and
22103 emacs-unicode-2.
22104
221052008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
22106
22107 * terminal.c (Fdelete_terminal): Clean up the `force' path.
22108
221092008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
22110
22111 * frame.c (Qnoelisp): New symbol.
22112 (syms_of_frame): Initialize it.
22113 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
22114 harmless Elisp code, from a strong `force' from x_connection_closed.
22115 * frame.h (Qnoelisp): Declare.
22116 * xterm.c (x_connection_closed): Pass `noelisp'.
22117
22118 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
22119 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
22120 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
22121 rather than `int' for the type of `type'.
22122
221232008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
22124
22125 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
22126
22127 * Makefile.in (GNUC): Remove support for gcc-1.x.
22128
221292008-02-10 Richard Stallman <rms@gnu.org>
22130
22131 * lisp.h (ASET): Use AREF, not ASLOT.
22132
221332008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
22134
22135 * lisp.h (ASET): Check bounds.
22136
221372008-02-10 Glenn Morris <rgm@gnu.org>
22138
22139 * buffer.c (mode-name): Doc fix.
22140
221412008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
22142
22143 * Makefile.in:
22144 * emacs.c:
22145 * gmalloc.c:
22146 * keyboard.c:
22147 * lisp.h:
22148 * m/ibm370aix.h:
22149 * process.c:
22150 * regex.c:
22151 * s/hpux.h:
22152 * sysdep.c:
22153 * sysselect.h:
22154 * systty.h:
22155 * unexec.c:
22156 * w32term.c:
22157 * xsmfns.c:
22158 * xterm.c: Remove code that deals with obsolete variables.
22159
22160 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
22161
22162 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
22163 nothing else needs it anymore.
22164
221652008-02-09 Eli Zaretskii <eliz@gnu.org>
22166
22167 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
22168 instead of unibyte_char_to_multibyte.
22169
221702008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
22171
22172 * s/gnu-linux.h: Remove commented out code.
22173
22174 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
22175
22176 * Makefile.in: Update what RMS says about using autoconf.
22177 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
22178 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
22179 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
22180 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
22181
221822008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
22183
22184 * keymap.c (Fkey_description): Move side effect outside of macro call.
22185
22186 * xfaces.c (Finternal_make_lisp_face):
22187 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
22188
22189 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
22190 (syms_of_fontset): Use ASET.
22191
22192 * fns.c (concat): Move side effect outside of macro call.
22193 (hash_clear): Use ASET.
22194
221952008-02-08 Richard Stallman <rms@gnu.org>
22196
22197 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
22198 If FORCE, and frame has a surrogate minibuffer for another frame,
22199 delete the other frame first.
22200
222012008-02-07 Timo Savola <timo.savola@iki.fi>
22202
22203 * xterm.c (x_detect_focus_change): Handle embed client message.
22204 (handle_one_xevent): Ditto.
22205 (handle_one_xevent): If embedded and we get a button press/release,
22206 request focus.
22207 (xembed_set_info, xembed_send_message): New functions.
22208 (x_make_frame_visible): Call xembed_set_info if embedded.
22209 (x_make_frame_invisible): Call xembed_set_info if embedded.
22210 (x_term_init): Initialize Xatom_XEMBED.
22211 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
22212 (x_iconify_frame): Ditto.
22213
22214 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
22215 (enum xembed_info, enum xembed_message, enum xembed_focus)
22216 (enum xembed_modifier, enum xembed_accelerator): New.
22217 (xembed_set_info, xembed_send_message): Declare.
22218 (FRAME_X_EMBEDDED_P): New.
22219
22220 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
22221 gtk_plug_new.
22222
22223 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
22224 window ID of a frame.
22225 (x_window): Reparent frame if embedded.
22226 (Fx_create_frame): Don't set border width if embedded.
22227
22228 * emacs.c (USAGE3): Add --parent-id.
22229 (standard_args): Ditto.
22230
222312008-02-07 Jan Djärv <jan.h.d@swipnet.se>
22232
22233 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
22234
222352008-02-07 Jim Meyering <meyering@redhat.com>
22236
22237 Use "do...while (0)", not "if (1)...else" in macro definitions.
22238 The latter provokes a warning from gcc about the empty else, when
22239 followed by ";". Also, without that trailing semicolon, it would
22240 silently swallow up any following statement.
22241 * syntax.h (SETUP_SYNTAX_TABLE)
22242 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
22243 * buffer.h (DECODE_POSITION): Likewise.
22244 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
22245 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
22246 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
22247 (FETCH_CHAR_ADVANCE): Likewise.
22248 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
22249
222502008-02-07 Jim Meyering <meyering@redhat.com>
22251
22252 * lread.c [lint]: Don't include <sys/inode.h>.
22253
222542008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
22255
22256 * xselect.c (x_handle_dnd_message):
22257 * xmenu.c (digest_single_submenu, xmenu_show):
22258 * xdisp.c (with_echo_area_buffer_unwind_data)
22259 (format_mode_line_unwind_data, unwind_format_mode_line)
22260 (display_menu_bar):
22261 * eval.c (Ffetch_bytecode):
22262 * doc.c (store_function_docstring):
22263 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
22264 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
22265 * buffer.c (add_overlay_mod_hooklist): Use ASET.
22266
222672008-02-07 Kenichi Handa <handa@m17n.org>
22268
22269 * ftxfont.c (ftxfont_open): Don't set
22270 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
22271
22272 * ftfont.c (ftfont_open): Fix previous change.
22273
222742008-02-06 Jason Rumney <jasonr@gnu.org>
22275
22276 * w32font.c (w32font_text_extents): Fill in lbearing metric.
22277 Use cached metrics for ASCII characters.
22278 (w32font_open_internal): Don't set font's owning_frame.
22279 Cache metrics for ASCII characters.
22280
22281 * w32font.h (struct w32font_info): Add ascii_metrics.
22282 Remove owning_frame.
22283
222842008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
22285
22286 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
22287 to negative value.
22288
22289 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
22290
22291 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
22292
22293 * charset.c (syms_of_charset): Set QCtest and Qeq.
22294
222952008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
22296
22297 * process.c (Fstart_process):
22298 * callproc.c (Fcall_process): Handle the case where
22299 Funhandled_file_name_directory returns nil.
22300
22301 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
22302 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
22303 * font.c (check_gstring): Use them and AREF to access the vector before
22304 we know it's really a gstring.
22305 (Ffont_shape_text): Fix typo.
46e722a9 22306 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
22307
22308 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
22309 Declare.
22310
22311 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
22312
223132008-02-05 Jason Rumney <jasonr@gnu.org>
22314
22315 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
22316 Set smallest_font_height and smallest_char_width in display info.
22317
223182008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
22319
22320 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
22321
223222008-02-05 Miles Bader <miles@gnu.org>
22323
22324 * xfaces.c (get_lface_attributes, merge_named_face)
22325 (lookup_named_face, lookup_derived_face, realize_named_face):
22326 Revert 2008-02-01 change by cyd@stupidchicken.com.
22327
223282008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
22329
22330 * fontset.c (Ffontset_info): Handle the case of inhibitting the
22331 fallback fonts.
22332 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
22333
223342008-02-04 Jason Rumney <jasonr@gnu.org>
22335
22336 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
22337 set full_name.
22338 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
22339
223402008-02-03 Jason Rumney <jasonr@gnu.org>
22341
22342 * makefile.w32-in (OBJ1): Include font.o here.
22343 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
22344
223452008-02-02 Jason Rumney <jasonr@gnu.org>
22346
22347 * makefile.w32-in (temacs): Bump EMHEAP to 21.
22348
223492008-02-01 Jason Rumney <jasonr@gnu.org>
22350
22351 * s/cygwin.h: Define VIRT_ADDR_VARIES.
22352
22353 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
22354
223552008-02-01 Andreas Schwab <schwab@suse.de>
22356
22357 * Makefile.in (shortlisp, lisp): Update for rename of
22358 ../lisp/language/myanmar.el.
22359
223602008-02-01 Chong Yidong <cyd@stupidchicken.com>
22361
22362 * xfaces.c (get_lface_attributes): Delete function.
22363 (merge_named_face, lookup_named_face, lookup_derived_face)
22364 (realize_named_face): Call lface_from_face_name directly, and use
22365 the fact that merge_face_vectors does not alter its FROM argument.
22366
223672008-02-01 Jason Rumney <jasonr@gnu.org>
22368
22369 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
22370 input in the default locale. Handle non-Unicode multibyte input.
22371
223722008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22373
22374 * fontset.c (reorder_font_vector): Exclude nil elements from the
22375 font group. Don't try multiple fonts.
22376 (fontset_font): Adjust for the above change.
22377 (Finternal_char_font): Return nil if the found font doesn't
22378 contain the character ch.
22379
22380 * Makefile.in (lisp, shortlisp): Add cham.el.
22381
223822008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22383
22384 * font.h (FONTP): Make it return 1 also for a font-object.
22385
22386 * .gdbinit (xfontset): New function.
22387
22388 * font.c (font_find_for_lface): Check if the character C is
22389 supported or not only for the first font.
22390
22391 * fontset.c (reorder_font_vector): Fix typo.
22392 (fontset_find_font): Don't add a font-spec specifying a script.
22393 Use 0 (not Qt) for the indication of empty font-group. Change the
22394 format of RFONT-DEF. Return Qt if no font in the font-group
22395 support the character.
22396 (fontset_font): Adjust for the above change. If no font was
22397 found the character, remember that.
22398 (face_for_char): Adjust for the change of RFONT-DEF.
22399 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
22400 no font for the target.
22401 (Finternal_char_font): Adjust for the change of RFONT-DEF.
22402
224032008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22404
22405 * font.c (font_load_for_face): Handle the case that the font in
22406 face->lface is a string.
22407
224082008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22409
22410 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
22411
224122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22413
22414 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
22415 Fix previous change. If the frame is not on a window system,
22416 signal an error.
22417
224182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22419
bba3e508
SM
22420 * coding.c (decode_coding_object, encode_coding_object):
22421 Adjust marker positions after conversion.
aac0c6e3
MR
22422
22423 * lisp.h (struct Lisp_Marker): New member need_adjustment.
22424
224252008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22426
22427 * font.c (font_find_for_lface): Fix the handling of the return
22428 value of font_has_char.
22429 (Ffont_shape_text): Fix previous change.
22430
22431 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
22432 (fontset_ref_and_range): Delete it.
22433 (fontset_find_font): Call char_table_ref_and_range instead of
22434 FONTSET_REF_AND_RANGE.
22435 (make_fontset): Don't setup font groups of Latin here.
22436 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
22437 (new_fontset_from_font): Make the specified font the default for
22438 all Latin characters.
22439
224402008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22441
22442 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
22443 is on a window system before accessing the fontset of the frame.
22444
224452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22446
22447 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
22448
22449 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
22450 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
22451
22452 * font.c (Ffont_shape_text): If the font driver doesn't have a
22453 shaper function, make zero-width glyphs to have at least one-pixel
22454 width. Fix setting of `to' field of glyphs.
22455
224562008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22457
22458 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
22459 glyphs.
22460
22461 * font.h (struct font_driver): Improve docstring of member `shape'.
22462
224632008-02-01 Kenichi Handa <handa@m17n.org>
22464
22465 * composite.c (syms_of_composite): Fix docstring of
22466 auto-composition-function.
22467
22468 * font.h (LGLYPH_SIZE): New macro.
22469
22470 * font.c (Ffont_fill_gstring): Stop filling when a character not
22471 supported by the font is found.
22472 (Ffont_shape_text): When a shape callback function returns nil,
22473 try at most two more times with larger gstring.
22474 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
22475
22476 * xdisp.c (handle_auto_composed_prop): Change the argument to
22477 auto-composition-function.
22478
22479 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
22480 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
22481 Lispy glyph and store it in the lgstring.
22482
22483 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
22484
22485 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
22486
224872008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22488
22489 * font.c (Ffont_shape_text): Avoid unnecessary composition.
22490
22491 * fontset.c (Vfont_encoding_charset_alist): New variable.
22492 (syms_of_fontset): DEFVAR it.
22493 (reorder_font_vector, fontset_find_font): Optimize for the case of
22494 no need of reordering.
22495 (face_for_char): Map the charset property by
22496 Vfont_encoding_charset_alist.
22497
224982008-02-01 Jason Rumney <jasonr@gnu.org>
22499
22500 * w32font.c (logfonts_match): Don't check adstyle here.
22501 (font_matches_spec): Check here against physical font instead.
22502 (add_font_entity_to_list): Avoid some substitutions.
22503
22504 * font.c (font_parse_fcname): Default weight and slant to normal.
22505 (font_score): Prefer normal fonts if weight or slant unspecified.
22506 (font_score) [WINDOWSNT]: Scale weight difference down to closer
22507 match freetype scores.
22508
225092008-02-01 Jason Rumney <jasonr@gnu.org>
22510
22511 * w32font.c (w32font_text_extents): Don't use the frame stored in the
22512 font, as it may have been deleted.
22513 (w32_enumfont_pattern_entity): Map generic family to adstyle using
22514 most common hyphenless variation.
22515 (logfonts_match): Check generic family.
22516 (font_matches_spec): Don't check generic family here.
22517 (fill_in_logfont): Set generic family based on adstyle.
22518
22519 * w32font.h (w32font_get_cache): Update declaration.
22520
225212008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22522
22523 * ftfont.c (ftfont_get_cache): Adjust the argument type.
22524
22525 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
22526 If none of the new drivers are available, call font_update_drivers
22527 with the old drivers.
22528
22529 * w32font.c (w32font_get_cache): Adjust the argument type.
22530
22531 * xfont.c (xfont_get_cache): Adjust the argument type.
22532
22533 * font.h (struct font_driver): Change argument type of get_cache.
22534
22535 * xftfont.c (xftfont_start_for_frame): Delete prototype.
22536
22537 * font.c (Ffont_get): Fix arguments to Fassoc.
22538 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
22539 (font_clear_cache): New function.
22540 (font_list_entities, font_matching_entity): Use font_get_cache.
22541 (font_update_drivers): Call font_clear_cache when finishing a driver.
22542
22543 * fontset.c (fontset_find_font): Fix previous change.
22544
225452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22546
22547 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
22548 dpyinfo->font_table.
22549 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
22550 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
22551
22552 * font.c (font_at): Handle the case that the arg C is negative.
22553 Handle the unibyte case.
22554 (Ffont_at): Call font_at with the arg C -1.
22555
22556 * xdisp.c (handle_auto_composed_prop): Don't get a character at
22557 the position here, and call font_at with the arg C -1.
22558 Don't check the range of the existing composition at the point.
22559
225602008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22561
22562 * fontset.c (fontset_add): New args charset_id and family.
22563 Change caller.
22564 (load_font_get_repertory, fontset_find_font): Assume that
22565 font_spec is always a font-spec object.
22566 (Fset_fontset_font): Always store a font-spec object in a fontset.
22567
22568 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
22569 instead of get_property_and_range.
22570
225712008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22572
22573 * xftfont.c (struct xftfont_info): Delete the member ft_face.
22574 (xftfont_open): Don't keep locking face.
22575 (xftfont_close): Don't unlock face.
22576 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
22577
22578 * fontset.c (fontset_find_font): Don't prefer a font of
22579 supplementary charset.
22580
225812008-02-01 Kenichi Handa <handa@m17n.org>
22582
22583 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
22584 script, langsys_tag to langsys, new member script.
22585 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 22586 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
22587 listing to the script specified in that property. Fix arg to
22588 OTF_check_features.
22589
225902008-02-01 Jason Rumney <jasonr@gnu.org>
22591
22592 * w32font.h: New file.
22593
22594 * w32font.c: Include it.
22595 (struct w32font_info): Add owning_frame field. Move to w32font.h.
22596 (w32font_open): Set owning_frame.
22597 (w32font_text_extents): Use owning_frame.
22598 (struct font_callback_data): Add opentype_only field.
22599 (add_font_entity_to_list): Use it to filter fonts.
22600 Don't check against full name.
22601 (w32font_list_internal): New function.
22602 (w32font_list): Use it.
22603 (w32font_match_internal): New function.
22604 (w32font_match): Use it.
22605 (w32font_open_internal): New function.
22606 (w32font_open): Use it.
22607 (w32font_get_cache, w32font_close, w32font_has_char)
22608 (w32font_encode_char, w32font_text_extents, w32font_draw):
22609 Make non-static.
22610
22611 * makefile.w32-in (w32font.o): Depend on w32font.h.
22612
226132008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22614
22615 * charset.c (Fdefine_charset_internal): Record a supplementary
22616 charset at the tail of Vcharset_order_list.
22617
22618 * font.c (Ffont_shape_text): Fix the return value.
22619
22620 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
22621
22622 * xdisp.c (handle_auto_composed_prop): Fix previous change.
22623
226242008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22625
22626 * ftfont.c (struct OpenTypeSpec): New struct.
22627 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
22628 (ftfont_get_open_type_spec): New function.
22629 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
22630
22631 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
22632
226332008-02-01 Jason Rumney <jasonr@gnu.org>
22634
22635 * w32font.c (add_font_entity_to_list): Compare only the beginning
22636 of full name.
22637
226382008-02-01 Kenichi Handa <handa@m17n.org>
22639
22640 * xdisp.c (handle_auto_composed_prop): Simplify the code.
22641 Never return HANDLED_RECOMPUTE_PROPS.
22642
226432008-02-01 Kenichi Handa <handa@m17n.org>
22644
22645 * font.c (font_gstring_produce): Delete it.
22646
22647 * composite.h (COMPOSITION_METHOD):
22648 Handle COMPOSITION_WITH_GLYPH_STRING.
22649
226502008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22651
22652 * xfont.c (Qx): Delete.
22653 (syms_of_xfont): Don't initialize Qx.
22654
22655 * composite.h (enum composition_method):
22656 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
22657
226582008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22659
22660 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
22661 (choose_face_font): Accept new form of font-spec.
22662
22663 * frame.h (font_driver_list): Declare it unconditionally.
22664 (struct frame): Define members font_driver_list and font_data_list
22665 unconditionally.
22666
22667 * fontset.c: Include "font.h" unconditionally.
22668 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
22669 (Fset_fontset_font): Accept a font-spec object.
22670
22671 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
22672 PIXEL_SIZE part a wild card.
22673
22674 * dispextern.h (struct glyph_string): Define members clip and
22675 num_clips unconditionally.
22676 (struct face): Define members font_info and extra unconditionally.
22677
22678 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
22679 ftfont_info only when HAVE_LIBOTF is defined.
22680
226812008-02-01 Andreas Schwab <schwab@suse.de>
22682
22683 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
22684 and end.
22685
226862008-02-01 Jason Rumney <jasonr@gnu.org>
22687
22688 * w32font.c (w32font_driver): Add new fields.
22689
226902008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22691
22692 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
22693 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
22694 (LIBES): Add @M17N_FLT_CFLAGS@.
22695
22696 * composite.c (compose_text): Don't treat the new style
22697 composition specially.
22698
22699 * emacs.c (main): Call syms_of_font unconditionally.
22700
22701 * font.h (FONT_ENTITY_NOT_LOADABLE)
22702 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
22703 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
22704 (struct font_driver): New member shape.
22705 (font_registry_charsets): Extern it.
22706 (font_find_for_lface, font_prepare_composition): Adjust prototype.
22707 (font_otf_capability, font_drive_otf): Delete their externs.
22708
22709 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
22710 (font_charset_alist, font_registry_charsets): Move from xfont.c
22711 and rename.
22712 (font_prop_validate_otf): New function.
22713 (font_property_table): Register it for QCotf.
22714 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
22715 (font_drive_otf): Delete.
22716 (font_prepare_composition): New arg F. Adjust for the change of
22717 lispy gstring.
22718 (font_find_for_lface): New arg C.
22719 (font_load_for_face): Adjust for the change of font_find_for_lface.
22720 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
22721 lispy gstring.
22722 (Ffont_shape_text): New function.
22723 (Fopen_font): If the font size is not given, use 12-pixel.
22724 (Ffont_at): New arg STRING.
40b1a3a9 22725 (syms_of_font): Initialize font_charset_alist.
aac0c6e3
MR
22726 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
22727 conditionally.
22728
22729 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
22730 fonts of the same font-spec. Change the format of RFONT-DEF.
22731 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
22732 Adjust for the change of RFONT-DEF.
22733 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
22734
22735 * ftfont.h: New file.
22736
22737 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
22738 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
22739 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
22740 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
22741 font_otf_capability and font_drive_otf, set ftfont_shape.
22742 (ftfont_list): Adjust for the change of :otf property value.
22743 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
22744 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
22745 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
22746 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
22747 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
22748 (otf_gstring, gstring, m17n_flt_initialized): New variables.
22749
22750 * w32term.c (x_draw_composite_glyph_string_foreground):
22751 Adjust for the change of lispy gstring.
22752
22753 * xdisp.c (handle_composition_prop): Adjust for the change of
22754 lispy gstring. Call a function for auto-composition with the
22755 third arg it->window.
22756 (fill_composite_glyph_string): Adjust for the change of lispy string.
22757 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
22758
22759 * xfaces.c (set_font_frame_param): Adjust for the change of
22760 font_find_for_lface.
22761
22762 * xfont.c (x_font_charset_alist): Move to font.c and rename.
22763 (xfont_registry_charsets): Likewise. Change caller.
22764 (syms_of_xfont): Don't handle x_font_charset_alist.
22765
22766 * xftfont.c: Include "ftfont.h".
22767 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
22768 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
22769 (xftfont_close) [HAVE_LIBOTF]: Close otf.
22770 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
22771 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
22772 Set xftfont_driver.shape to xftfont_shape.
22773
22774 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
22775 the change of lispy gstring.
22776
227772008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22778
22779 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
22780
227812008-02-01 Jason Rumney <jasonr@gnu.org>
22782
22783 * w32font.c (w32font_draw): Fill background manually.
22784
227852008-02-01 Jason Rumney <jasonr@gnu.org>
22786
22787 * font.c (Qfontp): Remove unused symbol.
22788 (QCantialias): New symbol.
22789 (syms_of_font): Define it.
22790 (font_property_table): Set a validator for QCantialias.
22791
22792 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
22793 Define if not already.
22794 (QCfamily): Share with xfaces.c.
22795 (Qstandard, Qsubpixel, Qnatural): New symbols.
22796 (syms_of_w32font): Define them. Don't define QCfamily here.
22797 (w32_antialias_type, lispy_antialias_type): New functions.
22798 (w32_enumfont_pattern_entity): New arg requested_font.
22799 Set antialias parameter if non-default was requested.
22800 (fill_in_logfont): Fill in lfQuality if :antialias specified.
22801
228022008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22803
22804 * lread.c (read1): Undo the previous change.
22805
228062008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
22807
22808 * frame.c (Fdelete_frame): Call font_update_drivers only when
22809 USE_FONT_BACKEND is defined.
22810
228112008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22812
22813 * font.h (struct font_bitmap): New member bits_per_pixel.
22814 (struct font_driver): New members start_for_frame and end_for_frame.
22815 (struct font_data_list): New struct.
22816 (font_put_frame_data, font_get_frame_data): Extern them.
22817
22818 * frame.h (struct frame): New member font_data_list.
22819
22820 * font.c (font_update_drivers): Call driver->start_for_frame and
22821 driver->end_for_frame at proper timings.
22822 (font_put_frame_data, font_get_frame_data): New functions.
22823 (Ffont_spec): Add usage in the docstring.
22824
22825 * frame.c (make_frame): Initialize f->font_data_list to NULL.
22826 (Fdelete_frame): Call font_update_drivers.
22827
22828 * xftfont.c (struct xftface_info): Delete the member xft_draw.
22829 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
22830 (xftfont_get_xft_draw): New function.
22831 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
22832 (xftfont_end_for_frame): New function.
22833 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
22834
22835 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
22836 Change argument. Cache GCs in the per-frame data.
22837 (struct ftxfont_frame_data): New struct.
22838 (ftxfont_draw_bitmap): New arg gc_fore and flush.
22839 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
22840 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
22841 (ftxfont_end_for_frame): New function.
22842 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
22843
22844 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
22845
228462008-02-01 Kenichi Handa <handa@m17n.org>
22847
22848 * xselect.c (Vselection_coding_system)
22849 (Vnext_selection_coding_system): Delete them.
22850 (syms_of_xselect): Don't declare selection-coding-system and
22851 next-selection-coding-system. They are declared in select.el.
22852
228532008-02-01 Jason Rumney <jasonr@gnu.org>
22854
22855 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
22856
22857 * w32fns.c: Include imm.h.
22858 (get_composition_string_fn, get_ime_context_fn): New optional
22859 system functions.
22860 (globals_of_w32fns): Load them from imm32.dll.
22861 (ignore_ime_char): New flag.
22862 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
22863 WM_IME_ENDCOMPOSITION messages.
22864
22865 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
22866 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
22867
228682008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22869
22870 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
22871 (READCHAR_REPORT_MULTIBYTE): New macro.
22872 (readchar): New 2nd arg MULTIBYTE.
22873 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
22874 Make symbol's name multibyte according to the multibyteness of the
22875 source.
22876
228772008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22878
22879 * xfaces.c (face_for_overlay_string): Call lookup_face with
22880 correct arguments (fix of synching with the trunk).
22881
228822008-02-01 Kenichi Handa <handa@m17n.org>
22883
22884 * font.c (font_prop_validate_symbol, font_prop_validate_style)
22885 (font_prop_validate_non_neg, font_prop_validate_spacing):
22886 Delete argument prop_index.
22887 (font_property_table): Change arguments to validater. Change Callers.
22888 (font_lispy_object): Delete.
22889 (font_at): Use font_find_object instead fo font_lispy_object.
22890
228912008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22892
22893 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
22894 and file names.
22895
228962008-02-01 Jason Rumney <jasonr@gnu.org>
22897
22898 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
22899 (font_matches_spec): Remove debug output.
22900 (add_font_entity_to_list): Avoid using substituted fonts.
22901
229022008-02-01 Jason Rumney <jasonr@gnu.org>
22903
22904 * doc.c (Fsnarf_documentation):
22905 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
22906
229072008-02-01 Miles Bader <miles@gnu.org>
22908
22909 * dispextern.h (struct glyph_row): Only define "clip" field if
22910 HAVE_WINDOW_SYSTEM is defined.
22911
229122008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
22913
22914 Fix up multi-tty merge.
22915
22916 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
22917 and indentation.
22918
22919 * xfaces.c (free_realized_face, clear_face_gcs):
22920 Include font_done_for_face in the input_blocked section, just in case.
22921
22922 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
22923 (get_char_face_and_encoding): Undo last change and remove the *other*
22924 duplicate definition (i.e. keep the one that's better scoped and that
22925 includes code for the font-backend).
22926
22927 * terminal.c (create_terminal): Default keyboard_coding to
22928 `no-conversion' and terminal_coding to `undecided'.
22929
22930 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
22931
22932 * fontset.c (free_realized_fontsets): Check that the table entry does
22933 contain a fontset before trying to compare it to `base'.
22934
22935 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
22936 syms_of_charset, and syms_of_coding earlier because init_window_once
22937 now needs Vcoding_system_hash_table to be setup.
22938
22939 * coding.h (default_buffer_file_coding): Remove.
22940
22941 * coding.c (default_buffer_file_coding): Remove.
22942 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
22943 than ->symbol, and use the terminal-local coding system.
22944 (syms_of_coding): Don't setup the coding-systems that are not
22945 terminal-local.
22946 (Fdefine_coding_system_internal): Use XCAR/XCDR.
22947
22948 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
22949 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
22950
22951 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
22952 in chartab.c and were re-added here by mistake.
22953 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
22954
22955 * doc.c (Fsnarf_documentation):
22956 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
22957 src to etc.
22958
22959 * ChangeLog.10: Add mistakenly removed entry.
22960
229612008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
22962
22963 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
22964
229652008-02-01 Miles Bader <miles@gnu.org>
22966
22967 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
22968 Add extra args to FACE_FOR_CHAR.
22969
229702008-02-01 Kenichi Handa <handa@m17n.org>
22971
22972 * keymap.c (where_is_internal_1): If key is a cons, store the copy
22973 in sequence.
22974
22975 * chartab.c (map_sub_char_table, map_char_table): If the range
22976 contains just one character, call the function with that character
22977 even if the depth is not 3.
22978
229792008-02-01 Jason Rumney <jasonr@gnu.org>
22980
22981 * w32font.c (w32font_text_extents): Calculate metrics for the
22982 whole string.
22983
229842008-02-01 Jason Rumney <jasonr@gnu.org>
22985
22986 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
22987
229882008-02-01 Jason Rumney <jasonr@gnu.org>
22989
bba3e508
SM
22990 * w32term.c (x_set_glyph_string_clipping):
22991 Use get_glyph_string_clip_rects.
aac0c6e3
MR
22992 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
22993 Adjust for the change of struct glyph_string.
22994
22995 * w32font.c (w32font_draw): Do clipping here.
22996
229972008-02-01 Kenichi Handa <handa@m17n.org>
22998
22999 * xftfont.c (xftfont_draw): Adjust for the change of struct
23000 glyph_string.
23001
bba3e508
SM
23002 * xterm.c (x_set_glyph_string_clipping):
23003 Use get_glyph_string_clip_rects.
aac0c6e3
MR
23004 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
23005 Adjust for the change of struct glyph_string.
23006
23007 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
23008 the resulting clip(s}.
23009 (expose_overlaps): Add arg r. Change callers. Set it to
23010 row->clip temporarily.
23011 (expose_window): Redraw rows overlapping the exposed area.
23012
23013 * dispextern.h (struct glyph_row): New member clip.
23014 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
23015 clip_height, new member clip, and num_clips.
23016
230172008-02-01 Kenichi Handa <handa@m17n.org>
23018
23019 * data.c (Fchar_or_string_p): Fix docstring.
23020
230212008-02-01 Kenichi Handa <handa@m17n.org>
23022
23023 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
23024 create a temporary XftDraw object.
23025
230262008-02-01 Kenichi Handa <handa@m17n.org>
23027
23028 * font.c (Ffontp): Fix docstring.
23029
23030 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
23031 strong evidence of ISO-2022.
23032
230332008-02-01 Kenichi Handa <handa@m17n.org>
23034
23035 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
23036 SYNTAX_ENTRY_FOLLOW_PARENT.
23037
230382008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
23039
23040 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
23041 its type.
23042 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
23043 Update to the new type of weak_hash_tables and next_weak.
23044
23045 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
23046 a plain C pointer to Lisp_Hash_Table.
23047
23048 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
23049 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
23050 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
23051 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
23052 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
23053 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
23054 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
23055 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
23056 (GC_EQ): Remove since they've been identical to their non-GC_
23057 alter-egos ever since the markbit was eradicated.
23058
23059 * alloc.c:
23060 * buffer.c:
23061 * buffer.h:
23062 * data.c:
23063 * fileio.c:
23064 * filelock.c:
23065 * fns.c:
23066 * frame.h:
23067 * lisp.h:
23068 * macterm.c:
23069 * print.c:
23070 * process.c:
23071 * w32fns.c:
23072 * w32menu.c:
23073 * w32term.c:
23074 * xfns.c:
23075 * xmenu.c:
23076 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
23077
230782008-02-01 Kenichi Handa <handa@m17n.org>
23079
23080 * chartab.c (map_sub_char_table): Make it work for the top-level
23081 char-table. Fix handling of parent char-table.
23082 (map_char_table): Adjust for the above change.
23083
230842008-02-01 Jason Rumney <jasonr@gnu.org>
23085
23086 * w32font.c (Qgdi): Rename from Qw32.
23087
230882008-02-01 Jason Rumney <jasonr@gnu.org>
23089
23090 * w32bdf.c (get_quoted_string): Make function static.
23091
230922008-02-01 Kenichi Handa <handa@m17n.org>
23093
23094 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
23095 bigger ascent and descent than those of the font, use them as
23096 font's ascent and descent.
23097
230982008-02-01 Kenichi Handa <handa@m17n.org>
23099
23100 * Makefile.in (${lispsource}international/charprop.el): Move this
23101 target within "#ifdef HAVE_UNIDATA" and "#endif".
23102
231032008-02-01 Kenichi Handa <handa@m17n.org>
23104
23105 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
23106 (shortlisp): Add ../lisp/language/tai-viet.el.
23107
231082008-02-01 Ulrich Mueller <ulm@gentoo.org>
23109
23110 * Makefile.in (${lispsource}international/charprop.el): Depend on
23111 temacs${EXEEXT}.
23112
231132008-02-01 Jason Rumney <jasonr@gnu.org>
23114
23115 * w32font.c (w32font_close): Delete the GDI font object.
23116
23117 * w32menu.c: Include character.h.
23118
23119 * w32proc.c: Likewise.
23120
23121 * w32select.c: Likewise.
23122
23123 * makefile.w32-in (w32proc.o): Depend on character.h.
23124
231252008-02-01 Jason Rumney <jasonr@gnu.org>
23126
23127 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
23128
23129 * w32menu.c (syms_of_w32menu): Likewise.
23130
23131 * w32proc.c (syms_of_ntproc): Likewise.
23132
23133 * w32select.c (syms_of_w32select): Likewise.
23134
23135 * w32term.c (syms_of_w32term): Likewise.
23136
231372008-02-01 Jason Rumney <jasonr@gnu.org>
23138
23139 * w32font.c (w32font_draw): Delete brush after using it.
23140
231412008-02-01 Jason Rumney <jasonr@gnu.org>
23142
23143 * w32font.c (w32font_open): Don't set font_idx.
23144 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
23145 to font settings.
23146 (w32font_draw): Fill background explicitly.
23147
231482008-02-01 Jason Rumney <jasonr@gnu.org>
23149
23150 * w32term.c (w32_initialize): Don't call w32font_initialize.
23151
23152 * w32font.c (w32font_info): Remove subranges.
23153 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
23154 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
23155 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
23156 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
23157 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
23158 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
23159 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
23160 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
23161 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
23162 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
23163 New symbols.
23164 (font_callback_data): New struct.
23165 (w32font_list, w32font_match): Use it.
23166 (w32font_open): Don't populate subranges.
23167 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
23168 (w32font_encode_char): Always return unicode code-point as-is.
23169 (w32font_text_extents): Supply a transformation matrix to
23170 GetGlyphOutline. Never look up by glyph index. Avoid looping
23171 twice. Use unicode version of GetTexExtentPoint32 instead of
23172 glyph index version.
23173 (set_fonts_frame): Remove.
23174 (w32_enumfont_pattern_entity): Add frame parameter, use it to
23175 set frame parameter. Use backward compatible fake foundries.
23176 Save generic family in extra slot under QCfamily. Make width slot
23177 constant. Save QCspacing value. Save list of scripts instead of
23178 binary subranges.
23179 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
bba3e508
SM
23180 (add_font_entity_to_list): Use font_callback_data struct.
23181 Filter unwanted fonts.
aac0c6e3
MR
23182 (add_one_font_entity_to_list): Use font_callback_data struct.
23183 (w32_registry): Default to iso10646_1.
23184 (fill_in_logfont): Use dpi from extra slot. Don't bother with
23185 string font registries. Don't fill in font name if it is a generic
23186 family name, fill family instead. Use spacing, family and script
23187 extra info to fill pitch, family and charset fields.
23188 (list_all_matching_fonts): Use font_callback_data struct.
23189 (unicode_range_for_char): Remove.
23190 (font_supported_scripts): New function.
23191 (w32font_initialize): Remove.
23192 (syms_of_w32font): Update which symbols are defined.
23193
231942008-02-01 Jason Rumney <jasonr@gnu.org>
23195
23196 * font.c (font_pixel_size): Reverse assq_no_quit args.
23197
23198 * w32term.h (FONT_WIDTH): Report max width, not average.
23199 (FONT_MAX_WIDTH): Remove.
23200 (FONT_AVG_WIDTH): New macro.
23201
23202 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
23203 redefinition of FONT_WIDTH.
23204
23205 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
23206 (w32_cache_char_metrics): Use FONT_WIDTH.
23207
23208 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
23209
232102008-02-01 Jason Rumney <jasonr@gnu.org>
23211
23212 * w32font.c (w32font_open): Make lfHeight negative.
23213
23214 * w32fns.c (x_default_font_parameter): Use new style font name.
23215 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
23216
232172008-02-01 Jason Rumney <jasonr@gnu.org>
23218
23219 * w32font.c (QCsubranges): New symbol.
23220 (w32font_open, w32font_has_char): Get subranges from subproperty
23221 of extra.
23222 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
23223 (syms_of_w32font): Define :subranges symbol.
23224
23225 * font.c (font_put_extra): Expose externally.
23226
23227 * font.h (font_put_extra): Move declaration from font.c.
23228
23229 * font.c (Ffont_get): Use font driver to determine otf capability.
23230 (adjust_anchor): Check if driver defines anchor_point before using.
23231
23232 * w32font.c (w32font_open): Handle size, height and pixel_size better.
23233 (w32font_draw): Use options.
23234 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
23235 Fix detection of truetype fonts.
23236 (registry_to_w32_charset): Handle charsets other than iso8859-1
23237 expressed as lisp symbols.
23238 (w32_registry): Express charset as lisp symbol.
23239 (fill_in_logfont): Reverse pixel and point height logic.
23240 Don't set width here. Set quality to default.
23241
23242 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
23243 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
23244
23245 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
23246 Remove redundant loop and allocation.
23247
23248 * makefile.w32-in (font.o, w32font.o): New objects.
23249 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
23250 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
23251
23252 * xdisp.c (fill_composite_glyph_string): Make the first arg to
23253 STORE_XCHARB a valid l-value.
23254
23255 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
23256 calculations for non-Truetype fonts.
23257 (x_draw_glyph_string): Sync with xterm.c.
23258 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
23259 Remove redundant code.
23260 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
23261
23262 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
23263 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
23264
23265 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
23266 (x_to_w32_charset, w32_to_x_charset): Expose externally.
23267
23268 * w32font.c: New file for w32 font backend.
23269
232702008-02-01 Kenichi Handa <handa@m17n.org>
23271
23272 * term.c: Don't include "buffer.h" twice.
23273
232742008-02-01 Kenichi Handa <handa@m17n.org>
23275
23276 * character.c (Funibyte_string): New function.
23277 (syms_of_character): Defsubr it.
23278
232792008-02-01 Jason Rumney <jasonr@gnu.org>
23280
23281 * w32term.c [USE_FONT_BACKEND]:
23282 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
23283 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
23284 (x_draw_glyph_string, x_draw_glyph_string_foreground)
23285 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
23286 (x_free_frame_resources): Sync with xterm.c.
23287
232882008-02-01 Andreas Schwab <schwab@suse.de>
23289
23290 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
23291 char-table size.
23292
232932008-02-01 Kenichi Handa <handa@m17n.org>
23294
23295 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
23296
232972008-02-01 Kenichi Handa <handa@m17n.org>
23298
23299 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
23300 font_otf_gpos, add font_drive_otf.
23301
23302 * fontset.c (fontset_find_font): Pay attention to font size
23303 specified for a font.
23304 (reorder_font_vector): Check contents of font_def.
23305
23306 * font.c (struct otf_list): Delete it.
23307 (otf_list): Make it a lisp variable.
23308 (otf_open): Use lispy otf_list.
23309 (generate_otf_features): Rename from parse_gsub_gpos_spec.
23310 (check_otf_features): New function.
23311 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
23312 New functions.
23313 (font_drive_otf): New function merging font_otf_gsub and
23314 font_otf_gpos.
23315 (font_open_for_lface): New arg spec. Change argument order.
23316 (font_load_for_face): Adjust for the change of font_open_for_lface.
23317 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
23318 Ffont_otf_gpos.
23319 (syms_of_font): Staticpro otf_list. Delete defsubr of
23320 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
23321
23322 * xfaces.c (set_font_frame_param): Adjust for the change of
23323 font_open_for_lface.
23324
23325 * font.h (font_open_for_lface): Adjust prototype.
23326 (struct font_driver): Delete members otf_gsub and otf_gpos, add
23327 member otf_drive.
23328 (font_otf_gsub, font_otf_gpos): Delete externs.
23329 (font_drive_otf): Extern it.
23330
233312008-02-01 Kenichi Handa <handa@m17n.org>
23332
23333 * font.c (font_at): If the window W is not on a window system,
23334 return Qnil.
23335
23336 * coding.c (produce_chars, encode_coding): Don't call
23337 insert_from_gap if no characters to produce.
23338
233392008-02-01 Kenichi Handa <handa@m17n.org>
23340
23341 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
23342 Fclear_face_cache.
23343
23344 * xfaces.c (face_for_font): Check also face->font==font->font.font.
23345
233462008-02-01 Miles Bader <miles@gnu.org>
23347
23348 * emacs.c (main): Change default value of `enable_font_backend' to 1.
23349 Parse "--disable-font-backend" option.
23350 (standard_args): Add "--disable-font-backend" option.
23351
233522008-02-01 Kenichi Handa <handa@m17n.org>
23353
23354 * fontset.c (fontset_find_font): New function.
23355 (fontset_font): Use fontset_find_font.
23356 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
23357 Register the specified font for all Latin characters.
23358 (new_fontset_from_font): Register the specified font for all Latin
23359 characters.
23360 (dump_fontset): For a realized fontset, include the base fontset
23361 name in the returned vector.
23362
233632008-02-01 Kenichi Handa <handa@m17n.org>
23364
23365 * character.h (CHAR_STRING): Cast C to unsigned on calling
23366 char_string.
23367
23368 * character.c (char_string): Type of arg C changed to unsigned.
23369 Signal an error if C is an invalid character code.
23370
23371 * editfns.c (general_insert_function, Fchar_to_string):
23372 Use CHARACTERP, not INTEGERP.
23373
233742008-02-01 Kenichi Handa <handa@m17n.org>
23375
23376 * character.h (MIN_MULTIBYTE_LEADING_CODE)
23377 (MAX_MULTIBYTE_LEADING_CODE): New macros.
23378
23379 * regex.c (analyse_first): Fix for multibyte characters in "case
23380 charset:" and "case categoryspec:".
23381
233822008-02-01 Andreas Schwab <schwab@suse.de>
23383
23384 * Makefile.in (LIBES): Move standard libraries to the end.
23385
233862008-02-01 Kenichi Handa <handa@m17n.org>
23387
23388 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
23389 nonzero, don't shrink the buffer nextb.
23390
23391 * buffer.h (struct buffer_text): New member inhibit_shrinking.
23392
23393 * coding.c (coding_alloc_by_making_gap): New arg offset.
23394 (alloc_destination): Call coding_alloc_by_making_gap with the arg
23395 offset.
23396 (decode_coding_iso_2022): Update coding->safe_charsets.
23397 (decode_coding_gap): Temporarily set
23398 current_buffer->text->inhibit_shrinking to 1.
23399
234002008-02-01 Kenichi Handa <handa@m17n.org>
23401
bba3e508
SM
23402 * xterm.c (x_draw_composite_glyph_string_foreground):
23403 Fix indexing into elements of s->cmp and s->char2b.
aac0c6e3
MR
23404
234052008-02-01 Juanma Barranquero <lekktu@gmail.com>
23406
23407 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
23408
234092008-02-01 Kenichi Handa <handa@m17n.org>
23410
23411 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
23412 target_multibyte instead of multibyte.
23413 (re_match_2_internal): Call bcmp_translate with target_multibyte.
23414 (bcmp_translate): Change the argument name from multibyte to
23415 target_multibyte.
23416
234172008-02-01 Kenichi Handa <handa@m17n.org>
23418
23419 These changes are to compile a regexp into a pattern that can be
23420 used both for multibyte and unibyte targets.
23421
23422 * Makefile.in (search.o): Depend on charset.h.
23423
23424 * character.c (multibyte_char_to_unibyte_safe): New function.
23425
23426 * search.c: Include "charset.h".
23427 (compile_pattern_1): Delete argument multibyte. Don't set
23428 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
23429 (compile_pattern): Don't compare cp->buf.target_multibyte.
23430 Compare cp->buf.charset_unibyte.
23431 (compile_pattern): Set cp->buf.target_multibyte.
23432
23433 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
23434
23435 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
23436
23437 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
23438 multibyte. Change callers.
23439 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
23440 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
23441 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
23442 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
23443 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
23444 (regex_compile): Make the compiled pattern usable both for
23445 multibyte and unibyte targets.
23446 (analyse_first): Make the fastmap usable both for multibyte and
23447 unibyte targets.
23448 (TRANSLATE_VIA_MULTIBYTE): Delete.
23449 (re_match_2_internal): Pay attention to the case that the
23450 multibyteness of bufp and target may be different.
23451
234522008-02-01 Kenichi Handa <handa@m17n.org>
23453
23454 * xdisp.c (x_produce_glyphs): When a font is not found, make the
23455 empty box occupy at least one column width.
23456
234572008-02-01 Miles Bader <miles@gnu.org>
23458
23459 * Makefile.in: Remove redundant HAVE_XFT clause.
23460
234612008-02-01 Kenichi Handa <handa@m17n.org>
23462
23463 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
23464
234652008-02-01 Kenichi Handa <handa@m17n.org>
23466
23467 * fontset.c (Finternal_char_font): Fix for the case of POSITION
23468 being nil.
23469
234702008-02-01 Kenichi Handa <handa@m17n.org>
23471
23472 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
23473
234742008-02-01 Kenichi Handa <handa@m17n.org>
23475
23476 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
23477
234782008-02-01 Kenichi Handa <handa@m17n.org>
23479
23480 * search.c (simple_search): Fix previous change.
23481
234822008-02-01 Kenichi Handa <handa@m17n.org>
23483
23484 * xftfont.c (ftfont_font_format): Extern declaration.
23485
23486 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
23487
23488 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
23489 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
23490
23491 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
23492 (ftfont_font_format): Fix previous change.
23493
23494 * font.h (Ffont_xlfd_name): EXFUN it.
23495
23496 * font.c (font_parse_xlfd): Fix the array size of `f'.
23497 (register_font_driver): Use EQ to compare driver->type.
23498
23499 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
23500 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
23501 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
23502
235032008-02-01 Kenichi Handa <handa@m17n.org>
23504
23505 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
23506 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
23507
235082008-02-01 Kenichi Handa <handa@m17n.org>
23509
23510 * xfont.c (xfont_open): Set font->format.
23511
23512 * xftfont.c (xftfont_open): Set font->format.
23513
23514 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
23515 (ftfont_list): Include FC_FONTFORMAT in FcObject.
23516 (ftfont_open): Set font->format.
23517 (ftfont_font_format): New function.
23518
23519 * font.h (struct font): New member format.
23520
23521 * font.c (Qopentype): New variable.
23522 (syms_of_font): Defsym it.
23523 (Fquery_font): Change the format of the last element of the return
23524 value.
23525
235262008-02-01 Kenichi Handa <handa@m17n.org>
23527
23528 * xfns.c (xic_create_xfontset): Try the default fontset name as a
23529 last resort.
23530
235312008-02-01 Kenichi Handa <handa@m17n.org>
23532
23533 * coding.c (detect_coding_charset): Fix detection of multi-byte
23534 charset.
23535
235362008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
23537
23538 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
23539
235402008-02-01 Kenichi Handa <handa@m17n.org>
23541
23542 * xdisp.c (get_next_display_element): Set it->face_id for the
23543 first component of a composition.
23544 (x_produce_glyphs): Check if the font is changed or not for composition.
23545
235462008-02-01 Kenichi Handa <handa@m17n.org>
23547
23548 * fontset.c (Qlatin): New variable.
23549 (syms_of_fontset): Define it as a lisp symbol.
23550 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
23551
235522008-02-01 Kenichi Handa <handa@m17n.org>
23553
23554 * font.c (font_unparse_fcname): Pay attention to the case that
23555 some of font property is a null string.
23556
235572008-02-01 Kenichi Handa <handa@m17n.org>
23558
23559 * term.c: Include "composite.h".
23560 (encode_terminal_code): Output all components of composition.
23561 Check the size of encode_terminal_src.
23562 (produce_glyphs): For composition, call produce_composite_glyph.
23563 (append_composite_glyph, produce_composite_glyph): New functions.
23564
23565 * xdisp.c (x_produce_glyphs): In handling composition, if a font
23566 is not found, get font_info from the current ascii face.
23567
235682008-02-01 Kenichi Handa <handa@m17n.org>
23569
23570 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
23571 buffer-file-name to Qnil before calling insert_from_buffer.
23572
23573 * font.c (font_unparse_fcname): Pay attention to the case that
23574 foundry is a null string.
23575
235762008-02-01 Kenichi Handa <handa@m17n.org>
23577
23578 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
23579
23580 * font.c (Qunicode_sip): New variable.
23581 (syms_of_font): Declare it as a Lisp symbol.
23582
23583 * font.h (Qunicode_sip): Extern it.
23584
235852008-02-01 Kenichi Handa <handa@m17n.org>
23586
23587 * composite.c (get_composition_id): Pay attention to TAB component.
23588
23589 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
23590 TAB. Adjust for the change of s->char2b which always points to
23591 the first element of allocated memory.
23592
23593 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
23594
23595 * xdisp.c (handle_composition_prop): Set it->c to the first
23596 non-TAB component.
23597 (fill_composite_glyph_string): Change argument.
23598 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
23599 (x_produce_glyphs): Fix handling of left/right padding.
23600
236012008-02-01 Kenichi Handa <handa@m17n.org>
23602
23603 * coding.c (detect_coding_system): Fix for handling off
23604 inhibit_iso_escape_detection. Fix for the case that no coding
23605 system is defined for a specific coding category.
23606
236072008-02-01 Kenichi Handa <handa@m17n.org>
23608
23609 * font.c (font_matching_entity): Delete unused local var.
23610
23611 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
23612 opening a font.
23613
23614 * fileio.c (Finsert_file_contents): On recovering a file, assume
23615 Unix-like eol.
23616 (choose_write_coding_system): On auto-saving a file, force
23617 Unix-like eol.
23618
23619 * coding.c (setup_coding_system): Fix setting of
23620 coding->common_flags based on eol_type.
23621 (coding_inherit_eol_type): If PARENT is not nil, be sure to
23622 inherit from it.
23623
236242008-02-01 Kenichi Handa <handa@m17n.org>
23625
23626 * alloc.c (NSTATICS): Increas to 0x600.
23627
236282008-02-01 Kenichi Handa <handa@m17n.org>
23629
23630 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
23631 (ftfont_list): Don't check :name property.
23632 (ftfont_match): New function.
23633 (ftfont_pattern_entity): If the pattern doesn't contain
23634 FC_SPACING, don't assume FC_MONO.
23635
23636 * font.h (struct font_driver): New member `match'.
23637 (font_update_drivers): Adjust prototype.
23638
23639 * font.c (font_parse_fcname, font_parse_name): Don't change :name
23640 property of FONT.
bba3e508
SM
23641 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring):
23642 Define them unconditionally.
aac0c6e3
MR
23643 (font_matching_entity): New function.
23644 (font_open_by_name): Try font_matching_entity if exact match is
23645 not found.
23646 (font_update_drivers): Delete the arg FONT. Return a list of
23647 actually used backends. Don't free faces, font caches here.
23648 Don't store data in frame parameters. Don't call x_set_font.
23649 (Ffont_spec): Store :name property as is.
23650 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
23651 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
23652 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
23653 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
23654 Call font->driver->otf_gsub instead of font_otf_gsub.
23655
23656 * frame.c (x_set_font_backend): Do more works that were done in
23657 font_update_drivers before.
23658
23659 * xfont.c (xfont_match): New function.
23660 (xfont_driver): Set xfont_driver.match to xfont_match.
23661 (xfont_draw): Set font in GC if necessary.
23662
23663 * ftxfont.c (ftxfont_match): New function.
23664 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
23665
23666 * xftfont.c (xftfont_match): New function.
23667 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
23668
236692008-02-01 Kenichi Handa <handa@m17n.org>
23670
23671 * font.h (struct font): New member scalable.
23672 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
23673 (font_otf_gsub): Adjust prototype.
23674
23675 * font.c (font_otf_capability): Fix handling of the default langsys.
23676 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
23677 Check the contents of SPEC.
23678 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
23679 (check_gstring): New function.
23680 (REPLACEMENT_CHARACTER): New macro.
23681 (font_otf_gsub): New arg alternate_subst. Be sure to set all
23682 glyph codes of GSTRING.
23683 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
23684 (font_prepare_composition): Set cmp->glyph_len.
23685 (font_open_entity): Set font->scalable.
23686 (Ffont_get): Handle :otf property.
bba3e508
SM
23687 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates):
23688 New functions.
aac0c6e3
MR
23689 (Fquery_font): Use font->font.full_name.
23690 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
23691 Sfont_otf_alternates.
23692
23693 * ftfont.c (ftfont_open): Set font->font.full_name and
23694 font->font.name properly. Fix calculation of font->font.height
23695 and font->min_width.
23696
23697 * ftxfont.c (ftxfont_create_gcs): New function.
23698 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
23699 (ftxfont_draw_backgrond): Fix filling region.
23700 (ftxfont_default_fid): New function.
23701 (ftxfont_open): Set xfont->fid to the return value of
23702 ftxfont_default_fid.
23703 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
23704 (ftxfont_done_face): Free only GCs that are created by
23705 ftxfont_create_gcs.
23706 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
23707
23708 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
23709 Clip to src->width, etc (not src->clip_XXX).
23710
23711 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
23712 FontBackend frame parameter.
23713
237142008-02-01 Kenichi Handa <handa@m17n.org>
23715
23716 * font.h (struct font_driver_list): New member `on'.
23717 (Fclear_font_cache): EXFUN it.
23718 (font_update_drivers): Extern it.
23719
23720 * font.c (font_unparse_fcname): Fix typo (swidth->width).
23721 (font_list_entities): Check driver_list->on.
40b1a3a9 23722 (register_font_driver): Initialize `on' member to 0.
aac0c6e3
MR
23723 (font_update_drivers): New function.
23724 (Fclear_font_cache): Check driver_list->on.
23725
23726 * frame.h (Qfont_backend): Extern it.
23727 (x_set_font_backend): Extern it.
23728
23729 * frame.c (Qfont_backend): New variable.
23730 (frame_parms): New element for font-backend.
23731 (x_set_font_backend): New function.
23732
23733 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
23734 FontBackend frame parameter.
23735 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
23736 x_set_font_backend.
23737
23738 * xfont.c (xfont_list): Don't try listing by :name property if the
23739 name is not for XLFD.
23740
237412008-02-01 Kenichi Handa <handa@m17n.org>
23742
23743 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
23744 (LGLYPH_SET_TO): New macros.
23745 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
23746 element of G is vector or not.
23747 (font_at): Extern it.
23748
23749 * font.c: Include window.h.
23750 (font_lispy_object): New function.
23751 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
23752 end of valid glyph.
23753 (font_close_object): Fix getting (struct font *).
23754 (font_at): New function.
23755 (Ffont_get): If FONT is a font-object, get entity from it.
23756 (Ffont_make_gstring): Initialize elements of glyphs with nil.
bba3e508
SM
23757 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX.
23758 Fix range check.
aac0c6e3
MR
23759 (Ffont_at): New function.
23760 (syms_of_font): Defsubr Sfont_at.
23761
23762 * xdisp.c (it_props): Move the entry for Qauto_composed to just
23763 before the entry for Qcomposition.
23764 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
23765 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
23766 the font in gstring.
23767 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
23768 LGLYPH_FORM (g) to detect the end of valid glyph.
23769 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
23770 we are composing with gstring.
23771
23772 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
23773 Check if adjustment is vector or not.
23774
23775 * Makefile.in (font.o): Make it depends on window.h.
23776
237772008-02-01 Kenichi Handa <handa@m17n.org>
23778
23779 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
23780 adjustment is vector or not.
23781
237822008-02-01 Miles Bader <miles@gnu.org>
23783
23784 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
23785
237862008-02-01 Kenichi Handa <handa@m17n.org>
23787
23788 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
bba3e508 23789 (LGLYPH_SET_WIDTH): Adjust for the change of LGLYPH format.
aac0c6e3
MR
23790 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
23791
23792 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
23793 (DEVICE_DELTA): Fix typo.
23794 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
23795 LGLYPH format.
23796
23797 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
23798 the change of LGLYPH format.
23799
238002008-02-01 Kenichi Handa <handa@m17n.org>
23801
23802 * ftfont.c (ftfont_list): Fix typo.
23803 (ftfont_build_basic_charsets): Don't include letters with diacritics.
23804
238052008-02-01 Jan Djärv <jan.h.d@swipnet.se>
23806
23807 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
23808
23809 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
23810 xftface_info is non-NULL.
23811
238122008-02-01 Jan Djärv <jan.h.d@swipnet.se>
23813
23814 * ftfont.c (ftfont_list): Move misplaced #endif.
23815
238162008-02-01 Kenichi Handa <handa@m17n.org>
23817
23818 * ftfont.c (ftfont_list): Pay attention to the case that
23819 FC_CAPABILITY is not defined.
23820
238212008-02-01 Kenichi Handa <handa@m17n.org>
23822
23823 * xftfont.c (xftfont_open): Set charset related members to -1.
23824
23825 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
23826 QCname.
23827 (ftfont_open): Set charset related members to -1.
23828
23829 * fontset.c (Votf_script_alist): New variable.
23830 (syms_of_fontset): Initialize it.
23831 (fontset_font): Delete unused variable.
23832
23833 * fontset.h (Votf_script_alist): Extern it.
23834
23835 * font.c (font_find_for_lface): Optimize code.
23836
23837 * font.h (font_close_object, font_merge_old_spec): Extern them.
23838
238392008-02-01 Kenichi Handa <handa@m17n.org>
23840
23841 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
23842 (syms_of_font): Initialize them.
23843 (font_pixel_size): Allow float value in dpi.
23844 (font_prop_validate_type): Delete.
23845 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
23846 Change caller.
23847 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
23848 (font_prop_validate_extra): Delete.
23849 (font_prop_validate_spacing): New function.
23850 (font_property_table): Add elements for all known properties.
bba3e508
SM
23851 (get_font_prop_index): Rename from check_font_prop_name.
23852 New argument FROM. Change caller.
aac0c6e3
MR
23853 (font_prop_validate): Validate all known properties.
23854 (font_put_extra): Delete argument force. Change caller.
23855 (font_expand_wildcards): Make it static. Fix the way of shrinking
23856 the possible range.
23857 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
23858 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
23859 Change caller.
23860 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
23861 (font_parse_fcname): Delete argument merge. Fix parsing of point
23862 size. Don't validate properties values here. Change caller.
23863 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
23864 (font_open_by_name): Delete unused variable.
23865 (Ffont_spec): Likewise. Validate property values.
23866 (Ffont_match_p): New function.
23867
23868 * font.h (QCscalable): Extern it.
23869 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
23870
23871 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
23872
23873 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
23874 (xfont_list_pattern): New function.
23875 (xfont_list): Use xfont_list_pattern.
23876
238772008-02-01 Kenichi Handa <handa@m17n.org>
23878
23879 * font.h (Flist_fonts): EXFUN it.
23880
238812008-02-01 Jason Rumney <jasonr@gnu.org>
23882
23883 * w32term.c (w32_initialize): Add back smoothing_type and
23884 smoothing_enabled definitions.
23885
238862008-02-01 Kenichi Handa <handa@m17n.org>
23887
23888 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
23889 s->face->font on determining underline position.
23890
238912008-02-01 Kenichi Handa <handa@m17n.org>
23892
23893 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
23894 (font_has_char): Accept font-object too.
23895 (font_find_for_lface): Try at first with a size specified in face.
23896
238972008-02-01 Kenichi Handa <handa@m17n.org>
23898
23899 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
23900 font_open_by_name.
23901
239022008-02-01 Kenichi Handa <handa@m17n.org>
23903
23904 * font.h (QCspacing, QCdpi): Extern them.
23905 (enum font_spacing): New enum.
23906 (FONT_PIXEL_SIZE_QUANTUM): New macro.
23907
23908 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
23909 (QCspacing, QCdpi): New variables.
23910 (syms_of_font): Initialize them.
23911 (font_pixel_size): New function.
23912 (font_put_extra): New function.
23913 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
23914 in FONT_EXTRA.
23915 (font_parse_fcname): Handle enumerated values (e.g. bold).
23916 Fix handling font size. Add QCname property that contains only
23917 unknown properties.
23918 (font_score): Change argument. Change caller. Pay attention to
23919 FONT_PIXEL_SIZE_QUANTUM.
23920 (font_sort_entites, font_list_entities, font_find_for_lface)
23921 (font_open_for_lface, font_open_by_name): Fix handling of font size.
23922 (Ffont_spec): Add QCname property that contains only unknown properties.
23923
bba3e508
SM
23924 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq.
23925 Don't include weight in listing pattern, instead check weight of each
aac0c6e3
MR
23926 listed font. Don't include scalable in pattern. Pay attention to
23927 FONT_PIXEL_SIZE_QUANTUM.
23928
239292008-02-01 Kenichi Handa <handa@m17n.org>
23930
23931 * font.c (font_parse_fcname): Fix parsing of point-size.
23932 (font_unparse_fcname): Produce symbolic names for style properties.
23933 (font_list_entities): Handle float size correctly.
23934 (font_open_by_name): Prefer `normal' property values if the name
23935 doesn't specify them.
23936
23937 * fontset.c (Finternal_char_font): Use font_get_name, not
23938 Ffont_xlfd_name.
23939
23940 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
23941 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
23942 pattern. Don't force scalable.
23943
23944 * xftfont.c (xftfont_open): For generating a name, start from
23945 96-byte buffer.
23946
239472008-02-01 Jan Djärv <jan.h.d@swipnet.se>
23948
23949 * frame.h (x_new_fontset2): Fix prototype.
23950
239512008-02-01 Kenichi Handa <handa@m17n.org>
23952
23953 * font.h (struct font_driver): Delete member parse_name.
23954 (font_match_p, font_get_spec, font_parse_fcname)
23955 (font_unparse_fcname): Extern them.
23956 (font_get_name): Adjust prototype.
23957
23958 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
23959 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
bba3e508
SM
23960 (font_expand_wildcards): Fix handling ENCODING field.
23961 Avoid unnecessary checks for weight, slant, and swidth.
aac0c6e3
MR
23962 (font_parse_fcname): New function.
23963 (font_unparse_fcname): New function.
23964 (font_parse_name): New function.
23965 (font_match_p): New function.
23966 (font_get_name): Change return value to Lisp string.
23967 (font_get_spec): New function.
23968 (Qunspecified, Qignore_defface): Don't extern them.
23969 (font_find_for_lface): Assume that LFACE is fully specified.
23970 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
23971 object, use it for FACE.
23972 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
23973 driver->parse_name.
23974 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
23975
23976 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
23977 prototype.
23978
23979 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
23980 argument F. Don't call Fnew_fontset. Instead, directly call
23981 make_fontset.
23982
23983 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
23984
23985 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
23986 of x_new_fontset2.
23987
23988 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
23989 (Qsans__serif): New variables.
23990 (ftfont_generic_family_list): New variable.
23991 (syms_of_ftfont): Initialize the above variables.
23992 (ftfont_pattern_entity): Delete argument NAME.
23993 (ftfont_list_generic_family): New function.
23994 (ftfont_parse_name): Delete this function.
23995 (ftfont_list): Try generic family only when FcFontList found no font.
23996 (ftfont_list_family): Fix args to FcObjectSetBuild.
23997
23998 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
23999 object in attrs[LFACE_FONT_INDEX].
24000 (set_lface_from_font_name): Cancel all changes for font-backend.
24001 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
24002 function.
24003 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
24004 font object in QCfont attribute.
24005 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
24006 (realize_default_face) [USE_FONT_BACKEND]: Call
24007 set_lface_from_font_and_fontset.
24008
24009 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
24010 "fixed", and signal error here if no suitable font was found.
24011
24012 * xfont.c (xfont_parse_name): Delete this function.
24013
24014 * xftfont.c (xftfont_open): Change coding style of error
24015 handling. Generate fontconfig's fontname pattern.
24016
24017 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
24018 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
24019
24020 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
24021 Both args FONTSET and FONT_OBJECT must be existing ones.
24022
240232008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24024
24025 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
24026
240272008-02-01 Kenichi Handa <handa@m17n.org>
24028
24029 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
24030
24031 * font.h (struct font): Fix typo.
24032
24033 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
24034 XLFD_XXX_INDEX.
24035 (enum xlfd_field_mask): New enum.
ef1b0ba7 24036 (intern_font_field): Change argument. Change caller. If digits
aac0c6e3
MR
24037 are followed by non-digits, return a symbol.
24038 (font_expand_wildcards): New function.
24039 (font_parse_xlfd): Fix wildcard handling.
24040 (Ffont_spec): If :name is specified, reflect the info in the other
24041 properties.
24042
24043 * ftfont.c (ftfont_pattern_entity): Fix typo.
24044 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
24045 locale.
24046
240472008-02-01 Kenichi Handa <handa@m17n.org>
24048
24049 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
24050
24051 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
24052 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
24053 registry doesn't specify encoding part.
24054 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
24055 (font_open_by_name): At first try parsing the name.
24056 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
24057 as Lisp symbols.
24058
24059 * fontset.c (reorder_font_vector): Pay attention to the case that
24060 the 3rd element of font_def is nil.
24061 (fontset_font): For the default fontset, append one more fontset
24062 elements for a script-based font specification. Don't add script
24063 attribute on finding a font.
24064 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
24065 font name.
24066 (fontset_ascii_font): If a font can't be opened, return nil.
24067
24068 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
24069 (ftfont_pattern_entity): New function.
24070 (ftfont_get_cache): Assume that freetype_font_cache is already
24071 initialized.
24072 (ftfont_list): Handle the case that a file is specified in font
24073 name. Use ftfont_pattern_entity to generate entities.
24074 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
24075 (syms_of_ftfont): Initialize freetype_font_cache.
24076
24077 * xftfont.c (xftfont_open): Make the font name fontconfig's
24078 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
24079 (xftfont_close): Free font->font.name if not NULL.
24080
24081 * xfont.c (xfont_list): If script is specified for a font, return
24082 null_vector.
24083 (xfont_list_family): Declare argument type.
24084
24085 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
24086 name, set LFACE_FONT (lface) to nil.
24087
24088 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
24089 return Qnil.
24090
240912008-02-01 Kenichi Handa <handa@m17n.org>
24092
24093 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
24094 (standard_args): Add "-enable-font-backend".
24095
240962008-02-01 Kenichi Handa <handa@m17n.org>
24097
24098 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
24099 (struct xftdraw_list, xftdraw_list): Delete them.
24100 (register_xftdraw, check_xftdraw): Delete them.
24101 (xftfont_prepare_face): Don't call register_xftdraw.
24102 (xftfont_done_face): Don't call check_xftdraw.
24103 (xftfont_draw): Get background color only when with_background is
24104 nonzero.
24105
24106 * xfont.c (xfont_encode_char): Fix calculation of char2b.
24107
241082008-02-01 Kenichi Handa <handa@m17n.org>
24109
24110 These changes are for the new font handling codes.
24111
24112 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
24113 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
24114 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
24115 (FONTSRC, FONTOBJ): New variables.
24116 (obj): Add $(FONTOBJ).
24117 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
24118 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
24119 @LIBOTF_LIBS@.
24120 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
24121 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
24122
24123 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
24124
24125 * character.h (Vscript_representative_chars): Extern it.
24126
24127 * character.c (Vscript_representative_chars): New variable.
24128 (syms_of_character): Declare it as a Lisp variable.
24129
24130 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
24131 enable_font_backend is nonzero, accept the composition method
24132 COMPOSITION_WITH_GLYPH_STRING.
24133
24134 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
24135 enumeration COMPOSITION_WITH_GLYPH_STRING.
24136
24137 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
24138 members clip_x, clip_y, clip_width, and clip_height.
24139 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
24140
24141 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
24142 --enable-font-backend. Call syms_of_font.
24143
24144 * fns.c (assoc_no_quit): New function.
24145
24146 * fontset.h (FONT_INFO_FROM_FACE): New macro.
24147 (face_for_font, new_fontset_from_font)
24148 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
24149
24150 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
24151 (fontset_font, fontset_ascii, face_for_char)
24152 (make_fontset_for_ascii_face, Ffont_info)
24153 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
24154 is nonzero, use font-backend mechanism.
24155 (find_font_encoding): Make it non-static.
24156 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
24157 New functions.
24158
24159 * frame.h (struct frame): New members resx and resy.
24160 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
24161 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
24162
24163 * frame.c [USE_FONT_BACKEND]: Include "font.h".
24164 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
24165
24166 * lisp.h (assoc_no_quit): Extern it.
24167
24168 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
24169 Through out the file, use FONT_INFO_FROM_FACE instead of
24170 FONT_INFO_FROM_ID, use get_per_char_metric instead of
24171 rif->per_char_metric.
24172 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
24173 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
24174 (get_glyph_face_and_encoding, fill_composite_glyph_string)
24175 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
24176 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
24177 nonzero, use font-backend mechanism.
24178 (get_per_char_metric): New function.
24179
24180 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
24181 (set_lface_from_font_name)
24182 (set_font_frame_param, free_realized_face)
24183 (prepare_face_for_display, clear_face_gcs)
24184 (Finternal_set_font_selection_order, realize_x_face)
24185 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
24186 font-backend mechanism.
24187 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
24188 (load_face_font) [USE_FONT_BACKEND]: Abort.
24189 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
24190 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
24191
24192 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
24193 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
24194 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
bba3e508
SM
24195 nonzero, register all available font drivers.
24196 Call x_default_font_parameter for deciding a font.
aac0c6e3
MR
24197 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
24198
24199 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
24200 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
24201 (x_set_glyph_string_clipping_exactly)
24202 (x_compute_glyph_string_overhangs)
24203 (x_draw_glyph_string_foreground)
24204 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
24205 (x_free_frame_resources) [USE_FONT_BACKEND]: If
24206 enable_font_backend is nonzero, use font-backend mechanism.
24207 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
24208
242092008-02-01 Kenichi Handa <handa@m17n.org>
24210
24211 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
24212 system_eol_type.
24213 (syms_of_coding): Initialize system_eol_type.
24214
24215 * process.c (Fset_process_coding_system): Inherit system's eol
24216 format if necessary.
24217
242182008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24219
24220 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
24221
242222008-02-01 Kenichi Handa <handa@m17n.org>
24223
24224 * coding.c (decode_eol): Pay attention to buffer relocation in
24225 del_range_2.
24226 (decode_coding): Call decode_eol before restoring undo_list.
24227
242282008-02-01 Kenichi Handa <handa@m17n.org>
24229
24230 * charset.c (Fdefine_charset_internal): Fix setting of
24231 emacs_mule_bytes.
24232
242332008-02-01 Kenichi Handa <handa@m17n.org>
24234
24235 * keyboard.c (read_char): Check if C is a character or not before
24236 looking up Vkeyboard_translate_table.
24237
242382008-02-01 Kenichi Handa <handa@m17n.org>
24239
bba3e508
SM
24240 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION):
24241 Fix condition to terminate the loop.
aac0c6e3
MR
24242
242432008-02-01 Kenichi Handa <handa@m17n.org>
24244
24245 * coding.c (produce_composition): Compare charbuf[i] instead of
24246 args[i] against 0.
24247 (Fterminal_coding_system): Use EQ to compare Lisp objects.
24248
242492008-02-01 Kenichi Handa <handa@m17n.org>
24250
24251 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
24252 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
24253 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
24254 detect_coding.
24255 (emacs_mule_char): Handle old style (Emacs 20) component character
24256 of a composition.
24257 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
24258 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
24259 composition rule.
24260 (decode_coding_emacs_mule): Handle invalid bytes correctly.
24261
242622008-02-01 Kenichi Handa <handa@m17n.org>
24263
24264 * coding.c (encode_coding_ccl): Allocate destination dynamically
24265 when necessary.
24266
242672008-02-01 Kenichi Handa <handa@m17n.org>
24268
24269 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
24270 the loop. When quitted, show a proper error message.
24271
242722008-02-01 Kenichi Handa <handa@m17n.org>
24273
bba3e508
SM
24274 * xterm.c (x_set_glyph_string_clipping_exactly):
24275 Set src->clip_head and src->clip_tail temporarily instead of src->hl.
aac0c6e3
MR
24276
24277 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
24278 character sequence.
24279 (Fccl_execute_on_string): Use ASET, not XSET.
24280
242812008-02-01 Kenichi Handa <handa@m17n.org>
24282
24283 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
24284
242852008-02-01 Kenichi Handa <handa@m17n.org>
24286
24287 * coding.c (decode_coding): Fix the condition of terminating the
24288 decoding loop.
24289
242902008-02-01 Kenichi Handa <handa@m17n.org>
24291
24292 * data.c (Faset): On setting a character bigger than 255 in a
24293 unibyte string, signal an error instead of make the string multibyte.
24294
242952008-02-01 Kenichi Handa <handa@m17n.org>
24296
24297 * charset.c (map_charset_chars): Fix for ascii-compatible charset
24298 made by a mapping table.
24299
243002008-02-01 Kenichi Handa <handa@m17n.org>
24301
24302 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
24303 not.
24304 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
24305 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
24306
bba3e508
SM
24307 * xterm.c (x_draw_composite_glyph_string_foreground):
24308 Check s->face is NULL or not.
aac0c6e3
MR
24309
243102008-02-01 Kenichi Handa <handa@m17n.org>
24311
24312 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
24313 (x_draw_glyph_string): Fix drawing of right_overhang and
24314 left_overhang around/on cursor.
24315
24316 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
24317
243182008-02-01 Kenichi Handa <handa@m17n.org>
24319
24320 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
24321
243222008-02-01 Kenichi Handa <handa@m17n.org>
24323
24324 * coding.c (Fdefine_coding_system_internal)
24325 (Fdefine_coding_system_alias): Avoid a duplicated element in
24326 Vcoding_system_alist.
24327
243282008-02-01 Kenichi Handa <handa@m17n.org>
24329
24330 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
24331
24332 * coding.c (Qcoding_system_define_form): New variable.
24333 (syms_of_coding): Intern and staticpro it.
24334 (Fcoding_system_p): Check Qcoding_system_define_form.
24335 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
24336
24337 * coding.h (CODING_SYSTEM_P): If ID is not available, call
24338 Fcoding_system_p.
24339 (CHECK_CODING_SYSTEM): If ID is not available, call
24340 Fcheck_coding_system.
24341 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
24342 Try also Fcheck_coding_system.
24343
243442008-02-01 Kenichi Handa <handa@m17n.org>
24345
24346 * coding.c (code_conversion_restore): GCPRO arg.
24347
243482008-02-01 Kenichi Handa <handa@m17n.org>
24349
24350 * character.c (lisp_string_width): Check multibyteness of STRING.
24351
243522008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24353
24354 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
24355 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
24356 (decode_mac_font_name): Use decode_coding_c_string instead of
24357 decode_coding.
bba3e508
SM
24358 (x_load_font): Initialize fontp->fontset to -1.
24359 Set fontp->encoding_type.
aac0c6e3
MR
24360
243612008-02-01 Kenichi Handa <handa@m17n.org>
24362
24363 * search.c (search_buffer): Give up BM search on case-fold-search
24364 if one of a target character has a case-equivalence of different
3b59c351 24365 byte length even if that target character is an ASCII.
aac0c6e3
MR
24366 (simple_search): Fix calculation of byte length of matched text.
24367 (boyer_moore): Fix handling of case-equivalent multibyte characters.
24368
243692008-02-01 Kenichi Handa <handa@m17n.org>
24370
24371 * coding.c (decode_coding): Fix handling of invalid bytes.
24372
243732008-02-01 Kenichi Handa <handa@m17n.org>
24374
24375 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
24376 Unicode characters.
24377
243782008-02-01 Kenichi Handa <handa@m17n.org>
24379
24380 * coding.c (encode_coding_object): If a pre-write-conversion
24381 function makes a new buffer, kill it.
24382
243832008-02-01 Kenichi Handa <handa@m17n.org>
24384
24385 * coding.c (QCascii_compatible_p): New variable.
24386 (syms_of_coding): Initialize it.
24387 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
24388 calling string_char.
24389 (record_conversion_result): Add `default:' case.
24390 (coding_charset_list): Delete unused variable `coding_type'.
24391 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
24392 property in the plist of the coding system.
24393 (Fcoding_system_put): Check QCascii_compatible_p.
24394
243952008-02-01 Miles Bader <miles@gnu.org>
24396
24397 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
24398 removed calculation of frame `f', as it's now used.
24399
244002008-02-01 Kenichi Handa <handa@m17n.org>
24401
24402 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
24403 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
24404 (UNIDATA): New variable.
24405 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
bba3e508
SM
24406 (bootstrap-emacs${EXEEXT}): Depends on charprop.el.
24407 Run $(RUN_TEMACS) unconditionally.
aac0c6e3
MR
24408
244092008-02-01 Kenichi Handa <handa@m17n.org>
24410
24411 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
24412 (admindir): New variable.
24413 ($(lispsource)international/charprop.el): New target.
24414
244152008-02-01 Miles Bader <miles@gnu.org>
24416
24417 * character.c (chars-in-region): Remove obsolete function.
24418 (syms_of_character): Remove its initialization.
24419
244202008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
24421
24422 * w32select.c (validate_coding_system)
24423 (setup_windows_coding_system): New functions.
bba3e508
SM
24424 (convert_to_handle_as_coded, Fw32_get_clipboard_data):
24425 Use setup_windows_coding_system.
24426 (setup_config, Fw32_get_clipboard_data):
24427 Use validate_coding_system.
aac0c6e3
MR
24428 (Fx_selection_exists): Move call to setup_config to a place
24429 where signals are allowed.
24430
24431 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
24432 (Fcheck_coding_system): Add declarations.
24433
244342008-02-01 Kenichi Handa <handa@m17n.org>
24435
24436 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
24437
244382008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24439
24440 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
24441 string as the second argument for x_new_fontset.
24442
244432008-02-01 Kenichi Handa <handa@m17n.org>
24444
24445 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
24446 (encode_coding_object): Use safe_call instead of call2.
24447
244482008-02-01 Kenichi Handa <handa@m17n.org>
24449
24450 * fontset.c (Fset_fontset_font): Check family element of a given vector.
24451
24452 * Makefile.in (lisp): Include charprop.el.
24453
244542008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24455
24456 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
24457 Not sure if it's unnecessary.
24458
244592008-02-01 Steven Tamm <steventamm@mac.com>
24460
24461 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
24462 some possibly unnecessary fontset checking code that crashed
24463 when creating a new frame.
24464
244652008-02-01 Kenichi Handa <handa@m17n.org>
24466
24467 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
24468 lookup_face.
24469
24470 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
24471
24472 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
24473
244742008-02-01 Kenichi Handa <handa@m17n.org>
24475
24476 * coding.c: Cancel the change done in HEAD on 2008-02-01.
24477 (coding_charset_list): New function.
24478
24479 * coding.h (coding_charset_list): Extern it.
24480
244812008-02-01 Kenichi Handa <handa@m17n.org>
24482
24483 * fontset.c (Fset_fontset_font): Call find_font_encoding with
24484 concatenation of family and registry.
24485
244862008-02-01 Kenichi Handa <handa@m17n.org>
24487
24488 * character.h (BYTE8_STRING): Fix typo.
24489
24490 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
24491 string to multibyte (sync to HEAD).
24492
24493 * casefiddle.c (casify_region): Handle changes in byte-length
24494 using replace_range_2 (sync to HEAD).
24495
244962008-02-01 Andreas Schwab <schwab@suse.de>
24497
24498 * chartab.c (map_char_table): GCPRO table and arg.
24499
245002008-02-01 Kenichi Handa <handa@m17n.org>
24501
24502 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
24503 already at limit.
24504
245052008-02-01 Kenichi Handa <handa@m17n.org>
24506
24507 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
24508 instead of fast_c_string_match_ignore_case.
bba3e508
SM
24509 (find_font_encoding): Change argument to Lisp_Object.
24510 Use fast_string_match_ignore_case instead of
aac0c6e3
MR
24511 fast_c_string_match_ignore_case. Change caller.
24512
245132008-02-01 Kenichi Handa <handa@m17n.org>
24514
24515 * xdisp.c (get_next_display_element): In unibyte case, decide to
24516 display in octal form by checking a character by
24517 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
24518
24519 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
24520
24521 * character.c (unibyte_has_multibyte_table): New variable.
24522
24523 * character.h (unibyte_has_multibyte_table): Extern it.
24524 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
24525
245262008-02-01 Kenichi Handa <handa@m17n.org>
24527
24528 * coding.c (encode_coding_iso_2022): Fix handling of charset
24529 annotation.
24530
245312008-02-01 Kenichi Handa <handa@m17n.org>
24532
24533 * coding.c (setup_coding_system): If coding_system is nil, use
24534 Qundecided.
24535 (Fterminal_coding_system): Return nil if terminal coding system is
24536 `undecided'.
bba3e508
SM
24537 (syms_of_coding): Define coding-system `undecided' here.
24538 Setup terminal_coding as `undecided'.
aac0c6e3
MR
24539
245402008-02-01 Kenichi Handa <handa@m17n.org>
24541
bba3e508
SM
24542 * xdisp.c (message_dolog, set_message_1):
24543 Call unibyte_char_to_multibyte with arg type int.
aac0c6e3
MR
24544
24545 * lread.c (read1): Fix reading of a char-table.
24546
24547 * print.c (print_object): Include sub char-table in circularities
24548 detection.
24549
245502008-02-01 Kenichi Handa <handa@m17n.org>
24551
24552 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
24553 Append the found sequences in car of ARGS instead of prepending.
24554
245552008-02-01 Kenichi Handa <handa@m17n.org>
24556
24557 * fileio.c (report_file_error): Make a unibyte string from
24558 strerror (errorno).
24559 (Fsubstitute_in_file_name): Fix the arg to
24560 unibyte_char_to_multibyte. It is evaluated twice.
24561
245622008-02-01 Kenichi Handa <handa@m17n.org>
24563
24564 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
24565
245662008-02-01 Kenichi Handa <handa@m17n.org>
24567
24568 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
24569 BOM is not found.
24570 (detect_coding, detect_coding_system): Optimization for ISO-2022
24571 when no 8-bit data is found.
24572
245732008-02-01 Jason Rumney <jasonr@gnu.org>
24574
24575 * w32fns.c (x_to_w32_font): Update to use new coding struct.
24576
245772008-02-01 Kenichi Handa <handa@m17n.org>
24578
24579 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
24580 CHARS.
24581
245822008-02-01 Steven Tamm <steventamm@mac.com>
24583
24584 * macterm.c (mac_encode_char): Add charset argument and update
24585 to use encoding_type.
24586 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
24587 switch to pure fontset.
24588 (decode_mac_font_name): Temporarily remove decoding.
24589 (x_font_name_to_mac_font_name): Temporarily remove encoding.
24590 (x_load_font): Temporarily remove encoding.
24591
245922008-02-01 Kenichi Handa <handa@m17n.org>
24593
24594 * xfaces.c (Fface_font): If frame is not on a window system,
24595 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
24596 refer to face->font.
24597 (split_font_name_into_vector, build_font_name_from_vector)
24598 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
24599 when HAVE_WINDOW_SYSTEM is defined.
24600
246012008-02-01 Kenichi Handa <handa@m17n.org>
24602
24603 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
24604 (x_produce_glyphs): Fix setting of members of cmp in case
24605 cmp->glyph_len is zero.
24606
24607 * fontset.c (Fset_fontset_font): Fix docstring.
24608 (Ffontset_info): Make it backward compatible. New arg ALL.
24609
246102008-02-01 Kim F. Storm <storm@cua.dk>
24611
24612 * process.c (read_process_output): Grow decoding_buf when needed;
24613 this could cause a crash in allocate_string and compact_small_strings.
24614
246152008-02-01 Kenichi Handa <handa@m17n.org>
24616
24617 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
24618
246192008-02-01 Kenichi Handa <handa@m17n.org>
24620
24621 * coding.c (setup_coding_system): Set coding->common_flags
24622 correctly for raw-text.
24623 (consume_chars): On encoding unibyte text by raw-text, don't check
24624 multibyte form.
24625 (encode_coding): On encoding by raw-text, never use translation tables.
24626
24627 * fileio.c (e_write): Short cut for the case of no encoding.
24628
246292008-02-01 Kenichi Handa <handa@m17n.org>
24630
24631 * coding.c (detect_coding, detect_coding_system): Delete unused
24632 variables.
24633
246342008-02-01 Kenichi Handa <handa@m17n.org>
24635
24636 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
24637 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
24638
246392008-02-01 Kenichi Handa <handa@m17n.org>
24640
bba3e508
SM
24641 * coding.c (Ffind_coding_systems_region_internal):
24642 Include raw-text and no-conversion in the result.
aac0c6e3
MR
24643
246442008-02-01 Kenichi Handa <handa@m17n.org>
24645
24646 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
24647 (load_font_get_repertory): Delete unnecessary check of ENCODING of
24648 FONT_DEF.
24649 (font_def_arg, add_arg, from_arg, to_arg): New args.
24650 (set_fontset_font): Change argument.
24651 (Fset_fontset_font): Fix for the case that TARGET is a script
24652 name and charset name.
24653 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
24654
246552008-02-01 Kenichi Handa <handa@m17n.org>
24656
24657 * fontset.c (fontset_font): Rename from fontset_face. Change return
24658 value.
24659 (face_suitable_for_char_p, face_for_char): Adjust for the change
24660 of fontset_font.
24661 (make_fontset_for_ascii_face): Fix setting of the fontset element
24662 for ASCII.
24663 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
24664 to get a font name.
24665 (Ffontset_info): Adjust for the change of fontset_font.
24666
24667 * coding.c (emacs_mule_char): Check invalid code more rigidly.
24668
24669 * character.h (LEADING_CODE_LATIN_1_MIN)
24670 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
24671
246722008-02-01 Kenichi Handa <handa@m17n.org>
24673
24674 * editfns.c (check_translation): New function.
24675 (Ftranslate_region_internal): Handle M:N mapping.
24676
246772008-02-01 Kenichi Handa <handa@m17n.org>
24678
24679 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
24680
246812008-02-01 Kenichi Handa <handa@m17n.org>
24682
24683 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
24684 goto invalid_code.
24685 (decode_coding_iso_2022): Fix handling of invalid designation.
24686
24687 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
24688 after calling code_conversion_save.
24689
246902008-02-01 Kenichi Handa <handa@m17n.org>
24691
24692 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
24693
24694 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
24695
24696 * fontset.c: Include "intervals.h".
24697 (fontset_face): Fix comparing of Lisp_Objects.
bba3e508
SM
24698 (free_face_fontset, new_fontset_from_font_name):
24699 Fix Lisp_Object/int mixup.
aac0c6e3
MR
24700
24701 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
24702
24703 * coding.c: Add many prototypes for static functions.
24704 (get_translation_table): Allow max_lookup to be NULL.
24705 (decode_coding, Ffind_coding_systems_region_internal)
bba3e508
SM
24706 (Funencodable_char_position, Fcheck_coding_systems_region):
24707 Call get_translation_table with max_lookup NULL.
aac0c6e3
MR
24708
247092008-02-01 Kenichi Handa <handa@m17n.org>
24710
24711 * coding.c (get_translation_table): Declare it as Lisp_Object.
24712 (LOOKUP_TRANSLATION_TABLE): New macro.
24713 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
24714 instead of CHAR_TABLE_REF.
24715
247162008-02-01 Kenichi Handa <handa@m17n.org>
24717
24718 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
24719 annotation data format.
24720 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
24721 Change arguments FROM and TO to single argument NCHARS. Change caller.
24722 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
24723 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
24724 (decode_coding_ccl, decode_coding_charset): Pay attention to
24725 coding->charbuf_used.
24726 (get_translation): New function.
24727 (produce_chars): New arguments translation_table and last_block.
24728 Translate characters here. Return number of carryover chars.
24729 Change caller.
24730 (produce_composition): New argument pos. Change caller.
24731 Adjust for the change of annotation data format.
24732 (produce_charset, produce_annotation): Likewise.
24733 (decode_coding, encode_coding): Don't call translate_chars.
24734 (consume_chars): New arg translation_table. Change caller.
24735 (translate_chars): Delete.
24736 (syms_of_coding): Make translation-table's number of extra slots 2.
24737
247382008-02-01 Kenichi Handa <handa@m17n.org>
24739
24740 * search.c (simple_search): Fix setting this_pos_byte in backward
24741 search.
24742
24743 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
24744 byte sequence.
24745 (detect_coding_ccl): Fix setting of the variable valids.
24746
247472008-02-01 Kenichi Handa <handa@m17n.org>
24748
24749 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
24750
24751 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
24752
24753 * editfns.c (Ftranslate_region_internal): Rename from
24754 Ftranslate_region. Accept a char-table in TABLE.
24755 (syms_of_editfns): Defsubr Stranslate_region_internal.
24756
24757 * xfaces.c (set_lface_from_font_name): If a font is specified for
24758 a frame, generate a fontset from the font.
24759 (build_scalable_font_name): If the scalable font is requested for
24760 a specific size, don't change that size.
24761 (try_font_list): Try a scalable font also in the case that a
24762 pattern string is specified.
24763
247642008-02-01 Kenichi Handa <handa@m17n.org>
24765
24766 * xfaces.c (Fface_font): New optional arg CHARACTER.
24767
247682008-02-01 Kenichi Handa <handa@m17n.org>
24769
24770 * charset.h (CHARSET_OFFSET): New macro.
24771
247722008-02-01 Kenichi Handa <handa@m17n.org>
24773
24774 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
24775
24776 * fontset.c (fontset_face): Handle the case that repertory is a
24777 char-table.
24778 (find_font_encoding): Return nil for unknown encoding.
24779 (Fset_fontset_font): Ignore a font of unknown encoding.
24780
247812008-02-01 Kenichi Handa <handa@m17n.org>
24782
24783 * keymap.c (describe_vector): Handle default value of a char table.
24784
24785 * fontset.c (fontset_face): Handle fallback fonts correctly.
24786 (Ffontset_info): Return infomation about fallback fonts.
24787
247882008-02-01 Kenichi Handa <handa@m17n.org>
24789
24790 * fontset.c (FONTSET_DEFAULT): New macro.
24791 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
24792 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
24793 the case that it is nil.
24794 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
24795 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
24796
24797 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
24798 subset or superset.
24799
248002008-02-01 Kenichi Handa <handa@m17n.org>
24801
24802 * emacs.c (main): Call init_charset after syms_of_XXX.
24803
24804 * charset.c (Vcharset_map_directory): Delete.
24805 (Vcharset_map_path): New variable.
24806 (load_charset_map_from_file): Use Vcharset_map_path instead.
24807 (init_charset): Initialize Vcharset_map_path.
24808 (syms_of_charset): Delete declaration of "charset-map-directory",
24809 add declaration of "charset-map-path".
24810
248112008-02-01 Kenichi Handa <handa@m17n.org>
24812
24813 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
24814 ASCII only string.
24815
24816 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
24817
24818 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
24819 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
24820
248212008-02-01 Kenichi Handa <handa@m17n.org>
24822
24823 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
24824
24825 * coding.c (QCmnemonic, QCdefalut_char)
24826 (QCdecode_translation_table, QCencode_translation_table)
24827 (QCpost_read_conversion, QCpre_write_conversion): New variables.
24828 (get_translation_table): Return a list of translation tables if
24829 necessary.
24830 (decode_coding): Call get_translation_table with ENCODEP 0.
24831 (char_encodable_p): If translation_table is non-nil, always call
24832 translate_char.
24833 (Fdefine_coding_system_internal): Accept list of translation
24834 tables as :encode-translation-table and :decode-translation-table.
24835 (Fcoding_system_put): New function.
bba3e508
SM
24836 (syms_of_coding): Declare new symbols.
24837 Defsubr Scoding_system_put.
aac0c6e3
MR
24838 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
24839 typically JISX0212.
24840
24841 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
24842 when the charset is superset type.
24843
24844 * character.c (translate_char): Accept list of translation tables.
24845
248462008-02-01 Kenichi Handa <handa@m17n.org>
24847
24848 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
24849 (CODING_ATTR_TRANS_TBL): New macro.
24850
24851 * coding.c (get_translation_table): New function.
24852 (translate_chars): Fix the bug of skipping annotation data.
24853 (decode_coding, encode_coding): Utilize get_translation_table.
24854 (char_encodable_p, Funencodable_char_position): Translate char if
24855 necessary.
24856 (Ffind_coding_systems_region_internal)
24857 (Fcheck_coding_systems_region): Setup translation table for encode
24858 in a coding system attribute vector in advance.
24859 (Fdefine_coding_system_internal): Allow a symbol as translation
24860 table. For shift-jis type coding system, allow 4th charset.
24861
248622008-02-01 Kenichi Handa <handa@m17n.org>
24863
24864 * coding.c (decode_coding_sjis): Check the first byte rigidly.
24865
24866 * xdisp.c (get_next_display_element): Pass -1 as POS to
24867 FACE_FOR_CHAR if displaying a C-string.
24868
248692008-02-01 Kenichi Handa <handa@m17n.org>
24870
24871 * composite.c (get_composition_id): Handle xoff and yoff in a
24872 composition rule.
24873
24874 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
24875 (struct composition): New member lbearing and rbearing.
24876
24877 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
24878 (x_get_glyph_overhangs): Handle a composition glyph.
24879 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
24880
24881 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
24882 composition glyph.
24883
248842008-02-01 Kenichi Handa <handa@m17n.org>
24885
24886 * print.c: Include charset.h.
24887 (Vprint_charset_text_property): New variable.
24888 (Qdefault): Extern it.
24889 (PRINT_STRING_NON_CHARSET_FOUND)
24890 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
24891 (print_check_string_result): New variable.
24892 (print_check_string_charset_prop): New function.
24893 (print_prune_charset_plist): New variable.
24894 (print_prune_string_charset): New function.
24895 (print_object): Call print_prune_string_charset if
24896 Vprint_charset_text_property is not t.
24897 (print_interval): Print nothing if interval->plist is nil.
24898 (syms_of_print): Declare Vprint_charset_text_property as a lisp
24899 variable. Init and staticpro print_prune_charset_plist.
24900
249012008-02-01 Kenichi Handa <handa@m17n.org>
24902
24903 * fontset.c (new_fontset_from_font_name): Use the specified font
24904 for all characters in the new fontset.
24905
24906 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
24907 OBJECT args.
24908
24909 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
24910 OBJECT args for composition too.
24911
24912 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
24913 OBJECT args.
24914
249152008-02-01 Kenichi Handa <handa@m17n.org>
24916
24917 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
24918
24919 * fontset.c (reorder_font_vector): Adjust for the change of
24920 FONT_DEF format.
24921 (fontset_face): New arg id. Change caller.
24922 (face_for_char): New args pos and object.
24923 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
24924 (fs_query_fontset): Check NAME by Fassoc too.
24925 (Fset_fontset_font): Allow non-XLFD font name.
24926 (Ffontset_info): Adjust for the change of FONT_DEF format.
24927
24928 * fontset.h (face_for_char): Adjust prototype.
24929
24930 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
24931 (append_space, extend_face_to_end_of_line)
24932 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
24933 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
24934
24935 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
24936 POS and OBJECT args.
24937
24938 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
24939 POS and OBJECT args.
24940
249412008-02-01 Jason Rumney <jasonr@gnu.org>
24942
24943 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
24944 of GlobalAlloc'ed memory.
24945
249462008-02-01 Kenichi Handa <handa@m17n.org>
24947
24948 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
24949
24950 * charset.h (charset_table_used): Delete extern.
24951
24952 * charset.c (charset_table_used): Make it static.
24953 (map_charset_chars): Fix args to c_function with.
24954
24955 * chartab.c (map_sub_char_table_for_charset): Fix args to
24956 c_function with.
24957
bba3e508
SM
24958 * coding.h (enum coding_result_code):
24959 Delete CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
aac0c6e3
MR
24960
24961 * coding.c (Qinsufficient_source, Qinconsistent_eol)
24962 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
24963 (Vlast_code_conversion_error): New variables.
24964 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
24965 (ONE_MORE_BYTE): Record error if any instead of signaling an
24966 error. If non-ASCII multibyte char is found, return the negative
24967 value of the code. All callers changed to check it.
24968 (ONE_MORE_BYTE_NO_CHECK): Likewise.
24969 (record_conversion_result): New function. Change all codes setting
24970 coding->result to call this function.
24971 (detect_coding_utf_8, decode_coding_utf_8)
24972 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
24973 Don't use the local variable incomplete.
24974 (emacs_mule_char): Change the second arg to `const'.
24975 (decode_coding): Fix of flushing out unprocessed data.
24976 (make_conversion_work_buffer): Fix making of a work buffer.
24977 (decode_coding_object): Return coding->dst_object.
24978
24979 * fontset.c (set_fontset_font): Fix args.
24980
24981 * lisp.h (CHARACTERBITS): Define as 22.
24982
24983 * process.c (send_process): Be sure to set coding->src_multibyte.
24984
24985 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
24986
249872008-02-01 Kenichi Handa <handa@m17n.org>
24988
24989 * xdisp.c (handle_auto_composed_prop): Give limit to
24990 Fnext_single_char_property_change.
24991
249922008-02-01 Kenichi Handa <handa@m17n.org>
24993
24994 * composite.c (syms_of_composite): Don't make the composition hash
24995 table weak.
24996
24997 * fontset.c (Fset_fontset_font): Fix docstring.
24998
24999 * lisp.h (detect_coding_system): Adjust prototype.
25000
25001 * fileio.c (kill_workbuf_unwind): Delete this function.
25002 (Finsert_file_contents): Adjust the call of detect_coding_system.
25003 Get conversion_buffer by code_conversion_save. Use the macro
25004 CODING_MAY_REQUIRE_DECODING. After decoding, update
25005 coding_system.
25006
25007 * coding.h (make_conversion_work_buffer): Delete extern.
25008 (code_conversion_save): Extern it.
25009
25010 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
25011 (CODING_GET_INFO): Delete argument eol_type. Change callers.
25012 (decode_coding_utf_8): Don't do eol converion.
25013 (detect_coding_utf_16): Check coding->src_chars, not
25014 coding->src_bytes. Add heuristics for those that have no signature.
25015 (decode_coding_emacs_mule, decode_coding_iso_2022)
25016 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
25017 Don't do eol converion.
25018 (adjust_coding_eol_type): Return a new coding system.
25019 (detect_coding): Don't detect eol. Fix for utf-16 detection.
25020 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
25021 each change.
25022 (decode_coding): Pay attention to undo_list. Do eol conversion for
25023 all types of coding-systems (if necessary).
25024 (Vcode_conversion_work_buf_list): Delete it.
25025 (Vcode_conversion_reused_workbuf): Rename from
25026 Vcode_conversion_reused_work_buf.
25027 (Vcode_conversion_workbuf_name): New variable.
25028 (reused_workbuf_in_use): New variable.
25029 (make_conversion_work_buffer): Delete the arg DEPTH.
25030 (code_conversion_restore): Change argument to cons.
25031 (code_conversion_save): Delete the argument BUFFER. Change callers.
25032 (detect_coding_system): New argument src_chars. Change callers.
25033 Fix for utf-16 detection.
25034 (init_coding_once): Don't use ISO_carriage_return.
25035 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
25036 reused_workbuf_in_use.
25037
250382008-02-01 Kenichi Handa <handa@m17n.org>
25039
25040 * keymap.c (store_in_keymap): Pay attention to the case that idx
25041 is a cons specifying a character range.
25042
250432008-02-01 Kenichi Handa <handa@m17n.org>
25044
25045 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
25046 HANDLED_RECOMPUTE_PROPS.
25047
25048 * coding.c (Fdefine_coding_system_internal): Fix checking of
25049 ascii compatibility.
25050
250512008-02-01 Kenichi Handa <handa@m17n.org>
25052
25053 * charset.c (find_charsets_in_text): Delete unused locale variable.
25054 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
25055
25056 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
25057 Resync charset_list to Vemacs_mule_charset_list.
25058
25059 * keymap.c (store_in_keymap): Pay attention to the case that idx
25060 is a cons specifying a character range.
25061
250622008-02-01 Kenichi Handa <handa@m17n.org>
25063
25064 * composite.c (update_compositions): Bind inhibit-read-only, etc
25065 to t before calling remove-list-of-text-properties.
25066
25067 * print.c (print_object): Always print ASCII chars as is.
25068
250692008-02-01 Kenichi Handa <handa@m17n.org>
25070
25071 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
25072
25073 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
25074 is a char table.
25075
250762008-02-01 Kenichi Handa <handa@m17n.org>
25077
25078 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
25079
250802008-02-01 Kenichi Handa <handa@m17n.org>
25081
25082 * xfaces.c (set_lface_from_font_name): Fix for the case that
25083 FONTNAME is not fontset name.
25084
250852008-02-01 Kenichi Handa <handa@m17n.org>
25086
25087 * fns.c (base64_encode_1): Fix previous change.
25088
250892008-02-01 Kenichi Handa <handa@m17n.org>
25090
25091 * fontset.c (set_fontset_font): New function.
25092 (Fset_fontset_font): If a font is specified for a charset, use
25093 map_charset_chars to store the font spec in a fontset.
25094
250952008-02-01 Kenichi Handa <handa@m17n.org>
25096
25097 * fontset.c (fontset_face): Create a fallback fontset on demand.
25098 (make_fontset): Don't create a fallback fontset here.
25099 (free_face_fontset): Free a fallback fontset (if any) too.
25100 (n_auto_fontsets): Delete this variable.
25101 (auto_fontset_alist): New variable.
25102 (new_fontset_from_font_name): Check auto_fontset_alist.
25103 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
25104 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
25105 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
25106 Defsubr Sfontset_list_all.
25107
251082008-02-01 Kenichi Handa <handa@m17n.org>
25109
25110 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
25111
251122008-02-01 Kenichi Handa <handa@m17n.org>
25113
25114 * fontset.c (Fnew_fontset): Check NAME more rigidly.
25115
251162008-02-01 Kenichi Handa <handa@m17n.org>
25117
25118 * editfns.c (Fgoto_char): Fix docstring.
25119
251202008-02-01 Kenichi Handa <handa@m17n.org>
25121
25122 * insdel.c (insert_from_gap): Adjust intervals correctly.
25123
251242008-02-01 Jason Rumney <jasonr@gnu.org>
25125
25126 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
25127 (pfnGetFontUnicodeRanges): New dynamically loaded function.
25128 (w32_initialize): Try to load it.
25129 (x_get_font_repertory): Use it if available.
25130 (w32_encode_char): Add shortcut for unicode output.
25131
25132 * w32fns.c (w32_load_system_font): Default charset to -1.
25133 (x_to_w32_charset): Match all fonts for unicode.
25134 (w32_to_x_charset): New parameter matching. Don't return partial
25135 or wildcard charsets.
25136 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
25137 (w32_codepage_for_font): Return CP_UNICODE for unicode.
25138 (w32_to_x_font): Match charset to real charset.
25139 (enum_font_cb2): Always list unicode versions.
25140
25141 * makefile.w32-in (temacs): Increase EMHEAP.
25142
251432008-02-01 Jason Rumney <jasonr@gnu.org>
25144
25145 * w32term.c (w32_encode_char): New charset parameter.
25146 font_info.encoding becomes encoding_type.
25147 (x_get_font_repertory): New function. Warning: stub only!
25148 (x_new_font): Return quickly if font already set.
25149 (x_new_fontset): fontsetname parameter is Lisp_Object.
25150 Use new fs_query_fontset. Try new_fontset_from_font_name.
25151 Use fontset_name for return value.
25152
25153 * w32term.h: Declare x_get_font_repertory.
25154
25155 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
25156 place of find_charset_in_text. Use encode_coding_object in place
25157 of encode_coding.
25158 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
25159 decode_coding.
25160
25161 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
25162 of x_new_fontset.
25163 (w32_load_system_font): Initialize charset as unicode.
25164 font_info.encoding becomes encoding_type.
25165 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
25166 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
25167 (syms_of_w32fns): Set get_font_repertory_func.
25168
25169 * w32console.c: Include character.h. Use terminal_encode_buffer
25170 from term.c.
bba3e508
SM
25171 (write_glyphs): Use new version of encode_terminal_code.
25172 Use encode_coding_object in place of encode_coding.
aac0c6e3
MR
25173
25174 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
25175 encoding becomes encoding_type.
25176
25177 * term.c (terminal_encode_buffer): Make externally visible.
25178
25179 * makefile.w32-in: Add character.h dependancies.
25180 (character.o, chartab.o): New targets.
25181
251822008-02-01 Kenichi Handa <handa@m17n.org>
25183
25184 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
25185 CODING_ID_EOL_TYPE.
25186
251872008-02-01 Andreas Schwab <schwab@suse.de>
25188
25189 * coding.c (produce_chars): Revert last change.
25190
251912008-02-01 Kenichi Handa <handa@m17n.org>
25192
25193 * charset.h (charset_unicode): Extern it.
25194
25195 * charset.c (string_xstring_p): Check by (C >= 0x100).
bba3e508
SM
25196 (find_charsets_in_text): Change format of the arc CHARSETS.
25197 New arg MULTIBYTE.
aac0c6e3
MR
25198 (Ffind_charset_region, Ffind_charset_string): Adjust for the
25199 change of find_charsets_in_text.
25200 (Fsplit_char): Fix doc. Never return unknown.
25201
25202 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
25203
bba3e508
SM
25204 * coding.c (Fdefine_coding_system_alias):
25205 Update Vcoding_system_list.
aac0c6e3
MR
25206
25207 * fontset.c (load_font_get_repertory): Pay attention to the case
25208 that ENCODING of a font is specified by a char-table.
25209
25210 * xterm.c (x_get_font_repertory): Handle the case that the
25211 encoding of font is other than Unicode.
25212
252132008-02-01 Kenichi Handa <handa@m17n.org>
25214
bba3e508
SM
25215 * term.c (encode_terminal_code): Don't handle glyph-table.
25216 Check if a character is encodable by the terminal coding system.
25217 If not, produces proper number of `?'s. Update
aac0c6e3
MR
25218 terminal_encode_buffer and terminal_encode_buf_size if necessary.
25219 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
25220
252212008-02-01 Kenichi Handa <handa@m17n.org>
25222
bba3e508
SM
25223 * term.c (terminal_encode_buffer, terminal_encode_buf_size):
25224 New variables.
aac0c6e3
MR
25225 (encode_terminal_code): Change argument. Encode multiple
25226 characters at once. Store the result of encoding in
25227 terminal_encode_buffer.
25228 (write_glyphs, insert_glyphs): Adjust for the change of
25229 encode_terminal_code.
25230 (term_init): Initialize terminal_encode_buffer and
25231 terminal_encode_buf_size.
25232
25233 * coding.c (consume_chars): If coding->src_object is nil, don't
25234 check annotation.
25235
252362008-02-01 Kenichi Handa <handa@m17n.org>
25237
25238 * character.c (char_string): Use ASCII_CHAR_P instead of
25239 SINGLE_BYTE_CHAR_P.
25240
252412008-02-01 Kenichi Handa <handa@m17n.org>
25242
25243 * xdisp.c (handle_auto_composed_prop): Check if the last
25244 characters of auto-composed region is newly composed with the
25245 following characters.
25246 (handle_composition_prop): Fix checking of point being inside
25247 composition.
25248
252492008-02-01 Kenichi Handa <handa@m17n.org>
25250
25251 * fns.c (concat): Don't change multibyteness of the result by
25252 concatenating an 8-bit character.
25253
25254 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
25255 multibyteness of the result when newelt is an 8-bit character.
25256
252572008-02-01 Dave Love <fx@gnu.org>
25258
25259 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
25260 EMACS_INT.
25261
25262 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
25263
25264 * xfaces.c (face_numeric_value): Declare dim size_t.
25265 (Finternal_lisp_face_equal_p): Remove unused f.
25266
25267 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
25268 (MATRIX_ROW): Remove unused vars.
25269 (draw_glyphs, x_insert_glyphs, fast_find_position)
25270 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
25271 byte/char counts.
25272
25273 * regex.c (regex_compile): Remove unused var.
25274
25275 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
25276
25277 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
25278 (Faccessible_keymaps, where_is_internal): Remove unused vars.
25279
25280 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
25281
25282 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
25283
25284 * fileio.c (Fwrite_region): Remove unused var.
25285
25286 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
25287 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
25288
25289 * composite.c (Fremove_list_of_text_properties): Declare.
25290
25291 * coding.c (inhibit_pre_post_conversion): Remove (unused).
25292 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
25293 (coding_inherit_eol_type): Remove unused attrs.
25294 (detect_coding): Cast arg of detect_eol.
25295
25296 * charset.c (syms_of_charset): Remove unused var p.
25297 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
25298 byte/char counts.
25299
25300 * casetab.c (set_case_table): Remove unused var.
25301
bba3e508
SM
25302 * window.c (Fdisplay_buffer, Fframe_selected_window):
25303 Remove unused vars.
aac0c6e3
MR
25304
253052008-02-01 Dave Love <fx@gnu.org>
25306
25307 * xterm.c (x_bitmap_mask): Declare.
25308
253092008-02-01 Dave Love <fx@gnu.org>
25310
25311 * xterm.c (x_term_init): Fix type error.
25312
25313 * lisp.h: Add Funibyte_char_to_multibyte.
25314
25315 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
25316 (Fset_coding_system_priority): Doc fix.
25317
25318 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
25319
25320 * indent.c (check_composition): Make start and end EMACS_INT.
25321
25322 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
25323
25324 * xdisp.c (handle_composition_prop, check_point_in_composition):
25325 Make buffer positions EMACS_INT.
25326
25327 * composite.c (find_composition, run_composition_function)
25328 (update_compositions, Ffind_composition_internal): Make buffer
25329 positions EMACS_INT.
25330
bba3e508
SM
25331 * composite.h (find_composition, update_compositions):
25332 Make position args EMACS_INT.
aac0c6e3
MR
25333
25334 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
25335
25336 * intervals.c (get_property_and_range):
25337 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
25338
25339 * unexalpha.c: Don't include varargs.h.
25340
253412008-02-01 Dave Love <fx@gnu.org>
25342
25343 * coding.h (ENCODE_UTF_8): New.
25344
25345 * Makefile.in (gtkutil.o): Depend on coding.h.
25346
25347 * coding.c (Fset_coding_system_priority): Doc fix.
25348
253492008-02-01 Kenichi Handa <handa@m17n.org>
25350
25351 * fileio.c (Finsert_file_contents): Call setup_coding_system in
25352 the case of auto saving.
25353
253542008-02-01 Andreas Schwab <schwab@suse.de>
25355
bba3e508
SM
25356 * chartab.c (map_char_table, map_char_table_for_charset):
25357 Protect `range' from GC.
aac0c6e3
MR
25358
253592008-02-01 Kenichi Handa <handa@m17n.org>
25360
25361 * coding.c (decode_coding_sjis): Check bytes more rigidly.
25362
253632008-02-01 Kenichi Handa <handa@m17n.org>
25364
25365 * fileio.c (choose_write_coding_system): Return a decided coding system.
25366 (Fwrite_region): Set Vlast_coding_system_used to the return value
25367 of choose_write_coding_system.
25368
253692008-02-01 Kenichi Handa <handa@m17n.org>
25370
25371 * charset.c (Fset_charset_priority): Pay attention to duplicated
25372 arguments.
25373
25374 * coding.c (QCcategory): New variable.
25375 (syms_of_coding): Defsym it. Set all elements of
25376 Vcoding_category_table and their symbol values.
25377 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
25378 coding-category-XXX, and coding-category-list.
25379 (Fdefine_coding_system_internal): Add category in the plist.
25380
253812008-02-01 Kenichi Handa <handa@m17n.org>
25382
25383 * callproc.c (Fcall_process): Handle carryover correctly.
25384
25385 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
25386 (raw_text_coding_system): Check NILP (coding_system).
25387 (coding_inherit_eol_type): Check NILP (coding_system) and
25388 NILP (parent).
25389 (consume_chars): Fix for the case of raw-text.
25390
25391 * process.c (read_process_output): Handle carryover correctly.
25392
253932008-02-01 Dave Love <fx@gnu.org>
25394
25395 * regex.c (re_search_2): Fix last change.
25396
253972008-02-01 Kenichi Handa <handa@m17n.org>
25398
25399 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
25400 target_multibyte. Even in a unibyte case, return a converted
25401 multibyte char.
25402 (GET_CHAR_AFTER): New macro.
25403 (PATFETCH): Translate via multibyte char.
25404 (HANDLE_UNIBYTE_RANGE): Delete this macro.
25405 (SETUP_MULTIBYTE_RANGE): New macro.
25406 (regex_compile): Setup compiled code so that its multibyteness
25407 matches that of a target. Fix the handling of "[X-YZ]" using
25408 SETUP_MULTIBYTE_RANGE.
25409 (analyse_first) <charset>: For filling fastmap for all multibyte
25410 characters, don't check by BASE_LEADING_CODE_P.
25411 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
25412 the same as RE_MULTIBYTE_P (bufp) now.
25413 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
25414 (TARGET_CHAR_AND_LENGTH): Delete this macro.
25415 (TRANSLATE_VIA_MULTIBYTE): New macro.
25416 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
25417 It is the same as RE_MULTIBYTE_P (bufp) now.
25418 <exactn>: Translate via multibyte.
bba3e508
SM
25419 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH.
25420 Don't translate it.
aac0c6e3
MR
25421 <charset, charset_not>: Fetch a character by
25422 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
25423 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
25424 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
25425 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
25426 by GET_CHAR_AFTER.
25427 (bcmp_translate): Likewise.
25428
25429 * search.c (compile_pattern): Check the member target_multibyte,
25430 not the member multibyte of buf.
25431
25432 * lread.c (read1): While reading a string, set force_singlebyte
25433 and force_multibyte correctly.
25434
25435 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
25436 up of unibyte_to_multibyte_table.
25437
254382008-02-01 Kenichi Handa <handa@m17n.org>
25439
25440 * coding.c (setup_coding_system): If coding has
25441 post-read-conversion or pre-write-conversion, set
25442 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
25443 respectively.
25444 (decode_coding_gap): Run post-read-conversion if any.
25445
25446 * fileio.c (Finsert_file_contents): Even if we read into a
25447 unibyte buffer, check if we must decode the result or not.
25448
254492008-02-01 Kenichi Handa <handa@m17n.org>
25450
25451 * coding.c (make_conversion_work_buffer): Change the work buffer
25452 name to the same one as that of Emacs 21.
25453
254542008-02-01 Kenichi Handa <handa@m17n.org>
25455
25456 * coding.h (make_conversion_work_buffer): Adjust prototype.
25457 (code_conversion_restore): Don't extern it.
25458
25459 * coding.c (detected_mask): Delete unused variable.
25460 (decode_coding_iso_2022): Pay attention to the byte sequence of
25461 CTEXT extended segment, and retain those bytes as is.
25462 (decode_coding_ccl): Delete unused variable `valids'.
25463 (setup_coding_system): Delete unused variable `category'.
25464 (consume_chars): Delete unused variable `category'. Make it work
25465 for non-multibyte case.
25466 (make_conversion_work_buffer): Change argument.
25467 (saved_coding): Delete unused variable.
25468 (code_conversion_restore): Don't check saved_coding->destination.
25469 (code_conversion_save): New function.
25470 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
25471 instead of record_unwind_protect.
25472 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
25473 (detect_coding_system): Delete unused variable `mask'.
25474 (Fdefine_coding_system_internal): Delete unused variable id.
25475
25476 * fileio.c (kill_workbuf_unwind): New function.
25477 (Finsert_file_contents): On replacing, call
25478 make_conversion_work_buffer with correct args, and call
25479 record_unwind_protect with the first arg kill_workbuf_unwind.
25480
25481 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
25482
254832008-02-01 Kenichi Handa <handa@m17n.org>
25484
25485 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
25486 (fontset_add): Fix for the case that TO is less than TO1.
25487 (Ffontset_info): Don't use fallback fontset on checking the
25488 default fontset.
25489 (dump_fontset): New function for debugging.
25490
25491 * coding.c (Fdefine_coding_system_internal): Fix for the case that
25492 coding_type is Qcharset.
25493
254942008-02-01 Kenichi Handa <handa@m17n.org>
25495
25496 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
25497 (map_char_table): Don't inherit the value from the parent on
25498 initializing VAL. Adjust for the above change.
25499
255002008-02-01 Kenichi Handa <handa@m17n.org>
25501
25502 * coding.c (Qsignature, Qendian): Delete these variables.
25503 (syms_of_coding): Don't initialize them.
25504 (CATEGORY_MASK_UTF_16_AUTO): New macro.
25505 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
25506 detect_info->found.
25507 (decode_coding_utf_16): Don't detect BOM here.
25508 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
25509 is NOT utf_16_without_bom.
25510 (setup_coding_system): For a coding system of type utf-16, check
25511 if the attribute :endian is Qbig or not (not nil or not), and set
25512 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
25513 (detect_coding): If coding type is utf-16 and BOM detection is
25514 required, detect it.
25515 (Fdefine_coding_system_internal): For a coding system of type
25516 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
25517
255182008-02-01 Kenichi Handa <handa@m17n.org>
25519
25520 * coding.c (coding_set_source): Fix for the case that the current
25521 buffer is different from coding->src_object.
25522 (decode_coding_object): Don't use the conversion work buffer if
25523 DST_OBJECT is a buffer.
25524
255252008-02-01 Dave Love <fx@gnu.org>
25526
25527 * lread.c (read_emacs_mule_char) [len==2]: Index
25528 emacs_mule_charset correctly.
25529
255302008-02-01 Dave Love <fx@gnu.org>
25531
25532 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
25533 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
25534 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
25535 treated specially.)
25536 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
25537 (detected_mask): Remove Big5 bits.
25538
255392008-02-01 Kenichi Handa <handa@m17n.org>
25540
25541 The following changes are to make the font rescaling facility
25542 compatible with Emacs 21.
25543
25544 * xfaces.c (Vface_font_rescale_alist): Rename from
25545 Vface_resizing_fonts.
25546 (struct font_name): Rename member resizing_ratio to rescale_ratio.
25547 (font_rescale_ratio): Rename from font_resizing_ratio.
25548 (split_font_name): Set font->rescale_ratio.
25549 (better_font_p): Pay attention to font->rescale_ratio.
25550 (build_scalable_font_name): Likewise. Change RESX, and RESY
25551 fields.
25552 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
25553
255542008-02-01 Kenichi Handa <handa@m17n.org>
25555
25556 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
25557 (Qutf_16_le): Remove these variables.
25558 (syms_of_coding): Don't DEFSYM them.
25559 (decode_coding_utf_16): Fix handling of BOM.
25560 (encode_coding_utf_16): Fix handling of BOM.
25561
255622008-02-01 Kenichi Handa <handa@m17n.org>
25563
25564 * fileio.c (Finsert_file_contents): On replacing, before decoding
25565 the file into the work buffer, set point of the work buffer to the end.
25566
255672008-02-01 Dave Love <fx@gnu.org>
25568
25569 * coding.c (Fcheck_coding_systems_region): Fix type errors.
25570
255712008-02-01 Dave Love <fx@gnu.org>
25572
25573 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
25574 and fix C types.
25575
255762008-02-01 Kenichi Handa <handa@m17n.org>
25577
25578 * xdisp.c (SKIP_GLYPHS): New macro.
25579 (set_cursor_from_row): Pay attention to string display properties.
25580
25581 * category.c (copy_category_entry): Fix for the case that RANGE
25582 is an integer.
25583
25584 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
25585
25586 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
25587
255882008-02-01 Kenichi Handa <handa@m17n.org>
25589
25590 * charset.c (Fcharset_id_internal): New function.
25591 (syms_of_charset): Defsubr it.
25592
25593 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
25594 with the last arg charset_list acquired from coding.
25595 (Fdefine_coding_system_internal): For ccl-based coding system, fix
25596 the attribute coding_attr_ccl_valids.
25597
25598 * coding.h (enum define_coding_ccl_arg_index): Set the first
25599 member coding_arg_ccl_decoder to coding_arg_max.
25600
25601 * ccl.h (ccl_driver): Adjust prototype.
25602
25603 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
25604 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 25605 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
25606 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
25607 last arg Qnil.
25608
256092008-02-01 Kenichi Handa <handa@m17n.org>
25610
25611 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
25612 call encode_char.
25613
25614 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
25615
256162008-02-01 Dave Love <fx@gnu.org>
25617
25618 * composite.c (syms_of_composite): Make composition_hash_table weak.
25619
256202008-02-01 Kenichi Handa <handa@m17n.org>
25621
25622 * dispextern.h (check_face_attributes, generate_ascii_font_name)
25623 (font_name_registry): Don't extern them.
25624 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
25625
25626 * fontset.h (Qfontset): Don't extern it.
25627 (new_fontset_from_font_name): Extern it.
25628
25629 * fontset.c: Give 8 extra slots to fontset objects.
25630 (Qfontset_info): New variable.
25631 (syms_of_fontset): Defsym it.
25632 (FONTSET_FALLBACK): New macro.
25633 (fontset_face): Try also the default fontset.
25634 (make_fontset): Realize a fallback fontset from the default fontset.
25635 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
25636 using split_font_name_into_vector and build_font_name_from_vector.
25637 (Fset_fontset_font): Access the elements of font_spec by enum
25638 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
25639 name by using split_font_name_into_vector.
25640 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
bba3e508
SM
25641 generate a proper font name from the fontset name.
25642 Update Vfontset_alias_alist.
aac0c6e3
MR
25643 (n_auto_fontsets): New variable.
25644 (new_fontset_from_font_name): New function.
25645 (Ffont_info): Store the information about fonts generated from the
25646 default fontset in the first extra slot of the returned char-table.
25647
25648 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
25649 (font_name_registry): Delete function.
25650 (split_font_name_into_vector): New function.
25651 (build_font_name_from_vector): New function.
25652 (font_list): The argument REGISTRY is now a list of registry names.
25653 (choose_face_font): If we are choosing an ASCII font, and ATTRS
25654 specifies an explicit font name, return the name as is. Make a
25655 list of registy names.
25656
25657 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
25658 of x_new_fontset.
25659 (Fx_create_frame): Don't call x_new_fontset here. Just use
25660 x_list_fonts to check the existence of fonts.
25661
25662 * xterm.h (x_new_fontset): Adjust prototype.
25663
25664 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
25665 string. Use new_fontset_from_font_name to create a fontset from a
25666 font name.
25667
256682008-02-01 Kenichi Handa <handa@m17n.org>
25669
25670 * syntax.c (Vfind_word_boundary_function_table): New name for
25671 Vnext_word_boundary_function_table.
25672 (find-word-boundary-function-table): New name for
25673 next-word-boundary-function-table.
25674
256752008-02-01 Dave Love <fx@gnu.org>
25676
25677 * Makefile.in: Fix some dependencies.
25678
25679 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
25680 set it to nil before returning.
25681
25682 * composite.c (update_compositions): Fix type error.
25683
25684 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
25685
256862008-02-01 Kenichi Handa <handa@m17n.org>
25687
25688 * xterm.c (x_new_font): Optimize for the case that the font is
25689 already set for the frame.
25690
256912008-02-01 Kenichi Handa <handa@m17n.org>
25692
25693 * chartab.c (char_table_ascii): Check if the char table contents
25694 is sub-char-table or not.
25695 (char_table_set, char_table_set_range): Fix argument to
25696 char_table_ascii.
25697
25698 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
25699 (detect_coding_utf_8, detect_coding_utf_16)
25700 (detect_coding_emacs_mule, detect_coding_iso_2022)
25701 (detect_coding_sjis, detect_coding_big5)
25702 (detect_coding_ccl, detect_coding_charset): Change argument MASK
25703 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
25704 sequence is valid in this coding system. Change callers.
25705 (MAX_ANNOTATION_LENGTH): New macro.
25706 (ADD_ANNOTATION_DATA): New macro.
bba3e508
SM
25707 (ADD_COMPOSITION_DATA): Change argument. Change callers.
25708 Call ADD_ANNOTATION_DATA. Change the format of annotation data.
aac0c6e3
MR
25709 (ADD_CHARSET_DATA): New macro.
25710 (emacs_mule_char): New argument ID. Change callers.
25711 (decode_coding_emacs_mule, decode_coding_iso_2022)
25712 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
25713 Produce charset annotation data in coding->charbuf.
25714 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
25715 to charset annotation data in coding->charbuf.
25716 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
25717 coding->common_flags if the coding system is iso-2022 based and
25718 uses designation.
25719 (produce_composition): Adjust for the new annotation data format.
25720 (produce_charset): New function.
25721 (produce_annotation): Handle charset annotation.
bba3e508
SM
25722 (handle_composition_annotation, handle_charset_annotation):
25723 New functions.
aac0c6e3
MR
25724 (consume_chars): Handle charset annotation. Utilize the above two
25725 functions.
25726 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
25727 buffer, get the deleted text as a string and set
25728 coding->src_object to that string.
25729 (detect_coding, detect_coding_system): Use the new struct
25730 coding_detection_info.
25731
25732 * coding.h (struct coding_detection_info): New structure.
25733 (struct coding_system): Adjust prototype of the member `detector'.
25734 (CODING_ANNOTATE_CHARSET_MASK): New macro.
25735
257362008-02-01 Kenichi Handa <handa@m17n.org>
25737
25738 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
25739
257402008-02-01 Dave Love <fx@gnu.org>
25741
25742 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
25743 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
25744 to new local and nullify apropos_accumulate before returning.
25745 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
25746
257472008-02-01 Kenichi Handa <handa@m17n.org>
25748
25749 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
25750 correctly.
e3eea1fc 25751
aac0c6e3
MR
257522008-02-01 Dave Love <fx@gnu.org>
25753
25754 * fns.c (Flanginfo): Call synchronize_system_time_locale.
25755
257562008-02-01 Kenichi Handa <handa@m17n.org>
25757
25758 The following changes are to make character composition happen
25759 automatically on displaying.
25760
25761 * Makefile.in (lisp, shortlisp): Add composite.elc.
25762
25763 * composite.h (Qauto_composed, Vauto_composition_function)
25764 (Qauto_composition_function): Extern them.
25765
25766 * composite.c (Vcomposition_function_table)
25767 (Qcomposition_function_table): Delete variables.
25768 (Qauto_composed, Vauto_composition_function)
25769 (Qauto_composition_function): New variables.
25770 (run_composition_function): Don't call
25771 compose-chars-after-function.
25772 (update_compositions): Clear `auto-composed' text property.
25773 (compose_chars_in_text): Delete this function.
25774 (syms_of_composite): Staticpro Qauto_composed and
25775 Qauto_composition_function. Declare Vauto_composition_function as
25776 a Lisp variable.
25777
25778 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
25779
25780 * xdisp.c (it_props): Add an entry for Qauto_composed.
25781 (handle_auto_composed_prop): New function.
25782
25783 * xselect.c (selection_data_to_lisp_data): Don't call
25784 compose_chars_in_text.
25785
257862008-02-01 Dave Love <fx@gnu.org>
25787
25788 * keyboard.c (read_char): Modify checking around use of
25789 Vkeyboard_translate_table.
25790
25791 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
25792 and fix C types.
25793
257942008-02-01 Kenichi Handa <handa@m17n.org>
25795
25796 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
25797 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
25798 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
25799 the case that the last byte is '\r' correctly.
25800 (decode_coding): Flush out the unprocessed data correctly.
25801 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
25802
258032008-02-01 Dave Love <fx@gnu.org>
25804
25805 * xterm.c (XTread_socket): Fix changes for defined keysyms.
25806 Add XK_ISO... case.
25807 (xaw_scroll_callback): Revert last change.
25808
258092008-02-01 Kenichi Handa <handa@m17n.org>
25810
25811 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
25812
258132008-02-01 Kenichi Handa <handa@m17n.org>
25814
25815 * xfaces.c (Vface_resizing_fonts): New variable.
25816 (struct font_name): New member `resizing_ratio'.
25817 (font_resizing_ratio): New function.
25818 (split_font_name): Set font->resizing_ratio.
25819 (better_font_p): Pay attention to font->resizing_ratio.
25820 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
25821 RESX, and RESY fields.
25822 (try_alternative_families): Try scalable fonts if
25823 Vscalable_fonts_allowed is not Qt.
25824 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
25825
258262008-02-01 Dave Love <fx@gnu.org>
25827
25828 * xterm.c (xaw_scroll_callback): Cast correctly.
25829
258302008-02-01 Dave Love <fx@gnu.org>
25831
25832 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
25833 (lispy_kana_keys): Comment out.
25834 (make_lispy_event) [XK_kana_A]: Comment out.
25835
25836 * xterm.c (xaw_scroll_callback): Cast call_data.
25837 (XTread_socket): Deal with ASCII keysyms.
25838 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
25839
258402008-02-01 Dave Love <fx@gnu.org>
25841
25842 * xterm.c (Vx_keysym_table): New.
25843 (syms_of_xterm): Initialize it.
25844 (XTread_socket): Use it.
25845 From head: Eliminate incorrect optimization that tried to avoid
25846 decoding the output of X*LookupString.
25847 (x_get_font_repertory): Delete charset declaration.
25848
258492008-02-01 Kenichi Handa <handa@m17n.org>
25850
25851 * coding.c (detect_coding_charset): If only ASCII bytes are found,
25852 return 0.
bba3e508
SM
25853 (Fdefine_coding_system_internal):
25854 Setup CODING_ATTR_ASCII_COMPAT (attrs) correctly.
aac0c6e3
MR
25855
258562008-02-01 Dave Love <fx@gnu.org>
25857
25858 * coding.c (Fcheck_coding_system): Doc fix.
25859
25860 * editfns.c (Finsert_byte): Return a proper value.
25861
258622008-02-01 Kenichi Handa <handa@m17n.org>
25863
bba3e508
SM
25864 * coding.c (decode_coding): Fix args to translate_chars.
25865 Pay attention to Vstandard_translation_table_for_decode.
aac0c6e3
MR
25866 (encode_coding): Fix args to translate_chars. Pay attention to
25867 Vstandard_translation_table_for_encode.
25868
25869 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
25870 SINGLE_BYTE_CHAR_P.
25871
25872 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
25873 not by SINGLE_BYTE_CHAR_P.
25874
25875 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
25876 SINGLE_BYTE_CHAR_P.
25877
25878 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
25879 SINGLE_BYTE_CHAR_P.
25880
25881 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
25882 by SINGLE_BYTE_CHAR_P.
25883
25884 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
25885 SINGLE_BYTE_CHAR_P.
25886
258872008-02-01 Dave Love <fx@gnu.org>
25888
25889 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
25890
258912008-02-01 Dave Love <fx@gnu.org>
25892
25893 * fns.c (Flanginfo): Fix typo.
25894
25895 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
25896
258972008-02-01 Kenichi Handa <handa@m17n.org>
25898
25899 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
25900 (detect_coding_emacs_mule, detect_coding_iso_2022)
25901 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
25902 incomplete byte sequence. Don't update *mask when correctly detected.
25903 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
25904 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
25905 (detect_coding, detect_coding_system): Adjust for the changes above.
25906
259072008-02-01 Kenichi Handa <handa@m17n.org>
25908
25909 * character.c (char_string): Rename from
25910 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
25911 (string_char): Rename from string_char.
25912
25913 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
25914 if C is greater than MAX_3_BYTE_CHAR.
bba3e508
SM
25915 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE):
25916 Call string_char instead of string_char_with_unification.
aac0c6e3
MR
25917
259182008-02-01 Dave Love <fx@gnu.org>
25919
25920 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
25921
259222008-02-01 Kenichi Handa <handa@m17n.org>
25923
25924 * keymap.c (push_key_description): Pay attention to force_multibyte.
25925
25926 * regex.c (re_search_2): Fix for the case of unibyte buffer.
25927
259282008-02-01 Dave Love <fx@gnu.org>
25929
25930 * charset.c (define_charset_internal): Rename `supprementary'.
25931
25932 * Makefile.in (lisp, shortlisp): Remove latin-N.
25933
259342008-02-01 Dave Love <fx@gnu.org>
25935
25936 * xfns.c (x_window, x_window): Use use_xim.
25937
25938 * xterm.c (use_xim): Initialize.
25939 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
25940 (x_term_init): Maybe set use_xim.
25941
25942 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
25943
259442008-02-01 Kenichi Handa <handa@m17n.org>
25945
25946 * search.c (search_buffer): Fix case-fold-search of multibyte
25947 characters.
25948 (boyer_moore): Rename the last argument to char_high_bits.
25949
259502008-02-01 Kenichi Handa <handa@m17n.org>
25951
25952 * xdisp.c (display_string): Fix for the case of zero width glyph.
25953
25954 * xfns.c (x_set_font): Change the error message of the case that
25955 x_new_fontset returns Qt.
25956
25957 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
25958 (Finternal_set_lisp_face_attribute): Use signal_error for the
25959 error of invalid fontset.
25960
25961 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
25962 fontset, return Qt.
25963
259642008-02-01 Dave Love <fx@gnu.org>
25965
25966 * unexelf.c (unexec): Make .got handling not SGI-specific.
25967
25968 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
25969
25970 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
25971
25972 * keyboard.c (read_key_sequence): Fix type error.
25973
bba3e508
SM
25974 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte):
25975 Fix type error.
aac0c6e3
MR
25976
25977 * fontset.c (fontset_add): Return Lisp_Object.
25978
259792008-02-01 Dave Love <fx@gnu.org>
25980
25981 * charset.h (charset_ordered_list_tick): Declare extern.
25982
259832008-02-01 Kenichi Handa <handa@m17n.org>
25984
25985 The following changes (and some of 2008-02-01 changes of mine) are
25986 for handling syntax, category, and case conversion for unibyte
25987 characters by converting them to multibyte on the fly. With these
25988 changes, we don't have to setup syntax and case tables for unibyte
25989 characters in each language environment.
25990
25991 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
25992 multibyte if necessary.
25993
25994 * bytecode.c (Fbyte_code): Likewise.
25995
25996 * character.h (LEADING_CODE_LATIN_1_MIN)
25997 (LEADING_CODE_LATIN_1_MAX): New macros.
25998 (unibyte_to_multibyte_table): Extern it.
25999 (unibyte_char_to_multibyte): New macro.
26000 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
26001 (CHAR_LEADING_CODE): New macro.
26002 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
26003
26004 * character.c (unibyte_to_multibyte_table): New variable.
26005 (unibyte_char_to_multibyte): Move to character.h and define as macro.
26006 (multibyte_char_to_unibyte): If C is an eight-bit character,
26007 convert it to the corresponding byte value.
26008
26009 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
26010 not 1, signals an error. Update the elements of
26011 unibyte_to_multibyte_table.
26012 (init_charset_once): Initialize unibyte_to_multibyte_table.
26013 (syms_of_charset): Define the charset `iso-8859-1'.
26014
26015 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
26016 as is without converting it to unibyte. In a unibyte buffer,
26017 convert C to multibyte before checking the syntax.
26018
26019 * lisp.h (unibyte_char_to_multibyte): Delete extern.
26020
26021 * minibuf.c (Fminibuffer_complete_word): Use the macro
26022 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
26023
26024 * regex.h (struct re_pattern_buffer): New member target_multibyte.
26025
26026 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
bba3e508
SM
26027 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte.
26028 If that is zero, convert an eight-bit char to multibyte.
aac0c6e3
MR
26029 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
26030 non-emacs case.
26031 (PATFETCH): Convert an eight-bit char to multibyte.
26032 (HANDLE_UNIBYTE_RANGE): New macro.
26033 (regex_compile): Setup the compiled pattern for multibyte chars
26034 even if the given regex string is unibyte. Use PATFETCH_RAW
26035 instead of PATFETCH in many places. To handle `charset'
26036 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
26037 only for ASCII chars.
26038 (analyse_first) <exactn>: Simplify because the compiled pattern
26039 is multibyte.
26040 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
26041 <charset>: Use CHAR_LEADING_CODE to get leading codes.
26042 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
26043 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
26044 multibyte always 1.
26045 (re_search_2): In emacs, set the locale variable multibyte to 1,
26046 otherwise to 0. New local variable target_multibyte. Check it
bba3e508
SM
26047 to decide the multibyteness of STR1 and STR2.
26048 If target_multibyte is zero, convert unibyte chars to multibyte
aac0c6e3
MR
26049 before translating and checking fastmap.
26050 (TARGET_CHAR_AND_LENGTH): New macro.
26051 (re_match_2_internal): In emacs, set the locale variable multibyte
bba3e508
SM
26052 to 1, otherwise to 0. New local variable target_multibyte.
26053 Check it to decide the multibyteness of STR1 and STR2.
26054 Use TARGET_CHAR_AND_LENGTH to fetch a character from D.
aac0c6e3
MR
26055 <charset, charset_not>: If multibyte is nonzero, check fastmap
26056 only for ASCII chars. Call bcmp_translate with
26057 target_multibyte, not with multibyte.
26058 <begline>: Declare the local variable C as `unsigned'.
26059 (bcmp_translate): Change the last arg name to target_multibyte.
26060
26061 * search.c (compile_pattern_1): Don't adjust the multibyteness of
26062 the regexp pattern and the matching target. Set cp->buf.multibyte
26063 to the multibyteness of the regexp pattern. Set
26064 cp->but.target_multibyte to the multibyteness of the matching target.
26065 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
26066 FETCH_STRING_CHAR_ADVANCE.
26067 (Freplace_match): Convert unibyte chars to multibyte.
26068
26069 * syntax.c (char_quoted, back_comment, scan_words)
26070 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
26071 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
26072 unibyte chars to multibyte.
26073 (skip_chars): Delete the arg syntaxp, and move the code for
26074 handling syntaxes to skip_syntaxes. Change callers.
26075 Fix the case that the multibyteness of STRING and the current
26076 buffer doesn't match.
26077 (skip_syntaxes): New function.
26078 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
26079 SINGLE_BYTE_CHAR_P.
26080
260812008-02-01 Kenichi Handa <handa@m17n.org>
26082
26083 * xfaces.c (QCfontset): New variable.
26084 (LFACE_FONTSET): New macro.
26085 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
26086 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
26087 (Finternal_set_lisp_face_attribute)
26088 (Finternal_get_lisp_face_attribute): Handle QCfontset.
26089 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
26090 check also LFACE_FONTSET_INDEX.
26091 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
26092 attrs[LFACE_FONT_INDEX].
26093 (syms_of_xfaces): Intern and staticpro QCfontset.
26094
26095 * dispextern.h (enum lface_attribute_index): New member
26096 LFACE_FONTSET_INDEX.
26097
26098 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
26099
261002008-02-01 Kenichi Handa <handa@m17n.org>
26101
26102 * coding.c (coding_set_destination): Fix coding->destination for
26103 the case converting a region.
26104 (encode_coding_utf_8): Encode eight-bit chars as single byte.
26105 (encode_coding_object): Fix coding->dst_pos and
26106 coding->dst_pos_byte for the case converting a region.
26107
26108 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
26109
26110 * character.h (BYTE8_STRING): New macro.
26111
26112 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
26113
261142008-02-01 Kenichi Handa <handa@m17n.org>
26115
26116 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
26117 characters by octal form.
26118
26119 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
26120
26121 * buffer.h (_fetch_multibyte_char_len): Delete extern.
26122 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
26123 _fetch_multibyte_char_len.
26124 (FETCH_CHAR_AS_MULTIBYTE): New macro.
26125
26126 * casetab.c (set_canon, set_identity, shuffle): Simplify.
26127
26128 * casefiddle.c (casify_object): Simplify. Handle the case that
26129 the case conversion change the byte length.
26130 (casify_region): Likewise.
26131
26132 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
26133
26134 * character.c (_fetch_multibyte_char_len): Delete this variable.
26135 (syms_of_character): Setup Vprintable_chars.
26136
26137 * editfns.c (Fchar_equal): Fix for the unibyte case.
26138 (Finsert_byte): New function.
26139 (syms_of_editfns): Defsubr it.
26140
26141 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
26142 of direct code 0x3ffff.
26143
26144 * search.c (Freplace_match): Fix for the unibyte case.
26145
261462008-02-01 Kenichi Handa <handa@m17n.org>
26147
26148 * lread.c (safe_to_load_p): Fix the logic.
26149
26150 * syntax.c (scan_words): Don't treat characters belonging to
26151 different scripts as constituting a word.
26152
26153 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
26154
26155 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
26156
26157 * emacs.c (main): In the case of --unibyte, instead of aborting on
26158 finding non-empty buffer, make it unibyte.
26159
261602008-02-01 Kenichi Handa <handa@m17n.org>
26161
26162 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
26163 to create a fontset.
26164
261652008-02-01 Dave Love <fx@gnu.org>
26166
26167 * character.c (Funibyte_char_to_multibyte): Doc fix.
26168
26169 * xfns.c [HAVE_STDLIB_H]: Fix last change.
26170
261712008-02-01 Kenichi Handa <handa@m17n.org>
26172
26173 * fontset.c (fontset_add): Make the type `int'.
26174 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
26175
26176 * character.c (unibyte_char_to_multibyte)
26177 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
26178 charset_unibyte, not charset_primary.
26179
26180 * charset.h (charset_unibyte): Extern it instead of charset_primary.
26181
26182 * charset.c (charset_unibyte): Rename from charset_primary.
26183 (Funibyte_charset): Rename from Fprimary_charset.
26184 (Fset_unibyte_charset): Rename from Fset_primary_charset.
26185 (syms_of_charset): Adjust for the above changes.
26186
26187 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
26188 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
26189 it->multibyte_p is zero.
26190
26191 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
26192 Delete extern.
26193
261942008-02-01 Kenichi Handa <handa@m17n.org>
26195
26196 * coding.c (Fdefine_coding_system_internal): Fix category setting
26197 for a coding system of type iso-2022.
26198
261992008-02-01 Kenichi Handa <handa@m17n.org>
26200
26201 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
26202
262032008-02-01 Kenichi Handa <handa@m17n.org>
26204
26205 * syntax.c (Vnext_word_boundary_function_table): New variable.
26206 (next-word-boundary-function-table): Declare it as a Lisp variable
26207 in syms_of_syntax.
26208 (scan_words): Call functions in Vnext_word_boundary_function_table
26209 if any.
26210
26211 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
26212
26213 * fontset.c (fs_load_font): If fontp->charset is not negative,
26214 return fontp without setting its members.
26215
262162008-02-01 Dave Love <fx@gnu.org>
26217
26218 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
26219
26220 * m/sparc.h (HAVE_ALLOCA): Delete.
26221
26222 * s/irix6-5.h: Don't include strings.h.
26223 (bcopy, bzero, bcmp): Don't undef.
26224
26225 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
26226
26227 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
26228 (TIOCSIGSEND): Don't test IRIX6.
26229 (bcopy, bzero, bcmp): Define conditionally.
26230
262312008-02-01 Kenichi Handa <handa@m17n.org>
26232
26233 * buffer.c (Qas, Qmake, Qto): New variables.
26234 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
26235 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
26236
26237 * callproc.c (Fcall_process): Don't call insert_1_both directly if
26238 we are inserting a process output into a multibyte buffer.
26239
26240 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
26241 multibyte_char_to_unibyte.
26242
26243 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
26244 by the primary charset, make it eight-bit char.
26245 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
26246
26247 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
26248 (charset_8_bit__control, charset_8_bit_graphic)
26249 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
26250 (define_charset_internal): New function.
26251 (syms_of_charset): Call define_charset_internal for pre-defined
26252 charsets.
26253
26254 * charset.h (charset_8_bit): Extern it.
26255
26256 * coding.c (make_conversion_work_buffer): Adjust for the change
26257 of Fset_buffer_multibyte.
26258 (encode_coding_raw_text): Increment p0 in the loop.
26259
26260 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
26261
bba3e508
SM
26262 * xdisp.c (setup_echo_area_for_printing, set_message_1):
26263 Adjust for the change of Fset_buffer_multibyte.
aac0c6e3
MR
26264
26265 * fns.c (Fstring_to_multibyte): New function.
26266 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
26267
262682008-02-01 Dave Love <fx@gnu.org>
26269
26270 * xfns.c (x_put_x_image): Declare args.
26271
26272 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
26273 (try_font_list): Declare an arg.
26274
26275 * xdisp.c (message2_nolog, set_message): Declare an arg.
26276
26277 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
26278
26279 * syntax.c (scan_sexps_forward): Declare an arg.
26280
26281 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
26282 Declare an arg.
26283
26284 * lisp.h (Fnew_fontset): Declare.
26285
26286 * keymap.c (push_key_description): Call CHARACTERP correctly.
26287
26288 * fontset.c (fontset_add): Declare args. Call make_number correctly.
26289 (face_for_char): Delete unused vars.
26290 (Fset_fontset_font): Doc fix. Delete unused vars.
26291
26292 * doc.c (Fsubstitute_command_keys): Delete unused vars.
26293
26294 * composite.c (update_compositions): Declare arg.
26295
26296 * cm.c (calccost, cmgoto): Declare args.
26297
26298 * charset.c: Remove `emacs' conditional. Doc fixes.
26299 (map_char_table_for_charset): Declare.
26300
26301 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
26302
26303 * ccl.c: Remove `emacs' conditional.
26304
263052008-02-01 Kenichi Handa <handa@m17n.org>
26306
26307 The following changes are to allow specifying multiple font
26308 patterns for a character range (specified by script or charset).
26309
26310 * Makefile.in (abbrev.o): Depend on syntax.h.
26311 (xfaces.o): Depend on charset.h.
26312
26313 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
26314 SINGLE_BYTE_CHAR_P.
26315
26316 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
26317
26318 * character.h (Vchar_script_table): Extern it.
26319
26320 * character.c (Vscript_alist): Delete.
26321 (Vchar_script_table, Qchar_script_table): New variable.
26322 (syms_of_character): Declare Vchar_script_table as a lisp variable
26323 and initialize it.
26324
26325 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
26326 have property char-table-extra-slots, make no extra slot.
26327
26328 * dispextern.h (struct face): Delete member `charset'.
26329 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
26330 SINGLE_BYTE_CHAR_P.
26331 (choose_face_font, lookup_non_ascii_face, font_name_registry):
26332 Add prototypes.
26333 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
26334 (generate_ascii_font_name): Rename from generate_ascii_font.
26335
26336 * fontset.h (get_font_repertory_func): New prototype.
26337 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
26338 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
26339
26340 * fontset.c (Qprepend, Qappend): New variables.
26341 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
26342 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
26343 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
26344 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
26345 (fontset_ref_and_range, fontset_add, reorder_font_vector)
26346 (load_font_get_repertory): New functions.
26347 (fontset_set): Delete.
26348 (fontset_face): New arg FACE. Return face ID, not face.
26349 Complete re-write to handle new fontset structure. Change caller.
26350 (free_face_fontset): Use ASET istead of AREF (X) = Y.
26351 (face_for_char): Don't call lookup_face.
26352 (make_fontset_for_ascii_face): New arg FACE.
26353 (fs_load_font): New arg CHARSET_ID. Don't check
26354 Vfont_encoding_alist here.
26355 (find_font_encoding): New function.
26356 (list_fontsets): Use STRINGP, not ! NILP.
26357 (accumulate_script_ranges): New function.
bba3e508
SM
26358 (Fset_fontset_font, Fnew_fontset, Ffontset_info):
26359 Completely re-written to handle new fontset structure.
aac0c6e3 26360 (Ffontset_font): Return a copy of element.
bba3e508
SM
26361 (syms_of_fontset): Define symbols Qprepend and Qappend.
26362 Fix docstring of font-encoding-alist.
aac0c6e3
MR
26363
26364 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
26365 (Fset_fotset_font): Fix arguments to 5.
26366
26367 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
26368
26369 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
26370 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
26371 (highlight_trailing_whitespace): Adjust for the change of
26372 lookup_named_face.
26373
26374 * xfaces.c: Include charset.h.
26375 (load_face_font): Delete argument C. Change caller.
26376 (generate_ascii_font_name): Rename from generate_ascii_font.
26377 (font_name_registry): New function.
26378 (cache_face): Store ascii faces before non-ascii faces in buckets.
26379 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
26380 Lookup only ascii faces.
26381 (lookup_non_ascii_face): New function.
26382 (lookup_named_face): Delete argument C. Change caller.
26383 (lookup_derived_face): Delete argument C. Change caller.
26384 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
26385 a string, just call font_list with it.
26386 (choose_face_font): Delete arguments FACE and C. New arg
26387 FONT_SPEC. Change caller.
26388 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
26389 Change caller.
26390 (realize_non_ascii_face): New function.
26391 (realize_x_face): Call load_face_font here.
26392 (realize_tty_face): Delete argument C. Change caller.
26393 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
26394 get a face ID.
26395 (dump_realized_face): Don't print charset of FACE.
26396
26397 * xfns.c (x_set_font): Always call x_new_fontset and
26398 store_frame_parameter.
26399 (Fx_create_frame): Call x_new_fontset, not x_new_font.
26400 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
26401
26402 * xterm.h (x_get_font_repertory): Extern it.
26403
26404 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
26405 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
26406 it->multibyte_p is zero.
26407 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
26408 (x_new_fontset): If FONTSETNAME doesn't match any existing
26409 fontsets, create a new one.
26410 (x_get_font_repertory): New function.
26411
264122008-02-01 Kenichi Handa <handa@m17n.org>
26413
26414 * coding.c (Ffind_coding_systems_region_internal): Detect an
26415 ASCII only string correctly.
26416
26417 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
26418 version is 0.
26419
264202008-02-01 Kenichi Handa <handa@m17n.org>
26421
26422 * lread.c: Include "coding.h".
26423 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
26424 (load_each_byte, unread_char): New variables.
26425 (readchar_backlog): Delete.
26426 (readchar): Return a character unless load_each_byte is nonzero.
26427 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
26428 cons. If unread_char is not -1, simply return it.
26429 (unreadchar): Handle the case that readcharfun is
26430 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
26431 (read_multibyte): Delete.
26432 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
26433 (read_emacs_mule_char): New functions.
26434 (Fload): Even if the file doesn't have the extension ".elc", if
26435 safe_to_load_p returns a positive version number, assume that the
26436 file contains bytecompiled code. If the version is less than 22,
26437 load the file while decoding multibyte sequences by emacs-mule.
26438 (readevalloop): Don't use readchar_backlog.
26439 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
26440 (Fread_from_string): Pay attention to the case that STREAM is a cons.
26441 (read_escape): Delete the arg BYTEREP.
26442 (read1): Set load_each_byte to 1 temporarily while handling
26443 #@NUMBER. Don't call read_multibyte.
26444 (read_vector): Call Fread with a cons. If readcharfun is
26445 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
26446 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
26447 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
26448 and Qload_force_doc_strings.
26449
264502008-02-01 Kenichi Handa <handa@m17n.org>
26451
bba3e508
SM
26452 * xdisp.c (face_before_or_after_it_pos):
26453 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
aac0c6e3
MR
26454
264552008-02-01 Kenichi Handa <handa@m17n.org>
26456
26457 * character.h (TRAILING_CODE_P): New macro.
26458 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
26459 (string_char_with_unification): Fix prototype.
26460 (Vscript_alist): Extern it.
26461
26462 * character.c (Vscript_alist): New variable.
26463 (string_char_with_unification, str_as_unibyte)
26464 (string_escape_byte8): Add `const' to local variables.
26465 (syms_of_character): Declare script-alist as a Lisp variable.
26466
26467 * charset.h (Vcharset_ordered_list): Extern it.
26468 (charset_ordered_list_tick): Extern it.
26469 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
26470 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
26471 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
26472 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
26473 (Funify_charset): Adjust for the change of Funify_charset.
26474
26475 * charset.c (charset_ordered_list_tick): New variable.
26476 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
26477 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6e051c0a 26478 deunify instead of unify a charset.
aac0c6e3
MR
26479 (string_xstring_p): Add `const' to local variables.
26480 (find_charsets_in_text): Add `const' to arguments and local variables.
bba3e508
SM
26481 (encode_char): Adjust for the change of Funify_charset.
26482 Fix detecting of invalid code.
aac0c6e3
MR
26483 (Fset_charset_priority): Increment charset_ordered_list_tick.
26484 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
26485 and TO_CODE.
26486
26487 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
26488 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
26489 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
26490 (decode_coding_ccl, consume_chars)
26491 (Ffind_coding_systems_region_internal)
26492 (Fcheck_coding_systems_region): Add `const' to local variables.
26493
26494 * print.c (print_object): Use octal form for printing the
26495 contents of a bool vector.
26496
264972008-02-01 Dave Love <fx@gnu.org>
26498
26499 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
26500 <version == 20>: Refuse to load.
26501
265022008-02-01 Dave Love <fx@gnu.org>
26503
26504 * fns.c: Move coding.h.
26505 (Qcodeset, Qdays, Qmonths): New.
26506 (concat): Use CHARACTERP instead of INTEGERP.
26507 (Flocale_codeset): Delete.
26508 (Flanginfo): New function.
26509 (syms_of_fns): Change accordingly.
26510
26511 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
26512
265132008-02-01 Dave Love <fx@gnu.org>
26514
bba3e508
SM
26515 * casetab.c (init_casetab_once, init_casetab_once):
26516 Fix CHAR_TABLE_SET call.
aac0c6e3
MR
26517
26518 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
26519
26520 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
26521
26522 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
26523 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
26524 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
26525
26526 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
26527
26528 * coding.c (ENCODE_DESIGNATION, decode_eol)
26529 (make_conversion_work_buffer, code_conversion_restore)
26530 (Fdefine_coding_system_internal): Convert Lisp types.
26531 (code_conversion_restore): Use EQ, not ==.
26532 (Fencode_coding_string): Fix code_convert_string call.
26533
26534 * coding.h (code_convert_region): Fix prototype.
26535
26536 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
26537
26538 * fontset.c (fontset_ref, fontset_set, fs_load_font)
26539 (Ffontset_info): Convert Lisp types.
26540
26541 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
26542
26543 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
26544
26545 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
26546
26547 * chartab.c: Include "...h", not <...h> in some cases.
26548
26549 * callproc.c (Fcall_process): Remove unused variables.
26550
265512008-02-01 Dave Love <fx@gnu.org>
26552
26553 * coding.c (Fset_coding_system_priority): Allow null arg list.
26554
265552008-02-01 Dave Love <fx@gnu.org>
26556
26557 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
26558 (Fself_insert_and_exit): Use CHARACTERP.
26559
26560 * callproc.c (Fcall_process): Remove unused vars.
26561
26562 * xterm.c (XTread_socket): Add extra dead keysyms.
26563
26564 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
26565
26566 * dispextern.h: Remove prototypes for redraw_frame,
26567 redraw_garbaged_frames.
26568
26569 * cmds.c (Fself_insert_command): Use CHARACTERP.
26570
26571 * chartab.c (make_sub_char_table): Remove unused var.
26572 (Fset_char_table_default, Fmap_char_table): Doc fix.
26573
26574 * keymap.c (access_keymap): Remove generic char code.
26575 (push_key_description): Use CHARACTERP.
26576
265772008-02-01 Dave Love <fx@gnu.org>
26578
26579 * charset.c: Doc fixes.
26580 (Funify_charset): Extra checking.
26581
265822008-02-01 Dave Love <fx@gnu.org>
26583
26584 * lread.c: Remove some unused variables.
26585 (safe_to_load_p): If safe, return the magic number version byte.
26586 (Fload): Maybe use load-with-code-conversion.
26587
265882008-02-01 Kenichi Handa <handa@m17n.org>
26589
26590 * category.c (Fmodify_category_entry): Don't modify the contents
bba3e508
SM
26591 of category_set for characters out of the range.
26592 Avoid unnecessary modification.
aac0c6e3
MR
26593
26594 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
26595 Vchar_unify_table. The default value of the table is now nil.
26596
26597 * character.c (syms_of_character): Setup Vchar_width_table for
26598 eight-bit-control and raw-byte chars.
26599
bba3e508
SM
26600 * charset.h (enum define_charset_arg_index):
26601 Delete charset_arg_parents and add charset_arg_subset and
aac0c6e3
MR
26602 charset_arg_superset.
26603 (enum charset_attr_index): Delete charset_parents and add
26604 charset_subset and charset_superset.
26605 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
26606 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
26607 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
26608 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
26609 (CHARSET_SUPERSET): New macros.
26610 (charset_work): Extern it.
26611 (ENCODE_CHAR): Use charset_work.
26612 (CHAR_CHARSET_P): Adjust for the change of encoder format.
26613 (map_charset_chars): Extern it.
26614
26615 * charset.c (load_charset_map): Set the default value of encoder
26616 and deunifier char-tables to nil.
bba3e508
SM
26617 (map_charset_chars): Change argument. Change callers.
26618 Use map_char_table_for_charset instead of map_char_table.
aac0c6e3
MR
26619 (Fmap_charset_chars): New optional args from_code and to_code.
26620 (Fdefine_charset_internal): Adjust for the change of
26621 `define-charset' (:parents -> :subset or :superset).
26622 (charset_work): New variable.
26623 (encode_char, syms_of_charset): Adjust for the change of
26624 Fdefine_charset_internal.
26625 (Ffind_charset_string): Setup the vector `charsets' correctly.
26626
bba3e508
SM
26627 * chartab.c (sub_char_table_ref_and_range): New arg default.
26628 Fix the previous change.
aac0c6e3
MR
26629 (char_table_ref_and_range): Adjust for the above change.
26630 (map_sub_char_table_for_charset): New function.
26631 (map_char_table_for_charset): New function.
26632
26633 * keymap.c (describe_vector): Handle a char-table directly here.
26634 (describe_char_table): Delete.
26635
26636 * lisp.h (map_charset_chars): Delete.
26637
266382008-02-01 Dave Love <fx@gnu.org>
26639
26640 * fns.c (count_combining): Comment out (unused).
26641 (Flocale_codeset): New.
26642 (syms_of_fns): Defsubr it.
26643
26644 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
26645 (size_t): Remove.
26646
266472008-02-01 Dave Love <fx@gnu.org>
26648
26649 * Makefile.in (chartab.o): Depend on charset.h.
26650
266512008-02-01 Kenichi Handa <handa@m17n.org>
26652
26653 * character.c (syms_of_character): Set the default value of
26654 Vprintable_chars to Qnil.
26655
266562008-02-01 Dave Love <fx@gnu.org>
26657
26658 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
26659
266602008-02-01 Kenichi Handa <handa@m17n.org>
26661
26662 * charset.c (load_charset_map): Handle the case that from < to
26663 correctly.
26664
26665 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
26666 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
26667 Pay attention to raw-8-bit chars.
26668
266692008-02-01 Kenichi Handa <handa@m17n.org>
26670
26671 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
26672 It is not bytecompiled now.
26673
26674 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
26675 (charset_jisx0208): New variables.
26676 (Fdefine_charset_internal): Setup them if appropriate.
26677 (init_charset_once): Initialize them to -1.
26678
26679 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
26680 (charset_jisx0208): Extern them.
26681
26682 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
26683 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
26684 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
26685 (setup_iso_safe_charsets): Fix arguments to Fassq.
26686 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
26687 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
26688 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
26689 (encode_coding_iso_2022): Change the 1st arg to
26690 ENCODE_ISO_CHARACTER to a variable.
26691
266922008-02-01 Kenichi Handa <handa@m17n.org>
26693
26694 * charset.h (enum define_charset_arg_index): New enums
26695 charset_arg_min_code and charset_arg_max_code.
26696 (struct charset): New member char_index_offset.
26697
26698 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
26699 Take charset->char_index_offset into account.
26700 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
26701 args[charset_arg_max_code]. Setup charset.char_index_offset.
26702 (syms_of_charset): Fix args to Fdefine_charset_internal.
26703
267042008-02-01 Dave Love <fx@gnu.org>
26705
26706 * coding.c (decode_coding_utf_8): Reject overlong sequences.
26707
267082008-02-01 Dave Love <fx@gnu.org>
26709
26710 * coding.c: Doc fixes.
26711 (Fcoding_system_aliases): Fix return value.
26712 (Qmac): Remove (duplicated) definition.
26713
267142008-02-01 Dave Love <fx@gnu.org>
26715
362654a6
JB
26716 * charset.c (Fcharset_priority_list, Fset_charset_priority):
26717 New functions.
aac0c6e3
MR
26718
26719 * character.c (Fstring): Doc fix.
26720
26721 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
26722
362654a6 26723 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
26724 (font-encoding-alist): Doc fix.
26725
267262008-02-01 Dave Love <fx@gnu.org>
26727
26728 * term.c (costs_set): Declare static, non-initialized for pcc.
26729 (encode_terminal_code): Remove unused var.
26730
26731 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
26732 for K&R.
26733
26734 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
26735
26736 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
26737 (suffixes): Move out of make_subsidiaries for K&R.
26738
26739 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
26740
26741 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
26742
267432008-02-01 Dave Love <fx@gnu.org>
26744
26745 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
26746
26747 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
26748
267492008-02-01 Yong Lu <lyongu@asia-infonet.com>
26750
26751 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
26752
26753 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
26754
267552008-02-01 Kenichi Handa <handa@m17n.org>
26756
26757 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
26758 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
26759
267602008-02-01 Kenichi Handa <handa@m17n.org>
26761
26762 * coding.c (decode_coding_charset): Adjust for the change of
26763 Fdefine_coding_system_internal.
26764 (Fdefine_coding_system_internal): For a coding system of
26765 `charset' type, store a list of charset IDs in
26766 `charset_attr_charset_valids' element of coding attributes.
26767
267682008-02-01 Kenichi Handa <handa@m17n.org>
26769
26770 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
bba3e508
SM
26771 (emacs_mule_char): New arg src. Delete arg `composition'.
26772 Change caller. Handle 2-byte and 3-byte charsets correctly.
aac0c6e3
MR
26773 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
26774 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
26775 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
ef1b0ba7
SM
26776 (DECODE_EMACS_MULE_21_COMPOSITION):
26777 Call DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
aac0c6e3
MR
26778 sequence.
26779 (decode_coding_emacs_mule): Handle composition correctly. Rewind
26780 `src' and `consumed_chars' correctly before calling emacs_mule_char.
26781 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
26782 and alt&rule composition.
26783 (decode_coding_iso_2022): Handle composition correctly.
26784 (init_coding_once): Setup emacs_mule_bytes for private charsets.
26785
26786 * charset.c (Fdefine_charset_internal): Fix bug for the case of
26787 re-defining a charset. If the charset has :emacs-mule-id, setup
26788 emacs_mule_bytes.
26789 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
26790
267912008-02-01 Kenichi Handa <handa@m17n.org>
26792
26793 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
26794 (encode_coding_big5, encode_coding_charset): If coding requires safe
26795 encoding, produce a character specified by
26796 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
26797
267982008-02-01 Dave Love <fx@gnu.org>
26799
26800 * xterm.c (XSetIMValues): Declare.
26801
26802 * process.c: Conditionally include sys/wait.h, pty.h.
26803
26804 * print.c (print_object): Fix print format for 64-bit systems.
26805
26806 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
26807
26808 * buffer.c (emacs_strerror): Declare.
26809
26810 * fontset.c (Fclear_face_cache): Declare.
26811 (accumulate_font_info): Comment-out (unused).
26812 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
26813 variables.
26814
26815 * character.h (string_escape_byte8): Declare.
26816
bba3e508
SM
26817 * charset.c (load_charset_map, load_charset_map_from_file):
26818 Remove unused vars.
aac0c6e3
MR
26819 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
26820 (Fmap_charset_chars): Doc fix.
26821
26822 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
26823 (Fset_coding_system_priority, Fset_coding_system_priority)
26824 (Fdefine_coding_system_internal): Doc fix.
26825
268262008-02-01 Dave Love <fx@gnu.org>
26827
26828 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
26829
268302008-02-01 Kenichi Handa <handa@m17n.org>
26831
26832 * character.c (string_escape_byte8): Make multibyte string with
26833 correct size.
26834
26835 * charset.c (Fmake_char): Delete unnecessary code.
26836
268372008-02-01 Kenichi Handa <handa@m17n.org>
26838
26839 * xfns.c (x_encode_text): Allocate coding.destination here, and
26840 call encode_coding_object with dst_object Qnil.
26841
26842 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
26843 multibyte form correctly.
26844
26845 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
26846 against Vfont_encoding_alist.
26847
26848 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
26849 handling of charset list.
26850 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
26851 (decode_coding_object): Move point to coding->dst_pos before
26852 calling post-read-conversion function.
26853 (encode_coding_object): Give correct arguments to
26854 pre-write-conversion. Ignore the return value of
26855 pre-write-conversion function. Pay attention to the case that
26856 pre-write-conversion changes the current buffer. If dst_object is
26857 Qt, even if coding->src_bytes is zero, allocate at least one byte
26858 to coding->destination.
26859
26860 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
26861
26862 * charset.c (Fmake_char): Make it more backward compatible.
26863 (Fmap_charset_chars): Fix docstring.
26864
268652008-02-01 Dave Love <fx@gnu.org>
26866
26867 * coding.c: Doc fixes.
26868 (Fdefine_coding_system_alias): Use names, not symbols, in
26869 coding-system-alist.
26870
268712008-02-01 Kenichi Handa <handa@m17n.org>
26872
26873 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
26874 of calling free_realized_face.
26875
268762008-02-01 Yong Lu <lyongu@asia-infonet.com>
26877
26878 * charset.c (read_hex): Don't treat SPC as a comment starter.
26879 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
26880 (Fdecode_char): Fix typo.
26881
268822008-02-01 Kenichi Handa <handa@m17n.org>
26883
26884 * charset.h (struct charset): New member `code_space_mask'.
26885
26886 * coding.c (coding_set_source): Delete the local variable beg_byte.
26887 (encode_coding_charset, Fdefine_coding_system_internal):
26888 Delete the local variable charset.
bba3e508
SM
26889 (Fdefine_coding_system_internal):
26890 Setup attrs[coding_attr_charset_valids] correctly.
aac0c6e3
MR
26891
26892 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
26893 member to check if CODE is valid or not.
26894 (Fdefine_charset_internal): Initialize `code_space_mask' member.
26895 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
26896 is within the range of charset->min_code and carset->max_code.
26897
268982008-02-01 Dave Love <fx@gnu.org>
26899
26900 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
26901
26902 * dispextern.h (generate_ascii_font): Fix return type.
26903
26904 * xfaces.c (generate_ascii_font): Fix arg declaration.
26905
26906 * coding.c (coding_inherit_eol_type)
26907 (Fset_terminal_coding_system_internal)
26908 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
26909
269102008-02-01 Kenichi Handa <handa@m17n.org>
26911
bba3e508
SM
26912 * coding.c (decode_coding_charset, encode_coding_charset):
26913 Handle multiple charsets correctly.
aac0c6e3
MR
26914
269152008-02-01 Kenichi Handa <handa@m17n.org>
26916
26917 * search.c (boyer_moore): Fix handling of multibyte character
26918 translation.
26919
26920 * xdisp.c (display_mode_element): When the variable `elt' is
26921 changed, update `this' and `lisp_string'.
26922
269232008-02-01 Kenichi Handa <handa@m17n.org>
26924
26925 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
26926
26927 * callproc.c (Fcall_process): Be sure to give the current buffer
26928 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
26929
26930 * charset.c (struct charset_map_entries): New struct.
26931 (load_charset_map): Rename from parse_charset_map. New args
26932 entries and n_entries. Change caller.
26933 (load_charset_map_from_file): Rename from load_charset_map.
26934 Change caller. New arg control_flag. Call load_charset_map at
26935 the tail.
26936 (load_charset_map_from_vector): New function.
26937 (Fdefine_charset_internal): Setup charset.compact_codes_p.
26938 (encode_char): If the charset is compact, change a character index
26939 to a code point.
26940
26941 * coding.c (coding_alloc_by_making_gap): Check the case that the
26942 source and destination are the same correctly.
26943 (decode_coding_raw_text): Set coding->consumed_char and
26944 coding->consumed to 0.
26945 (produce_chars): If coding->chars_at_source is nonzero, update
26946 coding->consumed_char and coding->consumed before calling
26947 alloc_destination.
26948 (Fdefine_coding_system_alias): Register ALIAS in
26949 Vcoding_system_alist.
26950 (syms_of_coding): Define `no-conversion' coding system at the tail.
26951
26952 * fileio.c (Finsert_file_contents): Set coding_system instead of
26953 val. If the current buffer is multibyte, always call
26954 decode_coding_gap.
26955
26956 * xfaces.c (try_font_list): Give higher priority to fontset's
26957 family than face's family.
26958
269592008-02-01 Kenichi Handa <handa@m17n.org>
26960
26961 * callproc.c (Fcall_process): Be sure to give the current buffer
26962 to decode_coding_c_string.
26963
26964 * xfaces.c (try_font_list): Give a family specified in a fontset
26965 higher priority than a family specified in a face.
26966
269672008-02-01 Kenichi Handa <handa@m17n.org>
26968
26969 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
26970 Fix arguments to insert_from_buffer.
26971
26972 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
26973
269742008-02-01 Kenichi Handa <handa@m17n.org>
26975
26976 * coding.c (produce_chars): Set the variable `multibytep' correctly.
26977 (decode_coding_gap): Set coding->dst_multibyte correctly.
26978
269792008-02-01 Kenichi Handa <handa@m17n.org>
26980
26981 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
26982 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
26983 (encode_coding_utf_16): Substitute coding->default_char for
26984 non-Unicode characters.
26985 (decode_coding): Don't call record_insert here.
26986 (setup_coding_system): Initialize `surrogate' of
26987 coding->spec.utf_16 to 0.
26988 (EMIT_ONE_BYTE): Fix for multibyte case.
26989
26990 * insdel.c (insert_from_gap): Call record_insert.
26991
269922008-02-01 Kenichi Handa <handa@m17n.org>
26993
26994 * casefiddle.c (casify_region): Fix multibyte case.
26995
26996 * character.c (c_string_width): Add return type `int'.
26997 (char_string_with_unification): Delete arg ADVANCED.
26998
26999 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
27000 (CHAR_STRING): Adjust for the change of char_string_with_unification.
27001 (CHAR_STRING_ADVANCE): Make it do-while statement.
27002
27003 * chartab.c (sub_char_table_set_range): Optimize for the case
27004 DEPTH == 3. Add workaround code for a GCC optimization bug.
27005
27006 * charset.c (parse_charset_map): Remove an unused variable.
27007
27008 * coding.c: Delete unused variables.
27009
27010 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
27011 earlier. If inserted is zero and the coding system doesn't
27012 require flushing, don't call decode_coding_gap.
27013
27014 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
27015
270162008-02-01 Kenichi Handa <handa@m17n.org>
27017
27018 The following changes are for using Unicode as an internal
27019 character model, and use UTF-8 format for buffer/string
27020 representation.
27021
27022 * .gdbinit (xchartable): Adjust for the change of char table structure.
27023 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
27024
27025 * Makefile.in (obj): Add character.o and chartab.o.
27026 (lisp, shortlisp): Remove utf-8.elc.
27027 (*.o): For many files, change dependency on charset.h to
27028 character.h, and add dependency on character.h.
27029 (character.o, chartab.o): New targets.
27030
27031 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
27032 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
27033 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
27034 of "charset.h".
27035
27036 * dired.c, filelock.c: Include "character.h".
27037
27038 * alloc.c: Include "character.h" instead of "charset.h".
27039 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
27040 (syms_of_alloc): Remove defsubr for Smake_char_table.
27041
27042 * buffer.c: Include "character.h" instead of "charset.h", don't
27043 include "coding.h".
27044 (Fset_buffer_multibyte): Adjust for UTF-8.
27045
27046 * buffer.h: EXFUN Fbuffer_live_p.
27047
27048 * callproc.c: Include "character.h" instead of "charset.h".
27049 (Fcall_process): Big change for the new code-conversion APIs.
27050
27051 * casetab.c: Include "character.h" instead of "charset.h".
27052 (set_canon, set_identity, shuffle): Adjust for the new
27053 map_char_table spec.
27054 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
27055 accessing the char table structure.
27056
27057 * chartab.c: New file that implements char table.
27058
27059 * category.c: Include "character.h".
27060 (copy_category_entry): New function.
27061 (copy_category_table): Call map_char_table and copy_category_entry.
27062 (Fmake_category_table): Initialize all top-level slots.
27063 (char_category_set): New function.
27064 (modify_lower_category_set): Delete.
27065 (Fmodify_category_entry): Call char_table_ref_and_range.
27066
27067 * category.h (CATEGORY_SET): Just call char_category_set.
27068
27069 * ccl.c: Include "character.h".
27070 (Qccl, Qcclp): New variables.
27071 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
27072 it's less than 256.
27073 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
27074 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
27075 and DST type.
27076 (ccl_driver): Change types of argument, adjust code accordingly.
27077 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
27078 ccl_driver.
27079 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
27080
27081 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
27082 New members src_multibyte, dst_multibyte, consumed, and produced.
27083 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
27084 (CODING_SPEC_CCL_PROGRAM): New macro.
27085 (ccl_driver): Update prototype.
27086 (Qccl, Qcclp, Fccl_program_p): Extern them.
27087 (CHECK_CCL_PROGRAM): New macro.
27088
27089 * character.c, character.h, chartab.c: New files.
27090
27091 * charset.c: Mostly re-written. Move character and multibyte sequence
27092 handling codes to character.c.
27093
27094 * charset.h: Mostly re-written. Move character and multibyte sequence
27095 handling codes to character.h.
27096
27097 * coding.c, coding.h: Mostly re-written.
27098
27099 * composite.c: Include "character.h" instead of "charset.h".
27100 (CHAR_WIDTH): Move to character.h.
27101 (HASH_KEY, HASH_VALUE): Delete.
27102
27103 * composite.h (enum composition_method): Change order of enumeration
27104 symbols.
27105
27106 * data.c: Include "character.h" instead of "charset.h".
27107 (Faref): Call CHAR_TABLE_REF for a char table.
27108 (Faset): Call CHAR_TABLE_SET for a char table.
27109
27110 * dispextern.h (free_realized_face, check_face_attribytes)
27111 (generate_ascii_font): Extern them.
27112 (free_realized_multibyte_face): Delete extern.
27113
27114 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
27115 table structure.
27116
27117 * editfns.c: Include "character.h" instead of "charset.h".
27118 (Fchar_to_string): Always call CHAR_STRING.
27119
27120 * emacs.c (main): Call init_charset_once, init_charset,
27121 syms_of_chartab, and syms_of_character.
27122
27123 * fileio.c: Include "character.h" instead of "charset.h".
27124 (Finsert_file_contents): Big change for the new code-conversion API.
27125 (choose_write_coding_system, Fwrite_region): Likewise.
27126 (build_annotations_2): Delete.
27127 (e_write): Big change for the new code-conversion API.
27128
27129 * fns.c: Include "character.h" instead of "charset.h".
27130 (copy_sub_char_table): Move to chartab.c.
27131 (Fcopy_sequence): Call copy_char_table for a char table.
27132 (concat): Delete codes calling count_multibyte.
27133 (string_char_to_byte, string_byte_to_char): Adjust for the new
27134 multibyte form.
27135 (internal_equal): Adjust for the change of char table structure.
27136 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
27137 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
27138 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
27139 (char_table_translate, optimize_sub_char_table)
27140 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
27141 chartab.c.
27142 (char_table_ref_and_index): Delete.
27143 (HASH_KEY, HASH_VALUE): Move to lisp.h.
27144 (Fmd5): Call preferred_coding_system instead of accessing
27145 Vcoding_category_list. Adjust for the new code-conversion API.
27146 (syms_of_fns): Move defsubr for char table related functions to
27147 chartab.c.
27148
27149 * fontset.c: Mostly re-written.
27150
27151 * fontset.h (struct font_info): Change type of the member encoding_type.
27152 (enum FONT_SPEC_INDEX): New enum.
27153 (fontset_font_pattern, fs_load_font): Update prototype.
27154 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
27155
27156 * indent.c: Include "character.h" instead of "charset.h".
27157 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
27158
27159 * insdel.c: Include "character.h" instead of "charset.h".
27160 (copy_text): Don't refer to Vnonascii_translation_table.
27161 (insert_from_gap): New function.
27162
27163 * keyboard.c: Include "character.h" instead of "charset.h".
27164 (command_loop_1): Never call direct_output_forward_char before
27165 a non-ASCII character.
27166 (read_char): If Vkeyboard_translate_table is a char table, always
27167 translate a character.
27168
27169 * keymap.c: Include "character.h".
27170 (store_in_keymap): Handle the case that IDX is a cons.
27171 (Fdefine_key): Handle the case that KEY is a cons and the car part
27172 is also a cons (range).
27173 (push_key_description): Adjust for the new character code.
27174 (describe_vector): Call describe_char_table for a char table.
27175 (describe_char_table): New function.
27176
27177 * keymap.h (describe_char_table): Extern it.
27178
27179 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
27180 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
27181 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
27182 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
27183 Delete.
27184 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
27185 structure.
27186 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
27187 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
27188 (CHARTAB_SIZE_BITS_3): New macros.
27189 (chartab_size): Extern it.
27190 (struct Lisp_Char_Table): Re-design.
27191 (struct Lisp_Sub_Char_Table): New structure.
27192 (HASH_KEY, HASH_VALUE): Move from fns.c.
27193 (CHARACTERBITS): Define as 22.
27194 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
27195 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
27196 (GC_SUB_CHAR_TABLE_P): New macro.
27197 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
ef1b0ba7 27198 (code_convert_string_norecord): Delete extern.
aac0c6e3
MR
27199 (init_character_once, syms_of_character, init_charset)
27200 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
27201
27202 * lread.c: Include "character.h".
27203 (read_multibyte): New arg NBYTES.
27204 (read_escape): Change the meaning of returned *BYTEREP.
27205 (to_multibyte): Delete.
27206 (read1): Adjust the handling of char table and string.
27207
27208 * print.c: Include "character.h" instead of "charset.h".
27209 (print_string): Convert 8-bit raw bytes to octal form by
27210 string_escape_byte8.
27211 (print_object): Adjust for the new multibyte form. Print 8-bit
27212 raw bytes always in octal form. Handle sub char table correctly.
27213
27214 * process.c: Include "character.h" instead of "charset.h".
27215 (read_process_output, send_process): Adjust for the new
27216 code-conversion API.
27217
27218 * puresize.h (BASE_PURESIZE): Increase.
27219
27220 * regex.c: Include "character.h" instead of "charset.h".
27221 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
27222 (regex_compile): Accept a range whose starting and ending
27223 character have different leading bytes.
27224 (analyse_first): Adjust for the above change.
27225
27226 * search.c: Include "character.h" instead of "charset.h".
27227 (search_buffer, boyer_moore): Adjust for the new multibyte form.
27228 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
27229
27230 * syntax.c: Include "character.h" instead of "charset.h".
27231 (syntax_parent_lookup): Delete.
27232 (Fmodify_syntax_entry): Accept a cons as CHAR.
27233 (skip_chars): Adjust for the new multibyte form.
27234 (init_syntax_once): Call char_table_set_range instead of directly
27235 accessing the structure of a char table.
27236
27237 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
27238 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
27239 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
27240 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
27241
27242 * term.c: Include "buffer.h" and "character.h".
27243 (encode_terminal_code, write_glyphs): Adjust for the new
27244 code-conversion API.
27245 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
27246
27247 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
27248
27249 * xdisp.c: Include "character.h".
27250 (get_next_display_element): Adjust for the new multibyte form.
27251 (disp_char_vector): Adjust for the new char table structure.
27252 (decode_mode_spec_coding): Adjust for the new structure of
27253 coding system.
27254 (decode_mode_spec): Adjust for the new code-conversion API.
27255
27256 * xfaces.c: Include "character.h" instead of "charset.h".
27257 (load_face_font): Adjust for the change of choose_face_font and
27258 FS_LOAD_FONT.
27259 (generate_ascii_font): New function.
27260 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
27261 (set_font_frame_param): Adjust for the change of choose_face_font.
27262 (free_realized_face): Make it public.
27263 (free_realized_faces_for_fontset): Rename from
27264 free_realized_multibyte_face. Free also faces realized for ASCII.
27265 (choose_face_font): Change arguments. Adjust for the change of
27266 fontset_font_pattern and FS_LOAD_FONT.
27267
27268 * xfns.c: Include "character.h".
27269 (x_encode_text): Adjust for the new code-conversion API.
27270
27271 * xselect.c: Don't include "charset.h".
27272 (selection_data_to_lisp_data): Adjust for the new code conversion API.
27273
27274 * xterm.c: Include "character.h".
27275 (x_encode_char): New argument CHARSET. Change caller.
27276 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
27277 Call ENCODE_CHAR instead of SPLIT_CHAR.
27278 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
27279 CHAR_WIDTH instead of CHARSET_WIDTH.
27280 (XTread_socket): Adjust for the new code-conversion API.
27281 (x_new_font): Adjust for the change of FS_LOAD_FONT.
27282 (x_load_font): Adjust for the change of struct font.
27283
272842008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
27285
27286 * xfaces.c (face_at_buffer_position): Remove unused vars.
27287
272882008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
27289
27290 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
27291 Fix overflow checking.
27292
272932008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
27294
27295 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
27296 Cancel previous change.
27297
272982008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
27299
27300 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
27301 ccl->eight_bit_control. Fix check for buffer overflow.
27302 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
27303 (ccl_driver): Initialize extra_bytes to 0.
27304
273052008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
27306
27307 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
27308 return it ORed with ctrl_modifier.
27309
273102008-01-29 Miles Bader <miles@gnu.org>
27311
27312 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
27313
273142008-01-28 Jason Rumney <jasonr@gnu.org>
27315
27316 * w32.c (stat): Don't double check for networked drive.
27317
273182008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
27319
27320 * window.c (run_window_configuration_change_hook): New function.
27321 Code extracted from set_window_buffer. Set the selected frame.
27322 (set_window_buffer): Use it.
27323 * window.h (run_window_configuration_change_hook): Declare.
27324 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
27325
27326 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
27327
273282008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
27329
27330 * Makefile.in: Remove references to unused macros.
27331
273322008-01-26 Eli Zaretskii <eliz@gnu.org>
27333
27334 * w32.c (g_b_init_get_sid_sub_authority)
27335 (g_b_init_get_sid_sub_authority_count): New static variables.
27336 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
27337 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
27338 (init_user_info): Use them to retrieve uid and gid.
27339 Use 500/513, the Windows defaults, as Administrator's uid/gid.
27340 (fstat): Use pw_uid and pw_gid from the_passwd structure for
27341 st_uid and st_gid of the file.
27342
273432008-01-26 Jason Rumney <jasonr@gnu.org>
27344
27345 * w32.c (logon_network_drive): New function.
27346 (stat): Use it.
27347
273482008-01-26 Chong Yidong <cyd@stupidchicken.com>
27349
27350 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
27351 invisible text covered with an ellipsis.
27352
273532008-01-25 Richard Stallman <rms@gnu.org>
27354
27355 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
27356 jump back to beginning. Move some other initializations after that.
27357 (Qwindow_text_change_functions, Vwindow_text_change_functions):
27358 New variables.
27359 (syms_of_xdisp): Init them.
27360
27361 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
27362
27363 * buffer.c (reset_buffer_local_variables):
27364 Implement `permanent-local-hook'.
27365 (Qpermanent_local_hook): New variable.
27366 (syms_of_buffer): Init and staticpro it.
27367
273682008-01-25 Michael Albinus <michael.albinus@gmx.de>
27369
27370 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
27371
273722008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
27373
27374 * fns.c (Fclrhash): Return TABLE.
27375
273762008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27377
27378 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
27379 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
27380 is set even without positional changes.
27381 (x_scroll_bar_clear): Set bar->redraw_needed_p.
27382
27383 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
27384
273852008-01-23 Jason Rumney <jasonr@gnu.org>
27386
27387 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
27388
27389 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
27390 the unicode range available in MULE by locale-coding-system.
27391 Improve dbcs lead byte detection. Set event timestamp and modifiers
27392 earlier.
27393
273942008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27395
27396 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
27397 [MAC_OSX] (init_mac_osx_environment): Initialize it.
27398 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
27399 when used on child processes.
27400
274012008-01-21 Michael Albinus <michael.albinus@gmx.de>
27402
27403 * dbusbind.c (Fdbus_method_return_internal): Rename from
27404 Fdbus_method_return.
27405 (Fdbus_unregister_object): Move to dbus.el.
27406 (Fdbus_call_method, Fdbus_method_return_internal)
27407 (Fdbus_send_signal): Improve debug messages.
27408
274092008-01-20 Martin Rudalics <rudalics@gmx.at>
27410
27411 * undo.c (undo_inhibit_record_point): New variable.
27412 (syms_of_undo): Initialize it.
27413 (record_point): Don't record point when undo_inhibit_record_point
27414 is set.
27415
274162008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
27417
27418 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
27419
27420 * xdisp.c (Qauto_hscroll_mode): New var.
27421 (syms_of_xdisp): Initialize it.
27422 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
27423 window's buffer.
27424 (hscroll_windows): Don't check automatic_hscrolling_p here.
27425
27426 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
27427 vscroll if we're setting window-buffer to the value it already has.
27428
274292008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
27430
27431 * m/intel386.h: Remove references to XENIX.
27432
274332008-01-17 Andreas Schwab <schwab@suse.de>
27434
27435 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
27436 instead of HAVE_X86_64_LIB64_DIR.
27437 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
27438
274392008-01-17 Glenn Morris <rgm@gnu.org>
27440
27441 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
27442 to HAVE_X86_64_LIB64_DIR.
27443
274442008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
27445
27446 * s/irix3-3.h:
27447 * s/irix4-0.h:
27448 * s/386-ix.h:
27449 * s/domain.h:
27450 * s/hpux9-x11r4.h:
27451 * s/hpux9shxr4.h: Remove files for systems no longer supported.
27452
27453 * sysdep.c: Remove code containing references to symbols defined
27454 by unsupported systems.
27455
274562008-01-16 Glenn Morris <rgm@gnu.org>
27457
27458 * coding.c (select-safe-coding-system-function): Doc fix.
27459
274602008-01-15 Glenn Morris <rgm@gnu.org>
27461
27462 * config.in: Revert 2008-01-13 change: this is a generated file.
27463
274642008-01-13 Tom Tromey <tromey@redhat.com>
27465
27466 * lisp.h: Fix typo.
27467
274682008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
27469
27470 * m/sequent-ptx.h:
27471 * m/sequent.h:
27472 * s/ptx.h:
27473 * s/ptx4-2.h:
27474 * s/ptx4.h: Remove files for systems no longer supported.
27475
27476 * callproc.c (Fcall_process): Fix previous change.
27477
274782008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
27479
27480 * unexsunos4.c: Remove file, system not supported anymore.
27481
27482 * m/mips.h:
27483 * m/intel386.h:
27484 * callproc.c:
27485 * config.in:
27486 * ecrt0.c:
27487 * emacs.c:
27488 * fileio.c:
27489 * frame.c:
27490 * getpagesize.h:
27491 * keyboard.c:
27492 * lread.c:
27493 * process.c:
27494 * puresize.h:
27495 * sysdep.c:
27496 * systty.h:
27497 * syswait.h:
27498 * unexec.c:
27499 * xdisp.c:
27500 * alloc.c: Remove code containing references to symbols defined by
27501 unsupported systems.
27502
275032008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
27504
27505 * coding.c (detect_coding_mask): Fix previous change.
27506
275072008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
27508
27509 * coding.c (detect_coding_iso2022): New arg
27510 latin_extra_code_state. Allow Latin extra codes only
27511 when *latin_extra_code_state is nonzero.
27512 (detect_coding_mask): If there is a NULL byte, detect the encoding
27513 as UTF-16 or binary. If Latin extra codes exist, detect the
27514 encoding as ISO-2022 only when there's no other proper encoding is
27515 found.
27516
275172008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27518
27519 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
27520 #ifdef MAC_OS.
27521
275222008-01-08 Richard Stallman <rms@gnu.org>
27523
27524 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
27525
275262008-01-06 Nick Roberts <nickrob@snap.net.nz>
27527
27528 * keyboard.c (parse_menu_item): Don't enclose key bindings on
27529 menu bar in parentheses.
27530
275312008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
27532
27533 * m/7300.h:
27534 * m/acorn.h:
27535 * m/alliant-2800.h:
27536 * m/alliant.h:
27537 * m/alliant1.h:
27538 * m/alliant4.h:
27539 * m/altos.h:
27540 * m/amdahl.h:
27541 * m/apollo.h:
27542 * m/att3b.h:
27543 * m/aviion-intel.h:
27544 * m/aviion.h:
27545 * m/celerity.h:
27546 * m/clipper.h:
27547 * m/cnvrgnt.h:
27548 * m/convex.h:
27549 * m/cydra5.h:
27550 * m/delta88k.h:
27551 * m/dpx2.h:
27552 * m/dual.h:
27553 * m/elxsi.h:
27554 * m/f301.h:
27555 * m/gould-np1.h:
27556 * m/gould.h:
27557 * m/i860.h:
27558 * m/ibmps2-aix.h:
27559 * m/ibmrt-aix.h:
27560 * m/ibmrt.h:
27561 * m/irist.h:
27562 * m/is386.h:
27563 * m/isi-ov.h:
27564 * m/mega68.h:
27565 * m/mg1.h:
27566 * m/news-r6.h:
27567 * m/news-risc.h:
27568 * m/news.h:
27569 * m/nh3000.h:
27570 * m/nh4000.h:
27571 * m/ns16000.h:
27572 * m/ns32000.h:
27573 * m/nu.h:
27574 * m/orion.h:
27575 * m/orion105.h:
27576 * m/paragon.h:
27577 * m/pfa50.h:
27578 * m/plexus.h:
27579 * m/pyramid.h:
27580 * m/pyrmips.h:
27581 * m/sh3el.h:
27582 * m/sps7.h:
27583 * m/sr2k.h:
27584 * m/stride.h:
27585 * m/sun1.h:
27586 * m/sun2.h:
27587 * m/sun3-68881.h:
27588 * m/sun3-fpa.h:
27589 * m/sun3-soft.h:
27590 * m/sun3.h:
27591 * m/sun386.h:
27592 * m/symmetry.h:
27593 * m/tad68k.h:
27594 * m/tahoe.h:
27595 * m/targon31.h:
27596 * m/tek4300.h:
27597 * m/tekxd88.h:
27598 * m/tower32.h:
27599 * m/tower32v3.h:
27600 * m/ustation.h:
27601 * m/wicat.h:
27602 * m/xps100.h:
27603 * s/cxux.h:
27604 * s/cxux7.h:
27605 * s/dgux.h:
27606 * s/dgux4.h:
27607 * s/dgux5-4-3.h:
27608 * s/dgux5-4r2.h:
27609 * s/esix.h:
27610 * s/esix5r4.h:
27611 * s/hiuxmpp.h:
27612 * s/hiuxwe2.h:
27613 * s/iris3-5.h:
27614 * s/iris3-6.h:
27615 * s/isc2-2.h:
27616 * s/isc3-0.h:
27617 * s/isc4-0.h:
27618 * s/isc4-1.h:
27619 * s/newsos5.h:
27620 * s/newsos6.h:
27621 * s/osf1.h:
27622 * s/osf5-0.h:
27623 * s/riscix1-1.h:
27624 * s/riscix12.h:
27625 * s/sco4.h:
27626 * s/sco5.h:
27627 * s/sunos4-0.h:
27628 * s/sunos4-1.h:
27629 * s/sunos413.h:
27630 * s/sunos4shr.h:
27631 * s/umax.h:
27632 * s/unipl5-2.h:
27633 * s/xenix.h:
27634 * cxux-crt0.s:
27635 * unexapollo.c:
27636 * unexconvex.c:
27637 * unexenix.c:
27638 * unexsni.c: Remove files for systems no longer supported.
27639
27640 * m/intel386.h: Remove references to unsupported systems.
27641
27642 * w32.c (get_emacs_configuration): Remove reference to i860.
27643
27644 * sysdep.c: Remove dead code.
27645
276462008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
27647
27648 * s/rtu.h:
27649 * m/masscomp.h: Remove files. Platform is obsolete.
27650
276512008-01-04 Michael Albinus <michael.albinus@gmx.de>
27652
27653 * dbusbind.c (Fdbus_method_return): New function.
27654 (xd_read_message): Add the serial number to the event.
27655 (Fdbus_register_method): Activate the function.
27656
276572008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
27658
27659 * keyboard.c (read_key_sequence): Fix typo.
27660
276612008-01-03 Michael Albinus <michael.albinus@gmx.de>
27662
27663 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
27664 (xd_signature, xd_append_arg): Handle element type detection for
27665 empty arrays.
27666 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
27667 SDATA () calls; this must be solved more general.
27668 (Fdbus_register_signal): Use SBYTES instead of strlen.
27669
276702008-01-03 Magnus Henoch <magnus@zemdatav>
27671
27672 * dbusbind.c (xd_append_arg): Use unsigned char instead of
27673 unsigned int for byte values (necessary for big-endian platform).
27674 (Fdbus_call_method): Handle the case of no returned arguments.
27675
276762007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
27677
27678 * dbusbind.c (xd_read_message): Use non-static input_event struct.
27679
276802007-12-31 Magnus Henoch <mange@freemail.hu>
27681
27682 * dbusbind.c (xd_signature): Signature of variant is just "v".
27683
276842007-12-30 Michael Albinus <michael.albinus@gmx.de>
27685
27686 * dbusbind.c: Fix several errors and compiler warnings.
27687 Reported by Tom Tromey <tromey@redhat.com>.
27688 (XD_ERROR, XD_DEBUG_MESSAGE)
27689 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
27690 (xd_append_arg): Part for basic D-Bus types rewritten.
27691 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
27692 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
27693 appropriate.
27694 (xd_read_message): Return Qnil. Don't signal an error; it is not
27695 useful during event reading.
27696 (Fdbus_register_signal): Signal an error if the check for
27697 FUNCTIONP fails.
27698 (Fdbus_register_method): New function. The implementation is not
27699 complete, the call of the function signals an error therefore.
27700 (Fdbus_unregister_object): New function, renamed from
27701 Fdbus_unregister_signal. The initial check signals an error, if
27702 the object is not well formed.
27703
277042007-12-30 Richard Stallman <rms@gnu.org>
27705
27706 * textprop.c (get_char_property_and_overlay):
27707 Signal error if POSITION is out of range in a buffer.
27708
277092007-12-29 Martin Rudalics <rudalics@gmx.at>
27710
27711 * w32fns.c (Fx_create_frame): Make copy of frame parameters
27712 because the original parameters are in pure storage now.
27713
277142007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27715
27716 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
27717
277182007-12-22 Eli Zaretskii <eliz@gnu.org>
27719
27720 * callint.c (syms_of_callint) <command-history>: Add reference to
27721 history-length in the doc string.
27722
277232007-12-17 Jason Rumney <jasonr@gnu.org>
27724
27725 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
27726 before passing as wParam.
27727
277282007-12-22 Michael Albinus <michael.albinus@gmx.de>
27729
27730 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
27731 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
27732 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
27733 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
27734 as number.
27735 (Fdbus_call_method): Fix docstring.
27736
277372007-12-21 Michael Albinus <michael.albinus@gmx.de>
27738
27739 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
27740 New macros.
27741 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
27742 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
27743 Simplify.
27744 (xd_signature): New function.
27745 (xd_append_arg): Compute also signatures. Major rewrite.
27746 (xd_retrieve_arg): Make debug messages friendly.
27747 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
27748 Check for signatures of arguments.
27749
277502007-12-19 Michael Albinus <michael.albinus@gmx.de>
27751
27752 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
27753 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
27754 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
27755 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
27756 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
27757 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
27758 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
27759 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
27760 (xd_retrieve_value): Remove. Functionality included in ...
27761 (xd_append_arg): New function.
27762 (Fdbus_call_method, Fdbus_send_signal): Apply it.
27763
277642007-12-16 Michael Albinus <michael.albinus@gmx.de>
27765
27766 * dbusbind.c (top): Include <stdio.h>.
27767 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
27768 dbus_message_new_method_call and dbus_message_new_signal.
27769 (Fdbus_register_signal): Rename unique_name to uname.
27770 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
27771 non-existing unique name. Fix typos in matching rule. Return an
27772 object which is useful in Fdbus_unregister_signal.
27773 (Fdbus_unregister_signal): Reimplementation, in order to remove
27774 only the corresponding entry.
27775 (Vdbus_registered_functions_table): Change the order of entries.
27776 Apply these changes in xd_read_message and Fdbus_register_signal.
27777
277782007-12-16 Andreas Schwab <schwab@suse.de>
27779
27780 * fileio.c (Finsert_file_contents): Fix overflow check to not
27781 depend on undefined integer overflow.
27782
277832007-12-14 Jason Rumney <jasonr@gnu.org>
27784
27785 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
27786 for characters above 127.
27787
277882007-12-13 Jason Rumney <jasonr@gnu.org>
27789
27790 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
27791 before dereferencing array.
27792 (lookup_vk_code): Remove zero comparison.
27793
277942007-12-14 Michael Albinus <michael.albinus@gmx.de>
27795
27796 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
27797 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
27798 Use `unsigned int' instead of `uint'.
27799 (xd_read_message, Fdbus_register_signal): Split expressions into
27800 multiple lines before operators "&&" and "||", according to the
27801 GNU Coding Standards.
27802
278032007-12-14 Eli Zaretskii <eliz@gnu.org>
27804
27805 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
27806
278072007-12-12 Juri Linkov <juri@jurta.org>
27808
27809 * buffer.c (Frename_buffer): In interactive spec replace
27810 `read-buffer' with `read-string' that uses `buffer-name-history'
27811 as history, and the current buffer's name as default.
27812
278132007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
27814
27815 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
27816 manipulating the backtrace manually.
27817 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
27818 (struct backtrace, backtrace_list): Remove.
27819 (command_loop_1): Remove dead var `no_direct'.
27820
27821 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
27822 preserve non-built-in buffer-local variables.
27823 (Fkill_all_local_variables): Don't re-create&re-set permanent
27824 buffer-local variables.
27825
278262007-12-09 Juri Linkov <juri@jurta.org>
27827
27828 * buffer.c (Frename_buffer): Change interactive spec from "s" to
27829 Lisp code that uses `read-buffer' with current buffer as default.
27830
278312007-12-08 Michael Albinus <michael.albinus@gmx.de>
27832
27833 * dbusbind.c (xd_read_message): Generate an event for every
27834 registered handler. There might be several handlers registered
27835 for the same signal.
27836 (Fdbus_register_signal): Don't overwrite a registration for the
27837 same signal. Add a new registration if handlers are different.
27838 (Vdbus_registered_functions_table): Rework doc string.
27839
278402007-12-07 Michael Albinus <michael.albinus@gmx.de>
27841
27842 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
27843 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
27844 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
27845 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
27846 Unify argument lists.
27847 (xd_read_message, Fdbus_register_signal): Reorder and extend event
27848 arguments and hash table keys. Use unique name for service.
27849 (Fdbus_unregister_signal): Remove checks.
27850 (Vdbus_registered_functions_table): Fix doc string.
27851
278522007-12-05 Magnus Henoch <mange@freemail.hu>
27853
27854 * process.c (make_process): Initialize pty_flag to 0.
27855
278562007-12-05 Jason Rumney <jasonr@gnu.org>
27857
27858 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
27859 specified XBMs.
27860
278612007-12-05 Richard Stallman <rms@gnu.org>
27862
27863 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
27864
278652007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27866
27867 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
27868 New variable.
27869 (mac_try_close_socket) [MAC_OSX]: New function.
27870 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
27871 Update cfsockets_for_select. Replace invalid CFRunLoop source.
27872
27873 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
27874 Use mac_try_close_socket.
27875
278762007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27877
27878 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
27879 reloc_base.
27880 (copy_dysymtab): Compute relocation base here.
27881 (rebase_reloc_address) [__ppc64__]: New function.
27882 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
27883 changed.
27884
278852007-12-05 Jason Rumney <jasonr@gnu.org>
27886
27887 * w32proc.c (sys_spawnve): Quote args with wildcards.
27888
278892007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27890
27891 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
27892 __objc_* sections.
27893 (unrelocate) [_LP64]: Set relocation base to address of data segment.
27894
278952007-12-05 Michael Albinus <michael.albinus@gmx.de>
27896
27897 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
27898 Move check for Vdbus_registered_functions_table to
27899 xd_read_queued_messages.
27900 (xd_read_queued_messages): Protect xd_read_message calls by
27901 internal_condition_case_1.
27902
279032007-12-04 Michael Albinus <michael.albinus@gmx.de>
27904
27905 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
27906 Qdbus_system_bus and Qdbus_session_bus, respectively.
27907 (Vdbus_intern_symbols): Remove.
27908 (Vdbus_registered_functions_table): New hash table.
27909 (XD_SYMBOL_INTERN_SYMBOL): Remove.
27910 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
27911 Rewrite in order to manage registered functions by hash table
27912 Vdbus_registered_functions_table.
27913
279142007-12-03 Jan Djärv <jan.h.d@swipnet.se>
27915
27916 * xterm.c: Update URL to Window Manager Specification in comment.
27917
279182007-12-02 Michael Albinus <michael.albinus@gmx.de>
27919
27920 * config.in (HAVE_DBUS): Add.
27921
27922 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
27923 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
27924 (obj): Add $(DBUS_OBJ).
27925 (LIBES): Add $(DBUS_LIBS).
27926 (dbusbind.o): New target.
27927
27928 * dbusbind.c: New file.
27929
27930 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
27931
27932 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
27933 (Qdbus_event): New Lisp symbol.
27934 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
27935 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 27936 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
27937
27938 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
27939
279402007-12-01 Richard Stallman <rms@gnu.org>
27941
27942 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
27943
279442007-11-30 Jason Rumney <jasonr@gnu.org>
27945
27946 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
27947 (w32con_reset_terminal_modes): Clear screen buffer.
27948 (w32_face_attributes): Don't use color indexes that are out of range.
27949 Only reverse the default colors.
27950
27951 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
27952 WINDOWSNT.
27953
27954 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
27955
279562007-11-29 Jason Rumney <jasonr@gnu.org>
27957
27958 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
27959 (w32_face_attributes): Use Vtty_defined_color_alist to determine
27960 if the terminal colors are initialized.
27961 (unspecified_fg, unspecified_bg): Remove unused declarations.
27962
279632007-11-29 Andreas Schwab <schwab@suse.de>
27964
27965 * keyboard.c (apply_modifiers): Fix typo.
27966
279672007-11-29 Richard Stallman <rms@gnu.org>
27968
27969 * keymap.c (Fcurrent_local_map): Doc fix.
27970
279712007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
27972
27973 * s/gnu-kfreebsd.h: New file.
27974
279752007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
27976
27977 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
27978 Don't cast redundantly.
27979
27980 * keyboard.c (KEY_TO_CHAR): New macro.
27981 (parse_modifiers, apply_modifiers): Accept integer arguments.
27982 (read_key_sequence): Use them to unify the "shift->unshift" mapping
27983 for chars and symbol keys.
27984 After doing such remapping, apply function-key-map again.
27985
279862007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
27987
27988 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
27989 compiled anymore.
27990
279912007-11-26 Andreas Schwab <schwab@suse.de>
27992
27993 * process.c (list_processes_1): Fix indentation level of the
27994 command column.
27995
279962007-11-23 Andreas Schwab <schwab@suse.de>
27997
27998 * editfns.c (Fformat): Handle %c specially since it requires the
27999 argument to be of type int.
28000
280012007-11-23 Markus Triska <markus.triska@gmx.at>
28002
28003 * emacs.c (main): Call init_editfns before init_process, since
28004 init_process sets Vprocess_connection_type depending on OS release.
28005
280062007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
28007
28008 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
28009 (find_symbol_value): Use do_symval_forwarding.
28010
28011 * data.c (set_internal): Set the value in the `cons-cell' (for
28012 Buffer_Local_values) not only for frame-local variables.
28013
280142007-11-22 Andreas Schwab <schwab@suse.de>
28015
28016 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
28017 values to sprintf.
28018 * keymap.c (Fsingle_key_description): Likewise.
28019 * print.c (print_object): Likewise.
28020
280212007-11-22 Jan Djärv <jan.h.d@swipnet.se>
28022
28023 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
28024 file for image is nil.
28025
280262007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
28027
28028 * term.c: Include stdarg.h.
28029 (fatal): Implement using varargs.
28030 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
28031
280322007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
28033
28034 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
28035 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
28036 Update call to buffer_slot_type_mismatch.
28037 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
28038 (buffer_slot_type_mismatch): Update.
28039 * buffer.c (buffer_local_types): Remove.
28040 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
28041 (defvar_per_buffer): Set the type in the buffer_objfwd.
28042
280432007-11-21 Jason Rumney <jasonr@gnu.org>
28044
28045 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
28046 CreateFileMapping returns NULL on failure.
28047
280482007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
28049
28050 * search.c (Fset_match_data): Remove the `evaporate' feature.
28051 (unwind_set_match_data): Don't use the `evaporate' feature.
28052
280532007-11-21 Jason Rumney <jasonr@gnu.org>
28054
28055 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
28056
28057 * w32console.c (w32con_write_glyphs): Remove unused variables.
28058
280592007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
28060
28061 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
28062
28063 * s/darwin.h (MULTI_KBOARD): Remove.
28064
28065 * macfns.c (x_create_tip_frame, Fx_create_frame)
28066 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
28067
280682007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
28069
28070 * buffer.c (Fbuffer_local_value): Remove redundant test.
28071 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
28072 than in `current-buffer' to match the comment.
28073 Do the swap using swap_in_global_binding.
28074
28075 * data.c (store_symval_forwarding, set_internal):
28076 * eval.c (specbind): Remove dead code.
28077
28078 * coding.c (detect_coding, Fupdate_coding_systems_internal):
28079 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
28080 Since we do not want to see internal Lisp_*fwd objects here.
28081
280822007-11-18 Jan Djärv <jan.h.d@swipnet.se>
28083
28084 * sysdep.c (init_system_name): Use getaddrinfo if available.
28085
28086 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
28087 (x_scroll_bar_note_movement): start, end, with, height in struct
28088 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
28089
280902007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
28091
28092 * puresize.h (BASE_PURESIZE): Increase to 1190000.
28093
280942007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
28095
28096 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
28097 This undoes Richard's change of 14-Oct-2002.
28098
28099 * alloc.c (allocate_other_vector):
28100 * lisp.h (allocate_other_vector): Remove.
28101
28102 * window.c (struct save_window_data): Move non-lisp data to the end
28103 and make it `int' rather than Lisp_Object.
28104 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
28105 Done wrap/unwrap integer values.
28106 (Fset_window_configuration, compare_window_configurations):
28107 Update use of fields to their new types.
28108
28109 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
28110 Turn integer fields into `int'. Merge x_window_low and x_window_high.
28111 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
28112 (SET_SCROLL_BAR_X_WINDOW): Remove.
28113 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
28114 Access the new x_window field directly.
28115 * xterm.c (x_scroll_bar_create): Use a pseudovector.
28116 Don't wrap/unwrap integers into Lisp_Objects.
28117 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
28118 (x_scroll_bar_report_motion):
28119 Don't wrap/unwrap integers into Lisp_Objects.
28120 (x_term_init): Use SDATA.
28121 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
28122 (x_scroll_bar_set_handle, x_scroll_bar_remove)
28123 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
28124 (x_scroll_bar_report_motion, x_scroll_bar_clear):
28125 * xfns.c (x_set_background_color):
28126 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
28127 Access the new x_window field directly.
28128
28129 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
28130 (allocate_pseudovector): Make non-static.
28131
28132 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
28133 (allocate_pseudovector): Declare.
28134 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
28135
281362007-11-15 Andreas Schwab <schwab@suse.de>
28137
28138 * editfns.c (Fformat): Correctly format EMACS_INT values.
28139 Also take precision into account when formatting an integer.
28140
28141 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
28142
281432007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
28144
28145 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
28146 (syms_of_keyboard): Defsubr it.
28147
28148 * data.c (swap_in_global_binding): Fix longstanding bug where
28149 store_symval_forwarding was not called with the right second argument,
28150 thus causing objfwd-ing from being dropped.
28151
281522007-11-14 Juanma Barranquero <lekktu@gmail.com>
28153
28154 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
28155 (Fx_display_pixel_height, Fx_display_planes)
28156 (Fx_display_color_cells, Fx_server_max_request_size)
28157 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
28158 (Fx_display_visual_class, Fx_display_save_under):
28159 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
28160 (Fx_display_pixel_height, Fx_display_planes)
28161 (Fx_display_color_cells, Fx_server_max_request_size)
28162 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
28163 (Fx_display_mm_height, Fx_display_mm_width)
28164 (Fx_display_backing_store, Fx_display_visual_class)
28165 (Fw32_select_font, Fx_display_save_under):
28166 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
28167 (Fx_display_pixel_height, Fx_display_planes)
28168 (Fx_display_color_cells, Fx_server_max_request_size)
28169 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
28170 (Fx_display_save_under): Fix typos in docstrings.
28171
281722007-11-14 Juanma Barranquero <lekktu@gmail.com>
28173
28174 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
28175 corresponding to deleted entries; they are an implementation detail.
28176 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
28177 Remove variables.
28178 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
28179 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
28180 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
28181 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
28182 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
28183 (Fw32_define_rgb_color, Fw32_load_color_file)
28184 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
28185 Fix typos in docstrings.
28186 (Fx_server_version): Reflow docstring.
28187 (Fw32_shell_execute): Doc fixes.
28188
281892007-11-13 Juanma Barranquero <lekktu@gmail.com>
28190
28191 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
28192 if w32_parse_hot_key returned nil.
28193
281942007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
28195
28196 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
28197
281982007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 28199
aac0c6e3
MR
28200 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
28201
28202 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
28203
28204 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
28205 Remove W32_SCROLL_BAR_CLICK_EVENT.
28206
28207 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
28208 Add MULTIMEDIA_KEY_EVENT.
28209
28210 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
28211 (lispy_multimedia_keys) [WINDOWSNT]: New array.
28212 (make_lispy_event) [WINDOWSNT]: Use it to translate
28213 MULTIMEDIA_KEY_EVENT.
28214
28215 * w32term.h (WM_APPCOMMAND): Define if not already.
28216 (GET_APPCOMMAND_LPARAM): Likewise.
28217
28218 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
28219 WM_APPCOMMAND.
28220
28221 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
28222 (syms_of_w32fns): Export and initialize it.
28223 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
28224
282252007-11-09 Chong Yidong <cyd@stupidchicken.com>
28226
28227 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
28228 twice.
28229
28230 * xdisp.c (handle_face_prop): Fix last change.
28231
282322007-11-09 Richard Stallman <rms@gnu.org>
28233
28234 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
28235 not just for after-strings and before-strings.
28236 Call face_for_overlay_string and pass the overlay to it.
28237 (handle_display_prop): Determine whether property came from an overlay.
28238 Pass OVERLAY arg to handle_single_display_spec.
28239 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
28240 (load_overlay_strings): Fill in it->string_overlays.
28241 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
28242
28243 * xfaces.c (face_for_overlay_string): Function renamed from
28244 face_at_buffer_position_no_overlays, and add arg OVERLAY.
28245
28246 * dispextern.h (struct it): New elt string_overlays.
28247 New elt from_overlay, also in stack.
28248 Rearrange a few elements.
28249 (face_for_overlay_string): Decl renamed from
28250 face_at_buffer_position_no_overlays, and add argument.
28251
282522007-11-09 Richard Stallman <rms@gnu.org>
28253
28254 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
28255 to get the base face for an overlay string.
28256
28257 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
28258
28259 * xfaces.c (face_at_buffer_position_no_overlays): New function.
28260
28261 * xdisp.c (handle_stop): Move some code out of loop.
28262
282632007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28264
28265 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
28266 Fix conversion from Lisp object to ATSUFontID.
28267
282682007-11-09 Jason Rumney <jasonr@gnu.org>
28269
28270 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
28271
282722007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28273
28274 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
28275 Don't assume regions are aligned to page boundary.
28276 (print_load_command_name): Add LC_UUID if defined.
28277
282782007-11-09 Richard Stallman <rms@gnu.org>
28279
28280 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
28281
282822007-11-07 Jason Rumney <jasonr@gnu.org>
28283
28284 * s/windows95.h: Remove.
28285
282862007-11-06 Jan Djärv <jan.h.d@swipnet.se>
28287
28288 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
28289 abort with a message on unhandled store_type values.
28290
282912007-11-01 Jan Djärv <jan.h.d@swipnet.se>
28292
28293 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
28294 Remove HAVE_X11R5 and HAVE_X11R4.
28295
282962007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
28297
28298 * Makefile.in: Remove references to sunfns.c and sunfns.o.
28299
283002007-11-01 Johan Bockgård <bojohan@gnu.org>
28301
28302 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
28303 Don't set s->stippled_p here, since it has already been set by
28304 x_set_glyph_string_gc from x_draw_glyph_string.
28305
283062007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
28307
28308 * sunfns.c: Remove file.
28309
28310 * m/sun386.h:
28311 * m/sun2.h:
28312 * m/sparc.h: Remove Sun windows code.
28313
283142007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
28315
28316 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
28317 (init_keyboard): Set current_kboard's window-system to nil.
28318 (tty_read_avail_input): Typo.
28319 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
28320
283212007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
28322
28323 * s/usg5-4.h:
28324 * s/usg5-3.h:
28325 * s/ptx.h:
28326 * m/is386.h:
28327 * m/ibmps2-aix.h:
28328 * Makefile.in: Remove all mentions of X10.
28329
28330 * dispnew.c (syms_of_display): Don't mention version 10.
28331
283322007-10-28 Juanma Barranquero <lekktu@gmail.com>
28333
28334 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
28335 ($(BLD)/abbrev.$(O)): Remove.
28336
283372007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
28338
28339 Rewrite abbrev.c in Elisp.
28340 * image.c (Qcount): Don't declare as extern.
28341 (syms_of_image): Initialize and staticpro `Qcount'.
28342 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
28343 * emacs.c (main): Don't call syms_of_abbrev.
28344 * Makefile.in (obj): Remove abbrev.o.
28345 (abbrev.o): Remove.
28346 * abbrev.c: Remove.
28347
283482007-10-26 Martin Rudalics <rudalics@gmx.at>
28349
28350 * window.c (window_min_size_2): Don't count header-line.
28351
283522007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
28353
28354 * frame.h (struct frame): Move all bit fields after the first bit
28355 field to take advantage of the available space. Group all the
28356 chars together to reduce wasted space due to padding.
28357
283582007-10-26 Juanma Barranquero <lekktu@gmail.com>
28359
28360 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
28361
28362 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
28363 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
28364 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
28365 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
28366 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
28367 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
28368 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
28369 (last_marked, mark_object_loop_halt): Make static.
28370
28371 * frame.c (syms_of_frame) <delete-frame-functions>:
28372 Fix typo in docstring.
28373
283742007-10-25 Juanma Barranquero <lekktu@gmail.com>
28375
28376 * w32.c (init_environment): Fix tiny memory leak.
28377 (w32_get_resource): Remove unused variable `ok'.
28378
283792007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
28380
28381 Make `window-system' into a keyboard-local variable (rather than
28382 frame-local as done originally by multi-tty).
28383
28384 * keyboard.h (struct kboard): Add Vwindow_system.
28385 * keyboard.c (init_kboard): Set a default for Vwindow_system.
28386 (mark_kboards): Mark Vwindow_system.
28387
28388 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
28389 (init_display): Don't set the obsolete `window-system' frame-param.
28390
28391 * xterm.c (x_term_init):
28392 * w32term.c (w32_create_terminal):
28393 * term.c (init_tty): Set Vwindow_system.
28394 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
28395 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
28396
28397 * xfns.c (Fx_create_frame, x_create_tip_frame):
28398 * w32fns.c (Fx_create_frame, x_create_tip_frame):
28399 * macfns.c (Fx_create_frame):
28400 Don't set the obsolete `window-system' frame-param.
28401
28402 * frame.h (Qwindow_system): Remove.
28403 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
28404 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
28405
284062007-10-24 Richard Stallman <rms@gnu.org>
28407
28408 * frame.c (x_figure_window_size): For fullscreen case,
28409 set USPosition | PPosition without clobbering rest of window_prompting.
28410
28411 * keyboard.c (Fcurrent_idle_time): Doc fix.
28412
28413 * print.c (Fwith_output_to_temp_buffer): Doc fix.
28414
284152007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
28416
28417 * process.c (unwind_request_sigio): Only define if __ultrix__.
28418
28419 * callproc.c (child_setup): Remove spurious *.
28420
28421 * lisp.h (Fget_text_property): Declare.
28422 (have_menus_p): Declare it here rather than in sys-dep header files.
28423 * macterm.h (have_menus_p):
28424 * msdos.h (have_menus_p):
28425 * xterm.h (have_menus_p): Remove.
28426
28427 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
28428 (Fmake_variable_frame_local): Just check the variable's const-ness
28429 rather than checking nil or t.
28430
284312007-10-22 Jason Rumney <jasonr@gnu.org>
28432
28433 * w32fns.c: Include math.h.
28434 (w32_abort): Declaration moved to nt/config.nt.
28435
28436 * s/ms-w32.h (HAVE_STDLIB_H): Define.
28437 (abort): Redefinition moved to nt/config.nt.
28438
28439 * m/windowsnt.h: Remove.
28440
284412007-10-22 Juanma Barranquero <lekktu@gmail.com>
28442
28443 * emacs.c (Fdump_emacs): Fix typo in message.
28444 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
28445 <installation-directory>: Reflow docstring.
28446
284472007-10-22 Juri Linkov <juri@jurta.org>
28448
28449 * minibuf.c: Allow minibuffer default to be a list of default values.
28450 With empty input use the first element of this list as returned default.
28451 (string_to_object)
28452 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
28453 (read_minibuf): If defalt is cons, set histstring to its car.
28454 (Fread_string): If default_value is cons, set val to its car.
28455 (Fread_buffer): If def is cons, use its car.
28456 (Fcompleting_read): If defalt is cons, set val to its car.
28457
284582007-10-21 Michael Albinus <michael.albinus@gmx.de>
28459
28460 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
28461
284622007-10-20 Juanma Barranquero <lekktu@gmail.com>
28463
28464 * doc.c (Fdocumentation): Check for advice in all cases.
28465
284662007-10-19 Chong Yidong <cyd@stupidchicken.com>
28467
28468 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
28469
284702007-10-19 Richard Stallman <rms@gnu.org>
28471
28472 * doc.c (Fdocumentation): Check for and handle an advised function.
28473
284742007-10-19 Juanma Barranquero <lekktu@gmail.com>
28475
28476 * process.c (Fset_process_filter): Doc fix.
28477
284782007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
28479
28480 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
28481 which caused key-translation-map to applied repeatedly (thus breaking
28482 double-mode).
28483
284842007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
28485
28486 * xselect.c (x_own_selection, x_handle_selection_clear)
28487 (x_clear_frame_selections):
28488 * w32menu.c (list_of_panes, list_of_items):
28489 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
28490 * textprop.c (validate_plist, interval_has_all_properties)
28491 (interval_has_some_properties, interval_has_some_properties_list)
28492 (add_properties, text_property_list):
28493 * process.c (Fget_buffer_process, list_processes_1, status_notify):
28494 * minibuf.c (Fassoc_string):
28495 * macselect.c (x_own_selection, x_clear_frame_selections)
28496 (Fx_disown_selection_internal):
28497 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
28498 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
28499
285002007-10-17 Chong Yidong <cyd@stupidchicken.com>
28501
28502 * process.c: Link to libs for calling res_init() if available.
28503 (Fmake_network_process): Call res_init() before getaddrinfo or
28504 gethostbyname, if possible.
28505
285062007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
28507
28508 * lread.c (read1): Set pvectype for char_tables.
28509
28510 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
28511 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
28512 Add type checks.
28513 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
28514
28515 * alloc.c (free_misc): Use XMISCTYPE.
28516 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
28517
285182007-10-17 Glenn Morris <rgm@gnu.org>
28519
28520 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
28521 (syms_of_minibuf): Add Qcompletion_ignore_case.
28522 * dired.c (Qcompletion_ignore_case): Change to external.
28523 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
28524 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
28525 (Fread_file_name): Use it rather than intern'ing.
28526
28527 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
28528 (Fread_coding_system): Ignore case of user input.
28529
285302007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28531
28532 * xdisp.c (handle_display_prop): Ignore display specs after
28533 replacing one when string text is being replaced.
28534 (handle_single_display_spec): Pretend as if characters with display
28535 property haven't been consumed only when buffer text is being replaced.
28536
285372007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
28538
28539 * xfns.c (Fx_create_frame, Fx_display_list):
28540 * window.c (window_fixed_size_p, enlarge_window)
28541 (shrink_window_lowest_first):
28542 * macterm.c (init_font_name_table):
28543 * macfns.c (Fx_create_frame, Fx_display_list):
28544 * lread.c (close_load_descs):
28545 * keyboard.c (read_char_x_menu_prompt):
28546 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
28547 * coding.c (code_convert_region_unwind): Test the type of an object
28548 rather than just !NILP before extracting data from it.
28549
28550 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
28551
28552 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
28553 (XMISCANY): New macro.
28554 (XMISCTYPE): Use it.
28555 (struct Lisp_Misc_Any): New type.
28556 (union Lisp_Misc): Use it.
28557 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
28558 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
28559 (find_symbol_value, set_internal, default_value, Fset_default)
28560 (Fmake_variable_buffer_local, Fmake_local_variable)
28561 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
28562 (Flocal_variable_if_set_p, Fvariable_binding_locus):
28563 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
28564 * alloc.c (allocate_buffer): Set the size and tag.
28565 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
28566 Use XMISCANY.
28567 (die): Follow the GNU convention for error messages.
28568 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
28569 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
28570 tag any more.
28571 (set_buffer_internal_1):
28572 * frame.c (store_frame_param):
28573 * eval.c (specbind):
28574 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
28575
28576 * doc.c (Fsnarf_documentation): Simplify.
28577
285782007-10-14 Juanma Barranquero <lekktu@gmail.com>
28579
28580 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
28581 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
28582
285832007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
28584
28585 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
28586
285872007-10-14 Juanma Barranquero <lekktu@gmail.com>
28588
28589 * eval.c (do_autoload): Don't save autoloads.
28590
28591 * data.c (Ffset): Save autoload of the function being set.
28592
285932007-10-07 John Paul Wallington <jpw@pobox.com>
28594
28595 * xfns.c (x_create_tip_frame): Set the `display-type' frame
28596 parameter before setting up faces.
28597
285982007-10-13 Eli Zaretskii <eliz@gnu.org>
28599
28600 * ccl.c (Fregister_code_conversion_map):
28601 * keyboard.c (append_tool_bar_item): Reformat last change.
28602
28603 * lisp.h (eabs): Rename from `abs'. All callers changed.
28604
286052007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
28606
28607 * buffer.c (add_overlay_mod_hooklist):
28608 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
28609 * fontset.c (make_fontset):
28610 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
28611 (append_tool_bar_item):
28612 * macmenu.c (grow_menu_items):
28613 * w32menu.c (grow_menu_items):
28614 * xmenu.c (grow_menu_items): Use larger_vector.
28615
286162007-10-13 Eli Zaretskii <eliz@gnu.org>
28617
28618 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
28619 selected frame'' on MSDOS).
28620
286212007-10-12 Martin Rudalics <rudalics@gmx.at>
28622
28623 * frame.c (Qexplicit_name): New variable.
28624 (x_report_frame_params): Report it in parameter alist.
28625 (syms_of_frame): Intern and staticpro it.
28626
286272007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
28628
28629 * macfns.c (x_create_tip_frame): Set terminal for frame.
28630
286312007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
28632
28633 * frame.c (Qenvironment): Remove.
28634 (syms_of_frame) <Qenvironment>: Don't initialize.
28635 (Fdelete_frame): Don't treat the `environment' param specially.
28636 * frame.h (Qenvironment): Don't declare.
28637 * callproc.c (set_initial_environment): Don't set unused frame param.
28638
28639 * frame.c (Fframe_with_environment): Remove.
28640 (syms_of_frame) <Sframe_with_environment>: Don't declare.
28641
28642 * lisp.h (Fframe_with_environment): Don't declare.
28643
286442007-10-10 Juanma Barranquero <lekktu@gmail.com>
28645
28646 * indent.c (indent_tabs_mode, last_known_column)
28647 (last_known_column_modified): Make static.
28648 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
28649
286502007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
28651
28652 * puresize.h (BASE_PURESIZE): Increase to 1170000.
28653
286542007-10-09 Jason Rumney <jasonr@gnu.org>
28655
28656 * w32term.c (x_set_window_size): Disable code that attempts to tell
28657 Lisp code about a size change before it actually happens.
28658
286592007-10-09 Richard Stallman <rms@gnu.org>
28660
28661 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
28662 return HANDLED_RETURN.
28663
286642007-10-08 Martin Rudalics <rudalics@gmx.at>
28665
28666 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
28667 when there's an unread command event.
28668
28669 * frame.c (focus_follows_mouse): Move here from frame.el to allow
28670 window autoselection act appropriately when leaving selected frame.
28671 (syms_of_frame): Initialize focus_follows_mouse.
28672 * frame.h (focus_follows_mouse): Extern it.
28673 * macterm.c (XTread_socket): When focus_follows_mouse is nil
28674 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
28675 * msdos.c (dos_rawgetc): Likewise.
28676 * w32term.c (w32_read_socket): Likewise.
28677 * xterm.c (handle_one_xevent): Likewise.
28678 * xdisp.c (syms_of_xdisp): In doc-string of
28679 mouse-autoselect-window mention focus-follows-mouse.
28680
286812007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28682
28683 * macterm.c (mac_load_query_font): Fix missing return value.
28684 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
28685 Add BLOCK_INPUT.
28686
286872007-10-08 Richard Stallman <rms@gnu.org>
28688
28689 * xdisp.c (get_window_cursor_type): Implement documented behavior
28690 for cursor-in-non-selected-windows = t.
28691
286922007-10-08 Jason Rumney <jasonr@gnu.org>
28693
28694 * w32.c (w32_get_resource): Always close registry keys.
28695
286962007-10-08 Jason Rumney <jasonr@gnu.org>
28697
28698 * makefile.w32-in (LIBS): Add COMCTL32.
28699
28700 * w32fns.c (globals_of_w32fns): Init common controls.
28701
287022007-10-08 Richard Stallman <rms@gnu.org>
28703
28704 * image.c (our_memory_buffer): Rename from omfib_buffer.
28705
287062007-10-08 Richard Stallman <rms@gnu.org>
28707
28708 * buffer.c (Foverlays_at): Doc fix.
28709
287102007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
28711
28712 * fns.c (Fplist_put): Preserve uneven tail data.
28713
287142007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
28715
28716 * termhooks.h (enum event_kind): Remove trailing comma.
28717
28718 * frame.h (enum): Remove trailing comma.
28719
287202007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
28721
28722 * w32proc.c (delete_child): Don't terminate threads of zombies.
28723
287242007-10-08 Martin Rudalics <rudalics@gmx.at>
28725
28726 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
28727
28728 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
28729 last-repeatable-command.
28730 (init_kboard): Initialize Vlast_repeatable_command.
28731 (command_loop_1): Set it to real_this_command unless that was
28732 bound to an input event.
28733 (mark_kboards): Mark it.
28734
287352007-10-08 Richard Stallman <rms@gnu.org>
28736
28737 * eval.c (condition-case): Doc fix.
28738
287392007-10-08 Masatake YAMATO <jet@gyve.org>
28740
28741 * xfaces.c (tty_supports_face_attributes_p): Fix code
28742 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
28743 was copied and not edited.
28744
287452007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
28746
28747 Add new `input-decode-map' keymap and use it for terminal
28748 escape sequences.
28749 * keyboard.h (struct kboard): Add Vinput_decode_map.
28750 Remove Vlocal_key_translation_map.
28751 * keyboard.c (read_key_sequence): Add support for input-decode-map.
28752 (init_kboard): Init input-decode-map.
28753 Replace local-key-translation-map back with key-translation-map.
28754 (syms_of_keyboard): Declare input-decode-map.
28755 Remove local-key-translation-map. Update docstrings.
28756 (mark_kboards): Mark Vinput_decode_map.
28757 Don't mark Vlocal_key_translation_map.
28758 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
28759 Replace local-key-translation-map back with key-translation-map.
28760 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
28761 Bind in input-decode-map rather than function-key-map.
28762
28763 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
28764 This was made redundant by the previous introduction of XSETPVECTYPE.
28765
287662007-10-09 Richard Stallman <rms@gnu.org>
28767
28768 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
28769
287702007-09-29 Richard Stallman <rms@gnu.org>
28771
28772 * eval.c (internal_condition_case_2, internal_condition_case_1)
28773 (internal_condition_case): Reenable abort if x_catching_errors ()
28774 to see if that really happens and why.
28775
287762007-10-06 Andreas Schwab <schwab@suse.de>
28777
28778 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
28779
287802007-10-04 Juanma Barranquero <lekktu@gmail.com>
28781
28782 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
28783
287842007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
28785
28786 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
28787
287882007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
28789
28790 * window.h (struct window):
28791 * window.c (struct save_window_data, struct saved_window):
28792 * termhooks.h (struct terminal):
28793 * process.h (struct Lisp_Process):
28794 * frame.h (struct frame):
28795 * buffer.h (struct buffer):
28796 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
28797 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
28798 The size field of (pseudo)vectors is now unsigned.
28799 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
28800
28801 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
28802 Turn `count' into an integer.
28803
28804 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
28805 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
28806 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
28807 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
28808 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
28809
28810 * alloc.c (allocate_pseudovector): New fun.
28811 (ALLOCATE_PSEUDOVECTOR): New macro.
28812 (allocate_window, allocate_terminal, allocate_frame)
28813 (allocate_process): Use it.
28814 (mark_vectorlike): New function.
28815 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
28816 (mark_terminals): Use it.
28817 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
28818 (Fmake_byte_code): Use XSETPVECTYPE.
28819
28820 * frame.c (Fframe_parameters): Minor simplification.
28821
28822 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
28823
28824 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
28825
28826 * buffer.c (Fget_buffer_create, init_buffer_once):
28827 * lread.c (defsubr):
28828 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
28829
28830 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
28831 defined differently in the m/*.h files.
28832 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
28833 (XSETPVECTYPE): New macro.
28834 (XSETPSEUDOVECTOR): Use it.
28835
28836 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
28837 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
28838
28839 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
28840 * lread.c (defvar_per_buffer):
28841 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
28842
28843 * window.c (candidate_window_p): Only consider as visible frames that
28844 are on the same terminal.
28845
28846 * m/ibms390x.h (MARKBIT): Remove unused macro.
28847
288482007-10-01 Juanma Barranquero <lekktu@gmail.com>
28849
28850 * lread.c (Fload): Fix typo in docstring.
28851
288522007-10-01 Michaël Cadilhac <michael@cadilhac.name>
28853
28854 * floatfns.c (Fexpt): Manually check for overflows, so that a power
28855 of a non-zero value can't yield zero.
28856
288572007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
28858
28859 * term.c (term_clear_mouse_face, term_mouse_highlight)
28860 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
28861
28862 * print.c (safe_debug_print): Use XHASH.
28863
28864 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
28865 Lisp elements such as tags.
28866 (XHASH): New macro.
28867 (EQ): Use it.
28868 (SREF, SSET, STRING_COPYIN): Use SDATA.
28869 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
28870
28871 * alloc.c (mark_terminal): Remove left-over declaration.
28872 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
28873 (allocate_vectorlike): Remove type argument. Adjust callers.
28874 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
28875 Only handle the one remaining MEM_TYPE_VECTORLIKE.
28876
28877 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
28878 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
28879 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
28880 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
28881 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
28882 Use them.
28883
28884 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
28885 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
28886 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
28887
288882007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
28889
28890 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
28891 loaded by default.
28892
288932007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
28894
28895 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
28896 on this tty.
28897 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
28898
28899 * term.c (mouse_face_window): Rename from Qmouse_face_window.
28900 Update all users.
28901 (handle_one_term_event): Use Gpm_DrawPointer.
28902 (Fgpm_mouse_start): Rename from Fterm_open_connection.
28903 Signal errors instead of returning nil. Always return nil.
28904 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
28905 Make it a noop if gpm-mouse was not activated.
28906 (syms_of_term): Update names.
28907
289082007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
28909
28910 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
28911 (init_sys_modes): Check that gpm_tty is the current tty.
28912
28913 * alloc.c (allocate_terminal): Set the vector size to only count the
28914 lisp fields. Initialize those to nil.
28915 (mark_object): Don't treat terminals specially.
28916 (mark_terminal): Remove.
28917 (mark_terminals): Use mark_object instead.
28918
28919 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
28920 the GC to the beginning.
28921
28922 * indent.h:
28923 * indent.c: Use EMACS_INT for ints coming from Elisp data.
28924
28925 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
28926
289272007-09-25 Jason Rumney <jasonr@gnu.org>
28928
28929 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
28930
28931 * w32console.c (create_w32cons_output): Remove.
28932
28933 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
28934
28935 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
28936 (reset_sys_modes): Use reset_terminal_modes_hook.
28937
289382007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
28939
28940 * eval.c (do_autoload): Don't output any message.
28941
289422007-09-24 Juri Linkov <juri@jurta.org>
28943
28944 * emacs.c (standard_args): Change priority of "--no-splash"
28945 from 40 to 3. Add "--no-desktop" with the same priority.
28946
289472007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
28948
28949 * alloc.c (gc_sweep): Check cons cell mark bits word by word
28950 and optimize the case where they are all 1.
28951
289522007-09-23 Johannes Weiner <hannes@saeurebad.de>
28953
28954 * lisp.h (abs): Define if not defined.
28955 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
28956 Don't define `abs', since it's defined in lisp.h.
28957
289582007-09-22 Eli Zaretskii <eliz@gnu.org>
28959
28960 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
28961 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
28962 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
28963 (init_tty): Use DEV_TTY instead of "/dev/tty".
28964 [WINDOWSNT]: No need to protect from NAME arg being null.
28965
289662007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
28967
28968 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
28969 up the tty state.
28970
289712007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
28972
28973 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
28974 (gpm_tty): Change its type.
28975 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
28976 (gpm_tty): Change its type and initialize it.
28977 (Fterm_open_connection): Check the frame is indeed a tty.
28978 Use the new gpm_tty.
28979 (Fterm_close_connection): Use the new gpm_tty.
28980 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
28981 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
28982
289832007-09-21 Juanma Barranquero <lekktu@gmail.com>
28984
28985 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
28986 underline_color, to draw strike-through.
28987
289882007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
28989
28990 * lisp.h (allocate_terminal): Declare.
28991
28992 * window.c (candidate_window_p): Consider frames that are being placed
28993 by the user as somewhere between visible and iconified.
28994 (window_loop): Prefer windows on the current frame.
28995 (Fselect_window): Move the use of select-frame to the beginning so we
28996 can just delegate all the work (it'll call us back anyway).
28997
28998 * frame.c (Qdisplay_environment_variable):
28999 * frame.h (Qdisplay_environment_variable): Delete.
29000
29001 * .gdbinit (xbacktrace): Print the arg's address rather than the value
29002 of the first arg, since that value may be a union.
29003
29004 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
29005 parameter rather than Qdisplay_environment_variable. If all else
29006 fails, look for DISPLAY in initial-environment.
29007
290082007-09-21 Glenn Morris <rgm@gnu.org>
29009
29010 * Makefile.in (emacstool): Remove target.
29011 (lisp, shortlisp): Remove termdev.elc.
29012
290132007-09-21 Markus Triska <markus.triska@gmx.at>
29014
29015 * xterm.c (x_delete_display): Compile session management conditionally.
29016
290172007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
29018
29019 * callproc.c (getenv_internal_1): New function.
29020 (getenv_internal): Use it.
29021 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
29022
29023 * terminal.c (get_terminal): Don't accept ints to represent terminals.
29024 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
29025 (Fset_terminal_parameter): Work with dead terminals as well.
29026 (Fmodify_terminal_parameters): Remove.
29027
29028 * terminal.c (get_terminal): Handle terminals.
29029 Make sure the terminal returned is live.
29030 (create_terminal): Use allocate_terminal.
29031 (mark_terminals): Move to alloc.c.
29032 (delete_terminal): Use terminal->name as liveness status.
29033 NULL out fields after freeing their contents.
29034 Don't deallocate the object.
29035 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
29036 rather than an int.
29037 (Fterminal_live_p): Accept non-integer arguments.
29038 (Fterminal_list): Return terminal objects rather than an ints.
29039
29040 * alloc.c (enum mem_type): New member for `terminal' objects.
29041 (allocate_terminal): New function.
29042 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
29043 Handle terminals.
29044 (mark_terminal): New fun.
29045 (mark_terminals): Move from terminal.c.
29046
29047 * term.c (get_tty_terminal): Don't treat output_initial specially.
29048 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
29049 (delete_tty): Use terminal->name as liveness status.
29050
29051 * termhooks.h (struct terminal): Make it into a pseudovector.
29052 Remove `deleted' replaced by checking `name's nullness.
29053
29054 * print.c (print_object): Handle terminals.
29055
29056 * lisp.h (enum pvec_type): New `terminal' pseudovector.
29057 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
29058
29059 * frame.c (make_terminal_frame):
29060 * keyboard.c (tty_read_avail_input):
29061 * w32term.c (x_delete_terminal):
29062 * xfns.c (Fx_create_frame, x_create_tip_frame):
29063 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
29064
290652007-09-20 Glenn Morris <rgm@gnu.org>
29066
29067 * process.c (Fmake_network_process): Doc fix.
29068
290692007-09-19 Jason Rumney <jasonr@gnu.org>
29070
29071 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
29072
290732007-09-19 Michaël Cadilhac <michael@cadilhac.name>
29074
29075 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
29076 Fix a C warning regarding variable constness.
29077
29078 * xterm.c (handle_one_xevent): Fix a C warning.
29079
290802007-09-18 Jason Rumney <jasonr@gnu.org>
29081
29082 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
29083
290842007-09-17 Jan Djärv <jan.h.d@swipnet.se>
29085
29086 * gtkutil.c (gdpy_def): New variable.
29087 (xg_initialize): Initialize gdpy_def.
29088 (xg_display_close): If no other display exists, set gdpy_def to a
29089 new connection.
29090
290912007-09-16 Jan Djärv <jan.h.d@swipnet.se>
29092
29093 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
29094 when we have no file name for the icon.
29095 (xg_tool_bar_expose_callback): Remove.
29096 (xg_create_tool_bar): Don't connect expose signal to
29097 xg_tool_bar_expose_callback.
29098 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
29099
291002007-09-16 Andreas Schwab <schwab@suse.de>
29101
29102 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
29103 values instead of zapping them.
29104
291052007-09-14 Glenn Morris <rgm@gnu.org>
29106
29107 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
29108 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
29109 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
29110 scope and rename to omfib_buffer for clarity.
29111 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
29112
291132007-09-14 Kenichi Handa <handa@m17n.org>
29114
29115 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
29116
291172007-09-13 Jason Rumney <jasonr@gnu.org>
29118
29119 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
29120
29121 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
29122
29123 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
29124 (mac_term_init): Call here instead, passing rif.
29125
291262007-09-13 Glenn Morris <rgm@gnu.org>
29127
29128 * s/hpux.h: No longer define `static' as nothing.
29129
291302007-09-13 Johan Bockgård <bojohan@gnu.org>
29131
29132 * callint.c (Fcall_interactively): Remove unused var `fun'.
29133
291342007-09-12 Romain Francoise <romain@orebokech.com>
29135
29136 * window.c (prefer_window_split_horizontally, display_buffer):
29137 Revert 2007-09-08 change.
29138
291392007-09-12 Glenn Morris <rgm@gnu.org>
29140
29141 * alloca.c: Remove file.
29142 * Makefile.in (alloca): Do not undef.
29143 (allocaobj, alloca.o): Remove.
29144 (otherobj): Remove allocaobj.
29145 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
29146 * regex.c (C_ALLOCA): Remove all references and code that was only
29147 used when this was defined.
29148 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
29149 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
29150 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
29151
29152 * Makefile.in (SOURCES, unlock, relock): Delete.
29153
29154 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
29155 (menu_grab_callback): All uses changed.
29156
29157 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
29158 (x_reply_selection_request): All uses changed.
29159
291602007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
29161
29162 * lread.c (load_warn_old_style_backquotes): Change message to look
29163 better when it appears in the middle of byte-compiler messages.
29164
291652007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
29166
29167 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
29168
29169 * xterm.c (x_create_terminal): Add comment.
29170
29171 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
29172
291732007-09-10 Richard Stallman <rms@gnu.org>
29174
29175 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
29176
291772007-09-10 Michaël Cadilhac <michael@cadilhac.name>
29178
29179 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
29180 (DEFUN): Document `intspec', use it instead of `prompt'.
29181
29182 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
29183
29184 * data.c (Finteractive_form): If the interactive specification starts
29185 with a `(', use it as a Lisp form.
29186
29187 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
29188 name and file modes.
29189
29190 * callint.c (Fcall_interactively): Comment fixes.
29191
291922007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
29193
29194 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
29195 and compiled functions.
29196
291972007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
29198
29199 * window.c (prefer_window_split_horizontally): New variable.
29200 (display_buffer): Consider splitting window horizontally depending
29201 on prefer_window_split_horizontally.
29202
292032007-09-08 Eli Zaretskii <eliz@gnu.org>
29204
29205 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
29206
292072007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
29208
29209 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
29210
29211 * frame.c (x_set_frame_parameters): Check number is positive before
29212 using XFASTINT.
29213
29214 * window.c (freeze_window_start): Don't presume selected_window holds
29215 a window object.
29216 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
29217
292182007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
29219
29220 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
29221
292222007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
29223
29224 * window.c (Vsplit_window_preferred_function): New var.
29225 (Fdisplay_buffer): Use it.
29226 (syms_of_window): Export, and initialize it.
29227
292282007-09-06 Pixel <pixel@mandriva.com> (tiny change)
29229
29230 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
29231
292322007-09-06 Glenn Morris <rgm@gnu.org>
29233
29234 * gtkutil.c (menu_grab_callback) <cnt>:
29235 * xselect.c (x_reply_selection_request) <cnt>: Move static
29236 variable to file scope.
29237
292382007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
29239
29240 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
29241 consistent values of selected_frame and selected_window.
29242
292432007-09-04 Jason Rumney <jasonr@gnu.org>
29244
29245 * w32console.c (initialize_w32_display): Zero unused hooks.
29246
292472007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
29248
29249 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
29250 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
29251
292522007-09-04 Jason Rumney <jasonr@gnu.org>
29253
29254 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
29255 in w32console.c. Set up input. Remove XXX comments that have been
29256 confirmed as correct.
29257
29258 * s/ms-w32.h (MULTI_KBOARD): Define.
29259
29260 * w32console.c (one_and_only_w32cons): Remove.
29261 (initialize_w32_display): Take terminal argument.
29262
29263 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
29264 initialize_w32_display.
29265 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
29266
29267 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
29268
29269 * keyboard.c (discard_mouse_events): Discard it.
29270 (make_lispy_event): Translate it to a lisp event.
29271 (lispy_wheel_names): Add wheel-left and right events.
29272 (syms_of_keyboard): Enlarge wheel_syms.
29273
29274 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
29275 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
29276
29277 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
29278
29279 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
29280 from WM_MOUSEHWHEEL.
29281 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
29282
29283 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
29284 terminal.
29285
29286 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
29287 keyboard for the terminal.
29288
292892007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
29290
29291 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
29292 (Vresume_tty_hook): Rename from Vresume_tty_functions.
29293 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
29294 and resume-tty-function to resume-tty-hook.
29295 (Fsuspend_tty, Fresume_tty): Use new names.
29296
292972007-09-02 Jan Djärv <jan.h.d@swipnet.se>
29298
29299 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
29300 if it starts with "n:".
29301
293022007-08-31 Jan Djärv <jan.h.d@swipnet.se>
29303
29304 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
29305
293062007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
29307
29308 * frame.h:
29309 * frame.c (Qterm_environment_variable): Remove.
29310 (syms_of_frame): Don't init and staticpro it.
29311
29312 * callproc.c (getenv_internal): Remove special case for $TERM.
29313
29314 * callproc.c (Vinitial_environment): New variable.
29315 (set_initial_environment): Initialize it.
29316 (syms_of_callproc): Declare it.
29317 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
29318 TERM under which a process runs is never related to the TERM in which
29319 Emacs is running.
29320
293212007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
29322
29323 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
29324 * s/darwin.h: ... do it here.
29325
293262007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
29327
29328 * lisp.h (set_initial_environment): Rename from set_global_environment.
29329
29330 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
29331 removed by mistake on the multi-tty branch.
29332
29333 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
29334 (Fmodify_frame_parameters): Return a value.
29335
29336 * image.c (png_load): Comment-out var only used in commented-out code.
29337
29338 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
29339 before passing it to mark_object.
29340
29341 * xfaces.c (internal_resolve_face_name): Return a value.
29342 (internal_resolve_face_name, resolve_face_name_error): Comment out.
29343
29344 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
29345 (x_icon): Comment-out var only used in commented-out code.
29346
293472007-08-29 Romain Francoise <romain@orebokech.com>
29348
29349 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
29350 QUIT hasn't been provided.
29351
293522007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
29353
29354 * callproc.c (child_setup, getenv_internal): Use the
29355 display-environment-variable and term-environment-variable frame params.
29356 (set_initial_environment): Initialise Vprocess_environment.
29357
29358 * config.in: Disable multi-keyboard support on a mac.
29359
29360 * frame.c (Qterm_environment_variable)
29361 (Qdisplay_environment_variable): New variables.
29362 (syms_of_frame): Intern and staticpro them.
29363 (Fmake_terminal_frame): Disable output method test.
29364
29365 * frame.h: Declare them here.
29366
29367 * macfns.c (x_set_mouse_color): Get rif from the frame.
29368 (x_set_tool_bar_lines): Don't use updating_frame.
29369 (mac_window): Add 2 new parameters for consistency with other systems.
29370 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
29371 frame parameters following what is done in X11 and w32. Don't use
29372 FRAME_MAC_DISPLAY_INFO.
29373 (Fx_open_connection, start_hourglass): Remove window-system check.
29374 (x_create_tip_frame): Get the keyboard from the terminal.
29375
29376 * macmenu.c: Reorder includes.
29377 (Fx_popup_menu): Use terminal specific mouse_position_hook.
29378
29379 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
29380 terminal parameter.
29381 (x_clear_frame): Add a frame parameter.
29382 (note_mouse_movement): Get rif from the frame.
29383 (mac_term_init): Initialize the terminal.
29384 (mac_initialize): Make static and move terminal initialization ...
29385 (mac_create_terminal): ... to this new function.
29386
29387 * macterm.h (struct mac_display_info): Add terminal.
29388 (mac_initialize): Delete declaration.
29389
29390 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
29391
29392 * sysdep.c: Comment out text after #endif.
29393
29394 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
29395 is defined. Better initialize ttys in windows. Use terminal
29396 specific mouse_position_hook.
29397
29398 * termhooks.h (union display_info): Add mac_display_info.
29399
29400 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
29401 Set the default minibuffer frame, window_system and the rest of the
29402 frame parameters following what is done in X11.
29403
29404 * w32term.c (w32_initialize): Make static.
29405
29406 * xselect.c (x_handle_selection_clear): Only access
29407 terminal->kboard when MULTI_KBOARD is defined.
29408
29409 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
29410 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
29411
294122007-08-29 Jason Rumney <jasonr@gnu.org>
29413
29414 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
29415 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
29416
29417 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
29418 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
29419
29420 * keyboard.c (restore_kboard_configuration): Only define when
29421 MULTI_KBOARD defined.
29422
29423 * makefile.w32-in: Update dependancies from Makefile.in.
29424 (OBJ1): Add terminal.$(O)
29425
29426 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
29427 Don't define function body.
29428 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
29429
29430 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
29431
29432 * w32.c (request_sigio, unrequest_sigio): Remove.
29433
29434 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
29435 (w32con_clear_frame, w32con_clear_end_of_line)
29436 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
29437 (w32con_delete_glyphs, w32con_set_terminal_window)
29438 (scroll_line, w32_sys_ring_bell): Add frame arg.
29439 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
29440 Add terminal arg.
29441 (PICK_FRAME): Remove.
29442 (w32con_write_glyphs): Use frame specific terminal coding.
29443 (one_and_only_w32cons): New global variable.
29444 (initialize_w32_display): Use it for storing hooks.
29445 (create_w32cons_output): New function.
29446
29447 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
29448 arg a frame.
29449
29450 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
29451 Set window_system.
29452 (x_set_tool_bar_lines): Don't use updating_frame.
29453 (Fx_create_frame): Set terminal and ref count.
29454 (Fx_open_connection): Remove window-system check.
29455
29456 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
29457
29458 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
29459 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
29460 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
29461 Add frame arg.
29462 (x_delete_terminal, w32_create_terminal): New functions.
29463 (w32_term_init): Create a terminal.
29464 (w32_initialize): Move terminal specific initialization to
29465 w32_create_terminal.
29466
29467 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
29468 (w32_clear_rect, w32_clear_area): Use background from frame.
29469 (w32_display_info): Add terminal.
29470 (w32_sys_ring_bell, x_delete_display): Declare here.
29471
29472 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
29473
29474 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
29475
294762007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
29477
29478 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
29479 Fix get_named_tty calls for the controlling tty.
29480
294812007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
29482
194d44e7 29483 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
29484
294852007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
29486
29487 * term.c (tty_insert_glyphs): Add missing first parameter.
29488
294892007-08-29 Károly Lőrentey <karoly@lorentey.hu>
29490
29491 * buffer.c (Fbuffer_list, Fbury_buffer):
29492 Take frame->buried_buffer_list into account.
29493
29494 * cm.c (current_tty): New variable, for cmputc().
29495 (cmputc): Use it.
29496 (cmcheckmagic): Add tty parameter, look up terminal streams there.
29497 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
29498 (cmgoto): Add tty parameter. Pass it on to calccost().
29499 Use emacs_tputs() instead of tputs().
29500
29501 * cm.h (emacs_tputs): New macro to set current_tty, and then call
29502 tputs().
29503 (current_tty): New variable, for cmputc().
29504 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
29505
29506 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
29507 (internal_condition_case, internal_condition_case_1)
29508 (internal_condition_case_2): Don't abort when x_catching_errors.
29509
29510 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
29511 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
29512 prevent crashes caused by bogus longjmps in read_char.
29513
29514 * keymap.h (Fset_keymap_parent): Add EXFUN.
29515
29516 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
29517 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
29518 Remove redundant definition.
29519
29520 * macfns.c (x_set_mouse_color, x_make_gc):
29521 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29522
29523 * w32term.c (x_free_frame_resources):
29524 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29525 (w32_initialize): Use the accessor macros for terminal characteristics.
29526
29527 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
29528 Use the accessor macros for terminal characteristics.
29529 * msdos.c (internal_terminal_init): Use the accessor macros for
29530 terminal characteristics.
29531 (ScreenVisualBell, internal_terminal_init):
29532 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29533
29534 * termopts.h (no_redraw_on_reenter): Declare.
29535
29536 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
29537 (mark_terminals, mark_ttys): Declare.
29538 (Fgarbage_collect): Call them.
29539 (mark_object): Mark buried_buffer_list.
29540
29541 * prefix-args.c: Include stdlib.h for exit.
29542
29543 * syssignal.h: Add comment.
29544
29545 * indent.c: Include stdio.h.
29546
29547 * window.h (Vinitial_window_system): Declare.
29548 (Vwindow_system): Delete declaration.
29549
29550 * fontset.c (Finternal_char_font): Use FRAME_RIF.
29551
29552 * image.c (lookup_image): Don't initialize `c' until the xasserts
29553 have been run.
29554
29555 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
29556 FRAME_FOREGROUND_PIXEL.
29557
29558 * print.c (print_preprocess): Don't lose print_depth levels while
29559 iterating.
29560
29561 * widget.c (update_from_various_frame_slots):
29562 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29563
29564 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
29565 frames.
29566 (window_internal_height): Remove bogus make_number call.
29567 (init_window_once): Call make_terminal_frame with two zero parameters.
29568
29569 * fileio.c (Fread_file_name): Update comment.
29570
29571 * callint.c (Fcall_interactively):
29572 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
29573 Make sure it is correctly unwound.
29574
29575 * xsmfns.c (x_session_close): New function.
29576
29577 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
29578 Delete declarations.
29579
29580 * xterm.h: Remove declaration for x_fully_uncatch_errors.
29581 (x_output): Remove background_pixel and foreground_pixel fields.
29582 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
29583 (x_delete_device, x_session_close): Declare.
29584
29585 * lread.c: Include setjmp.h. Update declaration of `read_char'.
29586 (read_filtered_event): Call `read_char' with a local
29587 `wrong_kboard_jmpbuf'.
29588
29589 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
29590 Don't call single_kboard_state. Use FRAME_RIF.
29591
29592 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
29593 systems.
29594
29595 * lisp.h (set_process_environment): Rename to `set_global_environment'.
29596 (Fframe_with_environment, Fset_input_meta_mode)
29597 (Fset_quit_char): EXFUN.
29598 (x_create_device, tty_output, terminal, tty_display_info): Declare.
29599 (init_sys_modes, reset_sys_modes): Update prototypes.
29600 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
29601
29602 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
29603 Vlocal_key_translation_map, and Vkeyboard_translate_table.
29604 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
29605 Delete declarations.
29606 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
29607 (temporarily_switch_to_single_kboard, tty_read_avail_input):
29608 New declarations.
29609
29610 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
29611 already does that during init_display(). Call syms_of_keymap
29612 before syms_of_keyboard. Call `syms_of_terminal'.
29613 Call set_initial_environment, not set_process_environment.
29614 (shut_down_emacs): Call reset_all_sys_modes() instead of
29615 reset_sys_modes().
29616
29617 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
29618 (internal_resolve_face_name, resolve_face_name_error): New functions.
29619 (resolve_face_name): Protect against loops and errors thrown by Fget.
29620 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
29621 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
29622
29623 * scroll.c: Replace CURTTY() with local variables throughout the
29624 file (where applicable).
29625 (calculate_scrolling, calculate_direct_scrolling)
29626 (scrolling_1, scroll_cost): Use the accessor macros for terminal
29627 characteristics.
29628
29629 * keymap.c (Vfunction_key_map): Remove.
29630 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
29631 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
29632 (Vkey_translation_map): Remove.
29633 (syms_of_keymap): Remove DEFVAR for key-translation-map.
29634 (Fdescribe_buffer_bindings)
29635 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
29636 Update for terminal-local key-translation-map.
29637
29638 * Makefile.in (callproc.o): Update dependencies.
29639 (lisp, shortlisp): Add termdev.elc.
29640 (obj): Add terminal.o.
29641 (terminal.o): Add dependencies.
29642 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
29643 (data.o, fns.o): Add termhooks.h dependency.
29644 (SOME_MACHINE_LISP): Add dnd.elc.
29645 (minibuf.o): Fix typo.
29646 Update dependencies.
29647
29648 * data.c (do_symval_forwarding, store_symval_forwarding)
29649 (find_symbol_value): Use the selected frame's keyboard, not
29650 current_kboard.
29651
29652 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
29653 Vwindow_system.
29654
29655 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
29656 Fmenu_bar_open.
29657 (syms_of_xmenu): Update defsubr.
29658 (mouse_position_for_popup, Fx_popup_menu)
29659 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
29660 (set_frame_menubar, free_frame_menubar)
b97439ce 29661 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
29662 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
29663 an X frame.
29664
29665 * xselect.c (x_own_selection): Abort if not an X frame.
29666 (some_frame_on_display): Check if it is an X frame.
29667 (x_handle_selection_clear): Deal with MULTI_KBOARD.
29668
29669 * coding.c: Include frame.h and termhooks.h.
29670 (terminal_coding, keyboard_coding): Delete.
29671 (Fset_terminal_coding_system_internal)
29672 (Fset_keyboard_coding_system_internal)
29673 (Fkeyboard_coding_system)
29674 (Fterminal_coding_system): Add a terminal parameter.
29675 Get terminal_coding from the terminal.
29676 (init_coding_once): Don't call setup_coding_system here.
29677
29678 * dispextern.h (set_scroll_region, turn_off_insert)
29679 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
29680 (tty_clear_end_of_line, tty_setup_colors)
29681 (delete_tty, updating_frame)
29682 (produce_special_glyphs, produce_glyphs, write_glyphs)
29683 (insert_glyphs): Remove.
29684 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
29685 (tty_turn_off_highlight, get_tty_size): Add declaration.
29686 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
29687
29688 * frame.h (enum output_method): Add output_initial.
29689 (struct x_output): Delete.
29690 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
29691 Access foreground_pixel and background_pixel directly from the frame.
29692 (tty_display): Delete.
29693 (struct frame): Add buried_buffer_list, foreground_pixel,
29694 background_pixel and terminal. Delete kboard.
29695 (union output_data): Add tty.
29696 (FRAME_KBOARD): Get the kboard from the terminal.
29697 (FRAME_INITIAL_P): New macro.
29698 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
29699 (Qterm_environment_variable, Qdisplay_environment_variable)
29700 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
29701 New declarations.
29702
29703 * termchar.h (tty_output, tty_display_info): New structures.
29704 (tty_list): Declare.
29705 (FRAME_TTY, CURTTY): New macros.
29706 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
29707 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
29708 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
29709 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
29710
29711 * callproc.c: Include frame.h and termhooks.h, for terminal
29712 parameters.
29713 (add_env): New function.
29714 (child_setup): Use it.
29715 (child_setup, getenv_internal): Handle the new Vprocess_environment.
29716 (getenv_internal): Fix get_terminal_param call.
29717 (Fgetenv_internal, egetenv): Update doc.
29718 (syms_of_callproc): Initialize Vprocess_environment to nil.
29719 Register and initialize them. Remove obsolete defvars. Update doc
29720 strings.
29721 (child_setup): Handle Vlocal_environment_variables.
29722 (getenv_internal): Add terminal parameter.
29723 Handle Vlocal_environment_variables.
29724 (Fgetenv_internal): Add terminal parameter.
29725 (child_setup, getenv_internal, Fgetenv_internal): Store the local
29726 environment in a frame (not terminal) parameter. Update doc strings.
29727 (set_initial_environment): Rename from set_global_environment.
29728 Store Emacs environment in initial frame parameter.
29729
29730 * xdisp.c (redisplay_internal): Update references to
29731 `previous_terminal_frame'.
29732 (display_mode_line, Fformat_mode_line): Replace calls to
29733 `push_frame_kboard' with `push_kboard'.
29734 (get_glyph_string_clip_rects): Add extra parentheses and
29735 braces to prevent compiler warnings.
29736 (calc_pixel_width_or_height): Add xassert to check that the
29737 frame is alive. Don't call `lookup_image' on a termcap frame.
29738 (message2_nolog, message3_nolog, redisplay_internal)
29739 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
29740 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
29741 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
29742 (Fx_display_pixel_width, Fx_display_pixel_height)
29743 (Fx_display_planes, Fx_display_color_cells)
29744 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
29745 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
29746 (Fx_display_backing_store, Fx_display_visual_class)
29747 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
29748 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
29749
29750 * xfns.c (x_set_foreground_color x_set_background_color)
29751 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
29752 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29753 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
29754 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
29755 terminal that is being deleted.
29756 (Fx_create_frame): Use `store_frame_param' to set `window-system'
29757 frame parameter, and make sure it overrides any user-supplied setting.
29758 (Fx_close_connection, Fx_synchronize): Unify argument names with
29759 the rest of the DEFUNs.
29760
29761 * dispnew.c (Fsend_string_to_terminal): Update call to
29762 `get_tty_terminal'.
29763 (Fredraw_frame, Fsend_string_to_terminal)
29764 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
29765 FRAME_TERMCAP_P and FRAME_TTY.
29766 (window_change_signal): Don't believe width/height values that are
29767 impossibly small.
29768 (Vinitial_window_system): Rename from Vwindow_system.
29769 (termscript, Wcm, rif): Delete.
29770
29771 * termhooks.h (struct terminal): New struct containing the
29772 previously global text display hooks and new members NAME,
29773 DELETED and PARAM_ALIST.
29774 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
29775 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
29776 (FRAME_RIF): New macros.
29777 (get_terminal_param, get_device): New declarations.
29778 (termscript): Delete declaration.
29779
29780 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
29781 (XTflash, x_free_frame_resources, x_scroll_bar_create)
29782 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
29783 FRAME_FOREGROUND_PIXEL.
29784 (x_fully_uncatch_errors): Disable definition.
29785 (x_scroll_bar_expose): Fix reference to foreground pixel.
29786 (XTread_socket): Disable loop on all X displays.
29787 (x_delete_terminal): Don't set terminal->deleted and let
29788 delete_terminal delete the frames on the terminal.
29789 (x_delete_display): Doc update to reflect changes in
29790 delete_terminal.
29791 (x_display_info) <terminal>: Move member earlier in the struct.
29792 (deleting_tty): Remove old variable.
29793 (Fsuspend_tty): Call clear_tty_hooks.
29794 (Fresume_tty, init_tty): Call set_tty_hooks.
29795 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
29796 errors on X frames.
29797 (x_catch_errors_unwind): Abort if x_error_message is NULL.
29798 (handle_one_xevent): Initialize `f' to NULL.
29799 (x_delete_terminal, x_create_terminal): New functions.
29800 (XTset_terminal_modes, XTreset_terminal_modes)
29801 (XTread_socket, x_connection_closed, x_term_init)
29802 (x_term_init, x_delete_display): Add terminal parameter.
29803 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
29804 X connections.
29805
29806 * frame.c: Include termchar.h.
29807 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
29808 (Qwindow_system, Qenvironment, Qterm_environment_variable)
29809 (Qdisplay_environment_variable): New vars.
29810 (Fframep): Deal with output_initial.
29811 (Fframe-live-p): Doc fix.
29812 (Fwindow-system): New function.
29813 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
29814 (make_terminal_frame): Don't create frames on a terminal that is
29815 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29816 (store_frame_param): Check for found_for_frame before calling XFRAME.
29817 (Fmake_terminal_frame): Handle NULL tty names correctly.
29818 (syms_of_frame): Enhance doc string of `default-frame-alist'.
29819 (Fdelete_frame): Remove unused variable `count'. Don't allow other
29820 frames to refer to a deleted frame in their 'environment parameter.
29821 (Fframe_with_environment): New function.
29822 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
29823 (get_future_frame_param): New function.
29824 (Fmake_terminal_frame): Use it.
29825 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
29826
29827 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
29828 * sysdep.c (reset_sys_modes): Update for renames.
29829
29830 * keyboard.c (tty_read_avail_input): New function.
29831 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
29832 (syms_of_keyboard): Defsubr them.
29833 (Fset_input_meta_mode, Fset_quit_char): New functions.
29834 (Fset_input_mode): Split to above functions.
29835 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
29836 parameter. Use it in call to `read_char'.
29837 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
29838 Set wrong_kboard_jmpbuf correctly in recursive calls.
29839 Use current_kboard to access Vkeyboard_translate_table.
29840 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
29841 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
29842 Update longjmp invocations. Remember the original current_kboard,
29843 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
29844 changes it. Comment out unnecessary calls to
29845 `record_single_kboard_state' and `any_kboard_state'.
29846 Update recursive calls.
29847 (wrong_kboard_jmpbuf): Remove global variable.
29848 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
29849 Handle deleted interrupted_kboards correctly; that is a legal
29850 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
29851 and read_char calls. Abort if interrupted_kboard died in read_char.
29852 (any_kboard_state, single_kboard_state)
29853 (push_frame_kboard): Remove function.
29854 (pop_kboard): Switch out of single_kboard mode if the kboard has
29855 been deleted. Remove unused variable. Help debugging by not
29856 changing current_kboard unnecessarily. Set current_kboard to the
29857 kboard of the selected frame when the stored kboard object has
29858 been deleted before pop_kboard.
29859 (temporarily_switch_to_single_kboard): Change first parameter to a
29860 frame pointer. Throw an error when caller wants to change kboards
29861 while in single_kboard mode. Don't push_kboard if we weren't in
29862 single kboard state. Don't pop_kboard if we popped into any
29863 kboard state.
29864 (restore_kboard_configuration): Abort if pop_kboard changed the
29865 kboard in single_kboard mode. Call pop_kboard only after setting
29866 up single_kboard mode.
29867 (Frecursive_edit): Switch to single_kboard mode only in nested
29868 command loops.
29869 (cmd_error, command_loop, command_loop_1, timer_check):
29870 Comment out unnecessary call to `any_kboard_state' and
29871 `record_single_kboard_state'.
29872 (delete_kboard): Exit single_kboard mode if we have just deleted
29873 that kboard. Use FRAME_KBOARD.
29874 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
29875 `fatal_error_signal'.
29876 (record_single_kboard_state): Don't push_kboard if we weren't in
29877 single kboard state. Don't pop_kboard if we popped into any
29878 kboard state.
29879 (push_frame_kboard): Rename to push_kboard.
29880 (kbd_buffer_get_event): Use FRAME_TERMINAL.
29881 (read_avail_input): Read input from all terminals.
29882 (mark_kboards): Also mark Vkeyboard_translate_table.
29883 (kbd_buffer_store_event_hold): Simplify condition.
29884 (read_key_sequence): Reinitialize fkey and keytran at each replay.
29885 (Vkeyboard_translate_table): Move to struct kboard.
29886 (init_kboard): Initialize Vkeyboard_translate_table.
29887 (syms_of_keyboard): Use DEFVAR_KBOARD to define
29888 Vkeyboard_translate_table. Update doc strings. Update docs of
29889 local-function-key-map and function-key-map.
29890
29891 * terminal.c: New file.
29892
29893 * term.c: Include errno.h.
29894 (Vring_bell_function, device_list, initial_device)
29895 (next_device_id, ring_bell, update_begin, update_end)
29896 (set_terminal_window, cursor_to, raw_cursor_to)
29897 (clear_to_end, clear_frame, clear_end_of_line)
29898 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
29899 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
29900 (syms_of_term): Move their initialization to terminal.c.
29901 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
29902 (Ftty_display_color_cells)
29903 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
29904 (clear_tty_hooks, set_tty_hooks)
29905 (init_tty, maybe_fatal): New functions.
29906 (Ftty_type): Return nil if terminal is not on a tty instead of
29907 throwing an error. Doc update.
29908 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
29909 Doc update. Initialize new subrs and variables.
29910 (delete_tty): Use terminal->deleted.
29911 (tty_set_terminal_modes): Rename from set_terminal_modes.
29912 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
29913 (set_scroll_region): Rename to `tty_set_scroll_region'.
29914 (turn_on_insert): Rename to `tty_turn_on_insert'.
29915 (turn_off_insert): Rename to `tty_turn_off_insert'.
29916 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
29917 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
29918 (toggle_highligh): Rename to `tty_toggle_highlight'.
29919 (background_highlight): Rename to `tty_background_highlight'.
29920 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
29921 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
29922 (tty_set_scroll_region, tty_background_highlight)
29923 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
29924 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
29925 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
29926 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
29927 Add static modifier.
29928 (tty_reset_terminal_modes, tty_set_terminal_window)
29929 (tty_set_scroll_region, tty_background_highlight)
29930 (tty_highlight_if_desired, tty_cursor_to)
29931 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
29932 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
29933 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
29934 renames.
29935
299362007-08-28 Jan Djärv <jan.h.d@swipnet.se>
29937
29938 * keyboard.c: Qrtl is new.
29939 (parse_tool_bar_item): Handle :rtl keyword.
29940 (syms_of_keyboard): Intern :rtl keyword.
29941
29942 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
29943
29944 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
29945 so no Lisp code is executed.
29946 (file_for_image, find_rtl_image): New functions.
29947 (xg_get_image_for_pixmap): Use file_for_image.
29948 (update_frame_tool_bar): If direction is RTL, use RTL image if
29949 defined. Use Gtk stock images if defined.
29950
299512007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29952
29953 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
29954 for nonexistent or zero-width glyph in composition glyph.
29955
299562007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
29957
29958 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
29959
29960 * xdisp.c (Finvisible_p): New function.
29961 (syms_of_xdisp): defsubr it.
29962
299632007-08-24 Juanma Barranquero <lekktu@gmail.com>
29964
29965 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
29966 Doc fixes.
29967
299682007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29969
29970 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
29971
299722007-08-24 Martin Rudalics <rudalics@gmx.at>
29973
29974 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
29975 whether decoding has modified buffer contents.
29976
299772007-08-24 Jason Rumney <jasonr@gnu.org>
29978
29979 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
29980 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
29981 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
29982 (init_svg_functions) [HAVE_NTGUI]: New function.
29983 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
29984 (svg_load_image): Use them.
29985 (svg_load_image) [HAVE_NTGUI]: Implement background.
29986
299872007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29988
29989 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
29990 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
29991 (LIBX): Remove @RSVG_LIBS@.
29992 (LIBES): Add $(RSVG_LIBS).
29993
29994 * image.c (svg_load_image): Blend with specified background if exists.
29995 Use IMAGE_BACKGROUND. Add Mac OS Support.
29996
29997 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
29998 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
29999 Remove macros.
30000 [MAC_OSX] (socket_callback): Do nothing.
30001 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
30002 ReceiveNextEvent.
30003 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
30004 socket_callback.
30005 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
30006
300072007-08-22 Glenn Morris <rgm@gnu.org>
30008
30009 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
30010
300112007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
30012
30013 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
30014
30015 * image.c: Add support for SVG images. Some additional comments
30016 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
30017 (svg_image_p): New function to test for SVG image.
30018 (svg_load): New function to load SVG image.
30019 (svg_load_image): New function, helper for svg_load.
30020 (Qsvg): New Lisp_object.
30021 (svg_keyword_index): New enum.
30022 (svg_format): New static `image_keyword' struct.
30023 (svg_type): New static `image_type' struct.
30024 (librsvg/rsvg.h): Include it.
30025
300262007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
30027
30028 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
30029
300302007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
30031
30032 * lread.c (Qold_style_backquotes): New var.
30033 (syms_of_lread): Init and staticpro it.
30034 (load_warn_old_style_backquotes): New fun.
30035 (Fload): Use them to warn about old style backquotes.
30036 (end_of_file_error, Fload): Remove unused vars.
30037
30038 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
30039
30040 * lread.c (Vold_style_backquotes): New var.
30041 (syms_of_lread): Init and export it to Elisp.
30042 (read1): Set it when we find an old-style (back)quote.
30043
300442007-08-22 Jason Rumney <jasonr@gnu.org>
30045
30046 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
30047
300482007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
30049
30050 * puresize.h (BASE_PURESIZE): Increase to 1140000.
30051
300522007-08-19 Richard Stallman <rms@gnu.org>
30053
30054 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
30055
300562007-08-19 Andreas Schwab <schwab@suse.de>
30057
30058 * alloc.c (pure): Round PURESIZE up.
30059
300602007-08-17 Jan Djärv <jan.h.d@swipnet.se>
30061
30062 * xterm.c (handle_one_xevent): Remove check that mouse click is in
30063 active frame.
30064
300652007-08-16 Richard Stallman <rms@gnu.org>
30066
30067 * eval.c (Fcommandp): Add parens to clarify.
30068
30069 * minibuf.c (Fall_completions): Use enum for type of table.
30070
30071 * emacs.c (USAGE2): Improve text.
30072
300732007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
30074
30075 * term.c (tty_default_color_capabilities): Declare static
30076 variables in file scope, to avoid HPUX compiler problem.
30077
300782007-08-13 Jan Djärv <jan.h.d@swipnet.se>
30079
30080 * gtkutil.c (update_frame_tool_bar): Use -1 as index
30081 to gtk_toolbar_insert.
30082
300832007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
30084
30085 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
30086
30087 * insdel.c (reset_var_on_error): New fun.
30088 (signal_before_change, signal_after_change):
30089 Use it to reset (after|before)-change-functions to nil in case of error.
30090 Bind inhibit-modification-hooks to t.
30091 Don't bind (after|before)-change-functions to nil while they run.
30092
300932007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30094
30095 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
30096 filling pixmap with stippled background.
30097
300982007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30099
30100 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
30101 Don't use invisible frame as parent window for repositioning.
30102
301032007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
30104
30105 * print.c (new_backquote_output): Rename from old_backquote_output.
30106 (print): Inverse its logic (according to its name) so as to match the
30107 behavior of new_backquote_flag in lread.c.
30108
301092007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30110
30111 * gmalloc.c (posix_memalign): New function.
30112
30113 * macterm.c (frame_highlight, frame_unhighlight): Don't call
30114 ActivateControl/DeactivateControl here.
30115 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
30116 frame-notice-user-settings is non-nil.
30117 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
30118 for kEventParamFMFontStyle.
30119 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
30120 mac_pass_command_to_system and mac_pass_control_to_system here.
30121 (XTread_socket): Call ActivateControl/DeactivateControl here.
30122 (XTread_socket) [TARGET_API_MAC_CARBON]:
30123 Check mac_pass_command_to_system and mac_pass_control_to_system here.
30124 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
30125 for window repositioning.
30126
301272007-08-08 Glenn Morris <rgm@gnu.org>
30128
30129 * Replace `iff' in doc-strings and comments.
30130
301312007-08-07 Chong Yidong <cyd@stupidchicken.com>
30132
30133 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
30134
301352007-08-07 Martin Rudalics <rudalics@gmx.at>
30136
30137 * fileio.c (Finsert_file_contents): Run format-decode and
30138 after_insert_file_functions on entire buffer when REPLACE is
30139 non-nil and inhibit modification_hooks and point_motion_hooks.
30140 For consistency, run after_insert_file_functions iff something
30141 got inserted. Move signal_after_change and update_compositions
30142 after code running after_insert_file_functions. Make sure that
30143 undo_list doesn't record intermediate steps of the decoding process.
30144
301452007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30146
30147 * emacs.c (main)
30148 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
30149 Call malloc_enable_thread on interactive startup.
30150
30151 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
30152 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
30153 [USE_PTHREAD]: Conditionalize with it.
30154 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
30155 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
30156 New functions.
30157
301582007-08-06 Chong Yidong <cyd@stupidchicken.com>
30159
30160 * xdisp.c (redisplay_window): When restoring original buffer
30161 position, make sure it is still valid.
30162
30163 * image.c (png_load): Ignore png-supplied background color.
30164
301652007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30166
30167 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
30168 Use kCFAbsoluteTimeIntervalSince1970.
30169
30170 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
30171 New variable.
30172 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
30173 event loop should be quit.
30174 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
30175 Quit dialog event loop if quit_dialog_event_loop is set.
30176
30177 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
30178 (Selection): New typedef. Use instead of ScrapRef.
30179 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
30180 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
30181 (mac_clear_selection): Rename from clear_scrap.
30182 (get_flavor_type_from_symbol): New argument SEL and subsume function of
30183 scrap_has_target_type. All uses changed.
30184 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
30185 (mac_selection_has_target_p): New functions.
30186 (mac_put_selection_value): Rename from put_scrap_string.
30187 (mac_get_selection_value): Rename from get_scrap_string.
30188 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
30189 (put_scrap_private_timestamp, scrap_has_target_type)
30190 (get_scrap_private_timestamp): Remove functions.
30191 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
30192 (x_own_selection, x_get_local_selection):
30193 Use mac_valid_selection_value_p.
30194 (x_own_selection): Don't use put_scrap_private_timestamp.
30195 Record OWNERSHIP-INFO into Vselection_alist instead.
30196 (x_get_local_selection): Don't check type if request is local.
30197 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
30198 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
30199
302002007-08-04 Jan Djärv <jan.h.d@swipnet.se>
30201
30202 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
30203 add comment explaining why.
30204
302052007-08-03 Richard Stallman <rms@gnu.org>
30206
30207 * fileio.c (Fvisited_file_modtime): Use make_time.
30208
302092007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
30210
30211 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
30212 build.
30213
302142007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
30215
30216 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
30217
302182007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
30219
30220 * puresize.h (BASE_PURESIZE): Increase to 1130000.
30221
302222007-07-30 Richard Stallman <rms@gnu.org>
30223
30224 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
30225
302262007-07-29 Jan Djärv <jan.h.d@swipnet.se>
30227
30228 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
30229
302302007-07-28 Nick Roberts <nickrob@snap.net.nz>
30231
30232 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
30233 remote default-directory.
30234
30235 * buffer.c (mode-line-format): Update doc string.
30236
302372007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30238
30239 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
30240 scroll bar gap.
30241 (x_scroll_bar_create): Set bar->fringe_extended_p.
30242 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
30243 on frame edge. Check fringe background extension. Don't clear
30244 extended fringe background area.
30245
30246 * w32term.h (struct scroll_bar): New member fringe_extended_p.
30247 (w32_fill_area): Enclose multiple statements with do ... while (0).
30248
30249 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
30250 Extend fringe background to scroll bar gap.
30251 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
30252 Set bar->fringe_extended_p.
30253 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
30254 Put leftmost/rightmost scroll bars on frame edge. Check fringe
30255 background extension. Don't clear extended fringe background area.
30256
30257 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
30258 New member fringe_extended_p.
30259
302602007-07-25 Glenn Morris <rgm@gnu.org>
30261
30262 * Relicense all FSF files to GPLv3 or later.
30263
30264 * COPYING: Switch to GPLv3.
30265
302662007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
30267
30268 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
30269
30270 * data.c (Finteractive_form): Check for the presence of an
30271 `interactive-form' symbol property more thoroughly.
30272
30273 * data.c (Finteractive_form): Use an `interactive-form' property if
30274 present, analogous to the function-documentation property.
30275
302762007-07-24 Jason Rumney <jasonr@gnu.org>
30277
30278 * w32fns.c (x_real_positions): Get real position from OS instead of
30279 calculating it.
30280
302812007-07-23 Jason Rumney <jasonr@gnu.org>
30282
30283 * filelock.c (current_lock_owner): Allow for @ sign in username.
30284
302852007-07-22 Nick Roberts <nickrob@snap.net.nz>
30286
30287 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
30288 remote default-directory.
30289
30290 * buffer.c (mode-line-format): Describe above case in doc string.
30291
302922007-07-20 Eli Zaretskii <eliz@gnu.org>
30293
30294 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
30295 Define if not defined.
30296
302972007-07-18 Jason Rumney <jasonr@gnu.org>
30298
30299 * w32proc.c (w32_executable_type): Handle 64 bit executables.
30300
303012007-07-18 Richard Stallman <rms@gnu.org>
30302
30303 * data.c (Fsetq_default): Doc fix.
30304
30305 * eval.c (Fsetq): Doc fix.
30306
303072007-07-18 Juanma Barranquero <lekktu@gmail.com>
30308
30309 * coding.c (Ffind_operation_coding_system):
30310 * eval.c (For, Fand): Doc fixes.
30311 Reported by Johan Bockgård.
30312
303132007-07-18 Jan Djärv <jan.h.d@swipnet.se>
30314
30315 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
30316
30317 * xterm.h: Declare x_ewmh_activate_frame.
30318
30319 * xterm.c (x_ewmh_activate_frame): New function.
30320 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
30321
303222007-07-17 Martin Rudalics <rudalics@gmx.at>
30323
30324 * window.c (Fdisplay_buffer): If largest or LRU window is the
30325 only window, split it even if it is not eligible for splitting.
30326 This restores the original behavior broken by the 2007-07-15
30327 change.
30328
303292007-07-17 Glenn Morris <rgm@gnu.org>
30330
30331 * abbrev.c (abbrev_check_chars): New function.
30332 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
30333 Call abbrev_check_chars to check abbrev characters are word
30334 constituents. Doc fix.
30335
303362007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
30337
30338 * process.c (Fstart_process, Fmake_network_process)
30339 (read_process_output): Fix up last changes.
30340
303412007-07-16 Eli Zaretskii <eliz@gnu.org>
30342
30343 * makefile.w32-in (clean): Don't delete *~.
30344
303452007-07-16 Andreas Schwab <schwab@suse.de>
30346
30347 * window.c (Fdisplay_buffer): Use NILP.
30348 (Fset_window_scroll_bars): Likewise.
30349
303502007-07-15 Martin Rudalics <rudalics@gmx.at>
30351
30352 * window.c (window_min_size_2): New function.
30353 (window_min_size_1, size_window, Fdisplay_buffer)
30354 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
30355 windows without mode- or header-lines when window-min-height is
30356 too small.
30357 (size_window): Reset nodelete_p after testing it, following an
30358 earlier note by Kim F. Storm.
30359 (display_buffer): Do not set split_height_threshold to twice the
30360 value of window_min_height to avoid changing the value of a
30361 customizable variable. Rather explicitly check whether the
30362 height of the window that shall be splitted is at least as large
30363 as split_height_threshold.
30364 (Fwindow_full_width_p): New defun.
30365 (syms_of_window): Defsubr it.
30366
30367 * window.h: Add EXFUN for Fwindow_full_width_p.
30368
303692007-07-14 Jason Rumney <jasonr@gnu.org>
30370
30371 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
30372
303732007-07-14 Richard Stallman <rms@gnu.org>
30374
30375 * eval.c (maybe_call_debugger): New function.
30376 (find_handler_clause): Use maybe_call_debugger.
30377 Call it when the handler says `debug'.
30378 Eliminate DEBUGGER_VALUE_PTR.
30379 (Fsignal): Eliminate debugger_value.
30380 (Qdebug): New variable.
30381 (syms_of_eval): Initialize it.
30382
303832007-07-14 Juanma Barranquero <lekktu@gmail.com>
30384
30385 * eval.c (Fprogn):
30386 * keyboard.c (Ftrack_mouse):
30387 * print.c (Fwith_output_to_temp_buffer):
30388 * window.c (Fsave_window_excursion): Doc fix.
30389
303902007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
30391
30392 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
30393
303942007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
30395
30396 * process.h (struct Lisp_Process): Turn slots infd, outfd,
30397 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
30398 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
30399 read_output_delay, and read_output_skip from Lisp_Objects to ints.
30400 Remove unused encoding_carryover.
30401 * process.c: Adjust all functions accordingly.
30402
304032007-07-12 Richard Stallman <rms@gnu.org>
30404
30405 * term.c: Include unistd.h only if HAVE_UNISTD_H.
30406
304072007-07-11 Jason Rumney <jasonr@gnu.org>
30408
30409 * makefile.w32-in (LIBS): Include OLE32.
30410
30411 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
30412 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
30413
304142007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
30415
30416 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
30417 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
30418 from a Lisp_Object into a bare pointer.
30419 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
30420 Adjust the code correspondingly.
30421
30422 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
30423
30424 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
30425 (term_show_mouse_face): Remove unused var `j'.
30426 (handle_one_term_event): Remove unused vars `i' and `j'.
30427 Don't cast return value of ttyname since it's not necessary.
30428
304292007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
30430
30431 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
30432 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
30433
30434 * fns.c (map_char_table): Use an array of int for `indices' rather than
30435 an array of Lisp_Objects (which are only ever integers anyway).
30436 (Fmap_char_table): Update caller.
30437 * lisp.h: Update prototype.
30438 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
30439 * fontset.c (Ffontset_info):
30440 * casetab.c (set_case_table): Update callers.
30441
30442 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
30443
30444 * keymap.c (struct accessible_keymaps_data)
30445 (struct where_is_internal_data): New structures.
30446 (accessible_keymaps_1, where_is_internal_1): Use them to change
30447 interface to adhere to the one used by map_keymap.
30448 (Faccessible_keymaps, where_is_internal): Use map_keymap.
30449 (accessible_keymaps_char_table, where_is_internal_2): Remove.
30450
30451 * keymap.h (map_keymap_function_t): More informative prototype.
30452
304532007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
30454
30455 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
30456 (looking_at_1): Don't change search_regs and last_thing_searched
30457 if `inhibit-changing-match-data' is non-nil.
30458 (string_match_1, search_buffer, set_search_regs): Likewise.
30459 (syms_of_search): Add Lisp level definition for
30460 `inhibit-changing-match-data' and set it to nil.
30461 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
30462 start and end of the match, instead of using values in search_regs.
30463
304642007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
30465
30466 * minibuf.c (Fcompleting_read): New value `confirm-only'
30467 for `require-match'.
30468
304692007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
30470
30471 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
30472 part of the 2007-06-27 change to syms_of_fileio.
30473
304742007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30475
30476 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
30477 Check WINDOWP before using XWINDOW. Consolidate return statements.
30478
304792007-06-27 Richard Stallman <rms@gnu.org>
30480
30481 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
30482
304832007-06-27 Juanma Barranquero <lekktu@gmail.com>
30484
30485 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
30486
304872007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30488
30489 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
30490 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
30491 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
30492 (_free_internal, memalign): Use them.
30493 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
30494 Initialize to PTHREAD_MUTEX_INITIALIZER.
30495 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
30496 (morecore_nolock): Rename from morecore. All uses changed.
30497 Use only nolock versions of internal allocation functions.
30498 (_malloc_internal_nolock, _realloc_internal_nolock)
30499 (_free_internal_nolock): New functions created from
30500 _malloc_internal, _realloc_internal, and _free_internal.
30501 (_malloc_internal, _realloc_internal, _free_internal): Use them.
30502 Copy hook value to automatic variable before its use.
30503 (memalign): Copy hook value to automatic variable before its use.
30504
305052007-06-26 Kenichi Handa <handa@m17n.org>
30506
30507 * coding.c (Ffind_operation_coding_system): Docstring improved.
30508 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
30509
305102007-06-25 David Kastrup <dak@gnu.org>
30511
30512 * keymap.c (Fcurrent_active_maps): Add `position' argument.
30513 (Fwhere_is_internal): Adjust call to `current-active-maps' to
30514 cater for additional parameter.
30515
30516 * keymap.h: Adjust number of parameters to `current-active-maps'.
30517
30518 * doc.c (Fsubstitute_command_keys): Adjust call of
30519 `current-active-maps'.
30520
305212007-06-25 David Kastrup <dak@gnu.org>
30522
30523 * callint.c (Fcall_interactively): Make the parsing of interactive
30524 specs somewhat more readable.
30525
305262007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30527
30528 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
30529 to scroll bar gap also when bitmap fills fringe. Draw only foreground
30530 if extended background has already been filled.
30531
305322007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30533
30534 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
30535 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
30536
30537 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
30538 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
30539 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
30540 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
30541 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
30542 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
30543 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
30544 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
30545 Run timers during dialog popup.
30546 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
30547
305482007-06-21 Jason Rumney <jasonr@gnu.org>
30549
30550 * image.c (convert_mono_to_color_image): Swap fore and background.
30551
305522007-06-20 Jason Rumney <jasonr@gnu.org>
30553
30554 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
30555 (w32_free_bdf_font): Unmap memory not handle.
30556
305572007-06-20 Sam Steingold <sds@gnu.org>
30558
30559 * gmalloc.c (__morecore): Fix the declaration to comply with the
30560 definition.
30561
305622007-06-20 Juanma Barranquero <lekktu@gmail.com>
30563
30564 * w32term.c (w32_delete_display): Remove leftover declaration.
30565 (w32_define_cursor, w32_initialize): Make static.
30566
30567 * w32.c (_wsa_errlist): Fix typo in error message.
30568 (init_environment): Ignore any environment variable from the
30569 registry having a null value.
30570
305712007-06-20 Glenn Morris <rgm@gnu.org>
30572
30573 * Makefile.in (LIBGIF): Default to -lgif.
30574
305752007-06-17 Jason Rumney <jasonr@gnu.org>
30576
30577 * w32menu.c (add_menu_item): Don't use multibyte string functions on
30578 unicode strings.
30579
305802007-06-16 Juanma Barranquero <lekktu@gmail.com>
30581
30582 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
30583 Fix typo in docstring.
30584
305852007-06-16 Eli Zaretskii <eliz@gnu.org>
30586
30587 * w32menu.c (add_menu_item): Escape `&' characters in menu items
30588 and their keybindings.
30589
305902007-06-15 Chong Yidong <cyd@stupidchicken.com>
30591
30592 * composite.c (update_compositions): Fix last fix.
30593
305942007-06-14 Jason Rumney <jasonr@gnu.org>
30595
30596 * w32.c (get_process_times_fn): New function pointer.
30597 (globals_of_w32): Intialize it if present in kernel32.dll.
30598 (w32_get_internal_run_time): New function.
30599
30600 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
30601
306022007-06-14 Kenichi Handa <handa@etlken.m17n.org>
30603
30604 * composite.c (update_compositions): Check the validness of
30605 compositions.
30606
306072007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30608
30609 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
30610 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
30611
30612 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
30613 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
30614
30615 * macgui.h (USE_MAC_TOOLBAR): New define.
30616
30617 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
30618 Return immediately unless popup is activated.
30619
30620 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
30621 background to scroll bar gap.
30622 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
30623 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
30624 scroll bars on frame edge. Check fringe background extension.
30625 Don't clear extended fringe background area.
30626 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
30627 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
30628 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
30629 [USE_MAC_TOOLBAR]: New macros.
30630 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
30631 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
30632 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
30633 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
30634 [USE_MAC_TOOLBAR]: New functions.
30635 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
30636 manually if previous repositioning has failed.
30637 (mac_handle_keyboard_event): Use precomputed event kind.
30638 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
30639 as tool bar item click. Handle mouse movement over tool bar items.
30640
30641 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
30642 toolbar_win_gravity.
30643 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
30644 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
30645 Add externs.
30646
30647 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
30648 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
30649
306502007-06-14 Chong Yidong <cyd@stupidchicken.com>
30651
30652 * image.c (search_image_cache): Remove unused variable.
30653
306542007-06-13 Chong Yidong <cyd@stupidchicken.com>
30655
30656 * xfns.c, xmenu.c: Link to xaw3d if available.
30657
306582007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30659
30660 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
30661 frame_foreground and frame_background.
30662
30663 * image.c (lookup_image): Save frame foreground and background colors.
30664 (search_image_cache): Check if saved and current frame colors match.
30665
306662007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
30667
30668 * regex.c (regex_compile): Remove the `regnum' counter.
30669 Use bufp->re_nsub instead. Add support for \(?N:RE\).
30670
306712007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
30672
30673 * term.c: Include intervals.h to declare Fget_text_property.
30674
306752007-06-10 Jason Rumney <jasonr@gnu.org>
30676
30677 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
30678
306792007-06-08 Juanma Barranquero <lekktu@gmail.com>
30680
30681 * callint.c (Fcall_interactively):
30682 * editfns.c (Fdelete_and_extract_region):
30683 * fileio.c (Fread_file_name):
30684 * fns.c (Fmapconcat):
30685 * keyboard.c (cmd_error_internal):
30686 * keymap.c (Fkey_description):
30687 * lread.c (openp):
30688 * minibuf.c (read_minibuf):
30689 * search.c (wordify):
30690 * sunfns.c (sel_read):
30691 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
30692 * xfns.c (x_default_scroll_bar_color_parameter):
30693 * xmenu.c (menu_help_callback):
30694 * xselect.c (Fx_get_atom_name):
30695 * xterm.c (x_term_init): Use empty_unibyte_string.
30696
306972007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
30698
30699 * alloc.c (init_strings): Initialize canonical empty strings.
30700 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
30701 canonical empty string when the requested size is 0.
30702
30703 * emacs.c (empty_unibyte_string): Rename from empty_string.
30704 (empty_multibyte_string): New canonical empty string.
30705 (syms_of_emacs): Don't initialize empty_string.
30706
30707 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
30708 string, if appropriate.
30709 (empty_unibyte_string, empty_multibyte_string): New externs.
30710 (empty_string): Remove extern.
30711
30712 * lread.c (syms_of_lread): Use empty_unibyte_string.
30713
307142007-06-07 Jason Rumney <jasonr@gnu.org>
30715
30716 * s/ms-w32.h: Don't define HAVE_TZNAME.
30717
30718 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
30719
307202007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30721
30722 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
30723
30724 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
30725 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
30726
30727 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
30728 Don't call next handler.
30729 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
30730 Remove argument. Install handler to application.
30731 (set_frame_menubar): Don't change deep_p.
30732 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
30733 FRAME_OUTER_TO_INNER_DIFF_Y.
30734 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
30735 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
30736 [HAVE_DIALOGS]: New macros.
30737 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
30738 Use them.
30739 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
30740
30741 * macselect.c [MAC_OSX] (install_service_handler): Rename from
30742 init_service_handler. All callers changed. Return OSStatus value.
30743
30744 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
30745 All callers changed so as not to call SetPortWindowPort.
30746 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
30747 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
30748 mac_draw_string_common.
30749 (mac_draw_image_string_qd): Likewise.
30750 (mac_draw_string_common): Use them. Add INLINE.
30751 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
30752 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
30753 GetGlobalMouse.
30754 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
30755 and FRAME_OUTER_TO_INNER_DIFF_Y.
30756 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
30757 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
30758 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
30759 repositioning window to mac_handle_window_event.
30760 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
30761 saving window location to mac_handle_window_event
30762 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
30763 (install_menu_target_item_handler): Remove argument in extern.
30764 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
30765 Also accept command events.
30766 (do_keystroke): New function created from XTread_socket.
30767 (init_command_handler): Remove functions.
30768 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
30769 and save window location by kEventWindowShowing and kEventWindowHiding
30770 handlers here. Don't call next handler for window state change and
30771 focus events.
30772 (mac_handle_application_event, mac_handle_keyboard_event)
30773 [TARGET_API_MAC_CARBON]: New functions.
30774 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
30775 kEventWindowShowing and kEventWindowHiding events. Move installation
30776 of mouse, font, text input and menu target item handlers to
30777 install_application_handler.
30778 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
30779 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
30780 New function.
30781 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
30782 Register it.
30783 (XTread_socket) [TARGET_API_MAC_CARBON]:
30784 Consolidate SendEventToEventTarget calls.
30785 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
30786 Move application activation handler to mac_handle_application_event.
30787 Move keyboard handler to mac_handle_keyboard_event.
30788 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
30789 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
30790 init_command_handler. Call install_application_handler.
30791
30792 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
30793 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
30794
307952007-06-07 Glenn Morris <rgm@gnu.org>
30796
30797 * emacs.c (main): Use `emacs-copyright' in --version output.
30798
307992007-06-06 Chong Yidong <cyd@stupidchicken.com>
30800
30801 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
30802
308032007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30804
30805 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
30806
30807 * macgui.h: Replace WindowPtr with WindowRef.
30808
30809 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
30810 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
30811 Replace ControlHandle with ControlRef.
30812 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
30813
30814 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
30815 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
30816 Replace ControlHandle with ControlRef.
30817 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
30818 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
30819
30820 * macterm.h (struct scroll_bar): Rename member control_handle_low
30821 and control_handle_high to control_ref_low and control_ref_high.
30822 All uses changed.
30823 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
30824 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
30825 respectively. All uses changed.
30826 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
30827 (install_window_handler, remove_window_handler): Replace WindowPtr
30828 with WindowRef in externs.
30829
308302007-06-05 Juanma Barranquero <lekktu@gmail.com>
30831
30832 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
30833
308342007-06-03 Nick Roberts <nickrob@snap.net.nz>
30835
30836 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
30837
30838 * frame.c (Fmouse_position, Fmouse_pixel_position):
30839 Condition on HAVE_GPM too.
30840
30841 * term.c (term_mouse_highlight): Remove unused variables.
30842 (Fterm_open_connection): Set gpm_zerobased to 1.
30843 (term_mouse_movement, term_mouse_click, handle_one_term_event):
30844 Use zero based co-ordinates.
30845 (handle_one_term_event): Report a drag as mouse movement too.
30846
30847 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
30848
308492007-06-03 Chong Yidong <cyd@stupidchicken.com>
30850
30851 * image.c (search_image_cache): New function. Require background
30852 color match if background color is unspecified in the image spec.
30853 (uncache_image, lookup_image): Use it.
30854
308552007-06-01 Juanma Barranquero <lekktu@gmail.com>
30856
30857 * window.c (Fshrink_window): Reflow docstring.
30858
308592007-06-02 Chong Yidong <cyd@stupidchicken.com>
30860
30861 * Version 22.1 released.
30862
308632007-06-01 Richard Stallman <rms@gnu.org>
30864
30865 * xfns.c (x_encode_text): Add GCPRO.
30866
308672007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30868
30869 * xfns.c (x_set_name_internal): Save encoded name before
30870 x_encode_text in case string data is relocated.
30871
308722007-05-31 Richard Stallman <rms@gnu.org>
30873
30874 * buffer.c (syms_of_buffer): Doc fix.
30875
308762007-05-30 Nick Roberts <nickrob@snap.net.nz>
30877
30878 * sysdep.c (init_sys_modes): Add rather than replace with
30879 O_NONBLOCK.
30880
30881 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
30882 term_mouse_moveto.
30883
30884 * termhooks.h (term_mouse_moveto): New extern.
30885
30886 * term.c (mouse_face_window): Rename...
30887 (Qmouse_face_window): ...to this.
30888 (term_show_mouse_face, term_clear_mouse_face)
30889 (term_mouse_highlight): Use Qmouse_face_window.
30890 (term_mouse_moveto): New function.
30891 (term_mouse_position): Make it work.
30892 (syms_of_term): Uncomment assignment to mouse_position_hook.
30893 Staticpro Qmouse_face_window.
30894
308952007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30896
30897 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
30898 around current_column call.
30899
309002007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
30901
30902 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
30903 * xdisp.c (next_element_from_buffer):
30904 * window.c (delete_window):
30905 * term.c (term_mouse_highlight):
30906 * msdos.c (getdefdir):
30907 * macterm.c (mac_create_bitmap_from_bitmap_data)
30908 (init_font_name_table):
30909 * fns.c (Fsxhash):
30910 * data.c (Fmake_local_variable):
30911 * ccl.c (ccl_driver): Likewise.
30912
309132007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30914
30915 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
30916 Call mac_wakeup_from_rne on window size change.
30917
309182007-05-25 Chong Yidong <cyd@stupidchicken.com>
30919
30920 * image.c (uncache_image): Fix typo.
30921
309222007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
30923
30924 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
30925
309262007-05-22 Richard Stallman <rms@gnu.org>
30927
30928 * xterm.c (x_connection_closed): Remove NO_RETURN.
30929
309302007-05-22 Martin Rudalics <rudalics@gmx.at>
30931
30932 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
30933
309342007-05-21 Chong Yidong <cyd@stupidchicken.com>
30935
30936 * image.c (uncache_image): New function.
30937 (Fimage_refresh): New function.
30938
309392007-05-20 Jan Djärv <jan.h.d@swipnet.se>
30940
30941 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
30942
309432007-05-20 Nick Roberts <nickrob@snap.net.nz>
30944
30945 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
30946 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
30947
309482007-05-20 Nick Roberts <nickrob@snap.net.nz>
30949
30950 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
30951 conditional on [HAVE_GPM_H].
30952
309532007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
30954
30955 * syntax.c (skip_chars): Update syntax-table only after we checked that
30956 the new location is valid.
30957
309582007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30959
30960 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
30961 mac_get_window_bounds.
30962
309632007-05-20 Nick Roberts <nickrob@snap.net.nz>
30964
30965 * Makefile.in (LIBGPM): Allow it to be set from configure.
30966 If set then link Emacs with it.
30967
30968 * config.in: Regenerate.
30969
30970 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
30971 New externs.
30972
30973 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
30974 Include gpm.h.
30975 (handle_one_term_event, term_gpm): New externs.
30976
30977 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
30978 and allow it to be interrupted by SIGIO.
30979
30980 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
30981 (wait_reading_process_output): Wait on gpm_fd too.
30982 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
30983 (add_gpm_wait_descriptor_called_flag): New variable.
30984 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
30985
30986 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
30987 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
30988 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
30989 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
30990 (make_lispy_event): Add case GPM_CLICK_EVENT.
30991 (read_avail_input): Handle mouse input.
30992
30993 * term.c (write_glyphs_with_face): New function.
30994 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
30995 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
30996 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
30997 (mouse_face_face_id, term_gpm, pos_x, pos_y)
30998 (last_mouse_x, last_mouse_y): New variables.
30999 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
31000 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
31001 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
31002 (Fterm_close_connection): New functions.
31003 (term_init): Initialise mouse_face_window.
31004
310052007-05-19 Chong Yidong <cyd@stupidchicken.com>
31006
31007 * xdisp.c (redisplay_window): If first window line is a
31008 continuation line, recompute the new window start instead of
31009 recentering.
31010
310112007-05-18 Glenn Morris <rgm@gnu.org>
31012
31013 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
31014 Suggested by Alfred M. Szmidt <ams@gnu.org>.
31015
310162007-05-17 Glenn Morris <rgm@gnu.org>
31017
31018 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
31019
310202007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31021
31022 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
31023 dead key repeat and up events.
31024
310252007-05-14 Chong Yidong <cyd@stupidchicken.com>
31026
31027 * image.c (pbm_load): Check image size for monochrome pbm.
31028
310292007-05-13 Chong Yidong <cyd@stupidchicken.com>
31030
31031 * xterm.c (XTread_socket): Revert last change.
31032
310332007-05-12 Chong Yidong <cyd@stupidchicken.com>
31034
31035 * image.c (pbm_load): Correctly check image size for greyscale pbm.
31036
31037 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
31038
310392007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
31040
31041 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
31042 mixup (YAILOM).
31043
310442007-05-07 Andreas Schwab <schwab@suse.de>
31045
31046 * keymap.c (Flookup_key): Fix typo in last change.
31047
310482007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
31049
31050 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
31051 mapping for unibyte strings.
31052
310532007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31054
31055 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
31056 (Fx_popup_dialog) [MAC_OSX]: Likewise.
31057
310582007-04-29 Richard Stallman <rms@gnu.org>
31059
31060 * insdel.c (replace_range): For undo, record insertion first.
31061
310622007-04-29 Andreas Schwab <schwab@suse.de>
31063
31064 * lisp.h (VECSIZE): Use OFFSETOF.
31065
310662007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31067
31068 * xdisp.c (try_window_reusing_current_matrix): Fix number of
31069 disabled lines.
31070
310712007-04-28 Richard Stallman <rms@gnu.org>
31072
31073 * lread.c (read_escape): In a string, \s is always space.
31074
310752007-04-27 Jan Djärv <jan.h.d@swipnet.se>
31076
31077 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
31078
31079 * gtkutil.c (xg_update_menubar, create_menus): Create empty
31080 submenu for menu bar items.
31081
31082See ChangeLog.10 for earlier changes.
31083
31084;; Local Variables:
31085;; coding: utf-8
aac0c6e3
MR
31086;; End:
31087
73b0cd50 31088 Copyright (C) 2007-2011 Free Software Foundation, Inc.
aac0c6e3
MR
31089
31090 This file is part of GNU Emacs.
31091
31092 GNU Emacs is free software: you can redistribute it and/or modify
31093 it under the terms of the GNU General Public License as published by
31094 the Free Software Foundation, either version 3 of the License, or
31095 (at your option) any later version.
31096
31097 GNU Emacs is distributed in the hope that it will be useful,
31098 but WITHOUT ANY WARRANTY; without even the implied warranty of
31099 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
31100 GNU General Public License for more details.
31101
31102 You should have received a copy of the GNU General Public License
31103 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.