* src/unexmacosx.c: Add comment about include order.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
e885315d
JD
12011-01-20 Jan Djärv <jan.h.d@swipnet.se>
2
3 * unexmacosx.c: Add comment about include order.
4
bb1c6663
GM
52011-01-20 Glenn Morris <rgm@gnu.org>
6
c11136ec
GM
7 * minibuf.c (syms_of_minibuf) <read-expression-history>:
8 Give it a doc string.
9 * globals.h: Add Vread_expression_history.
10
bb1c6663
GM
11 * macros.c (syms_of_macros) <kbd-macro-termination-hook>:
12 Give it a doc string.
13 * globals.h: Add Vkbd_macro_termination_hook.
14
9aea757b
CY
152011-01-20 Chong Yidong <cyd@stupidchicken.com>
16
17 * fns.c (Fyes_or_no_p): Revert 2011-01-07 change, removing ARGS.
18
e1ef0dac
PE
192011-01-19 Paul Eggert <eggert@cs.ucla.edu>
20
21 Fix X11 compilation failure.
22 * globals.h (struct emacs_globals): Document f_Vselection_alist.
23 * xselect.c (Vselection_alist): Remove declaration, moving its
24 documentation to globals.h. This fixes a compilation failure
25 induced by the earlier change to globals.h today.
26
fb9d0f5a
JD
272011-01-19 Jan Djärv <jan.h.d@swipnet.se>
28
8beb828a
JD
29 * unexmacosx.c: Include config.h before unistd.h (Bug#7859).
30
fb9d0f5a
JD
31 * nsterm.m (ns_input_file, ns_input_font, ns_input_fontsize)
32 (ns_input_line, ns_input_color, ns_input_text, ns_working_text)
33 (ns_input_spi_name, ns_input_spi_arg)
34 (ns_alternate_modifier, ns_right_alternate_modifier)
35 (ns_command_modifier, ns_right_command_modifier, ns_control_modifier)
36 (ns_right_control_modifier, ns_function_modifier)
37 (ns_antialias_text, ns_confirm_quit): Move to globals.h.
38 (Vx_toolkit_scroll_bars, x_use_underline_position_properties)
39 (x_underline_at_descent_line): Remove declaration.
40 (syms_of_nsterm): Remove & from DEFVAR_LISP and DEFVAR_BOOL.
41
42 * nsselect.m (Vns_sent_selection_hooks, Vns_lost_selection_hooks
43 (Vselection_alist, Vselection_converter_alist): Move to globals.h.
44 (syms_of_nsselect): Remove & from DEFVAR_LISP.
45
46 * nsmenu.m (Voverriding_local_map, Voverriding_local_map_menu_flag):
47 Remove declaration.
48
49 * nsfont.m (Vns_reg_to_script, ns_antialias_text): Move to
50 globals.h.
51 (syms_of_nsfont): Remove & from DEFVAR_LISP.
52
53 * nsfns.m (Vmenu_bar_mode, Vtool_bar_mode): Remove declaration.
54 (Vns_icon_type_alist, Vns_version_string): Move to globals.h.
55 (syms_of_nsfns): Remove & from DEFVAR_LISP calls.
56
57 * globals.h (struct emacs_globals): Add f_ns_input_file,
58 f_ns_input_font, f_ns_input_fontsize, f_ns_input_line,
59 f_ns_input_color, f_ns_input_text, f_ns_working_text,
60 f_ns_input_spi_name, f_ns_input_spi_arg, f_ns_alternate_modifier,
61 f_ns_right_alternate_modifier, f_ns_command_modifier,
62 f_ns_right_command_modifier, f_ns_control_modifier,
63 f_ns_right_control_modifier, f_ns_function_modifier,
64 f_ns_antialias_text, f_ns_confirm_quit, f_Vns_icon_type_alist,
65 f_Vns_version_string, f_Vns_sent_selection_hooks,
66 f_Vns_lost_selection_hooks, f_Vselection_alist, f_Vns_reg_to_script
67 and corresponding defines.
68
69
4e55715e
SS
702011-01-19 Sam Steingold <sds@gnu.org>
71
72 * w32.c (check_windows_init_file): Remove declarations of
73 Vwindow_system, Vload_path, Qfile_exists_p to fix compilation.
817a735d 74 * w32fns.c: Fix an error introduced by the previous patch.
4e55715e 75
ef79d2fa
TT
762011-01-19 Tom Tromey <tromey@redhat.com>
77
78 * window.c: Fix error introduced by previous patch.
79
29208e82
TT
802011-01-18 Tom Tromey <tromey@parfait>
81
82 * globals.h: New file.
83 * xterm.h (Vx_pixel_size_width_font_regexp): Remove declaration.
84 * window.h (Vinitial_window_system, Vminibuf_scroll_window)
85 (Vwindow_system_version): Remove declaration.
86 * w32term.h (Vw32_enable_palette)
87 (Vx_pixel_size_width_font_regexp): Remove declaration.
88 * w32menu.c (Voverriding_local_map)
89 (Voverriding_local_map_menu_flag): Remove declaration.
90 * w32inevt.c (Vw32_alt_is_meta, Vw32_apps_modifier)
91 (Vw32_capslock_is_shiftlock, Vw32_enable_caps_lock)
92 (Vw32_enable_num_lock, Vw32_lwindow_modifier)
93 (Vw32_pass_lwindow_to_system, Vw32_pass_rwindow_to_system)
94 (Vw32_phantom_key_code, Vw32_recognize_altgr)
95 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
96 (w32_use_full_screen_buffer): Remove declaration.
97 * w32.c (Vsystem_configuration, Vw32_downcase_file_names)
98 (Vw32_generate_fake_inodes, Vw32_get_true_file_attributes)
99 (w32_num_mouse_buttons, w32_pipe_read_delay): Remove declaration.
100 * termopts.h (Vtruncate_partial_width_windows, inverse_video)
101 (no_redraw_on_reenter, visible_bell): Remove declaration.
102 * sysdep.c (Vsystem_name): Remove declaration.
103 * syntax.h (parse_sexp_lookup_properties): Remove declaration.
104 * menu.h (Vmenu_updating_frame): Remove declaration.
105 * macros.h (Vexecuting_kbd_macro, executing_kbd_macro_index):
106 Remove declaration.
107 * lisp.h (Vafter_init_time, Vafter_load_alist)
108 (Vauto_save_list_file_name, Vbefore_init_time, Vcommand_history)
109 (Vcompletion_regexp_list, Vcurrent_load_list)
110 (Vcurrent_prefix_arg, Vdata_directory, Vdebug_on_error)
111 (Vdoc_directory, Vdoc_file_name, Vdynamic_library_alist)
112 (Vexec_directory, Vexec_path, Vexec_suffixes)
113 (Vface_font_rescale_alist, Vface_ignored_fonts, Vfeatures)
114 (Vhelp_form, Vhistory_length, Vinhibit_field_text_motion)
115 (Vinhibit_quit, Vinhibit_read_only, Vinhibit_redisplay)
116 (Vinstallation_directory, Vinvocation_directory)
117 (Vinvocation_name, Vload_file_rep_suffixes, Vload_history)
118 (Vload_suffixes, Vmark_even_if_inactive, Vmemory_full)
119 (Vmessage_log_max, Vobarray, Vprint_length, Vprint_level)
120 (Vpurify_flag, Vquit_flag, Vsaved_region_selection)
121 (Vscalable_fonts_allowed, Vselect_active_regions)
122 (Vshell_file_name, Vstandard_input, Vstandard_output)
123 (Vsystem_name, Vtemporary_file_directory, Vthrow_on_input)
124 (Vtop_level, Vtty_erase_char, Vundo_outer_limit)
125 (Vuser_login_name, Vwindow_scroll_functions)
126 (Vwindow_system_version, Vx_no_window_manager)
127 (Vx_resource_class, Vx_resource_name, baud_rate)
128 (completion_ignore_case, debug_on_next_call, gc_cons_threshold)
129 (history_delete_duplicates, inhibit_x_resources)
130 (last_nonmenu_event, load_in_progress, max_specpdl_size)
131 (minibuffer_auto_raise, print_escape_newlines, scroll_margin)
132 (use_dialog_box, use_file_dialog): Remove declaration. Include
133 globals.h.
134 * keymap.h (Voverriding_local_map)
135 (Voverriding_local_map_menu_flag, meta_prefix_char): Remove
136 declaration.
137 * keyboard.h (Vdouble_click_time, Vfunction_key_map)
138 (Vinput_method_function, Vkey_translation_map)
139 (Vlucid_menu_bar_dirty_flag, Vthis_original_command)
140 (do_mouse_tracking, extra_keyboard_modifiers)
141 (num_nonmacro_input_events): Remove declaration.
142 * intervals.h (Vchar_property_alias_alist)
143 (Vdefault_text_properties, Vinhibit_point_motion_hooks)
144 (Vtext_property_default_nonsticky): Remove declaration.
145 * gtkutil.h (x_gtk_file_dialog_help_text)
146 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
147 (x_gtk_whole_detached_tool_bar): Remove declaration.
148 * frame.h (Vdefault_frame_alist, Vframe_alpha_lower_limit)
149 (Vmenu_bar_mode, Vmouse_highlight, Vterminal_frame)
150 (Vtool_bar_mode, Vx_resource_class, Vx_resource_name)
151 (focus_follows_mouse): Remove declaration.
152 * fontset.h (Valternate_fontname_alist, Vfontset_alias_alist)
153 (Vignore_relative_composition, Votf_script_alist)
154 (Vuse_default_ascent, Vvertical_centering_font_regexp): Remove
155 declaration.
156 * font.h (Vfont_log): Remove declaration.
157 * dosfns.h (Vdos_display_scancodes, Vdos_version)
158 (Vdos_windows_version, dos_codepage, dos_country_code)
159 (dos_decimal_point, dos_hyper_key, dos_keyboard_layout)
160 (dos_keypad_mode, dos_super_key, dos_timezone_offset): Remove
161 declaration.
162 * disptab.h (Vglyph_table, Vstandard_display_table): Remove
163 declaration.
164 * dispextern.h (Vface_remapping_alist, Vglyphless_char_display)
165 (Vmouse_autoselect_window, Voverflow_newline_into_fringe)
166 (Vshow_trailing_whitespace, Vtool_bar_button_margin)
167 (Vtool_bar_style, cursor_in_echo_area, display_hourglass_p)
168 (inverse_video, mode_line_in_non_selected_windows)
169 (tool_bar_button_relief, tool_bar_max_label_size)
170 (underline_minimum_offset)
171 (unibyte_display_via_language_environment, x_stretch_cursor_p):
172 Remove declaration.
173 * composite.h (Vauto_composition_function)
174 (Vcomposition_function_table): Remove declaration.
175 * commands.h (Vexecuting_kbd_macro)
176 (Vminibuffer_local_completion_map)
177 (Vminibuffer_local_filename_completion_map)
178 (Vminibuffer_local_filename_must_match_map)
179 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
180 (Vminibuffer_local_ns_map, Vthis_command)
181 (Vunread_command_events, cursor_in_echo_area)
182 (last_command_event, last_nonmenu_event, unread_command_char):
183 Remove declaration.
184 * coding.h (Vcoding_system_for_read, Vcoding_system_for_write)
185 (Vdefault_file_name_coding_system)
186 (Vdefault_process_coding_system, Vfile_name_coding_system)
187 (Vlast_coding_system_used, Vlocale_coding_system)
188 (Vselect_safe_coding_system_function)
189 (Vtranslation_table_for_input, coding_system_require_warning)
190 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
191 (eol_mnemonic_unix, inherit_process_coding_system): Remove
192 declaration.
193 * charset.h (Vcharset_list, Vcurrent_iso639_language): Remove
194 declaration.
195 * character.h (Vauto_fill_chars, Vchar_direction_table)
196 (Vchar_script_table, Vchar_width_table, Vprintable_chars)
197 (Vscript_representative_chars, Vtranslation_table_vector)
198 (Vunicode_category_table): Remove declaration.
199 * ccl.h (Vfont_ccl_encoder_alist): Remove declaration.
200 * buffer.h (Vafter_change_functions, Vbefore_change_functions)
201 (Vdeactivate_mark, Vfirst_change_hook, Vtransient_mark_mode)
202 (inhibit_modification_hooks): Remove declaration.
203 * xterm.c (syms_of_xterm): Update.
204 (Vx_alt_keysym, Vx_hyper_keysym, Vx_keysym_table)
205 (Vx_meta_keysym, Vx_super_keysym, Vx_toolkit_scroll_bars)
206 (x_mouse_click_focus_ignore_position)
207 (x_underline_at_descent_line)
208 (x_use_underline_position_properties): Remove.
209 * xsmfns.c (syms_of_xsmfns): Update.
210 (Vx_session_id, Vx_session_previous_id): Remove.
211 * xsettings.c (syms_of_xsettings): Update.
212 (Vxft_settings, use_system_font): Remove.
213 * xselect.c (syms_of_xselect): Update.
214 (Vselection_converter_alist, Vx_lost_selection_functions)
215 (Vx_sent_selection_functions, x_selection_timeout): Remove.
216 * xfns.c (syms_of_xfns): Update.
217 (Vgtk_version_string, Vmotif_version_string)
218 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
219 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
220 (Vx_no_window_manager, Vx_nontext_pointer_shape)
221 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
222 (Vx_sensitive_text_pointer_shape)
223 (Vx_window_horizontal_drag_shape, x_gtk_file_dialog_help_text)
224 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
225 (x_gtk_use_system_tooltips, x_gtk_whole_detached_tool_bar):
226 Remove.
227 * xfaces.c (syms_of_xfaces): Update.
228 (Vface_default_stipple, Vface_font_rescale_alist)
229 (Vface_ignored_fonts, Vface_new_frame_defaults)
230 (Vface_remapping_alist, Vfont_list_limit)
231 (Vscalable_fonts_allowed, Vtty_defined_color_alist): Remove.
232 * xdisp.c (syms_of_xdisp): Update.
233 (Vauto_resize_tool_bars, Vblink_cursor_alist)
234 (Vdisplay_pixels_per_inch, Vfontification_functions)
235 (Vframe_title_format, Vglobal_mode_string)
236 (Vglyphless_char_display, Vhourglass_delay, Vhscroll_step)
237 (Vicon_title_format, Vinhibit_redisplay)
238 (Vline_number_display_limit, Vline_prefix)
239 (Vmax_mini_window_height, Vmenu_bar_update_hook)
240 (Vmenu_updating_frame, Vmessage_log_max)
241 (Vmouse_autoselect_window, Vnobreak_char_display)
242 (Voverlay_arrow_position, Voverlay_arrow_string)
243 (Voverlay_arrow_variable_list, Vredisplay_end_trigger_functions)
244 (Vresize_mini_windows, Vshow_trailing_whitespace)
245 (Vtool_bar_border, Vtool_bar_button_margin, Vtool_bar_style)
246 (Vtruncate_partial_width_windows, Vvoid_text_area_pointer)
247 (Vwindow_scroll_functions, Vwindow_size_change_functions)
248 (Vwindow_text_change_functions, Vwrap_prefix)
249 (auto_raise_tool_bar_buttons_p, automatic_hscrolling_p)
250 (debug_end_pos, display_hourglass_p, emacs_scroll_step)
251 (highlight_nonselected_windows, hscroll_margin)
252 (inhibit_eval_during_redisplay, inhibit_free_realized_faces)
253 (inhibit_menubar_update, inhibit_try_cursor_movement)
254 (inhibit_try_window_id, inhibit_try_window_reusing)
255 (line_number_display_limit_width)
256 (make_cursor_line_fully_visible_p, message_truncate_lines)
257 (mode_line_inverse_video, multiple_frames, overline_margin)
258 (scroll_conservatively, scroll_margin, tool_bar_button_relief)
259 (tool_bar_max_label_size, underline_minimum_offset)
260 (unibyte_display_via_language_environment, x_stretch_cursor_p):
261 Remove.
262 * window.c (syms_of_window): Update.
263 (Vminibuf_scroll_window, Vother_window_scroll_buffer)
264 (Vrecenter_redisplay, Vscroll_preserve_screen_position)
265 (Vtemp_buffer_show_function, Vwindow_configuration_change_hook)
266 (Vwindow_point_insertion_type, auto_window_vscroll_p)
267 (mode_line_in_non_selected_windows, next_screen_context_lines)
268 (window_min_height, window_min_width): Remove.
269 (scroll_margin): Remove declaration.
270 * w32term.c (syms_of_w32term): Update.
271 (Vw32_capslock_is_shiftlock, Vw32_grab_focus_on_raise)
272 (Vw32_recognize_altgr, Vw32_swap_mouse_buttons)
273 (Vx_toolkit_scroll_bars, w32_num_mouse_buttons)
274 (w32_use_visible_system_caret, x_underline_at_descent_line)
275 (x_use_underline_position_properties): Remove.
276 (Vcommand_line_args, Vsystem_name, extra_keyboard_modifiers):
277 Remove declaration.
278 * w32select.c (syms_of_w32select): Update.
279 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
280 * w32proc.c (syms_of_ntproc): Update.
281 (Vw32_downcase_file_names, Vw32_generate_fake_inodes)
282 (Vw32_get_true_file_attributes, Vw32_quote_process_args)
283 (Vw32_start_process_inherit_error_mode)
284 (Vw32_start_process_share_console)
285 (Vw32_start_process_show_window, w32_pipe_read_delay): Remove.
286 (Vsystem_name): Remove declaration.
287 * w32font.c (syms_of_w32font): Update.
288 (Vw32_charset_info_alist): Remove.
289 * w32fns.c (globals_of_w32fns, syms_of_w32fns): Update.
290 (Vw32_alt_is_meta, Vw32_apps_modifier, Vw32_bdf_filename_alist)
291 (Vw32_color_map, Vw32_enable_caps_lock, Vw32_enable_num_lock)
292 (Vw32_enable_palette, Vw32_lwindow_modifier)
293 (Vw32_pass_alt_to_system, Vw32_pass_lwindow_to_system)
294 (Vw32_pass_rwindow_to_system, Vw32_phantom_key_code)
295 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
296 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
297 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
298 (Vx_no_window_manager, Vx_nontext_pointer_shape)
299 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
300 (Vx_sensitive_text_pointer_shape)
301 (Vx_window_horizontal_drag_shape, w32_ansi_code_page)
302 (w32_enable_synthesized_fonts, w32_mouse_button_tolerance)
303 (w32_mouse_move_interval)
304 (w32_pass_extra_mouse_buttons_to_system)
305 (w32_pass_multimedia_buttons_to_system, w32_quit_key)
306 (w32_strict_fontnames, w32_strict_painting): Remove.
307 (Vhourglass_delay, Vmenu_bar_mode, Vtool_bar_mode)
308 (Vw32_recognize_altgr, Vwindow_system_version)
309 (w32_num_mouse_buttons, w32_use_visible_system_caret): Remove
310 declaration.
311 * w32console.c (syms_of_ntterm): Update.
312 (w32_use_full_screen_buffer): Remove.
313 (Vtty_defined_color_alist): Remove declaration.
314 * w16select.c (syms_of_win16select): Update.
315 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
316 * undo.c (syms_of_undo): Update.
317 (Vundo_outer_limit, Vundo_outer_limit_function)
318 (undo_inhibit_record_point, undo_limit, undo_strong_limit):
319 Remove.
320 * textprop.c (syms_of_textprop): Update.
321 (Vchar_property_alias_alist, Vdefault_text_properties)
322 (Vinhibit_point_motion_hooks, Vtext_property_default_nonsticky):
323 Remove.
324 * terminal.c (syms_of_terminal): Update.
325 (Vdelete_terminal_functions, Vring_bell_function): Remove.
326 * term.c (syms_of_term): Update.
327 (Vresume_tty_functions, Vsuspend_tty_functions)
328 (no_redraw_on_reenter, system_uses_terminfo, visible_cursor):
329 Remove.
330 * syntax.c (syms_of_syntax): Update.
331 (Vfind_word_boundary_function_table, multibyte_syntax_as_symbol)
332 (open_paren_in_column_0_is_defun_start)
333 (parse_sexp_ignore_comments, parse_sexp_lookup_properties)
334 (words_include_escapes): Remove.
335 * search.c (syms_of_search): Update.
336 (Vinhibit_changing_match_data, Vsearch_spaces_regexp): Remove.
337 * process.c (syms_of_process): Update.
338 (Vprocess_adaptive_read_buffering, Vprocess_connection_type)
339 (delete_exited_processes): Remove.
340 * print.c (syms_of_print): Update.
341 (Vfloat_output_format, Vprint_charset_text_property)
342 (Vprint_circle, Vprint_continuous_numbering, Vprint_gensym)
343 (Vprint_length, Vprint_level, Vprint_number_table)
344 (Vstandard_output, print_escape_multibyte)
345 (print_escape_newlines, print_escape_nonascii, print_quoted):
346 Remove.
347 * msdos.c (syms_of_msdos): Update.
348 (Vdos_unsupported_char_glyph): Remove.
349 (unibyte_display_via_language_environment): Remove declaration.
350 * minibuf.c (syms_of_minibuf): Update.
351 (Vcompletion_regexp_list, Vhistory_add_new_input)
352 (Vhistory_length, Vminibuffer_completing_file_name)
353 (Vminibuffer_completion_confirm)
354 (Vminibuffer_completion_predicate, Vminibuffer_completion_table)
355 (Vminibuffer_exit_hook, Vminibuffer_help_form)
356 (Vminibuffer_history_position, Vminibuffer_history_variable)
357 (Vminibuffer_prompt_properties, Vminibuffer_setup_hook)
358 (Vread_buffer_function, Vread_expression_map)
359 (completion_ignore_case, enable_recursive_minibuffers)
360 (history_delete_duplicates, minibuffer_allow_text_properties)
361 (minibuffer_auto_raise, read_buffer_completion_ignore_case):
362 Remove.
363 * marker.c (syms_of_marker): Update.
364 (byte_debug_flag): Remove.
365 * macros.c (syms_of_macros): Update.
366 (Vexecuting_kbd_macro, executing_kbd_macro_index): Remove.
367 * lread.c (syms_of_lread): Update.
368 (Vafter_load_alist, Vbyte_boolean_vars)
369 (Vbytecomp_version_regexp, Vcurrent_load_list)
370 (Veval_buffer_list, Vload_file_name, Vload_file_rep_suffixes)
371 (Vload_history, Vload_path, Vload_read_function)
372 (Vload_source_file_function, Vload_suffixes, Vobarray)
373 (Vold_style_backquotes, Vpreloaded_file_list, Vread_circle)
374 (Vread_symbol_positions_list, Vread_with_symbol_positions)
375 (Vsource_directory, Vstandard_input, Vuser_init_file, Vvalues)
376 (force_load_messages, load_convert_to_unibyte)
377 (load_dangerous_libraries, load_force_doc_strings)
378 (load_in_progress): Remove.
379 * keymap.c (syms_of_keymap): Update.
380 (Vdefine_key_rebound_commands, Vemulation_mode_map_alists)
381 (Vminibuffer_local_completion_map)
382 (Vminibuffer_local_filename_completion_map)
383 (Vminibuffer_local_filename_must_match_map)
384 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
385 (Vminibuffer_local_ns_map, Vminor_mode_map_alist)
386 (Vminor_mode_overriding_map_alist, Vwhere_is_preferred_modifier):
387 Remove.
388 * keyboard.c (syms_of_keyboard): Update.
389 (Vauto_save_timeout, Vcommand_error_function)
390 (Vcommand_hook_internal, Vdeactivate_mark)
391 (Vdeferred_action_function, Vdeferred_action_list)
392 (Vdisable_point_adjustment, Vdouble_click_time)
393 (Vecho_keystrokes, Venable_disabled_menus_and_buttons)
394 (Vfunction_key_map, Vglobal_disable_point_adjustment)
395 (Vhelp_char, Vhelp_event_list, Vhelp_form)
396 (Vinput_method_function, Vinput_method_previous_message)
397 (Vkey_translation_map, Vlast_event_frame)
398 (Vlucid_menu_bar_dirty_flag, Vmenu_bar_final_items)
399 (Vminibuffer_message_timeout, Voverriding_local_map)
400 (Voverriding_local_map_menu_flag, Vpost_command_hook)
401 (Vpre_command_hook, Vprefix_help_command)
402 (Vsaved_region_selection, Vselect_active_regions)
403 (Vshow_help_function, Vspecial_event_map, Vsuggest_key_bindings)
404 (Vthis_command, Vthis_command_keys_shift_translated)
405 (Vthis_original_command, Vthrow_on_input, Vtimer_idle_list)
406 (Vtimer_list, Vtool_bar_separator_image_expression, Vtop_level)
407 (Vtty_erase_char, Vunread_command_events)
408 (Vunread_input_method_events, Vunread_post_input_method_events)
409 (auto_save_interval, cannot_suspend, do_mouse_tracking)
410 (double_click_fuzz, extra_keyboard_modifiers)
411 (inhibit_local_menu_bar_menus, last_command_event)
412 (last_input_event, last_nonmenu_event, menu_prompt_more_char)
413 (menu_prompting, meta_prefix_char, num_input_keys)
414 (num_nonmacro_input_events, polling_period, unread_command_char):
415 Remove.
416 * insdel.c (syms_of_insdel): Update.
417 (Vcombine_after_change_calls, check_markers_debug_flag): Remove.
418 * indent.c (syms_of_indent): Update.
419 (indent_tabs_mode): Remove.
420 * image.c (syms_of_image): Update.
421 (Vimage_cache_eviction_delay, Vimage_types)
422 (Vimagemagick_render_type, Vmax_image_size, Vx_bitmap_file_path)
423 (cross_disabled_images): Remove.
424 * fringe.c (syms_of_fringe): Update.
425 (Vfringe_bitmaps, Voverflow_newline_into_fringe): Remove.
426 * frame.c (syms_of_frame): Update.
427 (Vdefault_frame_alist, Vdefault_frame_scroll_bars)
428 (Vdelete_frame_functions, Vframe_alpha_lower_limit)
429 (Vmake_pointer_invisible, Vmenu_bar_mode, Vmouse_highlight)
430 (Vmouse_position_function, Vterminal_frame, Vtool_bar_mode)
431 (Vx_resource_class, Vx_resource_name, focus_follows_mouse):
432 Remove.
433 * fontset.c (syms_of_fontset): Update.
434 (Valternate_fontname_alist, Vfont_encoding_charset_alist)
435 (Vfontset_alias_alist, Vignore_relative_composition)
436 (Votf_script_alist, Vuse_default_ascent)
437 (Vvertical_centering_font_regexp): Remove.
438 * font.c (syms_of_font): Update.
439 (Vfont_encoding_alist, Vfont_log, Vfont_slant_table)
440 (Vfont_weight_table, Vfont_width_table): Remove.
441 * fns.c (syms_of_fns): Update.
442 (Vfeatures, use_dialog_box, use_file_dialog): Remove.
443 * filelock.c (syms_of_filelock): Update.
444 (Vtemporary_file_directory): Remove.
445 * fileio.c (syms_of_fileio): Update.
446 (Vafter_insert_file_functions, Vauto_save_include_big_deletions)
447 (Vauto_save_list_file_name, Vauto_save_visited_file_name)
448 (Vdefault_file_name_coding_system, Vfile_name_coding_system)
449 (Vfile_name_handler_alist, Vinhibit_file_name_handlers)
450 (Vinhibit_file_name_operation, Vset_auto_coding_function)
451 (Vwrite_region_annotate_functions)
452 (Vwrite_region_annotations_so_far)
453 (Vwrite_region_post_annotation_function)
454 (delete_by_moving_to_trash, write_region_inhibit_fsync): Remove.
455 (Vw32_get_true_file_attributes): Remove declaration.
456 * eval.c (syms_of_eval): Update.
457 (Vdebug_ignored_errors, Vdebug_on_error, Vdebug_on_signal)
458 (Vdebugger, Vinhibit_quit, Vmacro_declaration_function)
459 (Vquit_flag, Vsignal_hook_function, Vstack_trace_on_error)
460 (debug_on_next_call, debug_on_quit, debugger_may_continue)
461 (max_lisp_eval_depth, max_specpdl_size): Remove.
462 * emacs.c (syms_of_emacs): Update.
463 (Vafter_init_time, Vbefore_init_time, Vcommand_line_args)
464 (Vdynamic_library_alist, Vemacs_copyright, Vemacs_version)
465 (Vinstallation_directory, Vinvocation_directory)
466 (Vinvocation_name, Vkill_emacs_hook, Vpath_separator)
467 (Vprevious_system_messages_locale, Vprevious_system_time_locale)
468 (Vsystem_configuration, Vsystem_configuration_options)
469 (Vsystem_messages_locale, Vsystem_time_locale, Vsystem_type)
470 (inhibit_x_resources, noninteractive1): Remove.
471 * editfns.c (syms_of_editfns): Update.
472 (Vbuffer_access_fontified_property)
473 (Vbuffer_access_fontify_functions, Vinhibit_field_text_motion)
474 (Voperating_system_release, Vsystem_name, Vuser_full_name)
475 (Vuser_login_name, Vuser_real_login_name): Remove.
476 * dosfns.c (syms_of_dosfns): Update.
477 (Vdos_display_scancodes, Vdos_version, Vdos_windows_version)
478 (dos_codepage, dos_country_code, dos_decimal_point)
479 (dos_hyper_key, dos_keyboard_layout, dos_keypad_mode)
480 (dos_super_key, dos_timezone_offset): Remove.
481 * doc.c (syms_of_doc): Update.
482 (Vbuild_files, Vdoc_file_name): Remove.
483 * dispnew.c (syms_of_display): Update.
484 (Vglyph_table, Vinitial_window_system)
485 (Vredisplay_preemption_period, Vstandard_display_table)
486 (Vwindow_system_version, baud_rate, cursor_in_echo_area)
487 (inverse_video, redisplay_dont_pause, visible_bell): Remove.
488 * dired.c (syms_of_dired): Update.
489 (Vcompletion_ignored_extensions): Remove.
490 (Vw32_get_true_file_attributes): Remove declaration.
491 * dbusbind.c (syms_of_dbusbind): Update.
492 (Vdbus_debug, Vdbus_registered_buses)
493 (Vdbus_registered_objects_table): Remove.
494 * data.c (syms_of_data): Update.
495 (Vmost_negative_fixnum, Vmost_positive_fixnum): Remove.
496 * composite.c (syms_of_composite): Update.
497 (Vauto_composition_function, Vauto_composition_mode)
498 (Vcompose_chars_after_function, Vcomposition_function_table):
499 Remove.
500 * coding.c (syms_of_coding): Update.
501 (Vcharset_revision_table, Vcoding_category_list)
502 (Vcoding_system_alist, Vcoding_system_for_read)
503 (Vcoding_system_for_write, Vcoding_system_list)
504 (Vdefault_process_coding_system, Venable_character_translation)
505 (Vfile_coding_system_alist, Vlast_code_conversion_error)
506 (Vlast_coding_system_used, Vlatin_extra_code_table)
507 (Vlocale_coding_system, Vnetwork_coding_system_alist)
508 (Vprocess_coding_system_alist)
509 (Vselect_safe_coding_system_function)
510 (Vstandard_translation_table_for_decode)
511 (Vstandard_translation_table_for_encode)
512 (Vtranslation_table_for_input, coding_system_require_warning)
513 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
514 (eol_mnemonic_unix, inherit_process_coding_system)
515 (inhibit_eol_conversion, inhibit_iso_escape_detection)
516 (inhibit_null_byte_detection): Remove.
517 * cmds.c (syms_of_cmds): Update.
518 (Vpost_self_insert_hook): Remove.
519 * charset.c (syms_of_charset): Update.
520 (Vcharset_list, Vcharset_map_path, Vcurrent_iso639_language)
521 (inhibit_load_charset_map): Remove.
522 * character.c (syms_of_character): Update.
523 (Vauto_fill_chars, Vchar_direction_table, Vchar_script_table)
524 (Vchar_width_table, Vprintable_chars)
525 (Vscript_representative_chars, Vtranslation_table_vector)
526 (Vunicode_category_table): Remove.
527 * ccl.c (syms_of_ccl): Update.
528 (Vcode_conversion_map_vector, Vfont_ccl_encoder_alist)
529 (Vtranslation_hash_table_vector): Remove.
530 * category.c (syms_of_category): Update.
531 (Vword_combining_categories, Vword_separating_categories): Remove.
532 * callproc.c (syms_of_callproc): Update.
533 (Vconfigure_info_directory, Vdata_directory, Vdoc_directory)
534 (Vexec_directory, Vexec_path, Vexec_suffixes)
535 (Vinitial_environment, Vprocess_environment)
536 (Vshared_game_score_directory, Vshell_file_name): Remove.
537 * callint.c (syms_of_callint): Update.
538 (Vcommand_debug_status, Vcommand_history, Vcurrent_prefix_arg)
539 (Vmark_even_if_inactive, Vmouse_leave_buffer_hook): Remove.
540 * bytecode.c (syms_of_bytecode): Update.
541 (Vbyte_code_meter, byte_metering_on): Remove.
542 * buffer.c (syms_of_buffer): Update.
543 (Vafter_change_functions, Vbefore_change_functions)
544 (Vchange_major_mode_hook, Vfirst_change_hook)
545 (Vinhibit_read_only, Vkill_buffer_query_functions)
546 (Vtransient_mark_mode, inhibit_modification_hooks): Remove.
547 * alloc.c (syms_of_alloc): Update.
548 (Vgc_cons_percentage, Vgc_elapsed, Vmemory_full)
549 (Vmemory_signal_data, Vpost_gc_hook, Vpurify_flag)
550 (cons_cells_consed, floats_consed, garbage_collection_messages)
551 (gc_cons_threshold, gcs_done, intervals_consed)
552 (misc_objects_consed, pure_bytes_used, string_chars_consed)
553 (strings_consed, symbols_consed, vector_cells_consed): Remove.
554
555 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
556 (DEFVAR_INT): Assume global is in `globals'.
557 * alloc.c (globals): Define.
558
448c0820
TT
5592011-01-18 Tom Tromey <tromey@redhat.com>
560
561 * image.c (Vimagemagick_render_type): Remove redundant
562 definition.
563
8442d95d
TT
5642011-01-18 Tom Tromey <tromey@redhat.com>
565
566 * xdisp.c (emacs_scroll_step): Rename from scroll_step.
567 (try_scrolling): Rename argument to 'arg_scroll_conservatively'.
568 (redisplay_window): Update.
569 (syms_of_xdisp): Update.
570
cab0ba98
TT
5712011-01-18 Tom Tromey <tromey@redhat.com>
572
573 * gtkutil.h (x_gtk_use_old_file_dialog, x_gtk_show_hidden_files)
574 (x_gtk_file_dialog_help_text, x_gtk_whole_detached_tool_bar):
575 Declare.
576 * gtkutil.c (xg_uses_old_file_dialog):
577 (xg_get_file_with_chooser):
578 (xg_tool_bar_detach_callback): Don't redeclare globals.
579
422745d0
TT
5802011-01-18 Tom Tromey <tromey@redhat.com>
581
582 * lisp.h (DEFVAR_BUFFER_DEFAULTS): New macro.
583 * buffer.c (syms_of_buffer): Use DEFVAR_BUFFER_DEFAULTS.
584
7cae64b4
PE
5852011-01-18 Paul Eggert <eggert@cs.ucla.edu>
586
587 * lisp.h (DECL_ALIGN): Define if HAVE_ATTRIBUTE_ALIGNED, not if
588 defined __GNUC__. ../configure now checks for this GCC feature,
589 which is now also supported by IBM and Oracle compilers.
590 (USE_LSB_TAG) [defined DECL_ALIGN]: Also define if defined __sun,
591 since Solaris malloc returns mult-of-8.
592
a9faac5c 5932011-01-18 Stefan Monnier <monnier@iro.umontreal.ca>
0514b4be
SM
594
595 * image.c (syms_of_image): Don't access XSYMBOL's internals directly.
596
a3e44e79 5972011-01-17 Paul Eggert <eggert@cs.ucla.edu>
fa2c4f56 598
6e8e6bf2
PE
599 Give a name FLOAT_TO_STRING_BUFSIZE to the constant 350.
600 * lisp.h (FLOAT_TO_STRING_BUFSIZE): New macro.
601 * data.c (Fnumber_to_string): Use it.
602 * print.c (float_to_string, print_object): Likewise.
603
4004364e
PE
604 Include <unistd.h> unilaterally.
605 * alloc.c, atimer.c, buffer.c, callproc.c, dired.c, dispnew.c, doc.c:
606 * doprnt.c, editfns.c, emacs.c, fileio.c, filelock.c, fns.c:
607 * getloadavg.c, getpagesize.h, gmalloc.c, image.c, keyboard.c:
608 * lread.c, process.c, process.h, ralloc.c, regex.c, sysdep.c:
609 * systty.h, term.c, termcap.c, xfns.c, xrdb.c, xselect.c, xsmfns.c:
610 * xterm.c:
611 Include <unistd.h> without worrying about HAVE_UNISTD_H, since
612 unistd.h is always present now, possibly supplied by gnulib.
613
e84aba69
PE
614 * mktime.c: Remove; moving to ../lib.
615
1e11dbe3
PE
616 Use gnulib's mktime module.
617 * deps.mk (mktime.o): Remove rule.
618
fa2c4f56
PE
619 Use gnulib's ftoastr module.
620 * print.c: Include ftoastr.h.
621 (FLT_RADIX, DBL_MANT_DIG, DBL_DIG, DBL_MIN, DOUBLE_DIGITS_BOUND):
622 Remove; no longer needed.
623 (float_to_string): Use dtoastr rather than rolling our own code,
624 which had an off-by-one bug on non-IEEE hosts.
625
9a514d4a
PE
626 Automate syncing from gnulib.
627 * Makefile.in (lib): New macro.
628 (ALL_CFLAGS): Add -I$(lib) -I$(srcdir)/../lib.
629 ($(lib)/libgnu.a): New rule.
630 (temacs$(EXEEXT)): Also link $(lib)/libgnu.a.
631
717c30e0
PE
632 * xfns.c (x_real_positions): Fix signedness of local var 'ign'.
633 XGetGeometry wants unsigned int *, not int *, for its last 4 args,
634 so change the type of 'ign' to unsigned int from int.
635
8865d794
PE
636 * regex.c (analyse_first): Remove unreachable 'continue' statement.
637
4ef36a7b
PE
638 * xterm.h (struct x_display_info): Remove stray semicolon.
639 The extra semicolon didn't conform to the C standard.
640 Problem reported by Sun cc.
641
6df4097e
PE
642 * lisp.h: Redo flags and XSET slightly to avoid overflow diagnostics.
643 These changes make compilation easier to follow with Sun cc.
644 (ARRAY_MARK_FLAG): Make it signed, so that it can be assigned to
645 EMACS_INT values without provoking overflow diagnostics.
646 (PSEUDOVECTOR_FLAG): Likewise, for consistency.
647 (XSET) [! USE_LSB_TAG]: Use unsigned left shift to avoid overflow
648 diagnostic with signed left shift.
9fba3563 649
410ed5c3
PE
650 * fileio.c (make_temp_name): Remove unreachable code.
651
97be3ce3
PE
652 * fontset.c (free_realized_fontset): Mark unreachable code with if (0).
653 Previously it was marked by preceding it with "return;", but
654 Sun cc complains about this.
655
9fba3563
PE
656 * coding.c (decode_coding_emacs_mule): Remove unreachable code.
657 This is a typo left over from 2009-03-06T07:51:52Z!handa@m17n.org,
658 which fixed Bug#2370. Caught by Sun cc.
659
6dc1d2d3
MR
6602011-01-15 Martin Rudalics <rudalics@gmx.at>
661
662 * window.c (inhibit_point_swap): New variable.
663 (Fselect_window): If inhibit_point_swap is nonzero, avoid swapping
664 point this time.
665 (Fset_window_configuration): Set inhibit_point_swap to 1 instead
666 of setting selected_window to nil (Bug#7728).
667
f853f599
TH
6682011-01-11 Tassilo Horn <tassilo@member.fsf.org>
669
670 * image.c (imagemagick_load_image, Finit_image_library): Free
671 intermediate image after creating a MagickWand from it. Terminate
672 MagickWand environment after image loading.
673
2bc92a93
MA
6742011-01-10 Michael Albinus <michael.albinus@gmx.de>
675
676 * dbusbind.c (Fdbus_register_service): Raise an error in case of
677 unexpected return values.
678 (Fdbus_register_method): Remove connection initialization.
679
6802011-01-10 Jan Moringen <jan.moringen@uni-bielefeld.de>
5b83ba18
MA
681
682 * dbusbind.c (QCdbus_request_name_allow_replacement): New symbol;
683 used by Fdbus_register_service.
684 (QCdbus_request_name_replace_existing): Likewise.
685 (QCdbus_request_name_do_not_queue): Likewise.
686 (QCdbus_request_name_reply_primary_owner): Likewise.
687 (QCdbus_request_name_reply_in_queue): Likewise.
688 (QCdbus_request_name_reply_exists): Likewise.
689 (QCdbus_request_name_reply_already_owner): Likewise.
690 (Fdbus_register_service): New function.
691 (Fdbus_register_method): Use Fdbus_register_service to do the name
692 registration.
693 (syms_of_dbusbind): Add symbols dbus-register-service,
694 :allow-replacement, :replace-existing, :do-not-queue,
695 :primary-owner, :existing, :in-queue and :already-owner.
696
21a76236
CY
6972011-01-09 Chong Yidong <cyd@stupidchicken.com>
698
699 * gtkutil.c (update_frame_tool_bar): Don't advance tool-bar index
700 when removing extra buttons.
701
3d91e302
CY
7022011-01-08 Chong Yidong <cyd@stupidchicken.com>
703
704 * fns.c (Fyes_or_no_p): Doc fix.
705
0d23ffb5
AS
7062011-01-08 Andreas Schwab <schwab@linux-m68k.org>
707
708 * fns.c (Fyes_or_no_p): Add usage.
709
9dc3366b
GM
7102011-01-08 Glenn Morris <rgm@gnu.org>
711
d0981f82
GM
712 * makefile.w32-in ($(EMACS)):
713 * Makefile.in (emacs$(EXEEXT)): -batch implies -q.
714
9dc3366b
GM
715 * xdisp.c (syms_of_xdisp) <Qrisky_local_variable>: Move from here...
716 * emacs.c (syms_of_emacs) <Qrisky_local_variable>: ...to here.
717
466cbae9
AS
7182011-01-07 Andreas Schwab <schwab@linux-m68k.org>
719
720 * image.c (imagemagick_load_image): Fix some resource leaks and
721 error handling.
722
8c51d2a2
CY
7232011-01-07 Chong Yidong <cyd@stupidchicken.com>
724
725 * fns.c (Fyes_or_no_p): Accept format string args.
726
66b7b0fe
GM
7272011-01-07 Glenn Morris <rgm@gnu.org>
728
729 * emacs.c (no_site_lisp): New int.
730 (USAGE1): Add --no-site-lisp, mention -Q uses it.
731 (main): Set no_site_lisp.
732 (standard_args): Add --no-site-lisp.
733 * lisp.h (no_site_lisp): New int.
734 * lread.c (init_lread): If no_site_lisp, don't re-add site-lisp
735 directories to Vload_path.
736
2018939f
AS
7372011-01-05 Andreas Schwab <schwab@linux-m68k.org>
738
739 * alloc.c (mark_stack): Use __builtin_unwind_init if available.
740
6ed843e5
MA
7412011-01-04 Jan Moringen <jan.moringen@uni-bielefeld.de>
742
743 * dbusbind.c (Fdbus_register_method): Added optional parameter
744 dont_register_service. Updated docstring accordingly.
745
3f9b7090
GM
7462011-01-04 Glenn Morris <rgm@gnu.org>
747
748 * emacs.c (emacs_copyright): Update short copyright year to 2011.
749
d82bce4a
EZ
7502011-01-03 Eli Zaretskii <eliz@gnu.org>
751
752 * image.c (png_jmpbuf): Remove definition.
753 (my_png_error, png_load): Don't use png_jmpbuf.
754
7c420169
CY
7552011-01-02 Eli Zaretskii <eliz@gnu.org>
756
757 * keyboard.c (Vselect_active_regions): Doc fix. (Bug#7702)
758
7592011-01-02 Eli Zaretskii <eliz@gnu.org>
5be1c984
EZ
760
761 * image.c <Qlibpng_version>: New variable.
762 (syms_of_image): Intern and staticpro it. Set its value to the
763 version of PNG library we were compiled with.
764 (my_png_error, png_load): Avoid GCC warnings about direct access
765 to png_ptr->jmpbuf. (Bug#7716)
18da2e74
EZ
766 (png_jmpbuf): New macro.
767 (my_png_error, png_load): Use it instead of #ifdef'ing according
768 to PNG_LIBPNG_VER_MAJOR and PNG_LIBPNG_VER_MINOR.
5be1c984 769
7c420169 7702011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
cf07311b
SM
771
772 * .gdbinit (xgetptr): Fix the union+lsb case.
773 (xbacktrace): Fix the union case.
774
7c420169 7752011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
794b75c7
SM
776
777 * window.c (Fmove_to_window_line): Avoid abort when called in a buffer
778 different from selected-window's.
779
7c420169 7802011-01-02 Eli Zaretskii <eliz@gnu.org>
2e4ab211 781
71fe378d
EZ
782 * keyboard.c (parse_menu_item): Prepend " " to the key sequence
783 equivalent of a menu item when the key sequence is given by the
784 `:keys' attribute. (Bug#7662)
785
2e4ab211
EZ
786 * xdisp.c (Fformat_mode_line): Doc fix: no need to state that only
787 the basic faces are supported.
788
7c420169 7892011-01-02 Jan Djärv <jan.h.d@swipnet.se>
84595ff0
JD
790
791 * xterm.c (x_check_fullscreen): Fix pixel/character mixup.
792
7c420169 7932011-01-02 Eli Zaretskii <eliz@gnu.org>
30d621a2
EZ
794
795 * xdisp.c (Fformat_mode_line): Fix last change.
796
7c420169 7972011-01-02 Chong Yidong <cyd@stupidchicken.com>
4bf3e46e
CY
798
799 * xdisp.c (Fformat_mode_line): Restrict the FACE argument to basic
800 faces (Bug#7587).
801
7c420169 8022011-01-02 Eli Zaretskii <eliz@gnu.org>
1b2a627f
EZ
803
804 * fileio.c (Fexpand_file_name): One more doc fix.
805
3afff00e
CY
8062011-01-01 Chong Yidong <cyd@stupidchicken.com>
807
808 * gtkutil.c (xg_get_tool_bar_widgets): Use NULL for a missing
809 image or label in the container.
810 (xg_make_tool_item): Replace VERT_ONLY arg with HORIZ, TEXT_IMAGE.
811 (xg_show_toolbar_item): Function deleted.
812 (xg_tool_item_stale_p): New function.
813 (update_frame_tool_bar): Calculate tool-bar style once per call.
814 Instead of hiding text labels, omit them. Don't use
815 xg_show_toolbar_item; create new GtkToolItems from scratch if
816 necessary, instead of trying to re-use them. This avoids an
817 annoying animation when changing tool-bars.
818
aeb7e951
JD
8192010-12-31 Jan Djärv <jan.h.d@swipnet.se>
820
821 * nsfns.m (ns_set_name_as_filename): Always use buffer name for
822 title and buffer filename only for RepresentedFilename.
823 Handle bad UTF-8 in buffer name (Bug#7517).
824
5bbb4727
JD
8252010-12-30 Jan Djärv <jan.h.d@swipnet.se>
826
827 * coding.h (ENCODE_UTF_8): Remove "Used by ..." comment.
828
829 * nsfns.m (ns_set_name_iconic): Remove.
830 (ns_set_name_internal): New function (Bug#7517).
831 (Vicon_title_format): Extern declare.
832 (ns_set_name): Call ns_set_name_internal.
833 (x_explicitly_set_name): Remove call to ns_set_name_iconic.
834 (x_implicitly_set_name): Ditto.
835 (x_set_title): Remove commet about EXPLICIT. Call ns_set_name_internal.
836 (ns_set_name_as_filename): Encode name with ENCODE_UTF_8 (Bug#7517).
837
f1aab3ff
ŠN
8382010-12-29 Štěpán Němec <stepnem@gmail.com> (tiny change)
839
840 * window.c (syms_of_window): Add missing defsubr for
841 window-use-time.
842
365525b3
AS
8432010-12-28 Andreas Schwab <schwab@linux-m68k.org>
844
845 * xterm.h (x_alloc_lighter_color_for_widget): Restore declaration.
846 * xterm.c (x_alloc_lighter_color_for_widget): Restore.
847
59fc5cf9
AS
8482010-12-27 Andreas Schwab <schwab@linux-m68k.org>
849
2f7c71a1
AS
850 * buffer.c: Remove unused declarations.
851 * buffer.h: Likewise.
852 * charset.h: Likewise.
853 * composite.h: Likewise.
854 * dispextern.h: Likewise.
855 * dispnew.c: Likewise.
856 * font.h: Likewise.
857 * fontset.c: Likewise.
858 * fontset.h: Likewise.
859 * intervals.h: Likewise.
860 * keymap.h: Likewise.
861 * lisp.h: Likewise.
862 * syntax.c: Likewise.
863 * syntax.h: Likewise.
864 * termhooks.h: Likewise.
865 * window.h: Likewise.
866 * xsettings.h: Likewise.
867 * xterm.c: Likewise.
868 * xterm.h: Likewise.
869
870 * chartab.c (sub_char_table_ref): Make static.
871 * dispnew.c (line_hash_code, required_matrix_height)
872 (required_matrix_width): Likewise.
873 * eval.c (interactive_p, apply_lambda): Likewise.
874 * fns.c (string_make_multibyte, copy_hash_table, hash_clear):
875 Likewise.
876 * font.c (QCadstyle, QCregistry, font_make_spec)
877 (font_parse_fcname, font_encode_char, font_at): Likewise.
878 * frame.c (x_frame_get_arg): Likewise.
879 * keymap.c (get_keyelt): Likewise.
880 * lread.c (read_filtered_event): Likewise.
881 * print.c (write_string_1): Likewise.
882 * window.c (delete_window, window_height, window_width)
883 (foreach_window): Likewise.
884 * xrdb.c (x_get_customization_string, x_get_resource): Likewise.
885 * xterm.c (x_scroll_bar_clear, xembed_set_info)
886 (xembed_send_message): Likewise.
887
888 * eval.c (run_hook_list_with_args): Delete.
889 * font.c (font_unparse_gtkname, font_update_lface): Likewise.
890 * terminal.c (get_terminal_param): Likewise.
891 * xterm.c (x_alloc_lighter_color_for_widget): Likewise.
892
c4b607ed
AS
893 * scroll.c: Fix comment.
894
59fc5cf9
AS
895 * dispnew.c (add_window_display_history)
896 (add_frame_display_history, glyph_row_slice_p)
897 (find_glyph_row_slice, flush_stdout)
898 (check_matrix_pointer_lossage, matrix_row)
899 (check_matrix_invariants, check_window_matrix_pointers)
900 (check_matrix_pointers, window_to_frame_vpos)
901 (window_to_frame_hpos): Prototize.
902 * textprop.c (erase_properties): Likewise.
903
a65b85b5
SM
9042010-12-22 Stefan Monnier <monnier@iro.umontreal.ca>
905
17870c01
SM
906 * print.c (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): Remove.
907 (print_preprocess): Fix handling of uninterned symbols in last change.
908
a65b85b5
SM
909 * print.c (print, print_preprocess, print_object): Use a hash table
910 rather than a linear table for Vprint_number_table.
911
f13183cf
CY
9122010-12-20 Chong Yidong <cyd@stupidchicken.com>
913
914 * frame.c (focus_follows_mouse): Default to 0 (Bug#7269).
915
94975270
CY
9162010-12-20 Chong Yidong <cyd@stupidchicken.com>
917
918 * keyboard.c (Vtool_bar_separator_image_expression): New variable.
919 (parse_tool_bar_item): Use it to obtain image separators for
920 displays not using native tool-bar separators.
921
922 * xdisp.c (build_desired_tool_bar_string): Don't handle separators
923 specially, since this is now done in parse_tool_bar_item.
924
ef1b0ba7
SM
9252010-12-19 Stefan Monnier <monnier@iro.umontreal.ca>
926
927 Minor clean up to silence some gcc warnings.
928 * window.c (Fset_window_buffer):
929 * xterm.c (x_set_frame_alpha): Restructure code to silence
930 compiler warning.
931 (handle_one_xevent): Remove unused var `p'.
932 (do_ewmh_fullscreen): Remove unused var `lval'.
933 (xembed_set_info): Remove unused var `atom'.
934 * textprop.c (Fremove_list_of_text_properties): Add braces to silence
935 compiler warning.
936 * fontset.c (fontset_id_valid_p, dump_fontset):
937 * ftfont.c (ftfont_drive_otf): Modernize k&r declaration.
938 * eval.c (Feval, Ffuncall): Avoid unneeded gotos.
939 * dispnew.c (update_frame, update_frame_1): Compile the `do_pause'
940 label only when it's used.
941 * image.c (x_create_bitmap_from_xpm_data):
942 * dispextern.h (x_create_bitmap_from_xpm_data): Use const char** like
943 its callers.
944 * coding.c (detect_coding_utf_16): Remove unused vars `src_base' and
945 `consumed_chars'.
946 (DECODE_EMACS_MULE_21_COMPOSITION): Remove unused var `charbuf_base'.
947 (decode_coding_emacs_mule): Remove unused label `retry'.
948 (detect_eol): Add parens to silence compiler warning.
949 * alloc.c (bytes_used_when_reconsidered): Move to the #ifdef where
950 it's used to silence the compiler.
951 (make_number): Modernize k&r declaration.
952 (mark_char_table): Add parens to silence compiler warning.
953
4039c786
CY
9542010-12-17 Chong Yidong <cyd@stupidchicken.com>
955
956 * keyboard.c (parse_tool_bar_item): Allow menu separators in
957 tool-bar maps.
958 (menu_separator_name_p): New function, from gtkutil.c.
959 (separator_names): Move from gtkutil.c.
960
961 * keyboard.h (menu_separator_name_p): Add prototype.
962
963 * gtkutil.c (XG_BIN_CHILD): New macro.
964 (xg_get_menu_item_label, xg_update_menubar)
965 (xg_update_menu_item, xg_tool_bar_menu_proxy)
966 (xg_show_toolbar_item, update_frame_tool_bar): Use it.
967 (separator_names, xg_separator_p): Move to keyboard.c.
ef1b0ba7
SM
968 (create_menus, xg_update_submenu, update_frame_tool_bar):
969 Use menu_separator_name_p.
4039c786
CY
970
971 * nsmenu.m (name_is_separator): Function deleted.
972 (addItemWithWidgetValue): Use menu_separator_name_p.
973
974 * w32menu.c (name_is_separator): Function deleted.
975 (add_menu_item): Use menu_separator_name_p.
976
aa936e8e
JD
9772010-12-16 Jan Djärv <jan.h.d@swipnet.se>
978
979 * nsterm.m (ns_draw_window_cursor): If the cursor color is the
980 same as the background, use the face forground as cursor.
981
f49d1f52 9822010-12-13 Eli Zaretskii <eliz@gnu.org>
15579471
EZ
983
984 * fileio.c (Fexpand_file_name): Doc fix. (Bug#7617)
985
f49d1f52 9862010-12-13 Eli Zaretskii <eliz@gnu.org>
76feb864 987
f0559026
EZ
988 * xdisp.c (string_pos_nchars_ahead, c_string_pos)
989 (face_before_or_after_it_pos, next_element_from_string)
990 (next_element_from_c_string, produce_stretch_glyph): Remove unused
991 calculations of maximum string length before calling
992 string_char_and_length and STRING_CHAR_AND_LENGTH.
993 (string_char_and_length): Update commentary: MAXLEN is no longer
994 needed.
995
f49d1f52 9962010-12-13 Jan Djärv <jan.h.d@swipnet.se>
0b9fc69a
JD
997
998 * keyboard.c (kbd_buffer_get_event): Construct SAVE_SESSION_EVENT
999 as (Qsave_session arg).
1000
1001 * xsmfns.c (smc_interact_CB): Set arg to Qnil.
1002 (smc_die_CB): Make an event with arg Qt.
1003 (Fhandle_save_session): If event has Qt as argument,
1004 call Fkill_emacs (Bug#7552).
1005
f49d1f52
SM
10062010-12-13 Chong Yidong <cyd@stupidchicken.com>
1007
1008 * buffer.c (transient-mark-mode): Doc fix (Bug#7465).
1009
10102010-12-13 Jan Djärv <jan.h.d@swipnet.se>
2b815743
JD
1011
1012 * xsmfns.c (smc_die_CB): Call Fkill_emacs (Bug#7552).
1013
f49d1f52 10142010-12-13 Chong Yidong <cyd@stupidchicken.com>
d8b2a962
CY
1015
1016 * dispextern.h (struct it): New member overlay_strings_charpos.
1017
1018 * xdisp.c (next_overlay_string, load_overlay_strings): Record the
1019 charpos where we computed n_overlay_strings.
1020 (next_overlay_string): Load overlay strings at recorded position,
1021 which may not be the same as the iterator's charpos (Bug#7016).
1022
f49d1f52 10232010-12-13 Chong Yidong <cyd@stupidchicken.com>
77f1ed6c
CY
1024
1025 * xdisp.c (try_scrolling): Avoid infloop if the first line is
1026 obscured due to a vscroll (Bug#7537).
1027
f49d1f52 10282010-12-13 Jan Djärv <jhd@zeplinf.localdomain>
2a91a0b5
JD
1029
1030 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
1031
1032 * nsterm.m (x_set_window_size, windowWillResize, initFrameFromEmacs):
1033 Use FRAME_TOOLBAR_HEIGHT.
1034 (x_set_offset): Handle XNegative and YNegative in
1035 f->size_hint_flags (Bug#7510).
1036
39321b94
EZ
10372010-12-11 Eli Zaretskii <eliz@gnu.org>
1038
1039 * w32fns.c (Fx_show_tip): Call try_window with last argument
1040 TRY_WINDOW_IGNORE_FONTS_CHANGE. Delete the TODO ifdef: problem
1041 solved. Round up the tip height to an integral multiple of the
1042 frame's line height. Add FRAME_COLUMN_WIDTH to the tip width.
1043 (Bug#7398)
1044
ec1b9b17
GM
10452010-12-08 Glenn Morris <rgm@gnu.org>
1046
1047 * fileio.c (Fverify_visited_file_modtime): Default to current buffer.
1048
3c2317e8
LMI
10492010-12-06 Lars Magne Ingebrigtsen <larsi@gnus.org>
1050
1051 * xml.c (parse_region): Ignore blank HTML nodes.
1052 (make_dom): Return CDATA sections (like <style>foo</style>) as
1053 text nodes.
1054
bba3e508
SM
10552010-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
1056
1057 * lread.c (read1): Allow newstyle unquote outside of backquote.
1058 Disallow old-style backquotes inside new-style backquotes.
1059 Don't count unquotes to figure out when we're "syntactically inside
1060 but semantically outside of a backquote" any more.
1061 Extend the restriction no-unescaped-commas-and-backquotes-in-symbols
1062 to all contexts.
1063
d23d8608
CY
10642010-12-05 Chong Yidong <cyd@stupidchicken.com>
1065
1066 * process.c: Remove checks for HAVE_SYS_IOCTL_H (Bug#7484).
1067
d6a003a8
AS
10682010-12-04 Andreas Schwab <schwab@linux-m68k.org>
1069
1070 * Makefile.in (M_FILE): Substitute @M_FILE@ instead of @machfile@.
1071 (S_FILE): Substitute @S_FILE@ instead of @opsysfile@.
1072 * m/arm.h, m/sh3.h, m/xtensa.h: Remove files.
1073
201ef780
AS
10742010-12-03 Andreas Schwab <schwab@linux-m68k.org>
1075
1076 * lisp.h (union Lisp_Object): Explicitly declare signedness of
1077 bit-field.
1078 (XINT): Remove variant for EXPLICIT_SIGN_EXTEND.
1079 * m/alpha.h (EXPLICIT_SIGN_EXTEND): Don't define.
1080 * m/amdx86-64.h (EXPLICIT_SIGN_EXTEND): Likewise.
1081 * m/ia64.h (EXPLICIT_SIGN_EXTEND): Likewise.
1082 * m/ibms390.h (EXPLICIT_SIGN_EXTEND): Likewise.
1083 * m/ibms390x.h (EXPLICIT_SIGN_EXTEND): Likewise.
1084 * m/iris4d.h (EXPLICIT_SIGN_EXTEND): Likewise.
1085 * m/m68k.h (EXPLICIT_SIGN_EXTEND): Likewise.
1086 * m/sparc.h (EXPLICIT_SIGN_EXTEND): Likewise.
1087 * m/template.h (EXPLICIT_SIGN_EXTEND): Likewise.
1088 * m/hp800.h: Remove file.
1089 * m/mips.h: Remove file.
1090
146490c3
JD
10912010-12-03 Jan Djärv <jan.h.d@swipnet.se>
1092
1093 * nsterm.m (ns_dumpglyphs_image): If drawing cursor, fill background
1094 with cursor color and draw a rectangle around the image (Bug#7412).
1095
babc8f0d
AS
10962010-12-03 Andreas Schwab <schwab@linux-m68k.org>
1097
1098 * frame.c (x_set_font): Remove unused variable.
1099
9583e9a0
JD
11002010-12-02 Jan Djärv <jan.h.d@swipnet.se>
1101
dd723bbd
JD
1102 * nsmenu.m (update_frame_tool_bar): Remove NSLog on invalid image.
1103
9583e9a0
JD
1104 * nsterm.m (ns_draw_glyph_string): Switch fore- and background if
1105 drawing text under filled box cursor (Bug#7479).
1106
07976ae3 11072010-11-27 Kenichi Handa <handa@m17n.org>
b84ae584
KH
1108
1109 * charset.c (emacs_mule_charset): Make it an array of charset ID;
1110 i.e. integer.
bba3e508 1111 (Fdefine_charset_internal): Adjust for the above change.
b84ae584
KH
1112 (init_charset_once): Likewise.
1113
bba3e508
SM
1114 * charset.h (emacs_mule_charset): Adjust the prototype.
1115 Delete duplicated extern.
b84ae584
KH
1116
1117 * coding.c (emacs_mule_char): Adjust for the change of
1118 emacs_mule_charset.
1119
1120 * lread.c (read_emacs_mule_char): Adjust for the change of
1121 emacs_mule_charset.
1122
07976ae3 11232010-11-27 Eli Zaretskii <eliz@gnu.org>
b8e5cf1d
EZ
1124
1125 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
1126 of w32api >= 3.15. (Bug#6989) (Bug#7452)
1127
07976ae3 11282010-11-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
96ad0af7
YM
1129
1130 * alloc.c (mark_terminals): Ensure that the image cache is marked
1131 even if the terminal object was marked earlier (Bug#6301).
1132
35f1de62
CY
11332010-11-21 Chong Yidong <cyd@stupidchicken.com>
1134
1135 * editfns.c (Fbyte_to_string): Signal an error arg is not a byte.
1136
07976ae3 11372010-11-27 Jan Djärv <jan.h.d@swipnet.se>
8d7f026f
JD
1138
1139 * gtkutil.c (menubar_map_cb): New function (Bug#7425).
1140 (xg_update_frame_menubar): Connect signal map to menubar_map_cb.
1141 Use 23 as menubar height if 0. (Bug#7425).
1142
8547874a
EZ
11432010-11-26 Eli Zaretskii <eliz@gnu.org>
1144
228482b2
EZ
1145 * xdisp.c (set_message_1): Force paragraph direction in echo area
1146 be left-to-right.
1147
8547874a
EZ
1148 * keyboard.c (make_lispy_position): Put a meaningful value in yret
1149 when the click is on the header or mode line.
1150
1e2dddbe
EZ
11512010-11-25 Eli Zaretskii <eliz@gnu.org>
1152
1153 * xdisp.c (set_cursor_from_row): Don't forget to consider the
1154 `cursor' property of the first character in overlay strings.
12365240 1155 (Bug#7474) (Bug#7481)
1e2dddbe 1156
50795d1f
JD
11572010-11-24 Jan Djärv <jan.h.d@swipnet.se>
1158
1159 * nsterm.m (NSLeftControlKeyMask, NSLeftCommandKeyMask)
1160 (NSLeftAlternateKeyMask): New defines.
c80c6166
JD
1161 (keyDown): Parse left and right keys separately (Bug#7458).
1162 Compare Left key masks exactly (Bug#7458).
50795d1f 1163
f8ab8c1f
EZ
11642010-11-23 Eli Zaretskii <eliz@gnu.org>
1165
1166 * intervals.c (temp_set_point_both): Define before calling, to
1167 avoid GCC warnings.
1168
2e8a4797
DN
11692010-11-23 Dan Nicolaescu <dann@ics.uci.edu>
1170
b29116ef
DN
1171 * nsmenu.m: Use #include <config.h> instead of "config.h".
1172
b932f8b1
DN
1173 * term.c (Qglyphless_char,last_glyphless_glyph_frame)
1174 (last_glyphless_glyph_face_id. last_glyphless_glyph_merged_face_id):
1175 Move declarations ...
1176 * lisp.h (Qglyphless_char,last_glyphless_glyph_frame)
1177 (last_glyphless_glyph_face_id. last_glyphless_glyph_merged_face_id):
1178 ... here.
1179
42c8bc9b
DN
1180 * emacs.c (gdb_use_union, gdb_valbits,gdb_gctypebits)
1181 (gdb_data_seg_bits, gdb_array_mark_flag, PVEC_FLAG)
1182 (gdb_pvec_type):
1183 * print.c (print_output_debug_flag):
1184 * lisp.h (debug_print): Mark as EXTERNALLY_VISIBLE.
1185 (safe_debug_print): New declaration.
1186
2e8a4797
DN
1187 * xterm.c:
1188 * systty.h:
1189 * sound.c: Include <sys/ioctl.h> unconditionally.
1190
b609f591
YM
11912010-11-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1192
1193 * alloc.c (mark_maybe_object): Return early if given a Lisp
1194 integer (Bug#6301).
1195
731e263a
KB
11962010-11-21 Ken Brown <kbrown@cornell.edu>
1197
1198 * sheap.c (STATIC_HEAP_SIZE): Revert previous change.
1199
b7d1e144
JD
12002010-11-21 Jan Djärv <jan.h.d@swipnet.se>
1201
1202 * nsterm.m (ns_right_command_modifier, ns_right_control_modifier):
1203 Define (Bug#7458).
1204 (NSRightCommandKeyMask, NSRightControlKeyMask): Define (Bug#7458).
1205 (EV_MODIFIERS): Check for NSRightCommandKeyMask and
1206 NSRightControlKeyMask also (Bug#7458).
1207 (keyDown): Ditto (Bug#7458).
1208 (syms_of_nsterm): Defvar ns-right-command-modifier and
1209 ns-right-control-modifier (Bug#7458).
1210
b7982059
DN
12112010-11-21 Dan Nicolaescu <dann@ics.uci.edu>
1212
bee3419f
DN
1213 * sysdep.c (sys_subshell): Remove SET_EMACS_PRIORITY.
1214 * emacs.c (emacs_priority, syms_of_emacs): Remove emacs_priority.
1215
b7982059
DN
1216 * intervals.h (temp_set_point, temp_set_point_both):
1217 * buffer.h (offset_intervals, copy_intervals): Remove INLINE.
1218
01664ed1
KB
12192010-11-20 Ken Brown <kbrown@cornell.edu>
1220
1221 * sheap.c (STATIC_HEAP_SIZE): Increase to 13MB.
1222
7c2d713b
EZ
12232010-11-20 Eli Zaretskii <eliz@gnu.org>
1224
1225 * term.c (produce_glyphless_glyph): Use \uNNNN, \UNNNNNN, or
1226 \xNNNNNN for hex-code display of glyphless characters.
1227
d2bd5189
JD
12282010-11-20 Jan Djärv <jan.h.d@swipnet.se>
1229
1230 * gtkutil.c (xg_make_tool_item): Take vert_only as argument.
1231 Set important to ! vert_only.
1232 (xg_show_toolbar_item): Don't show label horizontally if
1233 tool item isn't important.
1234 (update_frame_tool_bar): Get TOOL_BAR_ITEM_VERT_ONLY and pass it to
1235 xg_make_tool_item, or update important on existing tool item.
1236
1237 * keyboard.c (QCvert_only): New variable.
1238 (parse_tool_bar_item): Check for QCvert_only.
1239 (syms_of_keyboard): Initialize QCvert_only.
1240
1241 * dispextern.h (tool_bar_item_idx): Add TOOL_BAR_ITEM_VERT_ONLY.
1242
d9a95e67
EZ
12432010-11-20 Eli Zaretskii <eliz@gnu.org>
1244
1245 * msdos.c (dos_rawgetc): Use gen_help_event, instead of doing the
1246 same in-line.
1247
b6557553
AS
12482010-11-20 Andreas Schwab <schwab@linux-m68k.org>
1249
1250 * xfaces.c (lookup_face): Make static.
1251 * dispnew.c (copy_row_except_pointers): Likewise.
1252 * syntax.c (dec_bytepos): Likewise.
1253 (inc_bytepos): Remove.
1254 * dispextern.h (lookup_face): Remove declaration.
1255
f48fe1f0
EZ
12562010-11-19 Eli Zaretskii <eliz@gnu.org>
1257
1258 * xdisp.c (set_cursor_from_row): Display cursor after all the
1259 glyphs that come from an overlay. Don't overstep the last glyph
1260 when skipping glyphs from an overlay. (Bug#6687)
1261
654ef137
DN
12622010-11-18 Dan Nicolaescu <dann@ics.uci.edu>
1263
84dfc8a7
DN
1264 * alloc.c (refill_memory_reserve): Move declaration ...
1265 * lisp.h (refill_memory_reserve): ... here.
1266
94fa3833
DN
1267 * strftime.c (_strftime_copytm): Add declaration.
1268
dde990a0
DN
1269 * callproc.c (syms_of_callproc): Use intern_c_string.
1270
50c77428
DN
1271 Move declarations from .c files to .h files.
1272 * process.c (timers_run):
1273 * minibuf.c (quit_char):
1274 * lread.c (read_emacs_mule_char):
1275 * keyboard.c (minibuf_level, message_enable_multibyte)
1276 (pending_malloc_warning):
1277 * insdel.c (Vselect_active_regions, Vsaved_region_selection)
1278 (Qonly): Remove declarations.
1279 * lisp.h (pending_malloc_warning, Vsaved_region_selection)
1280 (Vselect_active_regions):
1281 * keyboard.h (timers_run): Add declarations.
1282
654ef137
DN
1283 * strftime.c (my_strftime_gmtime_r, my_strftime_localtime_r)
1284 (tm_diff): Convert definitions to standard C.
1285 (extra_args_spec_iso): Remove, unused.
1286
4a47c275 12872010-11-18 Jan Djärv <jan.h.d@swipnet.se>
37de8fd0
J
1288
1289 * xsettings.c (init_gconf): Check HAVE_G_TYPE_INIT.
1290
1291 * config.in (HAVE_G_TYPE_INIT): New symbol.
1292
4a47c275 12932010-11-18 Eli Zaretskii <eliz@gnu.org>
c7926fe2
EZ
1294
1295 * lread.c (Fload): Mention `load-in-progress' and
1296 `load-file-name'. (Bug#7346)
1297
86520d8c
EZ
1298 * keyboard.c (kbd_buffer_nr_stored): Define only ifdef subprocesses.
1299 (kbd_buffer_store_event_hold, kbd_buffer_get_event)
1300 (tty_read_avail_input): Call kbd_buffer_nr_stored only ifdef
1301 subprocesses. Use buffer_free only ifdef subprocesses.
1302
1303 * process.c (init_process) [subprocesses]: Init kbd_is_on_hold in
1304 the subprocesses version, not in the non-subprocesses one.
1305
794a4b6d
EZ
1306 * Makefile.in: Don't use ## comment, it breaks the MSDOS build.
1307
146d267b
EZ
13082010-11-17 Eli Zaretskii <eliz@gnu.org>
1309
1310 * xdisp.c (set_cursor_from_row): Fix cursor positioning in empty
1311 lines on text-mode terminals. (bug#7417)
1312
fad0d565
SM
13132010-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
1314
1315 * xterm.c (get_current_wm_state): Rename from get_current_vm_state.
1316 (do_ewmh_fullscreen, x_handle_net_wm_state): Update callers.
1317
6b4bb703
KH
13182010-11-17 Kenichi Handa <handa@m17n.org>
1319
1320 * coding.c (Fset_terminal_coding_system_internal): Fix previous
1321 change (set charset-ID list instead of charset-symbol list).
1322
9173a8fb
CY
13232010-11-16 Chong Yidong <cyd@stupidchicken.com>
1324
1325 * keyboard.c (make_lispy_position): For text area clicks, record Y
1326 pixel position relative to the text area, excluding header line.
1327 Also change X and Y to Lisp_Objects, not pointers; don't return
1328 coordinate values via pointers. Pass ON_TEXT_AREA coordinate to
1329 buffer_posn_from_coords counting from the start of the text area.
1330 (Fposn_at_x_y, make_lispy_event): Callers changed.
1331
1332 * window.c (coordinates_in_window): Change X and Y to ints rather
1333 than pointers; don't return coordinates via pointers.
1334 (struct check_window_data): Change X and Y from pointers to ints.
1335 (window_from_coordinates): Remove args WX and WY; don't return
1336 coordinates via pointers.
1337 (Fcoordinates_in_window_p, window_from_coordinates):
1338 (check_window_containing, Fwindow_at): Callers changed.
1339 (window_relative_x_coord): New function.
1340
1341 * window.h (window_from_coordinates, window_relative_x_coord):
1342 Update prototypes.
1343
1344 * dispnew.c (buffer_posn_from_coords): Assume that X counts from
1345 the start of the text area.
1346
1347 * xdisp.c (remember_mouse_glyph): Change window_from_coordinates
1348 call. Use window_relative_x_coord.
1349 (note_mouse_highlight): Change window_from_coordinates call.
1350
1351 * w32term.c (w32_read_socket):
1352 * msdos.c (dos_rawgetc):
1353 * xterm.c (handle_one_xevent): Likewise.
1354
d2762c86
DN
13552010-11-16 Dan Nicolaescu <dann@ics.uci.edu>
1356
1357 * strftime.c (LOCALE_PARAM_DECL): Update for standard C.
1358 (LOCALE_PARAM, LOCALE_PARAM_PROTO): Remove, unused.
1359 (memcpy_lowcase, so_week_days, extra_args_spec, emacs_strftimeu):
1360 Convert definitions to standard C.
1361 * regex.c: Do not include <stdlib.h>, config.h does it.
1362 Include unistd.h.
1363 (xrealloc, init_syntax_once, re_match, regcomp, regexec)
1364 (regerror, regfree): Convert definitions to standard C.
1365 * mktime.c (my_mktime_localtime_r, ydhms_tm_diff, ranged_convert)
1366 (__mktime_internal): Convert definitions to standard C.
1367
c2f0866a
DN
13682010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
1369
42a7e7f1
DN
1370 * w32proc.c:
1371 * w32inevt.c:
1372 * w32heap.c:
1373 * w32.c: Remove config.h include guards.
1374
67802943
DN
1375 * callproc.c (child_setup): Reorder code to simplify #ifdefs.
1376 No code changes.
1377
f0e1af46
DN
1378 * process.c: Include <sys/ioctl.h> unconditionally,
1379 keyboard.c already does it.
1380
c2f0866a
DN
1381 * keyboard.c (pending_malloc_warning): Add const to match
1382 definition in alloc.c.
1383 (Fset_input_interrupt_mode): Simplify #ifdefs.
1384
92d3ab7e
DN
13852010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
1386
12e610e8
DN
1387 Clean up systty.h macros.
1388 * systty.h (EMACS_GET_TTY_PGRP, EMACS_SET_TTY_PGRP, EMACS_GET_TTY)
1389 (EMACS_SET_TTY): Remove unneeded abstraction, instead inline the
1390 definition in all uses.
1391 (EMACS_TTY_TABS_OK): Remove, it has a single user.
1392 * sysdep.c (discard_tty_input, child_setup_tty)
1393 (init_sys_modes, tabs_safe_p, reset_sys_modes):
1394 * emacs.c (shut_down_emacs):
1395 * callproc.c (child_setup):
1396 * term.c (dissociate_if_controlling_tty): Inline removed macros.
1397
92d3ab7e
DN
1398 * data.c (sign_extend_temp, sign_extend_lisp_int): Remove, unused.
1399
a3e6bad4
CY
14002010-11-14 Chong Yidong <cyd@stupidchicken.com>
1401
1402 * w32fns.c (Fx_create_frame):
1403 * nsfns.m (Fx_create_frame): Don't check for the cursorColor
1404 resource here; it's now done at startup.
1405
5a232ffb
J
14062010-11-14 Jan Djärv <jan.h.d@swipnet.se>
1407
1408 * xterm.c (set_wm_state): Add Qnil to final cons.
1409
1410 * xselect.c (x_send_client_event): Remove unused variables cons and
1411 size.
1412
24021b38
YM
14132010-11-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1414
1415 * keyboard.c (modify_event_symbol) : Add const to array elements of
1416 arg NAME_TABLE.
1417 (lispy_accent_keys, lispy_function_keys, lispy_multimedia_keys)
1418 (lispy_kana_keys, iso_lispy_function_keys, lispy_wheel_names)
1419 (lispy_wheel_names, lispy_drag_n_drop_names, modifier_names):
1420 Add const to array elements.
1421 (scroll_bar_parts): Make static. Fix position of const.
1422
1423 * w32fns.c (lispy_function_keys): Add const to extern.
1424
1425 * w32inevt.c (lispy_function_keys): Likewise.
1426
afa42fe3
CY
14272010-11-14 Chong Yidong <cyd@stupidchicken.com>
1428
1429 * xfns.c (Fx_create_frame): Don't check for the cursorColor
1430 resource here; it's now done at startup.
1431
53260a94
DN
14322010-11-13 Dan Nicolaescu <dann@ics.uci.edu>
1433
c865c575 1434 * xmenu.c: Make it clear that ../lwlib/lwlib.h is only needed for Motif.
ff2e8052 1435
c865c575 1436 Fix compilation on Solaris.
ff2e8052
DN
1437 * sysdep.c: Do not #include <term.h>.
1438 (tputs): Add declaration, similar to what cm.c does. (Bug#7178)
1439
53260a94
DN
1440 * s/ms-w32.h (HAVE_TERMIOS_H): Do not undef, not used anymore.
1441
933e29ff
J
14422010-11-13 Jan Djärv <jan.h.d@swipnet.se>
1443
1444 * xterm.c (set_wm_state): Don't put Atom in cons, call
1445 make_fixnum_or_float on them first.
1446 (x_term_init): Initialize Xatom_net_supporting_wm_check and
1447 Xatom_net_supported correctly.
1448
1449 * xselect.c (x_send_client_event): Move CHECK_STRING ...
1450 (Fx_send_client_event): to here.
1451
a048073e
MR
14522010-11-13 Martin Rudalics <rudalics@gmx.at>
1453
1454 * window.c (Fwindow_use_time): New function.
1455
0eb025fb
EZ
14562010-11-13 Eli Zaretskii <eliz@gnu.org>
1457
1458 * xdisp.c (set_cursor_from_row): Fix cursor positioning on
1459 zero-width characters.
1460
1461 * .gdbinit (pgx): Adapt to latest changes in `struct glyph'.
1462
1463 * w32term.c (x_draw_glyphless_glyph_string_foreground): Draw the
1464 box before drawing the glyphs inside it.
1465
1466 * xdisp.c (syms_of_xdisp) <glyphless-char-display>: Doc fix.
1467
bba3e508
SM
1468 * dispextern.h (enum glyphless_display_method):
1469 Rename GLYPHLESS_DISPLAY_HEXA_CODE to GLYPHLESS_DISPLAY_HEX_CODE.
1470 All users changed.
0eb025fb 1471
bba3e508
SM
1472 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
1473 Fix comments.
0eb025fb
EZ
1474 (produce_glyphless_glyph): Enclose "U+nnnn" and "empty box"
1475 whitespace in "[]", to simulate a box. Don't use uninitialized
1476 variable `width'.
1477
c869cc37
JD
14782010-11-11 Julien Danjou <julien@danjou.info>
1479
2d9074ba
JD
1480 * xsettings.c (init_xsettings): Use already fetch atoms.
1481
1482 * xsmfns.c (create_client_leader_window): Use SM_CLIENT_ID atom
1483 from dpyinfo.
1484
1485 * xselect.c (Fx_send_client_event): Split and create
1486 x_send_client_event.
1487
1488 * lisp.h: Do not EXFUN Fx_send_client_event.
1489
1490 * xterm.c (x_set_frame_alpha): Use _NET_WM_WINDOW_OPACITY atom
1491 from dpyinfo.
1492 (wm_supports): Use atoms from dpyinfo.
1493 (do_ewmh_fullscreen): Use atoms from dpyinfo.
1494 (x_ewmh_activate_frame): Use atoms from dpyinfo.
1495 (xembed_set_info): Use atoms from dpyinfo.
1496 (x_term_init): Fetch _XEMBED_INFO, _NET_SUPPORTED,
1497 _NET_SUPPORTING_WM_CHECK, _NET_WM_WINDOW_OPACITY and
1498 _NET_ACTIVE_WINDOW, XSETTINGS atoms.
1499 Get all atoms in one round-trip.
1500 (set_wm_state): Use x_send_client_event rather than
1501 Fx_send_client_event, using Atom directly.
1502 (x_ewmh_activate_frame): Ditto.
1503 (x_set_sticky): Pass atoms to set_wm_state.
1504 (do_ewmh_fullscreen): Ditto.
1505
1506
1507 * xterm.h (x_display_info): Add Xatom_net_supported,
1508 Xatom_net_supporting_wm_check, Xatom_net_active_window,
1509 Xatom_net_wm_window_opacity, Xatom_XEMBED_INFO, SM_CLIENT_ID.
1510
c869cc37
JD
1511 * xfns.c (Fx_show_tip): Fix typo in docstring.
1512
1a4236ea
SM
15132010-11-11 Stefan Monnier <monnier@iro.umontreal.ca>
1514
1515 * cmds.c (Fself_insert_command): Don't call XFASTINT without checking
1516 it's not negative.
1517
3106121c
YM
15182010-11-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1519
1520 * font.c (font_filter_properties): Add const to array elements of
1521 properties args.
1522
1523 * font.h (font_filter_properties): Likewise.
1524
1525 * ftfont.c (ftfont_booleans, ftfont_non_booleans): Add const to array
1526 elements.
1527
1528 * w32font.c (w32font_booleans, w32font_non_booleans): Likewise.
1529
da1fec2b
MA
15302010-11-10 Michael Albinus <michael.albinus@gmx.de>
1531
1532 * dbusbind.c (QCdbus_type_unix_fd): New Lisp object.
1533 (XD_BASIC_DBUS_TYPE, xd_symbol_to_dbus_type, xd_signature)
1534 (xd_append_arg, xd_retrieve_arg): Support DBUS_TYPE_UNIX_FD.
1535 (Fdbus_call_method): Add DBUS_TYPE_UNIX_FD type mapping to doc string.
1536 (syms_of_dbusbind): Initialize QCdbus_type_unix_fd).
1537
bd6bc222
GM
15382010-11-10 Glenn Morris <rgm@gnu.org>
1539
1540 * emacs.c (syms_of_emacs) <system-type>: Doc fix.
1541
c0098065
EZ
15422010-11-09 Eli Zaretskii <eliz@gnu.org>
1543
bd6bc222 1544 * xfns.c (x_real_positions): Fix declaration-after-statement problem.
c0098065 1545
d607b96b 15462010-11-09 Chong Yidong <cyd@stupidchicken.com>
be3faa80
CY
1547
1548 * image.c (free_image): Don't garbage the frame here, since this
1549 function can be called while redisplaying (Bug#7210).
1550 (uncache_image): Garbage the frame here (Bug#6426).
1551
d607b96b 15522010-11-09 Jan Djärv <jan.h.d@swipnet.se>
184765cc 1553
d607b96b
SM
1554 * xfns.c (x_real_positions): Only use _NET_FRAME_EXTENTS if our
1555 parent is the root window. Check this after traversing window tree.
184765cc 1556
d607b96b 1557 * xterm.c (x_term_init): Initialize Xatom_net_frame_extents.
bd80a886 1558
d607b96b 1559 * xterm.h (struct x_display_info): Xatom_net_frame_extents is new.
bd80a886 1560
d607b96b
SM
1561 * xfns.c (x_real_positions): Try to get _NET_FRAME_EXTENTS first
1562 before traversing window tree (Bug#5721).
c2e124a9 1563
27f92be7
J
15642010-11-07 Jan Djärv <jan.h.d@swipnet.se>
1565
66b16767
J
1566 * xfns.c (set_machine_and_pid_properties): Let X set WM_CLIENT_MACHINE.
1567
25f38310
SM
1568 * xdisp.c (note_mode_line_or_margin_highlight):
1569 Initialize Cursor to No_Cursor for HAVE_WINDOW_SYSTEM also.
27f92be7 1570
a971c0a7
EZ
15712010-11-06 Eli Zaretskii <eliz@gnu.org>
1572
1573 * xfns.c (Fx_show_tip): If any of the tool-tip text lines is R2L,
1574 adjust width of tool-tip frame to the width of text, excluding the
1575 stretch glyph at the beginning of R2L glyph rows.
1576
1577 * w32fns.c (Fx_show_tip): Likewise.
1578
80417b95
JD
15792010-11-06 Jan Djärv <jan.h.d@swipnet.se>
1580
1581 * nsfont.m: Include termchar for new mouse-highlight.
6dc61cf1 1582 (nsfont_draw): Use MOUSE_HL_INFO.
80417b95 1583
28118eb6
EZ
15842010-11-05 Eli Zaretskii <eliz@gnu.org>
1585
c1fc2d3a 1586 Unify mouse-highlight code for all GUI and TTY sessions.
cf482c50
EZ
1587
1588 * term.c: Remove static mouse_face_* variables. All users
1589 changed.
1590 (term_show_mouse_face, term_clear_mouse_face)
1591 (fast_find_position, term_mouse_highlight): Functions deleted.
1592 (tty_draw_row_with_mouse_face): New function.
1593 (term_mouse_movement): Call note_mouse_highlight instead of
1594 term_mouse_highlight.
1595
bbf534ce
EZ
1596 * nsterm.m (ns_update_window_begin, ns_update_window_end)
1597 (ns_update_end, x_destroy_window, ns_frame_up_to_date)
1598 (ns_dumpglyphs_box_or_relief, ns_maybe_dumpglyphs_background)
1599 (ns_dumpglyphs_image, ns_dumpglyphs_stretch)
1600 (ns_initialize_display_info, keyDown, mouseMoved, mouseExited):
1601 Replace Display_Info with Mouse_HLInfo everywhere where
1602 mouse_face_* members were accessed for mouse highlight purposes.
1603
1604 * xterm.c (x_update_window_begin, x_update_window_end)
1605 (x_update_end, XTframe_up_to_date, x_set_mouse_face_gc)
bba3e508
SM
1606 (handle_one_xevent, x_free_frame_resources, x_term_init):
1607 Replace Display_Info with Mouse_HLInfo everywhere where mouse_face_*
bbf534ce
EZ
1608 members were accessed for mouse highlight purposes.
1609
1610 * w32term.c (x_update_window_begin, x_update_window_end)
1611 (x_update_end, w32_read_socket, x_free_frame_resources)
1612 (w32_initialize_display_info): Replace Display_Info with
1613 Mouse_HLInfo everywhere where mouse_face_* members were accessed
1614 for mouse highlight purposes.
1615
1616 * xdisp.c (show_mouse_face, note_mode_line_or_margin_highlight)
1617 (note_mouse_highlight) [HAVE_WINDOW_SYSTEM]: Don't run GUI code
1618 unless the frame is on a window-system.
c1fc2d3a 1619 (get_tool_bar_item, handle_tool_bar_click)
7ea692f6
EZ
1620 (note_tool_bar_highlight, draw_glyphs, erase_phys_cursor)
1621 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
1622 (note_mode_line_or_margin_highlight, note_mouse_highlight)
1623 (x_clear_window_mouse_face, cancel_mouse_face, expose_frame):
1624 Replace Display_Info with Mouse_HLInfo everywhere where
1625 mouse_face_* members were accessed for mouse highlight purposes.
c1fc2d3a 1626 (coords_in_mouse_face_p): Move prototype out of the
d009ae66
EZ
1627 HAVE_WINDOW_SYSTEM conditional.
1628 (x_y_to_hpos_vpos, frame_to_window_pixel_xy): Move out of the
1629 HAVE_WINDOW_SYSTEM block.
bba3e508
SM
1630 (try_window_id) [HAVE_GPM || MSDOS]:
1631 Call x_clear_window_mouse_face.
d009ae66 1632 (draw_row_with_mouse_face): Implementation for HAVE_WINDOW_SYSTEM
c1fc2d3a
EZ
1633 systems. Call tty_draw_row_with_mouse_face for TTY systems.
1634 (show_mouse_face): Call draw_row_with_mouse_face, instead of
1635 calling draw_glyphs directly.
d009ae66
EZ
1636 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
1637 (cursor_in_mouse_face_p, rows_from_pos_range)
1638 (mouse_face_from_buffer_pos, mouse_face_from_string_pos)
1639 (note_mode_line_or_margin_highlight, note_mouse_highlight)
1640 (x_clear_window_mouse_face, cancel_mouse_face): Move out of the
1641 HAVE_WINDOW_SYSTEM block. Ifdef away window-system specific
1642 fragments.
1643 (note_mouse_highlight): Call popup_activated for MSDOS as well.
1644 Clear mouse highlight if pointer is over glyphs whose OBJECT is an
1645 integer.
1646 (mouse_face_from_buffer_pos): Add parentheses around && within ||.
bba3e508
SM
1647 (x_consider_frame_title, tool_bar_lines_needed):
1648 Move prototypes to HAVE_WINDOW_SYSTEM-only part.
c1fc2d3a
EZ
1649 (get_window_cursor_type): Move inside a HAVE_WINDOW_SYSTEM-only
1650 part. Remove "#ifdef HAVE_WINDOW_SYSTEM" from body of function.
1651 (null_glyph_slice): Move declaration into HAVE_WINDOW_SYSTEM-only
1652 part.
d009ae66
EZ
1653
1654 * dispnew.c (mirror_make_current): Set Y coordinate of the
1655 mode-line and header-line rows.
c1fc2d3a
EZ
1656 (init_display): Setup initial frame's output_data for text
1657 terminal frames.
d009ae66 1658
c1fc2d3a
EZ
1659 * xmenu.c (popup_activated): Don't define on MSDOS, which now has
1660 its own definition on msdos.c.
d009ae66
EZ
1661
1662 * msdos.c (show_mouse_face, clear_mouse_face)
1663 (fast_find_position, IT_note_mode_line_highlight)
1664 (IT_note_mouse_highlight): Functions deleted.
1665 (IT_frame_up_to_date, dos_rawgetc): Call note_mouse_highlight
1666 instead of IT_note_mouse_highlight.
1667 (draw_row_with_mouse_face, popup_activated): New functions.
c1fc2d3a
EZ
1668 (dos_set_window_size, draw_row_with_mouse_face, IT_update_begin)
1669 (IT_update_end, IT_frame_up_to_date, internal_terminal_init)
1670 (dos_rawgetc): Replace Display_Info with Mouse_HLInfo everywhere
1671 where mouse_face_* members were accessed for mouse highlight
1672 purposes.
1673
1674 * msdos.h (initialize_msdos_display): Add prototype.
1675
1676 * frame.h (MOUSE_HL_INFO): New macro.
1677
1678 * lisp.h (Mouse_HLInfo): New data type.
1679
1680 * xterm.h (struct x_display_info):
1681 * w32term.h (struct w32_display_info):
1682 * nsterm.h (struct ns_display_info):
1683 * termchar.h (struct tty_display_info): Use it instead of
1684 mouse_face_* members.
1685
1686 * dispextern.h (show_mouse_face, clear_mouse_face): Update type of
1687 1st argument.
1688 (frame_to_window_pixel_xy, note_mouse_highlight)
1689 (x_clear_window_mouse_face, cancel_mouse_face, clear_mouse_face)
1690 (show_mouse_face, cursor_in_mouse_face_p): Move prototypes out of
1691 HAVE_WINDOW_SYSTEM conditional.
1692 (draw_row_with_mouse_face): Declare prototype.
1693 (tty_draw_row_with_mouse_face): Declare prototype.
1694
6e8d7c47
EZ
16952010-11-05 Eli Zaretskii <eliz@gnu.org>
1696
bba3e508
SM
1697 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
1698 Remove unused variables.
6e8d7c47 1699
f31ba3f0
AR
17002010-11-05 Adrian Robert <Adrian.B.Robert@gmail.com>
1701
1702 * nsterm.m (EmacsView-mouseExited:): Correct error in conditional
1703 logic pointed out by Eli Zaretskii.
1704
448e17d6
LMI
17052010-11-04 Lars Magne Ingebrigtsen <larsi@gnus.org>
1706
0c3a9a9f
GM
1707 * coding.c (coding-category-list): Refer to set-coding-system-priority
1708 instead of the obsolete set-coding-priority in the doc string.
448e17d6 1709
f31ba3f0 1710
3fdebbf9 17112010-11-04 Adrian Robert <Adrian.B.Robert@gmail.com>
f31ba3f0
AR
1712
1713 * nsfont.m (nsfont_draw): Correct previous patch to return
1714 correct value.
1715 * nsimage.m (EmacsImage-setXBMColor:): Correct previous patch:
1716 don't change the method signature, change the return.
1717
17182010-11-04 Ismail Donmez <ismail@namtrac.org> (tiny change)
3fdebbf9
AR
1719
1720 * nsfont.m (nsfont_draw)
1721 * nsimage.m (EmacsImage-setXBMColor:)
f31ba3f0 1722 * nsterm.m (EmacsView-performDragOperation:): Correct empty return.
3fdebbf9 1723
17c0c952
JD
17242010-11-03 Julien Danjou <julien@danjou.info>
1725
1726 * image.c (gif_load): Add support for transparency and specified
1727 :background.
1728
b18fad6d
KH
17292010-11-01 Kenichi Handa <handa@m17n.org>
1730
1731 * dispextern.h (lookup_glyphless_char_display): Extern it.
1732
1733 * termhooks.h (struct terminal): New member charset_list.
1734
1735 * coding.c (Fset_terminal_coding_system_internal): Set the
1736 `charset_list' member of struct terminal.
1737
a8039db1 1738 * term.c (produce_glyphs): Handle the case it->what == IT_GLYPHLESS.
b18fad6d
KH
1739 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
1740
1741 * xdisp.c (lookup_glyphless_char_display): Make it non-static.
1742 (lookup_glyphless_char_display): Set it->what at the end.
1743 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
1744 (last_glyphless_glyph_merged_face_id): Make them non-static.
1745
a8039db1
JB
1746 * w32term.c (x_draw_glyphless_glyph_string_foreground):
1747 Fix the arg with_background for font->driver->draw.
65b6b59a 1748
a8039db1 17492010-11-01 Kenichi Handa <handa@m17n.org>
0269bd90 1750
a8039db1
JB
1751 * w32gui.h (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
1752 Surround chp by parentheses.
0269bd90 1753
a8039db1 17542010-11-01 Kenichi Handa <handa@m17n.org>
b2cca856
KH
1755
1756 Implement various display methods for glyphless characters.
1757
1758 * xdisp.c (Qglyphless_char, Vglyphless_char_display)
1759 (Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space)
1760 (Qzero_width): New variables.
1761 (THIN_SPACE_WIDTH): New macro.
1762 (lookup_glyphless_char_display): New funciton.
1763 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
1764 (last_glyphless_glyph_merged_face_id): New variables.
1765 (get_next_display_element): Check glyphless characters.
1766 (redisplay_internal): Initialize last_glyphless_glyph_frame and
1767 last_glyphless_glyph_face_id.
1768 (fill_glyphless_glyph_string): New function.
1769 (BUILD_GLYPHLESS_GLYPH_STRING): New macro.
1770 (BUILD_GLYPH_STRINGS): Handle the case GLYPHLESS_GLYPH.
1771 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
1772 (x_produce_glyphs): If a suitable font is not found, produce a
1773 glyphless glyph. Handle the case it->what == IT_GLYPHLESS.
1774 (syms_of_xdisp): Intern and staticpro Qglyphless_char,
1775 Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space, and
1776 Qzero_width.
1777 (Vglyphless_char_display): Declare it as a Lisp variable.
1778
1779 * dispextern.h (enum glyph_type): Add GLYPHLESS_GLYPH.
a8039db1
JB
1780 (struct glyph): Change the size of the member "type" to 3.
1781 Add glyphless to the union slice and u.
b2cca856
KH
1782 (enum display_element_type): Add IT_GLYPHLESS.
1783 (enum glyphless_display_method): New enum.
1784 (struct it): New member glyphless_method.
1785 (Vglyphless_char_display): Extern it.
1786
1787 * xterm.c (x_draw_glyphless_glyph_string_foreground): New function.
1788 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
1789
a8039db1 1790 * w32term.c (x_draw_glyphless_glyph_string_foreground): New function.
b2cca856
KH
1791 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
1792
1793 * nsterm.m (ns_draw_glyph_string): Handle the case
1794 GLYPHLESS_GLYPH (the detail is not yet implemented).
1795
c8c59954
GM
17962010-10-31 Glenn Morris <rgm@gnu.org>
1797
80696982
GM
1798 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Fix merge, maybe.
1799
c8c59954
GM
1800 * frame.c (syms_of_frame) <tool-bar-mode>:
1801 Default to nil if !HAVE_WINDOW_SYSTEM. (Bug#7299)
1802
46eadc7a
CY
18032010-10-31 Chong Yidong <cyd@stupidchicken.com>
1804
1805 * xterm.c (x_connection_closed): Print informative error message
1806 when aborting on GTK. This requires using shut_down_emacs
1807 directly instead of Fkill_emacs.
1808
ffe75e6b
EZ
18092010-10-29 Eli Zaretskii <eliz@gnu.org>
1810
1811 * emacs.c (main): Call syms_of_filelock unconditionally.
1812
1813 * filelock.c (syms_of_filelock): Move out of #ifdef CLASH_DETECTION
1814 clause, but keep part of it conditioned on CLASH_DETECTION.
1815
9d794026
GM
18162010-10-29 Glenn Morris <rgm@gnu.org>
1817
4f4f2973
GM
1818 * nsfns.m (Fx-display-save-under, Fx-open-connection)
1819 (Fxw-color-defined-p, Fxw-display-color-p, Fx-show-tip):
1820 * w32fns.c (Fxw_color_defined_p, Fx_open_connection):
1821 * xfns.c (Fxw_color_defined_p, Fx_open_connection):
1822 Sync docs between X, W32, NS.
1823
9d794026
GM
1824 * buffer.c (syms_of_buffer) <abbrev-mode, transient-mark-mode>:
1825 * frame.c (syms_of_frame) <tool-bar-mode>: Move doc here from Lisp.
1826
d46f6bbb
JB
18272010-10-26 Juanma Barranquero <lekktu@gmail.com>
1828
1829 * eval.c (init_eval_once): Set max_lisp_eval_depth to 600;
1830 otherwise, bootstrapping on Windows fails to compile macroexp.el.
1831
2e35f1a2
EZ
18322010-10-26 Eli Zaretskii <eliz@gnu.org>
1833
1834 * cmds.c (internal_self_insert): Don't insert if argument N is
84b28888 1835 zero or negative. (Bug#7281)
2e35f1a2 1836
8daaeda6
J
18372010-10-26 Jan Djärv <jan.h.d@swipnet.se>
1838
1839 * gtkutil.c (qttip_cb): Set title to empty for ATK (Bug#7278).
1840
6a5c2175
GM
18412010-10-25 Glenn Morris <rgm@gnu.org>
1842
1843 * Makefile.in (SOME_MACHINE_LISP): Remove easymenu.elc.
1844
7c051dd8
GM
18452010-10-24 Glenn Morris <rgm@gnu.org>
1846
1847 * w32fns.c (Fx_synchronize, Fx_change_window_property)
1848 (Fx_window_property, Fx_file_dialog):
1849 * xfns.c (Fx_synchronize, Fx_change_window_property)
1850 (Fx_window_property, Fx_file_dialog): Sync docs between w32 and X.
1851
23c261f5
CY
18522010-10-24 Chong Yidong <cyd@stupidchicken.com>
1853
1854 * xterm.c (x_connection_closed): Kill Emacs unconditionally.
1855
d414c713 18562010-10-24 Eli Zaretskii <eliz@gnu.org>
89baa1df
EZ
1857
1858 * frame.c (Fframep, Fwindow_system): Deprecate use as a predicate.
1859
1860 * dispnew.c (syms_of_display) <initial-window-system, window-system>:
1861 Deprecate use as a boolean flag.
1862
947f5e01
JM
18632010-10-24 Jim Meyering <jim@meyering.net>
1864
1865 * emacs.c (argmatch): Don't treat "--" as "--chdir".
1866
65807d73
GM
18672010-10-24 Glenn Morris <rgm@gnu.org>
1868
f5f25615
GM
1869 * w16select.c (syms_of_win16select) <selection-coding-system>:
1870 <next-selection-coding-system>:
1871 * w32select.c (syms_of_w32select) <selection-coding-system>:
1872 <next-selection-coding-system>:
3646b86d
GM
1873 Sync docs with select.el.
1874
46710489
GM
1875 * xfaces.c (syms_of_xfaces) <tty-defined-color-alist>: Sync doc with
1876 Lisp version.
1877
ea883883
GM
1878 * w32term.c (syms_of_w32term) <x-use-underline-position-properties>:
1879 Sync doc with the xterm.c version.
1880
65807d73
GM
1881 * w32term.c (syms_of_w32term) <x-toolkit-scroll-bars>:
1882 * xterm.c (syms_of_xterm) <x-toolkit-scroll-bars>: Sync docs.
1883
f3d87560
GM
18842010-10-23 Glenn Morris <rgm@gnu.org>
1885
66c6abf0 1886 * buffer.c (syms_of_buffer) <cursor-in-non-selected-windows>:
e1fd756b 1887 * frame.c (syms_of_frame) <menu-bar-mode>:
6e82cf1a 1888 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode, display-hourglass>:
a102db1e 1889 <hourglass-delay>: Sync docs with Lisp.
f3d87560 1890
7b7e2c18
EZ
18912010-10-23 Eli Zaretskii <eliz@gnu.org>
1892
d1d6801e 1893 Implement mouse highlight for bidi-reordered lines.
d0010be5
EZ
1894
1895 * xdisp.c (fast_find_string_pos): #ifdef away, not used anymore.
1896 (mouse_face_from_string_pos): New function, replaces
1897 fast_find_string_pos.
1898 (note_mouse_highlight): Call it instead of fast_find_string_pos.
d1d6801e
EZ
1899 (note_mode_line_or_margin_highlight): Support bidi-reordered
1900 strings and R2L glyph rows. Fix comments.
2f3f89b3
EZ
1901 (note_mouse_highlight): When bidi reordering is turned on in a
1902 buffer, call next-single-property-change and
ef1b0ba7
SM
1903 previous-single-property-change with last argument nil.
1904 Clear mouse highlight when mouse pointer is in a R2L row on the stretch
d1d6801e 1905 glyph that stands for no text beyond the line end.
1f382a02
EZ
1906 (row_containing_pos): Don't return too early when CHARPOS is in a
1907 bidi-reordered continued line. Return immediately when the first
1908 hit is found in a line that is not continued, or when an exact
1909 match for CHARPOS is found.
d1d6801e
EZ
1910 (rows_from_pos_range): New function.
1911 (mouse_face_from_buffer_pos): Use it instead of calling
1912 row_containing_pos for START_CHARPOS and END_CHARPOS. Rewrite the
1913 function to support mouse highlight in bidi-reordered lines and
1914 not to assume that START_CHARPOS is always in mouse_face_beg_row.
1915 If necessary, swap mouse_face_beg_row and mouse_face_end_row so
1916 that the former is always above the latter or identical to it.
1554d88e 1917 (show_mouse_face): Support drawing highlighted R2L lines.
1b5a721b
EZ
1918 (coords_in_mouse_face_p): New function, bidi-aware.
1919 (cursor_in_mouse_face_p, note_mouse_highlight, erase_phys_cursor):
1920 Call it instead of comparing with mouse-face members of dpyinfo.
1921 (note_mode_line_or_margin_highlight): Fix confusingly swapped
1922 usage of hpos and vpos.
544bbc31 1923
dee186b6
J
19242010-10-22 Jan Djärv <jan.h.d@swipnet.se>
1925
1926 * xrdb.c: Include keyboard.h for MOTIF.
1927
1928 * xmenu.c: Revert 2010-07-27 change: lwlib.h is needed for
1929 MOTIF (Bug#7263).
1930
1931 * xfns.c: Include Xm/TextF and Xm/List.
bba3e508
SM
1932 (file_dialog_cb, file_dialog_unmap_cb, clean_up_file_dialog):
1933 Make ANSI prototypes.
dee186b6 1934
5fb59edb
GM
19352010-10-22 Glenn Morris <rgm@gnu.org>
1936
1937 * Makefile.in (SOME_MACHINE_LISP): Add w32-vars.
1938 Remove ccl and duplicate mouse.
1939
8b78d5e3
CY
19402010-10-21 Chong Yidong <cyd@stupidchicken.com>
1941
1942 * insdel.c (prepare_to_modify_buffer): Don't set
1943 saved-region-selection if modification hooks are disabled.
1944
b8a47412
CY
19452010-10-19 Chong Yidong <cyd@stupidchicken.com>
1946
1947 * cmds.c (Fdelete_char): Doc fix.
1948
ca3fa302 19492010-10-19 Ken Brown <kbrown@cornell.edu>
5419963b
KB
1950
1951 * s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
1952
ca3fa302 19532010-10-19 Kenichi Handa <handa@m17n.org>
31daa5e1
KH
1954
1955 Fix incorrect font metrics when the same font is opened with
1956 different pixelsizes.
1957
1958 * xftfont.c: Include composite.h.
1959 (xftfont_shape): New function.
1960 (syms_of_xftfont): Set xftfont_driver.shape.
1961
c978536f
JD
19622010-10-18 Julien Danjou <julien@danjou.info>
1963
1964 * frame.c (Fframe_pointer_visible_p):
1965 Add `frame-pointer-visible-p' to get the pointer visibility.
1966
4b2d9ec2
LMI
19672010-10-18 Lars Magne Ingebrigtsen <larsi@gnus.org>
1968
1969 * gnutls.c (emacs_gnutls_read): Return 0 if we get a
1970 non-"EAGAIN"-like error to signal to Emacs that the socket should
1971 be closed.
1972
9cf66cf2
EZ
19732010-10-15 Eli Zaretskii <eliz@gnu.org>
1974
c3911ead
EZ
1975 * unexcoff.c (make_hdr): Fix prototype according to changes in
1976 2010-10-03T13:59:56Z!dann@ics.uci.edu.
1977
9cf66cf2
EZ
1978 * image.c (tiff_load): Cast 3rd argument to avoid compiler warning.
1979
be98da05
TH
19802010-10-15 Tassilo Horn <tassilo@member.fsf.org>
1981
1982 * Makefile.in (really-oldXMenu): Fix typo in variable name that
1983 made building the X menu fail.
cc98b256 1984 (really-oldXMenu): Fix my previous fix.
be98da05 1985
220d91b8 19862010-10-14 Damyan Pepper <damyanp@gmail.com>
9fa82824
DP
1987
1988 Fix handling of font properties on Windows (bug#6303).
1989 * font.c (font_filter_properties): New function, refactored from
1990 ftfont_filter_properties.
1991 * font.h (font_filter_properties): Declare.
1992 * ftfont.c (ftfont_filter_properties): Use font_filter_properties.
1993 * w32font.c (w32font_booleans, w32font_non_booleans): New variables.
1994 (w32font_filter_properties): New function.
1995 (w32font_driver): Add w32font_filter_properties.
1996
220d91b8 19972010-10-14 Juanma Barranquero <lekktu@gmail.com>
51e4f4a8 1998
c0943d3d 1999 * font.c (Ffont_variation_glyphs):
51e4f4a8
JB
2000 * ccl.c (Fccl_execute_on_string): Fix typo in docstring.
2001
24f981c9
JB
20022010-10-14 Juanma Barranquero <lekktu@gmail.com>
2003
2004 * w32fns.c (w32_wnd_proc, file_dialog_callback):
2005 * w32font.c (w32_generic_family):
2006 * w32inevt.c (key_event):
2007 * w32menu.c (fill_in_menu):
2008 * w32proc.c (reader_thread, w32_executable_type, compare_env)
2009 (merge_and_sort_env, int_from_hex, enum_locale_fn, enum_codepage_fn):
2010 * w32term.c (w32_read_socket): Make static.
2011
850690cc
JB
20122010-10-13 Juanma Barranquero <lekktu@gmail.com>
2013
2014 * image.c (DEF_IMGLIB_FN): Add argument to adapt to strict
2015 prototypes; all callers changed.
2016
5e371708
JB
20172010-10-13 Juanma Barranquero <lekktu@gmail.com>
2018
2019 * makefile.w32-in (TLIB2): Rename from TLIBW32.
2020 (OBJ2): New macro.
2021 (WIN32OBJ, FONTOBJ): Remove.
2022 (OBJ1): Redistribute object files with OBJ2.
2023 (LIBS, $(TEMACS)): Use TLIB2.
2024 (make-buildobj-CMD, make-buildobj-SH): Use OBJ2.
2025 ($(TLIB2), TAGS, TAGS-LISP, TAGS-gmake): Depend on OBJ2.
2026
2e288d54
JB
20272010-10-13 Juanma Barranquero <lekktu@gmail.com>
2028
2029 * emacs.c (Vdynamic_library_alist)
2030 (syms_of_emacs) <dynamic-library-alist>: Move from image.c and rename.
2031 Doc fix.
2032
2033 * lisp.h (Vdynamic_library_alist): Declare extern.
2034
2035 * image.c (Vimage_library_alist)
2036 (syms_of_image) <image-library-alist>: Move to emacs.c and rename.
2037 (lookup_image_type): Use Vdynamic_library_alist.
2038 (Finit_image_library): Doc fix.
2039
aba1381b
DN
20402010-10-12 Dan Nicolaescu <dann@ics.uci.edu>
2041
2042 * Makefile.in (lispsource, libsrc, etc, oldxmenudir, lwlibdir)
2043 (lispdir): Remove trailing /, update all uses.
2044
4c14013d 20452010-10-12 Jan Djärv <jan.h.d@swipnet.se>
a2e35ef5
JD
2046
2047 * nsterm.m (Qleft): Declare.
2048 (ns_right_alternate_modifier): New variable
2049 (NSRightAlternateKeyMask): New define.
2050 (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
2051 ns_right_alternate_modifier isn't Qleft.
2052 (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
2053 as emacs modifier for NSRightAlternateKeyMask.
2054 (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
2055
355cdaf3
LMI
20562010-10-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
2057
2058 * gnutls.c (emacs_gnutls_write): If we're trying to write before
2059 gnutls is ready, return EAGAIN as the errno.
2060
4c620157
DN
20612010-10-10 Dan Nicolaescu <dann@ics.uci.edu>
2062
edfd76ce
DN
2063 * vm-limit.c:
2064 * unexhp9k800.c:
2065 * unexelf.c:
2066 * unexaix.c:
2067 * termcap.c: Remove #ifdef emacs / #ifndef emacs code, unused.
2068
a4daeecf
DN
2069 * Makefile.in (temacs): Use $(ALL_CFLAGS) on the link line.
2070 (PROFILING_LDFLAGS): Remove, not needed anymore.
2071
2cb72a75 2072 * Makefile.in: Use $(...) everywhere instead of ${...}
4cf3ad30
DN
2073 (CRT_DIR): Move near potential user.
2074 (START_FILE): Move near CRT_DIR, it might use it.
2cb72a75 2075
4c620157
DN
2076 * sysdep.c (LPASS8): Remove, unused.
2077 (emacs_ospeed): Change from being a global to a local in the only
2078 user: init_baud_rate.
2079
b845653d
LMI
20802010-10-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
2081
2082 * gnutls.c (syms_of_gnutls): All the bootprops are keywords.
bda6d2bd 2083 (emacs_gnutls_write): Remove the debuggin fsync call.
b845653d 2084 (emacs_gnutls_read): Return -1 if we got an error from
bda6d2bd 2085 gnutls_read. This allows us to actually read lots of data from
b845653d 2086 the GnuTLS stream.
2e6c74c5
LMI
2087 (emacs_gnutls_write): Check for GNUTLS_E_AGAIN and not EINTR.
2088 According to the documentation, this is correct, and it seems to
2089 make things work.
b845653d 2090
3625b3e2
CY
20912010-10-09 Chong Yidong <cyd@stupidchicken.com>
2092
2093 * xterm.c (x_draw_relief_rect): Clear corner pixels.
2094
8b1c619f
MA
20952010-10-08 Michael Albinus <michael.albinus@gmx.de>
2096
2097 * keyboard.c: Revert last change; it was not intended to be
2098 synchronized with the trunk.
2099
93d50df8
KH
21002010-10-08 Kenichi Handa <handa@m17n.org>
2101
2b7c9342 2102 * coding.c (complement_process_encoding_system): Fix previous change.
5886ec9c 2103
4628bef1 21042010-10-08 Michael Albinus <michael.albinus@gmx.de>
a79b0f28
MA
2105
2106 * dbusbind.c (syms_of_dbusbind): Move putenv call ...
2107 (Fdbus_init_bus): ... here. (Bug#7113)
2108
4628bef1 21092010-10-08 Glenn Morris <rgm@gnu.org>
7b2bf907
GM
2110
2111 * buffer.c (before-change-functions, after-change-functions):
2112 Three-year overdue doc fix following 2007-08-13 change.
2113
4628bef1 21142010-10-08 Kenichi Handa <handa@m17n.org>
1911a33b
KH
2115
2116 * coding.c (coding_inherit_eol_type): If parent doesn't specify
2117 eol-format, inherit from the system's default.
2118 (complement_process_encoding_system): Make a new coding system
2119 inherit the original eol-format.
2120
4628bef1 21212010-10-08 Kenichi Handa <handa@m17n.org>
fcaf8878
KH
2122
2123 * coding.c (complement_process_encoding_system): New function.
2124
2125 * coding.h (complement_process_encoding_system): Extern it.
2126
2127 * callproc.c (Fcall_process): Complement the coding system for
2128 encoding arguments.
2129 (Fcall_process_region): Complement the coding system for encoding
2130 the input to the process.
2131
2132 * process.c (Fstart_process): Complement the coding system for
2133 encoding arguments.
2134 (send_process): Complement the coding system for encoding what
2135 sent to the process.
2136
4628bef1 21372010-10-08 Kenichi Handa <handa@m17n.org>
18acb5ad
KH
2138
2139 * xfont.c (xfont_open): Fix setting of font->average_width from
2140 :avgwidth property (Bug#7123).
2141
4628bef1 21422010-10-08 Michael Albinus <michael.albinus@gmx.de>
dec83468
MA
2143
2144 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
2145 is more portable.
2146
2147 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
2148 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
2149 has not defined SIGIO.
2150
389454fb
CY
21512010-10-08 Chong Yidong <cyd@stupidchicken.com>
2152
2153 * xterm.c (x_draw_relief_rect): If box width is larger than 1,
2154 draw the outermost line using the black relief, for legibility.
2155 Omit drawing the four corner pixels.
2156
51b403bd
CY
21572010-10-04 Chong Yidong <cyd@stupidchicken.com>
2158
2159 * keyboard.c (echo_prompt): Function moved into read_key_sequence.
2160 (read_key_sequence): Inline echo_prompt.
2161 (echo_dash): Add a dash only if key is continued (Bug#7137).
2162
3e6ae1a4
DN
21632010-10-04 Dan Nicolaescu <dann@ics.uci.edu>
2164
2165 Remove O_RDONLY, O_WRONLY definitions, not needed.
2166 * unexcoff.c:
2167 * lread.c:
2168 * fileio.c:
2169 * doc.c:
2170 * callproc.c:
2171 * alloc.c:
2172 * termcap.c: Remove O_RDONLY O_WRONLY definitions.
2173
c1ae068b
LMI
21742010-10-03 Teodor Zlatanov <tzz@lifelogs.com>
2175
2176 * gnutls.h (GNUTLS_LOG2): Convenience macro.
2177
2178 * gnutls.c: Add property list symbol holders.
2179 (emacs_gnutls_handshake): Clarify how sockets are passed to
2180 GnuTLS.
2181 (gnutls_log_function2): Convenience function using GNUTLS_LOG2.
2182 (Fgnutls_boot): Get all parameters from a plist. Require trustfiles
2183 and keyfiles to be a list of file names. Default to "NORMAL" for
2184 the priority string. Improve logging.
2185
e2afe435
GM
21862010-10-03 Glenn Morris <rgm@gnu.org>
2187
2188 * fileio.c (Vdirectory_sep_char): Remove.
2189
dd5ecd6b
DN
21902010-10-03 Dan Nicolaescu <dann@ics.uci.edu>
2191
b5437a05
DN
2192 * termhooks.h: Remove #ifdef CONSP.
2193
4777478a
DN
2194 * xterm.c (NO_INLINE, noinline): Move definitions to ../configure.in.
2195
a3d5088d
DN
2196 Include <fcntl.h> unconditionally.
2197 * termcap.c:
2198 * sysdep.c:
2199 * lread.c:
2200 * keyboard.c:
2201 * filelock.c:
2202 * fileio.c:
2203 * doc.c:
2204 * callproc.c:
2205 * alloc.c: Remove include guards for <fcntl.h>, process.c already
2206 does it.
2207
82719735
DN
2208 * process.c: Do not include <sys/wait.h>, syswait.h does it.
2209
9de940b5
DN
2210 * sysdep.c (flush_pending_output): Remove code, does not do
2211 anything on any platform.
2212
57507bf8 2213 Remove unused code.
bba3e508
SM
2214 * sysdep.c (select_alarm, sys_select, read_input_waiting):
2215 Remove select emulation, all systems support select.
57507bf8
DN
2216 (set_exclusive_use): Remove, the only user is in an #if 0 block.
2217 * process.c (create_process): Remove #if 0 code.
2218
dd5ecd6b
DN
2219 Remove unused arguments for unexec.
2220 The third one is never used, and the last two are always passed as zero.
2221 * emacs.c (unexec): Add declaration.
2222 (Fdump_emacs): Only pass the first two arguments to unexec.
2223 Simplify #ifdef.
2224 * unexw32.c (unexec):
2225 * unexsol.c (unexec):
2226 * unexhp9k800.c (unexec):
2227 * unexcw.c (unexec): Remove the last 3 arguments, unused.
2228 * unexelf.c (unexec): Remove the last 3 arguments, unused.
2229 (find_section): Use const.
2230 * unexmacosx.c (unexec): Remove the last 3 arguments, unused.
2231 (unexec_error): Declare it NO_RETURN.
2232 * unexcoff.c (make_hdr): Assume bss_start is always zero, remove
2233 it as an argument, remove data_start and entry_address arguments, unused.
2234 (unexec): Remove bss_start, data_start and
2235 entry_address arguments.
2236 * unexaix.c (make_hdr): Assume bss_start is always zero, remove
2237 it as an argument, remove data_start and entry_address arguments, unused.
2238 (unexec): Remove bss_start, data_start and
2239 entry_address arguments.
2240
74f1829d
JB
22412010-10-03 Juanma Barranquero <lekktu@gmail.com>
2242
7f467e14
JB
2243 * makefile.w32-in (TAGS, TAGS-LISP, TAGS-gmake): Add $(FONTOBJ).
2244
74f1829d
JB
2245 * gnutls.c (emacs_gnutls_handshake, gnutls_make_error)
2246 (gnutls_emacs_global_init, gnutls_emacs_global_deinit): Make static.
2247 (Fgnutls_get_initstage, Fgnutls_deinit, Fgnutls_boot, Fgnutls_bye):
2248 Fix typos in docstrings.
2249 (Fgnutls_error_fatalp, Fgnutls_error_string): Doc fixes.
2250 (Fgnutls_errorp): Doc fix; use ERR for the argument name.
2251
6926550f
CY
22522010-10-03 Chong Yidong <cyd@stupidchicken.com>
2253
2254 * keyboard.c (command_loop_1): Make sure the mark is really alive
2255 before using it (Bug#7044).
2256
54b65f7b
JB
22572010-10-02 Juanma Barranquero <lekktu@gmail.com>
2258
2259 * makefile.w32-in (tags): Rename target to full-tags.
2260
383ebd15
EZ
22612010-10-02 Eli Zaretskii <eliz@gnu.org>
2262
2263 * emacs.c (main): Remove !WINDOWSNT conditional.
2264 (Fkill_emacs): Don't mention exemption on MS-Windows.
2265
9c524fcb
GM
22662010-10-02 Glenn Morris <rgm@gnu.org>
2267
3226d6ca
GM
2268 * character.c (Fchar_bytes): Remove obsolete function.
2269 (syms_of_character): Remove Schar_bytes.
2270
9c524fcb
GM
2271 * emacs.c (fatal_error_signal): Also run Fkill_emacs on SIGINT.
2272 (main) [!WINDOWSNT]: Handle SIGINT with fatal_error_signal
2273 in batch-mode.
2274 (Fkill_emacs): Doc fix. Also run the hook in batch mode.
2275 (kill-emacs-hook): Doc fix.
2276
1b217849
LMI
22772010-10-02 Lars Magne Ingebrigtsen <larsi@gnus.org>
2278
2279 * xml.c (Flibxml_parse_xml_region, Flibxml_parse_html_region)
bba3e508 2280 (parse_region): Rework to take regions instead of strings, and
1b217849
LMI
2281 renamed to reflect that these are the libxml functions.
2282
54cc6a83
EZ
22832010-10-01 Eli Zaretskii <eliz@gnu.org>
2284
0ebf79de
EZ
2285 * term.c (init_tty) [DOS_NT]: Don't call Wcm_clear after setting
2286 screen dimensions in tty->Wcm.
2287
54cc6a83
EZ
2288 * xdisp.c (set_cursor_from_row): When the row is truncated and
2289 point is outside the range of displayed characters, position the
2290 cursor inside the scroll margin. (Bug#6349)
2291
321401d1
DN
22922010-10-01 Dan Nicolaescu <dann@ics.uci.edu>
2293
4cacd822
DN
2294 Do not include stdlib.h and string.h, config.h does it.
2295 * xfont.c:
2296 * w32term.c:
2297 * w32reg.c:
2298 * w32inevt.c:
2299 * w32heap.c:
2300 * w32console.c:
2301 * w16select.c:
2302 * unexsol.c:
2303 * term.c:
2304 * sound.c:
2305 * scroll.c (m):
2306 * gtkutil.c:
2307 * font.c:
2308 * filelock.c:
2309 * fileio.c:
2310 * dosfns.c:
2311 * dbusbind.c:
2312 * bidi.c:
2313 * callproc.c:
2314 * process.c:
2315 * msdos.c:
2316 * charset.c: Do not include stdlib.h and string.h, config.h does it.
2317
bba3e508
SM
2318 * callproc.c (SIGCHLD): Remove conditional definition, syssignal.h
2319 defines it.
0781e7ab 2320
9bf58201
DN
2321 * process.c: Move #include <pty.h> earlier.
2322 (SIGCHLD): Remove conditional definition, syssignal.h defines it.
2323 (pty_name): Move definition later.
2324
088dcc3e
DN
2325 * nsselect.m (syms_of_nsselect):
2326 * nsmenu.m (syms_of_nsmenu):
2327 * nsfns.m (syms_of_nsfns):
2328 * msdos.c (syms_of_msdos):
4cacd822 2329
088dcc3e
DN
2330 * image.c (syms_of_image):
2331 * charset.c (syms_of_charset): Use intern_c_string instead of intern.
2332
321401d1
DN
2333 * point.h: Remove, unused.
2334
73077a9a
EZ
23352010-10-01 Eli Zaretskii <eliz@gnu.org>
2336
2337 * makefile.w32-in (TAGS, frc, TAGS-LISP, ../nt/TAGS, tags)
2338 (TAGS-gmake, TAGS-nmake, TAGS-LISP-gmake, TAGS-LISP-nmake)
2339 (nt-TAGS-gmake, nt-TAGS-nmake): New targets.
2340
55e572ef
DN
23412010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
2342
2343 * xml.c (parse_string): Use const.
2344
d4b6d95d
LMI
23452010-09-30 Lars Magne Ingebrigtsen <larsi@gnus.org>
2346
ef1b0ba7
SM
2347 * eval.c (Fbacktrace): Don't overwrite print-level on exit.
2348 Also only override Vprint_level if it isn't already bound, and increase
d4b6d95d
LMI
2349 the level to 8 to produce more useful backtraces for bug reports.
2350
e4b6db12
DN
23512010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
2352
2353 * Makefile.in: ecrt0.c does not exist anymore, do not mention it.
2354
1becef93
JB
23552010-09-30 Juanma Barranquero <lekktu@gmail.com>
2356
2357 * w32console.c (vga_stdcolor_name): Remove unused function;
2358 presumed dead after 2007-11-30T13:57:21Z!jasonr@gnu.org.
2359
df7fcaff
LMI
23602010-09-29 Lars Magne Ingebrigtsen <larsi@gnus.org>
2361
bac5cef8
LMI
2362 * gnutls.c (emacs_gnutls_handshake): Made into internal function.
2363 (Fgnutls_boot): Start the handshake.
2364 (emacs_gnutls_read): Perform the handshake from the reader loop.
e6059fa2
LMI
2365 (Fgnutls_boot): Remove some debugging messages.
2366 Change indentation throughout to use the Emacs style.
2367 (emacs_gnutls_handshake): Cast the fds to something that's
2368 possibly the expected length.
2369 (emacs_gnutls_write): Return -1 if we try to write before handshake.
bac5cef8 2370
df7fcaff
LMI
2371 * process.h (Lisp_Process): Add a gnutls_p field to Lisp_Process.
2372
2373 * process.c (make_process): Set the gnutls_p field to zero by
2374 default.
2375 (read_process_output): Always call the gnutls_read function if the
2376 stream is a gnutls stream.
2377 (send_process): Ditto for writes.
2378
2379 * gnutls.c (emacs_gnutls_write, emacs_gnutls_read): Refuse to read
2380 or write anything until the state is GNUTLS_STAGE_READY.
2381 (Fgnutls_boot): Mark the stream as being a gnutls stream.
2382
d585695f
EZ
23832010-09-29 Eli Zaretskii <eliz@gnu.org>
2384
af7ef32d
EZ
2385 * xdisp.c (reseat_1): Initialize bidi_it.paragraph_dir to
2386 NEUTRAL_DIR.
2387 (handle_invisible_prop, iterate_out_of_display_property)
2388 (next_element_from_buffer): If bidi_it.first_elt is set, call
2389 bidi_paragraph_init with NO_DEFAULT_P argument non-zero.
2390 (Bug#7128)
2391
d585695f
EZ
2392 * print.c (print_object): Fix format string and argument types for
2393 printing a Lisp_Misc_Marker.
2394
2395 * xdisp.c (pos_visible_p, c_string_pos, number_of_chars)
2396 (load_overlay_strings, get_overlay_strings_1)
2397 (get_overlay_strings, forward_to_next_line_start)
2398 (back_to_previous_visible_line_start, reseat, reseat_to_string)
2399 (get_next_display_element, next_element_from_string)
2400 (next_element_from_c_string, next_element_from_buffer)
2401 (move_it_vertically_backward, move_it_by_lines, add_to_log)
2402 (message_dolog, message_log_check_duplicate, message2_nolog)
2403 (message3, message3_nolog, vmessage, set_message, set_message_1)
2404 (hscroll_window_tree, text_outside_line_unchanged_p)
2405 (set_cursor_from_row, set_vertical_scroll_bar, redisplay_window)
2406 (find_last_unchanged_at_beg_row)
2407 (find_first_unchanged_at_end_row, row_containing_pos)
2408 (trailing_whitespace_p, display_mode_element, decode_mode_spec)
bba3e508
SM
2409 (display_count_lines, x_produce_glyphs, note_mouse_highlight):
2410 Use EMACS_INT for buffer and string positions.
d585695f
EZ
2411
2412 * dispextern.h (struct it) <string_nchars>: Declare EMACS_INT.
2413 (row_containing_pos): Adjust prototype.
2414
2415 * lisp.h (pos_visible_p, message2, message2_nolog, message3)
2416 (message2_nolog, set_message): Adjust prototypes.
2417
a6f3211f
SM
24182010-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
2419
2420 * gnutls.c (Fgnutls_boot): Remove unused vars `data' and `srp_cred'.
2421 (Fgnutls_boot): Use SDATA.
2422 (Fgnutls_handshake): Remove unused var `max_log_level'.
2423
e0720500
MA
24242010-09-27 Michael Albinus <michael.albinus@gmx.de>
2425
11a5af7c 2426 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
e0720500
MA
2427 (Bug#7113)
2428
d8a4b27a
J
24292010-09-27 Jan Djärv <jan.h.d@swipnet.se>
2430
42d3022b
J
2431 * xgselect.c (xg_select): Clear file descriptors not set from
2432 rfds and wfds.
2433
d8a4b27a
J
2434 * process.c (wait_reading_process_output): Add missing FD_CLR
2435 for write_mask (must mirror connect_wait_mask).
2436
8ed70bf3
LMI
24372010-09-27 Teodor Zlatanov <tzz@lifelogs.com>
2438
2439 * gnutls.c (gnutls_log_function): Show level and "gnutls.c"
2440 prefix.
2441 (Fgnutls_boot): Use changed process members. Use log level with a
2442 function parameter to set it. Bring back Emacs-level debugging
2443 messages at log level 1 and 2.
2444
2445 * process.c (make_process): Initialize gnutls_log_level.
2446
2447 * process.h: Add gnutls_log_level and rename x509_cred and
2448 anon_cred to have the gnutls_ prefix for consistency.
2449
2450 * gnutls.h (GNUTLS_LOG): Add convenience macro.
2451
bedf4aab
JB
24522010-09-27 Juanma Barranquero <lekktu@gmail.com>
2453
2454 * w32.c (g_b_init_get_sid_identifier_authority)
2455 (GetSidIdentifierAuthority_Proc, get_sid_identifier_authority):
2456 Remove, not used.
2457 (globals_of_w32): Don't set g_b_init_get_sid_identifier_authority.
2458 (init_winsock): Remove useless assignment.
2459 (open_process_token, get_token_information, lookup_account_sid)
2460 (get_sid_sub_authority, get_sid_sub_authority_count, get_file_security)
2461 (get_security_descriptor_owner, get_security_descriptor_group)
2462 (is_valid_sid, equal_sid, get_length_sid, copy_sid)
2463 (get_native_system_info, get_system_times, init_user_info, crlf_to_lf)
2464 (is_unc_volume, GetCachedVolumeInformation, get_volume_info)
2465 (is_fat_volume, open_unc_volume, read_unc_volume, close_unc_volume)
2466 (unc_volume_file_attributes, convert_from_time_t)
2467 (create_toolhelp32_snapshot, process32_first, process32_next)
2468 (open_thread_token, impersonate_self, revert_to_self)
2469 (get_process_memory_info, get_process_working_set_size)
2470 (global_memory_status, global_memory_status_ex, socket_to_fd)
2471 (shutdown_handler): Make static.
2472
08609ffd
MA
24732010-09-27 Michael Albinus <michael.albinus@gmx.de>
2474
2475 * dbusbind.c (dbus_fd_cb, xd_get_dispatch_status)
2476 (xd_pending_messages): Functions removed.
2477 (xd_read_queued_messages): Add parameters fd, *data, for_read in
2478 order to be compatible with add_read_fd. Determine bus from data,
2479 and call xd_read_message just for this bus.
2480 (xd_add_watch): Use xd_read_queued_messages as callback function.
2481 Add data.
2482
2483 * lisp.h (xd_pending_messages, xd_read_queued_messages): Remove.
2484
d2e9d0bb
LMI
24852010-09-27 Lars Magne Ingebrigtsen <larsi@gnus.org>
2486
ef1b0ba7 2487 * gnutls.c (gnutls_log_function): Add more debugging.
ec9f09be 2488 (emacs_gnutls_read): Don't infloop while reading.
d2e9d0bb 2489
4be9765d
KH
24902010-09-27 Kenichi Handa <handa@m17n.org>
2491
2492 These changes are to remove restriction on the number of glyphs in
2493 one composition.
2494
2495 * dispextern.h (struct glyph): Change the member "slice" to union.
2496 Remove u.cmp.from and u.cmp.to. Give more bits to u.cmp.id.
bba3e508 2497 (GLYPH_SLICE_EQUAL_P): Adjust for the above change.
4be9765d
KH
2498
2499 * dispnew.c (buffer_posn_from_coords): Use glyph->slice.img
2500 instead of glyph->slice.
2501 (marginal_area_string): Likewise.
2502
2503 * term.c (encode_terminal_code): Use glyph->slice.cmp instead of
2504 glyph->u.cmp.
2505 (append_composite_glyph): Likewise.
2506
2507 * xdisp.c (dump_glyph): Use glyph->slice.cmp instead of
2508 glyph->u.cmp.
2509 (fill_gstring_glyph_string, x_get_glyph_overhangs)
2510 (append_composite_glyph): Likewise.
2511 (fill_image_glyph_string): Use glyph->slice.img instead of
2512 glyph->slice.
2513 (append_glyph, produce_image_glyph, append_stretch_glyph)
2514 (note_mouse_highlight): Likewise.
2515
3fad2ad2
J
25162010-09-26 Jan Djärv <jan.h.d@swipnet.se>
2517
bf05eed6
J
2518 * process.c (add_keyboard_wait_descriptor)
2519 (delete_keyboard_wait_descriptor): Reinstate ifdef subprocesses.
82d6e50b
J
2520 (wait_reading_process_output): Don't pass write_mask to select
2521 if SELECT_CANT_DO_WRITE_MASK is defined.
2522 (SELECT_CANT_DO_WRITE_MASK): Define if SELECT_CANT_DO_WRITE_MASK.
bf05eed6 2523
3fad2ad2
J
2524 * process.h (add_read_fd, delete_read_fd, add_write_fd)
2525 (delete_write_fd): Declare.
2526
2527 * process.c (gpm_wait_mask, max_gpm_desc): Remove.
2528 (write_mask): New variable.
ef1b0ba7 2529 (max_input_desc): Rename from max_keyboard_desc.
3fad2ad2 2530 (fd_callback_info): New variable.
70e31436
JB
2531 (add_read_fd, delete_read_fd, add_write_fd, delete_write_fd):
2532 New functions.
3fad2ad2
J
2533 (Fmake_network_process): FD_SET write_mask.
2534 (deactivate_process): FD_CLR write_mask.
2535 (wait_reading_process_output): Connecting renamed to Writeok.
70e31436
JB
2536 check_connect removed. check_write is new. Remove references to gpm.
2537 Use Writeok/check_write unconditionally (i.e. no #ifdef
3fad2ad2
J
2538 NON_BLOCKING_CONNECT) instead of Connecting.
2539 Loop over file descriptors and call callbacks in fd_callback_info
2540 if file descriptor is ready for I/O.
2541 (add_gpm_wait_descriptor): Just call add_keyboard_wait_descriptor.
2542 (delete_gpm_wait_descriptor): Just call delete_keyboard_wait_descriptor.
2543 (keyboard_bit_set): Use max_input_desc.
70e31436
JB
2544 (add_keyboard_wait_descriptor, delete_keyboard_wait_descriptor):
2545 Remove #ifdef subprocesses. Use max_input_desc.
3fad2ad2
J
2546 (init_process): Initialize write_mask and fd_callback_info.
2547
2548 * keyboard.c (readable_events, gobble_input): Remove DBUS code.
2549
2550 * dbusbind.c: Include process.h.
2551 (dbus_fd_cb, xd_find_watch_fd, xd_toggle_watch)
2552 (xd_read_message_1): New functions.
70e31436
JB
2553 (xd_add_watch, xd_remove_watch): Call xd_find_watch_fd.
2554 Handle watch for both read and write.
3fad2ad2
J
2555 (Fdbus_init_bus): Also register xd_toggle_watch.
2556 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
2557 (Fdbus_method_error_internal, Fdbus_send_signal): Remove call
2558 to dbus_connection_flush.
70e31436 2559 (xd_read_message): Move most of the code to xd_read_message_1.
3fad2ad2
J
2560 Call xd_read_message_1 until status is COMPLETE.
2561
dce4c2ac
DN
25622010-09-26 Dan Nicolaescu <dann@ics.uci.edu>
2563
2564 * term.c: Do not include sys/ioctl.h, not needed.
70e31436
JB
2565 (init_tty): Reorder code to reduce the number of #ifdefs.
2566 No code changes.
dce4c2ac 2567
8af55556
TZ
25682010-09-26 Teodor Zlatanov <tzz@lifelogs.com>
2569
2570 * process.h: Set up GnuTLS support.
2571
2572 * process.c (make_process, Fstart_process)
2573 (read_process_output, send_process): Set up GnuTLS support for
2574 process input/output file descriptors.
2575
2576 * gnutls.h: The GnuTLS glue for Emacs, macros and enums.
2577
2578 * gnutls.c: The source code for GnuTLS support in Emacs.
2579
2580 * emacs.c: Set up GnuTLS support and call syms_of_gnutls.
2581
2582 * config.in: Set up GnuTLS support.
2583
2584 * Makefile.in (LIBGNUTLS_LIBS, LIBGNUTLS_CFLAGS, ALL_CFLAGS)
2585 (obj, LIBES): Set up GnuTLS support.
2586
83e245c4
JB
25872010-09-26 Juanma Barranquero <lekktu@gmail.com>
2588
2589 * w32.c (get_emacs_configuration_options): Fix previous change.
2590
d24ec09a
CY
25912010-09-25 Chong Yidong <cyd@stupidchicken.com>
2592
2593 * insdel.c (prepare_to_modify_buffer): Ensure the mark marker is
2594 alive before using it (Bug#6977).
2595
b7bdc47c
LMI
25962010-09-25 Lars Magne Ingebrigtsen <larsi@gnus.org>
2597
a952d5f3
LMI
2598 * xdisp.c (face_before_or_after_it_pos): EMACS_INT/int fixup.
2599
2600 * dispextern.h: EMACS_INT/int fixup.
2601
2602 * xdisp.c (string_pos_nchars_ahead, init_iterator): EMACS_INT/int
2603 fixup.
2604
b7bdc47c
LMI
2605 * xrdb.c (magic_file_p): EMACS_INT/int fixup.
2606
41118bd3
EZ
26072010-09-25 Eli Zaretskii <eliz@gnu.org>
2608
2452438f
EZ
2609 * window.c (Fpos_visible_in_window_p, Fdelete_other_windows)
2610 (Fselect_window, window_scroll_pixel_based)
2611 (window_scroll_line_based, Frecenter, Fset_window_configuration):
2612 Use EMACS_INT for buffer positions.
2613
2614 * textprop.c (validate_interval_range, interval_of)
2615 (property_change_between_p, Fadd_text_properties)
2616 (set_text_properties_1, Fremove_text_properties)
2617 (Fremove_list_of_text_properties, Ftext_property_any)
2618 (Ftext_property_not_all, copy_text_properties)
2619 (text_property_list, extend_property_ranges)
2620 (verify_interval_modification): Use EMACS_INT for buffer
2621 positions.
2622
f877c546
EZ
2623 * term.c (fast_find_position, term_mouse_highlight): Use EMACS_INT
2624 for buffer positions.
2625
2626 * process.c (read_process_output, send_process)
2627 (Fprocess_send_region, status_notify): Use EMACS_INT for buffer
2628 and string positions and size.
2629
da43f021
EZ
2630 * print.c (print_object, print_string, strout): Use EMACS_INT for
2631 string indices.
2632
2633 * minibuf.c (string_to_object): Use EMACS_INT for string position
2634 and size.
2635
2636 * marker.c (verify_bytepos): Use EMACS_INT for buffer positions.
2637
2638 * lread.c <read_from_string_index, read_from_string_index_byte>
2639 <read_from_string_limit, readchar_count>: Define EMACS_INT.
2640 (readchar, unreadchar, read_internal_start): Use EMACS_INT for
2641 buffer positions and string length.
2642
41118bd3
EZ
2643 * keyboard.c <last_point_position, last_non_minibuf_size>: Declare
2644 EMACS_INT.
2645 (echo_truncate, adjust_point_for_property, read_char)
2646 (gen_help_event, make_lispy_event, modify_event_symbol)
2647 (Fexecute_extended_command, stuff_buffered_input): Use EMACS_INT
2648 for buffer positions and string length.
2649
2650 * keyboard.h (gen_help_event): Adjust prototype.
2651
2652 * termhooks.h <struct input_event>: Make `code' member EMACS_INT.
2653
2654 * commands.h <last_point_position>: Declare EMACS_INT.
2655
2656 * xdisp.c <help_echo_pos>: Define as EMACS_INT.
2657 (truncate_echo_area): Accept EMACS_INT argument.
2658
2659 * dispextern.h <help_echo_pos>: Declare EMACS_INT.
2660
2661 * lisp.h (truncate_echo_area): Adjust prototype.
2662
2663 * composite.c (composition_adjust_point): Return EMACS_INT.
2664
2665 * composite.h (composition_adjust_point): Adjust prototype.
2666
ba3033ee
JB
26672010-09-25 Juanma Barranquero <lekktu@gmail.com>
2668
2669 * process.c (Fmake_network_process): When arg :host is 'local,
2670 use address 127.0.0.1, not name "localhost". (Bug#6781)
2671
4f3a2f8d
EZ
26722010-09-24 Eli Zaretskii <eliz@gnu.org>
2673
5816888b
EZ
2674 * indent.c (Fcurrent_indentation, indented_beyond_p)
2675 (compute_motion): Use EMACS_INT for buffer position variables.
2676
2677 * lisp.h (indented_beyond_p): Adjust prototype.
2678
2679 * buffer.c (overlay_strings): Return EMACS_INT.
2680
2681 * buffer.h (overlay_strings): Adjust prototype.
2682
2683 * region-cache.c (pp_cache): Adjust format to arguments.
2684
2685 * eval.c <specpdl_size, lisp_eval_depth>: Declare EMACS_INT.
2686 (call_debugger): Use EMACS_INT for specpdl_size related variables.
2687 (verror): Use EMACS_INT for size of allocated buffer.
2688
ace1712c
EZ
2689 * keyboard.c (make_lispy_position): Use EMACS_INT for buffer
2690 positions.
2691
2692 * xdisp.c (redisplay_internal, try_window_id)
bba3e508
SM
2693 (set_cursor_from_row, find_first_unchanged_at_end_row):
2694 Use EMACS_INT for buffer positions.
ace1712c 2695
f5276b75 2696 * dispextern.h (set_cursor_from_row): Adjust prototype.
ace1712c
EZ
2697
2698 * dispnew.c (increment_matrix_positions)
2699 (increment_row_positions, copy_glyph_row_contents)
2700 (mode_line_string, marginal_area_string): Use EMACS_INT for buffer
2701 positions.
2702
2703 * dispextern.h (mode_line_string, marginal_area_string)
bba3e508
SM
2704 (increment_matrix_positions, increment_row_positions):
2705 Adjust prototypes.
ace1712c
EZ
2706
2707 * data.c (Faref, Faset): Use EMACS_INT for string length and
2708 positions.
2709
2710 * cmds.c (internal_self_insert): Use EMACS_INT for the count of
2711 characters to insert.
2712
2713 * ccl.c (Fccl_execute_on_string): Use EMACS_INT for string
2714 position and size.
2715
4f3a2f8d
EZ
2716 * syntax.c (scan_words, update_syntax_table)
2717 (prev_char_comend_first, back_comment, skip_chars)
bba3e508
SM
2718 (skip_syntaxes, Fforward_comment, Fbackward_prefix_chars):
2719 Use EMACS_INT for buffer and string positions.
4f3a2f8d
EZ
2720
2721 * syntax.h (scan_words, update_syntax_table): Adjust prototypes.
2722
2723 * casefiddle.c (operate_on_word): Use EMACS_INT for buffer
2724 positions.
2725
db063399
LMI
27262010-09-24 Lars Magne Ingebrigtsen <larsi@gnus.org>
2727
f0812d35
LMI
2728 * scroll.c (calculate_scrolling, line_ins_del)
2729 (calculate_direct_scrolling, scroll_cost): Fix EMACS_INT/int
2730 conversion.
2731
f5c7fc27
LMI
2732 * region-cache.c (move_cache_gap, set_cache_region, pp_cache)
2733 (region_cache_backward, region_cache_forward)
2734 (revalidate_region_cache, set_cache_region): FIX EMACS_INT/int
2735 conversion.
2736
db063399
LMI
2737 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
2738
2739 * eval.c (verror): Fix EMACS_INT/int conversion.
2740
07914cd0 2741 * print.c (PRINTDECLARE, PRINTPREPARE, strout, print_string)
db063399
LMI
2742 (print_preprocess, print_check_string_charset_prop)
2743 (print_object): Fix EMACS_INT/int conversion.
2744
2745 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
2746
e6d4aefa
EZ
27472010-09-24 Eli Zaretskii <eliz@gnu.org>
2748
69481da7
EZ
2749 * callproc.c (Fcall_process): Use EMACS_INT for count of
2750 characters read from the subprocess.
2751
61bfec98
EZ
2752 * bidi.c (struct bidi_paragraph_info): Use EMACS_INT for buffer
2753 positions.
2754 (bidi_cache_search, bidi_cache_find): Use EMACS_INT for buffer
2755 positions.
2756
145582a0
EZ
2757 * buffer.c (struct sortvec): Use EMACS_INT for buffer positions.
2758 (struct sortstrlist, overlay_str_len): Use EMACS_INT for string
2759 length.
2760 (advance_to_char_boundary, Fset_buffer_multibyte)
2761 (overlays_at, overlays_in, mouse_face_overlay_overlaps)
2762 (overlay_touches_p, record_overlay_string, overlay_strings)
2763 (recenter_overlay_lists, fix_start_end_in_overlays)
2764 (modify_overlay, Fmove_overlay, report_overlay_modification)
2765 (evaporate_overlays): Use EMACS_INT for buffer positions.
2766
bba3e508
SM
2767 * lisp.h (fix_start_end_in_overlays, overlay_touches_p):
2768 Adjust prototypes.
145582a0 2769
446470a9
EZ
2770 * dispextern.h (struct bidi_saved_info): Use EMACS_INT for buffer
2771 positions.
2772
e6d4aefa
EZ
2773 * fns.c (Fcompare_strings, Fstring_lessp, concat)
2774 (string_make_unibyte, Fstring_as_unibyte, Fsubstring)
2775 (Fsubstring_no_properties, substring_both, Ffillarray)
2776 (Fclear_string, mapcar1, Fmapconcat, Fmapcar, Fmapc)
2777 (Fbase64_encode_region, Fbase64_encode_string, base64_encode_1)
2778 (Fbase64_decode_region, Fbase64_decode_string, base64_decode_1)
2779 (Fmd5): Use EMACS_INT for buffer and string positions and length
2780 variables and arguments.
2781
2782 * lisp.h (substring_both): Adjust prototype.
2783
eb652396
JB
27842010-09-24 Juanma Barranquero <lekktu@gmail.com>
2785
2786 Remove W32 API function pointer unused since 2005-02-15 (revno 2005-02-15T23:19:26Z!jasonr@gnu.org).
2787 * w32fns.c (clipboard_sequence_fn): Don't declare.
2788 (globals_of_w32fns): Don't initialize it.
2789
266a86bd 27902010-09-23 Stefan Monnier <monnier@iro.umontreal.ca>
fbb3da77
SM
2791
2792 * syntax.c (back_comment): Detect the case where a 1-char comment
2793 starter is also the 2nd char of a 2-char comment ender.
2794
266a86bd 27952010-09-23 Jan Djärv <jan.h.d@swipnet.se>
2b5b82db
J
2796
2797 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
2798
40283062
LMI
27992010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
2800
db063399
LMI
2801 * eval.c (verror): EMACS_INT/int cleanup.
2802
faf8b5bc
LMI
2803 * lisp.h (SPECPDL_INDEX): Cast to int, since we're not going to
2804 unwind_protect more than 2GB worth of functions.
2805
2806 * editfns.c (Finsert_char): EMACS_INT/int cleanup.
2807
40283062
LMI
2808 * lisp.h: Have oblookup take EMACS_INT to allow interning big
2809 string and avoid compiler warnings.
2810 (USE_SAFE_ALLOCA): Cast to int to avoid compilation warnings in
2811 all users.
2812
2813 * lread.c (oblookup): EMACS_INT/int cleanup.
2814
2815 * cmds.c (Fforward_line, Fdelete_char): EMACS_INT/int cleanup.
2816
fe3537c3
EZ
28172010-09-23 Eli Zaretskii <eliz@gnu.org>
2818
2819 * editfns.c (clip_to_bounds): Return an EMACS_INT value.
2820
2821 * lisp.h (clip_to_bounds): Adjust prototype.
2822
2823 * intervals.c (adjust_for_invis_intang): Return EMACS_INT value.
2824
0350982f
LMI
28252010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
2826
84c9ce05
LMI
2827 * lisp.h: doprnt.c EMACS_INT/int cleanup.
2828
2829 * doprnt.c (doprnt): EMACS_INT/int cleanup.
2830
2831 * doc.c (Fsnarf_documentation, get_doc_string): EMACS_INT/int
2832 cleanup.
2833
0350982f
LMI
2834 * lisp.h: Change the definition of all marker.c functions that
2835 take and return buffer stuff to be EMACS_INT instead of int.
2836
2837 * marker.c (buf_charpos_to_bytepos, CONSIDER, set_marker_both)
2838 (buf_charpos_to_bytepos, bytepos_to_charpos)
2839 (buf_bytepos_to_charpos, Fbuffer_has_markers_at)
2840 (set_marker_restricted, set_marker_both): Convert int to EMACS_INT
2841 for all buffer positions.
2842
c50bd0d2
CY
28432010-09-23 Chong Yidong <cyd@stupidchicken.com>
2844
2845 * intervals.c (traverse_intervals, rotate_right, rotate_left)
2846 (split_interval_right, find_interval, next_interval)
2847 (delete_node, delete_interval, interval_deletion_adjustment)
2848 (adjust_intervals_for_deletion, merge_interval_right)
2849 (merge_interval_left, graft_intervals_into_buffer)
2850 (copy_intervals): Convert EMACS_UINTs to EMACS_INT.
2851
2852 * intervals.h (traverse_intervals): Update prototype.
2853
14162469
EZ
28542010-09-23 Eli Zaretskii <eliz@gnu.org>
2855
c098fdb8
EZ
2856 * indent.c (compute_motion): Use EMACS_INT for arguments to
2857 region_cache_forward.
2858
bba3e508
SM
2859 * region-cache.c (struct boundary, struct region_cache):
2860 Use EMACS_INT for positions.
c098fdb8
EZ
2861 (find_cache_boundary, move_cache_gap, insert_cache_boundary)
2862 (delete_cache_boundaries, set_cache_region)
2863 (invalidate_region_cache, know_region_cache)
bba3e508
SM
2864 (region_cache_forward, region_cache_backward, pp_cache):
2865 Use EMACS_INT for buffer positions.
c098fdb8
EZ
2866
2867 * region-cache.h (know_region_cache, invalidate_region_cache)
2868 (region_cache_forward, region_cache_backward): Adjust prototypes.
2869
2870 * search.c (string_match_1, fast_c_string_match_ignore_case)
2871 (looking_at_1, scan_buffer, scan_newline)
2872 (find_next_newline_no_quit, find_before_next_newline)
2873 (search_command, trivial_regexp_p, search_buffer, simple_search)
2874 (boyer_moore, wordify, Freplace_match): Use EMACS_INT for buffer
2875 and string positions and length.
2876
caefdbe7
EZ
2877 * lisp.h (scan_buffer, scan_newline, find_next_newline_no_quit)
2878 (find_before_next_newline): Adjust prototypes.
c098fdb8 2879
29cdc13e
EZ
2880 * editfns.c (transpose_markers, update_buffer_properties)
2881 (buildmark, clip_to_bounds, Fgoto_char, overlays_around)
2882 (get_pos_property, Fconstrain_to_field)
2883 (Fline_beginning_position, Fline_end_position, Fprevious_char)
2884 (Fchar_after, Fchar_before, Finsert_char)
2885 (Finsert_buffer_substring, Fcompare_buffer_substrings)
bba3e508
SM
2886 (Fsubst_char_in_region, Fformat, Ftranspose_regions):
2887 Use EMACS_INT for buffer and string position variables.
c098fdb8 2888 (Finsert_char): Protect against too large insertions.
29cdc13e
EZ
2889
2890 * lisp.h (clip_to_bounds): Adjust prototype.
2891
e79123aa
EZ
2892 * intervals.c (traverse_intervals, rotate_right, rotate_left)
2893 (balance_an_interval, split_interval_right, split_interval_left)
2894 (find_interval, next_interval, update_interval)
2895 (adjust_intervals_for_insertion, delete_node, delete_interval)
2896 (interval_deletion_adjustment, adjust_intervals_for_deletion)
2897 (offset_intervals, merge_interval_right, merge_interval_left)
2898 (graft_intervals_into_buffer, adjust_for_invis_intang)
2899 (move_if_not_intangible, get_local_map, copy_intervals)
2900 (copy_intervals_to_string, compare_string_intervals)
2901 (set_intervals_multibyte_1): Use EMACS_INT for buffer positions
6e48267a 2902 and for interval tree size.
e79123aa
EZ
2903
2904 * intervals.h (traverse_intervals, split_interval_right)
2905 (split_interval_left, find_interval, offset_intervals)
2906 (graft_intervals_into_buffer, copy_intervals)
2907 (copy_intervals_to_string, move_if_not_intangible, get_local_map)
2908 (update_interval): Adjust prototypes.
2909
579c18d0
EZ
2910 * xdisp.c (check_point_in_composition, reconsider_clip_changes):
2911 Use EMACS_INT for buffer position variables and arguments.
2912
2913 * composite.c (get_composition_id, find_composition)
2914 (run_composition_function, compose_text)
2915 (composition_gstring_width, autocmp_chars)
2916 (composition_update_it, Ffind_composition_internal): Use EMACS_INT
2917 for buffer positions and string length variables and arguments.
2918
2919 * composite.h (get_composition_id, find_composition, compose_text)
2920 (composition_gstring_width): Adjust prototypes.
2921
2922 * editfns.c (Fformat): Use EMACS_INT for string size variables.
2923
bba3e508
SM
2924 * xdisp.c (store_mode_line_noprop, display_mode_element):
2925 Use EMACS_INT for string positions.
579c18d0
EZ
2926
2927 * intervals.c (get_property_and_range): Use EMACS_INT for buffer
2928 position arguments.
2929
2930 * intervals.h (get_property_and_range): Adjust prototype.
14162469
EZ
2931
2932 * character.c (parse_str_as_multibyte, str_as_multibyte)
2933 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
579c18d0 2934 (string_count_byte8, string_escape_byte8, c_string_width)
bba3e508
SM
2935 (strwidth, lisp_string_width, multibyte_chars_in_text):
2936 Use EMACS_INT for string length variables and arguments.
14162469
EZ
2937
2938 * character.h (parse_str_as_multibyte, str_as_multibyte)
579c18d0 2939 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
bba3e508
SM
2940 (c_string_width, strwidth, lisp_string_width):
2941 Adjust prototypes.
14162469 2942
579c18d0
EZ
2943 * font.c (font_intern_prop): Use EMACS_INT for string length
2944 variables.
2945
2946 * font.c (font_intern_prop): Use EMACS_INT for string length
2947 variables.
2948
14162469
EZ
2949 * fns.c (Fstring_as_multibyte): Use EMACS_INT for string length
2950 variables.
2951
2952 * alloc.c <total_string_size>: Declare as EMACS_INT, not int.
2953 (Fmake_string): Protect against too large strings.
2954 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
2955 (live_misc_p): Use ptrdiff_t instead of int for pointer
2956 differences.
2957 (string_bytes, check_sblock, check_string_free_list)
2958 (allocate_string_data, compact_small_strings, Fmake_string)
2959 (Fmake_bool_vector, make_string, make_unibyte_string)
2960 (make_multibyte_string, make_string_from_bytes)
bba3e508
SM
2961 (make_specified_string_string, Fmake_list, Fmake_vector):
2962 Use EMACS_INT for string length variables and arguments.
14162469
EZ
2963 (find_string_data_in_pure, make_pure_string, make_pure_c_string)
2964 (Fpurecopy): Use EMACS_INT for string size.
2965 (mark_vectorlike, mark_char_table, mark_object): Use EMACS_UINT
2966 for vector size.
2967
2968 * lisp.h (make_string, make_unibyte_string, make_multibyte_string)
2969 (make_string_from_bytes, make_specified_string_string)
579c18d0
EZ
2970 (make_pure_string, string_bytes, check_point_in_composition):
2971 Adjust prototypes.
14162469 2972
c8a66ab8
EZ
29732010-09-22 Eli Zaretskii <eliz@gnu.org>
2974
2975 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
2976 (check_translation): Use EMACS_INT for buffer positions and
2977 length.
2978
2979 * undo.c (record_marker_adjustment, record_delete)
2980 (record_change, record_point, record_insert)
2981 (record_property_change, Fprimitive_undo): Use EMACS_INT for
2982 buffer positions.
2983
2984 * lisp.h (record_marker_adjustment, record_delete)
2985 (record_change, record_point, record_insert)
2986 (record_property_change, Fprimitive_undo): Adjust prototypes.
2987
38c54d9d
JB
29882010-09-22 Juanma Barranquero <lekktu@gmail.com>
2989 Eli Zaretskii <eliz@gnu.org>
2990
2991 * w32.c (get_emacs_configuration_options): Fix buffer overrun.
2992
413d18e7
EZ
29932010-09-22 Eli Zaretskii <eliz@gnu.org>
2994
2995 * minibuf.c (Fminibuffer_contents)
2996 (Fminibuffer_contents_no_properties)
2997 (Fminibuffer_completion_contents): Use EMACS_INT for minibuffer
2998 positions.
2999
3000 * keyboard.c (command_loop_1): Use EMACS_INT to compare point with
3001 mark.
3002
3003 * alloc.c (make_uninit_string, make_uninit_multibyte_string)
3004 (allocate_string_data): Accept EMACS_INT for string length.
3005
3006 * editfns.c (Ffield_string, Ffield_string_no_properties)
3007 (make_buffer_string, make_buffer_string_both, Fbuffer_substring)
3008 (Fbuffer_substring_no_properties, find_field, Fdelete_field)
3009 (Ffield_string, Ffield_string_no_properties, Ffield_beginning)
3010 (Ffield_end): Use EMACS_INT for buffer positions.
3011
3012 * insdel.c (prepare_to_modify_buffer): Use EMACS_INT to compare
3013 point with mark.
3014
3015 * lisp.h (allocate_string_data, make_uninit_string)
3016 (make_uninit_multibyte_string, make_buffer_string)
3017 (make_buffer_string_both): Adjust prototypes.
3018
4b9832a6
CY
30192010-09-22 Chong Yidong <cyd@stupidchicken.com>
3020
3021 * xml.c: Switch to GNU indentation.
3022 (make_dom): Change parse tree format to match xml.el.
3023 (Fxml_parse_html_string_internal): Rename from html-parse-string.
3024 (Fxml_parse_string_internal): Rename from xml-parse-string.
3025
86282aab
KH
30262010-09-22 Kenichi Handa <handa@m17n.org>
3027
3028 * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos
3029 only if we are not at a composition.
3030 (set_iterator_to_next): Give it->end_charpos to
3031 composition_compute_stop_pos.
3032 (set_iterator_to_next, next_element_from_buffer): Likewise.
3033
3034 * dispnew.c (buffer_posn_from_coords): Fix position when the
3035 current display element is a grapheme cluster in bidi-reordered
3036 region.
3037
840b985a
AR
30382010-09-21 Ari Roponen <ari.roponen@gmail.com> (tiny change)
3039
3040 * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
3041 the regions may overlap.
3042
5bc88f4b
JB
30432010-09-21 Juanma Barranquero <lekktu@gmail.com>
3044
3045 * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
3046
92bc9a36
DN
30472010-09-21 Dan Nicolaescu <dann@ics.uci.edu>
3048
d19e096e
DN
3049 * emacs.c: Do not include sys/ioctl.h, not needed.
3050
92bc9a36
DN
3051 * doprnt.c: Do not include stdlib.h, config.h does it.
3052 Move #include before macro definition.
3053
15f844ac
DN
30542010-09-20 Dan Nicolaescu <dann@ics.uci.edu>
3055
48e24408
DN
3056 * Makefile.in (temacs): Link using $(CC) not $(LD).
3057 (LD_FIRSTFLAG): Define using autoconf.
3058 (LD): Remove.
3059
65539506
DN
3060 Remove HAVE_TERMIOS definitions.
3061 * s/usg5-4-common.h (HAVE_TERMIOS):
3062 * s/template.h (HAVE_TERMIOS):
3063 * s/gnu-linux.h (HAVE_TERMIOS):
3064 * s/darwin.h (HAVE_TERMIOS):
3065 * s/cygwin.h (HAVE_TERMIOS):
3066 * s/bsd-common.h (HAVE_TERMIOS):
3067 * s/aix4-2.h (HAVE_TERMIOS):
3068 * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
3069 defined on all non-MS platforms.
3070 (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
3071
15f844ac
DN
3072 * xterm.c (xt_action_hook): Use const.
3073
7d701334
JB
30742010-09-20 Juanma Barranquero <lekktu@gmail.com>
3075
3076 Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
3077 * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
3078 (gethostname) [!HAVE_SOCKETS]: Remove.
3079 (SOCK_REPLACE_HANDLE): Remove macro.
3080 (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
3081 (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
3082 * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
3083 (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
3084
f3ec267a
EZ
30852010-09-18 Eli Zaretskii <eliz@gnu.org>
3086
3087 * deps.mk (xml.o): Add dependencies.
3088
93acd23d
JB
3089 * xdisp.c (Fcurrent_bidi_paragraph_direction):
3090 Call bidi_paragraph_init with NO_DEFAULT_P non-zero. (Bug#7038)
bea4f10c
EZ
3091
3092 * bidi.c (bidi_paragraph_init): Accept an additional argument
3093 NO_DEFAULT_P; all callers changed. If NO_DEFAULT_P is non-zero,
3094 search back until a paragraph with a strong directional character
3095 is found, and use that to determine paragraph's base direction.
3096
3097 * dispextern.h (bidi_paragraph_init): Update prototype.
3098
69e847be
EZ
30992010-09-17 Eli Zaretskii <eliz@gnu.org>
3100
3101 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
3102 of w32api >= 3.15. (Bug#6989)
3103
283357a7
LMI
31042010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
3105
3106 * process.c (wait_reading_process_output): Don't message about
3107 accept-process-output unless the time limit really is zero.
3108
4ddb20d6
SM
31092010-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
3110
3111 * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
3112 int/Lisp_Object mixup).
3113
e24ad6dd
J
31142010-09-17 Jan Djärv <jan.h.d@swipnet.se>
3115
3116 * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
3117 not HELP.
3118
fb0cf781
J
31192010-09-17 Stephen Berman <stephen.berman@gmx.net>
3120
3121 * frame.c (Ftool_bar_pixel_width): New function to expose tool
3122 bar's pixel width to Lisp (Bug#7048).
3123
4ddb20d6
SM
31242010-09-14 Juanma Barranquero <lekktu@gmail.com>
3125
3126 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
fb0cf781 3127
318a04c6
J
31282010-09-17 Jan Djärv <jan.h.d@swipnet.se>
3129
3130 * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
3131 with argument top/left if tool bar is vertical/horizontal (Bug#7051).
3132
78a21772
KH
31332010-09-17 Kenichi Handa <handa@m17n.org>
3134
3135 * ftfont.c (ftfont_check_otf): Fix previous change.
3136
fa3f6039
KH
31372010-09-14 Kenichi Handa <handa@m17n.org>
3138
3139 * ftfont.c (ftfont_check_otf): Fix the case of checking just
3140 existence of GSUB or GPOS.
3141
2b5491fa
JB
31422010-09-14 Juanma Barranquero <lekktu@gmail.com>
3143
3144 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
3145
c97c655f
LMI
31462010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
3147
ef1b0ba7 3148 * xml.c (parse_buffer): Rename to parse_string(), since that's
c97c655f
LMI
3149 what it does.
3150 (parse_string): Return nil when the document can't be parsed.
3151
6664fc59 31522010-09-14 Jan Djärv <jan.h.d@swipnet.se>
5f61a25c
J
3153
3154 * xterm.c (get_current_vm_state): New function.
3155 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
3156 want_fullscreen so set_wm_state calls are few (Bug#7013).
3157 (x_handle_net_wm_state): Move code to get_current_vm_state and
3158 call that function.
3159
6664fc59 31602010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
65b3d997
A
3161
3162 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
3163
6664fc59 31642010-09-14 Kenichi Handa <handa@m17n.org>
a552b35a
KH
3165
3166 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
3167 we may use designation or locking-shift.
3168
6664fc59 31692010-09-14 Kenichi Handa <handa@m17n.org>
396475b7
KH
3170
3171 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
3172 sequence when the source is multibyte.
3173
1da70e99
AS
31742010-09-14 Andreas Schwab <schwab@linux-m68k.org>
3175
6664fc59
JB
3176 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
3177 Don't make first argument optional. Doc fix.
1da70e99 3178
26632d8d
LMI
31792010-09-14 Leo <sdl.web@gmail.com> (tiny change)
3180
3181 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
3182 parameters for the doc string.
3183
21fa8e37
LMI
31842010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
3185
3186 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
3187
5616cc54
SM
31882010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3189
3190 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
3191 (syms_of_fns): Don't defsubr Sy_or_n_p.
3192 * lisp.h: Don't declare Fy_or_n_p.
3193 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
3194
381408e2
LMI
31952010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
3196
3197 * xml.c (Fxml_parse_buffer): New function to parse XML files.
3198
31992010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
3200
3201 * xml.c: New file.
3202 (Fhtml_parse_buffer): New function to interface to the libxml2
3203 html parsing function.
3204
733946e7
JB
32052010-09-05 Juanma Barranquero <lekktu@gmail.com>
3206
3207 * biditype.h: Regenerate.
3208
7574650a
AS
32092010-09-04 Andreas Schwab <schwab@linux-m68k.org>
3210
3211 * nsimage.m (ns_load_image): Check argument types.
3212
3213 * image.c: Remove all uses of gcpro.
3214 (xpm_load): Check all lisp types.
3215 (pbm_load): Likewise.
3216 (png_load): Likewise.
3217 (jpeg_load): Likewise.
3218 (tiff_load): Likewise.
3219 (gif_load): Likewise.
3220 (imagemagick_load_image): Likewise.
3221 (imagemagick_load): Likewise.
3222 (svg_load): Likewise.
3223 (gs_load): Likewise.
3224
6e6b8e25
EZ
32252010-09-04 Eli Zaretskii <eliz@gnu.org>
3226
bba3e508
SM
3227 * w32uniscribe.c (uniscribe_shape): Update commentary.
3228 Don't try to reorder grapheme clusters, since LGSTRING should always
6e6b8e25
EZ
3229 hold them in the logical order.
3230 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
3231 return glyph codes in the logical order.
3232
dbfe4532
AS
32332010-09-04 Andreas Schwab <schwab@linux-m68k.org>
3234
3235 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
b7d187f8 3236 (imagemagick_load_image): Fix type mismatch.
5e5992c2 3237 (Fimagemagick_types): Likewise. Doc fix.
dbfe4532 3238
6d7cc563
JD
32392010-09-02 Jan Djärv <jan.h.d@swipnet.se>
3240
3241 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
3242
3243 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
3244
3245 * xselect.c: Remove declaration of cut-buffer objects and functions.
3246 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
3247 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
3248 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
3249 (Fx_rotate_cut_buffers_internal): Remove.
3250 (syms_of_xselect): Remove defsubr of above.
3251 Remove intern of QCUT_BUFFERn.
3252
8f4e9110
SM
32532010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
3254
3255 * cmds.c (Vblink_paren_function): Remove.
3256 (internal_self_insert): Make it insert N chars at a time.
3257 Don't call blink-paren-function.
3258 (Fself_insert_command): Adjust accordingly.
3259 (syms_of_cmds): Don't declare blink-paren-function.
3260
d419e1d9
KH
32612010-08-31 Kenichi Handa <handa@m17n.org>
3262
3263 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
3264 characters.
3265
3266 * term.c (encode_terminal_code): Fix the previous change.
5616cc54
SM
3267 (produce_glyphs): Don't set it->char_to_display here.
3268 Don't handle unibyte-display-via-language-environment here.
d419e1d9
KH
3269 (produce_special_glyphs): Set temp_it.char_to_display before
3270 calling produce_glyphs.
3271
3272 * xdisp.c (get_next_display_element): Set it->char_to_display
3273 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
3274 characters.
3275 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
3276 calling PRODUCE_GLYPHS.
3277 (append_space_for_newline): Save and store it->char_to_display.
3278 Set it->char_to_display before calling PRODUCE_GLYPHS.
3279 (extend_face_to_end_of_line): Set it->char_to_display before
3280 calling PRODUCE_GLYPHS.
3281 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
3282 character to its byte value.
3283 (get_char_glyph_code): New function.
3284 (produce_stretch_glyph): Set it2.char_to_display too before
3285 calling x_produce_glyphs.
3286 (x_produce_glyphs): Simplify by using the same code for ASCII and
65b3d997
A
3287 non-ASCII characters. Don't set it->char_to_display here.
3288 Don't handle unibyte-display-via-language-environment here. For a
2b5491fa 3289 character of no glyph, use font->space_width instead of FONT_WIDTH.
d419e1d9 3290
b819f760
SM
32912010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
3292
3293 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
3294
07fa68a7
CY
32952010-08-31 Chong Yidong <cyd@stupidchicken.com>
3296
3297 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
3298
cd196f12
SM
32992010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
3300
3301 * marker.c (Fcopy_marker): Make the first arg optional.
3302
49a752bb
KH
33032010-08-30 Kenichi Handa <handa@m17n.org>
3304
3305 * composite.c (composition_update_it): Fix computing of
3306 cmp_it->width.
3307
769ae9e1
KH
33082010-08-29 Kenichi Handa <handa@m17n.org>
3309
9e69cb05 3310 * term.c (encode_terminal_code): Encode byte chars to the
5616cc54 3311 corresponding bytes.
9e69cb05 3312
4520b858
J
33132010-08-29 Jan Djärv <jan.h.d@swipnet.se>
3314
3315 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
3316
fe50eb41
KH
33172010-08-26 Kenichi Handa <handa@m17n.org>
3318
3319 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
3320 on calling composition_compute_stop_pos.
3321
f6aa6ec6
KH
33222010-08-25 Kenichi Handa <handa@m17n.org>
3323
9dfdbc0a
KH
3324 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
3325 :otf.
3326
f6aa6ec6
KH
3327 * composite.c (composition_compute_stop_pos): Don't break
3328 composition at PT.
3329 (composition_reseat_it): Likewise. Fix calculation of character
3330 position starting a composition.
3331 (Fcomposition_get_gstring): Don't limit the number of components
3332 for automatic composition.
3333
ff94e32c
KH
33342010-08-25 Kenichi Handa <handa@m17n.org>
3335
3336 * composite.c (composition_compute_stop_pos): In forward search,
3337 pay attention to the possibility that some character after ENDPOS
3338 will be composed with charactrs before ENDPOS.
3339
1c409d0b
CY
33402010-08-24 Chong Yidong <cyd@stupidchicken.com>
3341
3342 * keyboard.c (command_loop_1): Don't clobber primary selection
3343 during handle-switch-frame (Bug#6872).
3344
0c372655
MA
33452010-08-23 Michael Albinus <michael.albinus@gmx.de>
3346
3347 * dbusbind.c: Accept UNIX domain sockets as bus address.
3348 (Fdbus_close_bus): New function.
3349 (Vdbus_registered_buses): New variable.
3350 (xd_initialize): Implement string as bus address.
3351 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
3352 (Fdbus_get_unique_name, Fdbus_call_method)
3353 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
3354 (Fdbus_method_error_internal, Fdbus_send_signal)
3355 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
3356 check. This is done in xd_initialize_bus. Adapt doc string, if
3357 necessary.
3358 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
3359 Vdbus_registered_buses.
3360 (Vdbus_registered_objects_table): Create hash.
3361
7133b7ee
JL
33622010-08-22 Juri Linkov <juri@jurta.org>
3363
3364 * keyboard.c (Fexecute_extended_command): Move reading a command name
3365 with `completing-read' to a new Elisp function `read-extended-command'.
3366 Call it to read a command to `function' (bug#5364, bug#5214).
3367
198a7a97
CY
33682010-08-22 Chong Yidong <cyd@stupidchicken.com>
3369
3370 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
3371
b0126eac 33722010-08-22 Andreas Schwab <schwab@linux-m68k.org>
b72e0717
AS
3373
3374 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
3375 instead of SAFE_ALLOCA.
3376
b0126eac 33772010-08-22 Chong Yidong <cyd@stupidchicken.com>
3a7a9129
CY
3378
3379 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
3380 (Bug#6214).
3381
b0126eac 33822010-08-22 Jan Djärv <jan.h.d@swipnet.se>
983b8302
J
3383
3384 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
3385
b0126eac
CY
33862010-08-22 Jan Djärv <jan.h.d@swipnet.se>
3387
3388 * doc.c (Fsnarf_documentation): Initialize skip_file before
3389 build-files test.
3390
692f3ddc 33912010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
b0126eac 3392
692f3ddc
JB
3393 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
3394 New definitions.
b0126eac
CY
3395 (HAVE_TERMIO): Remove.
3396
5f2f0bc1
EZ
33972010-08-22 Eli Zaretskii <eliz@gnu.org>
3398
b613941b
EZ
3399 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
3400
a583bbef
EZ
3401 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
3402 for w32.
3403
3404 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
3405 it's done in nt/config.nt.
3406
3407 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
3408
5f2f0bc1
EZ
3409 * unexcoff.c (report_error, make_hdr, write_segment)
3410 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
3411 Convert argument lists and prototypes to ANSI C.
3412 (make_hdr, write_segment): Remove unused variables.
3413 (unexec): Remove commented-out line. Initialize `new' to shut up
3414 compiler warnings.
3415
a7ebc409
DN
34162010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
3417
3418 Simplify termio code.
3419 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
3420 HAVE_TERMIO code is obsolete.
3421 Replace HAVE_TERMIOS conditionals with !DOS_NT.
3422 * systty.h: Do not define HAVE_TCATTR.
3423 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
3424 Do not define EMACS_HAVE_TTY_PGRP. Only define
3425 EMACS_GET_TTY_PGRP for !DOS_NT.
3426 * sysdep.c: Include sysselect.h unconditionally. Do not include
bba3e508
SM
3427 sys/ioctl.h and termios.h, systty.h does it.
3428 Use HAVE_SYS_UTSNAME_H instead of USG as an include guard.
a7ebc409
DN
3429 (init_baud_rate): Remove HAVE_TERMIO code.
3430 (child_setup_tty): Remove HAVE_TERMIO code.
3431 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
3432 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
3433 (new_ltchars, new_tchars): Remove, unused.
3434 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
bba3e508
SM
3435 code. Remove special casing for __mips__, it was a no-op.
3436 Remove HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
a7ebc409
DN
3437 (init_sys_modes): Remove HPUX special case.
3438 * process.c: Include stdlib.h unconditionally. Do not include
3439 fcntl.h, systty.h does it. Remove conditional code for
3440 HAVE_SERIAL, it is always true.
3441 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
3442 always true when SIGNALS_VIA_CHARACTERS is true.
3443 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
3444 !WINDOWSNT means HAVE_TERMIOS.
3445 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
3446 conditional, which is true for all HAVE_TERMIOS systems.
3447 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
3448 instead of HAVE_TERMIOS.
3449 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
3450 EMACS_HAVE_TTY_PGRP.
3451 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
3452 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
3453 anyway.
3454
914f049b 34552010-08-21 Eli Zaretskii <eliz@gnu.org>
40629f17
EZ
3456
3457 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
3458 mirroring pixel positions.
3459
d931da8c
DN
34602010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
3461
b5c76d0c
DN
3462 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
3463 write only.
3464 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
3465 malloc_sbrk_used, nothing uses them.
3466
74815588
DN
3467 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
3468 defined, unconditionally defined in lisp.h.
3469
f5817d1c
DN
3470 * term.c: Do not include <termios.h>, systty.h does it.
3471
d931da8c
DN
3472 * s/unixware.h (HAVE_TCATTR):
3473 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
3474 systty.h defines it when HAVE_TERMIOS is defined.
3475
ff2de6d2 34762010-08-20 Eli Zaretskii <eliz@gnu.org>
491a1546 3477
b43c883c 3478 * dispnew.c (buffer_posn_from_coords): Fix last change for text
00c53994 3479 terminals: add one-character offset for R2L lines.
b43c883c 3480
491a1546
EZ
3481 * emacs.c <emacs_version>: Add a comment regarding
3482 msdos/mainmake.v2's dependency on the syntax of this declaration.
3483
2396cbba
EZ
34842010-08-20 Eli Zaretskii <eliz@gnu.org>
3485
3486 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
3487 position for R2L lines by mirroring the pixel position wrt the
3488 text are box. Improve commentary.
3489
7df6150a
AS
34902010-08-20 Andreas Schwab <schwab@linux-m68k.org>
3491
3492 * image.c (imagemagick_clear_image): Remove debugging output.
3493
a2e5caf7
SM
34942010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
3495
3496 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
3497 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
3498 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
3499 self-insert-face.
3500 (syms_of_cmds): Initialize the new vars.
3501
20d60baf
JR
35022010-08-19 Jason Rumney <jasonr@gnu.org>
3503
cc477da7
JR
3504 * w32menu.c (set_frame_menubar): Remove call to undefined function.
3505
20d60baf
JR
3506 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
3507
2c0ac867
J
35082010-08-19 Jan Djärv <jan.h.d@swipnet.se>
3509
3510 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
3511
93352106
EZ
35122010-08-18 Eli Zaretskii <eliz@gnu.org>
3513
3514 * xterm.c (x_draw_bar_cursor):
3515 * w32term.c (x_draw_bar_cursor): If the character under cursor is
3516 R2L, draw the bar cursor on its right rather than on its left.
3517
c785836d
SM
35182010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
3519
0193499f
SM
3520 * eval.c (Fdefmacro): Only obey one declaration.
3521
c785836d
SM
3522 * casefiddle.c (casify_region): Setup gl_state.
3523
9cb728a5
J
35242010-08-18 Jan Djärv <jan.h.d@swipnet.se>
3525
3526 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
3527
e1e18511
J
35282010-08-18 Jan Djärv <jan.h.d@swipnet.se>
3529
1d77b63e 3530 * gtkutil.c (update_frame_tool_bar): Literal strings are const char*.
e1e18511 3531
64cb6c78
J
35322010-08-18 David De La Harpe Golden <david@harpegolden.net>
3533
3534 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
3535 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
3536 QPRIMARY => NXPrimaryPboard.
3537 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
3538 NXPrimaryPboard => QPRIMARY.
3539 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
3540 NXSecondaryPboard = SecondarySelection.
3541 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
3542
0c9b8993
GM
35432010-08-18 Joakim Verona <joakim@verona.se>
3544
3545 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
3546 defined:
3547 (imagemagick_image_p): New function to test for ImageMagic image.
3548 (imagemagick_load): New function to load ImageMagick image.
3549 (imagemagick_load_image): New function, helper for imagemagick_load.
3550 (imagemagick-types): New function.
3551 (Qimagemagick): New Lisp_object.
3552 (imagemagick-render-type): New variable, decides which renderer to use.
ccd80618 3553
c3554f68
SM
35542010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
3555
3556 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
3557 is a string.
3558
1ff2e434
J
35592010-08-17 Jan Djärv <jan.h.d@swipnet.se>
3560
3561 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
3562 x_set_tool_bar_position handler.
3563
0cc56427
EZ
35642010-08-17 Eli Zaretskii <eliz@gnu.org>
3565
3566 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
3567 x_set_tool_bar_position handler, needed to support changes from
3568 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
3569
e45a249b
JD
35702010-08-16 Jan Djärv <jan.h.d@swipnet.se>
3571
921242c6
J
3572 * nsselect.m: include keyboard.h for QPRIMARY, remove its
3573 declaration (Bug#6863).
573d150b 3574 (syms_of_nsselect): Don't intern QPRIMARY.
921242c6 3575
e45a249b
JD
3576 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
3577
3578 * keyboard.h (QPRIMARY): Declare (Bug#6864).
3579
7c23dd44
CY
35802010-08-16 Chong Yidong <cyd@stupidchicken.com>
3581
3582 * keyboard.c (command_loop_1): Avoid setting selection twice,
3583 since it's done in deactivate-mark as well.
3584 (Vselect_active_regions): Change default to t. Replace `lazy'
3585 with non-default value `only', meaning only set PRIMARY for
3586 temporarily active regions.
3587
3588 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
3589 select-active-regions.
3590
0005830c
J
35912010-08-15 Jan Djärv <jan.h.d@swipnet.se>
3592
3593 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
3594 isn't a string.
3595
603dfc72
AS
35962010-08-15 Andreas Schwab <schwab@linux-m68k.org>
3597
3598 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
3599
c25ce9d0
J
36002010-08-15 Jan Djärv <jan.h.d@swipnet.se>
3601
c3554f68
SM
3602 * keyboard.c (parse_tool_bar_item): malloc buf.
3603 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
3604 new_lbl (Bug#6855).
c25ce9d0 3605
5872c762
EZ
36062010-08-14 Eli Zaretskii <eliz@gnu.org>
3607
b236615c
EZ
3608 * xterm.c (x_draw_stretch_glyph_string):
3609 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
3610 the cursor on the right edge of the stretch glyph.
3611
c3554f68
SM
3612 * xdisp.c (window_box_right_offset, window_box_right):
3613 Fix commentary.
b236615c 3614
5872c762
EZ
3615 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
3616 direction when point is inside a run of whitespace characters.
3617
3618 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
3619
e66f9a1b
JR
36202010-08-14 Jason Rumney <jasonr@gnu.org>
3621
3622 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
3623
79d6f59e
CY
36242010-08-14 Chong Yidong <cyd@stupidchicken.com>
3625
3626 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
3627
1c9b4129
JR
36282010-08-13 Jason Rumney <jasonr@gnu.org>
3629
3630 * w32menu.c (simple_dialog_show): Use unicode message box if available.
3631 (MessageBoxW_Proc): New function typedef.
3632 (unicode-message-box): New function pointer.
3633 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
3634
2b4e6277
J
36352010-08-13 Jan Djärv <jan.h.d@swipnet.se>
3636
3637 * frame.h (Qtool_bar_position): Declare.
3638
3639 * xfns.c (Fx_create_frame): Call x_default_parameter for
3640 Qtool_bar_position.
3641
94c97d85
EZ
36422010-08-13 Eli Zaretskii <eliz@gnu.org>
3643
8ee81892
EZ
3644 * unexcoff.c: Remove the parts used when "emacs" is not defined.
3645 (report_error, report_error_1): Ditto.
3646 (write_segment): Remove "#if 0" unused code.
3647 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
3648 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
3649 (start_of_text): Remove unused function (was used only if NO_REMAP
3650 was NOT defined).
3651
891ef8f7
EZ
3652 * msdos.c (IT_set_face): Fix format string to match argument
3653 types.
3654 (IT_write_glyphs, IT_note_mode_line_highlight)
3655 (IT_set_frame_parameters): Remove unused variables.
3656 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
3657 (IT_set_terminal_modes): Disambiguate expression in if clause.
3658 (Fmsdos_remember_default_colors): Return Qnil.
3659 (IT_set_frame_parameters): Add parens to disambiguate boolean
3660 expression for logging the cursor type to termscript.
3661 (keyboard_layout_list, keypad_translate_map)
3662 (grey_key_translate_map): Add braces in inner initializers.
3663 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
3664 (dos_rawgetc): Remove unused label.
3665 (XMenuActivate): Add braces to remove ambiguous `else'.
3666 (dos_ttraw): Always return a value.
3667 (spawnve): Declare.
3668 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
3669
3670 * dosfns.h (x_set_title): Declare.
3671
3672 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
3673 Remove unused variables.
3674
3675 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
3676 variables.
3677 (init_dosfns): Declare get_lim_data.
3678 (system_process_attributes): Declare Fget_internal_run_time.
3679
38e41e0e
EZ
3680 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
3681 list to be consistent with menu.h.
3682
94c97d85
EZ
3683 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
3684 warnings due to mixing of "char *" and "const char *".
3685
c5683ceb
SM
36862010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
3687
3688 Introduce a new comment style "c" flag.
3689 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
3690 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
3691 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
3692 (syntax_prefix_flag_p): New function.
3693 (Fstring_to_syntax): Understand new "c" flag.
3694 (Finternal_describe_syntax_value): Recognize new flag; use the
3695 SYNTAX_FLAGS_* macros.
3696 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
3697 comment style to accomodate the new styles.
3698 (back_comment, forw_comment, Fforward_comment, scan_lists)
3699 (scan_sexps_forward): Update code to obey the new comment style flag.
3700
3701 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
3702
3703 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
3704
7aee76f4
J
37052010-08-11 Jan Djärv <jan.h.d@swipnet.se>
3706
3a46642b
J
3707 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
3708 first.
94dff98f 3709 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
3a46642b
J
3710
3711 * gtkutil.h (xg_check_special_colors): Declare.
3712
3713 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
3714 (xg_create_frame_widgets): Connect theme name changes to
3715 style_changed_cb.
3716
42ca4633
J
3717 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
3718 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
3719 (x_term_init): Use char[] display_opt and name_opt instead of
93acd23d 3720 string literal. file is const char*.
42ca4633
J
3721
3722 * xsmfns.c (NOSPLASH_OPT): Change to char[].
3723 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
3724 props. Free them at the end.
3725
3726 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
3727
c5683ceb
SM
3728 * xrdb.c (get_system_app): Make path const and use char *p for
3729 non-const char.
42ca4633
J
3730
3731 * xmenu.c (Fx_popup_dialog): error_name is const char*.
93acd23d 3732 (xmenu_show): error parameter is const char **. pane_string is const
42ca4633
J
3733 char *.
3734 (button_names): Is const char *.
3735 (xdialog_show): error_name and pane_string is const.
3736
3737 * process.h (synch_process_death): Is const char*.
3738
3739 * w32menu.c (w32_menu_show):
3740 * nsmenu.m (ns_menu_show): error parameter is const char **.
3741
3742 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
3743 is const char **.
3744
3745 * menu.c (Fx_popup_menu): error_name is const.
3746
3747 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
3748 with unsigned char and XtPointer with void *.
3749
3750 * gtkutil.h: Replace widget_value with struct _widget_value.
3751 (enum button_type, struct _widget_value): Remove and use the one from
3752 keyboard.h.
3753
3754 * gtkutil.c (get_utf8_string): Always return an allocated string.
3755 Parameter is const.
3756 (create_dialog, xg_create_one_menuitem, create_menus)
3757 (xg_item_label_same_p, xg_update_menu_item): Free result from
3758 get_utf8_string.
3759 (xg_separator_p, xg_item_label_same_p): label is const.
3760
3761 * font.h (font_open_by_name): Make name const.
3762
3763 * font.c (font_open_by_name): Make name const.
3764
3765 * floatfns.c (matherr): Use a const char* variable for x->name.
3766
3767 * emacs.c (main): Pass char[] to putenv instead of literal.
3768
3769 * callproc.c (synch_process_death): Make const.
3770 (Fcall_process): Make signame const.
3771
9c5bd55a
J
3772 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
3773 (addDisplayItemWithImage): Use const char*.
3774
3775 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
3776 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
3777
3778 * nsfont.m (ns_descriptor_to_entity): Use const char*.
3779
3780 * keyboard.h (_widget_value): name, value and key are const char*.
3781
7aee76f4
J
3782 * unexmacosx.c (unexec_error): Use const char *.
3783
09d93395
DN
37842010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
3785
3786 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 3787 (font_parse_name, font_open_by_name):
09d93395 3788 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 3789 (font_parse_name, font_open_by_name): Remove const.
09d93395 3790
671d409f
AS
37912010-08-09 Andreas Schwab <schwab@linux-m68k.org>
3792
3793 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
3794 definition.
3795
3796 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
3797 * m/amdx86-64.h: Likewise.
3798 * m/arm.h: Likewise.
3799 * m/hp800.h: Likewise.
3800 * m/ia64.h: Likewise.
3801 * m/ibmrs6000.h: Likewise.
3802 * m/ibms390.h: Likewise.
3803 * m/intel386.h: Likewise.
3804 * m/iris4d.h: Likewise.
3805 * m/m68k.h: Likewise.
3806 * m/macppc.h: Likewise.
3807 * m/mips.h: Likewise.
3808 * m/sh3.h: Likewise.
3809 * m/sparc.h: Likewise.
3810 * m/template.h: Likewise.
3811 * m/vax.h: Likewise.
3812 * m/xtensa.h: Likewise.
3813 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
3814 WORDS_BIG_ENDIAN.
3815 * lisp.h: Likewise.
3816 * md5.c: Likewise.
3817 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
3818
8ea90aa3
DN
38192010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
3820
3821 Use const char* instead of char*.
3822 Reduce the number of warnings with -Wwrite-strings.
3823 * xrdb.c (get_environ_db, get_system_name):
3824 * unexelf.c (find_section):
3825 * term.c (string_cost, string_cost_one_line, per_line_cost)
3826 (get_named_tty, init_tty):
3827 * sysdep.c (sys_subshell):
3828 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
3829 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
3830 * search.c (Freplace_match):
3831 * process.c (Fmake_network_process, send_process, init_process):
3832 * lread.c (Fload, init_lread):
3833 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
3834 * keyboard.c (parse_tool_bar_item, struct event_head):
3835 * gtkutil.h (xg_get_font_name):
3836 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
3837 (make_widget_for_menu_item, make_menu_item, create_menus)
3838 (xg_make_tool_item):
3839 * font.c (parse_matrix, font_parse_name):
3840 * floatfns.c (rounding_driver, float_error_fn_name):
3841 * filelock.c (get_boot_time_1, lock_file_1):
3842 * fileio.c (barf_or_query_if_file_exists, check_writable):
3843 * editfns.c (get_system_name, get_operating_system_release)
3844 (Fencode_time, Fset_time_zone_rule):
3845 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
3846 * buffer.c (defvar_per_buffer): Use const.
3847
7815fe19 38482010-08-08 Kenichi Handa <handa@m17n.org>
7a84eee5 3849
692f3ddc 3850 * charset.c: Include <stdlib.h>.
7a84eee5
KH
3851 (struct charset_sort_data): New struct.
3852 (charset_compare): New function.
692f3ddc 3853 (Fsort_charsets): New function.
7a84eee5
KH
3854 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
3855
3856 * coding.c (decode_coding_iso_2022): Fix checking of dimension
3857 number in CTEXT extended segment.
3858
7815fe19 38592010-08-08 Juanma Barranquero <lekktu@gmail.com>
f5f6c0e0
JB
3860
3861 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
3862 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
3863
7815fe19 38642010-08-08 Juanma Barranquero <lekktu@gmail.com>
b756c005
JB
3865
3866 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
3867 (Fhash_table_size): Fix typos in docstrings.
3868 (Fmake_hash_table): Doc fix.
3869
7815fe19 38702010-08-08 Juanma Barranquero <lekktu@gmail.com>
b4f588fa
JB
3871
3872 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
3873 Doc fix (bug#5625).
3874
7815fe19 38752010-08-08 Ken Brown <kbrown@cornell.edu>
9f8c08a7
KB
3876
3877 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
3878 the MSDOS definition.
3879
1b6d8cf0
DN
38802010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
3881
675e2c69
DN
3882 Use const char* instead of char*.
3883 * xterm.c (x_create_toolkit_scroll_bar):
3884 * xfont.c (xfont_list_pattern):
3885 * xfns.c (x_default_scroll_bar_color_parameter)
3886 (xic_create_fontsetname, x_default_font_parameter)
3887 (x_screen_planes):
3888 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
3889 (store_mode_line_string, decode_mode_spec, display_string):
3890 * menu.c (digest_single_submenu):
3891 * keymap.h (initial_define_key, initial_define_lispy_key):
3892 * keymap.c (initial_define_key, initial_define_lispy_key):
3893 * image.c (image_error, image_keyword):
3894 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
3895 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
3896 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
3897 (ftfont_list, ftfont_match):
3898 * frame.c (frame_parm_table):
3899 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
3900 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
3901 (font_add_log, font_deferred_log):
3902 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
3903 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
3904 (font_add_log, font_deferred_log):
3905 * emacs.c (argmatch):
3906 * dispextern.h (struct it):
3907 * coding.c (ENCODE_DESIGNATION):
3908 * charset.c (define_charset_internal): Use const.
3909
25717ca1
DN
3910 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
3911
c5683ceb
SM
3912 * xrdb.c: Remove include guard.
3913 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
1b6d8cf0
DN
3914 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
3915 realloc->xrealloc instead of using #defines.
3916
efb41e21
EZ
39172010-08-08 Eli Zaretskii <eliz@gnu.org>
3918
cd21226d 3919 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
c5683ceb
SM
3920 * editfns.c (Fline_beginning_position, Fline_end_position):
3921 State in the doc strings that start and end of line are in the
3922 logical order.
cd21226d 3923
efb41e21
EZ
3924 * xdisp.c (display_line): Move the handling of overlay arrow after
3925 the call to find_row_edges. (Bug#6699)
3926
746812d9
CY
39272010-08-07 Chong Yidong <cyd@stupidchicken.com>
3928
3929 * keyboard.c (command_loop_1):
3930 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
3931
9852377f
CY
39322010-08-07 Chong Yidong <cyd@stupidchicken.com>
3933
3934 * insdel.c (prepare_to_modify_buffer): Save active region text to
3935 Vsaved_region_selection.
3936
3937 * xselect.c (QPRIMARY): Move to keyboard.c.
3938
3939 * keyboard.c (Vselect_active_regions): Move from simple.el.
8d9e03e4
JB
3940 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
3941 (command_loop_1): Set window selection prior to deactivating the mark.
9852377f 3942
0e9c8657
JB
39432010-08-07 Juanma Barranquero <lekktu@gmail.com>
3944
3945 * alloc.c (lisp_malloc):
3946 * buffer.c (set_buffer_internal, set_buffer_internal_1):
3947 * charset.h (emacs_mule_charset):
3948 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
3949 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
3950 (bitch_at_user):
3951 * lisp.h (Fcheck_coding_system, Fget_text_property)
3952 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
3953 Remove duplicate declarations.
3954
648801d1
DN
39552010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
3956
32bc6709
DN
3957 * process.c: Simplify include logic.
3958
3ef1d108
DN
3959 * keyboard.h (quit_char): Add declaration.
3960 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
8d9e03e4
JB
3961 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
3962 Add declarations.
3ef1d108
DN
3963 * sysdep.c:
3964 * w32.c: Remove the above declarations.
3965
97ec208f
DN
3966 Remove extern declarations in .c files, .h files have them.
3967 * xterm.c:
3968 * xdisp.c:
97ec208f
DN
3969 * msdos.c:
3970 * image.c:
3971 * gtkutil.c:
3972 * fileio.c:
3973 * eval.c: Remove declarations.
3974
94eed851
DN
3975 * frame.c (frame_params): Make const.
3976
36e053eb
DN
3977 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
3978
0e843971
DN
3979 * emacs.c (emacs_copyright, emacs_version): Make static.
3980 (Vinitial_window_system, Vauto_save_list_file_name)
3981 (Vinhibit_redisplay): Remove declarations.
3982 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
3983 for AIX.
3984
648801d1
DN
3985 Use const for some arrays and functions.
3986 * xterm.h (xg_set_icon_from_xpm_data):
3987 * xfns.c (xg_set_icon_from_xpm_data):
3988 * term.c (fkeys):
3989 * keyboard.c (lispy_accent_keys, lispy_function_keys)
3990 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
3991 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
3992 (frame.c frame_parms):
3993 * emacs-icon.h (gnu_xpm_bits):
3994 * callint.c (callint_argfuns): Use const.
3995
8646d999
J
39962010-08-06 Jan Djärv <jan.h.d@swipnet.se>
3997
3998 * sysdep.c: Move include term.h last of includes (Bug#6812).
3999
cb4545ad
EZ
40002010-08-06 Eli Zaretskii <eliz@gnu.org>
4001
4002 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
4003
4004 * msdos.c (IT_display_cursor): Log cursor position on termscript.
4005
4006 * .gdbinit (pgx): Display the avoid_cursor_p flag.
4007
da7e2be6
JB
40082010-08-06 Juanma Barranquero <lekktu@gmail.com>
4009
4010 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
4011
3d608a86
J
40122010-08-06 Jan Djärv <jan.h.d@swipnet.se>
4013
7908fb60
J
4014 * xterm.h (x_get_focus_frame): Declare.
4015
4016 * keyboard.h (poll_for_input_1): Unconditionally declare.
4017
4094bf36
J
4018 * nsterm.h (x_set_menu_bar_lines): Declare.
4019
4020 * window.c: Don't include menu.h, it depends on lots of other .h-files.
4021
3d608a86
J
4022 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
4023
4024 * window.c: Include menu.h.
4025
4026 * unexmacosx.c (print_region_list, print_regions)
4027 (build_region_list, find_emacs_zone_regions)
4028 (unexec_regions_merge, read_load_commands, dump_it)
4029 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
4030
4031 * term.c: Check HAVE_SYS_IOCTL_H.
4032
686b968e 4033 * sysdep.c: Check HAVE_TERM_H.
3d608a86 4034
686b968e 4035 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
3d608a86
J
4036
4037 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
4038 (ns_ring_bell, ns_defined_color, hide_hourglass)
4039 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
4040 Convert to ANSI C prototypes.
4041 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
4042 before code.
4043
4044 * nsterm.h : Include sysselect.h.
4045 (x_sync, x_get_focus_frame, x_set_mouse_position)
4046 (x_set_mouse_pixel_position, x_make_frame_visible)
4047 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
4048 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
4049 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
4050 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
686b968e 4051 Declare.
3d608a86
J
4052
4053 * nsmenu.m (popup_activated, name_is_separator)
4054 (syms_of_nsmenu): Convert to ANSI C prototypes.
4055 (runMenuAt): Prototypes and move declarations before code.
4056
4057 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
4058
4059 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
4060 prototypes.
4061
4062 * nsfns.m (have_menus_p, ns_display_info_for_name)
4063 (x_set_cursor_type, ns_appkit_version_str)
4064 (ns_appkit_version_int, ns_do_applescript)
4065 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
4066 (syms_of_nsfns): Convert to ANSI C prototypes.
4067
4068 * menu.h (x_set_menu_bar_line): Declare.
4069 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
4070
4071 * lisp.h (fmod_float): Declare.
4072
4073 * image.c (xpm_scan, xpm_make_color_table_v)
4074 (xpm_put_color_table_v, xpm_get_color_table_v)
4075 (xpm_make_color_table_h, xpm_put_color_table_h)
4076 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
4077 (xpm_load): Convert to ANSI C prototypes.
4078
4079 * emacs.c: Include nsterm.h if HAVE_NS.
4080
4081 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
4082
fce70521
DN
40832010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
4084
4085 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
4086 subprocesses, only MSDOS does not define HAVE_SOCKETS.
4087 (socket_options): Use const char* for name.
4088
a11889ab
JB
40892010-08-06 Juanma Barranquero <lekktu@gmail.com>
4090
4091 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
4092
4093 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
4094 Don't declare xmalloc_widget_value and digest_single_submenu.
4095
4096 * w32font.c (Qlatin): Remove declaration.
4097
4098 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
4099
c95b508f 4100 * dired.c (compile_pattern): Restore declaration.
a11889ab 4101
6254cdda
DN
41022010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
4103
04bab72c
DN
4104 Remove extern declarations in .c files, .h files have them.
4105 * data.c:
4106 * dired.c:
4107 * editfns.c:
4108 * filelock.c:
4109 * fns.c:
4110 * font.c:
4111 * fontset.c:
4112 * frame.c:
4113 * fringe.c:
4114 * ftfont.c:
4115 * gtkutil.c:
4116 * indent.c:
4117 * keyboard.c:
4118 * keymap.c:
4119 * lread.c:
4120 * menu.c:
4121 * print.c:
4122 * search.c:
4123 * sound.c:
4124 * window.c:
4125 * xdisp.c:
4126 * xfaces.c:
4127 * xfns.c:
4128 * xfont.c:
4129 * xftfont.c:
4130 * xmenu.c:
4131 * xterm.c: Remove declarations.
4132
dff94ed5
DN
4133 Cleanup syssignal.h.
4134 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
4135 (main_thread): Move down to remove #ifdef.
4136 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
4137 Remove conditional definition following unconditional ones.
4138
99f3388e
DN
4139 * lisp.h: Remove HAVE_SHM code, unused.
4140 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
4141 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
4142 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
4143 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
4144 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
4145 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
4146 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
4147 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
4148 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
4149 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
4150 (Qwindow_scroll_functions, Vafter_load_alist)
4151 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
4152 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
4153 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
4154 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
4155 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
4156 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
4157 (initial_argv, last_nonmenu_event, load_in_progress)
4158 (noninteractive_need_newline, scroll_margin): Add declarations.
4159
bba3e508
SM
4160 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
4161 Remove declarations, menu.h has them.
99f3388e
DN
4162 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
4163 (Vinput_method_function, Qinput_method_function)
4164 (Qevent_symbol_element_mask, last_event_timestamp):
4165 * dispextern.h (Voverflow_newline_into_fringe):
4166 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
4167 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
4168 (syms_of_w32font, syms_of_nsfont):
4169 * fontset.h (find_font_encoding, Qlatin):
4170 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
4171 (Vtool_bar_mode, set_frame_menubar):
4172 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
4173 * xterm.h (Qx_gtk_map_stock):
4174 * keymap.h (meta_prefix_char): Add declarations.
4175
9f5dd6f2
DN
4176 * term.c: Remove dead code.
4177
6254cdda
DN
4178 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
4179 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
4180 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
4181 which is what was there before BSD_PGRPS was removed.
4182
29cf3e20
EZ
41832010-08-05 Eli Zaretskii <eliz@gnu.org>
4184
4185 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
4186
4187 * unexcoff.c: Renamed from unexec.c.
4188
aaa0a19a
SM
41892010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
4190
4191 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
4192
8d1d9587
JB
41932010-08-03 Johan Bockgård <bojohan@gnu.org>
4194
4195 * data.c (Flocal_variable_p): Handle variable aliases correctly.
e0d62a9b 4196 (Bug#6744)
8d1d9587 4197
9a747ba6
JD
41982010-08-02 Jan Djärv <jan.h.d@swipnet.se>
4199
4d464ae4
JD
4200 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
4201 to TRUE if depth of screen is < 16.
4202
ac01763e
JD
4203 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
4204 USE_GTK_TOOLTIP.
e0d62a9b
JB
4205 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
4206 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4d464ae4 4207 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
ac01763e
JD
4208 USE_GTK_TOOLTIP.
4209 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
4210
4211 * xterm.h (USE_GTK_TOOLTIP): New define.
4212 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
4213
9a747ba6
JD
4214 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
4215 to Control-D (Bug#6771).
4216
7b0815ba
JB
42172010-08-02 Juanma Barranquero <lekktu@gmail.com>
4218
4219 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
4220 Wording by Drew Adams <drew.adams@oracle.com>.
4221
aa1859f5
J
42222010-08-01 Jan Djärv <jan.h.d@swipnet.se>
4223
4224 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
4225 ttip_lbl.
4226
4227 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
4228 calling gtk_widget_queue_draw.
4229 (x_free_frame_resources): Call xg_free_frame_widgets.
4230
4231 * xfns.c (x_gtk_use_system_tooltips): New variable.
4232 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
4233 new gtkutil tooltip functions to show the tooltip.
4234 (Fx_hide_tip): Call xg_hide_tooltip.
4235 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
4236
4237 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
4238 (xg_show_tooltip, xg_hide_tooltip): Declare.
4239
4240 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
e0d62a9b
JB
4241 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
4242 New functions.
aa1859f5
J
4243 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
4244 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
4245 Remove code that is commented out.
4246
76417ef4
SM
42472010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
4248
4249 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
4250
16041401
CY
42512010-07-31 Chong Yidong <cyd@stupidchicken.com>
4252
4253 * xselect.c (x_own_selection): Use list4.
4254
2c09a58f
DN
42552010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
4256
4257 * buffer.c (Qwindow): Do not define, already defined in data.c.
4258 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
4259
59df9fdd 42602010-07-29 Chad Brown <yandros@mit.edu>
1c97e857 4261
59df9fdd
JB
4262 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
4263 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
4264 * config.in: Undef HAVE_DIRENT_H.
1c97e857 4265 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
59df9fdd 4266 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1c97e857 4267
1b231651
DN
42682010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
4269
4270 Rename s/usg5-4.h -> s/usg5-4-common.h.
4271 * s/usg5-4.h: Rename file to ...
4272 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
4273 * s/unixware.h:
4274 * s/sol2-6.h:
4275 * s/irix6-5.h: Update includes accordingly.
4276
bfeabdc3
JD
42772010-07-29 Jan Djärv <jan.h.d@swipnet.se>
4278
2ebf1083
J
4279 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
4280
bfeabdc3 4281 * xterm.h (struct x_output): Add toolbar_top_height,
e0d62a9b
JB
4282 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
4283 Remove toolbar_height.
4284 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
bfeabdc3
JD
4285 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
4286 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
4287 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
4288
4289 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
4290
4291 * xfns.c (x_set_tool_bar_position): New function.
4292 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
4293 (x_frame_parm_handlers): Add x_set_tool_bar_position.
e0d62a9b 4294 (syms_of_xfns): If USE_GTK, provide move-toolbar.
bfeabdc3
JD
4295
4296 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
4297 and FRAME_TOOLBAR_LEFT_WIDTH.
4298
4299 * gtkutil.h (xg_change_toolbar_position): Declare.
4300
4301 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
4302 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
4303 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
4304 (xg_create_frame_widgets): Create a hobox for placing widgets
4305 vertically. Use gtk_box_pack_start.
ef1b0ba7 4306 (xg_height_or_width_changed): Rename from xg_height_changed.
bfeabdc3
JD
4307 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
4308 (xg_update_frame_menubar, free_frame_menubar): Change to
4309 xg_height_or_width_changed.
4310 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
4311 size correctly. Remove hardcoded 4, instead use handlebox size -
4312 toolbar size.
4313 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
e0d62a9b 4314 size correctly. Use handlebox size + toolbar size as additional size.
bfeabdc3
JD
4315 (xg_pack_tool_bar): POS is a new parameter.
4316 Set orientation of tool bar based on pos.
4317 Only make handlebox_widget if NULL.
4318 Check if tool bar goes to vbox or hbox depending on pos.
4319 (xg_update_tool_bar_sizes): New function.
686b968e 4320 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
bfeabdc3
JD
4321 height, call xg_update_tool_bar_sizes instead.
4322 (free_frame_tool_bar): Remove from hbox or vbox depending on
4323 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
4324 (xg_change_toolbar_position): New function.
4325
4326 * frame.h (struct frame): Add tool_bar_position.
4327 (Qbottom): Declare.
4328
4329 * frame.c (Qtool_bar_position): New variable.
4330 (make_frame): Set tool_bar_position to Qtop.
4331 (frame_parms): Add tool-bar-position.
4332 (x_report_frame_params): Store tool_bar_position.
4333 (x_set_fringe_width): Reset wm size hint after fringe changes.
4334
26469a38
DN
43352010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
4336
4337 Make lisp_time_argument declaration work on all systems.
4338 * lisp.h (lisp_time_argument): Move declaration ...
4339 * systime.h (lisp_time_argument): ... here
4340 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
4341
8848b728
JD
43422010-07-29 Jan Djärv <jan.h.d@swipnet.se>
4343
4344 * vm-limit.c (POINTER): Add typedef for it.
4345 (start_of_data): Change return type from POINTER to char *.
4346
4347 * frame.h (Qtty_color_mode): Move declaration out of ifdef
4348 HAVE_WINDOW_SYSTEM.
4349
76fd1ee9
DN
43502010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
4351
0441987e
DN
4352 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
4353 Remove reference to __osf__, unused.
4354
56a000c7
DN
4355 * mem-limits.h: Remove duplicated includes.
4356 (NULL): Remove definition, unused.
4357 (POINTER): Remove definition.
4358 (start_of_data): Use char* in prototype, as the function
4359 definition does.
4360
e6cba650
DN
4361 Remove extern declarations from .c files, and them to .h files.
4362 * keyboard.h (Qhelp_echo, waiting_for_input)
4363 (input_available_clear_time, ignore_mouse_drag_p)
4364 (Vdouble_click_time, real_this_command, Vthis_original_command):
4365 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
4366 (Voverriding_local_map_menu_flag):
4367 * lisp.h (Qinteractive_form, use_file_dialog)
4368 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
4369 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
4370 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
4371 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
4372 (Qfunction, debug_on_next_call, Qfield)
4373 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
4374 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
4375 (Qfile_directory_p, Qinsert_file_contents)
4376 (Qcompletion_ignore_case, Qcompletion_ignore_case)
4377 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
4378 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
4379 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
4380 (Qminibuffer_prompt)
4381 (Vtemporary_file_directory,char_ins_del_vector, Qface):
4382 * xterm.h (gray_bitmap_width, gray_bitmap_height)
4383 (gray_bitmap_bits, xic_create_fontsetname):
4384 * coding.h (Vtranslation_table_for_input): Add extern declarations.
4385
4386 * xsmfns.c (Vuser_login_name):
4387 * xrdb.c (Vdouble_click_time):
4388 * xfaces.c (xic_create_fontsetname):
4389 * w32select.c (waiting_for_input):
4390 * print.c (minibuffer_auto_raise):
4391 * msdos.c (Qhelp_echo):
4392 * macros.c (real_this_command):
4393 * keymap.c (Voverriding_local_map):
4394 * xterm.c (poll_for_input_1, gray_bitmap_width)
4395 (gray_bitmap_height, gray_bitmap_bits;
4396 * xmenu.c ( Voverriding_local_map)
4397 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
4398 (use_file_dialog, Xt_app_con):
4399 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
4400 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
4401 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
4402 (Qtool_bar_lines, ignore_mouse_drag_p):
4403 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
4404 (Qrear_nonsticky, nconc2):
4405 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
4406 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
4407 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
4408 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
4409 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
4410 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
4411 (gc_in_progress):
4412 * doc.c (Voverriding_local_map, Qremap):
4413 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
4414 (Vcompletion_regexp_list):
4415 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
4416 (Qcompletion_ignore_case):
4417 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
4418 (Vhistory_length, Vthis_original_command, real_this_command)
4419 (Qface, Qminibuffer_prompt, history_delete_duplicates):
4420 * image.c (Qrisky_local_variable):
4421 * fontset.c (QCname):
4422 * fns.c (minibuffer_auto_raise, QCname):
4423 * dispnew.c (char_ins_del_cost):
4424 * composite.c (font_fill_lglyph_metrics):
4425 * cmds.c (Qface, Vtranslation_table_for_input):
4426 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
4427 * ccl.c (charset_unicode):
4428 * callproc.c (Vtemporary_file_directory):
4429 * buffer.c (emacs_strerror): Remove extern declarations.
4430
4431 * data.c (Qwindow): Make non-static, used from other files too.
4432 * frame.c (validate_x_resource_name): Remove shadow definition for i.
4433
76fd1ee9
DN
4434 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
4435 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
4436 * s/usg5-4.h (COFF):
4437 * s/template.h:
4438 * s/msdos.h (COFF, NO_REMAP):
4439 * s/ms-w32.h (NO_REMAP):
4440 * s/hpux10-20.h (NO_REMAP):
4441 * m/sparc.h (SEGMENT_MASK):
4442 * m/m68k.h (NO_REMAP):
4443 * m/intel386.h (SEGMENT_MASK):
4444 * m/arm.h (NO_REMAP):
4445 * m/alpha.h (COFF):
4446 * m/template.h: Remove references to unused defines.
4447
8a52f00a
JD
44482010-07-28 Jan Djärv <jan.h.d@swipnet.se>
4449
4450 * xsettings.c (Ftool_bar_get_system_style): Also check for
4451 Qtext_image_horiz.
4452
4453 * xdisp.c (Qtext_image_horiz): Define.
4454 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 4455 to documentation of tool-bar-style.
8a52f00a
JD
4456
4457 * lisp.h (Qtext_image_horiz): Declare.
4458
4459 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
4460 style text_image_horiz.
4461
89dc303e
DN
44622010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
4463
60799703
DN
4464 * emacs.c (Fkill_emacs): Remove return statement.
4465
37254dc1
DN
4466 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
4467 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
bba3e508
SM
4468 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys):
4469 Remove local extern declarations.
37254dc1 4470
71c7345a
DN
4471 * xmenu.c: Do not included lwlib.h, not needed.
4472
6ba577cb
DN
4473 * m/iris4d.h (XUINT, XSET): Remove, not needed.
4474
fdb183d6
DN
4475 * process.c: Move definitions earlier to minimize #ifdefs.
4476
4477 * xterm.h (x_get_customization_string, x_load_resources)
4478 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
4479 (x_check_errors, x_property_data_to_lisp, defined_color)
4480 (xic_set_xfontset, x_defined_color): Use const.
4481
4482 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
4483 (x_text_icon, x_check_errors, x_connection_closed): Use const.
4484
4485 * xselect.c (selection_data_to_lisp_data)
4486 (x_property_data_to_lisp):
4487 * xrdb.c (x_get_string_resource, file_p)
4488 (x_get_customization_string, magic_file_p, search_magic_path)
4489 (get_system_app, get_user_app, x_load_resources, x_get_resource)
4490 (x_get_string_resource): Use const.
4491
4492 * xfns.c: Include xlwmenu.h when USE_LUCID.
4493 (x_defined_color, xic_set_xfontset): Use const.
4494 (Fx_hide_tip): Remove local extern declaration.
4495
4496 * xfaces.c (Qmouse_face): Remove declaration.
4497 (face_color_gray_p, tty_defined_color, defined_color)
686b968e 4498 (face_color_gray_p, face_color_supported_p): Add const.
fdb183d6
DN
4499
4500 * xdisp.c (do_mouse_tracking): Remove declaration.
4501 (add_to_log): Use const.
4502
4503 * minibuf.c (Qmouse_face): Remove declaration.
4504
4505 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
4506
4507 * keyboard.h (do_mouse_tracking): Add declaration.
4508
4509 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
4510 (QCdata, QCtype, Qcenter): Remove declarations.
4511
4512 * frame.c (x_get_resource_string, x_get_string_resource)
4513 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
4514 (x_default_parameter): Use const.
4515
4516 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
4517 (QCheight, QCsize, QCname): Remove declarations.
4518
4519 * emacs.c (main): Remove local extern declaration.
4520
4521 * editfns.c (region_limit, syms_of_editfns): Remove local extern
4522 declarations.
4523
4524 * dispnew.c: Remove duplicate #include <unistd.h>.
4525 (update_window, update_frame_1, init_display): Remove local extern
4526 declarations.
4527
4528 * dispextern.h (add_to_log): Remove declaration.
4529 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
4530 (x_frame_get_and_record_arg, x_default_parameter): Add const.
4531
4532 * dired.c (scmp): Add const.
4533 (directory_files_internal): Remove local extern declaration.
4534
4535 * data.c (Finteractive_form): Use const.
4536
4537 * composite.c (syms_of_composite): Remove local extern declarations.
4538
4539 * charset.c (add_to_log): Remove declaration.
4540
4541 * character.c (strwidth, parse_str_to_multibyte): Add const.
4542
4543 * character.h (strwidth, parse_str_to_multibyte): Likewise.
4544
4545 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
4546
89dc303e 4547 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
4548 (Lisp_Subr): Make doc and intspec constant.
4549 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
4550 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
4551 (QCheight, QCsize, QCname, QCwidth, QCforeground)
4552 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
4553 (display_arg): Add declarations.
89dc303e 4554
0ed082fe 45552010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
4556
4557 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
4558
0ed082fe
JB
4559 * window.c (Fwindow_height): Doc fix (bug#6518).
4560
45612010-07-27 Juanma Barranquero <lekktu@gmail.com>
4562
4563 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
4564
ccaf0336
DN
45652010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
4566
977105dc
DN
4567 * keyboard.c (Ftop_level, Fexit_recursive_edit)
4568 (Fabort_recursive_edit): Remove return statements in NO_RETURN
4569 functions.
4570
f5ada890
DN
4571 * frame.h (Qtty_color_mode): Add declaration.
4572
ccaf0336
DN
4573 * lisp.h (Ftop_level, Fexit_recursive_edit)
4574 (Fabort_recursive_edit): Mark as NO_RETURN.
4575
dfe3c90f
KH
45762010-07-26 Kenichi Handa <handa@m17n.org>
4577
4578 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 4579 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 4580
7d383292
JB
45812010-07-26 Juanma Barranquero <lekktu@gmail.com>
4582
4583 * lread.c (unreadpure, mapatoms_1): Make static.
4584
da31e629
JB
45852010-07-25 Juanma Barranquero <lekktu@gmail.com>
4586
4587 * terminfo.c (tparam): Fix prototype of tparm.
4588
7bfa6d77
AS
45892010-07-25 Andreas Schwab <schwab@linux-m68k.org>
4590
dcc19aac
AS
4591 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
4592 find start of text segment.
4593 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
4594 is defined.
4595
7bfa6d77
AS
4596 * callproc.c (set_initial_environment): Avoid unbalanced braces.
4597
63f9a672
KB
45982010-07-25 Ken Brown <kbrown@cornell.edu>
4599
4600 * vm-limit.c (check_memory_limits): Fix previous change;
4601 accidentally reverted an earlier change.
4602
24933075
KB
46032010-07-25 Ken Brown <kbrown@cornell.edu>
4604
4605 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
4606 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
4607
361358ea
JB
46082010-07-25 Juanma Barranquero <lekktu@gmail.com>
4609
4610 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
4611 * dired.c (opendir, readdir): Fix prototypes.
4612 * editfns.c (w32_get_internal_run_time): Fix prototypes.
4613 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
4614 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
4615 (telldir): Remove declaration.
4616 * ralloc.c (real_morecore, __morecore): Fix prototypes.
4617 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
4618 * syssignal.h (strsignal): Fix prototype.
4619 * term.c (tparam): Fix prototype.
4620 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
4621 (term_get_fkeys): Set inside "#ifndef DOS_NT".
4622 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
4623 and __morecore.
4624 * w32gui.h (XParseGeometry): Fix prototype.
4625 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
4626 * w32term.c (my_set_focus): Declare inside #if 0.
4627 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
4628 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
4629 (drain_message_queue, get_next_msg, post_msg, parse_button)
4630 (ClipboardSequence_Proc): Fix prototypes.
4631 (wait_for_sync): Remove declaration.
4632
630b9592
JB
46332010-07-24 Juanma Barranquero <lekktu@gmail.com>
4634
4635 * w32fns.c (w32_to_x_color): Remove, unused.
4636
6a0d6611
AS
46372010-07-24 Andreas Schwab <schwab@linux-m68k.org>
4638
4639 * lisp.h: Remove leftover P_.
4640
4e8608ff
DN
46412010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
4642
4643 * ecrt0.c, unexalpha.c: Remove files, unused.
4644
c8197983
AS
46452010-07-24 Andreas Schwab <schwab@linux-m68k.org>
4646
4647 * cmds.c (internal_self_insert): Make static.
4648 * lisp.h (internal_self_insert): Remove declaration.
4649
97b372d7
JB
46502010-07-23 Juanma Barranquero <lekktu@gmail.com>
4651
33ac0414
JB
4652 * alloc.c (free_float):
4653 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
4654 * frame.c (delete_frame_handler):
4655 * ralloc.c (reorder_bloc):
4656 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
4657 Remove unused static functions.
4658
94da8397
JB
4659 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
4660 it is called only from NS code.
4661
2e6c8532
JB
4662 * w32term.c (my_set_focus): #ifdef away; it is called only from
4663 "#ifdef 0" code.
4664
97b372d7
JB
4665 * w32fns.c (x_edge_detection):
4666 * xfaces.c (may_use_scalable_font_p):
4667 Remove obsolete static declarations.
4668
7c3320d8
JB
46692010-07-20 Juanma Barranquero <lekktu@gmail.com>
4670
4671 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
4672 (emacs_blocked_realloc, uninterrupt_malloc):
4673 * fringe.c (w32_reset_fringes):
4674 * image.c (convert_mono_to_color_image, lookup_rgb_color)
4675 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
4676 * sound.c (be2hs, do_play_sound):
4677 * vm-limit.c (get_lim_data, ret_lim_data):
4678 * w32term.c (x_free_frame_resources):
4679 * xfaces.c (x_create_gc, x_free_gc):
4680 Convert definitions to standard C.
4681
d5273788
SM
46822010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
4683
4684 * eval.c (Feval, Ffuncall): Use the new names.
4685
4686 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
4687 (DEFUN): Add braces around the union initialisation and use ## to
4688 specify the right union alternative and avoid a cast.
4689
8d16a259
JB
46902010-07-18 Juanma Barranquero <lekktu@gmail.com>
4691
4692 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
4693
3b8eff32
CY
46942010-07-17 Chong Yidong <cyd@stupidchicken.com>
4695
4696 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
4697
499322ce
J
46982010-07-17 Jan Djärv <jan.h.d@swipnet.se>
4699
4700 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
4701 is related to the menu bar (Bug#6499).
a628ad9d 4702 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 4703
f6003da5 47042010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
4705
4706 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
4707
4708 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
4709
4710 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
4711 i.e. don't put back ButtonRelease (Bug#6608).
4712
4713 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
4714 instead of Window. Call xg_event_is_for_menubar when
4715 USE_GTK (Bug#6499).
4716
4717 * gtkutil.h (xg_event_is_for_menubar): Declare.
4718
4719 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
4720
f6003da5 47212010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
4722
4723 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
4724 when it's the same as the old foreground. (Bug#6609)
4725
23243f29
J
47262010-07-16 Jan Djärv <jan.h.d@swipnet.se>
4727
4728 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
4729 widget is non-null (Bug#6645).
4730
2b23d2a6
AS
47312010-07-15 Andreas Schwab <schwab@linux-m68k.org>
4732
01b564ff
AS
4733 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
4734 Convert old-style definition.
4735
2b23d2a6
AS
4736 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
4737 timestamp argument.
4738
c4affd2c
EZ
47392010-07-15 Eli Zaretskii <eliz@gnu.org>
4740
4741 * fringe.c (update_window_fringes): Restore mistakenly reverted
4742 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
4743
cf28cebc
J
47442010-07-14 Jan Djärv <jan.h.d@swipnet.se>
4745
4746 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
4747 (SET_SAVED_KEY_EVENT): Remove (not used).
4748 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
4749 remove size parameter.
4750 (handle_one_xevent): Check popup_activated () for menu for Xt also.
4751 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
4752 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
4753 ButtonRelease.
6b2c4bd9
J
4754 (x_set_window_size_1): scroll_bar_actual_width is always
4755 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
4756
4757 * xdisp.c (pending_menu_activation): Remove extern declaration.
4758 (prepare_menu_bars): Remove setting of pending_menu_activation.
4759
4760 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
4761 (x_activate_menubar): Set popup_activated_flag for Xt also.
4762 Remove setting of pending_menu_activation.
cf28cebc
J
4763 (set_frame_menubar): Remove check of pending_menu_activation.
4764 Declare menubar_size before code. Correct spelling in comment.
4765
f6c1c771
KH
47662010-07-14 Kenichi Handa <handa@m17n.org>
4767
4768 * font.c (font_open_entity): Cancel previous change.
4769 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
4770
20477505
EZ
47712010-07-13 Eli Zaretskii <eliz@gnu.org>
4772
77defa9a
EZ
4773 Remove subprocesses #ifdefs.
4774 * process.c <inhibit_sentinels>: Move to the common part.
4775 (Fwaiting_for_user_input_p): Move to the common part; return nil
4776 if async subprocesses aren't supported.
4777 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
4778 MS-DOS. Remove "#ifdef subprocesses".
4779 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
4780 (gettimeofday): Remove "#ifdef subprocesses".
4781 (wait_without_blocking): Remove function.
4782 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
4783 Remove "#ifdef subprocesses".
4784 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
4785 compiled on MS-DOS.
4786 * callproc.c (Fcall_process) [!MSDOS]: Don't call
4787 wait_for_termination on MS-DOS.
4788 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
4789 initialization of inhibit_sentinels.
4790 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
4791 subprocesses" conditional.
4792 * callproc.c (Fcall_process) [!subprocesses]: Don't call
4793 wait_for_termination, since `buffer' cannot be an integer when
4794 async subprocesses are not supported
4795 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
4796 for ifdefing away the call to Fprocess_status.
4797
20477505
EZ
4798 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
4799 away the entire body of the function.
4800
b3ffc17c
DN
48012010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
4802
01faa934
DN
4803 Remove subprocesses #ifdefs from term.c.
4804 * process.c (add_keyboard_wait_descriptor)
4805 (delete_keyboard_wait_descriptor): Move to common section, do
4806 nothing when subprocesses is not defined.
a628ad9d
JB
4807 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
4808 Remove subprocesses #ifdefs.
01faa934 4809
b3ffc17c
DN
4810 Convert maybe_fatal to standard C.
4811 * lisp.h (verror): Declare.
4812 * eval.c (verror): New function containing the code from ...
4813 (error): ... this. Call verror.
4814 * term.c (vfatal): New function containing the code from ...
4815 (fatal): ... this. Call vfatal.
4816 (maybe_fatal): Convert to standard C, use variable number of
4817 arguments. Declare as non-return.
4818 (init_tty): Fix maybe_fatal call.
4819
0521f580
DN
48202010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
4821
4822 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
4823 (_scroll_bar_note_movement): Convert definitions to standard C.
4824 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
4825 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
4826
ebd15611
DN
48272010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
4828
4829 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
4830 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
4831 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
4832 (xaw_jump_callback, xaw_scroll_callback)
4833 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
bba3e508
SM
4834 (x_wm_set_size_hint, x_activate_timeout_atimer):
4835 Convert definitions to standard C.
ebd15611
DN
4836 * xmenu.c (menubar_id_to_frame, popup_get_selection)
4837 (popup_activate_callback, popup_deactivate_callback)
4838 (menu_highlight_callback, menubar_selection_callback)
4839 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
4840 (free_frame_menubar, popup_selection_callback, as)
4841 (create_and_show_popup_menu, dialog_selection_callback)
4842 (create_and_show_dialog):
4843 * xfns.c (hack_wm_protocols, x_window):
4844 * xfaces.c (x_update_menu_appearance):
4845 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
4846 (char_to_pixel_size, round_size_to_char, get_wm_shell)
4847 (set_frame_size, update_wm_hints, setup_frame_gcs)
4848 (update_various_frame_slots, update_from_various_frame_slots)
4849 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
4850 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
4851 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
4852
de06a2dd
AS
48532010-07-12 Andreas Schwab <schwab@linux-m68k.org>
4854
a628ad9d 4855 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 4856
fc549af9
EZ
48572010-07-12 Eli Zaretskii <eliz@gnu.org>
4858
4859 * process.c (setup_process_coding_systems): Move to the part
4860 shared by non-subprocesses systems, and make its body empty when
4861 subprocesses is not defined.
4862 (close_process_descs): Move to the part shared by non-subprocesses
4863 systems.
1408902e
EZ
4864 (wait_reading_process_output) [!subprocesses]: Convert arg list to
4865 ANSI C.
fc549af9 4866
d5a3eaaf
AS
48672010-07-12 Andreas Schwab <schwab@linux-m68k.org>
4868
4869 * editfns.c (transpose_markers): Convert old-style definition.
4870 * emacs.c (abort, shut_down_emacs, fixup_locale)
4871 (synchronize_system_time_locale)
4872 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
4873 * floatfns.c (extract_float, matherr, init_floatfns)
4874 (syms_of_floatfns): Likewise.
4875 * fns.c (make_hash_table): Likewise.
4876 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
4877 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
4878 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
4879 (ftfont_variation_glyphs): Likewise.
4880 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
4881 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
4882 * lread.c (read_filtered_event): Likewise.
4883 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
4884 * process.c (wait_reading_process_output): Likewise.
4885 * scroll.c (do_line_insertion_deletion_costs): Likewise.
4886 * search.c (search_buffer, boyer_moore): Likewise.
4887 * syntax.c (scan_sexps_forward): Likewise.
4888 * xdisp.c (try_scrolling): Likewise.
4889 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
4890 (face_at_string_position): Likewise.
4891 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
4892 * xselect.c (x_get_window_property, receive_incremental_selection)
4893 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
4894 Likewise.
4895 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
4896
6f704c76
DN
48972010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
4898
ded80a25
DN
4899 * callproc.c (child_setup): Remove subprocesses conditional.
4900 Remove code dealing with SET_EMACS_PRIORITY, unused.
4901
49d937f4 4902 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
4903 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
4904
4905 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
4906 (__do_global_dtors, __main): Use void in definition.
4907 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
4908 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
4909 the only users from ...
4910 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
4911 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
4912 (HAVE_VOLATILE): Remove, unused.
4913
6f704c76
DN
4914 Convert more function definitions to standard C.
4915 * xdisp.c (window_box_edges, handle_single_display_spec)
4916 (display_string): Convert definition to standard C.
4917 * scroll.c (do_direct_scrolling, scrolling_1):
4918 * dispnew.c (allocate_matrices_for_frame_redisplay)
4919 (mirrored_line_dance):
4920 * coding.c (code_convert_string):
4921 * charset.c (map_charset_chars):
4922 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
4923 (Fregister_ccl_program, Fregister_code_conversion_map):
4924 * keyboard.c (kbd_buffer_nr_stored): Likewise.
4925 (head_table): Make static and const.
4926
e6cfa7c3
AS
49272010-07-12 Andreas Schwab <schwab@linux-m68k.org>
4928
4929 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
4930 (PROFILING_LDFLAGS): Set from substitution.
4931 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
4932 CFLAGS last.
4933
892dd565
KH
49342010-07-12 Kenichi Handa <handa@m17n.org>
4935
6f2cdcd1
KH
4936 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
4937 (shortlisp): Likewise.
4938
892dd565
KH
4939 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
4940
4941 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
4942 of FONT_ENTITY_INDEX.
4943 (Ffont_get): If KEY is :otf and the font-object doesn't have the
4944 property, get the property value dynamically.
4945 (Ffont_put): Accept font-entity and font-object too.
ef1b0ba7 4946 (Ffont_get_glyhphs): Rename from Fget_font_glyphs. Arguments and
892dd565 4947 return value changed.
bba3e508 4948 (syms_of_font): Adjust for the above change.
892dd565 4949
ae96d47a
AS
49502010-07-11 Andreas Schwab <schwab@linux-m68k.org>
4951
c8fc18ee
AS
4952 * blockinput.h: Remove obsolete comment.
4953
89887d67
AS
4954 * lisp.h: Include <stddef.h>.
4955 (OFFSETOF): Don't define.
4956 (VECSIZE): Use offsetof instead of OFFSETOF.
4957 (PSEUDOVECSIZE): Likewise.
4958 * process.c (conv_sockaddr_to_lisp): Likewise.
4959 * alloc.c: Don't include <stddef.h>.
4960 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
4961
ae96d47a
AS
4962 * process.c: Remove obsolete comment.
4963
635c0aa1
CY
49642010-07-11 Chong Yidong <cyd@stupidchicken.com>
4965
4966 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
4967
a64df650
AS
49682010-07-11 Andreas Schwab <schwab@linux-m68k.org>
4969
8966b757
AS
4970 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
4971 index, rindex.
4972 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
4973 * editfns.c (Fuser_full_name, Fformat): Likewise.
4974 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
4975 * fileio.c (Ffile_symlink_p): Likewise.
4976 * filelock.c (current_lock_owner): Likewise.
4977 * font.c (font_parse_name, font_parse_family_registry): Likewise.
4978 * fontset.c (fontset_pattern_regexp): Likewise.
4979 * lread.c (read1): Likewise.
4980 * sysdep.c (init_system_name): Likewise.
4981 * xfns.c (select_visual): Likewise.
4982 * s/hpux10-20.h (index, rindex): Don't define.
4983 * s/ms-w32.h (index): Likewise.
4984 * s/usg5-4.h: Likewise.
4985
cf237e27
AS
4986 * callproc.c (relocate_fd): Use F_DUPFD if defined.
4987
a8fe7202
AS
4988 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
4989 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
4990 (egetenv): Likewise.
4991 * doprnt.c (doprnt): Likewise.
4992 * editfns.c (set_time_zone_rule, format2): Likewise.
4993 * emacs.c (decode_env_path): Likewise.
4994 * eval.c (signal_error, error): Likewise.
4995 * insdel.c (replace_range_2): Likewise.
4996 * keyboard.c (cmd_error_internal): Likewise.
4997 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
4998 * print.c (write_string, write_string_1, print_error_message):
4999 Likewise.
5000 * vm-limit.c (warn_function, memory_warnings): Likewise.
5001 * xdisp.c (message1, message1_nolog, message_with_string)
5002 (vmessage, message, message_nolog): Likewise.
5003 * emacs.c: Remove duplicate declaration.
5004 * keyboard.h: Likewise.
5005 * lisp.h: Update prototypes.
5006
bb8e180f
AS
5007 * eval.c: Fix indentation problem.
5008
83380e65
AS
5009 * keyboard.c: Include "process.h"
5010
a64df650
AS
5011 * eval.c: Remove obsolete noinline declaration.
5012 * fns.c: Likewise.
5013
6a8033e1
KR
50142010-07-11 Ken Raeburn <raeburn@raeburn.org>
5015
5016 * doprnt.c (doprnt): Take a va_list argument instead of count and
5017 pointer.
5018 * eval.c (error): Change to a standard-C variadic function.
ef1b0ba7 5019 * xdisp.c (vmessage): Rename from message, made static, and
6a8033e1
KR
5020 changed to take a va_list argument.
5021 (message): New variadic wrapper.
5022 (message_nolog): Now a variadic function, calling vmessage.
5023 * lisp.h: Include stdarg.h for va_list.
5024 (doprnt, error, message, message_nolog): Decls updated.
5025
462aa963
EZ
50262010-07-11 Eli Zaretskii <eliz@gnu.org>
5027
5028 * process.c (syms_of_process) <delete-exited-processes>: Define
5029 even if !subprocesses.
5030 (delete_exited_processes): Ditto.
5031
5032 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
5033 (delete_exited_processes): Don't define.
5034
48104462
CY
50352010-07-10 Chong Yidong <cyd@stupidchicken.com>
5036
5037 * frame.c (make_frame): Initialize menu_bar_lines and
5038 tool_bar_lines members.
bba3e508
SM
5039 (make_initial_frame, make_terminal_frame):
5040 Initialize menu_bar_lines using value of menu-bar-mode.
48104462
CY
5041
5042 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
5043
f388c88a
EZ
50442010-07-10 Eli Zaretskii <eliz@gnu.org>
5045
5046 * process.c: Reshuffle #include's. Condition some of the global
5047 and static variables on `subprocesses'.
5048 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
5049 Leave only one implementation.
5050 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
5051 (kill_buffer_processes, Flist_system_processes)
5052 (Fprocess_attributes, init_process, syms_of_process): Unify the
5053 implementations for with subprocesses and without them.
5054
723f5a07
J
50552010-07-09 Jan Djärv <jan.h.d@swipnet.se>
5056
5057 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
5058 correct size for Motif.
5059 (free_frame_menubar): Call x_set_window_size to update frame size.
5060
5061 * xfns.c (x_window): Set borderWidth to 0 for pane and
5062 EmacsFrame. Frame size calculation is wrong otherwise.
5063
2536a4b7
MA
50642010-07-09 Michael Albinus <michael.albinus@gmx.de>
5065
5066 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
5067 allows to suppress errors when polling in Emacs' main loop.
5068 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
5069 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
5070 (Fdbus_method_error_internal, Fdbus_send_signal)
5071 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
5072 (Fdbus_register_method): Use it. (Bug#6579)
5073
5842a27b
DN
50742010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
5075
5076 * alloc.c: Convert DEFUNs to standard C.
5077 * buffer.c:
5078 * bytecode.c:
5079 * callint.c:
5080 * callproc.c:
5081 * casefiddle.c:
5082 * casetab.c:
5083 * category.c:
5084 * character.c:
5085 * charset.c:
5086 * chartab.c:
5087 * cmds.c:
5088 * coding.c:
5089 * composite.c:
5090 * data.c:
5091 * dbusbind.c:
5092 * dired.c:
5093 * dispnew.c:
5094 * doc.c:
5095 * dosfns.c:
5096 * editfns.c:
5097 * emacs.c:
5098 * eval.c:
5099 * fileio.c:
5100 * filelock.c:
5101 * floatfns.c:
5102 * fns.c:
5103 * font.c:
5104 * fontset.c:
5105 * frame.c:
5106 * fringe.c:
5107 * image.c:
5108 * indent.c:
5109 * insdel.c:
5110 * keyboard.c:
5111 * keymap.c:
5112 * lread.c:
5113 * macros.c:
5114 * marker.c:
5115 * menu.c:
5116 * minibuf.c:
5117 * msdos.c:
5118 * nsfns.m:
5119 * nsmenu.m:
5120 * nsselect.m:
5121 * print.c:
5122 * process.c:
5123 * search.c:
5124 * sound.c:
5125 * syntax.c:
5126 * term.c:
5127 * terminal.c:
5128 * textprop.c:
5129 * undo.c:
5130 * w16select.c:
5131 * w32console.c:
5132 * w32fns.c:
5133 * w32font.c:
5134 * w32menu.c:
5135 * w32proc.c:
5136 * w32select.c:
5137 * window.c:
5138 * xdisp.c:
5139 * xfaces.c:
5140 * xfns.c:
5141 * xmenu.c:
5142 * xselect.c:
5143 * xsettings.c:
5144 * xsmfns.c: Likewise.
5145
d568829b
EZ
51462010-07-08 Eli Zaretskii <eliz@gnu.org>
5147
5148 * process.c (kbd_is_on_hold, hold_keyboard_input)
5149 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
5150
52214050
J
51512010-07-08 Jan Djärv <jan.h.d@swipnet.se>
5152
5153 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
5154 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
5155 unless USE_LUCID.
5156
313d9eb2
DN
51572010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
5158
a628ad9d
JB
5159 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
5160 declaration.
d8825aa3 5161
295d0d8f
DN
5162 Clean up include guards.
5163 * tparam.c: Remove include guards for config.h, string.h and code
5164 that assumes #ifndef emacs.
5165 * termcap.c:
5166 * unexalpha.c:
5167 * sysdep.c:
5168 * filemode.c:
5169 * filelock.c:
5170 * bidi.c: Likewise.
5171
49d9e6b0
DN
5172 Remove prefix-args.c
5173 * prefix-args.c: Remove file.
5174 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
5175 * Makefile.in (temacs${EXEEXT}): Remove references to
5176 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
5177 (mostlyclean): Remove reference to prefix-args.
5178 (prefix-args): Remove.
5179
313d9eb2
DN
5180 Simplify cstart_of_data, start_of_code and related code.
5181 * mem-limits.h: Remove !emacs and _LIBC conditional code.
5182 (start_of_data): Merge into start_of_data function.
5183 * sysdep.c (start_of_text): Remove. Move simplified versions of
5184 it in the only users: unexaix.c and unexec.c.
5185 (read_input_waiting): Remove local declaration of quit_char.
5186 (start, etext): Remove declarations.
5187 (start_of_data): Merge with the version in mem-limits.h and move
5188 to vm-limits.c.
5189 * vm-limit.c (start_of_data): Merged and simplified version of the
5190 code formerly in mem-limits.h and sysdep.c.
5191 * unexec.c (start): New declaration, moved from sysdep.c.
5192 (start_of_text): Simplified version of the code formerly in sysdep.c.
5193 * unexaix.c (start_of_text): Simplified version of the code
5194 formerly in sysdep.c.
5195 * m/alpha.h (HAVE_TEXT_START): Remove.
5196 (TEXT_START): Move ...
5197 * unexalpha.c (TEXT_START): ... here.
5198 * s/hpux10-20.h (TEXT_START): Remove.
5199 * s/darwin.h (TEXT_START):
5200 * m/mips.h (TEXT_START):
5201 * m/macppc.h (HAVE_TEXT_START):
5202 * m/m68k.h (TEXT_START):
5203 * m/iris4d.h (TEXT_START):
5204 * m/intel386.h (TEXT_START):
5205 * m/ibmrs6000.h (TEXT_START):
5206 * m/ia64.h (HAVE_TEXT_START):
5207 * s/msdos.h (TEXT_START): Likewise.
5208
72af86bd
AS
52092010-07-07 Andreas Schwab <schwab@linux-m68k.org>
5210
5211 * alloc.c (overrun_check_malloc, overrun_check_realloc)
5212 (overrun_check_free, xstrdup, allocate_string)
5213 (allocate_string_data, compact_small_strings, Fmake_string)
5214 (make_unibyte_string, make_multibyte_string)
5215 (make_string_from_bytes, make_specified_string, make_float)
5216 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
5217 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
5218 memcpy, memmove, memset, memcmp.
5219 * atimer.c (start_atimer, set_alarm): Likewise.
5220 * buffer.c (clone_per_buffer_values, report_overlay_modification)
5221 (mmap_realloc, init_buffer_once): Likewise.
5222 * callint.c (Fcall_interactively): Likewise.
5223 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
5224 (getenv_internal_1): Likewise.
5225 * casefiddle.c (casify_object): Likewise.
5226 * ccl.c (ccl_driver): Likewise.
5227 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
5228 * charset.c (load_charset_map_from_file)
5229 (load_charset_map_from_file, load_charset_map_from_vector)
5230 (Fdefine_charset_internal): Likewise.
5231 * cm.c (Wcm_clear): Likewise.
5232 * coding.c (decode_eol, decode_coding_object)
5233 (Fset_coding_system_priority, make_subsidiaries): Likewise.
5234 * data.c (Faset): Likewise.
5235 * dired.c (directory_files_internal, file_name_completion_stat):
5236 Likewise.
5237 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
5238 (clear_glyph_row, copy_row_except_pointers)
5239 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
5240 (save_current_matrix, restore_current_matrix)
5241 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
5242 (mirror_line_dance, scrolling_window): Likewise.
5243 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
5244 Likewise.
5245 * doprnt.c (doprnt): Likewise.
5246 * editfns.c (Fuser_full_name, make_buffer_string_both)
5247 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
5248 * emacs.c (sort_args): Likewise.
5249 * eval.c (Fapply, Ffuncall): Likewise.
5250 * fileio.c (Ffile_name_directory, make_temp_name)
5251 (Fexpand_file_name, search_embedded_absfilename)
5252 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
5253 (auto_save_error): Likewise.
5254 * fns.c (Fstring_equal, Fcopy_sequence, concat)
5255 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
5256 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
5257 (Fmake_hash_table): Likewise.
5258 * fringe.c (Fdefine_fringe_bitmap): Likewise.
5259 * ftfont.c (ftfont_text_extents): Likewise.
5260 * getloadavg.c (getloadavg): Likewise.
5261 * image.c (define_image_type, make_image, make_image_cache)
5262 (x_create_x_image_and_pixmap, xbm_image_p)
5263 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
5264 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
5265 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
5266 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
5267 (tiff_image_p, tiff_read_from_memory, gif_image_p)
5268 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
5269 Likewise.
5270 * indent.c (scan_for_column, compute_motion): Likewise.
5271 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
5272 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
5273 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
5274 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
5275 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
5276 (store_user_signal_events, menu_bar_items, tool_bar_items)
5277 (process_tool_bar_item, append_tool_bar_item)
5278 (read_char_minibuf_menu_prompt, read_key_sequence)
5279 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
5280 Likewise.
5281 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
5282 Likewise.
5283 * lisp.h (STRING_COPYIN): Likewise.
5284 * lread.c (Fload, read1, oblookup): Likewise.
5285 * msdos.c (Frecent_doskeys): Likewise.
5286 * nsfns.m (Fx_create_frame): Likewise.
5287 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
5288 Likewise.
5289 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
5290 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
5291 Likewise.
5292 * nsmenu.m (ns_update_menubar): Likewise.
5293 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
5294 * print.c (print_unwind, printchar, strout, print_string)
5295 (print_error_message): Likewise.
5296 * process.c (conv_lisp_to_sockaddr, set_socket_option)
5297 (Fmake_network_process, Fnetwork_interface_list)
5298 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
5299 (init_process): Likewise.
5300 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
5301 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
5302 Likewise.
5303 * scroll.c (do_scrolling, do_direct_scrolling)
5304 (scrolling_max_lines_saved): Likewise.
5305 * search.c (search_buffer, wordify, Freplace_match): Likewise.
5306 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
5307 * syntax.c (skip_chars, skip_syntaxes): Likewise.
5308 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
5309 (emacs_set_tty): Likewise.
5310 * term.c (encode_terminal_code, calculate_costs)
5311 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
5312 Likewise.
5313 * termcap.c (tgetst1, gobble_line): Likewise.
5314 * termhooks.h (EVENT_INIT): Likewise.
5315 * tparam.c (tparam1): Likewise.
5316 * unexalpha.c (unexec): Likewise.
5317 * unexec.c (write_segment): Likewise.
5318 * unexmacosx.c (unexec_write_zero): Likewise.
5319 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
5320 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
5321 * w32font.c (w32font_list_family, w32font_text_extents)
5322 (w32font_list_internal, w32font_match_internal)
5323 (w32font_open_internal, compute_metrics, Fx_select_font):
5324 Likewise.
5325 * w32menu.c (set_frame_menubar, add_menu_item)
5326 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
5327 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
5328 * w32uniscribe.c (uniscribe_list_family): Likewise.
5329 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
5330 * window.c (make_window, replace_window, set_window_buffer)
5331 (Fsplit_window): Likewise.
5332 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
5333 (add_to_log, message3, x_consider_frame_title)
5334 (append_space_for_newline, extend_face_to_end_of_line)
5335 (decode_mode_spec_coding, init_glyph_string): Likewise.
5336 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
5337 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
5338 (face_attr_equal_p, make_realized_face, make_face_cache)
5339 (free_realized_faces, lookup_named_face, smaller_face)
5340 (face_with_height, lookup_derived_face)
5341 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
5342 (Finternal_set_font_selection_order, realize_default_face)
5343 (compute_char_face, face_at_buffer_position)
5344 (face_for_overlay_string, face_at_string_position, merge_faces):
5345 Likewise.
5346 * xfns.c (xic_create_fontsetname, Fx_create_frame)
5347 (Fx_window_property, x_create_tip_frame)
5348 (Fx_backspace_delete_keys_p): Likewise.
5349 * xfont.c (xfont_list, xfont_match, xfont_list_family)
5350 (xfont_text_extents): Likewise.
5351 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
5352 * xrdb.c (magic_file_p, x_get_resource): Likewise.
5353 * xselect.c (x_queue_event, x_get_window_property)
5354 (receive_incremental_selection): Likewise.
5355 * xsmfns.c (x_session_check_input): Likewise.
5356 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
5357 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
5358 Likewise.
5359 * character.h (BCOPY_SHORT): Removed.
5360 * config.in: Regenerate.
5361 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
5362 * emacs.c (main) [PROFILING]: Don't declare
5363 dump_opcode_frequencies.
5364 * lisp.h (safe_bcopy): Remove declaration.
5365 (memset) [!HAVE_MEMSET]: Declare.
5366 (memcpy) [!HAVE_MEMCPY]: Likewise.
5367 (memmove) [!HAVE_MEMMOVE]: Likewise.
5368 (memcmp) [!HAVE_MEMCMP]: Likewise.
5369 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
5370 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
5371 Don't define.
5372 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
5373 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
5374 (BCOPY_DOWNWARD_SAFE): Don't define.
5375 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
5376 (memcpy) [!HAVE_MEMCPY]: Define.
5377 (memmove) [!HAVE_MEMMOVE]: Define.
5378 (memcmp) [!HAVE_MEMCMP]: Define.
5379
cb768704
J
53802010-07-07 Jan Djärv <jan.h.d@swipnet.se>
5381
5382 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
5383 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
5384 New functions.
cb768704
J
5385 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
5386 select on empty input mask.
5387 (init_process): Initialize kbd_is_on_hold to 0.
5388
5389 * process.h (hold_keyboard_input, unhold_keyboard_input)
5390 (kbd_on_hold_p): Declare.
5391
5392 * keyboard.c (input_available_signal): Declare.
5393 (kbd_buffer_nr_stored): New function.
5394 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
5395 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
5396 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
5397 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
5398 (tty_read_avail_input): If input is on hold, return.
5399 Don't read more that free slots in kbd_buffer (Bug#6571).
5400
3a8ce822
EZ
54012010-07-07 Eli Zaretskii <eliz@gnu.org>
5402
5403 * msdos.h:
5404 * msdos.c:
5405 * dosfns.c:
5406 * w16select.c: Convert function definitions to ANSI C.
5407
a628ad9d
JB
5408 * msdos.h (ctrl_break_func, install_ctrl_break_check):
5409 Remove unused prototypes.
3a8ce822 5410
cf84bb53
JB
54112010-07-07 Juanma Barranquero <lekktu@gmail.com>
5412
5413 * coding.c, sysdep.c: Convert some more functions to standard C.
5414
1a4990fb
JB
54152010-07-07 Juanma Barranquero <lekktu@gmail.com>
5416
5417 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
5418 (encode_coding_object): Use SPECPDL_INDEX.
5419 (syms_of_coding): Use DOS_NT.
5420
c0f2f16b
DN
54212010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
5422
48fb6855
DN
5423 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
5424
c0f2f16b
DN
5425 Make the function member of Lisp_Subr use standard C prototypes.
5426 * lisp.h (struct Lisp_Subr): Use a union for the function member.
5427 (DECL_ALIGN): Add a cast for the function.
5428 * eval.c (Feval, Ffuncall): Use the proper type for each type
5429 function call.
5430
67aecef9
CY
54312010-07-06 Chong Yidong <cyd@stupidchicken.com>
5432
5433 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
5434 fringe face id, so face-remapping-alist works (Bug#6091).
5435
b56ceb92
JB
54362010-07-06 Juanma Barranquero <lekktu@gmail.com>
5437
5438 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
5439 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
5440 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
5441
7af07b96
AS
54422010-07-06 Andreas Schwab <schwab@linux-m68k.org>
5443
5444 * xterm.c (x_get_keysym_name): Change type of parameter to int.
5445 * lisp.h: Declare x_get_keysym_name.
5446 * keyboard.c (modify_event_symbol): Don't declare
5447 x_get_keysym_name here.
5448
69e24e34
DN
54492010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
5450
5451 * ecrt0.c: Revert conversion to standard C.
5452
d3da34e0 54532010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
5454
5455 * vm-limit.c (memory_warnings):
5456 * keyboard.c (modify_event_symbol):
5457 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
5458 (round2, emacs_rint):
5459 * process.c (send_process, old_sigpipe): Convert function
5460 definitions and declarations to standard C.
5461
54622010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
5463
5464 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
5465 * xdisp.c: Convert function definitions to standard C.
5466
5467 * cm.c (cmputc): Arg C is now int, not char.
5468 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
5469
00be444c
J
54702010-07-05 James Cloos <cloos@jhcloos.com>
5471
5472 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
5473
5474 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
5475 _NET_WM_ICON_NAME atoms.
5476
5477 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
5478 and _NET_WM_ICON_NAME properties, too, matching what is
5479 done in the Gtk+ case.
5480
e4c8d29a
J
54812010-07-05 Jan Djärv <jan.h.d@swipnet.se>
5482
ff919460
J
5483 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
5484
e4c8d29a
J
5485 * xsmfns.c (SSDATA): New macro.
5486 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
5487 passed to strlen/strcpy/strcat.
bba3e508
SM
5488 (create_client_leader_window): Surround with #ifndef USE_GTK.
5489 Cast 7:th arg to XChangeProperty to (unsigned char *).
e4c8d29a
J
5490
5491 * xsettings.c (something_changedCB, parse_settings)
5492 (apply_xft_settings): Reformat prototype.
5493 (something_changedCB, init_gconf): Remove unused variable i.
5494 (read_settings): Remove unused variable long_len.
5495
5496 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
5497 (xg_get_image_for_pixmap, create_dialog)
5498 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
5499 (menuitem_highlight_callback, make_menu_item)
5500 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
5501 (xg_create_scroll_bar, xg_update_scrollbar_pos)
5502 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
5503 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
5504 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
5505 (xg_tool_bar_item_expose_callback): Reformat prototype.
5506 (xg_update_menubar): GList *group => GSList *group.
5507 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
5508 before use.
5509 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
5510 to GTK_IMAGE (wimage).
5511
dd4c5104
DN
55122010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
5513
898b4c5c
DN
5514 * atimer.c: Use "" instead of <> for local includes for
5515 consistency with the rest of the code.
5516
dd4c5104
DN
5517 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
5518 * xrdb.c (get_system_name):
5519 * window.c (shrink_windows):
5520 * syntax.c (forw_comment):
5521 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
5522 (ins_del_costs):
5523 * mem-limits.h (start_of_data):
5524 * lread.c (readevalloop):
5525 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
5526 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
5527 * frame.c (x_get_focus_frame):
5528 * floatfns.c (fmod_float):
5529 * fileio.c (choose_write_coding_system):
5530 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
5531 (malloc_initialize_hook, sort_args, synchronize_locale):
5532 * doprnt.c (doprnt):
5533 * dired.c (compile_pattern):
5534 * data.c (fmod_float):
5535 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
5536 (map_char_table_for_charset):
5537 * charset.c (define_charset_internal):
5538 * alloc.c (Fgarbage_collect): Convert declarations or definitions
5539 to standard C.
5540
9a39b306 55412010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 5542 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
5543
5544 * lread.c (read1): Fix up last change to not mess up `c'.
5545
e6cb2cbb
JB
55462010-07-04 Juanma Barranquero <lekktu@gmail.com>
5547
5548 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
5549
438105ed
JB
55502010-07-04 Juanma Barranquero <lekktu@gmail.com>
5551
5552 Fix prototypes.
5553
e5447b22 5554 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 5555 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
5556 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
5557 arg, as required by internal_condition_case_1.
dcc7404b 5558 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
5559 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
5560 (analyse_first): Fix "const const".
e5447b22 5561 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 5562 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 5563 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 5564
971de7fb
DN
55652010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
5566
5567 * alloc.c: Convert function definitions to standard C.
5568 * atimer.c:
5569 * bidi.c:
5570 * bytecode.c:
5571 * callint.c:
5572 * callproc.c:
5573 * casefiddle.c:
5574 * casetab.c:
5575 * category.c:
5576 * ccl.c:
5577 * character.c:
5578 * charset.c:
5579 * chartab.c:
5580 * cmds.c:
5581 * coding.c:
5582 * composite.c:
5583 * data.c:
5584 * dbusbind.c:
5585 * dired.c:
5586 * dispnew.c:
5587 * doc.c:
5588 * doprnt.c:
5589 * ecrt0.c:
5590 * editfns.c:
5591 * fileio.c:
5592 * filelock.c:
5593 * filemode.c:
5594 * fns.c:
5595 * font.c:
5596 * fontset.c:
5597 * frame.c:
5598 * fringe.c:
5599 * ftfont.c:
5600 * ftxfont.c:
5601 * gtkutil.c:
5602 * indent.c:
5603 * insdel.c:
5604 * intervals.c:
5605 * keymap.c:
5606 * lread.c:
5607 * macros.c:
5608 * marker.c:
5609 * md5.c:
5610 * menu.c:
5611 * minibuf.c:
5612 * prefix-args.c:
5613 * print.c:
5614 * ralloc.c:
5615 * regex.c:
5616 * region-cache.c:
5617 * scroll.c:
5618 * search.c:
5619 * sound.c:
5620 * strftime.c:
5621 * syntax.c:
5622 * sysdep.c:
5623 * termcap.c:
5624 * terminal.c:
5625 * terminfo.c:
5626 * textprop.c:
5627 * tparam.c:
5628 * undo.c:
5629 * unexelf.c:
5630 * window.c:
5631 * xfaces.c:
5632 * xfns.c:
5633 * xfont.c:
5634 * xftfont.c:
5635 * xgselect.c:
5636 * xmenu.c:
5637 * xrdb.c:
5638 * xselect.c:
5639 * xsettings.c:
5640 * xsmfns.c:
5641 * xterm.c: Likewise.
5642
ae492bec
EZ
56432010-07-03 Eli Zaretskii <eliz@gnu.org>
5644
76ea4cc9
EZ
5645 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
5646 frames other than the initial one. Fix reversal of colors when
bba3e508
SM
5647 `reverse' is specified in the frame parameters.
5648 Call update_face_from_frame_parameter instead of
76ea4cc9
EZ
5649 internal-set-lisp-face-attribute. Initialize screen colors from
5650 initial_screen_colors[] when f->default_face_done_p is zero,
5651 instead of depending on being called with default-frame-alist as
5652 the alist argument.
5653
5654 * xfaces.c (update_face_from_frame_parameter): Move out of
5655 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
5656 with HAVE_WINDOW_SYSTEM.
5657
1e6255ae
EZ
5658 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
5659 to menu-bar-mode, if not set in the frame parameters or in
5660 default-frame-alist.
5661
ae492bec
EZ
5662 * w32console.c (sys_tputs): Adjust argument list to prototype in
5663 term.c.
5664
3a35a84c
JB
56652010-07-03 Juanma Barranquero <lekktu@gmail.com>
5666
5667 * lisp.h (memory_warnings): Fix prototype.
5668
5669 * cm.h (evalcost): Fix prototype.
5670
5671 * cm.c (evalcost): Fix arg type.
5672
c532d349
DN
56732010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
5674
5675 * term.c (term_clear_mouse_face, Fidentity):
5676 * syssignal.h (signal_handler_t):
5677 * lisp.h (memory_warnings):
5678 * coding.h (preferred_coding_system):
5679 * cm.h (evalcost):
5680 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
5681
c0b36d46
EZ
56822010-07-02 Eli Zaretskii <eliz@gnu.org>
5683
5684 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
5685 from prototypes.
5686
5687 * msdos.h (load_pixmap): Don't define away.
5688
383e0970
J
56892010-07-02 Jan Djärv <jan.h.d@swipnet.se>
5690
f57e2426
J
5691 * lisp.h:
5692 * atimer.h: Remove define for P_.
5693
5694 * alloc.c: Remove __P and P_ from .c and .m files.
5695 * atimer.c:
5696 * buffer.c:
5697 * callint.c:
5698 * category.c:
5699 * charset.c:
5700 * chartab.c:
5701 * cm.c:
5702 * coding.c:
5703 * composite.c:
5704 * data.c:
5705 * dired.c:
5706 * dispnew.c:
5707 * doc.c:
5708 * editfns.c:
5709 * emacs.c:
5710 * eval.c:
5711 * fileio.c:
5712 * filelock.c:
5713 * fns.c:
5714 * font.c:
5715 * fontset.c:
5716 * frame.c:
5717 * ftfont.c:
5718 * ftxfont.c:
5719 * gmalloc.c:
5720 * gtkutil.c:
5721 * image.c:
5722 * indent.c:
5723 * intervals.c:
5724 * keyboard.c:
5725 * keymap.c:
5726 * lread.c:
5727 * marker.c:
5728 * menu.c:
5729 * minibuf.c:
5730 * print.c:
5731 * process.c:
5732 * scroll.c:
5733 * search.c:
5734 * sound.c:
5735 * strftime.c:
5736 * syntax.c:
5737 * sysdep.c:
5738 * term.c:
5739 * terminal.c:
5740 * textprop.c:
5741 * unexalpha.c:
5742 * w32console.c:
5743 * w32fns.c:
5744 * w32font.c:
5745 * w32menu.c:
5746 * w32term.c:
5747 * w32uniscribe.c:
5748 * window.c:
5749 * xdisp.c:
5750 * xfaces.c:
5751 * xfns.c:
5752 * xfont.c:
5753 * xftfont.c:
5754 * xmenu.c:
5755 * xselect.c:
5756 * xterm.c: Likewise.
5757
383e0970 5758 Remove P_ and __P macros.
f57e2426
J
5759 * atimer.h: Remove P_ and __P macros.
5760 * buffer.h:
383e0970
J
5761 * category.h:
5762 * ccl.h:
5763 * character.h:
5764 * charset.h:
5765 * cm.h:
5766 * coding.h:
5767 * composite.h:
5768 * dispextern.h:
5769 * disptab.h:
9e892c8d 5770 * dosfns.h:
383e0970
J
5771 * font.h:
5772 * fontset.h:
5773 * frame.h:
5774 * gtkutil.h:
5775 * indent.h:
5776 * intervals.h:
5777 * keyboard.h:
5778 * keymap.h:
5779 * lisp.h:
5780 * macros.h:
5781 * md5.h:
5782 * menu.h:
5783 * msdos.h:
5784 * nsterm.h:
5785 * puresize.h:
5786 * region-cache.h:
5787 * syntax.h:
5788 * syssignal.h:
5789 * systime.h:
5790 * termhooks.h:
9e892c8d 5791 * w32font.h:
383e0970
J
5792 * w32term.h:
5793 * widget.h:
5794 * window.h:
5795 * xgselect.h:
5796 * xsettings.h:
5797 * xterm.h: Likewise.
5798
98601119
DN
57992010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
5800
d9170db5
DN
5801 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
5802
98601119
DN
5803 Cleanup old code.
5804 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
5805 * syssignal.h: Remove code for Lynx, not supported anymore.
5806 * vm-limit.c: Remove unused code the depends on emacs not being
5807 defined and NO_LIM_DATA being defined.
5808 * mem-limits.h: Remove dead code.
5809
1f984e12
J
58102010-07-01 Jan Djärv <jan.h.d@swipnet.se>
5811
c49d071a
J
5812 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
5813
9d5405ec
J
5814 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
5815 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
5816
7a18115b
J
5817 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
5818 parameters, they are already absolute.
5819
a628ad9d
JB
5820 * nsterm.m (x_set_window_size, initFrameFromEmacs):
5821 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 5822
a628ad9d 5823 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 5824
a628ad9d
JB
5825 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
5826 Update FRAME_TOOLBAR_HEIGHT.
581a8100 5827
a628ad9d
JB
5828 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
5829 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 5830
c1ef4455
CY
58312010-06-30 Chong Yidong <cyd@stupidchicken.com>
5832
bba3e508
SM
5833 * frame.c (get_future_frame_param, Fmake_terminal_frame):
5834 Don't check default-frame-alist.
c1ef4455 5835
ce8f5a9a
AS
58362010-06-30 Andreas Schwab <schwab@linux-m68k.org>
5837
5838 * process.c (create_process): Avoid using invalid file descriptors.
5839
5840 * callproc.c (child_setup): Avoid closing a file descriptor twice.
5841
bf935339
J
58422010-06-30 Jan Djärv <jan.h.d@swipnet.se>
5843
5844 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
5845 Improve documentation. Return font regardless of use_system_font.
5846 (syms_of_xsettings): Improve documentation for font-use-system-font.
5847
7c33a057
CY
58482010-07-10 Chong Yidong <cyd@stupidchicken.com>
5849
2ec1b5ee
CY
5850 * xfaces.c (realize_face): Garbage the frame if a face is removed
5851 (Bug#6593).
5852
58532010-07-05 Andreas Schwab <schwab@linux-m68k.org>
5854
5855 * keyboard.c: Remove duplicate <setjmp.h>.
5856 (read_key_sequence): Remove volatile qualifiers.
5857
58582010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5859
5860 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
5861 (struct glyph_row): New members left_fringe_offset and
5862 right_fringe_offset.
5863
5864 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
5865 specially.
5866 * w32term.c (w32_draw_fringe_bitmap): Likewise.
5867 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
5868
5869 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 5870 Take account of bitmap offset.
2ec1b5ee
CY
5871 (draw_window_fringes): Take account of window vscroll.
5872 (update_window_fringes): Likewise. Extend top-aligned top indicator
5873 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
5874 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
5875 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
5876
58772010-07-04 Juanma Barranquero <lekktu@gmail.com>
5878
5879 * w32fns.c (Qtooltip): Declare.
5880 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
5881
58822010-07-03 Jan Djärv <jan.h.d@swipnet.se>
5883
5884 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
5885 grab on just Press (Bug#6499).
5886
58872010-07-02 Chong Yidong <cyd@stupidchicken.com>
5888
5889 * frame.c (Qtooltip): New var.
5890 (delete_frame): Use it. Fix faulty if statement. Don't update
5891 mode line for tooltip frames. Suggested by Martin Rudalics.
5892
5893 * xfns.c (x_create_tip_frame):
5894 * w32fns.c (x_create_tip_frame): Use it.
5895
58962010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
5897
5898 * xftfont.c (xftfont_open): Check font width one by one also when
5899 spacing is dual.
5900
5901 * ftfont.c (ftfont_open): Ditto.
5902
6259c2ec
GM
59032010-06-30 Glenn Morris <rgm@gnu.org>
5904
a46007e9
GM
5905 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
5906
6259c2ec
GM
5907 * Makefile.in (CANNOT_DUMP): Update for configure name change.
5908
5909 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
5910 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
5911 * s/darwin.h (SYSTEM_MALLOC):
5912 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
5913
5d1d3d04
J
59142010-06-29 Jan Djärv <jan.h.d@swipnet.se>
5915
5916 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
5917 (ns_get_screen): Don't assign integer to f.
5918 (Fx_display_color_cells): Declarations before statements.
5919
e547b051
J
59202010-06-28 Jan Djärv <jan.h.d@swipnet.se>
5921
5fc8e5bc
J
5922 * xfns.c (x_default_font_parameter): Remove got_from_system
5923 (Bug#6526).
5924
e547b051 5925 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
bba3e508
SM
5926 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper):
5927 New defines based on what configure finds.
e547b051
J
5928
5929 * xterm.c (XTflash): Use gtk_widget_get_window.
5930 (xg_scroll_callback): Use gtk_adjustment_get_upper and
5931 gtk_adjustment_get_page_size.
5932 (handle_one_xevent): Use gtk_widget_get_mapped.
5933 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
5934 messages.
5935
5936 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
5937
5938 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
5939 HAVE_GTK_FILE_SELECTION_NEW.
5940
bba3e508
SM
5941 * gtkutil.c (xg_display_open, xg_display_close):
5942 Remove HAVE_GTK_MULTIDISPLAY, it is always defined.
e547b051
J
5943 (xg_display_open): Return type is void.
5944 (gtk_widget_set_has_window)
5945 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
5946 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
5947 (gtk_adjustment_set_page_increment)
5948 (gtk_adjustment_get_step_increment): #define these if not found
5949 by configure.
5950 (remove_submenu): New define based on Gtk+ version.
bba3e508
SM
5951 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar):
5952 Use gtk_widget_get_window.
e547b051
J
5953 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
5954 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
5955 (create_dialog): Use gtk_dialog_get_action_area and
5956 gtk_dialog_get_content_area.
5957 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
5958 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
5959 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
bba3e508
SM
5960 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item):
5961 Use g_object_ref and g_object_unref.
5962 (xg_update_menu_item, xg_tool_bar_menu_proxy):
5963 Use gtk_widget_get_sensitive.
e547b051
J
5964 (xg_update_submenu): Use remove_submenu.
5965 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
5966 properties instead to get old x and y position.
5967 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
5968 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 5969 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
5970 (xg_get_tool_bar_widgets): New function.
5971 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
5972 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
5973 (toolbar_set_orientation): New #define based on if configure
5974 finds gtk_orientable_set_orientation.
5975 (xg_create_tool_bar): Call toolbar_set_orientation.
5976 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
5977 instead of gtk_box_pack_start_defaults.
5978
b9229673
CY
59792010-06-28 Chong Yidong <cyd@stupidchicken.com>
5980
5981 * cmds.c (Fdelete_backward_char): Move into Lisp.
5982
bbc803b0
DN
59832010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
5984
5985 * s/freebsd.h (BSD4_2): Remove redundant definition.
5986 bsd-common.h defines it already.
5987
6431f2e6
CY
59882010-06-27 Chong Yidong <cyd@stupidchicken.com>
5989
5990 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
5991 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
5992 tool-bar-mode, which are now set using these X resources at
5993 startup, to determine the defaults (Bug#2249).
5994
5995 * w32fns.c (Fx_create_frame):
5996 * nsfns.m (Fx_create_frame): Likewise.
5997
5998 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
5999
8c079ebb
JB
60002010-06-24 Juanma Barranquero <lekktu@gmail.com>
6001
6002 * gtkutil.c (xg_update_scrollbar_pos):
6003 Avoid C99 mid-block variable declaration.
6004
e9b7ab96
JD
60052010-06-22 Jan Djärv <jan.h.d@swipnet.se>
6006
bc869eca
JD
6007 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
6008
2b7e356a 6009 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
6010
6011 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
6012 if height is less than scroll bar min size.
6013 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
6014
e9b7ab96
JD
6015 * xfns.c (x_default_font_parameter): Try to open font from system
6016 before using it (bug#6478). Rename got_from_gconf to got_from_system.
6017
a628ad9d 60182010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
6019
6020 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
6021
70c4cfbb
EZ
60222010-06-20 Eli Zaretskii <eliz@gnu.org>
6023
6024 * xdisp.c (try_scrolling): When scroll-conservatively is set to
6025 most-positive-fixnum, be extra accurate when scrolling window
6026 start, to avoid missing the cursor line.
6027
ad5a12b5
EZ
60282010-06-19 Eli Zaretskii <eliz@gnu.org>
6029
6030 * xdisp.c (try_scrolling): Compute the limit for searching point
6031 in forward scroll from scroll_max, instead of an arbitrary limit
ef1b0ba7
SM
6032 of 10 screen lines.
6033 See http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
ad5a12b5
EZ
6034 and
6035 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
6036 for details.
6037
2a64315a 60382010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
6039
6040 * editfns.c (Fbyte_to_string): Pacify compiler.
6041
288cf4e9
SM
60422010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
6043
6044 * lread.c (read1): Phase out old-style backquotes a bit more.
6045
6e6e5760
EZ
60462010-06-12 Eli Zaretskii <eliz@gnu.org>
6047
cbc4fd20
EZ
6048 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
6049 bidimirror.h.
6050
6051 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
6052
317fbf33
EZ
6053 * bidi.c (bidi_initialize): Remove explicit initialization of
6054 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 6055 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 6056 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
6057
6058 * biditype.h: New file.
6059
cbc4fd20
EZ
6060 * bidimirror.h: New file.
6061
6e6e5760
EZ
6062 * window.c (syms_of_window): Doc fix (bug#6409).
6063
4176cba2
RF
60642010-06-12 Romain Francoise <romain@orebokech.com>
6065
6066 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
6067 ediff-hook.
6068
cb4bfcb5
GM
60692010-06-10 Glenn Morris <rgm@gnu.org>
6070
64c60c2f
GM
6071 * editfns.c (Fbyte_to_string): Pacify compiler.
6072
cb4bfcb5
GM
6073 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
6074
2ec1b5ee
CY
60752010-06-26 Andreas Schwab <schwab@linux-m68k.org>
6076
6077 * alloc.c (Fmake_byte_code): Don't access undefined argument
6078 (Bug#6517).
6079
60802010-06-25 Chong Yidong <cyd@stupidchicken.com>
6081
6082 * xdisp.c (next_element_from_image): Ensure that after-strings are
6083 read the next time we hit handle_stop (Bug#1336).
6084
60852010-06-23 Andreas Schwab <schwab@linux-m68k.org>
6086
6087 * lread.c (read1): Signal error if #s is not followed by paren.
6088
60892010-06-19 Chong Yidong <cyd@stupidchicken.com>
6090
6091 * image.c (free_image): Mark frame as garbaged (Bug#6426).
6092
6093 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
6094
60952010-06-15 Glenn Morris <rgm@gnu.org>
6096
6097 * editfns.c (Fbyte_to_string): Pacify compiler.
6098
e454a4a3
SM
60992010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
6100
6101 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
6102 Check `object's type before accessing its guts.
6103
c1b1acc2
DN
61042010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
6105
6106 * s/usg5-4.h: Fix previous change.
6107 Suggested by Lawrence Mitchell <wence@gmx.li>
6108
657d4c0b
AS
61092010-06-08 Andreas Schwab <schwab@linux-m68k.org>
6110
6111 * minibuf.c (Fall_completions): Add more checks.
6112
9b27fd9f
JB
61132010-06-08 Juanma Barranquero <lekktu@gmail.com>
6114
6115 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
6116
a99ebb40
DN
61172010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
6118
d7c5d87d
DN
6119 * lread.c (X_OK): Remove, unused.
6120
0263a941
DN
6121 * dispnew.c: Remove obsolete comment.
6122
a99ebb40
DN
6123 Remove INCLUDED_FCNTL.
6124 * xterm.c (INCLUDED_FCNTL):
6125 * callproc.c (INCLUDED_FCNTL):
6126 * alloc.c (INCLUDED_FCNTL):
6127 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
6128 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
6129
13b5221f
MR
61302010-06-07 Martin Rudalics <rudalics@gmx.at>
6131
6132 * window.c (Fselect_window): Move `record_buffer' up to the
6133 beginning of this function, so the buffer gets recorded
6134 even if the selected window does not change.
6135 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
6136
5220357f
JB
61372010-06-07 Juanma Barranquero <lekktu@gmail.com>
6138
6139 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
6140 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
6141
3085237c
DN
61422010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
6143
6144 Remove BSTRING related code, all platforms define it.
6145 * s/usg5-4.h (BSTRING): Remove definition.
6146 * s/template.h (BSTRING):
6147 * s/msdos.h (BSTRING):
6148 * s/ms-w32.h (BSTRING):
6149 * s/hpux10-20.h (BSTRING):
6150 * s/gnu-linux.h (BSTRING):
6151 * s/darwin.h (BSTRING):
6152 * s/cygwin.h (BSTRING):
6153 * s/bsd-common.h (BSTRING):
6154 * s/aix4-2.h (BSTRING): Likewise.
6155 * sysdep.c: Remove code depending on BSTRING not being defined.
6156
409f2919
JB
61572010-06-05 Juanma Barranquero <lekktu@gmail.com>
6158
6159 Remove obsolete macro BASE_LEADING_CODE_P.
6160 * character.h (BASE_LEADING_CODE_P): Remove.
6161 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
6162 * buffer.c (Fset_buffer_multibyte):
6163 * indent.c (scan_for_column, compute_motion):
6164 * insdel.c (count_combining_before, count_combining_after):
6165 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
6166
087fc47a
JB
61672010-06-04 Juanma Barranquero <lekktu@gmail.com>
6168
6169 Turn `directory-sep-char' into a noop.
6170
6171 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
6172 (DIRECTORY_SEP): Define unconditionally.
6173
6174 * s/ms-w32.h (DIRECTORY_SEP): Remove.
6175
6176 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
6177 call dostounix_filename directly.
6178
6179 * fileio.c (CORRECT_DIR_SEPS): Remove.
6180 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
6181 (Fsubstitute_in_file_name): Use dostounix_filename instead.
6182 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
6183 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
6184
6185 * w32proc.c (CORRECT_DIR_SEPS): Remove.
6186 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
6187
0eb7675e
AS
61882010-06-03 Andreas Schwab <schwab@linux-m68k.org>
6189
a628ad9d
JB
6190 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
6191 (Bug#6346)
0eb7675e 6192
78edd3b7
JB
61932010-06-03 Juanma Barranquero <lekktu@gmail.com>
6194
6195 * ccl.c (Fccl_program_p): Fix typo in docstring.
6196
eb697db5
DN
61972010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
6198
6199 Move UNEXEC definition to autoconf.
6200 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
6201 * s/sol2-10.h (UNEXEC):
6202 * s/irix6-5.h (UNEXEC):
6203 * s/hpux10-20.h (UNEXEC):
6204 * s/gnu-linux.h (UNEXEC):
6205 * s/darwin.h (UNEXEC):
6206 * s/cygwin.h (UNEXEC):
6207 * s/bsd-common.h (UNEXEC):
6208 * s/aix4-2.h (UNEXEC):
6209 * m/alpha.h (UNEXEC): Likewise.
6210 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
6211
aa3830c4
JB
62122010-06-03 Juanma Barranquero <lekktu@gmail.com>
6213
6214 Remove obsolete pre-unicode2 macros.
6215 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
6216 * composite.c (composition_reseat_it):
6217 * data.c (Faset):
6218 * fns.c (Ffillarray):
6219 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
6220 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
6221
d234d13e
JL
62222010-06-03 Juri Linkov <juri@jurta.org>
6223
6224 * buffer.c (Fother_buffer): Add CHECK_FRAME.
6225 (Fswitch_to_buffer): Remove unused variable `err'.
6226
0d4bcf4d
GM
62272010-06-03 Glenn Morris <rgm@gnu.org>
6228
e23dc1e2
GM
6229 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
6230
05b09564
GM
6231 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
6232 now that AH_BOTTOM does it.
6233
824e2978
GM
6234 * m/hp800.h (HAVE_ALLOCA):
6235 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
6236
0d4bcf4d
GM
6237 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
6238 Remove NOT_C_CODE tests, it is always true now.
6239
c55d2abf
DN
62402010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
6241
08a494a3
DN
6242 Fix config.h includes.
6243 * xsettings.c:
6244 * xgselect.c:
6245 * nsterm.m:
6246 * nsselect.m:
6247 * nsimage.m:
6248 * nsfont.m:
6249 * nsfns.m:
6250 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
6251 other files do.
6252
75934b1d
DN
6253 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
6254
9f32a766
DN
6255 * s/sol2-6.h: Remove obsolete comments.
6256
c55d2abf
DN
6257 Remove unnecessary alloca.h includes.
6258 * keymap.c: Do not include alloca.h, config.h does that.
6259 * sysdep.c: Likewise. Do not define fwrite, not used.
6260
06ac62b4
SM
62612010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
6262
6263 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
6264 the HAVE_TERMIO where it belongs (bug#6149).
6265
1ab8293c
SM
62662010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
6267
6268 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
6269 of bug#6305).
6270
6dcfd253
EZ
62712010-05-30 Eli Zaretskii <eliz@gnu.org>
6272
6273 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
6274 state is always cached (bug#6306).
6275
6d26bbb2
EZ
62762010-05-29 Eli Zaretskii <eliz@gnu.org>
6277
06fa4a23
EZ
6278 Fix cursor motion in bidi-reordered continued lines.
6279 * xdisp.c (try_cursor_movement): Backup to non-continuation line
6280 only after finding point's row. Fix the logic. Rewrite the loop
ef1b0ba7
SM
6281 over continuation lines in bidi-reordered buffers.
6282 Return CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
6d26bbb2
EZ
6283 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
6284
f5783df3
MA
62852010-05-28 Michael Albinus <michael.albinus@gmx.de>
6286
6287 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
6288
7d56b2dd
KH
62892010-05-28 Kenichi Handa <handa@m17n.org>
6290
6291 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
6292 Don't sheck SPEC if it is nil.
6293 (font_list_entities): Call font_delete_unmatched if
b925d231 6294 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 6295
e58d4ff7
GM
62962010-05-28 Glenn Morris <rgm@gnu.org>
6297
6298 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
6299
f1a5d776
CY
63002010-05-27 Chong Yidong <cyd@stupidchicken.com>
6301
6302 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
6303 whether to trash.
6304 (internal_delete_file, Frename_file): Callers changed.
6305 (delete_by_moving_to_trash): Doc fix.
6306 (Fdelete_directory_internal): Don't move to trash.
6307
6308 * callproc.c (delete_temp_file):
6309 * buffer.c (Fkill_buffer): Callers changed.
6310
6311 * lisp.h: Update prototype.
6312
f44a59e6
CY
63132010-05-27 Chong Yidong <cyd@stupidchicken.com>
6314
6315 * xdisp.c (redisplay_window): After redisplay, check if point is
6316 still valid before setting it (Bug#6177).
6317
81ac4f35
GM
63182010-05-27 Glenn Morris <rgm@gnu.org>
6319
6320 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
6321 Convert comments to Makefile format.
6322
6323 * Makefile.in (bootstrap-clean): No more Makefile.c.
6324
ccd89fb3
GM
63252010-05-26 Glenn Morris <rgm@gnu.org>
6326
90278cb6
GM
6327 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
6328 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
6329
ccd89fb3
GM
6330 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
6331 Remove.
6332 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
6333
b7050583
KH
63342010-05-26 Kenichi Handa <handa@m17n.org>
6335
6336 * composite.c (composition_compute_stop_pos): Fix condition for
6337 backward scanning.
6338
e5458003
GM
63392010-05-25 Glenn Morris <rgm@gnu.org>
6340
c345fe90
GM
6341 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
6342 Move before TEMACS_LDFLAGS.
6343 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
6344 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
6345
2e0689ab
GM
6346 * Makefile.in (NOT_C_CODE): No longer define.
6347 (config.h): No longer include.
6348
8009a5e8
GM
6349 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
6350 variables it may reference.
6351
e5458003
GM
6352 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
6353 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
6354
10f72a37
KH
63552010-05-25 Kenichi Handa <handa@m17n.org>
6356
6357 * dispextern.h (struct composition_it): New members rule_idx and
6358 charpos.
6359
6360 * xdisp.c (set_iterator_to_next): While scanning backward, assume
6361 that the character positions of IT point the last character of the
6362 current grapheme cluster.
6363 (next_element_from_composition): Don't change character positions
6364 of IT.
6365 (append_composite_glyph): Set glyph->charpos to
6366 it->cmp_it.charpos.
6367
6368 * composite.c (autocmp_chars): Change the first argument to RULE,
6369 and try composition with RULE only.
6370 (composition_compute_stop_pos): Record the index number of the
6371 composition rule in CMP_IT->rule_idx.
6372 (composition_reseat_it): Call autocmp_chars repeatedly until the
6373 correct rule of the composition is found.
6374 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
6375 is at the last character of the current grapheme cluster when
6376 CMP_IT->reversed_p is nonzero.
6377
171eda53 63782010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 6379
171eda53
SM
6380 * editfns.c (Fbyte_to_string): New function.
6381
66a9f7f4
SM
63822010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
6383
6384 * process.c (Fmake_network_process): Set :host to nil if it's not used.
6385 Suggested by Masatake YAMATO <yamato@redhat.com>.
6386
d8c315d1
EZ
63872010-05-23 Eli Zaretskii <eliz@gnu.org>
6388
171eda53 6389 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 6390
f5b416d2 63912010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
6392
6393 * s/netbsd.h: If terminfo is found, use it in preference to
6394 termcap. (Bug#6190) [Backport from trunk]
6395
0416466c
EZ
63962010-05-19 Eli Zaretskii <eliz@gnu.org>
6397
11117830 6398 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
6399
6400 * dispextern.h (struct glyph_row): New members minpos and maxpos.
6401 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
6402 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
6403 and maxpos members instead of start.pos and end.pos, respectively.
6404
6405 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
6406 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
6407 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
6408 (try_window_reusing_current_matrix, try_window_id):
6409 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
6410 (init_from_display_pos, init_iterator): Use EMACS_INT for
6411 character and byte positions.
66a9f7f4 6412 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
6413 arguments for minimum and maximum buffer positions seen by
6414 display_line for this row. Don't use iterator to find the
6415 position following the maximum one; instead, increment the
11117830
EZ
6416 position found by display_line directly. Fix logic; eol_pos
6417 should be tested before the rest. Handle the case of characters
6418 delivered from display vector (bug#6036). Fix tests related to
6419 it->method. Handle the truncated_on_right_p rows.
6420 (RECORD_MAX_MIN_POS): New macro.
6421 (display_line): Use it to record the minimum and maximum buffer
6422 positions for glyphs in the row being assembled. Record the
6423 position of the newline that terminates the line. If word wrap is
6424 in effect, restore minimum and maximum positions seen up to the
6425 wrap point, when iterator returns to it.
6426 (try_window_reusing_current_matrix): Give up if in bidi-reordered
6427 row and cursor not already at point. Restore original pre-bidi
6428 code for unidirectional buffers.
d36fe237
EZ
6429
6430 * dispnew.c (increment_row_positions, check_matrix_invariants):
6431 Increment and check row->start.pos and row->end.pos, in addition
6432 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
6433
11117830
EZ
6434 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
6435 Display truncated_on_left_p and truncated_on_right_p flags.
6436 Formatting fixes.
6437 (pmtxrows): Display the ordinal number of each row. Don't display
6438 rows beyond the last one.
6439
6440 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
6441 it is not copied by bidi_copy_it.
6442
6e83d800
EZ
64432010-05-22 Eli Zaretskii <eliz@gnu.org>
6444
6445 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
6446 (Bug#6237)
6447
110683ad
CY
64482010-05-22 Chong Yidong <cyd@stupidchicken.com>
6449
6450 * image.c (Fimage_flush): Rename from image-refresh.
6451
98fe5161
CY
64522010-05-21 Chong Yidong <cyd@stupidchicken.com>
6453
6454 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
6455 just one window.
6456
6457 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
6458 (clear_image_cache): If the number of cached images is unusually
6459 large, decrease the cache eviction delay (Bug#6230).
6460
e8752c66
GM
64612010-05-21 Glenn Morris <rgm@gnu.org>
6462
66dbf213
GM
6463 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
6464 Move these rules to ns.mk.
6465 * ns.mk: New file.
6466
04384b2d
GM
6467 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
6468
e8752c66
GM
6469 * Makefile.in (CANNOT_DUMP): New, set by configure.
6470 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
6471
2e2bbddb
JL
64722010-05-20 Juri Linkov <juri@jurta.org>
6473
6474 * fileio.c (Fdelete_file): Change interative spec to use
6475 `read-file-name' like in `find-file-read-args' where the default
6476 value is `default-directory' instead of `buffer-file-name'.
6477 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
6478
31c4aaf6
KR
64792010-05-20 Kevin Ryde <user42@zip.com.au>
6480
6481 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
6482 (Voverriding_terminal_local_map, Vsystem_key_alist)
6483 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
6484
9d5cf9b6
GM
64852010-05-20 Glenn Morris <rgm@gnu.org>
6486
6487 * Makefile.in (DEPDIR): New constant.
6488 (DEPFLAGS): Set with configure, not cpp.
6489 (MKDEPDIR): New, set by configure.
6490 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
6491 (clean): Use $DEPDIR.
6492 (deps_frag): Include from configure.
6493 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
6494 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
6495
bba3e508
SM
6496 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state):
6497 Fix reallocation of the cache. (Bug#6210)
ead6f8f5 6498
7f34aec3
GM
64992010-05-19 Glenn Morris <rgm@gnu.org>
6500
d494e8f2
GM
6501 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
6502
c1d0dcfd
GM
6503 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
6504 (GNULIB_VAR): Remove.
6505 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
6506
6507 * m/ibms390x.h (LINKER):
6508 * m/macppc.h (LINKER) [GNU_LINUX]:
6509 * s/aix4-2.h (ORDINARY_LINK):
6510 * s/cygwin.h (LINKER):
6511 * s/darwin.h (ORDINARY_LINK):
6512 * s/gnu.h (ORDINARY_LINK):
6513 * s/netbsd.h (LINKER):
6514 * s/usg5-4.h (ORDINARY_LINK):
6515 Move to configure.
6516
7f34aec3
GM
6517 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
6518
754790b6
CY
65192010-05-18 Chong Yidong <cyd@stupidchicken.com>
6520
6521 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
6522 prevent stack overflow if number of arguments is too large
6523 (Bug#6214).
6524
161e44d1
JB
65252010-05-18 Juanma Barranquero <lekktu@gmail.com>
6526
6527 * charset.c (load_charset_map_from_file): Don't call close after fclose.
6528
be4ff9da
GM
65292010-05-18 Glenn Morris <rgm@gnu.org>
6530
9539dc5d
GM
6531 * s/gnu-linux.h: Combine two conditionals.
6532
6533 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
6534 $(POST_ALLOC_OBJ).
6535
40dc6bf4
GM
6536 * Makefile.in (RALLOC_OBJ): New, set by configure.
6537 (rallocobj): Replace with the previous variable.
6538 (otherobj): Use $RALLOC_OBJ.
6539
6540 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
6541 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
6542
be4ff9da
GM
6543 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
6544 (gmallocobj, vmlimitobj): Replace with previous two variables.
6545 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
6546
16455a85
GM
65472010-05-17 Glenn Morris <rgm@gnu.org>
6548
6549 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
6550 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
6551
5fdb7468
GM
65522010-05-16 Glenn Morris <rgm@gnu.org>
6553
7ca1f3f9
GM
6554 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
6555
7541dad5
GM
6556 * Makefile.in (clean): Get rid of HAVE_NS conditional.
6557
da53fab9
GM
6558 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
6559 trailing "/".
6560
b02a6645
GM
6561 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
6562 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
6563
8877ca0f
GM
6564 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
6565 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
6566 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
6567 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
6568 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
6569
5fdb7468
GM
6570 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
6571 Remove ${STARTFLAGS}, nothing ever sets it.
6572
95adb4b1
DN
65732010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
6574
6575 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
6576
676b6304
GM
65772010-05-16 Glenn Morris <rgm@gnu.org>
6578
9beab9ce
GM
6579 * Makefile.in (LIBX_BASE): Always define.
6580
8a95f0e7
GM
6581 * Makefile.in (LIBX_OTHER): Move out of cpp section.
6582
676b6304
GM
6583 * Makefile.in (LIBXT): Always define.
6584
6e546d18
GM
65852010-05-15 Glenn Morris <rgm@gnu.org>
6586
4235ca47 6587 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 6588
6e546d18
GM
6589 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
6590 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
6591
8c5ff6dd
KR
65922010-05-15 Ken Raeburn <raeburn@raeburn.org>
6593
560bb7ae 6594 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
6595 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
6596
8b4eb796
KR
6597 * emacs.c (main): Initialize initial-environment and
6598 process-environment before generating from env, not after.
6599
8c5ff6dd
KR
6600 Handle --version reasonably in CANNOT_DUMP configuration.
6601 * emacs.c (emacs_version, emacs_copyright): New string variables.
6602 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
6603 (syms_of_emacs): Defvar them, and initialize them from the C
6604 string variables.
6605 (main): If initialization hasn't been done, print initial version
6606 info from the C strings, instead of starting an interactive session.
6607
dbd3f723
EZ
66082010-05-15 Eli Zaretskii <eliz@gnu.org>
6609
d20e1419
EZ
6610 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
6611 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
6612 (bidi_paragraph_init): Remove redundant assertion that we are at
6613 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
6614
6615 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
6616 (syms_of_xdisp): Defsubr it.
6617
d36fe237
EZ
6618 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
6619
dbd3f723
EZ
6620 * Makefile.in: Fix MSDOS-related comments.
6621
02be533b
GM
66222010-05-15 Glenn Morris <rgm@gnu.org>
6623
1a82cca9
GM
6624 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
6625 (really-lwlib, really-oldXMenu): Always define.
6626 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
6627
3df7b338
GM
6628 * Makefile.in: Simplify cpp conditional.
6629
2b5f541b
GM
6630 * Makefile.in (${ns_appdir}): Simplify using umask.
6631
02be533b
GM
6632 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
6633
4e2db1fe
SM
66342010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
6635
6636 * eval.c (specbind): Remove left-over duplicate test.
6637 Disallow let-binding frame-local vars. Add comment.
6638
4b292a22
EZ
66392010-05-14 Eli Zaretskii <eliz@gnu.org>
6640
2fe72643 6641 Make the cache of bidi iterator states dynamically allocated.
1edbd309 6642 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
6643 (bidi_init_it): Call it.
6644 (bidi_cache_iterator_state): Enlarge the cache if needed.
6645
4e2db1fe 6646 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
6647 bidi_get_next_char_visually. All callers changed.
6648
82ebc97b
KH
66492010-05-14 Kenichi Handa <handa@m17n.org>
6650
6651 * dispextern.h (struct composition_it): New member reversed_p.
6652
6653 * composite.c (composition_compute_stop_pos): Search backward if
6654 ENDPOS < CHARPOS.
6655 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
6656 Set CMP_IT->reversed_p.
b4b6e17e 6657 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 6658
4e2db1fe
SM
6659 * xdisp.c (set_iterator_to_next):
6660 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
6661 scanning backward. Call composition_compute_stop_pos if scan
6662 direction is changed.
6663 (next_element_from_buffer): Call composition_compute_stop_pos with
6664 negative ENDPOS if we are scanning backward.
6665 (next_element_from_composition): Pay attention to
6666 IT->cmp_it.reversed_p.
6667
0e5d7800
KH
66682010-05-14 Kenichi Handa <handa@m17n.org>
6669
560bb7ae 6670 * font.c (font_range): Return the range for the font found at first.
0e5d7800 6671
cb027b32
GM
66722010-05-14 Glenn Morris <rgm@gnu.org>
6673
177b0288
GM
6674 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
6675
fbc00890
GM
6676 * Makefile.in (mktime, X11, register): Move undefs to configure.
6677
f14d1dfd
GM
6678 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
6679 (MSDOS_X_OBJ): New variable.
6680 (MSDOS_SUPPORT_REAL): New constant.
6681 (MSDOS_SUPPORT): Set as a variable, not with cpp.
6682 (obj): Use MSDOS_X_OBJ.
6683 (lisp): Use MSDOS_SUPPORT as a variable.
6684
11842bd8
GM
6685 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
6686 (GPM_MOUSE_SUPPORT): Now it's a constant.
6687 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
6688 not cpp.
6689
489d31a4 6690 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 6691 (ns_appresdir): Remove, unused.
e20f1f07 6692
489d31a4
GM
6693 * Makefile.in (SHELL): Move outside cpp section.
6694
cb027b32
GM
6695 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
6696
5a903aa9
GM
66972010-05-13 Glenn Morris <rgm@gnu.org>
6698
3369c79f
GM
6699 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
6700 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
6701
d5e982a6
GM
6702 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
6703 HAVE_WINDOW_SYSTEM must be too.
6704
6192e163
GM
6705 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
6706 (lisp): Remove WINNT_SUPPORT.
6707
472c5d6b
GM
6708 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
6709 Let configure set these variables (to empty) in this case as well.
6710
0116466b
GM
6711 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
6712 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
6713
5a903aa9
GM
6714 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
6715 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
6716 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
6717 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
6718 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 6719 the values output by configure.
5a903aa9
GM
6720 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
6721
1a0d7c06
GM
67222010-05-12 Glenn Morris <rgm@gnu.org>
6723
b5457f14
GM
6724 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
6725 (LINKER_WAS_SPECIFIED): Remove.
6726
1a0d7c06
GM
6727 * Makefile.in (LIB_GCC): Set using configure, not cpp.
6728 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
6729 * m/arm.h (LIB_GCC) [GNU_LINUX]:
6730 * s/cygwin.h (LIB_GCC):
6731 * s/freebsd.h (LIB_GCC):
6732 * s/gnu-linux.h (LIB_GCC):
6733 * s/msdos.h (LIB_GCC):
6734 * s/netbsd.h (LIB_GCC):
6735 Move to configure.
6736
d1ddd1d0 67372010-05-11 Karel Klíč <kklic@redhat.com>
c90ca7b7
KH
6738
6739 * ftfont.c: Fix incorrect parentheses of #if condition for
6740 definining M17N_FLT_USE_NEW_FEATURE.
6741
acddf8ae
GM
67422010-05-11 Glenn Morris <rgm@gnu.org>
6743
6744 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
6745 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
6746
ae5e04fa
EZ
67472010-05-10 Eli Zaretskii <eliz@gnu.org>
6748
6749 * xdisp.c (init_iterator): Don't turn on bidi reordering in
6750 unibyte buffers. See
6751 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
6752
7490175b
GM
67532010-05-10 Glenn Morris <rgm@gnu.org>
6754
97efb629
GM
6755 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
6756 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
6757 (LIBES): Use LIBS_SYSTEM as a variable.
6758 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
6759 * s/aix4-2.h (LIBS_SYSTEM):
6760 * s/freebsd.h (LIBS_SYSTEM):
6761 * s/hpux10-20.h (LIBS_SYSTEM):
6762 * s/sol2-6.h (LIBS_SYSTEM):
6763 * s/unixware.h (LIBS_SYSTEM):
6764 Move to configure.
6765
7490175b
GM
6766 * s/aix4-2.h (MAIL_USE_LOCKF):
6767 * s/bsd-common.h (MAIL_USE_FLOCK):
6768 * s/darwin.h (MAIL_USE_FLOCK):
6769 * s/gnu-linux.h (MAIL_USE_FLOCK):
6770 * s/irix6-5.h (MAIL_USE_FLOCK):
6771 * s/template.h (MAIL_USE_FLOCK):
6772 Move to configure.
6773
0235128c 67742010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
6775
6776 * Version 23.2 released.
6777
0235128c 67782010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
6779
6780 * composite.c (autocmp_chars): Save point as marker before calling
6781 auto-composition-function (Bug#5984).
6782
6783 * lisp.h (restore_point_unwind): Add prototype.
6784
6785 * fileio.c (restore_point_unwind): Remove static attribute.
6786
0235128c 67872010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
6788
6789 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
6790 new feature of libotf and m17n-flt.
0235128c
SM
6791 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
6792 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
6793 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
6794 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
6795 that OUT is NULL. Use OTF_drive_gsub_with_log and
6796 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
6797 OTF_drive_gpos.
6798 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
6799 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
6800 Setup mflt_enable_new_feature and mflt_try_otf.
6801
4721152c
J
68022010-05-08 Jan Djärv <jan.h.d@swipnet.se>
6803
6804 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
6805
6806 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
6807 box and toolbar (Bug #6139).
6808 (xg_create_tool_bar): Remove comment (Bug #6139).
6809 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
6810 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
6811
ee0a16cf
JB
68122010-05-08 Juanma Barranquero <lekktu@gmail.com>
6813
6814 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
6815 Update dependencies.
6816
96d79611
EZ
68172010-05-08 Eli Zaretskii <eliz@gnu.org>
6818
6819 * fringe.c (update_window_fringes): Set up truncation bitmaps for
6820 R2L lines.
6821
40c17879
GM
68222010-05-08 Glenn Morris <rgm@gnu.org>
6823
7b42b29f
GM
6824 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
6825
40c17879
GM
6826 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
6827 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
6828 (termcapobj): Replace with TERMCAP_OBJ.
6829 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
6830 (LIBES): Use LIBS_TERMCAP as a variable.
6831
6832 * s/freebsd.h (osreldate.h): No longer include, since this file
6833 does not use __FreeBSD_version any more.
6834
6835 * s/aix4-2.h (TERMINFO):
6836 * s/cygwin.h (TERMINFO):
6837 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
6838 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
6839 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
6840 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
6841 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
6842 * s/irix6-5.h (TERMINFO):
6843 * s/netbsd.h (LIBS_TERMCAP):
6844 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
6845 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
6846 * s/usg5-4.h (TERMINFO):
6847 Move to configure.
6848
94b612ad
SM
68492010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
6850
6851 * eval.c (unbind_to): Don't unbind a local binding into the global
6852 binding when the local binding disappeared. Inversely, don't unbind
6853 a global binding into a newly created local binding.
6854 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
6855 can specify the frame to use, when applicable. Adjust callers.
6856
15e12598 68572010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 6858 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
6859
6860 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
6861
f724825e
EZ
68622010-05-07 Eli Zaretskii <eliz@gnu.org>
6863
5cba3209
EZ
6864 * w32fns.c: Include w32.h.
6865 (Fw32_shell_execute): Decode the error message before passing it
6866 to `error'. (Bug#6126)
6867
d16bdfc3
EZ
6868 * msdos.c (dos_set_window_size):
6869 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
6870 instead of `XSYMBOL (foo)->value'.
6871
59d93e87
EZ
68722010-05-07 Eli Zaretskii <eliz@gnu.org>
6873
9fdec8bc
EZ
6874 Fix the MS-DOS build, broken by autoconfiscation.
6875
6876 * Makefile.in: Don't use Make-style comments past the "start of
6877 cpp stuff" line.
6878 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
6879
6880 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
6881 edited directly by msdos/sed1v2.inp).
f724825e 6882
2f86b22b
GM
68832010-05-07 Glenn Morris <rgm@gnu.org>
6884
6885 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
6886 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
6887 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
6888 move out of cpp section.
6889 * s/freebsd.h (LD_SWITCH_SYSTEM):
6890 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
6891 * s/netbsd.h (LD_SWITCH_SYSTEM):
6892 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
6893
49ebbd65
DN
68942010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
6895
6896 Define LIB_STANDARD and START_FILES using autoconf.
6897 * s/usg5-4.h (LIB_STANDARD):
6898 * s/netbsd.h (START_FILES):
6899 * s/irix6-5.h (LIB_STANDARD):
6900 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
6901 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
6902 * s/freebsd.h (START_FILES):
6903 * s/darwin.h (START_FILES):
6904 * s/cygwin.h (START_FILES):
6905 * s/aix4-2.h (LIB_STANDARD):
6906 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
6907 * Makefile.in (STARTFILES): Rename to START_FILES, define using
6908 autoconf, not cpp.
6909
d43c06d6
DN
69102010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
6911
28823648
DN
6912 Remove NEED_BSDTTY and NEED_UNISTD_H.
6913 * s/hpux10-20.h (NEED_BSDTTY): Remove.
6914 * s/aix4-2.h (NEED_UNISTD_H): Remove.
6915 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
6916 <sys/ptyio.h> and <unistd.h>.
6917
aca00430
DN
6918 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
6919
d43c06d6
DN
6920 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
6921 * s/gnu.h (START_FILES): Remove empty definition.
6922
3e56b11d
JD
69232010-05-06 Jan Djärv <jan.h.d@swipnet.se>
6924
6925 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
6926
e3cf0cde
GM
69272010-05-06 Glenn Morris <rgm@gnu.org>
6928
6929 * Makefile.in (CPP, LN_S): Remove unused variables.
6930
774b9a60
SM
69312010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
6932
6933 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
6934
4ab92842
LM
69352010-05-05 Lawrence Mitchell <wence@gmx.li>
6936
6937 * m/sparc.h: Fix typo in earlier change.
6938
178f2507
SM
69392010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
6940
6941 Misc tweaks.
6942 * eval.c (Fdefvaralias): Remove unintended nested if.
6943 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
6944
80f00217 69452010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
6946
6947 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
6948
ef03a4e6
DN
69492010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
6950
58eb6cf0
DN
6951 Remove BSD_PGRPS.
6952 * s/bsd-common.h (BSD_PGRPS): Remove undef.
6953 * s/gnu-linux.h (BSD_PGRPS): Remove.
6954 * term.c (dissociate_if_controlling_tty):
6955 * sysdep.c (narrow_foreground_group, widen_foreground_group)
6956 (init_sys_modes, reset_sys_modes):
6957 * emacs.c (main):
6958 * callproc.c (Fcall_process, child_setup): Remove code depending
6959 on BSD_PGRPS.
6960
ef03a4e6
DN
6961 Remove POSIX_SIGNALS.
6962 * s/usg5-4.h (POSIX_SIGNALS):
6963 * s/netbsd.h (POSIX_SIGNALS):
6964 * s/msdos.h (POSIX_SIGNALS):
6965 * s/ms-w32.h (POSIX_SIGNALS):
6966 * s/hpux11.h (POSIX_SIGNALS):
6967 * s/gnu.h (POSIX_SIGNALS):
6968 * s/gnu-linux.h (POSIX_SIGNALS):
6969 * s/freebsd.h (POSIX_SIGNALS):
6970 * s/darwin.h (POSIX_SIGNALS):
6971 * s/cygwin.h (POSIX_SIGNALS):
6972 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
6973 * s/unixware.h:
6974 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
6975 * process.c (create_process):
6976 * syssignal.h:
6977 * sysdep.c (wait_for_termination, init_signals):
6978 * process.c (create_process):
6979 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
6980 remove all code that assumes the contrary.
6981
49628785
GM
69822010-05-04 Glenn Morris <rgm@gnu.org>
6983
27a2cdfc
GM
6984 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
6985 variable.
6986 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
6987 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
6988 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
6989 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
6990 LD_SWITCH_SYSTEM_tmp.
6991 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
6992 New variables, set by configure.
6993
eb21eab5
GM
6994 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
6995 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
6996 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
6997 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
6998 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
6999
49628785
GM
7000 * s/aix4-2.h (C_SWITCH_SYSTEM):
7001 * m/alpha.h (C_SWITCH_MACHINE):
7002 Move to configure.in.
7003 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
7004 New variables, set by configure.
7005 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
7006 $c_switch_machine and $c_switch_system.
7007
7dff330b
DN
70082010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
7009
7010 * s/hpux10-20.h (LIB_STANDARD): New definition.
7011 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
7012 on it, not used anymore.
7013
53967e09
CY
70142010-05-03 Chong Yidong <cyd@stupidchicken.com>
7015
7016 * eval.c (internal_condition_case_n): Rename from
7017 internal_condition_case_2.
7018 (internal_condition_case_2): New function.
7019
7020 * xdisp.c (safe_call): Use internal_condition_case_n.
7021
7022 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
7023 (internal_delete_file, Frename_file): Callers changed.
7024
7025 * buffer.c (Fkill_buffer):
7026 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
7027
7028 * lisp.h: Update prototypes.
7029
3dee6fdb
GM
70302010-05-03 Glenn Morris <rgm@gnu.org>
7031
7032 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
7033 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
7034 (LIBXT): Set with configure, not cpp.
7035 (LIBX): Remove.
7036 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
7037
a101e0fb
DN
70382010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
7039
7040 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
7041 The FreeBSD is not needed, the default works, Solaris version is
7042 not needed, and the remaining case is not supported by configure.
7043
f63d0028
JD
70442010-05-02 Jan Djärv <jan.h.d@swipnet.se>
7045
7046 * xsmfns.c (CHDIR_OPT): New define.
7047 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
7048 restarting emacs.
7049
7050 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
7051 shut_down_emacs.
7052
7053 * emacs.c (USAGE1): Mention --chdir.
7054 (main): Handle --chdir.
7055 (standard_args): Add --chdir.
7056 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
7057 #5552).
7058
e4814a9f
DN
70592010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
7060
cd03c74a
DN
7061 Remove LD_SWITCH_MACHINE.
7062 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
7063 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
7064
c3a398a1
DN
7065 Clean up IRIX code.
7066 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
7067 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
7068
87e7285c
DN
7069 Clean up AIX code.
7070 * m/ibmrs6000.inp: Remove file, unused.
7071 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
7072 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
7073 definition ...
7074 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
7075
80f00217
JB
7076 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
7077 unused.
e4814a9f 7078
59ca28de
EZ
70792010-05-01 Eli Zaretskii <eliz@gnu.org>
7080
197daef4
EZ
7081 Emulate POSIX_SIGNALS on MS-Windows.
7082
7083 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
7084 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
7085
7086 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
7087 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
7088 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
7089
80f00217
JB
7090 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
7091 New stubs.
197daef4 7092
af7c7572
EZ
7093 Miscellaneous fixes of bidi display.
7094
59ca28de
EZ
7095 * xdisp.c (find_row_end): New function, refactored from display_line.
7096 (display_line): Use it.
017ea819
EZ
7097 (extend_face_to_end_of_line): In almost-filled rows, extend only
7098 if the row is R2L and not continued.
166e930d 7099 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 7100 Preserve overlay and string info in row->end.
166e930d
EZ
7101 (insert_left_trunc_glyphs): Support addition of left truncation
7102 glyphs to R2L rows.
b47e0dcf 7103 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
7104 glyph between adjacent windows. Fix a crash when a display string
7105 is continued to the next line. Don't return zero if cursor was
7106 found by `cursor' property of a display string.
b47e0dcf
EZ
7107 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
7108 test for that explicitly.
59ca28de 7109
7acac9f4
GM
71102010-05-01 Glenn Morris <rgm@gnu.org>
7111
7112 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
7113 for clarity.
7114 (OTHER_OBJ): Remove.
7115 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
7116 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
7117
45841e65
KK
71182010-05-01 Karel Klíč <kklic@redhat.com>
7119
7120 * fileio.c (Ffile_selinux_context): Context functions may return null.
7121
afc61943
DN
71222010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
7123
80f00217 7124 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 7125
5a1bb006
GM
71262010-04-30 Glenn Morris <rgm@gnu.org>
7127
7128 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
7129 (OTHER_OBJ): Define as a separate variable, for clarity.
7130
210af043
J
71312010-04-30 Jan Djärv <jan.h.d@swipnet.se>
7132
7133 * xsettings.c: include limits.h and update file comment.
7134
0a7df391
GM
71352010-04-30 Glenn Morris <rgm@gnu.org>
7136
d5096f16
GM
7137 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
7138 Set with configure, not cpp.
7139 (LIBW): Remove, replace with $TOOLKIT_LIBW.
7140
7eb1ac33
GM
7141 * Makefile.in (mallocobj): Remove.
7142 (otherobj): Simplify using @OTHER_OBJ@.
7143
517d086b
GM
7144 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
7145 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
7146 Don't bother making nsgui.h dependency platform-specific.
7147
0a7df391
GM
7148 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
7149
d6d23852
SM
71502010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
7151
d2630aef
SM
7152 * process.c (read_process_output, exec_sentinel): Don't burp if the
7153 sentinel/filter kills the current buffer (bug#6060).
7154
f9dddf52 7155 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
7156 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
7157 Remove unused var `args'.
7158 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
7159 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
7160 * doc.c (store_function_docstring): Use XSETCAR.
7161
f1e3642a
GM
71622010-04-28 Glenn Morris <rgm@gnu.org>
7163
faf535f8
GM
7164 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
7165 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
7166
c40f9449
GM
7167 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
7168
658f86ca
GM
7169 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
7170 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
7171
bc0b5f61
GM
7172 * Makefile.in (FONT_OBJ): New, set by configure.
7173 (FONT_DRIVERS): Use $FONT_OBJ.
7174
294c50a0
GM
7175 * Makefile.in (LIBXMU): Set with configure, not cpp.
7176 * s/aix4-2.h (LIBXMU):
7177 * s/hpux10-20.h (LIBXMU):
7178 Remove definition, now set in configure.
7179
e6ec4e99
GM
7180 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
7181
f1e3642a
GM
7182 * m/amdx86-64.h [i386]: Move this test to configure.in.
7183
c6ea2936
GM
71842010-04-27 Glenn Morris <rgm@gnu.org>
7185
8fdac2c3
GM
7186 * Makefile.in (LIBXTR6): Set with configure, not cpp.
7187 * s/unixware.h (NEED_LIBW): Remove definition.
7188
986fb647
GM
7189 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
7190 (TOOLKIT_LIBW): New, set by configure.
7191 (@X_TOOLKIT_TYPE@): No longer define it.
7192
c6ea2936
GM
7193 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
7194 (MOTIF_LIBW): Set with configure, not cpp.
7195 * s/aix4-2.h (LIB_MOTIF):
7196 * s/gnu-linux.h (LIB_MOTIF):
7197 * s/unixware.h (LIB_MOTIF): Move to configure.in.
7198
aaa36002
DN
71992010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
7200
7201 Reduce CPP usage.
7202 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
7203 (obj): Use autoconf for unexec instead of cpp.
bba3e508
SM
7204 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE):
7205 Remove definitions and undefs. Inline definitions in the only user.
ed6281b0 7206 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 7207
b678dd8b
GM
72082010-04-27 Glenn Morris <rgm@gnu.org>
7209
76cda504
GM
7210 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
7211 since the defaults (set by the system file) are fine in most cases.
7212 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
7213 * m/ibms390x.h (START_FILES, LIB_STANDARD):
7214 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
7215 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
7216 Remove definitions, since they are set correctly in s/gnu-linux.h.
7217 * s/freebsd.h (START_FILES, LIB_STANDARD):
7218 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
7219 * s/hpux10-20.h (START_FILES):
7220 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
7221 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
7222
b678dd8b
GM
7223 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
7224 (MOTIF_LIBW): Use $LIBXP.
7225 (otherobj): Use $WIDGET_OBJ.
7226
9452ded1
DN
72272010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
7228
7e10844c
DN
7229 * Makefile.in (LIBS_MACHINE): Remove, unused.
7230
9452ded1
DN
7231 Use autoconf instead of cpp for LIB_MATH.
7232 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
7233 * s/cygwin.h (LIB_MATH): Likewise.
7234 * Makefile.in (LIB_MATH): Do not define with cpp.
7235 (LIBES): Use autoconf for LIB_MATH.
7236
fcebfc6a
KH
72372010-04-26 Kenichi Handa <handa@m17n.org>
7238
7239 * composite.c (Ffind_composition_internal): Fix the return value
7240 for an automatic composition.
7241
39e2ad1b
DN
72422010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
7243
7244 Remove all NO_ARG_ARRAY uses.
7245 * fns.c (concat2, concat3, nconc2):
7246 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
7247 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
7248 * m/xtensa.h (NO_ARG_ARRAY):
7249 * m/template.h (NO_ARG_ARRAY):
7250 * m/sparc.h (NO_ARG_ARRAY):
7251 * m/sh3.h (NO_ARG_ARRAY):
7252 * m/mips.h (NO_ARG_ARRAY):
7253 * m/macppc.h (NO_ARG_ARRAY):
7254 * m/iris4d.h (NO_ARG_ARRAY):
7255 * m/intel386.h (NO_ARG_ARRAY):
7256 * m/ibms390x.h (NO_ARG_ARRAY):
7257 * m/ibms390.h (NO_ARG_ARRAY):
7258 * m/ibmrs6000.h (NO_ARG_ARRAY):
7259 * m/ia64.h (NO_ARG_ARRAY):
7260 * m/hp800.h (NO_ARG_ARRAY):
7261 * m/arm.h (NO_ARG_ARRAY):
7262 * m/amdx86-64.h (NO_ARG_ARRAY):
7263 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
7264
adf4f59c
EZ
72652010-04-25 Eli Zaretskii <eliz@gnu.org>
7266
6bdf5d65
EZ
7267 * xdisp.c (display_line): Don't assume 2nd call to
7268 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
7269 (iterate_out_of_display_property): New function, body from pop_it.
7270 (pop_it): Use it.
adf4f59c 7271
dfbbda83
GM
72722010-04-24 Glenn Morris <rgm@gnu.org>
7273
7274 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
7275 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
7276 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
7277 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
7278
2d4018aa
EZ
72792010-04-24 Eli Zaretskii <eliz@gnu.org>
7280
a49884a6
EZ
7281 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
7282 use `get_next_display_element' and `set_iterator_to_next' to
7283 advance to the next character, when looking for the character that
7284 begins the next row.
7285
76db6fcc 7286 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
7287 definition of "struct Lisp_Symbol".
7288
70eab5c1
GM
72892010-04-24 Glenn Morris <rgm@gnu.org>
7290
7291 * Makefile.in (CRT_DIR): New variable, set by configure.
7292 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
7293 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
7294
1ad4cc3d
DN
72952010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
7296
e769f484
DN
7297 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
7298
4196ff33
DN
7299 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
7300
879b0ee4
DN
7301 Remove redundant flags.
7302 * s/freebsd.h (C_SWITCH_SYSTEM):
7303 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
7304 * s/netbsd.h (C_SWITCH_SYSTEM):
7305 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
7306 of these.
7307
03cbbcb8
DN
7308 Simplify m/intel386.h.
7309 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
7310 user: ecrt0.c.
7311 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
7312 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
7313 the only user: s/unixware.h.
7314 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
7315 from m/intel386.h.
bba3e508
SM
7316 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE):
7317 Definitions moved here from m/intel386.h.
03cbbcb8 7318
1ad4cc3d
DN
7319 * m/mips.h: Remove #if 0 code.
7320
8785b888
EZ
73212010-04-23 Eli Zaretskii <eliz@gnu.org>
7322
728588cc
EZ
7323 Fix display of composed characters from L2R scripts in bidi buffers.
7324 * xdisp.c (set_iterator_to_next, next_element_from_composition):
7325 After advancing IT past the composition, resync the bidi iterator
7326 with IT's position. (Bug#5977)
7327
a63f80b4
DN
73282010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
7329
7330 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
7331 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
7332
ff5dec5c
SM
73332010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
7334
7335 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
7336
8785b888
EZ
73372010-04-23 Eli Zaretskii <eliz@gnu.org>
7338
58ccf243 7339 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
7340 * xdisp.c (pop_it): When the stack is popped after displaying
7341 from a string, bidi-iterate to exit from the text portion covered
7342 by the `display' property or overlay. (Bug#5988, bug#5920)
7343
feeb1604
DN
73442010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
7345
8e324eb6
DN
7346 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
7347 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
7348
809fcaba
DN
7349 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
7350 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
7351
ed710380
DN
7352 Simplify STARTFILES definition.
7353 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
7354 relying on Makefile.in to define it.
7355 * s/cygwin.h (START_FILES): Likewise.
7356 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
7357
feeb1604
DN
7358 Clean up Solaris code.
7359 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
7360 (LIB_MOTIF): Remove, configure takes care of this.
7361 (NOT_USING_MOTIF): Remove, unused.
7362 * xrdb.c: Remove #if 0-ed #include.
7363 (SYSV): Remove conditional for old SysV.
7364 * sysdep.c (closedir): Remove conditional code for Solaris,
7365 Solaris has closedir.
7366
a0d0b563
JD
73672010-04-22 Jan Djärv <jan.h.d@swipnet.se>
7368
7369 * xsettings.c (read_and_apply_settings): Check if current_font is
7370 NULL before strcmp (Bug#6001).
7371
56bae7c7
DN
73722010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
7373
7374 Clean up HP-UX files.
7375 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
7376 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
7377 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
7378 * s/hpux10-20.h: ... to the only user, here.
7379
372b7a95
EZ
73802010-04-21 Eli Zaretskii <eliz@gnu.org>
7381
7382 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
7383 use buffer-local values of paragraph-start and paragraph-separate.
7384 <paragraph_start_re, paragraph_separate_re>: Rename from
7385 fallback_paragraph_start_re and fallback_paragraph_separate_re.
7386 (Bug#5992)
7387
f904c0f9
JD
73882010-04-21 Jan Djärv <jan.h.d@swipnet.se>
7389
7390 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
7391 current_tool_bar_style are new.
7392 (store_config_changed_event): Rename from store_font_changed_event.
7393 (XSETTINGS_TOOL_BAR_STYLE): New define.
7394 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
7395 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
7396 HAVE_XFT.
7397 (something_changedCB): store_font_changed_event is now
c4cc8b9a 7398 store_config_changed_event.
bba3e508
SM
7399 (parse_settings): Rename from parse_xft_settings.
7400 Read non-xft xsettings outside #ifdef HAVE_XFT.
ef1b0ba7 7401 (read_settings): Rename from read_xft_settings.
f904c0f9
JD
7402 (apply_xft_settings): Take current settings as parameter. Do not
7403 call read_(xft)_settings.
7404 (read_and_apply_settings): New function.
bba3e508
SM
7405 (xft_settings_event): Do non-xft stuff out of HAVE_XFT.
7406 Call read_and_apply_settings if there are settings to be read.
ef1b0ba7 7407 (init_xsettings): Rename from init_xfd_settings.
f904c0f9
JD
7408 Call read_and_apply_settings unconditionally.
7409 (xsettings_initialize): Call init_xsettings.
7410 (Ftool_bar_get_system_style): New function.
7411 (syms_of_xsettings): Define Qmonospace_font_name and
7412 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 7413 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 7414 dynamic-setting.
31a01b90 7415 Move misplaced HAVE_GCONF
f904c0f9
JD
7416
7417 * xsettings.h (Ftool_bar_get_system_style): Declare.
7418
7419 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
7420 Qtext, Qboth, Qboth_horiz are new.
7421 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
7422 Vtool_bar_style, tool_bar_max_label_size.
7423
7424 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
7425
7426 * keyboard.c: QClabel is new.
7427 (parse_tool_bar_item): Take out QClabel from tool bar items.
7428 Try to construct a label if ther is no QClabel.
7429 (syms_of_keyboard): Intern :label as QClabel.
7430
7431 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
7432 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
7433 New.
7434
7435 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
7436 dynamic-setting.el.
7437
7438 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
7439 (xg_make_tool_item, xg_show_toolbar_item): New function.
7440 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
7441 Call xg_make_tool_item to make a tool bar item.
7442 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
7443
7444 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
7445 into account for toolbars.
7446
c632dfda
JD
74472010-04-21 Jan Djärv <jan.h.d@swipnet.se>
7448
7449 * data.c (make_blv): Declarations before code (Bug#5993).
7450
10efe302
GM
74512010-04-21 Glenn Morris <rgm@gnu.org>
7452
7453 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
7454 Define using autoconf, not cpp.
7455 (LIBXSM): New variable, set by autoconf.
7456 (LIBXT): Use $LIBXSM.
7457
4285ac5a
DN
74582010-04-21 Dan Nicolaescu <local_user@dannlt>
7459
3ec759e7
DN
7460 Remove NOMULTIPLEJOBS, unused.
7461 * s/template.h (NOMULTIPLEJOBS):
7462 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
7463
4285ac5a
DN
7464 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
7465 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
7466 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
7467 detects -znocombreloc and passes it to the linker
7468 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
7469
2807228d
GM
74702010-04-21 Glenn Morris <rgm@gnu.org>
7471
7472 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
7473
574c05e2
KK
74742010-04-21 Karel Klíč <kklic@redhat.com>
7475
7476 * Makefile.in (LIBSELINUX_LIBS): New.
7477 (LIBES): Add $LIBSELINUX_LIBS.
7478 * eval.c, lisp.h (call7): New function.
7479 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
7480 (Ffile_selinux_context, Fset_file_selinux_context):
7481 New functions.
7482 (Fcopy_file): New parameter preserve-selinux-context.
7483 (Frename_file): Preserve selinux context when renaming by copy-file.
7484
91eac4bb 74852010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 7486 Eli Zaretskii <eliz@gnu.org>
91eac4bb 7487
50426a04
JB
7488 Don't depend on cm.c or termcap.c on Windows, use stubs.
7489 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
7490 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
7491 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
7492 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
7493 (sys_tputs, sys_tgetstr): New stubs.
7494 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
7495 (tputs, tgetstr): New; define to sys_*.
91eac4bb 7496
938efb77
JB
74972010-04-20 Juanma Barranquero <lekktu@gmail.com>
7498
7499 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
7500
b4bf28b7
SM
75012010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
7502
8b1e1112
SM
7503 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
7504 Just signal a warning rather than an error when inside a let.
7505 (Fmake_variable_frame_local): Add the same test.
7506
933ac235
SM
7507 * font.c (syms_of_font): Make the style table vars read-only.
7508
b4bf28b7
SM
7509 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
7510 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
7511
7512 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
7513
93d68d0c
EZ
75142010-04-20 Eli Zaretskii <eliz@gnu.org>
7515
7516 Fix R2L paragraph display on TTY.
7517
7518 * xdisp.c (unproduce_glyphs): New function.
7519 (display_line): Use it when produced glyphs are discarded from R2L
7520 glyph rows.
7521 (append_composite_glyph): In R2L rows, prepend the glyph rather
7522 than appending it.
7523
7524 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
7525 rather than append it. Set up the resolved_level and bidi_type
7526 attributes of the appended glyph.
283ccc18
EZ
7527 (produce_special_glyphs): Mirror the backslash continuation
7528 character in R2L lines.
93d68d0c 7529
283ccc18 7530 Implement display of R2L paragraphs in GUI sessions.
26cdf528 7531
283ccc18
EZ
7532 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
7533 append_stretch_glyph.
bba3e508
SM
7534 (set_cursor_from_row) <cursor_x>: Remove unused variable.
7535 Fix off-by-one error in computing x at end of text in the row.
283ccc18
EZ
7536 (append_stretch_glyph): In reversed row, prepend the glyph rather
7537 than append it. Set resolved_level and bidi_type of the glyph.
7538 (extend_face_to_end_of_line): If the row is reversed, prepend a
7539 stretch glyph whose width is such that the rightmost glyph will be
7540 drawn at the right margin of the window. Fix off-by-one error on
bba3e508
SM
7541 TTY frames in testing whether a line needs face extension.
7542 Fix face extension at ZV. If this is the last glyph row, use
283ccc18
EZ
7543 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
7544 region face.
bba3e508
SM
7545 (set_cursor_from_row, display_line):
7546 Use MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
26cdf528 7547 row->continuation_lines_width.
283ccc18
EZ
7548 (next_element_from_buffer): Don't call bidi_paragraph_init if we
7549 are at ZV. Fixes a crash when reseated to ZV by
7550 try_window_reusing_current_matrix.
45903529
EZ
7551 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
7552 which happens with R2L glyph rows. Fixes a crash when inserting a
7553 character at end of an R2L line.
283ccc18
EZ
7554 (set_cursor_from_row): Don't be fooled by truncated rows: don't
7555 treat them as having zero-width characters. Improve comments.
7556 Don't reverse pos_before and pos_after for reversed glyph rows.
7557 Set cursor.x to negative value when the cursor might be on the
7558 left fringe.
7559 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
7560 left fringe, not the right one.
f951a506
EZ
7561 (notice_overwritten_cursor, draw_phys_cursor_glyph)
7562 (erase_phys_cursor): For reversed cursor_row, support cursor on
7563 the left fringe.
7564
283ccc18
EZ
7565 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
7566 of continuation indicators on the fringes.
7567 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
7568 left fringe.
7569
f951a506
EZ
7570 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
7571 draw cursor on the left fringe.
7572
7573 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
7574 cursor on the left fringe.
7575
f951a506
EZ
7576 * dispnew.c (update_text_area): Handle reversed desired rows when
7577 the cursor is on the left fringe.
7578 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
7579 below, not by 0, for when the cursor is on the left fringe.
7580
3bb49aaf
JD
75812010-04-20 Jan Djärv <jan.h.d@swipnet.se>
7582
7583 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
7584 widget is a scrollbar.
7585
c0be27fd
KH
75862010-04-20 Kenichi Handa <handa@m17n.org>
7587
7588 * charset.c (char_charset): Consider Vcharset_non_preferred_head
7589 only when the arg CHARSET_LIST is nil.
7590
ce5b453a
SM
75912010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
7592
7593 Make variable forwarding explicit rather the using special values.
7594 Basically, this makes the structure of buffer-local values and object
7595 forwarding explicit in the type of Lisp_Symbols rather than use
7596 special Lisp_Objects for that. This tends to lead to slightly more
7597 verbose code, but is more C-like, simpler, and makes it easier to make
7598 sure we handled all cases, among other things by letting the compiler
7599 help us check it.
7600 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
7601 Removing forwarding objects.
7602 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
7603 (struct Lisp_Symbol): Make the various forms of variable-forwarding
7604 explicit rather than hiding them inside Lisp_Object "values".
7605 (XFWDTYPE): New macro.
7606 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
7607 (XBUFFER_LOCAL_VALUE): Remove.
7608 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
7609 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
7610 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
7611 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
7612 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
7613 Remove the Lisp_Misc_* header.
7614 (struct Lisp_Buffer_Local_Value): Redefine.
7615 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
7616 (struct Lisp_Misc_Any): Add filler to get the right size.
7617 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
7618 Lisp_Intfwd.
7619 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
7620 (DEFVAR_KBOARD): Allocate a forwarding object.
7621 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
7622 (let_shadows_global_binding_p): New function.
7623 (union Lisp_Val_Fwd): New type.
7624 (make_blv): New function.
7625 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
7626 (store_symval_forwarding, swap_in_global_binding, Fboundp)
7627 (swap_in_symval_forwarding, find_symbol_value, Fset)
7628 (let_shadows_buffer_binding_p, set_internal, default_value)
7629 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
7630 (Fkill_local_variable, Fmake_variable_frame_local)
7631 (Flocal_variable_p, Flocal_variable_if_set_p)
7632 (Fvariable_binding_locus):
7633 * xdisp.c (select_frame_for_redisplay):
7634 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
7635 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
7636 * frame.c (store_frame_param):
7637 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
7638 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
7639 value structure.
7640 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
7641 (clone_per_buffer_values): Only adjust markers into the current buffer.
7642 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
7643 (Fbuffer_local_value, set_buffer_internal_1)
7644 (swap_out_buffer_local_variables):
7645 Adapt to the new symbol value structure.
7646 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
7647 (defvar_per_buffer): Take a new arg for the fwd object.
7648 (buffer_lisp_local_variables): Return a proper alist (different fix
7649 for bug#4138).
7650 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
7651 (Fgarbage_collect): Don't handle buffer_defaults specially.
7652 (mark_object): Handle new symbol value structure rather than the old
7653 special Lisp_Misc_* objects.
7654 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
7655 * term.c (set_tty_color_mode):
7656 * bidi.c (bidi_initialize): Don't access the ->value field directly.
7657 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
7658 a buffer_local_flags.
7659 * print.c (print_object): Get rid of impossible forwarding objects.
7660
fd3998ff
EZ
76612010-04-19 Eli Zaretskii <eliz@gnu.org>
7662
7663 * bidi.c (bidi_get_type, bidi_get_category)
7664 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
7665 (bidi_type_of_next_char, bidi_level_of_next_char):
7666 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 7667
e42cd1a7
JB
76682010-04-19 Juanma Barranquero <lekktu@gmail.com>
7669
7670 * dired.c (Ffile_attributes): Fix typo in docstring.
7671
6e104790 76722010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
7673
7674 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
7675 NSInteger (Bug#5811).
7676
6e104790 76772010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
7678
7679 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
7680 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
7681
6e104790 76822010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
7683
7684 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
7685
6e104790
SM
76862010-04-19 Chong Yidong <cyd@stupidchicken.com>
7687
7688 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
7689 terminal frames (Bug#5837).
7690
37dcfea0
EZ
76912010-04-19 Eli Zaretskii <eliz@gnu.org>
7692
d1da276f
EZ
7693 * .gdbinit (xsubchartable): New command.
7694
37dcfea0
EZ
76952010-04-19 Eli Zaretskii <eliz@gnu.org>
7696
7697 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 7698 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
7699 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
7700 and
7701 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
7702
e9515805
SM
77032010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
7704
7705 * alloc.c (Fpurecopy): Hash-cons if requested.
7706 (syms_of_alloc): Update purify-flag docstring.
7707
22aa44a8
JD
77082010-04-18 Jan Djärv <jan.h.d@swipnet.se>
7709
7710 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
7711 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
7712
ebb5722e
EZ
77132010-04-17 Eli Zaretskii <eliz@gnu.org>
7714
7715 Fix a crash when an NSM character is inserted at BEGV.
7716
7717 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
7718 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
7719 NEUTRAL_B or UNKNOWN_BT.
7720
0f4442ef
EZ
77212010-04-16 Eli Zaretskii <eliz@gnu.org>
7722
7723 * xdisp.c (set_cursor_from_row): Don't consider possibility of
7724 other rows with cursor unless they are different from this row and
7725 this row is part of a continued line. (Bug#5943)
7726
7d4e45f8
DN
77272010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
7728
7729 * s/freebsd.h: Restore osreldate.h include.
7730 Suggested by Naohiro Aota.
7731
5ba5ec85
J
77322010-04-16 Jan Djärv <jan.h.d@swipnet.se>
7733
7734 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
7735
20af301d
CY
77362010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
7737
7738 * s/cygwin.h: Avoid linking against static libgcc.
7739
a4b000fb
JL
77402010-04-15 Juri Linkov <juri@jurta.org>
7741
7742 * window.c: Add Qscroll_command.
7743 Remove Vscroll_preserve_screen_position_commands.
7744 (window_scroll_pixel_based, window_scroll_line_based): Check the
7745 `scroll-command' property on the last command instead of searching
7746 the last command in Vscroll_preserve_screen_position_commands.
7747 (syms_of_window): Initialize and staticpro `Qscroll_command'.
7748 Put Qscroll_command property on Qscroll_up and Qscroll_down.
7749 (scroll-preserve-screen-position): Doc fix.
7750 (Vscroll_preserve_screen_position_commands): Remove variable.
7751
bc319ba4
DN
77522010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
7753
6bb24457
DN
7754 * xdisp.c (message): Do not use NO_ARG_ARRAY.
7755
19d4c244
DN
77562010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
7757
7758 Reduce cpp use in Makefile.in.
7759 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
7760 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
7761 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
7762 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
7763 (CRT0_COMPILE): Remove, inline it in the only user.
7764
32129746
JL
77652010-04-14 Juri Linkov <juri@jurta.org>
7766
7767 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
7768 `scroll-up-command' and `M-v' from `scroll-down' to
7769 `scroll-down-command'.
7770
9013a7f8
JL
77712010-04-14 Juri Linkov <juri@jurta.org>
7772
7773 * window.c (Vscroll_preserve_screen_position_commands): New variable
7774 with the default value as the list of Qscroll_down and Qscroll_up.
7775 (window_scroll_pixel_based, window_scroll_line_based): Search the
7776 last command in the list Vscroll_preserve_screen_position_commands
7777 instead of comparing with Qscroll_up and Qscroll_down.
7778
4bef8d26
JD
77792010-04-13 Jan Djärv <jan.h.d@swipnet.se>
7780
92848133
JD
7781 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
7782 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
7783 does that.
7784
4bef8d26
JD
7785 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
7786 to zero.
7787
58b963f7
SM
77882010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
7789
84164a0d
SM
7790 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
7791
2b0a91e7
SM
7792 Try to solve the problem of spurious EOF chars in long lines of text
7793 sent to interactive subprocesses.
7794 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
7795 (system_process_attributes): Remove unused var `ttotal'.
7796 * process.c (send_process): Don't bother breaking long line with EOF
7797 chars when talking to ttys any more.
7798 (wait_reading_process_output): Output a warning when called in such
7799 a way that it could block without being interruptible.
7800
58b963f7
SM
7801 Try to detect file modification within the same second.
7802 * buffer.h (struct buffer): New field modtime_size.
7803 * buffer.c (reset_buffer): Initialize it.
7804 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
7805 (Fverify_visited_file_modtime): Check it.
7806 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
7807 (Fset_visited_file_modtime): Set (or clear) it.
7808
01f5787b
SM
78092010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
7810
7811 * process.c (status_notify): Remove unused var `ro'.
7812
83725342
JD
78132010-04-12 Jan Djärv <jan.h.d@swipnet.se>
7814
7815 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
7816 more than one visual (Bug#5938).
7817
b9465836
DN
78182010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
7819
50426a04
JB
7820 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
7821 Undefine.
b9465836 7822
8d9c8ece
DN
78232010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
7824
b1f52161
DN
7825 Remove C_SWITCH_SYSTEM_TEMACS.
7826 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
7827 (malloc, realloc, free): Use emacs, not temacs for conditional
7828 definition.
7829
7830 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
7831 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
7832
8d9c8ece
DN
7833 Use autoconf, not cpp for some variables.
7834 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
7835 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
7836 (ALL_CFLAGS): Use them as make variables.
7837 (really-lwlib, really-oldXMenu): Do not pass them.
7838
1ecb2d3f
JD
78392010-04-11 Jan Djärv <jan.h.d@swipnet.se>
7840
7841 * xmenu.c (apply_systemfont_to_dialog): New.
7842 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
7843
3a4fa2f2
SM
78442010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
7845
97e53006
SM
7846 * process.c (exec_sentinel): Preserve current-buffer.
7847
3a4fa2f2
SM
7848 * process.c (read_process_output): Move the save-current-buffer to
7849 apply to both the filter and the non-filter branches.
7850
88df7221
DN
78512010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
7852
7853 * s/msdos.h (UNEXEC): New definition.
7854
5634ff85
YM
78552010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7856
6eff5c3d
YM
7857 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
7858 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
7859
7860 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
7861 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
7862 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
7863 TRY_WINDOW_CHECK_MARGINS.
7864
7865 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
7866 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
7867 width only when it is for padding.
5634ff85 7868
b13aef54
J
78692010-04-09 Jan Djärv <jan.h.d@swipnet.se>
7870
7871 * xfns.c (Fx_show_tip): Call try_window in a loop until
7872 fonts_changed_p is zero (Bug#2423).
7873
21d28484
EZ
78742010-04-08 Eli Zaretskii <eliz@gnu.org>
7875
7876 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
7877 the end of TEXT_AREA. (Bug#5856)
7878
0269ef77
JD
78792010-04-08 Jan Djärv <jan.h.d@swipnet.se>
7880
7881 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
7882 HAVE_GCONF.
7883
5930fe97
EZ
78842010-04-08 Eli Zaretskii <eliz@gnu.org>
7885
7886 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
7887 prev.orig_type, for resolving type of NSM. (Bug#5858)
7888
99852628
JD
78892010-04-08 Jan Djärv <jan.h.d@swipnet.se>
7890
7891 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
7892 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
7893 in current_font.
7894 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
7895 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
7896 New functions.
7897 (syms_of_xsettings): Initialize current_font.
7898 defsubr Sfont_get_system_normal_font.
99852628 7899
686b968e
JB
7900 * xsettings.h (Ffont_get_system_normal_font)
7901 (xsettings_get_system_normal_font): Declare.
99852628
JD
7902
7903 * xfns.c (extern xlwmenu_default_font): Remove.
7904 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
7905 to xlwmenu.c.
7906
7907 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
7908 menu items in UTF-8.
7909
7910 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
7911 (apply_systemfont_to_menu): New function.
bba3e508
SM
7912 (set_frame_menubar, create_and_show_popup_menu):
7913 Call apply_systemfont_to_menu.
99852628 7914
7fc874c4
J
79152010-04-07 Jan Djärv <jan.h.d@swipnet.se>
7916
7917 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
7918 FRAME_LINE_TO_PIXEL_Y.
7919
7920 * xterm.c (x_set_window_size_1): Don't add border_width/height to
7921 pixelwidth/height.
7922
863bf481
DN
79232010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
7924
5e5a3b92
DN
7925 Simplify code for HP machines.
7926 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
7927 for GNU_LINUX, not needed.
7928 (UNEXEC, NEED_BSDTTY): Move definitions...
7929 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
7930
863bf481
DN
7931 * m/iris4d.h (UNEXEC): Move definition ...
7932 * s/irix6-5.h (UNEXEC): ... here.
7933
3e6bec3b
JD
79342010-04-04 Jan Djärv <jan.h.d@swipnet.se>
7935
7936 * xfns.c (set_machine_and_pid_properties): New function.
7937 (Fx_create_frame): Call set_machine_and_pid_properties.
7938
2912322b
SM
79392010-04-03 Eli Zaretskii <eliz@gnu.org>
7940
bba3e508
SM
7941 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char):
7942 Check bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
1502b819
EZ
7943 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
7944
2912322b
SM
7945 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
7946 in this function. (Bug#5703)
7947
79482010-04-03 Chong Yidong <cyd@stupidchicken.com>
7949
7950 * nsterm.h: Fix last change.
7951
c435b432
DN
79522010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
7953
a568f507
DN
7954 * m/intel386.h (NO_REMAP): Move definition ...
7955 * s/msdos.h (NO_REMAP): ... here.
7956
4cd9f6c2
DN
7957 * m/vax.h (CRT0_DUMMIES): Remove, unused.
7958
c435b432
DN
7959 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
7960 used on those platforms.
7961
42a2c622
DN
79622010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
7963
7964 Remove extern errno declarations.
7965 * xterm.c:
7966 * xrdb.c:
7967 * w32term.c:
7968 * unexec.c:
7969 * unexaix.c:
7970 * sysdep.c:
7971 * process.c:
7972 * lread.c:
7973 * keyboard.c:
7974 * floatfns.c:
7975 * filelock.c:
7976 * fileio.c:
7977 * emacs.c (main):
7978 * ecrt0.c:
7979 * dispnew.c:
7980 * callproc.c:
7981 * buffer.c: Remove errno extern declarations.
7982 * s/netbsd.h (NEED_ERRNO): Remove.
7983
8224f93d
DN
79842010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
7985
7986 Remove all uses of LIBX11_SYSTEM.
7987 * Makefile.in (LIBX11_SYSTEM): Remove.
7988 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
7989 instead.
7990
814062c7
EZ
79912010-04-01 Eli Zaretskii <eliz@gnu.org>
7992
ed68db4d
EZ
7993 Remove support for DJGPP v1.x (bug#5813).
7994
7995 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
7996 * s/msdos.h:
7997 * unexec.c (make_hdr, copy_text_and_data):
7998 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 7999 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
8000 (IT_set_terminal_modes, __write, _rename, gethostname)
8001 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
8002 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
8003 the value of __DJGPP__.
ed68db4d
EZ
8004 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
8005 compatibility code.
8224f93d
DN
8006 * lread.c:
8007 * gmalloc.c (memalign):
8008 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
8009 * emacs.c (main):
8010 * dosfns.c (init_dosfns):
ed68db4d
EZ
8011 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
8012
52f4d8d5
EZ
80132010-04-01 Eli Zaretskii <eliz@gnu.org>
8014
814062c7
EZ
8015 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
8016 string with `cursor' property comes from an `after-string'
8017 overlay. (Bug#5816)
8018
0dc2e11d
GM
80192010-04-01 Glenn Morris <rgm@gnu.org>
8020
8021 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
8022 Define as Makefile variables.
8023 (LIBX): Use above variables rather than directly using autoconf.
8024
1d29df59
DN
80252010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
8026
8027 Clean up BSD_SYSTEM use.
8028 * xterm.c:
8029 * process.c:
8030 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
8031 for including <sys/ioctl.h>.
8032 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
8033 code is only used for MSDOS.
8034
1546c559
JL
80352010-03-31 Juri Linkov <juri@jurta.org>
8036
8037 * image.c: Add `Qextension_data'.
8038 (syms_of_image): Initialize and staticpro `Qextension_data'.
8039 (Fimage_metadata): Rename from `Fimage_extension_data'.
8040 (gif_load): Put GIF extension data to the property
8041 `Qextension_data'.
8042
6521c534
CY
80432010-03-31 Chong Yidong <cyd@stupidchicken.com>
8044
8045 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
8046 * nsterm.h: Fix prototype.
8047
52c30783
EZ
80482010-03-31 Eli Zaretskii <eliz@gnu.org>
8049
8050 * xdisp.c (highlight_trailing_whitespace): Support highlight of
8051 trailing whitespace in right-to-left rows.
8052
855a0da7
SM
80532010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
8054
8055 Get rid of the direct_output optimizations.
8056 * keyboard.c (nonundocount): Remove extern declaration.
8057 (command_loop_1): Remove brittle optimisation for cheap and
8058 common operations.
8059 * xdisp.c (redisplay_internal): Don't bother checking
8060 redisplay_performed_directly_p any more.
8061 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
8062 any more.
8063 * dispnew.c (redisplay_performed_directly_p)
8064 (direct_output_for_insert, direct_output_forward_char):
8065 * dispextern.h (redisplay_performed_directly_p)
8066 (direct_output_for_insert, direct_output_forward_char): Remove.
8067 * cmds.c (nonundocount): Make it static.
8068
85738751 80692010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
8070
8071 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
8072
85738751 80732010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
8074
8075 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
8076 invisible (Bug#5766).
8077
85738751 80782010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 8079
855a0da7
SM
8080 * xdisp.c (x_consider_frame_title, update_window_cursor):
8081 Remove HAVE_NS conditionals.
194d44e7 8082 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
8083
8084 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
8085 filename for the title.
8086 (ns_set_doc_edited): Do nothing if the selected window is a
8087 minibuffer window.
8088
8089 * nsterm.h: Add prototypes for ns_set_name_as_filename and
8090 ns_set_doc_edited.
8091
8092 * nsterm.m: Remove unneeded prototype.
8093
85738751 80942010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
8095
8096 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
8097 in the DOC file. (Bug#5336)
8098
85738751 80992010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
8100
8101 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
8102
75d1428c
SM
81032010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
8104
8105 * window.c (keys_of_window): Remove redundant/overridden bindings.
8106
82043cfb
EZ
81072010-03-30 Eli Zaretskii <eliz@gnu.org>
8108
8109 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
8110 Restore original behavior when the iterator is not bidi_p.
8111
b5dd0ae7
DN
81122010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
8113
8114 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
8115
bd924a5d
EZ
81162010-03-30 Eli Zaretskii <eliz@gnu.org>
8117
8118 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
8119 are outside the range of cached character positions.
8120
3580374b
JB
81212010-03-30 Juanma Barranquero <lekktu@gmail.com>
8122
8123 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
8124
a7b02820
EZ
81252010-03-30 Eli Zaretskii <eliz@gnu.org>
8126
8127 Initial support for bidirectional editing.
8128
8129 * Makefile.in (obj): Include bidi.o.
8130 (bidi.o): New target.
8131
8132 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
8133 ($(BLD)/bidi.$(O)): New target.
8134
8135 * bidi.c: New file.
8136
8137 * buffer.h (struct buffer): New members bidi_display_reordering
8138 and bidi_paragraph_direction.
8139
8140 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
8141 and bidi_paragraph_direction.
8142 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
8143 and bidi-paragraph-direction.
8144 (Fbuffer_swap_text): Swap the values of
8145 bidi_display_reordering and bidi_paragraph_direction.
8146
8147 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
8148 (bidi_type_t, bidi_dir_t): New types.
8149 (bidi_saved_info, bidi_stack, bidi_it): New structures.
8150 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
8151 prev_stop, base_level_stop, and eol_pos.
8152 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
8153 (IT_STACK_SIZE): Enlarge to 5.
8154 (struct glyph_row): New member reversed_p.
8155 <string_buffer_position>: Update prototype.
8156 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
8157 glyph_row if bidi_it.paragraph_dir == R2L.
8158 (struct glyph): New members resolved_level and bidi_type.
8159
8160 * dispnew.c (direct_output_forward_char): Give up if we need bidi
8161 processing or buffer's direction is right-to-left.
8162 (prepare_desired_row): Preserve the reversed_p flag.
8163 (row_equal_p): Compare the reversed_p attributes as well.
8164
bba3e508
SM
8165 * xdisp.c (init_iterator): Initialize it->bidi_p.
8166 Call bidi_init_it and set it->paragraph_embedding from the current
a7b02820
EZ
8167 buffer's value of bidi_paragraph_direction.
8168 (reseat_1): Initialize bidi_it.first_elt.
8169 (set_iterator_to_next, next_element_from_buffer): Use the value of
8170 paragraph_embedding to determine the paragraph direction.
8171 (set_iterator_to_next): Under bidi reordering, call
8172 bidi_get_next_char_visually. Call bidi_paragraph_init if the
8173 new_paragraph flag is set in the bidi iterator.
8174 (next_element_from_buffer): If bidi_it.first_elt is set,
8175 initialize paragraph direction and find the first character to
8176 display in the visual order. If reseated to a middle of a line,
bba3e508
SM
8177 prime the bidi iterator starting at the line's beginning.
8178 Handle the situation where we overstepped stop_charpos due to
a7b02820
EZ
8179 non-linearity of the bidi iteration. Likewise for when we back up
8180 beyond the previous stop_charpos. When moving across stop_charpos,
8181 record it in prev_stop.
8182 (display_line): Set row->end and it->start for the next row to the
8183 next character in logical order. Always extend reversed_p rows to
8184 the end of line, even if they end at ZV. Copy the reversed_p flag
8185 to the next glyph row. Keep calling set_cursor_from_row for
8186 bidi-reordered rows even if we already have a possible candidate
8187 for cursor position. Set row_end after all the row's glyphs have
8188 been produced, by looping over the glyphs. Record the position
8189 after EOL in it->eol_pos, and use it to set end_pos of the last
8190 row produced for a continued line.
8191 <Qright_to_left, Qleft_to_right>: New variables.
8192 (syms_of_xdisp): Initialize and staticpro them.
8193 (string_buffer_position_lim): New function.
8194 (string_buffer_position): Most of code moved to
8195 string_buffer_position_lim. Last argument and return value are
8196 now EMACS_INT; all callers changed.
8197 (set_cursor_from_row): Rewritten to support bidirectional text and
8198 reversed glyph rows.
bba3e508
SM
8199 (text_outside_line_unchanged_p, try_window_id):
8200 Disable optimizations if we are reordering bidirectional text and the
a7b02820
EZ
8201 paragraph direction can be affected by the change.
8202 (append_glyph, append_composite_glyph)
8203 (produce_image_glyph, append_stretch_glyph): Set the
8204 resolved_level and bidi_type members of each glyph.
8205 (append_glyph): If the glyph row is reversed, prepend the glyph
8206 rather than appending it.
8207 (handle_stop_backwards): New function.
8208 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
8209 (reseat): call handle_stop_backwards to recompute prev_stop and
8210 base_level_stop for the new position.
8211 (handle_invisible_prop): Under bidi iteration, skip invisible text
8212 using bidi_get_next_char_visually. If we are `reseat'ed, init the
8213 paragraph direction. Update IT->prev_stop after skipping
8214 invisible text.
8215 (move_it_in_display_line_to): New variables prev_method
8216 and prev_pos. Compare for strict equality in
8217 BUFFER_POS_REACHED_P.
8218 (try_cursor_movement): Examine all the candidate rows that occlude
8219 point, to return the best match. If rows are bidi-reordered
8220 and point moved backwards, back up to the row that is not a
8221 continuation line, and start looking for a suitable row from
8222 there.
8223
8224 * term.c (append_glyph): Reverse glyphs by pre-pending them,
8225 rather than appending, if the glyph_row's reversed_p flag is set.
8226 Set the resolved_level and bidi_type members of each glyph.
8227
8228 * .gdbinit (pbiditype): New command.
8229 (pgx): Use it to display bidi level and type of the glyph.
8230 (pitx): Display some bidi information about the iterator.
8231 (prowlims, pmtxrows): New commands.
8232
32a8894e
DN
82332010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
8234
8235 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
8236 * s/usg5-4.h (LIBS_DEBUG):
8237 * s/irix6-5.h (C_DEBUG_SWITCH):
8238 * s/gnu-linux.h (LIBS_DEBUG):
8239 * s/darwin.h (LIBS_DEBUG):
8240 * s/bsd-common.h (LIBS_DEBUG):
8241 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
8242 * m/iris4d.h (LIBS_DEBUG):
8243 * m/hp800.h (LIBS_DEBUG): Remove definitions.
8244
8245 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
8246 (LIBS_DEBUG): Remove definition.
8247
649dbf36
CY
82482010-03-27 Chong Yidong <cyd@stupidchicken.com>
8249
8250 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
8251 Windows.
8252
cad4261f
YM
82532010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8254
8255 * process.c (Fmake_network_process): Don't call turn_on_atimers around
8256 `connect' (Bug#5723).
8257
cd591dbc
HE
82582010-03-25 Helmut Eller <eller.helmut@gmail.com>
8259
8260 * process.c (Fmake_network_process): Call `select' for interrupted
8261 `connect' rather than creating new socket (Bug#5173).
8262
e867cb5d 82632010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
8264
8265 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
8266
8267 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
8268
8269 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
8270
e867cb5d 82712010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
8272
8273 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
8274 XLoadQueryFont.
8275
e867cb5d 82762010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
8277
8278 * coding.c (decode_coding_ccl): Fix previous change for the
8279 multibyte case.
fb608df3
KH
8280 (encode_coding_ccl): Don't setup ccl program here. Fix for the
8281 case that the output buffer is fullfilled.
8282 (encode_coding): Setup ccl program here.
fbdc1721 8283
5845f0ed
DN
82842010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
8285
814fb708
DN
8286 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
8287
5845f0ed
DN
8288 Simplify LIBS_MACHINE definitions.
8289 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
8290 * m/iris4d.h (LIBS_MACHINE): Likewise.
8291 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
8292 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 8293 * s/netbsd.h: Remove commented out code.
5845f0ed 8294
b7064064
DN
82952010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
8296
df7734b2
DN
8297 Remove dead code dealing with POSIX_SIGNALS.
8298 * atimer.c (set_alarm): Remove dead code, all USG systems define
8299 POSIX_SIGNALS.
8300 * data.c (arith_error): Likewise.
8301 * keyboard.c (input_available_signal, handle_user_signal)
8302 (interrupt_signal): Likewise.
8303 * process.c (sigchld_handler): Likewise.
8304 (create_process): Remove if 0 code. Remove HPUX conditional when
8305 !defined (POSIX_SIGNALS), it cannot be true.
8306 * syssignal.h: Remove USG5_4 and USG conditionals when
8307 !POSIX_SIGNALS, they cannot be true.
8308
b7064064
DN
8309 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
8310 NO_SOCK_SIGIO, not used anymore.
8311
55da5ee3
DN
83122010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
8313
0be96e3a
DN
8314 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
8315 support vax on BSDs.
8316
55da5ee3
DN
8317 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
8318 * s/aix4-2.h (ORDINARY_LINK): ... here.
8319
c0282183
AS
83202010-03-21 Andreas Schwab <schwab@linux-m68k.org>
8321
82c3d67a
AS
8322 * Makefile.in (abs_builddir): Define.
8323 (bootstrap_exe): Use it.
8324 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 8325
3613edce
SM
83262010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
8327
8328 * Makefile.in (bootstrap_exe): Use an absolute name.
8329
7f110ddc
DN
83302010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
8331
22e87574
DN
8332 Remove support for old GNU/Linux using libc version 5.
8333 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
8334 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
8335
05a670e6
DN
8336 Consolidate redundant definitions in s/bsd-common.h.
8337 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
8338 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
8339 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
8340 doing it in all files that include this one.
8341 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
8342 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
8343 (LDAV_SYMBOL, KERNEL_FILE): Remove.
8344 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
8345 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
8346 (LDAV_SYMBOL, KERNEL_FILE): Remove.
8347 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
8348 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
8349 (LDAV_SYMBOL, KERNEL_FILE): Remove.
8350
2968f561
DN
8351 Consolidate redundant definitions.
8352 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
8353 it's undefined in all files that include this one.
8354 (POSIX_SIGNALS): Define here instead of doing it in all files that
8355 include this one.
8356 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
8357 (POSIX_SIGNALS): Do not define.
8358 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
8359 (POSIX_SIGNALS): Do not define.
8360 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
8361 (POSIX_SIGNALS): Do not define.
8362
15d25dc0
DN
8363 Remove support for old UNIX System V systems.
8364 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
8365 * s/usg-5-4-2.h: Remove.
8366
07e339e4
DN
8367 Remove support for Solaris on PPC and for old versions.
8368 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
8369 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
8370 that cancel each other.
8371 * s/sol2-3.h:
8372 * s/sol2-4.h:
8373 * s/sol2-5.h: Remove.
8374 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
8375 (NO_REMAP): Remove, unused.
8376 (UNEXEC): Move definition ...
8377 * s/aix4-2.h (UNEXEC): ... here.
8378
7f110ddc
DN
8379 * s/openbsd.h: Remove support for non-ELF and for systems that do
8380 not support shared libraries.
8381 * s/netbsd.h:
8382 * s/freebsd.h: Likewise.
8383
605f35cd
DN
83842010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
8385
8386 Remove non-working support for lynxos 3.0.
8387 * s/lynxos.h: Remove file.
8388
8389 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
8390 COFF_BSD_SYMBOLS, nothing defines it anymore.
8391
aed71cf4
DN
83922010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
8393
8394 Remove obsolete uses of HAVE_SHM.
8395 * emacs.c (standard_args):
8396 (Fdump_emacs):
8397 (syms_of_emacs): Remove code depending on HAVE_SHM.
8398
8399 * alloc.c: Remove HAVE_SHM dependent definition.
8400
8401 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
8402
aded53ff
GM
84032010-03-18 Glenn Morris <rgm@gnu.org>
8404
17284745
GM
8405 * emacs.c (USAGE4): Hard-code bug address.
8406 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
8407 (bug_reporting_address): Remove.
8408 (main): Don't call bug_reporting_address.
8409
aded53ff
GM
8410 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
8411 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
8412
303500aa
CY
84132010-03-15 Chong Yidong <cyd@stupidchicken.com>
8414
8415 * xfns.c (Fx_create_frame):
8416 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
8417 on left.
8418
cef3058f
CY
84192010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
8420
8421 * editfns.c (Fformat): Account for string precision when computing
8422 field width (Bug#5710).
8423
a647d59d
CY
84242010-03-12 Chong Yidong <cyd@stupidchicken.com>
8425
4fa42018
CY
8426 * xfns.c (Fx_create_frame): Set default to Qright.
8427
a647d59d
CY
8428 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
8429 all window systems.
8430
6da23aaa
EZ
84312010-03-12 Eli Zaretskii <eliz@gnu.org>
8432
a96f6398 8433 These changes remove termcap.c from the build on Posix platforms.
83d02def 8434 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
8435 (MSDOS_OBJ): ...to here.
8436 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
8437 now identical to when LIBS_TERMCAP is defined.
8438
8439 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
8440
8441 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
8442
a96f6398 8443 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 8444
288f9fc0
CY
84452010-03-10 Chong Yidong <cyd@stupidchicken.com>
8446
8447 * Branch for 23.2.
8448
d48cd3f4
SM
84492010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
8450
8451 Cleanup setup of gl_state in various parts of the code.
8452 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
8453 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
8454 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
8455 (skip_chars):
8456 * regex.c (regex_compile): Use it.
8457 (re_compile_pattern): Don't set gl_state.current_syntax_table since
8458 it's now set in regex_compile when/if we need it.
8459
618db430
SM
84602010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
8461
c0335e02
SM
8462 Make it possible to C-g in a tight bytecode loop again (bug#5680).
8463 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
8464 (QUIT): Use it to consolidate code and remove redundancy.
8465 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
8466
254c06a8
SM
8467 * regex.c (regex_compile): Setup gl_state as well.
8468
618db430
SM
8469 * syntax.c (skip_chars): Setup gl_state (bug#3823).
8470 (in_classes): Use CONSP before XCAR/XCDR.
8471
233f0c9f
CY
84722010-03-03 Chong Yidong <cyd@stupidchicken.com>
8473
8474 * keymap.c (Fwhere_is_internal): Use Fequal to compare
8475 definitions, so that keyboard macros are correctly handled
8476 (Bug#5481).
8477
75f80e63
EZ
84782010-03-02 Eli Zaretskii <eliz@gnu.org>
8479
8480 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
8481 text that could be relocated inside the call to emacs_mule_char.
8482 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
8483 (CODING_DECODE_CHAR): Add a comment describing its purpose.
8484
dcfb9bc4
KH
84852010-03-02 Kenichi Handa <handa@m17n.org>
8486
fc9a17bc
KH
8487 * character.c (parse_str_as_multibyte): Fix handling of the
8488 multibyte form of raw-bytes.
8489 (str_as_multibyte): Likewise.
8490
dcfb9bc4
KH
8491 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
8492 form of raw-bytes.
8493
412c01b6
CY
84942010-02-28 Chong Yidong <cyd@stupidchicken.com>
8495
8496 * charset.c (load_charset_map_from_file)
8497 (load_charset_map_from_vector): Zero out allocated
8498 charset_map_entries before using them.
8499
df7e1ea0
AS
85002010-02-27 Andreas Schwab <schwab@linux-m68k.org>
8501
8502 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
8503
fe69a722
CY
85042010-02-27 Chong Yidong <cyd@stupidchicken.com>
8505
4ed28cf4
CY
8506 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
8507 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 8508
7379cfce
KH
85092010-02-26 Kenichi Handa <handa@m17n.org>
8510
f88cc4d6
KH
8511 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
8512
7379cfce
KH
8513 * xdisp.c (reseat_to_string): Fix previous change.
8514
cf2fdcfb
CY
85152010-02-26 David Reitter <david.reitter@gmail.com>
8516
8517 * nsfont.m (nsfont_draw): ns_antialias_text should be a
8518 Lisp_Object (Bug#4736).
8519
cc6c7c75
KH
85202010-02-25 Kenichi Handa <handa@m17n.org>
8521
8522 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
8523
32e737d7
JD
85242010-02-24 Jan Djärv <jan.h.d@swipnet.se>
8525
8526 * xterm.c (XTflash): Move declarations before statements.
8527
8528 * gtkutil.c (xg_get_gdk_display): Remove (unused).
8529 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
8530 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
8531 (xg_create_tool_bar): Remove unused variables.
8532 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 8533 (xg_create_frame_widgets): Remove variable grav.
32e737d7 8534
676cae9f
CY
85352010-02-21 Chong Yidong <cyd@stupidchicken.com>
8536
8537 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
8538
886cc2b8
SM
85392010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
8540
8541 * term.c (fatal): Add a final \n if needed (bug#5596).
8542
ddb2d8e2
CY
85432010-02-18 Chong Yidong <cyd@stupidchicken.com>
8544
8545 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
8546
2a4f8d3d
GM
85472010-02-18 Glenn Morris <rgm@gnu.org>
8548
8549 * callint.c (Finteractive): Doc fix.
8550
ebaf11b6
KH
85512010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
8552
886cc2b8
SM
8553 * coding.c (record_conversion_result):
8554 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
8555 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
8556 memory allocation error.
8557
d0396581
KH
85582010-02-17 Kenichi Handa <handa@m17n.org>
8559
886cc2b8
SM
8560 * coding.c (decode_coding_ccl): Don't setup ccl program here.
8561 Fix for the case that the output buffer is fullfilled.
d0396581
KH
8562 (decode_coding): Setup ccl program here. Keep looping when the
8563 decoder stopped because the output buffer is
8564 fullfilled (bug#5534).
8565
8566 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
8567
98599f74
JD
85682010-02-13 Jan Djärv <jan.h.d@swipnet.se>
8569
471e4f04 8570 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 8571 bug #5571.
886cc2b8 8572 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 8573 overdrawn.
98599f74 8574
182659ae
JD
85752010-02-10 Jan Djärv <jan.h.d@swipnet.se>
8576
8577 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
8578 doing_interact here.
8579 (ice_connection_closed): New function.
8580 (x_session_check_input, smc_die_CB, ice_io_error_handler)
8581 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
8582 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
8583 returns I/O error.
8584 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
8585 bug #5512.
8586
9be32c4e 85872010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
8588
8589 * nsfont.m (nsfont_open): The system's value for the font descent
8590 is negative, so round it down to avoid clipping.
8591
a2f3eb19
CY
85922010-02-06 Chong Yidong <cyd@stupidchicken.com>
8593
8594 * charset.c (load_charset_map_from_file)
8595 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 8596 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 8597
3088147c
CY
85982010-02-05 Chong Yidong <cyd@stupidchicken.com>
8599
8600 * charset.c (load_charset_map_from_file): Allocate large
8601 charset_map_entries structure on the heap rather than the stack.
8602 (Bug#5526).
8603
b57d9029
KH
86042010-01-31 Kenichi Handa <handa@m17n.org>
8605
8606 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 8607 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 8608
c67d885b
CY
86092010-01-31 Chong Yidong <cyd@stupidchicken.com>
8610
8611 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
8612 <deactivated@gmail.com> (Bug#3605).
8613
8fab2362
CY
86142010-01-31 David De La Harpe Golden <david@harpegolden.net>
8615
8616 * fileio.c (Frename_file): Correctly rename symlinks to
8617 directories (Bug#5496).
8618
cb2a62f2
CY
86192010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
8620
8621 * nsterm.m (ns_ring_bell): Handle visible bell like X.
8622
944c7a26
AS
86232010-01-30 Andreas Schwab <schwab@linux-m68k.org>
8624
8625 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
8626
c024ac08
CY
86272010-01-29 Chong Yidong <cyd@stupidchicken.com>
8628
8629 * frame.c (DEFAULT_ROWS): Change default to 35.
8630
8631 * xfns.c (x_default_font_parameter): Change default XFT font to
8632 monospace-10 (Bug#3643).
8633
af93af83
EZ
86342010-01-29 Eli Zaretskii <eliz@gnu.org>
8635
8636 * w32inevt.c (key_event): Remove unnecessary comparison of
8637 event->uChar.AsciiChar with 128.
8638
ca0eb708
CY
86392010-01-28 Chong Yidong <cyd@stupidchicken.com>
8640
b242dbfc
CY
8641 * fileio.c (Frename_file): Fix last change (Bug#5487).
8642
ca0eb708
CY
8643 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
8644
8645 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
8646
45d45af5
JD
86472010-01-28 Jan Djärv <jan.h.d@swipnet.se>
8648
8649 * xfns.c (Fx_create_frame): Remove window size matching code from
8650 2010-01-15.
a73f9c9d 8651 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 8652
7e233730
JR
86532010-01-27 Jason Rumney <jasonr@gnu.org>
8654
8655 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 8656 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 8657
86e893e3
KH
86582010-01-27 Kenichi Handa <handa@m17n.org>
8659
8660 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 8661 pattern string (Bug#4209).
86e893e3 8662
8719abec
CY
86632010-01-27 David De La Harpe Golden <david@harpegolden.net>
8664
8665 * fileio.c (Frename_file): Call copy-directory and
8666 delete-directory for directories, in order to handle cross-device
8667 renaming (Bug#3353).
8668
844794c8
JD
86692010-01-25 Jan Djärv <jan.h.d@swipnet.se>
8670
aa3e13b5 8671 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 8672 sizes 24 and 10. Bug #3643.
844794c8 8673
bd4b5750
SM
86742010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
8675
8dc1adf6 8676 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
8677 * keymap.c (shadow_lookup): Add `remap' arg.
8678 (describe_map, describe_vector): Update calls to shadow_lookup.
8679 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
8680 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
8681 perform remapping during shadow_lookup check of remapped_sequences.
8682
285d07e2
CY
86832010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
8684
8685 * image.c (png_load): Use png_sig_cmp instead of the obsolete
8686 png_check_sig, which has been removed in libpng 1.4.
8687
c6d09b8d
CY
86882010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
8689
8690 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
8691 lacks this header file).
8692
3d782998
YM
86932010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8694
8695 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
8696 as in Emacs 22.
8697
2aff7c53
YM
86982010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8699
8700 * lisp.h (make_pure_string): String pointer arg now points to const.
8701
8702 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
8703 args now point to const.
8704
74327f7a
EZ
87052010-01-22 Eli Zaretskii <eliz@gnu.org>
8706
8707 * lread.c (Fload): Don't treat files without .elc extension as
8708 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
8709 them. (bug#5303)
8710
4d1e6632
KH
87112010-01-20 Kenichi Handa <handa@m17n.org>
8712
8713 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
8714 treat the source as actual byte sequence.
8715
1fdede8f
AM
87162010-01-19 Alan Mackenzie <acm@muc.de>
8717
8718 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 8719 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
8720 `signal_after_change_p' to `coherent_change_p', and make the
8721 invocation of `modify_region' conditional on it.
8722
67477f30
JD
87232010-01-19 Jan Djärv <jan.h.d@swipnet.se>
8724
8725 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
8726 for debug purpose.
8727 (syms_of_xsettings): Declare xft-settings.
8728
244b023e
CY
87292010-01-18 Chong Yidong <cyd@stupidchicken.com>
8730
8731 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
8732
617364fe
CY
87332010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
8734
8735 * xterm.c (event_handler_gdk): Block input (Bug#5037).
8736
4fe22cdf
CY
87372010-01-16 Chong Yidong <cyd@stupidchicken.com>
8738
8739 * emacs.c (standard_args): Adjust arg priorities to reflect how
8740 they are processed in startup.el.
8741
e118d2be
AS
87422010-01-16 Andreas Schwab <schwab@linux-m68k.org>
8743
8744 * Makefile.in (lisp, shortlisp): Update.
8745
523ae620
SM
87462010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
8747
8748 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
8749 code, link the new kboard into all_kboard before running Lisp code,
8750 and protect the new terminal with GCPRO (Bug#5365).
8751 (x_term_init): Remove unused var `atom'.
8752 (x_delete_display, x_delete_terminal): Remove unused var `i'.
8753
f0d13888
JD
87542010-01-15 Jan Djärv <jan.h.d@swipnet.se>
8755
8756 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
8757 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
8758 to find out usable size of the desktop. Don't make frames larger than
ac146f82 8759 this. Bug #3643.
f0d13888 8760
cc320f07
KH
87612010-01-15 Kenichi Handa <handa@m17n.org>
8762
8763 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
8764
7ffdf101
CY
87652010-01-15 Chong Yidong <cyd@stupidchicken.com>
8766
8767 * nsterm.m (Qnone): Define.
8768
8769 * nsfns.m (Qnone): Move definition to nsterm.m.
8770
d12bd917
KH
87712010-01-14 Kenichi Handa <handa@m17n.org>
8772
8773 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
8774 systems.
8775
d9a7c140
KH
87762010-01-14 Kenichi Handa <handa@m17n.org>
8777
8778 Make auto-composition work on all buffers even if they are
8779 fundamental mode.
8780
8781 * composite.c (Vauto_composition_mode): New variable.
8782 (composition_compute_stop_pos): Check Vauto_composition_mode
8783 instead of Vauto_composition_function.
8784 (composition_adjust_point, Ffind_composition_internal): Likewise.
8785 (syms_of_composite): Declare Lisp variable
8786 "auto-composition-mode" here.
8787
63286bb2
CY
87882010-01-13 Chong Yidong <cyd@stupidchicken.com>
8789
8790 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
8791 during call to vendor-specific-keysyms (Bug#5365).
8792
c2623ee7
YM
87932010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8794
8795 * keyboard.c (input_available_signal) [SYNC_INPUT]:
8796 Call SIGNAL_THREAD_CHECK (Bug#5333).
8797
8798 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
8799 Call SIGNAL_THREAD_CHECK.
8800
0b5397c2
SM
88012010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
8802
8803 Try to fix bug#5314. This is probably not the final word, tho.
8804 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
8805 recent-auto-save-p as a side-effect.
8806 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
8807 * buffer.c (Fkill_buffer, reset_buffer):
8808 * editfns.c (Fsubst_char_in_region):
8809 * fileio.c (Finsert_file_contents, Fdo_auto_save)
8810 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
8811
dc954cb2
KH
88122010-01-13 Kenichi Handa <handa@m17n.org>
8813
8814 Display buffer name, etc. in mode line by composing correctly.
8815
8816 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
8817 STRING is not nil.
0b5397c2 8818 (display_mode_element): Adjust for the change of
dc954cb2
KH
8819 decode_mode_spec and display_line.
8820 (decode_mode_spec): Change arg MULTIBYTE to STRING.
8821 (display_string): Handle the case that STRING is non-null and
8822 LISP_STRING is not nil.
8823
0b5397c2
SM
8824 * xterm.c (x_draw_composite_glyph_string_foreground):
8825 Pay attention to s->face->overstrike.
dc954cb2
KH
8826
8827 * composite.c (composition_reseat_it): Don't check PT if STRING is
8828 non nil.
8829
4a00eaca
YM
88302010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8831
8832 * keyboard.c (read_char): Don't apply previous change when current
8833 buffer is unchanged by command execution.
8834
60abb287
JD
88352010-01-12 Jan Djärv <jan.h.d@swipnet.se>
8836
8837 * keyboard.c (read_char): Return after executing from special map.
8838
893db5bc
GM
88392010-01-12 Glenn Morris <rgm@gnu.org>
8840
8841 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
8842 bug-gnu-emacs rather than emacs-pretest-bug.
8843
4d03ece0
CY
88442010-01-11 Chong Yidong <cyd@stupidchicken.com>
8845
8846 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
8847 initializing the Lisp variables that depend on them.
8848
1df47e38
YM
88492010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8850
8851 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
8852 Clear areas that will not be updated after change of menu bar lines.
8853 Clear the menu bar window's current matrix when the window gets empty.
8854
2f1c6384
CY
88552010-01-09 Chong Yidong <cyd@stupidchicken.com>
8856
e398c61c
CY
8857 * intervals.h, textprop.c (extend_property_ranges): Return value
8858 and args changed. Discard properties that begin at or after the
8859 new end (Bug#5306).
8860
8861 * editfns.c (Fformat): Caller changed.
8862
e5a29a10
CY
8863 * nsterm.m (ns_set_default_prefs): Delete function.
8864 (syms_of_nsterm): Initialize ns_command_modifier,
8865 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
8866 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
8867
2f1c6384
CY
8868 * xdisp.c (pos_visible_p): Check for invisible text at the correct
8869 position (Bug#4040).
8870
d427a9fa
EZ
88712010-01-09 Eli Zaretskii <eliz@gnu.org>
8872
8873 * editfns.c (Ffloat_time): Doc fix.
8874
21b9df2f
JD
88752010-01-09 Jan Djärv <jan.h.d@swipnet.se>
8876
8877 * xfns.c (Fx_create_frame): Don't create frame larger than display
8878 by default bug#3643.
8879
4b00d3b1
YM
88802010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8881
8882 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
8883 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
8884 windows above internal border.
8885
8886 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
8887 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
8888 windows above internal border.
8889
8890 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
8891 tool bar windows specially.
8892
8893 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
8894
8895 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
8896 specially.
8897 (XTflash): Take account of menu bar height.
8898
8899 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
8900 specially.
8901
5075d853
JD
89022010-01-08 Jan Djärv <jan.h.d@swipnet.se>
8903
ac146f82 8904 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
8905 also be true before we can return early (bug #5339).
8906
474217c8
CY
89072010-01-06 David Reitter <david.reitter@gmail.com>
8908
8909 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
8910 (Fns_display_usable_bounds): Rewrite, computing bounds properly
8911 (Bug#3233).
8912
c0e6d47d
JD
89132010-01-06 Jan Djärv <jan.h.d@swipnet.se>
8914
d0cf45b7
JD
8915 * font.c (font_open_entity): Enable chache and call cached_font_ok
8916 for the driver if defined.
8917 (QCuser_spec): New symbol.
8918 (font_spec_from_name): Save name as user-spec.
8919 (font_load_for_lface): Keep user-spec instead of name.
8920 (font_open_by_name): Save name as user-spec.
8921 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 8922 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
8923
8924 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
8925 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
8926 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
8927
8928 * font.h (struct font_driver): Add cached_font_ok.
8929
c0e6d47d
JD
8930 * xterm.c (x_clear_frame): Queue draw for scroll bars.
8931
7c583cd8
JD
89322010-01-05 Jan Djärv <jan.h.d@swipnet.se>
8933
8934 * xterm.c (x_new_font): Move code for setting rows/cols before
8935 resizing ...
ac146f82 8936 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
8937
8938 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
8939 (xg_frame_resized, xg_frame_set_char_size):
8940 Call xg_clear_under_internal_border.
7c583cd8 8941 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 8942
03f77f0a
CY
89432010-01-05 Chong Yidong <cyd@stupidchicken.com>
8944
8945 * keyboard.c (read_key_sequence): Catch keyboard switch after
8946 making a new tty frame (Bug#5095).
8947
2a1ef5be
KH
89482010-01-05 Kenichi Handa <handa@m17n.org>
8949
8950 * fontset.c (fontset_find_font): Fix getting the frame pointer.
8951
e3eb1dae
SM
89522010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
8953
8954 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
8955 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
8956 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
8957
777013f2
MA
89582010-01-03 Michael Albinus <michael.albinus@gmx.de>
8959
8960 * dbusbind.c (xd_add_watch): Improve debug message.
8961 (xd_remove_watch): Improve debug message. If DATA is the session
8962 bus, unset D-Bus session environment.
8963 (Fdbus_init_bus): Pass the bus as argument to
8964 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 8965
8932b1c2
CY
89662010-01-01 Chong Yidong <cyd@stupidchicken.com>
8967
87231e2c
CY
8968 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
8969
4801c5fa
CY
8970 * lread.c (syms_of_lread): Make it clearer that these are the
8971 names of loaded files (Bug#5068).
8972
8932b1c2
CY
8973 * eval.c (run_hook_with_args): Handle the case where the global
8974 value has the obsolete single-function form (Bug#5026).
8975
11e3c684
CY
89762009-12-27 Chong Yidong <cyd@stupidchicken.com>
8977
8978 * minibuf.c (Fall_completions): Minor optimization.
8979
5b28ce35
EZ
89802009-12-26 Eli Zaretskii <eliz@gnu.org>
8981
5ce6e4f4
JB
8982 * .gdbinit (pgx): Fix display of composite glyphs.
8983 Display cmp.from and cmp.to as well.
8984 (pitx): Fix last change.
5b28ce35 8985
bcffff46
KH
89862009-12-25 Kenichi Handa <handa@m17n.org>
8987
8988 * composite.h (composition_adjust_point): Update prototype.
8989
8990 * composite.c (composition_reseat_it): Don't make a composition
8991 spanning over point.
8992 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
8993 composable characters.
8994 (composition_adjust_point): New arg NEW_PT. Callers changed.
8995
8996 * keyboard.c (command_loop_1): Force redisplay if the last point
8997 was within a composition.
8998 (adjust_point_for_property): Don't adjust point for automatic
8999 composition when called after buffer modification.
9000
3f670e9a
EZ
90012009-12-19 Eli Zaretskii <eliz@gnu.org>
9002
5ce6e4f4
JB
9003 * .gdbinit (pitx): Don't use enum names, use their values.
9004 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
9005 (pgx): Don't use enum names, use their values.
9006 (pitmethod): New helper command.
9007 (pitx): Use it to display iteration method.
9008 (pgrowit): New command.
9009
ad903955
EZ
9010 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
9011
3f670e9a
EZ
9012 Update dependencies in Makefile.in.
9013
9014 * Makefile.in (alloc.o): Depend on termhooks.h.
9015 (atimer.o): Depend on blockinput.h.
9016 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
9017 and frame.h.
9018 (callint.o): Depend on systime.h, coding.h, and composite.h.
9019 (callproc.o): Depend on buffer.h.
9020 (casefiddle.o): Don't depend on charset.h.
9021 (casetab.o): Depend on character.h.
9022 (ccl.o): Depend on composite.h.
9023 (chartab.o): Depend on ccl.h.
9024 (cm.o): Depend on dispextern.h.
9025 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
9026 (coding.o): Don't depend on $(INTERVALS_H).
9027 (composite.o): Don't depend on dispextern.h explicitly (it's in
9028 $(INTERVALS_H)). Depend on ccl.h.
9029 (data.o): Depend on systime.h, coding.h, composite.h,
9030 dispextern.h, font.h, and ccl.h.
9031 (dired.o): Depend on composite.h.
9032 (dispnew.o): Depend on coding.h. Don't depend explicitly on
9033 composite.h (it's in $(INTERVALS_H)).
9034 (doc.o): Depend on systime.h, coding.h, and composite.h.
9035 (editfns.o): Don't depend explicitly on dispextern.h.
9036 (emacs.o): Depend on frame.h and coding.h.
9037 (eval.o): Depend on coding.h, composite.h, and xterm.h.
9038 (fileio.o): Depend on frame.h and commands.h. Don't depend
9039 explicitly on dispextern.h.
9040 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
9041 composite.h.
9042 (fns.o): Don't depend on termhooks.h.
9043 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
9044 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
9045 coding.h, $(INTERVALS_H), window.h, xterm.h.
9046 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
9047 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
9048 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
9049 fontset.h, ccl.h, and ftfont.h.
9050 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
9051 (gtkutil.o): Depend on dispextern.h and composite.h.
9052 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
9053 termhooks.h, and ccl.h.
9054 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
9055 (intervals.o): Depend on systime.h and coding.h.
9056 (keyboard.o): Depend on composite.h and coding.h.
9057 (keymap.o): Depend on coding.h and frame.h.
9058 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
9059 (macros.o): Depend on systime.h, coding.h, and composite.h.
9060 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
9061 and atimer.h.
9062 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
9063 dispextern.h explicitly.
0b5397c2
SM
9064 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
9065 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
9066 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
9067 (regex.o): Don't depend on charset.h.
9068 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
9069 (search.o): Don't depend explicitly on composite.h.
9070 (sound.o): Depend on atimer.h and systime.h.
9071 (syntax.o): Don't depend explicitly on composite.h.
9072 (sysdep.o): Depend on coding.h and composite.h.
9073 (term.o): Depend on xterm.h and buffer.h.
9074 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
9075 (textprop.o): Don't depend on dispextern.h explicitly.
9076 (undo.o): Depend on dispextern.h.
9077 (window.o): Depend on coding.h and termhooks.h. Don't depend on
9078 dispextern.h and composite.h explicitly.
9079 (xdisp.o): Depend on ccl.h.
9080 (xfaces.o): Depend on coding.h and ccl.h.
9081 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
9082 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
9083 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
9084 ftfont.h.
9085 (xgselect.o): New dependency.
9086 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
9087 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
9088 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
9089 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
9090 (xsmfns.o): Depend on frame.h and dispextern.h.
9091 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
9092 sysselect.h.
9093
7a6f7fea
AS
90942009-12-19 Andreas Schwab <schwab@linux-m68k.org>
9095
9096 * font.c (Fclear_font_cache): Pass correct cache argument to
9097 font_clear_cache.
9098
f4c21026
AS
90992009-12-16 Andreas Schwab <schwab@linux-m68k.org>
9100
9101 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
9102 twice.
9103
f7ab0997
CY
91042009-12-15 Chong Yidong <cyd@stupidchicken.com>
9105
9106 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
9107 calling file-remote-p. Reported by Jim Meyering.
9108
fa8e045a
MA
91092009-12-15 Michael Albinus <michael.albinus@gmx.de>
9110
9111 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 9112 avoid compiler warnings. (Bug #5217)
fa8e045a 9113
a63dba42
KH
91142009-12-14 Kenichi Handa <handa@m17n.org>
9115
9116 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
9117 in 8-bit encoding.
9118
5ce6e4f4 91192009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
9120
9121 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
9122 tooltip windows.
9123
223e5fc6
JD
91242009-12-13 Jan Djärv <jan.h.d@swipnet.se>
9125
36acb2a7
JD
9126 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
9127 Xatom_net_window_type.
9128
9129 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
9130 Xatom_net_window_type.
9131
b8f00677
JD
9132 * xterm.c (my_log_handler): New function.
9133 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 9134 so we can filter out buggy messages. (Bug #5120).
b8f00677 9135
e5f0bc9a
JD
9136 * xterm.c (xg_scroll_callback): Parameter list changed,
9137 use parameter GtkScrollType to determine scroll/line/page.
9138 Only allow dragging if a button < 4 is grabbed (bug #5177).
9139 (xg_end_scroll_callback): New function.
9140 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
9141 xg_create_scroll_bar.
9142
9143 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
9144 (scroll_end_callback): Remove.
9145 (xg_create_scroll_bar): Add parameter end_callback, bind it to
9146 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 9147 bug #5177.
e5f0bc9a
JD
9148 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
9149 bug #5177.
9150
9151 * gtkutil.h (XG_LAST_SB_DATA): Remove.
9152 (xg_create_scroll_bar): Add GCallback end_callback.
9153
223e5fc6
JD
9154 * xftfont.c (QClcdfilter): New variable.
9155 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
9156 (syms_of_xftfont): Initialize QClcdfilter.
9157
3c055b77
JD
91582009-12-12 Jan Djärv <jan.h.d@swipnet.se>
9159
9160 * xsettings.c (struct xsettings): Add member seen.
9161 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 9162 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
9163 (apply_xft_settings): Only update Xft settings with what member seen
9164 indicates as new.
9165
05fe33ff
EZ
91662009-12-12 Eli Zaretskii <eliz@gnu.org>
9167
c4cc8b9a 9168 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
9169 (struct glyph): Use EMACS_INT for charpos.
9170 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
9171 region_beg_charpos, region_end_charpos,
9172 redisplay_end_trigger_charpos, and also for
9173 iterator_stack_entry.end_charpos and
9174 iterator_stack_entry.stop_charpos.
9175
e8d7886a
JD
91762009-12-12 Jan Djärv <jan.h.d@swipnet.se>
9177
5ce6e4f4 9178 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
9179 (xg_create_scroll_bar): Call scroll_end_callback on button release
9180 event (bug #5177).
9181 (xg_event_is_for_scrollbar): != replaced with ==.
9182
d0db2ec8
KH
91832009-12-12 Kenichi Handa <handa@m17n.org>
9184
9185 * ftfont.c (struct ftfont_info): New member matrix.
9186 (ftfont_open): Setup xftfont_info->matrix.
9187 (MFLTFontFT): New member matrix.
9188 (FLOOR, CEIL, ROUND): New macros.
9189 (ftfont_get_metrics): Handle matrix transformation.
9190 (ftfont_shape_by_flt): New arg matrix. Callers changed.
9191
9192 * xftfont.c (struct xftfont_info): New member matrix.
9193 (xftfont_open): Setup xftfont_info->matrix.
9194
91952009-12-10 Kenichi Handa <handa@m17n.org>
9196
9197 * xdisp.c (append_space_for_newline): Consider face-remapping.
9198
2cc7b62f
AS
91992009-12-09 Andreas Schwab <schwab@linux-m68k.org>
9200
b87dd913
AS
9201 * xsettings.c: Include "keyboard.h".
9202
eba5eb94
AS
9203 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
9204
2cc7b62f
AS
9205 Fix implicit function declarations.
9206 * cmds.c: Include "frame.h".
9207 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
9208 * frame.h: Move declaration of delete_frame outside of
9209 HAVE_WINDOW_SYSTEM.
9210
a4ef73c8
CY
92112009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
9212
9213 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
9214
9215 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
9216 GTK builds.
9217
944a300c
AS
92182009-12-07 Andreas Schwab <schwab@linux-m68k.org>
9219
9220 * unexelf.c (unexec): Don't search for .data twice.
9221
022eef62
CY
92222009-12-05 Chong Yidong <cyd@stupidchicken.com>
9223
426ac949
CY
9224 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
9225 if push failed.
9226 (handle_line_prefix): Set avoid_cursor_p here. Check return value
9227 of push_display_prop (Bug#5000).
9228
022eef62
CY
9229 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
9230 value of font_list_entities (Bug#5085).
9231
be95bee9
JB
92322009-12-04 Juanma Barranquero <lekktu@gmail.com>
9233
9234 Fix `string-to-number' to deal consistently with integers and floats.
9235 * lread.c (isfloat_string): New argument ignore_trailing to accept all
9236 trailing characters, not just whitespace.
9237 (read1): Pass new arg 0 to keep old behavior.
9238 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
9239 trailing chars, as it is already done for integers. Doc fixes.
9240 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
9241
24c2d7ce
EZ
92422009-12-04 Eli Zaretskii <eliz@gnu.org>
9243
0b5397c2
SM
9244 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
9245 Delete unused enumeration value.
24c2d7ce 9246
7e694795
EZ
92472009-12-03 Eli Zaretskii <eliz@gnu.org>
9248
9249 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
9250
84b31826
SM
92512009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
9252
9253 * process.c (Fmake_network_process): Fix up the tests for
9254 "connectionless socket", so they DTRT for seqpacket sockets as well.
9255
f00c449b
SM
92562009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
9257
9258 * process.c (Qseqpacket): New symbol.
9259 (HAVE_SEQPACKET): New macro.
9260 (Fmake_network_process): Accept new :type `seqpacket'.
9261 (init_process): Add `seqpacket' feature when applicable.
9262 (syms_of_process): Initialize Qseqpacket.
9263
8096a0ff
YM
92642009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9265
9266 * font.c (font_load_for_lface, font_open_by_name): Don't store name
9267 if entity is Qnil.
9268
3e0de07f
SM
92692009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
9270
9271 * print.c (print_preprocess): Preprocess the key_and_value table of
9272 hashtables, even tho they're "hidden" (bug#5082).
9273
abeafb2a
JD
92742009-11-29 Jan Djärv <jan.h.d@swipnet.se>
9275
9276 * frame.c (frame_make_pointer_invisible)
9277 (frame_make_pointer_visible): Declare f before statements.
9278
4bf47195
EZ
92792009-11-28 Eli Zaretskii <eliz@gnu.org>
9280
9281 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
9282 omitted dependencies on lisp.h.
9283
c525b3f2
JD
92842009-11-27 Jan Djärv <jan.h.d@swipnet.se>
9285
ece2d4ed
JD
9286 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
9287 is NULL.
9288
9289 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
9290
9291 * frame.c (frame_make_pointer_invisible)
3e0de07f 9292 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
9293 frame.
9294
c525b3f2
JD
9295 * search.c (simple_search): Remove warning by making *p const.
9296
2f00e299
DN
92972009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
9298
9299 * xdisp.c (power_letter): Remove duplicate const.
9300
084b049b
JD
93012009-11-25 Jan Djärv <jan.h.d@swipnet.se>
9302
a1fadc6f
JD
9303 * term.c (delete_tty): Remove check for last terminal (bug#4970).
9304
5ce6e4f4 9305 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
9306 defaults (bug #5025).
9307
28259cac
SM
93082009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
9309
9310 * insdel.c (adjust_markers_for_delete): Move it in the
9311 right direction! (bug#4803)
9312
e8e14166
YM
93132009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9314
9315 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
9316
9317 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
9318
86677b58
GM
93192009-11-24 Glenn Morris <rgm@gnu.org>
9320
9321 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
9322
581e51e8
JD
93232009-11-23 Jan Djärv <jan.h.d@swipnet.se>
9324
cfc86c7a
JD
9325 * Makefile.in: Must create deps for ecrt0.o in its rule.
9326
581e51e8
JD
9327 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
9328 because that is what Gtk+ font dialog understands.
9329
9330 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
9331 of Fcopy_sequence.
9332 (font_open_by_name): Put name given into QCname for font-object returned.
9333
9334 * frame.c (x_set_font): Save original font name as frame parameter
9335 font-parameter.
9336
9337 * xsettings.c (set_default_xft_settings): New function.
9338 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
9339 is found.
9340
8b264ecb
AS
93412009-11-22 Andreas Schwab <schwab@linux-m68k.org>
9342
9343 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
9344 searching backwards through multibyte buffer.
9345
872870b2
JD
93462009-11-21 Jan Djärv <jan.h.d@swipnet.se>
9347
9348 * xterm.c: #include xgselect.h.
9349 (x_initialize): Call xgselect_initialize.
9350
9351 * xsettings.c (something_changedCB): C++ comments => C comments.
9352 (init_gconf): Do not deal with any GLib file descriptors, xg_select
9353 does that now.
9354
9355 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
9356 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
9357 (scroll_bar_button_cb): Remove.
5ce6e4f4 9358 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
9359 event.
9360 (xg_create_scroll_bar): Don't bind button-press-event and
9361 button-release-event.
9362
9363 * process.c: Include xgselect.h if defined (USE_GTK) ||
9364 defined (HAVE_GCONF).
9365 (wait_reading_process_output): Call xg_select for the same condition.
9366
9367 * xgselect.c (xg_select): New function to better integrate with
9368 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
9369
9370 * xgselect.h: New file, declare xg_select, xgselect_initialize.
9371
9372 * Makefile.in (XOBJ): Add xgselect.o.
9373
62a6e103
AS
93742009-11-21 Andreas Schwab <schwab@linux-m68k.org>
9375
0b5397c2
SM
9376 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
9377 Remove ignored second argument. All callers changed.
62a6e103
AS
9378 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
9379 (RE_STRING_CHAR_AND_LENGTH): Likewise.
9380 * xdisp.c (string_char_and_length): Likewise.
9381
b0ca0f33
DN
93822009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
9383
9384 * xterm.c (x_new_font):
9385 * print.c (print_object):
9386 * cmds.c (Fself_insert_command): Move declarations before statements.
9387
dd5a6279
CY
93882009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
9389
9390 * s/cygwin.h: Remove unneeded linker flags.
9391
4a8e097d
JD
93922009-11-20 Jan Djärv <jan.h.d@swipnet.se>
9393
0d1d0d26
JD
9394 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
9395
9396 * xsettings.h: Declare xsettings_get_system_font.
9397
9398 * xsettings.c (xsettings_get_system_font): New function.
9399 (init_gconf): No use initiating gconf unless we have Xft also.
9400 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
9401 HAVE_GCONF.
9402
4a8e097d
JD
9403 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
9404 add a blank entry so it doesn't collapse into nothing.
9405
8ab1650e
SM
94062009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
9407
9408 * lread.c (Funintern): Comment out last change.
9409
82c602f0
RS
94102009-11-19 Richard Stallman <rms@gnu.org>
9411
9412 * lread.c (Funintern): Error if symbol is t or nil.
9413
87e32266
SM
94142009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
9415
9416 * insdel.c (make_gap_larger): Don't make as many assumptions about the
9417 representation of Lisp integers.
9418 Reported by MJ Chan <mjchan.inbox@gmail.com>.
9419
1b9ac145
AS
94202009-11-17 Andreas Schwab <schwab@linux-m68k.org>
9421
9422 * lisp.h: Remove declaration of Ffont_get_system_font.
9423 * xfns.c: Move include of "xsettings.h".
9424 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
9425
dfb3c4c6
JD
94262009-11-17 Jan Djärv <jan.h.d@swipnet.se>
9427
87e32266
SM
9428 * xsettings.c (something_changedCB, Ffont_get_system_font):
9429 Check use_system_font.
dfb3c4c6
JD
9430 (syms_of_xsettings): DEFVAR font-use-system-font.
9431
9370c1d8
AS
94322009-11-17 Andreas Schwab <schwab@linux-m68k.org>
9433
25fe851a
AS
9434 * xfns.c (x_default_font_parameter): Remove dead assignment.
9435
9370c1d8
AS
9436 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
9437
637fa988
JD
94382009-11-17 Jan Djärv <jan.h.d@swipnet.se>
9439
87e32266 9440 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 9441 not have FC_LCD_*. #define them if not there.
a6eb20d8 9442
87e32266 9443 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 9444
637fa988
JD
9445 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
9446
9447 * xterm.c (handle_one_xevent): Call xft_settings_event for
9448 ClientMessage, PropertyNotify and DestroyNotify.
9449 (x_term_init): If we have XFT, get DPI from Xft.dpi.
9450 Call xsettings_initialize.
9451
9452 * xftfont.c (xftfont_fix_match): New function.
9453 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
9454 Call xftfont_fix_match after XftFontMatch.
9455
9456 * xfont.c (xfont_driver): Initialize all members.
9457
87e32266
SM
9458 * xfns.c (x_default_font_parameter):
9459 Try font from Ffont_get_system_font.
637fa988
JD
9460 Do not get font from x_default_parameter if we got one from
9461 Ffont_get_system_font.
87e32266 9462 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
9463
9464 * w32font.c (w32font_driver): Initialize all members.
9465
9466 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
9467
9468 * lisp.h: Declare syms_of_xsettings.
9469
87e32266
SM
9470 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
9471 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
9472
9473 * ftfont.c (ftfont_filter_properties): New function.
9474
9475 * frame.c (x_set_font): Remove unused variable lval.
9476
87e32266 9477 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
9478
9479 * font.c (font_put_extra): Don't return if val is nil, it means
9480 boolean option is off.
9481 (font_parse_fcname): Collect all extra properties in extra_props
9482 and call filter_properties for all drivers with extra_props and
9483 font as parameter.
87e32266
SM
9484 (font_open_entity): Do not use cache, it does not pick up new
9485 fontconfig settings like hinting.
637fa988
JD
9486 (font_load_for_lface): If spec had a name in it, store it in entity.
9487
a73f9c9d 9488 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
9489
9490 * config.in: HAVE_GCONF is new.
9491
9492 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
9493 xsettings.o is new.
9494
5a942932
KH
94952009-11-17 Kenichi Handa <handa@m17n.org>
9496
9497 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
9498 back to the default font in case that no suitable font is found.
9499
b7c7a4d1
SM
95002009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
9501
9502 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
9503 Suggested by Chad Brown <yandros@mit.edu>.
9504 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
9505
072f1e39
JD
95062009-11-16 Jan Djärv <jan.h.d@swipnet.se>
9507
9508 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
9509
5d1e70a2
AS
95102009-11-14 Andreas Schwab <schwab@linux-m68k.org>
9511
87e32266 9512 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 9513
a53cfbe5
JD
95142009-11-14 Jan Djärv <jan.h.d@swipnet.se>
9515
473a99b7
JD
9516 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
9517 has a parent.
9518
a53cfbe5 9519 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 9520 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
9521
9522 * config.in: Generated (AUTO_DEPEND).
9523
f04bb9b2
MA
95242009-11-13 Michael Albinus <michael.albinus@gmx.de>
9525
b7c7a4d1 9526 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
9527 Vdbus_registered_functions_table, because it contains also
9528 properties. Fix docstring.
b7c7a4d1 9529 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 9530
8f11f7ec
SM
95312009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
9532
9533 * alloc.c (mark_object): Don't reprocess marked strings.
9534 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
9535 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
9536
8a605fe8
KH
95372009-11-13 Kenichi Handa <handa@m17n.org>
9538
8f11f7ec 9539 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
9540 semantics of Vword_combining_categories.
9541 (Vword_combining_categories): Describe the slight change of the
9542 semantics.
9543
241c4680
EZ
95442009-11-13 Eli Zaretskii <eliz@gnu.org>
9545
9546 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
9547
9548 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
9549
5d58e44c
SM
95502009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
9551
9552 * xdisp.c (syms_of_xdisp): Fix typo in last change.
9553
5e13f9d3
JB
95542009-11-12 Juanma Barranquero <lekktu@gmail.com>
9555
9556 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
9557
cf54c754
DR
95582009-11-11 David Reitter <david.reitter@gmail.com>
9559
9560 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
9561 variables to fix 2009-11-09 change.
9562
a4ada374
DN
95632009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
9564
91433552
DN
9565 * process.c (ifflag_def): Make flag_sym constant.
9566 (Fnetwork_interface_info): Use a constant pointer.
9567 (ifflag_table):
9568 * xfns.c (cursor_bits):
9569 * xdisp.c (power_letter):
9570 * termcap.c (speeds, esctab):
9571 * sysdep.c (baud_convert):
9572 * keyboard.c (lispy_accent_codes, modifier_names):
9573 * image.c (xbm_format, xpm_format, pbm_format, png_format)
9574 (jpeg_format, tiff_format, gif_format, svg_format)
9575 (interlace_start, interlace_increment, gs_format):
9576 * gtkutil.c (separator_names):
9577 * fringe.c (swap_nibble):
9578 * fns.c (base64_value_to_char, base64_char_to_value):
9579 * fileio.c (make_temp_name_tbl):
9580 * coding.c (suffixes): Make constant.
9581
f4265f6c
DN
9582 * frame.c (make_initial_frame):
9583 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
9584 build_string.
9585 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
9586
04420943
DN
9587 * s/freebsd.h:
9588 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
9589
0a5d24ae
DN
9590 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
9591 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
9592
a4ada374
DN
9593 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
9594 * xterm.c (syms_of_xterm):
9595 * xfaces.c (syms_of_xfaces):
9596 * xdisp.c (syms_of_xdisp):
9597 * lread.c (syms_of_lread):
9598 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
9599 build_string.
91433552 9600
a4ada374
DN
9601 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
9602
af98fc7f
SM
96032009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
9604
8ab1650e 9605 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 9606
e90292a9
JD
96072009-11-10 Jan Djärv <jan.h.d@swipnet.se>
9608
9609 * keyboard.h: Declare timer_check.
9610
9611 * keyboard.c (timer_check_2): New function that does what the old
9612 timer_check did.
9613 (timer_check): Call timer_check_2 until -1 or a non-zero time is
9614 returned, i.e. don't return -1 with timers pending.
9615
9616 * process.c: Remove extern declaration of timer_check.
9617
9618 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
9619 even if timer_check returned -1.
9620
af98fc7f
SM
9621 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
9622 xg_dialog_data.
e90292a9
JD
9623 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
9624 the event loop.
9625 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
9626 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
9627 Destroy the dialog after xg_dialog_run.
9628
045b83c0
SM
96292009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
9630
9631 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
9632
1fb99a3a
JD
96332009-11-10 Jan Djärv <jan.h.d@swipnet.se>
9634
9635 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
9636
04e452cb
JB
96372009-11-09 Juanma Barranquero <lekktu@gmail.com>
9638
9639 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
9640
ef7417fd
SM
96412009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
9642
9643 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
9644 w32menu.c, and nsmenu.m.
9645 Simplify the obsolete case where position is nil.
9646 (cleanup_popup_menu): New function, moved from nsmenu.m.
9647 (struct skp): Remove slot `notreal'.
9648 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
9649 adjust callers.
9650 (single_menu_item): Adjust call to parse_menu_item.
9651 (syms_of_menu): Defsubr x-popup-menu.
9652 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
9653 (keymap_panes): Don't export any more.
9654 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
9655 (xmenu_show): Declare.
9656 * keyboard.c (parse_menu_item): Remove arg `notreal'.
9657 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
9658 * keyboard.h (parse_menu_item): Update declaration.
9659 * xmenu.c (Fx_popup_menu): Remove.
9660 (syms_of_xmenu): Don't defsubr x-popup-menu.
9661 * w32menu.c (Fx_popup_menu): Remove.
9662 (syms_of_w32menu): Don't defsubr x-popup-menu.
9663 * nsmenu.m (cleanup_popup_menu): Remove.
9664 (ns_menu_show): Rename from ns_popup_menu and remove all the code
9665 moved to menu.c's Fx_popup_menu.
9666 (Fx_popup_menu): Remove.
9667 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
9668 menu_items (it's done in menu.c already).
9669
424d6179
SM
96702009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
9671
9672 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
9673 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
9674
c0df13a6 96752009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
9676
9677 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 9678 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
9679 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
9680 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
9681
2de9f71c
SM
96822009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
9683
9684 Let integers use up 2 tags to give them one extra bit and thus double
9685 their range.
9686 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
9687 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
9688 New macros.
9689 (enum Lisp_Type): Use them. Give explicit values.
9690 (Lisp_Type_Limit): Remove.
9691 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
9692 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
9693 Pay attention to USE_2_TAGS_FOR_INTS.
9694 (INTEGERP): Use LISP_INT_TAG_P.
9695 * fns.c (internal_equal): Simplify the default case.
9696 (sxhash): Use case_Lisp_Int.
9697 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
9698 any more.
9699 (Ftype_of): Use case_Lisp_Int.
9700 (store_symval_forwarding): Take into account the fact that Ints can
9701 now have more than one tag.
9702 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
686b968e 9703 (buffer_slot_type_mismatch):
2de9f71c
SM
9704 * xfaces.c (face_attr_equal_p):
9705 * print.c (print_object):
9706 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
9707 Use case_Lisp_Int.
9708
323637a2
EZ
97092009-11-06 Eli Zaretskii <eliz@gnu.org>
9710
7ac65b38
EZ
9711 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
9712
323637a2
EZ
9713 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
9714 warning.
9715
e511451f
JD
97162009-11-06 Jan Djärv <jan.h.d@swipnet.se>
9717
9718 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
9719
9720 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
9721
9722 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
9723 ButtonPressRelease and MotionNotify (bug#4870).
9724
5e2327cf
DN
97252009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
9726
5adc433e
DN
9727 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
9728
d67b4f80
DN
9729 * xterm.c (syms_of_xterm):
9730 * xselect.c (syms_of_xselect):
9731 * xmenu.c (syms_of_xmenu):
9732 * xfns.c (syms_of_xfns):
9733 * xfaces.c (syms_of_xfaces):
9734 * xdisp.c (syms_of_xdisp):
9735 * window.c (syms_of_window):
9736 * w32fns.c (syms_of_w32fns):
9737 * undo.c (syms_of_undo):
9738 * textprop.c (syms_of_textprop):
9739 * terminal.c (syms_of_terminal):
9740 * syntax.c (syms_of_syntax):
9741 * sound.c (syms_of_sound):
9742 * search.c (syms_of_search):
9743 * print.c (syms_of_print):
9744 * minibuf.c (syms_of_minibuf):
9745 * macros.c (syms_of_macros):
9746 * keymap.c (syms_of_keymap, initial_define_key)
9747 (initial_define_lispy_key):
9748 * keyboard.c (syms_of_keyboard):
9749 * insdel.c (syms_of_insdel):
9750 * image.c (syms_of_image):
9751 * fringe.c (syms_of_fringe):
9752 * frame.c (syms_of_frame):
9753 * fontset.c (syms_of_fontset):
9754 * fns.c (syms_of_fns):
9755 * fns.c (syms_of_fns):
9756 * fileio.c (syms_of_fileio):
9757 * fileio.c (syms_of_fileio):
9758 * eval.c (syms_of_eval):
9759 * doc.c (syms_of_doc):
9760 * dispnew.c (syms_of_display):
9761 * dired.c (syms_of_dired):
9762 * dbusbind.c (syms_of_dbusbind):
9763 * data.c (syms_of_data):
9764 * composite.c (syms_of_composite):
9765 * coding.c (syms_of_coding):
9766 * cmds.c (syms_of_cmds):
9767 * charset.c (define_charset_internal, syms_of_character):
9768 * ccl.c (syms_of_ccl):
9769 * category.c (syms_of_category, init_category_once):
9770 * casetab.c (syms_of_casetab):
9771 * casefiddle.c (syms_of_casefiddle):
9772 * callint.c (syms_of_callint):
9773 * bytecode.c (syms_of_bytecode):
9774 * buffer.c (keys_of_buffer, syms_of_buffer):
9775 * alloc.c (syms_of_alloc):
9776 * process.c (syms_of_process, init_process):
9777 * lread.c (syms_of_lread, init_obarray):
9778 * font.c (build_style_table):
9779 * emacs.c (syms_of_emacs, main): Replace calls to intern with
9780 intern_c_string, calls to make_pure_string with
9781 make_pure_c_string. Use pure_cons instead of Fcons.
9782
5e2327cf
DN
9783 * process.c (socket_options): Make it const.
9784 (set_socket_option, init_process): Use a const pointer.
9785
9786 * lread.c (intern_c_string): New function.
9787 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
9788 (defvar_int): Uset it. Make the name const char*.
9789
9790 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
9791 (defvar_int): Update prototypes.
9792 (DEFUN, EXFUN): Support for prototypes is now required.
9793 (intern_c_string): New prototype.
9794 (struct Lisp_Subr): Make symbol_name constant.
9795
9796 * font.c (struct table_entry): Remove unused member. Make NAMES
9797 constant.
9798 (weight_table, slant_table, width_table): Make constant.
9799
9800 * emacs.c (struct standard_args): Make name and longname constant.
9801
9802 * character.h (DEFSYM): Use intern_c_string.
9803
a56eaaef
DN
98042009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
9805
9806 * alloc.c (make_pure_c_string): New function.
9807
9808 * eval.c (Fautoload): Purecopy all arguments.
9809
f6a07420
KH
98102009-11-05 Kenichi Handa <handa@m17n.org>
9811
9812 * fileio.c (Finsert_file_contents): Be sure set coding-system of
9813 the buffer in case of replace.
9814
5d28d4b1
DN
98152009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
9816
9817 * puresize.h (BASE_PURESIZE): Increase to 1620000.
9818
b349d111
SM
98192009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
9820
d528b1ce
SM
9821 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
9822 when applicable (bug#4851).
9823
b349d111
SM
9824 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
9825 (P_): Support for prototypes is now required.
9826
c38eb027
CY
98272009-10-31 Chong Yidong <cyd@stupidchicken.com>
9828
9829 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
9830 (Bug#4827).
9831
0405f8d9
EZ
98322009-10-30 Eli Zaretskii <eliz@gnu.org>
9833
d528b1ce 9834 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 9835
ca0a881a
DN
98362009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
9837
9838 * puresize.h (BASE_PURESIZE): Increase to 1470000.
9839
d528b1ce
SM
9840 * lread.c (Fload): Purecopy the file name when building
9841 Vpreloaded_file_list.
ca0a881a 9842
47e0e0e4
JR
98432009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
9844
9845 * w32fns.c (syms_of_w32fns): Change default value of
9846 w32-scroll-lock-modifier to nil. (Bug#2827)
9847
057bce6f
JB
98482009-10-26 Juanma Barranquero <lekktu@gmail.com>
9849
782a943e 9850 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 9851
242bc74c
AS
98522009-10-26 Andreas Schwab <schwab@redhat.com>
9853
9854 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
9855
522d013a
JB
98562009-10-26 Juanma Barranquero <lekktu@gmail.com>
9857
9858 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
9859 For delta < 0, skip check that only makes sense when the mini-window
9860 is going to be enlarged. (Bug#4534)
9861
18060980
CY
98622009-10-25 Chong Yidong <cyd@stupidchicken.com>
9863
9864 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
9865 string in menu maps (Bug#4471).
9866
fec8f0fe
CY
98672009-10-24 Chong Yidong <cyd@stupidchicken.com>
9868
9869 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
9870 FRAME_NS_VIEW on terminal frames (Bug#4765).
9871
10d66ec0
AS
98722009-10-24 Andreas Schwab <schwab@linux-m68k.org>
9873
1cae01f7
AS
9874 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
9875 DBUS_TYPE_UINTnn separately to get proper sign extension.
9876
58a12889
AS
9877 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
9878 can properly handle unsigned types.
d528b1ce 9879 (make_uid, make_gid): Remove.
58a12889 9880
987c9327
AS
9881 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
9882 types again.
9883
522d013a 9884 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
9885 (system_process_attributes): Likewise.
9886
905a9ed3
DN
98872009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
9888
9889 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
9890
9891 * eval.c (Fautoload): Purecopy the filename. Simplify.
9892
9893 * category.c (Fdefine_category): Purecopy docstring.
9894
a599b3e8
AS
98952009-10-23 Andreas Schwab <schwab@linux-m68k.org>
9896
7b792fc9
AS
9897 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
9898
a599b3e8
AS
9899 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
9900
b35ac83e
CY
99012009-10-23 Chong Yidong <cyd@stupidchicken.com>
9902
9903 * window.c (Fwindow_edges, Fwindow_pixel_edges)
9904 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
9905 (Bug#4775).
9906
e8903e00
SM
99072009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
9908
9909 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
9910 (init_fileio_once):
9911 * lisp.h (init_fileio_once): Remove.
9912 * emacs.c (main): Don't call init_fileio_once.
9913
8f43cbf3
DN
99142009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
9915
9916 * puresize.h (BASE_PURESIZE): Increase to 1430000.
9917
26898943
AS
99182009-10-21 Andreas Schwab <schwab@linux-m68k.org>
9919
9920 * doprnt.c (doprnt): Fix overflow check.
9921
5c646d5a
JD
99222009-10-21 Jan Djärv <jan.h.d@swipnet.se>
9923
3132a7ea
JD
9924 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
9925
5c646d5a
JD
9926 * xterm.h (x_wait_for_event): Declare it.
9927
9928 * xterm.c (pending_event_wait): New variable.
9929 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
9930 see pending_event_wait.eventtype.
9931 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
9932 (x_new_font): Call change_frame_size with new rows/columns before we
9933 try to resize the frame.
5c646d5a 9934 (x_wait_for_event): New function.
d528b1ce
SM
9935 (x_set_window_size_1): Don't change gravity unless change_gravity
9936 is set.
5c646d5a
JD
9937 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
9938 don't change frame size, instead wait for the ConfigureNotify.
9939 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
9940 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
9941 (x_initialize): Initialize pending_event_wait.
9942
9943 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
9944 size.
9945
9946 * widget.c (EmacsFrameSetValues): Add comment.
9947 (EmacsFrameSetCharSize): Just call x_set_window_size.
9948
9949 * gtkutil.c (xg_frame_set_char_size): Flush events and call
9950 x_wait_for_event.
d528b1ce 9951 (flush_and_sync): Remove again.
5c646d5a
JD
9952 (xg_get_font_name): Suggest monospace if no previous font is known.
9953
e9c1637d
SM
99542009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
9955
9956 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 9957 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 9958
5a72cccb
YM
99592009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9960
9961 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
9962 processing pending events when event is filtered for input method.
ab04798f 9963 (Bug#3681)
5a72cccb 9964
2629aa37
JB
99652009-10-20 Juanma Barranquero <lekktu@gmail.com>
9966
9967 * fns.c: Add #endif accidentally removed in previous change.
9968
c3417a74
DN
99692009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
9970
9971 * fns.c: Remove code for unsupported system: MAC_OS.
9972 * image.c: Likewise. Include setjmp.h.
9973
9685cef2
JD
99742009-10-19 Jan Djärv <jan.h.d@swipnet.se>
9975
9976 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
9977 pixel -1 (bug #4742).
9978
d7306fe6
DN
99792009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
9980
019d2c4c
DN
9981 * process.c (create_pty): Remove conditionals for no longer
9982 supported systems: UNIPLUS and RTU.
9983
ee6bacd4
DN
9984 * xterm.c:
9985 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
9986
d7306fe6
DN
9987 * alloc.c: Do not define struct catchtag.
9988 * eval.c: Move struct catchtag definition ...
9989 * lisp.h: ... here.
9990
9991 * image.c: Move png.h #include earlier to avoid warnings.
9992
9993 * xterm.c:
9994 * xsmfns.c:
9995 * xselect.c:
9996 * xrdb.c:
9997 * xmenu.c:
9998 * xftfont.c:
9999 * xfont.c:
10000 * xfns.c:
10001 * xfaces.c:
10002 * xdisp.c:
10003 * window.c:
10004 * widget.c:
10005 * w32xfns.c:
10006 * w32uniscribe.c:
10007 * w32term.c:
10008 * w32select.c:
10009 * w32reg.c:
10010 * w32proc.c:
10011 * w32menu.c:
10012 * w32inevt.c:
10013 * w32heap.c:
10014 * w32font.c:
10015 * w32fns.c:
10016 * w32console.c:
10017 * w32.c:
10018 * w16select.c:
10019 * vm-limit.c:
10020 * unexsol.c:
10021 * unexec.c:
10022 * unexcw.c:
10023 * unexaix.c:
10024 * undo.c:
10025 * tparam.c:
10026 * textprop.c:
10027 * terminfo.c:
10028 * terminal.c:
10029 * termcap.c:
10030 * term.c:
10031 * syntax.c:
10032 * sound.c:
10033 * sheap.c:
10034 * search.c:
10035 * scroll.c:
10036 * region-cache.c:
10037 * regex.c:
10038 * ralloc.c:
10039 * process.c:
10040 * print.c:
b024548b
DN
10041 * nsterm.m:
10042 * nsselect.m:
10043 * nsmenu.m:
10044 * nsimage.m:
10045 * nsfont.m:
10046 * nsfns.m:
d7306fe6
DN
10047 * msdos.c:
10048 * minibuf.c:
10049 * menu.c:
10050 * marker.c:
10051 * macros.c:
10052 * keymap.c:
10053 * keyboard.c:
10054 * intervals.c:
10055 * insdel.c:
10056 * indent.c:
10057 * gtkutil.c:
10058 * ftxfont.c:
10059 * ftfont.c:
10060 * fringe.c:
10061 * frame.c:
10062 * fontset.c:
10063 * font.c:
10064 * fns.c:
10065 * floatfns.c:
10066 * filelock.c:
10067 * fileio.c:
10068 * emacs.c:
10069 * editfns.c:
10070 * dosfns.c:
10071 * doprnt.c:
10072 * doc.c:
10073 * dispnew.c:
10074 * dired.c:
10075 * dbusbind.c:
10076 * data.c:
10077 * composite.c:
10078 * coding.c:
10079 * cmds.c:
10080 * cm.c:
10081 * chartab.c:
10082 * charset.c:
10083 * character.c:
10084 * ccl.c:
10085 * category.c:
10086 * casetab.c:
10087 * casefiddle.c:
10088 * callproc.c:
10089 * callint.c:
10090 * bytecode.c:
10091 * buffer.c:
10092 * atimer.c: Include setjmp.h. (Bug#4643)
10093
fd5f21e6
SM
100942009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
10095
4c0354d7
SM
10096 Remove leftover table unibyte_to_multibyte_table.
10097 * character.c (unibyte_to_multibyte_table): Remove.
10098 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
10099 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
10100 * character.h (UNIBYTE_TO_CHAR): New macro.
10101 (MAKE_CHAR_MULTIBYTE): Use it.
10102 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
10103 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
10104 (message_dolog, set_message_1):
10105 * search.c (Freplace_match):
10106 * editfns.c (Fcompare_buffer_substrings):
10107 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
10108 (concat):
10109 * insdel.c (copy_text, count_size_as_multibyte):
10110 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
10111 * term.c (produce_glyphs):
10112 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
10113 * regex.c (RE_CHAR_TO_MULTIBYTE):
10114 * cmds.c (internal_self_insert):
10115 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
10116
fd5f21e6
SM
10117 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
10118
4418646e
DN
101192009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
10120
10121 * puresize.h (BASE_PURESIZE): Increase to 1310000.
10122
35f5c1d2
JB
101232009-10-16 Juanma Barranquero <lekktu@gmail.com>
10124
10125 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
10126
a0cd8f6b
AR
101272009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10128
10129 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
10130 still needed under Tiger.
10131
10132 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
10133
10134 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
10135 __Apple__.
10136
10137 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
10138
01a8d3fa
KH
101392009-10-15 Kenichi Handa <handa@m17n.org>
10140
10141 * print.c (print_object): Escape a symbol like "2E10" too.
10142
bf6c75c9 101432009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
10144
10145 Cleanups and changes for 64-bit compile under Snow Leopard.
10146 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
10147
10148 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
10149
c5959062 10150 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
10151 (ns_findfonts, nsfont_list_family): Use long format in printf, and
10152 cast argument.
10153 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 10154 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
10155
10156 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
10157
10158 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
10159 where appropriate.
10160
10161 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
10162 where appropriate.
6e4780c5
JB
10163 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
10164 Use stringWithUTF8String.
bf6c75c9
AR
10165 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
10166
6e4780c5
JB
10167 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
10168 Add formal protocol mention to inheritance.
bf6c75c9
AR
10169 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
10170
6e4780c5
JB
10171 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
10172 Fix printf format.
bf6c75c9
AR
10173 (ns_query_color): Use CGFloat where appropriate.
10174 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 10175 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
10176 argument.
10177
3d87f118
AR
10178 * config.in (NS_HAVE_NSINTEGER): Drop.
10179
a95c8102
AR
10180 * dbusbind.c (dbus-method-return-internal)
10181 (dbus-method-error-internal): Use long format in printf, and cast
10182 argument.
10183
10184 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
10185 in printf, and cast argument.
10186
6873acca 10187 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
10188 cast argument.
10189
9ec6f100
GM
101902009-10-11 Glenn Morris <rgm@gnu.org>
10191
10192 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
10193
5be883cd
JD
101942009-10-08 Jan Djärv <jan.h.d@swipnet.se>
10195
10196 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
10197 menu bar with a small width so it doesn't enlarge the frame.
10198
d7a39b51
JB
101992009-10-08 Juanma Barranquero <lekktu@gmail.com>
10200
10201 * fontset.c (Fset_fontset_font): Fix typos in error messages.
10202
0c2b6f8e
GM
102032009-10-06 Glenn Morris <rgm@gnu.org>
10204
10205 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
10206 SOME_MACHINE_LISP (this enters indirectly via DOC).
10207
e02131a2
EZ
102082009-10-05 Eli Zaretskii <eliz@gnu.org>
10209
10210 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
10211
b4744254
EZ
102122009-10-04 Eli Zaretskii <eliz@gnu.org>
10213
10214 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
10215 Doc fix.
10216
dbf64827
JB
102172009-10-03 Martin Rudalics <rudalics@gmx.at>
10218
10219 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
10220
e9a0aef8
MA
102212009-10-02 Michael Albinus <michael.albinus@gmx.de>
10222
d528b1ce 10223 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
10224 used anymore outside fileio.c.
10225
10226 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
10227
64eb2b56
JB
102282009-10-01 Juanma Barranquero <lekktu@gmail.com>
10229
10230 * lisp.h (Qdelete_directory_internal):
10231 Declare, instead of Qdelete_directory.
10232
10233 * w32fns.c (Fsystem_move_file_to_trash): Use it.
10234
9d28c33e
SM
102352009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
10236
10237 * eval.c (Fcalled_interactively_p): Add `kind' argument.
10238
9d8f3bd9
MA
102392009-10-01 Michael Albinus <michael.albinus@gmx.de>
10240
9d28c33e 10241 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
10242 Fdelete_directory. It is not a command anymore. It has no file
10243 name handler.
10244
9694740b
SM
102452009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
10246
10247 * xdisp.c (get_next_display_element): Use an enum in last change.
10248
748e162f
KH
102492009-09-28 Kenichi Handa <handa@m17n.org>
10250
9694740b 10251 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
10252 unibyte_display_via_language_environment in handling
10253 Vnobreak_char_display.
10254
17efd58d
AR
102552009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10256
10257 * nsterm.h (ns_app_name): New extern variable.
10258
10259 * nsterm.m (ns_app_name): New variable.
10260 (ns_term_init): Set and use it.
10261 (ns_term_shutdown): Use it.
10262
10263 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
10264 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
10265
10266 * nsfns.m (ns_set_name_iconic, ns_set_name)
10267 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
10268 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
10269
9694740b
SM
10270 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
10271 Remove double-casting in client_data comparison.
31c2d412 10272
3208cb35
YM
102732009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10274
10275 * keyboard.c (make_lispy_event): Remember last wheel direction.
10276 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
10277
b7d552d6
GM
102782009-09-26 Glenn Morris <rgm@gnu.org>
10279
10280 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
10281 internal.elc. Add term/pc-win.elc.
10282 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
10283 term/x-win.elc.
10284 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
10285 term/w32-win.elc.
10286 (NS_SUPPORT): New.
10287 (lisp): Add NS_SUPPORT.
10288 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
10289
4ff670a8
DR
102902009-09-25 David Reitter <david.reitter@gmail.com>
10291
10292 * nsmenu.m (EmacsMenu-clear): Recognize application menu
10293 on Mac OS X 10.6+ (bug#4513).
10294
feabfb6c
JB
102952009-09-24 Juanma Barranquero <lekktu@gmail.com>
10296
10297 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
10298 some parts of Emacs code (like font selection) don't grok them.
10299 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 10300
de59072a
AS
103012009-09-24 Andreas Schwab <schwab@redhat.com>
10302
10303 * coding.c (decode_coding_iso_2022): Fix operator precedence.
10304
a489517b
JB
103052009-09-24 Juanma Barranquero <lekktu@gmail.com>
10306
10307 * dired.c (Fdirectory_files): Fix typo in docstring.
10308
0592970c
AR
103092009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
10310
10311 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
10312 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
10313 (EmacsScroller-setPosition:portion:whole:): Remove -display call
10314 under GNUstep.
10315 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
10316
10317 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
10318 glyph advancement.
10319
48e8a88b
AR
103202009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10321
10322 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 10323 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
10324
10325 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
10326 deleted (bug #4492).
10327
e14f0a78
AR
10328 * nsfont.m (Vns_reg_to_script): New lisp variable.
10329 (syms_of_nsfont): Declare it.
10330 (ns_registry_to_script): New function.
10331 (ns_get_req_script): Call it.
10332 (ns_findfonts): Don't give up on non-unicode registry.
10333
10334 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
10335
5b650faa
SM
103362009-09-20 Tom Tromey <tromey@redhat.com>
10337
10338 * eval.c (find_handler_clause): Make stack-trace-on-error work in
10339 batch mode (bug#4228).
10340
a489517b 103412009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
10342
10343 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 10344 carefully. (Bug #4339)
0bae4e09 10345
fcfe06f3
CY
103462009-09-18 Chong Yidong <cyd@stupidchicken.com>
10347
d798ba87 10348 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 10349
31642728
AR
103502009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
10351
10352 * emacs.c (inhibit_x_resources): Update doc string for NS.
bba3e508
SM
10353 (main) [HAVE_NS]: Don't process --no-init-file option.
10354 Remove legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
10355
10356 * nsterm.h (ns_no_defaults): Remove.
10357
10358 * nsterm.m (ns_no_defaults): Remove.
10359 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
10360 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
10361 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
10362 don't update the NSWindow itself.
bba3e508
SM
10363 (EmacsView-windowWillUseStandardFrame:defaultFrame:):
10364 Improve state detection and store user rect ourselves. (Bug #3581)
31642728
AR
10365
10366 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
10367 ns_use_qd_smoothing.
10368
10369 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
10370 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 10371 (x-close-connection): Drop PSFlush() under OS X.
a489517b 10372 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 10373
8686ac71
JB
103742009-09-17 Juanma Barranquero <lekktu@gmail.com>
10375
10376 * emacs.c (inhibit_x_resources): New variable.
10377 (main) [HAVE_NS]: Don't process --quick command line option.
10378 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
10379
10380 * lisp.h (inhibit_x_resources): Declare it extern.
10381
10382 * w32reg.c (x_get_string_resource):
10383 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
10384
e227ba05
EZ
103852009-09-17 Eli Zaretskii <eliz@gnu.org>
10386
362654a6
JB
10387 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
10388 Add lisp/term/internal.elc.
e227ba05 10389
742d40e8
SM
103902009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
10391
10392 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
10393 (bug#4461).
10394
005bd5a2
DN
103952009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
10396
10397 * puresize.h (BASE_PURESIZE): Increase to 1290000.
10398
10399 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
10400 (OBJECTS_MACHINE): Remove, unused.
10401
f9af9719
SM
104022009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
10403
10404 * frame.c (x_get_resource_string): Remove unused.
10405
0307c7d2
JD
104062009-09-15 Jan Djärv <jan.h.d@swipnet.se>
10407
10408 * xterm.c (x_new_font): Call change_frame_size before calling
10409 x_set_window_size, in case frame size won't change.
10410
10411 * frame.c (x_set_font): Remove dead code.
10412
428b13d6
SM
104132009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
10414
10415 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
10416
5766c380
SM
104172009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
10418
10419 * lread.c (Fload): Don't output a message after loading an obsolete
10420 package any more (done in Lisp now).
10421
2fd0161b
CY
104222009-09-12 Chong Yidong <cyd@stupidchicken.com>
10423
10424 * fns.c (syms_of_fns): Doc fix (Bug#4227).
10425
bc5e75b6
SM
104262009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
10427
10428 * keymap.c (Fwhere_is_internal): Use nconc2.
10429
c31c985e
AM
104302009-09-11 Alan Mackenzie <acm@muc.de>
10431
10432 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
10433 batch mode.
10434
78012bd2
AS
104352009-09-11 Andreas Schwab <schwab@linux-m68k.org>
10436
10437 * xdisp.c (display_mode_element): Detect cycles.
10438
9d889332
SM
104392009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
10440
10441 * keymap.c (where_is_internal): Don't erroneously return nil right after
10442 filling the cache.
10443 (where_is_internal_1): Fix up typo.
10444
7ab5d780
GM
104452009-09-11 Glenn Morris <rgm@gnu.org>
10446
10447 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
10448 share a common doc-string.
10449
5238a749
SM
104502009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
10451
66d77eda
SM
10452 * keymap.c (get_keymap): Return the actual keymap symbol rather than
10453 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
10454
5238a749
SM
10455 * keymap.c (QCadvertised_binding): New constant.
10456 (syms_of_keymap): Initialize it.
10457 (Fwhere_is_internal): Try and use bindings from :advertised-binding
10458 if applicable.
10459
19f48442
SM
104602009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
10461
50d4ba39
SM
10462 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
10463 (parse_menu_item): Streamline since bindings are recomputed all the
10464 time anyway. Don't bother checking Vdefine_key_rebound_commands any
10465 more and don't support lmenu's menu-alias any more either.
10466
a88a5372
SM
10467 * keymap.c (where_is_internal_data): Make noindirect a boolean.
10468 (where_is_internal): Strip it down to only traverse the keymaps.
10469 Move the cache handling from Fwhere_is_internal to here.
10470 (Fwhere_is_internal): Move the handling of remapping and the choice of
10471 the best binding from where_is_internal to here.
10472 Unify the cached/noncached paths, so remapping is also handled
10473 correctly when the cache is used, and so the cache can be used to
10474 speed up remap-handling when applicable.
10475 Give preference to non-remapped bindings.
10476 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
10477 non-remapped bindings.
10478 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
10479 command remapping.
10480
19f48442
SM
10481 * xdisp.c (display_mode_element): Move list length limit from 50 to
10482 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
10483
599498c3 104842009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
10485
10486 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
10487
f9b7b5ac
SM
104882009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
10489
a53af587
JB
10490 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
10491 (Bug#4334)
10492
f9b7b5ac
SM
10493 * keymap.c (where_is_internal): Filter out shadowed remappings.
10494 Assume that where_is_internal returns unshadowed bindings to simplify
10495 the code and get rid of the gotos. Use ASIZE.
10496
04f4b72d
JD
104972009-09-04 Jan Djärv <jan.h.d@swipnet.se>
10498
4da146f2
JD
10499 * xterm.c (x_focus_changed): If we get a focusout and pointer
10500 is invisible, make it visible.
10501
04f4b72d
JD
10502 * xterm.h: Remove condition for declaration of
10503 x_*_window_to_frame.
10504
7cef7ce3
SM
105052009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
10506
10507 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
10508 initial terminal as well.
10509
a54fa5b7
JD
105102009-09-02 Jan Djärv <jan.h.d@swipnet.se>
10511
10512 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 10513 x_menubar_window_to_frame.
a54fa5b7 10514
50426a04 10515 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
10516 (XTmouse_position): Do not return valid positions
10517 for clicks in the menubar and the toolbar for Gtk+.
10518
10519 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
10520 if the widget for the event has the same top level as a frame,
10521 return the frame.
10522 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
10523 internal windows, bug #4122.
10524 (x_non_menubar_window_to_frame): Remove.
10525
5a021dd0
GM
105262009-09-02 Glenn Morris <rgm@gnu.org>
10527
10528 * buffer.c (default-major-mode): Move most of the doc from here...
10529 (major-mode): ... to here.
10530
548fe2f3
NR
105312009-08-30 Nick Roberts <nickrob@snap.net.nz>
10532
10533 * process.c (wait_reading_process_output): Keep the descriptor
10534 when pty is used by a non-child process, e.g., in I/O buffer of
10535 GDB this allows inferior to be restarted.
10536
e0840eef
EZ
105372009-08-29 Eli Zaretskii <eliz@gnu.org>
10538
10539 * xdisp.c (redisplay_internal): Remove redundant test and collapse
10540 both branches into one.
10541
82e98df4
SM
105422009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
10543
10544 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
10545 (main): Use enable-multibyte-characters rather than
10546 default-enable-multibyte-characters. Output a warning message when
10547 running a unibyte session.
10548
890617cb
YM
105492009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10550
10551 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
10552 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
10553 (copy_data_segment): Also copy __program_vars section.
10554 (copy_dyld_info) [LC_DYLD_INFO]: New function.
10555 (dump_it) [LC_DYLD_INFO]: Use it.
10556
10557 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
10558
e7adeadc
EZ
105592009-08-28 Eli Zaretskii <eliz@gnu.org>
10560
10561 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
10562 $(SRC)/buildobj.h.
ef1b0ba7 10563 (buildobj.h): Rename from $(SRC)/buildobj.h.
e7adeadc
EZ
10564 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
10565 $(SRC)/buildobj.h.
10566 (clean): Add buildobj.h.
10567
3ed8bbdc
TZ
105682009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
10569
10570 * print.c (print_object): Set escapeflag to 1 when printing
10571 hashtable keys and values.
10572
155a6764
SM
105732009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
10574
10575 * lread.c (read_integer): Use doubles (and potentially return a float
10576 number) as we do in string-to-number.
10577 (read1): Use strtol to read integers, signal errors on strtol's
10578 overflow and use floats if strtol's output is too large for
10579 Elisp integers.
10580
877610de
EZ
105812009-08-27 Eli Zaretskii <eliz@gnu.org>
10582
10583 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
10584 (make-buildobj-SH): Fix last change.
10585 (SRC): Move to before where it's first used.
10586
ef73e7be
KH
105872009-08-27 Kenichi Handa <handa@m17n.org>
10588
550c8289
KH
10589 * process.c (send_process): Use encode_coding_object instead of
10590 encode_coding_string to perform eol-conversion even if the string
10591 is unibyte.
10592
60afa08d
KH
10593 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
10594 character.
10595
ef73e7be 10596 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 10597 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 10598
7b3a82d7
DN
105992009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
10600
5654bf63
DN
10601 * callproc.c (Fcall_process): Remove always true #if.
10602
7b3a82d7
DN
10603 * lisp.h: Replace #if 0 code for checking with text pointing to
10604 the --enable-checking configure flag.
10605
10606 * emacs.c (main): Mention the --enable-profiling configure flag
10607 instead of using CFLAGS.
10608
878bde49
KR
106092009-08-26 Ken Raeburn <raeburn@raeburn.org>
10610
10611 * Makefile.in (buildobj.h): New target.
10612 (doc.o): Depend on it.
10613 (temacs${EXEEXT}): Don't generate buildobj.lst.
10614 (mostlyclean): Delete buildobj.h, not buildobj.lst.
10615 * makefile.w32-in ($(SRC)/buildobj.h): New target.
10616 ($(BLD)/doc.$(O)): Depend on it.
10617 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
10618 provided by Eli Zaretskii.)
10619 ($(TEMACS)): Don't generate buildobj.lst.
10620 * doc.c: Include buildobj.h.
10621 (buildobj): New static variable.
10622 (Fsnarf_documentation): Use it, instead of opening and reading
10623 buildobj.lst.
10624
1574224c
MA
106252009-08-25 Michael Albinus <michael.albinus@gmx.de>
10626
10627 * dbusbind.c (Fdbus_call_method)
10628 (Fdbus_call_method_asynchronously): Use English numeric format for
10629 timeout values in doc string.
10630
d9da2f45
KH
106312009-08-25 Kenichi Handa <handa@m17n.org>
10632
ef73e7be
KH
10633 * alloc.c (mark_char_table): New function.
10634 (mark_object): Use mark_char_table for a char-table.
10635
d9da2f45
KH
10636 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
10637 (CHAR_TABLE_REF): Use it.
10638
c8edcc01
KR
106392009-08-23 Ken Raeburn <raeburn@raeburn.org>
10640
10641 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
10642 before invoking the newly build emacs to check for load-path
10643 shadowing.
10644
7763401b
GM
106452009-08-22 Glenn Morris <rgm@gnu.org>
10646
10647 * Makefile.in (bootstrap_exe): New variable.
10648 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
10649 Use ${bootstrap_exe}.
10650
729eadda
EZ
106512009-08-22 Eli Zaretskii <eliz@gnu.org>
10652
10653 * coding.h (encode_coding_string): Don't encode unibyte strings.
10654 (Bug#4047)
10655
eb4c6ace
MA
106562009-08-22 Michael Albinus <michael.albinus@gmx.de>
10657
10658 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
10659
10660 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
10661 intended as hotfix only.
10662 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
10663
36e34d1b
AR
106642009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
10665
10666 * nsterm.m (ns_get_color): Update documentation properly for last
bba3e508
SM
10667 change, and clean up loose ends in the code left by it.
10668 Fix longstanding bug with 16-bit hex parsing, and add support for
36e34d1b
AR
10669 yet another X11 format (rgb:r/g/b) for compatibility.
10670 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
10671 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
10672
f983eb8a
SM
106732009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
10674
10675 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
10676
3f56d3c6
MA
106772009-08-20 Michael Albinus <michael.albinus@gmx.de>
10678
10679 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
10680 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
10681 (xd_initialize, xd_pending_messages): Check, whether
10682 $DBUS_SESSION_BUS_ADDRESS is set.
10683
fb641d68
YM
106842009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10685
10686 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
10687
10688 * nsterm.m (ns_get_color): Remove incompatible color formats again.
10689
cf59a374
GM
106902009-08-20 Glenn Morris <rgm@gnu.org>
10691
10692 * emacs.c (system-type): Doc fix.
10693
1373f3be
SM
106942009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
10695
10696 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
10697 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
10698
058ed861
MA
106992009-08-18 Michael Albinus <michael.albinus@gmx.de>
10700
1373f3be
SM
10701 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
10702 New functions.
058ed861
MA
10703 (xd_initialize): Revert change from 2009-08-16.
10704
563a866e 107052009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
10706
10707 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 10708 font-group vector, return nil.
5fc05db0 10709
e42bdf01
CY
107102009-08-17 Chong Yidong <cyd@stupidchicken.com>
10711
10712 * process.c (status_notify): Don't perform redisplay.
10713 (Fdelete_process, list_processes_1, process_send_signal):
10714 Expliticly perform redisplay.
10715 (wait_reading_process_output): Always check process status, but
10716 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
10717
4230ab74
KR
107182009-08-17 Ken Raeburn <raeburn@raeburn.org>
10719
1373f3be 10720 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
10721 (XFLOAT_INIT): New macro for storing a float value.
10722 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
10723 * fns.c (sxhash): Copy out the value of a float in order to
10724 examine its bytes.
10725 * dbusbind.c (xd_append_arg): Likewise.
10726
4230ab74
KR
10727 * emacs.c (main): Don't call syms_of_data twice.
10728
a0645cdd
MA
107292009-08-16 Michael Albinus <michael.albinus@gmx.de>
10730
10731 * dbusbind.c (xd_initialize): Add connection file descriptor to
10732 input_wait_mask, in order to let select() detect, whether a new
10733 message has been arrived.
ca4f31ea 10734 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 10735
485db0ba
MA
107362009-08-15 Michael Albinus <michael.albinus@gmx.de>
10737
1373f3be
SM
10738 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
10739 New functions.
485db0ba
MA
10740
10741 * lisp.h (xd_pending_messages): Declare.
10742
10743 * keyboard.c (readable_events): Call xd_pending_messages.
10744
b5b98ff4
CY
107452009-08-15 Chong Yidong <cyd@stupidchicken.com>
10746
1373f3be 10747 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 10748
f8354c6e
CY
10749 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
10750
b5b98ff4
CY
10751 * buffer.c (set_buffer_internal_1)
10752 (swap_out_buffer_local_variables): Check for unbound local
10753 variables (Bug#4138).
10754
8b9fc636
EZ
107552009-08-14 Eli Zaretskii <eliz@gnu.org>
10756
10757 * process.c (create_pty): Fix last change.
10758
ce959360
CY
107592009-08-13 Chong Yidong <cyd@stupidchicken.com>
10760
10761 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
10762 (xbm_load_image): Caller changed.
64b807c9 10763 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 10764
c7baf7e9
NR
107652009-08-13 Nick Roberts <nickrob@snap.net.nz>
10766
10767 * process.c (create_pty): New function.
10768 (Fstart_process): Use it to allow Emacs to just associate a pty
10769 with the buffer. See associated change in gdb-mi.el.
10770 (list_processes_1): Deal with no program name.
10771 (start_process_unwind): Use pid == -2 to mean no process.
10772
1ac9108a
SM
107732009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
10774
10775 * cmds.c (nonundocount): New global variable.
10776 (keys_of_cmds): Initialize it.
10777 (Fself_insert_command): Use it to combine upto 20 sequential chars
10778 into a single undo entry, just like the Qself_insert_command code in
10779 keyboard.c does.
10780 Call frame_make_pointer_invisible, also like the Qself_insert_command
10781 code in keyboard.c does.
10782 * keyboard.c (command_loop_1): Use the new global nonundocount rather
10783 than its own local replacement for it.
10784
e267324c
KR
107852009-08-10 Ken Raeburn <raeburn@raeburn.org>
10786
1ac9108a 10787 * fns.c (concat): Don't re-set string length to its current value.
77437343 10788
1ac9108a
SM
10789 * coding.h (decode_coding_string, encode_coding_string):
10790 Use SBYTES macro.
f0bed503 10791
1ac9108a 10792 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
10793 (doprnt): Merge with doprnt1, discarding lispstrings code.
10794 * lisp.h (doprnt_lisp): Don't declare.
10795
416e006d
JL
107962009-08-07 Juri Linkov <juri@jurta.org>
10797
10798 * puresize.h (BASE_PURESIZE): Increase to 1270000.
10799
6f7d5780
DN
108002009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
10801
10802 * print.c (syms_of_print): Undo previous change.
10803
f19a0f5b
TZ
108042009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
10805
10806 * lread.c (read1, syms_of_lread): Read hashtables back from the
10807 readable format.
10808
10809 * print.c (print_preprocess, print_object): Print hashtables fully
10810 and readably.
10811 (syms_of_print): Provide 'hashtable-print-readable.
10812
b9173dc2
AR
108132009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
10814
10815 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
10816 no family set.
10817 (nsfont_open): Handle case when entity has no family.
10818
1586503c
AR
108192009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
10820
10821 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
10822 element, not a list, for match case.
10823
087048cd
KH
108242009-07-28 Kenichi Handa <handa@m17n.org>
10825
10826 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
10827 rigidly.
10828
10829 * xfont.c (xfont_list_pattern): Don't ignore the return value of
10830 font_parse_xlfd. Check font properties more rigidly.
10831
780c2506
DN
108322009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
10833
31fd7c5c
JB
10834 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
10835 bsd-common.h.
780c2506 10836
a8c0cc18
KH
108372009-07-27 Kenichi Handa <handa@m17n.org>
10838
10839 * xfaces.c (face_with_height): Call font_clear_prop.
10840
4fbe2306
CY
108412009-07-26 Chong Yidong <cyd@stupidchicken.com>
10842
111d9af3
CY
10843 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
10844
10845 * xterm.c (x_term_init): Use Qx.
10846
4fbe2306
CY
10847 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
10848
1ac9108a 10849 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
10850 (ns_get_color): Revert 2009-07-16 change.
10851
beb0b7f9
EZ
108522009-07-25 Eli Zaretskii <eliz@gnu.org>
10853
10854 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 10855 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 10856
2baf5e76
KR
108572009-07-25 Ken Raeburn <raeburn@raeburn.org>
10858
1ac9108a
SM
10859 * coding.h (decode_coding_string, encode_coding_string):
10860 Use SCHARS macro.
8890e5f5 10861
2baf5e76 10862 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 10863 (load_depth): Delete.
2baf5e76
KR
10864 (Qload_in_progress): New variable.
10865 (load_unwind): Don't reference load_depth or load_in_progress.
10866 (Fload): Likewise; specbind Qload_in_progress instead.
10867 (init_lread): Don't initialize load_depth.
10868 (syms_of_lread): Initialize and protect Qload_in_progress.
10869
1395c6f5
AR
108702009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
10871
10872 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
10873
4e2f36cf
AR
108742009-07-23 Yavor Doganov <yavor@gnu.org>
10875
10876 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
10877
5dd9a6f7
AR
108782009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
10879
10880 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
10881 Bugs 3792, 3720, 2402.
10882 (ns_lookup_indexed_color): Check for bad index.
10883 (ns_index_color): Init unused slot to 0.
10884 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
10885 Bug 3714, possibly 3082.
5dd9a6f7 10886
c902b920
JR
108872009-07-22 Jason Rumney <jasonr@gnu.org>
10888
1ac9108a
SM
10889 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
10890 Position IME window at cursor (Bug#2570).
c902b920
JR
10891 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
10892 (globals_of_w32fns): Dynamically load functions required above.
10893
10894 * w32term.c (w32_draw_window_cursor): Send message to reposition
10895 any IME window.
10896
090101cf
CY
108972009-07-21 Chong Yidong <cyd@stupidchicken.com>
10898
10899 * fileio.c: Revert 2009-07-16 changes.
10900 (Vauto_save_include_big_deletions): New variable.
10901 (Fdo_auto_save): Disable auto-save only if
10902 auto-save-include-big-deletions is nil.
10903
e6583e3d
CY
109042009-07-21 Chong Yidong <cyd@stupidchicken.com>
10905
10906 * xdisp.c (move_it_to): For continued lines ending in a tab, take
10907 the overflowed pixels into account (Bug#3879).
10908
ece435a5
KR
109092009-07-21 Ken Raeburn <raeburn@raeburn.org>
10910
10911 * lread.c (load_depth): New variable.
10912 (Fload, load_unwind, init_lread): Set it to the load recursion
10913 depth; set load_in_progress as a simple boolean based on the
10914 current load_depth. (Bug#3892)
10915
40b2d973
AR
109162009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10917
10918 * nsfont.m (ns_has_attribute): Remove.
10919 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
10920
10be7e0d
JL
109212009-07-18 Juri Linkov <juri@jurta.org>
10922
10923 * process.c (Fset_process_query_on_exit_flag): Mention killing
10924 a buffer in docstring.
10925
fa055055
KH
109262009-07-17 Kenichi Handa <handa@m17n.org>
10927
10928 * casetab.c (shuffle): Fix the logic of setting up the cycle.
10929
042f7b69
YM
109302009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10931
10932 * nsfns.m (Fns_set_alpha): Remove function.
10933 (syms_of_nsfns): Don't defsubr it.
10934
10935 * nsterm.m (ns_get_color): Remove incompatible color formats.
10936 (ns_color_to_lisp): Generate #rrggbb color format string.
10937
4be941e3
RS
109382009-07-16 Richard Stallman <rms@gnu.org>
10939
10940 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
10941 (Fset_buffer_auto_saved): Handle save_length = -2.
10942
4e6b227d
CY
109432009-07-16 Chong Yidong <cyd@stupidchicken.com>
10944
10945 * xterm.c (Qx_gtk_map_stock): New var.
10946
10947 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
10948 of calling intern each time.
10949
a1856973
YM
109502009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10951
10952 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
10953 does tiling.
10954
10955 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
10956
497e54d8
KH
109572009-07-14 Kenichi Handa <handa@m17n.org>
10958
72d36834
KH
10959 * font.c (font_vconcat_entity_vectors): New function.
10960 (struct font_sort_data): New member font_driver_preference.
10961 (font_compare): Check font_driver_preference.
10962 (font_sort_entities): The format of the first argument changed.
10963 (font_delete_unmatched): Likewise.
10964 (font_list_entities): The return type changed.
10965 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
10966 (font_find_for_lface): Adjuste for the above changes.
10967 Don't suppress the checking of C even if the repertory supports it.
10968 (Flist_fonts): Adjust for the above changes.
72d36834 10969
1ac9108a
SM
10970 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
10971 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
10972 Reject a font who has adstyle property that is different from a
10973 langname derived from registry property.
1ac9108a 10974 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 10975
b6046155
EZ
109762009-07-13 Eli Zaretskii <eliz@gnu.org>
10977
10978 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
10979 local copy of dirfilename.
10980
fb6b6049
KH
109812009-07-13 Kenichi Handa <handa@m17n.org>
10982
e2402a5e
KH
10983 * chartab.c (sub_char_table_ref_and_range): Fix the range check
10984 against max_char.
10985
fb6b6049
KH
10986 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
10987 calling XSYMBOL (sym).
10988
65156807
EZ
109892009-07-11 Eli Zaretskii <eliz@gnu.org>
10990
1ac9108a
SM
10991 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
10992 New function.
10993 (directory_files_internal) [WINDOWSNT]:
10994 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
10995 the filesystem of the directory is fast or slow.
10996
10997 * w32.c (logon_network_drive): Don't assume PATH is an absolute
10998 file name.
10999 (is_slow_fs): New function.
11000 (stat): Use it to determine whether to issue more system calls to
11001 get accurate file attributes, when w32-get-true-file-attributes is
11002 `local'.
11003
e0ab5fcf
JD
110042009-07-10 Jan Djärv <jan.h.d@swipnet.se>
11005
11006 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 11007 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
11008 parameter font-parameter as default to the font dialog.
11009
784ceded
KH
110102009-07-10 Kenichi Handa <handa@m17n.org>
11011
11012 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
11013
fb8edc0b
EZ
110142009-07-09 Eli Zaretskii <eliz@gnu.org>
11015
1ac9108a 11016 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 11017
fb8edc0b
EZ
11018 * w32.c (stat): Treat UNC file names as residing on remote
11019 drives. (Bug#3542)
11020
635c75b1
KH
110212009-07-09 Kenichi Handa <handa@m17n.org>
11022
11023 * fontset.c (fontset_find_font): Fix previous change.
11024
c1d5ce94
MA
110252009-07-08 Michael Albinus <michael.albinus@gmx.de>
11026
11027 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
11028 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
11029 error flag.
11030
edb61b39
KH
110312009-07-08 Kenichi Handa <handa@m17n.org>
11032
374bf7e4
KH
11033 * fontset.c (fontset_find_font): Fix the logic of handling
11034 charset_matched.
11035 (font_for_char): Delete unused var.
11036 (generate_ascii_font_name): Delete it.
11037
edb61b39
KH
11038 * coding.h (JIS_TO_SJIS2): Fix the code range check.
11039
11040 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
11041 (encode_coding_sjis): Fix the code range check.
11042
0f3f018c
CY
110432009-07-07 Chong Yidong <cyd@stupidchicken.com>
11044
11045 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
11046 (Fexpand_file_name): Copy string data properly (Bug#3772).
11047
fcaf6f3a
JD
110482009-07-07 Jan Djärv <jan.h.d@swipnet.se>
11049
11050 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
11051 first MapNotify.
11052
6809ca75
KH
110532009-07-07 Kenichi Handa <handa@m17n.org>
11054
11055 * character.h (unibyte_has_multibyte_table): Delete extern.
11056 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
11057
11058 * charset.c (Fset_charset_priority): Update charset_unibyte.
11059 (syms_of_charset): Initialize charset_unibyte.
11060
11061 * character.c (unibyte_has_multibyte_table): Delete it.
11062 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
11063 charset_unibyte.
11064 (multibyte_char_to_unibyte_safe): Likewise.
11065 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
11066
1ac9108a 11067 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
11068 (x_produce_glyphs): Likewise.
11069
11070 * .gdbinit (xcharset): Fix the treating $arg0.
11071
ad9e2d54
EZ
110722009-07-04 Eli Zaretskii <eliz@gnu.org>
11073
11074 Emulation of `getloadavg' on MS-Windows.
50426a04 11075 * w32.c: Include float.h.
ad9e2d54
EZ
11076 (g_b_init_get_native_system_info, g_b_init_get_system_times)
11077 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
11078 (get_native_system_info, get_system_times): New functions.
11079 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
11080 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
11081 (globals_of_w32): Initialize g_b_init_get_native_system_info,
11082 g_b_init_get_system_times, and num_of_processors.
11083
0a3472c7
JR
110842009-07-03 Jason Rumney <jasonr@gnu.org>
11085
11086 * w32term.c (w32_initialize): Use standard types.
11087
80904120
EZ
110882009-07-03 Eli Zaretskii <eliz@gnu.org>
11089
11090 * dired.c (Ffile_attributes): Decode user and group names by the
11091 locale's encoding. (Bug#3443)
11092
6978862d
DN
110932009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
11094
f8d23104
DN
11095 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
11096 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
11097
11098 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
11099
11100 * term.c (init_tty): Remove spurious #ifdef.
11101
6978862d
DN
11102 * m/mips.h: Mention this file is also used for netbsd.
11103 * m/pmax.h: Remove file.
11104
e044e4fc
JD
111052009-07-03 Jan Djärv <jan.h.d@swipnet.se>
11106
11107 * xterm.h (struct x_display_info): Add invisible_cursor.
11108 (struct x_output): Add current_cursor.
11109
11110 * xterm.c (XTtoggle_invisible_pointer): New function.
11111 (x_define_frame_cursor): Don't define cursor if invisible or the
11112 same as before. Set current_cursor.
11113 (x_create_terminal): Set toggle_invisible_pointer_hook.
11114
11115 * xfns.c (make_invisible_cursor): New function.
11116 (x_set_mouse_color): Call make_invisible_cursor.
11117 Set current_cursor.
11118 (x_window): Set current_cursor.
11119
11120 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
11121
11122 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
11123 inserting a character.
11124 (read_avail_input): Call frame_make_pointer_visible.
11125
11126 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
11127 (frame_make_pointer_invisible, frame_make_pointer_visible):
11128 New functions.
e044e4fc
JD
11129 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
11130
11131 * frame.h: Declare frame_make_pointer_invisible and
11132 frame_make_pointer_visible.
11133 (struct frame): Add pointer_invisible.
11134
574c8efa
JD
111352009-07-02 Jan Djärv <jan.h.d@swipnet.se>
11136
7b507248
JD
11137 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
11138 frame isn't visible.
11139 (xg_frame_resized): If width/height is -1, get size of window
11140 from X server.
11141
11142 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
11143 for MapNotify.
11144
835bdaa7 11145 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 11146 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 11147 (flush_and_sync): Reintroduce.
574c8efa 11148
3f1c6666 111492009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 11150
31fd7c5c 11151 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
11152
11153 * xterm.c (x_handle_net_wm_state): Also look for sticky.
11154 (x_term_init): Initialize Xatom_net_wm_state_sticky.
11155
11156 * frame.h: Declare Qsticky.
11157
cad9ef74
JD
11158 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
11159
11160 * nsfns.m (ns_frame_parm_handlers): Ditto.
11161
11162 * frame.c: Declare Qsticky.
11163 (frame_parms): Add sticky.
11164
11165 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
11166
11167 * xterm.h: Declare x_set_sticky.
11168
11169 * xterm.c (x_set_sticky): New function.
11170
69b16610
JD
11171 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
11172 (xg_tool_bar_menu_proxy): Attach enter/leave events to
11173 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
11174
11175 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
11176
11177 * frame.c: Qmaximized is new.
11178 (x_set_frame_parameters): Do not handle fullscreen specially.
11179 Only set width and height if explicitly set.
11180 (x_set_fullscreen): Handle Qmaximized.
11181 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
11182 (syms_of_frame): Initialize Qmaximized.
11183
1ac9108a
SM
11184 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
11185 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
11186
11187 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
11188 for Expose event. Add call to x_check_fullscreen for MapNotify event.
11189 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
11190 set gravity to NorthWestGravity when USE_GTK.
11191 (set_wm_state): New function.
31fd7c5c 11192 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
11193 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
11194 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 11195 or the case when no window manager is running. That means remove calls
3f1c6666
JD
11196 to x_real_positions and x_fullscreen_adjust.
11197
11198 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
11199 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
11200 flush_and_sync.
11201 (xg_height_changed): New function.
11202 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
11203 and gtk_window_set_policy. Set frame gravity after parsing the
11204 geometry string.
3f1c6666
JD
11205 (xg_update_frame_menubar, free_frame_menubar)
11206 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
11207 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
11208 Remove calls to xg_frame_set_char_size.
11209
fd503d99
KH
112102009-07-01 Kenichi Handa <handa@m17n.org>
11211
11212 * keyboard.c (decode_keyboard_code): New function.
11213 (tty_read_avail_input): Decode the input bytes if necessary.
11214
1ac9108a
SM
11215 * coding.c (setup_coding_system):
11216 Initialize coding->carryover_bytes to 0.
fd503d99
KH
11217 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
11218 use Qno_conversion.
11219
24ed93fb
YM
112202009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11221
11222 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
11223
99061dfc
CY
112242009-06-30 Chong Yidong <cyd@stupidchicken.com>
11225
1ac9108a 11226 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 11227
ff90fbde
JR
112282009-06-30 Jason Rumney <jasonr@gnu.org>
11229
11230 * w32term.c (w32_initialize): Use GetModuleHandle for library that
11231 is already loaded.
11232 Set user model ID if supported (bug#1849).
11233
5f445726
JM
112342009-06-29 Jim Meyering <meyering@redhat.com>
11235
11236 Remove useless if-before-xfree test.
11237 * nsfont.m (nsfont_close): Remove useless test.
11238 * term.c (delete_tty): Likewise.
11239 * w32.c (system_process_attributes): Likewise.
11240 * w32font.c (w32font_close): Likewise.
11241 * xfaces.c (x_free_gc): Likewise.
11242 * xselect.c (buffer): Likewise.
11243
b9607587
AS
112442009-06-28 Andreas Schwab <schwab@linux-m68k.org>
11245
11246 * process.c (send_process): Keep decoded string in a local
11247 variable and protect it from GC. (Bug#3521)
11248
89ba96f4
EZ
112492009-06-28 Eli Zaretskii <eliz@gnu.org>
11250
11251 * term.c (create_tty_output) [MSDOS]: #ifdef away.
11252 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
11253
098a1589
CY
112542009-06-28 Chong Yidong <cyd@stupidchicken.com>
11255
485422be
CY
11256 * xdisp.c (start_display, handle_face_prop)
11257 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
11258 (redisplay_window, try_window_id, produce_image_glyph):
11259 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 11260
098a1589
CY
11261 * xterm.c (x_update_window_begin, x_new_focus_frame)
11262 (x_scroll_bar_handle_click, handle_one_xevent)
11263 (handle_one_xevent, XTread_socket, x_focus_on_frame)
11264 (x_make_frame_visible, x_make_frame_invisible)
11265 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
11266 code chunks that are now obsolete.
11267
78c38319
MA
112682009-06-28 Michael Albinus <michael.albinus@gmx.de>
11269
11270 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
11271 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
11272 for hours, when optimzation is enabled.
11273 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
11274 (xd_read_message): Make them static.
11275
4189ed40
CY
112762009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
11277
11278 * term.c (turn_on_face): Allow simultaneously bold and dim
11279 terminal faces (Bug#3530).
11280
cd9b5e16
CY
112812009-06-27 Chong Yidong <cyd@stupidchicken.com>
11282
4e23bedb
CY
11283 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
11284
cd9b5e16
CY
11285 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
11286 truncation glyphs (Bug#3686).
11287
07cc3c35
GM
112882009-06-27 Glenn Morris <rgm@gnu.org>
11289
11290 * m/pmax.h: Restore file, with only netbsd portions.
11291
31fd7c5c 112922009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 11293
cd9b5e16 11294 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 11295
42d4a64f
KH
112962009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
11297
11298 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
11299 the arg FORCE_SYMBOL.
11300
930fe55b 113012009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
11302
11303 * fontset.c (fontset_find_font): When a usable rfont_def is found
11304 in a fallback font-group, make it the first element of the group.
11305
57ebc3fd
CY
113062009-06-24 Chong Yidong <cyd@stupidchicken.com>
11307
11308 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
11309
f084f942
KH
113102009-06-24 Kenichi Handa <handa@m17n.org>
11311
11312 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
11313 set for C.
11314 (fontset_font): Record the availability of a font for C both in
11315 the realized fontsets of the current one and the default one.
11316
2f686c87
DN
113172009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
11318
11319 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
11320 conditional, it is always defined on AIX.
11321
666e158e
MB
113222009-06-23 Miles Bader <miles@gnu.org>
11323
11324 * window.c (Vrecenter_redisplay): New variable.
11325 (syms_of_window): Initialize it.
11326 (Qtty): New extern declaration.
11327 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
11328
c6da7cd2
JM
113292009-06-23 Jim Meyering <meyering@redhat.com>
11330
1ac9108a
SM
11331 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
11332 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 11333 pointer dereferences are guaranteed to be valid.
c6da7cd2 11334
678dca3d
KH
113352009-06-23 Kenichi Handa <handa@m17n.org>
11336
74d75424
KH
11337 * emacs.c (main): Call init_font ().
11338
11339 * font.h (Vfont_log): Extern it.
11340 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
11341
11342 * font.c (font_sort_entities, font_list_entities)
11343 (font_matching_entity, font_open_entity)
11344 (font_close_object): Change font_add_log to FONT_ADD_LOG.
11345 (Vfont_log): Delete static.
11346 (font_log_env_checked): Delete this variable.
11347 (font_add_log): Don't check font_log_env_checked.
11348 (font_deferred_log): Check Vfont_log.
11349 (init_font): New function.
11350
678dca3d
KH
11351 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
11352
11353 * w32font.c: Change font_add_log to FONT_ADD_LOG.
11354
11355 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
11356
11357 * xfont.c: Change font_add_log to FONT_ADD_LOG.
11358
11359 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
11360 (face_for_char): Don't call font_deferred_log here.
11361 (font_for_char): Likewise.
11362
8a668709
CY
113632009-06-22 Chong Yidong <cyd@stupidchicken.com>
11364
9a01ee33
CY
11365 * w32term.c (x_draw_glyph_string): Use the glyph string's width
11366 rather than its background_width for drawing the overline and
11367 underline (Bug#489).
11368
11369 * xterm.c (x_draw_glyph_string): Use the glyph string's width
11370 rather than its background_width for drawing the overline and
11371 underline (Bug#489).
ec7c9926
CY
11372 (xg_default_icon_file): New variable.
11373 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
11374 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 11375
8a668709
CY
11376 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
11377 (load_overlay_strings): Remove externs.
11378 (fast_find_position): Function deleted.
11379 (mouse_face_from_buffer_pos): New function, based on
11380 fast_find_position. Correctly handle before-strings,
11381 display-strings, and after-strings (Bug#1220).
11382 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
11383
4d4c02d8
CY
113842009-06-21 Chong Yidong <cyd@stupidchicken.com>
11385
1ac9108a 11386 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
11387 (move_it_in_display_line_to, move_it_in_display_line_to)
11388 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
11389
70243478
CY
113902009-06-21 Chong Yidong <cyd@stupidchicken.com>
11391
11392 * Branch for 23.1.
11393
13087e59
JR
113942009-06-21 Jason Rumney <jasonr@gnu.org>
11395
11396 * w32term.c (keyboard_codepage): New static variable.
11397 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
11398 (w32_read_socket) [WM_CHAR]: Use it to decode character
11399 input (bug#3237).
11400 (w32_initialize): Initialize it.
11401 (codepage_for_locale): New function.
11402
4735b74e
KR
114032009-06-20 Ken Raeburn <raeburn@raeburn.org>
11404
11405 * process.c (status_message): Pass Faset index argument as a lisp
11406 object, so as to work with USE_LISP_UNION_TYPE.
11407
0e727afa
YM
114082009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11409
11410 * coding.c (Ffind_coding_systems_region_internal):
11411 Cache checked characters.
11412
cf299835
KH
114132009-06-18 Kenichi Handa <handa@m17n.org>
11414
1ac9108a 11415 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 11416
90f20d94
AS
114172009-06-18 Andreas Schwab <aschwab@redhat.com>
11418
11419 * xdisp.c (redisplay_internal): Check that the frame is still
11420 live after redisplay of its windows.
11421 (redisplay_windows): Check that the window is still live.
11422
7f1faf1c
KH
114232009-06-17 Andreas Schwab <schwab@linux-m68k.org>
11424
11425 * coding.c (detect_coding_utf_16): Fix previous change.
11426
cc13543e
KH
114272009-06-16 Kenichi Handa <handa@m17n.org>
11428
11429 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
11430 UTF-16 by checking the dispersion of Eth and Oth bytes.
11431
977b85f4
AS
114322009-06-15 Andreas Schwab <schwab@linux-m68k.org>
11433
11434 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
11435
66bd43d1
KH
114362009-06-15 Kenichi Handa <handa@m17n.org>
11437
11438 * process.c (status_message): Fix previous change. Be sure to
11439 decode a localized string.
11440
cb5ca9c5
YM
114412009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11442
11443 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
11444 add comment explaining why.
11445
ec7709ba 114462009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 11447
ec7709ba 11448 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 11449
4b7f335c
AR
114502009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
11451
11452 * nsfont.m (ns_attribute_value): Remove.
11453 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
11454 (ns_has_attribute): Shrink the normal range.
11455 (ns_findfonts): Don't worry about requested spec in determining
11456 need for synthItal.
e41820ee 11457 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 11458
73b26103
SZ
114592009-06-14 Seiji Zenitani <zenitani@mac.com>
11460
11461 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
11462
5753e4da
KH
114632009-06-11 Kenichi Handa <handa@m17n.org>
11464
11465 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
11466 overhang for the static composition case.
11467
3561b671
KH
114682009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11469
5753e4da
KH
11470 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
11471 overhang for the automatic composition case.
11472
3561b671
KH
11473 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
11474 composition case.
11475
852bbd41
CY
114762009-06-10 Chong Yidong <cyd@stupidchicken.com>
11477
11478 * xdisp.c (get_next_display_element): When handling wrap-prefix
11479 and line-prefix, treat \n as a control character (bug#3502).
11480
9903d1e6
KH
114812009-06-10 Kenichi Handa <handa@m17n.org>
11482
11483 * font.c (font_parse_family_registry): Fix for one-char foundry.
11484 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
11485
0bcbaaaa
CY
114862009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
11487
11488 * process.c (status_message): Fix handling of multibyte signal
11489 string (Bug#3499).
11490
40aa3f13
JM
114912009-06-09 Jim Meyering <meyering@redhat.com>
11492
1f80c7e2
CY
11493 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
11494 color name is missing.
40aa3f13 11495
72d51285
KH
114962009-06-09 Kenichi Handa <handa@m17n.org>
11497
11498 * charset.c (Fmap_charset_chars): In docstring, state clearly that
11499 FROM-CODE and TO-CODE are codepoints of CHARSET.
11500
c1d04d84
AR
115012009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
11502
11503 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
11504
115052009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
11506
11507 Changes to support :script/:lang/:otf in NS font driver.
11508 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
11509 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
11510 indicate not part of font driver interface, and change callers.
11511 (ns_get_family): Remove pointless null check.
11512 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
11513 ns_spec_to_descriptor, ns_descriptor_to_entity.
11514 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
11515 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
11516 (ns_spec_to_descriptor, ns_descriptor_to_entity)
11517 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
11518 (ns_get_req_script, ns_accumulate_script_ranges)
11519 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
11520 New functions.
11521 (nsfont_list, nsfont_match): Use ns_findfonts.
11522 (nsfont_open): Use font descriptor instead of traits.
11523 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
11524 (dump_glyphstring): Rename to ns_dump_glyphstring.
11525
c7eb9816
AR
11526 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
11527
c1d04d84
AR
11528 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
11529
11530 * fontset.c (fontset_from_font): Remove NS-specific code.
11531
ec7709ba 115322009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
11533
11534 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
11535 nonactive windows.
11536
31fd7c5c 115372009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 11538
1ac9108a 11539 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 11540
68852c13 115412009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
11542
11543 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
11544
6756cd1d
CY
115452009-06-07 Chong Yidong <cyd@stupidchicken.com>
11546
11547 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
11548 account for the overflowing of newlines into the last glyph on the
11549 display line (Bug#3482).
11550
28bf482a
DR
115512009-06-05 David Reitter <david.reitter@gmail.com>
11552
ec7709ba
JB
11553 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
11554 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
11555 Fns_selection_exists_p, Fns_selection_owner_p.
11556
fdb55376
JR
115572009-06-03 Jason Rumney <jasonr@gnu.org>
11558
11559 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
11560 available. (Bug#3379)
11561
05129fbe
KH
115622009-05-29 Kenichi Handa <handa@m17n.org>
11563
1ac9108a
SM
11564 * coding.c (get_translation_table):
11565 Check Venable_character_translation.
05129fbe 11566
ec7709ba 115672009-05-26 David Reitter <david.reitter@gmail.com>
15891144 11568
ec7709ba
JB
11569 * nsterm.m (ns_raise_frame): Only raise frame if visible.
11570 (x_make_frame_visible): Move frame to front rather than calling
15891144 11571 ns_raise_frame().
ec7709ba 11572 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 11573 isn't key window.
ec7709ba 11574 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
11575 drawRect may be called by NSView even if the frame is hidden.
11576
ec7709ba
JB
11577 * nsfns.m (Fx_create_frame): Follow other ports in
11578 determining visibility; default to t. Ensure async_visible is set.
15891144 11579
21f73755
EZ
115802009-05-23 Eli Zaretskii <eliz@gnu.org>
11581
11582 * dired.c (Ffile_attributes): Doc fix.
11583
34001e41
CY
115842009-05-22 Chong Yidong <cyd@stupidchicken.com>
11585
11586 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
11587
46306a17
SM
115882009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
11589
11590 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
11591 and xfont_scratch_props.
11592 (syms_of_xfont): Do it here instead.
11593 (xfont_find_ccl_program): Delete, unused.
11594 (xfont_open): Delete unused var `i'.
11595
ef6e0694
KH
115962009-05-21 Kenichi Handa <handa@m17n.org>
11597
11598 * fontset.c (Qlatin): Don't make it static.
11599
46306a17
SM
11600 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
11601 New functions.
ef6e0694
KH
11602 (xfont_scripts_cache, xfont_scratch_props): New variables.
11603 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
11604 (xfont_list_pattern): Argument changed. Callers changed.
11605 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
11606 (xfont_list): Don't reject a font spec with :script property.
11607 (xfont_has_char): Fix setting of encoding.
11608 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
11609 xfont_scratch_props.
11610
116112009-05-19 Kenichi Handa <handa@m17n.org>
11612
46306a17 11613 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
11614 Callers changed.
11615
116162009-05-18 Kenichi Handa <handa@m17n.org>
11617
11618 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
11619
ac71ced7
SM
116202009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
11621
11622 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
11623 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
11624
1c6d1051
YM
116252009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11626
11627 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
11628 (x_delete_terminal): Dissociate resource database from display and
11629 then call XrmDestroyDatabase before closing display.
11630
9b9b779c
AR
116312009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
11632
11633 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
11634 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
11635 whether selected frame is viable before raising it (based on patch
11636 by David Reitter), and improve commentary.
11637 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 11638
cccd42d5
KH
116392009-05-15 Kenichi Handa <handa@m17n.org>
11640
11641 * font.c (Ffont_spec): Check arguments.
11642
337fbd17
CY
116432009-05-14 Chong Yidong <cyd@stupidchicken.com>
11644
11645 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
11646 weight when testing attributes (Bug#3282).
11647
47a6002f
JD
116482009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11649
11650 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
11651 what we expect to get in the next ConfigureNotify event.
11652
9cb363db
YM
11653 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
11654 before Xft one (Bug#1696).
11655
b9126609
CY
116562009-05-07 David Reitter <david.reitter@gmail.com>
11657
11658 * nsfns.m (Fx_display_planes): Compute bitplanes using
11659 NSBitsPerPixelFromDepth (Bug#3207).
11660
27a69fd9
CY
116612009-05-10 Chong Yidong <cyd@stupidchicken.com>
11662
11663 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
11664
00f37552
TTN
116652009-05-10 Ulrich Mueller <ulm@gentoo.org>
11666
11667 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
11668
2d82a920
DR
116692009-05-07 David Reitter <david.reitter@gmail.com>
11670
ec7709ba
JB
11671 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
11672 Respect mouse face background.
2d82a920 11673
46b0d52d
DR
116742009-05-07 David Reitter <david.reitter@gmail.com>
11675
ec7709ba
JB
11676 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
11677 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
11678 in ns_update_begin and ns_update_end.
11679
ce1b23bb
SM
116802009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
11681
5996e1b7
SM
11682 * nsfns.m (ns_get_screen): Rewrite.
11683 Don't presume selected-frame is of type `ns'.
11684
ba98e3a0
SM
11685 * font.c (font_update_drivers): Sanity fallback to avoid disabling
11686 all drivers.
11687
ce1b23bb
SM
11688 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
11689
bcda200f
YM
116902009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11691
11692 * keyboard.h (add_user_signal): Fix typo in extern.
11693
11694 * lisp.h (add_user_signal): Remove extern.
11695
11696 * unexelf.c (unexec): Consider a section to precede the .bss section
11697 if its addresses overlap that of .bss.
11698 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
11699 instead of dumping process.
11700
864660a2
SM
117012009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
11702
11703 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
11704
50da4e56
SM
117052009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
11706
11707 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
11708
51520a1a
DN
117092009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
11710
11711 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
11712 any statements.
11713
409ea3a1
AS
117142009-05-02 Andreas Schwab <schwab@linux-m68k.org>
11715
59c4c60f
AS
11716 * process.c (read_process_output): Make sure the current buffer is
11717 always restored.
11718
409ea3a1
AS
11719 * coding.c (record_conversion_result): Don't modify
11720 Vlast_code_conversion_error for successful result.
11721 (alloc_destination): Don't clobber conversion result. (Bug#1650)
11722
56f00ed2
KH
117232009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
11724
11725 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 11726 (load_charset_map): Remove unnecessary code.
56f00ed2 11727
4491c9d2
DR
117282009-04-30 David Reitter <david.reitter@gmail.com>
11729
35f5b128 11730 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
11731 through f24.
11732
6970f632
CY
117332009-04-30 Chong Yidong <cyd@stupidchicken.com>
11734
11735 * xfaces.c (face_at_buffer_position): New arg base_face_id.
11736
11737 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
11738 face_at_buffer_position.
11739 (face_before_or_after_it_pos, get_next_display_element)
11740 (note_mouse_highlight): Update face_at_buffer_position call.
11741
11742 * term.c (term_mouse_highlight):
11743 * msdos.c (IT_note_mouse_highlight):
11744 * fontset.c (Finternal_char_font):
35f5b128 11745 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
11746
11747 * dispextern.h (face_at_buffer_position): Update prototype.
11748
0c616f63
KH
117492009-04-30 Kenichi Handa <handa@m17n.org>
11750
35f5b128 11751 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 11752
ad3aaf33
AS
117532009-04-29 Andreas Schwab <schwab@linux-m68k.org>
11754
11755 * callproc.c (Fcall_process): Fix GC protection. Make sure
11756 current buffer is always restored.
11757
c3c963a0
YM
117582009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11759
11760 * atimer.c (init_atimer): Also clear stopped_atimers.
11761
11762 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
11763
7e3386cb
YM
11764 * process.c (create_process): Clean up merger residues of
11765 2008-07-17 change.
11766
91f68422
CY
117672009-04-29 Ulrich Mueller <ulm@gentoo.org>
11768
11769 * lread.c (Vread_circle): New variable.
11770 (read1): Disable recursive read if Vread_circle is nil.
11771
24b34550
KH
117722009-04-29 Kenichi Handa <handa@m17n.org>
11773
11774 * fontset.h (set_default_ascii_font): Delete extern.
11775
11776 * fontset.c (set_default_ascii_font): Delete this unused function.
11777
11778 * frame.c (x_set_font): When ARG is a font-object, check if the
11779 font-object matches with the ASCII font-spec of the frame's
9c358bda 11780 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 11781
77bf07e1
AS
117822009-04-28 Andreas Schwab <schwab@linux-m68k.org>
11783
11784 * fns.c (Flocale_info): Protect vector from GC during decoding.
11785
11786 * process.c (Fstart_process): Protect argv strings from GC during
11787 encoding.
11788
2c55aacf
AS
117892009-04-27 Andreas Schwab <schwab@linux-m68k.org>
11790
11791 * sysdep.c: Include <ctype.h>.
11792
b892d3c9
DR
117932009-04-27 David Reitter <david.reitter@gmail.com>
11794
35f5b128 11795 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
11796 Remove commented-out code.
11797
9d0644c4
JB
117982009-04-26 Johan Bockgård <bojohan@gnu.org>
11799
11800 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
11801
b7053016
JR
118022009-04-25 Jason Rumney <jasonr@gnu.org>
11803
11804 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
11805
4e8231f3
YM
118062009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11807
11808 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
11809 Swap bytes in short integer if fringe bitmap width > 8.
11810
493dcf2c
KH
118112009-04-23 Kenichi Handa <handa@m17n.org>
11812
11813 * xfaces.c (Fx_list_fonts): If a font size is specified in
11814 PATTERN, set it in returned scalable fonts.
11815
401e9e57
CY
118162009-04-22 Chong Yidong <cyd@stupidchicken.com>
11817
708e05dc
CY
11818 * keyboard.c (Fset_input_meta_mode): Doc fix.
11819
11820 * dispnew.c (Fsend_string_to_terminal): Doc fix.
11821
1ac9108a 11822 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
11823
11824 * coding.c (Fterminal_coding_system): Doc fix.
11825
11826 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
11827 (Fx_display_pixel_height, Fx_display_planes)
11828 (Fx_display_color_cells, Fx_server_max_request_size)
11829 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
11830 (Fx_display_mm_height, Fx_display_mm_width)
11831 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
11832 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
11833 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
11834 (check_x_display_info): Handle terminal objects instead of
11835 terminal ids.
11836
401e9e57
CY
11837 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
11838 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
11839 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
11840 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 11841
df80c7f0
KH
118422009-04-21 Kenichi Handa <handa@m17n.org>
11843
5a8f12af 11844 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 11845 (font_score): Check AVGWIDTH too.
908567ef 11846
df80c7f0
KH
11847 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
11848 worst case.
1ac9108a
SM
11849 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
11850 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 11851
705af33f
JR
118522009-04-19 Jason Rumney <jasonr@gnu.org>
11853
11854 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 11855 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
11856
11857 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
11858 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
11859 get_phys_cursor_geometry.
11860
b71ac3dd 11861 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
11862 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
11863 using get_phys_cursor_geometry.
11864
11865 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
11866 correctly calculated.
11867
dc2933eb
JD
118682009-04-19 Jan Djärv <jan.h.d@swipnet.se>
11869
1ac9108a
SM
11870 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
11871 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
11872 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
11873 is deprecated.
11874
973e7849
AS
118752009-04-18 Andreas Schwab <schwab@linux-m68k.org>
11876
11877 * font.c (font_put_frame_data): Use xfree instead of free.
11878
314d66f4
JB
118792009-04-17 Juanma Barranquero <lekktu@gmail.com>
11880
11881 * w32font.c (Qja, Qko): Remove declarations.
11882 (syms_of_w32font): Don't DEFSYM them.
11883
cf702558
CY
118842009-04-17 Chong Yidong <cyd@stupidchicken.com>
11885
11886 * font.c (Qja, Qko): Move definitions here from ftfont.c.
11887
11888 * font.h (Qja, Qko): Extern them.
11889
11890 * ftfont.c (Qja, Qko): Remove declarations.
11891
11892 * xfont.c (Qja, Qko): Remove declarations.
11893
b50504f5
KH
118942009-04-17 Kenichi Handa <handa@m17n.org>
11895
bde25748
KH
11896 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
11897 string from a vector to handle Latin-1 characters correctly.
11898
b50504f5
KH
11899 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
11900 entity even if the cache hits.
11901
f4646fff
AS
119022009-04-16 Andreas Schwab <schwab@linux-m68k.org>
11903
11904 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 11905 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 11906
e7deaab0
AS
11907 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
11908 * lisp.h: Adjust prototypes.
11909
0a0e7d49
CY
119102009-04-16 Chong Yidong <cyd@stupidchicken.com>
11911
11912 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
11913 change (Bug#3003).
11914
3c908a57
KH
119152009-04-16 Kenichi Handa <handa@m17n.org>
11916
1ac9108a 11917 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
11918
11919 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
11920 adstyle.
11921
11922 * ftfont.c (Qja, Qko): Don't make them static.
11923 (enum ftfont_cache_for): New enum.
11924 (fc_charset_table): Undo the previous change.
11925 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
11926 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
11927 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
11928 non-scarable font, try to get AVERAGE_WIDTH.
11929 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
11930 Change ft_face_cache from a list of a hash-table. Don't check
11931 `ja' and `ko' adstyle here.
11932 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
11933 FTFONT_CACHE_FOR_CHARET.
11934 (ftfont_get_charset): Undo the previous change.
1ac9108a 11935 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
11936 (ftfont_close): Likewise.
11937 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
11938
11939 * font.c (font_sort_entites): Change the meaning of the arg
11940 BEST-ONLY. Don't optimize for VEC of lenght 1.
11941 (font_select_entity): Just return the value of font_sort_entites.
11942
11943 * xfaces.c (merge_face_vectors): Reflect font properties in
11944 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
11945 font_clear_prop if a face attribute doesn't change.
11946
3c908a57
KH
11947 * charset.h (charset_ksc5601): Extern it.
11948
11949 * charset.c (charset_ksc5601): New variable.
11950 (Fdefine_charset_internal): Set charset_ksc5601.
11951 (init_charset_once): Initialize charset_ksc5601 to -1.
11952
d65859c3
DN
119532009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
11954
11955 * fileio.c (history_delete_duplicates): Remove unused declaration.
11956
11957 * callint.c (history_delete_duplicates): New declaration.
11958 (Fcall_interactively): Remove command history duplicates when
11959 history_delete_duplicates is true.
11960
3ba010e5
EZ
119612009-04-14 Eli Zaretskii <eliz@gnu.org>
11962
11963 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
11964
06f19b91
KH
119652009-04-14 Kenichi Handa <handa@m17n.org>
11966
11967 * font.c (Ffont_info): Fix docstring. Fix the second element of
11968 the returned value (bug#2949).
11969
2cce8bfc
CY
119702009-04-14 Chong Yidong <cyd@stupidchicken.com>
11971
11972 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
11973
d156542d
KH
119742009-04-14 Kenichi Handa <handa@m17n.org>
11975
11976 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
11977 encoding charset is ascii_compatible.
11978
11979 * charset.c (Fdefine_charset_internal): Make charset
11980 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
11981 code_offset is 0, and covers all ASCII characters.
11982
86fa089e
SM
119832009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
11984
11985 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
11986 (ns_string_to_pasteboard_internal):
11987 * nsmenu.m (process_dialog):
11988 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
11989 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
11990 * lisp.h (Fx_load_color_file): Declare.
11991
a8a3728b
KH
119922009-04-13 Kenichi Handa <handa@m17n.org>
11993
1ac9108a 11994 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
11995 (font_select_entity): Suppress the code to optimize for the same
11996 kind of fonts.
11997 (font_load_for_lface): Get a font that supports at least ASCII
11998 characters.
11999
12000 * ftfont.c (Qja, Qko): New variables.
12001 (fc_charset_table): Delete uniquifier data for iso8859-1.
12002 (ftfont_get_latin1_charset): New function.
12003 (get_adstyle_property): New function.
12004 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
12005 bitmap fonts.
12006 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
12007 Delete iso-8859-1 range from the charset of fonts whose adstyle is
12008 `ko' or `ja'.
12009 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 12010 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
12011 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
12012 property.
12013 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
12014 (syms_of_ftfont): DEFSYM Qja and Qko.
12015
483670b5
KH
120162009-04-09 Kenichi Handa <handa@m17n.org>
12017
12b55765
KH
12018 * charset.c (map_charset_chars): For a charset of `superset'
12019 method, fix calculation of code range.
12020
483670b5
KH
12021 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
12022 from the list of extra properties.
12023 (font_clear_prop): Be sure to delete `:name' font property.
12024
57d3b93b
KH
120252009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12026
b4b2c2ca
YM
12027 * dispnew.c (redraw_overlapping_rows): Fix detection of
12028 overlapping for topmost and bottommost rows.
12029
1ac9108a 12030 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 12031
472c3609
JR
120322009-04-06 Jason Rumney <jasonr@gnu.org>
12033
12034 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
12035
ab193662
KH
120362009-04-06 Kenichi Handa <handa@m17n.org>
12037
12038 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
12039
12040 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
12041
0c26f026
KH
120422009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12043
12044 * ftfont.c (ftfont_open): Fix checking of the return value of
12045 FT_Load_Char. Fix setting font->underline_thickness.
12046
e173bbce
CY
120472009-04-04 Chong Yidong <cyd@stupidchicken.com>
12048
12049 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
12050 (Fterminal_parameters, Fterminal_parameter)
12051 (Fset_terminal_parameter): In doc string, refer to terminal
12052 objects rather than terminal ids.
12053
693a2698
EZ
120542009-04-04 Eli Zaretskii <eliz@gnu.org>
12055
12056 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
12057 ret_lim_data. (Bug#2867)
12058
d5221487
CY
120592009-04-03 Chong Yidong <cyd@stupidchicken.com>
12060
12061 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
12062 so they don't get wider than the window, matching 2006-01-23
12063 change to the partner function in xdisp.c (Bug#2800).
12064
223509a3
KH
120652009-04-03 Kenichi Handa <handa@m17n.org>
12066
12067 * print.c (print_object): Make each lowest sub_char_table start a
12068 new line (Bug#2866).
12069
74fcd0b1
KH
120702009-04-02 Kenichi Handa <handa@m17n.org>
12071
12072 * fontset.c (fontset_font): Record no-font when a fontset
12073 explicitly tells not to try another font-specs.
12074
c542407d
SM
120752009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
12076
12077 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
12078
e3869731
KH
120792009-03-30 Kenichi Handa <handa@m17n.org>
12080
d8d2f142
KH
12081 * fontset.c (fontset_from_font): Specify only registry in a
12082 font-spec for all characters supported by that registry.
12083
e3869731
KH
12084 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
12085 even if HAVE_M17N_FLT is not defined.
12086
5da5f805
CY
120872009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
12088
12089 * ftfont.c: Conditionalize prototyping and use of
12090 ftfont_variation_glyphs.
12091
ab226c50
SM
120922009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
12093
9628fed7
SM
12094 * frame.c (delete_frame): Work around compiler bug.
12095
12096 * editfns.c (general_insert_function): Adjust to insdel.c changes.
12097 * insdel.c (prepare_to_modify_buffer, signal_before_change):
12098 Some more EMACS_INT.
12099 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
12100
12101 * xdisp.c (dump_glyph): Fix typo.
12102
ae19ba7c
SM
12103 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
12104 (adjust_markers_gap_motion, adjust_markers_for_delete)
12105 (adjust_markers_for_insert, adjust_point)
12106 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
12107 (make_gap, copy_text, count_size_as_multibyte, insert)
12108 (insert_and_inherit, insert_before_markers)
12109 (insert_before_markers_and_inherit, insert_1)
12110 (count_combining_before, count_combining_after, insert_1_both)
12111 (insert_from_string, insert_from_string_before_markers)
12112 (insert_from_string_1, insert_from_gap, insert_from_buffer)
12113 (insert_from_buffer_1, adjust_after_replace)
12114 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
12115 (replace_range_2, del_range, del_range_1, del_range_byte)
12116 (del_range_both, del_range_2, modify_region)
12117 (prepare_to_modify_buffer, signal_before_change)
12118 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
12119 for buffer positions and sizes.
12120 * lisp.h: Adjust prototypes accordingly.
12121
12122 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
12123 (non_regular_inserted, non_regular_nbytes, read_non_regular)
12124 (Finsert_file_contents): Use EMACS_INT for buffer positions.
12125
ab226c50
SM
12126 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
12127
46dfb8fb
JD
121282009-03-27 Jan Djärv <jan.h.d@swipnet.se>
12129
12130 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
12131 lines and columns so we keep the same pixel height and width.
12132
12133 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
12134 the property _NET_WM_STATE has changed.
46dfb8fb
JD
12135 (x_handle_net_wm_state): New function to update frame parameter
12136 fullscreen.
12137 (x_term_init): Initialize atoms for _NET_WM_STATE.
12138
12139 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
12140
d347e494
SM
121412009-03-27 Kevin Ryde <user42@zip.com.au>
12142
12143 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
12144 Gpm_GetEvent as an error that justifies closing the filedescriptor.
12145 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
12146 (Fgpm_mouse_stop): Pass that new parameter.
12147 * termhooks.h (close_gpm): Adjust prototype.
12148
84db11d6
SM
121492009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
12150
c95a5008
SM
12151 * lisp.h (Fx_focus_frame): Declare.
12152
84db11d6
SM
12153 * callint.c (Fcall_interactively): For '^' just delegate the work to
12154 handle-shift-selection.
12155 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
12156
0a1958d6
CY
121572009-03-24 Chong Yidong <cyd@stupidchicken.com>
12158
0bfdff23
CY
12159 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
12160
0a1958d6
CY
12161 * data.c (Qinteractive_form): New variable.
12162 (Finteractive_form): Use it.
12163
12164 * eval.c (Fcommandp): Use Qinteractive_form.
12165
58aec0d6
JR
121662009-03-24 Jason Rumney <jasonr@gnu.org>
12167
12168 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
12169 Calculate total size precisely. Decode environment variables
12170 before substituting. (Bug#38)
12171
553dd618
KH
121722009-03-24 Kenichi Handa <handa@m17n.org>
12173
12174 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 12175 encoding (Bug#2722).
553dd618 12176
c39ea606
JD
121772009-03-23 Jan Djärv <jan.h.d@swipnet.se>
12178
12179 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
12180 that gdpy is set.
12181
bc9b2b5e
AM
121822009-03-22 Alan Mackenzie <acm@muc.de>
12183
12184 * callint.c (Finteractive): Clarify the doc string - even
12185 promptless elements need \n separators.
12186
9f995a76
JR
121872009-03-22 Jason Rumney <jasonr@gnu.org>
12188
12189 * w32term.c (syms_of_w32term): Doc fix for
12190 x-use-underline-position-properties.
12191
22749e9a
EZ
121922009-03-21 Eli Zaretskii <eliz@gnu.org>
12193
12194 * w32.c (getpwuid): Change argument type to unsigned.
12195 (struct w32_id): Change type of `rid' member to unsigned.
12196 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
12197 argument ID to unsigned. All callers changed.
12198 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
12199
e00553bf
EZ
122002009-03-20 Eli Zaretskii <eliz@gnu.org>
12201
12202 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
12203 negative, produce a float value.
12204
12205 * dired.c (make_uid, make_gid): New functions.
12206 (Ffile_attributes): Use them to avoid negative UID and GID.
12207
f761d6b6
JB
122082009-03-20 Juanma Barranquero <lekktu@gmail.com>
12209
12210 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
12211 (syms_of_keyboard) <command-hook-internal, input-method-function>:
12212 Fix typos in docstrings.
12213
d507f8d7
KH
122142009-03-19 Kenichi Handa <handa@m17n.org>
12215
12216 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
12217 changed, use font_load_for_lface to get a new font object.
12218 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
12219
12220 * frame.c (x_set_font): Handle the case that ARG is a cons.
12221
c68845e0
GM
122222009-03-19 Glenn Morris <rgm@gnu.org>
12223
12224 * fileio.c (Fsubstitute_in_file_name): Doc fix.
12225
bfa49dd1
CY
122262009-03-19 Chong Yidong <cyd@stupidchicken.com>
12227
12228 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
12229
8458d4c1
KH
122302009-03-19 Kenichi Handa <handa@m17n.org>
12231
12232 * charset.c (load_charset_map_from_file): When a mapfile can't be
12233 loaded, signal an error.
12234
78e7d1fe
EZ
122352009-03-18 Eli Zaretskii <eliz@gnu.org>
12236
12237 * dired.c (Ffile_attributes): Make sure UID and GID are always
12238 positive, even if the value is too large for a positive EMACS_INT.
12239 Doc fix.
12240
12241 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
12242
5da9fdfa
YM
122432009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12244
12245 * xmenu.c (xdialog_show): Move Fredisplay call ...
12246 (Fx_popup_dialog): ... here.
12247
7519c40d
SM
122482009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
12249
12250 * dired.c (file_name_completion): Disable the first optimization just
12251 installed, since it is not implemented correctly.
12252
2cd298e2
SM
122532009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
12254
12255 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 12256 only if the entry can affect bestmatch.
2cd298e2
SM
12257 Stop the search early, as Ftry_completion already does.
12258
48d37adf
CY
122592009-03-17 Chong Yidong <cyd@stupidchicken.com>
12260
e10c9c93 12261 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 12262
9286b16a
CY
122632009-03-15 Chong Yidong <cyd@stupidchicken.com>
12264
12265 * keyboard.c (parse_menu_item): Don't display remappings as menu
12266 equivalent bindings (Bug#788).
12267
f7b146dc
JR
122682009-03-15 Jason Rumney <jasonr@gnu.org>
12269
12270 * w32term.h (WM_EMACS_PAINT): New message.
12271 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
12272 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
12273 before passing to lisp thread. (Bug#950)
12274
f761d6b6 122752009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 12276
d93f9575
CY
12277 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
12278 variable as it was never reset.
12279 (ns_term_init): Remove initialization of Lisp-settable defaults
12280 and ns_expand_space.
12281 (-setPanelFromDefaultValues): Remove ns_expand_space.
12282 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
12283 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
12284 i.e. no additional spacing, similar to Carbon port.
12285
d93f9575
CY
12286 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
12287 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 12288
305018ec
JD
122892009-03-14 Jan Djärv <jan.h.d@swipnet.se>
12290
12291 * sound.c (alsa_configure): Remove call to deprecated
12292 snd_pcm_sw_params_set_xfer_align.
12293
f761d6b6 122942009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
12295
12296 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
12297 after clicking in a detached tool bar.
12298 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
12299
46e722a9
SM
123002009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
12301
348db3dd
SM
12302 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
12303 int/Lisp_Object mixup).
46e722a9 12304
a3d16f39
KH
123052009-03-13 Kenichi Handa <handa@m17n.org>
12306
12307 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 12308 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
12309 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
12310 (set_fontset_font): Change ARG to a vector. Handle range_list in
12311 ARG correctly.
12312 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 12313 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
12314 the above change.
12315 (fontset_from_font): Fix previous change.
fe24f56a 12316 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
12317 entry. If FONTSET is the default fontset, don't set the extra
12318 slot of the returning char-table.
12319
b066e6b6
JB
123202009-03-12 Juanma Barranquero <lekktu@gmail.com>
12321
12322 * nsfns.m (Fx_close_connection): Doc fix.
12323 (Fns_do_applescript): Reflow docstring.
12324 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
12325 (Fx_display_pixel_width, Fx_display_pixel_height)
12326 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
12327 Fix typos in docstrings.
12328 (Fns_set_alpha): Fix typos in error messages.
12329
d472514e 123302009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 12331
d472514e 12332 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
12333 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
12334 were used for such events.
12335
d472514e
JB
12336 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
12337 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 12338
d472514e 12339 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
12340 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
12341
fb930676
KH
123422009-03-11 Kenichi Handa <handa@m17n.org>
12343
ff85581a
KH
12344 * font.h (font_open_by_spec): Extern it.
12345
c50b7e98
KH
12346 * font.c (font_open_by_spec): New function.
12347 (font_open_by_name): Use font_open_by_spec.
12348
fb930676
KH
12349 * frame.c (x_set_font): When ARG is a font-object, don't alter the
12350 fontset of the frame.
12351
12352 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
12353 modify the default font of frames that use this fontset.
12354 (num_auto_fontsets): New variable.
12355 (fontset_from_font): Use num_auto_fontsets to decide a fontset
12356 name. Be sure to set FONTSET_ASCII to the correct font name.
12357 (update_auto_fontset_alist): New function.
12358
df4e8455
JB
123592009-03-11 Juanma Barranquero <lekktu@gmail.com>
12360
12361 * makefile.w32-in: Update dependencies.
12362
0a375797
AR
123632009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12364
12365 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
12366
61313fa3
SM
123672009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
12368
12369 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
12370
b55103fb
CY
123712009-03-10 Chong Yidong <cyd@stupidchicken.com>
12372
12373 * lread.c (Feval_buffer): Doc fix.
12374
dde2559c
KH
123752009-03-09 Kenichi Handa <handa@m17n.org>
12376
12377 * charset.c (Qfile_name_handler_alist): Extern it.
12378 (load_charset_map_from_file): Temporarily bind
12379 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
12380
df4e8455 123812009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 12382
47f588bb
GM
12383 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
12384 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 12385
4ddf94bd
AR
123862009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12387
4c9bdfc2
AR
12388 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
12389 (x_set_window_size): Change back to calculated method of setting
12390 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
12391 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
12392 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
12393
fe41ae9e
AR
12394 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
12395
4c9bdfc2
AR
12396 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
12397 accelerator in parens under GNUstep.
12398
825d0875
KH
123992009-03-06 Kenichi Handa <handa@m17n.org>
12400
12401 These changes are to detect incorrect composition sequence without
f3b3be74 12402 looking ahead the source. (Bug#2370)
825d0875
KH
12403
12404 * coding.h: Include "composite.h".
12405 (enum compisition_state): New enum.
12406 (struct compisition_status): New struct.
12407 (struct iso_2022_spec): New member cmp_status.
12408 (struct emacs_mule_spec): New struct.
12409 (struct coding_system): New members ctext_extended_segment_len and
12410 embedded_utf_8. Change the union member
12411 spec.emacs_mule_full_support to spec.emacs_mule.
12412
12413 * coding.c (CODING_ISO_CMP_STATUS): New macro.
12414 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 12415 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
12416 (ADD_COMPOSITION_DATA): New arg nbytes.
12417 (emacs_mule_char): New arg cmp_status.
12418 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
12419 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
12420 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
12421 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
12422 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
12423 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
12424 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
12425 (EMACS_MULE_COMPOSITION_END): New macro.
12426 (emacs_mule_finish_composition): New function.
12427 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
12428 (decode_coding_emacs_mule): Avoid long looking ahead while
12429 handling composition.
12430 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
12431 (ENCODE_COMPOSITION_RULE): New macro.
12432 (finish_composition): New function.
12433 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
12434 (DECODE_COMPOSITION_START): New implementation.
12435 (DECODE_COMPOSITION_END): Likewise.
12436 (STORE_COMPOSITION_RULE): New macro.
12437 (decode_coding_iso_2022): Avoid long looking ahead while handling
12438 composition, CTEXT extended segment, and embedded UTF-8.
12439 (setup_coding_system): For a coding of type iso-2022, reset
12440 CODING_ISO_EXTSEGMENT_LEN (coding) and
12441 CODING_ISO_EMBEDDED_UTF_8 (coding).
12442 (get_translation): Delete arguments last_block, from_nchars,
12443 to_nchars. Callers changed.
12444 (produce_chars): Don't modify charbuf. Adjusted for the change of
12445 get_translation.
98a326f7 12446 (produce_composition): Adjust for the new annotation sequence.
825d0875 12447 (handle_composition_annotation): Likewise.
98a326f7 12448 (consume_chars): Adjust for the change of get_translation.
825d0875 12449
ccbc4452
AR
124502009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
12451
4ddf94bd 12452 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 12453
988a7ddb
KH
124542009-03-05 Kenichi Handa <handa@m17n.org>
12455
12456 * font.c (font_select_entity): New function.
12457 (font_find_for_lface): Use font_select_entity to select a font.
12458
12459 * fontset.c (fontset_find_font): If a font found without
a8a3728b 12460 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
12461 font with C restriction.
12462
98a326f7 124632009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 12464
be1bce46 12465 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 12466
10ea2b82
JR
124672009-03-04 Jason Rumney <jasonr@gnu.org>
12468
2c93b248 12469 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 12470 characters that have already been read. (Bug#2569)
2c93b248 12471
10ea2b82
JR
12472 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
12473 Log an error message if check_image_size failed.
12474 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 12475 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 12476
71a0c011
EZ
124772009-03-02 Eli Zaretskii <eliz@gnu.org>
12478
12479 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
12480 when decoding process output.
12481
2f63bba8
RS
124822009-03-01 Richard M Stallman <rms@gnu.org>
12483
12484 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
12485
12486 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
12487
0a9564cb
EZ
124882009-02-28 Eli Zaretskii <eliz@gnu.org>
12489
12490 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
12491 (decode_coding_emacs_mule, decode_coding_iso_2022)
12492 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
12493 (decode_coding_raw_text, decode_coding_charset)
12494 (setup_coding_system, decode_eol, decode_coding, consume_chars):
12495 Honor inhibit-eol-conversion. (Bug #2186)
12496
449148b3
JR
124972009-02-28 Jason Rumney <jasonr@gnu.org>
12498
12499 * coding.c (detect_coding_charset): If not checking latin extra,
12500 fail on characters between 0x80 and 0xA0. (Bug#2354)
12501
a4aee864
EZ
125022009-02-28 Eli Zaretskii <eliz@gnu.org>
12503
12504 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 12505 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 12506
d88bee5a
GM
125072009-02-27 Glenn Morris <rgm@gnu.org>
12508
12509 * callint.c (Finteractive): Doc fix.
12510
a808f22d
KH
125112009-02-27 Kenichi Handa <handa@m17n.org>
12512
12513 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
12514
caf8d60c
CY
125152009-02-27 Chong Yidong <cyd@stupidchicken.com>
12516
12517 * font.c (font_style_to_value): Set value for unknown symbols to
12518 100 instead of 255.
b61137ea
CY
12519 (weight_table, slant_table, width_table): Treat "unspecified" as
12520 the default value.
caf8d60c 12521
1a0de25c
JB
125222009-02-26 Juanma Barranquero <lekktu@gmail.com>
12523
12524 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
12525
8fc45744
JB
125262009-02-25 Juanma Barranquero <lekktu@gmail.com>
12527
107bd7d1
JB
12528 * lread.c (Fload): Stop checking Vloads_in_progress and signal
12529 error as soon as a recursive load is detected.
8fc45744 12530
f097e223
AR
125312009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
12532
12533 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
12534 before caching.
12535
8810a12f
KH
125362009-02-24 Kenichi Handa <handa@m17n.org>
12537
12538 * fontset.c (fontset_find_font): Fix the condition for checking
12539 unavailable font.
12540
2c7d1565
GM
125412009-02-24 Glenn Morris <rgm@gnu.org>
12542
12543 * xfaces.c (Finternal_set_font_selection_order): Remove leading
12544 whitespace that confuses documentation.
12545
a20878b6
MB
125462009-02-23 Miles Bader <miles@gnu.org>
12547
12548 * process.c (Flist_system_processes, Fprocess_attributes)
12549 (syms_of_process): Rename `system-process-attributes' to
12550 `process-attributes'.
12551
b3b58c01
AS
125522009-02-22 Andreas Schwab <schwab@linux-m68k.org>
12553
1b3b981b
AS
12554 * coding.h (struct coding_system): Make safe_charsets a pointer to
12555 unsigned char.
12556 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
12557 being 255.
12558 (SAFE_CHARSET_P): Likewise.
12559 (setup_iso_safe_charsets): Properly setup safe_charsets.
12560 (Fdefine_coding_system_internal): Likewise.
12561 (setup_coding_system): Likewise. Remove unneeded casts.
12562 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
bba3e508
SM
12563 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS.
12564 Remove unneeded casts.
1b3b981b 12565
b3b58c01
AS
12566 * insdel.c (del_range_2): Don't modify gap contents when called
12567 from decode_coding_object. (Bug#1809)
12568
0b6f228c
CY
125692009-02-21 Chong Yidong <cyd@stupidchicken.com>
12570
12571 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
12572 Qfont_object.
12573 (Ftype_of): Recognize font objects.
12574
12575 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
12576
bba3e508
SM
12577 * font.c (Qfont_spec, Qfont_entity, Qfont_object):
12578 Definitions moved to data.c.
0b6f228c 12579
52f8870b
AR
125802009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12581
12582 * nsterm.m (x_make_frame_invisible): Unset async_visible,
12583 async_iconified. Based on a patch by Christian Lynbech
12584 <christian.lynbech@tieto.com>.
12585 (EmacsView-windowDidMiniaturize:): Unset async_visible.
12586
7087d5e9
GM
125872009-02-20 Glenn Morris <rgm@gnu.org>
12588
12589 * syntax.c (Fskip_chars_forward): Fix doc typo.
12590
41d2ceef
CY
125912009-02-20 Chong Yidong <cyd@stupidchicken.com>
12592
12593 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
12594
1a3b7ca6
CY
125952009-02-19 Chong Yidong <cyd@stupidchicken.com>
12596
12597 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
12598
73cce38d
KH
125992009-02-19 Kenichi Handa <handa@m17n.org>
12600
12601 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 12602 Don't overflow coding->carryover. (Bug#2370)
73cce38d 12603
a51092ee
DN
126042009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
12605
12606 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
12607
c423ecca
KH
126082009-02-18 Kenichi Handa <handa@m17n.org>
12609
12610 * font.c (font_check_otf_features): Fix handling of `nil' element.
12611 (Ffont_spec): Describe :lang and :otf in the docstring.
12612
4c1958f4
AS
126132009-02-16 Andreas Schwab <schwab@suse.de>
12614
12615 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
12616 string.
12617
5704f39a
KH
126182009-02-16 Kenichi Handa <handa@m17n.org>
12619
12620 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 12621 (Bug#1723)
5704f39a 12622
8f0085aa
CY
126232009-02-14 Chong Yidong <cyd@stupidchicken.com>
12624
a057d86a 12625 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
12626
12627 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
12628 (handle_line_prefix): Suppress wrapping of wrap prefixes.
12629
aff01dd9
EZ
126302009-02-14 Eli Zaretskii <eliz@gnu.org>
12631
12632 * msdos.c (MAX_SCREEN_BUF): New macro.
12633 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
12634 Encode the entire run of glyphs sharing the same face, instead of
12635 doing that one glyph at a time (fixes a bug with displaying
12636 double-size characters).
12637
ba301db3
AR
126382009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
12639
12640 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
12641
12642 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
12643 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 12644 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
12645
12646 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 12647 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 12648
51d861de
SM
126492009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
12650
ac146f82 12651 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
12652 invisible areas.
12653
7fed8996
JR
126542009-02-12 Jason Rumney <jasonr@gnu.org>
12655
631ea4fb
JR
12656 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
12657 (add_font_entity_to_list): Call check_face_name even when family
12658 is unspecified.
12659
cb4a3e42
JR
12660 * w32term.c (x_display_pixel_height, x_display_pixel_width):
12661 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 12662 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 12663
7fed8996 12664 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 12665 raster fonts. (Bug#2219)
7fed8996 12666
895416e3
KH
126672009-02-12 Kenichi Handa <handa@m17n.org>
12668
12669 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
12670 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
12671 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 12672 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
12673 (find_automatic_composition): While looking forward and backward,
12674 check static composition. Fix where to stop looking forward.
12675 (composition_adjust_point): Fix checking of static composition.
12676 (Fcomposition_get_gstring): Pay attention to
1dacf998 12677 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
12678
12679 * lisp.h (fast_looking_at): Extern it.
12680
12681 * search.c (fast_looking_at): New function.
12682
51d861de 12683 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
12684 <struct glyph>.u.cmp.to.
12685 (append_composite_glyph): Likewise.
12686
51d861de 12687 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
12688 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
12689 composition.
51d861de 12690 (append_composite_glyph): Adjust for the change of
895416e3
KH
12691 <strcut glyph>.u.cmp.to.
12692
8510724d
JB
126932009-02-11 Juanma Barranquero <lekktu@gmail.com>
12694
12695 * casetab.c (init_casetab_once):
12696 * coding.c (ALLOC_CONVERSION_WORK_AREA):
12697 * font.c (font_update_lface):
12698 * fontset.c (Fnew_fontset):
12699 * ftfont.c (ftfont_drive_otf):
12700 * xfont.c (xfont_open):
12701 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
12702
294fa707
SM
127032009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
12704
12705 * fileio.c (Fwrite_region): !NILP -> CONSP.
12706
b5bfebec
AS
127072009-02-10 Andreas Schwab <schwab@suse.de>
12708
12709 * process.c (send_process): Properly relocate pointer into data
adab88bd 12710 when using encoded data. (Bug#2272)
b5bfebec 12711
cb84a2be
KH
127122009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
12713
12714 * coding.c (detect_coding_charset): Fix previous change.
12715
89e09428
JR
127162009-02-08 Jason Rumney <jasonr@gnu.org>
12717
12718 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 12719 disappeared while hourglass was displayed. (Bug #2193)
89e09428 12720
4470a277
AS
127212009-02-07 Andreas Schwab <schwab@suse.de>
12722
12723 * unexelf.c (unexec): Fix error message.
12724
3175b12a
AR
127252009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
12726
12727 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 12728 when modal window is active. (Bug #2152)
3175b12a
AR
12729 (applicationShouldTerminate:): Remove now-unneeded while loop
12730 around NSRunAlertPanel.
12731
12732 * nsmenu.m (popupSession): New file-global variable.
12733 (pop_down_menu): End the popupSession before closing dialog.
12734 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
12735 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
12736 don't query NSApp for events (just sleep instead).
12737
8434d0b8
EZ
127382009-02-07 Eli Zaretskii <eliz@gnu.org>
12739
51d861de
SM
12740 * coding.c (syms_of_coding) <translation-table-for-input>:
12741 Modify doc string to discourage use for character code unification.
8434d0b8 12742
aa82edfd
CY
127432009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12744
12745 * atimer.c (run_timers): Update pending_atimers.
12746
2d283c7c
CY
127472009-02-06 Chong Yidong <cyd@stupidchicken.com>
12748
eb306cab
CY
12749 * image.c (svg_load_image): Fix last change.
12750
2d283c7c
CY
12751 * xfns.c (Fx_create_frame): Signal an error if no font is
12752 found (Bug#2147).
12753
4d8e170e
JB
127542009-02-05 Juanma Barranquero <lekktu@gmail.com>
12755
12756 * character.c (syms_of_character) <script-representative-chars>:
12757 Fix typo in docstring.
12758
c96169a0
AR
127592009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
12760
12761 * nsmenu.m (pop_down_menu): New function.
12762 (ns_popup_dialog): Call it on unwind.
12763 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
12764 call timer_check() (Bug#2154).
12765 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
12766 handling_signal is set.
12767 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
12768
31fd7c5c 12769 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
12770
12771 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
12772
12773 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
12774
51d861de
SM
12775 * keyboard.c (poll_for_input_1, handle_async_input):
12776 Set handling_signal under HAVE_NS.
c96169a0 12777
aacd8ba1
GM
127782009-02-04 Glenn Morris <rgm@gnu.org>
12779
12780 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
12781
4cb75c4b
KH
127822009-02-04 Kenichi Handa <handa@m17n.org>
12783
12784 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
12785
12786 * charset.c (Fchar_charset): New optional arg restriction.
12787
12788 * coding.h (coding_system_charset_list): Extern it.
12789
12790 * coding.c (coding_system_charset_list): New function.
12791
12792 * composite.c: Include coding.h and termhooks.h.
12793 (composition_gstring_p): Fix for the terminal case.
12794 (composition_gstring_width): Likewise.
12795 (fill_gstring_body): Likewise.
12796 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
12797 the frame.
12798 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
12799 is within a composition.
867d4bb3 12800 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
12801
12802 * term.c (encode_terminal_code): Fix handling of composition.
12803 (produce_composite_glyph): For static composition, get pixel_width
12804 from struct composition.
12805
826ba17e
AS
128062009-02-02 Andreas Schwab <schwab@suse.de>
12807
12808 * unexelf.c (unexec): Handle unaligned bss offset.
12809
8ad093db
AR
128102009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12811
12812 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
12813 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 12814
8ad093db
AR
12815 * keyboard.c (handle_interrupt): Don't call
12816 quit_throw_to_read_char() under NS.
d0a76a6e 12817
8ad093db
AR
12818 * blockinput.h: Remove NS-specific code.
12819
4d18a7a2
DN
128202009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
12821
db878925
DN
12822 * dispnew.c (window_change_signal): Don't try to get the size of a
12823 suspended tty frame.
12824 * term.c (Fresume_tty): Resize if the size has changed while the
12825 tty was suspended.
12826
4d18a7a2
DN
12827 * alloc.c (mark_stack): Properly conditionalize previous change.
12828
8984df7c
JB
128292009-01-30 Juanma Barranquero <lekktu@gmail.com>
12830
12831 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
12832 * w32term.c (w32_read_socket) [SYNC_INPUT]:
12833 Remove; this code is not used on Windows.
12834
75f4f1ac
EZ
128352009-01-30 Eli Zaretskii <eliz@gnu.org>
12836
12837 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
12838 EOLs that also has stray ^M characters.
12839
07a1e794
JB
128402009-01-30 Juanma Barranquero <lekktu@gmail.com>
12841
12842 * atimer.c (run_timers, alarm_signal_handler):
12843 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
12844 * w32inevt.c (w32_console_read_socket):
12845 * w32term.c (w32_read_socket):
12846 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
12847
a8b11cc9
CY
128482009-01-30 Chong Yidong <cyd@stupidchicken.com>
12849
12850 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
12851 Initialize it as a relative filename pattern.
12852 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
12853 (Fcall_process_region): Simplify temp file creation using
12854 temporary-file-directory.
12855
c279587b
EZ
128562009-01-29 Eli Zaretskii <eliz@gnu.org>
12857
12858 * msdos.c: Rename pending_signals to msdos_pending_signals.
12859 (sig_suspender, sigprocmask): Adjust.
12860
a8fe3242
CY
128612009-01-29 Chong Yidong <cyd@stupidchicken.com>
12862
12863 * keyboard.c (pending_signals): New var.
12864 (poll_for_input, input_available_signal, init_keyboard): Set it.
12865 (process_pending_signals): New function.
12866
12867 * lisp.h (QUIT): Check pending_signals instead of
12868 interrupt_input_pending. Use process_pending_signals.
12869
51d861de 12870 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 12871
51d861de 12872 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
12873
12874 * sysdep.c (emacs_write): Use process_pending_signals.
12875
12876 * xterm.c (XTread_socket): Update pending_signals.
12877
12878 * w32term.c (w32_read_socket): Update pending_signals.
12879
12880 * w32inevt.c (w32_console_read_socket): Update pending_signals.
12881
6570a1c4
KH
128822009-01-29 Kenichi Handa <handa@m17n.org>
12883
12884 * xftfont.c (xftfont_has_char): New function.
12885 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
12886
d72a4afa
AR
128872009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
12888
12889 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
12890 under GNUstep.
12891 (ns_query_color): New declaration.
12892
12893 * nsterm.m (ns_confirm_quit): New variable.
12894 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
12895 (EmacsApp-applicationShouldTerminate:): Use it.
12896 (EmacsPrefsController): Let user set it.
12897 (ns_query_color): New function.
12898 (ns_defined_color): Use it.
12899 (ns_initialize): Drop.
12900 (ns_term_init): Add two lines from ns_initialize(), and set
12901 input_interrupt_mode to nil.
12902
12903 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 12904 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 12905
9fe78804
KH
129062009-01-28 Kenichi Handa <handa@m17n.org>
12907
12908 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
12909 (fontset_get_font_group): Remember that no font-group is specified
12910 for C.
9fe78804 12911
fa57de36
CY
129122009-01-27 Chong Yidong <cyd@stupidchicken.com>
12913
930600e9
CY
12914 * fns.c (concat): Check for string overflow (bug#1787).
12915
fa57de36
CY
12916 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
12917 Quadruple undo limits (bug#1501).
12918
7179ce7b
KH
129192009-01-27 Kenichi Handa <handa@m17n.org>
12920
12921 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
12922 directly use GT_Get_Char_index.
12923
12924 * xftfont.c (struct xftfont_info): New member `index'.
12925
12926 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 12927 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 12928
5be8fcc0
CY
129292009-01-26 Kenichi Handa <handa@m17n.org>
12930
12931 * fontset.c (fontset_find_font): Fix handling of non-cons return
12932 value of fontset_get_font_group.
12933 (fontset_font): Revert last change.
12934
19ae3e61
JR
129352009-01-26 Jason Rumney <jasonr@gnu.org>
12936
12937 * w32font.c (w32font_list_internal): Return quickly if registry is
12938 unknown. Simplify final return.
12939 (add_font_entity_to_list): Break complex logic down into more
12940 manageable chunks. Move unknown registry check to
12941 w32font_list_internal.
12942
8612b71a
AR
129432009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
12944
12945 Changes to remove Feval calls from GUI under NS.
12946
d8038940
JB
12947 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
12948 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
12949 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
12950
12951 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
12952 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
12953 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
12954 instead of NON_ASCII_KEYSTROKE_EVENT.
12955 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
12956 (EmacsApp-applicationShouldTerminate:): Query user.
12957 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
12958 instead of Feval.
12959
12960 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
12961
12962 * keyboard.c (kbd_buffer_get_event): Check for it.
12963 (keys_of_keyboard): Define lispy keys for
12964 ns-put/unput-working-text.
12965
12966 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
12967 versions.
12968 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
12969
6288ae55
CY
129702009-01-25 Chong Yidong <cyd@stupidchicken.com>
12971
12972 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 12973 setting current_buffer directly. (Bug#2044)
6288ae55 12974
289e7f8f
CY
129752009-01-24 Chong Yidong <cyd@stupidchicken.com>
12976
5ce87308 12977 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 12978 any work. (Bug#1952, bug#1990).
5ce87308 12979
64cc3cf6 12980 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 12981
b3243e6f
AR
129822009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
12983
12984 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
12985 (ns_no_defaults): New declaration.
12986 (main): Use it.
e0d2e69a 12987
d900b2af 12988 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 12989
d900b2af 12990 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 12991
d900b2af
AR
12992 * nsterm.m (ns_no_defaults): New variable.
12993 (ns_initialize): Don't read defaults when ns_no_defaults.
12994 (EmacsView-readSelectionFromPasteboard:)
12995 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 12996 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
12997 (ns_dumpglyphs_stretch): New function.
12998 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 12999 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 13000
e0d2e69a
AR
13001 * nsimage.m (setPixmapData:): Set to ignore image DPI.
13002
3ac71f5d
CY
130032009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
13004
13005 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
13006 call for Sparc64.
13007
3fe53a83
AR
130082009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
13009
13010 * nsfns.m:
13011 * nsgui.h:
13012 * nsmenu.m:
13013 * nsselect.m:
13014 * nsterm.h:
13015 * nsterm.m: Remove '23' comments that indicated code added during
13016 update from emacs-20 -> emacs-23.
13017
10f87c6f 130182009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
13019
13020 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 13021 ns_alternate_modifier. (Bug#1217)
a3b53a85 13022
c7cef62d
AR
13023 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
13024 Display all shortcuts, including those w/o super modifier.
13025
575fb8bd
AR
13026 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
13027
918b848b
CY
130282009-01-22 Chong Yidong <cyd@stupidchicken.com>
13029
13030 * fileio.c (Vwrite_region_post_annotation_function)
13031 (Vwrite_region_annotation_buffers): New vars.
13032 (build_annotations_unwind): Just reset
13033 Vwrite_region_annotation_buffers.
13034 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
13035 Call write-region-post-annotation-function.
13036 (build_annotations): Add to Vwrite_region_annotation_buffers if
13037 buffer changes.
13038
a39e2539
AR
130392009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
13040
13041 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
13042 Tiger.
51d861de
SM
13043 * nsfns.m (ns_do_applescript):
13044 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 13045
35ed44db
AR
130462009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
13047
13048 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
13049
cbe0b5bf
AR
130502009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
13051
13052 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 13053
6049d3a0
AR
13054 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
13055
13056 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
13057 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
13058 handle Ctrl-tab. (Bug#1841)
13059 (ns_get_color): Use unsigned long long for scanned hex string value.
13060 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 13061 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 13062 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 13063 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 13064 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 13065 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 13066 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 13067
d3810c21 13068 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 13069 DPI. (Bug#1316)
d3810c21
AR
13070 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
13071 values in onTiger section.
4c7077c3 13072
e301e634
CY
130732009-01-19 Chong Yidong <cyd@stupidchicken.com>
13074
7f82490b
CY
13075 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
13076 Check return value of font_spec_from_name.
64cc3cf6 13077 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
13078
13079 * font.c (font_spec_from_name): Return Qnil if font name could not
13080 be parsed.
13081 (font_parse_name): Treat a `?' character as part of an XLFD.
13082
e301e634
CY
13083 * fns.c (Fsubstring): Doc fix.
13084
1c0db158
KH
130852009-01-19 Kenichi Handa <handa@m17n.org>
13086
51d861de 13087 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
13088 (ftfont_list): Likewise.
13089
acf20901
JB
130902009-01-18 Juanma Barranquero <lekktu@gmail.com>
13091
fff4e459
JB
13092 * dbusbind.c (Fdbus_register_signal):
13093 * process.c (conv_sockaddr_to_lisp):
13094 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
13095
acf20901
JB
13096 * callproc.c (Fgetenv_internal): Doc fix.
13097
e7abcdfb
CY
130982009-01-16 Chong Yidong <cyd@stupidchicken.com>
13099
13100 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
13101 it is not even used.
13102
b60861e6
GM
131032009-01-16 Glenn Morris <rgm@gnu.org>
13104
13105 * font.c (Ffont_variation_glyphs): Silence compiler.
13106
8db52afe
JB
131072009-01-15 Juanma Barranquero <lekktu@gmail.com>
13108
13109 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
13110 Reported by David Robinow <drobinow@gmail.com>.
13111
4cddb209
KH
131122009-01-15 Kenichi Handa <handa@m17n.org>
13113
51d861de 13114 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 13115
f247f67b
JR
131162009-01-14 Jason Rumney <jasonr@gnu.org>
13117
13118 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 13119 never a fontset. (Bug#1562)
f247f67b 13120
f56a4450
KH
131212009-01-14 Kenichi Handa <handa@m17n.org>
13122
13123 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 13124 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 13125
4e99855e
CY
131262009-01-13 Chong Yidong <cyd@stupidchicken.com>
13127
13128 * font.c (font_clear_prop): If clearing the family, clear the font
13129 width index too.
13130
fff4e459 13131 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 13132
24f01470
JB
131332009-01-12 Juanma Barranquero <lekktu@gmail.com>
13134
13135 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
13136 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
13137 functions, use sizeof.
13138
a41240a3
MR
131392009-01-12 Martin Rudalics <rudalics@gmx.at>
13140
13141 * keyboard.c (read_char): Fix case where last_nonmenu_event
13142 returned a bad value with submenus. (Bug#447)
13143
944636b8
CY
131442009-01-12 Chong Yidong <cyd@stupidchicken.com>
13145
13146 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
13147 family, clear the font width index too.
13148
0dad7c6f
JR
131492009-01-11 Jason Rumney <jasonr@gnu.org>
13150
13151 * keyboard.c (cmd_error_internal): Exit when errors occur before
13152 frame creation and not in daemon mode. (Bug#1836)
13153
7c2363af
CY
131542009-01-10 Chong Yidong <cyd@stupidchicken.com>
13155
13156 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
13157 of a display vector, backtrack.
13158 (try_window_reusing_current_matrix): Check glyph type before
13159 referencing charpos member.
13160
97b1b294
EZ
131612009-01-10 Eli Zaretskii <eliz@gnu.org>
13162
13163 Fix Bug #876:
13164
13165 * coding.c (inhibit_null_byte_detection): New variable.
13166 (detect_coding, detect_coding_system): Don't pay attention to null
13167 bytes if inhibit_null_byte_detection is non-zero.
51d861de 13168 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
13169 <inhibit-iso-escape-detection>: Doc fix.
13170
4624b6e3
JR
131712009-01-09 Jason Rumney <jasonr@gnu.org>
13172
13173 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 13174 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
13175 Only report Unicode Plane 2 fonts as unicode-sip.
13176
323b840c
CY
131772009-01-09 Chong Yidong <cyd@stupidchicken.com>
13178
51d861de
SM
13179 * xfaces.c (Fx_font_family_list): Delete function.
13180 Move compatibility version to faces.el.
323b840c 13181
51d861de 13182 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 13183
eba7400d
MR
131842009-01-09 Martin Rudalics <rudalics@gmx.at>
13185
13186 * frame.c (x_set_frame_parameters): Remember requested value for
13187 fullscreen before it's reset by the parameter handler.
13188
4b09796d
GM
131892009-01-09 Glenn Morris <rgm@gnu.org>
13190
13191 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 13192 (last_command_event): ... and update all users.
4b09796d
GM
13193 (last_input_char): For clarity, rename to...
13194 (last_input_event): ... and update all users.
13195 (last-command-char, last-input-char): Move to subr.el as aliases.
13196 * cmds.c, commands.h: Update for last_command_char rename.
13197
14ccea62
CY
131982009-01-08 Chong Yidong <cyd@stupidchicken.com>
13199
51d861de 13200 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 13201
5f004711
JR
132022009-01-08 Jason Rumney <jasonr@gnu.org>
13203
13204 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
13205 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
13206 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
13207 Don't declare.
fff4e459 13208 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
13209 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
13210
b71f6f73
KH
132112009-01-07 Kenichi Handa <handa@m17n.org>
13212
50b06221 13213 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 13214 remember the coding system used for decoding in
50b06221
KH
13215 coding_system (Bug#1039).
13216
b71f6f73 13217 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 13218 breaking the loop. (Bug#870)
b71f6f73
KH
13219 (decode_coding_utf_16, decode_coding_emacs_mule)
13220 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
13221 (decode_coding_charset): Likewise.
13222
56f668f7
MR
132232009-01-05 Martin Rudalics <rudalics@gmx.at>
13224
13225 * frame.c (x_set_frame_parameters): Make sure height (width) get
13226 applied when fullwidth (fullheight) is set. (Bug#1522)
13227
5da9424d
JB
132282009-01-04 Juanma Barranquero <lekktu@gmail.com>
13229
13230 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
13231 (utc_base): Declare as ULONGLONG, not long double.
13232 (convert_time_raw): Delete.
13233 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
13234 (initialize_utc_base): New function.
13235 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
13236 (convert_from_time_t): Use initialize_utc_base; compute result with
13237 64-bit arithmetic.
13238 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
13239
c4605e09
EZ
132402009-01-03 Eli Zaretskii <eliz@gnu.org>
13241
9acef61c 13242 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
13243 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
13244 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
13245 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
13246 [!subprocesses]: Define.
13247 (syms_of_process) [!subprocesses]: Intern and staticpro them.
13248 (Flist_system_processes, Fsystem_process_attributes)
13249 [!subprocesses]: Call list_system_processes and
13250 system_process_attributes instead of returning Qnil.
13251
9acef61c
JB
13252 * dosfns.c (system_process_attributes, list_system_processes):
13253 New functions.
c4605e09
EZ
13254
13255 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
13256
13257 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
13258 Don't use the default (no-op) implementation.
13259
8b7d0a16
JR
132602009-01-03 Jason Rumney <jasonr@gnu.org>
13261
a6d46bc1
JR
13262 * keyboard.c (parse_modifiers_uncached): Wheel events are
13263 clicks (bug#687).
13264
8b7d0a16
JR
13265 * w32term.c (x_query_colors, x_query_color): New functions.
13266
13267 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
13268 (svg_load_image): Cast returned pointers from dynamically loaded
13269 functions. Eliminate W32 specific code.
13270
bfe11752
DN
132712009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
13272
89e2438a
DN
13273 * nsfns.m (x_set_foreground_color, x_set_background_color)
13274 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
13275 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
13276 x_ prefix instead of ns_. Update references.
13277 (syms_of_nsfns): Add a FIXME comment.
13278
13279 * nsterm.m (x_set_cursor_type): New prototype.
13280 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
13281
bfe11752
DN
13282 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
13283 for Solaris instead of incorrectly providing Qutime and Qcutime.
13284
031da700
EZ
132852009-01-02 Eli Zaretskii <eliz@gnu.org>
13286
13287 * w32.c (process_times): Compute sum of utime and stime.
13288 (system_process_attributes): Add Qtime to the alist.
13289
13290 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
13291 and add them to the alist.
13292
13293 * process.c (top level) <Qtime, Qctime>: New variables.
13294 (syms_of_process): staticpro them.
13295 (Fsystem_process_attributes): Add their documentation to the doc
13296 string.
13297
13298 * process.h: Declare Qtime and Qctime.
13299
df23bf08
JR
133002009-01-02 Jason Rumney <jasonr@gnu.org>
13301
9acef61c 13302 * image.c (Qgobject): New symbol.
df23bf08
JR
13303 (syms_of_image): Initialize it.
13304 (init_svg_functions): Load some functions from gobject library.
13305
5bbdf7aa
DN
133062009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
13307
13308 * frame.c (make_terminal_frame): Remove redundant code and useless
13309 block.
13310
63136da6
AS
133112009-01-01 Andreas Schwab <schwab@suse.de>
13312
13313 * process.c (conv_sockaddr_to_lisp): Add workaround for
13314 getsockname bug on BSD.
13315
9ef69046
CY
133162009-01-01 Chong Yidong <cyd@stupidchicken.com>
13317
d6fafbe0
CY
13318 * xfns.c (x_create_tip_frame): Set border width of the X window.
13319
51d861de 13320 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 13321
f9c34147
JR
133222009-01-01 Jason Rumney <jasonr@gnu.org>
13323
9acef61c 13324 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
13325 Don't block input, as per earlier xterm.c changes.
13326
f5497e45
AR
133272008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
13328
13329 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
13330 (ns_appkit_version_int): New function.
13331 (x-server-version): Use ns_appkit_version_int and follow 21+
13332 convention of returning 3 integers.
13333
c19cab20
KH
133342008-12-30 Kenichi Handa <handa@m17n.org>
13335
13336 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
13337 (CHAR_SURROGATE_PAIR_P): New macro.
13338
13339 * font.h (struct font_driver): New member get_variation_glyphs.
13340
9acef61c 13341 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
13342 (Ffont_variation_glyphs): New function.
13343 (syms_of_font): Defsubr it.
13344
13345 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
13346 ftfont_variation_glyphs.
13347 (setup_otf_gstring): New function.
13348 (ftfont_drive_otf): Use it.
13349 (ftfont_shape_by_flt): Handle variation selector.
13350 (ftfont_variation_glyphs): New function.
13351
28cd591f
MR
133522008-12-30 Martin Rudalics <rudalics@gmx.at>
13353
13354 * frame.c (Vemacs_iconified): Remove.
13355
7f714baf
JR
133562008-12-30 Jason Rumney <jasonr@gnu.org>
13357
13358 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 13359 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 13360
9d2d22ab
CY
133612008-12-30 Chong Yidong <cyd@stupidchicken.com>
13362
13363 * indent.c (Fvertical_motion): Don't advance iterator if we have
13364 reseated to the desired position.
13365
13366 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
13367 checking for pos match.
13368
545312c2
KH
133692008-12-30 Kenichi Handa <handa@m17n.org>
13370
1ede3eb6
KH
13371 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
13372 just get the low 8-bit of the code.
13373
545312c2
KH
13374 * font.c (font_intern_prop): Validate str as multibyte.
13375
bd7bbf29
DN
133762008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
13377
31e0750e
DN
13378 * dispextern.h (struct face): Move lface and hash from the middle
13379 of bitfields.
13380
bd7bbf29
DN
13381 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
13382
b5672e7c
DN
133832008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
13384
13385 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
13386 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
13387 instead of intervals.h.
13388
d704470f
AS
133892008-12-26 Andreas Schwab <schwab@suse.de>
13390
13391 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
13392 cons.
13393
54b33868
MR
133942008-12-26 Martin Rudalics <rudalics@gmx.at>
13395
13396 * textprop.c (Qminibuffer_prompt): New variable.
13397 (syms_of_textprop): Initialize it.
13398 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
13399 in minibuffer-prompt face. (Bug#1662)
13400
40b615d6
JR
134012008-12-25 Jason Rumney <jasonr@gnu.org>
13402
13403 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
13404
baae5c2d
JR
134052008-12-24 Jason Rumney <jasonr@gnu.org>
13406
13407 * ralloc.c (r_alloc_reset_variable): New function.
13408
13409 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 13410 record of what points where. (Bug#716)
baae5c2d 13411
a9051c88
DN
134122008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
13413
13414 * minibuf.c (read_minibuf): Follow the non-interactive case when
13415 running as a daemon, before detaching.
13416
8b146312
AS
134172008-12-22 Andreas Schwab <schwab@suse.de>
13418
13419 * buffer.c (init_buffer): Use realloc instead of xrealloc.
13420 * gtkutil.c (free_widget_value): Use xfree instead of free.
13421
56f2de10
MR
134222008-12-22 Martin Rudalics <rudalics@gmx.at>
13423
13424 * frame.c (delete_frame): New function derived from
13425 Fdelete_frame to handle Qnoelisp value for FORCE argument.
13426 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
13427 (Fdelete_frame): Call delete_frame. Remove line from doc-string
13428 saying that FORCE non-nil doesn't run `delete-frame-functions'.
13429 * frame.h: Extern delete_frame.
13430 * window.c (window_loop):
13431 * terminal.c (delete_terminal):
13432 * xterm.c (x_connection_closed):
13433 * xfns.c (Fx_hide_tip):
9acef61c 13434 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 13435
1fc200d6
JR
134362008-12-21 Jason Rumney <jasonr@gnu.org>
13437
13438 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
13439 when character maps to .notdef character.
13440
5e252df2
SM
134412008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
13442
13443 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
13444
99b72cc4
JR
134452008-12-20 Jason Rumney <jasonr@gnu.org>
13446
13447 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 13448 a graphical frame on Windows. (Bug#1325)
99b72cc4 13449
acc49a52
JD
134502008-12-20 Jan Djärv <jan.h.d@swipnet.se>
13451
13452 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
13453
6ea15123
CY
134542008-12-20 Chong Yidong <cyd@stupidchicken.com>
13455
13456 * minibuf.c (Fread_buffer): Doc fix.
13457
b2dab6c8
JR
134582008-12-20 Jason Rumney <jasonr@gnu.org>
13459
54ea0c87 13460 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 13461 server name in UNC paths. (Bug#719)
54ea0c87 13462
b2dab6c8 13463 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 13464 charbuf. (Bug#1035)
b2dab6c8 13465
6d1921be
DN
134662008-12-19 Daniel Engeler <engeler@gmail.com>
13467
13468 * sysdep.c (serial_configure): Fix typo.
13469
53934c98
DN
134702008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
13471
13472 * sysdep.c: Include alloca.h.
f4f634e8
DN
13473 (system_process_attributes): Add implementation for Solaris.
13474
13475 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 13476
06e111a6
DN
134772008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
13478
13479 Reorganize implementation of Flist_system_processes and
13480 Fsystem_process_attributes. No functional changes.
13481 * process.c: Don't #include pwd.h, grp.h and limits.h.
13482 (Flist_system_processes): Just call list_system_processes.
13483 (Fsystem_process_attributes): Just call system_process_attributes.
13484 (procfs_list_system_processes, time_from_jiffies)
13485 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
13486 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
13487
13488 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
13489 (list_system_processes): Rename from
13490 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
13491 Provide a do nothing implementation.
13492 (system_process_attributes): Rename from
13493 procfs_list_system_processes.
13494 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 13495 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
13496
13497 * w32.c (list_system_processes): Rename from
13498 w32_list_system_processes.
13499 (system_process_attributes): Rename from
13500 w32_system_process_attributes.
13501
13502 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
13503
13504 * process.h (w32_list_system_processes)
13505 (w32_system_process_attributes): Remove.
362654a6
JB
13506 (list_system_processes, system_process_attributes):
13507 New prototypes.
06e111a6 13508
6a705b23
KH
135092008-12-19 Kenichi Handa <handa@m17n.org>
13510
13511 * xfont.c (xfont_decode_coding_xlfd): New function.
13512 (xfont_encode_coding_xlfd): New function.
13513 (xfont_list_pattern): Decode XLFD by iso-8859-1.
13514 (xfont_list): Decode and encode XLFD by iso-8859-1.
13515 (xfont_match): Likewise.
13516 (xfont_list_family): Likewise.
13517 (xfont_open): Likewise.
13518
d66c0241 13519 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
13520 names are utf-8.
13521
d66c0241 13522 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
13523 names are utf-8.
13524
5a130941
JD
135252008-12-18 Jan Djärv <jan.h.d@swipnet.se>
13526
13527 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
13528 changed.
bfd20325
JD
13529 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
13530 clicked on a detached tool bar button.
5a130941 13531
fd95644b
DN
135322008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
13533
13534 * emacs.c (main): Print and error and exit when no data is read
13535 from the pipe.
13536
e6eee6ae
JR
135372008-12-17 Jason Rumney <jasonr@gnu.org>
13538
13539 * w32font.c (w32font_has_char): Always return -1.
13540
a35dd56b
KH
135412008-12-16 Kenichi Handa <handa@m17n.org>
13542
13543 * font.c (font_open_entity): Fix previous change.
13544
0e3635c2
DN
135452008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
13546
13547 * process.c: Include <limits.h>.
13548
d4835507 135492008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
13550
13551 * font.c (font_update_drivers): Fix mistake in reconstructing the
13552 driver list.
13553
135542008-12-16 Chong Yidong <cyd@stupidchicken.com>
13555
13556 * font.c (font_clear_cache): Fix format of font cache data.
13557
e2cbc401
CY
135582008-12-15 Chong Yidong <cyd@stupidchicken.com>
13559
13560 * xftfont.c (xftfont_open): Free Xft font pattern if
13561 XftFontOpenPattern fails.
13562
13563 * xterm.c (x_free_frame_resources): Remove extraneous call to
13564 free_frame_faces.
13565
b131d535
CY
135662008-12-13 Chong Yidong <cyd@stupidchicken.com>
13567
13568 * xterm.c (x_delete_display): Move xim_close_dpy call to
13569 x_delete_terminal.
13570 (x_delete_terminal): Call xim_close_dpy.
13571
e6df5336
JR
135722008-12-13 Jason Rumney <jasonr@gnu.org>
13573
13574 * w32font.c (intern_font_name): New function.
13575 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
13576 (w32font_open_internal, Fx_select_font): Decode font name.
13577 (fill_in_logfont, list_all_matching_fonts): Encode font name.
13578
13579 * w32font.h (intern_font_name): Declare new function.
13580
13581 * w32uniscribe.c (add_opentype_font_name_to_list):
13582 Use intern_font_name.
13583
20d68145
CY
135842008-12-13 Chong Yidong <cyd@stupidchicken.com>
13585
9f2554de
CY
13586 * frame.c (Fdelete_frame): Call free_font_driver_list.
13587
3d9bec9a
CY
13588 * font.c (free_font_driver_list): Implement missing function.
13589
20d68145
CY
13590 * w32term.c (w32_term_init): Don't initialize the image cache
13591 here; it will be done in init_frame_faces.
13592
13593 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
bba3e508
SM
13594 (struct x_display_info): Remove unused member null_pixel.
13595 New member xim_callback_data.
20d68145
CY
13596
13597 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
13598 (xim_initialize): Save pointer to callback function data.
13599 (xim_close_dpy): Free callback function data. Call XCloseIM,
13600 reverting 2008-11-04 change by David Smith.
13601 (x_term_init): Don't initialize the image cache here; it will be
13602 done in init_frame_faces. Remove ancient "null_pixel" cruft.
13603 (x_delete_display): Free x_dnd_atoms member.
13604
96f9306b
KH
136052008-12-13 Kenichi Handa <handa@m17n.org>
13606
ef1b0ba7 13607 * font.c (font_rescale_ratio): Move from xfaces.c.
6dec9044 13608 Argument type changed. Handle a font-spec too.
96f9306b 13609 (font_score): Check Vface_font_rescale_alist.
6dec9044 13610 (font_open_entity): Likewise. (Bug#1547)
96f9306b 13611
ef1b0ba7 13612 * xfaces.c (font_rescale_ratio): Move to font.c.
96f9306b 13613
8d5b4964
CY
136142008-12-13 Chong Yidong <cyd@stupidchicken.com>
13615
13616 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
13617
e6df5336
JR
136182008-12-12 Jason Rumney <jasonr@gnu.org>
13619
bba3e508
SM
13620 * w32fns.c (x_display_info_for_name, Fx_open_connection):
13621 Set Vwindow_system_version to the real w32 major version.
e6df5336 13622
97c6058a
DN
136232008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
13624
13625 * term.c (init_tty): Move setting the terminal name before the
13626 potential user: maybe_fatal.
13627
ec4e88d7
CY
136282008-12-11 Chong Yidong <cyd@stupidchicken.com>
13629
ef1b0ba7 13630 * term.c (tty_free_frame_resources): Rename from delete_tty_output;
d4835507 13631 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 13632
b4233ec9
JR
136332008-12-11 Jason Rumney <jasonr@gnu.org>
13634
8ec71e23 13635 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 13636 SYMBOL_CHARSET. (Bug#547)
8ec71e23 13637
b4233ec9 13638 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 13639 size for surrogates. (Bug#1096, bug#872)
b4233ec9 13640
011a0143
JB
136412008-12-11 Juanma Barranquero <lekktu@gmail.com>
13642
13643 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
13644
3c309f34
JB
136452008-12-11 Juanma Barranquero <lekktu@gmail.com>
13646
13647 * process.c (Fsystem_process_attributes, syms_of_process):
13648 Fix typo in name of Ssystem_process_attributes.
13649 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
13650
fedc6ab5
JB
136512008-12-11 Juanma Barranquero <lekktu@gmail.com>
13652
13653 * syntax.c (Fmodify_syntax_entry): Doc fix.
13654
ba3de0e8
JB
136552008-12-10 Juanma Barranquero <lekktu@gmail.com>
13656
13657 * font.c (Ffont_spec): Move usage to end of docstring.
13658
174f1c74
JR
136592008-12-10 Jason Rumney <jasonr@gnu.org>
13660
13661 * w32font.c (Qcham): New symbol.
13662 (font_supported_scripts): Add cham, and comments for other new
13663 scripts in bitfield from OpenType spec.
9d32f818
JR
13664 (add_font_entity_to_list): Limit unicode-sip fonts to those that
13665 contain characters beyond the bmp.
174f1c74 13666
7b649478
KH
136672008-12-10 Kenichi Handa <handa@m17n.org>
13668
13669 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 13670 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
13671 Qunicode_sip.
13672
2133e2d1
JB
136732008-12-10 Juanma Barranquero <lekktu@gmail.com>
13674
13675 * coding.c (QCdefault_char): Rename from QCdefalut_char.
13676 (Fcoding_system_put): Use QCdefault_char.
13677 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
13678
9af886ee
CY
136792008-12-09 Chong Yidong <cyd@stupidchicken.com>
13680
74d819eb
CY
13681 * xftfont.c (syms_of_xftfont): Fix typo.
13682
4ccfa1c0 13683 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 13684
7c19d3ae
DN
136852008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
13686
13687 * emacs.c (main): Close daemon_pipe on exec.
13688
567826bb
CY
136892008-12-08 Chong Yidong <cyd@stupidchicken.com>
13690
13691 * termchar.h (struct tty): New members termcap_term_buffer and
13692 termcap_strings_buffer.
13693
13694 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 13695 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
13696 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
13697 All callers changed.
13698 (init_tty): Store termcap data and string buffers in new struct
13699 tty members termcap_term_buffer and termcap_strings_buffer.
13700 (delete_tty): Free them.
4ccfa1c0 13701 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 13702
aa96c42b
SZ
137032008-12-07 Seiji Zenitani <zenitani@mac.com>
13704
13705 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 13706 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 13707
b7e1d896
CY
137082008-12-06 Chong Yidong <cyd@stupidchicken.com>
13709
13710 * coding.c (make_conversion_work_buffer): Disable buffer
13711 modification hooks in the work buffer.
13712
b5ec91a5
EZ
137132008-12-05 Eli Zaretskii <eliz@gnu.org>
13714
13715 * process.c (procfs_system_process_attributes): If `nread' has a
13716 negative value, assign zero to it.
13717
a5d2a52b
CY
137182008-12-05 Chong Yidong <cyd@stupidchicken.com>
13719
68c5540b 13720 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 13721
7bf1bb21
KH
137222008-12-05 Kenichi Handa <handa@m17n.org>
13723
13724 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
13725 second character is a combining character.
13726
2fdc7d00
EZ
137272008-12-05 Eli Zaretskii <eliz@gnu.org>
13728
13729 * process.c (procfs_system_process_attributes): Don't use cmd,
13730 cmdsize, and q without initializing them first.
13731
bf6bfba8
JR
137322008-12-04 Jason Rumney <jasonr@gnu.org>
13733
13734 * w32font.c (w32font_draw): Initialize orig_clip before getting
13735 it, and delete it when finished.
13736
a3b1a468
DN
137372008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
13738
13739 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
13740 case when running as a daemon before detaching.
13741
8b8be8eb
JB
137422008-12-03 Juanma Barranquero <lekktu@gmail.com>
13743
805f2638 13744 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 13745
b1bde622
KH
137462008-12-03 Kenichi Handa <handa@m17n.org>
13747
e500c47d
KH
13748 * font.c (font_at): Set `multibyte' at first.
13749
ca516334
KH
13750 * coding.c (decode_coding_charset): Check type of an element of
13751 vector VALIDS.
7bf1bb21 13752 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 13753
4ccfa1c0 13754 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
13755 (font_for_char): Likewise.
13756
1e5ecd37
CY
137572008-12-03 Chong Yidong <cyd@stupidchicken.com>
13758
d5b01609 13759 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
13760 (font_update_lface): Handle fonts with corrupted size specs,
13761 i.e. non-int and non-float.
d5b01609 13762
11e3a6e4 13763 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 13764 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 13765 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 13766
ab06788b
CY
13767 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
13768
1e5ecd37 13769 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 13770 underline_minimum_offset for underline position.
1e5ecd37 13771
63c125ab
DN
137722008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
13773
13774 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
13775
13776 * character.c (c_string_width): Specify the type for LEN.
13777
3a8406e1
KH
137782008-12-03 Kenichi Handa <handa@m17n.org>
13779
4ccfa1c0 13780 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 13781 (decode_coding_utf_8): Likewise.
4ccfa1c0 13782 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 13783 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 13784
651df7d9
CY
137852008-12-02 Chong Yidong <cyd@stupidchicken.com>
13786
13787 * keyboard.c (make_lispy_position): Only use PT if the selected
13788 window is current.
13789
1f625c6c
AS
137902008-12-02 Andreas Schwab <schwab@suse.de>
13791
f7741ce9
AS
13792 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
13793
1f625c6c
AS
13794 * doprnt.c (doprnt1): Fix size of charbuf.
13795
92bc2678
CY
137962008-12-02 Chong Yidong <cyd@stupidchicken.com>
13797
13798 * keyboard.c (timer_check): Revert last change.
13799
93b9e8cc
JB
138002008-12-02 Juanma Barranquero <lekktu@gmail.com>
13801
13802 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
13803
fd7a37d5
JB
138042008-12-01 Juanma Barranquero <lekktu@gmail.com>
13805
13806 * makefile.w32-in: Update dependencies.
13807 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
13808
c115043b
AS
138092008-12-01 Andreas Schwab <schwab@suse.de>
13810
13811 * font.c (register_font_driver): Use xmalloc.
13812 (font_put_frame_data): Likewise.
13813
f5668d2a
CY
138142008-12-01 Chong Yidong <cyd@stupidchicken.com>
13815
860d96be
CY
13816 * xfaces.c (realize_x_face): Make abort condition clearer.
13817
f5668d2a
CY
13818 * gtkutil.c (update_frame_tool_bar): Initialize variable.
13819
379c17e7
CY
138202008-11-30 Chong Yidong <cyd@stupidchicken.com>
13821
13822 * keyboard.c (timer_check): After a timer runs, ensure that the
13823 selected window's buffer is current.
13824
35f36d65
JB
138252008-11-30 Juanma Barranquero <lekktu@gmail.com>
13826
f952c61c
JB
13827 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
13828 It was accidentally restored by the Unicode merge.
13829
35f36d65
JB
13830 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
13831
b23077df
JB
138322008-11-29 Juanma Barranquero <lekktu@gmail.com>
13833
13834 * w32proc.c: Include "coding.h".
13835 (Fw32_short_file_name): Encode filename passed to Windows API.
13836 (Fw32_long_file_name): Encode filename passed to Windows API and
13837 decode back the result. (Bug#1433)
13838
b8ebe9dd
KH
138392008-11-29 Kenichi Handa <handa@m17n.org>
13840
8cc53f96
KH
13841 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
13842 not before accessing it.
13843
b8ebe9dd
KH
13844 * charset.c (Fdefine_charset_internal): After calculating
13845 min_char, max_char, and fastmap, copy the charset structure again.
13846 (encode_char): Fix the previous change.
13847
59bc82c0
SZ
138482008-11-28 Seiji Zenitani <zenitani@mac.com>
13849
13850 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
13851
13852 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
13853
13854 * nsterm.m (x_set_frame_alpha): New function.
13855
32247e3d
EZ
138562008-11-27 Eli Zaretskii <eliz@gnu.org>
13857
13858 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
13859
b003e5ff
JB
138602008-11-27 Juanma Barranquero <lekktu@gmail.com>
13861
13862 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
13863 pointer to check_face_name.
13864
708550f5
KH
138652008-11-27 Kenichi Handa <handa@m17n.org>
13866
13867 * category.h (SET_CATEGORY_SET): Call set_category_set.
13868 (set_category_set): Extern it.
13869
13870 * category.c (hash_get_category_set): New function.
bba3e508 13871 (Fmodify_category_entry): Adjust for the change of
708550f5
KH
13872 char_table_ref_and_range. Call hash_get_category_set to get a
13873 category set to store in the table.
13874
13875 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
13876 Funify_charset.
13877
2ae37cf0 13878 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
13879 (DECODE_CHAR): Check if the decoder vector is ready.
13880 (ENCODE_CHAR): Check if the encoder char-table is ready.
13881 (maybe_unify_char): Extern it.
13882
13883 * charset.c (Vchar_unified_charset_table): Delete it.
13884 (inhibit_load_charset_map): New variable.
13885 (temp_charset_work): New variable.
13886 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
13887 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
13888 New macros.
bba3e508
SM
13889 (load_charset_map): Meaning of control_flag changed.
13890 If inhibit_load_charset_map is nonzero, setup a table in
708550f5
KH
13891 temp_charset_work.
13892 (load_charset): New argument control_flag.
13893 (map_charset_for_dump): New function.
13894 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
13895 map_charset_for_dump.
13896 (Fdefine_charset_internal): If the charset method is MAP, load
13897 mapping tables by calling load_charset.
13898 (Funify_charset): Don't load a mapping table but directly set
13899 Vchar_unify_table.
13900 (maybe_unify_char): New function.
13901 (decode_char): Don't handle the deleted method MAP_DEFERRED.
13902 Handle the case of inhibit_load_charset_map being nonzero.
13903 (encode_char): Don't handle the deleted method MAP_DEFERRED.
13904 Handle the case of inhibit_load_charset_map being nonzero.
13905 (Fclear_charset_maps): Just free temp_charset_work.
13906 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
13907 variable.
13908
bba3e508 13909 * chartab.c (sub_char_table_ref_and_range): Adjust for the
708550f5
KH
13910 change of char_table_ref_and_range.
13911 (char_table_ref_and_range): Change the meaning of argument FROM
13912 and TO. Now the caller must provide initial values for *FROM
13913 and *TO.
13914
bba3e508 13915 * fontset.c (fontset_add): Adjust for the change of
708550f5
KH
13916 char_table_ref_and_range.
13917 (fontset_get_font_group): Likewise.
13918 (Ffontset_info): Likewise.
13919
bba3e508 13920 * keymap.c (describe_vector): Adjust for the change of
708550f5
KH
13921 char_table_ref_and_range. For char-table, put boundary between
13922 non-ASCII and 8-bit characters.
13923
13924 * print.c (print_object): For bool-vector, delete unnecessary
13925 check of ASCII_BYTE_P.
13926
9196133b
JR
139272008-11-26 Jason Rumney <jasonr@gnu.org>
13928
13929 * w32font.c (w32font_open_internal): Don't include external
9acef61c 13930 leading in font height. (Bug#879)
9196133b 13931
9f688acf
GM
139322008-11-26 Glenn Morris <rgm@gnu.org>
13933
13934 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
13935 redefinition with ifdef. (Bug#1383)
13936
90d19aff
AR
139372008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
13938
13939 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
13940
4ccfa1c0 139412008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
13942
13943 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
13944 New EmacsView methods.
13945 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
13946 Fixes bug #1048,1357,1414.
13947
139482008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
13949
13950 Fix bug #1362.
13951 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
13952 is not an indexed color.
13953 * nsterm.m (free_indexed_color): Add argument checking.
13954 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
13955
e7d5ecb3
CY
139562008-11-24 Chong Yidong <cyd@stupidchicken.com>
13957
13958 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
13959 Document confirm-after-completion value for
13960 minibuffer-completion-confirm.
13961
c285743c
JR
139622008-11-24 Jason Rumney <jasonr@gnu.org>
13963
13964 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
13965 warning.
13966
b0857706
JR
139672008-11-23 Jason Rumney <jasonr@gnu.org>
13968
13969 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
13970 restored before returning.
13971
13972 * w32font.c (check_face_name): New function.
13973 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 13974 fonts. (Bug#642)
b0857706 13975
ee50ff07
MR
139762008-11-22 Martin Rudalics <rudalics@gmx.at>
13977
13978 * buffer.c (Fswitch_to_buffer): Reword and mention new option
13979 confirm-nonexistent-file-or-buffer in doc-string.
13980
b8ff72fa
SM
139812008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
13982
13983 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
13984 Fix copy/paste typo. Add checks.
13985
cee53ed4
KH
139862008-11-21 Kenichi Handa <handa@m17n.org>
13987
13988 * coding.c (detect_coding_iso_2022): Reject invalid composition
13989 sequence.
13990 (DECODE_COMPOSITION_START): If the current source is the last
13991 block, and the current composition doesn't end, regard this
13992 sequence as invalid.
13993 (decode_coding_iso_2022): Handle invalid composition sequence.
13994
f6ef1e65
MR
139952008-11-20 Martin Rudalics <rudalics@gmx.at>
13996
13997 * window.c (coordinates_in_window): Don't return
13998 ON_VERTICAL_BORDER for the rightmost position of a mode/header
13999 line when the window is not the rightmost one. (Bug#1372)
14000
e08b1705
MR
140012008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
14002
14003 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
14004
ad98e89f
EZ
140052008-11-15 Eli Zaretskii <eliz@gnu.org>
14006
14007 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
14008 and bright_bg if noninteractive is non-zero.
14009
fb098a4b
CY
140102008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14011
14012 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
14013 x_draw_glyph_string_background.
14014
14015 * w32term.c (x_draw_glyph_string): Likewise.
14016
ce952b6e
CY
140172008-11-15 Chong Yidong <cyd@stupidchicken.com>
14018
14019 * xterm.c (x_draw_glyph_string): Stop drawing the background of
14020 the next glyph string once past the overhang width.
14021
14022 * nsterm.m (ns_draw_glyph_string): Likewise.
14023
14024 * w32term.c (x_draw_glyph_string): Likewise.
14025
26ea7079
CY
140262008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
14027
14028 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
14029 double file close.
14030
1c33c906
MR
140312008-11-14 Martin Rudalics <rudalics@gmx.at>
14032
14033 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
14034 dedicated status of window before attempting to display another
14035 buffer in it.
14036
8fc29035
JB
140372008-11-14 Juanma Barranquero <lekktu@gmail.com>
14038
14039 * msdos.c (Fmsdos_long_file_names):
14040 (syms_of_msdos) <dos-unsupported-char-glyph>:
14041 * dosfns.c (Fint86): Fix typos in docstrings.
14042
55fb4286
EZ
140432008-11-14 Eli Zaretskii <eliz@gnu.org>
14044
14045 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
14046
3fda0315
KY
140472008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
14048
14049 * puresize.h (BASE_PURESIZE): Increase to 1260000.
14050
7e849c17
CY
140512008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
14052
14053 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
14054
14055 * frame.h: Negative alpha means "don't touch".
14056
14057 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
14058
14059 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
14060
b9fd67bd
DN
140612008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
14062
14063 * hftctl.c:
14064 * chpdef.h:
14065 * acldef.h: Remove files used only for systems no longer supported.
14066
14067 * Makefile.in: Fix .o alphabetical ordering.
14068 (hftctl.o): Remove dependency, file removed.
14069 (keymap.o, print.o): Depend on charset.h.
14070
d5998e03
KH
140712008-11-10 Kenichi Handa <handa@m17n.org>
14072
2ae37cf0 14073 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 14074
be70e183
CY
140752008-11-08 Chong Yidong <cyd@stupidchicken.com>
14076
14077 * dired.c (file_name_completion): If completion_ignore_case is
14078 enabled, ignore case when checking completion-regexp-list.
14079
7cf94eac
EZ
140802008-11-08 Eli Zaretskii <eliz@gnu.org>
14081
14082 * vm-limit.c (get_lim_data): Fix last change.
14083
ee107a89
KH
140842008-11-08 Kenichi Handa <handa@m17n.org>
14085
14086 * character.c (Fget_byte): New function.
14087 (syms_of_character): Defsubr Fget_byte.
14088
5fd15622
CY
140892008-11-07 Chong Yidong <cyd@stupidchicken.com>
14090
14091 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
14092 cursor position is valid after scrolling.
14093
13d62fad
JB
140942008-11-06 Juanma Barranquero <lekktu@gmail.com>
14095
14096 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
14097
a1dd2936
GM
140982008-11-06 Glenn Morris <rgm@gnu.org>
14099
14100 * xterm.c (handle_one_xevent): Don't let popup menus cause
14101 mouse-autoselect-window related window switching. (Bug#1261)
14102
860cd236
CY
141032008-11-04 David Smith <davidsmith@acm.org> (tiny change)
14104
14105 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
14106
653a3150
AS
141072008-11-04 Andreas Schwab <schwab@suse.de>
14108
14109 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
14110
870f5cac
CY
141112008-11-03 Chong Yidong <cyd@stupidchicken.com>
14112
14113 * xfns.c (Fx_wm_set_size_hint): New function.
14114
1e02f3cb
MR
141152008-11-03 Martin Rudalics <rudalics@gmx.at>
14116
14117 * textprop.c (Fprevious_single_char_property_change): Return 0
14118 when there's no change in a string. (Bug#1301)
14119
e630dfc6
MR
141202008-11-02 Martin Rudalics <rudalics@gmx.at>
14121
14122 * frame.c (do_switch_frame): New argument NORECORD passed to
14123 Fselect_window.
14124 (Fselect_frame): New argument NORECORD passed to
14125 do_switch_frame.
14126 (Fset_frame_selected_window): New argument NORECORD passed to
14127 Fselect_frame.
14128 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
14129 in call of do_switch_frame.
14130 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
14131 Handle NORECORD argument in call of Fselect_frame.
14132 * lisp.h (do_switch_frame, Fselect_frame)
14133 (Fset_frame_selected_window): Adjust declarations.
14134 * window.c (select_frame_norecord): New function.
14135 (run_window_configuration_change_hook): Use it and call
14136 Fselect_frame with NORECORD set.
14137 (Fselect_window): Pass NORECORD to Fselect_frame.
14138 (Fset_window_configuration): Handle NORECORD argument in call of
14139 do_switch_frame.
14140 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
14141 Fset_frame_selected_window.
14142 * keyboard.c (command_loop_1): Handle NORECORD in call of
14143 Fselect_frame (currently ifdefd).
14144
9020b223
GM
141452008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
14146
14147 * emacs.c (USAGE2): Untabify.
14148
793ffee8
SM
141492008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
14150
14151 * composite.c (fill_gstring_header): Fix copy/paste typo.
14152
ab6d1131
MR
141532008-10-31 Martin Rudalics <rudalics@gmx.at>
14154
14155 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
14156 (Fother_window): Rename argument and rewrite doc-string.
14157 (select_window_norecord): Fix return value. (Bug#1276)
14158
601a9cf1
JB
141592008-10-30 Juanma Barranquero <lekktu@gmail.com>
14160
14161 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
14162 new frames overriding foreground for tooltips. Based on similar patch
14163 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
14164
813b0652
CY
141652008-10-29 Chong Yidong <cyd@stupidchicken.com>
14166
14167 * emacs.c (Fdaemon_initialized): Initialize nfd.
14168
4414f58f
MR
141692008-10-29 Martin Rudalics <rudalics@gmx.at>
14170
14171 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
14172 (Fwindow_text_height): Clarify doc-strings.
14173 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
14174 doc-string of window-scroll-functions.
14175
ecdcaa09
RS
141762008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
14177
14178 * category.c (syms_of_category): Fix typo in docstring.
14179
23fe745a
JB
141802008-10-28 Juanma Barranquero <lekktu@gmail.com>
14181
14182 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
14183 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
14184 Fix typos in docstrings.
14185
ff808935
DN
141862008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
14187
14188 * emacs.c (daemon_pipe): Make non-static.
14189 (IS_DAEMON): Move definition ...
14190 * lisp.h (IS_DAEMON): ... here.
14191 (daemon_pipe): Declare.
14192 (is_daemon): Remove.
14193 * dispnew.c (init_display): Use IS_DAEMON.
14194
fc012771
SM
141952008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
14196
14197 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
14198 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
14199
14200 * emacs.c (is_daemon): Remove.
14201 (main): Don't set is_daemon.
14202 (IS_DAEMON): New macro.
14203 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 14204 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
14205 parent exits.
14206 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
14207
d8bdbe6f
CY
142082008-10-27 Chong Yidong <cyd@stupidchicken.com>
14209
d1a072bf
CY
14210 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
14211 over-sized glyph, draw it with the default glyph width.
14212
e2e325aa
CY
14213 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
14214 glyph, draw it with the default glyph width.
14215
14216 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
14217 glyph, draw it with the default glyph width.
14218
d8bdbe6f
CY
14219 * xdisp.c (try_scrolling): When computing the distance from the
14220 scroll margin to PT, try moving some distance past the window
14221 bottom before giving up.
14222
7bfac547
MR
142232008-10-27 Martin Rudalics <rudalics@gmx.at>
14224
14225 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
14226 (Fset_window_buffer): Explain in doc-string that a window can be
14227 "strongly" dedicated to its buffer.
14228
4ff029f6
DN
142292008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
14230
14231 * emacs.c (daemon_name): New variable.
14232 (main): Deal with --daemon=SERVER_NAME.
14233 (Fdaemonp): Return a name if one was passed to --daemon.
14234
5790ef40
DN
142352008-10-26 Romain Francoise <romain@orebokech.com>
14236
f9bd0df9 14237 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
14238 (main): Create a pipe before forking, make the parent exit only after
14239 the child has closed its end of the pipe. Move closing the
14240 descriptors ...
14241 (Fdaemon_initialized): ... here. New function.
14242
f5385255
SM
142432008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
14244
4d632321
SM
14245 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
14246 the previous unoptimized table.
14247
f5385255
SM
14248 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
14249 the distinction between non-nil and non-t value of `dedicated'.
14250
6c56a0f3
CY
142512008-10-25 Chong Yidong <cyd@stupidchicken.com>
14252
14253 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 14254 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 14255
fec89261
MR
142562008-10-25 Martin Rudalics <rudalics@gmx.at>
14257
14258 * window.c (Fget_buffer_window, Fdelete_windows_on)
14259 (Freplace_buffer_in_windows): Make buffer argument optional and
14260 rename to buffer_or_name.
14261
34fcddd0
CY
142622008-10-24 Chong Yidong <cyd@stupidchicken.com>
14263
f5385255
SM
14264 * xdisp.c (handle_single_display_spec, handle_display_prop):
14265 Undo 2005-05-16 change.
34fcddd0
CY
14266 (handle_stop): Pop iterator if it's loaded with an empty string.
14267 (get_overlay_strings_1): Don't save iterator if it's loaded with
14268 an empty string (bug#1201).
14269
064766f2
KH
142702008-10-24 Kenichi Handa <handa@m17n.org>
14271
14272 * ftfont.c (ftfont_otf_features): Fix previous change.
14273 (ftfont_otf_capability): Check FeatureList.FeatureCount before
14274 calling ftfont_otf_features.
14275
f9bd0df9 142762008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
14277
14278 * font.c (font_match_p): Fix for the case that a vector of
14279 characters is in script-representative-chars.
14280
1dae9197
MA
142812008-10-24 Michael Albinus <michael.albinus@gmx.de>
14282
14283 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 14284 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
14285 (xd_read_queued_messages): Catch Qdbus_error from the macros.
14286 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 14287 macro. (Bug#1186)
1dae9197 14288
f9bd0df9 142892008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
14290
14291 * s/sol2-10.h: New file.
14292
878a4584
JB
142932008-10-23 Juanma Barranquero <lekktu@gmail.com>
14294
14295 * xdisp.c (fill_glyph_string): Fix typo in source (though the
14296 poor beast has survived 9+ years and the jump from xterm.c!).
14297
cd265ca6
MR
142982008-10-23 Martin Rudalics <rudalics@gmx.at>
14299
14300 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
14301 Reword doc-string.
f5385255 14302 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 14303
472a4dc9
JB
143042008-10-23 Juanma Barranquero <lekktu@gmail.com>
14305
14306 * character.c (syms_of_character) <script-representative-chars>:
14307 <unicode-category-table>: Doc fixes.
14308
159bd5a2
NF
143092008-10-23 Noah Friedman <friedman@splode.com>
14310
14311 * coding.c (make_conversion_work_buffer): Check that
14312 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
14313 Fget_buffer_create.
14314
49f9c344
KH
143152008-10-23 Kenichi Handa <handa@m17n.org>
14316
14317 * font.c (font_add_log): Check the values of extra properties.
14318
12bb3111
MR
143192008-10-22 Martin Rudalics <rudalics@gmx.at>
14320
14321 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
14322 Reword doc-string.
14323 (Fset_window_parameter): Use NILP.
14324 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 14325 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 14326
bbeb4e99
JB
143272008-10-22 Juanma Barranquero <lekktu@gmail.com>
14328
14329 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
14330
143312008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
14332
14333 * nsfns.m (ns_appkit_version): New function.
14334 (x-server-version): Use it.
14335 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
14336 (x-server-vendor): Don't check_ns().
14337
14338 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
14339
a9b555d3
JB
143402008-10-22 Juanma Barranquero <lekktu@gmail.com>
14341
14342 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
14343 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
14344
4626499f
KH
143452008-10-22 Kenichi Handa <handa@m17n.org>
14346
e3681952
KH
14347 * syntax.c (scan_words): Call word_boundary_p instead of comparing
14348 scripts.
14349
4626499f
KH
14350 * category.c (word_boundary_p): Check scripts instead of charset.
14351 Handle nil value in word-separating-categories and
14352 word-combining-categories.
14353 (syms_of_category): Fix docstrings of word-separating-categories
14354 and word-combining-categories.
14355
1560f91a
EZ
143562008-10-21 Eli Zaretskii <eliz@gnu.org>
14357
14358 * coding.c (Fencode_coding_region, Fdecode_coding_region)
14359 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
14360
f4668441
MR
143612008-10-21 Martin Rudalics <rudalics@gmx.at>
14362
14363 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
14364 Rename arg "buffer" to "buffer_or_name".
14365 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
14366 it optional.
14367 (no_switch_window): Remove since the return value is not used.
a9b555d3 14368 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
14369 Consider window as dedicated when Fwindow_dedicated_p returns a
14370 non-nil value.
14371 * lisp.h: Remove prototype for no_switch_window.
14372
fd75ddb2
JD
143732008-10-21 Jan Djärv <jan.h.d@swipnet.se>
14374
14375 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 14376 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 14377
07295713
KH
143782008-10-21 Kenichi Handa <handa@m17n.org>
14379
14380 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
14381 check Vlatin_extra_code_table.
14382
712adc82
EZ
143832008-10-20 Eli Zaretskii <eliz@gnu.org>
14384
14385 * fileio.c (Fset_file_modes): Doc fix.
14386
f549eb0b
MA
143872008-10-19 Michael Albinus <michael.albinus@gmx.de>
14388
14389 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
14390 in arrays.
14391
aac0c6e3
MR
143922008-10-19 Martin Rudalics <rudalics@gmx.at>
14393
14394 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
14395 Mention kill-buffer in doc-string.
14396 (Fset_window_buffer): Reinsert tem check removed in last commit.
14397 (Fenlarge_window, Fshrink_window): Have argument names and
14398 doc-string follow Elisp manual more closely.
14399
144002008-10-18 Eli Zaretskii <eliz@gnu.org>
14401
14402 * fileio.c (Fset_file_modes): Doc fix.
14403
144042008-10-18 Martin Rudalics <rudalics@gmx.at>
14405
14406 * window.c (Fwindow_width, Fset_window_start)
14407 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
14408 (Fdelete_windows_on, Freplace_buffer_in_windows):
14409 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
14410 (Fwindow_dedicated_p): Make window argument optional.
14411 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
14412 (Fset_window_buffer): Respect any non-nil dedicated value for
14413 window. Rename "buffer" argument to "buffer_or_name".
14414
144152008-10-18 Ulrich Mueller <ulm@gentoo.org>
14416
14417 * m/sh3.h: New file, machine description for SuperH.
14418
144192008-10-17 Martin Rudalics <rudalics@gmx.at>
14420
14421 * window.c (Fsplit_window): Rename arg horflag to horizontal.
14422
144232008-10-17 Kenichi Handa <handa@m17n.org>
14424
14425 * ftfont.c (ftfont_otf_features): Fix indexing
14426 gsub_gpos->FeatureList.Feature. Check the validity of indices.
14427
144282008-10-16 Magnus Henoch <mange@freemail.hu>
14429
14430 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
14431 (Fdbus_call_method_asynchronously): Ditto.
14432 This change makes C-h f display the argument list.
14433
144342008-10-16 Chong Yidong <cyd@stupidchicken.com>
14435
14436 * fileio.c (Fexpand_file_name): Doc fix.
14437
14438 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
14439 of :foreground and :background equivalent to unspecified (20.x
14440 compatibility).
14441
144422008-10-15 Eli Zaretskii <eliz@gnu.org>
14443
14444 * buffer.c (syms_of_buffer): Doc fix.
14445
144462008-10-14 Kenichi Handa <handa@m17n.org>
14447
14448 * font.c (font_clear_prop): When clearing font width, clear the
14449 average width field too.
14450
144512008-10-12 Andreas Schwab <schwab@suse.de>
14452
14453 * ftfont.c (ftfont_shape_by_flt): Make static.
14454 * ftfont.h (ftfont_shape_by_flt): Don't declare.
14455
14456 * font.c: Don't include <m17n-flt.h>.
14457
144582008-10-10 Eli Zaretskii <eliz@gnu.org>
14459
14460 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
14461
144622008-10-09 Eli Zaretskii <eliz@gnu.org>
14463
14464 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
14465 away code.
14466
144672008-10-09 Chong Yidong <cyd@stupidchicken.com>
14468
14469 * dispnew.c (update_text_area): Avoid looping due to large glyph
14470 overhangs (bug#1070).
14471
144722008-10-09 Kenichi Handa <handa@m17n.org>
14473
14474 * fontset.c (face_for_char): If face->fontset is negative, just
14475 return ascii_face.
14476
f5385255
SM
14477 * font.c (font_delete_unmatched): Fix previous change.
14478 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
14479
144802008-10-09 Martin Rudalics <rudalics@gmx.at>
14481
14482 * frame.c (Fraise_frame): On text-only terminals select frame in
14483 order to make it visible. (Bug#1061)
14484
144852008-10-08 Chong Yidong <cyd@stupidchicken.com>
14486
14487 * fontset.c (fontset_find_font): Check frame validity.
14488
144892008-10-07 Chong Yidong <cyd@stupidchicken.com>
14490
a9b555d3 14491 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
14492 (xg_display_close): Allow Emacs to close all displays (bug#985).
14493
144942008-10-06 Andreas Schwab <schwab@suse.de>
14495
f5385255 14496 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
14497
144982008-10-06 Chong Yidong <cyd@stupidchicken.com>
14499
f5385255 14500 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 14501
a9b555d3 14502 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
14503
14504 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
14505 during initialization.
14506
145072008-10-04 Eli Zaretskii <eliz@gnu.org>
14508
14509 * xdisp.c (redisplay_internal): If frame switched, redisplay the
14510 whole thing on MSDOS frames as well as on a TTY.
14511
14512 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
14513 well as for TTY.
14514 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
14515 well as on a TTY.
14516
14517 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
14518 as well as for TTY.
14519
14520 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
14521
14522 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
14523 MSDOS frames as well.
14524
145252008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
14526
14527 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
14528 correct arguments.
b71ac3dd 14529 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
14530
145312008-10-03 Glenn Morris <rgm@gnu.org>
14532
14533 * emacs.c (USAGE1): Add --daemon.
14534
145352008-10-02 Eli Zaretskii <eliz@gnu.org>
14536
14537 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
14538 100, so it's in percents as advertised.
14539
145402008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
14541
14542 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
14543 (ns_output.current_cursor, ns_output.desired_cursor)
14544 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
14545 (FRAME_NEW_CURSOR_COLOR): Remove.
14546
14547 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 14548 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
14549 enumeration (HOLLOW_BOX_CURSOR, etc.).
14550
14551 * nsterm.m (ns_frame_rehighlight): Remove commented code.
14552 (draw_window_cursor): Simplify code.
f5385255
SM
14553 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
14554 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 14555 updates manually.
a9b555d3
JB
14556 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
14557 Use core Emacs cursor types.
aac0c6e3 14558
b8ff72fa 14559 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
14560
145612008-10-02 Martin Rudalics <rudalics@gmx.at>
14562
14563 * process.c (Faccept_process_output): Fix doc-string.
14564
145652008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
14566
14567 * gmalloc.c (__sbrk): Also define for uClibc.
14568
14569 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
14570 for uClibc.
14571
145722008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
14573
14574 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
14575 styles.
14576 (nsfont_open): Reenable the cache.
14577
145782008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
14579
14580 * font.c (font_matching_entity): Reflect ATTRS in font selection.
14581 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
14582
145832008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
14584
14585 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
14586 a suspended terminal.
14587
145882008-09-30 Michael Albinus <michael.albinus@gmx.de>
14589
14590 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
14591
145922008-09-30 Eli Zaretskii <eliz@gnu.org>
14593
14594 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
14595
145962008-09-30 Chong Yidong <cyd@stupidchicken.com>
14597
14598 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
14599 in a continued line coincides with a line beginning.
14600
146012008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
14602
14603 * nsfont.m (nsfont_trait_distance): Fix bug.
14604 (nsfont_list): Return a list rather than a vector (syncs with Handa
14605 changes of 2008-05-14).
14606 (nsfont_open): Improve logging.
14607
146082008-09-29 Andreas Schwab <schwab@suse.de>
14609
14610 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
14611
146122008-09-28 Martin Rudalics <rudalics@gmx.at>
14613
14614 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
14615 name as char-resolve-modifiers.
14616 Reported by: Markus Triska <markus.triska@gmx.at>
14617
146182008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
14619
14620 * dispnew.c (init_display): Return earlier when running as a daemon.
14621
146222008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
14623
14624 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
14625
146262008-09-27 Eli Zaretskii <eliz@gnu.org>
14627
14628 * composite.c (Fcomposition_get_gstring)
14629 (Fcompose_region_internal, Fcompose_string_internal)
14630 (Ffind_composition_internal): Doc fix.
14631 (syms_of_composite) <compose-chars-after-function>: Doc fix.
14632 (syms_of_composite) <auto-composition-function>: Doc fix.
14633 (syms_of_composite) <composition-function-table>: Doc fix.
14634
146352008-09-25 Chong Yidong <cyd@stupidchicken.com>
14636
14637 * search.c (wordify): New argument for lax word-ends.
14638 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
14639
146402008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
14641
14642 * lisp.h (is_daemon): Declare.
14643 * dispnew.c (init_display): Do not try to initialize the terminal
14644 when running as a daemon.
14645
146462008-09-22 Chong Yidong <cyd@stupidchicken.com>
14647
14648 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
14649 x_display_pixel_height.
14650
146512008-09-22 Martin Rudalics <rudalics@gmx.at>
14652
14653 * undo.c (record_point): Don't call Fundo_boundary for first
14654 change. (Bug#731)
14655
146562008-09-22 Juanma Barranquero <lekktu@gmail.com>
14657
14658 * emacs.c (Fdaemonp): Doc fix.
14659
146602008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
14661
14662 * emacs.c (main): Place #ifdef in the proper place.
14663
146642008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
14665
14666 * emacs.c (standard_args): Add --daemon.
14667 (main): Disconnect from the terminal when --daemon is passed.
14668 (is_daemon): New variable.
14669 (Fdaemonp): New function.
14670 (syms_of_emacs): Defsubr it.
14671
146722008-09-20 Chong Yidong <cyd@stupidchicken.com>
14673
14674 * xdisp.c (get_next_display_element): Handle string display
14675 correctly when checking for the end of a box run.
14676
146772008-09-20 Glenn Morris <rgm@gnu.org>
14678
14679 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
14680 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
14681 (Frename_file): Avoid copying to trash if a rename involves
14682 a delete. (Bug#964).
14683
146842008-09-20 Eli Zaretskii <eliz@gnu.org>
14685
14686 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
14687 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
14688 frames as well as termcap frames.
14689 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
14690 get_named_tty.
14691
146922008-09-19 Eli Zaretskii <eliz@gnu.org>
14693
14694 * process.c (procfs_system_process_attributes): Fix cmdline in
14695 case /proc/PID/cmdline is empty.
14696
14697 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
14698 x_display_pixel_height.
14699
147002008-09-19 Juanma Barranquero <lekktu@gmail.com>
14701
14702 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
14703
14704 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
14705 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
14706
147072008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
14708
14709 * dispextern.h (struct it): Move line_wrap away from the middle of
14710 bitfields. Move voffset in struct iterator_stack_entry after the
14711 bitfields. Move tab_width near after another short.
14712
147132008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
14714
14715 * frame.h (struct frame): Move alpha from the middle of bitfields.
14716
14717 * window.h (struct window): Move frozen_window_start_p after the
14718 rest of the bitfields to reduce padding.
14719
147202008-09-18 Chong Yidong <cyd@stupidchicken.com>
14721
14722 * xterm.h (x_display_info): Remove `height' and `width' members.
14723
14724 * nsterm.h (ns_display_info): Remove `height' and `width' members.
14725
14726 * w32term.h (w32_display_info): Remove `height', `width',
14727 `height_in', and `width_in' members.
14728
b8ff72fa
SM
14729 * xterm.c (x_display_pixel_height, x_display_pixel_width):
14730 New functions.
aac0c6e3
MR
14731 (x_calc_absolute_position): Use them.
14732 (x_term_init): Omit removed `height' and `width' members.
14733
b8ff72fa
SM
14734 * w32term.c (x_display_pixel_height, x_display_pixel_width):
14735 New functions.
aac0c6e3
MR
14736 (w32_read_socket, x_calc_absolute_position): Use them.
14737 (w32_initialize_display_info, w32_term_init): Omit removed members
14738 of w32_display_info.
14739
b8ff72fa
SM
14740 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
14741 New functions.
14742 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 14743
b8ff72fa
SM
14744 * xterm.c (x_display_pixel_height, x_display_pixel_width):
14745 New functions.
aac0c6e3
MR
14746 (x_calc_absolute_position): Use them.
14747 (x_term_init): Omit removed `height' and `width' members.
14748
14749 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
14750 (compute_tip_xy):
14751 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
14752 * xmenu.c (menu_position_func): Use x_display_pixel_height and
14753 x_display_pixel_width.
14754
147552008-09-18 Kenichi Handa <handa@m17n.org>
14756
14757 * composite.c (fill_gstring_header): Don't check FROM and TO here.
14758 (composition_compute_stop_pos): Fix handling of static composition.
14759 (Fcomposition_get_gstring): Check FROM and TO at first.
14760
147612008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
14762
46e722a9 14763 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
14764 mixup (YAILOM).
14765
147662008-09-17 Chong Yidong <cyd@stupidchicken.com>
14767
14768 * indent.c (Fvertical_motion): Use position reported by iterator
14769 instead of PT for determining screen motion (bug#943).
14770
147712008-09-17 Romain Francoise <romain@orebokech.com>
14772
14773 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
14774
147752008-09-17 Kenichi Handa <handa@m17n.org>
14776
14777 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
14778
14779 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
14780 if necessary.
14781
147822008-09-16 Kenichi Handa <handa@m17n.org>
14783
14784 * coding.c (make_conversion_work_buffer): Avoid calling
14785 Fget_buffer_create if it is not necessary.
14786
147872008-09-15 Martin Rudalics <rudalics@gmx.at>
14788
14789 * window.c (Fselect_window): Don't update window_select_count and
14790 use_time when norecord is not nil.
14791
147922008-09-14 Kenichi Handa <handa@m17n.org>
14793
14794 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
14795 specpdl_ptr.
14796
147972008-09-12 Kenichi Handa <handa@m17n.org>
14798
14799 * indent.c (scan_for_column): Don't handle automatic composition
14800 if the current buffer is not associated with a window.
14801
14802 * composite.c (composition_reseat_it): If the current buffer is
14803 not associated with a window, ignore the automatic composition.
14804 (find_automatic_composition): Likewise.
14805
148062008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
14807
14808 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
14809 (Fgpm_mouse_stop): Use it.
14810 * termhooks.h (close_gpm): Declare.
14811 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
14812 connection if Gpm_GetEvent fails.
14813
14814 * window.c (set_window_buffer): Always preserve current-buffer.
14815
148162008-09-12 Glenn Morris <rgm@gnu.org>
14817
14818 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
14819
148202008-09-11 Glenn Morris <rgm@gnu.org>
14821
14822 * charset.c (charset-map-path): Doc fix.
14823
148242008-09-10 Kenichi Handa <handa@m17n.org>
14825
14826 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
14827
14828 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
14829 compose a grapheme cluster with the preceding base glyph.
14830
14831 * composite.c (composition_compute_stop_pos): Fix previous change.
14832 Reset cmp_it->id to -1 at first.
14833
148342008-09-10 Glenn Morris <rgm@gnu.org>
14835
14836 * Makefile.in (character.o, chartab.o): Fix config.h typo.
14837
148382008-09-09 Chong Yidong <cyd@stupidchicken.com>
14839
14840 * keyboard.c (read_key_sequence): Reapply translation maps when
14841 switching keyboards.
14842
148432008-09-09 Kenichi Handa <handa@m17n.org>
14844
14845 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
14846 characters.
14847
14848 * composite.c (FORWARD_CHAR): Fix calculation
14849 of (POSITION).pos_byte.
14850 (composition_compute_stop_pos): Limit the search of composition to
14851 at most 500 characters ahead. If we reach the limit or find a
14852 newline, set cmp_it->ch to -2 and return 0.
14853 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
14854
148552008-09-08 Kenichi Handa <handa@m17n.org>
14856
14857 * indent.c (Fvertical_motion): Be sure to set
14858 it_overshoot_expected if it.cmp_it.id is non-negative.
14859
148602008-09-07 Andreas Schwab <schwab@suse.de>
14861
14862 * callproc.c (Fcall_process): Don't hold references to string data
14863 across garbage collection. Move initialisation of new_argv down
14864 to avoid compiler bug.
14865
148662008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
14867
14868 * process.c (Fsystem_process_attributes): Doc fix.
14869
148702008-09-07 Chong Yidong <cyd@stupidchicken.com>
14871
14872 * callproc.c (Fcall_process): Canonicalize current directory name.
14873
14874 * xdisp.c (move_it_to): When moving by vpos, ensure that the
14875 iterator advances to the next line if the current line ends in a
14876 continued tab.
14877
148782008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
14879
14880 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
14881 member to point to cmp_from.
14882
14883 * xdisp.c: Doc fix for references to gidx data member.
14884
148852008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
14886
14887 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
14888
148892008-09-07 Kenichi Handa <handa@m17n.org>
14890
14891 * composite.c (FORWARD_CHAR): Check STOP after
14892 incrementing (POSITION).pos.
14893
148942008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
14895
14896 * process.c (Fsystem_process_attributes): Doc fix.
14897
148982008-09-06 Chong Yidong <cyd@stupidchicken.com>
14899
14900 * keyboard.c (Ftop_level): Doc fix.
14901
149022008-09-06 Eli Zaretskii <eliz@gnu.org>
14903
14904 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
14905 minibuffer, don't let lower part of menu invade the echo area.
14906
14907 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
14908 "char *q" to access menu text and advance through it. Revert the
14909 change that displayed ">" instead of ASCII character 0x10.
14910
149112008-09-05 Eli Zaretskii <eliz@gnu.org>
14912
14913 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
14914 toggle boxes and radio buttons on MS-DOS as well.
14915
149162008-09-05 Kenichi Handa <handa@m17n.org>
14917
14918 * composite.c (autocmp_chars): Check lookback count.
14919 (composition_compute_stop_pos): Set cmp_it->lookback.
14920 (composition_reseat_it): Check lookback count.
14921 (struct position_record): New struct.
14922 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
14923 (find_automatic_composition): New function.
14924 (composition_adjust_point): Use find_automatic_composition.
14925
14926 * dispextern.h (struct composition_it): New member lookback.
14927
149282008-09-02 Chong Yidong <cyd@stupidchicken.com>
14929
14930 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
14931 if moving by a single line.
14932
149332008-09-02 Andreas Schwab <schwab@suse.de>
14934
14935 * xterm.c (x_delete_display): Fix merge error.
14936
14937 * fileio.c (Fexpand_file_name): Remove unused variables.
14938
149392008-09-02 Eli Zaretskii <eliz@gnu.org>
14940
14941 * fileio.c (Fexpand_file_name): Copy argument `name' into local
14942 storage on all platforms, not just on DOS_NT.
14943
149442008-09-02 Jason Rumney <jasonr@gnu.org>
14945
b8ff72fa
SM
14946 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
14947 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
14948
149492008-09-01 Chong Yidong <cyd@stupidchicken.com>
14950
14951 * xfaces.c (Finternal_set_alternative_font_family_alist)
14952 (Finternal_set_alternative_font_registry_alist): Properly copy
14953 entire alist structure.
14954
149552008-09-01 Kenichi Handa <handa@m17n.org>
14956
d66c0241 14957 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 14958 representative chars of the script is a vector.
d66c0241
JB
14959 (ftfont_list): Handle the case where the representative chars of
14960 the script is a vector.
aac0c6e3
MR
14961
14962 * character.c (syms_of_character): Docstring of
14963 script-representative-chars fixed.
14964
149652008-08-31 Eli Zaretskii <eliz@gnu.org>
14966
14967 * msdos.c (BUILD_CHAR_GLYPH): New macro.
14968 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
14969 the menu. Allocate larger buffer for `text', to account for
14970 possible ^C characters.
14971
149722008-08-31 Martin Rudalics <rudalics@gmx.at>
14973
14974 * xdisp.c (prepare_menu_bars): Don't call
14975 Vwindow_size_change_functions with arg Qt.
14976
149772008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
14978
14979 * font.h (font_range):
14980 * fileio.c (report_file_error):
46e722a9
SM
14981 * composite.c (composition_update_it): Yet another int/Lisp_Object
14982 mixup (YAILOM).
aac0c6e3
MR
14983
149842008-08-30 Glenn Morris <rgm@gnu.org>
14985
14986 * data.c (Fmake_variable_frame_local): Doc fix.
14987
14988 * frame.c (Fmodify_frame_parameters): Doc fix.
14989
149902008-08-30 Eli Zaretskii <eliz@gnu.org>
14991
14992 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
14993 needed by GetTokenInformation.
14994 (w32_system_process_attributes): Check return values of all system
14995 APIs.
14996
14997 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
14998 only when the state changes.
14999 (IT_update_begin, IT_update_end): Add termscript trace.
15000
15001 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
15002 clipboard is unavailable. Set dst to NULL if it doesn't point to
15003 malloc'ed data.
15004 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
15005 passing random values to xfree.
15006
15007 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 15008 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
15009
150102008-08-29 Jason Rumney <jasonr@gnu.org>
15011
15012 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
15013
150142008-08-29 Eli Zaretskii <eliz@gnu.org>
15015
15016 * composite.c (fill_gstring_body): Avoid compiler warnings.
15017
15018 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
15019 LGLYPH_SET_CODE to avoid compiler warnings.
15020
2ae37cf0 15021 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
15022
15023 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
15024
15025 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
15026 LGLYPH_SET_CODE.
15027
150282008-08-29 Kenichi Handa <handa@m17n.org>
15029
15030 * fileio.c (report_file_error): Don't downcase the first character
15031 of errstring if it is still unibyte.
15032
150332008-08-29 Kenichi Handa <handa@m17n.org>
15034
15035 These changes are to re-implement the automatic composition so
15036 that it doesn't use text properties.
15037
15038 * Makefile.in (ftfont.o): Depend on composite.h.
15039 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
15040
15041 * character.h (Vunicode_category_table): Extern it.
15042
15043 * character.c (Vunicode_category_table): New variable.
15044 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
15045
15046 * chartab.c (optimize_sub_char_table): Perform more greedy
15047 optimization.
15048
b8ff72fa
SM
15049 * composite.h (enum composition_method):
15050 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
15051 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
15052 (Vcomposition_function_table): Extern it.
15053 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
15054 (composition_gstring_put_cache, composition_gstring_from_id)
15055 (composition_gstring_p, composition_gstring_width)
15056 (composition_compute_stop_pos, composition_reseat_it)
15057 (composition_update_it, composition_adjust_point): Extern them.
15058 (Fcomposition_get_gstring): EXFUN it.
15059
d66c0241 15060 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
15061 (Vcomposition_function_table)
15062 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
15063 (gstring_hash_table, gstring_work, gstring_work_headers):
15064 New variables.
aac0c6e3
MR
15065 (gstring_lookup_cache, composition_gstring_put_cache)
15066 (composition_gstring_from_id, composition_gstring_p)
15067 (composition_gstring_width, fill_gstring_header)
15068 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
15069 (composition_reseat_it, composition_update_it)
b8ff72fa 15070 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
15071 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
15072 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 15073 Defsubr composition_get_gstring.
aac0c6e3
MR
15074
15075 * dispextern.h (struct glyph): New union u.cmp. Delete the member
15076 cmp_id.
15077 (struct glyph_string): Delete the member gidx. New members
15078 cmp_id, cmp_from, and cmp_to.
15079 (enum it_method): Delete GET_FROM_COMPOSITION.
15080 (struct composition_it): New struct.
15081 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
15082 Delete c, len, cmp_id, cmp_len in u.comp.
15083
15084 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 15085 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 15086 (enum lglyph_indices): Likewise.
b8ff72fa 15087 (font_range): Adjust extern.
aac0c6e3
MR
15088 (font_fill_lglyph_metrics): Extern it.
15089
15090 * font.c (QCf): New variable.
15091 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
15092 (font_prepare_composition): Delete this function.
15093 (font_range): Type and arguments changed.
15094 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
15095 (font_fill_lglyph_metrics): New function.
b8ff72fa 15096 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 15097 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
15098 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
15099 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
15100
15101 * fontset.h (font_for_char): Extern it.
15102
15103 * fontset.c (font_for_char): New function.
15104
15105 * ftfont.c: Include composite.h.
15106 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 15107 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
15108
15109 * indent.c: Include composite.h and dispextern.h.
15110 (check_composition): Delete this function.
15111 (scan_for_column): Handle composition by
15112 composition_compute_stop_pos, composition_reseat_it, and
15113 composition_update_it.
15114 (compute_motion): Likewise.
15115 (Fvertical_motion): Fix checking of composition.
15116
15117 * keyboard.c (adjust_point_for_property): Check composition by
15118 composition_adjust_point.
15119
b8ff72fa 15120 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
15121 struct glyph_string.
15122
b8ff72fa
SM
15123 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
15124 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
15125 struct glyph.
15126 (produce_composite_glyph): Likewise.
15127
b8ff72fa
SM
15128 * w32term.c (x_draw_composite_glyph_string_foreground):
15129 Adjust for the change of struct glyph_string.
aac0c6e3
MR
15130 (x_draw_glyph_string): Likewise.
15131
15132 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
15133 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
15134
15135 * xdisp.c: Include font.h.
15136 (it_props): Delete the entry for Qauto_composed.
15137 (init_iterator): Initialize it->cmp_it.id to -1.
15138 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 15139 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
15140 (handle_auto_composed_prop): Delete it.
15141 (handle_composition_prop): Handle only static composition.
15142 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
15143 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 15144 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
15145 (pop_it): Likewise.
15146 (get_next_element): Delete next_element_from_composition.
15147 (CHAR_COMPOSED_P): New macro.
15148 (get_next_display_element): For automatic composition, get a face
15149 from the font in the glyph-string.
15150 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 15151 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
15152 (next_element_from_string): Check if the character at the current
15153 position is composed by CHAR_COMPOSED_P.
15154 (next_element_from_buffer): Likewise.
d66c0241
JB
15155 (next_element_from_composition): Adjust for the change of struct it.
15156 Update it->cmp_it.
b8ff72fa
SM
15157 (dump_glyph): Adjust for the change of struct glyph.
15158 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
15159 it and struct glyph. Don't handle automatic composition here.
15160 (fill_gstring_glyph_string): New function.
15161 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 15162 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
15163 (BUILD_GSTRING_GLYPH_STRING): New macro.
15164 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
15165 automatic composition.
b8ff72fa 15166 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 15167 struct glyph.
b8ff72fa 15168 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 15169
b8ff72fa 15170 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
15171 the change of struct glyph_string.
15172 (x_draw_glyph_string): Likewise.
15173
151742008-08-29 Glenn Morris <rgm@gnu.org>
15175
15176 * buffer.c (word-wrap): Doc fix.
15177 * xdisp.c (truncate-partial-width-windows): Doc fix.
15178 Increase default to 50.
15179
151802008-08-29 Chong Yidong <cyd@stupidchicken.com>
15181
15182 * xdisp.c (update_tool_bar_unwind): New function.
15183 (update_tool_bar): Temporarily set selected frame before building
15184 tool-bar items.
15185
151862008-08-28 Michael Albinus <michael.albinus@gmx.de>
15187
15188 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
15189 snprintf, respectively.
15190 (xd_append_arg): Convert strings with Fstring_make_unibyte.
15191
151922008-08-28 Chong Yidong <cyd@stupidchicken.com>
15193
15194 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
15195 LDFLAGS to GNUstep CC invocation.
15196
151972008-08-27 Chong Yidong <cyd@stupidchicken.com>
15198
15199 * indent.c (Fvertical_motion): Revert last change. Handle the
15200 general case where we are moving forward, and PT spans multiple
15201 screen lines.
15202
15203 * eval.c (find_handler_clause): Temporarily increase
15204 max-lisp-eval-depth while printing the backtrace buffer, to
15205 guarantee that help-mode code can run.
15206
152072008-08-27 Eli Zaretskii <eliz@gnu.org>
15208
15209 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
15210 colors under -rv.
15211 (IT_set_frame_parameters): Don't swap foreground and background
15212 colors if `(reverse . t)' is present in the frame properties.
15213 (internal_terminal_init): Call init_frame_faces only for the
15214 initial frame.
15215
152162008-08-27 Andreas Schwab <schwab@suse.de>
15217
15218 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
15219
152202008-08-27 Andreas Schwab <schwab@suse.de>
15221
15222 * search.c (search_buffer): Set char_base to zero only at the end.
15223
152242008-08-27 Kenichi Handa <handa@m17n.org>
15225
b8ff72fa 15226 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
15227
152282008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
15229
15230 * xterm.c (x_term_init): Temporarily hide the partially
15231 initialized terminal while calling vendor-specific-keysyms.
15232
152332008-08-26 Eli Zaretskii <eliz@gnu.org>
15234
15235 * msdos.c (internal_terminal_init): Most initializations done only
15236 once, especially initial_screen_colors[] and termscript open.
15237
152382008-08-26 Chong Yidong <cyd@stupidchicken.com>
15239
15240 * eval.c (Fcondition_case): Doc fix.
15241
15242 * widgetprv.h (EmacsFramePart): Change font member to the new font
15243 struct.
15244
15245 * widget.c: Include character.h and font.h for XSETFONT.
15246 (setup_frame_gcs): Compute X font id from font struct, just once.
15247
152482008-08-26 Eli Zaretskii <eliz@gnu.org>
15249
15250 * term.c (get_named_tty): Fix last change.
15251
152522008-08-26 Chong Yidong <cyd@stupidchicken.com>
15253
15254 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 15255 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
15256
152572008-08-25 Eli Zaretskii <eliz@gnu.org>
15258
15259 * frame.c (do_switch_frame): Mark previously displayed frame as
15260 obscured for FRAME_MSDOS_P frames as well.
15261
152622008-08-24 Eli Zaretskii <eliz@gnu.org>
15263
15264 * frame.c (make_terminal_frame): Initialize f->terminal,
15265 f->terminal->reference_count, and scroll bars on MS-DOS as well.
15266 Set the top frame to newly created frame.
15267 (Fmake_terminal_frame): Reuse the_only_display_info.
15268
15269 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
15270 estimating available memory.
15271
b97439ce 152722008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
15273
15274 * nsterm.m (ns_draw_window_cursor): Don't call
15275 NSDisableScreenUpdates and NSEnableScreenUpdates on
15276 non-NS_IMPL_COCOA systems.
15277
152782008-08-23 Andreas Schwab <schwab@suse.de>
15279
15280 * process.c (procfs_system_process_attributes): Fix use of
15281 uninitialized variables.
15282
152832008-08-23 Eli Zaretskii <eliz@gnu.org>
15284
15285 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
15286
15287 * dispnew.c (init_display): Remove MS-DOS specific conditions for
15288 calling tty-set-up-initial-frame-faces.
15289
b8ff72fa
SM
15290 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
15291 Allow MSDOS frames along with X frames.
aac0c6e3
MR
15292
15293 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
15294 addition to output_termcap.
15295
15296 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
15297
15298 * termchar.h (FRAME_TTY): Support output_msdos_raw.
15299 (struct tty_display_info) [MSDOS]: Add fields related to mouse
15300 highlight.
15301
15302 * process.c [!subprocesses]: Define QCname.
15303 (syms_of_process): Intern and staticpro it.
15304
15305 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
15306 Adjust for changes in encoding/decoding routines.
15307 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
15308 encode_coding and decode_coding.
15309
b8ff72fa 15310 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
15311
15312 * dosfns.c: Include frame.h before termhooks.h.
15313 (dos_cleanup): Use CURTTY ()->termscript instead of a global
15314 variable termscript.
15315
15316 * s/msdos.h (USER_FULL_NAME): Define.
15317 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
15318
15319 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
15320 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
15321 pw->pw_gecos.
15322
15323 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
15324 SELECTED_FRAME as additional (1st) argument.
15325 (tty_read_avail_input): Handle output_msdos_raw in
15326 addition to output_termcap.
15327
15328 * msdos.c: Include frame.h before termhooks.h.
15329 (mouse_on, mouse_off, mouse_moveto, mouse_init)
15330 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
15331 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
15332 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
15333 (IT_set_terminal_modes, IT_reset_terminal_modes)
15334 (IT_set_frame_parameters): Use tty->termscript instead of a global
15335 variable termscript.
15336 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
15337 global variable terminal_coding. Don't refer to
15338 Vnonascii_translation_table.
15339 (internal_terminal_init): Set Vwindow_system in current_kboard.
15340 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
15341 Announce date and time of session start, if termscript is open.
15342 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
15343 term.c:init_tty). Open termscript only of not already open.
15344 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
15345 here instead of dos_ttraw. Don't initialize display if this is an
15346 initial tty. Don't set FRAME_FONT.
15347 (Vwindow_system_version): Bump to 23.
15348 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
15349 is available, set up mouse_position_hook.
15350 (dos_ttraw, IT_set_terminal_modes): If called with initial
15351 terminal, do nothing.
15352 (IT_set_frame_parameters): Handle the Qtty_type frame
15353 parameter by calling internal_terminal_init.
15354 (dos_set_window_size, show_mouse_face)
15355 (clear_mouse_face, IT_note_mode_line_highlight)
15356 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
15357 (dos_rawgetc): Use tty_display_info instead of x_display_info.
15358 (initialize_msdos_display): New function.
15359 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
15360 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
15361 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
15362 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 15363 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
15364 (request_sigio, unrequest_sigio): Don't define, now defined on
15365 sysdep.c.
15366 (IT_write_glyphs): Rewrite to use encode_terminal_code.
15367
15368 * term.c [MSDOS]: Include msdos.h.
15369 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
15370 conditional to DOS_NT. Allow only one call to this function in a
15371 session. Don't allocate a new struct tty_display_info; instead,
15372 reuse the_only_display_info. Call get_tty_size to get screen
15373 dimensions. Call init_baud_rate to set bad_rate.
15374 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
15375 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 15376 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
15377 (get_tty_terminal, get_named_tty, Ftty_type)
15378 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
15379 output_termcap.
b8ff72fa
SM
15380 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
15381 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 15382 only when subprocesses are supported.
aac0c6e3
MR
15383
15384 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
15385 f->output_data.x.
15386 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
15387 terminal devices.
15388
5582fbc7 15389 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
15390 x_output.
15391 (FRAME_FONT): Use output_data.tty.
15392 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
15393 (struct x_display_info): Rename from display_info. Update all users in
15394 msdos.c.
aac0c6e3 15395 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 15396 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
15397 (dos_ttraw): Update prototype.
15398
15399 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
15400 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
15401
154022008-08-23 Jason Rumney <jasonr@gnu.org>
15403
15404 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
15405 (fn_TIFFSetDirectory): New library function used.
15406 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
15407 (tiff_load): Use :index to select among multiple images. Set count
15408 property when multiple images exist.
15409 (gif_format): Use :index, not :image.
15410
154112008-08-23 Chong Yidong <cyd@stupidchicken.com>
15412
15413 * xdisp.c (try_scrolling): Check INT_MAX instead of
15414 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
15415 to obtain INT_MAX.
15416
154172008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
15418
15419 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
15420
154212008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
15422
15423 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
15424 GNUstep library location.
15425
154262008-08-21 Chong Yidong <cyd@stupidchicken.com>
15427
15428 * xfaces.c (x_update_menu_appearance): Check validity of menu font
15429 before using it.
15430
15431 * puresize.h (BASE_PURESIZE): Increase to 1250000.
15432
154332008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
15434
15435 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
15436 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
15437 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
15438 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
15439 (EmacsApp-cursor_blink_handler): Remove declaration.
15440 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
15441 match 01 Feb 2008 changes in xterm.c.
15442 (ns_read_socket): Add cast to avoid warning.
15443 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
15444 GNUstep.
15445
154462008-08-20 Chong Yidong <cyd@stupidchicken.com>
15447
15448 * xselect.c (x_get_foreign_selection): Return nil if desired
15449 selection could not be obtained, instead of signalling an error.
15450
154512008-08-20 David Reitter <david.reitter@gmail.com>
15452
15453 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
15454 * nsterm.m: Remove ns-specific code for cursor blinking.
15455 (ns_draw_window_cursor): Clear cursor properly rather than
15456 redrawing the area. Respect width of bar cursors.
15457 These changes enable the use of generic blink-cursor-mode and
15458 generic cursor types in NS and support smooth cursor movements (do
15459 not blink off after command).
15460 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
15461 Nextstep, too.
15462
154632008-08-19 Kenichi Handa <handa@m17n.org>
15464
15465 * font.c (Vfont_log_deferred): New variable.
15466 (font_add_log): Check Vfont_log_deferred.
15467 (font_deferred_log): New function.
15468
15469 * font.h (font_deferred_log): Extern it.
15470
15471 * fontset.c (reorder_font_vector): Use encoding charset of fonts
15472 for sorting.
15473 (face_for_char): Use deferred log.
15474
154752008-08-18 Kenichi Handa <handa@m17n.org>
15476
15477 * fontset.c (face_for_char): Add font log.
15478
15479 * font.c (font_add_log): Add the font properties :script, :lang,
15480 and :otf in the log.
15481
154822008-08-17 Chong Yidong <cyd@stupidchicken.com>
15483
15484 * xdisp.c: Remove dead code.
15485 (handle_invisible_prop, next_overlay_string): Defer call to
15486 setup_for_ellipsis.
15487 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
15488
154892008-08-15 Chong Yidong <cyd@stupidchicken.com>
15490
15491 * xfaces.c (lookup_derived_face): Properly handle possible zero
15492 return value of get_lface_attributes.
15493 (merge_faces): Don't tell lookup_derived_face to signal an error
15494 if face is not found.
15495
15496 * dired.c (Fdirectory_files): Doc fix.
15497
15498 * process.c (make_process): Initialize kill_without_query struct
15499 member.
15500
155012008-08-15 Eli Zaretskii <eliz@gnu.org>
15502
15503 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
15504 Alternative calculation of totphys for Visual Studio 6.
15505
15506 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
15507
15508 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
15509 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
15510 All users changed.
15511 (stat): Only root directory passed to GetDriveType. Allow RAM
15512 disk as well as local fixed disk when w32-get-true-file-attributes
15513 is set to `local'.
15514 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
15515 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
15516 (w32_cached_id, w32_add_to_cache): New functions.
15517 (get_name_and_id): Look account names in the cache before calling
15518 lookup_account_sid.
15519 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
15520 New initialization flags.
15521 (globals_of_w32): Initialize them to zero.
15522 (w32_system_process_attributes): Use w32_cached_id and
15523 w32_add_to_cache.
15524
155252008-08-14 Lawrence Mitchell <wence@gmx.li>
15526
15527 * lread.c (Fread_char, Fread_char_exclusive): If no character
15528 event is read before timeout is reached, return nil, rather than
15529 converting to a number.
15530
155312008-08-14 Chong Yidong <cyd@stupidchicken.com>
15532
15533 * fns.c (use_dialog_box): Doc fix.
15534
15535 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
15536 on OS X.
15537
155382008-08-13 Chong Yidong <cyd@stupidchicken.com>
15539
15540 * frame.c (Qns_parse_geometry): New var.
15541 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
15542
155432008-08-11 Chong Yidong <cyd@stupidchicken.com>
15544
15545 * xdisp.c (x_produce_glyphs): Handle the case when font has no
15546 space character in calculating tabs.
15547
155482008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
15549
15550 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
15551
155522008-08-10 Glenn Morris <rgm@gnu.org>
15553
15554 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
15555 silence gcc "limited range of data type" warnings in some
15556 make_fixnum_or_float calls.
15557
155582008-08-09 Eli Zaretskii <eliz@gnu.org>
15559
15560 * w32.c (w32_system_process_attributes): If the process does not
15561 exist, return nil.
15562
15563 * w32.c: Include thelp32.h, psapi.h and coding.h.
15564 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
15565 declarations.
15566 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
15567 (Process32Next_Proc): New typedefs.
15568 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
15569 (g_b_init_process32_next, g_b_init_open_thread_token)
15570 (g_b_init_impersonate_self, g_b_init_revert_to_self)
15571 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
15572 (g_b_init_get_process_working_set_size)
15573 (g_b_init_global_memory_status_ex): New static variables.
15574 (globals_of_w32): Initialize them.
15575 (create_toolhelp32_snapshot, process32_first, process32_next)
15576 (open_thread_token, impersonate_self, revert_to_self)
15577 (get_process_memory_info, get_process_working_set_size)
15578 (global_memory_status, global_memory_status_ex): New wrapper
15579 functions.
15580 (w32_list_system_processes, w32_system_process_attributes)
15581 (enable_privilege, restore_privilege, ltime, process_times):
15582 New functions.
15583 (convert_time_raw): New function.
15584 (convert_time): Remove conversion of FILETIME into time in 100
15585 nsec units, call convert_time_raw instead.
15586
15587 * process.h (w32_list_system_processes, w32_system_process_attributes):
15588 Add prototypes.
15589 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
15590 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
15591 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
15592 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
15593
15594 * process.c (Fsystem_process_attributes): Doc fix.
15595
155962008-08-08 Chong Yidong <cyd@stupidchicken.com>
15597
15598 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
15599 a continued multi-char glyph; if so, advance to the actual glyph.
15600
156012008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
15602
15603 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
15604
15605 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
15606 (.m.o): Use it.
15607 * config.in: Regenerate.
15608
156092008-08-07 Chong Yidong <cyd@stupidchicken.com>
15610
15611 * xdisp.c (redisplay_window): Revert last change.
15612 (try_window): Check bottom scroll margin too.
15613
156142008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
15615
15616 * config.in: Regenerate.
15617
15618 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
15619 -list-load-path-shadows'.
15620 (nsgui.h): Reduce number of things depending on it.
15621
156222008-08-06 Chong Yidong <cyd@stupidchicken.com>
15623
15624 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
15625 instead of window-end which does the wrong thing at eob.
15626 (try_cursor_movement): Minor optimization.
15627 (redisplay_window): If scroll margin is defined, don't assume
15628 window doesn't need scrolling.
15629
156302008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
15631
15632 * config.in: Regenerate.
15633
15634 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
15635 (mostlyclean): Don't delete *.d under NS.
15636
15637 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
15638
156392008-08-06 Kenichi Handa <handa@m17n.org>
15640
15641 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
15642
156432008-08-06 Andreas Schwab <schwab@suse.de>
15644
15645 * config.in: Regenerate.
15646
156472008-08-05 Chong Yidong <cyd@stupidchicken.com>
15648
15649 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
15650 forcing a window start.
15651
15652 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
15653 (auto_save_1): Update modtime when auto-save-list-file-name is on.
15654
156552008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
15656
15657 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
15658 argument.
15659
156602008-08-05 Juanma Barranquero <lekktu@gmail.com>
15661
15662 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
15663 <scroll-down-aggressively, before-change-functions>:
15664 <after-change-functions>: Reflow docstrings.
15665
156662008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 15667 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
15668
15669 Dock menu customization, based on a patch by Ken Raeburn, plus some
15670 other fixes.
15671 * nsmenu.m (dockMenu): New variable.
15672 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
15673
15674 * nsterm.h (dockMenu): Declare.
15675
15676 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
15677 (ns_term_init): Initialize dockMenu.
15678 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
15679 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
15680 left.
15681
15682 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
15683
156842008-08-04 Chong Yidong <cyd@stupidchicken.com>
15685
15686 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
15687
15688 * config.in: Regenerate.
15689
156902008-08-04 Seiji Zenitani <zenitani@mac.com>
15691
15692 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
15693
156942008-08-04 Chong Yidong <cyd@stupidchicken.com>
15695
15696 * nsterm.h (find_and_call_menu_selection): Fix prototype.
15697
156982008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
15699
15700 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
15701
15702 * keyboard.h: Comment an #endif.
15703
15704 * lisp.h (have_menus_p): Adjust comment.
15705
15706 * menu.c (find_and_return_menu_selection): Fix comparison with
15707 client_data.
15708
15709 * nsmenu.m (popup_activated_flag): New variable.
15710 (popup_activated): New function.
15711 (menu-or-popup-active-p): New exported lisp definition.
15712 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
15713 when popup done.
15714 (ns_popup_dialog): Set popup_activated_flag.
15715
15716 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
15717 version for GNUstep (handled by conditional typedef in nsterm.m).
15718 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
15719 in rgb.txt).
15720
15721 * process.c (init_process): Use DARWIN_OS, not DARWIN.
15722
15723 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
15724
15725 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
15726
15727 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
15728 shortcircuit if popup_activated like GTK and X toolkit.
15729
15730 * m/inter386.h: Change DARWIN to DARWIN_OS.
15731
15732 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
15733 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
bba3e508
SM
15734 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood.
15735 Expand comment on NO_SOCK_SIGIO.
aac0c6e3
MR
15736
157372008-08-03 Chong Yidong <cyd@stupidchicken.com>
15738
15739 * nsterm.m (windowDidResize): Remove stopModal call.
15740
157412008-08-03 Andreas Schwab <schwab@suse.de>
15742
15743 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
15744 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
15745
157462008-08-02 Chong Yidong <cyd@stupidchicken.com>
15747
15748 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
15749 Don't use uninitialized pointer variable when using getrlimit.
15750
157512008-08-02 Jason Rumney <jasonr@gnu.org>
15752
15753 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
15754
157552008-08-02 Eli Zaretskii <eliz@gnu.org>
15756
15757 * alloc.c (NSTATICS): Bump to 0x640.
15758
15759 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
15760
15761 * lisp.h: Add prototype for directory_files_internal.
15762
15763 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
15764 New functions.
15765 (syms_of_process): Defsubr them. Add initializations for various
15766 Q* symbols used in procfs_system_process_attributes.
15767 (procfs_list_system_processes, procfs_system_process_attributes)
15768 [HAVE_PROCFS]: New functions.
15769 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
15770 (procfs_get_total_memory): New functions.
15771
157722008-08-01 Juanma Barranquero <lekktu@gmail.com>
15773
15774 * xfaces.c (Fx_load_color_file): Fix previous change;
15775 it is #ifdef WINDOWSNT, not WINDOWS_NT.
15776
157772008-08-01 Michael Albinus <michael.albinus@gmx.de>
15778
15779 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
15780
157812008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
15782
15783 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
15784
157852008-08-01 Chong Yidong <cyd@stupidchicken.com>
15786
15787 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
15788
15789 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
15790 define NSApplicationDelegateReplySuccess.
15791 (EmacsView -converstationIdentifier): Use long instead of
15792 NSInteger for GNUstep, since it doesn't have NSInteger.
15793
15794 * xmenu.c: Revert last change.
15795
15796 * keyboard.h: Fix last change.
15797
157982008-08-01 Juanma Barranquero <lekktu@gmail.com>
15799
15800 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
15801 on Windows.
15802
158032008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
15804
15805 Warning clearing and clean-up in NS port.
15806 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
15807 Add prototypes.
15808 * nsgui.h (FACE_DEFAULT): Remove, unused.
15809 (XGCValues): Change colors to unsigned long.
15810 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
15811 nsterm.m.
15812 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
15813 (ns_list_fonts): Remove, unused.
15814 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
15815 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
15816 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
15817 (nsfont_draw): Compare face colors to 0, not nil.
15818 * nsmenu.m (struct widget_value): Drop unneeded declaration.
15819 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
15820 (-addSubmenuWithTitle:): Use NSMenuItem class.
15821 (ns_popup_menu): Use NO, not NULL, for enabled setting.
15822 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
15823 (ns_clip_to_row): Make gc arg a BOOL.
15824 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
15825 ns_clip_to_row() call.
15826 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
15827 used). Cast FRAME_FONT assignments.
15828 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
15829 (ns_string_to_lispmod): Change arg to const char.
15830 (ns_term_init): Use NSMenuItem class.
15831 (EmacsApp -openFile:): Move to different section of file.
15832 (EmacsApp -application:openFiles:): Don't return a value, call
15833 -replyToOpenOrPrint:.
15834 (EmacsView -keyDown:): Fix up cast.
15835 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
15836 (EmacsView -menuDown:): Cast tag in call to
15837 find_and_call_menu_selection().
15838 (ns_list_fonts): Remove, unused.
15839 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
15840 (ns_fontname_to_xlfd): Make static.
15841 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
15842 Remove prototypes (now in keyboard.h).
15843 (next_menubar_widget_id): Remove, unused.
15844 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
15845 Remove prototypes (now in keyboard.h).
15846 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
15847
158482008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
15849
15850 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
15851 (floatfns.o): Depend on syssignal.h.
15852 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
15853
15854 * systty.h: Fix previous change that removed BSD_TERMIOS.
15855 Add comments to #ifdefs.
15856
158572008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
15858
15859 * w32fns.c (w32-load-color-file): Remove.
15860 (x-open-connection): Use renamed Fx_load_color_file.
15861 * xfaces.c (x-load-color-file): Add.
15862 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
15863 Emacs.clr.
15864 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
15865
158662008-07-31 Michael Albinus <michael.albinus@gmx.de>
15867
15868 * dbusbind.c (Fdbus_call_method_asynchronously)
15869 (Fdbus_method_error_internal): New defuns.
15870 (xd_read_message): Handle also reply messages.
15871 (Vdbus_registered_functions_table): Extend docstring.
15872
158732008-07-31 Juanma Barranquero <lekktu@gmail.com>
15874
15875 * keyboard.c (gobble_input): Fix previous change.
15876
158772008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
15878
15879 * bitmaps/README:
15880 * xfns.c:
15881 * termcap.c:
15882 * term.c:
15883 * syswait.h:
15884 * systty.h:
15885 * systime.h:
15886 * syssignal.h:
15887 * sysdep.c:
15888 * process.h:
15889 * process.c:
15890 * print.c:
15891 * ndir.h:
15892 * lread.c:
15893 * keyboard.c:
15894 * getpagesize.h:
15895 * floatfns.c:
15896 * fileio.c:
15897 * emacs.c:
15898 * doc.c:
15899 * dispnew.c:
15900 * dired.c:
15901 * data.c:
15902 * callproc.c:
15903 * buffer.c:
15904 * README:
15905 * Makefile.in:
15906 * s/template.h:
15907 * s/msdos.h:
15908 * m/vax.h: Remove VMS support.
15909 * s/vms.h:
15910 * vlimit.h:
15911 * uaf.h:
15912 * temacs.opt:
15913 * param.h:
15914 * ioctl.h: Remove file.
15915
159162008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
15917
15918 * s/ms-w32.h (MULTI_KBOARD): Remove.
15919 * xterm.c:
15920 * xselect.c:
15921 * xfns.c:
15922 * window.c:
15923 * w32term.c:
15924 * w32fns.c:
15925 * terminal.c:
15926 * termhooks.h:
15927 * term.c:
15928 * sysdep.c:
15929 * keyboard.h:
15930 * keyboard.c:
15931 * frame.h:
15932 * frame.c:
15933 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
15934 * config.in: Regenerate.
15935
159362008-07-30 Jason Rumney <jasonr@gnu.org>
15937
15938 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
15939
15940 * w32font.c (w32font_encode_char): Leave as unicode if in range.
15941 (w32font_open_internal): Get unicode version of textmetrics.
15942 Don't enable or disable glyph indices here.
15943 (w32font_open): Disable use of glyph indices.
15944
15945 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
15946
159472008-07-30 Chong Yidong <cyd@stupidchicken.com>
15948
15949 * minibuf.c (Vread_buffer_function): Doc fix.
15950
159512008-07-30 John Paul Wallington <jpw@pobox.com>
15952
15953 * minibuf.c (read_buffer_completion_ignore_case): New var.
15954 (Fread_buffer): Use it.
15955
159562008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
15957
15958 * systty.h (sensemode): Remove empty #if. Remove reference to
15959 BSD_TERMIOS, unused.
15960
15961 * sysdep.c: Remove reference to DGUX.
15962 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
15963
15964 * config.in: Regenerate.
15965
159662008-07-30 Jason Rumney <jasonr@gnu.org>
15967
15968 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
15969
159702008-07-29 Jason Rumney <jasonr@gnu.org>
15971
15972 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
15973 is populated.
15974 (uniscribe_encode_char): Always use uniscribe.
15975 Avoid using context if cache is populated.
15976
159772008-07-29 Jan Djärv <jan.h.d@swipnet.se>
15978
15979 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
15980 open menu.
15981
15982 * gtkutil.c (menu_nav_ended): Remove.
15983 (create_menus): Remove signal connect for menu_nav_ended.
15984
159852008-07-28 Chong Yidong <cyd@stupidchicken.com>
15986
15987 * xdisp.c (redisplay_window): Check return value of
15988 compute_window_start_on_continuation_line before forcing a window
15989 start.
15990
159912008-07-28 Jason Rumney <jasonr@gnu.org>
15992
15993 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
15994
15995 * w32term.c (w32_enable_unicode_output, cleartype_active):
15996 Remove obsolete display options.
15997 (x_draw_glyph_string_background): Don't use old cleartype_active
15998 workaround.
15999 (w32_initialize): Remove cleartype_active initialization.
16000 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
16001
160022008-07-28 Andreas Schwab <schwab@suse.de>
16003
16004 * lisp.h (init_weak_hash_tables, syms_of_font)
16005 (xd_read_queued_messages, syms_of_dbusbind): Declare.
16006 (remove_hash_entry): Don't declare.
16007 * eval.c (maybe_call_debugger): Make static and move before use.
16008 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
16009 * xdisp.c: Include "gtkutil.h" if USE_GTK.
16010 * xterm.h (x_set_frame_alpha): Declare.
16011
160122008-07-28 Jan Djärv <jan.h.d@swipnet.se>
16013
16014 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
16015 (create_menus): Connect selection-done to menu_nav_ended.
16016
160172008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
16018
16019 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
16020 Set Vx_resource_name to a fallback. Replace read of 'buffered'
16021 parameter with read of 'alpha' one.
16022 (Qns_frame_parameter): Remove.
5582fbc7 16023 * nsselect.m (selection-coding-system)
aac0c6e3
MR
16024 (next-selection-coding-system, Vselection_coding_system)
16025 (Vnext_selection_coding_system): Drop.
16026
160272008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
16028
16029 * nsfns.m (do-applescript, do_applescript): Rename to
16030 ns-do-applescript, ns_do_applescript, and move within file.
16031
160322008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
16033
16034 Remove support for Mac Carbon.
16035 * mactoolbox.c:
16036 * macterm.h:
16037 * macterm.c:
16038 * macselect.c:
16039 * macmenu.c:
16040 * macgui.h:
16041 * macfns.c:
16042 * mac.c: Remove file.
16043 * s/darwin.h:
16044 * m/intel386.h:
16045 * xfaces.c:
16046 * xdisp.c:
16047 * window.c:
16048 * tparam.c:
16049 * termhooks.h:
16050 * termcap.c:
16051 * term.c:
16052 * syssignal.h:
16053 * sysselect.h:
16054 * sysdep.c:
16055 * process.c:
16056 * lread.c:
16057 * lisp.h:
16058 * keyboard.c:
16059 * image.c:
16060 * fringe.c:
16061 * frame.h:
16062 * frame.c:
16063 * fontset.c:
16064 * font.h:
16065 * font.c:
16066 * fns.c:
16067 * fileio.c:
16068 * emacs.c:
16069 * dispnew.c:
16070 * dispextern.h:
16071 * config.in:
16072 * atimer.c:
2ae37cf0 16073 * Makefile.in: Remove code for Carbon.
aac0c6e3 16074
f0131492 160752008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
16076
16077 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
16078
160792008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16080
16081 * macterm.h (kCGBitmapByteOrder32Host): New define for
16082 non-universal SDKs.
16083
16084 * image.c (mac_create_cg_image_from_image, image_load_image_io)
16085 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
16086
16087 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
16088 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
16089
160902008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
16091
16092 * w32inevt.c: Include dispextern.h.
16093
160942008-07-26 Andreas Schwab <schwab@suse.de>
16095
16096 * print.c (print_object): Fix off-by-one in last change.
16097
160982008-07-25 Juanma Barranquero <lekktu@gmail.com>
16099
16100 * term.c (syms_of_term): Don't initialize default_orig_pair,
16101 default_set_foreground and default_set_background on Windows.
16102
161032008-07-25 Jason Rumney <jasonr@gnu.org>
16104
16105 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
16106 ScriptItemize. Clean up return value checking. Remove unused
16107 variables.
16108 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
16109 shaping engine.
16110
16111 * w32font.c (w32font_has_char): Handle the case where we can't
16112 determine the script for a character.
16113
161142008-07-25 Chong Yidong <cyd@stupidchicken.com>
16115
16116 * term.c (syms_of_term): Initialize default_orig_pair,
16117 default_set_foreground, and default_set_background.
16118
16119 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
16120 clash (bug#86).
16121 (getloadavg): Callers changed.
16122
16123 * image.c (svg_load_image): Fix last change.
16124 (svg_load_image): Use rsvg_handle_get_dimensions to check that
16125 image size is valid. Use g_object_unref instead of deprecated
16126 rsvg_handle_free to free rsvg handle.
16127 (x_from_xcolors): Don't initialize pixmap (silence compiler).
16128
161292008-07-25 Jason Rumney <jasonr@gnu.org>
16130
16131 * w32font.c (w32font_encode_char): Encode characters outside BMP as
16132 surrogates before looking up glyph index.
16133 (w32font_text_extents): Encode as surrogates if falling back to
16134 functions that need UTF-16 wide chars.
16135
16136 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
16137 BMP as surrogates before looking up glyph index.
16138
161392008-07-25 Chong Yidong <cyd@stupidchicken.com>
16140
16141 * image.c (svg_load_image): Check for failure in return value of
16142 rsvg_handle_get_pixbuf. Free rsvg handle when done.
16143
161442008-07-25 Jason Rumney <jasonr@gnu.org>
16145
16146 * w32font.c (Fx_select_font): Reverse sense of second arg.
16147
161482008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
16149
16150 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
16151 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
16152
16153 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
16154 (PURESIZE): Use it.
16155
161562008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
16157
16158 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
16159 * m/alpha.h (TEXT_END):
16160 * m/ibmrs6000.h (TEXT_END):
16161 * m/macppc.h (TEXT_END):
16162 * s/darwin.h (TEXT_END):
16163 * s/msdos.h (TEXT_END): Remove, unused.
16164 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
16165 * s/cygwin.h: Remove comment.
16166
16167 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
16168 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
16169 * m/intel386.h (DOT_GLOBAL_START):
16170 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
16171 (USG): Remove, file not used on USG platforms.
16172
16173 * Makefile.in (HAVE_X11): Remove empty #else.
16174
161752008-07-24 Andreas Schwab <schwab@suse.de>
16176
16177 * fileio.c (Finsert_file_contents): Properly adjust undo list
16178 after format conversion.
16179
161802008-07-24 Jan Djärv <jan.h.d@swipnet.se>
16181
16182 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
16183 (menu_nav_ended): Remove.
16184 (create_menus): Remove signal connect for menu_nav_ended.
16185 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
16186 create_menus.
16187 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
16188
161892008-07-23 Jason Rumney <jasonr@gnu.org>
16190
16191 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
16192 with opened font.
16193 (w32font_open): Set font type to gdi.
16194
16195 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
16196
161972008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
16198
16199 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
16200 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
16201 defines it.
16202 * unexec.c (ADDR_CORRECT): Define unconditionally.
16203
16204 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
16205
16206 * unexec.c: Remove code depending on !COFF and USG, the file is
16207 not used for such systems.
16208
16209 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
16210 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
16211 (LD_SWITCH_SYSTEM_1): Remove, update users.
16212
16213 * s/darwin.h (DATA_END):
16214 * m/intel386.h (DATA_END):
16215 * m/ibmrs6000.h (DATA_END):
16216 * m/alpha.h (DATA_END): Remove, unused.
16217
16218 * config.in: Regenerate.
16219 * s/ms-w32.h (subprocesses): Define unconditionally.
16220 * s/template.h (subprocesses): Update comment.
16221 * s/vms.h (subprocesses):
16222 * s/usg5-4.h (subprocesses):
16223 * s/hpux10-20.h (subprocesses):
16224 * s/gnu-linux.h (subprocesses):
16225 * s/cygwin.h (subprocesses):
16226 * s/bsd-common.h (subprocesses):
16227 * s/aix4-2.h (subprocesses):
16228 * s/darwin.h (subprocesses): Do not define, defined by default now.
16229
16230 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
16231 Remove all references.
16232 (temacs): Add GNUstep specific ld flags.
16233
16234 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
16235 similarly to what X does.
16236
162372008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
16238
16239 * nsfns.m (x-list-fonts): Remove.
16240 (syms_of_nsfns): Drop the x-list-fonts declaration.
16241 * nsterm.m: Get rid of remaining "//" comments.
16242
162432008-07-22 Chong Yidong <cyd@stupidchicken.com>
16244
16245 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
16246
16247 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
16248 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
16249 (Fns_own_selection_internal, Fx_disown_selection_internal)
16250 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
16251
16252 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
16253 ... */' style of docstrings. Doc fixes.
16254
162552008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
16256
16257 * terminfo.c (UP, BC, PC): Undo previous change.
16258
16259 * nsfns.m: Rename ns prefixed functions/variables to the
16260 corresponding x versions. Update references.
16261
162622008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
16263
16264 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
16265
162662008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
16267
16268 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
16269 Remove forwarding functions.
16270 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
16271 non-static.
16272 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
16273 non-static.
16274 (ns_frame_parm_handlers): Use the new names.
16275 (syms_of_nsfns): Move to the end of file.
16276
16277 * nsterm.m (syms_of_nsterm): Move to the end of file.
16278
16279 * dispnew.c (init_display): Remove code for X10.
16280
162812008-07-22 Jason Rumney <jasonr@gnu.org>
16282
16283 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
16284 bare drive.
16285
162862008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
16287
16288 * nsterm.m (syms_of_nsterm): Remove debugging println.
16289
162902008-07-22 David Reitter <david.reitter@gmail.com>
16291
16292 * nsfns.m (do_applescript, F_do_applescript): NS version of the
16293 Carbon implementation of the same functionality: execute arbitrary
16294 AppleScript code.
16295
162962008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
16297
16298 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
16299 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
16300 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
16301 (Fx_display_mm_height, Fx_display_mm_width)
16302 (Fx_display_backing_store, Fx_display_visual_class)
16303 (Fx_display_save_under, Fx_open_connection)
16304 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
16305 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
16306 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
16307 (Fx_display_pixel_width, Fx_display_pixel_height)
16308 (Fx_display_usable_bounds, Fx_display_planes)
16309 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
16310 ... */' style of docstrings.
16311
163122008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
16313
16314 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
16315 on this platform.
16316 (mips):
16317 * m/iris4d.h (mips): Do not define.
16318 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
16319
16320 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
16321
16322 * image.c:
16323 * nsfns.m:
16324 * nsselect.m:
16325 * nsterm.h:
16326 * nsterm.m: Rename ns prefixed functions/variables to the
16327 corresponding x versions. Update references.
16328
16329 * m/ibms390x.h (NO_REMAP): Do not undefine.
16330
16331 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
16332
163332008-07-21 Chong Yidong <cyd@stupidchicken.com>
16334
16335 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
16336 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
16337 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
16338 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
16339 (Fns_display_mm_height, Fns_display_mm_width)
16340 (Fns_display_backing_store, Fns_display_visual_class)
16341 (Fns_display_save_under, Fns_open_connection)
16342 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
16343 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
16344 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
16345 (Fns_display_pixel_width, Fns_display_pixel_height)
16346 (Fns_display_usable_bounds, Fx_display_planes)
16347 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
16348
163492008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
16350
16351 * print.c (print_object): Check print_depth before searching for
16352 circularities.
16353
163542008-07-21 Michael Albinus <michael.albinus@gmx.de>
16355
16356 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
16357 only sprintf.
16358
163592008-07-21 Kenichi Handa <handa@m17n.org>
16360
16361 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
16362
163632008-07-20 Andreas Schwab <schwab@suse.de>
16364
16365 * syntax.c (find_start_pos, find_start_value)
16366 (find_start_value_byte, find_start_begv, find_defun_start)
16367 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
16368
163692008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
16370
16371 * s/sol2-3.h: Insert contents of s/sol2.h.
16372 (LD_SWITCH_SYSTEM): Remove redundant definition.
16373 * s/sol2.h: Remove, unused.
16374
163752008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
16376
16377 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
16378
163792008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
16380
16381 * Makefile.in (ns_appdir): Fix typo in find command.
16382
163832008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
16384
16385 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
16386
16387 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
16388 added not supported anymore.
16389
16390 * s/usg5-4-2.h (LIBS_SYSTEM):
16391 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
16392
16393 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
16394 * s/lynxos.h (GETPGRP_NO_ARG):
16395 * s/hpux10-20.h (NO_SIOCTL_H):
16396 * s/gnu.h (GETPGRP_NO_ARG):
16397 * s/gnu-linux.h (NO_SIOCTL_H):
16398 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
16399 * s/cygwin.h (GETPGRP_NO_ARG):
16400 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
16401 (C_DEBUG_SWITCH): Remove duplicate definition.
16402
16403 * m/ibms390.h: Remove boilerplate comments.
16404
16405 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
16406
16407 * process.c (HAVE_SERIAL): Consolidate ifdefs.
16408 (wait_reading_process_output): Remove code for SunOS, platform not
16409 supported anymore. Use SOLARIS2 instead of sun.
16410
164112008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
16412
16413 * font.c (font_open_by_name): Under NS, default lface height to zero.
16414 (font_open_for_lface): Under NS, set size based on frame fontsize.
16415 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
16416 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
16417
164182008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
16419
16420 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
16421 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
16422 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
16423 YES/NO.
16424 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
16425 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
16426 * Makefile.in (clean): Clear out build destination dir.
16427
164282008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
16429
16430 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
16431 xterm, xselect.
16432 * lisp.h: Remove declaration of hash_remove.
16433 * nsgui.h: Remove redefinitions of hash_remove.
16434 * fns.c (hash_remove): Rename to hash_remove_from_table.
16435
164362008-07-19 Seiji Zenitani <zenitani@mac.com>
16437
16438 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
16439 strdup() the family UTF8String before modifying it.
16440
164412008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
16442
16443 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
16444 NS_FACE_BACKGROUND with 0 instead of nil.
16445 * nsfont.m (nsfont_draw): Same.
16446
164472008-07-19 Chong Yidong <cyd@stupidchicken.com>
16448
16449 * nsfns.m (ns_set_background_color): Fix crash.
16450
164512008-07-18 Chong Yidong <cyd@stupidchicken.com>
16452
16453 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
16454
164552008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
16456
16457 * puresize.h (BASE_PURESIZE): Increase to 1240000.
16458
164592008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16460
16461 * gtkutil.c: Include <config.h> instead of "config.h".
16462
16463 * lisp.h (Foverlay_buffer): Add EXFUN.
16464
16465 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
16466 child process to complete child_setup. Undo 2005-09-21 change.
16467
16468 * s/darwin.h: Mention setsid after vfork.
16469
164702008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16471
16472 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
16473 Depend on macgui.h.
16474
16475 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
16476 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
16477
16478 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
16479 and f19.
16480 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
16481
16482 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
16483 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
16484 Remove enumerators.
16485
16486 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
16487 Check if FACE_FROM_ID returns NULL.
16488
164892008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
16490
16491 * w32inevt.c (change_frame_size): Remove extern declaration.
16492 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
16493 change_frame_size.
16494
164952008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
16496
16497 * getloadavg.c: Revert last change (2008-07-15).
16498
164992008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
16500
16501 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 16502 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
16503 from configure.
16504
165052008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
16506
16507 * s/sol2.h:
16508 * s/sol2-4.h: Reorganize conditionals.
16509
16510 * ecrt0.c: Remove code depending on m68000, not used anymore.
16511
16512 * fns.c (hash_remove): Make static.
16513 * lisp.h (hash_remove): Don't prototype.
16514
16515 * m/ibmrs6000.h:
16516 * m/ibms390x.h:
16517 * m/macppc.h: Remove boilerplate comments.
16518
16519 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
16520 Solaris, which does not need them.
16521
16522 * m/vax.h: Remove comments about unsupported systems.
16523
16524 * s/darwin.h: Reorganize ifdefs.
16525
165262008-07-17 Andreas Schwab <schwab@suse.de>
16527
16528 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
16529
165302008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
16531
16532 Use SDATA. Follow coding convention of placing operators at
16533 beginning of next line rather than end of previous line, and placing
16534 spaces around infix operators.
16535
16536 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
16537 in case it was defined already.
16538 USE @GNUSTEP_MAKEFILES@ rather than envvars.
16539 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
16540 ns_default.
16541 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
16542 Lisp_Objects.
16543 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
16544 (ns_defined_color, ns_color_to_lisp): Declare.
16545 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
16546 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
16547 it's accepted even with USE_LISP_UNION_TYPE.
16548 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
16549 (update_frame_tool_bar): Remove apparently obsolete tests for
16550 non-integerness of f->tool_bar_lines.
16551 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
16552 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
16553 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
16554 (nsfont_open): Don't confuse NULL for Qnil.
16555 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
16556 * menu.h (find_and_call_menu_selection):
16557 * menu.c (find_and_call_menu_selection): Use just int for vector size.
16558 (find_and_return_menu_selection): Always return something.
16559 * frame.h: Include dispextern.h for Display_Info.
16560 (display_x_get_resource): Declare.
16561
165622008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
16563
16564 * syntax.c: Remove stdio.h include accidentally introduced in
16565 Emacs.app commit.
16566 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
16567 NS_IMPL_COCOA.
16568 * keyboard.c (handle_async_input, input_available_signal): Remove
16569 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
16570
165712008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
16572
16573 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
16574 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
16575 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
16576 Use SDATA.
16577
16578 * keymap.c: Remove all NS-specific code.
16579 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
16580 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
16581 where_is_preferred_modifier, return a different value depending on how
16582 preferred is the binding.
16583 (where_is_internal): Adjust accordingly.
16584 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
16585 Adjust to new preferred_sequence_p.
16586 (syms_of_keymap): Declare `where-is-preferred-modifier'.
16587 * keyboard.c (parse_solitary_modifier): Not static any more.
16588 * keyboard.h (parse_solitary_modifier): Declare.
16589
165902008-07-16 Andreas Schwab <schwab@suse.de>
16591
16592 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
16593 of easymenu.
16594
165952008-07-16 Chong Yidong <cyd@stupidchicken.com>
16596
16597 * xdisp.c (move_it_in_display_line): Account for word wrap, so
16598 that we don't move off the line.
16599
166002008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
16601
16602 * keyboard.c (Qsuper): Remove.
16603 (parse_menu_item): Don't call where_is_internal specially for NS.
16604
166052008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
16606
16607 * s/gnu-linux.h: Remove boilerplate comments.
16608
16609 * m/alpha.h (__ELF__): Consolidate conditions.
16610
16611 * m/m68k.h (linux): Use GNU_LINUX instead.
16612 Remove boilerplate comments.
16613
16614 * m/intel386.h: Undo refactoring from previous change.
16615 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
16616 too, remove dead code.
16617 (linux): Use GNU_LINUX instead.
16618
166192008-07-16 Jason Rumney <jasonr@gnu.org>
16620
16621 * w32gui.h: Repeat 26 June changes lost by last change.
16622
166232008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
16624
16625 * systty.h: Remove code for Aix on 386, unsupported platform.
16626
16627 * s/ms-w32.h: Remove boilerplate comments.
16628 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
16629
16630 * s/gnu-linux.h (TERM): Remove support.
16631 (HAVE_SYSVIPC): Remove, unused.
16632 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
16633 for this system.
16634
16635 * process.c: Remove support for IRIS, unused.
16636 Remove support for TERM, not relevant anymore.
16637
16638 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
16639 used with the definition.
16640
16641 * s/aix4-2.h (static): Do not undef.
16642
16643 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
16644 only used on Aix.
16645 (HAVE_SYSVIPC): Remove, unused.
16646
16647 * m/hp800.h (CANNOT_DUMP): Do not undef.
16648
16649 * m/alpha.h: Fix comment.
16650
16651 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
16652 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
16653 used by this configuration.
16654 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
16655 * unexec.c: Remove code depending on HPUX and
16656 USG_SHARED_LIBRARIES, not used with this file. Remove code
16657 depending on IRIS, unused. Remove if 0-ed code.
16658
16659 * s/template.h: Remove comments about static.
16660
16661 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
16662 Remove if 0-ed code.
16663 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
16664 were the same as the default.
16665 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
16666 Remove boilerplate comments.
16667 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
16668 (HAVE_SYSVIPC): Remove, unused.
16669 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
16670
16671 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
16672 Remove boilerplate comments.
16673 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
16674 Remove boilerplate comments.
16675 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
16676 Remove boilerplate comments.
16677 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
16678
16679 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
16680 USG systems which do not use DATA_SEG_BITS.
16681 Refactor code. Remove boilerplate comments.
16682
16683 * m/ibms390.h:
16684 * m/m68k.h:
16685 * s/bsd-common.h:
16686 * s/cygwin.h:
16687 * s/darwin.h:
16688 * s/freebsd.h:
16689 * s/gnu.h:
16690 * s/msdos.h: Remove boilerplate comments.
16691
16692 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 16693 do not use this file.
aac0c6e3
MR
16694 (IRIS_4D): Remove, unused.
16695
16696 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 16697 do not use this file.
aac0c6e3
MR
16698 (SIGN_EXTEND_CHAR):
16699 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
16700 * unexmips.c: Remove file, unused.
16701
16702 * editfns.c (Fuser_full_name): Replace the only use of
16703 USER_FULL_NAME with its value.
16704 * config.in: Regenerate.
16705
167062008-07-16 David Reitter <david.reitter@gmail.com>
16707
16708 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
16709 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
16710
167112008-07-16 Glenn Morris <rgm@gnu.org>
16712
16713 * emacs.c (system-type): Doc fix.
16714
167152008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
16716
16717 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
16718 If the cache doesn't work, let's fix it, rather than work around it.
16719
167202008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
16721
16722 * Makefile.in: Correct additions for nsfont.o in last commit.
16723 * nsfont.m: New file (forgot last commit).
16724
167252008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
16726
bba3e508
SM
16727 * callproc.c (set_initial_environment):
16728 Initialize Vprocess_environment under CANNOT_DUMP (fixes crash when
aac0c6e3
MR
16729 batch-compiling for bootstrap).
16730
167312008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 16732 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 16733
c4cc8b9a
JB
16734 * frame.c (make_initial_frame): Call init_frame_faces(f) in
16735 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
16736
167372008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
16738
16739 Changes and additions for NeXTstep windowing system (Cocoa and
16740 GNUstep) support.
16741
16742 * Makefile.in:
16743 * config.in: Support defines and build commands for NS port.
16744 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
16745 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
16746 * dispextern.h: Include nsgui.h and add needed typedefs under NS
16747 windowing.
16748 (struct face): Add synth_ital field.
16749 * dispnew.c: Include nsterm.h when compiling under NS windowing.
16750 (init_display): Initialize Vinitial_window_system to "ns" when so
16751 compiled.
16752 * emacs.c: Include GSConfig.h when compiling under GNUstep.
16753 (display_arg): Use under NS.
16754 (main): Under NS, allocate autorelease pool and handle command line
16755 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
16756 (standard_args): Add NS-specific args.
16757 (shut_down_emacs): Shut down NS terminal if compiled under NS.
16758 * font.c (DEFAULT_ENCODING): New variable.
16759 (font_find_for_lface): Use it.
16760 (syms_of_font): Load syms_of_nsfont under NS.
16761 * font.h: Declare nsfont_driver when compiled under NS.
16762 * fontset.c: When compiling under NS, include nsterm.h.
16763 (fontset_from_font): Autoconstruct fontset under NS.
16764 * frame.c (various): Under NS, include nsterm.h, add Qns window system
16765 symbol, document and use it.
16766 (do_switch_frame): When for_deletion under Cocoa, add
16767 Fraise_frame(Qnil).
16768 (x_set_frame_parameters): Ensure font attribute changes are picked up.
16769 (x_get_arg): Allow "yes" and "no" as boolean values.
16770 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
16771 Qright under Cocoa.
16772 (focus-follows-mouse): Default to 0 under NS.
16773 * frame.h (enum output_method): Add output_ns.
16774 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
16775 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
16776 (FRAME_WINDOW_P): NS-specific definition.
16777 * fringe.c (max_used_fringe_bitmap): Make public.
16778 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
16779 (getloadavg): Use NeXT code under descendant OS's.
16780 * image.c (includes and header section, x_create_bitmap_from_data)
16781 (x_create_bitmap_from_file, free_bitmap_record, image_background)
16782 (image_background_transparent, x_clear_image_1)
16783 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
16784 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
16785 (x_to_xcolors, x_from_xcolors, x_disable_image)
16786 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
16787 other GUIs, including XPM support using code originally written for
16788 Carbon GUI.
16789 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
16790 using NS API.
16791 (image_ascent): Use font metrics macros instead of direct struct field
16792 access.
16793 * keyboard.c (includes): Add nsterm.h when compiling under NS.
16794 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
16795 Also, handle NS as GTK for menu bar purposes.
16796 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
16797 toolkit where they differ.
16798 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
16799 use cachelist, still needed under NS.
16800 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
16801 (struct widget_value): Define it here for menu.c.
16802 * keymap.c (includes): Include modifier internals.
16803 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
16804 NS.
16805 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
16806 support for preferring sequences using certain modifiers, specified by
16807 the FIRSTONLY argument.
16808 * lisp.h (hash_remove): Rename to avoid name clash when compiling
16809 under NS GNUstep implementation.
16810 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
16811 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
16812 * menu.c: Include nsterm.h under NS.
16813 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
16814 (free_menubar_widget_tree_value, update_submenu_strings)
16815 (find_and_call_menu_selection): Treat NS as X and NT.
16816 (find_and_return_menu_selection): New function, used for popup menus.
16817 * nsgui.h:
16818 * nsterm.h:
16819 * nsfns.m:
16820 * nsimage.m:
16821 * nsmenu.m:
16822 * nsselect.m:
16823 * nsterm.m: New files.
16824 * process.c (wait_reading_process_output): Under NS, call ns_select()
16825 instead of plain select().
16826 * syntax.c (char_quoted): Under NS, avoid a crash when called near
16827 beginning of buffer.
16828 * sysselect.h (init_process): Rename when compiling under Cocoa to
16829 avoid name conflict.
16830 * termhooks.h (display_info): Add ns_display_info to union.
16831 * terminal.c (Fterminal_live_p): Add ns to terminal types.
16832 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
16833 COCOA environment.
16834 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
16835 unexec() signature. (Note, this will dump, but the resulting file
16836 crashes; unexosx is used instead; keeping around for reference and
16837 possible aid in getting dump working under GNUstep.)
16838 * w32gui.h (button_type, widget_value): Remove definitions (now in
16839 keyboard.h).
16840 * window.c: Include nsterm.h when compiling under NS.
16841 * xdisp.c (includes): Include nsterm.h when compiling under NS.
16842 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
16843 other GUI windowing systems.
16844 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
16845 GTK.
16846 (x_consider_frame_title): Under NS, set icon type and frame
16847 modified-state indicator; use ns_set_name_as_filename() when using
16848 formatted title.
16849 (update_window_cursor): Make public when compiling under NS.
16850 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
16851 (hourglass_atimer, Vhourglass_delay
16852 * xfaces.c (header section, init_frame_faces, clear_font_table)
16853 (defined_color, unload_color, x_face_list_fonts)
16854 (prepare_face_for_display): Add NS support parallel to other GUIs.
16855 Emulate GCs like other non-X GUIs.
16856 (split_font_name): Don't lowercase font name under NS.
16857 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
16858 under NS.
16859 * s/darwin.h: Add support for compilation under NS.
16860
168612008-07-15 Jason Rumney <jasonr@gnu.org>
16862
16863 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
16864 (w32_show_hourglass): Rename from show_hourglass.
16865 (w32_hide_hourglass): Rename from hide_hourglass.
16866 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
16867 (Vhourglass_delay): Declare extern.
16868 (hourglass_started): Remove.
16869
16870 * xdisp.c (Vhourglass_delay): Remove static.
16871 (hourglass_started, start_hourglass, cancel_hourglass):
16872 Don't include these versions on WINDOWSNT.
16873
168742008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
16875
16876 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
16877 variables (formerly in xfns.c).
16878 (show_hourglass, hide_hourglass): New prototypes (same).
16879 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
16880 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
16881 in xfns.c).
16882 (syms_of_xdisp): Declare/initialize display-hourglass,
16883 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
16884 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
16885 formerly in xfns.c.
16886 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
16887 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
16888 (start_hourglass, cancel_hourglass): Remove.
16889 (show_hourglass, hide_hourglass): Remove prototypes and static
16890 modifiers.
16891 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
16892 hourglass_atimer, hourglass_shown_p declaration/initialization.
16893 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
16894 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
16895 (start_hourglass, cancel_hourglass): Remove.
16896 (show_hourglass, hide_hourglass): Remove prototypes and static
16897 modifiers.
16898 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
16899 hourglass_atimer, hourglass_shown_p declaration/initialization.
16900 * w32fns.c (display_hourglass_p, Vhourglass_delay)
16901 (DEFAULT_HOURGLASS_DELAY): Remove.
16902 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
16903 hourglass_shown_p declaration/initialization.
16904
169052008-07-14 Jason Rumney <jasonr@gnu.org>
16906
16907 * w32fns.c (w32_get_arg): Remove wrapper function.
16908 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
16909 directly.
16910 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
16911
169122008-07-14 Kenichi Handa <handa@m17n.org>
16913
16914 * xfont.c (xfont_open): Add workaround for X's bug.
16915
169162008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
16917
16918 * fontset.c: Include <stdio.h> unconditionally.
16919
169202008-07-13 Michael Albinus <michael.albinus@gmx.de>
16921
16922 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
16923 for filtering.
16924
169252008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
16926
16927 * s/vms.h: Use __GNUC__ instead of _GNUC_.
16928
16929 * m/macppc.h:
16930 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
16931
c4cc8b9a 16932 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
16933 (SPECIAL_EMACS_INT):
16934 * m/ia64.h (SPECIAL_EMACS_INT):
16935 * m/amdx86-64.h (SPECIAL_EMACS_INT):
16936 * s/gnu.h (NLIST_STRUCT):
16937 * s/aix4-2.h (X11R5_INHIBIT_I18N):
16938 * s/gnu-linux.h (LINUX):
16939 * s/msdos.h (HAVE_FACES):
16940 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
16941
16942 * systty.h:
16943 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
16944 anymore.
16945
169462008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
16947
16948 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
16949 always defined as int.
16950
16951 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
16952 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
16953 * s/gnu-linux.h (HAVE_WAIT_HEADER):
16954 * s/freebsd.h (HAVE_WAIT_HEADER):
16955 * s/bsd-common.h (HAVE_UNION_WAIT):
16956 * s/aix4-2.h (HAVE_WAIT_HEADER):
16957 * m/mips.h (HAVE_UNION_WAIT):
16958 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
16959 (COFF, static): Do not define, they are undefined later in the file.
16960
16961 * process.c (update_status): Don't use a union.
16962 (status_convert):
16963 (sigchld_handler): Use int instead of WAITTYPE.
16964
169652008-07-12 Chong Yidong <cyd@stupidchicken.com>
16966
16967 * indent.c (Fvertical_motion): Restore hscroll before moving to
16968 goal column.
16969
169702008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
16971
16972 * lisp.h: Remove left over code.
16973
169742008-07-11 Andreas Schwab <schwab@suse.de>
16975
16976 * lisp.h: Fix logic in last change.
16977
16978 * menu.h: New file.
16979 * menu.c: Include it.
16980 * xmenu.c: Likewise.
16981 * Makefile.in: Update dependencies.
16982
169832008-07-11 Kenichi Handa <handa@m17n.org>
16984
16985 * fontset.c (fontset_from_font): Cancel the previous change.
16986
169872008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
16988
16989 * lisp.h:
16990 * w32heap.c:
16991 * emacs.c:
16992 * alloc.c: Replace all references of NO_UNION_TYPE with
16993 USE_LISP_UNION_TYPE.
16994
16995 * m/xtensa.h (NO_UNION_TYPE):
16996 * m/vax.h (NO_UNION_TYPE):
16997 * m/template.h (NO_UNION_TYPE):
16998 * m/sparc.h (NO_UNION_TYPE):
16999 * m/mips.h (NO_UNION_TYPE):
17000 * m/macppc.h (NO_UNION_TYPE):
17001 * m/m68k.h (NO_UNION_TYPE):
17002 * m/iris4d.h (NO_UNION_TYPE):
17003 * m/intel386.h (NO_UNION_TYPE):
17004 * m/ibms390x.h (NO_UNION_TYPE):
17005 * m/ibms390.h (NO_UNION_TYPE):
17006 * m/ibmrs6000.h (NO_UNION_TYPE):
17007 * m/ia64.h (NO_UNION_TYPE):
17008 * m/hp800.h (NO_UNION_TYPE):
17009 * m/arm.h (NO_UNION_TYPE):
17010 * m/amdx86-64.h (NO_UNION_TYPE):
17011 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
17012 defining it the same.
17013
170142008-07-10 Chong Yidong <cyd@stupidchicken.com>
17015
17016 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
17017
170182008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
17019
17020 * fileio.c:
50426a04 17021 * sysdep.c:
aac0c6e3
MR
17022 * systty.h:
17023 * m/ibmrs6000.h:
17024 * m/iris4d.h:
17025 * s/aix4-2.h:
17026 * s/freebsd.h:
17027 * s/gnu-linux.h:
17028 * s/hpux10-20.h:
17029 * s/hpux11.h:
17030 * s/netbsd.h:
17031 * s/sol2-3.h:
17032 * s/sol2-4.h:
17033 * s/sol2.h:
17034 * s/usg5-4.h:
17035 * s/vms.h: Remove references to unused variables.
17036
170372008-07-10 Andreas Schwab <schwab@suse.de>
17038
17039 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
17040 pattern before matching the generic family.
17041
170422008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
17043
17044 * unexec.c:
17045 * s/vms.h:
17046 * s/usg5-4-2.h:
17047 * s/sol2-5.h:
17048 * s/freebsd.h:
17049 * s/darwin.h: Remove dead code.
17050
17051 * m/template.h:
17052 * m/sparc.h:
17053 * m/mips.h:
17054 * m/m68k.h:
17055 * m/iris4d.h:
17056 * m/intel386.h:
17057 * m/ibms390x.h:
17058 * m/ibms390.h:
17059 * m/ia64.h:
17060 * m/hp800.h:
17061 * m/arm.h:
17062 * m/amdx86-64.h: Remove dead code and references to unused
17063 and compiler defined symbols.
17064
17065 * unexmips.c:
17066 * unexelf.c: Remove references to desupported systems.
17067
17068 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
17069
17070 * m/powermac.h: Remove boilerplate comments.
17071 (NO_REMAP): Remove unused definition.
17072
17073 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
17074 define them.
17075
170762008-07-10 Kenichi Handa <handa@m17n.org>
17077
17078 * xfont.c (xfont_open): Log the reason of failure.
17079
170802008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
17081
17082 * fontset.c (fontset_get_font_group):
17083 * font.c (font_check_otf): Specify argument types.
17084
170852008-07-09 Kenichi Handa <handa@m17n.org>
17086
17087 * coding.c (detect_coding_utf_8): Set detect_info->found only when
17088 non-ASCII char is found.
17089
17090 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
17091 (reorder_font_vector): Change the arg preferred_family to font.
17092 Prefer the spec matching with font.
17093 (fontset_get_font_group): New function.
17094 (fontset_find_font): Change the format of an element of a realized
17095 fontset. Use fontset_get_font_group.
17096 (fontset_font): Try the current fontset, the default fontset, the
17097 fallbacks of the current fontset, and the fallbacks of the default
17098 fontset in this order.
17099 (face_for_char): Delete the shortcut to use the current font.
17100 (fontset_from_font): Don't set fonts for Latin in the fontset.
17101
17102 * font.h (font_make_object, font_match_p): Adjust prototypes.
17103
17104 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
17105
17106 * font.c (font_make_object): New arg entity and pixelsize.
17107 (font_check_otf_features, font_check_otf): New functions.
17108 (font_match_p): Check :lang, :script, and :otf properties.
17109
17110 * xfont.c (xfont_open): Adjust it for the change of
17111 font_make_object.
17112 (xfont_text_extents): Fix initial setting of metrics.
17113
17114 * ftfont.c (struct ftfont_info): New member index, delete member
17115 fc_charset_idx. Make the member order compatible with struct
17116 xftfont_info.
17117 (fc_charset_table): Change charset names to registry names.
17118 (ftfont_pattern_entity): Delete the args registry and
17119 fc_charset_idx. Change the value of :font-entity property
17120 to (FONTNAME . INDEX). Always set :registry property to
17121 `iso10646-1'.
17122 (struct ftfont_cache_data): New struct.
17123 (ftfont_lookup_cache): New arg for_face.
17124 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
17125 (ftfont_driver): Set the member otf_capability.
17126 (ftfont_get_charset): Adjust it for the change of
17127 fc_charset_table.
17128 (OTF_TAG_SYM): New macro.
17129 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
17130 for the change of fc_charset_table.
17131 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
17132 ftfont_pattern_entity. Add FC_INDEX to objset.
17133 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
17134 and ftfont_pattern_entity.
17135 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
17136 font_make_object, struct ftfont_info.
17137 (ftfont_has_char): Use ftfont_get_fc_charset.
17138 (ftfont_otf_features, ftfont_otf_capability): New functions.
17139 (ftfont_shape): Use ftfont_get_otf.
17140 (ftfont_text_extents): Fix initial setting of metrics.
17141
17142 * xftfont.c (struct xftfont_info): New member ft_size. Make the
17143 member order compatible with struct ftfont_info.
bba3e508
SM
17144 (xftfont_open): Add FC_CHARSET to the pattern.
17145 Set xftfont_info->ft_size. Don't unlock the face. Check BDF
aac0c6e3
MR
17146 properties if appropriate.
17147 (xftfont_close): Unlock the face.
17148 (xftfont_anchor_point, xftfont_shape): Deleted.
17149 (syms_of_xftfont): Don't set members anchor_point and shape of
17150 xftfont_driver.
17151
17152 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
17153 font_make_object.
17154
17155 * w32font.c (w32font_open): Adjust it for the change of
17156 font_make_object.
17157 (w32font_open_internal): Don't set properties of font_object here.
17158
171592008-07-08 Chong Yidong <cyd@stupidchicken.com>
17160
17161 * macfns.c (x_create_tip_frame):
17162 * w32fns.c (x_create_tip_frame):
17163 * xfns.c (x_create_tip_frame): Pass parameter argument to
17164 face-set-after-frame-default.
17165
17166 * xfaces.c (Finternal_merge_in_global_face): Save merged
17167 attributes for the default face back into the face vector.
17168
171692008-07-08 Andreas Schwab <schwab@suse.de>
17170
17171 * fontset.h: Declare fontset_from_font. Don't declare
17172 new_fontset_from_font and fontset_from_font_name.
17173 * xterm.c: Include "fontset.h".
17174 * Makefile.in (xterm.o): Update dependencies.
17175
171762008-07-08 Glenn Morris <rgm@gnu.org>
17177
17178 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
17179 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
17180
171812008-07-07 Chong Yidong <cyd@stupidchicken.com>
17182
17183 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
17184 (x_set_frame_parameters): Don't bind it.
17185
171862008-07-07 Juanma Barranquero <lekktu@gmail.com>
17187
17188 * w32fns.c (map_w32_filename): Declare extern.
17189
171902008-07-07 Jason Rumney <jasonr@gnu.org>
17191
17192 * w32term.c (WS_EX_LAYERED): Define if not already.
17193
171942008-07-06 Chong Yidong <cyd@stupidchicken.com>
17195
17196 * xfaces.c (set_font_frame_param): Don't try to set the font
17197 parameter if it is still unspecified in the lface.
17198
171992008-07-05 Chong Yidong <cyd@stupidchicken.com>
17200
17201 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
17202 face if it didn't already exist.
17203
17204 * xdisp.c (try_window_id): Give up if word-wrapping is on.
17205
172062008-07-05 Andreas Schwab <schwab@suse.de>
17207
17208 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
17209
172102008-07-05 Chong Yidong <cyd@stupidchicken.com>
17211
17212 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
17213 word-wrapping.
17214 (IT_DISPLAYING_WHITESPACE): New macro.
17215 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
17216 when word-wrapping. Simplify word-wrapping logic. Use correct
17217 pixel positions when saving copies of the iterator.
17218 (display_line): Use proper wrap point if the last character on a
17219 line was preceded by whitespace.
17220
172212008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
17222
17223 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
17224
172252008-07-04 Kenichi Handa <handa@m17n.org>
17226
17227 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
17228
17229 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
17230
172312008-07-02 Jason Rumney <jasonr@gnu.org>
17232
17233 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 17234 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
17235
17236 * xdisp.c (next_element_from_display_vector): Move assignment out
17237 of if statement.
17238
172392008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
17240
17241 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
17242
17243 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
17244 (syms_of_fileio): Initialize and export them.
17245 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
17246
17247 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
17248 (Fsystem_move_file_to_trash): New function.
17249 (syms_of_w32fns): Export it to lisp.
17250
172512008-07-01 Jason Rumney <jasonr@gnu.org>
17252
17253 * w32font.c (w32font_text_extents): Don't count overhang as part
17254 of width.
17255
172562008-06-30 Miles Bader <miles@gnu.org>
17257
17258 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
17259 Add `avoid_cursor_p' field.
17260
17261 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
17262 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
17263 (append_glyph, append_composite_glyph, produce_image_glyph)
17264 (append_stretch_glyph): Initialize avoid_cursor_p.
17265 (get_it_property): Rename from `get_line_height_property'.
17266 (x_produce_glyphs): Use get_it_property.
17267 (handle_line_prefix, push_display_prop): New functions.
17268 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
17269 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
17270 New variables.
17271 (syms_of_xdisp): Initialize them.
17272
172732008-06-30 Kenichi Handa <handa@m17n.org>
17274
17275 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
17276 XftDefaultSubstitute (they are called in XftFontMatch).
17277 (xftfont_open): Fix args to ftfont_font_format.
17278
17279 * ftfont.c (fc_charset_table): New member lang.
17280 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 17281 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
17282 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
17283 (ftfont_open): Fix args to ftfont_font_format.
17284 (ftfont_font_format): New arg filename.
17285
172862008-06-30 Chong Yidong <cyd@stupidchicken.com>
17287
17288 * xfaces.c (Finternal_merge_in_global_face): If default face was
17289 modified, realize it again. Update the font face attribute.
17290
172912008-06-29 Jason Rumney <jasonr@gnu.org>
17292
17293 * w32term.c (x_set_frame_alpha): Fix logic.
17294
172952008-06-29 Kenichi Handa <handa@m17n.org>
17296
17297 * fontset.c (Finternal_char_font): Return font-object instead of
17298 font-name.
17299
17300 * composite.c (get_composition_id): Fix the width calculation for TAB.
17301
173022008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
17303
17304 * indent.c (Fvertical_motion): Properly handle float column arg.
17305
173062008-06-28 Jason Rumney <jasonr@gnu.org>
17307
17308 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
17309 (pfnSetLayeredWindowAttributes): New function pointer.
17310 (w32_initialize): Initialize it when supported.
17311 (x_set_frame_alpha): New function.
17312
17313 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
17314 (w32_frame_parm_handlers): Set alpha handler.
17315
17316 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
17317
173182008-06-27 Jason Rumney <jasonr@gnu.org>
17319
17320 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
17321 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
17322 (w32_to_x_charset, x_to_w32_charset)
17323 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
17324 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
17325 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
17326 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
17327 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
17328 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
17329 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
17330 (Qw32_charset_unicode): Remove.
17331 (syms_of_w32fns): Update for above changes.
17332
17333 * w32font.c (w32_to_x_charset, x_to_w32_charset)
17334 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
17335 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
17336 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
17337 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
17338 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
17339 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
17340 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
17341 (syms_of_w32font): Update for above changes.
17342
173432008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
17344
17345 * s/usg5-4.h: Fix previous change: keep the correct branch of a
17346 removed #if.
17347 (USG_SHARED_LIBRARIES): Remove duplicate definition.
17348
173492008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 17350 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
17351
17352 * makefile.w32-in (LOCAL_FLAGS):
17353 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
17354
17355 * sysdep.c (_spawnlp, _getpid):
17356 Declare with explicit _cdecl instead of _CRTAPI1.
17357
17358 * editfns.c (Fget_internal_run_time):
17359 Check for WINDOWSNT with #ifdef, not #if.
17360
173612008-06-26 Jason Rumney <jasonr@gnu.org>
17362
17363 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
17364
17365 * w32term.c (x_draw_glyph_string_foreground)
17366 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
17367 Use FONT_HANDLE macro.
17368 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
17369
17370 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
17371 (uniscribe_encode_char): Use FONT_HANDLE macro.
17372
17373 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
17374 (w32font_text_extents): Use precast w32_font.
17375 (w32font_close): Free cached metrics.
17376 (w32font_open_internal): Allocate space for name on stack.
17377
173782008-06-26 Chong Yidong <cyd@stupidchicken.com>
17379
17380 * xdisp.c (extend_face_to_end_of_line): Fix last change.
17381
173822008-06-26 Jason Rumney <jasonr@gnu.org>
17383
17384 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
17385 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
17386
173872008-06-26 Juanma Barranquero <lekktu@gmail.com>
17388
17389 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
17390
173912008-06-26 Jason Rumney <jasonr@gnu.org>
17392
17393 * w32bdf.c, w32bdf.h: Remove obsolete files.
17394
17395 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
17396
17397 * w32gui.h: Don't include w32bdf.h.
17398 (XCharStruct, enum w32_char_font_type, W32FontStruct):
17399 Remove obsolete font support.
17400
17401 * w32font.h (struct w32font_info): Remove compat_w32_font.
17402 Add hfont member.
17403 (FONT_COMPAT): Remove obsolete macro.
17404
17405 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
17406 (w32font_encode_char, w32font_text_extents): Use new hfont member.
17407 (w32font_open_internal): Remove compat code. Set new hfont member.
17408 (Fx_select_font): Use new hfont member.
17409
17410 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
17411 (uniscribe_encode_char): Use new hfont member.
17412
17413 * w32term.c (x_draw_glyph_string_foreground)
17414 (x_draw_composite_glyph_string_foreground): Use new hfont member.
17415 (x_draw_glyph_string): Use metrics in w32font_info.
17416
174172008-06-26 Kenichi Handa <handa@m17n.org>
17418
17419 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
17420
174212008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
17422
17423 * unexnext.c:
17424 * m/ews4800.h:
17425 * m/hp9000s300.h:
17426 * m/ibm370aix.h:
17427 * m/mips-siemens.h:
17428 * m/ncr386.h:
17429 * m/next.h:
17430 * m/pmax.h:
17431 * m/powerpcle.h:
17432 * m/tandem-s2.h:
17433 * s/386bsd.h:
17434 * s/bsd386.h:
17435 * s/bsd4-1.h:
17436 * s/bsd4-2.h:
17437 * s/bsdos2-1.h:
17438 * s/bsdos2.h:
17439 * s/bsdos3.h:
17440 * s/bsdos4.h:
17441 * s/nextstep.h:
17442 * s/ultrix4-3.h:
17443 * s/usg5-0.h:
17444 * s/usg5-2-2.h:
17445 * s/usg5-2.h:
17446 * s/usg5-4-3.h:
17447 * s/ux4800.h:
17448 * s/uxpds.h:
17449 * s/uxpv.h: Remove support for obsolete systems.
17450 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 17451 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
17452 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
17453 Remove, insert contents in s/aix4-2.h.
17454 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
17455 * s/bsd4-3.h: Rename to ...
17456 * s/bsd-common.h: ... this.
17457 * data.c:
17458 * doc.c:
17459 * ecrt0.c:
17460 * emacs.c:
17461 * fileio.c:
17462 * floatfns.c:
17463 * keyboard.c:
17464 * mem-limits.h:
17465 * print.c:
17466 * process.c:
17467 * sysdep.c:
17468 * syssignal.h:
17469 * systty.h:
17470 * syswait.h:
17471 * term.c:
17472 * unexec.c:
17473 * unexelf.c:
17474 * unexhp9k800.c:
17475 * m/hp800.h:
17476 * m/ibmrs6000.h:
17477 * m/mips.h:
17478 * m/vax.h:
17479 * s/darwin.h:
17480 * s/freebsd.h:
17481 * s/gnu.h:
17482 * s/ms-w32.h:
17483 * s/msdos.h:
17484 * s/netbsd.h:
17485 * s/template.h: Remove references to obsolete variables.
17486
17487 * Makefile.in: Add dependencies for all unexec files.
17488 (admindir): Remove unused variable.
17489 (UNEXEC_SRC): Remove references.
17490
174912008-06-25 Chong Yidong <cyd@stupidchicken.com>
17492
17493 * xfns.c (x_default_font_parameter): If Xft is available, first
17494 try Monospace-12 for the default font.
17495
174962008-06-25 Jason Rumney <jasonr@gnu.org>
17497
17498 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
17499
175002008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
17501
17502 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
17503
17504 * buffer.c (syms_of_buffer): Remove default-word-wrap.
17505
175062008-06-25 Juanma Barranquero <lekktu@gmail.com>
17507
17508 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
17509 <scroll-conservatively>: Fix typo in docstring.
17510
17511 * xselect.c (Fx_send_client_event): Doc fix.
17512
175132008-06-25 Kenichi Handa <handa@m17n.org>
17514
17515 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
17516
17517 * font.c (font_parse_fcname): Remove unused variables.
17518 (font_sort_entites): Delete the arg SPEC. Caller changed.
17519 Fix for the case of ! best_only.
17520 (font_delete_unmatched): Check DPI and AVGWIDTH too.
17521
17522 * lisp.h (Fstring_to_unibyte): EXFUN it.
17523
17524 * character.h (str_to_unibyte): Extern it.
17525
17526 * character.c (str_to_unibyte): New function.
17527
17528 * fns.c (Fstring_to_unibyte): New function.
17529 (syms_of_fns): Defsubr it.
17530
175312008-06-24 Kenichi Handa <handa@m17n.org>
17532
17533 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
17534 DPI too.
17535 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
17536
175372008-06-24 Andreas Schwab <schwab@suse.de>
17538
17539 * Makefile.in (${lispsource}loaddefs.el): Rename from
17540 ../lisp/loaddefs.el.
17541 (bootstrap-clean): Do what distclean does but don't remove
17542 Makefile.
17543 (distclean): Depend on bootstrap-clean and remove Makefile.
17544
175452008-06-24 Chong Yidong <cyd@stupidchicken.com>
17546
17547 * buffer.h (struct buffer): New member word_wrap.
17548
17549 * buffer.c (syms_of_buffer): New variables default-word-wrap and
17550 word-wrap.
17551 (init_buffer_once): Initialize them.
17552
17553 * dispextern.h (struct it): Replace bool truncate_lines_p with a
17554 line_wrap enum possessing three possible values.
17555
17556 * termopts.h: Replace truncate_partial_width_windows with
17557 Vtruncate_partial_width_windows.
17558
17559 * dispnew.c (direct_output_for_insert): Avoid direct output when
17560 inserting a space with word wrap on.
17561
17562 * indent.c (compute_motion): Obey integer values of
17563 truncate-partial-width-windows.
17564
17565 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
17566 replacing truncate_partial_width_windows.
17567 (init_iterator): If Vtruncate_partial_width_windows is an integer,
17568 truncate only if the window width is below that integer.
17569 (start_display, resize_mini_window, produce_stretch_glyph)
17570 (display_string, move_it_in_display_line_to): Use line_wrap.
bba3e508
SM
17571 (back_to_previous_visible_line_start, reseat_1):
17572 Reset string_from_display_prop_p.
aac0c6e3
MR
17573 (display_line): Extend default face to end of line when wrapping.
17574
175752008-06-24 Kim F. Storm <storm@cua.dk>
17576
17577 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
17578 to wrap continued lines at word boundaries.
17579
175802008-06-24 Jason Rumney <jasonr@gnu.org>
17581
17582 * font.c (Ffont_face_attributes): Multiply pixel size before point
17583 conversion to avoid multiplying rounding error.
17584
175852008-06-23 Jason Rumney <jasonr@gnu.org>
17586
17587 * w32term.c (x_draw_glyph_string_background)
17588 (x_draw_glyph_string): Remove old bdf font code.
17589
17590 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
17591
175922008-06-22 Kenichi Handa <handa@m17n.org>
17593
17594 * font.c (font_find_for_lface): Try the adstyle specified in
17595 the property of LFACE_FONT of LFACE (if any).
17596
175972008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 17598 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
17599
17600 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
17601
176022008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
17603
17604 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
17605 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
17606 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
17607 (witness-emacs): Remove.
17608 (lisp, shortlisp): Move loaddefs.el earlier.
17609 (mostlyclean): Forget about witness-emacs.
17610
176112008-06-22 Glenn Morris <rgm@gnu.org>
17612
17613 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
17614 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
17615
176162008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
17617
17618 * Makefile.in (PRECOMP): Remove.
17619 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
17620 (witness-emacs): Run `compile-first'.
17621 (.el.elc): Use the new compile-onefile target.
17622
176232008-06-21 Kenichi Handa <handa@m17n.org>
17624
17625 * xftfont.c (xftfont_open): Handle QCembolden only when
17626 FC_EMBOLDEN is defined.
17627
176282008-06-21 Andreas Schwab <schwab@suse.de>
17629
17630 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
17631 (.el.elc): Likewise.
17632
176332008-06-21 Miles Bader <miles@gnu.org>
17634
17635 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
17636 build dir, not the lisp source dir.
17637
176382008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
17639
17640 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
17641 (bootstrapclean): Remove.
17642 (.el.elc): New rule.
17643 (PRECOMP): New var.
17644 (../lisp/subdirs.el): Remove.
17645 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
17646 (witness-emacs): New target.
17647 (mostlyclean): Remove witness-emacs as well.
17648 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
17649 Add witness-emacs dependency.
17650
176512008-06-20 Chong Yidong <cyd@stupidchicken.com>
17652
17653 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
17654 defined by the font.
17655
176562008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
17657
17658 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
17659 (bootstrap-clean): New target that keeps TAGS around.
17660 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
17661 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
17662
176632008-06-20 Jason Rumney <jasonr@gnu.org>
17664
17665 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
17666 Remove obsolete font code.
17667
17668 * w32font.c (font_matches_spec): Use csb bitfield from font signature
17669 to determine language support.
17670
176712008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
17672
17673 * sysdep.c (cfsetspeed): New fun extracted from the code.
17674 (cfmakeraw): Move before first use.
17675
176762008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
17677
17678 * sysdep.c (cfmakeraw): Provide fallback implementation.
17679 (serial_configure): Provide fallback implementation of cfsetspeed.
17680
176812008-06-20 Kenichi Handa <handa@m17n.org>
17682
17683 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
17684 the pattern.
17685
17686 * fontset.c (fontset_from_font): Copy font_spec before changing
17687 the elements.
17688
17689 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
17690
176912008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
17692
17693 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
17694 for explicit `font' parameters.
17695
17696 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
17697
176982008-06-19 Kenichi Handa <handa@m17n.org>
17699
17700 * frame.c: Include <ctype.h>.
17701 (x_set_font_backend): Allow spacing characters in the X resource
17702 for FontBackend.
17703
177042008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
17705
17706 * w32fns.c, xfns.c (Qfont_param): New var.
17707 (syms_of_w32fns): Initialize it.
17708 (x_default_font_parameter): Record explicit `font' into
17709 `font-parameter'.
17710
177112008-06-18 Kenichi Handa <handa@m17n.org>
17712
17713 * font.c (font_parse_xlfd): Fix previous change.
17714 (font_parse_fcname): Don't use :fc-unknown-spec.
17715 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
17716 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
17717 (font_add_log): Prepend the driver name to the resulting fonts.
17718
17719 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
17720 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
17721 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
17722
17723 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
17724 (QCembolden): New variables.
17725 (syms_of_xftfont): DEFSYM them.
17726 (xftfont_open): Call XftFontMatch. Don't trust the result of
17727 XftTextExtents8 if the pixel_size is less than 5.
17728
177292008-06-18 Andreas Schwab <schwab@suse.de>
17730
17731 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
17732 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
17733
177342008-06-18 Jason Rumney <jasonr@gnu.org>
17735
17736 * w32font.c (w32font_list, w32font_match): Add logging.
17737
17738 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
17739
177402008-06-17 Chong Yidong <cyd@stupidchicken.com>
17741
17742 * font.c (font_parse_fcname): Store divider characters for
17743 unknown-spec list. For known key symbols, intern using correct
17744 symbol name.
17745
177462008-06-17 Kenichi Handa <handa@m17n.org>
17747
17748 * xfaces.c (realize_default_face): If the frame is not on window
17749 system, set the fontset of face to nil.
17750
177512008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
17752
17753 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
17754
177552008-06-16 Juanma Barranquero <lekktu@gmail.com>
17756
17757 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
17758 (build_font_name_from_vector): Delete externs.
17759
17760 * xfaces.c (struct font_name): Don't declare.
17761
177622008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
17763
17764 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
17765
177662008-06-16 Chong Yidong <cyd@stupidchicken.com>
17767
17768 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
17769
177702008-06-16 Juanma Barranquero <lekktu@gmail.com>
17771
17772 * font.c (Ffont_spec): Fix usage in docstring.
17773 (Ffont_face_attributes): Doc fix.
17774
177752008-06-16 Andreas Schwab <schwab@suse.de>
17776
17777 * font.c (Ffont_face_attributes): Fix definition.
17778
177792008-06-16 Jason Rumney <jasonr@gnu.org>
17780
17781 * font.h (font_style_symbolic_from_value): Remove.
17782
17783 * font.c (font_style_symbolic_from_value): Remove.
17784 (font_style_symbolic): Revert to pre 2008-06-13 version.
17785
17786 * w32font.c (w32_to_fc_weight): New function.
17787 (w32font_full_name, logfont_to_fcname): Use it.
17788
177892008-06-16 Kenichi Handa <handa@m17n.org>
17790
17791 * font.c (font_check_object): Delete it.
17792 (font_clear_cache): Check if a font-object is alive.
17793 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
17794 font-object to nil.
17795 (font_close_object): Don't check FONT_CLOSE_OBJECT.
17796 (font_at): Don't call font_check_object.
17797 (Ffont_get): Return a symbol for :weight, :slant, and :width.
17798
177992008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
17800
17801 * puresize.h (BASE_PURESIZE): Increase to 1230000.
17802
178032008-06-16 Chong Yidong <cyd@stupidchicken.com>
17804
17805 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
17806
178072008-06-15 Chong Yidong <cyd@stupidchicken.com>
17808
17809 * font.c (font_parse_fcname): Only one decimal point.
17810 (font_unparse_fcname): Handle data in family and foundry indices
17811 as symbols, not strings.
17812 (font_unparse_gtkname, Ffont_face_attributes): New functions.
17813
17814 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
17815
17816 * font.h (font_unparse_gtkname): Add prototype.
17817
178182008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
17819
17820 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
17821
178222008-06-15 Andreas Schwab <schwab@suse.de>
17823
17824 * font.c (font_update_drivers): Fix crash when no drivers match.
17825
178262008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
17827
17828 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
17829 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
17830
178312008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
17832
17833 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
17834
178352008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
17836
17837 * process.c (Fserial_process_configure, Fprocess_send_eof):
17838 Use EQ to compare Lisp_Objects.
17839
178402008-06-13 Jason Rumney <jasonr@gnu.org>
17841
17842 * w32fns.c (Fw32_select_font): Remove old font API function.
17843
17844 * w32font.c (logfont_to_fcname): New function.
17845 (Fx_select_font): New font dialog function compatible with
17846 GTK/fontconfig version.
17847
17848 * font.c (font_style_symbolic_from_value): New function.
17849 (font_style_symbolic): Use it.
17850
17851 * font.h (font_style_symbolic_from_value): Declare new function.
17852
178532008-06-13 Juanma Barranquero <lekktu@gmail.com>
17854
17855 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
17856 <font-width-table>: Fix typos in docstrings.
17857
178582008-06-13 Daniel Engeler <engeler@gmail.com>
17859
17860 These changes add serial port access.
17861 * process.c: Add HAVE_SERIAL.
17862 (Fdelete_process, Fprocess_status, Fset_process_buffer)
17863 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
17864 (list_processes_1, select_wrapper, Fstop_process)
17865 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
17866 (status_notify): Modify to handle serial processes.
17867 [HAVE_SERIAL] (Fserial_process_configure)
17868 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
17869 New functions.
17870 * process.h (struct Lisp_Process): Add `type'.
17871 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
17872 New functions.
17873 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
17874 serial ports.
b71ac3dd 17875 (serial_open, serial_configure): New functions.
aac0c6e3
MR
17876 * w32.h: Add FILE_SERIAL.
17877 (struct _child_process): Add ovl_read, ovl_write.
17878
178792008-06-13 Kenichi Handa <handa@m17n.org>
17880
17881 * dispextern.h (enum lface_attribute_index): New member
17882 LFACE_FOUNDRY_INDEX.
17883
17884 * font.c (font_score): Delete arg alternate_families. Check only
17885 weight, slant, width, and size. Ignore the difference of alias
17886 style symbols.
17887 (font_sort_entites): Adjust for the above change. Reflect the
17888 order of font-driver to scores.
17889 (font_list_entities): Don't check alternate_familes here.
17890 (font_clear_prop): Handle foundry.
17891 (font_update_lface): Don't parse "foundry-family" form here.
17892 Handle FONT_FOUNDRY_INDEX.
17893 (font_find_for_lface): Likewise. Handle alternate families here.
17894 If registry is nil, try iso8859-1 and ascii-0.
17895 (font_open_for_lface): Pay attention to size in ENTITY.
17896 (font_open_by_name): Simplify by calling font_load_for_lface.
17897 (free_font_driver_list): Delete it.
17898 (font_update_drivers): Preserve the order of backends.
17899 (syms_of_font): Setting of sort_shift_bits adjusted for the change
17900 of font_score and font_sort_entites.
17901 (font_update_sort_order): Likewise.
17902
17903 * xfaces.c (LFACE_FOUNDRY): New macro.
17904 (check_lface_attrs): Check foundry.
17905 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
17906 (merge_face_vectors): Check foundry.
17907 (merge_face_ref): Likewise.
17908 (Finternal_set_lisp_face_attribute): Likewise.
17909 (x_update_menu_appearance): Likewise.
17910 (Finternal_get_lisp_face_attribute): Likewise.
17911 (lface_hash): Likewise.
17912 (lface_same_font_attributes_p): Likewise.
17913 (x_supports_face_attributes_p): Likewise.
17914 (tty_supports_face_attributes_p): Likewise.
17915 (Finternal_set_alternative_font_family_alist): Intern strings.
17916 (Finternal_set_alternative_font_registry_alist): Downcase strings.
17917 (realize_default_face): Set LFACE_FOUNDRY (lface).
17918
17919 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
17920 font-driver at first.
17921
17922 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
17923
179242008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
17925
17926 * lread.c (Fload): Use xfree, not free on saved_doc_string.
17927
179282008-06-12 Jim Meyering <meyering@redhat.com>
17929
17930 Make unexec_free handle NULL the same way free does.
17931 * unexmacosx.c (unexec_free): Ignore a NULL argument.
17932
179332008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
17934
17935 * character.h (CHAR_TO_BYTE_SAFE): New macro.
17936 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
17937 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
17938 (WEAK_ALIAS): Simplify.
17939 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
17940 when searching a unibyte buffer.
17941
179422008-06-12 Chong Yidong <cyd@stupidchicken.com>
17943
17944 * xfns.c (Fx_select_font): Rename from x-font-dialog.
17945
179462008-06-12 Juanma Barranquero <lekktu@gmail.com>
17947
17948 * w32font.c: Include ctype.h.
17949
179502008-06-11 Jason Rumney <jasonr@gnu.org>
17951
17952 * w32font.c (w32font_encode_char): Detect missing glyphs that are
17953 misreported as space.
17954 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
17955 as aliases for registry iso10646-1.
17956
179572008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
17958
17959 * buffer.c (clone_per_buffer_values): Skip `name'.
17960
179612008-06-11 Chong Yidong <cyd@stupidchicken.com>
17962
17963 * font.c (font_parse_fcname): Fix last change; accept decimal
17964 points in font size.
17965
179662008-06-10 Jason Rumney <jasonr@gnu.org>
17967
17968 * w32uniscribe.c (add_opentype_font_name_to_list):
17969 Skip non unicode fonts.
17970
179712008-06-10 Chong Yidong <cyd@stupidchicken.com>
17972
17973 * xfns.c (Fx_font_dialog): New function.
17974
17975 * gtkutil.c (xg_dialog_response_cb): Rename from
17976 xg_file_response_callback.
17977 (pop_down_dialog): Rename from pop_down_file_dialog.
17978 (xg_get_file_name): Callers changed.
17979 (xg_get_font_name): New function.
17980
17981 * gtkutil.h (xg_get_font_name): Insert prototype.
17982
179832008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
17984
17985 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
17986 x_underline_minimum_display_offset.
17987 (syms_of_xdisp): Declare it here rather than in xterm.c.
17988 * dispextern.h (underline_minimum_offset): Declare it.
17989 * w32term.c (x_draw_glyph_string): Use it.
17990 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
17991 (syms_of_xterm): Don't declare it any more.
17992 (x_draw_glyph_string): Adjust to the new name.
17993
8719abec 179942008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
17995
17996 * xterm.c (x_underline_minimum_display_offset): New var.
17997 (x_draw_glyph_string): Use it.
17998 (syms_of_xterm): Declare it.
17999
180002008-06-10 Chong Yidong <cyd@stupidchicken.com>
18001
18002 * font.c (font_parse_fcname): Accept GTK-style font names too.
18003
180042008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
18005
18006 * dired.c (file_name_completion): Don't return t if the match is exact
18007 but with different capitalization.
18008 * minibuf.c (Ftry_completion): Simplify.
18009
18010 * window.c (Vwindow_point_insertion_type): New var.
18011 (set_window_buffer): Use it.
18012 (syms_of_window): Init and export it to Lisp.
18013
180142008-06-10 Kenichi Handa <handa@m17n.org>
18015
18016 * font.h (font_intern_prop): Prototype adjusted.
18017
18018 * font.c (font_intern_prop): New arg force_symbol.
18019 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
18020 Adjust for the change of font_intern_prop.
18021
18022 * ftfont.c (ftfont_pattern_entity):
18023 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
18024 (w32_registry):
18025 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
18026 the change of font_intern_prop.
18027
180282008-06-09 Juanma Barranquero <lekktu@gmail.com>
18029
18030 * w32menu.c (digest_single_submenu): Declare extern.
18031
180322008-06-09 Jason Rumney <jasonr@gnu.org>
18033
18034 * w32term.c (x_make_frame_visible): Use alternate restore flags.
18035
18036 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
18037 (parse_single_submenu): Remove.
18038 (digest_single_submenu): Remove.
18039 (syms_of_w32menu): Don't initialise variables that have moved
18040 to menu.c.
18041 (set_frame_menubar): Sync with version in xmenu.c.
18042 (w32_menu_show): Sync with xmenu_show in xmenu.c.
18043
18044 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
18045 Make static again.
18046
180472008-06-09 Jason Rumney <jasonr@gnu.org>
18048
18049 Changes to w32 files related to the move of common menu code
18050 to menu.c on 2008-06-08 by Chong Yidong.
18051
18052 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
18053 defs to w32gui.h.
18054 (single_keymap_panes, push_menu_item, push_menu_pane):
18055 Make globally visible.
18056
18057 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
18058 (local_free, malloc_widget_value, free_widget_value)
18059 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
18060 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
18061 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
18062 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
18063 (menu_items, menu_items_allocated, menu_items_used)
18064 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
18065 (init_menu_items, finish_menu_items, discard_menu_items)
18066 (grow_menu_items, push_submenu_start, push_submenu_end)
18067 (push_left_right_boundary, push_menu_pane, push_menu_item)
18068 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
18069 (free_menubar_widget_tree_value, parse_single_submenu)
18070 (update_submenu_strings): Remove functions.
18071 (xmalloc_widget_value): Remove and declare extern.
18072
18073 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
18074 (OBJ1): Build it.
18075
18076 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
18077 (local_heap, local_alloc, local_free, malloc_widget_value)
18078 (free_widget_value): Define here.
18079
180802008-06-09 Kenichi Handa <handa@m17n.org>
18081
18082 * font.h (Qascii_0): Extern it.
18083
18084 * font.c (Qascii_0): New variable.
18085 (syms_of_font): DEFSYM it.
18086 (font_open_by_name): If the registry "iso8859-1" fails, try also
18087 "ascii-0".
18088
18089 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
18090
180912008-06-08 Kenichi Handa <handa@m17n.org>
18092
18093 * .gdbinit (xfont): New command.
18094
180952008-06-08 Andreas Schwab <schwab@suse.de>
18096
18097 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
18098 * Makefile.in (menu.o): Update dependencies.
18099
18100 * Makefile.in (obj): Always add menu.o.
18101 * emacs.c (main): Always call syms_of_menu.
18102 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
18103
181042008-06-08 Chong Yidong <cyd@stupidchicken.com>
18105
18106 * Makefile.in: Compile menu.c.
18107
18108 * lisp.h: Declare syms_of_menu.
18109
18110 * emacs.c (main): Call syms_of_menu.
18111
18112 * keyboard.h: Relocate platform-independent menu definitions from
18113 xmenu.c.
18114
18115 * menu.c: New file. Relocate platform-independent menu
18116 definitions from xmenu.c. Suggested by Adrian Robert.
18117
18118 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 18119 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
18120 (menu_items_used, menu_items_n_panes)
18121 (menu_items_submenu_depth): Move to keyboard.h.
18122 (init_menu_items, finish_menu_items, unuse_menu_items)
18123 (discard_menu_items, restore_menu_items, save_menu_items)
18124 (grow_menu_items, push_submenu_start, push_submenu_end)
18125 (push_left_right_boundary, push_menu_pane, push_menu_item)
18126 (keymap_panes, single_keymap_panes, single_menu_item)
18127 (list_of_panes, list_of_items, find_and_call_menu_selection)
18128 (xmalloc_widget_value, free_menubar_widget_value_tree)
18129 (parse_single_submenu, digest_single_submenu)
18130 (update_submenu_strings): Move to menu.c.
18131
181322008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
18133
18134 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
18135
181362008-06-06 Miles Bader <miles@gnu.org>
18137
18138 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
18139 face, not frame default.
18140
181412008-06-05 Martin Rudalics <rudalics@gmx.at>
18142
18143 * window.c (pop_up_windows, pop_up_frames)
18144 (display_buffer_reuse_frames, Vpop_up_frame_function)
18145 (Vdisplay_buffer_function, Veven_window_heights)
18146 (Vspecial_display_buffer_names, Vspecial_display_regexps)
18147 (Vspecial_display_function, Vsame_window_buffer_names)
18148 (Vsame_window_regexps, split_height_threshold)
18149 (Vsplit_window_preferred_function): Move those vars to window.el.
18150 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
18151 (Fdisplay_buffer): Move those functions to window.el.
18152 (syms_of_window): Remove corresponding declarations.
18153 (display_buffer): New function.
18154 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
18155 * dispnew.c (Flast_nonminibuf_frame): New function.
18156 * buffer.c (Fpop_to_buffer): Move to window.el.
18157
181582008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
18159
18160 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
18161
181622008-06-05 Kenichi Handa <handa@m17n.org>
18163
18164 * coding.c (detect_coding): Fix previous change.
18165 (detect_coding_system): Likewise.
18166
181672008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
18168
18169 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
18170
18171 * keymap.c (Vminibuffer_local_filename_must_match_map):
18172 Rename from Vminibuffer_local_must_match_filename_map.
18173 (syms_of_keymap):
18174 * minibuf.c (Fcompleting_read): Adjust accordingly.
18175 * commands.h: Rename declaration as well.
18176
181772008-06-05 Kenichi Handa <handa@m17n.org>
18178
18179 * font.c (Ffont_spec): Don't use font_parse_family_registry for
18180 family name.
18181 (Ffont_put): Likewise.
18182
18183 * fontset.c (fontset_find_font): Call font_open_for_lface with the
18184 current font-spec.
18185
18186 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
18187 is unspecified.
18188
18189 * xfaces.c (realize_x_face): If the font-related face attributes
18190 are the same as those of default face, realize a new fontset from
18191 default->fontset.
18192 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
18193
181942008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
18195
18196 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
18197 (move_it_in_display_line): New wrapper.
18198
18199 * window.c (window_scroll_pixel_based_preserve_x)
18200 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
18201 (window_scroll_pixel_based, window_scroll_line_based):
18202 Use them to preserve column positions.
18203 (syms_of_window): Initialize them.
18204
18205 * indent.c (Fvertical_motion): Extend first arg to allow passing an
18206 (HPOS . VPOS) pair.
18207
18208 * dispextern.h (move_it_in_display_line): Declare.
18209
182102008-06-05 Juanma Barranquero <lekktu@gmail.com>
18211
18212 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
18213 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
18214 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
18215
182162008-06-04 Juanma Barranquero <lekktu@gmail.com>
18217
18218 * window.c (Fset_window_parameter): Doc fix.
18219 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
18220
182212008-06-04 Joakim Verona <joakim@verona.se>
18222
18223 * window.h (struct window): Add new member window_parameters.
18224
18225 * window.c (Fwindow_parameters, Fwindow_parameter)
18226 (Fset_window_parameter): New defuns.
18227 (syms_of_window): Defsubr the new defuns.
18228 (make_window): Initialize window_parameters to nil.
18229
182302008-06-04 John Paul Wallington <jpw@pobox.com>
18231
18232 * eval.c (Fdefmacro): Doc fix.
18233
182342008-06-04 Kenichi Handa <handa@m17n.org>
18235
18236 * coding.c (detect_coding): Fix handling of coding->head_ascii.
18237 Be sure to call setup_coding_system when we find a proper coding system.
18238 (detect_coding_system): Fix handling of coding->head_ascii.
18239
182402008-06-03 Andreas Schwab <schwab@suse.de>
18241
18242 * font.c (font_prop_validate_spacing): Fix last change.
18243
182442008-06-03 Kenichi Handa <handa@m17n.org>
18245
18246 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
18247 (font_parse_fcname): Fix handling of unknown key.
18248
18249 * xfont.c (xfont_list): Try an alias.
18250
18251 * charset.c (char_charset): Return NULL if the arg charset_list is
18252 specified and C doesn't belong to any of them.
18253
182542008-06-02 Chip Coldwell <coldwell@redhat.com>
18255
18256 * font.c (font_pixel_size): Don't take cdr of an integer.
18257
182582008-06-02 Jim Meyering <meyering@redhat.com>
18259
18260 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
18261 * alloc.c (xfree): Return right away for a NULL arg.
18262 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
18263 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
18264 * mac.c (create_apple_event_from_event_ref): Likewise.
18265 (create_apple_event_from_drag_ref, cfstring_create_normalized):
18266 Likewise.
18267 * doprnt.c (doprnt1): Likewise.
18268 * frame.c (frame): Likewise.
18269 * keyboard.c (wipe_kboard): Likewise.
18270 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
18271 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
18272 * term.c (tty_default_color_capabilities, maybe_fatal)
18273 (delete_tty): Likewise.
18274 * w16select.c (string): Likewise.
18275 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
18276 * w32bdf.c (w32_free_bdf_font): Likewise.
18277 * w32fns.c (w32_unload_font): Likewise.
18278 * w32font.c (w32font_close): Likewise.
18279 * window.c (size_window): Likewise.
18280 * xselect.c (receive_incremental_selection): Likewise.
18281 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
18282 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
18283 * w32.c (stat): Likewise.
18284
18285 Remove useless if-before-free tests.
18286 * editfns.c (Fset_time_zone_rule): Likewise.
18287 * lread.c (nosuffix): Likewise.
18288 * ralloc.c (get_bloc): Likewise.
18289 * regex.c (reg_free): Likewise.
18290 * xftfont.c (xftfont_open, xftfont_close): Likewise.
18291 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
18292 * xsmfns.c (smc_save_yourself_CB): Likewise.
18293
182942008-06-02 Kenichi Handa <handa@m17n.org>
18295
18296 * font.c (font_find_for_lface): Handle float font size.
18297 (font_open_for_lface): Likewise.
18298
18299 * xfaces.c (x_supports_face_attributes_p): Check face->font before
18300 comparing the properties.
18301
183022008-06-01 Jason Rumney <jasonr@gnu.org>
18303
18304 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
18305 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
18306 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
18307 Don't add empty script list.
18308 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
18309
183102008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
18311
18312 * Makefile.in (dot, dotdot): Remove, update users.
18313 ".." has been used elsewhere in the file for a long time.
18314 (LIBXT_STATIC): Remove conditional based on unused variable.
18315
183162008-06-01 Miles Bader <miles@gnu.org>
18317
18318 * xfaces.c (Vface_remapping_alist): New variable.
18319 (syms_of_xfaces): Initialize it.
18320 (enum named_merge_point_kind): New type.
18321 (struct named_merge_point): Add `named_merge_point_kind' field.
18322 (push_named_merge_point): Make cycle detection respect different
18323 named-merge-point kinds.
18324 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
18325 Remove face-name alias resolution.
18326 (lface_from_face_name): New definition using
18327 `lface_from_face_name_no_resolve'.
18328 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
18329 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
18330 (get_lface_attributes): New definition that layers face-remapping on
18331 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
18332 (lookup_basic_face): New function.
18333 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
18334 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
18335 `get_lface_attributes'.
18336 (face_at_buffer_position): Use `lookup_basic_face' to lookup
18337 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
18338 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
18339
18340 * xdisp.c (init_iterator): Pass base_face_id through
18341 `lookup_basic_face' when we actually use it as a face-id.
18342 (handle_single_display_prop): Use `lookup_basic_face' to lookup
18343 DEFAULT_FACE_ID.
18344
18345 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
18346 lookup the initial face-id.
18347
18348 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
18349
183502008-06-01 Juanma Barranquero <lekktu@gmail.com>
18351
18352 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
18353 (Fremove_text_properties): Fix typos in docstrings.
18354
183552008-05-31 Kenichi Handa <handa@m17n.org>
18356
18357 * font.c (font_list_entities): Fix the car part of data to be
18358 stored in the cache.
18359
18360 * ftfont.c (ftfont_font_format): Don't use strcasestr.
18361
183622008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
18363
18364 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
18365 Add a `test' argument so another predicate than `equal' can be used.
18366 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
18367 (map_char_table): Remove unused vars `c' and `i'.
18368 * lisp.h (Foptimize_char_table): Adjust declaration.
18369 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
18370
183712008-05-30 Kenichi Handa <handa@m17n.org>
18372
18373 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
18374 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
18375 defined.
18376
183772008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
18378
18379 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
18380 (Fmake_variable_frame_local): Disallow mixing buffer-local and
18381 frame-local settings for the same variable.
18382
183832008-05-30 Kenichi Handa <handa@m17n.org>
18384
18385 * fontset.c (Ffont_info): Move to font.c.
18386 (syms_of_fontset): Delete defsubr of Sfont_info.
18387
18388 * font.c (font_style_to_value, font_score): Delete casting of the
18389 args to xstcasecmp.
18390 (register_font_driver): Increment num_font_drivers only when
18391 registering the driver globally.
18392 (Ffont_info): Move from fontset.c. Handle a font object too.
18393 (syms_of_font): Defsubr Sfont_info.
18394
183952008-05-29 Kenichi Handa <handa@m17n.org>
18396
18397 * coding.h (enum define_coding_utf8_arg_index): New enum.
18398 (enum coding_attr_index): Change coding_attr_utf_16_bom to
18399 coding_attr_utf_bom.
18400 (enum utf_bom_type): Rename from utf_16_bom_type.
18401 (struct utf_16_spec): Adjust for the above change.
18402 (struct coding_system): Add utf_8_bom in `spec' union.
18403
18404 * coding.c (CODING_UTF_8_BOM): New macro.
18405 (enum coding_category): Delete coding_category_utf_8, add
18406 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
18407 coding_category_utf_8_sig.
18408 (CATEGORY_MASK_UTF_8): Delete it.
18409 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
18410 (CATEGORY_MASK_UTF_8_SIG): New macros.
18411 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
18412 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
18413 CATEGORY_MASK_UTF_8_SIG.
18414 (CATEGORY_MASK_UTF_8): New macro.
18415 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
18416 (detect_coding_utf_8): Check BOM.
18417 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
18418 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
18419 (encode_coding_utf_16): Likewise.
18420 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
18421 (detect_coding, detect_coding_system): Handle utf-8-auto.
18422 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
18423 (syms_of_coding): Fix setting up of Vcoding_category_table.
18424
184252008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
18426
18427 * process.c (Faccept_process_output): If `millisec' is non-nil,
18428 `seconds' default to 0.
18429 (wait_reading_process_output): Also return non-nil if we read output
18430 from a non-running process.
18431
184322008-05-29 Jason Rumney <jasonr@gnu.org>
18433
18434 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
18435 `raster' specified.
18436 (add_font_entity_to_list): Allow non-opentype truetype fonts back
18437 in the uniscribe backend, but disallow any font that has no
18438 unicode subrange support.
18439
184402008-05-29 Juanma Barranquero <lekktu@gmail.com>
18441
18442 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
18443 Fix typos in docstrings.
18444
184452008-05-29 Kenichi Handa <handa@m17n.org>
18446
18447 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
18448 (Fx_family_fonts): Set frame correctly.
18449
184502008-05-28 Jason Rumney <jasonr@gnu.org>
18451
18452 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
18453
184542008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
18455
18456 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
18457 calling build_annotations.
18458
184592008-05-28 Juanma Barranquero <lekktu@gmail.com>
18460
18461 * coding.c (Fdecode_coding_region, Fencode_coding_region)
18462 (Fencode_coding_string):
18463 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
18464 <latin-extra-code-table>: Fix typos in docstrings.
18465 (syms_of_coding) <coding-system-alist>: Doc fix.
18466 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
18467
184682008-05-28 Kenichi Handa <handa@m17n.org>
18469
18470 * fontset.c (Ffont_info): Don't call font_close_object.
18471
18472 * font.c (font_parse_family_registry): Use Ffont_put to validate
18473 foundry and family.
18474 (font_delete_unmatched): Don't check spacing.
18475 (font_list_entities): Add spacing to the spec to list fonts.
18476
18477 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
18478 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
18479
18480 * coding.c (encode_coding_raw_text): Fix previous change.
18481 (encode_coding_object): When the dst_object is a buffer and is
18482 different from src_object, move gap to PT.
18483
184842008-05-27 Chong Yidong <cyd@stupidchicken.com>
18485
18486 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
18487
184882008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
18489
18490 * coding.c (encode_coding_raw_text): Set coding->produced_char for
18491 all branches. Compute it differently.
18492
18493 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
18494
184952008-05-27 Juanma Barranquero <lekktu@gmail.com>
18496
18497 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
18498 into "else if () ... else ...".
18499
185002008-05-27 Jason Rumney <jasonr@gnu.org>
18501
18502 * w32font.c (w32font_open_internal): Determine if glyph indices
18503 are likely to work here.
18504
185052008-05-27 Chong Yidong <cyd@stupidchicken.com>
18506
18507 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
18508 draw overlap glyphs with appropriate highlighting.
18509
185102008-05-27 Kenichi Handa <handa@m17n.org>
18511
18512 * xfont.c (xfont_open): Fix calculation of font->average_width.
18513
185142008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
18515
18516 * casefiddle.c (casify_object): Try to guess better whether the
18517 argument is a byte or a char.
18518
185192008-05-26 Andreas Schwab <schwab@suse.de>
18520
18521 * xselect.c (x_reply_selection_request): Properly handle format == 32.
18522 Always send multiples of format size.
18523
18524 * xterm.c (x_set_frame_alpha): Fix type mismatch.
18525
185262008-05-26 Jason Rumney <jasonr@gnu.org>
18527
18528 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
18529 (compute_metrics): Don't set failure if we just cleared the cache.
18530 (w32_weight_table): Remove unused variable.
18531 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
18532 backwards compatibility.
18533
185342008-05-25 Kenichi Handa <handa@m17n.org>
18535
18536 * w32term.c (x_draw_glyph_string):
18537 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
18538
18539 * xfaces.c: Delete unused function prototypes.
18540 (xstrlwr, font_frame): Delete them.
18541 (clear_face_cache): Delete unused variable.
18542
18543 * xftfont.c (xftfont_open): Delete unused variable.
18544 If underline_thickness is not 1, adjust underline_position.
18545
18546 * ftxfont.c (ftxfont_open): Delete unused variable.
18547
18548 * fontset.c (face_for_char): Optimize for the case of no charset
18549 property.
18550
18551 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
18552 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
18553 (otf_open, font_otf_capability, generate_otf_features)
18554 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
18555 Comment out by surrounding "#if 0" and "#endif" for the moment.
18556 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
18557 (syms_of_font): Codes for accessing above commented out.
18558
185592008-05-24 Eli Zaretskii <eliz@gnu.org>
18560
18561 * w32proc.c: Include dispextern.h.
18562
18563 * w32.c: Include dispextern.h.
18564
185652008-05-23 Juanma Barranquero <lekktu@gmail.com>
18566
18567 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
18568 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
18569 Fix typos in docstrings.
18570
185712008-05-23 Jason Rumney <jasonr@gnu.org>
18572
18573 * xsmfns.c: Remove includes that are already included by config.h.
18574
185752008-05-23 Kenichi Handa <handa@m17n.org>
18576
18577 * charset.c (Qemacs, charset_emacs): New variables.
18578 (char_charset): Fix for non-Unicode characters.
18579 (syms_of_charset): Define charset_emacs.
18580
18581 * w32term.c (x_draw_glyph_string): Be sure to update
18582 s->underline_thickness and s->underline_position. Be sure to draw
18583 underline within the current line area.
18584
18585 * xterm.c (x_draw_glyph_string): Be sure to update
18586 s->underline_thickness and s->underline_position. Be sure to draw
18587 underline within the current line area.
18588
18589 * fontset.c: Delete unused variables and add casting for char *
18590 throughout the file.
18591 (fontset_font): Try the fallback fonts of the current fontset
18592 before consulting the default fontset.
18593
18594 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
18595
18596 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
18597
185982008-05-22 Jason Rumney <jasonr@gnu.org>
18599
18600 * font.c: Don't include strings.h.
18601
18602 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
18603
18604 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
18605 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
18606 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
18607 to call xstrcasecmp.
18608
18609 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
18610
18611 * fontset.c (fs_query_fontset): Use xstrcasecmp.
18612
18613 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
18614
18615 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
18616
186172008-05-22 Kenichi Handa <handa@m17n.org>
18618
18619 * puresize.h (BASE_PURESIZE): Increase to 1220000.
18620
18621 * font.c (font_prop_validate_style): Adjust for the format
18622 change of font_style_table.
18623
18624 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
18625 two args.
18626
18627 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
18628 two args.
18629
186302008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
18631
18632 * minibuf.c (keys_of_minibuf): Delete.
18633 * lisp.h (keys_of_minibuf): Delete.
18634 * emacs.c (main): Don't call keys_of_minibuf.
18635
186362008-05-22 Kenichi Handa <handa@m17n.org>
18637
18638 * ftfont.c (ftfont_resolve_generic_family): Rename from
18639 ftfont_list_generic_family. Return a single family for each
18640 generic family.
18641 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
18642 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
18643 Call font_add_log.
18644 (ftfont_match): Call font_add_log.
18645
18646 * font.h (Ffont_xlfd_name): EXFUN adjusted.
18647 (FONT_DEBUG): Define it.
18648 (font_add_log): Extern it.
18649 (font_assert): Rename from xassert.
18650
18651 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
18652 (xfont_list_family): Call font_add_log.
18653 (xfont_match): Likewise.
18654 (memq_no_quit): Delete.
18655
18656 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
18657 call of Ffont_xlfd_name.
18658
18659 * xfaces.c (struct table_entry, slant_table, weight_table)
18660 (swidth_table): Move to font.c.
18661
18662 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
18663 xassert are changed to font_assert. Delete many unused variables.
18664 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
18665 New variables.
18666 (struct table_entry): Move from xfaces.c and modified.
18667 (weight_table, slant_table, width_table): Move from xfaces.c and
18668 contents adjusted for the change of struct table_entry.
18669 (font_style_to_value, font_style_symbolic): Adjust for the
18670 format change of font_style_table.
18671 (font_parse_family_registry): Don't overwrite existing foundry and
18672 family of font_spec.
18673 (font_score): Fix calculation of diff for sizes.
18674 (font_sort_entites): Call font_add_log.
18675 (font_delete_unmatched): Return a newly created list.
18676 (font_list_entities): Fix previous change. Call font_add_log.
18677 (font_matching_entity, font_open_entity, font_close_entity):
18678 Call font_add_log.
18679 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
18680 (Finternal_set_font_style_table): Delete.
18681 (BUILD_STYLE_TABLE): New macro.
18682 (build_style_table): New function.
18683 (Vfont_log, font_log_env_checked): New variables.
18684 (font_add_log): New function.
18685 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
18686 Declare Lisp variables "font-weight-table", "font-slant-table",
18687 "font-width-table", and "font-log". Initialize font_style_table.
18688
186892008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
18690
18691 * xterm.c (x_set_frame_alpha): Move declarations before statements.
18692
186932008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 18694 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
18695
18696 * frame.c (Qalpha): Add a new frame parameter `alpha'.
18697 (Vframe_alpha_lower_limit): New variable.
18698 (x_set_alpha): New function.
18699
18700 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
18701
18702 * xfns.c (x-create-frame, Qalpha):
18703 Initialize the frame parameter `alpha'.
18704 * xterm.c (OPAQUE, OPACITY): New.
18705 (x_set_frame_alpha): New function.
18706 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
18707
18708 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
18709 * w32fns.c (w32_frame_parm_handlers): Likewise.
18710
187112008-05-20 Jason Rumney <jasonr@gnu.org>
18712
18713 * w32font.c (add_font_entity_to_list): Don't add non-opentype
18714 truetype fonts to opentype list.
18715
187162008-05-20 Juanma Barranquero <lekktu@gmail.com>
18717
18718 * fontset.c (Ffontset_info): Doc fix.
18719 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
18720 <ignore-relative-composition>: Fix typos in docstrings.
18721
18722 * font.c (syms-of-font) <font-encoding-alist>:
18723 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
18724 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
18725 (Ffont_otf_alternates): Doc fixes.
18726
187272008-05-20 Kenichi Handa <handa@m17n.org>
18728
18729 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
18730 font.h through out the file.
18731 (FONT_DRIVERS): Rename from FONTOBJ.
18732 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
18733 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
18734
18735 * emacs.c (main): Call syms_of_font unconditionally.
18736
18737 * font.h (find_font_encoding): Extern it.
18738
18739 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
18740 fontset.c.
194d44e7 18741 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
18742 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
18743 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
18744 only when HAVE_WINDOW_SYSTEM is defined.
18745 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
18746 when HAVE_WINDOW_SYSTEM is defined.
18747
18748 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
18749 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
18750
18751 * xfaces.c: Include font.h unconditionally.
18752 (merge_face_ref, merge_face_vectors)
18753 (Finternal_set_lisp_face_attribute): Cancel the previous change.
18754
187552008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
18756
18757 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
18758 indirect_variable.
18759 * eval.c (lisp_indirect_variable): New fun.
18760 (Fuser_variable_p): Use it.
18761
187622008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
18763
18764 * lisp.h (indirect_variable):
18765 * data.c (indirect_variable, let_shadows_buffer_binding_p):
18766 Use Lisp_Symbol pointers rather than Lisp_Object.
18767 Adjust callers.
18768 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
18769 To this end, change calling-convention.
18770
18771 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
18772 if some non-hidden buffers are selected by string&pred.
18773
187742008-05-19 Chong Yidong <cyd@stupidchicken.com>
18775
18776 * process.c (wait_reading_process_output): Always check status
18777 when in batch mode.
18778
187792008-05-19 Kenichi Handa <handa@m17n.org>
18780
18781 * font.c (font_list_entities): Fix handling of cache.
18782 (font_matching_entity): Likewise.
18783
18784 * ftfont.c (cs_iso8859_1): Delete.
18785 (ft_face_cache): New variable.
18786 (struct ftfont_info): New member fc_charset_idx.
18787 (ftfont_build_basic_charsets): Delete.
18788 (fc_charset_table): New variable.
18789 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
18790 . FC_CHARSET_IDX) as :font-entity property in the font entity.
18791 Callers changed.
18792 (ftfont_lookup_cache, ftfont_get_charset): New functions.
18793 (ftfont_spec_pattern): New argument fc_charset_idx.
18794 Check registry more rigidly. Change callers.
18795 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
18796 change of :font-entity property of the font.
18797
18798 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
18799 property of the font.
18800
188012008-05-18 Juanma Barranquero <lekktu@gmail.com>
18802
18803 * coding.c (Fcoding_system_p): Rename argument to match docstring.
18804 (Funencodable_char_position, Fcheck_coding_systems_region)
18805 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
18806 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
18807 (Ffind_operation_coding_system, Fset_coding_system_priority)
18808 (Fcoding_system_eol_type): Doc fixes.
18809
188102008-05-17 Glenn Morris <rgm@gnu.org>
18811
18812 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
18813
188142008-05-16 Eli Zaretskii <eliz@gnu.org>
18815
18816 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
18817 and st_gid.
18818
18819 * frame.c (Fdelete_frame): Don't call font_update_drivers if
18820 HAVE_WINDOW_SYSTEM is not defined.
18821
18822 * xfaces.c (merge_face_ref, merge_face_vectors)
18823 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
18824 HAVE_WINDOW_SYSTEM is defined.
18825 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
18826
188272008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
18828
18829 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
18830
188312008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18832
18833 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
18834
188352008-05-15 Kenichi Handa <handa@m17n.org>
18836
18837 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
18838 preference.
18839
188402008-05-15 Glenn Morris <rgm@gnu.org>
18841
18842 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
18843
188442008-05-15 Chong Yidong <cyd@stupidchicken.com>
18845
18846 * fns.c (init_fns): Don't initialize weak_hash_tables here.
18847 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
18848
18849 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
18850
188512008-05-15 Kenichi Handa <handa@m17n.org>
18852
18853 * ftfont.c (ftfont_list): Downcase family name to check generic
18854 families.
18855
18856 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
18857 font-spec for QCfont value.
18858
18859 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
18860 buffer. Check the return value of it.
18861
188622008-05-14 Jason Rumney <jasonr@gnu.org>
18863
18864 * w32term.c (w32_get_glyph_overhangs): Remove.
18865 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
18866
188672008-05-14 Kenichi Handa <handa@m17n.org>
18868
18869 * font.c (font_prop_validate): Make nil a valid value.
18870 (font_clear_cache): Check if the cached vector of entities is nil
18871 or not.
18872
188732008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18874
18875 * emacs.c (main_thread): Conditionalize on
18876 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
18877 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
18878
18879 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
18880 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
18881 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
18882
188832008-05-14 Kenichi Handa <handa@m17n.org>
18884
18885 * coding.c (detect_coding_iso_2022): Ignore a coding category that
18886 has no corresponding coding system.
18887
188882008-05-14 Jason Rumney <jasonr@gnu.org>
18889
18890 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
18891
18892 * w32font.h (w32font_open_internal): Update declaration.
18893
18894 * w32font.c (w32font_open_internal): Change last argument from
18895 w32font_info struct to font object. Fill in font object from
18896 font_entity. Get Outline metrics if possible. Use them to
18897 calculate underline position and thickness. Use xlfd name as name
18898 property. Don't set codepage.
18899 (w32font_open): Pass font_object to w32font_open_internal. Don't
18900 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
18901 (w32font_draw): Use s->font.
18902 (clear_cached_metrics): Don't clear non-existent blocks.
18903
18904 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
18905 font was not found.
18906 (x_draw_glyph_string): Use underline position and thickness from font.
18907
18908 * w32uniscribe.c (uniscribe_open): Pass font_object to
18909 w32font_open_internal.
18910
189112008-05-14 Kenichi Handa <handa@m17n.org>
18912
18913 These changes are to delete all legacy font-handling codes, and
18914 make Emacs use only font-backends.
18915
18916 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
18917 (frame.o, image.o, print.o): Depend on $(FONTSRC).
18918
18919 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
18920
18921 * charset.h (Vcharset_non_preferred_head)
18922 (Vcurrent_iso639_language): Extern them.
18923
18924 * charset.c (Vcharset_non_preferred_head): New variable.
18925 (Vcurrent_iso639_language): New variable.
18926 (syms_of_charset): Declare it as a Lisp variable.
18927 (char_charset): Don't check non preferred charsets. As a last
18928 resort, return charset_unicode.
18929 (Fset_charset_priority): Update Vcharset_non_preferred_head.
18930
18931 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
18932 conditionals. Don't check enable_font_backend. Delete all codes
18933 used only when USE_FONT_BACKEND is not defined.
18934
18935 * dispextern.h (struct glyph_string): Change type of `font' to
18936 `struct font *'.
18937 (struct glyph_string): New member underline_position and
18938 underline_thickness.
18939 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
bba3e508
SM
18940 (struct face): Change type of `font' to `struct font *'.
18941 Remove members `font_name', `font_info_id'.
aac0c6e3
MR
18942 (per_char_metric, encode_char): Delete externs.
18943 (calc_pixel_width_or_height): Adjust the prototype.
18944
18945 * emacs.c (enable_font_backend): Delete extern.
18946 (main): Don't set enable_font_backend. Don't check the command
18947 line argument "-disable-font-backend".
18948
18949 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
18950 (enum font_property_index): New members FONT_DPI_INDEX,
18951 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
18952 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
18953 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
18954 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
18955 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
18956 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
18957 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
18958 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
18959 (struct font_spec, struct font_entity): New structs.
ef1b0ba7 18960 (FONT_ENCODING_NOT_DECIDED): Move from fontset.h.
aac0c6e3
MR
18961 (struct font): Many members from old "struct font_info" moved to
18962 here. Members font and entity deleted.
18963 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
18964 the new font-related objects.
18965 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
18966 (CHECK_FONT_GET_OBJECT): Likewise.
18967 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
ef1b0ba7 18968 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move from font.h.
bba3e508
SM
18969 (struct font_driver): New members case_sensitive anc check.
18970 Type of the member list and open changed.
aac0c6e3
MR
18971 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
18972 (font_symbolic_width, font_find_object, font_get_spec)
18973 (font_set_lface_from_name): Delete extern.
18974 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
18975
18976 * font.c: Include <strings.h>.
18977 (enable_font_backend): Delete it.
18978 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
18979 (CHECK_VALIDATE_FONT_SPEC): Delete it.
ef1b0ba7 18980 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move to font.h.
aac0c6e3
MR
18981 (null_string): Delete it.
18982 (null_vector): Make it static.
18983 (font_family_alist): Delete it.
18984 (Qnormal): Extern it.
18985 (QCextra, QClanguage): Delete it.
18986 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
18987 (font_make_spec, font_make_entity, font_make_object)
ef1b0ba7 18988 (font_intern_prop): Rename from intern_downcase. Don't downcase
aac0c6e3 18989 the string. Callers changed.
bba3e508 18990 (font_pixel_size): Adjust for the format change of font-related
aac0c6e3
MR
18991 objects.
18992 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
18993 (font_style_to_value, font_style_symbolic): New function.
18994 (build_font_family_alist): Delete it.
18995 (font_registry_charsets): Use Fassoc_string instead of
18996 assq_no_quit.
18997 (font_prop_validate_symbol): Don't return null_string.
bba3e508 18998 (font_prop_validate_style): Adjust for the change of
aac0c6e3
MR
18999 style-related values in a font vector.
19000 (font_property_table): Delete entries for QClanguage and
19001 QCantialias, add entries for QCavgwidth.
19002 (get_font_prop_index): Delete the 2nd argument FROM.
19003 (font_prop_validate): Arguments changed.
bba3e508 19004 (font_put_extra): Adjust for the change of font-related objects.
aac0c6e3
MR
19005 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
19006 (font_parse_fcname, font_unparse_fcname)
19007 (font_prepare_composition): Likewise.
ef1b0ba7 19008 (font_parse_family_registry): Rename from font_merge_old_spec.
aac0c6e3 19009 (otf_open): Delete the 1st arg entity.
bba3e508 19010 (font_otf_capability): Adjust for the above change.
aac0c6e3
MR
19011 (font_score): New arg alternate_families. Adjusted for the change
19012 of font-related objects.
19013 (font_sort_entites): New arg best_only.
19014 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
19015 Delete them.
19016 (font_match_p): Check alternate families.
19017 (font_find_object): Delete it.
19018 (font_check_object): New function.
bba3e508 19019 (font_clear_cache): Adjust for the change of font-related objects.
aac0c6e3
MR
19020 (font_delete_unmatched): New arg.
19021 (font_list_entities): Call font_driver->list with a spec that
19022 doesn't specify style-related properties.
19023 (font_matching_entity): Arguments changed. Caller changed.
bba3e508 19024 (font_open_entity): Adjust for the change of font-related objects.
aac0c6e3
MR
19025 (font_close_object, font_has_char, font_encode_char)
19026 (font_get_name, font_get_spec): Likewise.
19027 (font_spec_from_name, font_clear_prop, font_update_lface):
19028 New functions.
19029 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
19030 (font_prepare_for_face, font_done_for_face, font_open_by_name)
bba3e508 19031 (font_at): Adjust for the change of font-related objects.
aac0c6e3
MR
19032 (font_range): New function.
19033 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
bba3e508 19034 (Ffont_xlfd_name): Adjust for the change of font-related objects.
aac0c6e3 19035 (Fcopy_font_spec, Fmerge_font_spec): New function.
ef1b0ba7 19036 (Ffont_family_list): Rename from list-families.
aac0c6e3
MR
19037 (Finternal_set_font_style_table): Arguments changed.
19038 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
bba3e508 19039 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjust for the
aac0c6e3
MR
19040 change of font-related objects.
19041 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
19042
19043 * fontset.h (struct font_info): Delete it. Most members go to
19044 struct font.
ef1b0ba7 19045 (FONT_ENCODING_NOT_DECIDED): Move to font.h.
aac0c6e3
MR
19046 (enum FONT_SPEC_INDEX): Delete it.
19047 (font_info, list_fonts_func, load_font_func, query_font_func)
19048 (set_frame_fontset_func, find_ccl_program_func)
bba3e508
SM
19049 (get_font_repertory_func, new_fontset_from_font_name):
19050 Delete externs.
aac0c6e3
MR
19051 (fontset_from_font_name): Extern it.
19052 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
19053 (FONT_INFO_FROM_FACE): Deleted.
19054 (face_for_font): Adjust prototype.
19055
19056 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
19057 conditionals. Don't check enable_font_backend. Delete all codes
19058 used only when USE_FONT_BACKEND is not defined.
19059 (get_font_info_func, list_font_func, load_font_func)
19060 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
19061 (get_font_repertory_func): Delete them.
19062 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
19063 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
19064 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
19065 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
19066 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
19067 (fontset_compare_rfontdef): New function.
19068 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
19069 rfont-defs by qsort. Adjusted for the change of font-group vector.
19070 (load_font_get_repertory): Deleted.
19071 (fontset_find_font): Use new macros to ref/set elements of
19072 font-def and rfont-def.
19073 (fontset_font): Fix the timing of remembering that no font for C.
19074 (free_face_fontset): Do nothing if the face has no fontset.
19075 (face_suitable_for_char_p): Use new macros to ref/set elements of
19076 rfont-def.
19077 (face_for_char): Likewise. Call face_for_char with font_object.
19078 (fs_load_font): Delete. Delete #pragma surrounding it.
19079 (fs_query_fontset): Use strcasecmp instead of strcmp.
bba3e508 19080 (generate_ascii_font_name): Adjust for the format change of
aac0c6e3
MR
19081 font-spec.
19082 (Fset_fontset_font): Likewise. Use new macros to set elements of
19083 font-def.
19084 (Fnew_fontset): Use font_unparse_xlfd to generate
19085 FONTSET_ASCII (fontset).
19086 (new_fontset_from_font_name): Deleted.
ef1b0ba7 19087 (fontset_from_font): Rename from new_fontset_from_font. Check if
aac0c6e3
MR
19088 a fontset is already created for the font. FIx updating of
19089 Vfontset_alias_alist.
19090 (fontset_ascii_font): Deleted.
bba3e508 19091 (Ffont_info): Adjust for the format change of font-spec.
aac0c6e3
MR
19092 (Finternal_char_font): Likewise.
19093 (Ffontset_info): Likewise.
19094 (syms_of_fontset): Don't check load_font_func.
19095
19096 * fns.c (internal_equal): Handle PREV_FONT.
19097
19098 * frame.h: Delete USE_FONT_BACKEND conditional.
19099
19100 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
19101 conditionals. Don't check enable_font_backend. Delete all codes
19102 used only when USE_FONT_BACKEND is not defined.
19103 (x_set_font): Call x_new_font, not x_new_fontset2.
19104 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
19105 already set for the frame.
19106
bba3e508
SM
19107 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed.
19108 Make a font-entity by font_make_entity. Use font_intern_prop instead
aac0c6e3
MR
19109 of intern_downcase. Use FONT_SET_STYLE to set a style-related
19110 font property. If a font is scalable, set avgwidth property to 0.
19111 Set font-entity property by font_put_extra.
19112 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
bba3e508 19113 (ffont_driver): Adjust for the change of struct font_driver.
aac0c6e3
MR
19114 (ftfont_spec_pattern): New function.
19115 (ftfont_list): Return a list, not vector.
19116 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
19117 (ftfont_list_family): Don't downcase names.
19118 (ftfont_free_entity): Deleted.
19119 (ftfont_open): Return a font-object. Adjusted for the change of
19120 struct font. Get underline_thickness and underline_position from
19121 font property. Don't update dpyinfo->smallest_font_height and
19122 dpyinfo->smallest_char_width.
19123 (ftfont_close): Don't free `struct font'.
bba3e508 19124 (ftfont_has_char): Adjust for the format change of font-entity.
aac0c6e3
MR
19125 (ftfont_encode_char, ftfont_text_extents): Likewise.
19126
19127 * ftxfont.c (ftxfont_list): Return a list, not vector.
19128 (ftxfont_open): Return a font-object. Adjusted for the change of
19129 struct font. Get underline_thickness and underline_position from
19130 font property. Don't update dpyinfo->smallest_font_height and
19131 dpyinfo->smallest_char_width.
19132 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
bba3e508 19133 (ftxfont_draw): Adjust for the change of struct font.
aac0c6e3 19134
bba3e508
SM
19135 * image.c (image_ascent): Don't include "charset.h".
19136 Include "character.h" and "font.h".
aac0c6e3
MR
19137
19138 * lisp.h (enum pvec_type): New member PREV_FONT.
19139 (Fassoc_string): EXFUN it.
19140
19141 * print.c: Include font.h.
19142 (print_object): Handle font-related objects.
19143
19144 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
19145 conditionals. Don't check enable_font_backend. Delete all codes
19146 used only when USE_FONT_BACKEND is not defined.
19147 (handle_auto_composed_prop): Do nothing if it->f is not on a
19148 window system. Check how many following characters can be
19149 displayed by the same font.
19150 (calc_pixel_width_or_height): Type of the 4th arg is changed to
19151 'struct font *'.
19152 (get_char_face_and_encoding): Assign the whole encoding task to
19153 the `encode-char' method of a font driver.
bba3e508 19154 (fill_composite_glyph_string): Adjust for the change of `struct
aac0c6e3
MR
19155 face' and `struct glyph_string'.
19156 (fill_glyph_string): Likewise.
19157 (get_per_char_metric): Arguments changed.
bba3e508 19158 (x_get_glyph_overhangs): Adjust for the change of `struct face'
aac0c6e3
MR
19159 and `struct glyph_string'.
19160 (produce_stretch_glyph, calc_line_height_property)
19161 (x_produce_glyphs): Likewise.
19162
19163 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
19164 conditionals. Don't check enable_font_backend. Delete all codes
bba3e508
SM
19165 used only when USE_FONT_BACKEND is not defined.
19166 Use FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
aac0c6e3
MR
19167 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
19168 (Qp): Extern them.
19169 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
19170 Deleted.
19171 (struct font_name): Deleted.
19172 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
19173 (compare_fonts_by_sort_order): New function.
19174 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
19175 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
19176 Deleted.
19177 (Fx_family_fonts): Use font_list_entities, and sort fonts by
19178 compare_fonts_by_sort_order.
19179 (Fx_font_family_list): Call Ffont_family_list.
19180 (face_numeric_value, face_numeric_weight, face_numeric_slant)
19181 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
19182 (face_symbolic_slant, face_symbolic_swidth)
19183 (split_font_name_into_vector, build_font_name_from_vector)
19184 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
19185 (font_rescale_ratio, split_font_name, build_font_name)
19186 (free_font_names, sort_fonts, x_face_list_fonts)
19187 (face_font_available_p, sorted_font_list, cmp_font_names)
19188 (font_list_1, concat_font_list, font_list, remove_duplicates):
19189 Deleted.
19190 (Fx_list_fonts): Use Ffont_list.
19191 (LFACE_AVGWIDTH): Deleted.
19192 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
19193 by FONTP.
19194 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
19195 (set_lface_from_font_name): Delete it.
ef1b0ba7 19196 (set_lface_from_font): Rename from
aac0c6e3
MR
19197 set_lface_from_font_and_fontset. Caller changed. Don't set
19198 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
19199 for face.
19200 (merge_face_vectors): Copy font-spec if necessary.
19201 Clear properties of the font-spec if necessary.
19202 (merge_face_ref): Clear properties of the font-spec if necessary.
19203 (Finternal_set_lisp_face_attribute): Likewise.
19204 (set_font_frame_param): Use font_load_for_lface to load a
19205 font-object, and call Fmodify_frame_parameters with it.
19206 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
19207 font name by Ffont_xlfd_name.
19208 (Finternal_lisp_face_attribute_values): Don't check QCweight,
19209 QCslant, and QCwidth.
19210 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
19211 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
19212 Compare fonts by EQ.
19213 (lookup_non_ascii_face): Deleted.
19214 (face_for_font): The 2nd argument changed.
19215 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
19216 Check atomic font properties by case insensitive.
19217 (realize_non_ascii_face): Set face->overstrike correctly.
19218 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
19219 (dump_realized_face): Get font name from
19220 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
19221
19222 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
19223 conditionals. Don't check enable_font_backend. Delete all codes
19224 used only when USE_FONT_BACKEND is not defined.
19225 (xic_create_xfontset): Original code deleted and renamed from
19226 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
19227 (x_make_gc): Don't set GCFont in GCs.
19228 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
19229 opened by "fixed".
19230 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
19231 find_ccl_program_func, query_font_func, set_frame_fontset_func,
19232 get_font_repertory_func.
19233
19234 * xfont.c: Include <stdlib.h> and "ccl.h".
19235 (struct xfont_info): New structure.
19236 (xfont_query_font): Deleted.
ef1b0ba7 19237 (xfont_find_ccl_program): Rename from x_find_ccl_program and
aac0c6e3 19238 moved from xterm.c.
bba3e508 19239 (xfont_driver): Adjust for the change of struct font_driver.
aac0c6e3 19240 (compare_font_names): New function.
ef1b0ba7
SM
19241 (xfont_list_pattern): Sort font names case insensitively.
19242 Make font_entity by calling font_make_entity. Avoid auto-scaled fonts.
aac0c6e3
MR
19243 (xfont_list): Return a list, not vector.
19244 (xfont_match): If the font doesn't have QCname property, generate
19245 a name from the other font properties.
19246 (xfont_open): Return a font-object. Adjusted for the change of
19247 struct font. Get underline_thickness and underline_position from
19248 font property. Don't update dpyinfo->smallest_font_height and
19249 dpyinfo->smallest_char_width.
19250 (xfont_close): Don't free struct font.
bba3e508 19251 (xfont_prepare_face): Adjust for the change of struct font.
aac0c6e3 19252 (xfont_done_face): Deleted.
bba3e508 19253 (xfont_has_char): Adjust for the change of struct font.
aac0c6e3
MR
19254 (xfont_encode_char, xfont_draw): Likewise.
19255 (xfont_check): New function.
19256
bba3e508 19257 * xftfont.c (xftfont_list): Adjust for the change of `list'
aac0c6e3 19258 callback function.
bba3e508
SM
19259 (xftfont_match): Adjust for the format change of font-entity.
19260 (xftfont_open): Adjust for the format change of font-entity and
aac0c6e3
MR
19261 font-object. Adjusted for the change of struct font. Return a
19262 font-object. Don't update dpyinfo->smallest_font_height and
19263 dpyinfo->smallest_char_width.
19264 (xftfont_close): Block input while calling XftFontClose.
19265 (xftfont_prepare_face): Don't block input while calling
19266 xftfont_get_colors. Adjusted for the change of struct font.
19267 (xftfont_shape): Return value of error case fixed.
19268
19269 * xrdb.c (x_load_resources): Don't setup a fontset resource.
19270
19271 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
19272 conditionals.
19273 (FONT_WIDTH): Return (f)->max_width.
19274 (struct x_display_info): Delete member `font'.
19275 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
19276 (x_find_ccl_program, x_get_font_repertory): Delete externs.
19277 (struct x_output): Change type of `font' to `struct font *'.
19278
19279 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
19280 conditionals. Don't check enable_font_backend. Delete all codes
19281 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
19282 (x_per_char_metric, x_encode_char): Deleted.
19283 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
bba3e508 19284 (x_compute_glyph_string_overhangs): Adjust for the change of
aac0c6e3
MR
19285 `struct face'.
19286 (x_draw_glyph_string_foreground)
19287 (x_draw_composite_glyph_string_foreground): Likewise.
19288 (x_draw_glyph_string): Likewise. Use font->underline_position and
19289 font->underline_thickness.
ef1b0ba7 19290 (x_new_font): Rename from x_new_fontset2.
aac0c6e3
MR
19291 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
19292 (x_check_font): Call `check' method of a font driver.
19293 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
19294 (x_query_font, x_get_font_repertory): Deleted.
ef1b0ba7 19295 (x_find_ccl_program): Rename and moved to xfont.c.
bba3e508 19296 (x_redisplay_interface): Adjust for the change of `struct
aac0c6e3
MR
19297 redisplay_interface'.
19298
19299 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
19300 conditionals. Don't check enable_font_backend. Delete all codes
19301 used only when USE_FONT_BACKEND is not defined. Surround non-used
19302 code by "#ifdef OLD_FONT" and "endif".
19303 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
19304
19305 * w32font.h (struct w32font_info): New member.
19306 (FONT_COMPAT): New macro.
19307 (w32font_open_internal): Prototype adjusted.
19308
19309 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
19310 OLD_FONT" and "endif".
19311
19312 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
19313 conditionals. Don't check enable_font_backend. Delete all codes
19314 used only when USE_FONT_BACKEND is not defined.
19315 (w32font_open): Return a font-object. Make a font-object by
19316 font_make_object. Adjusted for the change of struct w32font_info.
19317 (w32font_close): Don't free struct font. Adjusted for the change
19318 of struct w32font_info.
19319 (w32font_encode_char, w32font_text_extents, w32font_draw):
ef1b0ba7 19320 Adjust for the change of struct w32font_info.
aac0c6e3
MR
19321 (w32font_draw): Likewise.
19322 (w32font_list_internal): Return a list, not vector.
19323 (w32font_open_internal): Change the 4th arg to font-object.
19324 Adjusted for the change of struct w32font_info and font-object format.
19325 (add_font_name_to_list): Don't downcase names.
19326 (w32_enumfont_pattern_entity): Make a font-entity by
19327 font_make_entity. Adjusted for the format change of font-entity.
19328 Use FONT_SET_STYLE to set a style-related font property. If a
19329 font is scalable, set avgwidth property to 0. Set font-entity
19330 property by font_put_extra.
bba3e508 19331 (font_matches_spec): Adjust for the format change of font-entity.
aac0c6e3
MR
19332 (w32_weight_table, w32_decode_weight): New variables.
19333 (w32_encode_weight): New function.
bba3e508 19334 (fill_in_logfont): Adjust for the format change of font-spec.
aac0c6e3
MR
19335 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
19336 weight value.
bba3e508 19337 (w32font_driver): Adjust for the change of struct font_driver.
aac0c6e3
MR
19338
19339 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
19340 conditionals. Don't check enable_font_backend. Surround non-used
19341 code by "#ifdef OLD_FONT" and "endif".
19342 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
bba3e508 19343 (FONT_AVG_WIDTH): Adjust for the change of struct font.
aac0c6e3
MR
19344
19345 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
19346 conditionals. Don't check enable_font_backend. Delete all codes
19347 used only when USE_FONT_BACKEND is not defined. Surround non-used
19348 code by "#ifdef OLD_FONT" and "endif".
19349
19350 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
19351 (uniscribe_open): Return value changed to font-object.
19352 Adjusted for the format change of font-object.
bba3e508 19353 (uniscribe_otf_capability): Adjust for the change of struct font.
aac0c6e3 19354 (add_opentype_font_name_to_list): Don't downcase names.
bba3e508 19355 (uniscribe_font_driver): Adjust for the change of struct
aac0c6e3
MR
19356 font_driver.
19357
193582008-05-13 Chong Yidong <cyd@stupidchicken.com>
19359
19360 * dispnew.c (update_frame_1): Check if tty output is still valid
19361 before flushing it.
19362
193632008-05-13 Jan Djärv <jan.h.d@swipnet.se>
19364
19365 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
19366 to Gtk+ menus.
19367
193682008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
19369
19370 * dired.c (file_name_completion): Tweak the code so as to always do it
19371 in a single pass. Tighten the scope of some variables.
19372
19373 * dired.c (Qdefault_directory): New var.
19374 (file_name_completion): Use it instead of Fexpand_file_name.
19375 (syms_of_dired): Initialize it.
19376
193772008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
19378
19379 * fileio.c (double_dollars): Remove dead code.
19380
193812008-05-10 Eli Zaretskii <eliz@gnu.org>
19382
19383 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
19384 Mention w32-get-true-file-attributes in doc string.
19385
19386 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
19387
193882008-05-09 Glenn Morris <rgm@gnu.org>
19389
19390 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
19391 2008-04-23.
19392
193932008-05-09 Eli Zaretskii <eliz@gnu.org>
19394
19395 Support for reporting owner and group of each file on MS-Windows:
19396 * dired.c (stat_uname, stat_gname): New functions, with special
19397 implementation for w32.
19398 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
19399
19400 * w32.c: Rename the_passwd_* to dflt_passwd_*.
19401 (dflt_group_name): New static variable.
19402 (dflt_group): Rename from the_group.
19403 (init_user_info): Init dflt_group fields. Get user's group name
19404 from LookupAccountSid.
19405 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
19406 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
19407 New initialization states.
19408 (globals_of_w32): Initialize them to zero. Initialize the default
19409 group name to "None".
19410 (GetFileSecurity_Name): New global var, the name of the function
19411 to call for GetFileSecurity.
19412 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
19413 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
19414 (get_file_security, get_security_descriptor_owner)
19415 (get_security_descriptor_group, is_valid_sid)
19416 (get_file_security_desc, get_rid, get_name_and_id)
19417 (get_file_owner_and_group): New functions.
19418 (stat): Use get_file_security_desc and get_file_owner_and_group to
19419 report the owner and primary group of each file. Don't ignore the
19420 high 32 bits of file's size, now that st_size is 64-bit wide.
19421 Fix test when to get true file attributes.
19422 (init_user_info): Use get_rid instead of equivalent inline code.
19423 (fstat): Don't ignore the high 32 bits of file's size.
19424
194252008-05-09 Chong Yidong <cyd@stupidchicken.com>
19426
19427 * image.c (png_load): Use correct bit-depth for setting background
19428 color.
19429
194302008-05-08 Eli Zaretskii <eliz@gnu.org>
19431
19432 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
19433 epa-hook.elc.
19434
194352008-05-08 Juanma Barranquero <lekktu@gmail.com>
19436
19437 * font.c (Ffont_match_p): Don't use `iff' in docstring.
19438
194392008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
19440
19441 * macfns.c (Fx_create_frame): Make a copy of frame parameters
19442 because the original parameters are in pure storage now.
19443 (mac_window): Remove unused params. Update callers.
19444
194452008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
19446
19447 * lread.c (substitute_object_recurse): Use lower-level primitives.
19448 Don't signal errors when traversing sub-char-tables.
19449 Don't loop over all the possible characters when traversing char-tables.
19450
19451 * print.c (print_preprocess): Add sub-char-tables to the print-table,
19452 just like we do in print.c.
19453
194542008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
19455
19456 * minibuf.c (Ftry_completion): Remove code left over from when we used
19457 scmp instead of Fcompare_strings.
19458
194592008-05-04 Juanma Barranquero <lekktu@gmail.com>
19460
19461 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
19462
194632008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19464
19465 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
19466 Create bitmap context in native byte order.
19467
19468 * macterm.c (XDrawLine)
19469 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
19470 context in native byte order.
19471
194722008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19473
19474 * config.in: Regenerate.
19475
19476 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
19477 New definitions for Image I/O support.
19478 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
19479 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
19480 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
19481 (mac_data_provider_release_data, image_load_image_io)
19482 [USE_MAC_IMAGE_IO]: New functions.
19483 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
19484 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
19485 (init_image_func_pointer) [MAC_OSX]: Remove function.
19486 (image_load_quartz2d) [MAC_OSX]: Check availability of
19487 CGImageCreateWithPNGDataProvider at compile time.
19488 Use lowercase `false' for boolean constant.
19489 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
19490 Use image_load_image_io.
19491 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
19492 Don't check MyCGImageCreateWithPNGDataProvider.
19493 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
19494 Don't call init_image_func_pointer.
19495
19496 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
19497
19498 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
19499 Make variable non-static.
19500 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
19501 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
19502
19503 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
19504 (RED_FROM_ULONG): Mask off higher bits.
19505 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
19506
19507 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
19508 Include AvailabilityMacros.h.
19509 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
19510 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
19511
195122008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
19513
19514 * chartab.c (Fset_char_table_range): If range is t, really set all
19515 chars to that value.
19516
195172008-05-03 Eli Zaretskii <eliz@gnu.org>
19518
19519 * dired.c (Ffile_attributes): Don't allow the device number become
19520 negative.
19521
195222008-05-02 Daiki Ueno <ueno@unixuser.org>
19523
19524 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
19525
195262008-05-02 Juri Linkov <juri@jurta.org>
19527
19528 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
19529 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
19530 DEFAULT argument as a list of default values in docstrings.
19531
195322008-05-01 Chong Yidong <cyd@stupidchicken.com>
19533
19534 * puresize.h (BASE_PURESIZE): Increase to 1210000.
19535
195362008-05-01 Martin Rudalics <rudalics@gmx.at>
19537
19538 * dispnew.c (change_frame_size_1): Preserve small windows when
19539 shrinking frames by calling set_window_height|width with third
19540 arg 2.
19541
19542 * window.h (struct window): Replace field too_small_ok by field
19543 resize_proportionally.
19544
19545 * window.c (make_window): Initialize resize_proportionally.
19546 (enlarge_window): Temporarily set resize_proportionally to make
19547 sure that shrink_windows does scale the window proportionally.
19548 (shrink_windows): When window has resize_proportionally set try
19549 to shrink it proportionally by stealing from other windows.
19550 (struct saved_window, Fset_window_configuration)
19551 (compare_window_configurations): Handle resize_proportionally.
19552 (WINDOW_TOTAL_SIZE): New macro.
19553 (window_min_size, shrink_windows, size_window): Use it.
19554 (check_min_window_sizes): Remove. Invalid values of
19555 window-min-height|width are handled by window_min_size_2 now.
19556 (size_window, Fsplit_window, enlarge_window)
19557 (adjust_window_trailing_edge, grow_mini_window): Don't call
19558 check_min_window_sizes.
19559 (window_min_size_2, window_min_size_1, window_min_size):
19560 New argument safe_p for retrieving "safe" minimum sizes.
19561 (Fdisplay_buffer, Fsplit_window, enlarge_window)
19562 (adjust_window_trailing_edge, grow_mini_window):
19563 Adjust arguments of window_min_size... functions.
19564 (shrink_windows): Argument min_size removed. New argument
19565 safe_p allows shrinking windows to their safe minimum sizes.
19566 Calculate minimum size and decide whether a window shall be
19567 deleted for each window individually.
19568 (size_window): When nodelete_p equals 2, tell shrink_windows to
19569 delete windows only if their new minimum size is no more safe.
19570 (shrink_window_lowest_first): Call window_min_size_1 to make
19571 sure to preserve modeline of bottom-most window when resizing
19572 the minibuffer.
19573 (Fset_window_configuration, Fcurrent_window_configuration)
19574 (compare_window_configurations): Do not handle
19575 window-min-height|width any more.
19576 (syms_of_window): Clarify window-min-height|width doc-strings.
19577
195782008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
19579
19580 * dired.c (file_name_completion): Fix up the encoding/decoding issue
19581 some more. Copy some of the code from Ftry_completions.
19582 Remove special case code that dates back to initial revision when the
19583 slash was only added when necessary and that can't trigger nowadays.
19584
195852008-04-27 Kenichi Handa <handa@m17n.org>
19586
19587 * font.c (font_prop_validate): Signal `error' instead of `font'.
19588
195892008-04-29 Jason Rumney <jasonr@gnu.org>
19590
19591 * w32fns.c (Fw32_battery_status): New defun.
19592 (syms_of_w32fns): Defsubr it.
19593
195942008-04-28 Andreas Schwab <schwab@suse.de>
19595
19596 * dired.c (file_name_completion): Fix another mixing of encoded
19597 and decoded names.
19598
195992008-04-28 Juanma Barranquero <lekktu@gmail.com>
19600
19601 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
19602
196032008-04-27 Juanma Barranquero <lekktu@gmail.com>
19604
19605 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
19606
196072008-04-27 Andreas Schwab <schwab@suse.de>
19608
19609 * dired.c (file_name_completion): Fix inappropriate mixing of
19610 encoded and decoded names.
19611
19612 * xterm.c (XTread_socket): Fix use of uninitialized variable.
19613
19614 * puresize.h (BASE_PURESIZE): Increase to 1200000.
19615
196162008-04-26 Eli Zaretskii <eliz@gnu.org>
19617
19618 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
19619 2008-03-31, it's not needed anymore with `struct stat' definition
19620 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
19621 for the same reasons.
19622
196232008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
19624
19625 * m/sparc.h: Additional redefinitions for GNU/Linux.
19626
196272008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19628
19629 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
19630 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
19631 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
19632 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
19633 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
19634 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
19635 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
19636 Likewise.
19637
19638 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
19639 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
19640 (mac_ax_number_of_characters): Add externs.
19641 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
19642 [USE_MAC_TSM]: Likewise.
19643 (mac_handle_text_input_event) [MAC_OSX]:
19644 Handle kEventTextInputOffsetToPos for no active input area case.
19645 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
19646 (mac_handle_document_access_event)
19647 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
19648 (install_application_handler) [MAC_OSX]: Register handlers for
19649 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
19650 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
19651 Register mac_handle_document_access_event.
19652
19653 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
19654 Make functions non-static.
19655
196562008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
19657
19658 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
19659 (read_file_name_completion_ignore_case, insert_default_directory)
19660 (Qdefault_directory): Move to minibuffer.el.
19661 (Fread_file_name): Call the new `read-file-name' instead.
19662
196632008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19664
19665 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
19666 Make function non-static.
19667 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
19668 Remove function.
19669 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
19670 Move to mactoolbox.c.
19671 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
19672
19673 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
19674 (mac_rect_make): New macro.
19675
19676 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
19677 instead of float.
19678 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
19679 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
19680 (XSetBackground) [USE_CG_DRAWING]: Likewise.
19681 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
19682 CGRectMake.
19683 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
19684 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
19685 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
19686 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
19687 instead of WindowRef in argument type.
19688 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
19689 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
19690 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
19691 instead of DISPLAY. All uses changed.
19692 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
19693 (x_calc_absolute_position): Simplify so as not to use
19694 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
19695
19696 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
19697 instead of WindowRef in argument type.
19698 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
19699 [TARGET_API_MAC_CARBON]: Remove externs.
19700 (create_apple_event, mac_event_parameters_to_lisp)
19701 [TARGET_API_MAC_CARBON]: Add externs.
19702
19703 * mactoolbox.c (Vmac_ts_script_language_on_focus)
19704 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
19705 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
19706 is clicked.
19707 (x_activate_menubar): Remove extern for saved_menu_event_location.
19708 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
19709 Move from mac.c.
19710
197112008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19712
19713 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
19714 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
19715
197162008-04-23 Jason Rumney <jasonr@gnu.org>
19717
19718 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
19719 attributes only for local files.
19720
19721 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
19722 default to Qlocal.
19723
197242008-04-22 Juri Linkov <juri@jurta.org>
19725
19726 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
19727 read-buffer-to-switch instead of using the letter "B".
19728
197292008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
19730
19731 * fileio.c (Qdefault_directory): New variable.
19732 (Fread_file_name): Use it to pass `dir' to the completion functions.
19733
197342008-04-20 Chong Yidong <cyd@stupidchicken.com>
19735
19736 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
19737
197382008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
19739
19740 * keyboard.c (Vpre_help_message): Remove.
19741 (show_help_echo): Remove default C code.
19742
19743 * dired.c (directory_files_internal, file_name_completion):
19744 Only call ENCODE_FILE if the string is indeed decoded.
19745
197462008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
19747
19748 * Makefile.in (TOOLKIT_DEFINES): Remove.
19749 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
19750
197512008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19752
19753 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
19754 (mactoolbox.o): New target.
19755
19756 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
19757 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
19758
19759 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
19760 Use mac_set_frame_window_background instead of XSetWindowBackground.
19761 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
19762 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
19763 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
19764 instead of SetWindowTitleWithCFString.
19765 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
19766 Move function to mactoolbox.c.
19767 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
19768 Use mac_set_window_modified instead of SetWindowModified.
19769 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
19770 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
19771 (Fx_focus_frame): Use mac_front_non_floating_window instead of
19772 FrontNonFloatingWindow. Use mac_activate_window instead of
19773 ActivateWindow. Use mac_active_non_floating_window instead of
19774 ActiveNonFloatingWindow.
19775 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
19776 Use mac_show_hourglass and mac_hide_hourglass.
19777 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
19778 instead of GetGlobalMouse.
19779 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
19780 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
19781 Use mac_bring_window_to_front instead of BringToFront.
19782 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
19783 mactoolbox.c.
19784 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
19785 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
19786 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
19787 mactoolbox.c.
19788
19789 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
19790 (XtPointer): Move typedef from macmenu.c.
19791 (enum button_type): Move enum from macmenu.c.
19792 (widget_value): Move typedef from macmenu.c.
19793 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
19794 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
19795 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
19796 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
19797 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
19798 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
19799 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
19800 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
19801 (Selection): Move typedef from macselect.c.
19802 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
19803 macterm.c.
19804 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
19805 (mac_is_window_collapsed, mac_bring_window_to_front)
19806 (mac_send_window_behind, mac_hide_window, mac_show_window)
19807 (mac_collapse_window, mac_front_non_floating_window)
19808 (mac_active_non_floating_window, mac_activate_window)
19809 (mac_move_window_structure, mac_move_window, mac_size_window)
19810 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
19811
19812 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
19813 (enum mac_menu_kind): Move enum to mactoolbox.c.
19814 (min_menu_id): Move variable to mactoolbox.c.
19815 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
19816 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
19817 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
19818 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
19819 [TARGET_API_MAC_CARBON]: Likewise.
19820 (XtPointer): Move typedef to macgui.h.
19821 (enum button_type): Move enum to macgui.h.
19822 (widget_value): Move typedef to macgui.h.
19823 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
19824 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
19825 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
19826 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
19827 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
19828 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
19829 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
19830 (popup_activated_flag): Make variable non-static.
19831 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
19832 (add_menu_item, fill_menu, dispose_menus):
19833 Move functions to mactoolbox.c.
19834 (restore_show_help_function, menu_target_item_handler)
19835 (install_menu_target_item_handler, mac_handle_dialog_event)
19836 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
19837 [TARGET_API_MAC_CARBON]: Likewise.
19838 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
19839 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
19840 (find_and_call_menu_selection, name_is_separator): Make function
19841 non-static.
19842 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
19843 to mactoolbox.c.
19844 (set_frame_menubar): Don't call install_menu_quit_handler.
19845 (menu_item_selection): New variable.
19846 (mac_menu_show): Use create_and_show_popup_menu.
19847 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
19848 selection but set variable menu_item_selection. All uses changed.
19849 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
19850 Call install_menu_quit_handler. Move to mactoolbox.c.
19851
19852 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
19853 (Selection): Move typedef to macgui.h.
19854 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
19855 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
19856 Make variables non-static.
19857 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
19858 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
19859 Make functions non-static.
19860 (Vmac_service_selection) [MAC_OSX]: Likewise.
19861 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
19862 (mac_valid_selection_target_p, mac_clear_selection)
19863 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
19864 (mac_put_selection_value, mac_selection_has_target_p)
19865 (mac_get_selection_value, mac_get_selection_target_list)
19866 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
19867 Move functions to mactoolbox.c.
19868 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
19869 Likewise.
19870 (copy_scrap_flavor_data, mac_handle_service_event)
19871 (install_service_handler) [MAC_OSX]: Likewise.
19872 (syms_of_macselect) <Vmac_dnd_known_types>:
19873 Use mac_dnd_default_known_types.
19874
19875 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
19876 Move to mactoolbox.c.
19877 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
19878 (Fx_selection_owner_p): Add EXFUN.
19879 (install_window_handler, remove_window_handler, XSetWindowBackground):
19880 Remove externs.
19881 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
19882 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
19883 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
19884 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
19885 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
19886 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
19887 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
19888 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
19889 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
19890 (create_and_show_popup_menu, mac_get_selection_from_symbol)
19891 (mac_valid_selection_target_p, mac_clear_selection)
19892 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
19893 (mac_put_selection_value, mac_selection_has_target_p)
19894 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
19895 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
19896 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
19897 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
19898 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
19899 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
19900 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
19901 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
19902 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
19903
19904 * mactoolbox.c: New file.
19905
199062008-04-18 Jason Rumney <jasonr@gnu.org>
19907
19908 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
19909
199102008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
19911
19912 * character.c (Fmultibyte_char_to_unibyte):
19913 Return latin1 chars unchanged.
19914
19915 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
19916 relocated if it points to `name'.
19917
199182008-04-17 Kenichi Handa <handa@m17n.org>
19919
19920 * data.c (Faset): Allow setting a multibyte character in an
19921 ASCII-only unibyte string.
19922
19923 * lisp.h (STRING_SET_MULTIBYTE): New macro.
19924
199252008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
19926
19927 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
19928 done in config.h.
19929
199302008-04-16 Juanma Barranquero <lekktu@gmail.com>
19931
19932 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
19933 (Fchar_direction): Add usage in the docstring.
19934
199352008-04-15 Chong Yidong <cyd@stupidchicken.com>
19936
19937 * keyboard.c (read_key_sequence): Remove always-true checks.
19938
199392008-04-14 Jason Rumney <jasonr@gnu.org>
19940
19941 * w32font.c (w32font_open_internal): Set max_bounds.descent in
19942 compatibility struct, for better underline positioning.
19943
199442008-04-13 David Hansen <david.hansen@gmx.net>
19945
19946 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
19947 string.
19948
199492008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
19950
19951 * m/hp800.h (XUINT, XSET): Remove.
19952
199532008-04-12 Juanma Barranquero <lekktu@gmail.com>
19954
19955 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
19956 previous change.
19957
199582008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
19959
19960 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
19961 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
19962
199632008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
19964
19965 * keymap.h (map_keymap_canonical): Declare.
19966 * xmenu.c (single_keymap_panes): Use it.
19967
199682008-04-11 Glenn Morris <rgm@gnu.org>
19969
19970 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
19971 set the target's value to that of the alias.
19972
199732008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
19974
19975 * term.c (set_tty_color_mode): Left over typo.
19976
199772008-04-10 Michael Albinus <michael.albinus@gmx.de>
19978
19979 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
19980 only after check for file name handler functions. Signal, when
19981 native functionality is not supported.
19982 (syms_of_fileio): Declare it unconditionally.
19983
199842008-04-10 Jason Rumney <jasonr@gnu.org>
19985
19986 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
19987 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
19988
19989 * w32.c (logon_network_drive): Also logon to remote drives that
19990 are mapped to drive letters.
19991
199922008-04-10 Glenn Morris <rgm@gnu.org>
19993
19994 * xdisp.c (truncate-partial-width-windows): Doc fix.
19995
199962008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
19997
19998 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
19999 Move functions to minibuffer.el.
20000 (syms_of_fileio): Don't declare them.
20001
200022008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
20003
20004 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
20005 (syms_of_minibuf): Remove its initialization.
20006
20007 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
20008
200092008-04-09 Juanma Barranquero <lekktu@gmail.com>
20010
20011 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
20012
200132008-04-09 Jason Rumney <jasonr@gnu.org>
20014
20015 * makefile.w32-in (distclean): Delete makefile too.
20016 (maintainer-clean): New target.
20017
20018 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
20019
20020 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
20021 for new font backend and composite cases.
20022
200232008-04-09 Jan Djärv <jan.h.d@swipnet.se>
20024
20025 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
20026 Most of the code moved to run_timers.
20027 (do_pending_atimers): Call run_timers.
20028 (run_timers): New function.
20029
20030 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
20031 run atimers.
20032
20033 * process.c (wait_reading_process_output): The same as above.
20034
200352008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
20036
20037 * minibuf.c (last_exact_completion): Remove variable.
20038 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
20039 (complete_and_exit_1, complete_and_exit_2)
20040 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
20041 (Fdisplay_completion_list, display_completion_list_1)
20042 (Fminibuffer_completion_help, Fself_insert_and_exit)
20043 (Fexit_minibuffer, Fminibuffer_message): Move functions to
20044 minibuffer.el.
20045 (syms_of_minibuf): Remove corresponding initializations.
20046
20047 * keyboard.c (Qdeactivate_mark): New var.
20048 (command_loop_1): Use it to call `deactivate-mark'.
20049 (syms_of_keyboard): Initialize it.
20050
20051 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
20052 to another frame.
20053 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
20054 Don't call set_tty_color_mode.
20055 (store_frame_param): Reset previous_frame rather than call
20056 set_tty_color_mode.
20057 * term.c (set_tty_color_mode): Rewrite.
20058 * dispextern.h (set_tty_color_mode): New type.
20059 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
20060
200612008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
20062
20063 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
20064 for generic chars, which do not exist any more in emacs-unicode.
20065
200662008-04-08 Michael Albinus <michael.albinus@gmx.de>
20067
20068 * coding.c (detect_coding_emacs_mule)
20069 (Ffind_operation_coding_system): Fix typo.
20070
200712008-04-08 Jason Rumney <jasonr@gnu.org>
20072
20073 * w32uniscribe.c (SNAME): Extract only symbol name.
20074
20075 * w32font.h (struct w32_metric_cache): New struct.
20076 (w32font_info): Use it.
20077 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
20078 (CACHE_BLOCKSIZE): New constants.
20079
20080 * w32font.c (Qja, Qko, Qzh): New symbols.
20081 (syms_of_w32font): Initialise them.
20082 (font_matches_spec): Use them to filter by language.
20083 (recompute_cached_metrics): Remove function.
20084 (compute_metrics, clear_cached_metrics): New functions.
20085 (w32font_encode_char): Use them to manage metric cache.
20086 (w32font_text_extents): Cache metrics for all glyphs on demand.
20087 Delay converting glyph indices to WORD until needed.
20088 (w32font_open_internal): Initialize metric cache to empty.
20089 (registry_to_w32_charset): Charset should always be a symbol.
20090 (fill_in_logfont, list_all_matching_fonts): Family should
20091 always be a symbol.
20092
200932008-04-06 Jason Rumney <jasonr@gnu.org>
20094
20095 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
20096 Give up if glyph indices not supported. Use uniscribe obtained
20097 ABC widths for individual metrics. Map glyph clusters back to
20098 characters using fClusterStart flag. Return number of glyphs
20099 produced, not chars processed.
20100 (uniscribe_shape): Map char at FROM to current glyph.
20101
201022008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20103
20104 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
20105 Use SetMenuItemHierarchicalMenu.
20106
201072008-04-05 Jason Rumney <jasonr@gnu.org>
20108
20109 * image.c (pbm_load): Allow color values up to 65535.
20110 Throw an error if max_color_idx is outside the supported range.
20111 Report an error when image size is invalid.
20112 Read two bytes at a time when raw images have max_color_idx above 255.
20113
aac0c6e3
MR
201142008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
20115
20116 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
20117 append "CCL: Quitted" when the CCL program is quitted.
20118 (setup_ccl_program): Initialize ccl->quit_silently to zero.
20119
20120 * ccl.h (struct ccl_program): New member quit_silently.
20121
201222008-04-05 Chong Yidong <cyd@stupidchicken.com>
20123
20124 * search.c (compile_pattern_1): Treat non-nil and non-string of
20125 search-spaces-regexp as nil.
20126
20127 * minibuf.c (Fassoc_string): Tweak docstring.
20128
201292008-04-05 Eli Zaretskii <eliz@gnu.org>
20130
20131 * dired.c (Ffile_attributes): Support inode numbers wider than 32
20132 bits. Remove ugly WINDOWSNT-specific kludge introduced on
20133 2008-03-14 to force inode be positive.
20134
20135 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
20136 _S_* ones, since we now use our own sys/stat.h.
20137 (stat, fstat): Don't mangle the inode number.
20138 (init_user_info): Don't restrict UID and GID to 0-60000 range.
20139
201402008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
20141
20142 * frame.h (struct frame): Give one more bit to `visible' since we use
20143 values larger than 1 to indicate obscured frames on ttys.
20144
20145 * keymap.c (Qkeymap_canonicalize): New var.
20146 (Fmap_keymap_internal): New fun.
20147 (describe_map): Use keymap-canonicalize.
20148
20149 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
20150 (Fundo_boundary): Set them.
20151 (syms_of_undo): Initialize them.
20152 (record_point): Use them instead of last_point_position*.
20153 (last_undo_buffer): Change type.
20154
201552008-04-04 Jason Rumney <jasonr@gnu.org>
20156
20157 * w32font.c (w32font_text_extents): Use font's ascent and descent.
20158 (recompute_cached_metrics): Don't set ascent and descent per char.
20159
20160 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
20161 (uniscribe_check_otf): Add GC protection before consing.
20162 Rearrange loop for counting features.
20163
201642008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
20165
20166 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
20167 buffer with byte-size of source buffer.
20168
201692008-04-03 Chong Yidong <cyd@stupidchicken.com>
20170
20171 * callint.c (Fcall_interactively): Handle temporary region even
20172 when shift-select-mode is off.
20173
201742008-04-03 Jason Rumney <jasonr@gnu.org>
20175
20176 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
20177
201782008-04-03 Kenichi Handa <handa@m17n.org>
20179
20180 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
20181 (CATEGORY_MASK_UTF_16): Likewise.
20182 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
20183 binary file.
20184 (detect_coding): Add null-byte detection for a binary file.
20185 (detect_coding_system): Likewise.
20186
201872008-04-03 Jason Rumney <jasonr@gnu.org>
20188
20189 * w32uniscribe.c: New file.
20190
20191 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
20192
20193 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
20194
20195 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
20196 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
20197 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
20198 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
20199 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
20200 (Qphonetic): New symbols.
20201 (syms_of_w32font): Initialize them.
20202 (font_supported_scripts): Use them.
20203 (w32font_list_family): List all charsets.
20204 (w32font_text_extents, recompute_cached_metrics): Fix metric
20205 calculations.
20206 (w32_enumfont_pattern_entity): Make full_type a DWORD.
20207 Give opentype fonts their own format.
20208 (font_matches_spec): New arguments backend and logfont.
20209 Handle :otf spec for uniscribe backend.
20210 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
20211 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
20212
20213 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
20214 font backend.
20215 (globals_of_w32fns): Initialize uniscribe font backend.
20216
20217 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
20218 dependencies.
20219 (w32uniscribe.$(O)): New file to build.
20220 (FONT_OBJ): Include w32uniscribe.$(O).
20221 (LIBS): Add uniscribe libraries.
20222
20223 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
20224
202252008-04-02 Chong Yidong <cyd@stupidchicken.com>
20226
20227 * callint.c (Vshift_select_mode): New var.
20228 (Finteractive): Document new ^ spec.
20229 (Fcall_interactively): Call handle-shift-selection if the ^ spec
20230 is present.
20231
20232 * keyboard.c (Vthis_command_keys_shift_translated): New var.
20233 (command_loop_1): Avoid running the direct display versions of
20234 forward-char and backward-char if shift-selection may occur.
20235 (read_key_sequence): Set Vthis_command_keys_shift_translated if
20236 shift-translation takes place.
20237
20238 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
20239 avoid clobbering by define-minor-mode.
20240
20241 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
20242 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
20243
20244 * syntax.c (Fforward_word): Add ^ interactive spec.
20245
20246 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
20247 (Fscroll_right): Add ^ interactive spec.
20248
202492008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
20250
20251 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
20252
20253 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
20254
20255 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
20256
202572008-03-31 Juri Linkov <juri@jurta.org>
20258
20259 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
20260
202612008-03-30 Jan Djärv <jan.h.d@swipnet.se>
20262
20263 * gtkutil.c (xg_set_geometry): Fix indentation.
20264 (xg_resize_outer_widget): Remove.
20265 (x_wm_size_hint_off): Fix indentation.
20266 (xg_frame_set_char_size): Call flush_and_sync after
20267 gtk_window_resize.
20268 (x_wm_set_size_hint): Pass NULL as geometry window to
20269 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
20270 Add menu bar and tool bar height to base height.
20271 (xg_update_frame_menubar, free_frame_menubar)
20272 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
20273 (update_frame_tool_bar, free_frame_tool_bar):
20274 Change xg_resize_outer_widget to xg_frame_set_char_size.
20275
202762008-03-30 Michael Albinus <michael.albinus@gmx.de>
20277
20278 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
20279 (Fdbus_call_method): New parameter TIMEOUT.
20280 (dbus-send-signal): Optimize UNGCPRO call.
20281
202822008-03-29 Juri Linkov <juri@jurta.org>
20283
20284 * window.c (Fdisplay_buffer): Move call to
20285 Vsplit_window_preferred_function out of conditions that check
20286 if window is eligible for vertical splitting.
20287 When Vsplit_window_preferred_function is non-nil, call it and use
20288 its non-nil return value as window. Otherwise, continue doing
20289 vertical splitting using Fsplit_window with arg horflag=nil.
20290 (syms_of_window) <Vsplit_window_preferred_function>: Change the
20291 default value from `split-window' to nil.
20292
202932008-03-29 Juri Linkov <juri@jurta.org>
20294
20295 * callint.c (Fcall_interactively): Revert 2008-03-16 change
20296 for interactive code letters 'b' and 'B'.
20297
202982008-03-29 Eli Zaretskii <eliz@gnu.org>
20299
20300 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
20301 multibyte string.
20302
203032008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
20304
20305 * keyboard.c (pending_funcalls): New var.
20306 (timer_check): Run it.
20307 (syms_of_keyboard): Initialize it.
20308 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
20309 (Vdelete_terminal_functions): New vars.
20310 (syms_of_terminal): Initialize them.
20311 (Fdelete_terminal): Run delete-terminal-functions.
20312 * xdisp.c (safe_eval): Rewrite.
20313 (safe_call2): New fun.
20314 * frame.c (Qdelete_frame_functions): New var.
20315 (syms_of_frame): Initialize it.
20316 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
20317 * lisp.h (safe_call2, pending_funcalls): Declare.
20318
203192008-03-28 Andreas Schwab <schwab@suse.de>
20320
20321 * indent.c (Fmove_to_column): Move declaration before statements.
20322
203232008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
20324
20325 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
20326 (struct frame): Use bit fields for boolean vars.
20327
20328 * process.c (server_accept_connection): Simplify naming.
20329 (emacs_get_tty_pgrp): Use SDATA.
20330
20331 * coding.c (decode_coding_object): Fix last change.
20332
203332008-03-27 Jason Rumney <jasonr@gnu.org>
20334
20335 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
20336
203372008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
20338
20339 * charset.c (Fdefine_charset_internal): Change the way of
20340 registering charsets in Vcharset_order_list.
20341 (syms_of_charset): Make the charset `eight-bit' supplementary.
20342
203432008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
20344
20345 * regex.c (EXTEND_BUFFER): Change order of pointer addition
20346 operations, to avoid having the difference between pointers
20347 overflow.
20348
203492008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
20350
20351 * indent.c (check_display_width): New fun.
20352 (scan_for_column): Use it.
20353
20354 * data.c (syms_of_data): Mark most-positive-fixnum and
20355 most-negative-fixnum as constants.
20356
20357 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
20358
20359 * indent.c (scan_for_column): Extract from current_column_1.
20360 Merge with the same code from Fmove_to_column.
20361 (current_column_1, Fmove_to_column): Use it.
20362
203632008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
20364
20365 * keymap.c (map_keymap_internal): New fun.
20366 (map_keymap): Use it.
20367 (Fmap_keymap_internal): New fun.
20368 (Fmap_keymap): Remove left-out test from before make_save_value.
20369
20370 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
20371
20372 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
20373 Use XCAR/XCDR.
20374
20375 * process.h (struct Lisp_Process): Remove filter_multibyte.
20376 * process.c (QCfilter_multibyte): Remove.
20377 (setup_process_coding_systems): Don't use filter_multibyte.
20378 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
20379 (read_process_output): Don't adjust multibyteness to filter_multibyte.
20380 (Fset_process_filter_multibyte): Change the coding-system to
20381 approximate the previous behavior.
20382 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
20383 coding-system.
20384
20385 * coding.c (decode_coding_object): When not decoding into a buffer,
20386 obey the coding system's preference of (uni|multi)byte.
20387
203882008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
20389
20390 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
20391 every char is changed and has a different byte-length.
20392 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
20393 Fix int -> EMACS_INT.
20394
203952008-03-23 David Hansen <david.hansen@gmx.net>
20396
20397 * dbusbind.c (xd_read_message): Remove extra copying of message
20398 strings. Check for NULL `interface' or `member'.
20399
204002008-03-22 Eli Zaretskii <eliz@gnu.org>
20401
20402 * w32.c (readdir): If FindFirstFile/FindNextFile return in
20403 cFileName a file name that includes `?' characters, use the 8+3
20404 alias in cAlternateFileName instead.
20405
204062008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
20407
20408 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
20409
204102008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
20411
20412 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
20413 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
20414 work on current_buffer only instead (that was already the case
20415 for some of the code anyway).
20416 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
20417 (temp_set_point, temp_set_point_both): Use EMACS_INT.
20418 (SET_PT, SET_PT_BOTH): Adjust.
20419 * intervals.h (set_point, temp_set_point, set_point_both)
20420 (temp_set_point_both): Remove redundant declarations.
20421
204222008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
20423
20424 * fileio.c (Finsert_file_contents):
20425 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
20426 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
20427 when buffer != current_buffer anyway.
20428
204292008-03-20 Andreas Schwab <schwab@suse.de>
20430
20431 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
20432 as default.
20433
204342008-03-19 Jason Rumney <jasonr@gnu.org>
20435
20436 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
20437 (syms_of_w32fns): Initialize them.
20438 (HOURGLASS_ID): New constant.
20439 (x_window_to_frame): Don't check hourglass_window.
20440 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
20441 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
20442 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
20443 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
20444 Only change the cursor if hourglass is not active.
20445 (Fx_create_frame): Initialize frame's current_cursor.
20446 (hourglass_atimer): Remove.
20447 (hourglass_started): New function.
20448 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
20449 (show_hourglass): Adapt to w32, changing argument to frame.
20450
20451 * w32term.h (struct w32_output): Remove hourglass_window.
20452 Add current_cursor.
20453
20454 * eval.c (call_debugger, Fsignal):
20455 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
20456 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
20457 (Fexecute_extended_command, cancel_hourglass_unwind):
20458 * minibuf.c (read_minibuf):
20459 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
20460
204612008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
20462
20463 * window.c (run_funs): New fun.
20464 (run_window_configuration_change_hook): Use it to run the buffer-local
20465 and the global part of the hook.
20466
20467 * xdisp.c (format_mode_line_unwind_data): Add window argument.
20468 (unwind_format_mode_line): Restore selected window.
20469 (x_consider_frame_title, Fformat_mode_line): Set selected window.
20470
204712008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
20472
20473 * editfns.c (Fchar_equal): Check they are valid characters.
20474
20475 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
20476
204772008-03-17 Andreas Schwab <schwab@suse.de>
20478
20479 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
20480 against a charset.
20481
20482 * lisp.h (Fbuffer_list): Declare.
20483
204842008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 20485
aac0c6e3
MR
20486 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
20487 handlebox_widget is != 0.
20488
204892008-03-16 Juri Linkov <juri@jurta.org>
20490
20491 * callint.c (Fcall_interactively): For interactive code letters
20492 'b' and 'B' put the buffer list into the list of default "future"
20493 values of the minibuffer.
20494
204952008-03-16 Andreas Schwab <schwab@suse.de>
20496
20497 * keyboard.c (read_key_sequence): Fix downcasing of letters with
20498 modifiers.
20499
20500 * regex.c (re_match_2_internal): Correct matching of a charset
20501 against latin-1 characters.
20502
205032008-03-16 Kenichi Handa <handa@m17n.org>
20504
20505 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
20506 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
20507 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
20508 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
20509 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
20510 CHAR_STRING_ADVANCE.
20511 (produce_chars): Fix for the case that the source and the
20512 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
20513 instead of CHAR_STRING_ADVANCE.
20514 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
20515 STRING_CHAR_ADVANCE.
20516
205172008-03-15 Andreas Schwab <schwab@suse.de>
20518
20519 * regex.c (re_match_2_internal): Correct matching of eight bit
20520 characters in unibyte strings.
20521
205222008-03-15 Martin Rudalics <rudalics@gmx.at>
20523
20524 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
20525 at end of range when it coincides with the end of the buffer.
20526
205272008-03-14 Eli Zaretskii <eliz@gnu.org>
20528
20529 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
20530
20531 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
20532
205332008-03-14 Jason Rumney <jasonr@gnu.org>
20534
20535 * editfns.c (initial_tz): New variable.
20536 (syms_of_editfns): Initialize it.
20537 (Fset_time_zone_rule): Set it when first called.
20538 Use it when TZSTRING is nil.
20539
20540 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
20541 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
20542 (monitor_from_point_fn, get_monitor_info_fn): New globals.
20543 (globals_of_w32fns): Initialize them.
20544 (compute_tip_xy): Use them to position tooltips.
20545
205462008-03-14 Glenn Morris <rgm@gnu.org>
20547
20548 * emacs.c (main): Revert previous change.
20549 (standard_args): Revert -internal-script back to -scriptload,
20550 and remove the long-option form.
20551
205522008-03-13 Glenn Morris <rgm@gnu.org>
20553
20554 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
20555 Remove option -enable-font-backend.
20556
205572008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
20558
20559 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
20560
205612008-03-11 Jan Djärv <jan.h.d@swipnet.se>
20562
20563 * xterm.c (x_connection_closed): For GTK: If this is the last
20564 terminal just exit without closing the display.
20565
205662008-03-11 Jason Rumney <jasonr@gnu.org>
20567
20568 * w32font.c (w32font_full_name): Use floor to round.
20569
f0131492 205702008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
20571
20572 * sound.c (alsa_configure): Declare vol at beginning of block.
20573
20574 * fontset.c (Ffontset_info): Remove extra semicolon.
20575
205762008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
20577
20578 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
20579 size of resulting string.
20580
205812008-03-10 Jason Rumney <jasonr@gnu.org>
20582
20583 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
20584
205852008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20586
20587 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
20588 Don't pretend as if characters with display property haven't been
20589 consumed for string-replacing-string case.
20590
205912008-03-08 Kim F. Storm <storm@cua.dk>
20592
20593 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
20594 (get_next_display_element, next_element_from_string)
20595 (next_element_from_ellipsis, next_element_from_buffer): Use it.
20596
205972008-03-08 Andreas Schwab <schwab@suse.de>
20598
20599 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
20600
206012008-03-06 Jason Rumney <jasonr@gnu.org>
20602
20603 * w32font.c (w32_registry): Take font_type argument. Use ANSI
20604 when charset not specified. Only translate ANSI to unicode when
20605 font_type is truetype.
20606 (w32font_coverage_ok): New function.
20607 (add_font_entity_to_list): Use it to filter unsuitable fonts.
20608
206092008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
20610
20611 * lread.c (Fread_char): Resolve modifiers.
20612 (Fread_char_exclusive): Likewise.
20613
20614 * character.c (char_resolve_modifier_mask): New function.
20615 (char_string): Use char_resolve_modifier_mask.
20616 (Fchar_resolve_modifiers): New function.
20617 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
20618 function.
20619
206202008-03-04 Jason Rumney <jasonr@gnu.org>
20621
20622 * makefile.w32-in: Always include w32font.c in the build.
20623 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
20624
206252008-03-04 Andreas Schwab <schwab@suse.de>
20626
20627 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
20628 (versionclean): Likewise.
20629
206302008-03-04 Juanma Barranquero <lekktu@gmail.com>
20631
20632 * .cvsignore: Add oo.
20633
206342008-03-03 Andreas Schwab <schwab@suse.de>
20635
20636 * coding.c (decode_coding_object): Inhibit gap shrinking while
20637 decoding in place.
20638
206392008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
20640
20641 * w32term.c: Remove unused include "gnu.h".
20642 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
20643
20644 * gnu.h: Rename to ...
20645 * emacs-icon.h: ... this.
20646 * xterm.c: Use emacs-icon.h instead of gnu.h.
20647 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
20648
206492008-03-03 Juanma Barranquero <lekktu@gmail.com>
20650
20651 * w32font.c: Include math.h.
20652
206532008-03-03 Jason Rumney <jasonr@gnu.org>
20654
20655 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
20656 Compute options separately.
20657 (w32font_open_internal): Set glyph_idx before caching metrics.
20658
20659 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
20660 Define if system headers don't.
20661 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
20662 (w32font_encode_char): Don't declare here.
20663
20664 * w32font.c (Quniscribe, QCformat): New symbols.
20665 (syms_of_w32font): Define them.
20666 (w32font_has_char): Indicate uncertainty.
20667 (w32font_encode_char): Encode as glyph point. Make static.
20668 (recompute_cached_metrics): New function.
20669 (w32font_open_internal): Use it. Set font to use glyph points
20670 initially. Set format based on type of font.
20671 (w32font_text_extents, w32font_draw): Optionally use glyph points.
20672 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
20673 on it. Set format based on information available here.
20674 (add_font_entity_to_list): Identify backend based on opentype_only.
20675
206762008-03-02 Andreas Schwab <schwab@suse.de>
20677
20678 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
20679
20680 * coding.c (decode_coding_big5, produce_chars):
20681 Fix typos in last change.
20682
206832008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
20684
20685 * gnu.h: New icon.
20686
206872008-03-02 Kenichi Handa <handa@m17n.org>
20688
20689 * coding.c (decode_coding_utf_8): When eol-type of CODING is
20690 `dos', don't decode '\r' if that is the last in the source.
20691 (decode_coding_utf_16, decode_coding_emacs_mule)
20692 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
20693 (decode_coding_raw_text, decode_coding_charset): Likewise.
20694 (produce_chars): Don't decode EOL here. Use EMACS_INT.
20695
206962008-03-01 Jason Rumney <jasonr@gnu.org>
20697
20698 * w32font.c (w32font_full_name): Report point size for scalable fonts.
20699
207002008-03-01 Kim F. Storm <storm@cua.dk>
20701
20702 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
20703
207042008-03-01 Jason Rumney <jasonr@gnu.org>
20705
20706 * w32font.c (w32font_full_name): New function.
20707 (w32font_open_internal): Use it.
20708
207092008-03-01 Kim F. Storm <storm@cua.dk>
20710
20711 * dispnew.c (line_draw_cost): Fix invalid glyph check.
20712
207132008-03-01 Jason Rumney <jasonr@gnu.org>
20714
20715 * font.c (font_unparse_fcname): Increase len when style is a symbol.
20716
207172008-03-01 Jan Djärv <jan.h.d@swipnet.se>
20718
20719 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
20720 xg_frame_resized when the event is for the edit widget.
20721
ef1b0ba7 20722 * gtkutil.h (xg_frame_resized): Rename from xg_resize_widgets.
aac0c6e3
MR
20723
20724 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
20725 set_char_size.
ef1b0ba7 20726 (xg_frame_resized): Rename from xg_resize_widgets. Remove all
aac0c6e3
MR
20727 operations on widgets here. Just set frame size if needed.
20728 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
20729 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
20730 (x_wm_set_size_hint): Set size hints on the edit widget only, not
20731 the whole frame.
20732 (xg_create_tool_bar): Move attachment of the tool bar to
20733 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
20734 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
20735
207362008-03-01 Jason Rumney <jasonr@gnu.org>
20737
20738 * w32fns.c (w32_msg_pump): Disable debug code.
20739
207402008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20741
20742 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
20743
207442008-02-29 Chong Yidong <cyd@stupidchicken.com>
20745
20746 * xdisp.c (next_overlay_string): Don't set
20747 overlay_strings_at_end_processed_p if we're currently reading from
20748 a display string.
20749
207502008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
20751
20752 * xdisp.c (get_overlay_strings_1): Fix typo.
20753
207542008-02-29 Chong Yidong <cyd@stupidchicken.com>
20755
20756 * xdisp.c (get_overlay_strings_1): Add missing argument type.
20757
207582008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
20759
20760 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
20761
20762 * xdisp.c (display_mode_element): Cancel the previous change.
20763 (decode_mode_spec): Likewise.
20764 (handle_auto_composed_prop): Don't make composition if it->string
20765 is a string.
20766
207672008-02-27 Kim F. Storm <storm@cua.dk>
20768
20769 * lisp.h (GLYPH): Change type from int to struct with separate char
20770 and face_id members.
20771 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
20772 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
20773 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
20774 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
20775 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
20776 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
20777 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
20778 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
20779 handle new Lisp glyph code encoding, either an integer or a cons.
20780
20781 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
20782 (GLYPH_ALIAS): Delete.
20783 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
20784 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
20785 (GLYPH_FROM_CHAR): Replace macro by ...
20786 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
20787
20788 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
20789 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
20790 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
20791 (GLYPH_INVALID_P): New macro.
20792 (spec_glyph_lookup_face): Update prototype.
20793
20794 * dispnew.c (line_draw_cost): Adapt to new glyph type.
20795 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
20796 new glyph code encoding.
20797 (spec_glyph_lookup_face): No return value; update passed glyph instead.
20798 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
20799
20800 * xdisp.c (get_next_display_element, next_element_from_display_vector):
20801 Adapt to new glyph type and new glyph code encoding.
20802
20803 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
20804
20805 * indent.c (current_column, current_column_1, Fmove_to_column)
20806 (compute_motion): Adapt to new glyph code encoding.
20807
20808 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
20809
208102008-02-27 Chong Yidong <cyd@stupidchicken.com>
20811
20812 * process.c (wait_reading_process_output): Check for window
20813 changes caused by timers.
20814 Suggested by Johan Bockgård.
20815
208162008-02-27 Glenn Morris <rgm@gnu.org>
20817
20818 * emacs.c (USAGE1): Add `--disable-font-backend'.
20819
208202008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
20821
20822 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
20823 is made to the buffer.
20824
208252008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
20826
20827 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
20828 (face_at_string_position):
20829 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
20830 (face_at_string_position):
20831 * xdisp.c (display_string, next_overlay_change):
20832 * buffer.h (overlays_at):
20833 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
20834 Update callers.
20835
208362008-02-26 Chong Yidong <cyd@stupidchicken.com>
20837
20838 * editfns.c (Fformat): Doc fix.
20839
208402008-02-26 Juanma Barranquero <lekktu@gmail.com>
20841
20842 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
20843 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
20844 (Ffont_otf_alternates, Fquery_font): Doc fixes.
20845
208462008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
20847
20848 * buffer.c (Fbuffer_swap_text): New function.
20849 (syms_of_buffer): Defsubr it.
20850
208512008-02-25 Chong Yidong <cyd@stupidchicken.com>
20852
20853 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
20854
208552008-02-25 Jason Rumney <jasonr@gnu.org>
20856
20857 * w32font.c (w32font_draw): Draw one character at a time when padding.
20858
208592008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
20860
20861 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
20862 Handle a nil arg. Use run_window_configuration_change_hook.
20863 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
20864 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
20865 Use run_window_configuration_change_hook.
20866
208672008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
20868
20869 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
20870 1-pixel width.
20871
208722008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
20873
20874 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
20875 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
20876 if the glyph in the font is zero pixel with.
20877
20878 * dispextern.h (struct glyph_string): New member padding_p.
20879
20880 * w32font.c (w32font_draw): Pay attention to s->padding_p.
20881
20882 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
20883
20884 * xfont.c (xfont_draw): Pay attention to s->padding_p.
20885
20886 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
20887
20888 * font.c: If the font driver doesn't have `shape' function, return Qnil.
20889
208902008-02-25 Jason Rumney <jasonr@gnu.org>
20891
20892 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
20893
208942008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
20895
20896 Allow fine-grained image-cache flushing.
20897 * dispextern.h (struct image): Add `dependencies' field.
20898 (clear_image_caches): Change arg to Lisp_Object.
20899 * image.c (make_image): Initialize `dependencies' field.
20900 (clear_image_cache): Change arg to allow fine-grained flushing.
20901 Perform the flush even if image-cache-eviction-delay is nil.
20902 (clear_image_caches): Change arg to Lisp_Object.
20903 (Fclear_image_cache): Expand meaning of the argument.
20904 (mark_image): Mark `dependencies' field.
20905 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
20906 (lface_hash): Use XHASH rather than XFASTINT.
20907 (face_at_buffer_position): Fix int -> EMACS_INT position.
20908 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
20909 (select_frame_for_redisplay): Remove code duplication.
20910 (redisplay_internal): Adapt arg to call to clear_image_caches.
20911
209122008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
20913
20914 * s/vms4-0.h:
20915 * s/vms4-2.h:
20916 * s/vms4-4.h:
20917 * s/vms5-5.h: Remove, unused.
20918
20919 * s/irix5-2.h:
20920 * s/irix6-0.h:
20921 * s/riscos5.h:
20922 * s/mach-bsd4-3.h:
20923 * m/mips4.h: Remove files for obsolete systems.
20924
20925 * Makefile.in:
20926 * filelock.c:
20927 * unexmips.c:
20928 * m/hp9000s300.h:
20929 * m/iris4d.h:
20930 * s/aix3-1.h:
20931 * s/hpux.h:
20932 * s/msdos.h:
20933 * s/usg5-0.h:
20934 * s/usg5-2-2.h:
20935 * s/usg5-2.h:
20936 * s/usg5-3.h: Remove references to obsolete variables.
20937
20938 * s/irix5-0.h: Remove, move all the contents ...
20939 * s/irix6-5.h: ... here. Simplify.
20940 * config.in: Regenerate.
20941
209422008-02-24 Jason Rumney <jasonr@gnu.org>
20943
20944 * w32term.c (x_draw_glyph_string_background): Clear the background
20945 manually when cleartype is in use.
20946 (x_draw_glyph_string_foreground): Draw text transparently when
20947 cleartype is in use.
20948
20949 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
20950 a font into it unless we have to.
20951
209522008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
20953
20954 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
20955 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 20956
aac0c6e3
MR
209572008-02-18 Jason Rumney <jasonr@gnu.org>
20958
20959 * w32fns.c (Fw32_shell_execute): Encode parameters.
20960
209612008-02-09 Eli Zaretskii <eliz@gnu.org>
20962
20963 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
20964
209652008-02-05 Juanma Barranquero <lekktu@gmail.com>
20966
20967 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
20968
209692008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
20970
20971 * xterm.c (x_set_offset): Don't change the gravity if
20972 CHANGE_GRAVITY is -1.
20973
209742008-02-23 Chong Yidong <cyd@stupidchicken.com>
20975
20976 * fileio.c (auto_save_error_occurred): New var.
20977 (auto_save_error): Set it.
20978 (Fdo_auto_save): Don't overwrite the error message if an auto-save
20979 error occurred.
20980
209812008-02-23 Eli Zaretskii <eliz@gnu.org>
20982
20983 * w32.c (globals_of_w32): Add initializations for
20984 g_b_init_get_sid_sub_authority and
20985 g_b_init_get_sid_sub_authority_count.
20986
209872008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
20988
20989 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
20990 (font_parse_xlfd): Use them for sanity check.
20991 (Finternal_set_font_style_table): Make sure the table is bijective.
20992
20993 Consolidate the image_cache to the terminal struct.
20994 * termhooks.h (P_): Remove redundant def.
20995 (struct terminal): New field `image_cache'.
20996 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
20997 of FRAME_X_IMAGE_CACHE.
20998 * xterm.h (struct x_display_info): Remove image_cache field.
20999 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
21000 * w32term.h (struct w32_display_info): Remove image_cache field.
21001 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
21002 * macterm.h (struct mac_display_info): Remove image_cache field.
21003 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
21004 * xterm.c (x_term_init):
21005 * w32term.c (w32_term_init):
21006 * macterm.c (mac_term_init): Set the image_cache in the terminal.
21007 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
21008 Remove declarations.
21009 (clear_image_caches, mark_image_cache): New declarations.
21010 * xfaces.c (clear_face_cache):
21011 * xdisp.c (redisplay_internal): Use clear_image_caches.
21012 * image.c (clear_image_cache): Don't check that a frame is on
21013 a window-system before checking if it shares the same cache.
21014 (clear_image_caches): New function.
21015 (Fclear_image_cache): Use it.
21016 (mark_image): Move from allo.c.
21017 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
21018 * alloc.c (mark_image, mark_image_cache): Move to image.c.
21019 (mark_object): Don't call mark_image_cache for frames.
21020 (mark_terminals): Call mark_image_cache.
21021
21022 * lisp.h (Fdelete_terminal): Declare.
21023
21024 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
21025 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
21026 wrong_type_argument.
21027
210282008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
21029
21030 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
21031 malayalam.el, and tamil.el. Add sinhala.el.
21032
210332008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
21034
21035 * xterm.c (x_connection_closed): Consolidate identical tests.
21036 (x_delete_terminal): Don't crash if called via x_connection_closed.
21037
210382008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
21039
21040 * xdisp.c (decode_mode_spec): New arg string.
21041 (display_mode_element): Adjust for the above change.
21042
210432008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
21044
21045 * callint.c (Fcall_interactively): Use AREF.
21046
210472008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
21048
21049 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
21050
210512008-02-18 Jan Djärv <jan.h.d@swipnet.se>
21052
21053 * xfns.c (Fx_show_tip): Set string to " " if empty.
21054
210552008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
21056
21057 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
21058 with Qt.
21059
210602008-02-17 Kenichi Handa <handa@m17n.org>
21061
21062 * ftfont.c (ftfont_shape): Return Lispy number.
21063
21064 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
21065 for GCs.
21066 (Finternal_set_font_selection_order): Call font_update_sort_order
21067 only when enable_font_backend is set.
21068 (realize_x_face): Set face->font_info to that of default face only
21069 when enable_font_backend is set.
21070
21071 * xdisp.c (handle_composition_prop): Set it->c to the fist
21072 character of the composed region.
21073 (fill_composite_glyph_string): Set base_face->font_info to
21074 s->font_info. Get a face for ascii from base_face->ascii_face.
21075 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
21076 with a face already decided.
21077 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
21078 non-negative.
21079 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
21080 call font_prepare_composition unconditionally.
21081
21082 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
21083
21084 * xterm.h (struct x_display_info): New member font.
21085
21086 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
21087 (x_set_mouse_face_gc, x_new_font): Likewise.
21088 (x_term_init): Setup display_info->font.
21089 (x_delete_terminal): Free display_info->font.
21090
21091 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
21092
21093 * ftxfont.c (ftxfont_default_fid): Delete it.
21094 (ftxfont_open): Set xfont->fid to 0.
21095 (ftxfont_end_for_frame): Clear data specific to the frame and the
21096 font-driver.
21097
21098 * xftfont.c (xftfont_default_fid): Delete it.
21099 (xftfont_open): Set xfont->fid to 0.
21100
21101 * fontset.c (FONTSET_OBJLIST): New macro.
21102 (fontset_find_font): Update font-object list of the fontset.
21103 (free_realized_fontset): New function.
21104 (free_face_fontset): Call free_realized_fontset.
21105 (Ffont_info): Call font_close_object only when enable_font_backend
21106 is set.
21107
21108 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
21109 [HAVE_NTGUI]: Include w32term.h.
21110 [MAC_OS]: Include macterm.ch.
21111 (font_otf_ValueRecord): Use make_number.
21112 (font_finish_cache): Fix handling of reference count.
21113 (font_clear_cache): Update num_fonts.
21114 (font_open_entity): Update smallest_char_width and
21115 smallest_font_height of the frame.
21116 (font_close_object): Update num_fonts.
21117 (Fclear_font_cache): Fix finding the target cache data.
21118
211192008-02-16 Glenn Morris <rgm@gnu.org>
21120
21121 * fontset.c (Finternal_char_font): Fix compilation warning.
21122
211232008-02-16 Eli Zaretskii <eliz@gnu.org>
21124
21125 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
21126 instead of char arrays. Enlarge the size of array passed to
21127 get_token_information.
21128
21129 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
21130 warnings.
21131
211322008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
21133
21134 * .gdbinit: Don't set `args', it breaks gdb --args.
21135
211362008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
21137
21138 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
21139 within a narrowed buffer.
21140
211412008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
21142
21143 * coding.c (decode_coding_object, encode_coding_object):
21144 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
21145
211462008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
21147
21148 * coding.c (coding_set_destination): Use BEG_BYTE rather than
21149 hardcoding 1.
21150 (detect_coding_system):
21151 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
21152 (string_char_to_byte, string_byte_to_char, insert_from_gap):
21153 * insdel.c (insert_from_gap):
21154 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
21155 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
21156 (string_to_multibyte):
21157 * character.c (chars_in_text, multibyte_chars_in_text):
21158 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
21159
21160 * character.h (FETCH_STRING_CHAR_ADVANCE)
21161 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
21162 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
21163 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
21164
21165 * casefiddle.c (casify_region): Only call after-change and composition
21166 functions on the part of the region that was changed.
21167
21168 * keyboard.c (read_avail_input):
21169 * frame.c (Fdelete_frame): Call Fdelete_terminal.
21170
211712008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
21172
21173 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
21174 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
21175
211762008-02-11 Juanma Barranquero <lekktu@gmail.com>
21177
21178 * w32menu.c (push_submenu_start, push_submenu_end)
21179 (push_left_right_boundary, push_menu_pane, push_menu_item):
21180 * keyboard.c (read_key_sequence): Don't pass args with side effects
21181 to AREF, it fails when compiling with -DENABLE_CHECKING.
21182
211832008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
21184
21185 * Makefile.in (${lispsource}international/charprop.el):
21186 Delete this target.
21187
21188 * search.c (boyer_moore): Fix incorrect synching of the trunk and
21189 emacs-unicode-2.
21190
211912008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
21192
21193 * terminal.c (Fdelete_terminal): Clean up the `force' path.
21194
211952008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
21196
21197 * frame.c (Qnoelisp): New symbol.
21198 (syms_of_frame): Initialize it.
21199 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
21200 harmless Elisp code, from a strong `force' from x_connection_closed.
21201 * frame.h (Qnoelisp): Declare.
21202 * xterm.c (x_connection_closed): Pass `noelisp'.
21203
21204 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
21205 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
21206 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
21207 rather than `int' for the type of `type'.
21208
212092008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
21210
21211 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
21212
21213 * Makefile.in (GNUC): Remove support for gcc-1.x.
21214
212152008-02-10 Richard Stallman <rms@gnu.org>
21216
21217 * lisp.h (ASET): Use AREF, not ASLOT.
21218
212192008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
21220
21221 * lisp.h (ASET): Check bounds.
21222
212232008-02-10 Glenn Morris <rgm@gnu.org>
21224
21225 * buffer.c (mode-name): Doc fix.
21226
212272008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
21228
21229 * Makefile.in:
21230 * emacs.c:
21231 * gmalloc.c:
21232 * keyboard.c:
21233 * lisp.h:
21234 * m/ibm370aix.h:
21235 * process.c:
21236 * regex.c:
21237 * s/hpux.h:
21238 * sysdep.c:
21239 * sysselect.h:
21240 * systty.h:
21241 * unexec.c:
21242 * w32term.c:
21243 * xsmfns.c:
21244 * xterm.c: Remove code that deals with obsolete variables.
21245
21246 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
21247
21248 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
21249 nothing else needs it anymore.
21250
212512008-02-09 Eli Zaretskii <eliz@gnu.org>
21252
21253 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
21254 instead of unibyte_char_to_multibyte.
21255
212562008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
21257
21258 * s/gnu-linux.h: Remove commented out code.
21259
21260 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
21261
21262 * Makefile.in: Update what RMS says about using autoconf.
21263 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
21264 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
21265 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
21266 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
21267
212682008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
21269
21270 * keymap.c (Fkey_description): Move side effect outside of macro call.
21271
21272 * xfaces.c (Finternal_make_lisp_face):
21273 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
21274
21275 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
21276 (syms_of_fontset): Use ASET.
21277
21278 * fns.c (concat): Move side effect outside of macro call.
21279 (hash_clear): Use ASET.
21280
212812008-02-08 Richard Stallman <rms@gnu.org>
21282
21283 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
21284 If FORCE, and frame has a surrogate minibuffer for another frame,
21285 delete the other frame first.
21286
212872008-02-07 Timo Savola <timo.savola@iki.fi>
21288
21289 * xterm.c (x_detect_focus_change): Handle embed client message.
21290 (handle_one_xevent): Ditto.
21291 (handle_one_xevent): If embedded and we get a button press/release,
21292 request focus.
21293 (xembed_set_info, xembed_send_message): New functions.
21294 (x_make_frame_visible): Call xembed_set_info if embedded.
21295 (x_make_frame_invisible): Call xembed_set_info if embedded.
21296 (x_term_init): Initialize Xatom_XEMBED.
21297 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
21298 (x_iconify_frame): Ditto.
21299
21300 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
21301 (enum xembed_info, enum xembed_message, enum xembed_focus)
21302 (enum xembed_modifier, enum xembed_accelerator): New.
21303 (xembed_set_info, xembed_send_message): Declare.
21304 (FRAME_X_EMBEDDED_P): New.
21305
21306 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
21307 gtk_plug_new.
21308
21309 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
21310 window ID of a frame.
21311 (x_window): Reparent frame if embedded.
21312 (Fx_create_frame): Don't set border width if embedded.
21313
21314 * emacs.c (USAGE3): Add --parent-id.
21315 (standard_args): Ditto.
21316
213172008-02-07 Jan Djärv <jan.h.d@swipnet.se>
21318
21319 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
21320
213212008-02-07 Jim Meyering <meyering@redhat.com>
21322
21323 Use "do...while (0)", not "if (1)...else" in macro definitions.
21324 The latter provokes a warning from gcc about the empty else, when
21325 followed by ";". Also, without that trailing semicolon, it would
21326 silently swallow up any following statement.
21327 * syntax.h (SETUP_SYNTAX_TABLE)
21328 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
21329 * buffer.h (DECODE_POSITION): Likewise.
21330 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
21331 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
21332 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
21333 (FETCH_CHAR_ADVANCE): Likewise.
21334 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
21335
213362008-02-07 Jim Meyering <meyering@redhat.com>
21337
21338 * lread.c [lint]: Don't include <sys/inode.h>.
21339
213402008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
21341
21342 * xselect.c (x_handle_dnd_message):
21343 * xmenu.c (digest_single_submenu, xmenu_show):
21344 * xdisp.c (with_echo_area_buffer_unwind_data)
21345 (format_mode_line_unwind_data, unwind_format_mode_line)
21346 (display_menu_bar):
21347 * eval.c (Ffetch_bytecode):
21348 * doc.c (store_function_docstring):
21349 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
21350 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
21351 * buffer.c (add_overlay_mod_hooklist): Use ASET.
21352
213532008-02-07 Kenichi Handa <handa@m17n.org>
21354
21355 * ftxfont.c (ftxfont_open): Don't set
21356 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
21357
21358 * ftfont.c (ftfont_open): Fix previous change.
21359
213602008-02-06 Jason Rumney <jasonr@gnu.org>
21361
21362 * w32font.c (w32font_text_extents): Fill in lbearing metric.
21363 Use cached metrics for ASCII characters.
21364 (w32font_open_internal): Don't set font's owning_frame.
21365 Cache metrics for ASCII characters.
21366
21367 * w32font.h (struct w32font_info): Add ascii_metrics.
21368 Remove owning_frame.
21369
213702008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
21371
21372 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
21373 to negative value.
21374
21375 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
21376
21377 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
21378
21379 * charset.c (syms_of_charset): Set QCtest and Qeq.
21380
213812008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
21382
21383 * process.c (Fstart_process):
21384 * callproc.c (Fcall_process): Handle the case where
21385 Funhandled_file_name_directory returns nil.
21386
21387 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
21388 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
21389 * font.c (check_gstring): Use them and AREF to access the vector before
21390 we know it's really a gstring.
21391 (Ffont_shape_text): Fix typo.
46e722a9 21392 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
21393
21394 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
21395 Declare.
21396
21397 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
21398
213992008-02-05 Jason Rumney <jasonr@gnu.org>
21400
21401 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
21402 Set smallest_font_height and smallest_char_width in display info.
21403
214042008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
21405
21406 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
21407
214082008-02-05 Miles Bader <miles@gnu.org>
21409
21410 * xfaces.c (get_lface_attributes, merge_named_face)
21411 (lookup_named_face, lookup_derived_face, realize_named_face):
21412 Revert 2008-02-01 change by cyd@stupidchicken.com.
21413
214142008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
21415
21416 * fontset.c (Ffontset_info): Handle the case of inhibitting the
21417 fallback fonts.
21418 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
21419
214202008-02-04 Jason Rumney <jasonr@gnu.org>
21421
21422 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
21423 set full_name.
21424 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
21425
214262008-02-03 Jason Rumney <jasonr@gnu.org>
21427
21428 * makefile.w32-in (OBJ1): Include font.o here.
21429 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
21430
214312008-02-02 Jason Rumney <jasonr@gnu.org>
21432
21433 * makefile.w32-in (temacs): Bump EMHEAP to 21.
21434
214352008-02-01 Jason Rumney <jasonr@gnu.org>
21436
21437 * s/cygwin.h: Define VIRT_ADDR_VARIES.
21438
21439 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
21440
214412008-02-01 Andreas Schwab <schwab@suse.de>
21442
21443 * Makefile.in (shortlisp, lisp): Update for rename of
21444 ../lisp/language/myanmar.el.
21445
214462008-02-01 Chong Yidong <cyd@stupidchicken.com>
21447
21448 * xfaces.c (get_lface_attributes): Delete function.
21449 (merge_named_face, lookup_named_face, lookup_derived_face)
21450 (realize_named_face): Call lface_from_face_name directly, and use
21451 the fact that merge_face_vectors does not alter its FROM argument.
21452
214532008-02-01 Jason Rumney <jasonr@gnu.org>
21454
21455 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
21456 input in the default locale. Handle non-Unicode multibyte input.
21457
214582008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21459
21460 * fontset.c (reorder_font_vector): Exclude nil elements from the
21461 font group. Don't try multiple fonts.
21462 (fontset_font): Adjust for the above change.
21463 (Finternal_char_font): Return nil if the found font doesn't
21464 contain the character ch.
21465
21466 * Makefile.in (lisp, shortlisp): Add cham.el.
21467
214682008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21469
21470 * font.h (FONTP): Make it return 1 also for a font-object.
21471
21472 * .gdbinit (xfontset): New function.
21473
21474 * font.c (font_find_for_lface): Check if the character C is
21475 supported or not only for the first font.
21476
21477 * fontset.c (reorder_font_vector): Fix typo.
21478 (fontset_find_font): Don't add a font-spec specifying a script.
21479 Use 0 (not Qt) for the indication of empty font-group. Change the
21480 format of RFONT-DEF. Return Qt if no font in the font-group
21481 support the character.
21482 (fontset_font): Adjust for the above change. If no font was
21483 found the character, remember that.
21484 (face_for_char): Adjust for the change of RFONT-DEF.
21485 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
21486 no font for the target.
21487 (Finternal_char_font): Adjust for the change of RFONT-DEF.
21488
214892008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21490
21491 * font.c (font_load_for_face): Handle the case that the font in
21492 face->lface is a string.
21493
214942008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21495
21496 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
21497
214982008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21499
21500 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
21501 Fix previous change. If the frame is not on a window system,
21502 signal an error.
21503
215042008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21505
bba3e508
SM
21506 * coding.c (decode_coding_object, encode_coding_object):
21507 Adjust marker positions after conversion.
aac0c6e3
MR
21508
21509 * lisp.h (struct Lisp_Marker): New member need_adjustment.
21510
215112008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21512
21513 * font.c (font_find_for_lface): Fix the handling of the return
21514 value of font_has_char.
21515 (Ffont_shape_text): Fix previous change.
21516
21517 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
21518 (fontset_ref_and_range): Delete it.
21519 (fontset_find_font): Call char_table_ref_and_range instead of
21520 FONTSET_REF_AND_RANGE.
21521 (make_fontset): Don't setup font groups of Latin here.
21522 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
21523 (new_fontset_from_font): Make the specified font the default for
21524 all Latin characters.
21525
215262008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21527
21528 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
21529 is on a window system before accessing the fontset of the frame.
21530
215312008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21532
21533 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
21534
21535 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
21536 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
21537
21538 * font.c (Ffont_shape_text): If the font driver doesn't have a
21539 shaper function, make zero-width glyphs to have at least one-pixel
21540 width. Fix setting of `to' field of glyphs.
21541
215422008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21543
21544 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
21545 glyphs.
21546
21547 * font.h (struct font_driver): Improve docstring of member `shape'.
21548
215492008-02-01 Kenichi Handa <handa@m17n.org>
21550
21551 * composite.c (syms_of_composite): Fix docstring of
21552 auto-composition-function.
21553
21554 * font.h (LGLYPH_SIZE): New macro.
21555
21556 * font.c (Ffont_fill_gstring): Stop filling when a character not
21557 supported by the font is found.
21558 (Ffont_shape_text): When a shape callback function returns nil,
21559 try at most two more times with larger gstring.
21560 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
21561
21562 * xdisp.c (handle_auto_composed_prop): Change the argument to
21563 auto-composition-function.
21564
21565 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
21566 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
21567 Lispy glyph and store it in the lgstring.
21568
21569 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
21570
21571 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
21572
215732008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21574
21575 * font.c (Ffont_shape_text): Avoid unnecessary composition.
21576
21577 * fontset.c (Vfont_encoding_charset_alist): New variable.
21578 (syms_of_fontset): DEFVAR it.
21579 (reorder_font_vector, fontset_find_font): Optimize for the case of
21580 no need of reordering.
21581 (face_for_char): Map the charset property by
21582 Vfont_encoding_charset_alist.
21583
215842008-02-01 Jason Rumney <jasonr@gnu.org>
21585
21586 * w32font.c (logfonts_match): Don't check adstyle here.
21587 (font_matches_spec): Check here against physical font instead.
21588 (add_font_entity_to_list): Avoid some substitutions.
21589
21590 * font.c (font_parse_fcname): Default weight and slant to normal.
21591 (font_score): Prefer normal fonts if weight or slant unspecified.
21592 (font_score) [WINDOWSNT]: Scale weight difference down to closer
21593 match freetype scores.
21594
215952008-02-01 Jason Rumney <jasonr@gnu.org>
21596
21597 * w32font.c (w32font_text_extents): Don't use the frame stored in the
21598 font, as it may have been deleted.
21599 (w32_enumfont_pattern_entity): Map generic family to adstyle using
21600 most common hyphenless variation.
21601 (logfonts_match): Check generic family.
21602 (font_matches_spec): Don't check generic family here.
21603 (fill_in_logfont): Set generic family based on adstyle.
21604
21605 * w32font.h (w32font_get_cache): Update declaration.
21606
216072008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21608
21609 * ftfont.c (ftfont_get_cache): Adjust the argument type.
21610
21611 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
21612 If none of the new drivers are available, call font_update_drivers
21613 with the old drivers.
21614
21615 * w32font.c (w32font_get_cache): Adjust the argument type.
21616
21617 * xfont.c (xfont_get_cache): Adjust the argument type.
21618
21619 * font.h (struct font_driver): Change argument type of get_cache.
21620
21621 * xftfont.c (xftfont_start_for_frame): Delete prototype.
21622
21623 * font.c (Ffont_get): Fix arguments to Fassoc.
21624 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
21625 (font_clear_cache): New function.
21626 (font_list_entities, font_matching_entity): Use font_get_cache.
21627 (font_update_drivers): Call font_clear_cache when finishing a driver.
21628
21629 * fontset.c (fontset_find_font): Fix previous change.
21630
216312008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21632
21633 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
21634 dpyinfo->font_table.
21635 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
21636 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
21637
21638 * font.c (font_at): Handle the case that the arg C is negative.
21639 Handle the unibyte case.
21640 (Ffont_at): Call font_at with the arg C -1.
21641
21642 * xdisp.c (handle_auto_composed_prop): Don't get a character at
21643 the position here, and call font_at with the arg C -1.
21644 Don't check the range of the existing composition at the point.
21645
216462008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21647
21648 * fontset.c (fontset_add): New args charset_id and family.
21649 Change caller.
21650 (load_font_get_repertory, fontset_find_font): Assume that
21651 font_spec is always a font-spec object.
21652 (Fset_fontset_font): Always store a font-spec object in a fontset.
21653
21654 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
21655 instead of get_property_and_range.
21656
216572008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21658
21659 * xftfont.c (struct xftfont_info): Delete the member ft_face.
21660 (xftfont_open): Don't keep locking face.
21661 (xftfont_close): Don't unlock face.
21662 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
21663
21664 * fontset.c (fontset_find_font): Don't prefer a font of
21665 supplementary charset.
21666
216672008-02-01 Kenichi Handa <handa@m17n.org>
21668
21669 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
21670 script, langsys_tag to langsys, new member script.
21671 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 21672 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
21673 listing to the script specified in that property. Fix arg to
21674 OTF_check_features.
21675
216762008-02-01 Jason Rumney <jasonr@gnu.org>
21677
21678 * w32font.h: New file.
21679
21680 * w32font.c: Include it.
21681 (struct w32font_info): Add owning_frame field. Move to w32font.h.
21682 (w32font_open): Set owning_frame.
21683 (w32font_text_extents): Use owning_frame.
21684 (struct font_callback_data): Add opentype_only field.
21685 (add_font_entity_to_list): Use it to filter fonts.
21686 Don't check against full name.
21687 (w32font_list_internal): New function.
21688 (w32font_list): Use it.
21689 (w32font_match_internal): New function.
21690 (w32font_match): Use it.
21691 (w32font_open_internal): New function.
21692 (w32font_open): Use it.
21693 (w32font_get_cache, w32font_close, w32font_has_char)
21694 (w32font_encode_char, w32font_text_extents, w32font_draw):
21695 Make non-static.
21696
21697 * makefile.w32-in (w32font.o): Depend on w32font.h.
21698
216992008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21700
21701 * charset.c (Fdefine_charset_internal): Record a supplementary
21702 charset at the tail of Vcharset_order_list.
21703
21704 * font.c (Ffont_shape_text): Fix the return value.
21705
21706 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
21707
21708 * xdisp.c (handle_auto_composed_prop): Fix previous change.
21709
217102008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21711
21712 * ftfont.c (struct OpenTypeSpec): New struct.
21713 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
21714 (ftfont_get_open_type_spec): New function.
21715 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
21716
21717 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
21718
217192008-02-01 Jason Rumney <jasonr@gnu.org>
21720
21721 * w32font.c (add_font_entity_to_list): Compare only the beginning
21722 of full name.
21723
217242008-02-01 Kenichi Handa <handa@m17n.org>
21725
21726 * xdisp.c (handle_auto_composed_prop): Simplify the code.
21727 Never return HANDLED_RECOMPUTE_PROPS.
21728
217292008-02-01 Kenichi Handa <handa@m17n.org>
21730
21731 * font.c (font_gstring_produce): Delete it.
21732
21733 * composite.h (COMPOSITION_METHOD):
21734 Handle COMPOSITION_WITH_GLYPH_STRING.
21735
217362008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21737
21738 * xfont.c (Qx): Delete.
21739 (syms_of_xfont): Don't initialize Qx.
21740
21741 * composite.h (enum composition_method):
21742 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
21743
217442008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21745
21746 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
21747 (choose_face_font): Accept new form of font-spec.
21748
21749 * frame.h (font_driver_list): Declare it unconditionally.
21750 (struct frame): Define members font_driver_list and font_data_list
21751 unconditionally.
21752
21753 * fontset.c: Include "font.h" unconditionally.
21754 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
21755 (Fset_fontset_font): Accept a font-spec object.
21756
21757 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
21758 PIXEL_SIZE part a wild card.
21759
21760 * dispextern.h (struct glyph_string): Define members clip and
21761 num_clips unconditionally.
21762 (struct face): Define members font_info and extra unconditionally.
21763
21764 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
21765 ftfont_info only when HAVE_LIBOTF is defined.
21766
217672008-02-01 Andreas Schwab <schwab@suse.de>
21768
21769 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
21770 and end.
21771
217722008-02-01 Jason Rumney <jasonr@gnu.org>
21773
21774 * w32font.c (w32font_driver): Add new fields.
21775
217762008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21777
21778 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
21779 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
21780 (LIBES): Add @M17N_FLT_CFLAGS@.
21781
21782 * composite.c (compose_text): Don't treat the new style
21783 composition specially.
21784
21785 * emacs.c (main): Call syms_of_font unconditionally.
21786
21787 * font.h (FONT_ENTITY_NOT_LOADABLE)
21788 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
21789 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
21790 (struct font_driver): New member shape.
21791 (font_registry_charsets): Extern it.
21792 (font_find_for_lface, font_prepare_composition): Adjust prototype.
21793 (font_otf_capability, font_drive_otf): Delete their externs.
21794
21795 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
21796 (font_charset_alist, font_registry_charsets): Move from xfont.c
21797 and rename.
21798 (font_prop_validate_otf): New function.
21799 (font_property_table): Register it for QCotf.
21800 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
21801 (font_drive_otf): Delete.
21802 (font_prepare_composition): New arg F. Adjust for the change of
21803 lispy gstring.
21804 (font_find_for_lface): New arg C.
21805 (font_load_for_face): Adjust for the change of font_find_for_lface.
21806 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
21807 lispy gstring.
21808 (Ffont_shape_text): New function.
21809 (Fopen_font): If the font size is not given, use 12-pixel.
21810 (Ffont_at): New arg STRING.
40b1a3a9 21811 (syms_of_font): Initialize font_charset_alist.
aac0c6e3
MR
21812 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
21813 conditionally.
21814
21815 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
21816 fonts of the same font-spec. Change the format of RFONT-DEF.
21817 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
21818 Adjust for the change of RFONT-DEF.
21819 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
21820
21821 * ftfont.h: New file.
21822
21823 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
21824 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
21825 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
21826 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
21827 font_otf_capability and font_drive_otf, set ftfont_shape.
21828 (ftfont_list): Adjust for the change of :otf property value.
21829 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
21830 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
21831 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
21832 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
21833 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
21834 (otf_gstring, gstring, m17n_flt_initialized): New variables.
21835
21836 * w32term.c (x_draw_composite_glyph_string_foreground):
21837 Adjust for the change of lispy gstring.
21838
21839 * xdisp.c (handle_composition_prop): Adjust for the change of
21840 lispy gstring. Call a function for auto-composition with the
21841 third arg it->window.
21842 (fill_composite_glyph_string): Adjust for the change of lispy string.
21843 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
21844
21845 * xfaces.c (set_font_frame_param): Adjust for the change of
21846 font_find_for_lface.
21847
21848 * xfont.c (x_font_charset_alist): Move to font.c and rename.
21849 (xfont_registry_charsets): Likewise. Change caller.
21850 (syms_of_xfont): Don't handle x_font_charset_alist.
21851
21852 * xftfont.c: Include "ftfont.h".
21853 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
21854 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
21855 (xftfont_close) [HAVE_LIBOTF]: Close otf.
21856 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
21857 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
21858 Set xftfont_driver.shape to xftfont_shape.
21859
21860 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
21861 the change of lispy gstring.
21862
218632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21864
21865 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
21866
218672008-02-01 Jason Rumney <jasonr@gnu.org>
21868
21869 * w32font.c (w32font_draw): Fill background manually.
21870
218712008-02-01 Jason Rumney <jasonr@gnu.org>
21872
21873 * font.c (Qfontp): Remove unused symbol.
21874 (QCantialias): New symbol.
21875 (syms_of_font): Define it.
21876 (font_property_table): Set a validator for QCantialias.
21877
21878 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
21879 Define if not already.
21880 (QCfamily): Share with xfaces.c.
21881 (Qstandard, Qsubpixel, Qnatural): New symbols.
21882 (syms_of_w32font): Define them. Don't define QCfamily here.
21883 (w32_antialias_type, lispy_antialias_type): New functions.
21884 (w32_enumfont_pattern_entity): New arg requested_font.
21885 Set antialias parameter if non-default was requested.
21886 (fill_in_logfont): Fill in lfQuality if :antialias specified.
21887
218882008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21889
21890 * lread.c (read1): Undo the previous change.
21891
218922008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
21893
21894 * frame.c (Fdelete_frame): Call font_update_drivers only when
21895 USE_FONT_BACKEND is defined.
21896
218972008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21898
21899 * font.h (struct font_bitmap): New member bits_per_pixel.
21900 (struct font_driver): New members start_for_frame and end_for_frame.
21901 (struct font_data_list): New struct.
21902 (font_put_frame_data, font_get_frame_data): Extern them.
21903
21904 * frame.h (struct frame): New member font_data_list.
21905
21906 * font.c (font_update_drivers): Call driver->start_for_frame and
21907 driver->end_for_frame at proper timings.
21908 (font_put_frame_data, font_get_frame_data): New functions.
21909 (Ffont_spec): Add usage in the docstring.
21910
21911 * frame.c (make_frame): Initialize f->font_data_list to NULL.
21912 (Fdelete_frame): Call font_update_drivers.
21913
21914 * xftfont.c (struct xftface_info): Delete the member xft_draw.
21915 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
21916 (xftfont_get_xft_draw): New function.
21917 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
21918 (xftfont_end_for_frame): New function.
21919 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
21920
21921 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
21922 Change argument. Cache GCs in the per-frame data.
21923 (struct ftxfont_frame_data): New struct.
21924 (ftxfont_draw_bitmap): New arg gc_fore and flush.
21925 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
21926 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
21927 (ftxfont_end_for_frame): New function.
21928 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
21929
21930 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
21931
219322008-02-01 Kenichi Handa <handa@m17n.org>
21933
21934 * xselect.c (Vselection_coding_system)
21935 (Vnext_selection_coding_system): Delete them.
21936 (syms_of_xselect): Don't declare selection-coding-system and
21937 next-selection-coding-system. They are declared in select.el.
21938
219392008-02-01 Jason Rumney <jasonr@gnu.org>
21940
21941 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
21942
21943 * w32fns.c: Include imm.h.
21944 (get_composition_string_fn, get_ime_context_fn): New optional
21945 system functions.
21946 (globals_of_w32fns): Load them from imm32.dll.
21947 (ignore_ime_char): New flag.
21948 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
21949 WM_IME_ENDCOMPOSITION messages.
21950
21951 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
21952 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
21953
219542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21955
21956 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
21957 (READCHAR_REPORT_MULTIBYTE): New macro.
21958 (readchar): New 2nd arg MULTIBYTE.
21959 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
21960 Make symbol's name multibyte according to the multibyteness of the
21961 source.
21962
219632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21964
21965 * xfaces.c (face_for_overlay_string): Call lookup_face with
21966 correct arguments (fix of synching with the trunk).
21967
219682008-02-01 Kenichi Handa <handa@m17n.org>
21969
21970 * font.c (font_prop_validate_symbol, font_prop_validate_style)
21971 (font_prop_validate_non_neg, font_prop_validate_spacing):
21972 Delete argument prop_index.
21973 (font_property_table): Change arguments to validater. Change Callers.
21974 (font_lispy_object): Delete.
21975 (font_at): Use font_find_object instead fo font_lispy_object.
21976
219772008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21978
21979 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
21980 and file names.
21981
219822008-02-01 Jason Rumney <jasonr@gnu.org>
21983
21984 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
21985 (font_matches_spec): Remove debug output.
21986 (add_font_entity_to_list): Avoid using substituted fonts.
21987
219882008-02-01 Jason Rumney <jasonr@gnu.org>
21989
21990 * doc.c (Fsnarf_documentation):
21991 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
21992
219932008-02-01 Miles Bader <miles@gnu.org>
21994
21995 * dispextern.h (struct glyph_row): Only define "clip" field if
21996 HAVE_WINDOW_SYSTEM is defined.
21997
219982008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
21999
22000 Fix up multi-tty merge.
22001
22002 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
22003 and indentation.
22004
22005 * xfaces.c (free_realized_face, clear_face_gcs):
22006 Include font_done_for_face in the input_blocked section, just in case.
22007
22008 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
22009 (get_char_face_and_encoding): Undo last change and remove the *other*
22010 duplicate definition (i.e. keep the one that's better scoped and that
22011 includes code for the font-backend).
22012
22013 * terminal.c (create_terminal): Default keyboard_coding to
22014 `no-conversion' and terminal_coding to `undecided'.
22015
22016 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
22017
22018 * fontset.c (free_realized_fontsets): Check that the table entry does
22019 contain a fontset before trying to compare it to `base'.
22020
22021 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
22022 syms_of_charset, and syms_of_coding earlier because init_window_once
22023 now needs Vcoding_system_hash_table to be setup.
22024
22025 * coding.h (default_buffer_file_coding): Remove.
22026
22027 * coding.c (default_buffer_file_coding): Remove.
22028 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
22029 than ->symbol, and use the terminal-local coding system.
22030 (syms_of_coding): Don't setup the coding-systems that are not
22031 terminal-local.
22032 (Fdefine_coding_system_internal): Use XCAR/XCDR.
22033
22034 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
22035 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
22036
22037 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
22038 in chartab.c and were re-added here by mistake.
22039 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
22040
22041 * doc.c (Fsnarf_documentation):
22042 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
22043 src to etc.
22044
22045 * ChangeLog.10: Add mistakenly removed entry.
22046
220472008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
22048
22049 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
22050
220512008-02-01 Miles Bader <miles@gnu.org>
22052
22053 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
22054 Add extra args to FACE_FOR_CHAR.
22055
220562008-02-01 Kenichi Handa <handa@m17n.org>
22057
22058 * keymap.c (where_is_internal_1): If key is a cons, store the copy
22059 in sequence.
22060
22061 * chartab.c (map_sub_char_table, map_char_table): If the range
22062 contains just one character, call the function with that character
22063 even if the depth is not 3.
22064
220652008-02-01 Jason Rumney <jasonr@gnu.org>
22066
22067 * w32font.c (w32font_text_extents): Calculate metrics for the
22068 whole string.
22069
220702008-02-01 Jason Rumney <jasonr@gnu.org>
22071
22072 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
22073
220742008-02-01 Jason Rumney <jasonr@gnu.org>
22075
bba3e508
SM
22076 * w32term.c (x_set_glyph_string_clipping):
22077 Use get_glyph_string_clip_rects.
aac0c6e3
MR
22078 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
22079 Adjust for the change of struct glyph_string.
22080
22081 * w32font.c (w32font_draw): Do clipping here.
22082
220832008-02-01 Kenichi Handa <handa@m17n.org>
22084
22085 * xftfont.c (xftfont_draw): Adjust for the change of struct
22086 glyph_string.
22087
bba3e508
SM
22088 * xterm.c (x_set_glyph_string_clipping):
22089 Use get_glyph_string_clip_rects.
aac0c6e3
MR
22090 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
22091 Adjust for the change of struct glyph_string.
22092
22093 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
22094 the resulting clip(s}.
22095 (expose_overlaps): Add arg r. Change callers. Set it to
22096 row->clip temporarily.
22097 (expose_window): Redraw rows overlapping the exposed area.
22098
22099 * dispextern.h (struct glyph_row): New member clip.
22100 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
22101 clip_height, new member clip, and num_clips.
22102
221032008-02-01 Kenichi Handa <handa@m17n.org>
22104
22105 * data.c (Fchar_or_string_p): Fix docstring.
22106
221072008-02-01 Kenichi Handa <handa@m17n.org>
22108
22109 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
22110 create a temporary XftDraw object.
22111
221122008-02-01 Kenichi Handa <handa@m17n.org>
22113
22114 * font.c (Ffontp): Fix docstring.
22115
22116 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
22117 strong evidence of ISO-2022.
22118
221192008-02-01 Kenichi Handa <handa@m17n.org>
22120
22121 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
22122 SYNTAX_ENTRY_FOLLOW_PARENT.
22123
221242008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
22125
22126 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
22127 its type.
22128 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
22129 Update to the new type of weak_hash_tables and next_weak.
22130
22131 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
22132 a plain C pointer to Lisp_Hash_Table.
22133
22134 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
22135 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
22136 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
22137 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
22138 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
22139 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
22140 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
22141 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
22142 (GC_EQ): Remove since they've been identical to their non-GC_
22143 alter-egos ever since the markbit was eradicated.
22144
22145 * alloc.c:
22146 * buffer.c:
22147 * buffer.h:
22148 * data.c:
22149 * fileio.c:
22150 * filelock.c:
22151 * fns.c:
22152 * frame.h:
22153 * lisp.h:
22154 * macterm.c:
22155 * print.c:
22156 * process.c:
22157 * w32fns.c:
22158 * w32menu.c:
22159 * w32term.c:
22160 * xfns.c:
22161 * xmenu.c:
22162 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
22163
221642008-02-01 Kenichi Handa <handa@m17n.org>
22165
22166 * chartab.c (map_sub_char_table): Make it work for the top-level
22167 char-table. Fix handling of parent char-table.
22168 (map_char_table): Adjust for the above change.
22169
221702008-02-01 Jason Rumney <jasonr@gnu.org>
22171
22172 * w32font.c (Qgdi): Rename from Qw32.
22173
221742008-02-01 Jason Rumney <jasonr@gnu.org>
22175
22176 * w32bdf.c (get_quoted_string): Make function static.
22177
221782008-02-01 Kenichi Handa <handa@m17n.org>
22179
22180 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
22181 bigger ascent and descent than those of the font, use them as
22182 font's ascent and descent.
22183
221842008-02-01 Kenichi Handa <handa@m17n.org>
22185
22186 * Makefile.in (${lispsource}international/charprop.el): Move this
22187 target within "#ifdef HAVE_UNIDATA" and "#endif".
22188
221892008-02-01 Kenichi Handa <handa@m17n.org>
22190
22191 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
22192 (shortlisp): Add ../lisp/language/tai-viet.el.
22193
221942008-02-01 Ulrich Mueller <ulm@gentoo.org>
22195
22196 * Makefile.in (${lispsource}international/charprop.el): Depend on
22197 temacs${EXEEXT}.
22198
221992008-02-01 Jason Rumney <jasonr@gnu.org>
22200
22201 * w32font.c (w32font_close): Delete the GDI font object.
22202
22203 * w32menu.c: Include character.h.
22204
22205 * w32proc.c: Likewise.
22206
22207 * w32select.c: Likewise.
22208
22209 * makefile.w32-in (w32proc.o): Depend on character.h.
22210
222112008-02-01 Jason Rumney <jasonr@gnu.org>
22212
22213 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
22214
22215 * w32menu.c (syms_of_w32menu): Likewise.
22216
22217 * w32proc.c (syms_of_ntproc): Likewise.
22218
22219 * w32select.c (syms_of_w32select): Likewise.
22220
22221 * w32term.c (syms_of_w32term): Likewise.
22222
222232008-02-01 Jason Rumney <jasonr@gnu.org>
22224
22225 * w32font.c (w32font_draw): Delete brush after using it.
22226
222272008-02-01 Jason Rumney <jasonr@gnu.org>
22228
22229 * w32font.c (w32font_open): Don't set font_idx.
22230 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
22231 to font settings.
22232 (w32font_draw): Fill background explicitly.
22233
222342008-02-01 Jason Rumney <jasonr@gnu.org>
22235
22236 * w32term.c (w32_initialize): Don't call w32font_initialize.
22237
22238 * w32font.c (w32font_info): Remove subranges.
22239 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
22240 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
22241 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
22242 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
22243 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
22244 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
22245 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
22246 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
22247 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
22248 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
22249 New symbols.
22250 (font_callback_data): New struct.
22251 (w32font_list, w32font_match): Use it.
22252 (w32font_open): Don't populate subranges.
22253 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
22254 (w32font_encode_char): Always return unicode code-point as-is.
22255 (w32font_text_extents): Supply a transformation matrix to
22256 GetGlyphOutline. Never look up by glyph index. Avoid looping
22257 twice. Use unicode version of GetTexExtentPoint32 instead of
22258 glyph index version.
22259 (set_fonts_frame): Remove.
22260 (w32_enumfont_pattern_entity): Add frame parameter, use it to
22261 set frame parameter. Use backward compatible fake foundries.
22262 Save generic family in extra slot under QCfamily. Make width slot
22263 constant. Save QCspacing value. Save list of scripts instead of
22264 binary subranges.
22265 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
bba3e508
SM
22266 (add_font_entity_to_list): Use font_callback_data struct.
22267 Filter unwanted fonts.
aac0c6e3
MR
22268 (add_one_font_entity_to_list): Use font_callback_data struct.
22269 (w32_registry): Default to iso10646_1.
22270 (fill_in_logfont): Use dpi from extra slot. Don't bother with
22271 string font registries. Don't fill in font name if it is a generic
22272 family name, fill family instead. Use spacing, family and script
22273 extra info to fill pitch, family and charset fields.
22274 (list_all_matching_fonts): Use font_callback_data struct.
22275 (unicode_range_for_char): Remove.
22276 (font_supported_scripts): New function.
22277 (w32font_initialize): Remove.
22278 (syms_of_w32font): Update which symbols are defined.
22279
222802008-02-01 Jason Rumney <jasonr@gnu.org>
22281
22282 * font.c (font_pixel_size): Reverse assq_no_quit args.
22283
22284 * w32term.h (FONT_WIDTH): Report max width, not average.
22285 (FONT_MAX_WIDTH): Remove.
22286 (FONT_AVG_WIDTH): New macro.
22287
22288 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
22289 redefinition of FONT_WIDTH.
22290
22291 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
22292 (w32_cache_char_metrics): Use FONT_WIDTH.
22293
22294 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
22295
222962008-02-01 Jason Rumney <jasonr@gnu.org>
22297
22298 * w32font.c (w32font_open): Make lfHeight negative.
22299
22300 * w32fns.c (x_default_font_parameter): Use new style font name.
22301 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
22302
223032008-02-01 Jason Rumney <jasonr@gnu.org>
22304
22305 * w32font.c (QCsubranges): New symbol.
22306 (w32font_open, w32font_has_char): Get subranges from subproperty
22307 of extra.
22308 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
22309 (syms_of_w32font): Define :subranges symbol.
22310
22311 * font.c (font_put_extra): Expose externally.
22312
22313 * font.h (font_put_extra): Move declaration from font.c.
22314
22315 * font.c (Ffont_get): Use font driver to determine otf capability.
22316 (adjust_anchor): Check if driver defines anchor_point before using.
22317
22318 * w32font.c (w32font_open): Handle size, height and pixel_size better.
22319 (w32font_draw): Use options.
22320 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
22321 Fix detection of truetype fonts.
22322 (registry_to_w32_charset): Handle charsets other than iso8859-1
22323 expressed as lisp symbols.
22324 (w32_registry): Express charset as lisp symbol.
22325 (fill_in_logfont): Reverse pixel and point height logic.
22326 Don't set width here. Set quality to default.
22327
22328 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
22329 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
22330
22331 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
22332 Remove redundant loop and allocation.
22333
22334 * makefile.w32-in (font.o, w32font.o): New objects.
22335 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
22336 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
22337
22338 * xdisp.c (fill_composite_glyph_string): Make the first arg to
22339 STORE_XCHARB a valid l-value.
22340
22341 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
22342 calculations for non-Truetype fonts.
22343 (x_draw_glyph_string): Sync with xterm.c.
22344 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
22345 Remove redundant code.
22346 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
22347
22348 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
22349 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
22350
22351 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
22352 (x_to_w32_charset, w32_to_x_charset): Expose externally.
22353
22354 * w32font.c: New file for w32 font backend.
22355
223562008-02-01 Kenichi Handa <handa@m17n.org>
22357
22358 * term.c: Don't include "buffer.h" twice.
22359
223602008-02-01 Kenichi Handa <handa@m17n.org>
22361
22362 * character.c (Funibyte_string): New function.
22363 (syms_of_character): Defsubr it.
22364
223652008-02-01 Jason Rumney <jasonr@gnu.org>
22366
22367 * w32term.c [USE_FONT_BACKEND]:
22368 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
22369 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
22370 (x_draw_glyph_string, x_draw_glyph_string_foreground)
22371 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
22372 (x_free_frame_resources): Sync with xterm.c.
22373
223742008-02-01 Andreas Schwab <schwab@suse.de>
22375
22376 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
22377 char-table size.
22378
223792008-02-01 Kenichi Handa <handa@m17n.org>
22380
22381 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
22382
223832008-02-01 Kenichi Handa <handa@m17n.org>
22384
22385 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
22386 font_otf_gpos, add font_drive_otf.
22387
22388 * fontset.c (fontset_find_font): Pay attention to font size
22389 specified for a font.
22390 (reorder_font_vector): Check contents of font_def.
22391
22392 * font.c (struct otf_list): Delete it.
22393 (otf_list): Make it a lisp variable.
22394 (otf_open): Use lispy otf_list.
22395 (generate_otf_features): Rename from parse_gsub_gpos_spec.
22396 (check_otf_features): New function.
22397 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
22398 New functions.
22399 (font_drive_otf): New function merging font_otf_gsub and
22400 font_otf_gpos.
22401 (font_open_for_lface): New arg spec. Change argument order.
22402 (font_load_for_face): Adjust for the change of font_open_for_lface.
22403 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
22404 Ffont_otf_gpos.
22405 (syms_of_font): Staticpro otf_list. Delete defsubr of
22406 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
22407
22408 * xfaces.c (set_font_frame_param): Adjust for the change of
22409 font_open_for_lface.
22410
22411 * font.h (font_open_for_lface): Adjust prototype.
22412 (struct font_driver): Delete members otf_gsub and otf_gpos, add
22413 member otf_drive.
22414 (font_otf_gsub, font_otf_gpos): Delete externs.
22415 (font_drive_otf): Extern it.
22416
224172008-02-01 Kenichi Handa <handa@m17n.org>
22418
22419 * font.c (font_at): If the window W is not on a window system,
22420 return Qnil.
22421
22422 * coding.c (produce_chars, encode_coding): Don't call
22423 insert_from_gap if no characters to produce.
22424
224252008-02-01 Kenichi Handa <handa@m17n.org>
22426
22427 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
22428 Fclear_face_cache.
22429
22430 * xfaces.c (face_for_font): Check also face->font==font->font.font.
22431
224322008-02-01 Miles Bader <miles@gnu.org>
22433
22434 * emacs.c (main): Change default value of `enable_font_backend' to 1.
22435 Parse "--disable-font-backend" option.
22436 (standard_args): Add "--disable-font-backend" option.
22437
224382008-02-01 Kenichi Handa <handa@m17n.org>
22439
22440 * fontset.c (fontset_find_font): New function.
22441 (fontset_font): Use fontset_find_font.
22442 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
22443 Register the specified font for all Latin characters.
22444 (new_fontset_from_font): Register the specified font for all Latin
22445 characters.
22446 (dump_fontset): For a realized fontset, include the base fontset
22447 name in the returned vector.
22448
224492008-02-01 Kenichi Handa <handa@m17n.org>
22450
22451 * character.h (CHAR_STRING): Cast C to unsigned on calling
22452 char_string.
22453
22454 * character.c (char_string): Type of arg C changed to unsigned.
22455 Signal an error if C is an invalid character code.
22456
22457 * editfns.c (general_insert_function, Fchar_to_string):
22458 Use CHARACTERP, not INTEGERP.
22459
224602008-02-01 Kenichi Handa <handa@m17n.org>
22461
22462 * character.h (MIN_MULTIBYTE_LEADING_CODE)
22463 (MAX_MULTIBYTE_LEADING_CODE): New macros.
22464
22465 * regex.c (analyse_first): Fix for multibyte characters in "case
22466 charset:" and "case categoryspec:".
22467
224682008-02-01 Andreas Schwab <schwab@suse.de>
22469
22470 * Makefile.in (LIBES): Move standard libraries to the end.
22471
224722008-02-01 Kenichi Handa <handa@m17n.org>
22473
22474 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
22475 nonzero, don't shrink the buffer nextb.
22476
22477 * buffer.h (struct buffer_text): New member inhibit_shrinking.
22478
22479 * coding.c (coding_alloc_by_making_gap): New arg offset.
22480 (alloc_destination): Call coding_alloc_by_making_gap with the arg
22481 offset.
22482 (decode_coding_iso_2022): Update coding->safe_charsets.
22483 (decode_coding_gap): Temporarily set
22484 current_buffer->text->inhibit_shrinking to 1.
22485
224862008-02-01 Kenichi Handa <handa@m17n.org>
22487
bba3e508
SM
22488 * xterm.c (x_draw_composite_glyph_string_foreground):
22489 Fix indexing into elements of s->cmp and s->char2b.
aac0c6e3
MR
22490
224912008-02-01 Juanma Barranquero <lekktu@gmail.com>
22492
22493 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
22494
224952008-02-01 Kenichi Handa <handa@m17n.org>
22496
22497 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
22498 target_multibyte instead of multibyte.
22499 (re_match_2_internal): Call bcmp_translate with target_multibyte.
22500 (bcmp_translate): Change the argument name from multibyte to
22501 target_multibyte.
22502
225032008-02-01 Kenichi Handa <handa@m17n.org>
22504
22505 These changes are to compile a regexp into a pattern that can be
22506 used both for multibyte and unibyte targets.
22507
22508 * Makefile.in (search.o): Depend on charset.h.
22509
22510 * character.c (multibyte_char_to_unibyte_safe): New function.
22511
22512 * search.c: Include "charset.h".
22513 (compile_pattern_1): Delete argument multibyte. Don't set
22514 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
22515 (compile_pattern): Don't compare cp->buf.target_multibyte.
22516 Compare cp->buf.charset_unibyte.
22517 (compile_pattern): Set cp->buf.target_multibyte.
22518
22519 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
22520
22521 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
22522
22523 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
22524 multibyte. Change callers.
22525 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
22526 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
22527 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
22528 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
22529 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
22530 (regex_compile): Make the compiled pattern usable both for
22531 multibyte and unibyte targets.
22532 (analyse_first): Make the fastmap usable both for multibyte and
22533 unibyte targets.
22534 (TRANSLATE_VIA_MULTIBYTE): Delete.
22535 (re_match_2_internal): Pay attention to the case that the
22536 multibyteness of bufp and target may be different.
22537
225382008-02-01 Kenichi Handa <handa@m17n.org>
22539
22540 * xdisp.c (x_produce_glyphs): When a font is not found, make the
22541 empty box occupy at least one column width.
22542
225432008-02-01 Miles Bader <miles@gnu.org>
22544
22545 * Makefile.in: Remove redundant HAVE_XFT clause.
22546
225472008-02-01 Kenichi Handa <handa@m17n.org>
22548
22549 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
22550
225512008-02-01 Kenichi Handa <handa@m17n.org>
22552
22553 * fontset.c (Finternal_char_font): Fix for the case of POSITION
22554 being nil.
22555
225562008-02-01 Kenichi Handa <handa@m17n.org>
22557
22558 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
22559
225602008-02-01 Kenichi Handa <handa@m17n.org>
22561
22562 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
22563
225642008-02-01 Kenichi Handa <handa@m17n.org>
22565
22566 * search.c (simple_search): Fix previous change.
22567
225682008-02-01 Kenichi Handa <handa@m17n.org>
22569
22570 * xftfont.c (ftfont_font_format): Extern declaration.
22571
22572 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
22573
22574 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
22575 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
22576
22577 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
22578 (ftfont_font_format): Fix previous change.
22579
22580 * font.h (Ffont_xlfd_name): EXFUN it.
22581
22582 * font.c (font_parse_xlfd): Fix the array size of `f'.
22583 (register_font_driver): Use EQ to compare driver->type.
22584
22585 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
22586 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
22587 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
22588
225892008-02-01 Kenichi Handa <handa@m17n.org>
22590
22591 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
22592 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
22593
225942008-02-01 Kenichi Handa <handa@m17n.org>
22595
22596 * xfont.c (xfont_open): Set font->format.
22597
22598 * xftfont.c (xftfont_open): Set font->format.
22599
22600 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
22601 (ftfont_list): Include FC_FONTFORMAT in FcObject.
22602 (ftfont_open): Set font->format.
22603 (ftfont_font_format): New function.
22604
22605 * font.h (struct font): New member format.
22606
22607 * font.c (Qopentype): New variable.
22608 (syms_of_font): Defsym it.
22609 (Fquery_font): Change the format of the last element of the return
22610 value.
22611
226122008-02-01 Kenichi Handa <handa@m17n.org>
22613
22614 * xfns.c (xic_create_xfontset): Try the default fontset name as a
22615 last resort.
22616
226172008-02-01 Kenichi Handa <handa@m17n.org>
22618
22619 * coding.c (detect_coding_charset): Fix detection of multi-byte
22620 charset.
22621
226222008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
22623
22624 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
22625
226262008-02-01 Kenichi Handa <handa@m17n.org>
22627
22628 * xdisp.c (get_next_display_element): Set it->face_id for the
22629 first component of a composition.
22630 (x_produce_glyphs): Check if the font is changed or not for composition.
22631
226322008-02-01 Kenichi Handa <handa@m17n.org>
22633
22634 * fontset.c (Qlatin): New variable.
22635 (syms_of_fontset): Define it as a lisp symbol.
22636 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
22637
226382008-02-01 Kenichi Handa <handa@m17n.org>
22639
22640 * font.c (font_unparse_fcname): Pay attention to the case that
22641 some of font property is a null string.
22642
226432008-02-01 Kenichi Handa <handa@m17n.org>
22644
22645 * term.c: Include "composite.h".
22646 (encode_terminal_code): Output all components of composition.
22647 Check the size of encode_terminal_src.
22648 (produce_glyphs): For composition, call produce_composite_glyph.
22649 (append_composite_glyph, produce_composite_glyph): New functions.
22650
22651 * xdisp.c (x_produce_glyphs): In handling composition, if a font
22652 is not found, get font_info from the current ascii face.
22653
226542008-02-01 Kenichi Handa <handa@m17n.org>
22655
22656 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
22657 buffer-file-name to Qnil before calling insert_from_buffer.
22658
22659 * font.c (font_unparse_fcname): Pay attention to the case that
22660 foundry is a null string.
22661
226622008-02-01 Kenichi Handa <handa@m17n.org>
22663
22664 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
22665
22666 * font.c (Qunicode_sip): New variable.
22667 (syms_of_font): Declare it as a Lisp symbol.
22668
22669 * font.h (Qunicode_sip): Extern it.
22670
226712008-02-01 Kenichi Handa <handa@m17n.org>
22672
22673 * composite.c (get_composition_id): Pay attention to TAB component.
22674
22675 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
22676 TAB. Adjust for the change of s->char2b which always points to
22677 the first element of allocated memory.
22678
22679 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
22680
22681 * xdisp.c (handle_composition_prop): Set it->c to the first
22682 non-TAB component.
22683 (fill_composite_glyph_string): Change argument.
22684 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
22685 (x_produce_glyphs): Fix handling of left/right padding.
22686
226872008-02-01 Kenichi Handa <handa@m17n.org>
22688
22689 * coding.c (detect_coding_system): Fix for handling off
22690 inhibit_iso_escape_detection. Fix for the case that no coding
22691 system is defined for a specific coding category.
22692
226932008-02-01 Kenichi Handa <handa@m17n.org>
22694
22695 * font.c (font_matching_entity): Delete unused local var.
22696
22697 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
22698 opening a font.
22699
22700 * fileio.c (Finsert_file_contents): On recovering a file, assume
22701 Unix-like eol.
22702 (choose_write_coding_system): On auto-saving a file, force
22703 Unix-like eol.
22704
22705 * coding.c (setup_coding_system): Fix setting of
22706 coding->common_flags based on eol_type.
22707 (coding_inherit_eol_type): If PARENT is not nil, be sure to
22708 inherit from it.
22709
227102008-02-01 Kenichi Handa <handa@m17n.org>
22711
22712 * alloc.c (NSTATICS): Increas to 0x600.
22713
227142008-02-01 Kenichi Handa <handa@m17n.org>
22715
22716 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
22717 (ftfont_list): Don't check :name property.
22718 (ftfont_match): New function.
22719 (ftfont_pattern_entity): If the pattern doesn't contain
22720 FC_SPACING, don't assume FC_MONO.
22721
22722 * font.h (struct font_driver): New member `match'.
22723 (font_update_drivers): Adjust prototype.
22724
22725 * font.c (font_parse_fcname, font_parse_name): Don't change :name
22726 property of FONT.
bba3e508
SM
22727 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring):
22728 Define them unconditionally.
aac0c6e3
MR
22729 (font_matching_entity): New function.
22730 (font_open_by_name): Try font_matching_entity if exact match is
22731 not found.
22732 (font_update_drivers): Delete the arg FONT. Return a list of
22733 actually used backends. Don't free faces, font caches here.
22734 Don't store data in frame parameters. Don't call x_set_font.
22735 (Ffont_spec): Store :name property as is.
22736 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
22737 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
22738 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
22739 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
22740 Call font->driver->otf_gsub instead of font_otf_gsub.
22741
22742 * frame.c (x_set_font_backend): Do more works that were done in
22743 font_update_drivers before.
22744
22745 * xfont.c (xfont_match): New function.
22746 (xfont_driver): Set xfont_driver.match to xfont_match.
22747 (xfont_draw): Set font in GC if necessary.
22748
22749 * ftxfont.c (ftxfont_match): New function.
22750 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
22751
22752 * xftfont.c (xftfont_match): New function.
22753 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
22754
227552008-02-01 Kenichi Handa <handa@m17n.org>
22756
22757 * font.h (struct font): New member scalable.
22758 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
22759 (font_otf_gsub): Adjust prototype.
22760
22761 * font.c (font_otf_capability): Fix handling of the default langsys.
22762 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
22763 Check the contents of SPEC.
22764 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
22765 (check_gstring): New function.
22766 (REPLACEMENT_CHARACTER): New macro.
22767 (font_otf_gsub): New arg alternate_subst. Be sure to set all
22768 glyph codes of GSTRING.
22769 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
22770 (font_prepare_composition): Set cmp->glyph_len.
22771 (font_open_entity): Set font->scalable.
22772 (Ffont_get): Handle :otf property.
bba3e508
SM
22773 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates):
22774 New functions.
aac0c6e3
MR
22775 (Fquery_font): Use font->font.full_name.
22776 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
22777 Sfont_otf_alternates.
22778
22779 * ftfont.c (ftfont_open): Set font->font.full_name and
22780 font->font.name properly. Fix calculation of font->font.height
22781 and font->min_width.
22782
22783 * ftxfont.c (ftxfont_create_gcs): New function.
22784 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
22785 (ftxfont_draw_backgrond): Fix filling region.
22786 (ftxfont_default_fid): New function.
22787 (ftxfont_open): Set xfont->fid to the return value of
22788 ftxfont_default_fid.
22789 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
22790 (ftxfont_done_face): Free only GCs that are created by
22791 ftxfont_create_gcs.
22792 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
22793
22794 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
22795 Clip to src->width, etc (not src->clip_XXX).
22796
22797 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
22798 FontBackend frame parameter.
22799
228002008-02-01 Kenichi Handa <handa@m17n.org>
22801
22802 * font.h (struct font_driver_list): New member `on'.
22803 (Fclear_font_cache): EXFUN it.
22804 (font_update_drivers): Extern it.
22805
22806 * font.c (font_unparse_fcname): Fix typo (swidth->width).
22807 (font_list_entities): Check driver_list->on.
40b1a3a9 22808 (register_font_driver): Initialize `on' member to 0.
aac0c6e3
MR
22809 (font_update_drivers): New function.
22810 (Fclear_font_cache): Check driver_list->on.
22811
22812 * frame.h (Qfont_backend): Extern it.
22813 (x_set_font_backend): Extern it.
22814
22815 * frame.c (Qfont_backend): New variable.
22816 (frame_parms): New element for font-backend.
22817 (x_set_font_backend): New function.
22818
22819 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
22820 FontBackend frame parameter.
22821 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
22822 x_set_font_backend.
22823
22824 * xfont.c (xfont_list): Don't try listing by :name property if the
22825 name is not for XLFD.
22826
228272008-02-01 Kenichi Handa <handa@m17n.org>
22828
22829 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
22830 (LGLYPH_SET_TO): New macros.
22831 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
22832 element of G is vector or not.
22833 (font_at): Extern it.
22834
22835 * font.c: Include window.h.
22836 (font_lispy_object): New function.
22837 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
22838 end of valid glyph.
22839 (font_close_object): Fix getting (struct font *).
22840 (font_at): New function.
22841 (Ffont_get): If FONT is a font-object, get entity from it.
22842 (Ffont_make_gstring): Initialize elements of glyphs with nil.
bba3e508
SM
22843 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX.
22844 Fix range check.
aac0c6e3
MR
22845 (Ffont_at): New function.
22846 (syms_of_font): Defsubr Sfont_at.
22847
22848 * xdisp.c (it_props): Move the entry for Qauto_composed to just
22849 before the entry for Qcomposition.
22850 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
22851 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
22852 the font in gstring.
22853 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
22854 LGLYPH_FORM (g) to detect the end of valid glyph.
22855 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
22856 we are composing with gstring.
22857
22858 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
22859 Check if adjustment is vector or not.
22860
22861 * Makefile.in (font.o): Make it depends on window.h.
22862
228632008-02-01 Kenichi Handa <handa@m17n.org>
22864
22865 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
22866 adjustment is vector or not.
22867
228682008-02-01 Miles Bader <miles@gnu.org>
22869
22870 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
22871
228722008-02-01 Kenichi Handa <handa@m17n.org>
22873
22874 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
bba3e508 22875 (LGLYPH_SET_WIDTH): Adjust for the change of LGLYPH format.
aac0c6e3
MR
22876 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
22877
22878 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
22879 (DEVICE_DELTA): Fix typo.
22880 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
22881 LGLYPH format.
22882
22883 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
22884 the change of LGLYPH format.
22885
228862008-02-01 Kenichi Handa <handa@m17n.org>
22887
22888 * ftfont.c (ftfont_list): Fix typo.
22889 (ftfont_build_basic_charsets): Don't include letters with diacritics.
22890
228912008-02-01 Jan Djärv <jan.h.d@swipnet.se>
22892
22893 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
22894
22895 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
22896 xftface_info is non-NULL.
22897
228982008-02-01 Jan Djärv <jan.h.d@swipnet.se>
22899
22900 * ftfont.c (ftfont_list): Move misplaced #endif.
22901
229022008-02-01 Kenichi Handa <handa@m17n.org>
22903
22904 * ftfont.c (ftfont_list): Pay attention to the case that
22905 FC_CAPABILITY is not defined.
22906
229072008-02-01 Kenichi Handa <handa@m17n.org>
22908
22909 * xftfont.c (xftfont_open): Set charset related members to -1.
22910
22911 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
22912 QCname.
22913 (ftfont_open): Set charset related members to -1.
22914
22915 * fontset.c (Votf_script_alist): New variable.
22916 (syms_of_fontset): Initialize it.
22917 (fontset_font): Delete unused variable.
22918
22919 * fontset.h (Votf_script_alist): Extern it.
22920
22921 * font.c (font_find_for_lface): Optimize code.
22922
22923 * font.h (font_close_object, font_merge_old_spec): Extern them.
22924
229252008-02-01 Kenichi Handa <handa@m17n.org>
22926
22927 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
22928 (syms_of_font): Initialize them.
22929 (font_pixel_size): Allow float value in dpi.
22930 (font_prop_validate_type): Delete.
22931 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
22932 Change caller.
22933 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
22934 (font_prop_validate_extra): Delete.
22935 (font_prop_validate_spacing): New function.
22936 (font_property_table): Add elements for all known properties.
bba3e508
SM
22937 (get_font_prop_index): Rename from check_font_prop_name.
22938 New argument FROM. Change caller.
aac0c6e3
MR
22939 (font_prop_validate): Validate all known properties.
22940 (font_put_extra): Delete argument force. Change caller.
22941 (font_expand_wildcards): Make it static. Fix the way of shrinking
22942 the possible range.
22943 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
22944 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
22945 Change caller.
22946 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
22947 (font_parse_fcname): Delete argument merge. Fix parsing of point
22948 size. Don't validate properties values here. Change caller.
22949 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
22950 (font_open_by_name): Delete unused variable.
22951 (Ffont_spec): Likewise. Validate property values.
22952 (Ffont_match_p): New function.
22953
22954 * font.h (QCscalable): Extern it.
22955 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
22956
22957 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
22958
22959 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
22960 (xfont_list_pattern): New function.
22961 (xfont_list): Use xfont_list_pattern.
22962
229632008-02-01 Kenichi Handa <handa@m17n.org>
22964
22965 * font.h (Flist_fonts): EXFUN it.
22966
229672008-02-01 Jason Rumney <jasonr@gnu.org>
22968
22969 * w32term.c (w32_initialize): Add back smoothing_type and
22970 smoothing_enabled definitions.
22971
229722008-02-01 Kenichi Handa <handa@m17n.org>
22973
22974 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
22975 s->face->font on determining underline position.
22976
229772008-02-01 Kenichi Handa <handa@m17n.org>
22978
22979 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
22980 (font_has_char): Accept font-object too.
22981 (font_find_for_lface): Try at first with a size specified in face.
22982
229832008-02-01 Kenichi Handa <handa@m17n.org>
22984
22985 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
22986 font_open_by_name.
22987
229882008-02-01 Kenichi Handa <handa@m17n.org>
22989
22990 * font.h (QCspacing, QCdpi): Extern them.
22991 (enum font_spacing): New enum.
22992 (FONT_PIXEL_SIZE_QUANTUM): New macro.
22993
22994 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
22995 (QCspacing, QCdpi): New variables.
22996 (syms_of_font): Initialize them.
22997 (font_pixel_size): New function.
22998 (font_put_extra): New function.
22999 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
23000 in FONT_EXTRA.
23001 (font_parse_fcname): Handle enumerated values (e.g. bold).
23002 Fix handling font size. Add QCname property that contains only
23003 unknown properties.
23004 (font_score): Change argument. Change caller. Pay attention to
23005 FONT_PIXEL_SIZE_QUANTUM.
23006 (font_sort_entites, font_list_entities, font_find_for_lface)
23007 (font_open_for_lface, font_open_by_name): Fix handling of font size.
23008 (Ffont_spec): Add QCname property that contains only unknown properties.
23009
bba3e508
SM
23010 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq.
23011 Don't include weight in listing pattern, instead check weight of each
aac0c6e3
MR
23012 listed font. Don't include scalable in pattern. Pay attention to
23013 FONT_PIXEL_SIZE_QUANTUM.
23014
230152008-02-01 Kenichi Handa <handa@m17n.org>
23016
23017 * font.c (font_parse_fcname): Fix parsing of point-size.
23018 (font_unparse_fcname): Produce symbolic names for style properties.
23019 (font_list_entities): Handle float size correctly.
23020 (font_open_by_name): Prefer `normal' property values if the name
23021 doesn't specify them.
23022
23023 * fontset.c (Finternal_char_font): Use font_get_name, not
23024 Ffont_xlfd_name.
23025
23026 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
23027 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
23028 pattern. Don't force scalable.
23029
23030 * xftfont.c (xftfont_open): For generating a name, start from
23031 96-byte buffer.
23032
230332008-02-01 Jan Djärv <jan.h.d@swipnet.se>
23034
23035 * frame.h (x_new_fontset2): Fix prototype.
23036
230372008-02-01 Kenichi Handa <handa@m17n.org>
23038
23039 * font.h (struct font_driver): Delete member parse_name.
23040 (font_match_p, font_get_spec, font_parse_fcname)
23041 (font_unparse_fcname): Extern them.
23042 (font_get_name): Adjust prototype.
23043
23044 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
23045 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
bba3e508
SM
23046 (font_expand_wildcards): Fix handling ENCODING field.
23047 Avoid unnecessary checks for weight, slant, and swidth.
aac0c6e3
MR
23048 (font_parse_fcname): New function.
23049 (font_unparse_fcname): New function.
23050 (font_parse_name): New function.
23051 (font_match_p): New function.
23052 (font_get_name): Change return value to Lisp string.
23053 (font_get_spec): New function.
23054 (Qunspecified, Qignore_defface): Don't extern them.
23055 (font_find_for_lface): Assume that LFACE is fully specified.
23056 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
23057 object, use it for FACE.
23058 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
23059 driver->parse_name.
23060 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
23061
23062 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
23063 prototype.
23064
23065 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
23066 argument F. Don't call Fnew_fontset. Instead, directly call
23067 make_fontset.
23068
23069 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
23070
23071 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
23072 of x_new_fontset2.
23073
23074 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
23075 (Qsans__serif): New variables.
23076 (ftfont_generic_family_list): New variable.
23077 (syms_of_ftfont): Initialize the above variables.
23078 (ftfont_pattern_entity): Delete argument NAME.
23079 (ftfont_list_generic_family): New function.
23080 (ftfont_parse_name): Delete this function.
23081 (ftfont_list): Try generic family only when FcFontList found no font.
23082 (ftfont_list_family): Fix args to FcObjectSetBuild.
23083
23084 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
23085 object in attrs[LFACE_FONT_INDEX].
23086 (set_lface_from_font_name): Cancel all changes for font-backend.
23087 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
23088 function.
23089 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
23090 font object in QCfont attribute.
23091 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
23092 (realize_default_face) [USE_FONT_BACKEND]: Call
23093 set_lface_from_font_and_fontset.
23094
23095 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
23096 "fixed", and signal error here if no suitable font was found.
23097
23098 * xfont.c (xfont_parse_name): Delete this function.
23099
23100 * xftfont.c (xftfont_open): Change coding style of error
23101 handling. Generate fontconfig's fontname pattern.
23102
23103 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
23104 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
23105
23106 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
23107 Both args FONTSET and FONT_OBJECT must be existing ones.
23108
231092008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23110
23111 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
23112
231132008-02-01 Kenichi Handa <handa@m17n.org>
23114
23115 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
23116
23117 * font.h (struct font): Fix typo.
23118
23119 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
23120 XLFD_XXX_INDEX.
23121 (enum xlfd_field_mask): New enum.
ef1b0ba7 23122 (intern_font_field): Change argument. Change caller. If digits
aac0c6e3
MR
23123 are followed by non-digits, return a symbol.
23124 (font_expand_wildcards): New function.
23125 (font_parse_xlfd): Fix wildcard handling.
23126 (Ffont_spec): If :name is specified, reflect the info in the other
23127 properties.
23128
23129 * ftfont.c (ftfont_pattern_entity): Fix typo.
23130 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
23131 locale.
23132
231332008-02-01 Kenichi Handa <handa@m17n.org>
23134
23135 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
23136
23137 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
23138 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
23139 registry doesn't specify encoding part.
23140 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
23141 (font_open_by_name): At first try parsing the name.
23142 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
23143 as Lisp symbols.
23144
23145 * fontset.c (reorder_font_vector): Pay attention to the case that
23146 the 3rd element of font_def is nil.
23147 (fontset_font): For the default fontset, append one more fontset
23148 elements for a script-based font specification. Don't add script
23149 attribute on finding a font.
23150 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
23151 font name.
23152 (fontset_ascii_font): If a font can't be opened, return nil.
23153
23154 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
23155 (ftfont_pattern_entity): New function.
23156 (ftfont_get_cache): Assume that freetype_font_cache is already
23157 initialized.
23158 (ftfont_list): Handle the case that a file is specified in font
23159 name. Use ftfont_pattern_entity to generate entities.
23160 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
23161 (syms_of_ftfont): Initialize freetype_font_cache.
23162
23163 * xftfont.c (xftfont_open): Make the font name fontconfig's
23164 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
23165 (xftfont_close): Free font->font.name if not NULL.
23166
23167 * xfont.c (xfont_list): If script is specified for a font, return
23168 null_vector.
23169 (xfont_list_family): Declare argument type.
23170
23171 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
23172 name, set LFACE_FONT (lface) to nil.
23173
23174 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
23175 return Qnil.
23176
231772008-02-01 Kenichi Handa <handa@m17n.org>
23178
23179 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
23180 (standard_args): Add "-enable-font-backend".
23181
231822008-02-01 Kenichi Handa <handa@m17n.org>
23183
23184 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
23185 (struct xftdraw_list, xftdraw_list): Delete them.
23186 (register_xftdraw, check_xftdraw): Delete them.
23187 (xftfont_prepare_face): Don't call register_xftdraw.
23188 (xftfont_done_face): Don't call check_xftdraw.
23189 (xftfont_draw): Get background color only when with_background is
23190 nonzero.
23191
23192 * xfont.c (xfont_encode_char): Fix calculation of char2b.
23193
231942008-02-01 Kenichi Handa <handa@m17n.org>
23195
23196 These changes are for the new font handling codes.
23197
23198 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
23199 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
23200 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
23201 (FONTSRC, FONTOBJ): New variables.
23202 (obj): Add $(FONTOBJ).
23203 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
23204 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
23205 @LIBOTF_LIBS@.
23206 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
23207 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
23208
23209 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
23210
23211 * character.h (Vscript_representative_chars): Extern it.
23212
23213 * character.c (Vscript_representative_chars): New variable.
23214 (syms_of_character): Declare it as a Lisp variable.
23215
23216 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
23217 enable_font_backend is nonzero, accept the composition method
23218 COMPOSITION_WITH_GLYPH_STRING.
23219
23220 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
23221 enumeration COMPOSITION_WITH_GLYPH_STRING.
23222
23223 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
23224 members clip_x, clip_y, clip_width, and clip_height.
23225 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
23226
23227 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
23228 --enable-font-backend. Call syms_of_font.
23229
23230 * fns.c (assoc_no_quit): New function.
23231
23232 * fontset.h (FONT_INFO_FROM_FACE): New macro.
23233 (face_for_font, new_fontset_from_font)
23234 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
23235
23236 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
23237 (fontset_font, fontset_ascii, face_for_char)
23238 (make_fontset_for_ascii_face, Ffont_info)
23239 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
23240 is nonzero, use font-backend mechanism.
23241 (find_font_encoding): Make it non-static.
23242 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
23243 New functions.
23244
23245 * frame.h (struct frame): New members resx and resy.
23246 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
23247 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
23248
23249 * frame.c [USE_FONT_BACKEND]: Include "font.h".
23250 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
23251
23252 * lisp.h (assoc_no_quit): Extern it.
23253
23254 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
23255 Through out the file, use FONT_INFO_FROM_FACE instead of
23256 FONT_INFO_FROM_ID, use get_per_char_metric instead of
23257 rif->per_char_metric.
23258 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
23259 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
23260 (get_glyph_face_and_encoding, fill_composite_glyph_string)
23261 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
23262 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
23263 nonzero, use font-backend mechanism.
23264 (get_per_char_metric): New function.
23265
23266 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
23267 (set_lface_from_font_name)
23268 (set_font_frame_param, free_realized_face)
23269 (prepare_face_for_display, clear_face_gcs)
23270 (Finternal_set_font_selection_order, realize_x_face)
23271 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
23272 font-backend mechanism.
23273 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
23274 (load_face_font) [USE_FONT_BACKEND]: Abort.
23275 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
23276 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
23277
23278 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
23279 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
23280 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
bba3e508
SM
23281 nonzero, register all available font drivers.
23282 Call x_default_font_parameter for deciding a font.
aac0c6e3
MR
23283 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
23284
23285 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
23286 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
23287 (x_set_glyph_string_clipping_exactly)
23288 (x_compute_glyph_string_overhangs)
23289 (x_draw_glyph_string_foreground)
23290 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
23291 (x_free_frame_resources) [USE_FONT_BACKEND]: If
23292 enable_font_backend is nonzero, use font-backend mechanism.
23293 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
23294
232952008-02-01 Kenichi Handa <handa@m17n.org>
23296
23297 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
23298 system_eol_type.
23299 (syms_of_coding): Initialize system_eol_type.
23300
23301 * process.c (Fset_process_coding_system): Inherit system's eol
23302 format if necessary.
23303
233042008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23305
23306 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
23307
233082008-02-01 Kenichi Handa <handa@m17n.org>
23309
23310 * coding.c (decode_eol): Pay attention to buffer relocation in
23311 del_range_2.
23312 (decode_coding): Call decode_eol before restoring undo_list.
23313
233142008-02-01 Kenichi Handa <handa@m17n.org>
23315
23316 * charset.c (Fdefine_charset_internal): Fix setting of
23317 emacs_mule_bytes.
23318
233192008-02-01 Kenichi Handa <handa@m17n.org>
23320
23321 * keyboard.c (read_char): Check if C is a character or not before
23322 looking up Vkeyboard_translate_table.
23323
233242008-02-01 Kenichi Handa <handa@m17n.org>
23325
bba3e508
SM
23326 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION):
23327 Fix condition to terminate the loop.
aac0c6e3
MR
23328
233292008-02-01 Kenichi Handa <handa@m17n.org>
23330
23331 * coding.c (produce_composition): Compare charbuf[i] instead of
23332 args[i] against 0.
23333 (Fterminal_coding_system): Use EQ to compare Lisp objects.
23334
233352008-02-01 Kenichi Handa <handa@m17n.org>
23336
23337 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
23338 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
23339 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
23340 detect_coding.
23341 (emacs_mule_char): Handle old style (Emacs 20) component character
23342 of a composition.
23343 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
23344 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
23345 composition rule.
23346 (decode_coding_emacs_mule): Handle invalid bytes correctly.
23347
233482008-02-01 Kenichi Handa <handa@m17n.org>
23349
23350 * coding.c (encode_coding_ccl): Allocate destination dynamically
23351 when necessary.
23352
233532008-02-01 Kenichi Handa <handa@m17n.org>
23354
23355 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
23356 the loop. When quitted, show a proper error message.
23357
233582008-02-01 Kenichi Handa <handa@m17n.org>
23359
bba3e508
SM
23360 * xterm.c (x_set_glyph_string_clipping_exactly):
23361 Set src->clip_head and src->clip_tail temporarily instead of src->hl.
aac0c6e3
MR
23362
23363 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
23364 character sequence.
23365 (Fccl_execute_on_string): Use ASET, not XSET.
23366
233672008-02-01 Kenichi Handa <handa@m17n.org>
23368
23369 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
23370
233712008-02-01 Kenichi Handa <handa@m17n.org>
23372
23373 * coding.c (decode_coding): Fix the condition of terminating the
23374 decoding loop.
23375
233762008-02-01 Kenichi Handa <handa@m17n.org>
23377
23378 * data.c (Faset): On setting a character bigger than 255 in a
23379 unibyte string, signal an error instead of make the string multibyte.
23380
233812008-02-01 Kenichi Handa <handa@m17n.org>
23382
23383 * charset.c (map_charset_chars): Fix for ascii-compatible charset
23384 made by a mapping table.
23385
233862008-02-01 Kenichi Handa <handa@m17n.org>
23387
23388 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
23389 not.
23390 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
23391 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
23392
bba3e508
SM
23393 * xterm.c (x_draw_composite_glyph_string_foreground):
23394 Check s->face is NULL or not.
aac0c6e3
MR
23395
233962008-02-01 Kenichi Handa <handa@m17n.org>
23397
23398 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
23399 (x_draw_glyph_string): Fix drawing of right_overhang and
23400 left_overhang around/on cursor.
23401
23402 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
23403
234042008-02-01 Kenichi Handa <handa@m17n.org>
23405
23406 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
23407
234082008-02-01 Kenichi Handa <handa@m17n.org>
23409
23410 * coding.c (Fdefine_coding_system_internal)
23411 (Fdefine_coding_system_alias): Avoid a duplicated element in
23412 Vcoding_system_alist.
23413
234142008-02-01 Kenichi Handa <handa@m17n.org>
23415
23416 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
23417
23418 * coding.c (Qcoding_system_define_form): New variable.
23419 (syms_of_coding): Intern and staticpro it.
23420 (Fcoding_system_p): Check Qcoding_system_define_form.
23421 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
23422
23423 * coding.h (CODING_SYSTEM_P): If ID is not available, call
23424 Fcoding_system_p.
23425 (CHECK_CODING_SYSTEM): If ID is not available, call
23426 Fcheck_coding_system.
23427 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
23428 Try also Fcheck_coding_system.
23429
234302008-02-01 Kenichi Handa <handa@m17n.org>
23431
23432 * coding.c (code_conversion_restore): GCPRO arg.
23433
234342008-02-01 Kenichi Handa <handa@m17n.org>
23435
23436 * character.c (lisp_string_width): Check multibyteness of STRING.
23437
234382008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23439
23440 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
23441 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
23442 (decode_mac_font_name): Use decode_coding_c_string instead of
23443 decode_coding.
bba3e508
SM
23444 (x_load_font): Initialize fontp->fontset to -1.
23445 Set fontp->encoding_type.
aac0c6e3
MR
23446
234472008-02-01 Kenichi Handa <handa@m17n.org>
23448
23449 * search.c (search_buffer): Give up BM search on case-fold-search
23450 if one of a target character has a case-equivalence of different
3b59c351 23451 byte length even if that target character is an ASCII.
aac0c6e3
MR
23452 (simple_search): Fix calculation of byte length of matched text.
23453 (boyer_moore): Fix handling of case-equivalent multibyte characters.
23454
234552008-02-01 Kenichi Handa <handa@m17n.org>
23456
23457 * coding.c (decode_coding): Fix handling of invalid bytes.
23458
234592008-02-01 Kenichi Handa <handa@m17n.org>
23460
23461 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
23462 Unicode characters.
23463
234642008-02-01 Kenichi Handa <handa@m17n.org>
23465
23466 * coding.c (encode_coding_object): If a pre-write-conversion
23467 function makes a new buffer, kill it.
23468
234692008-02-01 Kenichi Handa <handa@m17n.org>
23470
23471 * coding.c (QCascii_compatible_p): New variable.
23472 (syms_of_coding): Initialize it.
23473 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
23474 calling string_char.
23475 (record_conversion_result): Add `default:' case.
23476 (coding_charset_list): Delete unused variable `coding_type'.
23477 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
23478 property in the plist of the coding system.
23479 (Fcoding_system_put): Check QCascii_compatible_p.
23480
234812008-02-01 Miles Bader <miles@gnu.org>
23482
23483 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
23484 removed calculation of frame `f', as it's now used.
23485
234862008-02-01 Kenichi Handa <handa@m17n.org>
23487
23488 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
23489 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
23490 (UNIDATA): New variable.
23491 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
bba3e508
SM
23492 (bootstrap-emacs${EXEEXT}): Depends on charprop.el.
23493 Run $(RUN_TEMACS) unconditionally.
aac0c6e3
MR
23494
234952008-02-01 Kenichi Handa <handa@m17n.org>
23496
23497 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
23498 (admindir): New variable.
23499 ($(lispsource)international/charprop.el): New target.
23500
235012008-02-01 Miles Bader <miles@gnu.org>
23502
23503 * character.c (chars-in-region): Remove obsolete function.
23504 (syms_of_character): Remove its initialization.
23505
235062008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
23507
23508 * w32select.c (validate_coding_system)
23509 (setup_windows_coding_system): New functions.
bba3e508
SM
23510 (convert_to_handle_as_coded, Fw32_get_clipboard_data):
23511 Use setup_windows_coding_system.
23512 (setup_config, Fw32_get_clipboard_data):
23513 Use validate_coding_system.
aac0c6e3
MR
23514 (Fx_selection_exists): Move call to setup_config to a place
23515 where signals are allowed.
23516
23517 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
23518 (Fcheck_coding_system): Add declarations.
23519
235202008-02-01 Kenichi Handa <handa@m17n.org>
23521
23522 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
23523
235242008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23525
23526 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
23527 string as the second argument for x_new_fontset.
23528
235292008-02-01 Kenichi Handa <handa@m17n.org>
23530
23531 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
23532 (encode_coding_object): Use safe_call instead of call2.
23533
235342008-02-01 Kenichi Handa <handa@m17n.org>
23535
23536 * fontset.c (Fset_fontset_font): Check family element of a given vector.
23537
23538 * Makefile.in (lisp): Include charprop.el.
23539
235402008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23541
23542 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
23543 Not sure if it's unnecessary.
23544
235452008-02-01 Steven Tamm <steventamm@mac.com>
23546
23547 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
23548 some possibly unnecessary fontset checking code that crashed
23549 when creating a new frame.
23550
235512008-02-01 Kenichi Handa <handa@m17n.org>
23552
23553 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
23554 lookup_face.
23555
23556 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
23557
23558 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
23559
235602008-02-01 Kenichi Handa <handa@m17n.org>
23561
23562 * coding.c: Cancel the change done in HEAD on 2008-02-01.
23563 (coding_charset_list): New function.
23564
23565 * coding.h (coding_charset_list): Extern it.
23566
235672008-02-01 Kenichi Handa <handa@m17n.org>
23568
23569 * fontset.c (Fset_fontset_font): Call find_font_encoding with
23570 concatenation of family and registry.
23571
235722008-02-01 Kenichi Handa <handa@m17n.org>
23573
23574 * character.h (BYTE8_STRING): Fix typo.
23575
23576 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
23577 string to multibyte (sync to HEAD).
23578
23579 * casefiddle.c (casify_region): Handle changes in byte-length
23580 using replace_range_2 (sync to HEAD).
23581
235822008-02-01 Andreas Schwab <schwab@suse.de>
23583
23584 * chartab.c (map_char_table): GCPRO table and arg.
23585
235862008-02-01 Kenichi Handa <handa@m17n.org>
23587
23588 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
23589 already at limit.
23590
235912008-02-01 Kenichi Handa <handa@m17n.org>
23592
23593 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
23594 instead of fast_c_string_match_ignore_case.
bba3e508
SM
23595 (find_font_encoding): Change argument to Lisp_Object.
23596 Use fast_string_match_ignore_case instead of
aac0c6e3
MR
23597 fast_c_string_match_ignore_case. Change caller.
23598
235992008-02-01 Kenichi Handa <handa@m17n.org>
23600
23601 * xdisp.c (get_next_display_element): In unibyte case, decide to
23602 display in octal form by checking a character by
23603 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
23604
23605 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
23606
23607 * character.c (unibyte_has_multibyte_table): New variable.
23608
23609 * character.h (unibyte_has_multibyte_table): Extern it.
23610 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
23611
236122008-02-01 Kenichi Handa <handa@m17n.org>
23613
23614 * coding.c (encode_coding_iso_2022): Fix handling of charset
23615 annotation.
23616
236172008-02-01 Kenichi Handa <handa@m17n.org>
23618
23619 * coding.c (setup_coding_system): If coding_system is nil, use
23620 Qundecided.
23621 (Fterminal_coding_system): Return nil if terminal coding system is
23622 `undecided'.
bba3e508
SM
23623 (syms_of_coding): Define coding-system `undecided' here.
23624 Setup terminal_coding as `undecided'.
aac0c6e3
MR
23625
236262008-02-01 Kenichi Handa <handa@m17n.org>
23627
bba3e508
SM
23628 * xdisp.c (message_dolog, set_message_1):
23629 Call unibyte_char_to_multibyte with arg type int.
aac0c6e3
MR
23630
23631 * lread.c (read1): Fix reading of a char-table.
23632
23633 * print.c (print_object): Include sub char-table in circularities
23634 detection.
23635
236362008-02-01 Kenichi Handa <handa@m17n.org>
23637
23638 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
23639 Append the found sequences in car of ARGS instead of prepending.
23640
236412008-02-01 Kenichi Handa <handa@m17n.org>
23642
23643 * fileio.c (report_file_error): Make a unibyte string from
23644 strerror (errorno).
23645 (Fsubstitute_in_file_name): Fix the arg to
23646 unibyte_char_to_multibyte. It is evaluated twice.
23647
236482008-02-01 Kenichi Handa <handa@m17n.org>
23649
23650 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
23651
236522008-02-01 Kenichi Handa <handa@m17n.org>
23653
23654 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
23655 BOM is not found.
23656 (detect_coding, detect_coding_system): Optimization for ISO-2022
23657 when no 8-bit data is found.
23658
236592008-02-01 Jason Rumney <jasonr@gnu.org>
23660
23661 * w32fns.c (x_to_w32_font): Update to use new coding struct.
23662
236632008-02-01 Kenichi Handa <handa@m17n.org>
23664
23665 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
23666 CHARS.
23667
236682008-02-01 Steven Tamm <steventamm@mac.com>
23669
23670 * macterm.c (mac_encode_char): Add charset argument and update
23671 to use encoding_type.
23672 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
23673 switch to pure fontset.
23674 (decode_mac_font_name): Temporarily remove decoding.
23675 (x_font_name_to_mac_font_name): Temporarily remove encoding.
23676 (x_load_font): Temporarily remove encoding.
23677
236782008-02-01 Kenichi Handa <handa@m17n.org>
23679
23680 * xfaces.c (Fface_font): If frame is not on a window system,
23681 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
23682 refer to face->font.
23683 (split_font_name_into_vector, build_font_name_from_vector)
23684 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
23685 when HAVE_WINDOW_SYSTEM is defined.
23686
236872008-02-01 Kenichi Handa <handa@m17n.org>
23688
23689 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
23690 (x_produce_glyphs): Fix setting of members of cmp in case
23691 cmp->glyph_len is zero.
23692
23693 * fontset.c (Fset_fontset_font): Fix docstring.
23694 (Ffontset_info): Make it backward compatible. New arg ALL.
23695
236962008-02-01 Kim F. Storm <storm@cua.dk>
23697
23698 * process.c (read_process_output): Grow decoding_buf when needed;
23699 this could cause a crash in allocate_string and compact_small_strings.
23700
237012008-02-01 Kenichi Handa <handa@m17n.org>
23702
23703 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
23704
237052008-02-01 Kenichi Handa <handa@m17n.org>
23706
23707 * coding.c (setup_coding_system): Set coding->common_flags
23708 correctly for raw-text.
23709 (consume_chars): On encoding unibyte text by raw-text, don't check
23710 multibyte form.
23711 (encode_coding): On encoding by raw-text, never use translation tables.
23712
23713 * fileio.c (e_write): Short cut for the case of no encoding.
23714
237152008-02-01 Kenichi Handa <handa@m17n.org>
23716
23717 * coding.c (detect_coding, detect_coding_system): Delete unused
23718 variables.
23719
237202008-02-01 Kenichi Handa <handa@m17n.org>
23721
23722 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
23723 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
23724
237252008-02-01 Kenichi Handa <handa@m17n.org>
23726
bba3e508
SM
23727 * coding.c (Ffind_coding_systems_region_internal):
23728 Include raw-text and no-conversion in the result.
aac0c6e3
MR
23729
237302008-02-01 Kenichi Handa <handa@m17n.org>
23731
23732 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
23733 (load_font_get_repertory): Delete unnecessary check of ENCODING of
23734 FONT_DEF.
23735 (font_def_arg, add_arg, from_arg, to_arg): New args.
23736 (set_fontset_font): Change argument.
23737 (Fset_fontset_font): Fix for the case that TARGET is a script
23738 name and charset name.
23739 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
23740
237412008-02-01 Kenichi Handa <handa@m17n.org>
23742
23743 * fontset.c (fontset_font): Rename from fontset_face. Change return
23744 value.
23745 (face_suitable_for_char_p, face_for_char): Adjust for the change
23746 of fontset_font.
23747 (make_fontset_for_ascii_face): Fix setting of the fontset element
23748 for ASCII.
23749 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
23750 to get a font name.
23751 (Ffontset_info): Adjust for the change of fontset_font.
23752
23753 * coding.c (emacs_mule_char): Check invalid code more rigidly.
23754
23755 * character.h (LEADING_CODE_LATIN_1_MIN)
23756 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
23757
237582008-02-01 Kenichi Handa <handa@m17n.org>
23759
23760 * editfns.c (check_translation): New function.
23761 (Ftranslate_region_internal): Handle M:N mapping.
23762
237632008-02-01 Kenichi Handa <handa@m17n.org>
23764
23765 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
23766
237672008-02-01 Kenichi Handa <handa@m17n.org>
23768
23769 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
23770 goto invalid_code.
23771 (decode_coding_iso_2022): Fix handling of invalid designation.
23772
23773 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
23774 after calling code_conversion_save.
23775
237762008-02-01 Kenichi Handa <handa@m17n.org>
23777
23778 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
23779
23780 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
23781
23782 * fontset.c: Include "intervals.h".
23783 (fontset_face): Fix comparing of Lisp_Objects.
bba3e508
SM
23784 (free_face_fontset, new_fontset_from_font_name):
23785 Fix Lisp_Object/int mixup.
aac0c6e3
MR
23786
23787 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
23788
23789 * coding.c: Add many prototypes for static functions.
23790 (get_translation_table): Allow max_lookup to be NULL.
23791 (decode_coding, Ffind_coding_systems_region_internal)
bba3e508
SM
23792 (Funencodable_char_position, Fcheck_coding_systems_region):
23793 Call get_translation_table with max_lookup NULL.
aac0c6e3
MR
23794
237952008-02-01 Kenichi Handa <handa@m17n.org>
23796
23797 * coding.c (get_translation_table): Declare it as Lisp_Object.
23798 (LOOKUP_TRANSLATION_TABLE): New macro.
23799 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
23800 instead of CHAR_TABLE_REF.
23801
238022008-02-01 Kenichi Handa <handa@m17n.org>
23803
23804 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
23805 annotation data format.
23806 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
23807 Change arguments FROM and TO to single argument NCHARS. Change caller.
23808 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
23809 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
23810 (decode_coding_ccl, decode_coding_charset): Pay attention to
23811 coding->charbuf_used.
23812 (get_translation): New function.
23813 (produce_chars): New arguments translation_table and last_block.
23814 Translate characters here. Return number of carryover chars.
23815 Change caller.
23816 (produce_composition): New argument pos. Change caller.
23817 Adjust for the change of annotation data format.
23818 (produce_charset, produce_annotation): Likewise.
23819 (decode_coding, encode_coding): Don't call translate_chars.
23820 (consume_chars): New arg translation_table. Change caller.
23821 (translate_chars): Delete.
23822 (syms_of_coding): Make translation-table's number of extra slots 2.
23823
238242008-02-01 Kenichi Handa <handa@m17n.org>
23825
23826 * search.c (simple_search): Fix setting this_pos_byte in backward
23827 search.
23828
23829 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
23830 byte sequence.
23831 (detect_coding_ccl): Fix setting of the variable valids.
23832
238332008-02-01 Kenichi Handa <handa@m17n.org>
23834
23835 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
23836
23837 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
23838
23839 * editfns.c (Ftranslate_region_internal): Rename from
23840 Ftranslate_region. Accept a char-table in TABLE.
23841 (syms_of_editfns): Defsubr Stranslate_region_internal.
23842
23843 * xfaces.c (set_lface_from_font_name): If a font is specified for
23844 a frame, generate a fontset from the font.
23845 (build_scalable_font_name): If the scalable font is requested for
23846 a specific size, don't change that size.
23847 (try_font_list): Try a scalable font also in the case that a
23848 pattern string is specified.
23849
238502008-02-01 Kenichi Handa <handa@m17n.org>
23851
23852 * xfaces.c (Fface_font): New optional arg CHARACTER.
23853
238542008-02-01 Kenichi Handa <handa@m17n.org>
23855
23856 * charset.h (CHARSET_OFFSET): New macro.
23857
238582008-02-01 Kenichi Handa <handa@m17n.org>
23859
23860 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
23861
23862 * fontset.c (fontset_face): Handle the case that repertory is a
23863 char-table.
23864 (find_font_encoding): Return nil for unknown encoding.
23865 (Fset_fontset_font): Ignore a font of unknown encoding.
23866
238672008-02-01 Kenichi Handa <handa@m17n.org>
23868
23869 * keymap.c (describe_vector): Handle default value of a char table.
23870
23871 * fontset.c (fontset_face): Handle fallback fonts correctly.
23872 (Ffontset_info): Return infomation about fallback fonts.
23873
238742008-02-01 Kenichi Handa <handa@m17n.org>
23875
23876 * fontset.c (FONTSET_DEFAULT): New macro.
23877 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
23878 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
23879 the case that it is nil.
23880 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
23881 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
23882
23883 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
23884 subset or superset.
23885
238862008-02-01 Kenichi Handa <handa@m17n.org>
23887
23888 * emacs.c (main): Call init_charset after syms_of_XXX.
23889
23890 * charset.c (Vcharset_map_directory): Delete.
23891 (Vcharset_map_path): New variable.
23892 (load_charset_map_from_file): Use Vcharset_map_path instead.
23893 (init_charset): Initialize Vcharset_map_path.
23894 (syms_of_charset): Delete declaration of "charset-map-directory",
23895 add declaration of "charset-map-path".
23896
238972008-02-01 Kenichi Handa <handa@m17n.org>
23898
23899 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
23900 ASCII only string.
23901
23902 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
23903
23904 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
23905 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
23906
239072008-02-01 Kenichi Handa <handa@m17n.org>
23908
23909 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
23910
23911 * coding.c (QCmnemonic, QCdefalut_char)
23912 (QCdecode_translation_table, QCencode_translation_table)
23913 (QCpost_read_conversion, QCpre_write_conversion): New variables.
23914 (get_translation_table): Return a list of translation tables if
23915 necessary.
23916 (decode_coding): Call get_translation_table with ENCODEP 0.
23917 (char_encodable_p): If translation_table is non-nil, always call
23918 translate_char.
23919 (Fdefine_coding_system_internal): Accept list of translation
23920 tables as :encode-translation-table and :decode-translation-table.
23921 (Fcoding_system_put): New function.
bba3e508
SM
23922 (syms_of_coding): Declare new symbols.
23923 Defsubr Scoding_system_put.
aac0c6e3
MR
23924 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
23925 typically JISX0212.
23926
23927 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
23928 when the charset is superset type.
23929
23930 * character.c (translate_char): Accept list of translation tables.
23931
239322008-02-01 Kenichi Handa <handa@m17n.org>
23933
23934 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
23935 (CODING_ATTR_TRANS_TBL): New macro.
23936
23937 * coding.c (get_translation_table): New function.
23938 (translate_chars): Fix the bug of skipping annotation data.
23939 (decode_coding, encode_coding): Utilize get_translation_table.
23940 (char_encodable_p, Funencodable_char_position): Translate char if
23941 necessary.
23942 (Ffind_coding_systems_region_internal)
23943 (Fcheck_coding_systems_region): Setup translation table for encode
23944 in a coding system attribute vector in advance.
23945 (Fdefine_coding_system_internal): Allow a symbol as translation
23946 table. For shift-jis type coding system, allow 4th charset.
23947
239482008-02-01 Kenichi Handa <handa@m17n.org>
23949
23950 * coding.c (decode_coding_sjis): Check the first byte rigidly.
23951
23952 * xdisp.c (get_next_display_element): Pass -1 as POS to
23953 FACE_FOR_CHAR if displaying a C-string.
23954
239552008-02-01 Kenichi Handa <handa@m17n.org>
23956
23957 * composite.c (get_composition_id): Handle xoff and yoff in a
23958 composition rule.
23959
23960 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
23961 (struct composition): New member lbearing and rbearing.
23962
23963 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
23964 (x_get_glyph_overhangs): Handle a composition glyph.
23965 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
23966
23967 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
23968 composition glyph.
23969
239702008-02-01 Kenichi Handa <handa@m17n.org>
23971
23972 * print.c: Include charset.h.
23973 (Vprint_charset_text_property): New variable.
23974 (Qdefault): Extern it.
23975 (PRINT_STRING_NON_CHARSET_FOUND)
23976 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
23977 (print_check_string_result): New variable.
23978 (print_check_string_charset_prop): New function.
23979 (print_prune_charset_plist): New variable.
23980 (print_prune_string_charset): New function.
23981 (print_object): Call print_prune_string_charset if
23982 Vprint_charset_text_property is not t.
23983 (print_interval): Print nothing if interval->plist is nil.
23984 (syms_of_print): Declare Vprint_charset_text_property as a lisp
23985 variable. Init and staticpro print_prune_charset_plist.
23986
239872008-02-01 Kenichi Handa <handa@m17n.org>
23988
23989 * fontset.c (new_fontset_from_font_name): Use the specified font
23990 for all characters in the new fontset.
23991
23992 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
23993 OBJECT args.
23994
23995 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
23996 OBJECT args for composition too.
23997
23998 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
23999 OBJECT args.
24000
240012008-02-01 Kenichi Handa <handa@m17n.org>
24002
24003 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
24004
24005 * fontset.c (reorder_font_vector): Adjust for the change of
24006 FONT_DEF format.
24007 (fontset_face): New arg id. Change caller.
24008 (face_for_char): New args pos and object.
24009 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
24010 (fs_query_fontset): Check NAME by Fassoc too.
24011 (Fset_fontset_font): Allow non-XLFD font name.
24012 (Ffontset_info): Adjust for the change of FONT_DEF format.
24013
24014 * fontset.h (face_for_char): Adjust prototype.
24015
24016 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
24017 (append_space, extend_face_to_end_of_line)
24018 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
24019 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
24020
24021 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
24022 POS and OBJECT args.
24023
24024 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
24025 POS and OBJECT args.
24026
240272008-02-01 Jason Rumney <jasonr@gnu.org>
24028
24029 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
24030 of GlobalAlloc'ed memory.
24031
240322008-02-01 Kenichi Handa <handa@m17n.org>
24033
24034 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
24035
24036 * charset.h (charset_table_used): Delete extern.
24037
24038 * charset.c (charset_table_used): Make it static.
24039 (map_charset_chars): Fix args to c_function with.
24040
24041 * chartab.c (map_sub_char_table_for_charset): Fix args to
24042 c_function with.
24043
bba3e508
SM
24044 * coding.h (enum coding_result_code):
24045 Delete CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
aac0c6e3
MR
24046
24047 * coding.c (Qinsufficient_source, Qinconsistent_eol)
24048 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
24049 (Vlast_code_conversion_error): New variables.
24050 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
24051 (ONE_MORE_BYTE): Record error if any instead of signaling an
24052 error. If non-ASCII multibyte char is found, return the negative
24053 value of the code. All callers changed to check it.
24054 (ONE_MORE_BYTE_NO_CHECK): Likewise.
24055 (record_conversion_result): New function. Change all codes setting
24056 coding->result to call this function.
24057 (detect_coding_utf_8, decode_coding_utf_8)
24058 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
24059 Don't use the local variable incomplete.
24060 (emacs_mule_char): Change the second arg to `const'.
24061 (decode_coding): Fix of flushing out unprocessed data.
24062 (make_conversion_work_buffer): Fix making of a work buffer.
24063 (decode_coding_object): Return coding->dst_object.
24064
24065 * fontset.c (set_fontset_font): Fix args.
24066
24067 * lisp.h (CHARACTERBITS): Define as 22.
24068
24069 * process.c (send_process): Be sure to set coding->src_multibyte.
24070
24071 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
24072
240732008-02-01 Kenichi Handa <handa@m17n.org>
24074
24075 * xdisp.c (handle_auto_composed_prop): Give limit to
24076 Fnext_single_char_property_change.
24077
240782008-02-01 Kenichi Handa <handa@m17n.org>
24079
24080 * composite.c (syms_of_composite): Don't make the composition hash
24081 table weak.
24082
24083 * fontset.c (Fset_fontset_font): Fix docstring.
24084
24085 * lisp.h (detect_coding_system): Adjust prototype.
24086
24087 * fileio.c (kill_workbuf_unwind): Delete this function.
24088 (Finsert_file_contents): Adjust the call of detect_coding_system.
24089 Get conversion_buffer by code_conversion_save. Use the macro
24090 CODING_MAY_REQUIRE_DECODING. After decoding, update
24091 coding_system.
24092
24093 * coding.h (make_conversion_work_buffer): Delete extern.
24094 (code_conversion_save): Extern it.
24095
24096 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
24097 (CODING_GET_INFO): Delete argument eol_type. Change callers.
24098 (decode_coding_utf_8): Don't do eol converion.
24099 (detect_coding_utf_16): Check coding->src_chars, not
24100 coding->src_bytes. Add heuristics for those that have no signature.
24101 (decode_coding_emacs_mule, decode_coding_iso_2022)
24102 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
24103 Don't do eol converion.
24104 (adjust_coding_eol_type): Return a new coding system.
24105 (detect_coding): Don't detect eol. Fix for utf-16 detection.
24106 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
24107 each change.
24108 (decode_coding): Pay attention to undo_list. Do eol conversion for
24109 all types of coding-systems (if necessary).
24110 (Vcode_conversion_work_buf_list): Delete it.
24111 (Vcode_conversion_reused_workbuf): Rename from
24112 Vcode_conversion_reused_work_buf.
24113 (Vcode_conversion_workbuf_name): New variable.
24114 (reused_workbuf_in_use): New variable.
24115 (make_conversion_work_buffer): Delete the arg DEPTH.
24116 (code_conversion_restore): Change argument to cons.
24117 (code_conversion_save): Delete the argument BUFFER. Change callers.
24118 (detect_coding_system): New argument src_chars. Change callers.
24119 Fix for utf-16 detection.
24120 (init_coding_once): Don't use ISO_carriage_return.
24121 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
24122 reused_workbuf_in_use.
24123
241242008-02-01 Kenichi Handa <handa@m17n.org>
24125
24126 * keymap.c (store_in_keymap): Pay attention to the case that idx
24127 is a cons specifying a character range.
24128
241292008-02-01 Kenichi Handa <handa@m17n.org>
24130
24131 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
24132 HANDLED_RECOMPUTE_PROPS.
24133
24134 * coding.c (Fdefine_coding_system_internal): Fix checking of
24135 ascii compatibility.
24136
241372008-02-01 Kenichi Handa <handa@m17n.org>
24138
24139 * charset.c (find_charsets_in_text): Delete unused locale variable.
24140 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
24141
24142 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
24143 Resync charset_list to Vemacs_mule_charset_list.
24144
24145 * keymap.c (store_in_keymap): Pay attention to the case that idx
24146 is a cons specifying a character range.
24147
241482008-02-01 Kenichi Handa <handa@m17n.org>
24149
24150 * composite.c (update_compositions): Bind inhibit-read-only, etc
24151 to t before calling remove-list-of-text-properties.
24152
24153 * print.c (print_object): Always print ASCII chars as is.
24154
241552008-02-01 Kenichi Handa <handa@m17n.org>
24156
24157 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
24158
24159 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
24160 is a char table.
24161
241622008-02-01 Kenichi Handa <handa@m17n.org>
24163
24164 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
24165
241662008-02-01 Kenichi Handa <handa@m17n.org>
24167
24168 * xfaces.c (set_lface_from_font_name): Fix for the case that
24169 FONTNAME is not fontset name.
24170
241712008-02-01 Kenichi Handa <handa@m17n.org>
24172
24173 * fns.c (base64_encode_1): Fix previous change.
24174
241752008-02-01 Kenichi Handa <handa@m17n.org>
24176
24177 * fontset.c (set_fontset_font): New function.
24178 (Fset_fontset_font): If a font is specified for a charset, use
24179 map_charset_chars to store the font spec in a fontset.
24180
241812008-02-01 Kenichi Handa <handa@m17n.org>
24182
24183 * fontset.c (fontset_face): Create a fallback fontset on demand.
24184 (make_fontset): Don't create a fallback fontset here.
24185 (free_face_fontset): Free a fallback fontset (if any) too.
24186 (n_auto_fontsets): Delete this variable.
24187 (auto_fontset_alist): New variable.
24188 (new_fontset_from_font_name): Check auto_fontset_alist.
24189 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
24190 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
24191 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
24192 Defsubr Sfontset_list_all.
24193
241942008-02-01 Kenichi Handa <handa@m17n.org>
24195
24196 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
24197
241982008-02-01 Kenichi Handa <handa@m17n.org>
24199
24200 * fontset.c (Fnew_fontset): Check NAME more rigidly.
24201
242022008-02-01 Kenichi Handa <handa@m17n.org>
24203
24204 * editfns.c (Fgoto_char): Fix docstring.
24205
242062008-02-01 Kenichi Handa <handa@m17n.org>
24207
24208 * insdel.c (insert_from_gap): Adjust intervals correctly.
24209
242102008-02-01 Jason Rumney <jasonr@gnu.org>
24211
24212 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
24213 (pfnGetFontUnicodeRanges): New dynamically loaded function.
24214 (w32_initialize): Try to load it.
24215 (x_get_font_repertory): Use it if available.
24216 (w32_encode_char): Add shortcut for unicode output.
24217
24218 * w32fns.c (w32_load_system_font): Default charset to -1.
24219 (x_to_w32_charset): Match all fonts for unicode.
24220 (w32_to_x_charset): New parameter matching. Don't return partial
24221 or wildcard charsets.
24222 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
24223 (w32_codepage_for_font): Return CP_UNICODE for unicode.
24224 (w32_to_x_font): Match charset to real charset.
24225 (enum_font_cb2): Always list unicode versions.
24226
24227 * makefile.w32-in (temacs): Increase EMHEAP.
24228
242292008-02-01 Jason Rumney <jasonr@gnu.org>
24230
24231 * w32term.c (w32_encode_char): New charset parameter.
24232 font_info.encoding becomes encoding_type.
24233 (x_get_font_repertory): New function. Warning: stub only!
24234 (x_new_font): Return quickly if font already set.
24235 (x_new_fontset): fontsetname parameter is Lisp_Object.
24236 Use new fs_query_fontset. Try new_fontset_from_font_name.
24237 Use fontset_name for return value.
24238
24239 * w32term.h: Declare x_get_font_repertory.
24240
24241 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
24242 place of find_charset_in_text. Use encode_coding_object in place
24243 of encode_coding.
24244 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
24245 decode_coding.
24246
24247 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
24248 of x_new_fontset.
24249 (w32_load_system_font): Initialize charset as unicode.
24250 font_info.encoding becomes encoding_type.
24251 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
24252 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
24253 (syms_of_w32fns): Set get_font_repertory_func.
24254
24255 * w32console.c: Include character.h. Use terminal_encode_buffer
24256 from term.c.
bba3e508
SM
24257 (write_glyphs): Use new version of encode_terminal_code.
24258 Use encode_coding_object in place of encode_coding.
aac0c6e3
MR
24259
24260 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
24261 encoding becomes encoding_type.
24262
24263 * term.c (terminal_encode_buffer): Make externally visible.
24264
24265 * makefile.w32-in: Add character.h dependancies.
24266 (character.o, chartab.o): New targets.
24267
242682008-02-01 Kenichi Handa <handa@m17n.org>
24269
24270 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
24271 CODING_ID_EOL_TYPE.
24272
242732008-02-01 Andreas Schwab <schwab@suse.de>
24274
24275 * coding.c (produce_chars): Revert last change.
24276
242772008-02-01 Kenichi Handa <handa@m17n.org>
24278
24279 * charset.h (charset_unicode): Extern it.
24280
24281 * charset.c (string_xstring_p): Check by (C >= 0x100).
bba3e508
SM
24282 (find_charsets_in_text): Change format of the arc CHARSETS.
24283 New arg MULTIBYTE.
aac0c6e3
MR
24284 (Ffind_charset_region, Ffind_charset_string): Adjust for the
24285 change of find_charsets_in_text.
24286 (Fsplit_char): Fix doc. Never return unknown.
24287
24288 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
24289
bba3e508
SM
24290 * coding.c (Fdefine_coding_system_alias):
24291 Update Vcoding_system_list.
aac0c6e3
MR
24292
24293 * fontset.c (load_font_get_repertory): Pay attention to the case
24294 that ENCODING of a font is specified by a char-table.
24295
24296 * xterm.c (x_get_font_repertory): Handle the case that the
24297 encoding of font is other than Unicode.
24298
242992008-02-01 Kenichi Handa <handa@m17n.org>
24300
bba3e508
SM
24301 * term.c (encode_terminal_code): Don't handle glyph-table.
24302 Check if a character is encodable by the terminal coding system.
24303 If not, produces proper number of `?'s. Update
aac0c6e3
MR
24304 terminal_encode_buffer and terminal_encode_buf_size if necessary.
24305 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
24306
243072008-02-01 Kenichi Handa <handa@m17n.org>
24308
bba3e508
SM
24309 * term.c (terminal_encode_buffer, terminal_encode_buf_size):
24310 New variables.
aac0c6e3
MR
24311 (encode_terminal_code): Change argument. Encode multiple
24312 characters at once. Store the result of encoding in
24313 terminal_encode_buffer.
24314 (write_glyphs, insert_glyphs): Adjust for the change of
24315 encode_terminal_code.
24316 (term_init): Initialize terminal_encode_buffer and
24317 terminal_encode_buf_size.
24318
24319 * coding.c (consume_chars): If coding->src_object is nil, don't
24320 check annotation.
24321
243222008-02-01 Kenichi Handa <handa@m17n.org>
24323
24324 * character.c (char_string): Use ASCII_CHAR_P instead of
24325 SINGLE_BYTE_CHAR_P.
24326
243272008-02-01 Kenichi Handa <handa@m17n.org>
24328
24329 * xdisp.c (handle_auto_composed_prop): Check if the last
24330 characters of auto-composed region is newly composed with the
24331 following characters.
24332 (handle_composition_prop): Fix checking of point being inside
24333 composition.
24334
243352008-02-01 Kenichi Handa <handa@m17n.org>
24336
24337 * fns.c (concat): Don't change multibyteness of the result by
24338 concatenating an 8-bit character.
24339
24340 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
24341 multibyteness of the result when newelt is an 8-bit character.
24342
243432008-02-01 Dave Love <fx@gnu.org>
24344
24345 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
24346 EMACS_INT.
24347
24348 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
24349
24350 * xfaces.c (face_numeric_value): Declare dim size_t.
24351 (Finternal_lisp_face_equal_p): Remove unused f.
24352
24353 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
24354 (MATRIX_ROW): Remove unused vars.
24355 (draw_glyphs, x_insert_glyphs, fast_find_position)
24356 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
24357 byte/char counts.
24358
24359 * regex.c (regex_compile): Remove unused var.
24360
24361 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
24362
24363 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
24364 (Faccessible_keymaps, where_is_internal): Remove unused vars.
24365
24366 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
24367
24368 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
24369
24370 * fileio.c (Fwrite_region): Remove unused var.
24371
24372 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
24373 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
24374
24375 * composite.c (Fremove_list_of_text_properties): Declare.
24376
24377 * coding.c (inhibit_pre_post_conversion): Remove (unused).
24378 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
24379 (coding_inherit_eol_type): Remove unused attrs.
24380 (detect_coding): Cast arg of detect_eol.
24381
24382 * charset.c (syms_of_charset): Remove unused var p.
24383 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
24384 byte/char counts.
24385
24386 * casetab.c (set_case_table): Remove unused var.
24387
bba3e508
SM
24388 * window.c (Fdisplay_buffer, Fframe_selected_window):
24389 Remove unused vars.
aac0c6e3
MR
24390
243912008-02-01 Dave Love <fx@gnu.org>
24392
24393 * xterm.c (x_bitmap_mask): Declare.
24394
243952008-02-01 Dave Love <fx@gnu.org>
24396
24397 * xterm.c (x_term_init): Fix type error.
24398
24399 * lisp.h: Add Funibyte_char_to_multibyte.
24400
24401 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
24402 (Fset_coding_system_priority): Doc fix.
24403
24404 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
24405
24406 * indent.c (check_composition): Make start and end EMACS_INT.
24407
24408 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
24409
24410 * xdisp.c (handle_composition_prop, check_point_in_composition):
24411 Make buffer positions EMACS_INT.
24412
24413 * composite.c (find_composition, run_composition_function)
24414 (update_compositions, Ffind_composition_internal): Make buffer
24415 positions EMACS_INT.
24416
bba3e508
SM
24417 * composite.h (find_composition, update_compositions):
24418 Make position args EMACS_INT.
aac0c6e3
MR
24419
24420 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
24421
24422 * intervals.c (get_property_and_range):
24423 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
24424
24425 * unexalpha.c: Don't include varargs.h.
24426
244272008-02-01 Dave Love <fx@gnu.org>
24428
24429 * coding.h (ENCODE_UTF_8): New.
24430
24431 * Makefile.in (gtkutil.o): Depend on coding.h.
24432
24433 * coding.c (Fset_coding_system_priority): Doc fix.
24434
244352008-02-01 Kenichi Handa <handa@m17n.org>
24436
24437 * fileio.c (Finsert_file_contents): Call setup_coding_system in
24438 the case of auto saving.
24439
244402008-02-01 Andreas Schwab <schwab@suse.de>
24441
bba3e508
SM
24442 * chartab.c (map_char_table, map_char_table_for_charset):
24443 Protect `range' from GC.
aac0c6e3
MR
24444
244452008-02-01 Kenichi Handa <handa@m17n.org>
24446
24447 * coding.c (decode_coding_sjis): Check bytes more rigidly.
24448
244492008-02-01 Kenichi Handa <handa@m17n.org>
24450
24451 * fileio.c (choose_write_coding_system): Return a decided coding system.
24452 (Fwrite_region): Set Vlast_coding_system_used to the return value
24453 of choose_write_coding_system.
24454
244552008-02-01 Kenichi Handa <handa@m17n.org>
24456
24457 * charset.c (Fset_charset_priority): Pay attention to duplicated
24458 arguments.
24459
24460 * coding.c (QCcategory): New variable.
24461 (syms_of_coding): Defsym it. Set all elements of
24462 Vcoding_category_table and their symbol values.
24463 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
24464 coding-category-XXX, and coding-category-list.
24465 (Fdefine_coding_system_internal): Add category in the plist.
24466
244672008-02-01 Kenichi Handa <handa@m17n.org>
24468
24469 * callproc.c (Fcall_process): Handle carryover correctly.
24470
24471 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
24472 (raw_text_coding_system): Check NILP (coding_system).
24473 (coding_inherit_eol_type): Check NILP (coding_system) and
24474 NILP (parent).
24475 (consume_chars): Fix for the case of raw-text.
24476
24477 * process.c (read_process_output): Handle carryover correctly.
24478
244792008-02-01 Dave Love <fx@gnu.org>
24480
24481 * regex.c (re_search_2): Fix last change.
24482
244832008-02-01 Kenichi Handa <handa@m17n.org>
24484
24485 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
24486 target_multibyte. Even in a unibyte case, return a converted
24487 multibyte char.
24488 (GET_CHAR_AFTER): New macro.
24489 (PATFETCH): Translate via multibyte char.
24490 (HANDLE_UNIBYTE_RANGE): Delete this macro.
24491 (SETUP_MULTIBYTE_RANGE): New macro.
24492 (regex_compile): Setup compiled code so that its multibyteness
24493 matches that of a target. Fix the handling of "[X-YZ]" using
24494 SETUP_MULTIBYTE_RANGE.
24495 (analyse_first) <charset>: For filling fastmap for all multibyte
24496 characters, don't check by BASE_LEADING_CODE_P.
24497 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
24498 the same as RE_MULTIBYTE_P (bufp) now.
24499 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
24500 (TARGET_CHAR_AND_LENGTH): Delete this macro.
24501 (TRANSLATE_VIA_MULTIBYTE): New macro.
24502 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
24503 It is the same as RE_MULTIBYTE_P (bufp) now.
24504 <exactn>: Translate via multibyte.
bba3e508
SM
24505 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH.
24506 Don't translate it.
aac0c6e3
MR
24507 <charset, charset_not>: Fetch a character by
24508 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
24509 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
24510 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
24511 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
24512 by GET_CHAR_AFTER.
24513 (bcmp_translate): Likewise.
24514
24515 * search.c (compile_pattern): Check the member target_multibyte,
24516 not the member multibyte of buf.
24517
24518 * lread.c (read1): While reading a string, set force_singlebyte
24519 and force_multibyte correctly.
24520
24521 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
24522 up of unibyte_to_multibyte_table.
24523
245242008-02-01 Kenichi Handa <handa@m17n.org>
24525
24526 * coding.c (setup_coding_system): If coding has
24527 post-read-conversion or pre-write-conversion, set
24528 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
24529 respectively.
24530 (decode_coding_gap): Run post-read-conversion if any.
24531
24532 * fileio.c (Finsert_file_contents): Even if we read into a
24533 unibyte buffer, check if we must decode the result or not.
24534
245352008-02-01 Kenichi Handa <handa@m17n.org>
24536
24537 * coding.c (make_conversion_work_buffer): Change the work buffer
24538 name to the same one as that of Emacs 21.
24539
245402008-02-01 Kenichi Handa <handa@m17n.org>
24541
24542 * coding.h (make_conversion_work_buffer): Adjust prototype.
24543 (code_conversion_restore): Don't extern it.
24544
24545 * coding.c (detected_mask): Delete unused variable.
24546 (decode_coding_iso_2022): Pay attention to the byte sequence of
24547 CTEXT extended segment, and retain those bytes as is.
24548 (decode_coding_ccl): Delete unused variable `valids'.
24549 (setup_coding_system): Delete unused variable `category'.
24550 (consume_chars): Delete unused variable `category'. Make it work
24551 for non-multibyte case.
24552 (make_conversion_work_buffer): Change argument.
24553 (saved_coding): Delete unused variable.
24554 (code_conversion_restore): Don't check saved_coding->destination.
24555 (code_conversion_save): New function.
24556 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
24557 instead of record_unwind_protect.
24558 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
24559 (detect_coding_system): Delete unused variable `mask'.
24560 (Fdefine_coding_system_internal): Delete unused variable id.
24561
24562 * fileio.c (kill_workbuf_unwind): New function.
24563 (Finsert_file_contents): On replacing, call
24564 make_conversion_work_buffer with correct args, and call
24565 record_unwind_protect with the first arg kill_workbuf_unwind.
24566
24567 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
24568
245692008-02-01 Kenichi Handa <handa@m17n.org>
24570
24571 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
24572 (fontset_add): Fix for the case that TO is less than TO1.
24573 (Ffontset_info): Don't use fallback fontset on checking the
24574 default fontset.
24575 (dump_fontset): New function for debugging.
24576
24577 * coding.c (Fdefine_coding_system_internal): Fix for the case that
24578 coding_type is Qcharset.
24579
245802008-02-01 Kenichi Handa <handa@m17n.org>
24581
24582 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
24583 (map_char_table): Don't inherit the value from the parent on
24584 initializing VAL. Adjust for the above change.
24585
245862008-02-01 Kenichi Handa <handa@m17n.org>
24587
24588 * coding.c (Qsignature, Qendian): Delete these variables.
24589 (syms_of_coding): Don't initialize them.
24590 (CATEGORY_MASK_UTF_16_AUTO): New macro.
24591 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
24592 detect_info->found.
24593 (decode_coding_utf_16): Don't detect BOM here.
24594 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
24595 is NOT utf_16_without_bom.
24596 (setup_coding_system): For a coding system of type utf-16, check
24597 if the attribute :endian is Qbig or not (not nil or not), and set
24598 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
24599 (detect_coding): If coding type is utf-16 and BOM detection is
24600 required, detect it.
24601 (Fdefine_coding_system_internal): For a coding system of type
24602 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
24603
246042008-02-01 Kenichi Handa <handa@m17n.org>
24605
24606 * coding.c (coding_set_source): Fix for the case that the current
24607 buffer is different from coding->src_object.
24608 (decode_coding_object): Don't use the conversion work buffer if
24609 DST_OBJECT is a buffer.
24610
246112008-02-01 Dave Love <fx@gnu.org>
24612
24613 * lread.c (read_emacs_mule_char) [len==2]: Index
24614 emacs_mule_charset correctly.
24615
246162008-02-01 Dave Love <fx@gnu.org>
24617
24618 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
24619 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
24620 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
24621 treated specially.)
24622 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
24623 (detected_mask): Remove Big5 bits.
24624
246252008-02-01 Kenichi Handa <handa@m17n.org>
24626
24627 The following changes are to make the font rescaling facility
24628 compatible with Emacs 21.
24629
24630 * xfaces.c (Vface_font_rescale_alist): Rename from
24631 Vface_resizing_fonts.
24632 (struct font_name): Rename member resizing_ratio to rescale_ratio.
24633 (font_rescale_ratio): Rename from font_resizing_ratio.
24634 (split_font_name): Set font->rescale_ratio.
24635 (better_font_p): Pay attention to font->rescale_ratio.
24636 (build_scalable_font_name): Likewise. Change RESX, and RESY
24637 fields.
24638 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
24639
246402008-02-01 Kenichi Handa <handa@m17n.org>
24641
24642 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
24643 (Qutf_16_le): Remove these variables.
24644 (syms_of_coding): Don't DEFSYM them.
24645 (decode_coding_utf_16): Fix handling of BOM.
24646 (encode_coding_utf_16): Fix handling of BOM.
24647
246482008-02-01 Kenichi Handa <handa@m17n.org>
24649
24650 * fileio.c (Finsert_file_contents): On replacing, before decoding
24651 the file into the work buffer, set point of the work buffer to the end.
24652
246532008-02-01 Dave Love <fx@gnu.org>
24654
24655 * coding.c (Fcheck_coding_systems_region): Fix type errors.
24656
246572008-02-01 Dave Love <fx@gnu.org>
24658
24659 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
24660 and fix C types.
24661
246622008-02-01 Kenichi Handa <handa@m17n.org>
24663
24664 * xdisp.c (SKIP_GLYPHS): New macro.
24665 (set_cursor_from_row): Pay attention to string display properties.
24666
24667 * category.c (copy_category_entry): Fix for the case that RANGE
24668 is an integer.
24669
24670 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
24671
24672 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
24673
246742008-02-01 Kenichi Handa <handa@m17n.org>
24675
24676 * charset.c (Fcharset_id_internal): New function.
24677 (syms_of_charset): Defsubr it.
24678
24679 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
24680 with the last arg charset_list acquired from coding.
24681 (Fdefine_coding_system_internal): For ccl-based coding system, fix
24682 the attribute coding_attr_ccl_valids.
24683
24684 * coding.h (enum define_coding_ccl_arg_index): Set the first
24685 member coding_arg_ccl_decoder to coding_arg_max.
24686
24687 * ccl.h (ccl_driver): Adjust prototype.
24688
24689 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
24690 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 24691 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
24692 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
24693 last arg Qnil.
24694
246952008-02-01 Kenichi Handa <handa@m17n.org>
24696
24697 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
24698 call encode_char.
24699
24700 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
24701
247022008-02-01 Dave Love <fx@gnu.org>
24703
24704 * composite.c (syms_of_composite): Make composition_hash_table weak.
24705
247062008-02-01 Kenichi Handa <handa@m17n.org>
24707
24708 * dispextern.h (check_face_attributes, generate_ascii_font_name)
24709 (font_name_registry): Don't extern them.
24710 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
24711
24712 * fontset.h (Qfontset): Don't extern it.
24713 (new_fontset_from_font_name): Extern it.
24714
24715 * fontset.c: Give 8 extra slots to fontset objects.
24716 (Qfontset_info): New variable.
24717 (syms_of_fontset): Defsym it.
24718 (FONTSET_FALLBACK): New macro.
24719 (fontset_face): Try also the default fontset.
24720 (make_fontset): Realize a fallback fontset from the default fontset.
24721 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
24722 using split_font_name_into_vector and build_font_name_from_vector.
24723 (Fset_fontset_font): Access the elements of font_spec by enum
24724 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
24725 name by using split_font_name_into_vector.
24726 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
bba3e508
SM
24727 generate a proper font name from the fontset name.
24728 Update Vfontset_alias_alist.
aac0c6e3
MR
24729 (n_auto_fontsets): New variable.
24730 (new_fontset_from_font_name): New function.
24731 (Ffont_info): Store the information about fonts generated from the
24732 default fontset in the first extra slot of the returned char-table.
24733
24734 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
24735 (font_name_registry): Delete function.
24736 (split_font_name_into_vector): New function.
24737 (build_font_name_from_vector): New function.
24738 (font_list): The argument REGISTRY is now a list of registry names.
24739 (choose_face_font): If we are choosing an ASCII font, and ATTRS
24740 specifies an explicit font name, return the name as is. Make a
24741 list of registy names.
24742
24743 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
24744 of x_new_fontset.
24745 (Fx_create_frame): Don't call x_new_fontset here. Just use
24746 x_list_fonts to check the existence of fonts.
24747
24748 * xterm.h (x_new_fontset): Adjust prototype.
24749
24750 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
24751 string. Use new_fontset_from_font_name to create a fontset from a
24752 font name.
24753
247542008-02-01 Kenichi Handa <handa@m17n.org>
24755
24756 * syntax.c (Vfind_word_boundary_function_table): New name for
24757 Vnext_word_boundary_function_table.
24758 (find-word-boundary-function-table): New name for
24759 next-word-boundary-function-table.
24760
247612008-02-01 Dave Love <fx@gnu.org>
24762
24763 * Makefile.in: Fix some dependencies.
24764
24765 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
24766 set it to nil before returning.
24767
24768 * composite.c (update_compositions): Fix type error.
24769
24770 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
24771
247722008-02-01 Kenichi Handa <handa@m17n.org>
24773
24774 * xterm.c (x_new_font): Optimize for the case that the font is
24775 already set for the frame.
24776
247772008-02-01 Kenichi Handa <handa@m17n.org>
24778
24779 * chartab.c (char_table_ascii): Check if the char table contents
24780 is sub-char-table or not.
24781 (char_table_set, char_table_set_range): Fix argument to
24782 char_table_ascii.
24783
24784 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
24785 (detect_coding_utf_8, detect_coding_utf_16)
24786 (detect_coding_emacs_mule, detect_coding_iso_2022)
24787 (detect_coding_sjis, detect_coding_big5)
24788 (detect_coding_ccl, detect_coding_charset): Change argument MASK
24789 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
24790 sequence is valid in this coding system. Change callers.
24791 (MAX_ANNOTATION_LENGTH): New macro.
24792 (ADD_ANNOTATION_DATA): New macro.
bba3e508
SM
24793 (ADD_COMPOSITION_DATA): Change argument. Change callers.
24794 Call ADD_ANNOTATION_DATA. Change the format of annotation data.
aac0c6e3
MR
24795 (ADD_CHARSET_DATA): New macro.
24796 (emacs_mule_char): New argument ID. Change callers.
24797 (decode_coding_emacs_mule, decode_coding_iso_2022)
24798 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
24799 Produce charset annotation data in coding->charbuf.
24800 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
24801 to charset annotation data in coding->charbuf.
24802 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
24803 coding->common_flags if the coding system is iso-2022 based and
24804 uses designation.
24805 (produce_composition): Adjust for the new annotation data format.
24806 (produce_charset): New function.
24807 (produce_annotation): Handle charset annotation.
bba3e508
SM
24808 (handle_composition_annotation, handle_charset_annotation):
24809 New functions.
aac0c6e3
MR
24810 (consume_chars): Handle charset annotation. Utilize the above two
24811 functions.
24812 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
24813 buffer, get the deleted text as a string and set
24814 coding->src_object to that string.
24815 (detect_coding, detect_coding_system): Use the new struct
24816 coding_detection_info.
24817
24818 * coding.h (struct coding_detection_info): New structure.
24819 (struct coding_system): Adjust prototype of the member `detector'.
24820 (CODING_ANNOTATE_CHARSET_MASK): New macro.
24821
248222008-02-01 Kenichi Handa <handa@m17n.org>
24823
24824 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
24825
248262008-02-01 Dave Love <fx@gnu.org>
24827
24828 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
24829 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
24830 to new local and nullify apropos_accumulate before returning.
24831 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
24832
248332008-02-01 Kenichi Handa <handa@m17n.org>
24834
24835 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
24836 correctly.
e3eea1fc 24837
aac0c6e3
MR
248382008-02-01 Dave Love <fx@gnu.org>
24839
24840 * fns.c (Flanginfo): Call synchronize_system_time_locale.
24841
248422008-02-01 Kenichi Handa <handa@m17n.org>
24843
24844 The following changes are to make character composition happen
24845 automatically on displaying.
24846
24847 * Makefile.in (lisp, shortlisp): Add composite.elc.
24848
24849 * composite.h (Qauto_composed, Vauto_composition_function)
24850 (Qauto_composition_function): Extern them.
24851
24852 * composite.c (Vcomposition_function_table)
24853 (Qcomposition_function_table): Delete variables.
24854 (Qauto_composed, Vauto_composition_function)
24855 (Qauto_composition_function): New variables.
24856 (run_composition_function): Don't call
24857 compose-chars-after-function.
24858 (update_compositions): Clear `auto-composed' text property.
24859 (compose_chars_in_text): Delete this function.
24860 (syms_of_composite): Staticpro Qauto_composed and
24861 Qauto_composition_function. Declare Vauto_composition_function as
24862 a Lisp variable.
24863
24864 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
24865
24866 * xdisp.c (it_props): Add an entry for Qauto_composed.
24867 (handle_auto_composed_prop): New function.
24868
24869 * xselect.c (selection_data_to_lisp_data): Don't call
24870 compose_chars_in_text.
24871
248722008-02-01 Dave Love <fx@gnu.org>
24873
24874 * keyboard.c (read_char): Modify checking around use of
24875 Vkeyboard_translate_table.
24876
24877 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
24878 and fix C types.
24879
248802008-02-01 Kenichi Handa <handa@m17n.org>
24881
24882 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
24883 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
24884 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
24885 the case that the last byte is '\r' correctly.
24886 (decode_coding): Flush out the unprocessed data correctly.
24887 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
24888
248892008-02-01 Dave Love <fx@gnu.org>
24890
24891 * xterm.c (XTread_socket): Fix changes for defined keysyms.
24892 Add XK_ISO... case.
24893 (xaw_scroll_callback): Revert last change.
24894
248952008-02-01 Kenichi Handa <handa@m17n.org>
24896
24897 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
24898
248992008-02-01 Kenichi Handa <handa@m17n.org>
24900
24901 * xfaces.c (Vface_resizing_fonts): New variable.
24902 (struct font_name): New member `resizing_ratio'.
24903 (font_resizing_ratio): New function.
24904 (split_font_name): Set font->resizing_ratio.
24905 (better_font_p): Pay attention to font->resizing_ratio.
24906 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
24907 RESX, and RESY fields.
24908 (try_alternative_families): Try scalable fonts if
24909 Vscalable_fonts_allowed is not Qt.
24910 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
24911
249122008-02-01 Dave Love <fx@gnu.org>
24913
24914 * xterm.c (xaw_scroll_callback): Cast correctly.
24915
249162008-02-01 Dave Love <fx@gnu.org>
24917
24918 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
24919 (lispy_kana_keys): Comment out.
24920 (make_lispy_event) [XK_kana_A]: Comment out.
24921
24922 * xterm.c (xaw_scroll_callback): Cast call_data.
24923 (XTread_socket): Deal with ASCII keysyms.
24924 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
24925
249262008-02-01 Dave Love <fx@gnu.org>
24927
24928 * xterm.c (Vx_keysym_table): New.
24929 (syms_of_xterm): Initialize it.
24930 (XTread_socket): Use it.
24931 From head: Eliminate incorrect optimization that tried to avoid
24932 decoding the output of X*LookupString.
24933 (x_get_font_repertory): Delete charset declaration.
24934
249352008-02-01 Kenichi Handa <handa@m17n.org>
24936
24937 * coding.c (detect_coding_charset): If only ASCII bytes are found,
24938 return 0.
bba3e508
SM
24939 (Fdefine_coding_system_internal):
24940 Setup CODING_ATTR_ASCII_COMPAT (attrs) correctly.
aac0c6e3
MR
24941
249422008-02-01 Dave Love <fx@gnu.org>
24943
24944 * coding.c (Fcheck_coding_system): Doc fix.
24945
24946 * editfns.c (Finsert_byte): Return a proper value.
24947
249482008-02-01 Kenichi Handa <handa@m17n.org>
24949
bba3e508
SM
24950 * coding.c (decode_coding): Fix args to translate_chars.
24951 Pay attention to Vstandard_translation_table_for_decode.
aac0c6e3
MR
24952 (encode_coding): Fix args to translate_chars. Pay attention to
24953 Vstandard_translation_table_for_encode.
24954
24955 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
24956 SINGLE_BYTE_CHAR_P.
24957
24958 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
24959 not by SINGLE_BYTE_CHAR_P.
24960
24961 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
24962 SINGLE_BYTE_CHAR_P.
24963
24964 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
24965 SINGLE_BYTE_CHAR_P.
24966
24967 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
24968 by SINGLE_BYTE_CHAR_P.
24969
24970 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
24971 SINGLE_BYTE_CHAR_P.
24972
249732008-02-01 Dave Love <fx@gnu.org>
24974
24975 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
24976
249772008-02-01 Dave Love <fx@gnu.org>
24978
24979 * fns.c (Flanginfo): Fix typo.
24980
24981 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
24982
249832008-02-01 Kenichi Handa <handa@m17n.org>
24984
24985 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
24986 (detect_coding_emacs_mule, detect_coding_iso_2022)
24987 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
24988 incomplete byte sequence. Don't update *mask when correctly detected.
24989 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
24990 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
24991 (detect_coding, detect_coding_system): Adjust for the changes above.
24992
249932008-02-01 Kenichi Handa <handa@m17n.org>
24994
24995 * character.c (char_string): Rename from
24996 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
24997 (string_char): Rename from string_char.
24998
24999 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
25000 if C is greater than MAX_3_BYTE_CHAR.
bba3e508
SM
25001 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE):
25002 Call string_char instead of string_char_with_unification.
aac0c6e3
MR
25003
250042008-02-01 Dave Love <fx@gnu.org>
25005
25006 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
25007
250082008-02-01 Kenichi Handa <handa@m17n.org>
25009
25010 * keymap.c (push_key_description): Pay attention to force_multibyte.
25011
25012 * regex.c (re_search_2): Fix for the case of unibyte buffer.
25013
250142008-02-01 Dave Love <fx@gnu.org>
25015
25016 * charset.c (define_charset_internal): Rename `supprementary'.
25017
25018 * Makefile.in (lisp, shortlisp): Remove latin-N.
25019
250202008-02-01 Dave Love <fx@gnu.org>
25021
25022 * xfns.c (x_window, x_window): Use use_xim.
25023
25024 * xterm.c (use_xim): Initialize.
25025 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
25026 (x_term_init): Maybe set use_xim.
25027
25028 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
25029
250302008-02-01 Kenichi Handa <handa@m17n.org>
25031
25032 * search.c (search_buffer): Fix case-fold-search of multibyte
25033 characters.
25034 (boyer_moore): Rename the last argument to char_high_bits.
25035
250362008-02-01 Kenichi Handa <handa@m17n.org>
25037
25038 * xdisp.c (display_string): Fix for the case of zero width glyph.
25039
25040 * xfns.c (x_set_font): Change the error message of the case that
25041 x_new_fontset returns Qt.
25042
25043 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
25044 (Finternal_set_lisp_face_attribute): Use signal_error for the
25045 error of invalid fontset.
25046
25047 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
25048 fontset, return Qt.
25049
250502008-02-01 Dave Love <fx@gnu.org>
25051
25052 * unexelf.c (unexec): Make .got handling not SGI-specific.
25053
25054 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
25055
25056 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
25057
25058 * keyboard.c (read_key_sequence): Fix type error.
25059
bba3e508
SM
25060 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte):
25061 Fix type error.
aac0c6e3
MR
25062
25063 * fontset.c (fontset_add): Return Lisp_Object.
25064
250652008-02-01 Dave Love <fx@gnu.org>
25066
25067 * charset.h (charset_ordered_list_tick): Declare extern.
25068
250692008-02-01 Kenichi Handa <handa@m17n.org>
25070
25071 The following changes (and some of 2008-02-01 changes of mine) are
25072 for handling syntax, category, and case conversion for unibyte
25073 characters by converting them to multibyte on the fly. With these
25074 changes, we don't have to setup syntax and case tables for unibyte
25075 characters in each language environment.
25076
25077 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
25078 multibyte if necessary.
25079
25080 * bytecode.c (Fbyte_code): Likewise.
25081
25082 * character.h (LEADING_CODE_LATIN_1_MIN)
25083 (LEADING_CODE_LATIN_1_MAX): New macros.
25084 (unibyte_to_multibyte_table): Extern it.
25085 (unibyte_char_to_multibyte): New macro.
25086 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
25087 (CHAR_LEADING_CODE): New macro.
25088 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
25089
25090 * character.c (unibyte_to_multibyte_table): New variable.
25091 (unibyte_char_to_multibyte): Move to character.h and define as macro.
25092 (multibyte_char_to_unibyte): If C is an eight-bit character,
25093 convert it to the corresponding byte value.
25094
25095 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
25096 not 1, signals an error. Update the elements of
25097 unibyte_to_multibyte_table.
25098 (init_charset_once): Initialize unibyte_to_multibyte_table.
25099 (syms_of_charset): Define the charset `iso-8859-1'.
25100
25101 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
25102 as is without converting it to unibyte. In a unibyte buffer,
25103 convert C to multibyte before checking the syntax.
25104
25105 * lisp.h (unibyte_char_to_multibyte): Delete extern.
25106
25107 * minibuf.c (Fminibuffer_complete_word): Use the macro
25108 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
25109
25110 * regex.h (struct re_pattern_buffer): New member target_multibyte.
25111
25112 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
bba3e508
SM
25113 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte.
25114 If that is zero, convert an eight-bit char to multibyte.
aac0c6e3
MR
25115 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
25116 non-emacs case.
25117 (PATFETCH): Convert an eight-bit char to multibyte.
25118 (HANDLE_UNIBYTE_RANGE): New macro.
25119 (regex_compile): Setup the compiled pattern for multibyte chars
25120 even if the given regex string is unibyte. Use PATFETCH_RAW
25121 instead of PATFETCH in many places. To handle `charset'
25122 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
25123 only for ASCII chars.
25124 (analyse_first) <exactn>: Simplify because the compiled pattern
25125 is multibyte.
25126 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
25127 <charset>: Use CHAR_LEADING_CODE to get leading codes.
25128 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
25129 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
25130 multibyte always 1.
25131 (re_search_2): In emacs, set the locale variable multibyte to 1,
25132 otherwise to 0. New local variable target_multibyte. Check it
bba3e508
SM
25133 to decide the multibyteness of STR1 and STR2.
25134 If target_multibyte is zero, convert unibyte chars to multibyte
aac0c6e3
MR
25135 before translating and checking fastmap.
25136 (TARGET_CHAR_AND_LENGTH): New macro.
25137 (re_match_2_internal): In emacs, set the locale variable multibyte
bba3e508
SM
25138 to 1, otherwise to 0. New local variable target_multibyte.
25139 Check it to decide the multibyteness of STR1 and STR2.
25140 Use TARGET_CHAR_AND_LENGTH to fetch a character from D.
aac0c6e3
MR
25141 <charset, charset_not>: If multibyte is nonzero, check fastmap
25142 only for ASCII chars. Call bcmp_translate with
25143 target_multibyte, not with multibyte.
25144 <begline>: Declare the local variable C as `unsigned'.
25145 (bcmp_translate): Change the last arg name to target_multibyte.
25146
25147 * search.c (compile_pattern_1): Don't adjust the multibyteness of
25148 the regexp pattern and the matching target. Set cp->buf.multibyte
25149 to the multibyteness of the regexp pattern. Set
25150 cp->but.target_multibyte to the multibyteness of the matching target.
25151 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
25152 FETCH_STRING_CHAR_ADVANCE.
25153 (Freplace_match): Convert unibyte chars to multibyte.
25154
25155 * syntax.c (char_quoted, back_comment, scan_words)
25156 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
25157 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
25158 unibyte chars to multibyte.
25159 (skip_chars): Delete the arg syntaxp, and move the code for
25160 handling syntaxes to skip_syntaxes. Change callers.
25161 Fix the case that the multibyteness of STRING and the current
25162 buffer doesn't match.
25163 (skip_syntaxes): New function.
25164 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
25165 SINGLE_BYTE_CHAR_P.
25166
251672008-02-01 Kenichi Handa <handa@m17n.org>
25168
25169 * xfaces.c (QCfontset): New variable.
25170 (LFACE_FONTSET): New macro.
25171 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
25172 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
25173 (Finternal_set_lisp_face_attribute)
25174 (Finternal_get_lisp_face_attribute): Handle QCfontset.
25175 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
25176 check also LFACE_FONTSET_INDEX.
25177 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
25178 attrs[LFACE_FONT_INDEX].
25179 (syms_of_xfaces): Intern and staticpro QCfontset.
25180
25181 * dispextern.h (enum lface_attribute_index): New member
25182 LFACE_FONTSET_INDEX.
25183
25184 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
25185
251862008-02-01 Kenichi Handa <handa@m17n.org>
25187
25188 * coding.c (coding_set_destination): Fix coding->destination for
25189 the case converting a region.
25190 (encode_coding_utf_8): Encode eight-bit chars as single byte.
25191 (encode_coding_object): Fix coding->dst_pos and
25192 coding->dst_pos_byte for the case converting a region.
25193
25194 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
25195
25196 * character.h (BYTE8_STRING): New macro.
25197
25198 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
25199
252002008-02-01 Kenichi Handa <handa@m17n.org>
25201
25202 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
25203 characters by octal form.
25204
25205 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
25206
25207 * buffer.h (_fetch_multibyte_char_len): Delete extern.
25208 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
25209 _fetch_multibyte_char_len.
25210 (FETCH_CHAR_AS_MULTIBYTE): New macro.
25211
25212 * casetab.c (set_canon, set_identity, shuffle): Simplify.
25213
25214 * casefiddle.c (casify_object): Simplify. Handle the case that
25215 the case conversion change the byte length.
25216 (casify_region): Likewise.
25217
25218 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
25219
25220 * character.c (_fetch_multibyte_char_len): Delete this variable.
25221 (syms_of_character): Setup Vprintable_chars.
25222
25223 * editfns.c (Fchar_equal): Fix for the unibyte case.
25224 (Finsert_byte): New function.
25225 (syms_of_editfns): Defsubr it.
25226
25227 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
25228 of direct code 0x3ffff.
25229
25230 * search.c (Freplace_match): Fix for the unibyte case.
25231
252322008-02-01 Kenichi Handa <handa@m17n.org>
25233
25234 * lread.c (safe_to_load_p): Fix the logic.
25235
25236 * syntax.c (scan_words): Don't treat characters belonging to
25237 different scripts as constituting a word.
25238
25239 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
25240
25241 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
25242
25243 * emacs.c (main): In the case of --unibyte, instead of aborting on
25244 finding non-empty buffer, make it unibyte.
25245
252462008-02-01 Kenichi Handa <handa@m17n.org>
25247
25248 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
25249 to create a fontset.
25250
252512008-02-01 Dave Love <fx@gnu.org>
25252
25253 * character.c (Funibyte_char_to_multibyte): Doc fix.
25254
25255 * xfns.c [HAVE_STDLIB_H]: Fix last change.
25256
252572008-02-01 Kenichi Handa <handa@m17n.org>
25258
25259 * fontset.c (fontset_add): Make the type `int'.
25260 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
25261
25262 * character.c (unibyte_char_to_multibyte)
25263 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
25264 charset_unibyte, not charset_primary.
25265
25266 * charset.h (charset_unibyte): Extern it instead of charset_primary.
25267
25268 * charset.c (charset_unibyte): Rename from charset_primary.
25269 (Funibyte_charset): Rename from Fprimary_charset.
25270 (Fset_unibyte_charset): Rename from Fset_primary_charset.
25271 (syms_of_charset): Adjust for the above changes.
25272
25273 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
25274 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
25275 it->multibyte_p is zero.
25276
25277 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
25278 Delete extern.
25279
252802008-02-01 Kenichi Handa <handa@m17n.org>
25281
25282 * coding.c (Fdefine_coding_system_internal): Fix category setting
25283 for a coding system of type iso-2022.
25284
252852008-02-01 Kenichi Handa <handa@m17n.org>
25286
25287 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
25288
252892008-02-01 Kenichi Handa <handa@m17n.org>
25290
25291 * syntax.c (Vnext_word_boundary_function_table): New variable.
25292 (next-word-boundary-function-table): Declare it as a Lisp variable
25293 in syms_of_syntax.
25294 (scan_words): Call functions in Vnext_word_boundary_function_table
25295 if any.
25296
25297 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
25298
25299 * fontset.c (fs_load_font): If fontp->charset is not negative,
25300 return fontp without setting its members.
25301
253022008-02-01 Dave Love <fx@gnu.org>
25303
25304 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
25305
25306 * m/sparc.h (HAVE_ALLOCA): Delete.
25307
25308 * s/irix6-5.h: Don't include strings.h.
25309 (bcopy, bzero, bcmp): Don't undef.
25310
25311 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
25312
25313 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
25314 (TIOCSIGSEND): Don't test IRIX6.
25315 (bcopy, bzero, bcmp): Define conditionally.
25316
253172008-02-01 Kenichi Handa <handa@m17n.org>
25318
25319 * buffer.c (Qas, Qmake, Qto): New variables.
25320 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
25321 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
25322
25323 * callproc.c (Fcall_process): Don't call insert_1_both directly if
25324 we are inserting a process output into a multibyte buffer.
25325
25326 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
25327 multibyte_char_to_unibyte.
25328
25329 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
25330 by the primary charset, make it eight-bit char.
25331 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
25332
25333 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
25334 (charset_8_bit__control, charset_8_bit_graphic)
25335 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
25336 (define_charset_internal): New function.
25337 (syms_of_charset): Call define_charset_internal for pre-defined
25338 charsets.
25339
25340 * charset.h (charset_8_bit): Extern it.
25341
25342 * coding.c (make_conversion_work_buffer): Adjust for the change
25343 of Fset_buffer_multibyte.
25344 (encode_coding_raw_text): Increment p0 in the loop.
25345
25346 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
25347
bba3e508
SM
25348 * xdisp.c (setup_echo_area_for_printing, set_message_1):
25349 Adjust for the change of Fset_buffer_multibyte.
aac0c6e3
MR
25350
25351 * fns.c (Fstring_to_multibyte): New function.
25352 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
25353
253542008-02-01 Dave Love <fx@gnu.org>
25355
25356 * xfns.c (x_put_x_image): Declare args.
25357
25358 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
25359 (try_font_list): Declare an arg.
25360
25361 * xdisp.c (message2_nolog, set_message): Declare an arg.
25362
25363 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
25364
25365 * syntax.c (scan_sexps_forward): Declare an arg.
25366
25367 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
25368 Declare an arg.
25369
25370 * lisp.h (Fnew_fontset): Declare.
25371
25372 * keymap.c (push_key_description): Call CHARACTERP correctly.
25373
25374 * fontset.c (fontset_add): Declare args. Call make_number correctly.
25375 (face_for_char): Delete unused vars.
25376 (Fset_fontset_font): Doc fix. Delete unused vars.
25377
25378 * doc.c (Fsubstitute_command_keys): Delete unused vars.
25379
25380 * composite.c (update_compositions): Declare arg.
25381
25382 * cm.c (calccost, cmgoto): Declare args.
25383
25384 * charset.c: Remove `emacs' conditional. Doc fixes.
25385 (map_char_table_for_charset): Declare.
25386
25387 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
25388
25389 * ccl.c: Remove `emacs' conditional.
25390
253912008-02-01 Kenichi Handa <handa@m17n.org>
25392
25393 The following changes are to allow specifying multiple font
25394 patterns for a character range (specified by script or charset).
25395
25396 * Makefile.in (abbrev.o): Depend on syntax.h.
25397 (xfaces.o): Depend on charset.h.
25398
25399 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
25400 SINGLE_BYTE_CHAR_P.
25401
25402 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
25403
25404 * character.h (Vchar_script_table): Extern it.
25405
25406 * character.c (Vscript_alist): Delete.
25407 (Vchar_script_table, Qchar_script_table): New variable.
25408 (syms_of_character): Declare Vchar_script_table as a lisp variable
25409 and initialize it.
25410
25411 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
25412 have property char-table-extra-slots, make no extra slot.
25413
25414 * dispextern.h (struct face): Delete member `charset'.
25415 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
25416 SINGLE_BYTE_CHAR_P.
25417 (choose_face_font, lookup_non_ascii_face, font_name_registry):
25418 Add prototypes.
25419 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
25420 (generate_ascii_font_name): Rename from generate_ascii_font.
25421
25422 * fontset.h (get_font_repertory_func): New prototype.
25423 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
25424 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
25425
25426 * fontset.c (Qprepend, Qappend): New variables.
25427 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
25428 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
25429 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
25430 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
25431 (fontset_ref_and_range, fontset_add, reorder_font_vector)
25432 (load_font_get_repertory): New functions.
25433 (fontset_set): Delete.
25434 (fontset_face): New arg FACE. Return face ID, not face.
25435 Complete re-write to handle new fontset structure. Change caller.
25436 (free_face_fontset): Use ASET istead of AREF (X) = Y.
25437 (face_for_char): Don't call lookup_face.
25438 (make_fontset_for_ascii_face): New arg FACE.
25439 (fs_load_font): New arg CHARSET_ID. Don't check
25440 Vfont_encoding_alist here.
25441 (find_font_encoding): New function.
25442 (list_fontsets): Use STRINGP, not ! NILP.
25443 (accumulate_script_ranges): New function.
bba3e508
SM
25444 (Fset_fontset_font, Fnew_fontset, Ffontset_info):
25445 Completely re-written to handle new fontset structure.
aac0c6e3 25446 (Ffontset_font): Return a copy of element.
bba3e508
SM
25447 (syms_of_fontset): Define symbols Qprepend and Qappend.
25448 Fix docstring of font-encoding-alist.
aac0c6e3
MR
25449
25450 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
25451 (Fset_fotset_font): Fix arguments to 5.
25452
25453 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
25454
25455 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
25456 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
25457 (highlight_trailing_whitespace): Adjust for the change of
25458 lookup_named_face.
25459
25460 * xfaces.c: Include charset.h.
25461 (load_face_font): Delete argument C. Change caller.
25462 (generate_ascii_font_name): Rename from generate_ascii_font.
25463 (font_name_registry): New function.
25464 (cache_face): Store ascii faces before non-ascii faces in buckets.
25465 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
25466 Lookup only ascii faces.
25467 (lookup_non_ascii_face): New function.
25468 (lookup_named_face): Delete argument C. Change caller.
25469 (lookup_derived_face): Delete argument C. Change caller.
25470 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
25471 a string, just call font_list with it.
25472 (choose_face_font): Delete arguments FACE and C. New arg
25473 FONT_SPEC. Change caller.
25474 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
25475 Change caller.
25476 (realize_non_ascii_face): New function.
25477 (realize_x_face): Call load_face_font here.
25478 (realize_tty_face): Delete argument C. Change caller.
25479 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
25480 get a face ID.
25481 (dump_realized_face): Don't print charset of FACE.
25482
25483 * xfns.c (x_set_font): Always call x_new_fontset and
25484 store_frame_parameter.
25485 (Fx_create_frame): Call x_new_fontset, not x_new_font.
25486 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
25487
25488 * xterm.h (x_get_font_repertory): Extern it.
25489
25490 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
25491 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
25492 it->multibyte_p is zero.
25493 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
25494 (x_new_fontset): If FONTSETNAME doesn't match any existing
25495 fontsets, create a new one.
25496 (x_get_font_repertory): New function.
25497
254982008-02-01 Kenichi Handa <handa@m17n.org>
25499
25500 * coding.c (Ffind_coding_systems_region_internal): Detect an
25501 ASCII only string correctly.
25502
25503 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
25504 version is 0.
25505
255062008-02-01 Kenichi Handa <handa@m17n.org>
25507
25508 * lread.c: Include "coding.h".
25509 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
25510 (load_each_byte, unread_char): New variables.
25511 (readchar_backlog): Delete.
25512 (readchar): Return a character unless load_each_byte is nonzero.
25513 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
25514 cons. If unread_char is not -1, simply return it.
25515 (unreadchar): Handle the case that readcharfun is
25516 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
25517 (read_multibyte): Delete.
25518 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
25519 (read_emacs_mule_char): New functions.
25520 (Fload): Even if the file doesn't have the extension ".elc", if
25521 safe_to_load_p returns a positive version number, assume that the
25522 file contains bytecompiled code. If the version is less than 22,
25523 load the file while decoding multibyte sequences by emacs-mule.
25524 (readevalloop): Don't use readchar_backlog.
25525 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
25526 (Fread_from_string): Pay attention to the case that STREAM is a cons.
25527 (read_escape): Delete the arg BYTEREP.
25528 (read1): Set load_each_byte to 1 temporarily while handling
25529 #@NUMBER. Don't call read_multibyte.
25530 (read_vector): Call Fread with a cons. If readcharfun is
25531 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
25532 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
25533 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
25534 and Qload_force_doc_strings.
25535
255362008-02-01 Kenichi Handa <handa@m17n.org>
25537
bba3e508
SM
25538 * xdisp.c (face_before_or_after_it_pos):
25539 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
aac0c6e3
MR
25540
255412008-02-01 Kenichi Handa <handa@m17n.org>
25542
25543 * character.h (TRAILING_CODE_P): New macro.
25544 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
25545 (string_char_with_unification): Fix prototype.
25546 (Vscript_alist): Extern it.
25547
25548 * character.c (Vscript_alist): New variable.
25549 (string_char_with_unification, str_as_unibyte)
25550 (string_escape_byte8): Add `const' to local variables.
25551 (syms_of_character): Declare script-alist as a Lisp variable.
25552
25553 * charset.h (Vcharset_ordered_list): Extern it.
25554 (charset_ordered_list_tick): Extern it.
25555 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
25556 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
25557 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
25558 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
25559 (Funify_charset): Adjust for the change of Funify_charset.
25560
25561 * charset.c (charset_ordered_list_tick): New variable.
25562 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
25563 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6e051c0a 25564 deunify instead of unify a charset.
aac0c6e3
MR
25565 (string_xstring_p): Add `const' to local variables.
25566 (find_charsets_in_text): Add `const' to arguments and local variables.
bba3e508
SM
25567 (encode_char): Adjust for the change of Funify_charset.
25568 Fix detecting of invalid code.
aac0c6e3
MR
25569 (Fset_charset_priority): Increment charset_ordered_list_tick.
25570 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
25571 and TO_CODE.
25572
25573 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
25574 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
25575 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
25576 (decode_coding_ccl, consume_chars)
25577 (Ffind_coding_systems_region_internal)
25578 (Fcheck_coding_systems_region): Add `const' to local variables.
25579
25580 * print.c (print_object): Use octal form for printing the
25581 contents of a bool vector.
25582
255832008-02-01 Dave Love <fx@gnu.org>
25584
25585 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
25586 <version == 20>: Refuse to load.
25587
255882008-02-01 Dave Love <fx@gnu.org>
25589
25590 * fns.c: Move coding.h.
25591 (Qcodeset, Qdays, Qmonths): New.
25592 (concat): Use CHARACTERP instead of INTEGERP.
25593 (Flocale_codeset): Delete.
25594 (Flanginfo): New function.
25595 (syms_of_fns): Change accordingly.
25596
25597 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
25598
255992008-02-01 Dave Love <fx@gnu.org>
25600
bba3e508
SM
25601 * casetab.c (init_casetab_once, init_casetab_once):
25602 Fix CHAR_TABLE_SET call.
aac0c6e3
MR
25603
25604 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
25605
25606 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
25607
25608 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
25609 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
25610 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
25611
25612 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
25613
25614 * coding.c (ENCODE_DESIGNATION, decode_eol)
25615 (make_conversion_work_buffer, code_conversion_restore)
25616 (Fdefine_coding_system_internal): Convert Lisp types.
25617 (code_conversion_restore): Use EQ, not ==.
25618 (Fencode_coding_string): Fix code_convert_string call.
25619
25620 * coding.h (code_convert_region): Fix prototype.
25621
25622 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
25623
25624 * fontset.c (fontset_ref, fontset_set, fs_load_font)
25625 (Ffontset_info): Convert Lisp types.
25626
25627 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
25628
25629 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
25630
25631 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
25632
25633 * chartab.c: Include "...h", not <...h> in some cases.
25634
25635 * callproc.c (Fcall_process): Remove unused variables.
25636
256372008-02-01 Dave Love <fx@gnu.org>
25638
25639 * coding.c (Fset_coding_system_priority): Allow null arg list.
25640
256412008-02-01 Dave Love <fx@gnu.org>
25642
25643 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
25644 (Fself_insert_and_exit): Use CHARACTERP.
25645
25646 * callproc.c (Fcall_process): Remove unused vars.
25647
25648 * xterm.c (XTread_socket): Add extra dead keysyms.
25649
25650 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
25651
25652 * dispextern.h: Remove prototypes for redraw_frame,
25653 redraw_garbaged_frames.
25654
25655 * cmds.c (Fself_insert_command): Use CHARACTERP.
25656
25657 * chartab.c (make_sub_char_table): Remove unused var.
25658 (Fset_char_table_default, Fmap_char_table): Doc fix.
25659
25660 * keymap.c (access_keymap): Remove generic char code.
25661 (push_key_description): Use CHARACTERP.
25662
256632008-02-01 Dave Love <fx@gnu.org>
25664
25665 * charset.c: Doc fixes.
25666 (Funify_charset): Extra checking.
25667
256682008-02-01 Dave Love <fx@gnu.org>
25669
25670 * lread.c: Remove some unused variables.
25671 (safe_to_load_p): If safe, return the magic number version byte.
25672 (Fload): Maybe use load-with-code-conversion.
25673
256742008-02-01 Kenichi Handa <handa@m17n.org>
25675
25676 * category.c (Fmodify_category_entry): Don't modify the contents
bba3e508
SM
25677 of category_set for characters out of the range.
25678 Avoid unnecessary modification.
aac0c6e3
MR
25679
25680 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
25681 Vchar_unify_table. The default value of the table is now nil.
25682
25683 * character.c (syms_of_character): Setup Vchar_width_table for
25684 eight-bit-control and raw-byte chars.
25685
bba3e508
SM
25686 * charset.h (enum define_charset_arg_index):
25687 Delete charset_arg_parents and add charset_arg_subset and
aac0c6e3
MR
25688 charset_arg_superset.
25689 (enum charset_attr_index): Delete charset_parents and add
25690 charset_subset and charset_superset.
25691 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
25692 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
25693 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
25694 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
25695 (CHARSET_SUPERSET): New macros.
25696 (charset_work): Extern it.
25697 (ENCODE_CHAR): Use charset_work.
25698 (CHAR_CHARSET_P): Adjust for the change of encoder format.
25699 (map_charset_chars): Extern it.
25700
25701 * charset.c (load_charset_map): Set the default value of encoder
25702 and deunifier char-tables to nil.
bba3e508
SM
25703 (map_charset_chars): Change argument. Change callers.
25704 Use map_char_table_for_charset instead of map_char_table.
aac0c6e3
MR
25705 (Fmap_charset_chars): New optional args from_code and to_code.
25706 (Fdefine_charset_internal): Adjust for the change of
25707 `define-charset' (:parents -> :subset or :superset).
25708 (charset_work): New variable.
25709 (encode_char, syms_of_charset): Adjust for the change of
25710 Fdefine_charset_internal.
25711 (Ffind_charset_string): Setup the vector `charsets' correctly.
25712
bba3e508
SM
25713 * chartab.c (sub_char_table_ref_and_range): New arg default.
25714 Fix the previous change.
aac0c6e3
MR
25715 (char_table_ref_and_range): Adjust for the above change.
25716 (map_sub_char_table_for_charset): New function.
25717 (map_char_table_for_charset): New function.
25718
25719 * keymap.c (describe_vector): Handle a char-table directly here.
25720 (describe_char_table): Delete.
25721
25722 * lisp.h (map_charset_chars): Delete.
25723
257242008-02-01 Dave Love <fx@gnu.org>
25725
25726 * fns.c (count_combining): Comment out (unused).
25727 (Flocale_codeset): New.
25728 (syms_of_fns): Defsubr it.
25729
25730 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
25731 (size_t): Remove.
25732
257332008-02-01 Dave Love <fx@gnu.org>
25734
25735 * Makefile.in (chartab.o): Depend on charset.h.
25736
257372008-02-01 Kenichi Handa <handa@m17n.org>
25738
25739 * character.c (syms_of_character): Set the default value of
25740 Vprintable_chars to Qnil.
25741
257422008-02-01 Dave Love <fx@gnu.org>
25743
25744 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
25745
257462008-02-01 Kenichi Handa <handa@m17n.org>
25747
25748 * charset.c (load_charset_map): Handle the case that from < to
25749 correctly.
25750
25751 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
25752 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
25753 Pay attention to raw-8-bit chars.
25754
257552008-02-01 Kenichi Handa <handa@m17n.org>
25756
25757 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
25758 It is not bytecompiled now.
25759
25760 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
25761 (charset_jisx0208): New variables.
25762 (Fdefine_charset_internal): Setup them if appropriate.
25763 (init_charset_once): Initialize them to -1.
25764
25765 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
25766 (charset_jisx0208): Extern them.
25767
25768 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
25769 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
25770 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
25771 (setup_iso_safe_charsets): Fix arguments to Fassq.
25772 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
25773 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
25774 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
25775 (encode_coding_iso_2022): Change the 1st arg to
25776 ENCODE_ISO_CHARACTER to a variable.
25777
257782008-02-01 Kenichi Handa <handa@m17n.org>
25779
25780 * charset.h (enum define_charset_arg_index): New enums
25781 charset_arg_min_code and charset_arg_max_code.
25782 (struct charset): New member char_index_offset.
25783
25784 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
25785 Take charset->char_index_offset into account.
25786 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
25787 args[charset_arg_max_code]. Setup charset.char_index_offset.
25788 (syms_of_charset): Fix args to Fdefine_charset_internal.
25789
257902008-02-01 Dave Love <fx@gnu.org>
25791
25792 * coding.c (decode_coding_utf_8): Reject overlong sequences.
25793
257942008-02-01 Dave Love <fx@gnu.org>
25795
25796 * coding.c: Doc fixes.
25797 (Fcoding_system_aliases): Fix return value.
25798 (Qmac): Remove (duplicated) definition.
25799
258002008-02-01 Dave Love <fx@gnu.org>
25801
362654a6
JB
25802 * charset.c (Fcharset_priority_list, Fset_charset_priority):
25803 New functions.
aac0c6e3
MR
25804
25805 * character.c (Fstring): Doc fix.
25806
25807 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
25808
362654a6 25809 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
25810 (font-encoding-alist): Doc fix.
25811
258122008-02-01 Dave Love <fx@gnu.org>
25813
25814 * term.c (costs_set): Declare static, non-initialized for pcc.
25815 (encode_terminal_code): Remove unused var.
25816
25817 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
25818 for K&R.
25819
25820 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
25821
25822 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
25823 (suffixes): Move out of make_subsidiaries for K&R.
25824
25825 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
25826
25827 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
25828
258292008-02-01 Dave Love <fx@gnu.org>
25830
25831 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
25832
25833 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
25834
258352008-02-01 Yong Lu <lyongu@asia-infonet.com>
25836
25837 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
25838
25839 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
25840
258412008-02-01 Kenichi Handa <handa@m17n.org>
25842
25843 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
25844 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
25845
258462008-02-01 Kenichi Handa <handa@m17n.org>
25847
25848 * coding.c (decode_coding_charset): Adjust for the change of
25849 Fdefine_coding_system_internal.
25850 (Fdefine_coding_system_internal): For a coding system of
25851 `charset' type, store a list of charset IDs in
25852 `charset_attr_charset_valids' element of coding attributes.
25853
258542008-02-01 Kenichi Handa <handa@m17n.org>
25855
25856 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
bba3e508
SM
25857 (emacs_mule_char): New arg src. Delete arg `composition'.
25858 Change caller. Handle 2-byte and 3-byte charsets correctly.
aac0c6e3
MR
25859 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
25860 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
25861 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
ef1b0ba7
SM
25862 (DECODE_EMACS_MULE_21_COMPOSITION):
25863 Call DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
aac0c6e3
MR
25864 sequence.
25865 (decode_coding_emacs_mule): Handle composition correctly. Rewind
25866 `src' and `consumed_chars' correctly before calling emacs_mule_char.
25867 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
25868 and alt&rule composition.
25869 (decode_coding_iso_2022): Handle composition correctly.
25870 (init_coding_once): Setup emacs_mule_bytes for private charsets.
25871
25872 * charset.c (Fdefine_charset_internal): Fix bug for the case of
25873 re-defining a charset. If the charset has :emacs-mule-id, setup
25874 emacs_mule_bytes.
25875 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
25876
258772008-02-01 Kenichi Handa <handa@m17n.org>
25878
25879 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
25880 (encode_coding_big5, encode_coding_charset): If coding requires safe
25881 encoding, produce a character specified by
25882 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
25883
258842008-02-01 Dave Love <fx@gnu.org>
25885
25886 * xterm.c (XSetIMValues): Declare.
25887
25888 * process.c: Conditionally include sys/wait.h, pty.h.
25889
25890 * print.c (print_object): Fix print format for 64-bit systems.
25891
25892 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
25893
25894 * buffer.c (emacs_strerror): Declare.
25895
25896 * fontset.c (Fclear_face_cache): Declare.
25897 (accumulate_font_info): Comment-out (unused).
25898 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
25899 variables.
25900
25901 * character.h (string_escape_byte8): Declare.
25902
bba3e508
SM
25903 * charset.c (load_charset_map, load_charset_map_from_file):
25904 Remove unused vars.
aac0c6e3
MR
25905 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
25906 (Fmap_charset_chars): Doc fix.
25907
25908 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
25909 (Fset_coding_system_priority, Fset_coding_system_priority)
25910 (Fdefine_coding_system_internal): Doc fix.
25911
259122008-02-01 Dave Love <fx@gnu.org>
25913
25914 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
25915
259162008-02-01 Kenichi Handa <handa@m17n.org>
25917
25918 * character.c (string_escape_byte8): Make multibyte string with
25919 correct size.
25920
25921 * charset.c (Fmake_char): Delete unnecessary code.
25922
259232008-02-01 Kenichi Handa <handa@m17n.org>
25924
25925 * xfns.c (x_encode_text): Allocate coding.destination here, and
25926 call encode_coding_object with dst_object Qnil.
25927
25928 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
25929 multibyte form correctly.
25930
25931 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
25932 against Vfont_encoding_alist.
25933
25934 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
25935 handling of charset list.
25936 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
25937 (decode_coding_object): Move point to coding->dst_pos before
25938 calling post-read-conversion function.
25939 (encode_coding_object): Give correct arguments to
25940 pre-write-conversion. Ignore the return value of
25941 pre-write-conversion function. Pay attention to the case that
25942 pre-write-conversion changes the current buffer. If dst_object is
25943 Qt, even if coding->src_bytes is zero, allocate at least one byte
25944 to coding->destination.
25945
25946 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
25947
25948 * charset.c (Fmake_char): Make it more backward compatible.
25949 (Fmap_charset_chars): Fix docstring.
25950
259512008-02-01 Dave Love <fx@gnu.org>
25952
25953 * coding.c: Doc fixes.
25954 (Fdefine_coding_system_alias): Use names, not symbols, in
25955 coding-system-alist.
25956
259572008-02-01 Kenichi Handa <handa@m17n.org>
25958
25959 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
25960 of calling free_realized_face.
25961
259622008-02-01 Yong Lu <lyongu@asia-infonet.com>
25963
25964 * charset.c (read_hex): Don't treat SPC as a comment starter.
25965 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
25966 (Fdecode_char): Fix typo.
25967
259682008-02-01 Kenichi Handa <handa@m17n.org>
25969
25970 * charset.h (struct charset): New member `code_space_mask'.
25971
25972 * coding.c (coding_set_source): Delete the local variable beg_byte.
25973 (encode_coding_charset, Fdefine_coding_system_internal):
25974 Delete the local variable charset.
bba3e508
SM
25975 (Fdefine_coding_system_internal):
25976 Setup attrs[coding_attr_charset_valids] correctly.
aac0c6e3
MR
25977
25978 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
25979 member to check if CODE is valid or not.
25980 (Fdefine_charset_internal): Initialize `code_space_mask' member.
25981 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
25982 is within the range of charset->min_code and carset->max_code.
25983
259842008-02-01 Dave Love <fx@gnu.org>
25985
25986 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
25987
25988 * dispextern.h (generate_ascii_font): Fix return type.
25989
25990 * xfaces.c (generate_ascii_font): Fix arg declaration.
25991
25992 * coding.c (coding_inherit_eol_type)
25993 (Fset_terminal_coding_system_internal)
25994 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
25995
259962008-02-01 Kenichi Handa <handa@m17n.org>
25997
bba3e508
SM
25998 * coding.c (decode_coding_charset, encode_coding_charset):
25999 Handle multiple charsets correctly.
aac0c6e3
MR
26000
260012008-02-01 Kenichi Handa <handa@m17n.org>
26002
26003 * search.c (boyer_moore): Fix handling of multibyte character
26004 translation.
26005
26006 * xdisp.c (display_mode_element): When the variable `elt' is
26007 changed, update `this' and `lisp_string'.
26008
260092008-02-01 Kenichi Handa <handa@m17n.org>
26010
26011 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
26012
26013 * callproc.c (Fcall_process): Be sure to give the current buffer
26014 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
26015
26016 * charset.c (struct charset_map_entries): New struct.
26017 (load_charset_map): Rename from parse_charset_map. New args
26018 entries and n_entries. Change caller.
26019 (load_charset_map_from_file): Rename from load_charset_map.
26020 Change caller. New arg control_flag. Call load_charset_map at
26021 the tail.
26022 (load_charset_map_from_vector): New function.
26023 (Fdefine_charset_internal): Setup charset.compact_codes_p.
26024 (encode_char): If the charset is compact, change a character index
26025 to a code point.
26026
26027 * coding.c (coding_alloc_by_making_gap): Check the case that the
26028 source and destination are the same correctly.
26029 (decode_coding_raw_text): Set coding->consumed_char and
26030 coding->consumed to 0.
26031 (produce_chars): If coding->chars_at_source is nonzero, update
26032 coding->consumed_char and coding->consumed before calling
26033 alloc_destination.
26034 (Fdefine_coding_system_alias): Register ALIAS in
26035 Vcoding_system_alist.
26036 (syms_of_coding): Define `no-conversion' coding system at the tail.
26037
26038 * fileio.c (Finsert_file_contents): Set coding_system instead of
26039 val. If the current buffer is multibyte, always call
26040 decode_coding_gap.
26041
26042 * xfaces.c (try_font_list): Give higher priority to fontset's
26043 family than face's family.
26044
260452008-02-01 Kenichi Handa <handa@m17n.org>
26046
26047 * callproc.c (Fcall_process): Be sure to give the current buffer
26048 to decode_coding_c_string.
26049
26050 * xfaces.c (try_font_list): Give a family specified in a fontset
26051 higher priority than a family specified in a face.
26052
260532008-02-01 Kenichi Handa <handa@m17n.org>
26054
26055 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
26056 Fix arguments to insert_from_buffer.
26057
26058 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
26059
260602008-02-01 Kenichi Handa <handa@m17n.org>
26061
26062 * coding.c (produce_chars): Set the variable `multibytep' correctly.
26063 (decode_coding_gap): Set coding->dst_multibyte correctly.
26064
260652008-02-01 Kenichi Handa <handa@m17n.org>
26066
26067 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
26068 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
26069 (encode_coding_utf_16): Substitute coding->default_char for
26070 non-Unicode characters.
26071 (decode_coding): Don't call record_insert here.
26072 (setup_coding_system): Initialize `surrogate' of
26073 coding->spec.utf_16 to 0.
26074 (EMIT_ONE_BYTE): Fix for multibyte case.
26075
26076 * insdel.c (insert_from_gap): Call record_insert.
26077
260782008-02-01 Kenichi Handa <handa@m17n.org>
26079
26080 * casefiddle.c (casify_region): Fix multibyte case.
26081
26082 * character.c (c_string_width): Add return type `int'.
26083 (char_string_with_unification): Delete arg ADVANCED.
26084
26085 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
26086 (CHAR_STRING): Adjust for the change of char_string_with_unification.
26087 (CHAR_STRING_ADVANCE): Make it do-while statement.
26088
26089 * chartab.c (sub_char_table_set_range): Optimize for the case
26090 DEPTH == 3. Add workaround code for a GCC optimization bug.
26091
26092 * charset.c (parse_charset_map): Remove an unused variable.
26093
26094 * coding.c: Delete unused variables.
26095
26096 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
26097 earlier. If inserted is zero and the coding system doesn't
26098 require flushing, don't call decode_coding_gap.
26099
26100 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
26101
261022008-02-01 Kenichi Handa <handa@m17n.org>
26103
26104 The following changes are for using Unicode as an internal
26105 character model, and use UTF-8 format for buffer/string
26106 representation.
26107
26108 * .gdbinit (xchartable): Adjust for the change of char table structure.
26109 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
26110
26111 * Makefile.in (obj): Add character.o and chartab.o.
26112 (lisp, shortlisp): Remove utf-8.elc.
26113 (*.o): For many files, change dependency on charset.h to
26114 character.h, and add dependency on character.h.
26115 (character.o, chartab.o): New targets.
26116
26117 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
26118 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
26119 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
26120 of "charset.h".
26121
26122 * dired.c, filelock.c: Include "character.h".
26123
26124 * alloc.c: Include "character.h" instead of "charset.h".
26125 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
26126 (syms_of_alloc): Remove defsubr for Smake_char_table.
26127
26128 * buffer.c: Include "character.h" instead of "charset.h", don't
26129 include "coding.h".
26130 (Fset_buffer_multibyte): Adjust for UTF-8.
26131
26132 * buffer.h: EXFUN Fbuffer_live_p.
26133
26134 * callproc.c: Include "character.h" instead of "charset.h".
26135 (Fcall_process): Big change for the new code-conversion APIs.
26136
26137 * casetab.c: Include "character.h" instead of "charset.h".
26138 (set_canon, set_identity, shuffle): Adjust for the new
26139 map_char_table spec.
26140 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
26141 accessing the char table structure.
26142
26143 * chartab.c: New file that implements char table.
26144
26145 * category.c: Include "character.h".
26146 (copy_category_entry): New function.
26147 (copy_category_table): Call map_char_table and copy_category_entry.
26148 (Fmake_category_table): Initialize all top-level slots.
26149 (char_category_set): New function.
26150 (modify_lower_category_set): Delete.
26151 (Fmodify_category_entry): Call char_table_ref_and_range.
26152
26153 * category.h (CATEGORY_SET): Just call char_category_set.
26154
26155 * ccl.c: Include "character.h".
26156 (Qccl, Qcclp): New variables.
26157 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
26158 it's less than 256.
26159 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
26160 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
26161 and DST type.
26162 (ccl_driver): Change types of argument, adjust code accordingly.
26163 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
26164 ccl_driver.
26165 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
26166
26167 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
26168 New members src_multibyte, dst_multibyte, consumed, and produced.
26169 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
26170 (CODING_SPEC_CCL_PROGRAM): New macro.
26171 (ccl_driver): Update prototype.
26172 (Qccl, Qcclp, Fccl_program_p): Extern them.
26173 (CHECK_CCL_PROGRAM): New macro.
26174
26175 * character.c, character.h, chartab.c: New files.
26176
26177 * charset.c: Mostly re-written. Move character and multibyte sequence
26178 handling codes to character.c.
26179
26180 * charset.h: Mostly re-written. Move character and multibyte sequence
26181 handling codes to character.h.
26182
26183 * coding.c, coding.h: Mostly re-written.
26184
26185 * composite.c: Include "character.h" instead of "charset.h".
26186 (CHAR_WIDTH): Move to character.h.
26187 (HASH_KEY, HASH_VALUE): Delete.
26188
26189 * composite.h (enum composition_method): Change order of enumeration
26190 symbols.
26191
26192 * data.c: Include "character.h" instead of "charset.h".
26193 (Faref): Call CHAR_TABLE_REF for a char table.
26194 (Faset): Call CHAR_TABLE_SET for a char table.
26195
26196 * dispextern.h (free_realized_face, check_face_attribytes)
26197 (generate_ascii_font): Extern them.
26198 (free_realized_multibyte_face): Delete extern.
26199
26200 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
26201 table structure.
26202
26203 * editfns.c: Include "character.h" instead of "charset.h".
26204 (Fchar_to_string): Always call CHAR_STRING.
26205
26206 * emacs.c (main): Call init_charset_once, init_charset,
26207 syms_of_chartab, and syms_of_character.
26208
26209 * fileio.c: Include "character.h" instead of "charset.h".
26210 (Finsert_file_contents): Big change for the new code-conversion API.
26211 (choose_write_coding_system, Fwrite_region): Likewise.
26212 (build_annotations_2): Delete.
26213 (e_write): Big change for the new code-conversion API.
26214
26215 * fns.c: Include "character.h" instead of "charset.h".
26216 (copy_sub_char_table): Move to chartab.c.
26217 (Fcopy_sequence): Call copy_char_table for a char table.
26218 (concat): Delete codes calling count_multibyte.
26219 (string_char_to_byte, string_byte_to_char): Adjust for the new
26220 multibyte form.
26221 (internal_equal): Adjust for the change of char table structure.
26222 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
26223 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
26224 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
26225 (char_table_translate, optimize_sub_char_table)
26226 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
26227 chartab.c.
26228 (char_table_ref_and_index): Delete.
26229 (HASH_KEY, HASH_VALUE): Move to lisp.h.
26230 (Fmd5): Call preferred_coding_system instead of accessing
26231 Vcoding_category_list. Adjust for the new code-conversion API.
26232 (syms_of_fns): Move defsubr for char table related functions to
26233 chartab.c.
26234
26235 * fontset.c: Mostly re-written.
26236
26237 * fontset.h (struct font_info): Change type of the member encoding_type.
26238 (enum FONT_SPEC_INDEX): New enum.
26239 (fontset_font_pattern, fs_load_font): Update prototype.
26240 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
26241
26242 * indent.c: Include "character.h" instead of "charset.h".
26243 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
26244
26245 * insdel.c: Include "character.h" instead of "charset.h".
26246 (copy_text): Don't refer to Vnonascii_translation_table.
26247 (insert_from_gap): New function.
26248
26249 * keyboard.c: Include "character.h" instead of "charset.h".
26250 (command_loop_1): Never call direct_output_forward_char before
26251 a non-ASCII character.
26252 (read_char): If Vkeyboard_translate_table is a char table, always
26253 translate a character.
26254
26255 * keymap.c: Include "character.h".
26256 (store_in_keymap): Handle the case that IDX is a cons.
26257 (Fdefine_key): Handle the case that KEY is a cons and the car part
26258 is also a cons (range).
26259 (push_key_description): Adjust for the new character code.
26260 (describe_vector): Call describe_char_table for a char table.
26261 (describe_char_table): New function.
26262
26263 * keymap.h (describe_char_table): Extern it.
26264
26265 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
26266 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
26267 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
26268 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
26269 Delete.
26270 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
26271 structure.
26272 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
26273 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
26274 (CHARTAB_SIZE_BITS_3): New macros.
26275 (chartab_size): Extern it.
26276 (struct Lisp_Char_Table): Re-design.
26277 (struct Lisp_Sub_Char_Table): New structure.
26278 (HASH_KEY, HASH_VALUE): Move from fns.c.
26279 (CHARACTERBITS): Define as 22.
26280 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
26281 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
26282 (GC_SUB_CHAR_TABLE_P): New macro.
26283 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
ef1b0ba7 26284 (code_convert_string_norecord): Delete extern.
aac0c6e3
MR
26285 (init_character_once, syms_of_character, init_charset)
26286 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
26287
26288 * lread.c: Include "character.h".
26289 (read_multibyte): New arg NBYTES.
26290 (read_escape): Change the meaning of returned *BYTEREP.
26291 (to_multibyte): Delete.
26292 (read1): Adjust the handling of char table and string.
26293
26294 * print.c: Include "character.h" instead of "charset.h".
26295 (print_string): Convert 8-bit raw bytes to octal form by
26296 string_escape_byte8.
26297 (print_object): Adjust for the new multibyte form. Print 8-bit
26298 raw bytes always in octal form. Handle sub char table correctly.
26299
26300 * process.c: Include "character.h" instead of "charset.h".
26301 (read_process_output, send_process): Adjust for the new
26302 code-conversion API.
26303
26304 * puresize.h (BASE_PURESIZE): Increase.
26305
26306 * regex.c: Include "character.h" instead of "charset.h".
26307 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
26308 (regex_compile): Accept a range whose starting and ending
26309 character have different leading bytes.
26310 (analyse_first): Adjust for the above change.
26311
26312 * search.c: Include "character.h" instead of "charset.h".
26313 (search_buffer, boyer_moore): Adjust for the new multibyte form.
26314 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
26315
26316 * syntax.c: Include "character.h" instead of "charset.h".
26317 (syntax_parent_lookup): Delete.
26318 (Fmodify_syntax_entry): Accept a cons as CHAR.
26319 (skip_chars): Adjust for the new multibyte form.
26320 (init_syntax_once): Call char_table_set_range instead of directly
26321 accessing the structure of a char table.
26322
26323 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
26324 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
26325 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
26326 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
26327
26328 * term.c: Include "buffer.h" and "character.h".
26329 (encode_terminal_code, write_glyphs): Adjust for the new
26330 code-conversion API.
26331 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
26332
26333 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
26334
26335 * xdisp.c: Include "character.h".
26336 (get_next_display_element): Adjust for the new multibyte form.
26337 (disp_char_vector): Adjust for the new char table structure.
26338 (decode_mode_spec_coding): Adjust for the new structure of
26339 coding system.
26340 (decode_mode_spec): Adjust for the new code-conversion API.
26341
26342 * xfaces.c: Include "character.h" instead of "charset.h".
26343 (load_face_font): Adjust for the change of choose_face_font and
26344 FS_LOAD_FONT.
26345 (generate_ascii_font): New function.
26346 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
26347 (set_font_frame_param): Adjust for the change of choose_face_font.
26348 (free_realized_face): Make it public.
26349 (free_realized_faces_for_fontset): Rename from
26350 free_realized_multibyte_face. Free also faces realized for ASCII.
26351 (choose_face_font): Change arguments. Adjust for the change of
26352 fontset_font_pattern and FS_LOAD_FONT.
26353
26354 * xfns.c: Include "character.h".
26355 (x_encode_text): Adjust for the new code-conversion API.
26356
26357 * xselect.c: Don't include "charset.h".
26358 (selection_data_to_lisp_data): Adjust for the new code conversion API.
26359
26360 * xterm.c: Include "character.h".
26361 (x_encode_char): New argument CHARSET. Change caller.
26362 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
26363 Call ENCODE_CHAR instead of SPLIT_CHAR.
26364 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
26365 CHAR_WIDTH instead of CHARSET_WIDTH.
26366 (XTread_socket): Adjust for the new code-conversion API.
26367 (x_new_font): Adjust for the change of FS_LOAD_FONT.
26368 (x_load_font): Adjust for the change of struct font.
26369
263702008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
26371
26372 * xfaces.c (face_at_buffer_position): Remove unused vars.
26373
263742008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
26375
26376 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
26377 Fix overflow checking.
26378
263792008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
26380
26381 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
26382 Cancel previous change.
26383
263842008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
26385
26386 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
26387 ccl->eight_bit_control. Fix check for buffer overflow.
26388 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
26389 (ccl_driver): Initialize extra_bytes to 0.
26390
263912008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
26392
26393 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
26394 return it ORed with ctrl_modifier.
26395
263962008-01-29 Miles Bader <miles@gnu.org>
26397
26398 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
26399
264002008-01-28 Jason Rumney <jasonr@gnu.org>
26401
26402 * w32.c (stat): Don't double check for networked drive.
26403
264042008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
26405
26406 * window.c (run_window_configuration_change_hook): New function.
26407 Code extracted from set_window_buffer. Set the selected frame.
26408 (set_window_buffer): Use it.
26409 * window.h (run_window_configuration_change_hook): Declare.
26410 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
26411
26412 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
26413
264142008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
26415
26416 * Makefile.in: Remove references to unused macros.
26417
264182008-01-26 Eli Zaretskii <eliz@gnu.org>
26419
26420 * w32.c (g_b_init_get_sid_sub_authority)
26421 (g_b_init_get_sid_sub_authority_count): New static variables.
26422 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
26423 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
26424 (init_user_info): Use them to retrieve uid and gid.
26425 Use 500/513, the Windows defaults, as Administrator's uid/gid.
26426 (fstat): Use pw_uid and pw_gid from the_passwd structure for
26427 st_uid and st_gid of the file.
26428
264292008-01-26 Jason Rumney <jasonr@gnu.org>
26430
26431 * w32.c (logon_network_drive): New function.
26432 (stat): Use it.
26433
264342008-01-26 Chong Yidong <cyd@stupidchicken.com>
26435
26436 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
26437 invisible text covered with an ellipsis.
26438
264392008-01-25 Richard Stallman <rms@gnu.org>
26440
26441 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
26442 jump back to beginning. Move some other initializations after that.
26443 (Qwindow_text_change_functions, Vwindow_text_change_functions):
26444 New variables.
26445 (syms_of_xdisp): Init them.
26446
26447 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
26448
26449 * buffer.c (reset_buffer_local_variables):
26450 Implement `permanent-local-hook'.
26451 (Qpermanent_local_hook): New variable.
26452 (syms_of_buffer): Init and staticpro it.
26453
264542008-01-25 Michael Albinus <michael.albinus@gmx.de>
26455
26456 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
26457
264582008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
26459
26460 * fns.c (Fclrhash): Return TABLE.
26461
264622008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26463
26464 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
26465 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
26466 is set even without positional changes.
26467 (x_scroll_bar_clear): Set bar->redraw_needed_p.
26468
26469 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
26470
264712008-01-23 Jason Rumney <jasonr@gnu.org>
26472
26473 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
26474
26475 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
26476 the unicode range available in MULE by locale-coding-system.
26477 Improve dbcs lead byte detection. Set event timestamp and modifiers
26478 earlier.
26479
264802008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26481
26482 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
26483 [MAC_OSX] (init_mac_osx_environment): Initialize it.
26484 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
26485 when used on child processes.
26486
264872008-01-21 Michael Albinus <michael.albinus@gmx.de>
26488
26489 * dbusbind.c (Fdbus_method_return_internal): Rename from
26490 Fdbus_method_return.
26491 (Fdbus_unregister_object): Move to dbus.el.
26492 (Fdbus_call_method, Fdbus_method_return_internal)
26493 (Fdbus_send_signal): Improve debug messages.
26494
264952008-01-20 Martin Rudalics <rudalics@gmx.at>
26496
26497 * undo.c (undo_inhibit_record_point): New variable.
26498 (syms_of_undo): Initialize it.
26499 (record_point): Don't record point when undo_inhibit_record_point
26500 is set.
26501
265022008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
26503
26504 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
26505
26506 * xdisp.c (Qauto_hscroll_mode): New var.
26507 (syms_of_xdisp): Initialize it.
26508 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
26509 window's buffer.
26510 (hscroll_windows): Don't check automatic_hscrolling_p here.
26511
26512 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
26513 vscroll if we're setting window-buffer to the value it already has.
26514
265152008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
26516
26517 * m/intel386.h: Remove references to XENIX.
26518
265192008-01-17 Andreas Schwab <schwab@suse.de>
26520
26521 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
26522 instead of HAVE_X86_64_LIB64_DIR.
26523 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
26524
265252008-01-17 Glenn Morris <rgm@gnu.org>
26526
26527 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
26528 to HAVE_X86_64_LIB64_DIR.
26529
265302008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
26531
26532 * s/irix3-3.h:
26533 * s/irix4-0.h:
26534 * s/386-ix.h:
26535 * s/domain.h:
26536 * s/hpux9-x11r4.h:
26537 * s/hpux9shxr4.h: Remove files for systems no longer supported.
26538
26539 * sysdep.c: Remove code containing references to symbols defined
26540 by unsupported systems.
26541
265422008-01-16 Glenn Morris <rgm@gnu.org>
26543
26544 * coding.c (select-safe-coding-system-function): Doc fix.
26545
265462008-01-15 Glenn Morris <rgm@gnu.org>
26547
26548 * config.in: Revert 2008-01-13 change: this is a generated file.
26549
265502008-01-13 Tom Tromey <tromey@redhat.com>
26551
26552 * lisp.h: Fix typo.
26553
265542008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
26555
26556 * m/sequent-ptx.h:
26557 * m/sequent.h:
26558 * s/ptx.h:
26559 * s/ptx4-2.h:
26560 * s/ptx4.h: Remove files for systems no longer supported.
26561
26562 * callproc.c (Fcall_process): Fix previous change.
26563
265642008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
26565
26566 * unexsunos4.c: Remove file, system not supported anymore.
26567
26568 * m/mips.h:
26569 * m/intel386.h:
26570 * callproc.c:
26571 * config.in:
26572 * ecrt0.c:
26573 * emacs.c:
26574 * fileio.c:
26575 * frame.c:
26576 * getpagesize.h:
26577 * keyboard.c:
26578 * lread.c:
26579 * process.c:
26580 * puresize.h:
26581 * sysdep.c:
26582 * systty.h:
26583 * syswait.h:
26584 * unexec.c:
26585 * xdisp.c:
26586 * alloc.c: Remove code containing references to symbols defined by
26587 unsupported systems.
26588
265892008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
26590
26591 * coding.c (detect_coding_mask): Fix previous change.
26592
265932008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
26594
26595 * coding.c (detect_coding_iso2022): New arg
26596 latin_extra_code_state. Allow Latin extra codes only
26597 when *latin_extra_code_state is nonzero.
26598 (detect_coding_mask): If there is a NULL byte, detect the encoding
26599 as UTF-16 or binary. If Latin extra codes exist, detect the
26600 encoding as ISO-2022 only when there's no other proper encoding is
26601 found.
26602
266032008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26604
26605 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
26606 #ifdef MAC_OS.
26607
266082008-01-08 Richard Stallman <rms@gnu.org>
26609
26610 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
26611
266122008-01-06 Nick Roberts <nickrob@snap.net.nz>
26613
26614 * keyboard.c (parse_menu_item): Don't enclose key bindings on
26615 menu bar in parentheses.
26616
266172008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
26618
26619 * m/7300.h:
26620 * m/acorn.h:
26621 * m/alliant-2800.h:
26622 * m/alliant.h:
26623 * m/alliant1.h:
26624 * m/alliant4.h:
26625 * m/altos.h:
26626 * m/amdahl.h:
26627 * m/apollo.h:
26628 * m/att3b.h:
26629 * m/aviion-intel.h:
26630 * m/aviion.h:
26631 * m/celerity.h:
26632 * m/clipper.h:
26633 * m/cnvrgnt.h:
26634 * m/convex.h:
26635 * m/cydra5.h:
26636 * m/delta88k.h:
26637 * m/dpx2.h:
26638 * m/dual.h:
26639 * m/elxsi.h:
26640 * m/f301.h:
26641 * m/gould-np1.h:
26642 * m/gould.h:
26643 * m/i860.h:
26644 * m/ibmps2-aix.h:
26645 * m/ibmrt-aix.h:
26646 * m/ibmrt.h:
26647 * m/irist.h:
26648 * m/is386.h:
26649 * m/isi-ov.h:
26650 * m/mega68.h:
26651 * m/mg1.h:
26652 * m/news-r6.h:
26653 * m/news-risc.h:
26654 * m/news.h:
26655 * m/nh3000.h:
26656 * m/nh4000.h:
26657 * m/ns16000.h:
26658 * m/ns32000.h:
26659 * m/nu.h:
26660 * m/orion.h:
26661 * m/orion105.h:
26662 * m/paragon.h:
26663 * m/pfa50.h:
26664 * m/plexus.h:
26665 * m/pyramid.h:
26666 * m/pyrmips.h:
26667 * m/sh3el.h:
26668 * m/sps7.h:
26669 * m/sr2k.h:
26670 * m/stride.h:
26671 * m/sun1.h:
26672 * m/sun2.h:
26673 * m/sun3-68881.h:
26674 * m/sun3-fpa.h:
26675 * m/sun3-soft.h:
26676 * m/sun3.h:
26677 * m/sun386.h:
26678 * m/symmetry.h:
26679 * m/tad68k.h:
26680 * m/tahoe.h:
26681 * m/targon31.h:
26682 * m/tek4300.h:
26683 * m/tekxd88.h:
26684 * m/tower32.h:
26685 * m/tower32v3.h:
26686 * m/ustation.h:
26687 * m/wicat.h:
26688 * m/xps100.h:
26689 * s/cxux.h:
26690 * s/cxux7.h:
26691 * s/dgux.h:
26692 * s/dgux4.h:
26693 * s/dgux5-4-3.h:
26694 * s/dgux5-4r2.h:
26695 * s/esix.h:
26696 * s/esix5r4.h:
26697 * s/hiuxmpp.h:
26698 * s/hiuxwe2.h:
26699 * s/iris3-5.h:
26700 * s/iris3-6.h:
26701 * s/isc2-2.h:
26702 * s/isc3-0.h:
26703 * s/isc4-0.h:
26704 * s/isc4-1.h:
26705 * s/newsos5.h:
26706 * s/newsos6.h:
26707 * s/osf1.h:
26708 * s/osf5-0.h:
26709 * s/riscix1-1.h:
26710 * s/riscix12.h:
26711 * s/sco4.h:
26712 * s/sco5.h:
26713 * s/sunos4-0.h:
26714 * s/sunos4-1.h:
26715 * s/sunos413.h:
26716 * s/sunos4shr.h:
26717 * s/umax.h:
26718 * s/unipl5-2.h:
26719 * s/xenix.h:
26720 * cxux-crt0.s:
26721 * unexapollo.c:
26722 * unexconvex.c:
26723 * unexenix.c:
26724 * unexsni.c: Remove files for systems no longer supported.
26725
26726 * m/intel386.h: Remove references to unsupported systems.
26727
26728 * w32.c (get_emacs_configuration): Remove reference to i860.
26729
26730 * sysdep.c: Remove dead code.
26731
267322008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
26733
26734 * s/rtu.h:
26735 * m/masscomp.h: Remove files. Platform is obsolete.
26736
267372008-01-04 Michael Albinus <michael.albinus@gmx.de>
26738
26739 * dbusbind.c (Fdbus_method_return): New function.
26740 (xd_read_message): Add the serial number to the event.
26741 (Fdbus_register_method): Activate the function.
26742
267432008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
26744
26745 * keyboard.c (read_key_sequence): Fix typo.
26746
267472008-01-03 Michael Albinus <michael.albinus@gmx.de>
26748
26749 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
26750 (xd_signature, xd_append_arg): Handle element type detection for
26751 empty arrays.
26752 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
26753 SDATA () calls; this must be solved more general.
26754 (Fdbus_register_signal): Use SBYTES instead of strlen.
26755
267562008-01-03 Magnus Henoch <magnus@zemdatav>
26757
26758 * dbusbind.c (xd_append_arg): Use unsigned char instead of
26759 unsigned int for byte values (necessary for big-endian platform).
26760 (Fdbus_call_method): Handle the case of no returned arguments.
26761
267622007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
26763
26764 * dbusbind.c (xd_read_message): Use non-static input_event struct.
26765
267662007-12-31 Magnus Henoch <mange@freemail.hu>
26767
26768 * dbusbind.c (xd_signature): Signature of variant is just "v".
26769
267702007-12-30 Michael Albinus <michael.albinus@gmx.de>
26771
26772 * dbusbind.c: Fix several errors and compiler warnings.
26773 Reported by Tom Tromey <tromey@redhat.com>.
26774 (XD_ERROR, XD_DEBUG_MESSAGE)
26775 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
26776 (xd_append_arg): Part for basic D-Bus types rewritten.
26777 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
26778 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
26779 appropriate.
26780 (xd_read_message): Return Qnil. Don't signal an error; it is not
26781 useful during event reading.
26782 (Fdbus_register_signal): Signal an error if the check for
26783 FUNCTIONP fails.
26784 (Fdbus_register_method): New function. The implementation is not
26785 complete, the call of the function signals an error therefore.
26786 (Fdbus_unregister_object): New function, renamed from
26787 Fdbus_unregister_signal. The initial check signals an error, if
26788 the object is not well formed.
26789
267902007-12-30 Richard Stallman <rms@gnu.org>
26791
26792 * textprop.c (get_char_property_and_overlay):
26793 Signal error if POSITION is out of range in a buffer.
26794
267952007-12-29 Martin Rudalics <rudalics@gmx.at>
26796
26797 * w32fns.c (Fx_create_frame): Make copy of frame parameters
26798 because the original parameters are in pure storage now.
26799
268002007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26801
26802 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
26803
268042007-12-22 Eli Zaretskii <eliz@gnu.org>
26805
26806 * callint.c (syms_of_callint) <command-history>: Add reference to
26807 history-length in the doc string.
26808
268092007-12-17 Jason Rumney <jasonr@gnu.org>
26810
26811 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
26812 before passing as wParam.
26813
268142007-12-22 Michael Albinus <michael.albinus@gmx.de>
26815
26816 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
26817 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
26818 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
26819 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
26820 as number.
26821 (Fdbus_call_method): Fix docstring.
26822
268232007-12-21 Michael Albinus <michael.albinus@gmx.de>
26824
26825 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
26826 New macros.
26827 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
26828 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
26829 Simplify.
26830 (xd_signature): New function.
26831 (xd_append_arg): Compute also signatures. Major rewrite.
26832 (xd_retrieve_arg): Make debug messages friendly.
26833 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
26834 Check for signatures of arguments.
26835
268362007-12-19 Michael Albinus <michael.albinus@gmx.de>
26837
26838 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
26839 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
26840 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
26841 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
26842 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
26843 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
26844 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
26845 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
26846 (xd_retrieve_value): Remove. Functionality included in ...
26847 (xd_append_arg): New function.
26848 (Fdbus_call_method, Fdbus_send_signal): Apply it.
26849
268502007-12-16 Michael Albinus <michael.albinus@gmx.de>
26851
26852 * dbusbind.c (top): Include <stdio.h>.
26853 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
26854 dbus_message_new_method_call and dbus_message_new_signal.
26855 (Fdbus_register_signal): Rename unique_name to uname.
26856 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
26857 non-existing unique name. Fix typos in matching rule. Return an
26858 object which is useful in Fdbus_unregister_signal.
26859 (Fdbus_unregister_signal): Reimplementation, in order to remove
26860 only the corresponding entry.
26861 (Vdbus_registered_functions_table): Change the order of entries.
26862 Apply these changes in xd_read_message and Fdbus_register_signal.
26863
268642007-12-16 Andreas Schwab <schwab@suse.de>
26865
26866 * fileio.c (Finsert_file_contents): Fix overflow check to not
26867 depend on undefined integer overflow.
26868
268692007-12-14 Jason Rumney <jasonr@gnu.org>
26870
26871 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
26872 for characters above 127.
26873
268742007-12-13 Jason Rumney <jasonr@gnu.org>
26875
26876 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
26877 before dereferencing array.
26878 (lookup_vk_code): Remove zero comparison.
26879
268802007-12-14 Michael Albinus <michael.albinus@gmx.de>
26881
26882 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
26883 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
26884 Use `unsigned int' instead of `uint'.
26885 (xd_read_message, Fdbus_register_signal): Split expressions into
26886 multiple lines before operators "&&" and "||", according to the
26887 GNU Coding Standards.
26888
268892007-12-14 Eli Zaretskii <eliz@gnu.org>
26890
26891 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
26892
268932007-12-12 Juri Linkov <juri@jurta.org>
26894
26895 * buffer.c (Frename_buffer): In interactive spec replace
26896 `read-buffer' with `read-string' that uses `buffer-name-history'
26897 as history, and the current buffer's name as default.
26898
268992007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
26900
26901 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
26902 manipulating the backtrace manually.
26903 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
26904 (struct backtrace, backtrace_list): Remove.
26905 (command_loop_1): Remove dead var `no_direct'.
26906
26907 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
26908 preserve non-built-in buffer-local variables.
26909 (Fkill_all_local_variables): Don't re-create&re-set permanent
26910 buffer-local variables.
26911
269122007-12-09 Juri Linkov <juri@jurta.org>
26913
26914 * buffer.c (Frename_buffer): Change interactive spec from "s" to
26915 Lisp code that uses `read-buffer' with current buffer as default.
26916
269172007-12-08 Michael Albinus <michael.albinus@gmx.de>
26918
26919 * dbusbind.c (xd_read_message): Generate an event for every
26920 registered handler. There might be several handlers registered
26921 for the same signal.
26922 (Fdbus_register_signal): Don't overwrite a registration for the
26923 same signal. Add a new registration if handlers are different.
26924 (Vdbus_registered_functions_table): Rework doc string.
26925
269262007-12-07 Michael Albinus <michael.albinus@gmx.de>
26927
26928 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
26929 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
26930 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
26931 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
26932 Unify argument lists.
26933 (xd_read_message, Fdbus_register_signal): Reorder and extend event
26934 arguments and hash table keys. Use unique name for service.
26935 (Fdbus_unregister_signal): Remove checks.
26936 (Vdbus_registered_functions_table): Fix doc string.
26937
269382007-12-05 Magnus Henoch <mange@freemail.hu>
26939
26940 * process.c (make_process): Initialize pty_flag to 0.
26941
269422007-12-05 Jason Rumney <jasonr@gnu.org>
26943
26944 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
26945 specified XBMs.
26946
269472007-12-05 Richard Stallman <rms@gnu.org>
26948
26949 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
26950
269512007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26952
26953 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
26954 New variable.
26955 (mac_try_close_socket) [MAC_OSX]: New function.
26956 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
26957 Update cfsockets_for_select. Replace invalid CFRunLoop source.
26958
26959 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
26960 Use mac_try_close_socket.
26961
269622007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26963
26964 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
26965 reloc_base.
26966 (copy_dysymtab): Compute relocation base here.
26967 (rebase_reloc_address) [__ppc64__]: New function.
26968 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
26969 changed.
26970
269712007-12-05 Jason Rumney <jasonr@gnu.org>
26972
26973 * w32proc.c (sys_spawnve): Quote args with wildcards.
26974
269752007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26976
26977 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
26978 __objc_* sections.
26979 (unrelocate) [_LP64]: Set relocation base to address of data segment.
26980
269812007-12-05 Michael Albinus <michael.albinus@gmx.de>
26982
26983 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
26984 Move check for Vdbus_registered_functions_table to
26985 xd_read_queued_messages.
26986 (xd_read_queued_messages): Protect xd_read_message calls by
26987 internal_condition_case_1.
26988
269892007-12-04 Michael Albinus <michael.albinus@gmx.de>
26990
26991 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
26992 Qdbus_system_bus and Qdbus_session_bus, respectively.
26993 (Vdbus_intern_symbols): Remove.
26994 (Vdbus_registered_functions_table): New hash table.
26995 (XD_SYMBOL_INTERN_SYMBOL): Remove.
26996 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
26997 Rewrite in order to manage registered functions by hash table
26998 Vdbus_registered_functions_table.
26999
270002007-12-03 Jan Djärv <jan.h.d@swipnet.se>
27001
27002 * xterm.c: Update URL to Window Manager Specification in comment.
27003
270042007-12-02 Michael Albinus <michael.albinus@gmx.de>
27005
27006 * config.in (HAVE_DBUS): Add.
27007
27008 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
27009 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
27010 (obj): Add $(DBUS_OBJ).
27011 (LIBES): Add $(DBUS_LIBS).
27012 (dbusbind.o): New target.
27013
27014 * dbusbind.c: New file.
27015
27016 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
27017
27018 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
27019 (Qdbus_event): New Lisp symbol.
27020 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
27021 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 27022 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
27023
27024 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
27025
270262007-12-01 Richard Stallman <rms@gnu.org>
27027
27028 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
27029
270302007-11-30 Jason Rumney <jasonr@gnu.org>
27031
27032 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
27033 (w32con_reset_terminal_modes): Clear screen buffer.
27034 (w32_face_attributes): Don't use color indexes that are out of range.
27035 Only reverse the default colors.
27036
27037 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
27038 WINDOWSNT.
27039
27040 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
27041
270422007-11-29 Jason Rumney <jasonr@gnu.org>
27043
27044 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
27045 (w32_face_attributes): Use Vtty_defined_color_alist to determine
27046 if the terminal colors are initialized.
27047 (unspecified_fg, unspecified_bg): Remove unused declarations.
27048
270492007-11-29 Andreas Schwab <schwab@suse.de>
27050
27051 * keyboard.c (apply_modifiers): Fix typo.
27052
270532007-11-29 Richard Stallman <rms@gnu.org>
27054
27055 * keymap.c (Fcurrent_local_map): Doc fix.
27056
270572007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
27058
27059 * s/gnu-kfreebsd.h: New file.
27060
270612007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
27062
27063 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
27064 Don't cast redundantly.
27065
27066 * keyboard.c (KEY_TO_CHAR): New macro.
27067 (parse_modifiers, apply_modifiers): Accept integer arguments.
27068 (read_key_sequence): Use them to unify the "shift->unshift" mapping
27069 for chars and symbol keys.
27070 After doing such remapping, apply function-key-map again.
27071
270722007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
27073
27074 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
27075 compiled anymore.
27076
270772007-11-26 Andreas Schwab <schwab@suse.de>
27078
27079 * process.c (list_processes_1): Fix indentation level of the
27080 command column.
27081
270822007-11-23 Andreas Schwab <schwab@suse.de>
27083
27084 * editfns.c (Fformat): Handle %c specially since it requires the
27085 argument to be of type int.
27086
270872007-11-23 Markus Triska <markus.triska@gmx.at>
27088
27089 * emacs.c (main): Call init_editfns before init_process, since
27090 init_process sets Vprocess_connection_type depending on OS release.
27091
270922007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
27093
27094 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
27095 (find_symbol_value): Use do_symval_forwarding.
27096
27097 * data.c (set_internal): Set the value in the `cons-cell' (for
27098 Buffer_Local_values) not only for frame-local variables.
27099
271002007-11-22 Andreas Schwab <schwab@suse.de>
27101
27102 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
27103 values to sprintf.
27104 * keymap.c (Fsingle_key_description): Likewise.
27105 * print.c (print_object): Likewise.
27106
271072007-11-22 Jan Djärv <jan.h.d@swipnet.se>
27108
27109 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
27110 file for image is nil.
27111
271122007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
27113
27114 * term.c: Include stdarg.h.
27115 (fatal): Implement using varargs.
27116 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
27117
271182007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
27119
27120 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
27121 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
27122 Update call to buffer_slot_type_mismatch.
27123 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
27124 (buffer_slot_type_mismatch): Update.
27125 * buffer.c (buffer_local_types): Remove.
27126 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
27127 (defvar_per_buffer): Set the type in the buffer_objfwd.
27128
271292007-11-21 Jason Rumney <jasonr@gnu.org>
27130
27131 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
27132 CreateFileMapping returns NULL on failure.
27133
271342007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
27135
27136 * search.c (Fset_match_data): Remove the `evaporate' feature.
27137 (unwind_set_match_data): Don't use the `evaporate' feature.
27138
271392007-11-21 Jason Rumney <jasonr@gnu.org>
27140
27141 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
27142
27143 * w32console.c (w32con_write_glyphs): Remove unused variables.
27144
271452007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
27146
27147 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
27148
27149 * s/darwin.h (MULTI_KBOARD): Remove.
27150
27151 * macfns.c (x_create_tip_frame, Fx_create_frame)
27152 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
27153
271542007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
27155
27156 * buffer.c (Fbuffer_local_value): Remove redundant test.
27157 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
27158 than in `current-buffer' to match the comment.
27159 Do the swap using swap_in_global_binding.
27160
27161 * data.c (store_symval_forwarding, set_internal):
27162 * eval.c (specbind): Remove dead code.
27163
27164 * coding.c (detect_coding, Fupdate_coding_systems_internal):
27165 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
27166 Since we do not want to see internal Lisp_*fwd objects here.
27167
271682007-11-18 Jan Djärv <jan.h.d@swipnet.se>
27169
27170 * sysdep.c (init_system_name): Use getaddrinfo if available.
27171
27172 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
27173 (x_scroll_bar_note_movement): start, end, with, height in struct
27174 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
27175
271762007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
27177
27178 * puresize.h (BASE_PURESIZE): Increase to 1190000.
27179
271802007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
27181
27182 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
27183 This undoes Richard's change of 14-Oct-2002.
27184
27185 * alloc.c (allocate_other_vector):
27186 * lisp.h (allocate_other_vector): Remove.
27187
27188 * window.c (struct save_window_data): Move non-lisp data to the end
27189 and make it `int' rather than Lisp_Object.
27190 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
27191 Done wrap/unwrap integer values.
27192 (Fset_window_configuration, compare_window_configurations):
27193 Update use of fields to their new types.
27194
27195 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
27196 Turn integer fields into `int'. Merge x_window_low and x_window_high.
27197 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
27198 (SET_SCROLL_BAR_X_WINDOW): Remove.
27199 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
27200 Access the new x_window field directly.
27201 * xterm.c (x_scroll_bar_create): Use a pseudovector.
27202 Don't wrap/unwrap integers into Lisp_Objects.
27203 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
27204 (x_scroll_bar_report_motion):
27205 Don't wrap/unwrap integers into Lisp_Objects.
27206 (x_term_init): Use SDATA.
27207 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
27208 (x_scroll_bar_set_handle, x_scroll_bar_remove)
27209 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
27210 (x_scroll_bar_report_motion, x_scroll_bar_clear):
27211 * xfns.c (x_set_background_color):
27212 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
27213 Access the new x_window field directly.
27214
27215 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
27216 (allocate_pseudovector): Make non-static.
27217
27218 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
27219 (allocate_pseudovector): Declare.
27220 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
27221
272222007-11-15 Andreas Schwab <schwab@suse.de>
27223
27224 * editfns.c (Fformat): Correctly format EMACS_INT values.
27225 Also take precision into account when formatting an integer.
27226
27227 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
27228
272292007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
27230
27231 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
27232 (syms_of_keyboard): Defsubr it.
27233
27234 * data.c (swap_in_global_binding): Fix longstanding bug where
27235 store_symval_forwarding was not called with the right second argument,
27236 thus causing objfwd-ing from being dropped.
27237
272382007-11-14 Juanma Barranquero <lekktu@gmail.com>
27239
27240 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
27241 (Fx_display_pixel_height, Fx_display_planes)
27242 (Fx_display_color_cells, Fx_server_max_request_size)
27243 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
27244 (Fx_display_visual_class, Fx_display_save_under):
27245 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
27246 (Fx_display_pixel_height, Fx_display_planes)
27247 (Fx_display_color_cells, Fx_server_max_request_size)
27248 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
27249 (Fx_display_mm_height, Fx_display_mm_width)
27250 (Fx_display_backing_store, Fx_display_visual_class)
27251 (Fw32_select_font, Fx_display_save_under):
27252 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
27253 (Fx_display_pixel_height, Fx_display_planes)
27254 (Fx_display_color_cells, Fx_server_max_request_size)
27255 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
27256 (Fx_display_save_under): Fix typos in docstrings.
27257
272582007-11-14 Juanma Barranquero <lekktu@gmail.com>
27259
27260 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
27261 corresponding to deleted entries; they are an implementation detail.
27262 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
27263 Remove variables.
27264 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
27265 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
27266 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
27267 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
27268 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
27269 (Fw32_define_rgb_color, Fw32_load_color_file)
27270 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
27271 Fix typos in docstrings.
27272 (Fx_server_version): Reflow docstring.
27273 (Fw32_shell_execute): Doc fixes.
27274
272752007-11-13 Juanma Barranquero <lekktu@gmail.com>
27276
27277 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
27278 if w32_parse_hot_key returned nil.
27279
272802007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
27281
27282 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
27283
272842007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 27285
aac0c6e3
MR
27286 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
27287
27288 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
27289
27290 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
27291 Remove W32_SCROLL_BAR_CLICK_EVENT.
27292
27293 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
27294 Add MULTIMEDIA_KEY_EVENT.
27295
27296 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
27297 (lispy_multimedia_keys) [WINDOWSNT]: New array.
27298 (make_lispy_event) [WINDOWSNT]: Use it to translate
27299 MULTIMEDIA_KEY_EVENT.
27300
27301 * w32term.h (WM_APPCOMMAND): Define if not already.
27302 (GET_APPCOMMAND_LPARAM): Likewise.
27303
27304 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
27305 WM_APPCOMMAND.
27306
27307 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
27308 (syms_of_w32fns): Export and initialize it.
27309 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
27310
273112007-11-09 Chong Yidong <cyd@stupidchicken.com>
27312
27313 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
27314 twice.
27315
27316 * xdisp.c (handle_face_prop): Fix last change.
27317
273182007-11-09 Richard Stallman <rms@gnu.org>
27319
27320 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
27321 not just for after-strings and before-strings.
27322 Call face_for_overlay_string and pass the overlay to it.
27323 (handle_display_prop): Determine whether property came from an overlay.
27324 Pass OVERLAY arg to handle_single_display_spec.
27325 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
27326 (load_overlay_strings): Fill in it->string_overlays.
27327 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
27328
27329 * xfaces.c (face_for_overlay_string): Function renamed from
27330 face_at_buffer_position_no_overlays, and add arg OVERLAY.
27331
27332 * dispextern.h (struct it): New elt string_overlays.
27333 New elt from_overlay, also in stack.
27334 Rearrange a few elements.
27335 (face_for_overlay_string): Decl renamed from
27336 face_at_buffer_position_no_overlays, and add argument.
27337
273382007-11-09 Richard Stallman <rms@gnu.org>
27339
27340 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
27341 to get the base face for an overlay string.
27342
27343 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
27344
27345 * xfaces.c (face_at_buffer_position_no_overlays): New function.
27346
27347 * xdisp.c (handle_stop): Move some code out of loop.
27348
273492007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27350
27351 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
27352 Fix conversion from Lisp object to ATSUFontID.
27353
273542007-11-09 Jason Rumney <jasonr@gnu.org>
27355
27356 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
27357
273582007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27359
27360 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
27361 Don't assume regions are aligned to page boundary.
27362 (print_load_command_name): Add LC_UUID if defined.
27363
273642007-11-09 Richard Stallman <rms@gnu.org>
27365
27366 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
27367
273682007-11-07 Jason Rumney <jasonr@gnu.org>
27369
27370 * s/windows95.h: Remove.
27371
273722007-11-06 Jan Djärv <jan.h.d@swipnet.se>
27373
27374 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
27375 abort with a message on unhandled store_type values.
27376
273772007-11-01 Jan Djärv <jan.h.d@swipnet.se>
27378
27379 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
27380 Remove HAVE_X11R5 and HAVE_X11R4.
27381
273822007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
27383
27384 * Makefile.in: Remove references to sunfns.c and sunfns.o.
27385
273862007-11-01 Johan Bockgård <bojohan@gnu.org>
27387
27388 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
27389 Don't set s->stippled_p here, since it has already been set by
27390 x_set_glyph_string_gc from x_draw_glyph_string.
27391
273922007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
27393
27394 * sunfns.c: Remove file.
27395
27396 * m/sun386.h:
27397 * m/sun2.h:
27398 * m/sparc.h: Remove Sun windows code.
27399
274002007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
27401
27402 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
27403 (init_keyboard): Set current_kboard's window-system to nil.
27404 (tty_read_avail_input): Typo.
27405 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
27406
274072007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
27408
27409 * s/usg5-4.h:
27410 * s/usg5-3.h:
27411 * s/ptx.h:
27412 * m/is386.h:
27413 * m/ibmps2-aix.h:
27414 * Makefile.in: Remove all mentions of X10.
27415
27416 * dispnew.c (syms_of_display): Don't mention version 10.
27417
274182007-10-28 Juanma Barranquero <lekktu@gmail.com>
27419
27420 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
27421 ($(BLD)/abbrev.$(O)): Remove.
27422
274232007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
27424
27425 Rewrite abbrev.c in Elisp.
27426 * image.c (Qcount): Don't declare as extern.
27427 (syms_of_image): Initialize and staticpro `Qcount'.
27428 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
27429 * emacs.c (main): Don't call syms_of_abbrev.
27430 * Makefile.in (obj): Remove abbrev.o.
27431 (abbrev.o): Remove.
27432 * abbrev.c: Remove.
27433
274342007-10-26 Martin Rudalics <rudalics@gmx.at>
27435
27436 * window.c (window_min_size_2): Don't count header-line.
27437
274382007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
27439
27440 * frame.h (struct frame): Move all bit fields after the first bit
27441 field to take advantage of the available space. Group all the
27442 chars together to reduce wasted space due to padding.
27443
274442007-10-26 Juanma Barranquero <lekktu@gmail.com>
27445
27446 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
27447
27448 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
27449 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
27450 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
27451 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
27452 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
27453 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
27454 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
27455 (last_marked, mark_object_loop_halt): Make static.
27456
27457 * frame.c (syms_of_frame) <delete-frame-functions>:
27458 Fix typo in docstring.
27459
274602007-10-25 Juanma Barranquero <lekktu@gmail.com>
27461
27462 * w32.c (init_environment): Fix tiny memory leak.
27463 (w32_get_resource): Remove unused variable `ok'.
27464
274652007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
27466
27467 Make `window-system' into a keyboard-local variable (rather than
27468 frame-local as done originally by multi-tty).
27469
27470 * keyboard.h (struct kboard): Add Vwindow_system.
27471 * keyboard.c (init_kboard): Set a default for Vwindow_system.
27472 (mark_kboards): Mark Vwindow_system.
27473
27474 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
27475 (init_display): Don't set the obsolete `window-system' frame-param.
27476
27477 * xterm.c (x_term_init):
27478 * w32term.c (w32_create_terminal):
27479 * term.c (init_tty): Set Vwindow_system.
27480 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
27481 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
27482
27483 * xfns.c (Fx_create_frame, x_create_tip_frame):
27484 * w32fns.c (Fx_create_frame, x_create_tip_frame):
27485 * macfns.c (Fx_create_frame):
27486 Don't set the obsolete `window-system' frame-param.
27487
27488 * frame.h (Qwindow_system): Remove.
27489 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
27490 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
27491
274922007-10-24 Richard Stallman <rms@gnu.org>
27493
27494 * frame.c (x_figure_window_size): For fullscreen case,
27495 set USPosition | PPosition without clobbering rest of window_prompting.
27496
27497 * keyboard.c (Fcurrent_idle_time): Doc fix.
27498
27499 * print.c (Fwith_output_to_temp_buffer): Doc fix.
27500
275012007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
27502
27503 * process.c (unwind_request_sigio): Only define if __ultrix__.
27504
27505 * callproc.c (child_setup): Remove spurious *.
27506
27507 * lisp.h (Fget_text_property): Declare.
27508 (have_menus_p): Declare it here rather than in sys-dep header files.
27509 * macterm.h (have_menus_p):
27510 * msdos.h (have_menus_p):
27511 * xterm.h (have_menus_p): Remove.
27512
27513 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
27514 (Fmake_variable_frame_local): Just check the variable's const-ness
27515 rather than checking nil or t.
27516
275172007-10-22 Jason Rumney <jasonr@gnu.org>
27518
27519 * w32fns.c: Include math.h.
27520 (w32_abort): Declaration moved to nt/config.nt.
27521
27522 * s/ms-w32.h (HAVE_STDLIB_H): Define.
27523 (abort): Redefinition moved to nt/config.nt.
27524
27525 * m/windowsnt.h: Remove.
27526
275272007-10-22 Juanma Barranquero <lekktu@gmail.com>
27528
27529 * emacs.c (Fdump_emacs): Fix typo in message.
27530 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
27531 <installation-directory>: Reflow docstring.
27532
275332007-10-22 Juri Linkov <juri@jurta.org>
27534
27535 * minibuf.c: Allow minibuffer default to be a list of default values.
27536 With empty input use the first element of this list as returned default.
27537 (string_to_object)
27538 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
27539 (read_minibuf): If defalt is cons, set histstring to its car.
27540 (Fread_string): If default_value is cons, set val to its car.
27541 (Fread_buffer): If def is cons, use its car.
27542 (Fcompleting_read): If defalt is cons, set val to its car.
27543
275442007-10-21 Michael Albinus <michael.albinus@gmx.de>
27545
27546 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
27547
275482007-10-20 Juanma Barranquero <lekktu@gmail.com>
27549
27550 * doc.c (Fdocumentation): Check for advice in all cases.
27551
275522007-10-19 Chong Yidong <cyd@stupidchicken.com>
27553
27554 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
27555
275562007-10-19 Richard Stallman <rms@gnu.org>
27557
27558 * doc.c (Fdocumentation): Check for and handle an advised function.
27559
275602007-10-19 Juanma Barranquero <lekktu@gmail.com>
27561
27562 * process.c (Fset_process_filter): Doc fix.
27563
275642007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
27565
27566 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
27567 which caused key-translation-map to applied repeatedly (thus breaking
27568 double-mode).
27569
275702007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
27571
27572 * xselect.c (x_own_selection, x_handle_selection_clear)
27573 (x_clear_frame_selections):
27574 * w32menu.c (list_of_panes, list_of_items):
27575 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
27576 * textprop.c (validate_plist, interval_has_all_properties)
27577 (interval_has_some_properties, interval_has_some_properties_list)
27578 (add_properties, text_property_list):
27579 * process.c (Fget_buffer_process, list_processes_1, status_notify):
27580 * minibuf.c (Fassoc_string):
27581 * macselect.c (x_own_selection, x_clear_frame_selections)
27582 (Fx_disown_selection_internal):
27583 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
27584 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
27585
275862007-10-17 Chong Yidong <cyd@stupidchicken.com>
27587
27588 * process.c: Link to libs for calling res_init() if available.
27589 (Fmake_network_process): Call res_init() before getaddrinfo or
27590 gethostbyname, if possible.
27591
275922007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
27593
27594 * lread.c (read1): Set pvectype for char_tables.
27595
27596 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
27597 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
27598 Add type checks.
27599 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
27600
27601 * alloc.c (free_misc): Use XMISCTYPE.
27602 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
27603
276042007-10-17 Glenn Morris <rgm@gnu.org>
27605
27606 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
27607 (syms_of_minibuf): Add Qcompletion_ignore_case.
27608 * dired.c (Qcompletion_ignore_case): Change to external.
27609 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
27610 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
27611 (Fread_file_name): Use it rather than intern'ing.
27612
27613 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
27614 (Fread_coding_system): Ignore case of user input.
27615
276162007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27617
27618 * xdisp.c (handle_display_prop): Ignore display specs after
27619 replacing one when string text is being replaced.
27620 (handle_single_display_spec): Pretend as if characters with display
27621 property haven't been consumed only when buffer text is being replaced.
27622
276232007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
27624
27625 * xfns.c (Fx_create_frame, Fx_display_list):
27626 * window.c (window_fixed_size_p, enlarge_window)
27627 (shrink_window_lowest_first):
27628 * macterm.c (init_font_name_table):
27629 * macfns.c (Fx_create_frame, Fx_display_list):
27630 * lread.c (close_load_descs):
27631 * keyboard.c (read_char_x_menu_prompt):
27632 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
27633 * coding.c (code_convert_region_unwind): Test the type of an object
27634 rather than just !NILP before extracting data from it.
27635
27636 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
27637
27638 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
27639 (XMISCANY): New macro.
27640 (XMISCTYPE): Use it.
27641 (struct Lisp_Misc_Any): New type.
27642 (union Lisp_Misc): Use it.
27643 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
27644 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
27645 (find_symbol_value, set_internal, default_value, Fset_default)
27646 (Fmake_variable_buffer_local, Fmake_local_variable)
27647 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
27648 (Flocal_variable_if_set_p, Fvariable_binding_locus):
27649 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
27650 * alloc.c (allocate_buffer): Set the size and tag.
27651 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
27652 Use XMISCANY.
27653 (die): Follow the GNU convention for error messages.
27654 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
27655 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
27656 tag any more.
27657 (set_buffer_internal_1):
27658 * frame.c (store_frame_param):
27659 * eval.c (specbind):
27660 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
27661
27662 * doc.c (Fsnarf_documentation): Simplify.
27663
276642007-10-14 Juanma Barranquero <lekktu@gmail.com>
27665
27666 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
27667 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
27668
276692007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
27670
27671 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
27672
276732007-10-14 Juanma Barranquero <lekktu@gmail.com>
27674
27675 * eval.c (do_autoload): Don't save autoloads.
27676
27677 * data.c (Ffset): Save autoload of the function being set.
27678
276792007-10-07 John Paul Wallington <jpw@pobox.com>
27680
27681 * xfns.c (x_create_tip_frame): Set the `display-type' frame
27682 parameter before setting up faces.
27683
276842007-10-13 Eli Zaretskii <eliz@gnu.org>
27685
27686 * ccl.c (Fregister_code_conversion_map):
27687 * keyboard.c (append_tool_bar_item): Reformat last change.
27688
27689 * lisp.h (eabs): Rename from `abs'. All callers changed.
27690
276912007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
27692
27693 * buffer.c (add_overlay_mod_hooklist):
27694 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
27695 * fontset.c (make_fontset):
27696 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
27697 (append_tool_bar_item):
27698 * macmenu.c (grow_menu_items):
27699 * w32menu.c (grow_menu_items):
27700 * xmenu.c (grow_menu_items): Use larger_vector.
27701
277022007-10-13 Eli Zaretskii <eliz@gnu.org>
27703
27704 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
27705 selected frame'' on MSDOS).
27706
277072007-10-12 Martin Rudalics <rudalics@gmx.at>
27708
27709 * frame.c (Qexplicit_name): New variable.
27710 (x_report_frame_params): Report it in parameter alist.
27711 (syms_of_frame): Intern and staticpro it.
27712
277132007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
27714
27715 * macfns.c (x_create_tip_frame): Set terminal for frame.
27716
277172007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
27718
27719 * frame.c (Qenvironment): Remove.
27720 (syms_of_frame) <Qenvironment>: Don't initialize.
27721 (Fdelete_frame): Don't treat the `environment' param specially.
27722 * frame.h (Qenvironment): Don't declare.
27723 * callproc.c (set_initial_environment): Don't set unused frame param.
27724
27725 * frame.c (Fframe_with_environment): Remove.
27726 (syms_of_frame) <Sframe_with_environment>: Don't declare.
27727
27728 * lisp.h (Fframe_with_environment): Don't declare.
27729
277302007-10-10 Juanma Barranquero <lekktu@gmail.com>
27731
27732 * indent.c (indent_tabs_mode, last_known_column)
27733 (last_known_column_modified): Make static.
27734 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
27735
277362007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
27737
27738 * puresize.h (BASE_PURESIZE): Increase to 1170000.
27739
277402007-10-09 Jason Rumney <jasonr@gnu.org>
27741
27742 * w32term.c (x_set_window_size): Disable code that attempts to tell
27743 Lisp code about a size change before it actually happens.
27744
277452007-10-09 Richard Stallman <rms@gnu.org>
27746
27747 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
27748 return HANDLED_RETURN.
27749
277502007-10-08 Martin Rudalics <rudalics@gmx.at>
27751
27752 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
27753 when there's an unread command event.
27754
27755 * frame.c (focus_follows_mouse): Move here from frame.el to allow
27756 window autoselection act appropriately when leaving selected frame.
27757 (syms_of_frame): Initialize focus_follows_mouse.
27758 * frame.h (focus_follows_mouse): Extern it.
27759 * macterm.c (XTread_socket): When focus_follows_mouse is nil
27760 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
27761 * msdos.c (dos_rawgetc): Likewise.
27762 * w32term.c (w32_read_socket): Likewise.
27763 * xterm.c (handle_one_xevent): Likewise.
27764 * xdisp.c (syms_of_xdisp): In doc-string of
27765 mouse-autoselect-window mention focus-follows-mouse.
27766
277672007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27768
27769 * macterm.c (mac_load_query_font): Fix missing return value.
27770 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
27771 Add BLOCK_INPUT.
27772
277732007-10-08 Richard Stallman <rms@gnu.org>
27774
27775 * xdisp.c (get_window_cursor_type): Implement documented behavior
27776 for cursor-in-non-selected-windows = t.
27777
277782007-10-08 Jason Rumney <jasonr@gnu.org>
27779
27780 * w32.c (w32_get_resource): Always close registry keys.
27781
277822007-10-08 Jason Rumney <jasonr@gnu.org>
27783
27784 * makefile.w32-in (LIBS): Add COMCTL32.
27785
27786 * w32fns.c (globals_of_w32fns): Init common controls.
27787
277882007-10-08 Richard Stallman <rms@gnu.org>
27789
27790 * image.c (our_memory_buffer): Rename from omfib_buffer.
27791
277922007-10-08 Richard Stallman <rms@gnu.org>
27793
27794 * buffer.c (Foverlays_at): Doc fix.
27795
277962007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
27797
27798 * fns.c (Fplist_put): Preserve uneven tail data.
27799
278002007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
27801
27802 * termhooks.h (enum event_kind): Remove trailing comma.
27803
27804 * frame.h (enum): Remove trailing comma.
27805
278062007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
27807
27808 * w32proc.c (delete_child): Don't terminate threads of zombies.
27809
278102007-10-08 Martin Rudalics <rudalics@gmx.at>
27811
27812 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
27813
27814 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
27815 last-repeatable-command.
27816 (init_kboard): Initialize Vlast_repeatable_command.
27817 (command_loop_1): Set it to real_this_command unless that was
27818 bound to an input event.
27819 (mark_kboards): Mark it.
27820
278212007-10-08 Richard Stallman <rms@gnu.org>
27822
27823 * eval.c (condition-case): Doc fix.
27824
278252007-10-08 Masatake YAMATO <jet@gyve.org>
27826
27827 * xfaces.c (tty_supports_face_attributes_p): Fix code
27828 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
27829 was copied and not edited.
27830
278312007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
27832
27833 Add new `input-decode-map' keymap and use it for terminal
27834 escape sequences.
27835 * keyboard.h (struct kboard): Add Vinput_decode_map.
27836 Remove Vlocal_key_translation_map.
27837 * keyboard.c (read_key_sequence): Add support for input-decode-map.
27838 (init_kboard): Init input-decode-map.
27839 Replace local-key-translation-map back with key-translation-map.
27840 (syms_of_keyboard): Declare input-decode-map.
27841 Remove local-key-translation-map. Update docstrings.
27842 (mark_kboards): Mark Vinput_decode_map.
27843 Don't mark Vlocal_key_translation_map.
27844 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
27845 Replace local-key-translation-map back with key-translation-map.
27846 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
27847 Bind in input-decode-map rather than function-key-map.
27848
27849 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
27850 This was made redundant by the previous introduction of XSETPVECTYPE.
27851
278522007-10-09 Richard Stallman <rms@gnu.org>
27853
27854 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
27855
278562007-09-29 Richard Stallman <rms@gnu.org>
27857
27858 * eval.c (internal_condition_case_2, internal_condition_case_1)
27859 (internal_condition_case): Reenable abort if x_catching_errors ()
27860 to see if that really happens and why.
27861
278622007-10-06 Andreas Schwab <schwab@suse.de>
27863
27864 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
27865
278662007-10-04 Juanma Barranquero <lekktu@gmail.com>
27867
27868 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
27869
278702007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
27871
27872 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
27873
278742007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
27875
27876 * window.h (struct window):
27877 * window.c (struct save_window_data, struct saved_window):
27878 * termhooks.h (struct terminal):
27879 * process.h (struct Lisp_Process):
27880 * frame.h (struct frame):
27881 * buffer.h (struct buffer):
27882 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
27883 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
27884 The size field of (pseudo)vectors is now unsigned.
27885 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
27886
27887 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
27888 Turn `count' into an integer.
27889
27890 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
27891 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
27892 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
27893 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
27894 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
27895
27896 * alloc.c (allocate_pseudovector): New fun.
27897 (ALLOCATE_PSEUDOVECTOR): New macro.
27898 (allocate_window, allocate_terminal, allocate_frame)
27899 (allocate_process): Use it.
27900 (mark_vectorlike): New function.
27901 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
27902 (mark_terminals): Use it.
27903 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
27904 (Fmake_byte_code): Use XSETPVECTYPE.
27905
27906 * frame.c (Fframe_parameters): Minor simplification.
27907
27908 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
27909
27910 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
27911
27912 * buffer.c (Fget_buffer_create, init_buffer_once):
27913 * lread.c (defsubr):
27914 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
27915
27916 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
27917 defined differently in the m/*.h files.
27918 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
27919 (XSETPVECTYPE): New macro.
27920 (XSETPSEUDOVECTOR): Use it.
27921
27922 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
27923 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
27924
27925 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
27926 * lread.c (defvar_per_buffer):
27927 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
27928
27929 * window.c (candidate_window_p): Only consider as visible frames that
27930 are on the same terminal.
27931
27932 * m/ibms390x.h (MARKBIT): Remove unused macro.
27933
279342007-10-01 Juanma Barranquero <lekktu@gmail.com>
27935
27936 * lread.c (Fload): Fix typo in docstring.
27937
279382007-10-01 Michaël Cadilhac <michael@cadilhac.name>
27939
27940 * floatfns.c (Fexpt): Manually check for overflows, so that a power
27941 of a non-zero value can't yield zero.
27942
279432007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
27944
27945 * term.c (term_clear_mouse_face, term_mouse_highlight)
27946 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
27947
27948 * print.c (safe_debug_print): Use XHASH.
27949
27950 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
27951 Lisp elements such as tags.
27952 (XHASH): New macro.
27953 (EQ): Use it.
27954 (SREF, SSET, STRING_COPYIN): Use SDATA.
27955 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
27956
27957 * alloc.c (mark_terminal): Remove left-over declaration.
27958 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
27959 (allocate_vectorlike): Remove type argument. Adjust callers.
27960 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
27961 Only handle the one remaining MEM_TYPE_VECTORLIKE.
27962
27963 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
27964 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
27965 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
27966 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
27967 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
27968 Use them.
27969
27970 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
27971 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
27972 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
27973
279742007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
27975
27976 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
27977 loaded by default.
27978
279792007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
27980
27981 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
27982 on this tty.
27983 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
27984
27985 * term.c (mouse_face_window): Rename from Qmouse_face_window.
27986 Update all users.
27987 (handle_one_term_event): Use Gpm_DrawPointer.
27988 (Fgpm_mouse_start): Rename from Fterm_open_connection.
27989 Signal errors instead of returning nil. Always return nil.
27990 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
27991 Make it a noop if gpm-mouse was not activated.
27992 (syms_of_term): Update names.
27993
279942007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
27995
27996 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
27997 (init_sys_modes): Check that gpm_tty is the current tty.
27998
27999 * alloc.c (allocate_terminal): Set the vector size to only count the
28000 lisp fields. Initialize those to nil.
28001 (mark_object): Don't treat terminals specially.
28002 (mark_terminal): Remove.
28003 (mark_terminals): Use mark_object instead.
28004
28005 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
28006 the GC to the beginning.
28007
28008 * indent.h:
28009 * indent.c: Use EMACS_INT for ints coming from Elisp data.
28010
28011 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
28012
280132007-09-25 Jason Rumney <jasonr@gnu.org>
28014
28015 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
28016
28017 * w32console.c (create_w32cons_output): Remove.
28018
28019 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
28020
28021 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
28022 (reset_sys_modes): Use reset_terminal_modes_hook.
28023
280242007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
28025
28026 * eval.c (do_autoload): Don't output any message.
28027
280282007-09-24 Juri Linkov <juri@jurta.org>
28029
28030 * emacs.c (standard_args): Change priority of "--no-splash"
28031 from 40 to 3. Add "--no-desktop" with the same priority.
28032
280332007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
28034
28035 * alloc.c (gc_sweep): Check cons cell mark bits word by word
28036 and optimize the case where they are all 1.
28037
280382007-09-23 Johannes Weiner <hannes@saeurebad.de>
28039
28040 * lisp.h (abs): Define if not defined.
28041 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
28042 Don't define `abs', since it's defined in lisp.h.
28043
280442007-09-22 Eli Zaretskii <eliz@gnu.org>
28045
28046 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
28047 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
28048 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
28049 (init_tty): Use DEV_TTY instead of "/dev/tty".
28050 [WINDOWSNT]: No need to protect from NAME arg being null.
28051
280522007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
28053
28054 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
28055 up the tty state.
28056
280572007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
28058
28059 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
28060 (gpm_tty): Change its type.
28061 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
28062 (gpm_tty): Change its type and initialize it.
28063 (Fterm_open_connection): Check the frame is indeed a tty.
28064 Use the new gpm_tty.
28065 (Fterm_close_connection): Use the new gpm_tty.
28066 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
28067 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
28068
280692007-09-21 Juanma Barranquero <lekktu@gmail.com>
28070
28071 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
28072 underline_color, to draw strike-through.
28073
280742007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
28075
28076 * lisp.h (allocate_terminal): Declare.
28077
28078 * window.c (candidate_window_p): Consider frames that are being placed
28079 by the user as somewhere between visible and iconified.
28080 (window_loop): Prefer windows on the current frame.
28081 (Fselect_window): Move the use of select-frame to the beginning so we
28082 can just delegate all the work (it'll call us back anyway).
28083
28084 * frame.c (Qdisplay_environment_variable):
28085 * frame.h (Qdisplay_environment_variable): Delete.
28086
28087 * .gdbinit (xbacktrace): Print the arg's address rather than the value
28088 of the first arg, since that value may be a union.
28089
28090 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
28091 parameter rather than Qdisplay_environment_variable. If all else
28092 fails, look for DISPLAY in initial-environment.
28093
280942007-09-21 Glenn Morris <rgm@gnu.org>
28095
28096 * Makefile.in (emacstool): Remove target.
28097 (lisp, shortlisp): Remove termdev.elc.
28098
280992007-09-21 Markus Triska <markus.triska@gmx.at>
28100
28101 * xterm.c (x_delete_display): Compile session management conditionally.
28102
281032007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
28104
28105 * callproc.c (getenv_internal_1): New function.
28106 (getenv_internal): Use it.
28107 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
28108
28109 * terminal.c (get_terminal): Don't accept ints to represent terminals.
28110 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
28111 (Fset_terminal_parameter): Work with dead terminals as well.
28112 (Fmodify_terminal_parameters): Remove.
28113
28114 * terminal.c (get_terminal): Handle terminals.
28115 Make sure the terminal returned is live.
28116 (create_terminal): Use allocate_terminal.
28117 (mark_terminals): Move to alloc.c.
28118 (delete_terminal): Use terminal->name as liveness status.
28119 NULL out fields after freeing their contents.
28120 Don't deallocate the object.
28121 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
28122 rather than an int.
28123 (Fterminal_live_p): Accept non-integer arguments.
28124 (Fterminal_list): Return terminal objects rather than an ints.
28125
28126 * alloc.c (enum mem_type): New member for `terminal' objects.
28127 (allocate_terminal): New function.
28128 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
28129 Handle terminals.
28130 (mark_terminal): New fun.
28131 (mark_terminals): Move from terminal.c.
28132
28133 * term.c (get_tty_terminal): Don't treat output_initial specially.
28134 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
28135 (delete_tty): Use terminal->name as liveness status.
28136
28137 * termhooks.h (struct terminal): Make it into a pseudovector.
28138 Remove `deleted' replaced by checking `name's nullness.
28139
28140 * print.c (print_object): Handle terminals.
28141
28142 * lisp.h (enum pvec_type): New `terminal' pseudovector.
28143 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
28144
28145 * frame.c (make_terminal_frame):
28146 * keyboard.c (tty_read_avail_input):
28147 * w32term.c (x_delete_terminal):
28148 * xfns.c (Fx_create_frame, x_create_tip_frame):
28149 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
28150
281512007-09-20 Glenn Morris <rgm@gnu.org>
28152
28153 * process.c (Fmake_network_process): Doc fix.
28154
281552007-09-19 Jason Rumney <jasonr@gnu.org>
28156
28157 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
28158
281592007-09-19 Michaël Cadilhac <michael@cadilhac.name>
28160
28161 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
28162 Fix a C warning regarding variable constness.
28163
28164 * xterm.c (handle_one_xevent): Fix a C warning.
28165
281662007-09-18 Jason Rumney <jasonr@gnu.org>
28167
28168 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
28169
281702007-09-17 Jan Djärv <jan.h.d@swipnet.se>
28171
28172 * gtkutil.c (gdpy_def): New variable.
28173 (xg_initialize): Initialize gdpy_def.
28174 (xg_display_close): If no other display exists, set gdpy_def to a
28175 new connection.
28176
281772007-09-16 Jan Djärv <jan.h.d@swipnet.se>
28178
28179 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
28180 when we have no file name for the icon.
28181 (xg_tool_bar_expose_callback): Remove.
28182 (xg_create_tool_bar): Don't connect expose signal to
28183 xg_tool_bar_expose_callback.
28184 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
28185
281862007-09-16 Andreas Schwab <schwab@suse.de>
28187
28188 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
28189 values instead of zapping them.
28190
281912007-09-14 Glenn Morris <rgm@gnu.org>
28192
28193 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
28194 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
28195 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
28196 scope and rename to omfib_buffer for clarity.
28197 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
28198
281992007-09-14 Kenichi Handa <handa@m17n.org>
28200
28201 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
28202
282032007-09-13 Jason Rumney <jasonr@gnu.org>
28204
28205 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
28206
28207 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
28208
28209 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
28210 (mac_term_init): Call here instead, passing rif.
28211
282122007-09-13 Glenn Morris <rgm@gnu.org>
28213
28214 * s/hpux.h: No longer define `static' as nothing.
28215
282162007-09-13 Johan Bockgård <bojohan@gnu.org>
28217
28218 * callint.c (Fcall_interactively): Remove unused var `fun'.
28219
282202007-09-12 Romain Francoise <romain@orebokech.com>
28221
28222 * window.c (prefer_window_split_horizontally, display_buffer):
28223 Revert 2007-09-08 change.
28224
282252007-09-12 Glenn Morris <rgm@gnu.org>
28226
28227 * alloca.c: Remove file.
28228 * Makefile.in (alloca): Do not undef.
28229 (allocaobj, alloca.o): Remove.
28230 (otherobj): Remove allocaobj.
28231 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
28232 * regex.c (C_ALLOCA): Remove all references and code that was only
28233 used when this was defined.
28234 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
28235 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
28236 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
28237
28238 * Makefile.in (SOURCES, unlock, relock): Delete.
28239
28240 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
28241 (menu_grab_callback): All uses changed.
28242
28243 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
28244 (x_reply_selection_request): All uses changed.
28245
282462007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
28247
28248 * lread.c (load_warn_old_style_backquotes): Change message to look
28249 better when it appears in the middle of byte-compiler messages.
28250
282512007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
28252
28253 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
28254
28255 * xterm.c (x_create_terminal): Add comment.
28256
28257 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
28258
282592007-09-10 Richard Stallman <rms@gnu.org>
28260
28261 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
28262
282632007-09-10 Michaël Cadilhac <michael@cadilhac.name>
28264
28265 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
28266 (DEFUN): Document `intspec', use it instead of `prompt'.
28267
28268 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
28269
28270 * data.c (Finteractive_form): If the interactive specification starts
28271 with a `(', use it as a Lisp form.
28272
28273 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
28274 name and file modes.
28275
28276 * callint.c (Fcall_interactively): Comment fixes.
28277
282782007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
28279
28280 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
28281 and compiled functions.
28282
282832007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
28284
28285 * window.c (prefer_window_split_horizontally): New variable.
28286 (display_buffer): Consider splitting window horizontally depending
28287 on prefer_window_split_horizontally.
28288
282892007-09-08 Eli Zaretskii <eliz@gnu.org>
28290
28291 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
28292
282932007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
28294
28295 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
28296
28297 * frame.c (x_set_frame_parameters): Check number is positive before
28298 using XFASTINT.
28299
28300 * window.c (freeze_window_start): Don't presume selected_window holds
28301 a window object.
28302 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
28303
283042007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
28305
28306 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
28307
283082007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
28309
28310 * window.c (Vsplit_window_preferred_function): New var.
28311 (Fdisplay_buffer): Use it.
28312 (syms_of_window): Export, and initialize it.
28313
283142007-09-06 Pixel <pixel@mandriva.com> (tiny change)
28315
28316 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
28317
283182007-09-06 Glenn Morris <rgm@gnu.org>
28319
28320 * gtkutil.c (menu_grab_callback) <cnt>:
28321 * xselect.c (x_reply_selection_request) <cnt>: Move static
28322 variable to file scope.
28323
283242007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
28325
28326 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
28327 consistent values of selected_frame and selected_window.
28328
283292007-09-04 Jason Rumney <jasonr@gnu.org>
28330
28331 * w32console.c (initialize_w32_display): Zero unused hooks.
28332
283332007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
28334
28335 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
28336 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
28337
283382007-09-04 Jason Rumney <jasonr@gnu.org>
28339
28340 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
28341 in w32console.c. Set up input. Remove XXX comments that have been
28342 confirmed as correct.
28343
28344 * s/ms-w32.h (MULTI_KBOARD): Define.
28345
28346 * w32console.c (one_and_only_w32cons): Remove.
28347 (initialize_w32_display): Take terminal argument.
28348
28349 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
28350 initialize_w32_display.
28351 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
28352
28353 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
28354
28355 * keyboard.c (discard_mouse_events): Discard it.
28356 (make_lispy_event): Translate it to a lisp event.
28357 (lispy_wheel_names): Add wheel-left and right events.
28358 (syms_of_keyboard): Enlarge wheel_syms.
28359
28360 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
28361 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
28362
28363 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
28364
28365 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
28366 from WM_MOUSEHWHEEL.
28367 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
28368
28369 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
28370 terminal.
28371
28372 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
28373 keyboard for the terminal.
28374
283752007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
28376
28377 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
28378 (Vresume_tty_hook): Rename from Vresume_tty_functions.
28379 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
28380 and resume-tty-function to resume-tty-hook.
28381 (Fsuspend_tty, Fresume_tty): Use new names.
28382
283832007-09-02 Jan Djärv <jan.h.d@swipnet.se>
28384
28385 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
28386 if it starts with "n:".
28387
283882007-08-31 Jan Djärv <jan.h.d@swipnet.se>
28389
28390 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
28391
283922007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
28393
28394 * frame.h:
28395 * frame.c (Qterm_environment_variable): Remove.
28396 (syms_of_frame): Don't init and staticpro it.
28397
28398 * callproc.c (getenv_internal): Remove special case for $TERM.
28399
28400 * callproc.c (Vinitial_environment): New variable.
28401 (set_initial_environment): Initialize it.
28402 (syms_of_callproc): Declare it.
28403 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
28404 TERM under which a process runs is never related to the TERM in which
28405 Emacs is running.
28406
284072007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
28408
28409 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
28410 * s/darwin.h: ... do it here.
28411
284122007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
28413
28414 * lisp.h (set_initial_environment): Rename from set_global_environment.
28415
28416 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
28417 removed by mistake on the multi-tty branch.
28418
28419 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
28420 (Fmodify_frame_parameters): Return a value.
28421
28422 * image.c (png_load): Comment-out var only used in commented-out code.
28423
28424 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
28425 before passing it to mark_object.
28426
28427 * xfaces.c (internal_resolve_face_name): Return a value.
28428 (internal_resolve_face_name, resolve_face_name_error): Comment out.
28429
28430 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
28431 (x_icon): Comment-out var only used in commented-out code.
28432
284332007-08-29 Romain Francoise <romain@orebokech.com>
28434
28435 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
28436 QUIT hasn't been provided.
28437
284382007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
28439
28440 * callproc.c (child_setup, getenv_internal): Use the
28441 display-environment-variable and term-environment-variable frame params.
28442 (set_initial_environment): Initialise Vprocess_environment.
28443
28444 * config.in: Disable multi-keyboard support on a mac.
28445
28446 * frame.c (Qterm_environment_variable)
28447 (Qdisplay_environment_variable): New variables.
28448 (syms_of_frame): Intern and staticpro them.
28449 (Fmake_terminal_frame): Disable output method test.
28450
28451 * frame.h: Declare them here.
28452
28453 * macfns.c (x_set_mouse_color): Get rif from the frame.
28454 (x_set_tool_bar_lines): Don't use updating_frame.
28455 (mac_window): Add 2 new parameters for consistency with other systems.
28456 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
28457 frame parameters following what is done in X11 and w32. Don't use
28458 FRAME_MAC_DISPLAY_INFO.
28459 (Fx_open_connection, start_hourglass): Remove window-system check.
28460 (x_create_tip_frame): Get the keyboard from the terminal.
28461
28462 * macmenu.c: Reorder includes.
28463 (Fx_popup_menu): Use terminal specific mouse_position_hook.
28464
28465 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
28466 terminal parameter.
28467 (x_clear_frame): Add a frame parameter.
28468 (note_mouse_movement): Get rif from the frame.
28469 (mac_term_init): Initialize the terminal.
28470 (mac_initialize): Make static and move terminal initialization ...
28471 (mac_create_terminal): ... to this new function.
28472
28473 * macterm.h (struct mac_display_info): Add terminal.
28474 (mac_initialize): Delete declaration.
28475
28476 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
28477
28478 * sysdep.c: Comment out text after #endif.
28479
28480 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
28481 is defined. Better initialize ttys in windows. Use terminal
28482 specific mouse_position_hook.
28483
28484 * termhooks.h (union display_info): Add mac_display_info.
28485
28486 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
28487 Set the default minibuffer frame, window_system and the rest of the
28488 frame parameters following what is done in X11.
28489
28490 * w32term.c (w32_initialize): Make static.
28491
28492 * xselect.c (x_handle_selection_clear): Only access
28493 terminal->kboard when MULTI_KBOARD is defined.
28494
28495 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
28496 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
28497
284982007-08-29 Jason Rumney <jasonr@gnu.org>
28499
28500 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
28501 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
28502
28503 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
28504 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
28505
28506 * keyboard.c (restore_kboard_configuration): Only define when
28507 MULTI_KBOARD defined.
28508
28509 * makefile.w32-in: Update dependancies from Makefile.in.
28510 (OBJ1): Add terminal.$(O)
28511
28512 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
28513 Don't define function body.
28514 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
28515
28516 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
28517
28518 * w32.c (request_sigio, unrequest_sigio): Remove.
28519
28520 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
28521 (w32con_clear_frame, w32con_clear_end_of_line)
28522 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
28523 (w32con_delete_glyphs, w32con_set_terminal_window)
28524 (scroll_line, w32_sys_ring_bell): Add frame arg.
28525 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
28526 Add terminal arg.
28527 (PICK_FRAME): Remove.
28528 (w32con_write_glyphs): Use frame specific terminal coding.
28529 (one_and_only_w32cons): New global variable.
28530 (initialize_w32_display): Use it for storing hooks.
28531 (create_w32cons_output): New function.
28532
28533 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
28534 arg a frame.
28535
28536 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
28537 Set window_system.
28538 (x_set_tool_bar_lines): Don't use updating_frame.
28539 (Fx_create_frame): Set terminal and ref count.
28540 (Fx_open_connection): Remove window-system check.
28541
28542 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
28543
28544 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
28545 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
28546 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
28547 Add frame arg.
28548 (x_delete_terminal, w32_create_terminal): New functions.
28549 (w32_term_init): Create a terminal.
28550 (w32_initialize): Move terminal specific initialization to
28551 w32_create_terminal.
28552
28553 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
28554 (w32_clear_rect, w32_clear_area): Use background from frame.
28555 (w32_display_info): Add terminal.
28556 (w32_sys_ring_bell, x_delete_display): Declare here.
28557
28558 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
28559
28560 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
28561
285622007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
28563
28564 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
28565 Fix get_named_tty calls for the controlling tty.
28566
285672007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
28568
194d44e7 28569 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
28570
285712007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
28572
28573 * term.c (tty_insert_glyphs): Add missing first parameter.
28574
285752007-08-29 Károly Lőrentey <karoly@lorentey.hu>
28576
28577 * buffer.c (Fbuffer_list, Fbury_buffer):
28578 Take frame->buried_buffer_list into account.
28579
28580 * cm.c (current_tty): New variable, for cmputc().
28581 (cmputc): Use it.
28582 (cmcheckmagic): Add tty parameter, look up terminal streams there.
28583 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
28584 (cmgoto): Add tty parameter. Pass it on to calccost().
28585 Use emacs_tputs() instead of tputs().
28586
28587 * cm.h (emacs_tputs): New macro to set current_tty, and then call
28588 tputs().
28589 (current_tty): New variable, for cmputc().
28590 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
28591
28592 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
28593 (internal_condition_case, internal_condition_case_1)
28594 (internal_condition_case_2): Don't abort when x_catching_errors.
28595
28596 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
28597 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
28598 prevent crashes caused by bogus longjmps in read_char.
28599
28600 * keymap.h (Fset_keymap_parent): Add EXFUN.
28601
28602 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
28603 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
28604 Remove redundant definition.
28605
28606 * macfns.c (x_set_mouse_color, x_make_gc):
28607 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
28608
28609 * w32term.c (x_free_frame_resources):
28610 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
28611 (w32_initialize): Use the accessor macros for terminal characteristics.
28612
28613 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
28614 Use the accessor macros for terminal characteristics.
28615 * msdos.c (internal_terminal_init): Use the accessor macros for
28616 terminal characteristics.
28617 (ScreenVisualBell, internal_terminal_init):
28618 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
28619
28620 * termopts.h (no_redraw_on_reenter): Declare.
28621
28622 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
28623 (mark_terminals, mark_ttys): Declare.
28624 (Fgarbage_collect): Call them.
28625 (mark_object): Mark buried_buffer_list.
28626
28627 * prefix-args.c: Include stdlib.h for exit.
28628
28629 * syssignal.h: Add comment.
28630
28631 * indent.c: Include stdio.h.
28632
28633 * window.h (Vinitial_window_system): Declare.
28634 (Vwindow_system): Delete declaration.
28635
28636 * fontset.c (Finternal_char_font): Use FRAME_RIF.
28637
28638 * image.c (lookup_image): Don't initialize `c' until the xasserts
28639 have been run.
28640
28641 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
28642 FRAME_FOREGROUND_PIXEL.
28643
28644 * print.c (print_preprocess): Don't lose print_depth levels while
28645 iterating.
28646
28647 * widget.c (update_from_various_frame_slots):
28648 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
28649
28650 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
28651 frames.
28652 (window_internal_height): Remove bogus make_number call.
28653 (init_window_once): Call make_terminal_frame with two zero parameters.
28654
28655 * fileio.c (Fread_file_name): Update comment.
28656
28657 * callint.c (Fcall_interactively):
28658 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
28659 Make sure it is correctly unwound.
28660
28661 * xsmfns.c (x_session_close): New function.
28662
28663 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
28664 Delete declarations.
28665
28666 * xterm.h: Remove declaration for x_fully_uncatch_errors.
28667 (x_output): Remove background_pixel and foreground_pixel fields.
28668 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
28669 (x_delete_device, x_session_close): Declare.
28670
28671 * lread.c: Include setjmp.h. Update declaration of `read_char'.
28672 (read_filtered_event): Call `read_char' with a local
28673 `wrong_kboard_jmpbuf'.
28674
28675 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
28676 Don't call single_kboard_state. Use FRAME_RIF.
28677
28678 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
28679 systems.
28680
28681 * lisp.h (set_process_environment): Rename to `set_global_environment'.
28682 (Fframe_with_environment, Fset_input_meta_mode)
28683 (Fset_quit_char): EXFUN.
28684 (x_create_device, tty_output, terminal, tty_display_info): Declare.
28685 (init_sys_modes, reset_sys_modes): Update prototypes.
28686 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
28687
28688 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
28689 Vlocal_key_translation_map, and Vkeyboard_translate_table.
28690 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
28691 Delete declarations.
28692 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
28693 (temporarily_switch_to_single_kboard, tty_read_avail_input):
28694 New declarations.
28695
28696 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
28697 already does that during init_display(). Call syms_of_keymap
28698 before syms_of_keyboard. Call `syms_of_terminal'.
28699 Call set_initial_environment, not set_process_environment.
28700 (shut_down_emacs): Call reset_all_sys_modes() instead of
28701 reset_sys_modes().
28702
28703 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
28704 (internal_resolve_face_name, resolve_face_name_error): New functions.
28705 (resolve_face_name): Protect against loops and errors thrown by Fget.
28706 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
28707 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
28708
28709 * scroll.c: Replace CURTTY() with local variables throughout the
28710 file (where applicable).
28711 (calculate_scrolling, calculate_direct_scrolling)
28712 (scrolling_1, scroll_cost): Use the accessor macros for terminal
28713 characteristics.
28714
28715 * keymap.c (Vfunction_key_map): Remove.
28716 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
28717 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
28718 (Vkey_translation_map): Remove.
28719 (syms_of_keymap): Remove DEFVAR for key-translation-map.
28720 (Fdescribe_buffer_bindings)
28721 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
28722 Update for terminal-local key-translation-map.
28723
28724 * Makefile.in (callproc.o): Update dependencies.
28725 (lisp, shortlisp): Add termdev.elc.
28726 (obj): Add terminal.o.
28727 (terminal.o): Add dependencies.
28728 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
28729 (data.o, fns.o): Add termhooks.h dependency.
28730 (SOME_MACHINE_LISP): Add dnd.elc.
28731 (minibuf.o): Fix typo.
28732 Update dependencies.
28733
28734 * data.c (do_symval_forwarding, store_symval_forwarding)
28735 (find_symbol_value): Use the selected frame's keyboard, not
28736 current_kboard.
28737
28738 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
28739 Vwindow_system.
28740
28741 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
28742 Fmenu_bar_open.
28743 (syms_of_xmenu): Update defsubr.
28744 (mouse_position_for_popup, Fx_popup_menu)
28745 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
28746 (set_frame_menubar, free_frame_menubar)
b97439ce 28747 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
28748 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
28749 an X frame.
28750
28751 * xselect.c (x_own_selection): Abort if not an X frame.
28752 (some_frame_on_display): Check if it is an X frame.
28753 (x_handle_selection_clear): Deal with MULTI_KBOARD.
28754
28755 * coding.c: Include frame.h and termhooks.h.
28756 (terminal_coding, keyboard_coding): Delete.
28757 (Fset_terminal_coding_system_internal)
28758 (Fset_keyboard_coding_system_internal)
28759 (Fkeyboard_coding_system)
28760 (Fterminal_coding_system): Add a terminal parameter.
28761 Get terminal_coding from the terminal.
28762 (init_coding_once): Don't call setup_coding_system here.
28763
28764 * dispextern.h (set_scroll_region, turn_off_insert)
28765 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
28766 (tty_clear_end_of_line, tty_setup_colors)
28767 (delete_tty, updating_frame)
28768 (produce_special_glyphs, produce_glyphs, write_glyphs)
28769 (insert_glyphs): Remove.
28770 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
28771 (tty_turn_off_highlight, get_tty_size): Add declaration.
28772 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
28773
28774 * frame.h (enum output_method): Add output_initial.
28775 (struct x_output): Delete.
28776 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
28777 Access foreground_pixel and background_pixel directly from the frame.
28778 (tty_display): Delete.
28779 (struct frame): Add buried_buffer_list, foreground_pixel,
28780 background_pixel and terminal. Delete kboard.
28781 (union output_data): Add tty.
28782 (FRAME_KBOARD): Get the kboard from the terminal.
28783 (FRAME_INITIAL_P): New macro.
28784 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
28785 (Qterm_environment_variable, Qdisplay_environment_variable)
28786 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
28787 New declarations.
28788
28789 * termchar.h (tty_output, tty_display_info): New structures.
28790 (tty_list): Declare.
28791 (FRAME_TTY, CURTTY): New macros.
28792 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
28793 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
28794 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
28795 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
28796
28797 * callproc.c: Include frame.h and termhooks.h, for terminal
28798 parameters.
28799 (add_env): New function.
28800 (child_setup): Use it.
28801 (child_setup, getenv_internal): Handle the new Vprocess_environment.
28802 (getenv_internal): Fix get_terminal_param call.
28803 (Fgetenv_internal, egetenv): Update doc.
28804 (syms_of_callproc): Initialize Vprocess_environment to nil.
28805 Register and initialize them. Remove obsolete defvars. Update doc
28806 strings.
28807 (child_setup): Handle Vlocal_environment_variables.
28808 (getenv_internal): Add terminal parameter.
28809 Handle Vlocal_environment_variables.
28810 (Fgetenv_internal): Add terminal parameter.
28811 (child_setup, getenv_internal, Fgetenv_internal): Store the local
28812 environment in a frame (not terminal) parameter. Update doc strings.
28813 (set_initial_environment): Rename from set_global_environment.
28814 Store Emacs environment in initial frame parameter.
28815
28816 * xdisp.c (redisplay_internal): Update references to
28817 `previous_terminal_frame'.
28818 (display_mode_line, Fformat_mode_line): Replace calls to
28819 `push_frame_kboard' with `push_kboard'.
28820 (get_glyph_string_clip_rects): Add extra parentheses and
28821 braces to prevent compiler warnings.
28822 (calc_pixel_width_or_height): Add xassert to check that the
28823 frame is alive. Don't call `lookup_image' on a termcap frame.
28824 (message2_nolog, message3_nolog, redisplay_internal)
28825 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
28826 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
28827 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
28828 (Fx_display_pixel_width, Fx_display_pixel_height)
28829 (Fx_display_planes, Fx_display_color_cells)
28830 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
28831 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
28832 (Fx_display_backing_store, Fx_display_visual_class)
28833 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
28834 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
28835
28836 * xfns.c (x_set_foreground_color x_set_background_color)
28837 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
28838 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
28839 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
28840 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
28841 terminal that is being deleted.
28842 (Fx_create_frame): Use `store_frame_param' to set `window-system'
28843 frame parameter, and make sure it overrides any user-supplied setting.
28844 (Fx_close_connection, Fx_synchronize): Unify argument names with
28845 the rest of the DEFUNs.
28846
28847 * dispnew.c (Fsend_string_to_terminal): Update call to
28848 `get_tty_terminal'.
28849 (Fredraw_frame, Fsend_string_to_terminal)
28850 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
28851 FRAME_TERMCAP_P and FRAME_TTY.
28852 (window_change_signal): Don't believe width/height values that are
28853 impossibly small.
28854 (Vinitial_window_system): Rename from Vwindow_system.
28855 (termscript, Wcm, rif): Delete.
28856
28857 * termhooks.h (struct terminal): New struct containing the
28858 previously global text display hooks and new members NAME,
28859 DELETED and PARAM_ALIST.
28860 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
28861 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
28862 (FRAME_RIF): New macros.
28863 (get_terminal_param, get_device): New declarations.
28864 (termscript): Delete declaration.
28865
28866 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
28867 (XTflash, x_free_frame_resources, x_scroll_bar_create)
28868 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
28869 FRAME_FOREGROUND_PIXEL.
28870 (x_fully_uncatch_errors): Disable definition.
28871 (x_scroll_bar_expose): Fix reference to foreground pixel.
28872 (XTread_socket): Disable loop on all X displays.
28873 (x_delete_terminal): Don't set terminal->deleted and let
28874 delete_terminal delete the frames on the terminal.
28875 (x_delete_display): Doc update to reflect changes in
28876 delete_terminal.
28877 (x_display_info) <terminal>: Move member earlier in the struct.
28878 (deleting_tty): Remove old variable.
28879 (Fsuspend_tty): Call clear_tty_hooks.
28880 (Fresume_tty, init_tty): Call set_tty_hooks.
28881 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
28882 errors on X frames.
28883 (x_catch_errors_unwind): Abort if x_error_message is NULL.
28884 (handle_one_xevent): Initialize `f' to NULL.
28885 (x_delete_terminal, x_create_terminal): New functions.
28886 (XTset_terminal_modes, XTreset_terminal_modes)
28887 (XTread_socket, x_connection_closed, x_term_init)
28888 (x_term_init, x_delete_display): Add terminal parameter.
28889 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
28890 X connections.
28891
28892 * frame.c: Include termchar.h.
28893 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
28894 (Qwindow_system, Qenvironment, Qterm_environment_variable)
28895 (Qdisplay_environment_variable): New vars.
28896 (Fframep): Deal with output_initial.
28897 (Fframe-live-p): Doc fix.
28898 (Fwindow-system): New function.
28899 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
28900 (make_terminal_frame): Don't create frames on a terminal that is
28901 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
28902 (store_frame_param): Check for found_for_frame before calling XFRAME.
28903 (Fmake_terminal_frame): Handle NULL tty names correctly.
28904 (syms_of_frame): Enhance doc string of `default-frame-alist'.
28905 (Fdelete_frame): Remove unused variable `count'. Don't allow other
28906 frames to refer to a deleted frame in their 'environment parameter.
28907 (Fframe_with_environment): New function.
28908 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
28909 (get_future_frame_param): New function.
28910 (Fmake_terminal_frame): Use it.
28911 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
28912
28913 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
28914 * sysdep.c (reset_sys_modes): Update for renames.
28915
28916 * keyboard.c (tty_read_avail_input): New function.
28917 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
28918 (syms_of_keyboard): Defsubr them.
28919 (Fset_input_meta_mode, Fset_quit_char): New functions.
28920 (Fset_input_mode): Split to above functions.
28921 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
28922 parameter. Use it in call to `read_char'.
28923 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
28924 Set wrong_kboard_jmpbuf correctly in recursive calls.
28925 Use current_kboard to access Vkeyboard_translate_table.
28926 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
28927 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
28928 Update longjmp invocations. Remember the original current_kboard,
28929 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
28930 changes it. Comment out unnecessary calls to
28931 `record_single_kboard_state' and `any_kboard_state'.
28932 Update recursive calls.
28933 (wrong_kboard_jmpbuf): Remove global variable.
28934 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
28935 Handle deleted interrupted_kboards correctly; that is a legal
28936 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
28937 and read_char calls. Abort if interrupted_kboard died in read_char.
28938 (any_kboard_state, single_kboard_state)
28939 (push_frame_kboard): Remove function.
28940 (pop_kboard): Switch out of single_kboard mode if the kboard has
28941 been deleted. Remove unused variable. Help debugging by not
28942 changing current_kboard unnecessarily. Set current_kboard to the
28943 kboard of the selected frame when the stored kboard object has
28944 been deleted before pop_kboard.
28945 (temporarily_switch_to_single_kboard): Change first parameter to a
28946 frame pointer. Throw an error when caller wants to change kboards
28947 while in single_kboard mode. Don't push_kboard if we weren't in
28948 single kboard state. Don't pop_kboard if we popped into any
28949 kboard state.
28950 (restore_kboard_configuration): Abort if pop_kboard changed the
28951 kboard in single_kboard mode. Call pop_kboard only after setting
28952 up single_kboard mode.
28953 (Frecursive_edit): Switch to single_kboard mode only in nested
28954 command loops.
28955 (cmd_error, command_loop, command_loop_1, timer_check):
28956 Comment out unnecessary call to `any_kboard_state' and
28957 `record_single_kboard_state'.
28958 (delete_kboard): Exit single_kboard mode if we have just deleted
28959 that kboard. Use FRAME_KBOARD.
28960 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
28961 `fatal_error_signal'.
28962 (record_single_kboard_state): Don't push_kboard if we weren't in
28963 single kboard state. Don't pop_kboard if we popped into any
28964 kboard state.
28965 (push_frame_kboard): Rename to push_kboard.
28966 (kbd_buffer_get_event): Use FRAME_TERMINAL.
28967 (read_avail_input): Read input from all terminals.
28968 (mark_kboards): Also mark Vkeyboard_translate_table.
28969 (kbd_buffer_store_event_hold): Simplify condition.
28970 (read_key_sequence): Reinitialize fkey and keytran at each replay.
28971 (Vkeyboard_translate_table): Move to struct kboard.
28972 (init_kboard): Initialize Vkeyboard_translate_table.
28973 (syms_of_keyboard): Use DEFVAR_KBOARD to define
28974 Vkeyboard_translate_table. Update doc strings. Update docs of
28975 local-function-key-map and function-key-map.
28976
28977 * terminal.c: New file.
28978
28979 * term.c: Include errno.h.
28980 (Vring_bell_function, device_list, initial_device)
28981 (next_device_id, ring_bell, update_begin, update_end)
28982 (set_terminal_window, cursor_to, raw_cursor_to)
28983 (clear_to_end, clear_frame, clear_end_of_line)
28984 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
28985 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
28986 (syms_of_term): Move their initialization to terminal.c.
28987 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
28988 (Ftty_display_color_cells)
28989 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
28990 (clear_tty_hooks, set_tty_hooks)
28991 (init_tty, maybe_fatal): New functions.
28992 (Ftty_type): Return nil if terminal is not on a tty instead of
28993 throwing an error. Doc update.
28994 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
28995 Doc update. Initialize new subrs and variables.
28996 (delete_tty): Use terminal->deleted.
28997 (tty_set_terminal_modes): Rename from set_terminal_modes.
28998 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
28999 (set_scroll_region): Rename to `tty_set_scroll_region'.
29000 (turn_on_insert): Rename to `tty_turn_on_insert'.
29001 (turn_off_insert): Rename to `tty_turn_off_insert'.
29002 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
29003 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
29004 (toggle_highligh): Rename to `tty_toggle_highlight'.
29005 (background_highlight): Rename to `tty_background_highlight'.
29006 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
29007 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
29008 (tty_set_scroll_region, tty_background_highlight)
29009 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
29010 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
29011 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
29012 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
29013 Add static modifier.
29014 (tty_reset_terminal_modes, tty_set_terminal_window)
29015 (tty_set_scroll_region, tty_background_highlight)
29016 (tty_highlight_if_desired, tty_cursor_to)
29017 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
29018 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
29019 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
29020 renames.
29021
290222007-08-28 Jan Djärv <jan.h.d@swipnet.se>
29023
29024 * keyboard.c: Qrtl is new.
29025 (parse_tool_bar_item): Handle :rtl keyword.
29026 (syms_of_keyboard): Intern :rtl keyword.
29027
29028 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
29029
29030 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
29031 so no Lisp code is executed.
29032 (file_for_image, find_rtl_image): New functions.
29033 (xg_get_image_for_pixmap): Use file_for_image.
29034 (update_frame_tool_bar): If direction is RTL, use RTL image if
29035 defined. Use Gtk stock images if defined.
29036
290372007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29038
29039 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
29040 for nonexistent or zero-width glyph in composition glyph.
29041
290422007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
29043
29044 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
29045
29046 * xdisp.c (Finvisible_p): New function.
29047 (syms_of_xdisp): defsubr it.
29048
290492007-08-24 Juanma Barranquero <lekktu@gmail.com>
29050
29051 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
29052 Doc fixes.
29053
290542007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29055
29056 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
29057
290582007-08-24 Martin Rudalics <rudalics@gmx.at>
29059
29060 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
29061 whether decoding has modified buffer contents.
29062
290632007-08-24 Jason Rumney <jasonr@gnu.org>
29064
29065 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
29066 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
29067 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
29068 (init_svg_functions) [HAVE_NTGUI]: New function.
29069 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
29070 (svg_load_image): Use them.
29071 (svg_load_image) [HAVE_NTGUI]: Implement background.
29072
290732007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29074
29075 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
29076 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
29077 (LIBX): Remove @RSVG_LIBS@.
29078 (LIBES): Add $(RSVG_LIBS).
29079
29080 * image.c (svg_load_image): Blend with specified background if exists.
29081 Use IMAGE_BACKGROUND. Add Mac OS Support.
29082
29083 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
29084 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
29085 Remove macros.
29086 [MAC_OSX] (socket_callback): Do nothing.
29087 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
29088 ReceiveNextEvent.
29089 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
29090 socket_callback.
29091 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
29092
290932007-08-22 Glenn Morris <rgm@gnu.org>
29094
29095 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
29096
290972007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
29098
29099 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
29100
29101 * image.c: Add support for SVG images. Some additional comments
29102 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
29103 (svg_image_p): New function to test for SVG image.
29104 (svg_load): New function to load SVG image.
29105 (svg_load_image): New function, helper for svg_load.
29106 (Qsvg): New Lisp_object.
29107 (svg_keyword_index): New enum.
29108 (svg_format): New static `image_keyword' struct.
29109 (svg_type): New static `image_type' struct.
29110 (librsvg/rsvg.h): Include it.
29111
291122007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
29113
29114 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
29115
291162007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
29117
29118 * lread.c (Qold_style_backquotes): New var.
29119 (syms_of_lread): Init and staticpro it.
29120 (load_warn_old_style_backquotes): New fun.
29121 (Fload): Use them to warn about old style backquotes.
29122 (end_of_file_error, Fload): Remove unused vars.
29123
29124 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
29125
29126 * lread.c (Vold_style_backquotes): New var.
29127 (syms_of_lread): Init and export it to Elisp.
29128 (read1): Set it when we find an old-style (back)quote.
29129
291302007-08-22 Jason Rumney <jasonr@gnu.org>
29131
29132 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
29133
291342007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
29135
29136 * puresize.h (BASE_PURESIZE): Increase to 1140000.
29137
291382007-08-19 Richard Stallman <rms@gnu.org>
29139
29140 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
29141
291422007-08-19 Andreas Schwab <schwab@suse.de>
29143
29144 * alloc.c (pure): Round PURESIZE up.
29145
291462007-08-17 Jan Djärv <jan.h.d@swipnet.se>
29147
29148 * xterm.c (handle_one_xevent): Remove check that mouse click is in
29149 active frame.
29150
291512007-08-16 Richard Stallman <rms@gnu.org>
29152
29153 * eval.c (Fcommandp): Add parens to clarify.
29154
29155 * minibuf.c (Fall_completions): Use enum for type of table.
29156
29157 * emacs.c (USAGE2): Improve text.
29158
291592007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
29160
29161 * term.c (tty_default_color_capabilities): Declare static
29162 variables in file scope, to avoid HPUX compiler problem.
29163
291642007-08-13 Jan Djärv <jan.h.d@swipnet.se>
29165
29166 * gtkutil.c (update_frame_tool_bar): Use -1 as index
29167 to gtk_toolbar_insert.
29168
291692007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
29170
29171 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
29172
29173 * insdel.c (reset_var_on_error): New fun.
29174 (signal_before_change, signal_after_change):
29175 Use it to reset (after|before)-change-functions to nil in case of error.
29176 Bind inhibit-modification-hooks to t.
29177 Don't bind (after|before)-change-functions to nil while they run.
29178
291792007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29180
29181 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
29182 filling pixmap with stippled background.
29183
291842007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29185
29186 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
29187 Don't use invisible frame as parent window for repositioning.
29188
291892007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
29190
29191 * print.c (new_backquote_output): Rename from old_backquote_output.
29192 (print): Inverse its logic (according to its name) so as to match the
29193 behavior of new_backquote_flag in lread.c.
29194
291952007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29196
29197 * gmalloc.c (posix_memalign): New function.
29198
29199 * macterm.c (frame_highlight, frame_unhighlight): Don't call
29200 ActivateControl/DeactivateControl here.
29201 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
29202 frame-notice-user-settings is non-nil.
29203 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
29204 for kEventParamFMFontStyle.
29205 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
29206 mac_pass_command_to_system and mac_pass_control_to_system here.
29207 (XTread_socket): Call ActivateControl/DeactivateControl here.
29208 (XTread_socket) [TARGET_API_MAC_CARBON]:
29209 Check mac_pass_command_to_system and mac_pass_control_to_system here.
29210 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
29211 for window repositioning.
29212
292132007-08-08 Glenn Morris <rgm@gnu.org>
29214
29215 * Replace `iff' in doc-strings and comments.
29216
292172007-08-07 Chong Yidong <cyd@stupidchicken.com>
29218
29219 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
29220
292212007-08-07 Martin Rudalics <rudalics@gmx.at>
29222
29223 * fileio.c (Finsert_file_contents): Run format-decode and
29224 after_insert_file_functions on entire buffer when REPLACE is
29225 non-nil and inhibit modification_hooks and point_motion_hooks.
29226 For consistency, run after_insert_file_functions iff something
29227 got inserted. Move signal_after_change and update_compositions
29228 after code running after_insert_file_functions. Make sure that
29229 undo_list doesn't record intermediate steps of the decoding process.
29230
292312007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29232
29233 * emacs.c (main)
29234 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
29235 Call malloc_enable_thread on interactive startup.
29236
29237 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
29238 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
29239 [USE_PTHREAD]: Conditionalize with it.
29240 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
29241 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
29242 New functions.
29243
292442007-08-06 Chong Yidong <cyd@stupidchicken.com>
29245
29246 * xdisp.c (redisplay_window): When restoring original buffer
29247 position, make sure it is still valid.
29248
29249 * image.c (png_load): Ignore png-supplied background color.
29250
292512007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29252
29253 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
29254 Use kCFAbsoluteTimeIntervalSince1970.
29255
29256 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
29257 New variable.
29258 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
29259 event loop should be quit.
29260 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
29261 Quit dialog event loop if quit_dialog_event_loop is set.
29262
29263 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
29264 (Selection): New typedef. Use instead of ScrapRef.
29265 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
29266 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
29267 (mac_clear_selection): Rename from clear_scrap.
29268 (get_flavor_type_from_symbol): New argument SEL and subsume function of
29269 scrap_has_target_type. All uses changed.
29270 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
29271 (mac_selection_has_target_p): New functions.
29272 (mac_put_selection_value): Rename from put_scrap_string.
29273 (mac_get_selection_value): Rename from get_scrap_string.
29274 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
29275 (put_scrap_private_timestamp, scrap_has_target_type)
29276 (get_scrap_private_timestamp): Remove functions.
29277 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
29278 (x_own_selection, x_get_local_selection):
29279 Use mac_valid_selection_value_p.
29280 (x_own_selection): Don't use put_scrap_private_timestamp.
29281 Record OWNERSHIP-INFO into Vselection_alist instead.
29282 (x_get_local_selection): Don't check type if request is local.
29283 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
29284 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
29285
292862007-08-04 Jan Djärv <jan.h.d@swipnet.se>
29287
29288 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
29289 add comment explaining why.
29290
292912007-08-03 Richard Stallman <rms@gnu.org>
29292
29293 * fileio.c (Fvisited_file_modtime): Use make_time.
29294
292952007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
29296
29297 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
29298 build.
29299
293002007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
29301
29302 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
29303
293042007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
29305
29306 * puresize.h (BASE_PURESIZE): Increase to 1130000.
29307
293082007-07-30 Richard Stallman <rms@gnu.org>
29309
29310 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
29311
293122007-07-29 Jan Djärv <jan.h.d@swipnet.se>
29313
29314 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
29315
293162007-07-28 Nick Roberts <nickrob@snap.net.nz>
29317
29318 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
29319 remote default-directory.
29320
29321 * buffer.c (mode-line-format): Update doc string.
29322
293232007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29324
29325 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
29326 scroll bar gap.
29327 (x_scroll_bar_create): Set bar->fringe_extended_p.
29328 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
29329 on frame edge. Check fringe background extension. Don't clear
29330 extended fringe background area.
29331
29332 * w32term.h (struct scroll_bar): New member fringe_extended_p.
29333 (w32_fill_area): Enclose multiple statements with do ... while (0).
29334
29335 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
29336 Extend fringe background to scroll bar gap.
29337 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
29338 Set bar->fringe_extended_p.
29339 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
29340 Put leftmost/rightmost scroll bars on frame edge. Check fringe
29341 background extension. Don't clear extended fringe background area.
29342
29343 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
29344 New member fringe_extended_p.
29345
293462007-07-25 Glenn Morris <rgm@gnu.org>
29347
29348 * Relicense all FSF files to GPLv3 or later.
29349
29350 * COPYING: Switch to GPLv3.
29351
293522007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
29353
29354 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
29355
29356 * data.c (Finteractive_form): Check for the presence of an
29357 `interactive-form' symbol property more thoroughly.
29358
29359 * data.c (Finteractive_form): Use an `interactive-form' property if
29360 present, analogous to the function-documentation property.
29361
293622007-07-24 Jason Rumney <jasonr@gnu.org>
29363
29364 * w32fns.c (x_real_positions): Get real position from OS instead of
29365 calculating it.
29366
293672007-07-23 Jason Rumney <jasonr@gnu.org>
29368
29369 * filelock.c (current_lock_owner): Allow for @ sign in username.
29370
293712007-07-22 Nick Roberts <nickrob@snap.net.nz>
29372
29373 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
29374 remote default-directory.
29375
29376 * buffer.c (mode-line-format): Describe above case in doc string.
29377
293782007-07-20 Eli Zaretskii <eliz@gnu.org>
29379
29380 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
29381 Define if not defined.
29382
293832007-07-18 Jason Rumney <jasonr@gnu.org>
29384
29385 * w32proc.c (w32_executable_type): Handle 64 bit executables.
29386
293872007-07-18 Richard Stallman <rms@gnu.org>
29388
29389 * data.c (Fsetq_default): Doc fix.
29390
29391 * eval.c (Fsetq): Doc fix.
29392
293932007-07-18 Juanma Barranquero <lekktu@gmail.com>
29394
29395 * coding.c (Ffind_operation_coding_system):
29396 * eval.c (For, Fand): Doc fixes.
29397 Reported by Johan Bockgård.
29398
293992007-07-18 Jan Djärv <jan.h.d@swipnet.se>
29400
29401 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
29402
29403 * xterm.h: Declare x_ewmh_activate_frame.
29404
29405 * xterm.c (x_ewmh_activate_frame): New function.
29406 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
29407
294082007-07-17 Martin Rudalics <rudalics@gmx.at>
29409
29410 * window.c (Fdisplay_buffer): If largest or LRU window is the
29411 only window, split it even if it is not eligible for splitting.
29412 This restores the original behavior broken by the 2007-07-15
29413 change.
29414
294152007-07-17 Glenn Morris <rgm@gnu.org>
29416
29417 * abbrev.c (abbrev_check_chars): New function.
29418 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
29419 Call abbrev_check_chars to check abbrev characters are word
29420 constituents. Doc fix.
29421
294222007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
29423
29424 * process.c (Fstart_process, Fmake_network_process)
29425 (read_process_output): Fix up last changes.
29426
294272007-07-16 Eli Zaretskii <eliz@gnu.org>
29428
29429 * makefile.w32-in (clean): Don't delete *~.
29430
294312007-07-16 Andreas Schwab <schwab@suse.de>
29432
29433 * window.c (Fdisplay_buffer): Use NILP.
29434 (Fset_window_scroll_bars): Likewise.
29435
294362007-07-15 Martin Rudalics <rudalics@gmx.at>
29437
29438 * window.c (window_min_size_2): New function.
29439 (window_min_size_1, size_window, Fdisplay_buffer)
29440 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
29441 windows without mode- or header-lines when window-min-height is
29442 too small.
29443 (size_window): Reset nodelete_p after testing it, following an
29444 earlier note by Kim F. Storm.
29445 (display_buffer): Do not set split_height_threshold to twice the
29446 value of window_min_height to avoid changing the value of a
29447 customizable variable. Rather explicitly check whether the
29448 height of the window that shall be splitted is at least as large
29449 as split_height_threshold.
29450 (Fwindow_full_width_p): New defun.
29451 (syms_of_window): Defsubr it.
29452
29453 * window.h: Add EXFUN for Fwindow_full_width_p.
29454
294552007-07-14 Jason Rumney <jasonr@gnu.org>
29456
29457 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
29458
294592007-07-14 Richard Stallman <rms@gnu.org>
29460
29461 * eval.c (maybe_call_debugger): New function.
29462 (find_handler_clause): Use maybe_call_debugger.
29463 Call it when the handler says `debug'.
29464 Eliminate DEBUGGER_VALUE_PTR.
29465 (Fsignal): Eliminate debugger_value.
29466 (Qdebug): New variable.
29467 (syms_of_eval): Initialize it.
29468
294692007-07-14 Juanma Barranquero <lekktu@gmail.com>
29470
29471 * eval.c (Fprogn):
29472 * keyboard.c (Ftrack_mouse):
29473 * print.c (Fwith_output_to_temp_buffer):
29474 * window.c (Fsave_window_excursion): Doc fix.
29475
294762007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
29477
29478 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
29479
294802007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
29481
29482 * process.h (struct Lisp_Process): Turn slots infd, outfd,
29483 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
29484 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
29485 read_output_delay, and read_output_skip from Lisp_Objects to ints.
29486 Remove unused encoding_carryover.
29487 * process.c: Adjust all functions accordingly.
29488
294892007-07-12 Richard Stallman <rms@gnu.org>
29490
29491 * term.c: Include unistd.h only if HAVE_UNISTD_H.
29492
294932007-07-11 Jason Rumney <jasonr@gnu.org>
29494
29495 * makefile.w32-in (LIBS): Include OLE32.
29496
29497 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
29498 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
29499
295002007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
29501
29502 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
29503 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
29504 from a Lisp_Object into a bare pointer.
29505 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
29506 Adjust the code correspondingly.
29507
29508 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
29509
29510 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
29511 (term_show_mouse_face): Remove unused var `j'.
29512 (handle_one_term_event): Remove unused vars `i' and `j'.
29513 Don't cast return value of ttyname since it's not necessary.
29514
295152007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
29516
29517 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
29518 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
29519
29520 * fns.c (map_char_table): Use an array of int for `indices' rather than
29521 an array of Lisp_Objects (which are only ever integers anyway).
29522 (Fmap_char_table): Update caller.
29523 * lisp.h: Update prototype.
29524 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
29525 * fontset.c (Ffontset_info):
29526 * casetab.c (set_case_table): Update callers.
29527
29528 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
29529
29530 * keymap.c (struct accessible_keymaps_data)
29531 (struct where_is_internal_data): New structures.
29532 (accessible_keymaps_1, where_is_internal_1): Use them to change
29533 interface to adhere to the one used by map_keymap.
29534 (Faccessible_keymaps, where_is_internal): Use map_keymap.
29535 (accessible_keymaps_char_table, where_is_internal_2): Remove.
29536
29537 * keymap.h (map_keymap_function_t): More informative prototype.
29538
295392007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
29540
29541 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
29542 (looking_at_1): Don't change search_regs and last_thing_searched
29543 if `inhibit-changing-match-data' is non-nil.
29544 (string_match_1, search_buffer, set_search_regs): Likewise.
29545 (syms_of_search): Add Lisp level definition for
29546 `inhibit-changing-match-data' and set it to nil.
29547 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
29548 start and end of the match, instead of using values in search_regs.
29549
295502007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
29551
29552 * minibuf.c (Fcompleting_read): New value `confirm-only'
29553 for `require-match'.
29554
295552007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
29556
29557 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
29558 part of the 2007-06-27 change to syms_of_fileio.
29559
295602007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29561
29562 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
29563 Check WINDOWP before using XWINDOW. Consolidate return statements.
29564
295652007-06-27 Richard Stallman <rms@gnu.org>
29566
29567 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
29568
295692007-06-27 Juanma Barranquero <lekktu@gmail.com>
29570
29571 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
29572
295732007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29574
29575 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
29576 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
29577 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
29578 (_free_internal, memalign): Use them.
29579 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
29580 Initialize to PTHREAD_MUTEX_INITIALIZER.
29581 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
29582 (morecore_nolock): Rename from morecore. All uses changed.
29583 Use only nolock versions of internal allocation functions.
29584 (_malloc_internal_nolock, _realloc_internal_nolock)
29585 (_free_internal_nolock): New functions created from
29586 _malloc_internal, _realloc_internal, and _free_internal.
29587 (_malloc_internal, _realloc_internal, _free_internal): Use them.
29588 Copy hook value to automatic variable before its use.
29589 (memalign): Copy hook value to automatic variable before its use.
29590
295912007-06-26 Kenichi Handa <handa@m17n.org>
29592
29593 * coding.c (Ffind_operation_coding_system): Docstring improved.
29594 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
29595
295962007-06-25 David Kastrup <dak@gnu.org>
29597
29598 * keymap.c (Fcurrent_active_maps): Add `position' argument.
29599 (Fwhere_is_internal): Adjust call to `current-active-maps' to
29600 cater for additional parameter.
29601
29602 * keymap.h: Adjust number of parameters to `current-active-maps'.
29603
29604 * doc.c (Fsubstitute_command_keys): Adjust call of
29605 `current-active-maps'.
29606
296072007-06-25 David Kastrup <dak@gnu.org>
29608
29609 * callint.c (Fcall_interactively): Make the parsing of interactive
29610 specs somewhat more readable.
29611
296122007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29613
29614 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
29615 to scroll bar gap also when bitmap fills fringe. Draw only foreground
29616 if extended background has already been filled.
29617
296182007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29619
29620 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
29621 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
29622
29623 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
29624 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
29625 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
29626 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
29627 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
29628 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
29629 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
29630 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
29631 Run timers during dialog popup.
29632 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
29633
296342007-06-21 Jason Rumney <jasonr@gnu.org>
29635
29636 * image.c (convert_mono_to_color_image): Swap fore and background.
29637
296382007-06-20 Jason Rumney <jasonr@gnu.org>
29639
29640 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
29641 (w32_free_bdf_font): Unmap memory not handle.
29642
296432007-06-20 Sam Steingold <sds@gnu.org>
29644
29645 * gmalloc.c (__morecore): Fix the declaration to comply with the
29646 definition.
29647
296482007-06-20 Juanma Barranquero <lekktu@gmail.com>
29649
29650 * w32term.c (w32_delete_display): Remove leftover declaration.
29651 (w32_define_cursor, w32_initialize): Make static.
29652
29653 * w32.c (_wsa_errlist): Fix typo in error message.
29654 (init_environment): Ignore any environment variable from the
29655 registry having a null value.
29656
296572007-06-20 Glenn Morris <rgm@gnu.org>
29658
29659 * Makefile.in (LIBGIF): Default to -lgif.
29660
296612007-06-17 Jason Rumney <jasonr@gnu.org>
29662
29663 * w32menu.c (add_menu_item): Don't use multibyte string functions on
29664 unicode strings.
29665
296662007-06-16 Juanma Barranquero <lekktu@gmail.com>
29667
29668 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
29669 Fix typo in docstring.
29670
296712007-06-16 Eli Zaretskii <eliz@gnu.org>
29672
29673 * w32menu.c (add_menu_item): Escape `&' characters in menu items
29674 and their keybindings.
29675
296762007-06-15 Chong Yidong <cyd@stupidchicken.com>
29677
29678 * composite.c (update_compositions): Fix last fix.
29679
296802007-06-14 Jason Rumney <jasonr@gnu.org>
29681
29682 * w32.c (get_process_times_fn): New function pointer.
29683 (globals_of_w32): Intialize it if present in kernel32.dll.
29684 (w32_get_internal_run_time): New function.
29685
29686 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
29687
296882007-06-14 Kenichi Handa <handa@etlken.m17n.org>
29689
29690 * composite.c (update_compositions): Check the validness of
29691 compositions.
29692
296932007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29694
29695 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
29696 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
29697
29698 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
29699 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
29700
29701 * macgui.h (USE_MAC_TOOLBAR): New define.
29702
29703 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
29704 Return immediately unless popup is activated.
29705
29706 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
29707 background to scroll bar gap.
29708 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
29709 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
29710 scroll bars on frame edge. Check fringe background extension.
29711 Don't clear extended fringe background area.
29712 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
29713 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
29714 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
29715 [USE_MAC_TOOLBAR]: New macros.
29716 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
29717 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
29718 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
29719 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
29720 [USE_MAC_TOOLBAR]: New functions.
29721 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
29722 manually if previous repositioning has failed.
29723 (mac_handle_keyboard_event): Use precomputed event kind.
29724 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
29725 as tool bar item click. Handle mouse movement over tool bar items.
29726
29727 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
29728 toolbar_win_gravity.
29729 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
29730 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
29731 Add externs.
29732
29733 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
29734 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
29735
297362007-06-14 Chong Yidong <cyd@stupidchicken.com>
29737
29738 * image.c (search_image_cache): Remove unused variable.
29739
297402007-06-13 Chong Yidong <cyd@stupidchicken.com>
29741
29742 * xfns.c, xmenu.c: Link to xaw3d if available.
29743
297442007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29745
29746 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
29747 frame_foreground and frame_background.
29748
29749 * image.c (lookup_image): Save frame foreground and background colors.
29750 (search_image_cache): Check if saved and current frame colors match.
29751
297522007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
29753
29754 * regex.c (regex_compile): Remove the `regnum' counter.
29755 Use bufp->re_nsub instead. Add support for \(?N:RE\).
29756
297572007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
29758
29759 * term.c: Include intervals.h to declare Fget_text_property.
29760
297612007-06-10 Jason Rumney <jasonr@gnu.org>
29762
29763 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
29764
297652007-06-08 Juanma Barranquero <lekktu@gmail.com>
29766
29767 * callint.c (Fcall_interactively):
29768 * editfns.c (Fdelete_and_extract_region):
29769 * fileio.c (Fread_file_name):
29770 * fns.c (Fmapconcat):
29771 * keyboard.c (cmd_error_internal):
29772 * keymap.c (Fkey_description):
29773 * lread.c (openp):
29774 * minibuf.c (read_minibuf):
29775 * search.c (wordify):
29776 * sunfns.c (sel_read):
29777 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
29778 * xfns.c (x_default_scroll_bar_color_parameter):
29779 * xmenu.c (menu_help_callback):
29780 * xselect.c (Fx_get_atom_name):
29781 * xterm.c (x_term_init): Use empty_unibyte_string.
29782
297832007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
29784
29785 * alloc.c (init_strings): Initialize canonical empty strings.
29786 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
29787 canonical empty string when the requested size is 0.
29788
29789 * emacs.c (empty_unibyte_string): Rename from empty_string.
29790 (empty_multibyte_string): New canonical empty string.
29791 (syms_of_emacs): Don't initialize empty_string.
29792
29793 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
29794 string, if appropriate.
29795 (empty_unibyte_string, empty_multibyte_string): New externs.
29796 (empty_string): Remove extern.
29797
29798 * lread.c (syms_of_lread): Use empty_unibyte_string.
29799
298002007-06-07 Jason Rumney <jasonr@gnu.org>
29801
29802 * s/ms-w32.h: Don't define HAVE_TZNAME.
29803
29804 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
29805
298062007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29807
29808 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
29809
29810 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
29811 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
29812
29813 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
29814 Don't call next handler.
29815 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
29816 Remove argument. Install handler to application.
29817 (set_frame_menubar): Don't change deep_p.
29818 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
29819 FRAME_OUTER_TO_INNER_DIFF_Y.
29820 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
29821 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
29822 [HAVE_DIALOGS]: New macros.
29823 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
29824 Use them.
29825 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
29826
29827 * macselect.c [MAC_OSX] (install_service_handler): Rename from
29828 init_service_handler. All callers changed. Return OSStatus value.
29829
29830 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
29831 All callers changed so as not to call SetPortWindowPort.
29832 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
29833 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
29834 mac_draw_string_common.
29835 (mac_draw_image_string_qd): Likewise.
29836 (mac_draw_string_common): Use them. Add INLINE.
29837 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
29838 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
29839 GetGlobalMouse.
29840 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
29841 and FRAME_OUTER_TO_INNER_DIFF_Y.
29842 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
29843 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
29844 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
29845 repositioning window to mac_handle_window_event.
29846 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
29847 saving window location to mac_handle_window_event
29848 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
29849 (install_menu_target_item_handler): Remove argument in extern.
29850 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
29851 Also accept command events.
29852 (do_keystroke): New function created from XTread_socket.
29853 (init_command_handler): Remove functions.
29854 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
29855 and save window location by kEventWindowShowing and kEventWindowHiding
29856 handlers here. Don't call next handler for window state change and
29857 focus events.
29858 (mac_handle_application_event, mac_handle_keyboard_event)
29859 [TARGET_API_MAC_CARBON]: New functions.
29860 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
29861 kEventWindowShowing and kEventWindowHiding events. Move installation
29862 of mouse, font, text input and menu target item handlers to
29863 install_application_handler.
29864 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
29865 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
29866 New function.
29867 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
29868 Register it.
29869 (XTread_socket) [TARGET_API_MAC_CARBON]:
29870 Consolidate SendEventToEventTarget calls.
29871 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
29872 Move application activation handler to mac_handle_application_event.
29873 Move keyboard handler to mac_handle_keyboard_event.
29874 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
29875 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
29876 init_command_handler. Call install_application_handler.
29877
29878 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
29879 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
29880
298812007-06-07 Glenn Morris <rgm@gnu.org>
29882
29883 * emacs.c (main): Use `emacs-copyright' in --version output.
29884
298852007-06-06 Chong Yidong <cyd@stupidchicken.com>
29886
29887 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
29888
298892007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29890
29891 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
29892
29893 * macgui.h: Replace WindowPtr with WindowRef.
29894
29895 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
29896 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
29897 Replace ControlHandle with ControlRef.
29898 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
29899
29900 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
29901 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
29902 Replace ControlHandle with ControlRef.
29903 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
29904 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
29905
29906 * macterm.h (struct scroll_bar): Rename member control_handle_low
29907 and control_handle_high to control_ref_low and control_ref_high.
29908 All uses changed.
29909 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
29910 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
29911 respectively. All uses changed.
29912 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
29913 (install_window_handler, remove_window_handler): Replace WindowPtr
29914 with WindowRef in externs.
29915
299162007-06-05 Juanma Barranquero <lekktu@gmail.com>
29917
29918 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
29919
299202007-06-03 Nick Roberts <nickrob@snap.net.nz>
29921
29922 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
29923
29924 * frame.c (Fmouse_position, Fmouse_pixel_position):
29925 Condition on HAVE_GPM too.
29926
29927 * term.c (term_mouse_highlight): Remove unused variables.
29928 (Fterm_open_connection): Set gpm_zerobased to 1.
29929 (term_mouse_movement, term_mouse_click, handle_one_term_event):
29930 Use zero based co-ordinates.
29931 (handle_one_term_event): Report a drag as mouse movement too.
29932
29933 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
29934
299352007-06-03 Chong Yidong <cyd@stupidchicken.com>
29936
29937 * image.c (search_image_cache): New function. Require background
29938 color match if background color is unspecified in the image spec.
29939 (uncache_image, lookup_image): Use it.
29940
299412007-06-01 Juanma Barranquero <lekktu@gmail.com>
29942
29943 * window.c (Fshrink_window): Reflow docstring.
29944
299452007-06-02 Chong Yidong <cyd@stupidchicken.com>
29946
29947 * Version 22.1 released.
29948
299492007-06-01 Richard Stallman <rms@gnu.org>
29950
29951 * xfns.c (x_encode_text): Add GCPRO.
29952
299532007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29954
29955 * xfns.c (x_set_name_internal): Save encoded name before
29956 x_encode_text in case string data is relocated.
29957
299582007-05-31 Richard Stallman <rms@gnu.org>
29959
29960 * buffer.c (syms_of_buffer): Doc fix.
29961
299622007-05-30 Nick Roberts <nickrob@snap.net.nz>
29963
29964 * sysdep.c (init_sys_modes): Add rather than replace with
29965 O_NONBLOCK.
29966
29967 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
29968 term_mouse_moveto.
29969
29970 * termhooks.h (term_mouse_moveto): New extern.
29971
29972 * term.c (mouse_face_window): Rename...
29973 (Qmouse_face_window): ...to this.
29974 (term_show_mouse_face, term_clear_mouse_face)
29975 (term_mouse_highlight): Use Qmouse_face_window.
29976 (term_mouse_moveto): New function.
29977 (term_mouse_position): Make it work.
29978 (syms_of_term): Uncomment assignment to mouse_position_hook.
29979 Staticpro Qmouse_face_window.
29980
299812007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29982
29983 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
29984 around current_column call.
29985
299862007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
29987
29988 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
29989 * xdisp.c (next_element_from_buffer):
29990 * window.c (delete_window):
29991 * term.c (term_mouse_highlight):
29992 * msdos.c (getdefdir):
29993 * macterm.c (mac_create_bitmap_from_bitmap_data)
29994 (init_font_name_table):
29995 * fns.c (Fsxhash):
29996 * data.c (Fmake_local_variable):
29997 * ccl.c (ccl_driver): Likewise.
29998
299992007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30000
30001 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
30002 Call mac_wakeup_from_rne on window size change.
30003
300042007-05-25 Chong Yidong <cyd@stupidchicken.com>
30005
30006 * image.c (uncache_image): Fix typo.
30007
300082007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
30009
30010 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
30011
300122007-05-22 Richard Stallman <rms@gnu.org>
30013
30014 * xterm.c (x_connection_closed): Remove NO_RETURN.
30015
300162007-05-22 Martin Rudalics <rudalics@gmx.at>
30017
30018 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
30019
300202007-05-21 Chong Yidong <cyd@stupidchicken.com>
30021
30022 * image.c (uncache_image): New function.
30023 (Fimage_refresh): New function.
30024
300252007-05-20 Jan Djärv <jan.h.d@swipnet.se>
30026
30027 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
30028
300292007-05-20 Nick Roberts <nickrob@snap.net.nz>
30030
30031 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
30032 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
30033
300342007-05-20 Nick Roberts <nickrob@snap.net.nz>
30035
30036 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
30037 conditional on [HAVE_GPM_H].
30038
300392007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
30040
30041 * syntax.c (skip_chars): Update syntax-table only after we checked that
30042 the new location is valid.
30043
300442007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30045
30046 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
30047 mac_get_window_bounds.
30048
300492007-05-20 Nick Roberts <nickrob@snap.net.nz>
30050
30051 * Makefile.in (LIBGPM): Allow it to be set from configure.
30052 If set then link Emacs with it.
30053
30054 * config.in: Regenerate.
30055
30056 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
30057 New externs.
30058
30059 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
30060 Include gpm.h.
30061 (handle_one_term_event, term_gpm): New externs.
30062
30063 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
30064 and allow it to be interrupted by SIGIO.
30065
30066 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
30067 (wait_reading_process_output): Wait on gpm_fd too.
30068 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
30069 (add_gpm_wait_descriptor_called_flag): New variable.
30070 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
30071
30072 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
30073 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
30074 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
30075 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
30076 (make_lispy_event): Add case GPM_CLICK_EVENT.
30077 (read_avail_input): Handle mouse input.
30078
30079 * term.c (write_glyphs_with_face): New function.
30080 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
30081 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
30082 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
30083 (mouse_face_face_id, term_gpm, pos_x, pos_y)
30084 (last_mouse_x, last_mouse_y): New variables.
30085 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
30086 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
30087 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
30088 (Fterm_close_connection): New functions.
30089 (term_init): Initialise mouse_face_window.
30090
300912007-05-19 Chong Yidong <cyd@stupidchicken.com>
30092
30093 * xdisp.c (redisplay_window): If first window line is a
30094 continuation line, recompute the new window start instead of
30095 recentering.
30096
300972007-05-18 Glenn Morris <rgm@gnu.org>
30098
30099 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
30100 Suggested by Alfred M. Szmidt <ams@gnu.org>.
30101
301022007-05-17 Glenn Morris <rgm@gnu.org>
30103
30104 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
30105
301062007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30107
30108 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
30109 dead key repeat and up events.
30110
301112007-05-14 Chong Yidong <cyd@stupidchicken.com>
30112
30113 * image.c (pbm_load): Check image size for monochrome pbm.
30114
301152007-05-13 Chong Yidong <cyd@stupidchicken.com>
30116
30117 * xterm.c (XTread_socket): Revert last change.
30118
301192007-05-12 Chong Yidong <cyd@stupidchicken.com>
30120
30121 * image.c (pbm_load): Correctly check image size for greyscale pbm.
30122
30123 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
30124
301252007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
30126
30127 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
30128 mixup (YAILOM).
30129
301302007-05-07 Andreas Schwab <schwab@suse.de>
30131
30132 * keymap.c (Flookup_key): Fix typo in last change.
30133
301342007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
30135
30136 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
30137 mapping for unibyte strings.
30138
301392007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30140
30141 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
30142 (Fx_popup_dialog) [MAC_OSX]: Likewise.
30143
301442007-04-29 Richard Stallman <rms@gnu.org>
30145
30146 * insdel.c (replace_range): For undo, record insertion first.
30147
301482007-04-29 Andreas Schwab <schwab@suse.de>
30149
30150 * lisp.h (VECSIZE): Use OFFSETOF.
30151
301522007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30153
30154 * xdisp.c (try_window_reusing_current_matrix): Fix number of
30155 disabled lines.
30156
301572007-04-28 Richard Stallman <rms@gnu.org>
30158
30159 * lread.c (read_escape): In a string, \s is always space.
30160
301612007-04-27 Jan Djärv <jan.h.d@swipnet.se>
30162
30163 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
30164
30165 * gtkutil.c (xg_update_menubar, create_menus): Create empty
30166 submenu for menu bar items.
30167
30168See ChangeLog.10 for earlier changes.
30169
30170;; Local Variables:
30171;; coding: utf-8
aac0c6e3
MR
30172;; End:
30173
e9bffc61
GM
30174 Copyright (C) 2007, 2008, 2009, 2010, 2011
30175 Free Software Foundation, Inc.
aac0c6e3
MR
30176
30177 This file is part of GNU Emacs.
30178
30179 GNU Emacs is free software: you can redistribute it and/or modify
30180 it under the terms of the GNU General Public License as published by
30181 the Free Software Foundation, either version 3 of the License, or
30182 (at your option) any later version.
30183
30184 GNU Emacs is distributed in the hope that it will be useful,
30185 but WITHOUT ANY WARRANTY; without even the implied warranty of
30186 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30187 GNU General Public License for more details.
30188
30189 You should have received a copy of the GNU General Public License
30190 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.