gnus-int.el (gnus-request-marks): Call *-request-marks instead of the older request...
[bpt/emacs.git] / src / ChangeLog
CommitLineData
372fb76b
CY
12011-01-27 Chong Yidong <cyd@stupidchicken.com>
2
3 * font.c (font_parse_fcname): Undefine a temporary macro.
4
e7f7fbaa
SM
52011-01-26 Stefan Monnier <monnier@iro.umontreal.ca>
6
7 Let the debugger continue to the normal handler (bug#7825).
8 * eval.c (maybe_call_debugger): Declare before new use.
9 (find_handler_clause): Don't call debugger any more.
10 Ignore Vstack_trace_on_error.
11 Use XCAR/XCDR.
12 (syms_of_eval): Remove Vstack_trace_on_error.
13 (Fsignal): Only modify handlerlist when we know we need to do it.
14 Call the debugger when necessary.
15 * globals.h (Vstack_trace_on_error): Remove.
16
6608a7d8
CY
172011-01-26 Chong Yidong <cyd@stupidchicken.com>
18
19 * font.c (font_parse_fcname): Rewrite GTK font name parser.
20
06d8ace5 212011-01-25 Stefan Monnier <monnier@iro.umontreal.ca>
f996bbcb
SM
22
23 * xdisp.c (handle_fontified_prop): Be careful with font-lock changing
24 the buffer's point-max (bug#7876).
25
06d8ace5 262011-01-25 Chong Yidong <cyd@stupidchicken.com>
19634648
CY
27
28 * lisp.h (XPNTR): Obey DATA_SEG_BITS in all non-USE_LSB_TAG cases.
06d8ace5 29 Remove unused case (Bug#6811).
19634648 30
8ab70320
JD
312011-01-23 Jan Djärv <jan.h.d@swipnet.se>
32
33 * nsterm.m (x_set_offset): Set dont_constrain to 0 so the call to
34 setFrameTopLeftPoint is constrained.
35
51b59d79
PE
362011-01-23 Paul Eggert <eggert@cs.ucla.edu>
37
9055082e
PE
38 Check return values of some library calls.
39 * emacs.c (main): Check dup result.
40 * frame.c: Include <limits.h>, for INT_MIN and INT_MAX.
41 (frame_name_fnn_p): Check strtol result.
42
5c7d01a5 43 * image.c (x_create_bitmap_from_xpm_data): Add cast to fix type clash
f77fabaf
PE
44 when calling XpmCreatePixmapFromData.
45
51b59d79
PE
46 Promote SSDATA macro from gtkutil.c and xsmfns.c to lisp.h.
47 * lisp.h (SSDATA): New macro.
48 All uses of (char *) SDATA (x) replaced with SSDATA (x),
49 and all uses of (unsigned char *) SDATA (x) replaced with SDATA (x).
50 * gtkutil.c (SSDATA): Remove, as lisp.h now defines this.
51 * xsmfns.c (SSDATA): Likewise.
52
e6b84b30
MR
532011-01-22 Martin Rudalics <rudalics@gmx.at>
54
55 * window.c (select_window): New function.
56 (Fselect_window): Call it.
57 (inhibit_point_swap): Variable deleted.
58 (Fset_window_configuration): Call select_window directly.
59
3fb69558
JD
602011-01-22 Jan Djärv <jan.h.d@swipnet.se>
61
62 * nsterm.m (constrainFrameRect): Only constrain the first time called.
63
449ab399
JD
642011-01-21 Jan Djärv <jan.h.d@swipnet.se>
65
e2f79c8d
JD
66 * nsterm.m (x_set_offset, windowDidMove): When calculating y, use first
67 screen, not the window screen.
68 (x_set_window_size): Remove constraints.
69 Calculate origin.y only if zooming is 0 and without referring to a
70 screen.
71 (windowWillResize): Don't modify frameSize.
72 (windowDidBecomeKey, mouseDown): Set dont_constrain to 1.
73 (initFrameFromEmacs): Initialize ns_userRect.
74 (windowShouldZoom): Set zooming to one. Remove all other code.
75 (windowWillUseStandardFrame): Move static ns_userRect to EmacsView.
76 Zero it after restore.
77 (constrainFrameRect): New method for EmacsWindow.
78 (mouseDragged): Always post NSWindowDidResizeNotification after call to
79 windowWillResize.
80
81 * nsterm.h (ns_output): Add dont_constrain and zooming.
82 (EmacsView): Add ns_userRect.
83
449ab399
JD
84 * nsterm.m (keyDown): If ns_right_alternate_modifier is Qleft, check
85 if ns_alternate_modifier is none.
86
e885315d
JD
872011-01-20 Jan Djärv <jan.h.d@swipnet.se>
88
89 * unexmacosx.c: Add comment about include order.
90
bb1c6663
GM
912011-01-20 Glenn Morris <rgm@gnu.org>
92
c11136ec
GM
93 * minibuf.c (syms_of_minibuf) <read-expression-history>:
94 Give it a doc string.
95 * globals.h: Add Vread_expression_history.
96
bb1c6663
GM
97 * macros.c (syms_of_macros) <kbd-macro-termination-hook>:
98 Give it a doc string.
99 * globals.h: Add Vkbd_macro_termination_hook.
100
9aea757b
CY
1012011-01-20 Chong Yidong <cyd@stupidchicken.com>
102
103 * fns.c (Fyes_or_no_p): Revert 2011-01-07 change, removing ARGS.
104
e1ef0dac
PE
1052011-01-19 Paul Eggert <eggert@cs.ucla.edu>
106
107 Fix X11 compilation failure.
108 * globals.h (struct emacs_globals): Document f_Vselection_alist.
109 * xselect.c (Vselection_alist): Remove declaration, moving its
110 documentation to globals.h. This fixes a compilation failure
111 induced by the earlier change to globals.h today.
112
fb9d0f5a
JD
1132011-01-19 Jan Djärv <jan.h.d@swipnet.se>
114
8beb828a
JD
115 * unexmacosx.c: Include config.h before unistd.h (Bug#7859).
116
fb9d0f5a
JD
117 * nsterm.m (ns_input_file, ns_input_font, ns_input_fontsize)
118 (ns_input_line, ns_input_color, ns_input_text, ns_working_text)
119 (ns_input_spi_name, ns_input_spi_arg)
120 (ns_alternate_modifier, ns_right_alternate_modifier)
121 (ns_command_modifier, ns_right_command_modifier, ns_control_modifier)
122 (ns_right_control_modifier, ns_function_modifier)
123 (ns_antialias_text, ns_confirm_quit): Move to globals.h.
124 (Vx_toolkit_scroll_bars, x_use_underline_position_properties)
125 (x_underline_at_descent_line): Remove declaration.
126 (syms_of_nsterm): Remove & from DEFVAR_LISP and DEFVAR_BOOL.
127
128 * nsselect.m (Vns_sent_selection_hooks, Vns_lost_selection_hooks
129 (Vselection_alist, Vselection_converter_alist): Move to globals.h.
130 (syms_of_nsselect): Remove & from DEFVAR_LISP.
131
132 * nsmenu.m (Voverriding_local_map, Voverriding_local_map_menu_flag):
133 Remove declaration.
134
135 * nsfont.m (Vns_reg_to_script, ns_antialias_text): Move to
136 globals.h.
137 (syms_of_nsfont): Remove & from DEFVAR_LISP.
138
139 * nsfns.m (Vmenu_bar_mode, Vtool_bar_mode): Remove declaration.
140 (Vns_icon_type_alist, Vns_version_string): Move to globals.h.
141 (syms_of_nsfns): Remove & from DEFVAR_LISP calls.
142
143 * globals.h (struct emacs_globals): Add f_ns_input_file,
144 f_ns_input_font, f_ns_input_fontsize, f_ns_input_line,
145 f_ns_input_color, f_ns_input_text, f_ns_working_text,
146 f_ns_input_spi_name, f_ns_input_spi_arg, f_ns_alternate_modifier,
147 f_ns_right_alternate_modifier, f_ns_command_modifier,
148 f_ns_right_command_modifier, f_ns_control_modifier,
149 f_ns_right_control_modifier, f_ns_function_modifier,
150 f_ns_antialias_text, f_ns_confirm_quit, f_Vns_icon_type_alist,
151 f_Vns_version_string, f_Vns_sent_selection_hooks,
152 f_Vns_lost_selection_hooks, f_Vselection_alist, f_Vns_reg_to_script
153 and corresponding defines.
154
155
4e55715e
SS
1562011-01-19 Sam Steingold <sds@gnu.org>
157
158 * w32.c (check_windows_init_file): Remove declarations of
159 Vwindow_system, Vload_path, Qfile_exists_p to fix compilation.
817a735d 160 * w32fns.c: Fix an error introduced by the previous patch.
4e55715e 161
ef79d2fa
TT
1622011-01-19 Tom Tromey <tromey@redhat.com>
163
164 * window.c: Fix error introduced by previous patch.
165
29208e82
TT
1662011-01-18 Tom Tromey <tromey@parfait>
167
168 * globals.h: New file.
169 * xterm.h (Vx_pixel_size_width_font_regexp): Remove declaration.
170 * window.h (Vinitial_window_system, Vminibuf_scroll_window)
171 (Vwindow_system_version): Remove declaration.
172 * w32term.h (Vw32_enable_palette)
173 (Vx_pixel_size_width_font_regexp): Remove declaration.
174 * w32menu.c (Voverriding_local_map)
175 (Voverriding_local_map_menu_flag): Remove declaration.
176 * w32inevt.c (Vw32_alt_is_meta, Vw32_apps_modifier)
177 (Vw32_capslock_is_shiftlock, Vw32_enable_caps_lock)
178 (Vw32_enable_num_lock, Vw32_lwindow_modifier)
179 (Vw32_pass_lwindow_to_system, Vw32_pass_rwindow_to_system)
180 (Vw32_phantom_key_code, Vw32_recognize_altgr)
181 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
182 (w32_use_full_screen_buffer): Remove declaration.
183 * w32.c (Vsystem_configuration, Vw32_downcase_file_names)
184 (Vw32_generate_fake_inodes, Vw32_get_true_file_attributes)
185 (w32_num_mouse_buttons, w32_pipe_read_delay): Remove declaration.
186 * termopts.h (Vtruncate_partial_width_windows, inverse_video)
187 (no_redraw_on_reenter, visible_bell): Remove declaration.
188 * sysdep.c (Vsystem_name): Remove declaration.
189 * syntax.h (parse_sexp_lookup_properties): Remove declaration.
190 * menu.h (Vmenu_updating_frame): Remove declaration.
191 * macros.h (Vexecuting_kbd_macro, executing_kbd_macro_index):
192 Remove declaration.
193 * lisp.h (Vafter_init_time, Vafter_load_alist)
194 (Vauto_save_list_file_name, Vbefore_init_time, Vcommand_history)
195 (Vcompletion_regexp_list, Vcurrent_load_list)
196 (Vcurrent_prefix_arg, Vdata_directory, Vdebug_on_error)
197 (Vdoc_directory, Vdoc_file_name, Vdynamic_library_alist)
198 (Vexec_directory, Vexec_path, Vexec_suffixes)
199 (Vface_font_rescale_alist, Vface_ignored_fonts, Vfeatures)
200 (Vhelp_form, Vhistory_length, Vinhibit_field_text_motion)
201 (Vinhibit_quit, Vinhibit_read_only, Vinhibit_redisplay)
202 (Vinstallation_directory, Vinvocation_directory)
203 (Vinvocation_name, Vload_file_rep_suffixes, Vload_history)
204 (Vload_suffixes, Vmark_even_if_inactive, Vmemory_full)
205 (Vmessage_log_max, Vobarray, Vprint_length, Vprint_level)
206 (Vpurify_flag, Vquit_flag, Vsaved_region_selection)
207 (Vscalable_fonts_allowed, Vselect_active_regions)
208 (Vshell_file_name, Vstandard_input, Vstandard_output)
209 (Vsystem_name, Vtemporary_file_directory, Vthrow_on_input)
210 (Vtop_level, Vtty_erase_char, Vundo_outer_limit)
211 (Vuser_login_name, Vwindow_scroll_functions)
212 (Vwindow_system_version, Vx_no_window_manager)
213 (Vx_resource_class, Vx_resource_name, baud_rate)
214 (completion_ignore_case, debug_on_next_call, gc_cons_threshold)
215 (history_delete_duplicates, inhibit_x_resources)
216 (last_nonmenu_event, load_in_progress, max_specpdl_size)
217 (minibuffer_auto_raise, print_escape_newlines, scroll_margin)
218 (use_dialog_box, use_file_dialog): Remove declaration. Include
219 globals.h.
220 * keymap.h (Voverriding_local_map)
221 (Voverriding_local_map_menu_flag, meta_prefix_char): Remove
222 declaration.
223 * keyboard.h (Vdouble_click_time, Vfunction_key_map)
224 (Vinput_method_function, Vkey_translation_map)
225 (Vlucid_menu_bar_dirty_flag, Vthis_original_command)
226 (do_mouse_tracking, extra_keyboard_modifiers)
227 (num_nonmacro_input_events): Remove declaration.
228 * intervals.h (Vchar_property_alias_alist)
229 (Vdefault_text_properties, Vinhibit_point_motion_hooks)
230 (Vtext_property_default_nonsticky): Remove declaration.
231 * gtkutil.h (x_gtk_file_dialog_help_text)
232 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
233 (x_gtk_whole_detached_tool_bar): Remove declaration.
234 * frame.h (Vdefault_frame_alist, Vframe_alpha_lower_limit)
235 (Vmenu_bar_mode, Vmouse_highlight, Vterminal_frame)
236 (Vtool_bar_mode, Vx_resource_class, Vx_resource_name)
237 (focus_follows_mouse): Remove declaration.
238 * fontset.h (Valternate_fontname_alist, Vfontset_alias_alist)
239 (Vignore_relative_composition, Votf_script_alist)
240 (Vuse_default_ascent, Vvertical_centering_font_regexp): Remove
241 declaration.
242 * font.h (Vfont_log): Remove declaration.
243 * dosfns.h (Vdos_display_scancodes, Vdos_version)
244 (Vdos_windows_version, dos_codepage, dos_country_code)
245 (dos_decimal_point, dos_hyper_key, dos_keyboard_layout)
246 (dos_keypad_mode, dos_super_key, dos_timezone_offset): Remove
247 declaration.
248 * disptab.h (Vglyph_table, Vstandard_display_table): Remove
249 declaration.
250 * dispextern.h (Vface_remapping_alist, Vglyphless_char_display)
251 (Vmouse_autoselect_window, Voverflow_newline_into_fringe)
252 (Vshow_trailing_whitespace, Vtool_bar_button_margin)
253 (Vtool_bar_style, cursor_in_echo_area, display_hourglass_p)
254 (inverse_video, mode_line_in_non_selected_windows)
255 (tool_bar_button_relief, tool_bar_max_label_size)
256 (underline_minimum_offset)
257 (unibyte_display_via_language_environment, x_stretch_cursor_p):
258 Remove declaration.
259 * composite.h (Vauto_composition_function)
260 (Vcomposition_function_table): Remove declaration.
261 * commands.h (Vexecuting_kbd_macro)
262 (Vminibuffer_local_completion_map)
263 (Vminibuffer_local_filename_completion_map)
264 (Vminibuffer_local_filename_must_match_map)
265 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
266 (Vminibuffer_local_ns_map, Vthis_command)
267 (Vunread_command_events, cursor_in_echo_area)
268 (last_command_event, last_nonmenu_event, unread_command_char):
269 Remove declaration.
270 * coding.h (Vcoding_system_for_read, Vcoding_system_for_write)
271 (Vdefault_file_name_coding_system)
272 (Vdefault_process_coding_system, Vfile_name_coding_system)
273 (Vlast_coding_system_used, Vlocale_coding_system)
274 (Vselect_safe_coding_system_function)
275 (Vtranslation_table_for_input, coding_system_require_warning)
276 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
277 (eol_mnemonic_unix, inherit_process_coding_system): Remove
278 declaration.
279 * charset.h (Vcharset_list, Vcurrent_iso639_language): Remove
280 declaration.
281 * character.h (Vauto_fill_chars, Vchar_direction_table)
282 (Vchar_script_table, Vchar_width_table, Vprintable_chars)
283 (Vscript_representative_chars, Vtranslation_table_vector)
284 (Vunicode_category_table): Remove declaration.
285 * ccl.h (Vfont_ccl_encoder_alist): Remove declaration.
286 * buffer.h (Vafter_change_functions, Vbefore_change_functions)
287 (Vdeactivate_mark, Vfirst_change_hook, Vtransient_mark_mode)
288 (inhibit_modification_hooks): Remove declaration.
289 * xterm.c (syms_of_xterm): Update.
290 (Vx_alt_keysym, Vx_hyper_keysym, Vx_keysym_table)
291 (Vx_meta_keysym, Vx_super_keysym, Vx_toolkit_scroll_bars)
292 (x_mouse_click_focus_ignore_position)
293 (x_underline_at_descent_line)
294 (x_use_underline_position_properties): Remove.
295 * xsmfns.c (syms_of_xsmfns): Update.
296 (Vx_session_id, Vx_session_previous_id): Remove.
297 * xsettings.c (syms_of_xsettings): Update.
298 (Vxft_settings, use_system_font): Remove.
299 * xselect.c (syms_of_xselect): Update.
300 (Vselection_converter_alist, Vx_lost_selection_functions)
301 (Vx_sent_selection_functions, x_selection_timeout): Remove.
302 * xfns.c (syms_of_xfns): Update.
303 (Vgtk_version_string, Vmotif_version_string)
304 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
305 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
306 (Vx_no_window_manager, Vx_nontext_pointer_shape)
307 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
308 (Vx_sensitive_text_pointer_shape)
309 (Vx_window_horizontal_drag_shape, x_gtk_file_dialog_help_text)
310 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
311 (x_gtk_use_system_tooltips, x_gtk_whole_detached_tool_bar):
312 Remove.
313 * xfaces.c (syms_of_xfaces): Update.
314 (Vface_default_stipple, Vface_font_rescale_alist)
315 (Vface_ignored_fonts, Vface_new_frame_defaults)
316 (Vface_remapping_alist, Vfont_list_limit)
317 (Vscalable_fonts_allowed, Vtty_defined_color_alist): Remove.
318 * xdisp.c (syms_of_xdisp): Update.
319 (Vauto_resize_tool_bars, Vblink_cursor_alist)
320 (Vdisplay_pixels_per_inch, Vfontification_functions)
321 (Vframe_title_format, Vglobal_mode_string)
322 (Vglyphless_char_display, Vhourglass_delay, Vhscroll_step)
323 (Vicon_title_format, Vinhibit_redisplay)
324 (Vline_number_display_limit, Vline_prefix)
325 (Vmax_mini_window_height, Vmenu_bar_update_hook)
326 (Vmenu_updating_frame, Vmessage_log_max)
327 (Vmouse_autoselect_window, Vnobreak_char_display)
328 (Voverlay_arrow_position, Voverlay_arrow_string)
329 (Voverlay_arrow_variable_list, Vredisplay_end_trigger_functions)
330 (Vresize_mini_windows, Vshow_trailing_whitespace)
331 (Vtool_bar_border, Vtool_bar_button_margin, Vtool_bar_style)
332 (Vtruncate_partial_width_windows, Vvoid_text_area_pointer)
333 (Vwindow_scroll_functions, Vwindow_size_change_functions)
334 (Vwindow_text_change_functions, Vwrap_prefix)
335 (auto_raise_tool_bar_buttons_p, automatic_hscrolling_p)
336 (debug_end_pos, display_hourglass_p, emacs_scroll_step)
337 (highlight_nonselected_windows, hscroll_margin)
338 (inhibit_eval_during_redisplay, inhibit_free_realized_faces)
339 (inhibit_menubar_update, inhibit_try_cursor_movement)
340 (inhibit_try_window_id, inhibit_try_window_reusing)
341 (line_number_display_limit_width)
342 (make_cursor_line_fully_visible_p, message_truncate_lines)
343 (mode_line_inverse_video, multiple_frames, overline_margin)
344 (scroll_conservatively, scroll_margin, tool_bar_button_relief)
345 (tool_bar_max_label_size, underline_minimum_offset)
346 (unibyte_display_via_language_environment, x_stretch_cursor_p):
347 Remove.
348 * window.c (syms_of_window): Update.
349 (Vminibuf_scroll_window, Vother_window_scroll_buffer)
350 (Vrecenter_redisplay, Vscroll_preserve_screen_position)
351 (Vtemp_buffer_show_function, Vwindow_configuration_change_hook)
352 (Vwindow_point_insertion_type, auto_window_vscroll_p)
353 (mode_line_in_non_selected_windows, next_screen_context_lines)
354 (window_min_height, window_min_width): Remove.
355 (scroll_margin): Remove declaration.
356 * w32term.c (syms_of_w32term): Update.
357 (Vw32_capslock_is_shiftlock, Vw32_grab_focus_on_raise)
358 (Vw32_recognize_altgr, Vw32_swap_mouse_buttons)
359 (Vx_toolkit_scroll_bars, w32_num_mouse_buttons)
360 (w32_use_visible_system_caret, x_underline_at_descent_line)
361 (x_use_underline_position_properties): Remove.
362 (Vcommand_line_args, Vsystem_name, extra_keyboard_modifiers):
363 Remove declaration.
364 * w32select.c (syms_of_w32select): Update.
365 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
366 * w32proc.c (syms_of_ntproc): Update.
367 (Vw32_downcase_file_names, Vw32_generate_fake_inodes)
368 (Vw32_get_true_file_attributes, Vw32_quote_process_args)
369 (Vw32_start_process_inherit_error_mode)
370 (Vw32_start_process_share_console)
371 (Vw32_start_process_show_window, w32_pipe_read_delay): Remove.
372 (Vsystem_name): Remove declaration.
373 * w32font.c (syms_of_w32font): Update.
374 (Vw32_charset_info_alist): Remove.
375 * w32fns.c (globals_of_w32fns, syms_of_w32fns): Update.
376 (Vw32_alt_is_meta, Vw32_apps_modifier, Vw32_bdf_filename_alist)
377 (Vw32_color_map, Vw32_enable_caps_lock, Vw32_enable_num_lock)
378 (Vw32_enable_palette, Vw32_lwindow_modifier)
379 (Vw32_pass_alt_to_system, Vw32_pass_lwindow_to_system)
380 (Vw32_pass_rwindow_to_system, Vw32_phantom_key_code)
381 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
382 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
383 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
384 (Vx_no_window_manager, Vx_nontext_pointer_shape)
385 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
386 (Vx_sensitive_text_pointer_shape)
387 (Vx_window_horizontal_drag_shape, w32_ansi_code_page)
388 (w32_enable_synthesized_fonts, w32_mouse_button_tolerance)
389 (w32_mouse_move_interval)
390 (w32_pass_extra_mouse_buttons_to_system)
391 (w32_pass_multimedia_buttons_to_system, w32_quit_key)
392 (w32_strict_fontnames, w32_strict_painting): Remove.
393 (Vhourglass_delay, Vmenu_bar_mode, Vtool_bar_mode)
394 (Vw32_recognize_altgr, Vwindow_system_version)
395 (w32_num_mouse_buttons, w32_use_visible_system_caret): Remove
396 declaration.
397 * w32console.c (syms_of_ntterm): Update.
398 (w32_use_full_screen_buffer): Remove.
399 (Vtty_defined_color_alist): Remove declaration.
400 * w16select.c (syms_of_win16select): Update.
401 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
402 * undo.c (syms_of_undo): Update.
403 (Vundo_outer_limit, Vundo_outer_limit_function)
404 (undo_inhibit_record_point, undo_limit, undo_strong_limit):
405 Remove.
406 * textprop.c (syms_of_textprop): Update.
407 (Vchar_property_alias_alist, Vdefault_text_properties)
408 (Vinhibit_point_motion_hooks, Vtext_property_default_nonsticky):
409 Remove.
410 * terminal.c (syms_of_terminal): Update.
411 (Vdelete_terminal_functions, Vring_bell_function): Remove.
412 * term.c (syms_of_term): Update.
413 (Vresume_tty_functions, Vsuspend_tty_functions)
414 (no_redraw_on_reenter, system_uses_terminfo, visible_cursor):
415 Remove.
416 * syntax.c (syms_of_syntax): Update.
417 (Vfind_word_boundary_function_table, multibyte_syntax_as_symbol)
418 (open_paren_in_column_0_is_defun_start)
419 (parse_sexp_ignore_comments, parse_sexp_lookup_properties)
420 (words_include_escapes): Remove.
421 * search.c (syms_of_search): Update.
422 (Vinhibit_changing_match_data, Vsearch_spaces_regexp): Remove.
423 * process.c (syms_of_process): Update.
424 (Vprocess_adaptive_read_buffering, Vprocess_connection_type)
425 (delete_exited_processes): Remove.
426 * print.c (syms_of_print): Update.
427 (Vfloat_output_format, Vprint_charset_text_property)
428 (Vprint_circle, Vprint_continuous_numbering, Vprint_gensym)
429 (Vprint_length, Vprint_level, Vprint_number_table)
430 (Vstandard_output, print_escape_multibyte)
431 (print_escape_newlines, print_escape_nonascii, print_quoted):
432 Remove.
433 * msdos.c (syms_of_msdos): Update.
434 (Vdos_unsupported_char_glyph): Remove.
435 (unibyte_display_via_language_environment): Remove declaration.
436 * minibuf.c (syms_of_minibuf): Update.
437 (Vcompletion_regexp_list, Vhistory_add_new_input)
438 (Vhistory_length, Vminibuffer_completing_file_name)
439 (Vminibuffer_completion_confirm)
440 (Vminibuffer_completion_predicate, Vminibuffer_completion_table)
441 (Vminibuffer_exit_hook, Vminibuffer_help_form)
442 (Vminibuffer_history_position, Vminibuffer_history_variable)
443 (Vminibuffer_prompt_properties, Vminibuffer_setup_hook)
444 (Vread_buffer_function, Vread_expression_map)
445 (completion_ignore_case, enable_recursive_minibuffers)
446 (history_delete_duplicates, minibuffer_allow_text_properties)
447 (minibuffer_auto_raise, read_buffer_completion_ignore_case):
448 Remove.
449 * marker.c (syms_of_marker): Update.
450 (byte_debug_flag): Remove.
451 * macros.c (syms_of_macros): Update.
452 (Vexecuting_kbd_macro, executing_kbd_macro_index): Remove.
453 * lread.c (syms_of_lread): Update.
454 (Vafter_load_alist, Vbyte_boolean_vars)
455 (Vbytecomp_version_regexp, Vcurrent_load_list)
456 (Veval_buffer_list, Vload_file_name, Vload_file_rep_suffixes)
457 (Vload_history, Vload_path, Vload_read_function)
458 (Vload_source_file_function, Vload_suffixes, Vobarray)
459 (Vold_style_backquotes, Vpreloaded_file_list, Vread_circle)
460 (Vread_symbol_positions_list, Vread_with_symbol_positions)
461 (Vsource_directory, Vstandard_input, Vuser_init_file, Vvalues)
462 (force_load_messages, load_convert_to_unibyte)
463 (load_dangerous_libraries, load_force_doc_strings)
464 (load_in_progress): Remove.
465 * keymap.c (syms_of_keymap): Update.
466 (Vdefine_key_rebound_commands, Vemulation_mode_map_alists)
467 (Vminibuffer_local_completion_map)
468 (Vminibuffer_local_filename_completion_map)
469 (Vminibuffer_local_filename_must_match_map)
470 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
471 (Vminibuffer_local_ns_map, Vminor_mode_map_alist)
472 (Vminor_mode_overriding_map_alist, Vwhere_is_preferred_modifier):
473 Remove.
474 * keyboard.c (syms_of_keyboard): Update.
475 (Vauto_save_timeout, Vcommand_error_function)
476 (Vcommand_hook_internal, Vdeactivate_mark)
477 (Vdeferred_action_function, Vdeferred_action_list)
478 (Vdisable_point_adjustment, Vdouble_click_time)
479 (Vecho_keystrokes, Venable_disabled_menus_and_buttons)
480 (Vfunction_key_map, Vglobal_disable_point_adjustment)
481 (Vhelp_char, Vhelp_event_list, Vhelp_form)
482 (Vinput_method_function, Vinput_method_previous_message)
483 (Vkey_translation_map, Vlast_event_frame)
484 (Vlucid_menu_bar_dirty_flag, Vmenu_bar_final_items)
485 (Vminibuffer_message_timeout, Voverriding_local_map)
486 (Voverriding_local_map_menu_flag, Vpost_command_hook)
487 (Vpre_command_hook, Vprefix_help_command)
488 (Vsaved_region_selection, Vselect_active_regions)
489 (Vshow_help_function, Vspecial_event_map, Vsuggest_key_bindings)
490 (Vthis_command, Vthis_command_keys_shift_translated)
491 (Vthis_original_command, Vthrow_on_input, Vtimer_idle_list)
492 (Vtimer_list, Vtool_bar_separator_image_expression, Vtop_level)
493 (Vtty_erase_char, Vunread_command_events)
494 (Vunread_input_method_events, Vunread_post_input_method_events)
495 (auto_save_interval, cannot_suspend, do_mouse_tracking)
496 (double_click_fuzz, extra_keyboard_modifiers)
497 (inhibit_local_menu_bar_menus, last_command_event)
498 (last_input_event, last_nonmenu_event, menu_prompt_more_char)
499 (menu_prompting, meta_prefix_char, num_input_keys)
500 (num_nonmacro_input_events, polling_period, unread_command_char):
501 Remove.
502 * insdel.c (syms_of_insdel): Update.
503 (Vcombine_after_change_calls, check_markers_debug_flag): Remove.
504 * indent.c (syms_of_indent): Update.
505 (indent_tabs_mode): Remove.
506 * image.c (syms_of_image): Update.
507 (Vimage_cache_eviction_delay, Vimage_types)
508 (Vimagemagick_render_type, Vmax_image_size, Vx_bitmap_file_path)
509 (cross_disabled_images): Remove.
510 * fringe.c (syms_of_fringe): Update.
511 (Vfringe_bitmaps, Voverflow_newline_into_fringe): Remove.
512 * frame.c (syms_of_frame): Update.
513 (Vdefault_frame_alist, Vdefault_frame_scroll_bars)
514 (Vdelete_frame_functions, Vframe_alpha_lower_limit)
515 (Vmake_pointer_invisible, Vmenu_bar_mode, Vmouse_highlight)
516 (Vmouse_position_function, Vterminal_frame, Vtool_bar_mode)
517 (Vx_resource_class, Vx_resource_name, focus_follows_mouse):
518 Remove.
519 * fontset.c (syms_of_fontset): Update.
520 (Valternate_fontname_alist, Vfont_encoding_charset_alist)
521 (Vfontset_alias_alist, Vignore_relative_composition)
522 (Votf_script_alist, Vuse_default_ascent)
523 (Vvertical_centering_font_regexp): Remove.
524 * font.c (syms_of_font): Update.
525 (Vfont_encoding_alist, Vfont_log, Vfont_slant_table)
526 (Vfont_weight_table, Vfont_width_table): Remove.
527 * fns.c (syms_of_fns): Update.
528 (Vfeatures, use_dialog_box, use_file_dialog): Remove.
529 * filelock.c (syms_of_filelock): Update.
530 (Vtemporary_file_directory): Remove.
531 * fileio.c (syms_of_fileio): Update.
532 (Vafter_insert_file_functions, Vauto_save_include_big_deletions)
533 (Vauto_save_list_file_name, Vauto_save_visited_file_name)
534 (Vdefault_file_name_coding_system, Vfile_name_coding_system)
535 (Vfile_name_handler_alist, Vinhibit_file_name_handlers)
536 (Vinhibit_file_name_operation, Vset_auto_coding_function)
537 (Vwrite_region_annotate_functions)
538 (Vwrite_region_annotations_so_far)
539 (Vwrite_region_post_annotation_function)
540 (delete_by_moving_to_trash, write_region_inhibit_fsync): Remove.
541 (Vw32_get_true_file_attributes): Remove declaration.
542 * eval.c (syms_of_eval): Update.
543 (Vdebug_ignored_errors, Vdebug_on_error, Vdebug_on_signal)
544 (Vdebugger, Vinhibit_quit, Vmacro_declaration_function)
545 (Vquit_flag, Vsignal_hook_function, Vstack_trace_on_error)
546 (debug_on_next_call, debug_on_quit, debugger_may_continue)
547 (max_lisp_eval_depth, max_specpdl_size): Remove.
548 * emacs.c (syms_of_emacs): Update.
549 (Vafter_init_time, Vbefore_init_time, Vcommand_line_args)
550 (Vdynamic_library_alist, Vemacs_copyright, Vemacs_version)
551 (Vinstallation_directory, Vinvocation_directory)
552 (Vinvocation_name, Vkill_emacs_hook, Vpath_separator)
553 (Vprevious_system_messages_locale, Vprevious_system_time_locale)
554 (Vsystem_configuration, Vsystem_configuration_options)
555 (Vsystem_messages_locale, Vsystem_time_locale, Vsystem_type)
556 (inhibit_x_resources, noninteractive1): Remove.
557 * editfns.c (syms_of_editfns): Update.
558 (Vbuffer_access_fontified_property)
559 (Vbuffer_access_fontify_functions, Vinhibit_field_text_motion)
560 (Voperating_system_release, Vsystem_name, Vuser_full_name)
561 (Vuser_login_name, Vuser_real_login_name): Remove.
562 * dosfns.c (syms_of_dosfns): Update.
563 (Vdos_display_scancodes, Vdos_version, Vdos_windows_version)
564 (dos_codepage, dos_country_code, dos_decimal_point)
565 (dos_hyper_key, dos_keyboard_layout, dos_keypad_mode)
566 (dos_super_key, dos_timezone_offset): Remove.
567 * doc.c (syms_of_doc): Update.
568 (Vbuild_files, Vdoc_file_name): Remove.
569 * dispnew.c (syms_of_display): Update.
570 (Vglyph_table, Vinitial_window_system)
571 (Vredisplay_preemption_period, Vstandard_display_table)
572 (Vwindow_system_version, baud_rate, cursor_in_echo_area)
573 (inverse_video, redisplay_dont_pause, visible_bell): Remove.
574 * dired.c (syms_of_dired): Update.
575 (Vcompletion_ignored_extensions): Remove.
576 (Vw32_get_true_file_attributes): Remove declaration.
577 * dbusbind.c (syms_of_dbusbind): Update.
578 (Vdbus_debug, Vdbus_registered_buses)
579 (Vdbus_registered_objects_table): Remove.
580 * data.c (syms_of_data): Update.
581 (Vmost_negative_fixnum, Vmost_positive_fixnum): Remove.
582 * composite.c (syms_of_composite): Update.
583 (Vauto_composition_function, Vauto_composition_mode)
584 (Vcompose_chars_after_function, Vcomposition_function_table):
585 Remove.
586 * coding.c (syms_of_coding): Update.
587 (Vcharset_revision_table, Vcoding_category_list)
588 (Vcoding_system_alist, Vcoding_system_for_read)
589 (Vcoding_system_for_write, Vcoding_system_list)
590 (Vdefault_process_coding_system, Venable_character_translation)
591 (Vfile_coding_system_alist, Vlast_code_conversion_error)
592 (Vlast_coding_system_used, Vlatin_extra_code_table)
593 (Vlocale_coding_system, Vnetwork_coding_system_alist)
594 (Vprocess_coding_system_alist)
595 (Vselect_safe_coding_system_function)
596 (Vstandard_translation_table_for_decode)
597 (Vstandard_translation_table_for_encode)
598 (Vtranslation_table_for_input, coding_system_require_warning)
599 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
600 (eol_mnemonic_unix, inherit_process_coding_system)
601 (inhibit_eol_conversion, inhibit_iso_escape_detection)
602 (inhibit_null_byte_detection): Remove.
603 * cmds.c (syms_of_cmds): Update.
604 (Vpost_self_insert_hook): Remove.
605 * charset.c (syms_of_charset): Update.
606 (Vcharset_list, Vcharset_map_path, Vcurrent_iso639_language)
607 (inhibit_load_charset_map): Remove.
608 * character.c (syms_of_character): Update.
609 (Vauto_fill_chars, Vchar_direction_table, Vchar_script_table)
610 (Vchar_width_table, Vprintable_chars)
611 (Vscript_representative_chars, Vtranslation_table_vector)
612 (Vunicode_category_table): Remove.
613 * ccl.c (syms_of_ccl): Update.
614 (Vcode_conversion_map_vector, Vfont_ccl_encoder_alist)
615 (Vtranslation_hash_table_vector): Remove.
616 * category.c (syms_of_category): Update.
617 (Vword_combining_categories, Vword_separating_categories): Remove.
618 * callproc.c (syms_of_callproc): Update.
619 (Vconfigure_info_directory, Vdata_directory, Vdoc_directory)
620 (Vexec_directory, Vexec_path, Vexec_suffixes)
621 (Vinitial_environment, Vprocess_environment)
622 (Vshared_game_score_directory, Vshell_file_name): Remove.
623 * callint.c (syms_of_callint): Update.
624 (Vcommand_debug_status, Vcommand_history, Vcurrent_prefix_arg)
625 (Vmark_even_if_inactive, Vmouse_leave_buffer_hook): Remove.
626 * bytecode.c (syms_of_bytecode): Update.
627 (Vbyte_code_meter, byte_metering_on): Remove.
628 * buffer.c (syms_of_buffer): Update.
629 (Vafter_change_functions, Vbefore_change_functions)
630 (Vchange_major_mode_hook, Vfirst_change_hook)
631 (Vinhibit_read_only, Vkill_buffer_query_functions)
632 (Vtransient_mark_mode, inhibit_modification_hooks): Remove.
633 * alloc.c (syms_of_alloc): Update.
634 (Vgc_cons_percentage, Vgc_elapsed, Vmemory_full)
635 (Vmemory_signal_data, Vpost_gc_hook, Vpurify_flag)
636 (cons_cells_consed, floats_consed, garbage_collection_messages)
637 (gc_cons_threshold, gcs_done, intervals_consed)
638 (misc_objects_consed, pure_bytes_used, string_chars_consed)
639 (strings_consed, symbols_consed, vector_cells_consed): Remove.
640
641 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
642 (DEFVAR_INT): Assume global is in `globals'.
643 * alloc.c (globals): Define.
644
448c0820
TT
6452011-01-18 Tom Tromey <tromey@redhat.com>
646
647 * image.c (Vimagemagick_render_type): Remove redundant
648 definition.
649
8442d95d
TT
6502011-01-18 Tom Tromey <tromey@redhat.com>
651
652 * xdisp.c (emacs_scroll_step): Rename from scroll_step.
653 (try_scrolling): Rename argument to 'arg_scroll_conservatively'.
654 (redisplay_window): Update.
655 (syms_of_xdisp): Update.
656
cab0ba98
TT
6572011-01-18 Tom Tromey <tromey@redhat.com>
658
659 * gtkutil.h (x_gtk_use_old_file_dialog, x_gtk_show_hidden_files)
660 (x_gtk_file_dialog_help_text, x_gtk_whole_detached_tool_bar):
661 Declare.
662 * gtkutil.c (xg_uses_old_file_dialog):
663 (xg_get_file_with_chooser):
664 (xg_tool_bar_detach_callback): Don't redeclare globals.
665
422745d0
TT
6662011-01-18 Tom Tromey <tromey@redhat.com>
667
668 * lisp.h (DEFVAR_BUFFER_DEFAULTS): New macro.
669 * buffer.c (syms_of_buffer): Use DEFVAR_BUFFER_DEFAULTS.
670
7cae64b4
PE
6712011-01-18 Paul Eggert <eggert@cs.ucla.edu>
672
673 * lisp.h (DECL_ALIGN): Define if HAVE_ATTRIBUTE_ALIGNED, not if
674 defined __GNUC__. ../configure now checks for this GCC feature,
675 which is now also supported by IBM and Oracle compilers.
676 (USE_LSB_TAG) [defined DECL_ALIGN]: Also define if defined __sun,
677 since Solaris malloc returns mult-of-8.
678
a9faac5c 6792011-01-18 Stefan Monnier <monnier@iro.umontreal.ca>
0514b4be
SM
680
681 * image.c (syms_of_image): Don't access XSYMBOL's internals directly.
682
a3e44e79 6832011-01-17 Paul Eggert <eggert@cs.ucla.edu>
fa2c4f56 684
6e8e6bf2
PE
685 Give a name FLOAT_TO_STRING_BUFSIZE to the constant 350.
686 * lisp.h (FLOAT_TO_STRING_BUFSIZE): New macro.
687 * data.c (Fnumber_to_string): Use it.
688 * print.c (float_to_string, print_object): Likewise.
689
4004364e
PE
690 Include <unistd.h> unilaterally.
691 * alloc.c, atimer.c, buffer.c, callproc.c, dired.c, dispnew.c, doc.c:
692 * doprnt.c, editfns.c, emacs.c, fileio.c, filelock.c, fns.c:
693 * getloadavg.c, getpagesize.h, gmalloc.c, image.c, keyboard.c:
694 * lread.c, process.c, process.h, ralloc.c, regex.c, sysdep.c:
695 * systty.h, term.c, termcap.c, xfns.c, xrdb.c, xselect.c, xsmfns.c:
696 * xterm.c:
697 Include <unistd.h> without worrying about HAVE_UNISTD_H, since
698 unistd.h is always present now, possibly supplied by gnulib.
699
e84aba69
PE
700 * mktime.c: Remove; moving to ../lib.
701
1e11dbe3
PE
702 Use gnulib's mktime module.
703 * deps.mk (mktime.o): Remove rule.
704
fa2c4f56
PE
705 Use gnulib's ftoastr module.
706 * print.c: Include ftoastr.h.
707 (FLT_RADIX, DBL_MANT_DIG, DBL_DIG, DBL_MIN, DOUBLE_DIGITS_BOUND):
708 Remove; no longer needed.
709 (float_to_string): Use dtoastr rather than rolling our own code,
710 which had an off-by-one bug on non-IEEE hosts.
711
9a514d4a
PE
712 Automate syncing from gnulib.
713 * Makefile.in (lib): New macro.
714 (ALL_CFLAGS): Add -I$(lib) -I$(srcdir)/../lib.
715 ($(lib)/libgnu.a): New rule.
716 (temacs$(EXEEXT)): Also link $(lib)/libgnu.a.
717
717c30e0
PE
718 * xfns.c (x_real_positions): Fix signedness of local var 'ign'.
719 XGetGeometry wants unsigned int *, not int *, for its last 4 args,
720 so change the type of 'ign' to unsigned int from int.
721
8865d794
PE
722 * regex.c (analyse_first): Remove unreachable 'continue' statement.
723
4ef36a7b
PE
724 * xterm.h (struct x_display_info): Remove stray semicolon.
725 The extra semicolon didn't conform to the C standard.
726 Problem reported by Sun cc.
727
6df4097e
PE
728 * lisp.h: Redo flags and XSET slightly to avoid overflow diagnostics.
729 These changes make compilation easier to follow with Sun cc.
730 (ARRAY_MARK_FLAG): Make it signed, so that it can be assigned to
731 EMACS_INT values without provoking overflow diagnostics.
732 (PSEUDOVECTOR_FLAG): Likewise, for consistency.
733 (XSET) [! USE_LSB_TAG]: Use unsigned left shift to avoid overflow
734 diagnostic with signed left shift.
9fba3563 735
410ed5c3
PE
736 * fileio.c (make_temp_name): Remove unreachable code.
737
97be3ce3
PE
738 * fontset.c (free_realized_fontset): Mark unreachable code with if (0).
739 Previously it was marked by preceding it with "return;", but
740 Sun cc complains about this.
741
9fba3563
PE
742 * coding.c (decode_coding_emacs_mule): Remove unreachable code.
743 This is a typo left over from 2009-03-06T07:51:52Z!handa@m17n.org,
744 which fixed Bug#2370. Caught by Sun cc.
745
6dc1d2d3
MR
7462011-01-15 Martin Rudalics <rudalics@gmx.at>
747
748 * window.c (inhibit_point_swap): New variable.
749 (Fselect_window): If inhibit_point_swap is nonzero, avoid swapping
750 point this time.
751 (Fset_window_configuration): Set inhibit_point_swap to 1 instead
752 of setting selected_window to nil (Bug#7728).
753
f853f599
TH
7542011-01-11 Tassilo Horn <tassilo@member.fsf.org>
755
8dabbfd6
SM
756 * image.c (imagemagick_load_image, Finit_image_library):
757 Free intermediate image after creating a MagickWand from it.
758 Terminate MagickWand environment after image loading.
f853f599 759
2bc92a93
MA
7602011-01-10 Michael Albinus <michael.albinus@gmx.de>
761
762 * dbusbind.c (Fdbus_register_service): Raise an error in case of
763 unexpected return values.
764 (Fdbus_register_method): Remove connection initialization.
765
7662011-01-10 Jan Moringen <jan.moringen@uni-bielefeld.de>
5b83ba18
MA
767
768 * dbusbind.c (QCdbus_request_name_allow_replacement): New symbol;
769 used by Fdbus_register_service.
770 (QCdbus_request_name_replace_existing): Likewise.
771 (QCdbus_request_name_do_not_queue): Likewise.
772 (QCdbus_request_name_reply_primary_owner): Likewise.
773 (QCdbus_request_name_reply_in_queue): Likewise.
774 (QCdbus_request_name_reply_exists): Likewise.
775 (QCdbus_request_name_reply_already_owner): Likewise.
776 (Fdbus_register_service): New function.
777 (Fdbus_register_method): Use Fdbus_register_service to do the name
778 registration.
779 (syms_of_dbusbind): Add symbols dbus-register-service,
780 :allow-replacement, :replace-existing, :do-not-queue,
781 :primary-owner, :existing, :in-queue and :already-owner.
782
21a76236
CY
7832011-01-09 Chong Yidong <cyd@stupidchicken.com>
784
785 * gtkutil.c (update_frame_tool_bar): Don't advance tool-bar index
786 when removing extra buttons.
787
3d91e302
CY
7882011-01-08 Chong Yidong <cyd@stupidchicken.com>
789
790 * fns.c (Fyes_or_no_p): Doc fix.
791
0d23ffb5
AS
7922011-01-08 Andreas Schwab <schwab@linux-m68k.org>
793
794 * fns.c (Fyes_or_no_p): Add usage.
795
9dc3366b
GM
7962011-01-08 Glenn Morris <rgm@gnu.org>
797
d0981f82
GM
798 * makefile.w32-in ($(EMACS)):
799 * Makefile.in (emacs$(EXEEXT)): -batch implies -q.
800
9dc3366b
GM
801 * xdisp.c (syms_of_xdisp) <Qrisky_local_variable>: Move from here...
802 * emacs.c (syms_of_emacs) <Qrisky_local_variable>: ...to here.
803
466cbae9
AS
8042011-01-07 Andreas Schwab <schwab@linux-m68k.org>
805
806 * image.c (imagemagick_load_image): Fix some resource leaks and
807 error handling.
808
8c51d2a2
CY
8092011-01-07 Chong Yidong <cyd@stupidchicken.com>
810
811 * fns.c (Fyes_or_no_p): Accept format string args.
812
66b7b0fe
GM
8132011-01-07 Glenn Morris <rgm@gnu.org>
814
815 * emacs.c (no_site_lisp): New int.
816 (USAGE1): Add --no-site-lisp, mention -Q uses it.
817 (main): Set no_site_lisp.
818 (standard_args): Add --no-site-lisp.
819 * lisp.h (no_site_lisp): New int.
820 * lread.c (init_lread): If no_site_lisp, don't re-add site-lisp
821 directories to Vload_path.
822
2018939f
AS
8232011-01-05 Andreas Schwab <schwab@linux-m68k.org>
824
825 * alloc.c (mark_stack): Use __builtin_unwind_init if available.
826
6ed843e5
MA
8272011-01-04 Jan Moringen <jan.moringen@uni-bielefeld.de>
828
8dabbfd6 829 * dbusbind.c (Fdbus_register_method): Add optional parameter
6ed843e5
MA
830 dont_register_service. Updated docstring accordingly.
831
3f9b7090
GM
8322011-01-04 Glenn Morris <rgm@gnu.org>
833
834 * emacs.c (emacs_copyright): Update short copyright year to 2011.
835
d82bce4a
EZ
8362011-01-03 Eli Zaretskii <eliz@gnu.org>
837
838 * image.c (png_jmpbuf): Remove definition.
839 (my_png_error, png_load): Don't use png_jmpbuf.
840
7c420169
CY
8412011-01-02 Eli Zaretskii <eliz@gnu.org>
842
843 * keyboard.c (Vselect_active_regions): Doc fix. (Bug#7702)
844
8452011-01-02 Eli Zaretskii <eliz@gnu.org>
5be1c984
EZ
846
847 * image.c <Qlibpng_version>: New variable.
848 (syms_of_image): Intern and staticpro it. Set its value to the
849 version of PNG library we were compiled with.
850 (my_png_error, png_load): Avoid GCC warnings about direct access
851 to png_ptr->jmpbuf. (Bug#7716)
18da2e74
EZ
852 (png_jmpbuf): New macro.
853 (my_png_error, png_load): Use it instead of #ifdef'ing according
854 to PNG_LIBPNG_VER_MAJOR and PNG_LIBPNG_VER_MINOR.
5be1c984 855
7c420169 8562011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
cf07311b
SM
857
858 * .gdbinit (xgetptr): Fix the union+lsb case.
859 (xbacktrace): Fix the union case.
860
7c420169 8612011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
794b75c7
SM
862
863 * window.c (Fmove_to_window_line): Avoid abort when called in a buffer
864 different from selected-window's.
865
7c420169 8662011-01-02 Eli Zaretskii <eliz@gnu.org>
2e4ab211 867
71fe378d
EZ
868 * keyboard.c (parse_menu_item): Prepend " " to the key sequence
869 equivalent of a menu item when the key sequence is given by the
870 `:keys' attribute. (Bug#7662)
871
2e4ab211
EZ
872 * xdisp.c (Fformat_mode_line): Doc fix: no need to state that only
873 the basic faces are supported.
874
7c420169 8752011-01-02 Jan Djärv <jan.h.d@swipnet.se>
84595ff0
JD
876
877 * xterm.c (x_check_fullscreen): Fix pixel/character mixup.
878
7c420169 8792011-01-02 Eli Zaretskii <eliz@gnu.org>
30d621a2
EZ
880
881 * xdisp.c (Fformat_mode_line): Fix last change.
882
7c420169 8832011-01-02 Chong Yidong <cyd@stupidchicken.com>
4bf3e46e
CY
884
885 * xdisp.c (Fformat_mode_line): Restrict the FACE argument to basic
886 faces (Bug#7587).
887
7c420169 8882011-01-02 Eli Zaretskii <eliz@gnu.org>
1b2a627f
EZ
889
890 * fileio.c (Fexpand_file_name): One more doc fix.
891
3afff00e
CY
8922011-01-01 Chong Yidong <cyd@stupidchicken.com>
893
894 * gtkutil.c (xg_get_tool_bar_widgets): Use NULL for a missing
895 image or label in the container.
896 (xg_make_tool_item): Replace VERT_ONLY arg with HORIZ, TEXT_IMAGE.
897 (xg_show_toolbar_item): Function deleted.
898 (xg_tool_item_stale_p): New function.
899 (update_frame_tool_bar): Calculate tool-bar style once per call.
900 Instead of hiding text labels, omit them. Don't use
901 xg_show_toolbar_item; create new GtkToolItems from scratch if
902 necessary, instead of trying to re-use them. This avoids an
903 annoying animation when changing tool-bars.
904
aeb7e951
JD
9052010-12-31 Jan Djärv <jan.h.d@swipnet.se>
906
907 * nsfns.m (ns_set_name_as_filename): Always use buffer name for
908 title and buffer filename only for RepresentedFilename.
909 Handle bad UTF-8 in buffer name (Bug#7517).
910
5bbb4727
JD
9112010-12-30 Jan Djärv <jan.h.d@swipnet.se>
912
913 * coding.h (ENCODE_UTF_8): Remove "Used by ..." comment.
914
915 * nsfns.m (ns_set_name_iconic): Remove.
916 (ns_set_name_internal): New function (Bug#7517).
917 (Vicon_title_format): Extern declare.
918 (ns_set_name): Call ns_set_name_internal.
919 (x_explicitly_set_name): Remove call to ns_set_name_iconic.
920 (x_implicitly_set_name): Ditto.
921 (x_set_title): Remove commet about EXPLICIT. Call ns_set_name_internal.
922 (ns_set_name_as_filename): Encode name with ENCODE_UTF_8 (Bug#7517).
923
f1aab3ff
ŠN
9242010-12-29 Štěpán Němec <stepnem@gmail.com> (tiny change)
925
926 * window.c (syms_of_window): Add missing defsubr for
927 window-use-time.
928
365525b3
AS
9292010-12-28 Andreas Schwab <schwab@linux-m68k.org>
930
931 * xterm.h (x_alloc_lighter_color_for_widget): Restore declaration.
932 * xterm.c (x_alloc_lighter_color_for_widget): Restore.
933
59fc5cf9
AS
9342010-12-27 Andreas Schwab <schwab@linux-m68k.org>
935
2f7c71a1
AS
936 * buffer.c: Remove unused declarations.
937 * buffer.h: Likewise.
938 * charset.h: Likewise.
939 * composite.h: Likewise.
940 * dispextern.h: Likewise.
941 * dispnew.c: Likewise.
942 * font.h: Likewise.
943 * fontset.c: Likewise.
944 * fontset.h: Likewise.
945 * intervals.h: Likewise.
946 * keymap.h: Likewise.
947 * lisp.h: Likewise.
948 * syntax.c: Likewise.
949 * syntax.h: Likewise.
950 * termhooks.h: Likewise.
951 * window.h: Likewise.
952 * xsettings.h: Likewise.
953 * xterm.c: Likewise.
954 * xterm.h: Likewise.
955
956 * chartab.c (sub_char_table_ref): Make static.
957 * dispnew.c (line_hash_code, required_matrix_height)
958 (required_matrix_width): Likewise.
959 * eval.c (interactive_p, apply_lambda): Likewise.
960 * fns.c (string_make_multibyte, copy_hash_table, hash_clear):
961 Likewise.
962 * font.c (QCadstyle, QCregistry, font_make_spec)
963 (font_parse_fcname, font_encode_char, font_at): Likewise.
964 * frame.c (x_frame_get_arg): Likewise.
965 * keymap.c (get_keyelt): Likewise.
966 * lread.c (read_filtered_event): Likewise.
967 * print.c (write_string_1): Likewise.
968 * window.c (delete_window, window_height, window_width)
969 (foreach_window): Likewise.
970 * xrdb.c (x_get_customization_string, x_get_resource): Likewise.
971 * xterm.c (x_scroll_bar_clear, xembed_set_info)
972 (xembed_send_message): Likewise.
973
974 * eval.c (run_hook_list_with_args): Delete.
975 * font.c (font_unparse_gtkname, font_update_lface): Likewise.
976 * terminal.c (get_terminal_param): Likewise.
977 * xterm.c (x_alloc_lighter_color_for_widget): Likewise.
978
c4b607ed
AS
979 * scroll.c: Fix comment.
980
59fc5cf9
AS
981 * dispnew.c (add_window_display_history)
982 (add_frame_display_history, glyph_row_slice_p)
983 (find_glyph_row_slice, flush_stdout)
984 (check_matrix_pointer_lossage, matrix_row)
985 (check_matrix_invariants, check_window_matrix_pointers)
986 (check_matrix_pointers, window_to_frame_vpos)
987 (window_to_frame_hpos): Prototize.
988 * textprop.c (erase_properties): Likewise.
989
a65b85b5
SM
9902010-12-22 Stefan Monnier <monnier@iro.umontreal.ca>
991
17870c01
SM
992 * print.c (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): Remove.
993 (print_preprocess): Fix handling of uninterned symbols in last change.
994
a65b85b5
SM
995 * print.c (print, print_preprocess, print_object): Use a hash table
996 rather than a linear table for Vprint_number_table.
997
f13183cf
CY
9982010-12-20 Chong Yidong <cyd@stupidchicken.com>
999
1000 * frame.c (focus_follows_mouse): Default to 0 (Bug#7269).
1001
94975270
CY
10022010-12-20 Chong Yidong <cyd@stupidchicken.com>
1003
1004 * keyboard.c (Vtool_bar_separator_image_expression): New variable.
1005 (parse_tool_bar_item): Use it to obtain image separators for
1006 displays not using native tool-bar separators.
1007
1008 * xdisp.c (build_desired_tool_bar_string): Don't handle separators
1009 specially, since this is now done in parse_tool_bar_item.
1010
ef1b0ba7
SM
10112010-12-19 Stefan Monnier <monnier@iro.umontreal.ca>
1012
1013 Minor clean up to silence some gcc warnings.
1014 * window.c (Fset_window_buffer):
1015 * xterm.c (x_set_frame_alpha): Restructure code to silence
1016 compiler warning.
1017 (handle_one_xevent): Remove unused var `p'.
1018 (do_ewmh_fullscreen): Remove unused var `lval'.
1019 (xembed_set_info): Remove unused var `atom'.
1020 * textprop.c (Fremove_list_of_text_properties): Add braces to silence
1021 compiler warning.
1022 * fontset.c (fontset_id_valid_p, dump_fontset):
1023 * ftfont.c (ftfont_drive_otf): Modernize k&r declaration.
1024 * eval.c (Feval, Ffuncall): Avoid unneeded gotos.
1025 * dispnew.c (update_frame, update_frame_1): Compile the `do_pause'
1026 label only when it's used.
1027 * image.c (x_create_bitmap_from_xpm_data):
1028 * dispextern.h (x_create_bitmap_from_xpm_data): Use const char** like
1029 its callers.
1030 * coding.c (detect_coding_utf_16): Remove unused vars `src_base' and
1031 `consumed_chars'.
1032 (DECODE_EMACS_MULE_21_COMPOSITION): Remove unused var `charbuf_base'.
1033 (decode_coding_emacs_mule): Remove unused label `retry'.
1034 (detect_eol): Add parens to silence compiler warning.
1035 * alloc.c (bytes_used_when_reconsidered): Move to the #ifdef where
1036 it's used to silence the compiler.
1037 (make_number): Modernize k&r declaration.
1038 (mark_char_table): Add parens to silence compiler warning.
1039
4039c786
CY
10402010-12-17 Chong Yidong <cyd@stupidchicken.com>
1041
1042 * keyboard.c (parse_tool_bar_item): Allow menu separators in
1043 tool-bar maps.
1044 (menu_separator_name_p): New function, from gtkutil.c.
1045 (separator_names): Move from gtkutil.c.
1046
1047 * keyboard.h (menu_separator_name_p): Add prototype.
1048
1049 * gtkutil.c (XG_BIN_CHILD): New macro.
1050 (xg_get_menu_item_label, xg_update_menubar)
1051 (xg_update_menu_item, xg_tool_bar_menu_proxy)
1052 (xg_show_toolbar_item, update_frame_tool_bar): Use it.
1053 (separator_names, xg_separator_p): Move to keyboard.c.
ef1b0ba7
SM
1054 (create_menus, xg_update_submenu, update_frame_tool_bar):
1055 Use menu_separator_name_p.
4039c786
CY
1056
1057 * nsmenu.m (name_is_separator): Function deleted.
1058 (addItemWithWidgetValue): Use menu_separator_name_p.
1059
1060 * w32menu.c (name_is_separator): Function deleted.
1061 (add_menu_item): Use menu_separator_name_p.
1062
aa936e8e
JD
10632010-12-16 Jan Djärv <jan.h.d@swipnet.se>
1064
1065 * nsterm.m (ns_draw_window_cursor): If the cursor color is the
1066 same as the background, use the face forground as cursor.
1067
f49d1f52 10682010-12-13 Eli Zaretskii <eliz@gnu.org>
15579471
EZ
1069
1070 * fileio.c (Fexpand_file_name): Doc fix. (Bug#7617)
1071
f49d1f52 10722010-12-13 Eli Zaretskii <eliz@gnu.org>
76feb864 1073
f0559026
EZ
1074 * xdisp.c (string_pos_nchars_ahead, c_string_pos)
1075 (face_before_or_after_it_pos, next_element_from_string)
1076 (next_element_from_c_string, produce_stretch_glyph): Remove unused
1077 calculations of maximum string length before calling
1078 string_char_and_length and STRING_CHAR_AND_LENGTH.
1079 (string_char_and_length): Update commentary: MAXLEN is no longer
1080 needed.
1081
f49d1f52 10822010-12-13 Jan Djärv <jan.h.d@swipnet.se>
0b9fc69a
JD
1083
1084 * keyboard.c (kbd_buffer_get_event): Construct SAVE_SESSION_EVENT
1085 as (Qsave_session arg).
1086
1087 * xsmfns.c (smc_interact_CB): Set arg to Qnil.
1088 (smc_die_CB): Make an event with arg Qt.
1089 (Fhandle_save_session): If event has Qt as argument,
1090 call Fkill_emacs (Bug#7552).
1091
f49d1f52
SM
10922010-12-13 Chong Yidong <cyd@stupidchicken.com>
1093
1094 * buffer.c (transient-mark-mode): Doc fix (Bug#7465).
1095
10962010-12-13 Jan Djärv <jan.h.d@swipnet.se>
2b815743
JD
1097
1098 * xsmfns.c (smc_die_CB): Call Fkill_emacs (Bug#7552).
1099
f49d1f52 11002010-12-13 Chong Yidong <cyd@stupidchicken.com>
d8b2a962
CY
1101
1102 * dispextern.h (struct it): New member overlay_strings_charpos.
1103
1104 * xdisp.c (next_overlay_string, load_overlay_strings): Record the
1105 charpos where we computed n_overlay_strings.
1106 (next_overlay_string): Load overlay strings at recorded position,
1107 which may not be the same as the iterator's charpos (Bug#7016).
1108
f49d1f52 11092010-12-13 Chong Yidong <cyd@stupidchicken.com>
77f1ed6c
CY
1110
1111 * xdisp.c (try_scrolling): Avoid infloop if the first line is
1112 obscured due to a vscroll (Bug#7537).
1113
f49d1f52 11142010-12-13 Jan Djärv <jhd@zeplinf.localdomain>
2a91a0b5
JD
1115
1116 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
1117
1118 * nsterm.m (x_set_window_size, windowWillResize, initFrameFromEmacs):
1119 Use FRAME_TOOLBAR_HEIGHT.
1120 (x_set_offset): Handle XNegative and YNegative in
1121 f->size_hint_flags (Bug#7510).
1122
39321b94
EZ
11232010-12-11 Eli Zaretskii <eliz@gnu.org>
1124
1125 * w32fns.c (Fx_show_tip): Call try_window with last argument
1126 TRY_WINDOW_IGNORE_FONTS_CHANGE. Delete the TODO ifdef: problem
1127 solved. Round up the tip height to an integral multiple of the
1128 frame's line height. Add FRAME_COLUMN_WIDTH to the tip width.
1129 (Bug#7398)
1130
ec1b9b17
GM
11312010-12-08 Glenn Morris <rgm@gnu.org>
1132
1133 * fileio.c (Fverify_visited_file_modtime): Default to current buffer.
1134
3c2317e8
LMI
11352010-12-06 Lars Magne Ingebrigtsen <larsi@gnus.org>
1136
1137 * xml.c (parse_region): Ignore blank HTML nodes.
1138 (make_dom): Return CDATA sections (like <style>foo</style>) as
1139 text nodes.
1140
bba3e508
SM
11412010-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
1142
1143 * lread.c (read1): Allow newstyle unquote outside of backquote.
1144 Disallow old-style backquotes inside new-style backquotes.
1145 Don't count unquotes to figure out when we're "syntactically inside
1146 but semantically outside of a backquote" any more.
1147 Extend the restriction no-unescaped-commas-and-backquotes-in-symbols
1148 to all contexts.
1149
d23d8608
CY
11502010-12-05 Chong Yidong <cyd@stupidchicken.com>
1151
1152 * process.c: Remove checks for HAVE_SYS_IOCTL_H (Bug#7484).
1153
d6a003a8
AS
11542010-12-04 Andreas Schwab <schwab@linux-m68k.org>
1155
1156 * Makefile.in (M_FILE): Substitute @M_FILE@ instead of @machfile@.
1157 (S_FILE): Substitute @S_FILE@ instead of @opsysfile@.
1158 * m/arm.h, m/sh3.h, m/xtensa.h: Remove files.
1159
201ef780
AS
11602010-12-03 Andreas Schwab <schwab@linux-m68k.org>
1161
1162 * lisp.h (union Lisp_Object): Explicitly declare signedness of
1163 bit-field.
1164 (XINT): Remove variant for EXPLICIT_SIGN_EXTEND.
1165 * m/alpha.h (EXPLICIT_SIGN_EXTEND): Don't define.
1166 * m/amdx86-64.h (EXPLICIT_SIGN_EXTEND): Likewise.
1167 * m/ia64.h (EXPLICIT_SIGN_EXTEND): Likewise.
1168 * m/ibms390.h (EXPLICIT_SIGN_EXTEND): Likewise.
1169 * m/ibms390x.h (EXPLICIT_SIGN_EXTEND): Likewise.
1170 * m/iris4d.h (EXPLICIT_SIGN_EXTEND): Likewise.
1171 * m/m68k.h (EXPLICIT_SIGN_EXTEND): Likewise.
1172 * m/sparc.h (EXPLICIT_SIGN_EXTEND): Likewise.
1173 * m/template.h (EXPLICIT_SIGN_EXTEND): Likewise.
1174 * m/hp800.h: Remove file.
1175 * m/mips.h: Remove file.
1176
146490c3
JD
11772010-12-03 Jan Djärv <jan.h.d@swipnet.se>
1178
1179 * nsterm.m (ns_dumpglyphs_image): If drawing cursor, fill background
1180 with cursor color and draw a rectangle around the image (Bug#7412).
1181
babc8f0d
AS
11822010-12-03 Andreas Schwab <schwab@linux-m68k.org>
1183
1184 * frame.c (x_set_font): Remove unused variable.
1185
9583e9a0
JD
11862010-12-02 Jan Djärv <jan.h.d@swipnet.se>
1187
dd723bbd
JD
1188 * nsmenu.m (update_frame_tool_bar): Remove NSLog on invalid image.
1189
9583e9a0
JD
1190 * nsterm.m (ns_draw_glyph_string): Switch fore- and background if
1191 drawing text under filled box cursor (Bug#7479).
1192
07976ae3 11932010-11-27 Kenichi Handa <handa@m17n.org>
b84ae584
KH
1194
1195 * charset.c (emacs_mule_charset): Make it an array of charset ID;
1196 i.e. integer.
bba3e508 1197 (Fdefine_charset_internal): Adjust for the above change.
b84ae584
KH
1198 (init_charset_once): Likewise.
1199
bba3e508
SM
1200 * charset.h (emacs_mule_charset): Adjust the prototype.
1201 Delete duplicated extern.
b84ae584
KH
1202
1203 * coding.c (emacs_mule_char): Adjust for the change of
1204 emacs_mule_charset.
1205
1206 * lread.c (read_emacs_mule_char): Adjust for the change of
1207 emacs_mule_charset.
1208
07976ae3 12092010-11-27 Eli Zaretskii <eliz@gnu.org>
b8e5cf1d
EZ
1210
1211 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
1212 of w32api >= 3.15. (Bug#6989) (Bug#7452)
1213
07976ae3 12142010-11-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
96ad0af7
YM
1215
1216 * alloc.c (mark_terminals): Ensure that the image cache is marked
1217 even if the terminal object was marked earlier (Bug#6301).
1218
35f1de62
CY
12192010-11-21 Chong Yidong <cyd@stupidchicken.com>
1220
1221 * editfns.c (Fbyte_to_string): Signal an error arg is not a byte.
1222
07976ae3 12232010-11-27 Jan Djärv <jan.h.d@swipnet.se>
8d7f026f
JD
1224
1225 * gtkutil.c (menubar_map_cb): New function (Bug#7425).
1226 (xg_update_frame_menubar): Connect signal map to menubar_map_cb.
1227 Use 23 as menubar height if 0. (Bug#7425).
1228
8547874a
EZ
12292010-11-26 Eli Zaretskii <eliz@gnu.org>
1230
228482b2
EZ
1231 * xdisp.c (set_message_1): Force paragraph direction in echo area
1232 be left-to-right.
1233
8547874a
EZ
1234 * keyboard.c (make_lispy_position): Put a meaningful value in yret
1235 when the click is on the header or mode line.
1236
1e2dddbe
EZ
12372010-11-25 Eli Zaretskii <eliz@gnu.org>
1238
1239 * xdisp.c (set_cursor_from_row): Don't forget to consider the
1240 `cursor' property of the first character in overlay strings.
12365240 1241 (Bug#7474) (Bug#7481)
1e2dddbe 1242
50795d1f
JD
12432010-11-24 Jan Djärv <jan.h.d@swipnet.se>
1244
1245 * nsterm.m (NSLeftControlKeyMask, NSLeftCommandKeyMask)
1246 (NSLeftAlternateKeyMask): New defines.
c80c6166
JD
1247 (keyDown): Parse left and right keys separately (Bug#7458).
1248 Compare Left key masks exactly (Bug#7458).
50795d1f 1249
f8ab8c1f
EZ
12502010-11-23 Eli Zaretskii <eliz@gnu.org>
1251
1252 * intervals.c (temp_set_point_both): Define before calling, to
1253 avoid GCC warnings.
1254
2e8a4797
DN
12552010-11-23 Dan Nicolaescu <dann@ics.uci.edu>
1256
b29116ef
DN
1257 * nsmenu.m: Use #include <config.h> instead of "config.h".
1258
b932f8b1
DN
1259 * term.c (Qglyphless_char,last_glyphless_glyph_frame)
1260 (last_glyphless_glyph_face_id. last_glyphless_glyph_merged_face_id):
1261 Move declarations ...
1262 * lisp.h (Qglyphless_char,last_glyphless_glyph_frame)
1263 (last_glyphless_glyph_face_id. last_glyphless_glyph_merged_face_id):
1264 ... here.
1265
42c8bc9b
DN
1266 * emacs.c (gdb_use_union, gdb_valbits,gdb_gctypebits)
1267 (gdb_data_seg_bits, gdb_array_mark_flag, PVEC_FLAG)
1268 (gdb_pvec_type):
1269 * print.c (print_output_debug_flag):
1270 * lisp.h (debug_print): Mark as EXTERNALLY_VISIBLE.
1271 (safe_debug_print): New declaration.
1272
2e8a4797
DN
1273 * xterm.c:
1274 * systty.h:
1275 * sound.c: Include <sys/ioctl.h> unconditionally.
1276
b609f591
YM
12772010-11-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1278
1279 * alloc.c (mark_maybe_object): Return early if given a Lisp
1280 integer (Bug#6301).
1281
731e263a
KB
12822010-11-21 Ken Brown <kbrown@cornell.edu>
1283
1284 * sheap.c (STATIC_HEAP_SIZE): Revert previous change.
1285
b7d1e144
JD
12862010-11-21 Jan Djärv <jan.h.d@swipnet.se>
1287
1288 * nsterm.m (ns_right_command_modifier, ns_right_control_modifier):
1289 Define (Bug#7458).
1290 (NSRightCommandKeyMask, NSRightControlKeyMask): Define (Bug#7458).
1291 (EV_MODIFIERS): Check for NSRightCommandKeyMask and
1292 NSRightControlKeyMask also (Bug#7458).
1293 (keyDown): Ditto (Bug#7458).
1294 (syms_of_nsterm): Defvar ns-right-command-modifier and
1295 ns-right-control-modifier (Bug#7458).
1296
b7982059
DN
12972010-11-21 Dan Nicolaescu <dann@ics.uci.edu>
1298
bee3419f
DN
1299 * sysdep.c (sys_subshell): Remove SET_EMACS_PRIORITY.
1300 * emacs.c (emacs_priority, syms_of_emacs): Remove emacs_priority.
1301
b7982059
DN
1302 * intervals.h (temp_set_point, temp_set_point_both):
1303 * buffer.h (offset_intervals, copy_intervals): Remove INLINE.
1304
01664ed1
KB
13052010-11-20 Ken Brown <kbrown@cornell.edu>
1306
1307 * sheap.c (STATIC_HEAP_SIZE): Increase to 13MB.
1308
7c2d713b
EZ
13092010-11-20 Eli Zaretskii <eliz@gnu.org>
1310
1311 * term.c (produce_glyphless_glyph): Use \uNNNN, \UNNNNNN, or
1312 \xNNNNNN for hex-code display of glyphless characters.
1313
d2bd5189
JD
13142010-11-20 Jan Djärv <jan.h.d@swipnet.se>
1315
1316 * gtkutil.c (xg_make_tool_item): Take vert_only as argument.
1317 Set important to ! vert_only.
1318 (xg_show_toolbar_item): Don't show label horizontally if
1319 tool item isn't important.
1320 (update_frame_tool_bar): Get TOOL_BAR_ITEM_VERT_ONLY and pass it to
1321 xg_make_tool_item, or update important on existing tool item.
1322
1323 * keyboard.c (QCvert_only): New variable.
1324 (parse_tool_bar_item): Check for QCvert_only.
1325 (syms_of_keyboard): Initialize QCvert_only.
1326
1327 * dispextern.h (tool_bar_item_idx): Add TOOL_BAR_ITEM_VERT_ONLY.
1328
d9a95e67
EZ
13292010-11-20 Eli Zaretskii <eliz@gnu.org>
1330
1331 * msdos.c (dos_rawgetc): Use gen_help_event, instead of doing the
1332 same in-line.
1333
b6557553
AS
13342010-11-20 Andreas Schwab <schwab@linux-m68k.org>
1335
1336 * xfaces.c (lookup_face): Make static.
1337 * dispnew.c (copy_row_except_pointers): Likewise.
1338 * syntax.c (dec_bytepos): Likewise.
1339 (inc_bytepos): Remove.
1340 * dispextern.h (lookup_face): Remove declaration.
1341
f48fe1f0
EZ
13422010-11-19 Eli Zaretskii <eliz@gnu.org>
1343
1344 * xdisp.c (set_cursor_from_row): Display cursor after all the
1345 glyphs that come from an overlay. Don't overstep the last glyph
1346 when skipping glyphs from an overlay. (Bug#6687)
1347
654ef137
DN
13482010-11-18 Dan Nicolaescu <dann@ics.uci.edu>
1349
84dfc8a7
DN
1350 * alloc.c (refill_memory_reserve): Move declaration ...
1351 * lisp.h (refill_memory_reserve): ... here.
1352
94fa3833
DN
1353 * strftime.c (_strftime_copytm): Add declaration.
1354
dde990a0
DN
1355 * callproc.c (syms_of_callproc): Use intern_c_string.
1356
50c77428
DN
1357 Move declarations from .c files to .h files.
1358 * process.c (timers_run):
1359 * minibuf.c (quit_char):
1360 * lread.c (read_emacs_mule_char):
1361 * keyboard.c (minibuf_level, message_enable_multibyte)
1362 (pending_malloc_warning):
1363 * insdel.c (Vselect_active_regions, Vsaved_region_selection)
1364 (Qonly): Remove declarations.
1365 * lisp.h (pending_malloc_warning, Vsaved_region_selection)
1366 (Vselect_active_regions):
1367 * keyboard.h (timers_run): Add declarations.
1368
654ef137
DN
1369 * strftime.c (my_strftime_gmtime_r, my_strftime_localtime_r)
1370 (tm_diff): Convert definitions to standard C.
1371 (extra_args_spec_iso): Remove, unused.
1372
4a47c275 13732010-11-18 Jan Djärv <jan.h.d@swipnet.se>
37de8fd0
J
1374
1375 * xsettings.c (init_gconf): Check HAVE_G_TYPE_INIT.
1376
1377 * config.in (HAVE_G_TYPE_INIT): New symbol.
1378
4a47c275 13792010-11-18 Eli Zaretskii <eliz@gnu.org>
c7926fe2
EZ
1380
1381 * lread.c (Fload): Mention `load-in-progress' and
1382 `load-file-name'. (Bug#7346)
1383
86520d8c
EZ
1384 * keyboard.c (kbd_buffer_nr_stored): Define only ifdef subprocesses.
1385 (kbd_buffer_store_event_hold, kbd_buffer_get_event)
1386 (tty_read_avail_input): Call kbd_buffer_nr_stored only ifdef
1387 subprocesses. Use buffer_free only ifdef subprocesses.
1388
1389 * process.c (init_process) [subprocesses]: Init kbd_is_on_hold in
1390 the subprocesses version, not in the non-subprocesses one.
1391
794a4b6d
EZ
1392 * Makefile.in: Don't use ## comment, it breaks the MSDOS build.
1393
146d267b
EZ
13942010-11-17 Eli Zaretskii <eliz@gnu.org>
1395
1396 * xdisp.c (set_cursor_from_row): Fix cursor positioning in empty
1397 lines on text-mode terminals. (bug#7417)
1398
fad0d565
SM
13992010-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
1400
1401 * xterm.c (get_current_wm_state): Rename from get_current_vm_state.
1402 (do_ewmh_fullscreen, x_handle_net_wm_state): Update callers.
1403
6b4bb703
KH
14042010-11-17 Kenichi Handa <handa@m17n.org>
1405
1406 * coding.c (Fset_terminal_coding_system_internal): Fix previous
1407 change (set charset-ID list instead of charset-symbol list).
1408
9173a8fb
CY
14092010-11-16 Chong Yidong <cyd@stupidchicken.com>
1410
1411 * keyboard.c (make_lispy_position): For text area clicks, record Y
1412 pixel position relative to the text area, excluding header line.
1413 Also change X and Y to Lisp_Objects, not pointers; don't return
1414 coordinate values via pointers. Pass ON_TEXT_AREA coordinate to
1415 buffer_posn_from_coords counting from the start of the text area.
1416 (Fposn_at_x_y, make_lispy_event): Callers changed.
1417
1418 * window.c (coordinates_in_window): Change X and Y to ints rather
1419 than pointers; don't return coordinates via pointers.
1420 (struct check_window_data): Change X and Y from pointers to ints.
1421 (window_from_coordinates): Remove args WX and WY; don't return
1422 coordinates via pointers.
1423 (Fcoordinates_in_window_p, window_from_coordinates):
1424 (check_window_containing, Fwindow_at): Callers changed.
1425 (window_relative_x_coord): New function.
1426
1427 * window.h (window_from_coordinates, window_relative_x_coord):
1428 Update prototypes.
1429
1430 * dispnew.c (buffer_posn_from_coords): Assume that X counts from
1431 the start of the text area.
1432
1433 * xdisp.c (remember_mouse_glyph): Change window_from_coordinates
1434 call. Use window_relative_x_coord.
1435 (note_mouse_highlight): Change window_from_coordinates call.
1436
1437 * w32term.c (w32_read_socket):
1438 * msdos.c (dos_rawgetc):
1439 * xterm.c (handle_one_xevent): Likewise.
1440
d2762c86
DN
14412010-11-16 Dan Nicolaescu <dann@ics.uci.edu>
1442
1443 * strftime.c (LOCALE_PARAM_DECL): Update for standard C.
1444 (LOCALE_PARAM, LOCALE_PARAM_PROTO): Remove, unused.
1445 (memcpy_lowcase, so_week_days, extra_args_spec, emacs_strftimeu):
1446 Convert definitions to standard C.
1447 * regex.c: Do not include <stdlib.h>, config.h does it.
1448 Include unistd.h.
1449 (xrealloc, init_syntax_once, re_match, regcomp, regexec)
1450 (regerror, regfree): Convert definitions to standard C.
1451 * mktime.c (my_mktime_localtime_r, ydhms_tm_diff, ranged_convert)
1452 (__mktime_internal): Convert definitions to standard C.
1453
c2f0866a
DN
14542010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
1455
42a7e7f1
DN
1456 * w32proc.c:
1457 * w32inevt.c:
1458 * w32heap.c:
1459 * w32.c: Remove config.h include guards.
1460
67802943
DN
1461 * callproc.c (child_setup): Reorder code to simplify #ifdefs.
1462 No code changes.
1463
f0e1af46
DN
1464 * process.c: Include <sys/ioctl.h> unconditionally,
1465 keyboard.c already does it.
1466
c2f0866a
DN
1467 * keyboard.c (pending_malloc_warning): Add const to match
1468 definition in alloc.c.
1469 (Fset_input_interrupt_mode): Simplify #ifdefs.
1470
92d3ab7e
DN
14712010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
1472
12e610e8
DN
1473 Clean up systty.h macros.
1474 * systty.h (EMACS_GET_TTY_PGRP, EMACS_SET_TTY_PGRP, EMACS_GET_TTY)
1475 (EMACS_SET_TTY): Remove unneeded abstraction, instead inline the
1476 definition in all uses.
1477 (EMACS_TTY_TABS_OK): Remove, it has a single user.
1478 * sysdep.c (discard_tty_input, child_setup_tty)
1479 (init_sys_modes, tabs_safe_p, reset_sys_modes):
1480 * emacs.c (shut_down_emacs):
1481 * callproc.c (child_setup):
1482 * term.c (dissociate_if_controlling_tty): Inline removed macros.
1483
92d3ab7e
DN
1484 * data.c (sign_extend_temp, sign_extend_lisp_int): Remove, unused.
1485
a3e6bad4
CY
14862010-11-14 Chong Yidong <cyd@stupidchicken.com>
1487
1488 * w32fns.c (Fx_create_frame):
1489 * nsfns.m (Fx_create_frame): Don't check for the cursorColor
1490 resource here; it's now done at startup.
1491
5a232ffb
J
14922010-11-14 Jan Djärv <jan.h.d@swipnet.se>
1493
1494 * xterm.c (set_wm_state): Add Qnil to final cons.
1495
1496 * xselect.c (x_send_client_event): Remove unused variables cons and
1497 size.
1498
24021b38
YM
14992010-11-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1500
1501 * keyboard.c (modify_event_symbol) : Add const to array elements of
1502 arg NAME_TABLE.
1503 (lispy_accent_keys, lispy_function_keys, lispy_multimedia_keys)
1504 (lispy_kana_keys, iso_lispy_function_keys, lispy_wheel_names)
1505 (lispy_wheel_names, lispy_drag_n_drop_names, modifier_names):
1506 Add const to array elements.
1507 (scroll_bar_parts): Make static. Fix position of const.
1508
1509 * w32fns.c (lispy_function_keys): Add const to extern.
1510
1511 * w32inevt.c (lispy_function_keys): Likewise.
1512
afa42fe3
CY
15132010-11-14 Chong Yidong <cyd@stupidchicken.com>
1514
1515 * xfns.c (Fx_create_frame): Don't check for the cursorColor
1516 resource here; it's now done at startup.
1517
53260a94
DN
15182010-11-13 Dan Nicolaescu <dann@ics.uci.edu>
1519
c865c575 1520 * xmenu.c: Make it clear that ../lwlib/lwlib.h is only needed for Motif.
ff2e8052 1521
c865c575 1522 Fix compilation on Solaris.
ff2e8052
DN
1523 * sysdep.c: Do not #include <term.h>.
1524 (tputs): Add declaration, similar to what cm.c does. (Bug#7178)
1525
53260a94
DN
1526 * s/ms-w32.h (HAVE_TERMIOS_H): Do not undef, not used anymore.
1527
933e29ff
J
15282010-11-13 Jan Djärv <jan.h.d@swipnet.se>
1529
1530 * xterm.c (set_wm_state): Don't put Atom in cons, call
1531 make_fixnum_or_float on them first.
1532 (x_term_init): Initialize Xatom_net_supporting_wm_check and
1533 Xatom_net_supported correctly.
1534
1535 * xselect.c (x_send_client_event): Move CHECK_STRING ...
1536 (Fx_send_client_event): to here.
1537
a048073e
MR
15382010-11-13 Martin Rudalics <rudalics@gmx.at>
1539
1540 * window.c (Fwindow_use_time): New function.
1541
0eb025fb
EZ
15422010-11-13 Eli Zaretskii <eliz@gnu.org>
1543
1544 * xdisp.c (set_cursor_from_row): Fix cursor positioning on
1545 zero-width characters.
1546
1547 * .gdbinit (pgx): Adapt to latest changes in `struct glyph'.
1548
1549 * w32term.c (x_draw_glyphless_glyph_string_foreground): Draw the
1550 box before drawing the glyphs inside it.
1551
1552 * xdisp.c (syms_of_xdisp) <glyphless-char-display>: Doc fix.
1553
bba3e508
SM
1554 * dispextern.h (enum glyphless_display_method):
1555 Rename GLYPHLESS_DISPLAY_HEXA_CODE to GLYPHLESS_DISPLAY_HEX_CODE.
1556 All users changed.
0eb025fb 1557
bba3e508
SM
1558 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
1559 Fix comments.
0eb025fb
EZ
1560 (produce_glyphless_glyph): Enclose "U+nnnn" and "empty box"
1561 whitespace in "[]", to simulate a box. Don't use uninitialized
1562 variable `width'.
1563
c869cc37
JD
15642010-11-11 Julien Danjou <julien@danjou.info>
1565
2d9074ba
JD
1566 * xsettings.c (init_xsettings): Use already fetch atoms.
1567
1568 * xsmfns.c (create_client_leader_window): Use SM_CLIENT_ID atom
1569 from dpyinfo.
1570
1571 * xselect.c (Fx_send_client_event): Split and create
1572 x_send_client_event.
1573
1574 * lisp.h: Do not EXFUN Fx_send_client_event.
1575
1576 * xterm.c (x_set_frame_alpha): Use _NET_WM_WINDOW_OPACITY atom
1577 from dpyinfo.
1578 (wm_supports): Use atoms from dpyinfo.
1579 (do_ewmh_fullscreen): Use atoms from dpyinfo.
1580 (x_ewmh_activate_frame): Use atoms from dpyinfo.
1581 (xembed_set_info): Use atoms from dpyinfo.
1582 (x_term_init): Fetch _XEMBED_INFO, _NET_SUPPORTED,
1583 _NET_SUPPORTING_WM_CHECK, _NET_WM_WINDOW_OPACITY and
1584 _NET_ACTIVE_WINDOW, XSETTINGS atoms.
1585 Get all atoms in one round-trip.
1586 (set_wm_state): Use x_send_client_event rather than
1587 Fx_send_client_event, using Atom directly.
1588 (x_ewmh_activate_frame): Ditto.
1589 (x_set_sticky): Pass atoms to set_wm_state.
1590 (do_ewmh_fullscreen): Ditto.
1591
1592
1593 * xterm.h (x_display_info): Add Xatom_net_supported,
1594 Xatom_net_supporting_wm_check, Xatom_net_active_window,
1595 Xatom_net_wm_window_opacity, Xatom_XEMBED_INFO, SM_CLIENT_ID.
1596
c869cc37
JD
1597 * xfns.c (Fx_show_tip): Fix typo in docstring.
1598
1a4236ea
SM
15992010-11-11 Stefan Monnier <monnier@iro.umontreal.ca>
1600
1601 * cmds.c (Fself_insert_command): Don't call XFASTINT without checking
1602 it's not negative.
1603
3106121c
YM
16042010-11-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1605
1606 * font.c (font_filter_properties): Add const to array elements of
1607 properties args.
1608
1609 * font.h (font_filter_properties): Likewise.
1610
1611 * ftfont.c (ftfont_booleans, ftfont_non_booleans): Add const to array
1612 elements.
1613
1614 * w32font.c (w32font_booleans, w32font_non_booleans): Likewise.
1615
da1fec2b
MA
16162010-11-10 Michael Albinus <michael.albinus@gmx.de>
1617
1618 * dbusbind.c (QCdbus_type_unix_fd): New Lisp object.
1619 (XD_BASIC_DBUS_TYPE, xd_symbol_to_dbus_type, xd_signature)
1620 (xd_append_arg, xd_retrieve_arg): Support DBUS_TYPE_UNIX_FD.
1621 (Fdbus_call_method): Add DBUS_TYPE_UNIX_FD type mapping to doc string.
1622 (syms_of_dbusbind): Initialize QCdbus_type_unix_fd).
1623
bd6bc222
GM
16242010-11-10 Glenn Morris <rgm@gnu.org>
1625
1626 * emacs.c (syms_of_emacs) <system-type>: Doc fix.
1627
c0098065
EZ
16282010-11-09 Eli Zaretskii <eliz@gnu.org>
1629
bd6bc222 1630 * xfns.c (x_real_positions): Fix declaration-after-statement problem.
c0098065 1631
d607b96b 16322010-11-09 Chong Yidong <cyd@stupidchicken.com>
be3faa80
CY
1633
1634 * image.c (free_image): Don't garbage the frame here, since this
1635 function can be called while redisplaying (Bug#7210).
1636 (uncache_image): Garbage the frame here (Bug#6426).
1637
d607b96b 16382010-11-09 Jan Djärv <jan.h.d@swipnet.se>
184765cc 1639
d607b96b
SM
1640 * xfns.c (x_real_positions): Only use _NET_FRAME_EXTENTS if our
1641 parent is the root window. Check this after traversing window tree.
184765cc 1642
d607b96b 1643 * xterm.c (x_term_init): Initialize Xatom_net_frame_extents.
bd80a886 1644
d607b96b 1645 * xterm.h (struct x_display_info): Xatom_net_frame_extents is new.
bd80a886 1646
d607b96b
SM
1647 * xfns.c (x_real_positions): Try to get _NET_FRAME_EXTENTS first
1648 before traversing window tree (Bug#5721).
c2e124a9 1649
27f92be7
J
16502010-11-07 Jan Djärv <jan.h.d@swipnet.se>
1651
66b16767
J
1652 * xfns.c (set_machine_and_pid_properties): Let X set WM_CLIENT_MACHINE.
1653
25f38310
SM
1654 * xdisp.c (note_mode_line_or_margin_highlight):
1655 Initialize Cursor to No_Cursor for HAVE_WINDOW_SYSTEM also.
27f92be7 1656
a971c0a7
EZ
16572010-11-06 Eli Zaretskii <eliz@gnu.org>
1658
1659 * xfns.c (Fx_show_tip): If any of the tool-tip text lines is R2L,
1660 adjust width of tool-tip frame to the width of text, excluding the
1661 stretch glyph at the beginning of R2L glyph rows.
1662
1663 * w32fns.c (Fx_show_tip): Likewise.
1664
80417b95
JD
16652010-11-06 Jan Djärv <jan.h.d@swipnet.se>
1666
1667 * nsfont.m: Include termchar for new mouse-highlight.
6dc61cf1 1668 (nsfont_draw): Use MOUSE_HL_INFO.
80417b95 1669
28118eb6
EZ
16702010-11-05 Eli Zaretskii <eliz@gnu.org>
1671
c1fc2d3a 1672 Unify mouse-highlight code for all GUI and TTY sessions.
cf482c50
EZ
1673
1674 * term.c: Remove static mouse_face_* variables. All users
1675 changed.
1676 (term_show_mouse_face, term_clear_mouse_face)
1677 (fast_find_position, term_mouse_highlight): Functions deleted.
1678 (tty_draw_row_with_mouse_face): New function.
1679 (term_mouse_movement): Call note_mouse_highlight instead of
1680 term_mouse_highlight.
1681
bbf534ce
EZ
1682 * nsterm.m (ns_update_window_begin, ns_update_window_end)
1683 (ns_update_end, x_destroy_window, ns_frame_up_to_date)
1684 (ns_dumpglyphs_box_or_relief, ns_maybe_dumpglyphs_background)
1685 (ns_dumpglyphs_image, ns_dumpglyphs_stretch)
1686 (ns_initialize_display_info, keyDown, mouseMoved, mouseExited):
1687 Replace Display_Info with Mouse_HLInfo everywhere where
1688 mouse_face_* members were accessed for mouse highlight purposes.
1689
1690 * xterm.c (x_update_window_begin, x_update_window_end)
1691 (x_update_end, XTframe_up_to_date, x_set_mouse_face_gc)
bba3e508
SM
1692 (handle_one_xevent, x_free_frame_resources, x_term_init):
1693 Replace Display_Info with Mouse_HLInfo everywhere where mouse_face_*
bbf534ce
EZ
1694 members were accessed for mouse highlight purposes.
1695
1696 * w32term.c (x_update_window_begin, x_update_window_end)
1697 (x_update_end, w32_read_socket, x_free_frame_resources)
1698 (w32_initialize_display_info): Replace Display_Info with
1699 Mouse_HLInfo everywhere where mouse_face_* members were accessed
1700 for mouse highlight purposes.
1701
1702 * xdisp.c (show_mouse_face, note_mode_line_or_margin_highlight)
1703 (note_mouse_highlight) [HAVE_WINDOW_SYSTEM]: Don't run GUI code
1704 unless the frame is on a window-system.
c1fc2d3a 1705 (get_tool_bar_item, handle_tool_bar_click)
7ea692f6
EZ
1706 (note_tool_bar_highlight, draw_glyphs, erase_phys_cursor)
1707 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
1708 (note_mode_line_or_margin_highlight, note_mouse_highlight)
1709 (x_clear_window_mouse_face, cancel_mouse_face, expose_frame):
1710 Replace Display_Info with Mouse_HLInfo everywhere where
1711 mouse_face_* members were accessed for mouse highlight purposes.
c1fc2d3a 1712 (coords_in_mouse_face_p): Move prototype out of the
d009ae66
EZ
1713 HAVE_WINDOW_SYSTEM conditional.
1714 (x_y_to_hpos_vpos, frame_to_window_pixel_xy): Move out of the
1715 HAVE_WINDOW_SYSTEM block.
bba3e508
SM
1716 (try_window_id) [HAVE_GPM || MSDOS]:
1717 Call x_clear_window_mouse_face.
d009ae66 1718 (draw_row_with_mouse_face): Implementation for HAVE_WINDOW_SYSTEM
c1fc2d3a
EZ
1719 systems. Call tty_draw_row_with_mouse_face for TTY systems.
1720 (show_mouse_face): Call draw_row_with_mouse_face, instead of
1721 calling draw_glyphs directly.
d009ae66
EZ
1722 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
1723 (cursor_in_mouse_face_p, rows_from_pos_range)
1724 (mouse_face_from_buffer_pos, mouse_face_from_string_pos)
1725 (note_mode_line_or_margin_highlight, note_mouse_highlight)
1726 (x_clear_window_mouse_face, cancel_mouse_face): Move out of the
1727 HAVE_WINDOW_SYSTEM block. Ifdef away window-system specific
1728 fragments.
1729 (note_mouse_highlight): Call popup_activated for MSDOS as well.
1730 Clear mouse highlight if pointer is over glyphs whose OBJECT is an
1731 integer.
1732 (mouse_face_from_buffer_pos): Add parentheses around && within ||.
bba3e508
SM
1733 (x_consider_frame_title, tool_bar_lines_needed):
1734 Move prototypes to HAVE_WINDOW_SYSTEM-only part.
c1fc2d3a
EZ
1735 (get_window_cursor_type): Move inside a HAVE_WINDOW_SYSTEM-only
1736 part. Remove "#ifdef HAVE_WINDOW_SYSTEM" from body of function.
1737 (null_glyph_slice): Move declaration into HAVE_WINDOW_SYSTEM-only
1738 part.
d009ae66
EZ
1739
1740 * dispnew.c (mirror_make_current): Set Y coordinate of the
1741 mode-line and header-line rows.
c1fc2d3a
EZ
1742 (init_display): Setup initial frame's output_data for text
1743 terminal frames.
d009ae66 1744
c1fc2d3a
EZ
1745 * xmenu.c (popup_activated): Don't define on MSDOS, which now has
1746 its own definition on msdos.c.
d009ae66
EZ
1747
1748 * msdos.c (show_mouse_face, clear_mouse_face)
1749 (fast_find_position, IT_note_mode_line_highlight)
1750 (IT_note_mouse_highlight): Functions deleted.
1751 (IT_frame_up_to_date, dos_rawgetc): Call note_mouse_highlight
1752 instead of IT_note_mouse_highlight.
1753 (draw_row_with_mouse_face, popup_activated): New functions.
c1fc2d3a
EZ
1754 (dos_set_window_size, draw_row_with_mouse_face, IT_update_begin)
1755 (IT_update_end, IT_frame_up_to_date, internal_terminal_init)
1756 (dos_rawgetc): Replace Display_Info with Mouse_HLInfo everywhere
1757 where mouse_face_* members were accessed for mouse highlight
1758 purposes.
1759
1760 * msdos.h (initialize_msdos_display): Add prototype.
1761
1762 * frame.h (MOUSE_HL_INFO): New macro.
1763
1764 * lisp.h (Mouse_HLInfo): New data type.
1765
1766 * xterm.h (struct x_display_info):
1767 * w32term.h (struct w32_display_info):
1768 * nsterm.h (struct ns_display_info):
1769 * termchar.h (struct tty_display_info): Use it instead of
1770 mouse_face_* members.
1771
1772 * dispextern.h (show_mouse_face, clear_mouse_face): Update type of
1773 1st argument.
1774 (frame_to_window_pixel_xy, note_mouse_highlight)
1775 (x_clear_window_mouse_face, cancel_mouse_face, clear_mouse_face)
1776 (show_mouse_face, cursor_in_mouse_face_p): Move prototypes out of
1777 HAVE_WINDOW_SYSTEM conditional.
1778 (draw_row_with_mouse_face): Declare prototype.
1779 (tty_draw_row_with_mouse_face): Declare prototype.
1780
6e8d7c47
EZ
17812010-11-05 Eli Zaretskii <eliz@gnu.org>
1782
bba3e508
SM
1783 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
1784 Remove unused variables.
6e8d7c47 1785
f31ba3f0
AR
17862010-11-05 Adrian Robert <Adrian.B.Robert@gmail.com>
1787
1788 * nsterm.m (EmacsView-mouseExited:): Correct error in conditional
1789 logic pointed out by Eli Zaretskii.
1790
448e17d6
LMI
17912010-11-04 Lars Magne Ingebrigtsen <larsi@gnus.org>
1792
0c3a9a9f
GM
1793 * coding.c (coding-category-list): Refer to set-coding-system-priority
1794 instead of the obsolete set-coding-priority in the doc string.
448e17d6 1795
f31ba3f0 1796
3fdebbf9 17972010-11-04 Adrian Robert <Adrian.B.Robert@gmail.com>
f31ba3f0
AR
1798
1799 * nsfont.m (nsfont_draw): Correct previous patch to return
1800 correct value.
1801 * nsimage.m (EmacsImage-setXBMColor:): Correct previous patch:
1802 don't change the method signature, change the return.
1803
18042010-11-04 Ismail Donmez <ismail@namtrac.org> (tiny change)
3fdebbf9
AR
1805
1806 * nsfont.m (nsfont_draw)
1807 * nsimage.m (EmacsImage-setXBMColor:)
f31ba3f0 1808 * nsterm.m (EmacsView-performDragOperation:): Correct empty return.
3fdebbf9 1809
17c0c952
JD
18102010-11-03 Julien Danjou <julien@danjou.info>
1811
1812 * image.c (gif_load): Add support for transparency and specified
1813 :background.
1814
b18fad6d
KH
18152010-11-01 Kenichi Handa <handa@m17n.org>
1816
1817 * dispextern.h (lookup_glyphless_char_display): Extern it.
1818
1819 * termhooks.h (struct terminal): New member charset_list.
1820
1821 * coding.c (Fset_terminal_coding_system_internal): Set the
1822 `charset_list' member of struct terminal.
1823
a8039db1 1824 * term.c (produce_glyphs): Handle the case it->what == IT_GLYPHLESS.
b18fad6d
KH
1825 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
1826
1827 * xdisp.c (lookup_glyphless_char_display): Make it non-static.
1828 (lookup_glyphless_char_display): Set it->what at the end.
1829 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
1830 (last_glyphless_glyph_merged_face_id): Make them non-static.
1831
a8039db1
JB
1832 * w32term.c (x_draw_glyphless_glyph_string_foreground):
1833 Fix the arg with_background for font->driver->draw.
65b6b59a 1834
a8039db1 18352010-11-01 Kenichi Handa <handa@m17n.org>
0269bd90 1836
a8039db1
JB
1837 * w32gui.h (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
1838 Surround chp by parentheses.
0269bd90 1839
a8039db1 18402010-11-01 Kenichi Handa <handa@m17n.org>
b2cca856
KH
1841
1842 Implement various display methods for glyphless characters.
1843
1844 * xdisp.c (Qglyphless_char, Vglyphless_char_display)
1845 (Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space)
1846 (Qzero_width): New variables.
1847 (THIN_SPACE_WIDTH): New macro.
1848 (lookup_glyphless_char_display): New funciton.
1849 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
1850 (last_glyphless_glyph_merged_face_id): New variables.
1851 (get_next_display_element): Check glyphless characters.
1852 (redisplay_internal): Initialize last_glyphless_glyph_frame and
1853 last_glyphless_glyph_face_id.
1854 (fill_glyphless_glyph_string): New function.
1855 (BUILD_GLYPHLESS_GLYPH_STRING): New macro.
1856 (BUILD_GLYPH_STRINGS): Handle the case GLYPHLESS_GLYPH.
1857 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
1858 (x_produce_glyphs): If a suitable font is not found, produce a
1859 glyphless glyph. Handle the case it->what == IT_GLYPHLESS.
1860 (syms_of_xdisp): Intern and staticpro Qglyphless_char,
1861 Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space, and
1862 Qzero_width.
1863 (Vglyphless_char_display): Declare it as a Lisp variable.
1864
1865 * dispextern.h (enum glyph_type): Add GLYPHLESS_GLYPH.
a8039db1
JB
1866 (struct glyph): Change the size of the member "type" to 3.
1867 Add glyphless to the union slice and u.
b2cca856
KH
1868 (enum display_element_type): Add IT_GLYPHLESS.
1869 (enum glyphless_display_method): New enum.
1870 (struct it): New member glyphless_method.
1871 (Vglyphless_char_display): Extern it.
1872
1873 * xterm.c (x_draw_glyphless_glyph_string_foreground): New function.
1874 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
1875
a8039db1 1876 * w32term.c (x_draw_glyphless_glyph_string_foreground): New function.
b2cca856
KH
1877 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
1878
1879 * nsterm.m (ns_draw_glyph_string): Handle the case
1880 GLYPHLESS_GLYPH (the detail is not yet implemented).
1881
c8c59954
GM
18822010-10-31 Glenn Morris <rgm@gnu.org>
1883
80696982
GM
1884 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Fix merge, maybe.
1885
c8c59954
GM
1886 * frame.c (syms_of_frame) <tool-bar-mode>:
1887 Default to nil if !HAVE_WINDOW_SYSTEM. (Bug#7299)
1888
46eadc7a
CY
18892010-10-31 Chong Yidong <cyd@stupidchicken.com>
1890
1891 * xterm.c (x_connection_closed): Print informative error message
1892 when aborting on GTK. This requires using shut_down_emacs
1893 directly instead of Fkill_emacs.
1894
ffe75e6b
EZ
18952010-10-29 Eli Zaretskii <eliz@gnu.org>
1896
1897 * emacs.c (main): Call syms_of_filelock unconditionally.
1898
1899 * filelock.c (syms_of_filelock): Move out of #ifdef CLASH_DETECTION
1900 clause, but keep part of it conditioned on CLASH_DETECTION.
1901
9d794026
GM
19022010-10-29 Glenn Morris <rgm@gnu.org>
1903
4f4f2973
GM
1904 * nsfns.m (Fx-display-save-under, Fx-open-connection)
1905 (Fxw-color-defined-p, Fxw-display-color-p, Fx-show-tip):
1906 * w32fns.c (Fxw_color_defined_p, Fx_open_connection):
1907 * xfns.c (Fxw_color_defined_p, Fx_open_connection):
1908 Sync docs between X, W32, NS.
1909
9d794026
GM
1910 * buffer.c (syms_of_buffer) <abbrev-mode, transient-mark-mode>:
1911 * frame.c (syms_of_frame) <tool-bar-mode>: Move doc here from Lisp.
1912
d46f6bbb
JB
19132010-10-26 Juanma Barranquero <lekktu@gmail.com>
1914
1915 * eval.c (init_eval_once): Set max_lisp_eval_depth to 600;
1916 otherwise, bootstrapping on Windows fails to compile macroexp.el.
1917
2e35f1a2
EZ
19182010-10-26 Eli Zaretskii <eliz@gnu.org>
1919
1920 * cmds.c (internal_self_insert): Don't insert if argument N is
84b28888 1921 zero or negative. (Bug#7281)
2e35f1a2 1922
8daaeda6
J
19232010-10-26 Jan Djärv <jan.h.d@swipnet.se>
1924
1925 * gtkutil.c (qttip_cb): Set title to empty for ATK (Bug#7278).
1926
6a5c2175
GM
19272010-10-25 Glenn Morris <rgm@gnu.org>
1928
1929 * Makefile.in (SOME_MACHINE_LISP): Remove easymenu.elc.
1930
7c051dd8
GM
19312010-10-24 Glenn Morris <rgm@gnu.org>
1932
1933 * w32fns.c (Fx_synchronize, Fx_change_window_property)
1934 (Fx_window_property, Fx_file_dialog):
1935 * xfns.c (Fx_synchronize, Fx_change_window_property)
1936 (Fx_window_property, Fx_file_dialog): Sync docs between w32 and X.
1937
23c261f5
CY
19382010-10-24 Chong Yidong <cyd@stupidchicken.com>
1939
1940 * xterm.c (x_connection_closed): Kill Emacs unconditionally.
1941
d414c713 19422010-10-24 Eli Zaretskii <eliz@gnu.org>
89baa1df
EZ
1943
1944 * frame.c (Fframep, Fwindow_system): Deprecate use as a predicate.
1945
1946 * dispnew.c (syms_of_display) <initial-window-system, window-system>:
1947 Deprecate use as a boolean flag.
1948
947f5e01
JM
19492010-10-24 Jim Meyering <jim@meyering.net>
1950
1951 * emacs.c (argmatch): Don't treat "--" as "--chdir".
1952
65807d73
GM
19532010-10-24 Glenn Morris <rgm@gnu.org>
1954
f5f25615
GM
1955 * w16select.c (syms_of_win16select) <selection-coding-system>:
1956 <next-selection-coding-system>:
1957 * w32select.c (syms_of_w32select) <selection-coding-system>:
1958 <next-selection-coding-system>:
3646b86d
GM
1959 Sync docs with select.el.
1960
46710489
GM
1961 * xfaces.c (syms_of_xfaces) <tty-defined-color-alist>: Sync doc with
1962 Lisp version.
1963
ea883883
GM
1964 * w32term.c (syms_of_w32term) <x-use-underline-position-properties>:
1965 Sync doc with the xterm.c version.
1966
65807d73
GM
1967 * w32term.c (syms_of_w32term) <x-toolkit-scroll-bars>:
1968 * xterm.c (syms_of_xterm) <x-toolkit-scroll-bars>: Sync docs.
1969
f3d87560
GM
19702010-10-23 Glenn Morris <rgm@gnu.org>
1971
66c6abf0 1972 * buffer.c (syms_of_buffer) <cursor-in-non-selected-windows>:
e1fd756b 1973 * frame.c (syms_of_frame) <menu-bar-mode>:
6e82cf1a 1974 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode, display-hourglass>:
a102db1e 1975 <hourglass-delay>: Sync docs with Lisp.
f3d87560 1976
7b7e2c18
EZ
19772010-10-23 Eli Zaretskii <eliz@gnu.org>
1978
d1d6801e 1979 Implement mouse highlight for bidi-reordered lines.
d0010be5
EZ
1980
1981 * xdisp.c (fast_find_string_pos): #ifdef away, not used anymore.
1982 (mouse_face_from_string_pos): New function, replaces
1983 fast_find_string_pos.
1984 (note_mouse_highlight): Call it instead of fast_find_string_pos.
d1d6801e
EZ
1985 (note_mode_line_or_margin_highlight): Support bidi-reordered
1986 strings and R2L glyph rows. Fix comments.
2f3f89b3
EZ
1987 (note_mouse_highlight): When bidi reordering is turned on in a
1988 buffer, call next-single-property-change and
ef1b0ba7
SM
1989 previous-single-property-change with last argument nil.
1990 Clear mouse highlight when mouse pointer is in a R2L row on the stretch
d1d6801e 1991 glyph that stands for no text beyond the line end.
1f382a02
EZ
1992 (row_containing_pos): Don't return too early when CHARPOS is in a
1993 bidi-reordered continued line. Return immediately when the first
1994 hit is found in a line that is not continued, or when an exact
1995 match for CHARPOS is found.
d1d6801e
EZ
1996 (rows_from_pos_range): New function.
1997 (mouse_face_from_buffer_pos): Use it instead of calling
1998 row_containing_pos for START_CHARPOS and END_CHARPOS. Rewrite the
1999 function to support mouse highlight in bidi-reordered lines and
2000 not to assume that START_CHARPOS is always in mouse_face_beg_row.
2001 If necessary, swap mouse_face_beg_row and mouse_face_end_row so
2002 that the former is always above the latter or identical to it.
1554d88e 2003 (show_mouse_face): Support drawing highlighted R2L lines.
1b5a721b
EZ
2004 (coords_in_mouse_face_p): New function, bidi-aware.
2005 (cursor_in_mouse_face_p, note_mouse_highlight, erase_phys_cursor):
2006 Call it instead of comparing with mouse-face members of dpyinfo.
2007 (note_mode_line_or_margin_highlight): Fix confusingly swapped
2008 usage of hpos and vpos.
544bbc31 2009
dee186b6
J
20102010-10-22 Jan Djärv <jan.h.d@swipnet.se>
2011
2012 * xrdb.c: Include keyboard.h for MOTIF.
2013
2014 * xmenu.c: Revert 2010-07-27 change: lwlib.h is needed for
2015 MOTIF (Bug#7263).
2016
2017 * xfns.c: Include Xm/TextF and Xm/List.
bba3e508
SM
2018 (file_dialog_cb, file_dialog_unmap_cb, clean_up_file_dialog):
2019 Make ANSI prototypes.
dee186b6 2020
5fb59edb
GM
20212010-10-22 Glenn Morris <rgm@gnu.org>
2022
2023 * Makefile.in (SOME_MACHINE_LISP): Add w32-vars.
2024 Remove ccl and duplicate mouse.
2025
8b78d5e3
CY
20262010-10-21 Chong Yidong <cyd@stupidchicken.com>
2027
2028 * insdel.c (prepare_to_modify_buffer): Don't set
2029 saved-region-selection if modification hooks are disabled.
2030
b8a47412
CY
20312010-10-19 Chong Yidong <cyd@stupidchicken.com>
2032
2033 * cmds.c (Fdelete_char): Doc fix.
2034
ca3fa302 20352010-10-19 Ken Brown <kbrown@cornell.edu>
5419963b
KB
2036
2037 * s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
2038
ca3fa302 20392010-10-19 Kenichi Handa <handa@m17n.org>
31daa5e1
KH
2040
2041 Fix incorrect font metrics when the same font is opened with
2042 different pixelsizes.
2043
2044 * xftfont.c: Include composite.h.
2045 (xftfont_shape): New function.
2046 (syms_of_xftfont): Set xftfont_driver.shape.
2047
c978536f
JD
20482010-10-18 Julien Danjou <julien@danjou.info>
2049
2050 * frame.c (Fframe_pointer_visible_p):
2051 Add `frame-pointer-visible-p' to get the pointer visibility.
2052
4b2d9ec2
LMI
20532010-10-18 Lars Magne Ingebrigtsen <larsi@gnus.org>
2054
2055 * gnutls.c (emacs_gnutls_read): Return 0 if we get a
2056 non-"EAGAIN"-like error to signal to Emacs that the socket should
2057 be closed.
2058
9cf66cf2
EZ
20592010-10-15 Eli Zaretskii <eliz@gnu.org>
2060
c3911ead
EZ
2061 * unexcoff.c (make_hdr): Fix prototype according to changes in
2062 2010-10-03T13:59:56Z!dann@ics.uci.edu.
2063
9cf66cf2
EZ
2064 * image.c (tiff_load): Cast 3rd argument to avoid compiler warning.
2065
be98da05
TH
20662010-10-15 Tassilo Horn <tassilo@member.fsf.org>
2067
2068 * Makefile.in (really-oldXMenu): Fix typo in variable name that
2069 made building the X menu fail.
cc98b256 2070 (really-oldXMenu): Fix my previous fix.
be98da05 2071
220d91b8 20722010-10-14 Damyan Pepper <damyanp@gmail.com>
9fa82824
DP
2073
2074 Fix handling of font properties on Windows (bug#6303).
2075 * font.c (font_filter_properties): New function, refactored from
2076 ftfont_filter_properties.
2077 * font.h (font_filter_properties): Declare.
2078 * ftfont.c (ftfont_filter_properties): Use font_filter_properties.
2079 * w32font.c (w32font_booleans, w32font_non_booleans): New variables.
2080 (w32font_filter_properties): New function.
2081 (w32font_driver): Add w32font_filter_properties.
2082
220d91b8 20832010-10-14 Juanma Barranquero <lekktu@gmail.com>
51e4f4a8 2084
c0943d3d 2085 * font.c (Ffont_variation_glyphs):
51e4f4a8
JB
2086 * ccl.c (Fccl_execute_on_string): Fix typo in docstring.
2087
24f981c9
JB
20882010-10-14 Juanma Barranquero <lekktu@gmail.com>
2089
2090 * w32fns.c (w32_wnd_proc, file_dialog_callback):
2091 * w32font.c (w32_generic_family):
2092 * w32inevt.c (key_event):
2093 * w32menu.c (fill_in_menu):
2094 * w32proc.c (reader_thread, w32_executable_type, compare_env)
2095 (merge_and_sort_env, int_from_hex, enum_locale_fn, enum_codepage_fn):
2096 * w32term.c (w32_read_socket): Make static.
2097
850690cc
JB
20982010-10-13 Juanma Barranquero <lekktu@gmail.com>
2099
2100 * image.c (DEF_IMGLIB_FN): Add argument to adapt to strict
2101 prototypes; all callers changed.
2102
5e371708
JB
21032010-10-13 Juanma Barranquero <lekktu@gmail.com>
2104
2105 * makefile.w32-in (TLIB2): Rename from TLIBW32.
2106 (OBJ2): New macro.
2107 (WIN32OBJ, FONTOBJ): Remove.
2108 (OBJ1): Redistribute object files with OBJ2.
2109 (LIBS, $(TEMACS)): Use TLIB2.
2110 (make-buildobj-CMD, make-buildobj-SH): Use OBJ2.
2111 ($(TLIB2), TAGS, TAGS-LISP, TAGS-gmake): Depend on OBJ2.
2112
2e288d54
JB
21132010-10-13 Juanma Barranquero <lekktu@gmail.com>
2114
2115 * emacs.c (Vdynamic_library_alist)
2116 (syms_of_emacs) <dynamic-library-alist>: Move from image.c and rename.
2117 Doc fix.
2118
2119 * lisp.h (Vdynamic_library_alist): Declare extern.
2120
2121 * image.c (Vimage_library_alist)
2122 (syms_of_image) <image-library-alist>: Move to emacs.c and rename.
2123 (lookup_image_type): Use Vdynamic_library_alist.
2124 (Finit_image_library): Doc fix.
2125
aba1381b
DN
21262010-10-12 Dan Nicolaescu <dann@ics.uci.edu>
2127
2128 * Makefile.in (lispsource, libsrc, etc, oldxmenudir, lwlibdir)
2129 (lispdir): Remove trailing /, update all uses.
2130
4c14013d 21312010-10-12 Jan Djärv <jan.h.d@swipnet.se>
a2e35ef5
JD
2132
2133 * nsterm.m (Qleft): Declare.
2134 (ns_right_alternate_modifier): New variable
2135 (NSRightAlternateKeyMask): New define.
2136 (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
2137 ns_right_alternate_modifier isn't Qleft.
2138 (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
2139 as emacs modifier for NSRightAlternateKeyMask.
2140 (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
2141
355cdaf3
LMI
21422010-10-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
2143
2144 * gnutls.c (emacs_gnutls_write): If we're trying to write before
2145 gnutls is ready, return EAGAIN as the errno.
2146
4c620157
DN
21472010-10-10 Dan Nicolaescu <dann@ics.uci.edu>
2148
edfd76ce
DN
2149 * vm-limit.c:
2150 * unexhp9k800.c:
2151 * unexelf.c:
2152 * unexaix.c:
2153 * termcap.c: Remove #ifdef emacs / #ifndef emacs code, unused.
2154
a4daeecf
DN
2155 * Makefile.in (temacs): Use $(ALL_CFLAGS) on the link line.
2156 (PROFILING_LDFLAGS): Remove, not needed anymore.
2157
2cb72a75 2158 * Makefile.in: Use $(...) everywhere instead of ${...}
4cf3ad30
DN
2159 (CRT_DIR): Move near potential user.
2160 (START_FILE): Move near CRT_DIR, it might use it.
2cb72a75 2161
4c620157
DN
2162 * sysdep.c (LPASS8): Remove, unused.
2163 (emacs_ospeed): Change from being a global to a local in the only
2164 user: init_baud_rate.
2165
b845653d
LMI
21662010-10-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
2167
2168 * gnutls.c (syms_of_gnutls): All the bootprops are keywords.
bda6d2bd 2169 (emacs_gnutls_write): Remove the debuggin fsync call.
b845653d 2170 (emacs_gnutls_read): Return -1 if we got an error from
bda6d2bd 2171 gnutls_read. This allows us to actually read lots of data from
b845653d 2172 the GnuTLS stream.
2e6c74c5
LMI
2173 (emacs_gnutls_write): Check for GNUTLS_E_AGAIN and not EINTR.
2174 According to the documentation, this is correct, and it seems to
2175 make things work.
b845653d 2176
3625b3e2
CY
21772010-10-09 Chong Yidong <cyd@stupidchicken.com>
2178
2179 * xterm.c (x_draw_relief_rect): Clear corner pixels.
2180
8b1c619f
MA
21812010-10-08 Michael Albinus <michael.albinus@gmx.de>
2182
2183 * keyboard.c: Revert last change; it was not intended to be
2184 synchronized with the trunk.
2185
93d50df8
KH
21862010-10-08 Kenichi Handa <handa@m17n.org>
2187
2b7c9342 2188 * coding.c (complement_process_encoding_system): Fix previous change.
5886ec9c 2189
4628bef1 21902010-10-08 Michael Albinus <michael.albinus@gmx.de>
a79b0f28
MA
2191
2192 * dbusbind.c (syms_of_dbusbind): Move putenv call ...
2193 (Fdbus_init_bus): ... here. (Bug#7113)
2194
4628bef1 21952010-10-08 Glenn Morris <rgm@gnu.org>
7b2bf907
GM
2196
2197 * buffer.c (before-change-functions, after-change-functions):
2198 Three-year overdue doc fix following 2007-08-13 change.
2199
4628bef1 22002010-10-08 Kenichi Handa <handa@m17n.org>
1911a33b
KH
2201
2202 * coding.c (coding_inherit_eol_type): If parent doesn't specify
2203 eol-format, inherit from the system's default.
2204 (complement_process_encoding_system): Make a new coding system
2205 inherit the original eol-format.
2206
4628bef1 22072010-10-08 Kenichi Handa <handa@m17n.org>
fcaf8878
KH
2208
2209 * coding.c (complement_process_encoding_system): New function.
2210
2211 * coding.h (complement_process_encoding_system): Extern it.
2212
2213 * callproc.c (Fcall_process): Complement the coding system for
2214 encoding arguments.
2215 (Fcall_process_region): Complement the coding system for encoding
2216 the input to the process.
2217
2218 * process.c (Fstart_process): Complement the coding system for
2219 encoding arguments.
2220 (send_process): Complement the coding system for encoding what
2221 sent to the process.
2222
4628bef1 22232010-10-08 Kenichi Handa <handa@m17n.org>
18acb5ad
KH
2224
2225 * xfont.c (xfont_open): Fix setting of font->average_width from
2226 :avgwidth property (Bug#7123).
2227
4628bef1 22282010-10-08 Michael Albinus <michael.albinus@gmx.de>
dec83468
MA
2229
2230 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
2231 is more portable.
2232
2233 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
2234 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
2235 has not defined SIGIO.
2236
389454fb
CY
22372010-10-08 Chong Yidong <cyd@stupidchicken.com>
2238
2239 * xterm.c (x_draw_relief_rect): If box width is larger than 1,
2240 draw the outermost line using the black relief, for legibility.
2241 Omit drawing the four corner pixels.
2242
51b403bd
CY
22432010-10-04 Chong Yidong <cyd@stupidchicken.com>
2244
2245 * keyboard.c (echo_prompt): Function moved into read_key_sequence.
2246 (read_key_sequence): Inline echo_prompt.
2247 (echo_dash): Add a dash only if key is continued (Bug#7137).
2248
3e6ae1a4
DN
22492010-10-04 Dan Nicolaescu <dann@ics.uci.edu>
2250
2251 Remove O_RDONLY, O_WRONLY definitions, not needed.
2252 * unexcoff.c:
2253 * lread.c:
2254 * fileio.c:
2255 * doc.c:
2256 * callproc.c:
2257 * alloc.c:
2258 * termcap.c: Remove O_RDONLY O_WRONLY definitions.
2259
c1ae068b
LMI
22602010-10-03 Teodor Zlatanov <tzz@lifelogs.com>
2261
2262 * gnutls.h (GNUTLS_LOG2): Convenience macro.
2263
2264 * gnutls.c: Add property list symbol holders.
2265 (emacs_gnutls_handshake): Clarify how sockets are passed to
2266 GnuTLS.
2267 (gnutls_log_function2): Convenience function using GNUTLS_LOG2.
2268 (Fgnutls_boot): Get all parameters from a plist. Require trustfiles
2269 and keyfiles to be a list of file names. Default to "NORMAL" for
2270 the priority string. Improve logging.
2271
e2afe435
GM
22722010-10-03 Glenn Morris <rgm@gnu.org>
2273
2274 * fileio.c (Vdirectory_sep_char): Remove.
2275
dd5ecd6b
DN
22762010-10-03 Dan Nicolaescu <dann@ics.uci.edu>
2277
b5437a05
DN
2278 * termhooks.h: Remove #ifdef CONSP.
2279
4777478a
DN
2280 * xterm.c (NO_INLINE, noinline): Move definitions to ../configure.in.
2281
a3d5088d
DN
2282 Include <fcntl.h> unconditionally.
2283 * termcap.c:
2284 * sysdep.c:
2285 * lread.c:
2286 * keyboard.c:
2287 * filelock.c:
2288 * fileio.c:
2289 * doc.c:
2290 * callproc.c:
2291 * alloc.c: Remove include guards for <fcntl.h>, process.c already
2292 does it.
2293
82719735
DN
2294 * process.c: Do not include <sys/wait.h>, syswait.h does it.
2295
9de940b5
DN
2296 * sysdep.c (flush_pending_output): Remove code, does not do
2297 anything on any platform.
2298
57507bf8 2299 Remove unused code.
bba3e508
SM
2300 * sysdep.c (select_alarm, sys_select, read_input_waiting):
2301 Remove select emulation, all systems support select.
57507bf8
DN
2302 (set_exclusive_use): Remove, the only user is in an #if 0 block.
2303 * process.c (create_process): Remove #if 0 code.
2304
dd5ecd6b
DN
2305 Remove unused arguments for unexec.
2306 The third one is never used, and the last two are always passed as zero.
2307 * emacs.c (unexec): Add declaration.
2308 (Fdump_emacs): Only pass the first two arguments to unexec.
2309 Simplify #ifdef.
2310 * unexw32.c (unexec):
2311 * unexsol.c (unexec):
2312 * unexhp9k800.c (unexec):
2313 * unexcw.c (unexec): Remove the last 3 arguments, unused.
2314 * unexelf.c (unexec): Remove the last 3 arguments, unused.
2315 (find_section): Use const.
2316 * unexmacosx.c (unexec): Remove the last 3 arguments, unused.
2317 (unexec_error): Declare it NO_RETURN.
2318 * unexcoff.c (make_hdr): Assume bss_start is always zero, remove
2319 it as an argument, remove data_start and entry_address arguments, unused.
2320 (unexec): Remove bss_start, data_start and
2321 entry_address arguments.
2322 * unexaix.c (make_hdr): Assume bss_start is always zero, remove
2323 it as an argument, remove data_start and entry_address arguments, unused.
2324 (unexec): Remove bss_start, data_start and
2325 entry_address arguments.
2326
74f1829d
JB
23272010-10-03 Juanma Barranquero <lekktu@gmail.com>
2328
7f467e14
JB
2329 * makefile.w32-in (TAGS, TAGS-LISP, TAGS-gmake): Add $(FONTOBJ).
2330
74f1829d
JB
2331 * gnutls.c (emacs_gnutls_handshake, gnutls_make_error)
2332 (gnutls_emacs_global_init, gnutls_emacs_global_deinit): Make static.
2333 (Fgnutls_get_initstage, Fgnutls_deinit, Fgnutls_boot, Fgnutls_bye):
2334 Fix typos in docstrings.
2335 (Fgnutls_error_fatalp, Fgnutls_error_string): Doc fixes.
2336 (Fgnutls_errorp): Doc fix; use ERR for the argument name.
2337
6926550f
CY
23382010-10-03 Chong Yidong <cyd@stupidchicken.com>
2339
2340 * keyboard.c (command_loop_1): Make sure the mark is really alive
2341 before using it (Bug#7044).
2342
54b65f7b
JB
23432010-10-02 Juanma Barranquero <lekktu@gmail.com>
2344
2345 * makefile.w32-in (tags): Rename target to full-tags.
2346
383ebd15
EZ
23472010-10-02 Eli Zaretskii <eliz@gnu.org>
2348
2349 * emacs.c (main): Remove !WINDOWSNT conditional.
2350 (Fkill_emacs): Don't mention exemption on MS-Windows.
2351
9c524fcb
GM
23522010-10-02 Glenn Morris <rgm@gnu.org>
2353
3226d6ca
GM
2354 * character.c (Fchar_bytes): Remove obsolete function.
2355 (syms_of_character): Remove Schar_bytes.
2356
9c524fcb
GM
2357 * emacs.c (fatal_error_signal): Also run Fkill_emacs on SIGINT.
2358 (main) [!WINDOWSNT]: Handle SIGINT with fatal_error_signal
2359 in batch-mode.
2360 (Fkill_emacs): Doc fix. Also run the hook in batch mode.
2361 (kill-emacs-hook): Doc fix.
2362
1b217849
LMI
23632010-10-02 Lars Magne Ingebrigtsen <larsi@gnus.org>
2364
2365 * xml.c (Flibxml_parse_xml_region, Flibxml_parse_html_region)
bba3e508 2366 (parse_region): Rework to take regions instead of strings, and
1b217849
LMI
2367 renamed to reflect that these are the libxml functions.
2368
54cc6a83
EZ
23692010-10-01 Eli Zaretskii <eliz@gnu.org>
2370
0ebf79de
EZ
2371 * term.c (init_tty) [DOS_NT]: Don't call Wcm_clear after setting
2372 screen dimensions in tty->Wcm.
2373
54cc6a83
EZ
2374 * xdisp.c (set_cursor_from_row): When the row is truncated and
2375 point is outside the range of displayed characters, position the
2376 cursor inside the scroll margin. (Bug#6349)
2377
321401d1
DN
23782010-10-01 Dan Nicolaescu <dann@ics.uci.edu>
2379
4cacd822
DN
2380 Do not include stdlib.h and string.h, config.h does it.
2381 * xfont.c:
2382 * w32term.c:
2383 * w32reg.c:
2384 * w32inevt.c:
2385 * w32heap.c:
2386 * w32console.c:
2387 * w16select.c:
2388 * unexsol.c:
2389 * term.c:
2390 * sound.c:
2391 * scroll.c (m):
2392 * gtkutil.c:
2393 * font.c:
2394 * filelock.c:
2395 * fileio.c:
2396 * dosfns.c:
2397 * dbusbind.c:
2398 * bidi.c:
2399 * callproc.c:
2400 * process.c:
2401 * msdos.c:
2402 * charset.c: Do not include stdlib.h and string.h, config.h does it.
2403
bba3e508
SM
2404 * callproc.c (SIGCHLD): Remove conditional definition, syssignal.h
2405 defines it.
0781e7ab 2406
9bf58201
DN
2407 * process.c: Move #include <pty.h> earlier.
2408 (SIGCHLD): Remove conditional definition, syssignal.h defines it.
2409 (pty_name): Move definition later.
2410
088dcc3e
DN
2411 * nsselect.m (syms_of_nsselect):
2412 * nsmenu.m (syms_of_nsmenu):
2413 * nsfns.m (syms_of_nsfns):
2414 * msdos.c (syms_of_msdos):
4cacd822 2415
088dcc3e
DN
2416 * image.c (syms_of_image):
2417 * charset.c (syms_of_charset): Use intern_c_string instead of intern.
2418
321401d1
DN
2419 * point.h: Remove, unused.
2420
73077a9a
EZ
24212010-10-01 Eli Zaretskii <eliz@gnu.org>
2422
2423 * makefile.w32-in (TAGS, frc, TAGS-LISP, ../nt/TAGS, tags)
2424 (TAGS-gmake, TAGS-nmake, TAGS-LISP-gmake, TAGS-LISP-nmake)
2425 (nt-TAGS-gmake, nt-TAGS-nmake): New targets.
2426
55e572ef
DN
24272010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
2428
2429 * xml.c (parse_string): Use const.
2430
d4b6d95d
LMI
24312010-09-30 Lars Magne Ingebrigtsen <larsi@gnus.org>
2432
ef1b0ba7
SM
2433 * eval.c (Fbacktrace): Don't overwrite print-level on exit.
2434 Also only override Vprint_level if it isn't already bound, and increase
d4b6d95d
LMI
2435 the level to 8 to produce more useful backtraces for bug reports.
2436
e4b6db12
DN
24372010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
2438
2439 * Makefile.in: ecrt0.c does not exist anymore, do not mention it.
2440
1becef93
JB
24412010-09-30 Juanma Barranquero <lekktu@gmail.com>
2442
2443 * w32console.c (vga_stdcolor_name): Remove unused function;
2444 presumed dead after 2007-11-30T13:57:21Z!jasonr@gnu.org.
2445
df7fcaff
LMI
24462010-09-29 Lars Magne Ingebrigtsen <larsi@gnus.org>
2447
bac5cef8
LMI
2448 * gnutls.c (emacs_gnutls_handshake): Made into internal function.
2449 (Fgnutls_boot): Start the handshake.
2450 (emacs_gnutls_read): Perform the handshake from the reader loop.
e6059fa2
LMI
2451 (Fgnutls_boot): Remove some debugging messages.
2452 Change indentation throughout to use the Emacs style.
2453 (emacs_gnutls_handshake): Cast the fds to something that's
2454 possibly the expected length.
2455 (emacs_gnutls_write): Return -1 if we try to write before handshake.
bac5cef8 2456
df7fcaff
LMI
2457 * process.h (Lisp_Process): Add a gnutls_p field to Lisp_Process.
2458
2459 * process.c (make_process): Set the gnutls_p field to zero by
2460 default.
2461 (read_process_output): Always call the gnutls_read function if the
2462 stream is a gnutls stream.
2463 (send_process): Ditto for writes.
2464
2465 * gnutls.c (emacs_gnutls_write, emacs_gnutls_read): Refuse to read
2466 or write anything until the state is GNUTLS_STAGE_READY.
2467 (Fgnutls_boot): Mark the stream as being a gnutls stream.
2468
d585695f
EZ
24692010-09-29 Eli Zaretskii <eliz@gnu.org>
2470
af7ef32d
EZ
2471 * xdisp.c (reseat_1): Initialize bidi_it.paragraph_dir to
2472 NEUTRAL_DIR.
2473 (handle_invisible_prop, iterate_out_of_display_property)
2474 (next_element_from_buffer): If bidi_it.first_elt is set, call
2475 bidi_paragraph_init with NO_DEFAULT_P argument non-zero.
2476 (Bug#7128)
2477
d585695f
EZ
2478 * print.c (print_object): Fix format string and argument types for
2479 printing a Lisp_Misc_Marker.
2480
2481 * xdisp.c (pos_visible_p, c_string_pos, number_of_chars)
2482 (load_overlay_strings, get_overlay_strings_1)
2483 (get_overlay_strings, forward_to_next_line_start)
2484 (back_to_previous_visible_line_start, reseat, reseat_to_string)
2485 (get_next_display_element, next_element_from_string)
2486 (next_element_from_c_string, next_element_from_buffer)
2487 (move_it_vertically_backward, move_it_by_lines, add_to_log)
2488 (message_dolog, message_log_check_duplicate, message2_nolog)
2489 (message3, message3_nolog, vmessage, set_message, set_message_1)
2490 (hscroll_window_tree, text_outside_line_unchanged_p)
2491 (set_cursor_from_row, set_vertical_scroll_bar, redisplay_window)
2492 (find_last_unchanged_at_beg_row)
2493 (find_first_unchanged_at_end_row, row_containing_pos)
2494 (trailing_whitespace_p, display_mode_element, decode_mode_spec)
bba3e508
SM
2495 (display_count_lines, x_produce_glyphs, note_mouse_highlight):
2496 Use EMACS_INT for buffer and string positions.
d585695f
EZ
2497
2498 * dispextern.h (struct it) <string_nchars>: Declare EMACS_INT.
2499 (row_containing_pos): Adjust prototype.
2500
2501 * lisp.h (pos_visible_p, message2, message2_nolog, message3)
2502 (message2_nolog, set_message): Adjust prototypes.
2503
a6f3211f
SM
25042010-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
2505
2506 * gnutls.c (Fgnutls_boot): Remove unused vars `data' and `srp_cred'.
2507 (Fgnutls_boot): Use SDATA.
2508 (Fgnutls_handshake): Remove unused var `max_log_level'.
2509
e0720500
MA
25102010-09-27 Michael Albinus <michael.albinus@gmx.de>
2511
11a5af7c 2512 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
e0720500
MA
2513 (Bug#7113)
2514
d8a4b27a
J
25152010-09-27 Jan Djärv <jan.h.d@swipnet.se>
2516
42d3022b
J
2517 * xgselect.c (xg_select): Clear file descriptors not set from
2518 rfds and wfds.
2519
d8a4b27a
J
2520 * process.c (wait_reading_process_output): Add missing FD_CLR
2521 for write_mask (must mirror connect_wait_mask).
2522
8ed70bf3
LMI
25232010-09-27 Teodor Zlatanov <tzz@lifelogs.com>
2524
2525 * gnutls.c (gnutls_log_function): Show level and "gnutls.c"
2526 prefix.
2527 (Fgnutls_boot): Use changed process members. Use log level with a
2528 function parameter to set it. Bring back Emacs-level debugging
2529 messages at log level 1 and 2.
2530
2531 * process.c (make_process): Initialize gnutls_log_level.
2532
2533 * process.h: Add gnutls_log_level and rename x509_cred and
2534 anon_cred to have the gnutls_ prefix for consistency.
2535
2536 * gnutls.h (GNUTLS_LOG): Add convenience macro.
2537
bedf4aab
JB
25382010-09-27 Juanma Barranquero <lekktu@gmail.com>
2539
2540 * w32.c (g_b_init_get_sid_identifier_authority)
2541 (GetSidIdentifierAuthority_Proc, get_sid_identifier_authority):
2542 Remove, not used.
2543 (globals_of_w32): Don't set g_b_init_get_sid_identifier_authority.
2544 (init_winsock): Remove useless assignment.
2545 (open_process_token, get_token_information, lookup_account_sid)
2546 (get_sid_sub_authority, get_sid_sub_authority_count, get_file_security)
2547 (get_security_descriptor_owner, get_security_descriptor_group)
2548 (is_valid_sid, equal_sid, get_length_sid, copy_sid)
2549 (get_native_system_info, get_system_times, init_user_info, crlf_to_lf)
2550 (is_unc_volume, GetCachedVolumeInformation, get_volume_info)
2551 (is_fat_volume, open_unc_volume, read_unc_volume, close_unc_volume)
2552 (unc_volume_file_attributes, convert_from_time_t)
2553 (create_toolhelp32_snapshot, process32_first, process32_next)
2554 (open_thread_token, impersonate_self, revert_to_self)
2555 (get_process_memory_info, get_process_working_set_size)
2556 (global_memory_status, global_memory_status_ex, socket_to_fd)
2557 (shutdown_handler): Make static.
2558
08609ffd
MA
25592010-09-27 Michael Albinus <michael.albinus@gmx.de>
2560
2561 * dbusbind.c (dbus_fd_cb, xd_get_dispatch_status)
2562 (xd_pending_messages): Functions removed.
2563 (xd_read_queued_messages): Add parameters fd, *data, for_read in
2564 order to be compatible with add_read_fd. Determine bus from data,
2565 and call xd_read_message just for this bus.
2566 (xd_add_watch): Use xd_read_queued_messages as callback function.
2567 Add data.
2568
2569 * lisp.h (xd_pending_messages, xd_read_queued_messages): Remove.
2570
d2e9d0bb
LMI
25712010-09-27 Lars Magne Ingebrigtsen <larsi@gnus.org>
2572
ef1b0ba7 2573 * gnutls.c (gnutls_log_function): Add more debugging.
ec9f09be 2574 (emacs_gnutls_read): Don't infloop while reading.
d2e9d0bb 2575
4be9765d
KH
25762010-09-27 Kenichi Handa <handa@m17n.org>
2577
2578 These changes are to remove restriction on the number of glyphs in
2579 one composition.
2580
2581 * dispextern.h (struct glyph): Change the member "slice" to union.
2582 Remove u.cmp.from and u.cmp.to. Give more bits to u.cmp.id.
bba3e508 2583 (GLYPH_SLICE_EQUAL_P): Adjust for the above change.
4be9765d
KH
2584
2585 * dispnew.c (buffer_posn_from_coords): Use glyph->slice.img
2586 instead of glyph->slice.
2587 (marginal_area_string): Likewise.
2588
2589 * term.c (encode_terminal_code): Use glyph->slice.cmp instead of
2590 glyph->u.cmp.
2591 (append_composite_glyph): Likewise.
2592
2593 * xdisp.c (dump_glyph): Use glyph->slice.cmp instead of
2594 glyph->u.cmp.
2595 (fill_gstring_glyph_string, x_get_glyph_overhangs)
2596 (append_composite_glyph): Likewise.
2597 (fill_image_glyph_string): Use glyph->slice.img instead of
2598 glyph->slice.
2599 (append_glyph, produce_image_glyph, append_stretch_glyph)
2600 (note_mouse_highlight): Likewise.
2601
3fad2ad2
J
26022010-09-26 Jan Djärv <jan.h.d@swipnet.se>
2603
bf05eed6
J
2604 * process.c (add_keyboard_wait_descriptor)
2605 (delete_keyboard_wait_descriptor): Reinstate ifdef subprocesses.
82d6e50b
J
2606 (wait_reading_process_output): Don't pass write_mask to select
2607 if SELECT_CANT_DO_WRITE_MASK is defined.
2608 (SELECT_CANT_DO_WRITE_MASK): Define if SELECT_CANT_DO_WRITE_MASK.
bf05eed6 2609
3fad2ad2
J
2610 * process.h (add_read_fd, delete_read_fd, add_write_fd)
2611 (delete_write_fd): Declare.
2612
2613 * process.c (gpm_wait_mask, max_gpm_desc): Remove.
2614 (write_mask): New variable.
ef1b0ba7 2615 (max_input_desc): Rename from max_keyboard_desc.
3fad2ad2 2616 (fd_callback_info): New variable.
70e31436
JB
2617 (add_read_fd, delete_read_fd, add_write_fd, delete_write_fd):
2618 New functions.
3fad2ad2
J
2619 (Fmake_network_process): FD_SET write_mask.
2620 (deactivate_process): FD_CLR write_mask.
2621 (wait_reading_process_output): Connecting renamed to Writeok.
70e31436
JB
2622 check_connect removed. check_write is new. Remove references to gpm.
2623 Use Writeok/check_write unconditionally (i.e. no #ifdef
3fad2ad2
J
2624 NON_BLOCKING_CONNECT) instead of Connecting.
2625 Loop over file descriptors and call callbacks in fd_callback_info
2626 if file descriptor is ready for I/O.
2627 (add_gpm_wait_descriptor): Just call add_keyboard_wait_descriptor.
2628 (delete_gpm_wait_descriptor): Just call delete_keyboard_wait_descriptor.
2629 (keyboard_bit_set): Use max_input_desc.
70e31436
JB
2630 (add_keyboard_wait_descriptor, delete_keyboard_wait_descriptor):
2631 Remove #ifdef subprocesses. Use max_input_desc.
3fad2ad2
J
2632 (init_process): Initialize write_mask and fd_callback_info.
2633
2634 * keyboard.c (readable_events, gobble_input): Remove DBUS code.
2635
2636 * dbusbind.c: Include process.h.
2637 (dbus_fd_cb, xd_find_watch_fd, xd_toggle_watch)
2638 (xd_read_message_1): New functions.
70e31436
JB
2639 (xd_add_watch, xd_remove_watch): Call xd_find_watch_fd.
2640 Handle watch for both read and write.
3fad2ad2
J
2641 (Fdbus_init_bus): Also register xd_toggle_watch.
2642 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
2643 (Fdbus_method_error_internal, Fdbus_send_signal): Remove call
2644 to dbus_connection_flush.
70e31436 2645 (xd_read_message): Move most of the code to xd_read_message_1.
3fad2ad2
J
2646 Call xd_read_message_1 until status is COMPLETE.
2647
dce4c2ac
DN
26482010-09-26 Dan Nicolaescu <dann@ics.uci.edu>
2649
2650 * term.c: Do not include sys/ioctl.h, not needed.
70e31436
JB
2651 (init_tty): Reorder code to reduce the number of #ifdefs.
2652 No code changes.
dce4c2ac 2653
8af55556
TZ
26542010-09-26 Teodor Zlatanov <tzz@lifelogs.com>
2655
2656 * process.h: Set up GnuTLS support.
2657
2658 * process.c (make_process, Fstart_process)
2659 (read_process_output, send_process): Set up GnuTLS support for
2660 process input/output file descriptors.
2661
2662 * gnutls.h: The GnuTLS glue for Emacs, macros and enums.
2663
2664 * gnutls.c: The source code for GnuTLS support in Emacs.
2665
2666 * emacs.c: Set up GnuTLS support and call syms_of_gnutls.
2667
2668 * config.in: Set up GnuTLS support.
2669
2670 * Makefile.in (LIBGNUTLS_LIBS, LIBGNUTLS_CFLAGS, ALL_CFLAGS)
2671 (obj, LIBES): Set up GnuTLS support.
2672
83e245c4
JB
26732010-09-26 Juanma Barranquero <lekktu@gmail.com>
2674
2675 * w32.c (get_emacs_configuration_options): Fix previous change.
2676
d24ec09a
CY
26772010-09-25 Chong Yidong <cyd@stupidchicken.com>
2678
2679 * insdel.c (prepare_to_modify_buffer): Ensure the mark marker is
2680 alive before using it (Bug#6977).
2681
b7bdc47c
LMI
26822010-09-25 Lars Magne Ingebrigtsen <larsi@gnus.org>
2683
a952d5f3
LMI
2684 * xdisp.c (face_before_or_after_it_pos): EMACS_INT/int fixup.
2685
2686 * dispextern.h: EMACS_INT/int fixup.
2687
2688 * xdisp.c (string_pos_nchars_ahead, init_iterator): EMACS_INT/int
2689 fixup.
2690
b7bdc47c
LMI
2691 * xrdb.c (magic_file_p): EMACS_INT/int fixup.
2692
41118bd3
EZ
26932010-09-25 Eli Zaretskii <eliz@gnu.org>
2694
2452438f
EZ
2695 * window.c (Fpos_visible_in_window_p, Fdelete_other_windows)
2696 (Fselect_window, window_scroll_pixel_based)
2697 (window_scroll_line_based, Frecenter, Fset_window_configuration):
2698 Use EMACS_INT for buffer positions.
2699
2700 * textprop.c (validate_interval_range, interval_of)
2701 (property_change_between_p, Fadd_text_properties)
2702 (set_text_properties_1, Fremove_text_properties)
2703 (Fremove_list_of_text_properties, Ftext_property_any)
2704 (Ftext_property_not_all, copy_text_properties)
2705 (text_property_list, extend_property_ranges)
2706 (verify_interval_modification): Use EMACS_INT for buffer
2707 positions.
2708
f877c546
EZ
2709 * term.c (fast_find_position, term_mouse_highlight): Use EMACS_INT
2710 for buffer positions.
2711
2712 * process.c (read_process_output, send_process)
2713 (Fprocess_send_region, status_notify): Use EMACS_INT for buffer
2714 and string positions and size.
2715
da43f021
EZ
2716 * print.c (print_object, print_string, strout): Use EMACS_INT for
2717 string indices.
2718
2719 * minibuf.c (string_to_object): Use EMACS_INT for string position
2720 and size.
2721
2722 * marker.c (verify_bytepos): Use EMACS_INT for buffer positions.
2723
2724 * lread.c <read_from_string_index, read_from_string_index_byte>
2725 <read_from_string_limit, readchar_count>: Define EMACS_INT.
2726 (readchar, unreadchar, read_internal_start): Use EMACS_INT for
2727 buffer positions and string length.
2728
41118bd3
EZ
2729 * keyboard.c <last_point_position, last_non_minibuf_size>: Declare
2730 EMACS_INT.
2731 (echo_truncate, adjust_point_for_property, read_char)
2732 (gen_help_event, make_lispy_event, modify_event_symbol)
2733 (Fexecute_extended_command, stuff_buffered_input): Use EMACS_INT
2734 for buffer positions and string length.
2735
2736 * keyboard.h (gen_help_event): Adjust prototype.
2737
2738 * termhooks.h <struct input_event>: Make `code' member EMACS_INT.
2739
2740 * commands.h <last_point_position>: Declare EMACS_INT.
2741
2742 * xdisp.c <help_echo_pos>: Define as EMACS_INT.
2743 (truncate_echo_area): Accept EMACS_INT argument.
2744
2745 * dispextern.h <help_echo_pos>: Declare EMACS_INT.
2746
2747 * lisp.h (truncate_echo_area): Adjust prototype.
2748
2749 * composite.c (composition_adjust_point): Return EMACS_INT.
2750
2751 * composite.h (composition_adjust_point): Adjust prototype.
2752
ba3033ee
JB
27532010-09-25 Juanma Barranquero <lekktu@gmail.com>
2754
2755 * process.c (Fmake_network_process): When arg :host is 'local,
2756 use address 127.0.0.1, not name "localhost". (Bug#6781)
2757
4f3a2f8d
EZ
27582010-09-24 Eli Zaretskii <eliz@gnu.org>
2759
5816888b
EZ
2760 * indent.c (Fcurrent_indentation, indented_beyond_p)
2761 (compute_motion): Use EMACS_INT for buffer position variables.
2762
2763 * lisp.h (indented_beyond_p): Adjust prototype.
2764
2765 * buffer.c (overlay_strings): Return EMACS_INT.
2766
2767 * buffer.h (overlay_strings): Adjust prototype.
2768
2769 * region-cache.c (pp_cache): Adjust format to arguments.
2770
2771 * eval.c <specpdl_size, lisp_eval_depth>: Declare EMACS_INT.
2772 (call_debugger): Use EMACS_INT for specpdl_size related variables.
2773 (verror): Use EMACS_INT for size of allocated buffer.
2774
ace1712c
EZ
2775 * keyboard.c (make_lispy_position): Use EMACS_INT for buffer
2776 positions.
2777
2778 * xdisp.c (redisplay_internal, try_window_id)
bba3e508
SM
2779 (set_cursor_from_row, find_first_unchanged_at_end_row):
2780 Use EMACS_INT for buffer positions.
ace1712c 2781
f5276b75 2782 * dispextern.h (set_cursor_from_row): Adjust prototype.
ace1712c
EZ
2783
2784 * dispnew.c (increment_matrix_positions)
2785 (increment_row_positions, copy_glyph_row_contents)
2786 (mode_line_string, marginal_area_string): Use EMACS_INT for buffer
2787 positions.
2788
2789 * dispextern.h (mode_line_string, marginal_area_string)
bba3e508
SM
2790 (increment_matrix_positions, increment_row_positions):
2791 Adjust prototypes.
ace1712c
EZ
2792
2793 * data.c (Faref, Faset): Use EMACS_INT for string length and
2794 positions.
2795
2796 * cmds.c (internal_self_insert): Use EMACS_INT for the count of
2797 characters to insert.
2798
2799 * ccl.c (Fccl_execute_on_string): Use EMACS_INT for string
2800 position and size.
2801
4f3a2f8d
EZ
2802 * syntax.c (scan_words, update_syntax_table)
2803 (prev_char_comend_first, back_comment, skip_chars)
bba3e508
SM
2804 (skip_syntaxes, Fforward_comment, Fbackward_prefix_chars):
2805 Use EMACS_INT for buffer and string positions.
4f3a2f8d
EZ
2806
2807 * syntax.h (scan_words, update_syntax_table): Adjust prototypes.
2808
2809 * casefiddle.c (operate_on_word): Use EMACS_INT for buffer
2810 positions.
2811
db063399
LMI
28122010-09-24 Lars Magne Ingebrigtsen <larsi@gnus.org>
2813
f0812d35
LMI
2814 * scroll.c (calculate_scrolling, line_ins_del)
2815 (calculate_direct_scrolling, scroll_cost): Fix EMACS_INT/int
2816 conversion.
2817
f5c7fc27
LMI
2818 * region-cache.c (move_cache_gap, set_cache_region, pp_cache)
2819 (region_cache_backward, region_cache_forward)
2820 (revalidate_region_cache, set_cache_region): FIX EMACS_INT/int
2821 conversion.
2822
db063399
LMI
2823 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
2824
2825 * eval.c (verror): Fix EMACS_INT/int conversion.
2826
07914cd0 2827 * print.c (PRINTDECLARE, PRINTPREPARE, strout, print_string)
db063399
LMI
2828 (print_preprocess, print_check_string_charset_prop)
2829 (print_object): Fix EMACS_INT/int conversion.
2830
2831 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
2832
e6d4aefa
EZ
28332010-09-24 Eli Zaretskii <eliz@gnu.org>
2834
69481da7
EZ
2835 * callproc.c (Fcall_process): Use EMACS_INT for count of
2836 characters read from the subprocess.
2837
61bfec98
EZ
2838 * bidi.c (struct bidi_paragraph_info): Use EMACS_INT for buffer
2839 positions.
2840 (bidi_cache_search, bidi_cache_find): Use EMACS_INT for buffer
2841 positions.
2842
145582a0
EZ
2843 * buffer.c (struct sortvec): Use EMACS_INT for buffer positions.
2844 (struct sortstrlist, overlay_str_len): Use EMACS_INT for string
2845 length.
2846 (advance_to_char_boundary, Fset_buffer_multibyte)
2847 (overlays_at, overlays_in, mouse_face_overlay_overlaps)
2848 (overlay_touches_p, record_overlay_string, overlay_strings)
2849 (recenter_overlay_lists, fix_start_end_in_overlays)
2850 (modify_overlay, Fmove_overlay, report_overlay_modification)
2851 (evaporate_overlays): Use EMACS_INT for buffer positions.
2852
bba3e508
SM
2853 * lisp.h (fix_start_end_in_overlays, overlay_touches_p):
2854 Adjust prototypes.
145582a0 2855
446470a9
EZ
2856 * dispextern.h (struct bidi_saved_info): Use EMACS_INT for buffer
2857 positions.
2858
e6d4aefa
EZ
2859 * fns.c (Fcompare_strings, Fstring_lessp, concat)
2860 (string_make_unibyte, Fstring_as_unibyte, Fsubstring)
2861 (Fsubstring_no_properties, substring_both, Ffillarray)
2862 (Fclear_string, mapcar1, Fmapconcat, Fmapcar, Fmapc)
2863 (Fbase64_encode_region, Fbase64_encode_string, base64_encode_1)
2864 (Fbase64_decode_region, Fbase64_decode_string, base64_decode_1)
2865 (Fmd5): Use EMACS_INT for buffer and string positions and length
2866 variables and arguments.
2867
2868 * lisp.h (substring_both): Adjust prototype.
2869
eb652396
JB
28702010-09-24 Juanma Barranquero <lekktu@gmail.com>
2871
2872 Remove W32 API function pointer unused since 2005-02-15 (revno 2005-02-15T23:19:26Z!jasonr@gnu.org).
2873 * w32fns.c (clipboard_sequence_fn): Don't declare.
2874 (globals_of_w32fns): Don't initialize it.
2875
266a86bd 28762010-09-23 Stefan Monnier <monnier@iro.umontreal.ca>
fbb3da77
SM
2877
2878 * syntax.c (back_comment): Detect the case where a 1-char comment
2879 starter is also the 2nd char of a 2-char comment ender.
2880
266a86bd 28812010-09-23 Jan Djärv <jan.h.d@swipnet.se>
2b5b82db
J
2882
2883 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
2884
40283062
LMI
28852010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
2886
db063399
LMI
2887 * eval.c (verror): EMACS_INT/int cleanup.
2888
faf8b5bc
LMI
2889 * lisp.h (SPECPDL_INDEX): Cast to int, since we're not going to
2890 unwind_protect more than 2GB worth of functions.
2891
2892 * editfns.c (Finsert_char): EMACS_INT/int cleanup.
2893
40283062
LMI
2894 * lisp.h: Have oblookup take EMACS_INT to allow interning big
2895 string and avoid compiler warnings.
2896 (USE_SAFE_ALLOCA): Cast to int to avoid compilation warnings in
2897 all users.
2898
2899 * lread.c (oblookup): EMACS_INT/int cleanup.
2900
2901 * cmds.c (Fforward_line, Fdelete_char): EMACS_INT/int cleanup.
2902
fe3537c3
EZ
29032010-09-23 Eli Zaretskii <eliz@gnu.org>
2904
2905 * editfns.c (clip_to_bounds): Return an EMACS_INT value.
2906
2907 * lisp.h (clip_to_bounds): Adjust prototype.
2908
2909 * intervals.c (adjust_for_invis_intang): Return EMACS_INT value.
2910
0350982f
LMI
29112010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
2912
84c9ce05
LMI
2913 * lisp.h: doprnt.c EMACS_INT/int cleanup.
2914
2915 * doprnt.c (doprnt): EMACS_INT/int cleanup.
2916
2917 * doc.c (Fsnarf_documentation, get_doc_string): EMACS_INT/int
2918 cleanup.
2919
0350982f
LMI
2920 * lisp.h: Change the definition of all marker.c functions that
2921 take and return buffer stuff to be EMACS_INT instead of int.
2922
2923 * marker.c (buf_charpos_to_bytepos, CONSIDER, set_marker_both)
2924 (buf_charpos_to_bytepos, bytepos_to_charpos)
2925 (buf_bytepos_to_charpos, Fbuffer_has_markers_at)
2926 (set_marker_restricted, set_marker_both): Convert int to EMACS_INT
2927 for all buffer positions.
2928
c50bd0d2
CY
29292010-09-23 Chong Yidong <cyd@stupidchicken.com>
2930
2931 * intervals.c (traverse_intervals, rotate_right, rotate_left)
2932 (split_interval_right, find_interval, next_interval)
2933 (delete_node, delete_interval, interval_deletion_adjustment)
2934 (adjust_intervals_for_deletion, merge_interval_right)
2935 (merge_interval_left, graft_intervals_into_buffer)
2936 (copy_intervals): Convert EMACS_UINTs to EMACS_INT.
2937
2938 * intervals.h (traverse_intervals): Update prototype.
2939
14162469
EZ
29402010-09-23 Eli Zaretskii <eliz@gnu.org>
2941
c098fdb8
EZ
2942 * indent.c (compute_motion): Use EMACS_INT for arguments to
2943 region_cache_forward.
2944
bba3e508
SM
2945 * region-cache.c (struct boundary, struct region_cache):
2946 Use EMACS_INT for positions.
c098fdb8
EZ
2947 (find_cache_boundary, move_cache_gap, insert_cache_boundary)
2948 (delete_cache_boundaries, set_cache_region)
2949 (invalidate_region_cache, know_region_cache)
bba3e508
SM
2950 (region_cache_forward, region_cache_backward, pp_cache):
2951 Use EMACS_INT for buffer positions.
c098fdb8
EZ
2952
2953 * region-cache.h (know_region_cache, invalidate_region_cache)
2954 (region_cache_forward, region_cache_backward): Adjust prototypes.
2955
2956 * search.c (string_match_1, fast_c_string_match_ignore_case)
2957 (looking_at_1, scan_buffer, scan_newline)
2958 (find_next_newline_no_quit, find_before_next_newline)
2959 (search_command, trivial_regexp_p, search_buffer, simple_search)
2960 (boyer_moore, wordify, Freplace_match): Use EMACS_INT for buffer
2961 and string positions and length.
2962
caefdbe7
EZ
2963 * lisp.h (scan_buffer, scan_newline, find_next_newline_no_quit)
2964 (find_before_next_newline): Adjust prototypes.
c098fdb8 2965
29cdc13e
EZ
2966 * editfns.c (transpose_markers, update_buffer_properties)
2967 (buildmark, clip_to_bounds, Fgoto_char, overlays_around)
2968 (get_pos_property, Fconstrain_to_field)
2969 (Fline_beginning_position, Fline_end_position, Fprevious_char)
2970 (Fchar_after, Fchar_before, Finsert_char)
2971 (Finsert_buffer_substring, Fcompare_buffer_substrings)
bba3e508
SM
2972 (Fsubst_char_in_region, Fformat, Ftranspose_regions):
2973 Use EMACS_INT for buffer and string position variables.
c098fdb8 2974 (Finsert_char): Protect against too large insertions.
29cdc13e
EZ
2975
2976 * lisp.h (clip_to_bounds): Adjust prototype.
2977
e79123aa
EZ
2978 * intervals.c (traverse_intervals, rotate_right, rotate_left)
2979 (balance_an_interval, split_interval_right, split_interval_left)
2980 (find_interval, next_interval, update_interval)
2981 (adjust_intervals_for_insertion, delete_node, delete_interval)
2982 (interval_deletion_adjustment, adjust_intervals_for_deletion)
2983 (offset_intervals, merge_interval_right, merge_interval_left)
2984 (graft_intervals_into_buffer, adjust_for_invis_intang)
2985 (move_if_not_intangible, get_local_map, copy_intervals)
2986 (copy_intervals_to_string, compare_string_intervals)
2987 (set_intervals_multibyte_1): Use EMACS_INT for buffer positions
6e48267a 2988 and for interval tree size.
e79123aa
EZ
2989
2990 * intervals.h (traverse_intervals, split_interval_right)
2991 (split_interval_left, find_interval, offset_intervals)
2992 (graft_intervals_into_buffer, copy_intervals)
2993 (copy_intervals_to_string, move_if_not_intangible, get_local_map)
2994 (update_interval): Adjust prototypes.
2995
579c18d0
EZ
2996 * xdisp.c (check_point_in_composition, reconsider_clip_changes):
2997 Use EMACS_INT for buffer position variables and arguments.
2998
2999 * composite.c (get_composition_id, find_composition)
3000 (run_composition_function, compose_text)
3001 (composition_gstring_width, autocmp_chars)
3002 (composition_update_it, Ffind_composition_internal): Use EMACS_INT
3003 for buffer positions and string length variables and arguments.
3004
3005 * composite.h (get_composition_id, find_composition, compose_text)
3006 (composition_gstring_width): Adjust prototypes.
3007
3008 * editfns.c (Fformat): Use EMACS_INT for string size variables.
3009
bba3e508
SM
3010 * xdisp.c (store_mode_line_noprop, display_mode_element):
3011 Use EMACS_INT for string positions.
579c18d0
EZ
3012
3013 * intervals.c (get_property_and_range): Use EMACS_INT for buffer
3014 position arguments.
3015
3016 * intervals.h (get_property_and_range): Adjust prototype.
14162469
EZ
3017
3018 * character.c (parse_str_as_multibyte, str_as_multibyte)
3019 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
579c18d0 3020 (string_count_byte8, string_escape_byte8, c_string_width)
bba3e508
SM
3021 (strwidth, lisp_string_width, multibyte_chars_in_text):
3022 Use EMACS_INT for string length variables and arguments.
14162469
EZ
3023
3024 * character.h (parse_str_as_multibyte, str_as_multibyte)
579c18d0 3025 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
bba3e508
SM
3026 (c_string_width, strwidth, lisp_string_width):
3027 Adjust prototypes.
14162469 3028
579c18d0
EZ
3029 * font.c (font_intern_prop): Use EMACS_INT for string length
3030 variables.
3031
3032 * font.c (font_intern_prop): Use EMACS_INT for string length
3033 variables.
3034
14162469
EZ
3035 * fns.c (Fstring_as_multibyte): Use EMACS_INT for string length
3036 variables.
3037
3038 * alloc.c <total_string_size>: Declare as EMACS_INT, not int.
3039 (Fmake_string): Protect against too large strings.
3040 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
3041 (live_misc_p): Use ptrdiff_t instead of int for pointer
3042 differences.
3043 (string_bytes, check_sblock, check_string_free_list)
3044 (allocate_string_data, compact_small_strings, Fmake_string)
3045 (Fmake_bool_vector, make_string, make_unibyte_string)
3046 (make_multibyte_string, make_string_from_bytes)
bba3e508
SM
3047 (make_specified_string_string, Fmake_list, Fmake_vector):
3048 Use EMACS_INT for string length variables and arguments.
14162469
EZ
3049 (find_string_data_in_pure, make_pure_string, make_pure_c_string)
3050 (Fpurecopy): Use EMACS_INT for string size.
3051 (mark_vectorlike, mark_char_table, mark_object): Use EMACS_UINT
3052 for vector size.
3053
3054 * lisp.h (make_string, make_unibyte_string, make_multibyte_string)
3055 (make_string_from_bytes, make_specified_string_string)
579c18d0
EZ
3056 (make_pure_string, string_bytes, check_point_in_composition):
3057 Adjust prototypes.
14162469 3058
c8a66ab8
EZ
30592010-09-22 Eli Zaretskii <eliz@gnu.org>
3060
3061 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
3062 (check_translation): Use EMACS_INT for buffer positions and
3063 length.
3064
3065 * undo.c (record_marker_adjustment, record_delete)
3066 (record_change, record_point, record_insert)
3067 (record_property_change, Fprimitive_undo): Use EMACS_INT for
3068 buffer positions.
3069
3070 * lisp.h (record_marker_adjustment, record_delete)
3071 (record_change, record_point, record_insert)
3072 (record_property_change, Fprimitive_undo): Adjust prototypes.
3073
38c54d9d
JB
30742010-09-22 Juanma Barranquero <lekktu@gmail.com>
3075 Eli Zaretskii <eliz@gnu.org>
3076
3077 * w32.c (get_emacs_configuration_options): Fix buffer overrun.
3078
413d18e7
EZ
30792010-09-22 Eli Zaretskii <eliz@gnu.org>
3080
3081 * minibuf.c (Fminibuffer_contents)
3082 (Fminibuffer_contents_no_properties)
3083 (Fminibuffer_completion_contents): Use EMACS_INT for minibuffer
3084 positions.
3085
3086 * keyboard.c (command_loop_1): Use EMACS_INT to compare point with
3087 mark.
3088
3089 * alloc.c (make_uninit_string, make_uninit_multibyte_string)
3090 (allocate_string_data): Accept EMACS_INT for string length.
3091
3092 * editfns.c (Ffield_string, Ffield_string_no_properties)
3093 (make_buffer_string, make_buffer_string_both, Fbuffer_substring)
3094 (Fbuffer_substring_no_properties, find_field, Fdelete_field)
3095 (Ffield_string, Ffield_string_no_properties, Ffield_beginning)
3096 (Ffield_end): Use EMACS_INT for buffer positions.
3097
3098 * insdel.c (prepare_to_modify_buffer): Use EMACS_INT to compare
3099 point with mark.
3100
3101 * lisp.h (allocate_string_data, make_uninit_string)
3102 (make_uninit_multibyte_string, make_buffer_string)
3103 (make_buffer_string_both): Adjust prototypes.
3104
4b9832a6
CY
31052010-09-22 Chong Yidong <cyd@stupidchicken.com>
3106
3107 * xml.c: Switch to GNU indentation.
3108 (make_dom): Change parse tree format to match xml.el.
3109 (Fxml_parse_html_string_internal): Rename from html-parse-string.
3110 (Fxml_parse_string_internal): Rename from xml-parse-string.
3111
86282aab
KH
31122010-09-22 Kenichi Handa <handa@m17n.org>
3113
3114 * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos
3115 only if we are not at a composition.
3116 (set_iterator_to_next): Give it->end_charpos to
3117 composition_compute_stop_pos.
3118 (set_iterator_to_next, next_element_from_buffer): Likewise.
3119
3120 * dispnew.c (buffer_posn_from_coords): Fix position when the
3121 current display element is a grapheme cluster in bidi-reordered
3122 region.
3123
840b985a
AR
31242010-09-21 Ari Roponen <ari.roponen@gmail.com> (tiny change)
3125
3126 * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
3127 the regions may overlap.
3128
5bc88f4b
JB
31292010-09-21 Juanma Barranquero <lekktu@gmail.com>
3130
3131 * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
3132
92bc9a36
DN
31332010-09-21 Dan Nicolaescu <dann@ics.uci.edu>
3134
d19e096e
DN
3135 * emacs.c: Do not include sys/ioctl.h, not needed.
3136
92bc9a36
DN
3137 * doprnt.c: Do not include stdlib.h, config.h does it.
3138 Move #include before macro definition.
3139
15f844ac
DN
31402010-09-20 Dan Nicolaescu <dann@ics.uci.edu>
3141
48e24408
DN
3142 * Makefile.in (temacs): Link using $(CC) not $(LD).
3143 (LD_FIRSTFLAG): Define using autoconf.
3144 (LD): Remove.
3145
65539506
DN
3146 Remove HAVE_TERMIOS definitions.
3147 * s/usg5-4-common.h (HAVE_TERMIOS):
3148 * s/template.h (HAVE_TERMIOS):
3149 * s/gnu-linux.h (HAVE_TERMIOS):
3150 * s/darwin.h (HAVE_TERMIOS):
3151 * s/cygwin.h (HAVE_TERMIOS):
3152 * s/bsd-common.h (HAVE_TERMIOS):
3153 * s/aix4-2.h (HAVE_TERMIOS):
3154 * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
3155 defined on all non-MS platforms.
3156 (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
3157
15f844ac
DN
3158 * xterm.c (xt_action_hook): Use const.
3159
7d701334
JB
31602010-09-20 Juanma Barranquero <lekktu@gmail.com>
3161
3162 Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
3163 * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
3164 (gethostname) [!HAVE_SOCKETS]: Remove.
3165 (SOCK_REPLACE_HANDLE): Remove macro.
3166 (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
3167 (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
3168 * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
3169 (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
3170
f3ec267a
EZ
31712010-09-18 Eli Zaretskii <eliz@gnu.org>
3172
3173 * deps.mk (xml.o): Add dependencies.
3174
93acd23d
JB
3175 * xdisp.c (Fcurrent_bidi_paragraph_direction):
3176 Call bidi_paragraph_init with NO_DEFAULT_P non-zero. (Bug#7038)
bea4f10c
EZ
3177
3178 * bidi.c (bidi_paragraph_init): Accept an additional argument
3179 NO_DEFAULT_P; all callers changed. If NO_DEFAULT_P is non-zero,
3180 search back until a paragraph with a strong directional character
3181 is found, and use that to determine paragraph's base direction.
3182
3183 * dispextern.h (bidi_paragraph_init): Update prototype.
3184
69e847be
EZ
31852010-09-17 Eli Zaretskii <eliz@gnu.org>
3186
3187 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
3188 of w32api >= 3.15. (Bug#6989)
3189
283357a7
LMI
31902010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
3191
3192 * process.c (wait_reading_process_output): Don't message about
3193 accept-process-output unless the time limit really is zero.
3194
4ddb20d6
SM
31952010-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
3196
3197 * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
3198 int/Lisp_Object mixup).
3199
e24ad6dd
J
32002010-09-17 Jan Djärv <jan.h.d@swipnet.se>
3201
3202 * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
3203 not HELP.
3204
fb0cf781
J
32052010-09-17 Stephen Berman <stephen.berman@gmx.net>
3206
3207 * frame.c (Ftool_bar_pixel_width): New function to expose tool
3208 bar's pixel width to Lisp (Bug#7048).
3209
4ddb20d6
SM
32102010-09-14 Juanma Barranquero <lekktu@gmail.com>
3211
3212 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
fb0cf781 3213
318a04c6
J
32142010-09-17 Jan Djärv <jan.h.d@swipnet.se>
3215
3216 * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
3217 with argument top/left if tool bar is vertical/horizontal (Bug#7051).
3218
78a21772
KH
32192010-09-17 Kenichi Handa <handa@m17n.org>
3220
3221 * ftfont.c (ftfont_check_otf): Fix previous change.
3222
fa3f6039
KH
32232010-09-14 Kenichi Handa <handa@m17n.org>
3224
3225 * ftfont.c (ftfont_check_otf): Fix the case of checking just
3226 existence of GSUB or GPOS.
3227
2b5491fa
JB
32282010-09-14 Juanma Barranquero <lekktu@gmail.com>
3229
3230 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
3231
c97c655f
LMI
32322010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
3233
ef1b0ba7 3234 * xml.c (parse_buffer): Rename to parse_string(), since that's
c97c655f
LMI
3235 what it does.
3236 (parse_string): Return nil when the document can't be parsed.
3237
6664fc59 32382010-09-14 Jan Djärv <jan.h.d@swipnet.se>
5f61a25c
J
3239
3240 * xterm.c (get_current_vm_state): New function.
3241 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
3242 want_fullscreen so set_wm_state calls are few (Bug#7013).
3243 (x_handle_net_wm_state): Move code to get_current_vm_state and
3244 call that function.
3245
6664fc59 32462010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
65b3d997
A
3247
3248 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
3249
6664fc59 32502010-09-14 Kenichi Handa <handa@m17n.org>
a552b35a
KH
3251
3252 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
3253 we may use designation or locking-shift.
3254
6664fc59 32552010-09-14 Kenichi Handa <handa@m17n.org>
396475b7
KH
3256
3257 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
3258 sequence when the source is multibyte.
3259
1da70e99
AS
32602010-09-14 Andreas Schwab <schwab@linux-m68k.org>
3261
6664fc59
JB
3262 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
3263 Don't make first argument optional. Doc fix.
1da70e99 3264
26632d8d
LMI
32652010-09-14 Leo <sdl.web@gmail.com> (tiny change)
3266
3267 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
3268 parameters for the doc string.
3269
21fa8e37
LMI
32702010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
3271
3272 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
3273
5616cc54
SM
32742010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3275
3276 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
3277 (syms_of_fns): Don't defsubr Sy_or_n_p.
3278 * lisp.h: Don't declare Fy_or_n_p.
3279 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
3280
381408e2
LMI
32812010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
3282
3283 * xml.c (Fxml_parse_buffer): New function to parse XML files.
3284
32852010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
3286
3287 * xml.c: New file.
3288 (Fhtml_parse_buffer): New function to interface to the libxml2
3289 html parsing function.
3290
733946e7
JB
32912010-09-05 Juanma Barranquero <lekktu@gmail.com>
3292
3293 * biditype.h: Regenerate.
3294
7574650a
AS
32952010-09-04 Andreas Schwab <schwab@linux-m68k.org>
3296
3297 * nsimage.m (ns_load_image): Check argument types.
3298
3299 * image.c: Remove all uses of gcpro.
3300 (xpm_load): Check all lisp types.
3301 (pbm_load): Likewise.
3302 (png_load): Likewise.
3303 (jpeg_load): Likewise.
3304 (tiff_load): Likewise.
3305 (gif_load): Likewise.
3306 (imagemagick_load_image): Likewise.
3307 (imagemagick_load): Likewise.
3308 (svg_load): Likewise.
3309 (gs_load): Likewise.
3310
6e6b8e25
EZ
33112010-09-04 Eli Zaretskii <eliz@gnu.org>
3312
bba3e508
SM
3313 * w32uniscribe.c (uniscribe_shape): Update commentary.
3314 Don't try to reorder grapheme clusters, since LGSTRING should always
6e6b8e25
EZ
3315 hold them in the logical order.
3316 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
3317 return glyph codes in the logical order.
3318
dbfe4532
AS
33192010-09-04 Andreas Schwab <schwab@linux-m68k.org>
3320
3321 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
b7d187f8 3322 (imagemagick_load_image): Fix type mismatch.
5e5992c2 3323 (Fimagemagick_types): Likewise. Doc fix.
dbfe4532 3324
6d7cc563
JD
33252010-09-02 Jan Djärv <jan.h.d@swipnet.se>
3326
3327 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
3328
3329 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
3330
3331 * xselect.c: Remove declaration of cut-buffer objects and functions.
3332 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
3333 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
3334 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
3335 (Fx_rotate_cut_buffers_internal): Remove.
3336 (syms_of_xselect): Remove defsubr of above.
3337 Remove intern of QCUT_BUFFERn.
3338
8f4e9110
SM
33392010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
3340
3341 * cmds.c (Vblink_paren_function): Remove.
3342 (internal_self_insert): Make it insert N chars at a time.
3343 Don't call blink-paren-function.
3344 (Fself_insert_command): Adjust accordingly.
3345 (syms_of_cmds): Don't declare blink-paren-function.
3346
d419e1d9
KH
33472010-08-31 Kenichi Handa <handa@m17n.org>
3348
3349 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
3350 characters.
3351
3352 * term.c (encode_terminal_code): Fix the previous change.
5616cc54
SM
3353 (produce_glyphs): Don't set it->char_to_display here.
3354 Don't handle unibyte-display-via-language-environment here.
d419e1d9
KH
3355 (produce_special_glyphs): Set temp_it.char_to_display before
3356 calling produce_glyphs.
3357
3358 * xdisp.c (get_next_display_element): Set it->char_to_display
3359 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
3360 characters.
3361 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
3362 calling PRODUCE_GLYPHS.
3363 (append_space_for_newline): Save and store it->char_to_display.
3364 Set it->char_to_display before calling PRODUCE_GLYPHS.
3365 (extend_face_to_end_of_line): Set it->char_to_display before
3366 calling PRODUCE_GLYPHS.
3367 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
3368 character to its byte value.
3369 (get_char_glyph_code): New function.
3370 (produce_stretch_glyph): Set it2.char_to_display too before
3371 calling x_produce_glyphs.
3372 (x_produce_glyphs): Simplify by using the same code for ASCII and
65b3d997
A
3373 non-ASCII characters. Don't set it->char_to_display here.
3374 Don't handle unibyte-display-via-language-environment here. For a
2b5491fa 3375 character of no glyph, use font->space_width instead of FONT_WIDTH.
d419e1d9 3376
b819f760
SM
33772010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
3378
3379 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
3380
07fa68a7
CY
33812010-08-31 Chong Yidong <cyd@stupidchicken.com>
3382
3383 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
3384
cd196f12
SM
33852010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
3386
3387 * marker.c (Fcopy_marker): Make the first arg optional.
3388
49a752bb
KH
33892010-08-30 Kenichi Handa <handa@m17n.org>
3390
3391 * composite.c (composition_update_it): Fix computing of
3392 cmp_it->width.
3393
769ae9e1
KH
33942010-08-29 Kenichi Handa <handa@m17n.org>
3395
9e69cb05 3396 * term.c (encode_terminal_code): Encode byte chars to the
5616cc54 3397 corresponding bytes.
9e69cb05 3398
4520b858
J
33992010-08-29 Jan Djärv <jan.h.d@swipnet.se>
3400
3401 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
3402
fe50eb41
KH
34032010-08-26 Kenichi Handa <handa@m17n.org>
3404
3405 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
3406 on calling composition_compute_stop_pos.
3407
f6aa6ec6
KH
34082010-08-25 Kenichi Handa <handa@m17n.org>
3409
9dfdbc0a
KH
3410 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
3411 :otf.
3412
f6aa6ec6
KH
3413 * composite.c (composition_compute_stop_pos): Don't break
3414 composition at PT.
3415 (composition_reseat_it): Likewise. Fix calculation of character
3416 position starting a composition.
3417 (Fcomposition_get_gstring): Don't limit the number of components
3418 for automatic composition.
3419
ff94e32c
KH
34202010-08-25 Kenichi Handa <handa@m17n.org>
3421
3422 * composite.c (composition_compute_stop_pos): In forward search,
3423 pay attention to the possibility that some character after ENDPOS
3424 will be composed with charactrs before ENDPOS.
3425
1c409d0b
CY
34262010-08-24 Chong Yidong <cyd@stupidchicken.com>
3427
3428 * keyboard.c (command_loop_1): Don't clobber primary selection
3429 during handle-switch-frame (Bug#6872).
3430
0c372655
MA
34312010-08-23 Michael Albinus <michael.albinus@gmx.de>
3432
3433 * dbusbind.c: Accept UNIX domain sockets as bus address.
3434 (Fdbus_close_bus): New function.
3435 (Vdbus_registered_buses): New variable.
3436 (xd_initialize): Implement string as bus address.
3437 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
3438 (Fdbus_get_unique_name, Fdbus_call_method)
3439 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
3440 (Fdbus_method_error_internal, Fdbus_send_signal)
3441 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
3442 check. This is done in xd_initialize_bus. Adapt doc string, if
3443 necessary.
3444 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
3445 Vdbus_registered_buses.
3446 (Vdbus_registered_objects_table): Create hash.
3447
7133b7ee
JL
34482010-08-22 Juri Linkov <juri@jurta.org>
3449
3450 * keyboard.c (Fexecute_extended_command): Move reading a command name
3451 with `completing-read' to a new Elisp function `read-extended-command'.
3452 Call it to read a command to `function' (bug#5364, bug#5214).
3453
198a7a97
CY
34542010-08-22 Chong Yidong <cyd@stupidchicken.com>
3455
3456 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
3457
b0126eac 34582010-08-22 Andreas Schwab <schwab@linux-m68k.org>
b72e0717
AS
3459
3460 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
3461 instead of SAFE_ALLOCA.
3462
b0126eac 34632010-08-22 Chong Yidong <cyd@stupidchicken.com>
3a7a9129
CY
3464
3465 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
3466 (Bug#6214).
3467
b0126eac 34682010-08-22 Jan Djärv <jan.h.d@swipnet.se>
983b8302
J
3469
3470 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
3471
b0126eac
CY
34722010-08-22 Jan Djärv <jan.h.d@swipnet.se>
3473
3474 * doc.c (Fsnarf_documentation): Initialize skip_file before
3475 build-files test.
3476
692f3ddc 34772010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
b0126eac 3478
692f3ddc
JB
3479 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
3480 New definitions.
b0126eac
CY
3481 (HAVE_TERMIO): Remove.
3482
5f2f0bc1
EZ
34832010-08-22 Eli Zaretskii <eliz@gnu.org>
3484
b613941b
EZ
3485 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
3486
a583bbef
EZ
3487 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
3488 for w32.
3489
3490 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
3491 it's done in nt/config.nt.
3492
3493 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
3494
5f2f0bc1
EZ
3495 * unexcoff.c (report_error, make_hdr, write_segment)
3496 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
3497 Convert argument lists and prototypes to ANSI C.
3498 (make_hdr, write_segment): Remove unused variables.
3499 (unexec): Remove commented-out line. Initialize `new' to shut up
3500 compiler warnings.
3501
a7ebc409
DN
35022010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
3503
3504 Simplify termio code.
3505 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
3506 HAVE_TERMIO code is obsolete.
3507 Replace HAVE_TERMIOS conditionals with !DOS_NT.
3508 * systty.h: Do not define HAVE_TCATTR.
3509 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
3510 Do not define EMACS_HAVE_TTY_PGRP. Only define
3511 EMACS_GET_TTY_PGRP for !DOS_NT.
3512 * sysdep.c: Include sysselect.h unconditionally. Do not include
bba3e508
SM
3513 sys/ioctl.h and termios.h, systty.h does it.
3514 Use HAVE_SYS_UTSNAME_H instead of USG as an include guard.
a7ebc409
DN
3515 (init_baud_rate): Remove HAVE_TERMIO code.
3516 (child_setup_tty): Remove HAVE_TERMIO code.
3517 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
3518 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
3519 (new_ltchars, new_tchars): Remove, unused.
3520 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
bba3e508
SM
3521 code. Remove special casing for __mips__, it was a no-op.
3522 Remove HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
a7ebc409
DN
3523 (init_sys_modes): Remove HPUX special case.
3524 * process.c: Include stdlib.h unconditionally. Do not include
3525 fcntl.h, systty.h does it. Remove conditional code for
3526 HAVE_SERIAL, it is always true.
3527 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
3528 always true when SIGNALS_VIA_CHARACTERS is true.
3529 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
3530 !WINDOWSNT means HAVE_TERMIOS.
3531 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
3532 conditional, which is true for all HAVE_TERMIOS systems.
3533 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
3534 instead of HAVE_TERMIOS.
3535 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
3536 EMACS_HAVE_TTY_PGRP.
3537 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
3538 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
3539 anyway.
3540
914f049b 35412010-08-21 Eli Zaretskii <eliz@gnu.org>
40629f17
EZ
3542
3543 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
3544 mirroring pixel positions.
3545
d931da8c
DN
35462010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
3547
b5c76d0c
DN
3548 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
3549 write only.
3550 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
3551 malloc_sbrk_used, nothing uses them.
3552
74815588
DN
3553 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
3554 defined, unconditionally defined in lisp.h.
3555
f5817d1c
DN
3556 * term.c: Do not include <termios.h>, systty.h does it.
3557
d931da8c
DN
3558 * s/unixware.h (HAVE_TCATTR):
3559 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
3560 systty.h defines it when HAVE_TERMIOS is defined.
3561
ff2de6d2 35622010-08-20 Eli Zaretskii <eliz@gnu.org>
491a1546 3563
b43c883c 3564 * dispnew.c (buffer_posn_from_coords): Fix last change for text
00c53994 3565 terminals: add one-character offset for R2L lines.
b43c883c 3566
491a1546
EZ
3567 * emacs.c <emacs_version>: Add a comment regarding
3568 msdos/mainmake.v2's dependency on the syntax of this declaration.
3569
2396cbba
EZ
35702010-08-20 Eli Zaretskii <eliz@gnu.org>
3571
3572 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
3573 position for R2L lines by mirroring the pixel position wrt the
3574 text are box. Improve commentary.
3575
7df6150a
AS
35762010-08-20 Andreas Schwab <schwab@linux-m68k.org>
3577
3578 * image.c (imagemagick_clear_image): Remove debugging output.
3579
a2e5caf7
SM
35802010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
3581
3582 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
3583 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
3584 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
3585 self-insert-face.
3586 (syms_of_cmds): Initialize the new vars.
3587
20d60baf
JR
35882010-08-19 Jason Rumney <jasonr@gnu.org>
3589
cc477da7
JR
3590 * w32menu.c (set_frame_menubar): Remove call to undefined function.
3591
20d60baf
JR
3592 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
3593
2c0ac867
J
35942010-08-19 Jan Djärv <jan.h.d@swipnet.se>
3595
3596 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
3597
93352106
EZ
35982010-08-18 Eli Zaretskii <eliz@gnu.org>
3599
3600 * xterm.c (x_draw_bar_cursor):
3601 * w32term.c (x_draw_bar_cursor): If the character under cursor is
3602 R2L, draw the bar cursor on its right rather than on its left.
3603
c785836d
SM
36042010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
3605
0193499f
SM
3606 * eval.c (Fdefmacro): Only obey one declaration.
3607
c785836d
SM
3608 * casefiddle.c (casify_region): Setup gl_state.
3609
9cb728a5
J
36102010-08-18 Jan Djärv <jan.h.d@swipnet.se>
3611
3612 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
3613
e1e18511
J
36142010-08-18 Jan Djärv <jan.h.d@swipnet.se>
3615
1d77b63e 3616 * gtkutil.c (update_frame_tool_bar): Literal strings are const char*.
e1e18511 3617
64cb6c78
J
36182010-08-18 David De La Harpe Golden <david@harpegolden.net>
3619
3620 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
3621 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
3622 QPRIMARY => NXPrimaryPboard.
3623 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
3624 NXPrimaryPboard => QPRIMARY.
3625 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
3626 NXSecondaryPboard = SecondarySelection.
3627 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
3628
0c9b8993
GM
36292010-08-18 Joakim Verona <joakim@verona.se>
3630
3631 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
3632 defined:
3633 (imagemagick_image_p): New function to test for ImageMagic image.
3634 (imagemagick_load): New function to load ImageMagick image.
3635 (imagemagick_load_image): New function, helper for imagemagick_load.
3636 (imagemagick-types): New function.
3637 (Qimagemagick): New Lisp_object.
3638 (imagemagick-render-type): New variable, decides which renderer to use.
ccd80618 3639
c3554f68
SM
36402010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
3641
3642 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
3643 is a string.
3644
1ff2e434
J
36452010-08-17 Jan Djärv <jan.h.d@swipnet.se>
3646
3647 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
3648 x_set_tool_bar_position handler.
3649
0cc56427
EZ
36502010-08-17 Eli Zaretskii <eliz@gnu.org>
3651
3652 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
3653 x_set_tool_bar_position handler, needed to support changes from
3654 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
3655
e45a249b
JD
36562010-08-16 Jan Djärv <jan.h.d@swipnet.se>
3657
921242c6
J
3658 * nsselect.m: include keyboard.h for QPRIMARY, remove its
3659 declaration (Bug#6863).
573d150b 3660 (syms_of_nsselect): Don't intern QPRIMARY.
921242c6 3661
e45a249b
JD
3662 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
3663
3664 * keyboard.h (QPRIMARY): Declare (Bug#6864).
3665
7c23dd44
CY
36662010-08-16 Chong Yidong <cyd@stupidchicken.com>
3667
3668 * keyboard.c (command_loop_1): Avoid setting selection twice,
3669 since it's done in deactivate-mark as well.
3670 (Vselect_active_regions): Change default to t. Replace `lazy'
3671 with non-default value `only', meaning only set PRIMARY for
3672 temporarily active regions.
3673
3674 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
3675 select-active-regions.
3676
0005830c
J
36772010-08-15 Jan Djärv <jan.h.d@swipnet.se>
3678
3679 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
3680 isn't a string.
3681
603dfc72
AS
36822010-08-15 Andreas Schwab <schwab@linux-m68k.org>
3683
3684 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
3685
c25ce9d0
J
36862010-08-15 Jan Djärv <jan.h.d@swipnet.se>
3687
c3554f68
SM
3688 * keyboard.c (parse_tool_bar_item): malloc buf.
3689 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
3690 new_lbl (Bug#6855).
c25ce9d0 3691
5872c762
EZ
36922010-08-14 Eli Zaretskii <eliz@gnu.org>
3693
b236615c
EZ
3694 * xterm.c (x_draw_stretch_glyph_string):
3695 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
3696 the cursor on the right edge of the stretch glyph.
3697
c3554f68
SM
3698 * xdisp.c (window_box_right_offset, window_box_right):
3699 Fix commentary.
b236615c 3700
5872c762
EZ
3701 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
3702 direction when point is inside a run of whitespace characters.
3703
3704 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
3705
e66f9a1b
JR
37062010-08-14 Jason Rumney <jasonr@gnu.org>
3707
3708 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
3709
79d6f59e
CY
37102010-08-14 Chong Yidong <cyd@stupidchicken.com>
3711
3712 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
3713
1c9b4129
JR
37142010-08-13 Jason Rumney <jasonr@gnu.org>
3715
3716 * w32menu.c (simple_dialog_show): Use unicode message box if available.
3717 (MessageBoxW_Proc): New function typedef.
3718 (unicode-message-box): New function pointer.
3719 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
3720
2b4e6277
J
37212010-08-13 Jan Djärv <jan.h.d@swipnet.se>
3722
3723 * frame.h (Qtool_bar_position): Declare.
3724
3725 * xfns.c (Fx_create_frame): Call x_default_parameter for
3726 Qtool_bar_position.
3727
94c97d85
EZ
37282010-08-13 Eli Zaretskii <eliz@gnu.org>
3729
8ee81892
EZ
3730 * unexcoff.c: Remove the parts used when "emacs" is not defined.
3731 (report_error, report_error_1): Ditto.
3732 (write_segment): Remove "#if 0" unused code.
3733 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
3734 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
3735 (start_of_text): Remove unused function (was used only if NO_REMAP
3736 was NOT defined).
3737
891ef8f7
EZ
3738 * msdos.c (IT_set_face): Fix format string to match argument
3739 types.
3740 (IT_write_glyphs, IT_note_mode_line_highlight)
3741 (IT_set_frame_parameters): Remove unused variables.
3742 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
3743 (IT_set_terminal_modes): Disambiguate expression in if clause.
3744 (Fmsdos_remember_default_colors): Return Qnil.
3745 (IT_set_frame_parameters): Add parens to disambiguate boolean
3746 expression for logging the cursor type to termscript.
3747 (keyboard_layout_list, keypad_translate_map)
3748 (grey_key_translate_map): Add braces in inner initializers.
3749 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
3750 (dos_rawgetc): Remove unused label.
3751 (XMenuActivate): Add braces to remove ambiguous `else'.
3752 (dos_ttraw): Always return a value.
3753 (spawnve): Declare.
3754 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
3755
3756 * dosfns.h (x_set_title): Declare.
3757
3758 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
3759 Remove unused variables.
3760
3761 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
3762 variables.
3763 (init_dosfns): Declare get_lim_data.
3764 (system_process_attributes): Declare Fget_internal_run_time.
3765
38e41e0e
EZ
3766 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
3767 list to be consistent with menu.h.
3768
94c97d85
EZ
3769 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
3770 warnings due to mixing of "char *" and "const char *".
3771
c5683ceb
SM
37722010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
3773
3774 Introduce a new comment style "c" flag.
3775 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
3776 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
3777 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
3778 (syntax_prefix_flag_p): New function.
3779 (Fstring_to_syntax): Understand new "c" flag.
3780 (Finternal_describe_syntax_value): Recognize new flag; use the
3781 SYNTAX_FLAGS_* macros.
3782 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
3783 comment style to accomodate the new styles.
3784 (back_comment, forw_comment, Fforward_comment, scan_lists)
3785 (scan_sexps_forward): Update code to obey the new comment style flag.
3786
3787 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
3788
3789 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
3790
7aee76f4
J
37912010-08-11 Jan Djärv <jan.h.d@swipnet.se>
3792
3a46642b
J
3793 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
3794 first.
94dff98f 3795 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
3a46642b
J
3796
3797 * gtkutil.h (xg_check_special_colors): Declare.
3798
3799 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
3800 (xg_create_frame_widgets): Connect theme name changes to
3801 style_changed_cb.
3802
42ca4633
J
3803 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
3804 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
3805 (x_term_init): Use char[] display_opt and name_opt instead of
93acd23d 3806 string literal. file is const char*.
42ca4633
J
3807
3808 * xsmfns.c (NOSPLASH_OPT): Change to char[].
3809 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
3810 props. Free them at the end.
3811
3812 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
3813
c5683ceb
SM
3814 * xrdb.c (get_system_app): Make path const and use char *p for
3815 non-const char.
42ca4633
J
3816
3817 * xmenu.c (Fx_popup_dialog): error_name is const char*.
93acd23d 3818 (xmenu_show): error parameter is const char **. pane_string is const
42ca4633
J
3819 char *.
3820 (button_names): Is const char *.
3821 (xdialog_show): error_name and pane_string is const.
3822
3823 * process.h (synch_process_death): Is const char*.
3824
3825 * w32menu.c (w32_menu_show):
3826 * nsmenu.m (ns_menu_show): error parameter is const char **.
3827
3828 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
3829 is const char **.
3830
3831 * menu.c (Fx_popup_menu): error_name is const.
3832
3833 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
3834 with unsigned char and XtPointer with void *.
3835
3836 * gtkutil.h: Replace widget_value with struct _widget_value.
3837 (enum button_type, struct _widget_value): Remove and use the one from
3838 keyboard.h.
3839
3840 * gtkutil.c (get_utf8_string): Always return an allocated string.
3841 Parameter is const.
3842 (create_dialog, xg_create_one_menuitem, create_menus)
3843 (xg_item_label_same_p, xg_update_menu_item): Free result from
3844 get_utf8_string.
3845 (xg_separator_p, xg_item_label_same_p): label is const.
3846
3847 * font.h (font_open_by_name): Make name const.
3848
3849 * font.c (font_open_by_name): Make name const.
3850
3851 * floatfns.c (matherr): Use a const char* variable for x->name.
3852
3853 * emacs.c (main): Pass char[] to putenv instead of literal.
3854
3855 * callproc.c (synch_process_death): Make const.
3856 (Fcall_process): Make signame const.
3857
9c5bd55a
J
3858 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
3859 (addDisplayItemWithImage): Use const char*.
3860
3861 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
3862 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
3863
3864 * nsfont.m (ns_descriptor_to_entity): Use const char*.
3865
3866 * keyboard.h (_widget_value): name, value and key are const char*.
3867
7aee76f4
J
3868 * unexmacosx.c (unexec_error): Use const char *.
3869
09d93395
DN
38702010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
3871
3872 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 3873 (font_parse_name, font_open_by_name):
09d93395 3874 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 3875 (font_parse_name, font_open_by_name): Remove const.
09d93395 3876
671d409f
AS
38772010-08-09 Andreas Schwab <schwab@linux-m68k.org>
3878
3879 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
3880 definition.
3881
3882 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
3883 * m/amdx86-64.h: Likewise.
3884 * m/arm.h: Likewise.
3885 * m/hp800.h: Likewise.
3886 * m/ia64.h: Likewise.
3887 * m/ibmrs6000.h: Likewise.
3888 * m/ibms390.h: Likewise.
3889 * m/intel386.h: Likewise.
3890 * m/iris4d.h: Likewise.
3891 * m/m68k.h: Likewise.
3892 * m/macppc.h: Likewise.
3893 * m/mips.h: Likewise.
3894 * m/sh3.h: Likewise.
3895 * m/sparc.h: Likewise.
3896 * m/template.h: Likewise.
3897 * m/vax.h: Likewise.
3898 * m/xtensa.h: Likewise.
3899 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
3900 WORDS_BIG_ENDIAN.
3901 * lisp.h: Likewise.
3902 * md5.c: Likewise.
3903 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
3904
8ea90aa3
DN
39052010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
3906
3907 Use const char* instead of char*.
3908 Reduce the number of warnings with -Wwrite-strings.
3909 * xrdb.c (get_environ_db, get_system_name):
3910 * unexelf.c (find_section):
3911 * term.c (string_cost, string_cost_one_line, per_line_cost)
3912 (get_named_tty, init_tty):
3913 * sysdep.c (sys_subshell):
3914 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
3915 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
3916 * search.c (Freplace_match):
3917 * process.c (Fmake_network_process, send_process, init_process):
3918 * lread.c (Fload, init_lread):
3919 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
3920 * keyboard.c (parse_tool_bar_item, struct event_head):
3921 * gtkutil.h (xg_get_font_name):
3922 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
3923 (make_widget_for_menu_item, make_menu_item, create_menus)
3924 (xg_make_tool_item):
3925 * font.c (parse_matrix, font_parse_name):
3926 * floatfns.c (rounding_driver, float_error_fn_name):
3927 * filelock.c (get_boot_time_1, lock_file_1):
3928 * fileio.c (barf_or_query_if_file_exists, check_writable):
3929 * editfns.c (get_system_name, get_operating_system_release)
3930 (Fencode_time, Fset_time_zone_rule):
3931 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
3932 * buffer.c (defvar_per_buffer): Use const.
3933
7815fe19 39342010-08-08 Kenichi Handa <handa@m17n.org>
7a84eee5 3935
692f3ddc 3936 * charset.c: Include <stdlib.h>.
7a84eee5
KH
3937 (struct charset_sort_data): New struct.
3938 (charset_compare): New function.
692f3ddc 3939 (Fsort_charsets): New function.
7a84eee5
KH
3940 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
3941
3942 * coding.c (decode_coding_iso_2022): Fix checking of dimension
3943 number in CTEXT extended segment.
3944
7815fe19 39452010-08-08 Juanma Barranquero <lekktu@gmail.com>
f5f6c0e0
JB
3946
3947 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
3948 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
3949
7815fe19 39502010-08-08 Juanma Barranquero <lekktu@gmail.com>
b756c005
JB
3951
3952 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
3953 (Fhash_table_size): Fix typos in docstrings.
3954 (Fmake_hash_table): Doc fix.
3955
7815fe19 39562010-08-08 Juanma Barranquero <lekktu@gmail.com>
b4f588fa
JB
3957
3958 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
3959 Doc fix (bug#5625).
3960
7815fe19 39612010-08-08 Ken Brown <kbrown@cornell.edu>
9f8c08a7
KB
3962
3963 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
3964 the MSDOS definition.
3965
1b6d8cf0
DN
39662010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
3967
675e2c69
DN
3968 Use const char* instead of char*.
3969 * xterm.c (x_create_toolkit_scroll_bar):
3970 * xfont.c (xfont_list_pattern):
3971 * xfns.c (x_default_scroll_bar_color_parameter)
3972 (xic_create_fontsetname, x_default_font_parameter)
3973 (x_screen_planes):
3974 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
3975 (store_mode_line_string, decode_mode_spec, display_string):
3976 * menu.c (digest_single_submenu):
3977 * keymap.h (initial_define_key, initial_define_lispy_key):
3978 * keymap.c (initial_define_key, initial_define_lispy_key):
3979 * image.c (image_error, image_keyword):
3980 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
3981 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
3982 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
3983 (ftfont_list, ftfont_match):
3984 * frame.c (frame_parm_table):
3985 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
3986 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
3987 (font_add_log, font_deferred_log):
3988 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
3989 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
3990 (font_add_log, font_deferred_log):
3991 * emacs.c (argmatch):
3992 * dispextern.h (struct it):
3993 * coding.c (ENCODE_DESIGNATION):
3994 * charset.c (define_charset_internal): Use const.
3995
25717ca1
DN
3996 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
3997
c5683ceb
SM
3998 * xrdb.c: Remove include guard.
3999 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
1b6d8cf0
DN
4000 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
4001 realloc->xrealloc instead of using #defines.
4002
efb41e21
EZ
40032010-08-08 Eli Zaretskii <eliz@gnu.org>
4004
cd21226d 4005 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
c5683ceb
SM
4006 * editfns.c (Fline_beginning_position, Fline_end_position):
4007 State in the doc strings that start and end of line are in the
4008 logical order.
cd21226d 4009
efb41e21
EZ
4010 * xdisp.c (display_line): Move the handling of overlay arrow after
4011 the call to find_row_edges. (Bug#6699)
4012
746812d9
CY
40132010-08-07 Chong Yidong <cyd@stupidchicken.com>
4014
4015 * keyboard.c (command_loop_1):
4016 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
4017
9852377f
CY
40182010-08-07 Chong Yidong <cyd@stupidchicken.com>
4019
4020 * insdel.c (prepare_to_modify_buffer): Save active region text to
4021 Vsaved_region_selection.
4022
4023 * xselect.c (QPRIMARY): Move to keyboard.c.
4024
4025 * keyboard.c (Vselect_active_regions): Move from simple.el.
8d9e03e4
JB
4026 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
4027 (command_loop_1): Set window selection prior to deactivating the mark.
9852377f 4028
0e9c8657
JB
40292010-08-07 Juanma Barranquero <lekktu@gmail.com>
4030
4031 * alloc.c (lisp_malloc):
4032 * buffer.c (set_buffer_internal, set_buffer_internal_1):
4033 * charset.h (emacs_mule_charset):
4034 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
4035 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
4036 (bitch_at_user):
4037 * lisp.h (Fcheck_coding_system, Fget_text_property)
4038 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
4039 Remove duplicate declarations.
4040
648801d1
DN
40412010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
4042
32bc6709
DN
4043 * process.c: Simplify include logic.
4044
3ef1d108
DN
4045 * keyboard.h (quit_char): Add declaration.
4046 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
8d9e03e4
JB
4047 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
4048 Add declarations.
3ef1d108
DN
4049 * sysdep.c:
4050 * w32.c: Remove the above declarations.
4051
97ec208f
DN
4052 Remove extern declarations in .c files, .h files have them.
4053 * xterm.c:
4054 * xdisp.c:
97ec208f
DN
4055 * msdos.c:
4056 * image.c:
4057 * gtkutil.c:
4058 * fileio.c:
4059 * eval.c: Remove declarations.
4060
94eed851
DN
4061 * frame.c (frame_params): Make const.
4062
36e053eb
DN
4063 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
4064
0e843971
DN
4065 * emacs.c (emacs_copyright, emacs_version): Make static.
4066 (Vinitial_window_system, Vauto_save_list_file_name)
4067 (Vinhibit_redisplay): Remove declarations.
4068 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
4069 for AIX.
4070
648801d1
DN
4071 Use const for some arrays and functions.
4072 * xterm.h (xg_set_icon_from_xpm_data):
4073 * xfns.c (xg_set_icon_from_xpm_data):
4074 * term.c (fkeys):
4075 * keyboard.c (lispy_accent_keys, lispy_function_keys)
4076 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
4077 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
4078 (frame.c frame_parms):
4079 * emacs-icon.h (gnu_xpm_bits):
4080 * callint.c (callint_argfuns): Use const.
4081
8646d999
J
40822010-08-06 Jan Djärv <jan.h.d@swipnet.se>
4083
4084 * sysdep.c: Move include term.h last of includes (Bug#6812).
4085
cb4545ad
EZ
40862010-08-06 Eli Zaretskii <eliz@gnu.org>
4087
4088 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
4089
4090 * msdos.c (IT_display_cursor): Log cursor position on termscript.
4091
4092 * .gdbinit (pgx): Display the avoid_cursor_p flag.
4093
da7e2be6
JB
40942010-08-06 Juanma Barranquero <lekktu@gmail.com>
4095
4096 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
4097
3d608a86
J
40982010-08-06 Jan Djärv <jan.h.d@swipnet.se>
4099
7908fb60
J
4100 * xterm.h (x_get_focus_frame): Declare.
4101
4102 * keyboard.h (poll_for_input_1): Unconditionally declare.
4103
4094bf36
J
4104 * nsterm.h (x_set_menu_bar_lines): Declare.
4105
4106 * window.c: Don't include menu.h, it depends on lots of other .h-files.
4107
3d608a86
J
4108 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
4109
4110 * window.c: Include menu.h.
4111
4112 * unexmacosx.c (print_region_list, print_regions)
4113 (build_region_list, find_emacs_zone_regions)
4114 (unexec_regions_merge, read_load_commands, dump_it)
4115 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
4116
4117 * term.c: Check HAVE_SYS_IOCTL_H.
4118
686b968e 4119 * sysdep.c: Check HAVE_TERM_H.
3d608a86 4120
686b968e 4121 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
3d608a86
J
4122
4123 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
4124 (ns_ring_bell, ns_defined_color, hide_hourglass)
4125 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
4126 Convert to ANSI C prototypes.
4127 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
4128 before code.
4129
4130 * nsterm.h : Include sysselect.h.
4131 (x_sync, x_get_focus_frame, x_set_mouse_position)
4132 (x_set_mouse_pixel_position, x_make_frame_visible)
4133 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
4134 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
4135 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
4136 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
686b968e 4137 Declare.
3d608a86
J
4138
4139 * nsmenu.m (popup_activated, name_is_separator)
4140 (syms_of_nsmenu): Convert to ANSI C prototypes.
4141 (runMenuAt): Prototypes and move declarations before code.
4142
4143 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
4144
4145 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
4146 prototypes.
4147
4148 * nsfns.m (have_menus_p, ns_display_info_for_name)
4149 (x_set_cursor_type, ns_appkit_version_str)
4150 (ns_appkit_version_int, ns_do_applescript)
4151 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
4152 (syms_of_nsfns): Convert to ANSI C prototypes.
4153
4154 * menu.h (x_set_menu_bar_line): Declare.
4155 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
4156
4157 * lisp.h (fmod_float): Declare.
4158
4159 * image.c (xpm_scan, xpm_make_color_table_v)
4160 (xpm_put_color_table_v, xpm_get_color_table_v)
4161 (xpm_make_color_table_h, xpm_put_color_table_h)
4162 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
4163 (xpm_load): Convert to ANSI C prototypes.
4164
4165 * emacs.c: Include nsterm.h if HAVE_NS.
4166
4167 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
4168
fce70521
DN
41692010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
4170
4171 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
4172 subprocesses, only MSDOS does not define HAVE_SOCKETS.
4173 (socket_options): Use const char* for name.
4174
a11889ab
JB
41752010-08-06 Juanma Barranquero <lekktu@gmail.com>
4176
4177 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
4178
4179 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
4180 Don't declare xmalloc_widget_value and digest_single_submenu.
4181
4182 * w32font.c (Qlatin): Remove declaration.
4183
4184 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
4185
c95b508f 4186 * dired.c (compile_pattern): Restore declaration.
a11889ab 4187
6254cdda
DN
41882010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
4189
04bab72c
DN
4190 Remove extern declarations in .c files, .h files have them.
4191 * data.c:
4192 * dired.c:
4193 * editfns.c:
4194 * filelock.c:
4195 * fns.c:
4196 * font.c:
4197 * fontset.c:
4198 * frame.c:
4199 * fringe.c:
4200 * ftfont.c:
4201 * gtkutil.c:
4202 * indent.c:
4203 * keyboard.c:
4204 * keymap.c:
4205 * lread.c:
4206 * menu.c:
4207 * print.c:
4208 * search.c:
4209 * sound.c:
4210 * window.c:
4211 * xdisp.c:
4212 * xfaces.c:
4213 * xfns.c:
4214 * xfont.c:
4215 * xftfont.c:
4216 * xmenu.c:
4217 * xterm.c: Remove declarations.
4218
dff94ed5
DN
4219 Cleanup syssignal.h.
4220 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
4221 (main_thread): Move down to remove #ifdef.
4222 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
4223 Remove conditional definition following unconditional ones.
4224
99f3388e
DN
4225 * lisp.h: Remove HAVE_SHM code, unused.
4226 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
4227 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
4228 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
4229 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
4230 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
4231 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
4232 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
4233 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
4234 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
4235 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
4236 (Qwindow_scroll_functions, Vafter_load_alist)
4237 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
4238 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
4239 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
4240 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
4241 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
4242 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
4243 (initial_argv, last_nonmenu_event, load_in_progress)
4244 (noninteractive_need_newline, scroll_margin): Add declarations.
4245
bba3e508
SM
4246 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
4247 Remove declarations, menu.h has them.
99f3388e
DN
4248 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
4249 (Vinput_method_function, Qinput_method_function)
4250 (Qevent_symbol_element_mask, last_event_timestamp):
4251 * dispextern.h (Voverflow_newline_into_fringe):
4252 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
4253 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
4254 (syms_of_w32font, syms_of_nsfont):
4255 * fontset.h (find_font_encoding, Qlatin):
4256 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
4257 (Vtool_bar_mode, set_frame_menubar):
4258 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
4259 * xterm.h (Qx_gtk_map_stock):
4260 * keymap.h (meta_prefix_char): Add declarations.
4261
9f5dd6f2
DN
4262 * term.c: Remove dead code.
4263
6254cdda
DN
4264 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
4265 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
4266 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
4267 which is what was there before BSD_PGRPS was removed.
4268
29cf3e20
EZ
42692010-08-05 Eli Zaretskii <eliz@gnu.org>
4270
4271 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
4272
4273 * unexcoff.c: Renamed from unexec.c.
4274
aaa0a19a
SM
42752010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
4276
4277 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
4278
8d1d9587
JB
42792010-08-03 Johan Bockgård <bojohan@gnu.org>
4280
4281 * data.c (Flocal_variable_p): Handle variable aliases correctly.
e0d62a9b 4282 (Bug#6744)
8d1d9587 4283
9a747ba6
JD
42842010-08-02 Jan Djärv <jan.h.d@swipnet.se>
4285
4d464ae4
JD
4286 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
4287 to TRUE if depth of screen is < 16.
4288
ac01763e
JD
4289 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
4290 USE_GTK_TOOLTIP.
e0d62a9b
JB
4291 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
4292 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4d464ae4 4293 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
ac01763e
JD
4294 USE_GTK_TOOLTIP.
4295 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
4296
4297 * xterm.h (USE_GTK_TOOLTIP): New define.
4298 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
4299
9a747ba6
JD
4300 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
4301 to Control-D (Bug#6771).
4302
7b0815ba
JB
43032010-08-02 Juanma Barranquero <lekktu@gmail.com>
4304
4305 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
4306 Wording by Drew Adams <drew.adams@oracle.com>.
4307
aa1859f5
J
43082010-08-01 Jan Djärv <jan.h.d@swipnet.se>
4309
4310 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
4311 ttip_lbl.
4312
4313 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
4314 calling gtk_widget_queue_draw.
4315 (x_free_frame_resources): Call xg_free_frame_widgets.
4316
4317 * xfns.c (x_gtk_use_system_tooltips): New variable.
4318 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
4319 new gtkutil tooltip functions to show the tooltip.
4320 (Fx_hide_tip): Call xg_hide_tooltip.
4321 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
4322
4323 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
4324 (xg_show_tooltip, xg_hide_tooltip): Declare.
4325
4326 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
e0d62a9b
JB
4327 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
4328 New functions.
aa1859f5
J
4329 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
4330 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
4331 Remove code that is commented out.
4332
76417ef4
SM
43332010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
4334
4335 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
4336
16041401
CY
43372010-07-31 Chong Yidong <cyd@stupidchicken.com>
4338
4339 * xselect.c (x_own_selection): Use list4.
4340
2c09a58f
DN
43412010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
4342
4343 * buffer.c (Qwindow): Do not define, already defined in data.c.
4344 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
4345
59df9fdd 43462010-07-29 Chad Brown <yandros@mit.edu>
1c97e857 4347
59df9fdd
JB
4348 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
4349 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
4350 * config.in: Undef HAVE_DIRENT_H.
1c97e857 4351 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
59df9fdd 4352 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1c97e857 4353
1b231651
DN
43542010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
4355
4356 Rename s/usg5-4.h -> s/usg5-4-common.h.
4357 * s/usg5-4.h: Rename file to ...
4358 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
4359 * s/unixware.h:
4360 * s/sol2-6.h:
4361 * s/irix6-5.h: Update includes accordingly.
4362
bfeabdc3
JD
43632010-07-29 Jan Djärv <jan.h.d@swipnet.se>
4364
2ebf1083
J
4365 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
4366
bfeabdc3 4367 * xterm.h (struct x_output): Add toolbar_top_height,
e0d62a9b
JB
4368 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
4369 Remove toolbar_height.
4370 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
bfeabdc3
JD
4371 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
4372 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
4373 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
4374
4375 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
4376
4377 * xfns.c (x_set_tool_bar_position): New function.
4378 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
4379 (x_frame_parm_handlers): Add x_set_tool_bar_position.
e0d62a9b 4380 (syms_of_xfns): If USE_GTK, provide move-toolbar.
bfeabdc3
JD
4381
4382 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
4383 and FRAME_TOOLBAR_LEFT_WIDTH.
4384
4385 * gtkutil.h (xg_change_toolbar_position): Declare.
4386
4387 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
4388 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
4389 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
4390 (xg_create_frame_widgets): Create a hobox for placing widgets
4391 vertically. Use gtk_box_pack_start.
ef1b0ba7 4392 (xg_height_or_width_changed): Rename from xg_height_changed.
bfeabdc3
JD
4393 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
4394 (xg_update_frame_menubar, free_frame_menubar): Change to
4395 xg_height_or_width_changed.
4396 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
4397 size correctly. Remove hardcoded 4, instead use handlebox size -
4398 toolbar size.
4399 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
e0d62a9b 4400 size correctly. Use handlebox size + toolbar size as additional size.
bfeabdc3
JD
4401 (xg_pack_tool_bar): POS is a new parameter.
4402 Set orientation of tool bar based on pos.
4403 Only make handlebox_widget if NULL.
4404 Check if tool bar goes to vbox or hbox depending on pos.
4405 (xg_update_tool_bar_sizes): New function.
686b968e 4406 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
bfeabdc3
JD
4407 height, call xg_update_tool_bar_sizes instead.
4408 (free_frame_tool_bar): Remove from hbox or vbox depending on
4409 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
4410 (xg_change_toolbar_position): New function.
4411
4412 * frame.h (struct frame): Add tool_bar_position.
4413 (Qbottom): Declare.
4414
4415 * frame.c (Qtool_bar_position): New variable.
4416 (make_frame): Set tool_bar_position to Qtop.
4417 (frame_parms): Add tool-bar-position.
4418 (x_report_frame_params): Store tool_bar_position.
4419 (x_set_fringe_width): Reset wm size hint after fringe changes.
4420
26469a38
DN
44212010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
4422
4423 Make lisp_time_argument declaration work on all systems.
4424 * lisp.h (lisp_time_argument): Move declaration ...
4425 * systime.h (lisp_time_argument): ... here
4426 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
4427
8848b728
JD
44282010-07-29 Jan Djärv <jan.h.d@swipnet.se>
4429
4430 * vm-limit.c (POINTER): Add typedef for it.
4431 (start_of_data): Change return type from POINTER to char *.
4432
4433 * frame.h (Qtty_color_mode): Move declaration out of ifdef
4434 HAVE_WINDOW_SYSTEM.
4435
76fd1ee9
DN
44362010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
4437
0441987e
DN
4438 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
4439 Remove reference to __osf__, unused.
4440
56a000c7
DN
4441 * mem-limits.h: Remove duplicated includes.
4442 (NULL): Remove definition, unused.
4443 (POINTER): Remove definition.
4444 (start_of_data): Use char* in prototype, as the function
4445 definition does.
4446
e6cba650
DN
4447 Remove extern declarations from .c files, and them to .h files.
4448 * keyboard.h (Qhelp_echo, waiting_for_input)
4449 (input_available_clear_time, ignore_mouse_drag_p)
4450 (Vdouble_click_time, real_this_command, Vthis_original_command):
4451 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
4452 (Voverriding_local_map_menu_flag):
4453 * lisp.h (Qinteractive_form, use_file_dialog)
4454 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
4455 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
4456 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
4457 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
4458 (Qfunction, debug_on_next_call, Qfield)
4459 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
4460 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
4461 (Qfile_directory_p, Qinsert_file_contents)
4462 (Qcompletion_ignore_case, Qcompletion_ignore_case)
4463 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
4464 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
4465 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
4466 (Qminibuffer_prompt)
4467 (Vtemporary_file_directory,char_ins_del_vector, Qface):
4468 * xterm.h (gray_bitmap_width, gray_bitmap_height)
4469 (gray_bitmap_bits, xic_create_fontsetname):
4470 * coding.h (Vtranslation_table_for_input): Add extern declarations.
4471
4472 * xsmfns.c (Vuser_login_name):
4473 * xrdb.c (Vdouble_click_time):
4474 * xfaces.c (xic_create_fontsetname):
4475 * w32select.c (waiting_for_input):
4476 * print.c (minibuffer_auto_raise):
4477 * msdos.c (Qhelp_echo):
4478 * macros.c (real_this_command):
4479 * keymap.c (Voverriding_local_map):
4480 * xterm.c (poll_for_input_1, gray_bitmap_width)
4481 (gray_bitmap_height, gray_bitmap_bits;
4482 * xmenu.c ( Voverriding_local_map)
4483 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
4484 (use_file_dialog, Xt_app_con):
4485 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
4486 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
4487 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
4488 (Qtool_bar_lines, ignore_mouse_drag_p):
4489 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
4490 (Qrear_nonsticky, nconc2):
4491 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
4492 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
4493 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
4494 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
4495 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
4496 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
4497 (gc_in_progress):
4498 * doc.c (Voverriding_local_map, Qremap):
4499 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
4500 (Vcompletion_regexp_list):
4501 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
4502 (Qcompletion_ignore_case):
4503 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
4504 (Vhistory_length, Vthis_original_command, real_this_command)
4505 (Qface, Qminibuffer_prompt, history_delete_duplicates):
4506 * image.c (Qrisky_local_variable):
4507 * fontset.c (QCname):
4508 * fns.c (minibuffer_auto_raise, QCname):
4509 * dispnew.c (char_ins_del_cost):
4510 * composite.c (font_fill_lglyph_metrics):
4511 * cmds.c (Qface, Vtranslation_table_for_input):
4512 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
4513 * ccl.c (charset_unicode):
4514 * callproc.c (Vtemporary_file_directory):
4515 * buffer.c (emacs_strerror): Remove extern declarations.
4516
4517 * data.c (Qwindow): Make non-static, used from other files too.
4518 * frame.c (validate_x_resource_name): Remove shadow definition for i.
4519
76fd1ee9
DN
4520 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
4521 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
4522 * s/usg5-4.h (COFF):
4523 * s/template.h:
4524 * s/msdos.h (COFF, NO_REMAP):
4525 * s/ms-w32.h (NO_REMAP):
4526 * s/hpux10-20.h (NO_REMAP):
4527 * m/sparc.h (SEGMENT_MASK):
4528 * m/m68k.h (NO_REMAP):
4529 * m/intel386.h (SEGMENT_MASK):
4530 * m/arm.h (NO_REMAP):
4531 * m/alpha.h (COFF):
4532 * m/template.h: Remove references to unused defines.
4533
8a52f00a
JD
45342010-07-28 Jan Djärv <jan.h.d@swipnet.se>
4535
4536 * xsettings.c (Ftool_bar_get_system_style): Also check for
4537 Qtext_image_horiz.
4538
4539 * xdisp.c (Qtext_image_horiz): Define.
4540 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 4541 to documentation of tool-bar-style.
8a52f00a
JD
4542
4543 * lisp.h (Qtext_image_horiz): Declare.
4544
4545 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
4546 style text_image_horiz.
4547
89dc303e
DN
45482010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
4549
60799703
DN
4550 * emacs.c (Fkill_emacs): Remove return statement.
4551
37254dc1
DN
4552 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
4553 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
bba3e508
SM
4554 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys):
4555 Remove local extern declarations.
37254dc1 4556
71c7345a
DN
4557 * xmenu.c: Do not included lwlib.h, not needed.
4558
6ba577cb
DN
4559 * m/iris4d.h (XUINT, XSET): Remove, not needed.
4560
fdb183d6
DN
4561 * process.c: Move definitions earlier to minimize #ifdefs.
4562
4563 * xterm.h (x_get_customization_string, x_load_resources)
4564 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
4565 (x_check_errors, x_property_data_to_lisp, defined_color)
4566 (xic_set_xfontset, x_defined_color): Use const.
4567
4568 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
4569 (x_text_icon, x_check_errors, x_connection_closed): Use const.
4570
4571 * xselect.c (selection_data_to_lisp_data)
4572 (x_property_data_to_lisp):
4573 * xrdb.c (x_get_string_resource, file_p)
4574 (x_get_customization_string, magic_file_p, search_magic_path)
4575 (get_system_app, get_user_app, x_load_resources, x_get_resource)
4576 (x_get_string_resource): Use const.
4577
4578 * xfns.c: Include xlwmenu.h when USE_LUCID.
4579 (x_defined_color, xic_set_xfontset): Use const.
4580 (Fx_hide_tip): Remove local extern declaration.
4581
4582 * xfaces.c (Qmouse_face): Remove declaration.
4583 (face_color_gray_p, tty_defined_color, defined_color)
686b968e 4584 (face_color_gray_p, face_color_supported_p): Add const.
fdb183d6
DN
4585
4586 * xdisp.c (do_mouse_tracking): Remove declaration.
4587 (add_to_log): Use const.
4588
4589 * minibuf.c (Qmouse_face): Remove declaration.
4590
4591 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
4592
4593 * keyboard.h (do_mouse_tracking): Add declaration.
4594
4595 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
4596 (QCdata, QCtype, Qcenter): Remove declarations.
4597
4598 * frame.c (x_get_resource_string, x_get_string_resource)
4599 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
4600 (x_default_parameter): Use const.
4601
4602 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
4603 (QCheight, QCsize, QCname): Remove declarations.
4604
4605 * emacs.c (main): Remove local extern declaration.
4606
4607 * editfns.c (region_limit, syms_of_editfns): Remove local extern
4608 declarations.
4609
4610 * dispnew.c: Remove duplicate #include <unistd.h>.
4611 (update_window, update_frame_1, init_display): Remove local extern
4612 declarations.
4613
4614 * dispextern.h (add_to_log): Remove declaration.
4615 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
4616 (x_frame_get_and_record_arg, x_default_parameter): Add const.
4617
4618 * dired.c (scmp): Add const.
4619 (directory_files_internal): Remove local extern declaration.
4620
4621 * data.c (Finteractive_form): Use const.
4622
4623 * composite.c (syms_of_composite): Remove local extern declarations.
4624
4625 * charset.c (add_to_log): Remove declaration.
4626
4627 * character.c (strwidth, parse_str_to_multibyte): Add const.
4628
4629 * character.h (strwidth, parse_str_to_multibyte): Likewise.
4630
4631 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
4632
89dc303e 4633 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
4634 (Lisp_Subr): Make doc and intspec constant.
4635 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
4636 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
4637 (QCheight, QCsize, QCname, QCwidth, QCforeground)
4638 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
4639 (display_arg): Add declarations.
89dc303e 4640
0ed082fe 46412010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
4642
4643 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
4644
0ed082fe
JB
4645 * window.c (Fwindow_height): Doc fix (bug#6518).
4646
46472010-07-27 Juanma Barranquero <lekktu@gmail.com>
4648
4649 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
4650
ccaf0336
DN
46512010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
4652
977105dc
DN
4653 * keyboard.c (Ftop_level, Fexit_recursive_edit)
4654 (Fabort_recursive_edit): Remove return statements in NO_RETURN
4655 functions.
4656
f5ada890
DN
4657 * frame.h (Qtty_color_mode): Add declaration.
4658
ccaf0336
DN
4659 * lisp.h (Ftop_level, Fexit_recursive_edit)
4660 (Fabort_recursive_edit): Mark as NO_RETURN.
4661
dfe3c90f
KH
46622010-07-26 Kenichi Handa <handa@m17n.org>
4663
4664 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 4665 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 4666
7d383292
JB
46672010-07-26 Juanma Barranquero <lekktu@gmail.com>
4668
4669 * lread.c (unreadpure, mapatoms_1): Make static.
4670
da31e629
JB
46712010-07-25 Juanma Barranquero <lekktu@gmail.com>
4672
4673 * terminfo.c (tparam): Fix prototype of tparm.
4674
7bfa6d77
AS
46752010-07-25 Andreas Schwab <schwab@linux-m68k.org>
4676
dcc19aac
AS
4677 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
4678 find start of text segment.
4679 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
4680 is defined.
4681
7bfa6d77
AS
4682 * callproc.c (set_initial_environment): Avoid unbalanced braces.
4683
63f9a672
KB
46842010-07-25 Ken Brown <kbrown@cornell.edu>
4685
4686 * vm-limit.c (check_memory_limits): Fix previous change;
4687 accidentally reverted an earlier change.
4688
24933075
KB
46892010-07-25 Ken Brown <kbrown@cornell.edu>
4690
4691 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
4692 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
4693
361358ea
JB
46942010-07-25 Juanma Barranquero <lekktu@gmail.com>
4695
4696 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
4697 * dired.c (opendir, readdir): Fix prototypes.
4698 * editfns.c (w32_get_internal_run_time): Fix prototypes.
4699 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
4700 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
4701 (telldir): Remove declaration.
4702 * ralloc.c (real_morecore, __morecore): Fix prototypes.
4703 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
4704 * syssignal.h (strsignal): Fix prototype.
4705 * term.c (tparam): Fix prototype.
4706 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
4707 (term_get_fkeys): Set inside "#ifndef DOS_NT".
4708 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
4709 and __morecore.
4710 * w32gui.h (XParseGeometry): Fix prototype.
4711 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
4712 * w32term.c (my_set_focus): Declare inside #if 0.
4713 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
4714 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
4715 (drain_message_queue, get_next_msg, post_msg, parse_button)
4716 (ClipboardSequence_Proc): Fix prototypes.
4717 (wait_for_sync): Remove declaration.
4718
630b9592
JB
47192010-07-24 Juanma Barranquero <lekktu@gmail.com>
4720
4721 * w32fns.c (w32_to_x_color): Remove, unused.
4722
6a0d6611
AS
47232010-07-24 Andreas Schwab <schwab@linux-m68k.org>
4724
4725 * lisp.h: Remove leftover P_.
4726
4e8608ff
DN
47272010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
4728
4729 * ecrt0.c, unexalpha.c: Remove files, unused.
4730
c8197983
AS
47312010-07-24 Andreas Schwab <schwab@linux-m68k.org>
4732
4733 * cmds.c (internal_self_insert): Make static.
4734 * lisp.h (internal_self_insert): Remove declaration.
4735
97b372d7
JB
47362010-07-23 Juanma Barranquero <lekktu@gmail.com>
4737
33ac0414
JB
4738 * alloc.c (free_float):
4739 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
4740 * frame.c (delete_frame_handler):
4741 * ralloc.c (reorder_bloc):
4742 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
4743 Remove unused static functions.
4744
94da8397
JB
4745 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
4746 it is called only from NS code.
4747
2e6c8532
JB
4748 * w32term.c (my_set_focus): #ifdef away; it is called only from
4749 "#ifdef 0" code.
4750
97b372d7
JB
4751 * w32fns.c (x_edge_detection):
4752 * xfaces.c (may_use_scalable_font_p):
4753 Remove obsolete static declarations.
4754
7c3320d8
JB
47552010-07-20 Juanma Barranquero <lekktu@gmail.com>
4756
4757 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
4758 (emacs_blocked_realloc, uninterrupt_malloc):
4759 * fringe.c (w32_reset_fringes):
4760 * image.c (convert_mono_to_color_image, lookup_rgb_color)
4761 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
4762 * sound.c (be2hs, do_play_sound):
4763 * vm-limit.c (get_lim_data, ret_lim_data):
4764 * w32term.c (x_free_frame_resources):
4765 * xfaces.c (x_create_gc, x_free_gc):
4766 Convert definitions to standard C.
4767
d5273788
SM
47682010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
4769
4770 * eval.c (Feval, Ffuncall): Use the new names.
4771
4772 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
4773 (DEFUN): Add braces around the union initialisation and use ## to
4774 specify the right union alternative and avoid a cast.
4775
8d16a259
JB
47762010-07-18 Juanma Barranquero <lekktu@gmail.com>
4777
4778 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
4779
3b8eff32
CY
47802010-07-17 Chong Yidong <cyd@stupidchicken.com>
4781
4782 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
4783
499322ce
J
47842010-07-17 Jan Djärv <jan.h.d@swipnet.se>
4785
4786 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
4787 is related to the menu bar (Bug#6499).
a628ad9d 4788 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 4789
f6003da5 47902010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
4791
4792 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
4793
4794 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
4795
4796 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
4797 i.e. don't put back ButtonRelease (Bug#6608).
4798
4799 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
4800 instead of Window. Call xg_event_is_for_menubar when
4801 USE_GTK (Bug#6499).
4802
4803 * gtkutil.h (xg_event_is_for_menubar): Declare.
4804
4805 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
4806
f6003da5 48072010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
4808
4809 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
4810 when it's the same as the old foreground. (Bug#6609)
4811
23243f29
J
48122010-07-16 Jan Djärv <jan.h.d@swipnet.se>
4813
4814 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
4815 widget is non-null (Bug#6645).
4816
2b23d2a6
AS
48172010-07-15 Andreas Schwab <schwab@linux-m68k.org>
4818
01b564ff
AS
4819 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
4820 Convert old-style definition.
4821
2b23d2a6
AS
4822 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
4823 timestamp argument.
4824
c4affd2c
EZ
48252010-07-15 Eli Zaretskii <eliz@gnu.org>
4826
4827 * fringe.c (update_window_fringes): Restore mistakenly reverted
4828 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
4829
cf28cebc
J
48302010-07-14 Jan Djärv <jan.h.d@swipnet.se>
4831
4832 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
4833 (SET_SAVED_KEY_EVENT): Remove (not used).
4834 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
4835 remove size parameter.
4836 (handle_one_xevent): Check popup_activated () for menu for Xt also.
4837 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
4838 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
4839 ButtonRelease.
6b2c4bd9
J
4840 (x_set_window_size_1): scroll_bar_actual_width is always
4841 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
4842
4843 * xdisp.c (pending_menu_activation): Remove extern declaration.
4844 (prepare_menu_bars): Remove setting of pending_menu_activation.
4845
4846 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
4847 (x_activate_menubar): Set popup_activated_flag for Xt also.
4848 Remove setting of pending_menu_activation.
cf28cebc
J
4849 (set_frame_menubar): Remove check of pending_menu_activation.
4850 Declare menubar_size before code. Correct spelling in comment.
4851
f6c1c771
KH
48522010-07-14 Kenichi Handa <handa@m17n.org>
4853
4854 * font.c (font_open_entity): Cancel previous change.
4855 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
4856
20477505
EZ
48572010-07-13 Eli Zaretskii <eliz@gnu.org>
4858
77defa9a
EZ
4859 Remove subprocesses #ifdefs.
4860 * process.c <inhibit_sentinels>: Move to the common part.
4861 (Fwaiting_for_user_input_p): Move to the common part; return nil
4862 if async subprocesses aren't supported.
4863 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
4864 MS-DOS. Remove "#ifdef subprocesses".
4865 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
4866 (gettimeofday): Remove "#ifdef subprocesses".
4867 (wait_without_blocking): Remove function.
4868 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
4869 Remove "#ifdef subprocesses".
4870 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
4871 compiled on MS-DOS.
4872 * callproc.c (Fcall_process) [!MSDOS]: Don't call
4873 wait_for_termination on MS-DOS.
4874 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
4875 initialization of inhibit_sentinels.
4876 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
4877 subprocesses" conditional.
4878 * callproc.c (Fcall_process) [!subprocesses]: Don't call
4879 wait_for_termination, since `buffer' cannot be an integer when
4880 async subprocesses are not supported
4881 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
4882 for ifdefing away the call to Fprocess_status.
4883
20477505
EZ
4884 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
4885 away the entire body of the function.
4886
b3ffc17c
DN
48872010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
4888
01faa934
DN
4889 Remove subprocesses #ifdefs from term.c.
4890 * process.c (add_keyboard_wait_descriptor)
4891 (delete_keyboard_wait_descriptor): Move to common section, do
4892 nothing when subprocesses is not defined.
a628ad9d
JB
4893 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
4894 Remove subprocesses #ifdefs.
01faa934 4895
b3ffc17c
DN
4896 Convert maybe_fatal to standard C.
4897 * lisp.h (verror): Declare.
4898 * eval.c (verror): New function containing the code from ...
4899 (error): ... this. Call verror.
4900 * term.c (vfatal): New function containing the code from ...
4901 (fatal): ... this. Call vfatal.
4902 (maybe_fatal): Convert to standard C, use variable number of
4903 arguments. Declare as non-return.
4904 (init_tty): Fix maybe_fatal call.
4905
0521f580
DN
49062010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
4907
4908 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
4909 (_scroll_bar_note_movement): Convert definitions to standard C.
4910 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
4911 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
4912
ebd15611
DN
49132010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
4914
4915 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
4916 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
4917 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
4918 (xaw_jump_callback, xaw_scroll_callback)
4919 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
bba3e508
SM
4920 (x_wm_set_size_hint, x_activate_timeout_atimer):
4921 Convert definitions to standard C.
ebd15611
DN
4922 * xmenu.c (menubar_id_to_frame, popup_get_selection)
4923 (popup_activate_callback, popup_deactivate_callback)
4924 (menu_highlight_callback, menubar_selection_callback)
4925 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
4926 (free_frame_menubar, popup_selection_callback, as)
4927 (create_and_show_popup_menu, dialog_selection_callback)
4928 (create_and_show_dialog):
4929 * xfns.c (hack_wm_protocols, x_window):
4930 * xfaces.c (x_update_menu_appearance):
4931 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
4932 (char_to_pixel_size, round_size_to_char, get_wm_shell)
4933 (set_frame_size, update_wm_hints, setup_frame_gcs)
4934 (update_various_frame_slots, update_from_various_frame_slots)
4935 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
4936 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
4937 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
4938
de06a2dd
AS
49392010-07-12 Andreas Schwab <schwab@linux-m68k.org>
4940
a628ad9d 4941 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 4942
fc549af9
EZ
49432010-07-12 Eli Zaretskii <eliz@gnu.org>
4944
4945 * process.c (setup_process_coding_systems): Move to the part
4946 shared by non-subprocesses systems, and make its body empty when
4947 subprocesses is not defined.
4948 (close_process_descs): Move to the part shared by non-subprocesses
4949 systems.
1408902e
EZ
4950 (wait_reading_process_output) [!subprocesses]: Convert arg list to
4951 ANSI C.
fc549af9 4952
d5a3eaaf
AS
49532010-07-12 Andreas Schwab <schwab@linux-m68k.org>
4954
4955 * editfns.c (transpose_markers): Convert old-style definition.
4956 * emacs.c (abort, shut_down_emacs, fixup_locale)
4957 (synchronize_system_time_locale)
4958 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
4959 * floatfns.c (extract_float, matherr, init_floatfns)
4960 (syms_of_floatfns): Likewise.
4961 * fns.c (make_hash_table): Likewise.
4962 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
4963 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
4964 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
4965 (ftfont_variation_glyphs): Likewise.
4966 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
4967 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
4968 * lread.c (read_filtered_event): Likewise.
4969 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
4970 * process.c (wait_reading_process_output): Likewise.
4971 * scroll.c (do_line_insertion_deletion_costs): Likewise.
4972 * search.c (search_buffer, boyer_moore): Likewise.
4973 * syntax.c (scan_sexps_forward): Likewise.
4974 * xdisp.c (try_scrolling): Likewise.
4975 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
4976 (face_at_string_position): Likewise.
4977 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
4978 * xselect.c (x_get_window_property, receive_incremental_selection)
4979 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
4980 Likewise.
4981 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
4982
6f704c76
DN
49832010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
4984
ded80a25
DN
4985 * callproc.c (child_setup): Remove subprocesses conditional.
4986 Remove code dealing with SET_EMACS_PRIORITY, unused.
4987
49d937f4 4988 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
4989 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
4990
4991 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
4992 (__do_global_dtors, __main): Use void in definition.
4993 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
4994 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
4995 the only users from ...
4996 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
4997 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
4998 (HAVE_VOLATILE): Remove, unused.
4999
6f704c76
DN
5000 Convert more function definitions to standard C.
5001 * xdisp.c (window_box_edges, handle_single_display_spec)
5002 (display_string): Convert definition to standard C.
5003 * scroll.c (do_direct_scrolling, scrolling_1):
5004 * dispnew.c (allocate_matrices_for_frame_redisplay)
5005 (mirrored_line_dance):
5006 * coding.c (code_convert_string):
5007 * charset.c (map_charset_chars):
5008 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
5009 (Fregister_ccl_program, Fregister_code_conversion_map):
5010 * keyboard.c (kbd_buffer_nr_stored): Likewise.
5011 (head_table): Make static and const.
5012
e6cfa7c3
AS
50132010-07-12 Andreas Schwab <schwab@linux-m68k.org>
5014
5015 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
5016 (PROFILING_LDFLAGS): Set from substitution.
5017 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
5018 CFLAGS last.
5019
892dd565
KH
50202010-07-12 Kenichi Handa <handa@m17n.org>
5021
6f2cdcd1
KH
5022 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
5023 (shortlisp): Likewise.
5024
892dd565
KH
5025 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
5026
5027 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
5028 of FONT_ENTITY_INDEX.
5029 (Ffont_get): If KEY is :otf and the font-object doesn't have the
5030 property, get the property value dynamically.
5031 (Ffont_put): Accept font-entity and font-object too.
ef1b0ba7 5032 (Ffont_get_glyhphs): Rename from Fget_font_glyphs. Arguments and
892dd565 5033 return value changed.
bba3e508 5034 (syms_of_font): Adjust for the above change.
892dd565 5035
ae96d47a
AS
50362010-07-11 Andreas Schwab <schwab@linux-m68k.org>
5037
c8fc18ee
AS
5038 * blockinput.h: Remove obsolete comment.
5039
89887d67
AS
5040 * lisp.h: Include <stddef.h>.
5041 (OFFSETOF): Don't define.
5042 (VECSIZE): Use offsetof instead of OFFSETOF.
5043 (PSEUDOVECSIZE): Likewise.
5044 * process.c (conv_sockaddr_to_lisp): Likewise.
5045 * alloc.c: Don't include <stddef.h>.
5046 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
5047
ae96d47a
AS
5048 * process.c: Remove obsolete comment.
5049
635c0aa1
CY
50502010-07-11 Chong Yidong <cyd@stupidchicken.com>
5051
5052 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
5053
a64df650
AS
50542010-07-11 Andreas Schwab <schwab@linux-m68k.org>
5055
8966b757
AS
5056 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
5057 index, rindex.
5058 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
5059 * editfns.c (Fuser_full_name, Fformat): Likewise.
5060 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
5061 * fileio.c (Ffile_symlink_p): Likewise.
5062 * filelock.c (current_lock_owner): Likewise.
5063 * font.c (font_parse_name, font_parse_family_registry): Likewise.
5064 * fontset.c (fontset_pattern_regexp): Likewise.
5065 * lread.c (read1): Likewise.
5066 * sysdep.c (init_system_name): Likewise.
5067 * xfns.c (select_visual): Likewise.
5068 * s/hpux10-20.h (index, rindex): Don't define.
5069 * s/ms-w32.h (index): Likewise.
5070 * s/usg5-4.h: Likewise.
5071
cf237e27
AS
5072 * callproc.c (relocate_fd): Use F_DUPFD if defined.
5073
a8fe7202
AS
5074 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
5075 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
5076 (egetenv): Likewise.
5077 * doprnt.c (doprnt): Likewise.
5078 * editfns.c (set_time_zone_rule, format2): Likewise.
5079 * emacs.c (decode_env_path): Likewise.
5080 * eval.c (signal_error, error): Likewise.
5081 * insdel.c (replace_range_2): Likewise.
5082 * keyboard.c (cmd_error_internal): Likewise.
5083 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
5084 * print.c (write_string, write_string_1, print_error_message):
5085 Likewise.
5086 * vm-limit.c (warn_function, memory_warnings): Likewise.
5087 * xdisp.c (message1, message1_nolog, message_with_string)
5088 (vmessage, message, message_nolog): Likewise.
5089 * emacs.c: Remove duplicate declaration.
5090 * keyboard.h: Likewise.
5091 * lisp.h: Update prototypes.
5092
bb8e180f
AS
5093 * eval.c: Fix indentation problem.
5094
83380e65
AS
5095 * keyboard.c: Include "process.h"
5096
a64df650
AS
5097 * eval.c: Remove obsolete noinline declaration.
5098 * fns.c: Likewise.
5099
6a8033e1
KR
51002010-07-11 Ken Raeburn <raeburn@raeburn.org>
5101
5102 * doprnt.c (doprnt): Take a va_list argument instead of count and
5103 pointer.
5104 * eval.c (error): Change to a standard-C variadic function.
ef1b0ba7 5105 * xdisp.c (vmessage): Rename from message, made static, and
6a8033e1
KR
5106 changed to take a va_list argument.
5107 (message): New variadic wrapper.
5108 (message_nolog): Now a variadic function, calling vmessage.
5109 * lisp.h: Include stdarg.h for va_list.
5110 (doprnt, error, message, message_nolog): Decls updated.
5111
462aa963
EZ
51122010-07-11 Eli Zaretskii <eliz@gnu.org>
5113
5114 * process.c (syms_of_process) <delete-exited-processes>: Define
5115 even if !subprocesses.
5116 (delete_exited_processes): Ditto.
5117
5118 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
5119 (delete_exited_processes): Don't define.
5120
48104462
CY
51212010-07-10 Chong Yidong <cyd@stupidchicken.com>
5122
5123 * frame.c (make_frame): Initialize menu_bar_lines and
5124 tool_bar_lines members.
bba3e508
SM
5125 (make_initial_frame, make_terminal_frame):
5126 Initialize menu_bar_lines using value of menu-bar-mode.
48104462
CY
5127
5128 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
5129
f388c88a
EZ
51302010-07-10 Eli Zaretskii <eliz@gnu.org>
5131
5132 * process.c: Reshuffle #include's. Condition some of the global
5133 and static variables on `subprocesses'.
5134 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
5135 Leave only one implementation.
5136 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
5137 (kill_buffer_processes, Flist_system_processes)
5138 (Fprocess_attributes, init_process, syms_of_process): Unify the
5139 implementations for with subprocesses and without them.
5140
723f5a07
J
51412010-07-09 Jan Djärv <jan.h.d@swipnet.se>
5142
5143 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
5144 correct size for Motif.
5145 (free_frame_menubar): Call x_set_window_size to update frame size.
5146
5147 * xfns.c (x_window): Set borderWidth to 0 for pane and
5148 EmacsFrame. Frame size calculation is wrong otherwise.
5149
2536a4b7
MA
51502010-07-09 Michael Albinus <michael.albinus@gmx.de>
5151
5152 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
5153 allows to suppress errors when polling in Emacs' main loop.
5154 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
5155 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
5156 (Fdbus_method_error_internal, Fdbus_send_signal)
5157 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
5158 (Fdbus_register_method): Use it. (Bug#6579)
5159
5842a27b
DN
51602010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
5161
5162 * alloc.c: Convert DEFUNs to standard C.
5163 * buffer.c:
5164 * bytecode.c:
5165 * callint.c:
5166 * callproc.c:
5167 * casefiddle.c:
5168 * casetab.c:
5169 * category.c:
5170 * character.c:
5171 * charset.c:
5172 * chartab.c:
5173 * cmds.c:
5174 * coding.c:
5175 * composite.c:
5176 * data.c:
5177 * dbusbind.c:
5178 * dired.c:
5179 * dispnew.c:
5180 * doc.c:
5181 * dosfns.c:
5182 * editfns.c:
5183 * emacs.c:
5184 * eval.c:
5185 * fileio.c:
5186 * filelock.c:
5187 * floatfns.c:
5188 * fns.c:
5189 * font.c:
5190 * fontset.c:
5191 * frame.c:
5192 * fringe.c:
5193 * image.c:
5194 * indent.c:
5195 * insdel.c:
5196 * keyboard.c:
5197 * keymap.c:
5198 * lread.c:
5199 * macros.c:
5200 * marker.c:
5201 * menu.c:
5202 * minibuf.c:
5203 * msdos.c:
5204 * nsfns.m:
5205 * nsmenu.m:
5206 * nsselect.m:
5207 * print.c:
5208 * process.c:
5209 * search.c:
5210 * sound.c:
5211 * syntax.c:
5212 * term.c:
5213 * terminal.c:
5214 * textprop.c:
5215 * undo.c:
5216 * w16select.c:
5217 * w32console.c:
5218 * w32fns.c:
5219 * w32font.c:
5220 * w32menu.c:
5221 * w32proc.c:
5222 * w32select.c:
5223 * window.c:
5224 * xdisp.c:
5225 * xfaces.c:
5226 * xfns.c:
5227 * xmenu.c:
5228 * xselect.c:
5229 * xsettings.c:
5230 * xsmfns.c: Likewise.
5231
d568829b
EZ
52322010-07-08 Eli Zaretskii <eliz@gnu.org>
5233
5234 * process.c (kbd_is_on_hold, hold_keyboard_input)
5235 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
5236
52214050
J
52372010-07-08 Jan Djärv <jan.h.d@swipnet.se>
5238
5239 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
5240 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
5241 unless USE_LUCID.
5242
313d9eb2
DN
52432010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
5244
a628ad9d
JB
5245 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
5246 declaration.
d8825aa3 5247
295d0d8f
DN
5248 Clean up include guards.
5249 * tparam.c: Remove include guards for config.h, string.h and code
5250 that assumes #ifndef emacs.
5251 * termcap.c:
5252 * unexalpha.c:
5253 * sysdep.c:
5254 * filemode.c:
5255 * filelock.c:
5256 * bidi.c: Likewise.
5257
49d9e6b0
DN
5258 Remove prefix-args.c
5259 * prefix-args.c: Remove file.
5260 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
5261 * Makefile.in (temacs${EXEEXT}): Remove references to
5262 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
5263 (mostlyclean): Remove reference to prefix-args.
5264 (prefix-args): Remove.
5265
313d9eb2
DN
5266 Simplify cstart_of_data, start_of_code and related code.
5267 * mem-limits.h: Remove !emacs and _LIBC conditional code.
5268 (start_of_data): Merge into start_of_data function.
5269 * sysdep.c (start_of_text): Remove. Move simplified versions of
5270 it in the only users: unexaix.c and unexec.c.
5271 (read_input_waiting): Remove local declaration of quit_char.
5272 (start, etext): Remove declarations.
5273 (start_of_data): Merge with the version in mem-limits.h and move
5274 to vm-limits.c.
5275 * vm-limit.c (start_of_data): Merged and simplified version of the
5276 code formerly in mem-limits.h and sysdep.c.
5277 * unexec.c (start): New declaration, moved from sysdep.c.
5278 (start_of_text): Simplified version of the code formerly in sysdep.c.
5279 * unexaix.c (start_of_text): Simplified version of the code
5280 formerly in sysdep.c.
5281 * m/alpha.h (HAVE_TEXT_START): Remove.
5282 (TEXT_START): Move ...
5283 * unexalpha.c (TEXT_START): ... here.
5284 * s/hpux10-20.h (TEXT_START): Remove.
5285 * s/darwin.h (TEXT_START):
5286 * m/mips.h (TEXT_START):
5287 * m/macppc.h (HAVE_TEXT_START):
5288 * m/m68k.h (TEXT_START):
5289 * m/iris4d.h (TEXT_START):
5290 * m/intel386.h (TEXT_START):
5291 * m/ibmrs6000.h (TEXT_START):
5292 * m/ia64.h (HAVE_TEXT_START):
5293 * s/msdos.h (TEXT_START): Likewise.
5294
72af86bd
AS
52952010-07-07 Andreas Schwab <schwab@linux-m68k.org>
5296
5297 * alloc.c (overrun_check_malloc, overrun_check_realloc)
5298 (overrun_check_free, xstrdup, allocate_string)
5299 (allocate_string_data, compact_small_strings, Fmake_string)
5300 (make_unibyte_string, make_multibyte_string)
5301 (make_string_from_bytes, make_specified_string, make_float)
5302 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
5303 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
5304 memcpy, memmove, memset, memcmp.
5305 * atimer.c (start_atimer, set_alarm): Likewise.
5306 * buffer.c (clone_per_buffer_values, report_overlay_modification)
5307 (mmap_realloc, init_buffer_once): Likewise.
5308 * callint.c (Fcall_interactively): Likewise.
5309 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
5310 (getenv_internal_1): Likewise.
5311 * casefiddle.c (casify_object): Likewise.
5312 * ccl.c (ccl_driver): Likewise.
5313 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
5314 * charset.c (load_charset_map_from_file)
5315 (load_charset_map_from_file, load_charset_map_from_vector)
5316 (Fdefine_charset_internal): Likewise.
5317 * cm.c (Wcm_clear): Likewise.
5318 * coding.c (decode_eol, decode_coding_object)
5319 (Fset_coding_system_priority, make_subsidiaries): Likewise.
5320 * data.c (Faset): Likewise.
5321 * dired.c (directory_files_internal, file_name_completion_stat):
5322 Likewise.
5323 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
5324 (clear_glyph_row, copy_row_except_pointers)
5325 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
5326 (save_current_matrix, restore_current_matrix)
5327 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
5328 (mirror_line_dance, scrolling_window): Likewise.
5329 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
5330 Likewise.
5331 * doprnt.c (doprnt): Likewise.
5332 * editfns.c (Fuser_full_name, make_buffer_string_both)
5333 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
5334 * emacs.c (sort_args): Likewise.
5335 * eval.c (Fapply, Ffuncall): Likewise.
5336 * fileio.c (Ffile_name_directory, make_temp_name)
5337 (Fexpand_file_name, search_embedded_absfilename)
5338 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
5339 (auto_save_error): Likewise.
5340 * fns.c (Fstring_equal, Fcopy_sequence, concat)
5341 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
5342 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
5343 (Fmake_hash_table): Likewise.
5344 * fringe.c (Fdefine_fringe_bitmap): Likewise.
5345 * ftfont.c (ftfont_text_extents): Likewise.
5346 * getloadavg.c (getloadavg): Likewise.
5347 * image.c (define_image_type, make_image, make_image_cache)
5348 (x_create_x_image_and_pixmap, xbm_image_p)
5349 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
5350 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
5351 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
5352 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
5353 (tiff_image_p, tiff_read_from_memory, gif_image_p)
5354 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
5355 Likewise.
5356 * indent.c (scan_for_column, compute_motion): Likewise.
5357 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
5358 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
5359 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
5360 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
5361 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
5362 (store_user_signal_events, menu_bar_items, tool_bar_items)
5363 (process_tool_bar_item, append_tool_bar_item)
5364 (read_char_minibuf_menu_prompt, read_key_sequence)
5365 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
5366 Likewise.
5367 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
5368 Likewise.
5369 * lisp.h (STRING_COPYIN): Likewise.
5370 * lread.c (Fload, read1, oblookup): Likewise.
5371 * msdos.c (Frecent_doskeys): Likewise.
5372 * nsfns.m (Fx_create_frame): Likewise.
5373 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
5374 Likewise.
5375 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
5376 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
5377 Likewise.
5378 * nsmenu.m (ns_update_menubar): Likewise.
5379 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
5380 * print.c (print_unwind, printchar, strout, print_string)
5381 (print_error_message): Likewise.
5382 * process.c (conv_lisp_to_sockaddr, set_socket_option)
5383 (Fmake_network_process, Fnetwork_interface_list)
5384 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
5385 (init_process): Likewise.
5386 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
5387 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
5388 Likewise.
5389 * scroll.c (do_scrolling, do_direct_scrolling)
5390 (scrolling_max_lines_saved): Likewise.
5391 * search.c (search_buffer, wordify, Freplace_match): Likewise.
5392 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
5393 * syntax.c (skip_chars, skip_syntaxes): Likewise.
5394 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
5395 (emacs_set_tty): Likewise.
5396 * term.c (encode_terminal_code, calculate_costs)
5397 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
5398 Likewise.
5399 * termcap.c (tgetst1, gobble_line): Likewise.
5400 * termhooks.h (EVENT_INIT): Likewise.
5401 * tparam.c (tparam1): Likewise.
5402 * unexalpha.c (unexec): Likewise.
5403 * unexec.c (write_segment): Likewise.
5404 * unexmacosx.c (unexec_write_zero): Likewise.
5405 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
5406 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
5407 * w32font.c (w32font_list_family, w32font_text_extents)
5408 (w32font_list_internal, w32font_match_internal)
5409 (w32font_open_internal, compute_metrics, Fx_select_font):
5410 Likewise.
5411 * w32menu.c (set_frame_menubar, add_menu_item)
5412 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
5413 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
5414 * w32uniscribe.c (uniscribe_list_family): Likewise.
5415 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
5416 * window.c (make_window, replace_window, set_window_buffer)
5417 (Fsplit_window): Likewise.
5418 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
5419 (add_to_log, message3, x_consider_frame_title)
5420 (append_space_for_newline, extend_face_to_end_of_line)
5421 (decode_mode_spec_coding, init_glyph_string): Likewise.
5422 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
5423 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
5424 (face_attr_equal_p, make_realized_face, make_face_cache)
5425 (free_realized_faces, lookup_named_face, smaller_face)
5426 (face_with_height, lookup_derived_face)
5427 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
5428 (Finternal_set_font_selection_order, realize_default_face)
5429 (compute_char_face, face_at_buffer_position)
5430 (face_for_overlay_string, face_at_string_position, merge_faces):
5431 Likewise.
5432 * xfns.c (xic_create_fontsetname, Fx_create_frame)
5433 (Fx_window_property, x_create_tip_frame)
5434 (Fx_backspace_delete_keys_p): Likewise.
5435 * xfont.c (xfont_list, xfont_match, xfont_list_family)
5436 (xfont_text_extents): Likewise.
5437 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
5438 * xrdb.c (magic_file_p, x_get_resource): Likewise.
5439 * xselect.c (x_queue_event, x_get_window_property)
5440 (receive_incremental_selection): Likewise.
5441 * xsmfns.c (x_session_check_input): Likewise.
5442 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
5443 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
5444 Likewise.
5445 * character.h (BCOPY_SHORT): Removed.
5446 * config.in: Regenerate.
5447 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
5448 * emacs.c (main) [PROFILING]: Don't declare
5449 dump_opcode_frequencies.
5450 * lisp.h (safe_bcopy): Remove declaration.
5451 (memset) [!HAVE_MEMSET]: Declare.
5452 (memcpy) [!HAVE_MEMCPY]: Likewise.
5453 (memmove) [!HAVE_MEMMOVE]: Likewise.
5454 (memcmp) [!HAVE_MEMCMP]: Likewise.
5455 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
5456 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
5457 Don't define.
5458 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
5459 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
5460 (BCOPY_DOWNWARD_SAFE): Don't define.
5461 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
5462 (memcpy) [!HAVE_MEMCPY]: Define.
5463 (memmove) [!HAVE_MEMMOVE]: Define.
5464 (memcmp) [!HAVE_MEMCMP]: Define.
5465
cb768704
J
54662010-07-07 Jan Djärv <jan.h.d@swipnet.se>
5467
5468 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
5469 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
5470 New functions.
cb768704
J
5471 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
5472 select on empty input mask.
5473 (init_process): Initialize kbd_is_on_hold to 0.
5474
5475 * process.h (hold_keyboard_input, unhold_keyboard_input)
5476 (kbd_on_hold_p): Declare.
5477
5478 * keyboard.c (input_available_signal): Declare.
5479 (kbd_buffer_nr_stored): New function.
5480 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
5481 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
5482 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
5483 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
5484 (tty_read_avail_input): If input is on hold, return.
5485 Don't read more that free slots in kbd_buffer (Bug#6571).
5486
3a8ce822
EZ
54872010-07-07 Eli Zaretskii <eliz@gnu.org>
5488
5489 * msdos.h:
5490 * msdos.c:
5491 * dosfns.c:
5492 * w16select.c: Convert function definitions to ANSI C.
5493
a628ad9d
JB
5494 * msdos.h (ctrl_break_func, install_ctrl_break_check):
5495 Remove unused prototypes.
3a8ce822 5496
cf84bb53
JB
54972010-07-07 Juanma Barranquero <lekktu@gmail.com>
5498
5499 * coding.c, sysdep.c: Convert some more functions to standard C.
5500
1a4990fb
JB
55012010-07-07 Juanma Barranquero <lekktu@gmail.com>
5502
5503 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
5504 (encode_coding_object): Use SPECPDL_INDEX.
5505 (syms_of_coding): Use DOS_NT.
5506
c0f2f16b
DN
55072010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
5508
48fb6855
DN
5509 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
5510
c0f2f16b
DN
5511 Make the function member of Lisp_Subr use standard C prototypes.
5512 * lisp.h (struct Lisp_Subr): Use a union for the function member.
5513 (DECL_ALIGN): Add a cast for the function.
5514 * eval.c (Feval, Ffuncall): Use the proper type for each type
5515 function call.
5516
67aecef9
CY
55172010-07-06 Chong Yidong <cyd@stupidchicken.com>
5518
5519 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
5520 fringe face id, so face-remapping-alist works (Bug#6091).
5521
b56ceb92
JB
55222010-07-06 Juanma Barranquero <lekktu@gmail.com>
5523
5524 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
5525 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
5526 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
5527
7af07b96
AS
55282010-07-06 Andreas Schwab <schwab@linux-m68k.org>
5529
5530 * xterm.c (x_get_keysym_name): Change type of parameter to int.
5531 * lisp.h: Declare x_get_keysym_name.
5532 * keyboard.c (modify_event_symbol): Don't declare
5533 x_get_keysym_name here.
5534
69e24e34
DN
55352010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
5536
5537 * ecrt0.c: Revert conversion to standard C.
5538
d3da34e0 55392010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
5540
5541 * vm-limit.c (memory_warnings):
5542 * keyboard.c (modify_event_symbol):
5543 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
5544 (round2, emacs_rint):
5545 * process.c (send_process, old_sigpipe): Convert function
5546 definitions and declarations to standard C.
5547
55482010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
5549
5550 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
5551 * xdisp.c: Convert function definitions to standard C.
5552
5553 * cm.c (cmputc): Arg C is now int, not char.
5554 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
5555
00be444c
J
55562010-07-05 James Cloos <cloos@jhcloos.com>
5557
5558 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
5559
5560 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
5561 _NET_WM_ICON_NAME atoms.
5562
5563 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
5564 and _NET_WM_ICON_NAME properties, too, matching what is
5565 done in the Gtk+ case.
5566
e4c8d29a
J
55672010-07-05 Jan Djärv <jan.h.d@swipnet.se>
5568
ff919460
J
5569 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
5570
e4c8d29a
J
5571 * xsmfns.c (SSDATA): New macro.
5572 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
5573 passed to strlen/strcpy/strcat.
bba3e508
SM
5574 (create_client_leader_window): Surround with #ifndef USE_GTK.
5575 Cast 7:th arg to XChangeProperty to (unsigned char *).
e4c8d29a
J
5576
5577 * xsettings.c (something_changedCB, parse_settings)
5578 (apply_xft_settings): Reformat prototype.
5579 (something_changedCB, init_gconf): Remove unused variable i.
5580 (read_settings): Remove unused variable long_len.
5581
5582 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
5583 (xg_get_image_for_pixmap, create_dialog)
5584 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
5585 (menuitem_highlight_callback, make_menu_item)
5586 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
5587 (xg_create_scroll_bar, xg_update_scrollbar_pos)
5588 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
5589 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
5590 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
5591 (xg_tool_bar_item_expose_callback): Reformat prototype.
5592 (xg_update_menubar): GList *group => GSList *group.
5593 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
5594 before use.
5595 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
5596 to GTK_IMAGE (wimage).
5597
dd4c5104
DN
55982010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
5599
898b4c5c
DN
5600 * atimer.c: Use "" instead of <> for local includes for
5601 consistency with the rest of the code.
5602
dd4c5104
DN
5603 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
5604 * xrdb.c (get_system_name):
5605 * window.c (shrink_windows):
5606 * syntax.c (forw_comment):
5607 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
5608 (ins_del_costs):
5609 * mem-limits.h (start_of_data):
5610 * lread.c (readevalloop):
5611 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
5612 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
5613 * frame.c (x_get_focus_frame):
5614 * floatfns.c (fmod_float):
5615 * fileio.c (choose_write_coding_system):
5616 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
5617 (malloc_initialize_hook, sort_args, synchronize_locale):
5618 * doprnt.c (doprnt):
5619 * dired.c (compile_pattern):
5620 * data.c (fmod_float):
5621 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
5622 (map_char_table_for_charset):
5623 * charset.c (define_charset_internal):
5624 * alloc.c (Fgarbage_collect): Convert declarations or definitions
5625 to standard C.
5626
9a39b306 56272010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 5628 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
5629
5630 * lread.c (read1): Fix up last change to not mess up `c'.
5631
e6cb2cbb
JB
56322010-07-04 Juanma Barranquero <lekktu@gmail.com>
5633
5634 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
5635
438105ed
JB
56362010-07-04 Juanma Barranquero <lekktu@gmail.com>
5637
5638 Fix prototypes.
5639
e5447b22 5640 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 5641 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
5642 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
5643 arg, as required by internal_condition_case_1.
dcc7404b 5644 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
5645 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
5646 (analyse_first): Fix "const const".
e5447b22 5647 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 5648 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 5649 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 5650
971de7fb
DN
56512010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
5652
5653 * alloc.c: Convert function definitions to standard C.
5654 * atimer.c:
5655 * bidi.c:
5656 * bytecode.c:
5657 * callint.c:
5658 * callproc.c:
5659 * casefiddle.c:
5660 * casetab.c:
5661 * category.c:
5662 * ccl.c:
5663 * character.c:
5664 * charset.c:
5665 * chartab.c:
5666 * cmds.c:
5667 * coding.c:
5668 * composite.c:
5669 * data.c:
5670 * dbusbind.c:
5671 * dired.c:
5672 * dispnew.c:
5673 * doc.c:
5674 * doprnt.c:
5675 * ecrt0.c:
5676 * editfns.c:
5677 * fileio.c:
5678 * filelock.c:
5679 * filemode.c:
5680 * fns.c:
5681 * font.c:
5682 * fontset.c:
5683 * frame.c:
5684 * fringe.c:
5685 * ftfont.c:
5686 * ftxfont.c:
5687 * gtkutil.c:
5688 * indent.c:
5689 * insdel.c:
5690 * intervals.c:
5691 * keymap.c:
5692 * lread.c:
5693 * macros.c:
5694 * marker.c:
5695 * md5.c:
5696 * menu.c:
5697 * minibuf.c:
5698 * prefix-args.c:
5699 * print.c:
5700 * ralloc.c:
5701 * regex.c:
5702 * region-cache.c:
5703 * scroll.c:
5704 * search.c:
5705 * sound.c:
5706 * strftime.c:
5707 * syntax.c:
5708 * sysdep.c:
5709 * termcap.c:
5710 * terminal.c:
5711 * terminfo.c:
5712 * textprop.c:
5713 * tparam.c:
5714 * undo.c:
5715 * unexelf.c:
5716 * window.c:
5717 * xfaces.c:
5718 * xfns.c:
5719 * xfont.c:
5720 * xftfont.c:
5721 * xgselect.c:
5722 * xmenu.c:
5723 * xrdb.c:
5724 * xselect.c:
5725 * xsettings.c:
5726 * xsmfns.c:
5727 * xterm.c: Likewise.
5728
ae492bec
EZ
57292010-07-03 Eli Zaretskii <eliz@gnu.org>
5730
76ea4cc9
EZ
5731 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
5732 frames other than the initial one. Fix reversal of colors when
bba3e508
SM
5733 `reverse' is specified in the frame parameters.
5734 Call update_face_from_frame_parameter instead of
76ea4cc9
EZ
5735 internal-set-lisp-face-attribute. Initialize screen colors from
5736 initial_screen_colors[] when f->default_face_done_p is zero,
5737 instead of depending on being called with default-frame-alist as
5738 the alist argument.
5739
5740 * xfaces.c (update_face_from_frame_parameter): Move out of
5741 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
5742 with HAVE_WINDOW_SYSTEM.
5743
1e6255ae
EZ
5744 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
5745 to menu-bar-mode, if not set in the frame parameters or in
5746 default-frame-alist.
5747
ae492bec
EZ
5748 * w32console.c (sys_tputs): Adjust argument list to prototype in
5749 term.c.
5750
3a35a84c
JB
57512010-07-03 Juanma Barranquero <lekktu@gmail.com>
5752
5753 * lisp.h (memory_warnings): Fix prototype.
5754
5755 * cm.h (evalcost): Fix prototype.
5756
5757 * cm.c (evalcost): Fix arg type.
5758
c532d349
DN
57592010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
5760
5761 * term.c (term_clear_mouse_face, Fidentity):
5762 * syssignal.h (signal_handler_t):
5763 * lisp.h (memory_warnings):
5764 * coding.h (preferred_coding_system):
5765 * cm.h (evalcost):
5766 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
5767
c0b36d46
EZ
57682010-07-02 Eli Zaretskii <eliz@gnu.org>
5769
5770 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
5771 from prototypes.
5772
5773 * msdos.h (load_pixmap): Don't define away.
5774
383e0970
J
57752010-07-02 Jan Djärv <jan.h.d@swipnet.se>
5776
f57e2426
J
5777 * lisp.h:
5778 * atimer.h: Remove define for P_.
5779
5780 * alloc.c: Remove __P and P_ from .c and .m files.
5781 * atimer.c:
5782 * buffer.c:
5783 * callint.c:
5784 * category.c:
5785 * charset.c:
5786 * chartab.c:
5787 * cm.c:
5788 * coding.c:
5789 * composite.c:
5790 * data.c:
5791 * dired.c:
5792 * dispnew.c:
5793 * doc.c:
5794 * editfns.c:
5795 * emacs.c:
5796 * eval.c:
5797 * fileio.c:
5798 * filelock.c:
5799 * fns.c:
5800 * font.c:
5801 * fontset.c:
5802 * frame.c:
5803 * ftfont.c:
5804 * ftxfont.c:
5805 * gmalloc.c:
5806 * gtkutil.c:
5807 * image.c:
5808 * indent.c:
5809 * intervals.c:
5810 * keyboard.c:
5811 * keymap.c:
5812 * lread.c:
5813 * marker.c:
5814 * menu.c:
5815 * minibuf.c:
5816 * print.c:
5817 * process.c:
5818 * scroll.c:
5819 * search.c:
5820 * sound.c:
5821 * strftime.c:
5822 * syntax.c:
5823 * sysdep.c:
5824 * term.c:
5825 * terminal.c:
5826 * textprop.c:
5827 * unexalpha.c:
5828 * w32console.c:
5829 * w32fns.c:
5830 * w32font.c:
5831 * w32menu.c:
5832 * w32term.c:
5833 * w32uniscribe.c:
5834 * window.c:
5835 * xdisp.c:
5836 * xfaces.c:
5837 * xfns.c:
5838 * xfont.c:
5839 * xftfont.c:
5840 * xmenu.c:
5841 * xselect.c:
5842 * xterm.c: Likewise.
5843
383e0970 5844 Remove P_ and __P macros.
f57e2426
J
5845 * atimer.h: Remove P_ and __P macros.
5846 * buffer.h:
383e0970
J
5847 * category.h:
5848 * ccl.h:
5849 * character.h:
5850 * charset.h:
5851 * cm.h:
5852 * coding.h:
5853 * composite.h:
5854 * dispextern.h:
5855 * disptab.h:
9e892c8d 5856 * dosfns.h:
383e0970
J
5857 * font.h:
5858 * fontset.h:
5859 * frame.h:
5860 * gtkutil.h:
5861 * indent.h:
5862 * intervals.h:
5863 * keyboard.h:
5864 * keymap.h:
5865 * lisp.h:
5866 * macros.h:
5867 * md5.h:
5868 * menu.h:
5869 * msdos.h:
5870 * nsterm.h:
5871 * puresize.h:
5872 * region-cache.h:
5873 * syntax.h:
5874 * syssignal.h:
5875 * systime.h:
5876 * termhooks.h:
9e892c8d 5877 * w32font.h:
383e0970
J
5878 * w32term.h:
5879 * widget.h:
5880 * window.h:
5881 * xgselect.h:
5882 * xsettings.h:
5883 * xterm.h: Likewise.
5884
98601119
DN
58852010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
5886
d9170db5
DN
5887 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
5888
98601119
DN
5889 Cleanup old code.
5890 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
5891 * syssignal.h: Remove code for Lynx, not supported anymore.
5892 * vm-limit.c: Remove unused code the depends on emacs not being
5893 defined and NO_LIM_DATA being defined.
5894 * mem-limits.h: Remove dead code.
5895
1f984e12
J
58962010-07-01 Jan Djärv <jan.h.d@swipnet.se>
5897
c49d071a
J
5898 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
5899
9d5405ec
J
5900 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
5901 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
5902
7a18115b
J
5903 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
5904 parameters, they are already absolute.
5905
a628ad9d
JB
5906 * nsterm.m (x_set_window_size, initFrameFromEmacs):
5907 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 5908
a628ad9d 5909 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 5910
a628ad9d
JB
5911 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
5912 Update FRAME_TOOLBAR_HEIGHT.
581a8100 5913
a628ad9d
JB
5914 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
5915 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 5916
c1ef4455
CY
59172010-06-30 Chong Yidong <cyd@stupidchicken.com>
5918
bba3e508
SM
5919 * frame.c (get_future_frame_param, Fmake_terminal_frame):
5920 Don't check default-frame-alist.
c1ef4455 5921
ce8f5a9a
AS
59222010-06-30 Andreas Schwab <schwab@linux-m68k.org>
5923
5924 * process.c (create_process): Avoid using invalid file descriptors.
5925
5926 * callproc.c (child_setup): Avoid closing a file descriptor twice.
5927
bf935339
J
59282010-06-30 Jan Djärv <jan.h.d@swipnet.se>
5929
5930 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
5931 Improve documentation. Return font regardless of use_system_font.
5932 (syms_of_xsettings): Improve documentation for font-use-system-font.
5933
7c33a057
CY
59342010-07-10 Chong Yidong <cyd@stupidchicken.com>
5935
2ec1b5ee
CY
5936 * xfaces.c (realize_face): Garbage the frame if a face is removed
5937 (Bug#6593).
5938
59392010-07-05 Andreas Schwab <schwab@linux-m68k.org>
5940
5941 * keyboard.c: Remove duplicate <setjmp.h>.
5942 (read_key_sequence): Remove volatile qualifiers.
5943
59442010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5945
5946 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
5947 (struct glyph_row): New members left_fringe_offset and
5948 right_fringe_offset.
5949
5950 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
5951 specially.
5952 * w32term.c (w32_draw_fringe_bitmap): Likewise.
5953 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
5954
5955 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 5956 Take account of bitmap offset.
2ec1b5ee
CY
5957 (draw_window_fringes): Take account of window vscroll.
5958 (update_window_fringes): Likewise. Extend top-aligned top indicator
5959 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
5960 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
5961 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
5962
59632010-07-04 Juanma Barranquero <lekktu@gmail.com>
5964
5965 * w32fns.c (Qtooltip): Declare.
5966 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
5967
59682010-07-03 Jan Djärv <jan.h.d@swipnet.se>
5969
5970 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
5971 grab on just Press (Bug#6499).
5972
59732010-07-02 Chong Yidong <cyd@stupidchicken.com>
5974
5975 * frame.c (Qtooltip): New var.
5976 (delete_frame): Use it. Fix faulty if statement. Don't update
5977 mode line for tooltip frames. Suggested by Martin Rudalics.
5978
5979 * xfns.c (x_create_tip_frame):
5980 * w32fns.c (x_create_tip_frame): Use it.
5981
59822010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
5983
5984 * xftfont.c (xftfont_open): Check font width one by one also when
5985 spacing is dual.
5986
5987 * ftfont.c (ftfont_open): Ditto.
5988
6259c2ec
GM
59892010-06-30 Glenn Morris <rgm@gnu.org>
5990
a46007e9
GM
5991 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
5992
6259c2ec
GM
5993 * Makefile.in (CANNOT_DUMP): Update for configure name change.
5994
5995 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
5996 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
5997 * s/darwin.h (SYSTEM_MALLOC):
5998 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
5999
5d1d3d04
J
60002010-06-29 Jan Djärv <jan.h.d@swipnet.se>
6001
6002 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
6003 (ns_get_screen): Don't assign integer to f.
6004 (Fx_display_color_cells): Declarations before statements.
6005
e547b051
J
60062010-06-28 Jan Djärv <jan.h.d@swipnet.se>
6007
5fc8e5bc
J
6008 * xfns.c (x_default_font_parameter): Remove got_from_system
6009 (Bug#6526).
6010
e547b051 6011 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
bba3e508
SM
6012 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper):
6013 New defines based on what configure finds.
e547b051
J
6014
6015 * xterm.c (XTflash): Use gtk_widget_get_window.
6016 (xg_scroll_callback): Use gtk_adjustment_get_upper and
6017 gtk_adjustment_get_page_size.
6018 (handle_one_xevent): Use gtk_widget_get_mapped.
6019 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
6020 messages.
6021
6022 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
6023
6024 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
6025 HAVE_GTK_FILE_SELECTION_NEW.
6026
bba3e508
SM
6027 * gtkutil.c (xg_display_open, xg_display_close):
6028 Remove HAVE_GTK_MULTIDISPLAY, it is always defined.
e547b051
J
6029 (xg_display_open): Return type is void.
6030 (gtk_widget_set_has_window)
6031 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
6032 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
6033 (gtk_adjustment_set_page_increment)
6034 (gtk_adjustment_get_step_increment): #define these if not found
6035 by configure.
6036 (remove_submenu): New define based on Gtk+ version.
bba3e508
SM
6037 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar):
6038 Use gtk_widget_get_window.
e547b051
J
6039 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
6040 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
6041 (create_dialog): Use gtk_dialog_get_action_area and
6042 gtk_dialog_get_content_area.
6043 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
6044 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
6045 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
bba3e508
SM
6046 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item):
6047 Use g_object_ref and g_object_unref.
6048 (xg_update_menu_item, xg_tool_bar_menu_proxy):
6049 Use gtk_widget_get_sensitive.
e547b051
J
6050 (xg_update_submenu): Use remove_submenu.
6051 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
6052 properties instead to get old x and y position.
6053 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
6054 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 6055 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
6056 (xg_get_tool_bar_widgets): New function.
6057 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
6058 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
6059 (toolbar_set_orientation): New #define based on if configure
6060 finds gtk_orientable_set_orientation.
6061 (xg_create_tool_bar): Call toolbar_set_orientation.
6062 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
6063 instead of gtk_box_pack_start_defaults.
6064
b9229673
CY
60652010-06-28 Chong Yidong <cyd@stupidchicken.com>
6066
6067 * cmds.c (Fdelete_backward_char): Move into Lisp.
6068
bbc803b0
DN
60692010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
6070
6071 * s/freebsd.h (BSD4_2): Remove redundant definition.
6072 bsd-common.h defines it already.
6073
6431f2e6
CY
60742010-06-27 Chong Yidong <cyd@stupidchicken.com>
6075
6076 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
6077 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
6078 tool-bar-mode, which are now set using these X resources at
6079 startup, to determine the defaults (Bug#2249).
6080
6081 * w32fns.c (Fx_create_frame):
6082 * nsfns.m (Fx_create_frame): Likewise.
6083
6084 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
6085
8c079ebb
JB
60862010-06-24 Juanma Barranquero <lekktu@gmail.com>
6087
6088 * gtkutil.c (xg_update_scrollbar_pos):
6089 Avoid C99 mid-block variable declaration.
6090
e9b7ab96
JD
60912010-06-22 Jan Djärv <jan.h.d@swipnet.se>
6092
bc869eca
JD
6093 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
6094
2b7e356a 6095 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
6096
6097 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
6098 if height is less than scroll bar min size.
6099 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
6100
e9b7ab96
JD
6101 * xfns.c (x_default_font_parameter): Try to open font from system
6102 before using it (bug#6478). Rename got_from_gconf to got_from_system.
6103
a628ad9d 61042010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
6105
6106 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
6107
70c4cfbb
EZ
61082010-06-20 Eli Zaretskii <eliz@gnu.org>
6109
6110 * xdisp.c (try_scrolling): When scroll-conservatively is set to
6111 most-positive-fixnum, be extra accurate when scrolling window
6112 start, to avoid missing the cursor line.
6113
ad5a12b5
EZ
61142010-06-19 Eli Zaretskii <eliz@gnu.org>
6115
6116 * xdisp.c (try_scrolling): Compute the limit for searching point
6117 in forward scroll from scroll_max, instead of an arbitrary limit
ef1b0ba7
SM
6118 of 10 screen lines.
6119 See http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
ad5a12b5
EZ
6120 and
6121 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
6122 for details.
6123
2a64315a 61242010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
6125
6126 * editfns.c (Fbyte_to_string): Pacify compiler.
6127
288cf4e9
SM
61282010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
6129
6130 * lread.c (read1): Phase out old-style backquotes a bit more.
6131
6e6e5760
EZ
61322010-06-12 Eli Zaretskii <eliz@gnu.org>
6133
cbc4fd20
EZ
6134 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
6135 bidimirror.h.
6136
6137 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
6138
317fbf33
EZ
6139 * bidi.c (bidi_initialize): Remove explicit initialization of
6140 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 6141 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 6142 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
6143
6144 * biditype.h: New file.
6145
cbc4fd20
EZ
6146 * bidimirror.h: New file.
6147
6e6e5760
EZ
6148 * window.c (syms_of_window): Doc fix (bug#6409).
6149
4176cba2
RF
61502010-06-12 Romain Francoise <romain@orebokech.com>
6151
6152 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
6153 ediff-hook.
6154
cb4bfcb5
GM
61552010-06-10 Glenn Morris <rgm@gnu.org>
6156
64c60c2f
GM
6157 * editfns.c (Fbyte_to_string): Pacify compiler.
6158
cb4bfcb5
GM
6159 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
6160
2ec1b5ee
CY
61612010-06-26 Andreas Schwab <schwab@linux-m68k.org>
6162
6163 * alloc.c (Fmake_byte_code): Don't access undefined argument
6164 (Bug#6517).
6165
61662010-06-25 Chong Yidong <cyd@stupidchicken.com>
6167
6168 * xdisp.c (next_element_from_image): Ensure that after-strings are
6169 read the next time we hit handle_stop (Bug#1336).
6170
61712010-06-23 Andreas Schwab <schwab@linux-m68k.org>
6172
6173 * lread.c (read1): Signal error if #s is not followed by paren.
6174
61752010-06-19 Chong Yidong <cyd@stupidchicken.com>
6176
6177 * image.c (free_image): Mark frame as garbaged (Bug#6426).
6178
6179 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
6180
61812010-06-15 Glenn Morris <rgm@gnu.org>
6182
6183 * editfns.c (Fbyte_to_string): Pacify compiler.
6184
e454a4a3
SM
61852010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
6186
6187 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
6188 Check `object's type before accessing its guts.
6189
c1b1acc2
DN
61902010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
6191
6192 * s/usg5-4.h: Fix previous change.
6193 Suggested by Lawrence Mitchell <wence@gmx.li>
6194
657d4c0b
AS
61952010-06-08 Andreas Schwab <schwab@linux-m68k.org>
6196
6197 * minibuf.c (Fall_completions): Add more checks.
6198
9b27fd9f
JB
61992010-06-08 Juanma Barranquero <lekktu@gmail.com>
6200
6201 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
6202
a99ebb40
DN
62032010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
6204
d7c5d87d
DN
6205 * lread.c (X_OK): Remove, unused.
6206
0263a941
DN
6207 * dispnew.c: Remove obsolete comment.
6208
a99ebb40
DN
6209 Remove INCLUDED_FCNTL.
6210 * xterm.c (INCLUDED_FCNTL):
6211 * callproc.c (INCLUDED_FCNTL):
6212 * alloc.c (INCLUDED_FCNTL):
6213 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
6214 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
6215
13b5221f
MR
62162010-06-07 Martin Rudalics <rudalics@gmx.at>
6217
6218 * window.c (Fselect_window): Move `record_buffer' up to the
6219 beginning of this function, so the buffer gets recorded
6220 even if the selected window does not change.
6221 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
6222
5220357f
JB
62232010-06-07 Juanma Barranquero <lekktu@gmail.com>
6224
6225 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
6226 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
6227
3085237c
DN
62282010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
6229
6230 Remove BSTRING related code, all platforms define it.
6231 * s/usg5-4.h (BSTRING): Remove definition.
6232 * s/template.h (BSTRING):
6233 * s/msdos.h (BSTRING):
6234 * s/ms-w32.h (BSTRING):
6235 * s/hpux10-20.h (BSTRING):
6236 * s/gnu-linux.h (BSTRING):
6237 * s/darwin.h (BSTRING):
6238 * s/cygwin.h (BSTRING):
6239 * s/bsd-common.h (BSTRING):
6240 * s/aix4-2.h (BSTRING): Likewise.
6241 * sysdep.c: Remove code depending on BSTRING not being defined.
6242
409f2919
JB
62432010-06-05 Juanma Barranquero <lekktu@gmail.com>
6244
6245 Remove obsolete macro BASE_LEADING_CODE_P.
6246 * character.h (BASE_LEADING_CODE_P): Remove.
6247 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
6248 * buffer.c (Fset_buffer_multibyte):
6249 * indent.c (scan_for_column, compute_motion):
6250 * insdel.c (count_combining_before, count_combining_after):
6251 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
6252
087fc47a
JB
62532010-06-04 Juanma Barranquero <lekktu@gmail.com>
6254
6255 Turn `directory-sep-char' into a noop.
6256
6257 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
6258 (DIRECTORY_SEP): Define unconditionally.
6259
6260 * s/ms-w32.h (DIRECTORY_SEP): Remove.
6261
6262 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
6263 call dostounix_filename directly.
6264
6265 * fileio.c (CORRECT_DIR_SEPS): Remove.
6266 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
6267 (Fsubstitute_in_file_name): Use dostounix_filename instead.
6268 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
6269 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
6270
6271 * w32proc.c (CORRECT_DIR_SEPS): Remove.
6272 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
6273
0eb7675e
AS
62742010-06-03 Andreas Schwab <schwab@linux-m68k.org>
6275
a628ad9d
JB
6276 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
6277 (Bug#6346)
0eb7675e 6278
78edd3b7
JB
62792010-06-03 Juanma Barranquero <lekktu@gmail.com>
6280
6281 * ccl.c (Fccl_program_p): Fix typo in docstring.
6282
eb697db5
DN
62832010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
6284
6285 Move UNEXEC definition to autoconf.
6286 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
6287 * s/sol2-10.h (UNEXEC):
6288 * s/irix6-5.h (UNEXEC):
6289 * s/hpux10-20.h (UNEXEC):
6290 * s/gnu-linux.h (UNEXEC):
6291 * s/darwin.h (UNEXEC):
6292 * s/cygwin.h (UNEXEC):
6293 * s/bsd-common.h (UNEXEC):
6294 * s/aix4-2.h (UNEXEC):
6295 * m/alpha.h (UNEXEC): Likewise.
6296 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
6297
aa3830c4
JB
62982010-06-03 Juanma Barranquero <lekktu@gmail.com>
6299
6300 Remove obsolete pre-unicode2 macros.
6301 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
6302 * composite.c (composition_reseat_it):
6303 * data.c (Faset):
6304 * fns.c (Ffillarray):
6305 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
6306 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
6307
d234d13e
JL
63082010-06-03 Juri Linkov <juri@jurta.org>
6309
6310 * buffer.c (Fother_buffer): Add CHECK_FRAME.
6311 (Fswitch_to_buffer): Remove unused variable `err'.
6312
0d4bcf4d
GM
63132010-06-03 Glenn Morris <rgm@gnu.org>
6314
e23dc1e2
GM
6315 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
6316
05b09564
GM
6317 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
6318 now that AH_BOTTOM does it.
6319
824e2978
GM
6320 * m/hp800.h (HAVE_ALLOCA):
6321 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
6322
0d4bcf4d
GM
6323 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
6324 Remove NOT_C_CODE tests, it is always true now.
6325
c55d2abf
DN
63262010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
6327
08a494a3
DN
6328 Fix config.h includes.
6329 * xsettings.c:
6330 * xgselect.c:
6331 * nsterm.m:
6332 * nsselect.m:
6333 * nsimage.m:
6334 * nsfont.m:
6335 * nsfns.m:
6336 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
6337 other files do.
6338
75934b1d
DN
6339 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
6340
9f32a766
DN
6341 * s/sol2-6.h: Remove obsolete comments.
6342
c55d2abf
DN
6343 Remove unnecessary alloca.h includes.
6344 * keymap.c: Do not include alloca.h, config.h does that.
6345 * sysdep.c: Likewise. Do not define fwrite, not used.
6346
06ac62b4
SM
63472010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
6348
6349 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
6350 the HAVE_TERMIO where it belongs (bug#6149).
6351
1ab8293c
SM
63522010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
6353
6354 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
6355 of bug#6305).
6356
6dcfd253
EZ
63572010-05-30 Eli Zaretskii <eliz@gnu.org>
6358
6359 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
6360 state is always cached (bug#6306).
6361
6d26bbb2
EZ
63622010-05-29 Eli Zaretskii <eliz@gnu.org>
6363
06fa4a23
EZ
6364 Fix cursor motion in bidi-reordered continued lines.
6365 * xdisp.c (try_cursor_movement): Backup to non-continuation line
6366 only after finding point's row. Fix the logic. Rewrite the loop
ef1b0ba7
SM
6367 over continuation lines in bidi-reordered buffers.
6368 Return CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
6d26bbb2
EZ
6369 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
6370
f5783df3
MA
63712010-05-28 Michael Albinus <michael.albinus@gmx.de>
6372
6373 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
6374
7d56b2dd
KH
63752010-05-28 Kenichi Handa <handa@m17n.org>
6376
6377 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
6378 Don't sheck SPEC if it is nil.
6379 (font_list_entities): Call font_delete_unmatched if
b925d231 6380 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 6381
e58d4ff7
GM
63822010-05-28 Glenn Morris <rgm@gnu.org>
6383
6384 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
6385
f1a5d776
CY
63862010-05-27 Chong Yidong <cyd@stupidchicken.com>
6387
6388 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
6389 whether to trash.
6390 (internal_delete_file, Frename_file): Callers changed.
6391 (delete_by_moving_to_trash): Doc fix.
6392 (Fdelete_directory_internal): Don't move to trash.
6393
6394 * callproc.c (delete_temp_file):
6395 * buffer.c (Fkill_buffer): Callers changed.
6396
6397 * lisp.h: Update prototype.
6398
f44a59e6
CY
63992010-05-27 Chong Yidong <cyd@stupidchicken.com>
6400
6401 * xdisp.c (redisplay_window): After redisplay, check if point is
6402 still valid before setting it (Bug#6177).
6403
81ac4f35
GM
64042010-05-27 Glenn Morris <rgm@gnu.org>
6405
6406 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
6407 Convert comments to Makefile format.
6408
6409 * Makefile.in (bootstrap-clean): No more Makefile.c.
6410
ccd89fb3
GM
64112010-05-26 Glenn Morris <rgm@gnu.org>
6412
90278cb6
GM
6413 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
6414 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
6415
ccd89fb3
GM
6416 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
6417 Remove.
6418 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
6419
b7050583
KH
64202010-05-26 Kenichi Handa <handa@m17n.org>
6421
6422 * composite.c (composition_compute_stop_pos): Fix condition for
6423 backward scanning.
6424
e5458003
GM
64252010-05-25 Glenn Morris <rgm@gnu.org>
6426
c345fe90
GM
6427 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
6428 Move before TEMACS_LDFLAGS.
6429 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
6430 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
6431
2e0689ab
GM
6432 * Makefile.in (NOT_C_CODE): No longer define.
6433 (config.h): No longer include.
6434
8009a5e8
GM
6435 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
6436 variables it may reference.
6437
e5458003
GM
6438 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
6439 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
6440
10f72a37
KH
64412010-05-25 Kenichi Handa <handa@m17n.org>
6442
6443 * dispextern.h (struct composition_it): New members rule_idx and
6444 charpos.
6445
6446 * xdisp.c (set_iterator_to_next): While scanning backward, assume
6447 that the character positions of IT point the last character of the
6448 current grapheme cluster.
6449 (next_element_from_composition): Don't change character positions
6450 of IT.
6451 (append_composite_glyph): Set glyph->charpos to
6452 it->cmp_it.charpos.
6453
6454 * composite.c (autocmp_chars): Change the first argument to RULE,
6455 and try composition with RULE only.
6456 (composition_compute_stop_pos): Record the index number of the
6457 composition rule in CMP_IT->rule_idx.
6458 (composition_reseat_it): Call autocmp_chars repeatedly until the
6459 correct rule of the composition is found.
6460 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
6461 is at the last character of the current grapheme cluster when
6462 CMP_IT->reversed_p is nonzero.
6463
171eda53 64642010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 6465
171eda53
SM
6466 * editfns.c (Fbyte_to_string): New function.
6467
66a9f7f4
SM
64682010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
6469
6470 * process.c (Fmake_network_process): Set :host to nil if it's not used.
6471 Suggested by Masatake YAMATO <yamato@redhat.com>.
6472
d8c315d1
EZ
64732010-05-23 Eli Zaretskii <eliz@gnu.org>
6474
171eda53 6475 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 6476
f5b416d2 64772010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
6478
6479 * s/netbsd.h: If terminfo is found, use it in preference to
6480 termcap. (Bug#6190) [Backport from trunk]
6481
0416466c
EZ
64822010-05-19 Eli Zaretskii <eliz@gnu.org>
6483
11117830 6484 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
6485
6486 * dispextern.h (struct glyph_row): New members minpos and maxpos.
6487 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
6488 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
6489 and maxpos members instead of start.pos and end.pos, respectively.
6490
6491 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
6492 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
6493 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
6494 (try_window_reusing_current_matrix, try_window_id):
6495 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
6496 (init_from_display_pos, init_iterator): Use EMACS_INT for
6497 character and byte positions.
66a9f7f4 6498 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
6499 arguments for minimum and maximum buffer positions seen by
6500 display_line for this row. Don't use iterator to find the
6501 position following the maximum one; instead, increment the
11117830
EZ
6502 position found by display_line directly. Fix logic; eol_pos
6503 should be tested before the rest. Handle the case of characters
6504 delivered from display vector (bug#6036). Fix tests related to
6505 it->method. Handle the truncated_on_right_p rows.
6506 (RECORD_MAX_MIN_POS): New macro.
6507 (display_line): Use it to record the minimum and maximum buffer
6508 positions for glyphs in the row being assembled. Record the
6509 position of the newline that terminates the line. If word wrap is
6510 in effect, restore minimum and maximum positions seen up to the
6511 wrap point, when iterator returns to it.
6512 (try_window_reusing_current_matrix): Give up if in bidi-reordered
6513 row and cursor not already at point. Restore original pre-bidi
6514 code for unidirectional buffers.
d36fe237
EZ
6515
6516 * dispnew.c (increment_row_positions, check_matrix_invariants):
6517 Increment and check row->start.pos and row->end.pos, in addition
6518 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
6519
11117830
EZ
6520 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
6521 Display truncated_on_left_p and truncated_on_right_p flags.
6522 Formatting fixes.
6523 (pmtxrows): Display the ordinal number of each row. Don't display
6524 rows beyond the last one.
6525
6526 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
6527 it is not copied by bidi_copy_it.
6528
6e83d800
EZ
65292010-05-22 Eli Zaretskii <eliz@gnu.org>
6530
6531 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
6532 (Bug#6237)
6533
110683ad
CY
65342010-05-22 Chong Yidong <cyd@stupidchicken.com>
6535
6536 * image.c (Fimage_flush): Rename from image-refresh.
6537
98fe5161
CY
65382010-05-21 Chong Yidong <cyd@stupidchicken.com>
6539
6540 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
6541 just one window.
6542
6543 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
6544 (clear_image_cache): If the number of cached images is unusually
6545 large, decrease the cache eviction delay (Bug#6230).
6546
e8752c66
GM
65472010-05-21 Glenn Morris <rgm@gnu.org>
6548
66dbf213
GM
6549 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
6550 Move these rules to ns.mk.
6551 * ns.mk: New file.
6552
04384b2d
GM
6553 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
6554
e8752c66
GM
6555 * Makefile.in (CANNOT_DUMP): New, set by configure.
6556 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
6557
2e2bbddb
JL
65582010-05-20 Juri Linkov <juri@jurta.org>
6559
6560 * fileio.c (Fdelete_file): Change interative spec to use
6561 `read-file-name' like in `find-file-read-args' where the default
6562 value is `default-directory' instead of `buffer-file-name'.
6563 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
6564
31c4aaf6
KR
65652010-05-20 Kevin Ryde <user42@zip.com.au>
6566
6567 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
6568 (Voverriding_terminal_local_map, Vsystem_key_alist)
6569 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
6570
9d5cf9b6
GM
65712010-05-20 Glenn Morris <rgm@gnu.org>
6572
6573 * Makefile.in (DEPDIR): New constant.
6574 (DEPFLAGS): Set with configure, not cpp.
6575 (MKDEPDIR): New, set by configure.
6576 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
6577 (clean): Use $DEPDIR.
6578 (deps_frag): Include from configure.
6579 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
6580 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
6581
bba3e508
SM
6582 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state):
6583 Fix reallocation of the cache. (Bug#6210)
ead6f8f5 6584
7f34aec3
GM
65852010-05-19 Glenn Morris <rgm@gnu.org>
6586
d494e8f2
GM
6587 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
6588
c1d0dcfd
GM
6589 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
6590 (GNULIB_VAR): Remove.
6591 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
6592
6593 * m/ibms390x.h (LINKER):
6594 * m/macppc.h (LINKER) [GNU_LINUX]:
6595 * s/aix4-2.h (ORDINARY_LINK):
6596 * s/cygwin.h (LINKER):
6597 * s/darwin.h (ORDINARY_LINK):
6598 * s/gnu.h (ORDINARY_LINK):
6599 * s/netbsd.h (LINKER):
6600 * s/usg5-4.h (ORDINARY_LINK):
6601 Move to configure.
6602
7f34aec3
GM
6603 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
6604
754790b6
CY
66052010-05-18 Chong Yidong <cyd@stupidchicken.com>
6606
6607 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
6608 prevent stack overflow if number of arguments is too large
6609 (Bug#6214).
6610
161e44d1
JB
66112010-05-18 Juanma Barranquero <lekktu@gmail.com>
6612
6613 * charset.c (load_charset_map_from_file): Don't call close after fclose.
6614
be4ff9da
GM
66152010-05-18 Glenn Morris <rgm@gnu.org>
6616
9539dc5d
GM
6617 * s/gnu-linux.h: Combine two conditionals.
6618
6619 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
6620 $(POST_ALLOC_OBJ).
6621
40dc6bf4
GM
6622 * Makefile.in (RALLOC_OBJ): New, set by configure.
6623 (rallocobj): Replace with the previous variable.
6624 (otherobj): Use $RALLOC_OBJ.
6625
6626 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
6627 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
6628
be4ff9da
GM
6629 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
6630 (gmallocobj, vmlimitobj): Replace with previous two variables.
6631 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
6632
16455a85
GM
66332010-05-17 Glenn Morris <rgm@gnu.org>
6634
6635 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
6636 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
6637
5fdb7468
GM
66382010-05-16 Glenn Morris <rgm@gnu.org>
6639
7ca1f3f9
GM
6640 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
6641
7541dad5
GM
6642 * Makefile.in (clean): Get rid of HAVE_NS conditional.
6643
da53fab9
GM
6644 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
6645 trailing "/".
6646
b02a6645
GM
6647 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
6648 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
6649
8877ca0f
GM
6650 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
6651 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
6652 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
6653 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
6654 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
6655
5fdb7468
GM
6656 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
6657 Remove ${STARTFLAGS}, nothing ever sets it.
6658
95adb4b1
DN
66592010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
6660
6661 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
6662
676b6304
GM
66632010-05-16 Glenn Morris <rgm@gnu.org>
6664
9beab9ce
GM
6665 * Makefile.in (LIBX_BASE): Always define.
6666
8a95f0e7
GM
6667 * Makefile.in (LIBX_OTHER): Move out of cpp section.
6668
676b6304
GM
6669 * Makefile.in (LIBXT): Always define.
6670
6e546d18
GM
66712010-05-15 Glenn Morris <rgm@gnu.org>
6672
4235ca47 6673 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 6674
6e546d18
GM
6675 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
6676 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
6677
8c5ff6dd
KR
66782010-05-15 Ken Raeburn <raeburn@raeburn.org>
6679
560bb7ae 6680 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
6681 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
6682
8b4eb796
KR
6683 * emacs.c (main): Initialize initial-environment and
6684 process-environment before generating from env, not after.
6685
8c5ff6dd
KR
6686 Handle --version reasonably in CANNOT_DUMP configuration.
6687 * emacs.c (emacs_version, emacs_copyright): New string variables.
6688 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
6689 (syms_of_emacs): Defvar them, and initialize them from the C
6690 string variables.
6691 (main): If initialization hasn't been done, print initial version
6692 info from the C strings, instead of starting an interactive session.
6693
dbd3f723
EZ
66942010-05-15 Eli Zaretskii <eliz@gnu.org>
6695
d20e1419
EZ
6696 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
6697 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
6698 (bidi_paragraph_init): Remove redundant assertion that we are at
6699 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
6700
6701 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
6702 (syms_of_xdisp): Defsubr it.
6703
d36fe237
EZ
6704 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
6705
dbd3f723
EZ
6706 * Makefile.in: Fix MSDOS-related comments.
6707
02be533b
GM
67082010-05-15 Glenn Morris <rgm@gnu.org>
6709
1a82cca9
GM
6710 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
6711 (really-lwlib, really-oldXMenu): Always define.
6712 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
6713
3df7b338
GM
6714 * Makefile.in: Simplify cpp conditional.
6715
2b5f541b
GM
6716 * Makefile.in (${ns_appdir}): Simplify using umask.
6717
02be533b
GM
6718 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
6719
4e2db1fe
SM
67202010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
6721
6722 * eval.c (specbind): Remove left-over duplicate test.
6723 Disallow let-binding frame-local vars. Add comment.
6724
4b292a22
EZ
67252010-05-14 Eli Zaretskii <eliz@gnu.org>
6726
2fe72643 6727 Make the cache of bidi iterator states dynamically allocated.
1edbd309 6728 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
6729 (bidi_init_it): Call it.
6730 (bidi_cache_iterator_state): Enlarge the cache if needed.
6731
4e2db1fe 6732 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
6733 bidi_get_next_char_visually. All callers changed.
6734
82ebc97b
KH
67352010-05-14 Kenichi Handa <handa@m17n.org>
6736
6737 * dispextern.h (struct composition_it): New member reversed_p.
6738
6739 * composite.c (composition_compute_stop_pos): Search backward if
6740 ENDPOS < CHARPOS.
6741 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
6742 Set CMP_IT->reversed_p.
b4b6e17e 6743 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 6744
4e2db1fe
SM
6745 * xdisp.c (set_iterator_to_next):
6746 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
6747 scanning backward. Call composition_compute_stop_pos if scan
6748 direction is changed.
6749 (next_element_from_buffer): Call composition_compute_stop_pos with
6750 negative ENDPOS if we are scanning backward.
6751 (next_element_from_composition): Pay attention to
6752 IT->cmp_it.reversed_p.
6753
0e5d7800
KH
67542010-05-14 Kenichi Handa <handa@m17n.org>
6755
560bb7ae 6756 * font.c (font_range): Return the range for the font found at first.
0e5d7800 6757
cb027b32
GM
67582010-05-14 Glenn Morris <rgm@gnu.org>
6759
177b0288
GM
6760 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
6761
fbc00890
GM
6762 * Makefile.in (mktime, X11, register): Move undefs to configure.
6763
f14d1dfd
GM
6764 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
6765 (MSDOS_X_OBJ): New variable.
6766 (MSDOS_SUPPORT_REAL): New constant.
6767 (MSDOS_SUPPORT): Set as a variable, not with cpp.
6768 (obj): Use MSDOS_X_OBJ.
6769 (lisp): Use MSDOS_SUPPORT as a variable.
6770
11842bd8
GM
6771 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
6772 (GPM_MOUSE_SUPPORT): Now it's a constant.
6773 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
6774 not cpp.
6775
489d31a4 6776 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 6777 (ns_appresdir): Remove, unused.
e20f1f07 6778
489d31a4
GM
6779 * Makefile.in (SHELL): Move outside cpp section.
6780
cb027b32
GM
6781 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
6782
5a903aa9
GM
67832010-05-13 Glenn Morris <rgm@gnu.org>
6784
3369c79f
GM
6785 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
6786 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
6787
d5e982a6
GM
6788 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
6789 HAVE_WINDOW_SYSTEM must be too.
6790
6192e163
GM
6791 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
6792 (lisp): Remove WINNT_SUPPORT.
6793
472c5d6b
GM
6794 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
6795 Let configure set these variables (to empty) in this case as well.
6796
0116466b
GM
6797 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
6798 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
6799
5a903aa9
GM
6800 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
6801 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
6802 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
6803 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
6804 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 6805 the values output by configure.
5a903aa9
GM
6806 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
6807
1a0d7c06
GM
68082010-05-12 Glenn Morris <rgm@gnu.org>
6809
b5457f14
GM
6810 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
6811 (LINKER_WAS_SPECIFIED): Remove.
6812
1a0d7c06
GM
6813 * Makefile.in (LIB_GCC): Set using configure, not cpp.
6814 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
6815 * m/arm.h (LIB_GCC) [GNU_LINUX]:
6816 * s/cygwin.h (LIB_GCC):
6817 * s/freebsd.h (LIB_GCC):
6818 * s/gnu-linux.h (LIB_GCC):
6819 * s/msdos.h (LIB_GCC):
6820 * s/netbsd.h (LIB_GCC):
6821 Move to configure.
6822
d1ddd1d0 68232010-05-11 Karel Klíč <kklic@redhat.com>
c90ca7b7
KH
6824
6825 * ftfont.c: Fix incorrect parentheses of #if condition for
6826 definining M17N_FLT_USE_NEW_FEATURE.
6827
acddf8ae
GM
68282010-05-11 Glenn Morris <rgm@gnu.org>
6829
6830 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
6831 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
6832
ae5e04fa
EZ
68332010-05-10 Eli Zaretskii <eliz@gnu.org>
6834
6835 * xdisp.c (init_iterator): Don't turn on bidi reordering in
6836 unibyte buffers. See
6837 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
6838
7490175b
GM
68392010-05-10 Glenn Morris <rgm@gnu.org>
6840
97efb629
GM
6841 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
6842 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
6843 (LIBES): Use LIBS_SYSTEM as a variable.
6844 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
6845 * s/aix4-2.h (LIBS_SYSTEM):
6846 * s/freebsd.h (LIBS_SYSTEM):
6847 * s/hpux10-20.h (LIBS_SYSTEM):
6848 * s/sol2-6.h (LIBS_SYSTEM):
6849 * s/unixware.h (LIBS_SYSTEM):
6850 Move to configure.
6851
7490175b
GM
6852 * s/aix4-2.h (MAIL_USE_LOCKF):
6853 * s/bsd-common.h (MAIL_USE_FLOCK):
6854 * s/darwin.h (MAIL_USE_FLOCK):
6855 * s/gnu-linux.h (MAIL_USE_FLOCK):
6856 * s/irix6-5.h (MAIL_USE_FLOCK):
6857 * s/template.h (MAIL_USE_FLOCK):
6858 Move to configure.
6859
0235128c 68602010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
6861
6862 * Version 23.2 released.
6863
0235128c 68642010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
6865
6866 * composite.c (autocmp_chars): Save point as marker before calling
6867 auto-composition-function (Bug#5984).
6868
6869 * lisp.h (restore_point_unwind): Add prototype.
6870
6871 * fileio.c (restore_point_unwind): Remove static attribute.
6872
0235128c 68732010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
6874
6875 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
6876 new feature of libotf and m17n-flt.
0235128c
SM
6877 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
6878 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
6879 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
6880 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
6881 that OUT is NULL. Use OTF_drive_gsub_with_log and
6882 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
6883 OTF_drive_gpos.
6884 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
6885 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
6886 Setup mflt_enable_new_feature and mflt_try_otf.
6887
4721152c
J
68882010-05-08 Jan Djärv <jan.h.d@swipnet.se>
6889
6890 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
6891
6892 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
6893 box and toolbar (Bug #6139).
6894 (xg_create_tool_bar): Remove comment (Bug #6139).
6895 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
6896 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
6897
ee0a16cf
JB
68982010-05-08 Juanma Barranquero <lekktu@gmail.com>
6899
6900 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
6901 Update dependencies.
6902
96d79611
EZ
69032010-05-08 Eli Zaretskii <eliz@gnu.org>
6904
6905 * fringe.c (update_window_fringes): Set up truncation bitmaps for
6906 R2L lines.
6907
40c17879
GM
69082010-05-08 Glenn Morris <rgm@gnu.org>
6909
7b42b29f
GM
6910 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
6911
40c17879
GM
6912 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
6913 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
6914 (termcapobj): Replace with TERMCAP_OBJ.
6915 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
6916 (LIBES): Use LIBS_TERMCAP as a variable.
6917
6918 * s/freebsd.h (osreldate.h): No longer include, since this file
6919 does not use __FreeBSD_version any more.
6920
6921 * s/aix4-2.h (TERMINFO):
6922 * s/cygwin.h (TERMINFO):
6923 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
6924 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
6925 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
6926 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
6927 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
6928 * s/irix6-5.h (TERMINFO):
6929 * s/netbsd.h (LIBS_TERMCAP):
6930 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
6931 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
6932 * s/usg5-4.h (TERMINFO):
6933 Move to configure.
6934
94b612ad
SM
69352010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
6936
6937 * eval.c (unbind_to): Don't unbind a local binding into the global
6938 binding when the local binding disappeared. Inversely, don't unbind
6939 a global binding into a newly created local binding.
6940 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
6941 can specify the frame to use, when applicable. Adjust callers.
6942
15e12598 69432010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 6944 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
6945
6946 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
6947
f724825e
EZ
69482010-05-07 Eli Zaretskii <eliz@gnu.org>
6949
5cba3209
EZ
6950 * w32fns.c: Include w32.h.
6951 (Fw32_shell_execute): Decode the error message before passing it
6952 to `error'. (Bug#6126)
6953
d16bdfc3
EZ
6954 * msdos.c (dos_set_window_size):
6955 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
6956 instead of `XSYMBOL (foo)->value'.
6957
59d93e87
EZ
69582010-05-07 Eli Zaretskii <eliz@gnu.org>
6959
9fdec8bc
EZ
6960 Fix the MS-DOS build, broken by autoconfiscation.
6961
6962 * Makefile.in: Don't use Make-style comments past the "start of
6963 cpp stuff" line.
6964 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
6965
6966 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
6967 edited directly by msdos/sed1v2.inp).
f724825e 6968
2f86b22b
GM
69692010-05-07 Glenn Morris <rgm@gnu.org>
6970
6971 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
6972 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
6973 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
6974 move out of cpp section.
6975 * s/freebsd.h (LD_SWITCH_SYSTEM):
6976 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
6977 * s/netbsd.h (LD_SWITCH_SYSTEM):
6978 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
6979
49ebbd65
DN
69802010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
6981
6982 Define LIB_STANDARD and START_FILES using autoconf.
6983 * s/usg5-4.h (LIB_STANDARD):
6984 * s/netbsd.h (START_FILES):
6985 * s/irix6-5.h (LIB_STANDARD):
6986 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
6987 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
6988 * s/freebsd.h (START_FILES):
6989 * s/darwin.h (START_FILES):
6990 * s/cygwin.h (START_FILES):
6991 * s/aix4-2.h (LIB_STANDARD):
6992 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
6993 * Makefile.in (STARTFILES): Rename to START_FILES, define using
6994 autoconf, not cpp.
6995
d43c06d6
DN
69962010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
6997
28823648
DN
6998 Remove NEED_BSDTTY and NEED_UNISTD_H.
6999 * s/hpux10-20.h (NEED_BSDTTY): Remove.
7000 * s/aix4-2.h (NEED_UNISTD_H): Remove.
7001 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
7002 <sys/ptyio.h> and <unistd.h>.
7003
aca00430
DN
7004 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
7005
d43c06d6
DN
7006 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
7007 * s/gnu.h (START_FILES): Remove empty definition.
7008
3e56b11d
JD
70092010-05-06 Jan Djärv <jan.h.d@swipnet.se>
7010
7011 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
7012
e3cf0cde
GM
70132010-05-06 Glenn Morris <rgm@gnu.org>
7014
7015 * Makefile.in (CPP, LN_S): Remove unused variables.
7016
774b9a60
SM
70172010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
7018
7019 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
7020
4ab92842
LM
70212010-05-05 Lawrence Mitchell <wence@gmx.li>
7022
7023 * m/sparc.h: Fix typo in earlier change.
7024
178f2507
SM
70252010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
7026
7027 Misc tweaks.
7028 * eval.c (Fdefvaralias): Remove unintended nested if.
7029 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
7030
80f00217 70312010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
7032
7033 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
7034
ef03a4e6
DN
70352010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
7036
58eb6cf0
DN
7037 Remove BSD_PGRPS.
7038 * s/bsd-common.h (BSD_PGRPS): Remove undef.
7039 * s/gnu-linux.h (BSD_PGRPS): Remove.
7040 * term.c (dissociate_if_controlling_tty):
7041 * sysdep.c (narrow_foreground_group, widen_foreground_group)
7042 (init_sys_modes, reset_sys_modes):
7043 * emacs.c (main):
7044 * callproc.c (Fcall_process, child_setup): Remove code depending
7045 on BSD_PGRPS.
7046
ef03a4e6
DN
7047 Remove POSIX_SIGNALS.
7048 * s/usg5-4.h (POSIX_SIGNALS):
7049 * s/netbsd.h (POSIX_SIGNALS):
7050 * s/msdos.h (POSIX_SIGNALS):
7051 * s/ms-w32.h (POSIX_SIGNALS):
7052 * s/hpux11.h (POSIX_SIGNALS):
7053 * s/gnu.h (POSIX_SIGNALS):
7054 * s/gnu-linux.h (POSIX_SIGNALS):
7055 * s/freebsd.h (POSIX_SIGNALS):
7056 * s/darwin.h (POSIX_SIGNALS):
7057 * s/cygwin.h (POSIX_SIGNALS):
7058 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
7059 * s/unixware.h:
7060 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
7061 * process.c (create_process):
7062 * syssignal.h:
7063 * sysdep.c (wait_for_termination, init_signals):
7064 * process.c (create_process):
7065 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
7066 remove all code that assumes the contrary.
7067
49628785
GM
70682010-05-04 Glenn Morris <rgm@gnu.org>
7069
27a2cdfc
GM
7070 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
7071 variable.
7072 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
7073 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
7074 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
7075 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
7076 LD_SWITCH_SYSTEM_tmp.
7077 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
7078 New variables, set by configure.
7079
eb21eab5
GM
7080 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
7081 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
7082 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
7083 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
7084 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
7085
49628785
GM
7086 * s/aix4-2.h (C_SWITCH_SYSTEM):
7087 * m/alpha.h (C_SWITCH_MACHINE):
7088 Move to configure.in.
7089 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
7090 New variables, set by configure.
7091 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
7092 $c_switch_machine and $c_switch_system.
7093
7dff330b
DN
70942010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
7095
7096 * s/hpux10-20.h (LIB_STANDARD): New definition.
7097 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
7098 on it, not used anymore.
7099
53967e09
CY
71002010-05-03 Chong Yidong <cyd@stupidchicken.com>
7101
7102 * eval.c (internal_condition_case_n): Rename from
7103 internal_condition_case_2.
7104 (internal_condition_case_2): New function.
7105
7106 * xdisp.c (safe_call): Use internal_condition_case_n.
7107
7108 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
7109 (internal_delete_file, Frename_file): Callers changed.
7110
7111 * buffer.c (Fkill_buffer):
7112 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
7113
7114 * lisp.h: Update prototypes.
7115
3dee6fdb
GM
71162010-05-03 Glenn Morris <rgm@gnu.org>
7117
7118 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
7119 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
7120 (LIBXT): Set with configure, not cpp.
7121 (LIBX): Remove.
7122 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
7123
a101e0fb
DN
71242010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
7125
7126 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
7127 The FreeBSD is not needed, the default works, Solaris version is
7128 not needed, and the remaining case is not supported by configure.
7129
f63d0028
JD
71302010-05-02 Jan Djärv <jan.h.d@swipnet.se>
7131
7132 * xsmfns.c (CHDIR_OPT): New define.
7133 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
7134 restarting emacs.
7135
7136 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
7137 shut_down_emacs.
7138
7139 * emacs.c (USAGE1): Mention --chdir.
7140 (main): Handle --chdir.
7141 (standard_args): Add --chdir.
7142 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
7143 #5552).
7144
e4814a9f
DN
71452010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
7146
cd03c74a
DN
7147 Remove LD_SWITCH_MACHINE.
7148 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
7149 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
7150
c3a398a1
DN
7151 Clean up IRIX code.
7152 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
7153 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
7154
87e7285c
DN
7155 Clean up AIX code.
7156 * m/ibmrs6000.inp: Remove file, unused.
7157 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
7158 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
7159 definition ...
7160 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
7161
80f00217
JB
7162 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
7163 unused.
e4814a9f 7164
59ca28de
EZ
71652010-05-01 Eli Zaretskii <eliz@gnu.org>
7166
197daef4
EZ
7167 Emulate POSIX_SIGNALS on MS-Windows.
7168
7169 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
7170 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
7171
7172 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
7173 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
7174 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
7175
80f00217
JB
7176 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
7177 New stubs.
197daef4 7178
af7c7572
EZ
7179 Miscellaneous fixes of bidi display.
7180
59ca28de
EZ
7181 * xdisp.c (find_row_end): New function, refactored from display_line.
7182 (display_line): Use it.
017ea819
EZ
7183 (extend_face_to_end_of_line): In almost-filled rows, extend only
7184 if the row is R2L and not continued.
166e930d 7185 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 7186 Preserve overlay and string info in row->end.
166e930d
EZ
7187 (insert_left_trunc_glyphs): Support addition of left truncation
7188 glyphs to R2L rows.
b47e0dcf 7189 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
7190 glyph between adjacent windows. Fix a crash when a display string
7191 is continued to the next line. Don't return zero if cursor was
7192 found by `cursor' property of a display string.
b47e0dcf
EZ
7193 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
7194 test for that explicitly.
59ca28de 7195
7acac9f4
GM
71962010-05-01 Glenn Morris <rgm@gnu.org>
7197
7198 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
7199 for clarity.
7200 (OTHER_OBJ): Remove.
7201 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
7202 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
7203
45841e65
KK
72042010-05-01 Karel Klíč <kklic@redhat.com>
7205
7206 * fileio.c (Ffile_selinux_context): Context functions may return null.
7207
afc61943
DN
72082010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
7209
80f00217 7210 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 7211
5a1bb006
GM
72122010-04-30 Glenn Morris <rgm@gnu.org>
7213
7214 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
7215 (OTHER_OBJ): Define as a separate variable, for clarity.
7216
210af043
J
72172010-04-30 Jan Djärv <jan.h.d@swipnet.se>
7218
7219 * xsettings.c: include limits.h and update file comment.
7220
0a7df391
GM
72212010-04-30 Glenn Morris <rgm@gnu.org>
7222
d5096f16
GM
7223 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
7224 Set with configure, not cpp.
7225 (LIBW): Remove, replace with $TOOLKIT_LIBW.
7226
7eb1ac33
GM
7227 * Makefile.in (mallocobj): Remove.
7228 (otherobj): Simplify using @OTHER_OBJ@.
7229
517d086b
GM
7230 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
7231 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
7232 Don't bother making nsgui.h dependency platform-specific.
7233
0a7df391
GM
7234 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
7235
d6d23852
SM
72362010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
7237
d2630aef
SM
7238 * process.c (read_process_output, exec_sentinel): Don't burp if the
7239 sentinel/filter kills the current buffer (bug#6060).
7240
f9dddf52 7241 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
7242 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
7243 Remove unused var `args'.
7244 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
7245 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
7246 * doc.c (store_function_docstring): Use XSETCAR.
7247
f1e3642a
GM
72482010-04-28 Glenn Morris <rgm@gnu.org>
7249
faf535f8
GM
7250 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
7251 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
7252
c40f9449
GM
7253 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
7254
658f86ca
GM
7255 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
7256 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
7257
bc0b5f61
GM
7258 * Makefile.in (FONT_OBJ): New, set by configure.
7259 (FONT_DRIVERS): Use $FONT_OBJ.
7260
294c50a0
GM
7261 * Makefile.in (LIBXMU): Set with configure, not cpp.
7262 * s/aix4-2.h (LIBXMU):
7263 * s/hpux10-20.h (LIBXMU):
7264 Remove definition, now set in configure.
7265
e6ec4e99
GM
7266 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
7267
f1e3642a
GM
7268 * m/amdx86-64.h [i386]: Move this test to configure.in.
7269
c6ea2936
GM
72702010-04-27 Glenn Morris <rgm@gnu.org>
7271
8fdac2c3
GM
7272 * Makefile.in (LIBXTR6): Set with configure, not cpp.
7273 * s/unixware.h (NEED_LIBW): Remove definition.
7274
986fb647
GM
7275 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
7276 (TOOLKIT_LIBW): New, set by configure.
7277 (@X_TOOLKIT_TYPE@): No longer define it.
7278
c6ea2936
GM
7279 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
7280 (MOTIF_LIBW): Set with configure, not cpp.
7281 * s/aix4-2.h (LIB_MOTIF):
7282 * s/gnu-linux.h (LIB_MOTIF):
7283 * s/unixware.h (LIB_MOTIF): Move to configure.in.
7284
aaa36002
DN
72852010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
7286
7287 Reduce CPP usage.
7288 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
7289 (obj): Use autoconf for unexec instead of cpp.
bba3e508
SM
7290 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE):
7291 Remove definitions and undefs. Inline definitions in the only user.
ed6281b0 7292 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 7293
b678dd8b
GM
72942010-04-27 Glenn Morris <rgm@gnu.org>
7295
76cda504
GM
7296 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
7297 since the defaults (set by the system file) are fine in most cases.
7298 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
7299 * m/ibms390x.h (START_FILES, LIB_STANDARD):
7300 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
7301 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
7302 Remove definitions, since they are set correctly in s/gnu-linux.h.
7303 * s/freebsd.h (START_FILES, LIB_STANDARD):
7304 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
7305 * s/hpux10-20.h (START_FILES):
7306 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
7307 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
7308
b678dd8b
GM
7309 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
7310 (MOTIF_LIBW): Use $LIBXP.
7311 (otherobj): Use $WIDGET_OBJ.
7312
9452ded1
DN
73132010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
7314
7e10844c
DN
7315 * Makefile.in (LIBS_MACHINE): Remove, unused.
7316
9452ded1
DN
7317 Use autoconf instead of cpp for LIB_MATH.
7318 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
7319 * s/cygwin.h (LIB_MATH): Likewise.
7320 * Makefile.in (LIB_MATH): Do not define with cpp.
7321 (LIBES): Use autoconf for LIB_MATH.
7322
fcebfc6a
KH
73232010-04-26 Kenichi Handa <handa@m17n.org>
7324
7325 * composite.c (Ffind_composition_internal): Fix the return value
7326 for an automatic composition.
7327
39e2ad1b
DN
73282010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
7329
7330 Remove all NO_ARG_ARRAY uses.
7331 * fns.c (concat2, concat3, nconc2):
7332 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
7333 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
7334 * m/xtensa.h (NO_ARG_ARRAY):
7335 * m/template.h (NO_ARG_ARRAY):
7336 * m/sparc.h (NO_ARG_ARRAY):
7337 * m/sh3.h (NO_ARG_ARRAY):
7338 * m/mips.h (NO_ARG_ARRAY):
7339 * m/macppc.h (NO_ARG_ARRAY):
7340 * m/iris4d.h (NO_ARG_ARRAY):
7341 * m/intel386.h (NO_ARG_ARRAY):
7342 * m/ibms390x.h (NO_ARG_ARRAY):
7343 * m/ibms390.h (NO_ARG_ARRAY):
7344 * m/ibmrs6000.h (NO_ARG_ARRAY):
7345 * m/ia64.h (NO_ARG_ARRAY):
7346 * m/hp800.h (NO_ARG_ARRAY):
7347 * m/arm.h (NO_ARG_ARRAY):
7348 * m/amdx86-64.h (NO_ARG_ARRAY):
7349 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
7350
adf4f59c
EZ
73512010-04-25 Eli Zaretskii <eliz@gnu.org>
7352
6bdf5d65
EZ
7353 * xdisp.c (display_line): Don't assume 2nd call to
7354 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
7355 (iterate_out_of_display_property): New function, body from pop_it.
7356 (pop_it): Use it.
adf4f59c 7357
dfbbda83
GM
73582010-04-24 Glenn Morris <rgm@gnu.org>
7359
7360 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
7361 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
7362 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
7363 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
7364
2d4018aa
EZ
73652010-04-24 Eli Zaretskii <eliz@gnu.org>
7366
a49884a6
EZ
7367 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
7368 use `get_next_display_element' and `set_iterator_to_next' to
7369 advance to the next character, when looking for the character that
7370 begins the next row.
7371
76db6fcc 7372 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
7373 definition of "struct Lisp_Symbol".
7374
70eab5c1
GM
73752010-04-24 Glenn Morris <rgm@gnu.org>
7376
7377 * Makefile.in (CRT_DIR): New variable, set by configure.
7378 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
7379 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
7380
1ad4cc3d
DN
73812010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
7382
e769f484
DN
7383 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
7384
4196ff33
DN
7385 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
7386
879b0ee4
DN
7387 Remove redundant flags.
7388 * s/freebsd.h (C_SWITCH_SYSTEM):
7389 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
7390 * s/netbsd.h (C_SWITCH_SYSTEM):
7391 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
7392 of these.
7393
03cbbcb8
DN
7394 Simplify m/intel386.h.
7395 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
7396 user: ecrt0.c.
7397 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
7398 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
7399 the only user: s/unixware.h.
7400 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
7401 from m/intel386.h.
bba3e508
SM
7402 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE):
7403 Definitions moved here from m/intel386.h.
03cbbcb8 7404
1ad4cc3d
DN
7405 * m/mips.h: Remove #if 0 code.
7406
8785b888
EZ
74072010-04-23 Eli Zaretskii <eliz@gnu.org>
7408
728588cc
EZ
7409 Fix display of composed characters from L2R scripts in bidi buffers.
7410 * xdisp.c (set_iterator_to_next, next_element_from_composition):
7411 After advancing IT past the composition, resync the bidi iterator
7412 with IT's position. (Bug#5977)
7413
a63f80b4
DN
74142010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
7415
7416 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
7417 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
7418
ff5dec5c
SM
74192010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
7420
7421 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
7422
8785b888
EZ
74232010-04-23 Eli Zaretskii <eliz@gnu.org>
7424
58ccf243 7425 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
7426 * xdisp.c (pop_it): When the stack is popped after displaying
7427 from a string, bidi-iterate to exit from the text portion covered
7428 by the `display' property or overlay. (Bug#5988, bug#5920)
7429
feeb1604
DN
74302010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
7431
8e324eb6
DN
7432 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
7433 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
7434
809fcaba
DN
7435 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
7436 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
7437
ed710380
DN
7438 Simplify STARTFILES definition.
7439 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
7440 relying on Makefile.in to define it.
7441 * s/cygwin.h (START_FILES): Likewise.
7442 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
7443
feeb1604
DN
7444 Clean up Solaris code.
7445 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
7446 (LIB_MOTIF): Remove, configure takes care of this.
7447 (NOT_USING_MOTIF): Remove, unused.
7448 * xrdb.c: Remove #if 0-ed #include.
7449 (SYSV): Remove conditional for old SysV.
7450 * sysdep.c (closedir): Remove conditional code for Solaris,
7451 Solaris has closedir.
7452
a0d0b563
JD
74532010-04-22 Jan Djärv <jan.h.d@swipnet.se>
7454
7455 * xsettings.c (read_and_apply_settings): Check if current_font is
7456 NULL before strcmp (Bug#6001).
7457
56bae7c7
DN
74582010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
7459
7460 Clean up HP-UX files.
7461 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
7462 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
7463 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
7464 * s/hpux10-20.h: ... to the only user, here.
7465
372b7a95
EZ
74662010-04-21 Eli Zaretskii <eliz@gnu.org>
7467
7468 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
7469 use buffer-local values of paragraph-start and paragraph-separate.
7470 <paragraph_start_re, paragraph_separate_re>: Rename from
7471 fallback_paragraph_start_re and fallback_paragraph_separate_re.
7472 (Bug#5992)
7473
f904c0f9
JD
74742010-04-21 Jan Djärv <jan.h.d@swipnet.se>
7475
7476 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
7477 current_tool_bar_style are new.
7478 (store_config_changed_event): Rename from store_font_changed_event.
7479 (XSETTINGS_TOOL_BAR_STYLE): New define.
7480 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
7481 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
7482 HAVE_XFT.
7483 (something_changedCB): store_font_changed_event is now
c4cc8b9a 7484 store_config_changed_event.
bba3e508
SM
7485 (parse_settings): Rename from parse_xft_settings.
7486 Read non-xft xsettings outside #ifdef HAVE_XFT.
ef1b0ba7 7487 (read_settings): Rename from read_xft_settings.
f904c0f9
JD
7488 (apply_xft_settings): Take current settings as parameter. Do not
7489 call read_(xft)_settings.
7490 (read_and_apply_settings): New function.
bba3e508
SM
7491 (xft_settings_event): Do non-xft stuff out of HAVE_XFT.
7492 Call read_and_apply_settings if there are settings to be read.
ef1b0ba7 7493 (init_xsettings): Rename from init_xfd_settings.
f904c0f9
JD
7494 Call read_and_apply_settings unconditionally.
7495 (xsettings_initialize): Call init_xsettings.
7496 (Ftool_bar_get_system_style): New function.
7497 (syms_of_xsettings): Define Qmonospace_font_name and
7498 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 7499 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 7500 dynamic-setting.
31a01b90 7501 Move misplaced HAVE_GCONF
f904c0f9
JD
7502
7503 * xsettings.h (Ftool_bar_get_system_style): Declare.
7504
7505 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
7506 Qtext, Qboth, Qboth_horiz are new.
7507 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
7508 Vtool_bar_style, tool_bar_max_label_size.
7509
7510 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
7511
7512 * keyboard.c: QClabel is new.
7513 (parse_tool_bar_item): Take out QClabel from tool bar items.
7514 Try to construct a label if ther is no QClabel.
7515 (syms_of_keyboard): Intern :label as QClabel.
7516
7517 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
7518 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
7519 New.
7520
7521 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
7522 dynamic-setting.el.
7523
7524 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
7525 (xg_make_tool_item, xg_show_toolbar_item): New function.
7526 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
7527 Call xg_make_tool_item to make a tool bar item.
7528 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
7529
7530 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
7531 into account for toolbars.
7532
c632dfda
JD
75332010-04-21 Jan Djärv <jan.h.d@swipnet.se>
7534
7535 * data.c (make_blv): Declarations before code (Bug#5993).
7536
10efe302
GM
75372010-04-21 Glenn Morris <rgm@gnu.org>
7538
7539 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
7540 Define using autoconf, not cpp.
7541 (LIBXSM): New variable, set by autoconf.
7542 (LIBXT): Use $LIBXSM.
7543
4285ac5a
DN
75442010-04-21 Dan Nicolaescu <local_user@dannlt>
7545
3ec759e7
DN
7546 Remove NOMULTIPLEJOBS, unused.
7547 * s/template.h (NOMULTIPLEJOBS):
7548 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
7549
4285ac5a
DN
7550 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
7551 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
7552 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
7553 detects -znocombreloc and passes it to the linker
7554 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
7555
2807228d
GM
75562010-04-21 Glenn Morris <rgm@gnu.org>
7557
7558 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
7559
574c05e2
KK
75602010-04-21 Karel Klíč <kklic@redhat.com>
7561
7562 * Makefile.in (LIBSELINUX_LIBS): New.
7563 (LIBES): Add $LIBSELINUX_LIBS.
7564 * eval.c, lisp.h (call7): New function.
7565 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
7566 (Ffile_selinux_context, Fset_file_selinux_context):
7567 New functions.
7568 (Fcopy_file): New parameter preserve-selinux-context.
7569 (Frename_file): Preserve selinux context when renaming by copy-file.
7570
91eac4bb 75712010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 7572 Eli Zaretskii <eliz@gnu.org>
91eac4bb 7573
50426a04
JB
7574 Don't depend on cm.c or termcap.c on Windows, use stubs.
7575 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
7576 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
7577 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
7578 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
7579 (sys_tputs, sys_tgetstr): New stubs.
7580 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
7581 (tputs, tgetstr): New; define to sys_*.
91eac4bb 7582
938efb77
JB
75832010-04-20 Juanma Barranquero <lekktu@gmail.com>
7584
7585 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
7586
b4bf28b7
SM
75872010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
7588
8b1e1112
SM
7589 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
7590 Just signal a warning rather than an error when inside a let.
7591 (Fmake_variable_frame_local): Add the same test.
7592
933ac235
SM
7593 * font.c (syms_of_font): Make the style table vars read-only.
7594
b4bf28b7
SM
7595 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
7596 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
7597
7598 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
7599
93d68d0c
EZ
76002010-04-20 Eli Zaretskii <eliz@gnu.org>
7601
7602 Fix R2L paragraph display on TTY.
7603
7604 * xdisp.c (unproduce_glyphs): New function.
7605 (display_line): Use it when produced glyphs are discarded from R2L
7606 glyph rows.
7607 (append_composite_glyph): In R2L rows, prepend the glyph rather
7608 than appending it.
7609
7610 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
7611 rather than append it. Set up the resolved_level and bidi_type
7612 attributes of the appended glyph.
283ccc18
EZ
7613 (produce_special_glyphs): Mirror the backslash continuation
7614 character in R2L lines.
93d68d0c 7615
283ccc18 7616 Implement display of R2L paragraphs in GUI sessions.
26cdf528 7617
283ccc18
EZ
7618 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
7619 append_stretch_glyph.
bba3e508
SM
7620 (set_cursor_from_row) <cursor_x>: Remove unused variable.
7621 Fix off-by-one error in computing x at end of text in the row.
283ccc18
EZ
7622 (append_stretch_glyph): In reversed row, prepend the glyph rather
7623 than append it. Set resolved_level and bidi_type of the glyph.
7624 (extend_face_to_end_of_line): If the row is reversed, prepend a
7625 stretch glyph whose width is such that the rightmost glyph will be
7626 drawn at the right margin of the window. Fix off-by-one error on
bba3e508
SM
7627 TTY frames in testing whether a line needs face extension.
7628 Fix face extension at ZV. If this is the last glyph row, use
283ccc18
EZ
7629 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
7630 region face.
bba3e508
SM
7631 (set_cursor_from_row, display_line):
7632 Use MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
26cdf528 7633 row->continuation_lines_width.
283ccc18
EZ
7634 (next_element_from_buffer): Don't call bidi_paragraph_init if we
7635 are at ZV. Fixes a crash when reseated to ZV by
7636 try_window_reusing_current_matrix.
45903529
EZ
7637 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
7638 which happens with R2L glyph rows. Fixes a crash when inserting a
7639 character at end of an R2L line.
283ccc18
EZ
7640 (set_cursor_from_row): Don't be fooled by truncated rows: don't
7641 treat them as having zero-width characters. Improve comments.
7642 Don't reverse pos_before and pos_after for reversed glyph rows.
7643 Set cursor.x to negative value when the cursor might be on the
7644 left fringe.
7645 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
7646 left fringe, not the right one.
f951a506
EZ
7647 (notice_overwritten_cursor, draw_phys_cursor_glyph)
7648 (erase_phys_cursor): For reversed cursor_row, support cursor on
7649 the left fringe.
7650
283ccc18
EZ
7651 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
7652 of continuation indicators on the fringes.
7653 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
7654 left fringe.
7655
f951a506
EZ
7656 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
7657 draw cursor on the left fringe.
7658
7659 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
7660 cursor on the left fringe.
7661
f951a506
EZ
7662 * dispnew.c (update_text_area): Handle reversed desired rows when
7663 the cursor is on the left fringe.
7664 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
7665 below, not by 0, for when the cursor is on the left fringe.
7666
3bb49aaf
JD
76672010-04-20 Jan Djärv <jan.h.d@swipnet.se>
7668
7669 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
7670 widget is a scrollbar.
7671
c0be27fd
KH
76722010-04-20 Kenichi Handa <handa@m17n.org>
7673
7674 * charset.c (char_charset): Consider Vcharset_non_preferred_head
7675 only when the arg CHARSET_LIST is nil.
7676
ce5b453a
SM
76772010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
7678
7679 Make variable forwarding explicit rather the using special values.
7680 Basically, this makes the structure of buffer-local values and object
7681 forwarding explicit in the type of Lisp_Symbols rather than use
7682 special Lisp_Objects for that. This tends to lead to slightly more
7683 verbose code, but is more C-like, simpler, and makes it easier to make
7684 sure we handled all cases, among other things by letting the compiler
7685 help us check it.
7686 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
7687 Removing forwarding objects.
7688 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
7689 (struct Lisp_Symbol): Make the various forms of variable-forwarding
7690 explicit rather than hiding them inside Lisp_Object "values".
7691 (XFWDTYPE): New macro.
7692 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
7693 (XBUFFER_LOCAL_VALUE): Remove.
7694 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
7695 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
7696 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
7697 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
7698 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
7699 Remove the Lisp_Misc_* header.
7700 (struct Lisp_Buffer_Local_Value): Redefine.
7701 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
7702 (struct Lisp_Misc_Any): Add filler to get the right size.
7703 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
7704 Lisp_Intfwd.
7705 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
7706 (DEFVAR_KBOARD): Allocate a forwarding object.
7707 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
7708 (let_shadows_global_binding_p): New function.
7709 (union Lisp_Val_Fwd): New type.
7710 (make_blv): New function.
7711 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
7712 (store_symval_forwarding, swap_in_global_binding, Fboundp)
7713 (swap_in_symval_forwarding, find_symbol_value, Fset)
7714 (let_shadows_buffer_binding_p, set_internal, default_value)
7715 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
7716 (Fkill_local_variable, Fmake_variable_frame_local)
7717 (Flocal_variable_p, Flocal_variable_if_set_p)
7718 (Fvariable_binding_locus):
7719 * xdisp.c (select_frame_for_redisplay):
7720 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
7721 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
7722 * frame.c (store_frame_param):
7723 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
7724 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
7725 value structure.
7726 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
7727 (clone_per_buffer_values): Only adjust markers into the current buffer.
7728 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
7729 (Fbuffer_local_value, set_buffer_internal_1)
7730 (swap_out_buffer_local_variables):
7731 Adapt to the new symbol value structure.
7732 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
7733 (defvar_per_buffer): Take a new arg for the fwd object.
7734 (buffer_lisp_local_variables): Return a proper alist (different fix
7735 for bug#4138).
7736 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
7737 (Fgarbage_collect): Don't handle buffer_defaults specially.
7738 (mark_object): Handle new symbol value structure rather than the old
7739 special Lisp_Misc_* objects.
7740 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
7741 * term.c (set_tty_color_mode):
7742 * bidi.c (bidi_initialize): Don't access the ->value field directly.
7743 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
7744 a buffer_local_flags.
7745 * print.c (print_object): Get rid of impossible forwarding objects.
7746
fd3998ff
EZ
77472010-04-19 Eli Zaretskii <eliz@gnu.org>
7748
7749 * bidi.c (bidi_get_type, bidi_get_category)
7750 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
7751 (bidi_type_of_next_char, bidi_level_of_next_char):
7752 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 7753
e42cd1a7
JB
77542010-04-19 Juanma Barranquero <lekktu@gmail.com>
7755
7756 * dired.c (Ffile_attributes): Fix typo in docstring.
7757
6e104790 77582010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
7759
7760 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
7761 NSInteger (Bug#5811).
7762
6e104790 77632010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
7764
7765 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
7766 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
7767
6e104790 77682010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
7769
7770 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
7771
6e104790
SM
77722010-04-19 Chong Yidong <cyd@stupidchicken.com>
7773
7774 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
7775 terminal frames (Bug#5837).
7776
37dcfea0
EZ
77772010-04-19 Eli Zaretskii <eliz@gnu.org>
7778
d1da276f
EZ
7779 * .gdbinit (xsubchartable): New command.
7780
37dcfea0
EZ
77812010-04-19 Eli Zaretskii <eliz@gnu.org>
7782
7783 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 7784 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
7785 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
7786 and
7787 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
7788
e9515805
SM
77892010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
7790
7791 * alloc.c (Fpurecopy): Hash-cons if requested.
7792 (syms_of_alloc): Update purify-flag docstring.
7793
22aa44a8
JD
77942010-04-18 Jan Djärv <jan.h.d@swipnet.se>
7795
7796 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
7797 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
7798
ebb5722e
EZ
77992010-04-17 Eli Zaretskii <eliz@gnu.org>
7800
7801 Fix a crash when an NSM character is inserted at BEGV.
7802
7803 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
7804 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
7805 NEUTRAL_B or UNKNOWN_BT.
7806
0f4442ef
EZ
78072010-04-16 Eli Zaretskii <eliz@gnu.org>
7808
7809 * xdisp.c (set_cursor_from_row): Don't consider possibility of
7810 other rows with cursor unless they are different from this row and
7811 this row is part of a continued line. (Bug#5943)
7812
7d4e45f8
DN
78132010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
7814
7815 * s/freebsd.h: Restore osreldate.h include.
7816 Suggested by Naohiro Aota.
7817
5ba5ec85
J
78182010-04-16 Jan Djärv <jan.h.d@swipnet.se>
7819
7820 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
7821
20af301d
CY
78222010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
7823
7824 * s/cygwin.h: Avoid linking against static libgcc.
7825
a4b000fb
JL
78262010-04-15 Juri Linkov <juri@jurta.org>
7827
7828 * window.c: Add Qscroll_command.
7829 Remove Vscroll_preserve_screen_position_commands.
7830 (window_scroll_pixel_based, window_scroll_line_based): Check the
7831 `scroll-command' property on the last command instead of searching
7832 the last command in Vscroll_preserve_screen_position_commands.
7833 (syms_of_window): Initialize and staticpro `Qscroll_command'.
7834 Put Qscroll_command property on Qscroll_up and Qscroll_down.
7835 (scroll-preserve-screen-position): Doc fix.
7836 (Vscroll_preserve_screen_position_commands): Remove variable.
7837
bc319ba4
DN
78382010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
7839
6bb24457
DN
7840 * xdisp.c (message): Do not use NO_ARG_ARRAY.
7841
19d4c244
DN
78422010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
7843
7844 Reduce cpp use in Makefile.in.
7845 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
7846 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
7847 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
7848 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
7849 (CRT0_COMPILE): Remove, inline it in the only user.
7850
32129746
JL
78512010-04-14 Juri Linkov <juri@jurta.org>
7852
7853 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
7854 `scroll-up-command' and `M-v' from `scroll-down' to
7855 `scroll-down-command'.
7856
9013a7f8
JL
78572010-04-14 Juri Linkov <juri@jurta.org>
7858
7859 * window.c (Vscroll_preserve_screen_position_commands): New variable
7860 with the default value as the list of Qscroll_down and Qscroll_up.
7861 (window_scroll_pixel_based, window_scroll_line_based): Search the
7862 last command in the list Vscroll_preserve_screen_position_commands
7863 instead of comparing with Qscroll_up and Qscroll_down.
7864
4bef8d26
JD
78652010-04-13 Jan Djärv <jan.h.d@swipnet.se>
7866
92848133
JD
7867 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
7868 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
7869 does that.
7870
4bef8d26
JD
7871 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
7872 to zero.
7873
58b963f7
SM
78742010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
7875
84164a0d
SM
7876 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
7877
2b0a91e7
SM
7878 Try to solve the problem of spurious EOF chars in long lines of text
7879 sent to interactive subprocesses.
7880 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
7881 (system_process_attributes): Remove unused var `ttotal'.
7882 * process.c (send_process): Don't bother breaking long line with EOF
7883 chars when talking to ttys any more.
7884 (wait_reading_process_output): Output a warning when called in such
7885 a way that it could block without being interruptible.
7886
58b963f7
SM
7887 Try to detect file modification within the same second.
7888 * buffer.h (struct buffer): New field modtime_size.
7889 * buffer.c (reset_buffer): Initialize it.
7890 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
7891 (Fverify_visited_file_modtime): Check it.
7892 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
7893 (Fset_visited_file_modtime): Set (or clear) it.
7894
01f5787b
SM
78952010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
7896
7897 * process.c (status_notify): Remove unused var `ro'.
7898
83725342
JD
78992010-04-12 Jan Djärv <jan.h.d@swipnet.se>
7900
7901 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
7902 more than one visual (Bug#5938).
7903
b9465836
DN
79042010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
7905
50426a04
JB
7906 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
7907 Undefine.
b9465836 7908
8d9c8ece
DN
79092010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
7910
b1f52161
DN
7911 Remove C_SWITCH_SYSTEM_TEMACS.
7912 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
7913 (malloc, realloc, free): Use emacs, not temacs for conditional
7914 definition.
7915
7916 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
7917 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
7918
8d9c8ece
DN
7919 Use autoconf, not cpp for some variables.
7920 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
7921 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
7922 (ALL_CFLAGS): Use them as make variables.
7923 (really-lwlib, really-oldXMenu): Do not pass them.
7924
1ecb2d3f
JD
79252010-04-11 Jan Djärv <jan.h.d@swipnet.se>
7926
7927 * xmenu.c (apply_systemfont_to_dialog): New.
7928 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
7929
3a4fa2f2
SM
79302010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
7931
97e53006
SM
7932 * process.c (exec_sentinel): Preserve current-buffer.
7933
3a4fa2f2
SM
7934 * process.c (read_process_output): Move the save-current-buffer to
7935 apply to both the filter and the non-filter branches.
7936
88df7221
DN
79372010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
7938
7939 * s/msdos.h (UNEXEC): New definition.
7940
5634ff85
YM
79412010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7942
6eff5c3d
YM
7943 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
7944 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
7945
7946 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
7947 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
7948 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
7949 TRY_WINDOW_CHECK_MARGINS.
7950
7951 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
7952 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
7953 width only when it is for padding.
5634ff85 7954
b13aef54
J
79552010-04-09 Jan Djärv <jan.h.d@swipnet.se>
7956
7957 * xfns.c (Fx_show_tip): Call try_window in a loop until
7958 fonts_changed_p is zero (Bug#2423).
7959
21d28484
EZ
79602010-04-08 Eli Zaretskii <eliz@gnu.org>
7961
7962 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
7963 the end of TEXT_AREA. (Bug#5856)
7964
0269ef77
JD
79652010-04-08 Jan Djärv <jan.h.d@swipnet.se>
7966
7967 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
7968 HAVE_GCONF.
7969
5930fe97
EZ
79702010-04-08 Eli Zaretskii <eliz@gnu.org>
7971
7972 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
7973 prev.orig_type, for resolving type of NSM. (Bug#5858)
7974
99852628
JD
79752010-04-08 Jan Djärv <jan.h.d@swipnet.se>
7976
7977 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
7978 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
7979 in current_font.
7980 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
7981 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
7982 New functions.
7983 (syms_of_xsettings): Initialize current_font.
7984 defsubr Sfont_get_system_normal_font.
99852628 7985
686b968e
JB
7986 * xsettings.h (Ffont_get_system_normal_font)
7987 (xsettings_get_system_normal_font): Declare.
99852628
JD
7988
7989 * xfns.c (extern xlwmenu_default_font): Remove.
7990 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
7991 to xlwmenu.c.
7992
7993 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
7994 menu items in UTF-8.
7995
7996 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
7997 (apply_systemfont_to_menu): New function.
bba3e508
SM
7998 (set_frame_menubar, create_and_show_popup_menu):
7999 Call apply_systemfont_to_menu.
99852628 8000
7fc874c4
J
80012010-04-07 Jan Djärv <jan.h.d@swipnet.se>
8002
8003 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
8004 FRAME_LINE_TO_PIXEL_Y.
8005
8006 * xterm.c (x_set_window_size_1): Don't add border_width/height to
8007 pixelwidth/height.
8008
863bf481
DN
80092010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
8010
5e5a3b92
DN
8011 Simplify code for HP machines.
8012 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
8013 for GNU_LINUX, not needed.
8014 (UNEXEC, NEED_BSDTTY): Move definitions...
8015 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
8016
863bf481
DN
8017 * m/iris4d.h (UNEXEC): Move definition ...
8018 * s/irix6-5.h (UNEXEC): ... here.
8019
3e6bec3b
JD
80202010-04-04 Jan Djärv <jan.h.d@swipnet.se>
8021
8022 * xfns.c (set_machine_and_pid_properties): New function.
8023 (Fx_create_frame): Call set_machine_and_pid_properties.
8024
2912322b
SM
80252010-04-03 Eli Zaretskii <eliz@gnu.org>
8026
bba3e508
SM
8027 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char):
8028 Check bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
1502b819
EZ
8029 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
8030
2912322b
SM
8031 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
8032 in this function. (Bug#5703)
8033
80342010-04-03 Chong Yidong <cyd@stupidchicken.com>
8035
8036 * nsterm.h: Fix last change.
8037
c435b432
DN
80382010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
8039
a568f507
DN
8040 * m/intel386.h (NO_REMAP): Move definition ...
8041 * s/msdos.h (NO_REMAP): ... here.
8042
4cd9f6c2
DN
8043 * m/vax.h (CRT0_DUMMIES): Remove, unused.
8044
c435b432
DN
8045 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
8046 used on those platforms.
8047
42a2c622
DN
80482010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
8049
8050 Remove extern errno declarations.
8051 * xterm.c:
8052 * xrdb.c:
8053 * w32term.c:
8054 * unexec.c:
8055 * unexaix.c:
8056 * sysdep.c:
8057 * process.c:
8058 * lread.c:
8059 * keyboard.c:
8060 * floatfns.c:
8061 * filelock.c:
8062 * fileio.c:
8063 * emacs.c (main):
8064 * ecrt0.c:
8065 * dispnew.c:
8066 * callproc.c:
8067 * buffer.c: Remove errno extern declarations.
8068 * s/netbsd.h (NEED_ERRNO): Remove.
8069
8224f93d
DN
80702010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
8071
8072 Remove all uses of LIBX11_SYSTEM.
8073 * Makefile.in (LIBX11_SYSTEM): Remove.
8074 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
8075 instead.
8076
814062c7
EZ
80772010-04-01 Eli Zaretskii <eliz@gnu.org>
8078
ed68db4d
EZ
8079 Remove support for DJGPP v1.x (bug#5813).
8080
8081 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
8082 * s/msdos.h:
8083 * unexec.c (make_hdr, copy_text_and_data):
8084 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 8085 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
8086 (IT_set_terminal_modes, __write, _rename, gethostname)
8087 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
8088 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
8089 the value of __DJGPP__.
ed68db4d
EZ
8090 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
8091 compatibility code.
8224f93d
DN
8092 * lread.c:
8093 * gmalloc.c (memalign):
8094 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
8095 * emacs.c (main):
8096 * dosfns.c (init_dosfns):
ed68db4d
EZ
8097 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
8098
52f4d8d5
EZ
80992010-04-01 Eli Zaretskii <eliz@gnu.org>
8100
814062c7
EZ
8101 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
8102 string with `cursor' property comes from an `after-string'
8103 overlay. (Bug#5816)
8104
0dc2e11d
GM
81052010-04-01 Glenn Morris <rgm@gnu.org>
8106
8107 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
8108 Define as Makefile variables.
8109 (LIBX): Use above variables rather than directly using autoconf.
8110
1d29df59
DN
81112010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
8112
8113 Clean up BSD_SYSTEM use.
8114 * xterm.c:
8115 * process.c:
8116 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
8117 for including <sys/ioctl.h>.
8118 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
8119 code is only used for MSDOS.
8120
1546c559
JL
81212010-03-31 Juri Linkov <juri@jurta.org>
8122
8123 * image.c: Add `Qextension_data'.
8124 (syms_of_image): Initialize and staticpro `Qextension_data'.
8125 (Fimage_metadata): Rename from `Fimage_extension_data'.
8126 (gif_load): Put GIF extension data to the property
8127 `Qextension_data'.
8128
6521c534
CY
81292010-03-31 Chong Yidong <cyd@stupidchicken.com>
8130
8131 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
8132 * nsterm.h: Fix prototype.
8133
52c30783
EZ
81342010-03-31 Eli Zaretskii <eliz@gnu.org>
8135
8136 * xdisp.c (highlight_trailing_whitespace): Support highlight of
8137 trailing whitespace in right-to-left rows.
8138
855a0da7
SM
81392010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
8140
8141 Get rid of the direct_output optimizations.
8142 * keyboard.c (nonundocount): Remove extern declaration.
8143 (command_loop_1): Remove brittle optimisation for cheap and
8144 common operations.
8145 * xdisp.c (redisplay_internal): Don't bother checking
8146 redisplay_performed_directly_p any more.
8147 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
8148 any more.
8149 * dispnew.c (redisplay_performed_directly_p)
8150 (direct_output_for_insert, direct_output_forward_char):
8151 * dispextern.h (redisplay_performed_directly_p)
8152 (direct_output_for_insert, direct_output_forward_char): Remove.
8153 * cmds.c (nonundocount): Make it static.
8154
85738751 81552010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
8156
8157 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
8158
85738751 81592010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
8160
8161 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
8162 invisible (Bug#5766).
8163
85738751 81642010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 8165
855a0da7
SM
8166 * xdisp.c (x_consider_frame_title, update_window_cursor):
8167 Remove HAVE_NS conditionals.
194d44e7 8168 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
8169
8170 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
8171 filename for the title.
8172 (ns_set_doc_edited): Do nothing if the selected window is a
8173 minibuffer window.
8174
8175 * nsterm.h: Add prototypes for ns_set_name_as_filename and
8176 ns_set_doc_edited.
8177
8178 * nsterm.m: Remove unneeded prototype.
8179
85738751 81802010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
8181
8182 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
8183 in the DOC file. (Bug#5336)
8184
85738751 81852010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
8186
8187 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
8188
75d1428c
SM
81892010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
8190
8191 * window.c (keys_of_window): Remove redundant/overridden bindings.
8192
82043cfb
EZ
81932010-03-30 Eli Zaretskii <eliz@gnu.org>
8194
8195 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
8196 Restore original behavior when the iterator is not bidi_p.
8197
b5dd0ae7
DN
81982010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
8199
8200 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
8201
bd924a5d
EZ
82022010-03-30 Eli Zaretskii <eliz@gnu.org>
8203
8204 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
8205 are outside the range of cached character positions.
8206
3580374b
JB
82072010-03-30 Juanma Barranquero <lekktu@gmail.com>
8208
8209 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
8210
a7b02820
EZ
82112010-03-30 Eli Zaretskii <eliz@gnu.org>
8212
8213 Initial support for bidirectional editing.
8214
8215 * Makefile.in (obj): Include bidi.o.
8216 (bidi.o): New target.
8217
8218 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
8219 ($(BLD)/bidi.$(O)): New target.
8220
8221 * bidi.c: New file.
8222
8223 * buffer.h (struct buffer): New members bidi_display_reordering
8224 and bidi_paragraph_direction.
8225
8226 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
8227 and bidi_paragraph_direction.
8228 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
8229 and bidi-paragraph-direction.
8230 (Fbuffer_swap_text): Swap the values of
8231 bidi_display_reordering and bidi_paragraph_direction.
8232
8233 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
8234 (bidi_type_t, bidi_dir_t): New types.
8235 (bidi_saved_info, bidi_stack, bidi_it): New structures.
8236 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
8237 prev_stop, base_level_stop, and eol_pos.
8238 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
8239 (IT_STACK_SIZE): Enlarge to 5.
8240 (struct glyph_row): New member reversed_p.
8241 <string_buffer_position>: Update prototype.
8242 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
8243 glyph_row if bidi_it.paragraph_dir == R2L.
8244 (struct glyph): New members resolved_level and bidi_type.
8245
8246 * dispnew.c (direct_output_forward_char): Give up if we need bidi
8247 processing or buffer's direction is right-to-left.
8248 (prepare_desired_row): Preserve the reversed_p flag.
8249 (row_equal_p): Compare the reversed_p attributes as well.
8250
bba3e508
SM
8251 * xdisp.c (init_iterator): Initialize it->bidi_p.
8252 Call bidi_init_it and set it->paragraph_embedding from the current
a7b02820
EZ
8253 buffer's value of bidi_paragraph_direction.
8254 (reseat_1): Initialize bidi_it.first_elt.
8255 (set_iterator_to_next, next_element_from_buffer): Use the value of
8256 paragraph_embedding to determine the paragraph direction.
8257 (set_iterator_to_next): Under bidi reordering, call
8258 bidi_get_next_char_visually. Call bidi_paragraph_init if the
8259 new_paragraph flag is set in the bidi iterator.
8260 (next_element_from_buffer): If bidi_it.first_elt is set,
8261 initialize paragraph direction and find the first character to
8262 display in the visual order. If reseated to a middle of a line,
bba3e508
SM
8263 prime the bidi iterator starting at the line's beginning.
8264 Handle the situation where we overstepped stop_charpos due to
a7b02820
EZ
8265 non-linearity of the bidi iteration. Likewise for when we back up
8266 beyond the previous stop_charpos. When moving across stop_charpos,
8267 record it in prev_stop.
8268 (display_line): Set row->end and it->start for the next row to the
8269 next character in logical order. Always extend reversed_p rows to
8270 the end of line, even if they end at ZV. Copy the reversed_p flag
8271 to the next glyph row. Keep calling set_cursor_from_row for
8272 bidi-reordered rows even if we already have a possible candidate
8273 for cursor position. Set row_end after all the row's glyphs have
8274 been produced, by looping over the glyphs. Record the position
8275 after EOL in it->eol_pos, and use it to set end_pos of the last
8276 row produced for a continued line.
8277 <Qright_to_left, Qleft_to_right>: New variables.
8278 (syms_of_xdisp): Initialize and staticpro them.
8279 (string_buffer_position_lim): New function.
8280 (string_buffer_position): Most of code moved to
8281 string_buffer_position_lim. Last argument and return value are
8282 now EMACS_INT; all callers changed.
8283 (set_cursor_from_row): Rewritten to support bidirectional text and
8284 reversed glyph rows.
bba3e508
SM
8285 (text_outside_line_unchanged_p, try_window_id):
8286 Disable optimizations if we are reordering bidirectional text and the
a7b02820
EZ
8287 paragraph direction can be affected by the change.
8288 (append_glyph, append_composite_glyph)
8289 (produce_image_glyph, append_stretch_glyph): Set the
8290 resolved_level and bidi_type members of each glyph.
8291 (append_glyph): If the glyph row is reversed, prepend the glyph
8292 rather than appending it.
8293 (handle_stop_backwards): New function.
8294 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
8295 (reseat): call handle_stop_backwards to recompute prev_stop and
8296 base_level_stop for the new position.
8297 (handle_invisible_prop): Under bidi iteration, skip invisible text
8298 using bidi_get_next_char_visually. If we are `reseat'ed, init the
8299 paragraph direction. Update IT->prev_stop after skipping
8300 invisible text.
8301 (move_it_in_display_line_to): New variables prev_method
8302 and prev_pos. Compare for strict equality in
8303 BUFFER_POS_REACHED_P.
8304 (try_cursor_movement): Examine all the candidate rows that occlude
8305 point, to return the best match. If rows are bidi-reordered
8306 and point moved backwards, back up to the row that is not a
8307 continuation line, and start looking for a suitable row from
8308 there.
8309
8310 * term.c (append_glyph): Reverse glyphs by pre-pending them,
8311 rather than appending, if the glyph_row's reversed_p flag is set.
8312 Set the resolved_level and bidi_type members of each glyph.
8313
8314 * .gdbinit (pbiditype): New command.
8315 (pgx): Use it to display bidi level and type of the glyph.
8316 (pitx): Display some bidi information about the iterator.
8317 (prowlims, pmtxrows): New commands.
8318
32a8894e
DN
83192010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
8320
8321 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
8322 * s/usg5-4.h (LIBS_DEBUG):
8323 * s/irix6-5.h (C_DEBUG_SWITCH):
8324 * s/gnu-linux.h (LIBS_DEBUG):
8325 * s/darwin.h (LIBS_DEBUG):
8326 * s/bsd-common.h (LIBS_DEBUG):
8327 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
8328 * m/iris4d.h (LIBS_DEBUG):
8329 * m/hp800.h (LIBS_DEBUG): Remove definitions.
8330
8331 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
8332 (LIBS_DEBUG): Remove definition.
8333
649dbf36
CY
83342010-03-27 Chong Yidong <cyd@stupidchicken.com>
8335
8336 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
8337 Windows.
8338
cad4261f
YM
83392010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8340
8341 * process.c (Fmake_network_process): Don't call turn_on_atimers around
8342 `connect' (Bug#5723).
8343
cd591dbc
HE
83442010-03-25 Helmut Eller <eller.helmut@gmail.com>
8345
8346 * process.c (Fmake_network_process): Call `select' for interrupted
8347 `connect' rather than creating new socket (Bug#5173).
8348
e867cb5d 83492010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
8350
8351 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
8352
8353 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
8354
8355 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
8356
e867cb5d 83572010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
8358
8359 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
8360 XLoadQueryFont.
8361
e867cb5d 83622010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
8363
8364 * coding.c (decode_coding_ccl): Fix previous change for the
8365 multibyte case.
fb608df3
KH
8366 (encode_coding_ccl): Don't setup ccl program here. Fix for the
8367 case that the output buffer is fullfilled.
8368 (encode_coding): Setup ccl program here.
fbdc1721 8369
5845f0ed
DN
83702010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
8371
814fb708
DN
8372 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
8373
5845f0ed
DN
8374 Simplify LIBS_MACHINE definitions.
8375 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
8376 * m/iris4d.h (LIBS_MACHINE): Likewise.
8377 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
8378 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 8379 * s/netbsd.h: Remove commented out code.
5845f0ed 8380
b7064064
DN
83812010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
8382
df7734b2
DN
8383 Remove dead code dealing with POSIX_SIGNALS.
8384 * atimer.c (set_alarm): Remove dead code, all USG systems define
8385 POSIX_SIGNALS.
8386 * data.c (arith_error): Likewise.
8387 * keyboard.c (input_available_signal, handle_user_signal)
8388 (interrupt_signal): Likewise.
8389 * process.c (sigchld_handler): Likewise.
8390 (create_process): Remove if 0 code. Remove HPUX conditional when
8391 !defined (POSIX_SIGNALS), it cannot be true.
8392 * syssignal.h: Remove USG5_4 and USG conditionals when
8393 !POSIX_SIGNALS, they cannot be true.
8394
b7064064
DN
8395 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
8396 NO_SOCK_SIGIO, not used anymore.
8397
55da5ee3
DN
83982010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
8399
0be96e3a
DN
8400 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
8401 support vax on BSDs.
8402
55da5ee3
DN
8403 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
8404 * s/aix4-2.h (ORDINARY_LINK): ... here.
8405
c0282183
AS
84062010-03-21 Andreas Schwab <schwab@linux-m68k.org>
8407
82c3d67a
AS
8408 * Makefile.in (abs_builddir): Define.
8409 (bootstrap_exe): Use it.
8410 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 8411
3613edce
SM
84122010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
8413
8414 * Makefile.in (bootstrap_exe): Use an absolute name.
8415
7f110ddc
DN
84162010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
8417
22e87574
DN
8418 Remove support for old GNU/Linux using libc version 5.
8419 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
8420 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
8421
05a670e6
DN
8422 Consolidate redundant definitions in s/bsd-common.h.
8423 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
8424 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
8425 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
8426 doing it in all files that include this one.
8427 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
8428 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
8429 (LDAV_SYMBOL, KERNEL_FILE): Remove.
8430 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
8431 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
8432 (LDAV_SYMBOL, KERNEL_FILE): Remove.
8433 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
8434 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
8435 (LDAV_SYMBOL, KERNEL_FILE): Remove.
8436
2968f561
DN
8437 Consolidate redundant definitions.
8438 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
8439 it's undefined in all files that include this one.
8440 (POSIX_SIGNALS): Define here instead of doing it in all files that
8441 include this one.
8442 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
8443 (POSIX_SIGNALS): Do not define.
8444 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
8445 (POSIX_SIGNALS): Do not define.
8446 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
8447 (POSIX_SIGNALS): Do not define.
8448
15d25dc0
DN
8449 Remove support for old UNIX System V systems.
8450 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
8451 * s/usg-5-4-2.h: Remove.
8452
07e339e4
DN
8453 Remove support for Solaris on PPC and for old versions.
8454 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
8455 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
8456 that cancel each other.
8457 * s/sol2-3.h:
8458 * s/sol2-4.h:
8459 * s/sol2-5.h: Remove.
8460 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
8461 (NO_REMAP): Remove, unused.
8462 (UNEXEC): Move definition ...
8463 * s/aix4-2.h (UNEXEC): ... here.
8464
7f110ddc
DN
8465 * s/openbsd.h: Remove support for non-ELF and for systems that do
8466 not support shared libraries.
8467 * s/netbsd.h:
8468 * s/freebsd.h: Likewise.
8469
605f35cd
DN
84702010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
8471
8472 Remove non-working support for lynxos 3.0.
8473 * s/lynxos.h: Remove file.
8474
8475 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
8476 COFF_BSD_SYMBOLS, nothing defines it anymore.
8477
aed71cf4
DN
84782010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
8479
8480 Remove obsolete uses of HAVE_SHM.
8481 * emacs.c (standard_args):
8482 (Fdump_emacs):
8483 (syms_of_emacs): Remove code depending on HAVE_SHM.
8484
8485 * alloc.c: Remove HAVE_SHM dependent definition.
8486
8487 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
8488
aded53ff
GM
84892010-03-18 Glenn Morris <rgm@gnu.org>
8490
17284745
GM
8491 * emacs.c (USAGE4): Hard-code bug address.
8492 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
8493 (bug_reporting_address): Remove.
8494 (main): Don't call bug_reporting_address.
8495
aded53ff
GM
8496 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
8497 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
8498
303500aa
CY
84992010-03-15 Chong Yidong <cyd@stupidchicken.com>
8500
8501 * xfns.c (Fx_create_frame):
8502 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
8503 on left.
8504
cef3058f
CY
85052010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
8506
8507 * editfns.c (Fformat): Account for string precision when computing
8508 field width (Bug#5710).
8509
a647d59d
CY
85102010-03-12 Chong Yidong <cyd@stupidchicken.com>
8511
4fa42018
CY
8512 * xfns.c (Fx_create_frame): Set default to Qright.
8513
a647d59d
CY
8514 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
8515 all window systems.
8516
6da23aaa
EZ
85172010-03-12 Eli Zaretskii <eliz@gnu.org>
8518
a96f6398 8519 These changes remove termcap.c from the build on Posix platforms.
83d02def 8520 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
8521 (MSDOS_OBJ): ...to here.
8522 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
8523 now identical to when LIBS_TERMCAP is defined.
8524
8525 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
8526
8527 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
8528
a96f6398 8529 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 8530
288f9fc0
CY
85312010-03-10 Chong Yidong <cyd@stupidchicken.com>
8532
8533 * Branch for 23.2.
8534
d48cd3f4
SM
85352010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
8536
8537 Cleanup setup of gl_state in various parts of the code.
8538 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
8539 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
8540 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
8541 (skip_chars):
8542 * regex.c (regex_compile): Use it.
8543 (re_compile_pattern): Don't set gl_state.current_syntax_table since
8544 it's now set in regex_compile when/if we need it.
8545
618db430
SM
85462010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
8547
c0335e02
SM
8548 Make it possible to C-g in a tight bytecode loop again (bug#5680).
8549 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
8550 (QUIT): Use it to consolidate code and remove redundancy.
8551 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
8552
254c06a8
SM
8553 * regex.c (regex_compile): Setup gl_state as well.
8554
618db430
SM
8555 * syntax.c (skip_chars): Setup gl_state (bug#3823).
8556 (in_classes): Use CONSP before XCAR/XCDR.
8557
233f0c9f
CY
85582010-03-03 Chong Yidong <cyd@stupidchicken.com>
8559
8560 * keymap.c (Fwhere_is_internal): Use Fequal to compare
8561 definitions, so that keyboard macros are correctly handled
8562 (Bug#5481).
8563
75f80e63
EZ
85642010-03-02 Eli Zaretskii <eliz@gnu.org>
8565
8566 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
8567 text that could be relocated inside the call to emacs_mule_char.
8568 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
8569 (CODING_DECODE_CHAR): Add a comment describing its purpose.
8570
dcfb9bc4
KH
85712010-03-02 Kenichi Handa <handa@m17n.org>
8572
fc9a17bc
KH
8573 * character.c (parse_str_as_multibyte): Fix handling of the
8574 multibyte form of raw-bytes.
8575 (str_as_multibyte): Likewise.
8576
dcfb9bc4
KH
8577 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
8578 form of raw-bytes.
8579
412c01b6
CY
85802010-02-28 Chong Yidong <cyd@stupidchicken.com>
8581
8582 * charset.c (load_charset_map_from_file)
8583 (load_charset_map_from_vector): Zero out allocated
8584 charset_map_entries before using them.
8585
df7e1ea0
AS
85862010-02-27 Andreas Schwab <schwab@linux-m68k.org>
8587
8588 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
8589
fe69a722
CY
85902010-02-27 Chong Yidong <cyd@stupidchicken.com>
8591
4ed28cf4
CY
8592 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
8593 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 8594
7379cfce
KH
85952010-02-26 Kenichi Handa <handa@m17n.org>
8596
f88cc4d6
KH
8597 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
8598
7379cfce
KH
8599 * xdisp.c (reseat_to_string): Fix previous change.
8600
cf2fdcfb
CY
86012010-02-26 David Reitter <david.reitter@gmail.com>
8602
8603 * nsfont.m (nsfont_draw): ns_antialias_text should be a
8604 Lisp_Object (Bug#4736).
8605
cc6c7c75
KH
86062010-02-25 Kenichi Handa <handa@m17n.org>
8607
8608 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
8609
32e737d7
JD
86102010-02-24 Jan Djärv <jan.h.d@swipnet.se>
8611
8612 * xterm.c (XTflash): Move declarations before statements.
8613
8614 * gtkutil.c (xg_get_gdk_display): Remove (unused).
8615 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
8616 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
8617 (xg_create_tool_bar): Remove unused variables.
8618 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 8619 (xg_create_frame_widgets): Remove variable grav.
32e737d7 8620
676cae9f
CY
86212010-02-21 Chong Yidong <cyd@stupidchicken.com>
8622
8623 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
8624
886cc2b8
SM
86252010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
8626
8627 * term.c (fatal): Add a final \n if needed (bug#5596).
8628
ddb2d8e2
CY
86292010-02-18 Chong Yidong <cyd@stupidchicken.com>
8630
8631 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
8632
2a4f8d3d
GM
86332010-02-18 Glenn Morris <rgm@gnu.org>
8634
8635 * callint.c (Finteractive): Doc fix.
8636
ebaf11b6
KH
86372010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
8638
886cc2b8
SM
8639 * coding.c (record_conversion_result):
8640 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
8641 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
8642 memory allocation error.
8643
d0396581
KH
86442010-02-17 Kenichi Handa <handa@m17n.org>
8645
886cc2b8
SM
8646 * coding.c (decode_coding_ccl): Don't setup ccl program here.
8647 Fix for the case that the output buffer is fullfilled.
d0396581
KH
8648 (decode_coding): Setup ccl program here. Keep looping when the
8649 decoder stopped because the output buffer is
8650 fullfilled (bug#5534).
8651
8652 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
8653
98599f74
JD
86542010-02-13 Jan Djärv <jan.h.d@swipnet.se>
8655
471e4f04 8656 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 8657 bug #5571.
886cc2b8 8658 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 8659 overdrawn.
98599f74 8660
182659ae
JD
86612010-02-10 Jan Djärv <jan.h.d@swipnet.se>
8662
8663 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
8664 doing_interact here.
8665 (ice_connection_closed): New function.
8666 (x_session_check_input, smc_die_CB, ice_io_error_handler)
8667 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
8668 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
8669 returns I/O error.
8670 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
8671 bug #5512.
8672
9be32c4e 86732010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
8674
8675 * nsfont.m (nsfont_open): The system's value for the font descent
8676 is negative, so round it down to avoid clipping.
8677
a2f3eb19
CY
86782010-02-06 Chong Yidong <cyd@stupidchicken.com>
8679
8680 * charset.c (load_charset_map_from_file)
8681 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 8682 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 8683
3088147c
CY
86842010-02-05 Chong Yidong <cyd@stupidchicken.com>
8685
8686 * charset.c (load_charset_map_from_file): Allocate large
8687 charset_map_entries structure on the heap rather than the stack.
8688 (Bug#5526).
8689
b57d9029
KH
86902010-01-31 Kenichi Handa <handa@m17n.org>
8691
8692 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 8693 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 8694
c67d885b
CY
86952010-01-31 Chong Yidong <cyd@stupidchicken.com>
8696
8697 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
8698 <deactivated@gmail.com> (Bug#3605).
8699
8fab2362
CY
87002010-01-31 David De La Harpe Golden <david@harpegolden.net>
8701
8702 * fileio.c (Frename_file): Correctly rename symlinks to
8703 directories (Bug#5496).
8704
cb2a62f2
CY
87052010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
8706
8707 * nsterm.m (ns_ring_bell): Handle visible bell like X.
8708
944c7a26
AS
87092010-01-30 Andreas Schwab <schwab@linux-m68k.org>
8710
8711 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
8712
c024ac08
CY
87132010-01-29 Chong Yidong <cyd@stupidchicken.com>
8714
8715 * frame.c (DEFAULT_ROWS): Change default to 35.
8716
8717 * xfns.c (x_default_font_parameter): Change default XFT font to
8718 monospace-10 (Bug#3643).
8719
af93af83
EZ
87202010-01-29 Eli Zaretskii <eliz@gnu.org>
8721
8722 * w32inevt.c (key_event): Remove unnecessary comparison of
8723 event->uChar.AsciiChar with 128.
8724
ca0eb708
CY
87252010-01-28 Chong Yidong <cyd@stupidchicken.com>
8726
b242dbfc
CY
8727 * fileio.c (Frename_file): Fix last change (Bug#5487).
8728
ca0eb708
CY
8729 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
8730
8731 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
8732
45d45af5
JD
87332010-01-28 Jan Djärv <jan.h.d@swipnet.se>
8734
8735 * xfns.c (Fx_create_frame): Remove window size matching code from
8736 2010-01-15.
a73f9c9d 8737 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 8738
7e233730
JR
87392010-01-27 Jason Rumney <jasonr@gnu.org>
8740
8741 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 8742 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 8743
86e893e3
KH
87442010-01-27 Kenichi Handa <handa@m17n.org>
8745
8746 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 8747 pattern string (Bug#4209).
86e893e3 8748
8719abec
CY
87492010-01-27 David De La Harpe Golden <david@harpegolden.net>
8750
8751 * fileio.c (Frename_file): Call copy-directory and
8752 delete-directory for directories, in order to handle cross-device
8753 renaming (Bug#3353).
8754
844794c8
JD
87552010-01-25 Jan Djärv <jan.h.d@swipnet.se>
8756
aa3e13b5 8757 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 8758 sizes 24 and 10. Bug #3643.
844794c8 8759
bd4b5750
SM
87602010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
8761
8dc1adf6 8762 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
8763 * keymap.c (shadow_lookup): Add `remap' arg.
8764 (describe_map, describe_vector): Update calls to shadow_lookup.
8765 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
8766 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
8767 perform remapping during shadow_lookup check of remapped_sequences.
8768
285d07e2
CY
87692010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
8770
8771 * image.c (png_load): Use png_sig_cmp instead of the obsolete
8772 png_check_sig, which has been removed in libpng 1.4.
8773
c6d09b8d
CY
87742010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
8775
8776 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
8777 lacks this header file).
8778
3d782998
YM
87792010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8780
8781 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
8782 as in Emacs 22.
8783
2aff7c53
YM
87842010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8785
8786 * lisp.h (make_pure_string): String pointer arg now points to const.
8787
8788 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
8789 args now point to const.
8790
74327f7a
EZ
87912010-01-22 Eli Zaretskii <eliz@gnu.org>
8792
8793 * lread.c (Fload): Don't treat files without .elc extension as
8794 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
8795 them. (bug#5303)
8796
4d1e6632
KH
87972010-01-20 Kenichi Handa <handa@m17n.org>
8798
8799 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
8800 treat the source as actual byte sequence.
8801
1fdede8f
AM
88022010-01-19 Alan Mackenzie <acm@muc.de>
8803
8804 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 8805 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
8806 `signal_after_change_p' to `coherent_change_p', and make the
8807 invocation of `modify_region' conditional on it.
8808
67477f30
JD
88092010-01-19 Jan Djärv <jan.h.d@swipnet.se>
8810
8811 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
8812 for debug purpose.
8813 (syms_of_xsettings): Declare xft-settings.
8814
244b023e
CY
88152010-01-18 Chong Yidong <cyd@stupidchicken.com>
8816
8817 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
8818
617364fe
CY
88192010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
8820
8821 * xterm.c (event_handler_gdk): Block input (Bug#5037).
8822
4fe22cdf
CY
88232010-01-16 Chong Yidong <cyd@stupidchicken.com>
8824
8825 * emacs.c (standard_args): Adjust arg priorities to reflect how
8826 they are processed in startup.el.
8827
e118d2be
AS
88282010-01-16 Andreas Schwab <schwab@linux-m68k.org>
8829
8830 * Makefile.in (lisp, shortlisp): Update.
8831
523ae620
SM
88322010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
8833
8834 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
8835 code, link the new kboard into all_kboard before running Lisp code,
8836 and protect the new terminal with GCPRO (Bug#5365).
8837 (x_term_init): Remove unused var `atom'.
8838 (x_delete_display, x_delete_terminal): Remove unused var `i'.
8839
f0d13888
JD
88402010-01-15 Jan Djärv <jan.h.d@swipnet.se>
8841
8842 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
8843 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
8844 to find out usable size of the desktop. Don't make frames larger than
ac146f82 8845 this. Bug #3643.
f0d13888 8846
cc320f07
KH
88472010-01-15 Kenichi Handa <handa@m17n.org>
8848
8849 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
8850
7ffdf101
CY
88512010-01-15 Chong Yidong <cyd@stupidchicken.com>
8852
8853 * nsterm.m (Qnone): Define.
8854
8855 * nsfns.m (Qnone): Move definition to nsterm.m.
8856
d12bd917
KH
88572010-01-14 Kenichi Handa <handa@m17n.org>
8858
8859 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
8860 systems.
8861
d9a7c140
KH
88622010-01-14 Kenichi Handa <handa@m17n.org>
8863
8864 Make auto-composition work on all buffers even if they are
8865 fundamental mode.
8866
8867 * composite.c (Vauto_composition_mode): New variable.
8868 (composition_compute_stop_pos): Check Vauto_composition_mode
8869 instead of Vauto_composition_function.
8870 (composition_adjust_point, Ffind_composition_internal): Likewise.
8871 (syms_of_composite): Declare Lisp variable
8872 "auto-composition-mode" here.
8873
63286bb2
CY
88742010-01-13 Chong Yidong <cyd@stupidchicken.com>
8875
8876 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
8877 during call to vendor-specific-keysyms (Bug#5365).
8878
c2623ee7
YM
88792010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8880
8881 * keyboard.c (input_available_signal) [SYNC_INPUT]:
8882 Call SIGNAL_THREAD_CHECK (Bug#5333).
8883
8884 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
8885 Call SIGNAL_THREAD_CHECK.
8886
0b5397c2
SM
88872010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
8888
8889 Try to fix bug#5314. This is probably not the final word, tho.
8890 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
8891 recent-auto-save-p as a side-effect.
8892 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
8893 * buffer.c (Fkill_buffer, reset_buffer):
8894 * editfns.c (Fsubst_char_in_region):
8895 * fileio.c (Finsert_file_contents, Fdo_auto_save)
8896 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
8897
dc954cb2
KH
88982010-01-13 Kenichi Handa <handa@m17n.org>
8899
8900 Display buffer name, etc. in mode line by composing correctly.
8901
8902 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
8903 STRING is not nil.
0b5397c2 8904 (display_mode_element): Adjust for the change of
dc954cb2
KH
8905 decode_mode_spec and display_line.
8906 (decode_mode_spec): Change arg MULTIBYTE to STRING.
8907 (display_string): Handle the case that STRING is non-null and
8908 LISP_STRING is not nil.
8909
0b5397c2
SM
8910 * xterm.c (x_draw_composite_glyph_string_foreground):
8911 Pay attention to s->face->overstrike.
dc954cb2
KH
8912
8913 * composite.c (composition_reseat_it): Don't check PT if STRING is
8914 non nil.
8915
4a00eaca
YM
89162010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8917
8918 * keyboard.c (read_char): Don't apply previous change when current
8919 buffer is unchanged by command execution.
8920
60abb287
JD
89212010-01-12 Jan Djärv <jan.h.d@swipnet.se>
8922
8923 * keyboard.c (read_char): Return after executing from special map.
8924
893db5bc
GM
89252010-01-12 Glenn Morris <rgm@gnu.org>
8926
8927 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
8928 bug-gnu-emacs rather than emacs-pretest-bug.
8929
4d03ece0
CY
89302010-01-11 Chong Yidong <cyd@stupidchicken.com>
8931
8932 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
8933 initializing the Lisp variables that depend on them.
8934
1df47e38
YM
89352010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8936
8937 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
8938 Clear areas that will not be updated after change of menu bar lines.
8939 Clear the menu bar window's current matrix when the window gets empty.
8940
2f1c6384
CY
89412010-01-09 Chong Yidong <cyd@stupidchicken.com>
8942
e398c61c
CY
8943 * intervals.h, textprop.c (extend_property_ranges): Return value
8944 and args changed. Discard properties that begin at or after the
8945 new end (Bug#5306).
8946
8947 * editfns.c (Fformat): Caller changed.
8948
e5a29a10
CY
8949 * nsterm.m (ns_set_default_prefs): Delete function.
8950 (syms_of_nsterm): Initialize ns_command_modifier,
8951 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
8952 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
8953
2f1c6384
CY
8954 * xdisp.c (pos_visible_p): Check for invisible text at the correct
8955 position (Bug#4040).
8956
d427a9fa
EZ
89572010-01-09 Eli Zaretskii <eliz@gnu.org>
8958
8959 * editfns.c (Ffloat_time): Doc fix.
8960
21b9df2f
JD
89612010-01-09 Jan Djärv <jan.h.d@swipnet.se>
8962
8963 * xfns.c (Fx_create_frame): Don't create frame larger than display
8964 by default bug#3643.
8965
4b00d3b1
YM
89662010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8967
8968 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
8969 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
8970 windows above internal border.
8971
8972 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
8973 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
8974 windows above internal border.
8975
8976 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
8977 tool bar windows specially.
8978
8979 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
8980
8981 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
8982 specially.
8983 (XTflash): Take account of menu bar height.
8984
8985 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
8986 specially.
8987
5075d853
JD
89882010-01-08 Jan Djärv <jan.h.d@swipnet.se>
8989
ac146f82 8990 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
8991 also be true before we can return early (bug #5339).
8992
474217c8
CY
89932010-01-06 David Reitter <david.reitter@gmail.com>
8994
8995 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
8996 (Fns_display_usable_bounds): Rewrite, computing bounds properly
8997 (Bug#3233).
8998
c0e6d47d
JD
89992010-01-06 Jan Djärv <jan.h.d@swipnet.se>
9000
d0cf45b7
JD
9001 * font.c (font_open_entity): Enable chache and call cached_font_ok
9002 for the driver if defined.
9003 (QCuser_spec): New symbol.
9004 (font_spec_from_name): Save name as user-spec.
9005 (font_load_for_lface): Keep user-spec instead of name.
9006 (font_open_by_name): Save name as user-spec.
9007 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 9008 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
9009
9010 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
9011 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
9012 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
9013
9014 * font.h (struct font_driver): Add cached_font_ok.
9015
c0e6d47d
JD
9016 * xterm.c (x_clear_frame): Queue draw for scroll bars.
9017
7c583cd8
JD
90182010-01-05 Jan Djärv <jan.h.d@swipnet.se>
9019
9020 * xterm.c (x_new_font): Move code for setting rows/cols before
9021 resizing ...
ac146f82 9022 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
9023
9024 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
9025 (xg_frame_resized, xg_frame_set_char_size):
9026 Call xg_clear_under_internal_border.
7c583cd8 9027 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 9028
03f77f0a
CY
90292010-01-05 Chong Yidong <cyd@stupidchicken.com>
9030
9031 * keyboard.c (read_key_sequence): Catch keyboard switch after
9032 making a new tty frame (Bug#5095).
9033
2a1ef5be
KH
90342010-01-05 Kenichi Handa <handa@m17n.org>
9035
9036 * fontset.c (fontset_find_font): Fix getting the frame pointer.
9037
e3eb1dae
SM
90382010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
9039
9040 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
9041 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
9042 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
9043
777013f2
MA
90442010-01-03 Michael Albinus <michael.albinus@gmx.de>
9045
9046 * dbusbind.c (xd_add_watch): Improve debug message.
9047 (xd_remove_watch): Improve debug message. If DATA is the session
9048 bus, unset D-Bus session environment.
9049 (Fdbus_init_bus): Pass the bus as argument to
9050 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 9051
8932b1c2
CY
90522010-01-01 Chong Yidong <cyd@stupidchicken.com>
9053
87231e2c
CY
9054 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
9055
4801c5fa
CY
9056 * lread.c (syms_of_lread): Make it clearer that these are the
9057 names of loaded files (Bug#5068).
9058
8932b1c2
CY
9059 * eval.c (run_hook_with_args): Handle the case where the global
9060 value has the obsolete single-function form (Bug#5026).
9061
11e3c684
CY
90622009-12-27 Chong Yidong <cyd@stupidchicken.com>
9063
9064 * minibuf.c (Fall_completions): Minor optimization.
9065
5b28ce35
EZ
90662009-12-26 Eli Zaretskii <eliz@gnu.org>
9067
5ce6e4f4
JB
9068 * .gdbinit (pgx): Fix display of composite glyphs.
9069 Display cmp.from and cmp.to as well.
9070 (pitx): Fix last change.
5b28ce35 9071
bcffff46
KH
90722009-12-25 Kenichi Handa <handa@m17n.org>
9073
9074 * composite.h (composition_adjust_point): Update prototype.
9075
9076 * composite.c (composition_reseat_it): Don't make a composition
9077 spanning over point.
9078 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
9079 composable characters.
9080 (composition_adjust_point): New arg NEW_PT. Callers changed.
9081
9082 * keyboard.c (command_loop_1): Force redisplay if the last point
9083 was within a composition.
9084 (adjust_point_for_property): Don't adjust point for automatic
9085 composition when called after buffer modification.
9086
3f670e9a
EZ
90872009-12-19 Eli Zaretskii <eliz@gnu.org>
9088
5ce6e4f4
JB
9089 * .gdbinit (pitx): Don't use enum names, use their values.
9090 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
9091 (pgx): Don't use enum names, use their values.
9092 (pitmethod): New helper command.
9093 (pitx): Use it to display iteration method.
9094 (pgrowit): New command.
9095
ad903955
EZ
9096 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
9097
3f670e9a
EZ
9098 Update dependencies in Makefile.in.
9099
9100 * Makefile.in (alloc.o): Depend on termhooks.h.
9101 (atimer.o): Depend on blockinput.h.
9102 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
9103 and frame.h.
9104 (callint.o): Depend on systime.h, coding.h, and composite.h.
9105 (callproc.o): Depend on buffer.h.
9106 (casefiddle.o): Don't depend on charset.h.
9107 (casetab.o): Depend on character.h.
9108 (ccl.o): Depend on composite.h.
9109 (chartab.o): Depend on ccl.h.
9110 (cm.o): Depend on dispextern.h.
9111 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
9112 (coding.o): Don't depend on $(INTERVALS_H).
9113 (composite.o): Don't depend on dispextern.h explicitly (it's in
9114 $(INTERVALS_H)). Depend on ccl.h.
9115 (data.o): Depend on systime.h, coding.h, composite.h,
9116 dispextern.h, font.h, and ccl.h.
9117 (dired.o): Depend on composite.h.
9118 (dispnew.o): Depend on coding.h. Don't depend explicitly on
9119 composite.h (it's in $(INTERVALS_H)).
9120 (doc.o): Depend on systime.h, coding.h, and composite.h.
9121 (editfns.o): Don't depend explicitly on dispextern.h.
9122 (emacs.o): Depend on frame.h and coding.h.
9123 (eval.o): Depend on coding.h, composite.h, and xterm.h.
9124 (fileio.o): Depend on frame.h and commands.h. Don't depend
9125 explicitly on dispextern.h.
9126 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
9127 composite.h.
9128 (fns.o): Don't depend on termhooks.h.
9129 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
9130 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
9131 coding.h, $(INTERVALS_H), window.h, xterm.h.
9132 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
9133 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
9134 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
9135 fontset.h, ccl.h, and ftfont.h.
9136 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
9137 (gtkutil.o): Depend on dispextern.h and composite.h.
9138 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
9139 termhooks.h, and ccl.h.
9140 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
9141 (intervals.o): Depend on systime.h and coding.h.
9142 (keyboard.o): Depend on composite.h and coding.h.
9143 (keymap.o): Depend on coding.h and frame.h.
9144 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
9145 (macros.o): Depend on systime.h, coding.h, and composite.h.
9146 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
9147 and atimer.h.
9148 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
9149 dispextern.h explicitly.
0b5397c2
SM
9150 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
9151 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
9152 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
9153 (regex.o): Don't depend on charset.h.
9154 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
9155 (search.o): Don't depend explicitly on composite.h.
9156 (sound.o): Depend on atimer.h and systime.h.
9157 (syntax.o): Don't depend explicitly on composite.h.
9158 (sysdep.o): Depend on coding.h and composite.h.
9159 (term.o): Depend on xterm.h and buffer.h.
9160 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
9161 (textprop.o): Don't depend on dispextern.h explicitly.
9162 (undo.o): Depend on dispextern.h.
9163 (window.o): Depend on coding.h and termhooks.h. Don't depend on
9164 dispextern.h and composite.h explicitly.
9165 (xdisp.o): Depend on ccl.h.
9166 (xfaces.o): Depend on coding.h and ccl.h.
9167 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
9168 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
9169 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
9170 ftfont.h.
9171 (xgselect.o): New dependency.
9172 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
9173 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
9174 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
9175 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
9176 (xsmfns.o): Depend on frame.h and dispextern.h.
9177 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
9178 sysselect.h.
9179
7a6f7fea
AS
91802009-12-19 Andreas Schwab <schwab@linux-m68k.org>
9181
9182 * font.c (Fclear_font_cache): Pass correct cache argument to
9183 font_clear_cache.
9184
f4c21026
AS
91852009-12-16 Andreas Schwab <schwab@linux-m68k.org>
9186
9187 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
9188 twice.
9189
f7ab0997
CY
91902009-12-15 Chong Yidong <cyd@stupidchicken.com>
9191
9192 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
9193 calling file-remote-p. Reported by Jim Meyering.
9194
fa8e045a
MA
91952009-12-15 Michael Albinus <michael.albinus@gmx.de>
9196
9197 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 9198 avoid compiler warnings. (Bug #5217)
fa8e045a 9199
a63dba42
KH
92002009-12-14 Kenichi Handa <handa@m17n.org>
9201
9202 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
9203 in 8-bit encoding.
9204
5ce6e4f4 92052009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
9206
9207 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
9208 tooltip windows.
9209
223e5fc6
JD
92102009-12-13 Jan Djärv <jan.h.d@swipnet.se>
9211
36acb2a7
JD
9212 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
9213 Xatom_net_window_type.
9214
9215 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
9216 Xatom_net_window_type.
9217
b8f00677
JD
9218 * xterm.c (my_log_handler): New function.
9219 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 9220 so we can filter out buggy messages. (Bug #5120).
b8f00677 9221
e5f0bc9a
JD
9222 * xterm.c (xg_scroll_callback): Parameter list changed,
9223 use parameter GtkScrollType to determine scroll/line/page.
9224 Only allow dragging if a button < 4 is grabbed (bug #5177).
9225 (xg_end_scroll_callback): New function.
9226 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
9227 xg_create_scroll_bar.
9228
9229 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
9230 (scroll_end_callback): Remove.
9231 (xg_create_scroll_bar): Add parameter end_callback, bind it to
9232 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 9233 bug #5177.
e5f0bc9a
JD
9234 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
9235 bug #5177.
9236
9237 * gtkutil.h (XG_LAST_SB_DATA): Remove.
9238 (xg_create_scroll_bar): Add GCallback end_callback.
9239
223e5fc6
JD
9240 * xftfont.c (QClcdfilter): New variable.
9241 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
9242 (syms_of_xftfont): Initialize QClcdfilter.
9243
3c055b77
JD
92442009-12-12 Jan Djärv <jan.h.d@swipnet.se>
9245
9246 * xsettings.c (struct xsettings): Add member seen.
9247 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 9248 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
9249 (apply_xft_settings): Only update Xft settings with what member seen
9250 indicates as new.
9251
05fe33ff
EZ
92522009-12-12 Eli Zaretskii <eliz@gnu.org>
9253
c4cc8b9a 9254 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
9255 (struct glyph): Use EMACS_INT for charpos.
9256 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
9257 region_beg_charpos, region_end_charpos,
9258 redisplay_end_trigger_charpos, and also for
9259 iterator_stack_entry.end_charpos and
9260 iterator_stack_entry.stop_charpos.
9261
e8d7886a
JD
92622009-12-12 Jan Djärv <jan.h.d@swipnet.se>
9263
5ce6e4f4 9264 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
9265 (xg_create_scroll_bar): Call scroll_end_callback on button release
9266 event (bug #5177).
9267 (xg_event_is_for_scrollbar): != replaced with ==.
9268
d0db2ec8
KH
92692009-12-12 Kenichi Handa <handa@m17n.org>
9270
9271 * ftfont.c (struct ftfont_info): New member matrix.
9272 (ftfont_open): Setup xftfont_info->matrix.
9273 (MFLTFontFT): New member matrix.
9274 (FLOOR, CEIL, ROUND): New macros.
9275 (ftfont_get_metrics): Handle matrix transformation.
9276 (ftfont_shape_by_flt): New arg matrix. Callers changed.
9277
9278 * xftfont.c (struct xftfont_info): New member matrix.
9279 (xftfont_open): Setup xftfont_info->matrix.
9280
92812009-12-10 Kenichi Handa <handa@m17n.org>
9282
9283 * xdisp.c (append_space_for_newline): Consider face-remapping.
9284
2cc7b62f
AS
92852009-12-09 Andreas Schwab <schwab@linux-m68k.org>
9286
b87dd913
AS
9287 * xsettings.c: Include "keyboard.h".
9288
eba5eb94
AS
9289 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
9290
2cc7b62f
AS
9291 Fix implicit function declarations.
9292 * cmds.c: Include "frame.h".
9293 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
9294 * frame.h: Move declaration of delete_frame outside of
9295 HAVE_WINDOW_SYSTEM.
9296
a4ef73c8
CY
92972009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
9298
9299 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
9300
9301 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
9302 GTK builds.
9303
944a300c
AS
93042009-12-07 Andreas Schwab <schwab@linux-m68k.org>
9305
9306 * unexelf.c (unexec): Don't search for .data twice.
9307
022eef62
CY
93082009-12-05 Chong Yidong <cyd@stupidchicken.com>
9309
426ac949
CY
9310 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
9311 if push failed.
9312 (handle_line_prefix): Set avoid_cursor_p here. Check return value
9313 of push_display_prop (Bug#5000).
9314
022eef62
CY
9315 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
9316 value of font_list_entities (Bug#5085).
9317
be95bee9
JB
93182009-12-04 Juanma Barranquero <lekktu@gmail.com>
9319
9320 Fix `string-to-number' to deal consistently with integers and floats.
9321 * lread.c (isfloat_string): New argument ignore_trailing to accept all
9322 trailing characters, not just whitespace.
9323 (read1): Pass new arg 0 to keep old behavior.
9324 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
9325 trailing chars, as it is already done for integers. Doc fixes.
9326 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
9327
24c2d7ce
EZ
93282009-12-04 Eli Zaretskii <eliz@gnu.org>
9329
0b5397c2
SM
9330 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
9331 Delete unused enumeration value.
24c2d7ce 9332
7e694795
EZ
93332009-12-03 Eli Zaretskii <eliz@gnu.org>
9334
9335 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
9336
84b31826
SM
93372009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
9338
9339 * process.c (Fmake_network_process): Fix up the tests for
9340 "connectionless socket", so they DTRT for seqpacket sockets as well.
9341
f00c449b
SM
93422009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
9343
9344 * process.c (Qseqpacket): New symbol.
9345 (HAVE_SEQPACKET): New macro.
9346 (Fmake_network_process): Accept new :type `seqpacket'.
9347 (init_process): Add `seqpacket' feature when applicable.
9348 (syms_of_process): Initialize Qseqpacket.
9349
8096a0ff
YM
93502009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9351
9352 * font.c (font_load_for_lface, font_open_by_name): Don't store name
9353 if entity is Qnil.
9354
3e0de07f
SM
93552009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
9356
9357 * print.c (print_preprocess): Preprocess the key_and_value table of
9358 hashtables, even tho they're "hidden" (bug#5082).
9359
abeafb2a
JD
93602009-11-29 Jan Djärv <jan.h.d@swipnet.se>
9361
9362 * frame.c (frame_make_pointer_invisible)
9363 (frame_make_pointer_visible): Declare f before statements.
9364
4bf47195
EZ
93652009-11-28 Eli Zaretskii <eliz@gnu.org>
9366
9367 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
9368 omitted dependencies on lisp.h.
9369
c525b3f2
JD
93702009-11-27 Jan Djärv <jan.h.d@swipnet.se>
9371
ece2d4ed
JD
9372 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
9373 is NULL.
9374
9375 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
9376
9377 * frame.c (frame_make_pointer_invisible)
3e0de07f 9378 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
9379 frame.
9380
c525b3f2
JD
9381 * search.c (simple_search): Remove warning by making *p const.
9382
2f00e299
DN
93832009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
9384
9385 * xdisp.c (power_letter): Remove duplicate const.
9386
084b049b
JD
93872009-11-25 Jan Djärv <jan.h.d@swipnet.se>
9388
a1fadc6f
JD
9389 * term.c (delete_tty): Remove check for last terminal (bug#4970).
9390
5ce6e4f4 9391 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
9392 defaults (bug #5025).
9393
28259cac
SM
93942009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
9395
9396 * insdel.c (adjust_markers_for_delete): Move it in the
9397 right direction! (bug#4803)
9398
e8e14166
YM
93992009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9400
9401 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
9402
9403 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
9404
86677b58
GM
94052009-11-24 Glenn Morris <rgm@gnu.org>
9406
9407 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
9408
581e51e8
JD
94092009-11-23 Jan Djärv <jan.h.d@swipnet.se>
9410
cfc86c7a
JD
9411 * Makefile.in: Must create deps for ecrt0.o in its rule.
9412
581e51e8
JD
9413 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
9414 because that is what Gtk+ font dialog understands.
9415
9416 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
9417 of Fcopy_sequence.
9418 (font_open_by_name): Put name given into QCname for font-object returned.
9419
9420 * frame.c (x_set_font): Save original font name as frame parameter
9421 font-parameter.
9422
9423 * xsettings.c (set_default_xft_settings): New function.
9424 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
9425 is found.
9426
8b264ecb
AS
94272009-11-22 Andreas Schwab <schwab@linux-m68k.org>
9428
9429 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
9430 searching backwards through multibyte buffer.
9431
872870b2
JD
94322009-11-21 Jan Djärv <jan.h.d@swipnet.se>
9433
9434 * xterm.c: #include xgselect.h.
9435 (x_initialize): Call xgselect_initialize.
9436
9437 * xsettings.c (something_changedCB): C++ comments => C comments.
9438 (init_gconf): Do not deal with any GLib file descriptors, xg_select
9439 does that now.
9440
9441 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
9442 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
9443 (scroll_bar_button_cb): Remove.
5ce6e4f4 9444 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
9445 event.
9446 (xg_create_scroll_bar): Don't bind button-press-event and
9447 button-release-event.
9448
9449 * process.c: Include xgselect.h if defined (USE_GTK) ||
9450 defined (HAVE_GCONF).
9451 (wait_reading_process_output): Call xg_select for the same condition.
9452
9453 * xgselect.c (xg_select): New function to better integrate with
9454 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
9455
9456 * xgselect.h: New file, declare xg_select, xgselect_initialize.
9457
9458 * Makefile.in (XOBJ): Add xgselect.o.
9459
62a6e103
AS
94602009-11-21 Andreas Schwab <schwab@linux-m68k.org>
9461
0b5397c2
SM
9462 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
9463 Remove ignored second argument. All callers changed.
62a6e103
AS
9464 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
9465 (RE_STRING_CHAR_AND_LENGTH): Likewise.
9466 * xdisp.c (string_char_and_length): Likewise.
9467
b0ca0f33
DN
94682009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
9469
9470 * xterm.c (x_new_font):
9471 * print.c (print_object):
9472 * cmds.c (Fself_insert_command): Move declarations before statements.
9473
dd5a6279
CY
94742009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
9475
9476 * s/cygwin.h: Remove unneeded linker flags.
9477
4a8e097d
JD
94782009-11-20 Jan Djärv <jan.h.d@swipnet.se>
9479
0d1d0d26
JD
9480 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
9481
9482 * xsettings.h: Declare xsettings_get_system_font.
9483
9484 * xsettings.c (xsettings_get_system_font): New function.
9485 (init_gconf): No use initiating gconf unless we have Xft also.
9486 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
9487 HAVE_GCONF.
9488
4a8e097d
JD
9489 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
9490 add a blank entry so it doesn't collapse into nothing.
9491
8ab1650e
SM
94922009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
9493
9494 * lread.c (Funintern): Comment out last change.
9495
82c602f0
RS
94962009-11-19 Richard Stallman <rms@gnu.org>
9497
9498 * lread.c (Funintern): Error if symbol is t or nil.
9499
87e32266
SM
95002009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
9501
9502 * insdel.c (make_gap_larger): Don't make as many assumptions about the
9503 representation of Lisp integers.
9504 Reported by MJ Chan <mjchan.inbox@gmail.com>.
9505
1b9ac145
AS
95062009-11-17 Andreas Schwab <schwab@linux-m68k.org>
9507
9508 * lisp.h: Remove declaration of Ffont_get_system_font.
9509 * xfns.c: Move include of "xsettings.h".
9510 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
9511
dfb3c4c6
JD
95122009-11-17 Jan Djärv <jan.h.d@swipnet.se>
9513
87e32266
SM
9514 * xsettings.c (something_changedCB, Ffont_get_system_font):
9515 Check use_system_font.
dfb3c4c6
JD
9516 (syms_of_xsettings): DEFVAR font-use-system-font.
9517
9370c1d8
AS
95182009-11-17 Andreas Schwab <schwab@linux-m68k.org>
9519
25fe851a
AS
9520 * xfns.c (x_default_font_parameter): Remove dead assignment.
9521
9370c1d8
AS
9522 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
9523
637fa988
JD
95242009-11-17 Jan Djärv <jan.h.d@swipnet.se>
9525
87e32266 9526 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 9527 not have FC_LCD_*. #define them if not there.
a6eb20d8 9528
87e32266 9529 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 9530
637fa988
JD
9531 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
9532
9533 * xterm.c (handle_one_xevent): Call xft_settings_event for
9534 ClientMessage, PropertyNotify and DestroyNotify.
9535 (x_term_init): If we have XFT, get DPI from Xft.dpi.
9536 Call xsettings_initialize.
9537
9538 * xftfont.c (xftfont_fix_match): New function.
9539 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
9540 Call xftfont_fix_match after XftFontMatch.
9541
9542 * xfont.c (xfont_driver): Initialize all members.
9543
87e32266
SM
9544 * xfns.c (x_default_font_parameter):
9545 Try font from Ffont_get_system_font.
637fa988
JD
9546 Do not get font from x_default_parameter if we got one from
9547 Ffont_get_system_font.
87e32266 9548 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
9549
9550 * w32font.c (w32font_driver): Initialize all members.
9551
9552 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
9553
9554 * lisp.h: Declare syms_of_xsettings.
9555
87e32266
SM
9556 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
9557 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
9558
9559 * ftfont.c (ftfont_filter_properties): New function.
9560
9561 * frame.c (x_set_font): Remove unused variable lval.
9562
87e32266 9563 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
9564
9565 * font.c (font_put_extra): Don't return if val is nil, it means
9566 boolean option is off.
9567 (font_parse_fcname): Collect all extra properties in extra_props
9568 and call filter_properties for all drivers with extra_props and
9569 font as parameter.
87e32266
SM
9570 (font_open_entity): Do not use cache, it does not pick up new
9571 fontconfig settings like hinting.
637fa988
JD
9572 (font_load_for_lface): If spec had a name in it, store it in entity.
9573
a73f9c9d 9574 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
9575
9576 * config.in: HAVE_GCONF is new.
9577
9578 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
9579 xsettings.o is new.
9580
5a942932
KH
95812009-11-17 Kenichi Handa <handa@m17n.org>
9582
9583 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
9584 back to the default font in case that no suitable font is found.
9585
b7c7a4d1
SM
95862009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
9587
9588 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
9589 Suggested by Chad Brown <yandros@mit.edu>.
9590 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
9591
072f1e39
JD
95922009-11-16 Jan Djärv <jan.h.d@swipnet.se>
9593
9594 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
9595
5d1e70a2
AS
95962009-11-14 Andreas Schwab <schwab@linux-m68k.org>
9597
87e32266 9598 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 9599
a53cfbe5
JD
96002009-11-14 Jan Djärv <jan.h.d@swipnet.se>
9601
473a99b7
JD
9602 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
9603 has a parent.
9604
a53cfbe5 9605 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 9606 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
9607
9608 * config.in: Generated (AUTO_DEPEND).
9609
f04bb9b2
MA
96102009-11-13 Michael Albinus <michael.albinus@gmx.de>
9611
b7c7a4d1 9612 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
9613 Vdbus_registered_functions_table, because it contains also
9614 properties. Fix docstring.
b7c7a4d1 9615 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 9616
8f11f7ec
SM
96172009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
9618
9619 * alloc.c (mark_object): Don't reprocess marked strings.
9620 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
9621 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
9622
8a605fe8
KH
96232009-11-13 Kenichi Handa <handa@m17n.org>
9624
8f11f7ec 9625 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
9626 semantics of Vword_combining_categories.
9627 (Vword_combining_categories): Describe the slight change of the
9628 semantics.
9629
241c4680
EZ
96302009-11-13 Eli Zaretskii <eliz@gnu.org>
9631
9632 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
9633
9634 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
9635
5d58e44c
SM
96362009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
9637
9638 * xdisp.c (syms_of_xdisp): Fix typo in last change.
9639
5e13f9d3
JB
96402009-11-12 Juanma Barranquero <lekktu@gmail.com>
9641
9642 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
9643
cf54c754
DR
96442009-11-11 David Reitter <david.reitter@gmail.com>
9645
9646 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
9647 variables to fix 2009-11-09 change.
9648
a4ada374
DN
96492009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
9650
91433552
DN
9651 * process.c (ifflag_def): Make flag_sym constant.
9652 (Fnetwork_interface_info): Use a constant pointer.
9653 (ifflag_table):
9654 * xfns.c (cursor_bits):
9655 * xdisp.c (power_letter):
9656 * termcap.c (speeds, esctab):
9657 * sysdep.c (baud_convert):
9658 * keyboard.c (lispy_accent_codes, modifier_names):
9659 * image.c (xbm_format, xpm_format, pbm_format, png_format)
9660 (jpeg_format, tiff_format, gif_format, svg_format)
9661 (interlace_start, interlace_increment, gs_format):
9662 * gtkutil.c (separator_names):
9663 * fringe.c (swap_nibble):
9664 * fns.c (base64_value_to_char, base64_char_to_value):
9665 * fileio.c (make_temp_name_tbl):
9666 * coding.c (suffixes): Make constant.
9667
f4265f6c
DN
9668 * frame.c (make_initial_frame):
9669 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
9670 build_string.
9671 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
9672
04420943
DN
9673 * s/freebsd.h:
9674 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
9675
0a5d24ae
DN
9676 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
9677 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
9678
a4ada374
DN
9679 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
9680 * xterm.c (syms_of_xterm):
9681 * xfaces.c (syms_of_xfaces):
9682 * xdisp.c (syms_of_xdisp):
9683 * lread.c (syms_of_lread):
9684 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
9685 build_string.
91433552 9686
a4ada374
DN
9687 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
9688
af98fc7f
SM
96892009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
9690
8ab1650e 9691 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 9692
e90292a9
JD
96932009-11-10 Jan Djärv <jan.h.d@swipnet.se>
9694
9695 * keyboard.h: Declare timer_check.
9696
9697 * keyboard.c (timer_check_2): New function that does what the old
9698 timer_check did.
9699 (timer_check): Call timer_check_2 until -1 or a non-zero time is
9700 returned, i.e. don't return -1 with timers pending.
9701
9702 * process.c: Remove extern declaration of timer_check.
9703
9704 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
9705 even if timer_check returned -1.
9706
af98fc7f
SM
9707 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
9708 xg_dialog_data.
e90292a9
JD
9709 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
9710 the event loop.
9711 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
9712 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
9713 Destroy the dialog after xg_dialog_run.
9714
045b83c0
SM
97152009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
9716
9717 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
9718
1fb99a3a
JD
97192009-11-10 Jan Djärv <jan.h.d@swipnet.se>
9720
9721 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
9722
04e452cb
JB
97232009-11-09 Juanma Barranquero <lekktu@gmail.com>
9724
9725 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
9726
ef7417fd
SM
97272009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
9728
9729 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
9730 w32menu.c, and nsmenu.m.
9731 Simplify the obsolete case where position is nil.
9732 (cleanup_popup_menu): New function, moved from nsmenu.m.
9733 (struct skp): Remove slot `notreal'.
9734 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
9735 adjust callers.
9736 (single_menu_item): Adjust call to parse_menu_item.
9737 (syms_of_menu): Defsubr x-popup-menu.
9738 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
9739 (keymap_panes): Don't export any more.
9740 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
9741 (xmenu_show): Declare.
9742 * keyboard.c (parse_menu_item): Remove arg `notreal'.
9743 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
9744 * keyboard.h (parse_menu_item): Update declaration.
9745 * xmenu.c (Fx_popup_menu): Remove.
9746 (syms_of_xmenu): Don't defsubr x-popup-menu.
9747 * w32menu.c (Fx_popup_menu): Remove.
9748 (syms_of_w32menu): Don't defsubr x-popup-menu.
9749 * nsmenu.m (cleanup_popup_menu): Remove.
9750 (ns_menu_show): Rename from ns_popup_menu and remove all the code
9751 moved to menu.c's Fx_popup_menu.
9752 (Fx_popup_menu): Remove.
9753 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
9754 menu_items (it's done in menu.c already).
9755
424d6179
SM
97562009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
9757
9758 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
9759 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
9760
c0df13a6 97612009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
9762
9763 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 9764 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
9765 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
9766 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
9767
2de9f71c
SM
97682009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
9769
9770 Let integers use up 2 tags to give them one extra bit and thus double
9771 their range.
9772 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
9773 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
9774 New macros.
9775 (enum Lisp_Type): Use them. Give explicit values.
9776 (Lisp_Type_Limit): Remove.
9777 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
9778 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
9779 Pay attention to USE_2_TAGS_FOR_INTS.
9780 (INTEGERP): Use LISP_INT_TAG_P.
9781 * fns.c (internal_equal): Simplify the default case.
9782 (sxhash): Use case_Lisp_Int.
9783 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
9784 any more.
9785 (Ftype_of): Use case_Lisp_Int.
9786 (store_symval_forwarding): Take into account the fact that Ints can
9787 now have more than one tag.
9788 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
686b968e 9789 (buffer_slot_type_mismatch):
2de9f71c
SM
9790 * xfaces.c (face_attr_equal_p):
9791 * print.c (print_object):
9792 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
9793 Use case_Lisp_Int.
9794
323637a2
EZ
97952009-11-06 Eli Zaretskii <eliz@gnu.org>
9796
7ac65b38
EZ
9797 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
9798
323637a2
EZ
9799 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
9800 warning.
9801
e511451f
JD
98022009-11-06 Jan Djärv <jan.h.d@swipnet.se>
9803
9804 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
9805
9806 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
9807
9808 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
9809 ButtonPressRelease and MotionNotify (bug#4870).
9810
5e2327cf
DN
98112009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
9812
5adc433e
DN
9813 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
9814
d67b4f80
DN
9815 * xterm.c (syms_of_xterm):
9816 * xselect.c (syms_of_xselect):
9817 * xmenu.c (syms_of_xmenu):
9818 * xfns.c (syms_of_xfns):
9819 * xfaces.c (syms_of_xfaces):
9820 * xdisp.c (syms_of_xdisp):
9821 * window.c (syms_of_window):
9822 * w32fns.c (syms_of_w32fns):
9823 * undo.c (syms_of_undo):
9824 * textprop.c (syms_of_textprop):
9825 * terminal.c (syms_of_terminal):
9826 * syntax.c (syms_of_syntax):
9827 * sound.c (syms_of_sound):
9828 * search.c (syms_of_search):
9829 * print.c (syms_of_print):
9830 * minibuf.c (syms_of_minibuf):
9831 * macros.c (syms_of_macros):
9832 * keymap.c (syms_of_keymap, initial_define_key)
9833 (initial_define_lispy_key):
9834 * keyboard.c (syms_of_keyboard):
9835 * insdel.c (syms_of_insdel):
9836 * image.c (syms_of_image):
9837 * fringe.c (syms_of_fringe):
9838 * frame.c (syms_of_frame):
9839 * fontset.c (syms_of_fontset):
9840 * fns.c (syms_of_fns):
9841 * fns.c (syms_of_fns):
9842 * fileio.c (syms_of_fileio):
9843 * fileio.c (syms_of_fileio):
9844 * eval.c (syms_of_eval):
9845 * doc.c (syms_of_doc):
9846 * dispnew.c (syms_of_display):
9847 * dired.c (syms_of_dired):
9848 * dbusbind.c (syms_of_dbusbind):
9849 * data.c (syms_of_data):
9850 * composite.c (syms_of_composite):
9851 * coding.c (syms_of_coding):
9852 * cmds.c (syms_of_cmds):
9853 * charset.c (define_charset_internal, syms_of_character):
9854 * ccl.c (syms_of_ccl):
9855 * category.c (syms_of_category, init_category_once):
9856 * casetab.c (syms_of_casetab):
9857 * casefiddle.c (syms_of_casefiddle):
9858 * callint.c (syms_of_callint):
9859 * bytecode.c (syms_of_bytecode):
9860 * buffer.c (keys_of_buffer, syms_of_buffer):
9861 * alloc.c (syms_of_alloc):
9862 * process.c (syms_of_process, init_process):
9863 * lread.c (syms_of_lread, init_obarray):
9864 * font.c (build_style_table):
9865 * emacs.c (syms_of_emacs, main): Replace calls to intern with
9866 intern_c_string, calls to make_pure_string with
9867 make_pure_c_string. Use pure_cons instead of Fcons.
9868
5e2327cf
DN
9869 * process.c (socket_options): Make it const.
9870 (set_socket_option, init_process): Use a const pointer.
9871
9872 * lread.c (intern_c_string): New function.
9873 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
9874 (defvar_int): Uset it. Make the name const char*.
9875
9876 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
9877 (defvar_int): Update prototypes.
9878 (DEFUN, EXFUN): Support for prototypes is now required.
9879 (intern_c_string): New prototype.
9880 (struct Lisp_Subr): Make symbol_name constant.
9881
9882 * font.c (struct table_entry): Remove unused member. Make NAMES
9883 constant.
9884 (weight_table, slant_table, width_table): Make constant.
9885
9886 * emacs.c (struct standard_args): Make name and longname constant.
9887
9888 * character.h (DEFSYM): Use intern_c_string.
9889
a56eaaef
DN
98902009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
9891
9892 * alloc.c (make_pure_c_string): New function.
9893
9894 * eval.c (Fautoload): Purecopy all arguments.
9895
f6a07420
KH
98962009-11-05 Kenichi Handa <handa@m17n.org>
9897
9898 * fileio.c (Finsert_file_contents): Be sure set coding-system of
9899 the buffer in case of replace.
9900
5d28d4b1
DN
99012009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
9902
9903 * puresize.h (BASE_PURESIZE): Increase to 1620000.
9904
b349d111
SM
99052009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
9906
d528b1ce
SM
9907 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
9908 when applicable (bug#4851).
9909
b349d111
SM
9910 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
9911 (P_): Support for prototypes is now required.
9912
c38eb027
CY
99132009-10-31 Chong Yidong <cyd@stupidchicken.com>
9914
9915 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
9916 (Bug#4827).
9917
0405f8d9
EZ
99182009-10-30 Eli Zaretskii <eliz@gnu.org>
9919
d528b1ce 9920 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 9921
ca0a881a
DN
99222009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
9923
9924 * puresize.h (BASE_PURESIZE): Increase to 1470000.
9925
d528b1ce
SM
9926 * lread.c (Fload): Purecopy the file name when building
9927 Vpreloaded_file_list.
ca0a881a 9928
47e0e0e4
JR
99292009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
9930
9931 * w32fns.c (syms_of_w32fns): Change default value of
9932 w32-scroll-lock-modifier to nil. (Bug#2827)
9933
057bce6f
JB
99342009-10-26 Juanma Barranquero <lekktu@gmail.com>
9935
782a943e 9936 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 9937
242bc74c
AS
99382009-10-26 Andreas Schwab <schwab@redhat.com>
9939
9940 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
9941
522d013a
JB
99422009-10-26 Juanma Barranquero <lekktu@gmail.com>
9943
9944 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
9945 For delta < 0, skip check that only makes sense when the mini-window
9946 is going to be enlarged. (Bug#4534)
9947
18060980
CY
99482009-10-25 Chong Yidong <cyd@stupidchicken.com>
9949
9950 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
9951 string in menu maps (Bug#4471).
9952
fec8f0fe
CY
99532009-10-24 Chong Yidong <cyd@stupidchicken.com>
9954
9955 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
9956 FRAME_NS_VIEW on terminal frames (Bug#4765).
9957
10d66ec0
AS
99582009-10-24 Andreas Schwab <schwab@linux-m68k.org>
9959
1cae01f7
AS
9960 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
9961 DBUS_TYPE_UINTnn separately to get proper sign extension.
9962
58a12889
AS
9963 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
9964 can properly handle unsigned types.
d528b1ce 9965 (make_uid, make_gid): Remove.
58a12889 9966
987c9327
AS
9967 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
9968 types again.
9969
522d013a 9970 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
9971 (system_process_attributes): Likewise.
9972
905a9ed3
DN
99732009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
9974
9975 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
9976
9977 * eval.c (Fautoload): Purecopy the filename. Simplify.
9978
9979 * category.c (Fdefine_category): Purecopy docstring.
9980
a599b3e8
AS
99812009-10-23 Andreas Schwab <schwab@linux-m68k.org>
9982
7b792fc9
AS
9983 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
9984
a599b3e8
AS
9985 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
9986
b35ac83e
CY
99872009-10-23 Chong Yidong <cyd@stupidchicken.com>
9988
9989 * window.c (Fwindow_edges, Fwindow_pixel_edges)
9990 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
9991 (Bug#4775).
9992
e8903e00
SM
99932009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
9994
9995 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
9996 (init_fileio_once):
9997 * lisp.h (init_fileio_once): Remove.
9998 * emacs.c (main): Don't call init_fileio_once.
9999
8f43cbf3
DN
100002009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
10001
10002 * puresize.h (BASE_PURESIZE): Increase to 1430000.
10003
26898943
AS
100042009-10-21 Andreas Schwab <schwab@linux-m68k.org>
10005
10006 * doprnt.c (doprnt): Fix overflow check.
10007
5c646d5a
JD
100082009-10-21 Jan Djärv <jan.h.d@swipnet.se>
10009
3132a7ea
JD
10010 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
10011
5c646d5a
JD
10012 * xterm.h (x_wait_for_event): Declare it.
10013
10014 * xterm.c (pending_event_wait): New variable.
10015 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
10016 see pending_event_wait.eventtype.
10017 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
10018 (x_new_font): Call change_frame_size with new rows/columns before we
10019 try to resize the frame.
5c646d5a 10020 (x_wait_for_event): New function.
d528b1ce
SM
10021 (x_set_window_size_1): Don't change gravity unless change_gravity
10022 is set.
5c646d5a
JD
10023 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
10024 don't change frame size, instead wait for the ConfigureNotify.
10025 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
10026 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
10027 (x_initialize): Initialize pending_event_wait.
10028
10029 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
10030 size.
10031
10032 * widget.c (EmacsFrameSetValues): Add comment.
10033 (EmacsFrameSetCharSize): Just call x_set_window_size.
10034
10035 * gtkutil.c (xg_frame_set_char_size): Flush events and call
10036 x_wait_for_event.
d528b1ce 10037 (flush_and_sync): Remove again.
5c646d5a
JD
10038 (xg_get_font_name): Suggest monospace if no previous font is known.
10039
e9c1637d
SM
100402009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
10041
10042 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 10043 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 10044
5a72cccb
YM
100452009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10046
10047 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
10048 processing pending events when event is filtered for input method.
ab04798f 10049 (Bug#3681)
5a72cccb 10050
2629aa37
JB
100512009-10-20 Juanma Barranquero <lekktu@gmail.com>
10052
10053 * fns.c: Add #endif accidentally removed in previous change.
10054
c3417a74
DN
100552009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
10056
10057 * fns.c: Remove code for unsupported system: MAC_OS.
10058 * image.c: Likewise. Include setjmp.h.
10059
9685cef2
JD
100602009-10-19 Jan Djärv <jan.h.d@swipnet.se>
10061
10062 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
10063 pixel -1 (bug #4742).
10064
d7306fe6
DN
100652009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
10066
019d2c4c
DN
10067 * process.c (create_pty): Remove conditionals for no longer
10068 supported systems: UNIPLUS and RTU.
10069
ee6bacd4
DN
10070 * xterm.c:
10071 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
10072
d7306fe6
DN
10073 * alloc.c: Do not define struct catchtag.
10074 * eval.c: Move struct catchtag definition ...
10075 * lisp.h: ... here.
10076
10077 * image.c: Move png.h #include earlier to avoid warnings.
10078
10079 * xterm.c:
10080 * xsmfns.c:
10081 * xselect.c:
10082 * xrdb.c:
10083 * xmenu.c:
10084 * xftfont.c:
10085 * xfont.c:
10086 * xfns.c:
10087 * xfaces.c:
10088 * xdisp.c:
10089 * window.c:
10090 * widget.c:
10091 * w32xfns.c:
10092 * w32uniscribe.c:
10093 * w32term.c:
10094 * w32select.c:
10095 * w32reg.c:
10096 * w32proc.c:
10097 * w32menu.c:
10098 * w32inevt.c:
10099 * w32heap.c:
10100 * w32font.c:
10101 * w32fns.c:
10102 * w32console.c:
10103 * w32.c:
10104 * w16select.c:
10105 * vm-limit.c:
10106 * unexsol.c:
10107 * unexec.c:
10108 * unexcw.c:
10109 * unexaix.c:
10110 * undo.c:
10111 * tparam.c:
10112 * textprop.c:
10113 * terminfo.c:
10114 * terminal.c:
10115 * termcap.c:
10116 * term.c:
10117 * syntax.c:
10118 * sound.c:
10119 * sheap.c:
10120 * search.c:
10121 * scroll.c:
10122 * region-cache.c:
10123 * regex.c:
10124 * ralloc.c:
10125 * process.c:
10126 * print.c:
b024548b
DN
10127 * nsterm.m:
10128 * nsselect.m:
10129 * nsmenu.m:
10130 * nsimage.m:
10131 * nsfont.m:
10132 * nsfns.m:
d7306fe6
DN
10133 * msdos.c:
10134 * minibuf.c:
10135 * menu.c:
10136 * marker.c:
10137 * macros.c:
10138 * keymap.c:
10139 * keyboard.c:
10140 * intervals.c:
10141 * insdel.c:
10142 * indent.c:
10143 * gtkutil.c:
10144 * ftxfont.c:
10145 * ftfont.c:
10146 * fringe.c:
10147 * frame.c:
10148 * fontset.c:
10149 * font.c:
10150 * fns.c:
10151 * floatfns.c:
10152 * filelock.c:
10153 * fileio.c:
10154 * emacs.c:
10155 * editfns.c:
10156 * dosfns.c:
10157 * doprnt.c:
10158 * doc.c:
10159 * dispnew.c:
10160 * dired.c:
10161 * dbusbind.c:
10162 * data.c:
10163 * composite.c:
10164 * coding.c:
10165 * cmds.c:
10166 * cm.c:
10167 * chartab.c:
10168 * charset.c:
10169 * character.c:
10170 * ccl.c:
10171 * category.c:
10172 * casetab.c:
10173 * casefiddle.c:
10174 * callproc.c:
10175 * callint.c:
10176 * bytecode.c:
10177 * buffer.c:
10178 * atimer.c: Include setjmp.h. (Bug#4643)
10179
fd5f21e6
SM
101802009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
10181
4c0354d7
SM
10182 Remove leftover table unibyte_to_multibyte_table.
10183 * character.c (unibyte_to_multibyte_table): Remove.
10184 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
10185 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
10186 * character.h (UNIBYTE_TO_CHAR): New macro.
10187 (MAKE_CHAR_MULTIBYTE): Use it.
10188 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
10189 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
10190 (message_dolog, set_message_1):
10191 * search.c (Freplace_match):
10192 * editfns.c (Fcompare_buffer_substrings):
10193 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
10194 (concat):
10195 * insdel.c (copy_text, count_size_as_multibyte):
10196 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
10197 * term.c (produce_glyphs):
10198 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
10199 * regex.c (RE_CHAR_TO_MULTIBYTE):
10200 * cmds.c (internal_self_insert):
10201 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
10202
fd5f21e6
SM
10203 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
10204
4418646e
DN
102052009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
10206
10207 * puresize.h (BASE_PURESIZE): Increase to 1310000.
10208
35f5c1d2
JB
102092009-10-16 Juanma Barranquero <lekktu@gmail.com>
10210
10211 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
10212
a0cd8f6b
AR
102132009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10214
10215 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
10216 still needed under Tiger.
10217
10218 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
10219
10220 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
10221 __Apple__.
10222
10223 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
10224
01a8d3fa
KH
102252009-10-15 Kenichi Handa <handa@m17n.org>
10226
10227 * print.c (print_object): Escape a symbol like "2E10" too.
10228
bf6c75c9 102292009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
10230
10231 Cleanups and changes for 64-bit compile under Snow Leopard.
10232 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
10233
10234 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
10235
c5959062 10236 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
10237 (ns_findfonts, nsfont_list_family): Use long format in printf, and
10238 cast argument.
10239 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 10240 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
10241
10242 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
10243
10244 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
10245 where appropriate.
10246
10247 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
10248 where appropriate.
6e4780c5
JB
10249 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
10250 Use stringWithUTF8String.
bf6c75c9
AR
10251 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
10252
6e4780c5
JB
10253 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
10254 Add formal protocol mention to inheritance.
bf6c75c9
AR
10255 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
10256
6e4780c5
JB
10257 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
10258 Fix printf format.
bf6c75c9
AR
10259 (ns_query_color): Use CGFloat where appropriate.
10260 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 10261 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
10262 argument.
10263
3d87f118
AR
10264 * config.in (NS_HAVE_NSINTEGER): Drop.
10265
a95c8102
AR
10266 * dbusbind.c (dbus-method-return-internal)
10267 (dbus-method-error-internal): Use long format in printf, and cast
10268 argument.
10269
10270 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
10271 in printf, and cast argument.
10272
6873acca 10273 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
10274 cast argument.
10275
9ec6f100
GM
102762009-10-11 Glenn Morris <rgm@gnu.org>
10277
10278 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
10279
5be883cd
JD
102802009-10-08 Jan Djärv <jan.h.d@swipnet.se>
10281
10282 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
10283 menu bar with a small width so it doesn't enlarge the frame.
10284
d7a39b51
JB
102852009-10-08 Juanma Barranquero <lekktu@gmail.com>
10286
10287 * fontset.c (Fset_fontset_font): Fix typos in error messages.
10288
0c2b6f8e
GM
102892009-10-06 Glenn Morris <rgm@gnu.org>
10290
10291 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
10292 SOME_MACHINE_LISP (this enters indirectly via DOC).
10293
e02131a2
EZ
102942009-10-05 Eli Zaretskii <eliz@gnu.org>
10295
10296 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
10297
b4744254
EZ
102982009-10-04 Eli Zaretskii <eliz@gnu.org>
10299
10300 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
10301 Doc fix.
10302
dbf64827
JB
103032009-10-03 Martin Rudalics <rudalics@gmx.at>
10304
10305 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
10306
e9a0aef8
MA
103072009-10-02 Michael Albinus <michael.albinus@gmx.de>
10308
d528b1ce 10309 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
10310 used anymore outside fileio.c.
10311
10312 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
10313
64eb2b56
JB
103142009-10-01 Juanma Barranquero <lekktu@gmail.com>
10315
10316 * lisp.h (Qdelete_directory_internal):
10317 Declare, instead of Qdelete_directory.
10318
10319 * w32fns.c (Fsystem_move_file_to_trash): Use it.
10320
9d28c33e
SM
103212009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
10322
10323 * eval.c (Fcalled_interactively_p): Add `kind' argument.
10324
9d8f3bd9
MA
103252009-10-01 Michael Albinus <michael.albinus@gmx.de>
10326
9d28c33e 10327 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
10328 Fdelete_directory. It is not a command anymore. It has no file
10329 name handler.
10330
9694740b
SM
103312009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
10332
10333 * xdisp.c (get_next_display_element): Use an enum in last change.
10334
748e162f
KH
103352009-09-28 Kenichi Handa <handa@m17n.org>
10336
9694740b 10337 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
10338 unibyte_display_via_language_environment in handling
10339 Vnobreak_char_display.
10340
17efd58d
AR
103412009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10342
10343 * nsterm.h (ns_app_name): New extern variable.
10344
10345 * nsterm.m (ns_app_name): New variable.
10346 (ns_term_init): Set and use it.
10347 (ns_term_shutdown): Use it.
10348
10349 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
10350 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
10351
10352 * nsfns.m (ns_set_name_iconic, ns_set_name)
10353 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
10354 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
10355
9694740b
SM
10356 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
10357 Remove double-casting in client_data comparison.
31c2d412 10358
3208cb35
YM
103592009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10360
10361 * keyboard.c (make_lispy_event): Remember last wheel direction.
10362 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
10363
b7d552d6
GM
103642009-09-26 Glenn Morris <rgm@gnu.org>
10365
10366 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
10367 internal.elc. Add term/pc-win.elc.
10368 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
10369 term/x-win.elc.
10370 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
10371 term/w32-win.elc.
10372 (NS_SUPPORT): New.
10373 (lisp): Add NS_SUPPORT.
10374 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
10375
4ff670a8
DR
103762009-09-25 David Reitter <david.reitter@gmail.com>
10377
10378 * nsmenu.m (EmacsMenu-clear): Recognize application menu
10379 on Mac OS X 10.6+ (bug#4513).
10380
feabfb6c
JB
103812009-09-24 Juanma Barranquero <lekktu@gmail.com>
10382
10383 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
10384 some parts of Emacs code (like font selection) don't grok them.
10385 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 10386
de59072a
AS
103872009-09-24 Andreas Schwab <schwab@redhat.com>
10388
10389 * coding.c (decode_coding_iso_2022): Fix operator precedence.
10390
a489517b
JB
103912009-09-24 Juanma Barranquero <lekktu@gmail.com>
10392
10393 * dired.c (Fdirectory_files): Fix typo in docstring.
10394
0592970c
AR
103952009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
10396
10397 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
10398 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
10399 (EmacsScroller-setPosition:portion:whole:): Remove -display call
10400 under GNUstep.
10401 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
10402
10403 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
10404 glyph advancement.
10405
48e8a88b
AR
104062009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10407
10408 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 10409 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
10410
10411 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
10412 deleted (bug #4492).
10413
e14f0a78
AR
10414 * nsfont.m (Vns_reg_to_script): New lisp variable.
10415 (syms_of_nsfont): Declare it.
10416 (ns_registry_to_script): New function.
10417 (ns_get_req_script): Call it.
10418 (ns_findfonts): Don't give up on non-unicode registry.
10419
10420 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
10421
5b650faa
SM
104222009-09-20 Tom Tromey <tromey@redhat.com>
10423
10424 * eval.c (find_handler_clause): Make stack-trace-on-error work in
10425 batch mode (bug#4228).
10426
a489517b 104272009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
10428
10429 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 10430 carefully. (Bug #4339)
0bae4e09 10431
fcfe06f3
CY
104322009-09-18 Chong Yidong <cyd@stupidchicken.com>
10433
d798ba87 10434 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 10435
31642728
AR
104362009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
10437
10438 * emacs.c (inhibit_x_resources): Update doc string for NS.
bba3e508
SM
10439 (main) [HAVE_NS]: Don't process --no-init-file option.
10440 Remove legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
10441
10442 * nsterm.h (ns_no_defaults): Remove.
10443
10444 * nsterm.m (ns_no_defaults): Remove.
10445 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
10446 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
10447 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
10448 don't update the NSWindow itself.
bba3e508
SM
10449 (EmacsView-windowWillUseStandardFrame:defaultFrame:):
10450 Improve state detection and store user rect ourselves. (Bug #3581)
31642728
AR
10451
10452 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
10453 ns_use_qd_smoothing.
10454
10455 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
10456 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 10457 (x-close-connection): Drop PSFlush() under OS X.
a489517b 10458 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 10459
8686ac71
JB
104602009-09-17 Juanma Barranquero <lekktu@gmail.com>
10461
10462 * emacs.c (inhibit_x_resources): New variable.
10463 (main) [HAVE_NS]: Don't process --quick command line option.
10464 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
10465
10466 * lisp.h (inhibit_x_resources): Declare it extern.
10467
10468 * w32reg.c (x_get_string_resource):
10469 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
10470
e227ba05
EZ
104712009-09-17 Eli Zaretskii <eliz@gnu.org>
10472
362654a6
JB
10473 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
10474 Add lisp/term/internal.elc.
e227ba05 10475
742d40e8
SM
104762009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
10477
10478 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
10479 (bug#4461).
10480
005bd5a2
DN
104812009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
10482
10483 * puresize.h (BASE_PURESIZE): Increase to 1290000.
10484
10485 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
10486 (OBJECTS_MACHINE): Remove, unused.
10487
f9af9719
SM
104882009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
10489
10490 * frame.c (x_get_resource_string): Remove unused.
10491
0307c7d2
JD
104922009-09-15 Jan Djärv <jan.h.d@swipnet.se>
10493
10494 * xterm.c (x_new_font): Call change_frame_size before calling
10495 x_set_window_size, in case frame size won't change.
10496
10497 * frame.c (x_set_font): Remove dead code.
10498
428b13d6
SM
104992009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
10500
10501 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
10502
5766c380
SM
105032009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
10504
10505 * lread.c (Fload): Don't output a message after loading an obsolete
10506 package any more (done in Lisp now).
10507
2fd0161b
CY
105082009-09-12 Chong Yidong <cyd@stupidchicken.com>
10509
10510 * fns.c (syms_of_fns): Doc fix (Bug#4227).
10511
bc5e75b6
SM
105122009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
10513
10514 * keymap.c (Fwhere_is_internal): Use nconc2.
10515
c31c985e
AM
105162009-09-11 Alan Mackenzie <acm@muc.de>
10517
10518 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
10519 batch mode.
10520
78012bd2
AS
105212009-09-11 Andreas Schwab <schwab@linux-m68k.org>
10522
10523 * xdisp.c (display_mode_element): Detect cycles.
10524
9d889332
SM
105252009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
10526
10527 * keymap.c (where_is_internal): Don't erroneously return nil right after
10528 filling the cache.
10529 (where_is_internal_1): Fix up typo.
10530
7ab5d780
GM
105312009-09-11 Glenn Morris <rgm@gnu.org>
10532
10533 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
10534 share a common doc-string.
10535
5238a749
SM
105362009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
10537
66d77eda
SM
10538 * keymap.c (get_keymap): Return the actual keymap symbol rather than
10539 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
10540
5238a749
SM
10541 * keymap.c (QCadvertised_binding): New constant.
10542 (syms_of_keymap): Initialize it.
10543 (Fwhere_is_internal): Try and use bindings from :advertised-binding
10544 if applicable.
10545
19f48442
SM
105462009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
10547
50d4ba39
SM
10548 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
10549 (parse_menu_item): Streamline since bindings are recomputed all the
10550 time anyway. Don't bother checking Vdefine_key_rebound_commands any
10551 more and don't support lmenu's menu-alias any more either.
10552
a88a5372
SM
10553 * keymap.c (where_is_internal_data): Make noindirect a boolean.
10554 (where_is_internal): Strip it down to only traverse the keymaps.
10555 Move the cache handling from Fwhere_is_internal to here.
10556 (Fwhere_is_internal): Move the handling of remapping and the choice of
10557 the best binding from where_is_internal to here.
10558 Unify the cached/noncached paths, so remapping is also handled
10559 correctly when the cache is used, and so the cache can be used to
10560 speed up remap-handling when applicable.
10561 Give preference to non-remapped bindings.
10562 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
10563 non-remapped bindings.
10564 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
10565 command remapping.
10566
19f48442
SM
10567 * xdisp.c (display_mode_element): Move list length limit from 50 to
10568 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
10569
599498c3 105702009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
10571
10572 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
10573
f9b7b5ac
SM
105742009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
10575
a53af587
JB
10576 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
10577 (Bug#4334)
10578
f9b7b5ac
SM
10579 * keymap.c (where_is_internal): Filter out shadowed remappings.
10580 Assume that where_is_internal returns unshadowed bindings to simplify
10581 the code and get rid of the gotos. Use ASIZE.
10582
04f4b72d
JD
105832009-09-04 Jan Djärv <jan.h.d@swipnet.se>
10584
4da146f2
JD
10585 * xterm.c (x_focus_changed): If we get a focusout and pointer
10586 is invisible, make it visible.
10587
04f4b72d
JD
10588 * xterm.h: Remove condition for declaration of
10589 x_*_window_to_frame.
10590
7cef7ce3
SM
105912009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
10592
10593 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
10594 initial terminal as well.
10595
a54fa5b7
JD
105962009-09-02 Jan Djärv <jan.h.d@swipnet.se>
10597
10598 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 10599 x_menubar_window_to_frame.
a54fa5b7 10600
50426a04 10601 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
10602 (XTmouse_position): Do not return valid positions
10603 for clicks in the menubar and the toolbar for Gtk+.
10604
10605 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
10606 if the widget for the event has the same top level as a frame,
10607 return the frame.
10608 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
10609 internal windows, bug #4122.
10610 (x_non_menubar_window_to_frame): Remove.
10611
5a021dd0
GM
106122009-09-02 Glenn Morris <rgm@gnu.org>
10613
10614 * buffer.c (default-major-mode): Move most of the doc from here...
10615 (major-mode): ... to here.
10616
548fe2f3
NR
106172009-08-30 Nick Roberts <nickrob@snap.net.nz>
10618
10619 * process.c (wait_reading_process_output): Keep the descriptor
10620 when pty is used by a non-child process, e.g., in I/O buffer of
10621 GDB this allows inferior to be restarted.
10622
e0840eef
EZ
106232009-08-29 Eli Zaretskii <eliz@gnu.org>
10624
10625 * xdisp.c (redisplay_internal): Remove redundant test and collapse
10626 both branches into one.
10627
82e98df4
SM
106282009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
10629
10630 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
10631 (main): Use enable-multibyte-characters rather than
10632 default-enable-multibyte-characters. Output a warning message when
10633 running a unibyte session.
10634
890617cb
YM
106352009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10636
10637 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
10638 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
10639 (copy_data_segment): Also copy __program_vars section.
10640 (copy_dyld_info) [LC_DYLD_INFO]: New function.
10641 (dump_it) [LC_DYLD_INFO]: Use it.
10642
10643 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
10644
e7adeadc
EZ
106452009-08-28 Eli Zaretskii <eliz@gnu.org>
10646
10647 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
10648 $(SRC)/buildobj.h.
ef1b0ba7 10649 (buildobj.h): Rename from $(SRC)/buildobj.h.
e7adeadc
EZ
10650 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
10651 $(SRC)/buildobj.h.
10652 (clean): Add buildobj.h.
10653
3ed8bbdc
TZ
106542009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
10655
10656 * print.c (print_object): Set escapeflag to 1 when printing
10657 hashtable keys and values.
10658
155a6764
SM
106592009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
10660
10661 * lread.c (read_integer): Use doubles (and potentially return a float
10662 number) as we do in string-to-number.
10663 (read1): Use strtol to read integers, signal errors on strtol's
10664 overflow and use floats if strtol's output is too large for
10665 Elisp integers.
10666
877610de
EZ
106672009-08-27 Eli Zaretskii <eliz@gnu.org>
10668
10669 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
10670 (make-buildobj-SH): Fix last change.
10671 (SRC): Move to before where it's first used.
10672
ef73e7be
KH
106732009-08-27 Kenichi Handa <handa@m17n.org>
10674
550c8289
KH
10675 * process.c (send_process): Use encode_coding_object instead of
10676 encode_coding_string to perform eol-conversion even if the string
10677 is unibyte.
10678
60afa08d
KH
10679 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
10680 character.
10681
ef73e7be 10682 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 10683 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 10684
7b3a82d7
DN
106852009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
10686
5654bf63
DN
10687 * callproc.c (Fcall_process): Remove always true #if.
10688
7b3a82d7
DN
10689 * lisp.h: Replace #if 0 code for checking with text pointing to
10690 the --enable-checking configure flag.
10691
10692 * emacs.c (main): Mention the --enable-profiling configure flag
10693 instead of using CFLAGS.
10694
878bde49
KR
106952009-08-26 Ken Raeburn <raeburn@raeburn.org>
10696
10697 * Makefile.in (buildobj.h): New target.
10698 (doc.o): Depend on it.
10699 (temacs${EXEEXT}): Don't generate buildobj.lst.
10700 (mostlyclean): Delete buildobj.h, not buildobj.lst.
10701 * makefile.w32-in ($(SRC)/buildobj.h): New target.
10702 ($(BLD)/doc.$(O)): Depend on it.
10703 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
10704 provided by Eli Zaretskii.)
10705 ($(TEMACS)): Don't generate buildobj.lst.
10706 * doc.c: Include buildobj.h.
10707 (buildobj): New static variable.
10708 (Fsnarf_documentation): Use it, instead of opening and reading
10709 buildobj.lst.
10710
1574224c
MA
107112009-08-25 Michael Albinus <michael.albinus@gmx.de>
10712
10713 * dbusbind.c (Fdbus_call_method)
10714 (Fdbus_call_method_asynchronously): Use English numeric format for
10715 timeout values in doc string.
10716
d9da2f45
KH
107172009-08-25 Kenichi Handa <handa@m17n.org>
10718
ef73e7be
KH
10719 * alloc.c (mark_char_table): New function.
10720 (mark_object): Use mark_char_table for a char-table.
10721
d9da2f45
KH
10722 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
10723 (CHAR_TABLE_REF): Use it.
10724
c8edcc01
KR
107252009-08-23 Ken Raeburn <raeburn@raeburn.org>
10726
10727 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
10728 before invoking the newly build emacs to check for load-path
10729 shadowing.
10730
7763401b
GM
107312009-08-22 Glenn Morris <rgm@gnu.org>
10732
10733 * Makefile.in (bootstrap_exe): New variable.
10734 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
10735 Use ${bootstrap_exe}.
10736
729eadda
EZ
107372009-08-22 Eli Zaretskii <eliz@gnu.org>
10738
10739 * coding.h (encode_coding_string): Don't encode unibyte strings.
10740 (Bug#4047)
10741
eb4c6ace
MA
107422009-08-22 Michael Albinus <michael.albinus@gmx.de>
10743
10744 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
10745
10746 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
10747 intended as hotfix only.
10748 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
10749
36e34d1b
AR
107502009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
10751
10752 * nsterm.m (ns_get_color): Update documentation properly for last
bba3e508
SM
10753 change, and clean up loose ends in the code left by it.
10754 Fix longstanding bug with 16-bit hex parsing, and add support for
36e34d1b
AR
10755 yet another X11 format (rgb:r/g/b) for compatibility.
10756 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
10757 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
10758
f983eb8a
SM
107592009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
10760
10761 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
10762
3f56d3c6
MA
107632009-08-20 Michael Albinus <michael.albinus@gmx.de>
10764
10765 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
10766 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
10767 (xd_initialize, xd_pending_messages): Check, whether
10768 $DBUS_SESSION_BUS_ADDRESS is set.
10769
fb641d68
YM
107702009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10771
10772 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
10773
10774 * nsterm.m (ns_get_color): Remove incompatible color formats again.
10775
cf59a374
GM
107762009-08-20 Glenn Morris <rgm@gnu.org>
10777
10778 * emacs.c (system-type): Doc fix.
10779
1373f3be
SM
107802009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
10781
10782 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
10783 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
10784
058ed861
MA
107852009-08-18 Michael Albinus <michael.albinus@gmx.de>
10786
1373f3be
SM
10787 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
10788 New functions.
058ed861
MA
10789 (xd_initialize): Revert change from 2009-08-16.
10790
563a866e 107912009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
10792
10793 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 10794 font-group vector, return nil.
5fc05db0 10795
e42bdf01
CY
107962009-08-17 Chong Yidong <cyd@stupidchicken.com>
10797
10798 * process.c (status_notify): Don't perform redisplay.
10799 (Fdelete_process, list_processes_1, process_send_signal):
10800 Expliticly perform redisplay.
10801 (wait_reading_process_output): Always check process status, but
10802 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
10803
4230ab74
KR
108042009-08-17 Ken Raeburn <raeburn@raeburn.org>
10805
1373f3be 10806 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
10807 (XFLOAT_INIT): New macro for storing a float value.
10808 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
10809 * fns.c (sxhash): Copy out the value of a float in order to
10810 examine its bytes.
10811 * dbusbind.c (xd_append_arg): Likewise.
10812
4230ab74
KR
10813 * emacs.c (main): Don't call syms_of_data twice.
10814
a0645cdd
MA
108152009-08-16 Michael Albinus <michael.albinus@gmx.de>
10816
10817 * dbusbind.c (xd_initialize): Add connection file descriptor to
10818 input_wait_mask, in order to let select() detect, whether a new
10819 message has been arrived.
ca4f31ea 10820 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 10821
485db0ba
MA
108222009-08-15 Michael Albinus <michael.albinus@gmx.de>
10823
1373f3be
SM
10824 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
10825 New functions.
485db0ba
MA
10826
10827 * lisp.h (xd_pending_messages): Declare.
10828
10829 * keyboard.c (readable_events): Call xd_pending_messages.
10830
b5b98ff4
CY
108312009-08-15 Chong Yidong <cyd@stupidchicken.com>
10832
1373f3be 10833 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 10834
f8354c6e
CY
10835 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
10836
b5b98ff4
CY
10837 * buffer.c (set_buffer_internal_1)
10838 (swap_out_buffer_local_variables): Check for unbound local
10839 variables (Bug#4138).
10840
8b9fc636
EZ
108412009-08-14 Eli Zaretskii <eliz@gnu.org>
10842
10843 * process.c (create_pty): Fix last change.
10844
ce959360
CY
108452009-08-13 Chong Yidong <cyd@stupidchicken.com>
10846
10847 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
10848 (xbm_load_image): Caller changed.
64b807c9 10849 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 10850
c7baf7e9
NR
108512009-08-13 Nick Roberts <nickrob@snap.net.nz>
10852
10853 * process.c (create_pty): New function.
10854 (Fstart_process): Use it to allow Emacs to just associate a pty
10855 with the buffer. See associated change in gdb-mi.el.
10856 (list_processes_1): Deal with no program name.
10857 (start_process_unwind): Use pid == -2 to mean no process.
10858
1ac9108a
SM
108592009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
10860
10861 * cmds.c (nonundocount): New global variable.
10862 (keys_of_cmds): Initialize it.
10863 (Fself_insert_command): Use it to combine upto 20 sequential chars
10864 into a single undo entry, just like the Qself_insert_command code in
10865 keyboard.c does.
10866 Call frame_make_pointer_invisible, also like the Qself_insert_command
10867 code in keyboard.c does.
10868 * keyboard.c (command_loop_1): Use the new global nonundocount rather
10869 than its own local replacement for it.
10870
e267324c
KR
108712009-08-10 Ken Raeburn <raeburn@raeburn.org>
10872
1ac9108a 10873 * fns.c (concat): Don't re-set string length to its current value.
77437343 10874
1ac9108a
SM
10875 * coding.h (decode_coding_string, encode_coding_string):
10876 Use SBYTES macro.
f0bed503 10877
1ac9108a 10878 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
10879 (doprnt): Merge with doprnt1, discarding lispstrings code.
10880 * lisp.h (doprnt_lisp): Don't declare.
10881
416e006d
JL
108822009-08-07 Juri Linkov <juri@jurta.org>
10883
10884 * puresize.h (BASE_PURESIZE): Increase to 1270000.
10885
6f7d5780
DN
108862009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
10887
10888 * print.c (syms_of_print): Undo previous change.
10889
f19a0f5b
TZ
108902009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
10891
10892 * lread.c (read1, syms_of_lread): Read hashtables back from the
10893 readable format.
10894
10895 * print.c (print_preprocess, print_object): Print hashtables fully
10896 and readably.
10897 (syms_of_print): Provide 'hashtable-print-readable.
10898
b9173dc2
AR
108992009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
10900
10901 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
10902 no family set.
10903 (nsfont_open): Handle case when entity has no family.
10904
1586503c
AR
109052009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
10906
10907 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
10908 element, not a list, for match case.
10909
087048cd
KH
109102009-07-28 Kenichi Handa <handa@m17n.org>
10911
10912 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
10913 rigidly.
10914
10915 * xfont.c (xfont_list_pattern): Don't ignore the return value of
10916 font_parse_xlfd. Check font properties more rigidly.
10917
780c2506
DN
109182009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
10919
31fd7c5c
JB
10920 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
10921 bsd-common.h.
780c2506 10922
a8c0cc18
KH
109232009-07-27 Kenichi Handa <handa@m17n.org>
10924
10925 * xfaces.c (face_with_height): Call font_clear_prop.
10926
4fbe2306
CY
109272009-07-26 Chong Yidong <cyd@stupidchicken.com>
10928
111d9af3
CY
10929 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
10930
10931 * xterm.c (x_term_init): Use Qx.
10932
4fbe2306
CY
10933 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
10934
1ac9108a 10935 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
10936 (ns_get_color): Revert 2009-07-16 change.
10937
beb0b7f9
EZ
109382009-07-25 Eli Zaretskii <eliz@gnu.org>
10939
10940 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 10941 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 10942
2baf5e76
KR
109432009-07-25 Ken Raeburn <raeburn@raeburn.org>
10944
1ac9108a
SM
10945 * coding.h (decode_coding_string, encode_coding_string):
10946 Use SCHARS macro.
8890e5f5 10947
2baf5e76 10948 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 10949 (load_depth): Delete.
2baf5e76
KR
10950 (Qload_in_progress): New variable.
10951 (load_unwind): Don't reference load_depth or load_in_progress.
10952 (Fload): Likewise; specbind Qload_in_progress instead.
10953 (init_lread): Don't initialize load_depth.
10954 (syms_of_lread): Initialize and protect Qload_in_progress.
10955
1395c6f5
AR
109562009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
10957
10958 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
10959
4e2f36cf
AR
109602009-07-23 Yavor Doganov <yavor@gnu.org>
10961
10962 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
10963
5dd9a6f7
AR
109642009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
10965
10966 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
10967 Bugs 3792, 3720, 2402.
10968 (ns_lookup_indexed_color): Check for bad index.
10969 (ns_index_color): Init unused slot to 0.
10970 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
10971 Bug 3714, possibly 3082.
5dd9a6f7 10972
c902b920
JR
109732009-07-22 Jason Rumney <jasonr@gnu.org>
10974
1ac9108a
SM
10975 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
10976 Position IME window at cursor (Bug#2570).
c902b920
JR
10977 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
10978 (globals_of_w32fns): Dynamically load functions required above.
10979
10980 * w32term.c (w32_draw_window_cursor): Send message to reposition
10981 any IME window.
10982
090101cf
CY
109832009-07-21 Chong Yidong <cyd@stupidchicken.com>
10984
10985 * fileio.c: Revert 2009-07-16 changes.
10986 (Vauto_save_include_big_deletions): New variable.
10987 (Fdo_auto_save): Disable auto-save only if
10988 auto-save-include-big-deletions is nil.
10989
e6583e3d
CY
109902009-07-21 Chong Yidong <cyd@stupidchicken.com>
10991
10992 * xdisp.c (move_it_to): For continued lines ending in a tab, take
10993 the overflowed pixels into account (Bug#3879).
10994
ece435a5
KR
109952009-07-21 Ken Raeburn <raeburn@raeburn.org>
10996
10997 * lread.c (load_depth): New variable.
10998 (Fload, load_unwind, init_lread): Set it to the load recursion
10999 depth; set load_in_progress as a simple boolean based on the
11000 current load_depth. (Bug#3892)
11001
40b2d973
AR
110022009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11003
11004 * nsfont.m (ns_has_attribute): Remove.
11005 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
11006
10be7e0d
JL
110072009-07-18 Juri Linkov <juri@jurta.org>
11008
11009 * process.c (Fset_process_query_on_exit_flag): Mention killing
11010 a buffer in docstring.
11011
fa055055
KH
110122009-07-17 Kenichi Handa <handa@m17n.org>
11013
11014 * casetab.c (shuffle): Fix the logic of setting up the cycle.
11015
042f7b69
YM
110162009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11017
11018 * nsfns.m (Fns_set_alpha): Remove function.
11019 (syms_of_nsfns): Don't defsubr it.
11020
11021 * nsterm.m (ns_get_color): Remove incompatible color formats.
11022 (ns_color_to_lisp): Generate #rrggbb color format string.
11023
4be941e3
RS
110242009-07-16 Richard Stallman <rms@gnu.org>
11025
11026 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
11027 (Fset_buffer_auto_saved): Handle save_length = -2.
11028
4e6b227d
CY
110292009-07-16 Chong Yidong <cyd@stupidchicken.com>
11030
11031 * xterm.c (Qx_gtk_map_stock): New var.
11032
11033 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
11034 of calling intern each time.
11035
a1856973
YM
110362009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11037
11038 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
11039 does tiling.
11040
11041 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
11042
497e54d8
KH
110432009-07-14 Kenichi Handa <handa@m17n.org>
11044
72d36834
KH
11045 * font.c (font_vconcat_entity_vectors): New function.
11046 (struct font_sort_data): New member font_driver_preference.
11047 (font_compare): Check font_driver_preference.
11048 (font_sort_entities): The format of the first argument changed.
11049 (font_delete_unmatched): Likewise.
11050 (font_list_entities): The return type changed.
11051 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
11052 (font_find_for_lface): Adjuste for the above changes.
11053 Don't suppress the checking of C even if the repertory supports it.
11054 (Flist_fonts): Adjust for the above changes.
72d36834 11055
1ac9108a
SM
11056 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
11057 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
11058 Reject a font who has adstyle property that is different from a
11059 langname derived from registry property.
1ac9108a 11060 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 11061
b6046155
EZ
110622009-07-13 Eli Zaretskii <eliz@gnu.org>
11063
11064 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
11065 local copy of dirfilename.
11066
fb6b6049
KH
110672009-07-13 Kenichi Handa <handa@m17n.org>
11068
e2402a5e
KH
11069 * chartab.c (sub_char_table_ref_and_range): Fix the range check
11070 against max_char.
11071
fb6b6049
KH
11072 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
11073 calling XSYMBOL (sym).
11074
65156807
EZ
110752009-07-11 Eli Zaretskii <eliz@gnu.org>
11076
1ac9108a
SM
11077 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
11078 New function.
11079 (directory_files_internal) [WINDOWSNT]:
11080 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
11081 the filesystem of the directory is fast or slow.
11082
11083 * w32.c (logon_network_drive): Don't assume PATH is an absolute
11084 file name.
11085 (is_slow_fs): New function.
11086 (stat): Use it to determine whether to issue more system calls to
11087 get accurate file attributes, when w32-get-true-file-attributes is
11088 `local'.
11089
e0ab5fcf
JD
110902009-07-10 Jan Djärv <jan.h.d@swipnet.se>
11091
11092 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 11093 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
11094 parameter font-parameter as default to the font dialog.
11095
784ceded
KH
110962009-07-10 Kenichi Handa <handa@m17n.org>
11097
11098 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
11099
fb8edc0b
EZ
111002009-07-09 Eli Zaretskii <eliz@gnu.org>
11101
1ac9108a 11102 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 11103
fb8edc0b
EZ
11104 * w32.c (stat): Treat UNC file names as residing on remote
11105 drives. (Bug#3542)
11106
635c75b1
KH
111072009-07-09 Kenichi Handa <handa@m17n.org>
11108
11109 * fontset.c (fontset_find_font): Fix previous change.
11110
c1d5ce94
MA
111112009-07-08 Michael Albinus <michael.albinus@gmx.de>
11112
11113 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
11114 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
11115 error flag.
11116
edb61b39
KH
111172009-07-08 Kenichi Handa <handa@m17n.org>
11118
374bf7e4
KH
11119 * fontset.c (fontset_find_font): Fix the logic of handling
11120 charset_matched.
11121 (font_for_char): Delete unused var.
11122 (generate_ascii_font_name): Delete it.
11123
edb61b39
KH
11124 * coding.h (JIS_TO_SJIS2): Fix the code range check.
11125
11126 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
11127 (encode_coding_sjis): Fix the code range check.
11128
0f3f018c
CY
111292009-07-07 Chong Yidong <cyd@stupidchicken.com>
11130
11131 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
11132 (Fexpand_file_name): Copy string data properly (Bug#3772).
11133
fcaf6f3a
JD
111342009-07-07 Jan Djärv <jan.h.d@swipnet.se>
11135
11136 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
11137 first MapNotify.
11138
6809ca75
KH
111392009-07-07 Kenichi Handa <handa@m17n.org>
11140
11141 * character.h (unibyte_has_multibyte_table): Delete extern.
11142 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
11143
11144 * charset.c (Fset_charset_priority): Update charset_unibyte.
11145 (syms_of_charset): Initialize charset_unibyte.
11146
11147 * character.c (unibyte_has_multibyte_table): Delete it.
11148 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
11149 charset_unibyte.
11150 (multibyte_char_to_unibyte_safe): Likewise.
11151 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
11152
1ac9108a 11153 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
11154 (x_produce_glyphs): Likewise.
11155
11156 * .gdbinit (xcharset): Fix the treating $arg0.
11157
ad9e2d54
EZ
111582009-07-04 Eli Zaretskii <eliz@gnu.org>
11159
11160 Emulation of `getloadavg' on MS-Windows.
50426a04 11161 * w32.c: Include float.h.
ad9e2d54
EZ
11162 (g_b_init_get_native_system_info, g_b_init_get_system_times)
11163 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
11164 (get_native_system_info, get_system_times): New functions.
11165 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
11166 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
11167 (globals_of_w32): Initialize g_b_init_get_native_system_info,
11168 g_b_init_get_system_times, and num_of_processors.
11169
0a3472c7
JR
111702009-07-03 Jason Rumney <jasonr@gnu.org>
11171
11172 * w32term.c (w32_initialize): Use standard types.
11173
80904120
EZ
111742009-07-03 Eli Zaretskii <eliz@gnu.org>
11175
11176 * dired.c (Ffile_attributes): Decode user and group names by the
11177 locale's encoding. (Bug#3443)
11178
6978862d
DN
111792009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
11180
f8d23104
DN
11181 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
11182 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
11183
11184 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
11185
11186 * term.c (init_tty): Remove spurious #ifdef.
11187
6978862d
DN
11188 * m/mips.h: Mention this file is also used for netbsd.
11189 * m/pmax.h: Remove file.
11190
e044e4fc
JD
111912009-07-03 Jan Djärv <jan.h.d@swipnet.se>
11192
11193 * xterm.h (struct x_display_info): Add invisible_cursor.
11194 (struct x_output): Add current_cursor.
11195
11196 * xterm.c (XTtoggle_invisible_pointer): New function.
11197 (x_define_frame_cursor): Don't define cursor if invisible or the
11198 same as before. Set current_cursor.
11199 (x_create_terminal): Set toggle_invisible_pointer_hook.
11200
11201 * xfns.c (make_invisible_cursor): New function.
11202 (x_set_mouse_color): Call make_invisible_cursor.
11203 Set current_cursor.
11204 (x_window): Set current_cursor.
11205
11206 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
11207
11208 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
11209 inserting a character.
11210 (read_avail_input): Call frame_make_pointer_visible.
11211
11212 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
11213 (frame_make_pointer_invisible, frame_make_pointer_visible):
11214 New functions.
e044e4fc
JD
11215 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
11216
11217 * frame.h: Declare frame_make_pointer_invisible and
11218 frame_make_pointer_visible.
11219 (struct frame): Add pointer_invisible.
11220
574c8efa
JD
112212009-07-02 Jan Djärv <jan.h.d@swipnet.se>
11222
7b507248
JD
11223 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
11224 frame isn't visible.
11225 (xg_frame_resized): If width/height is -1, get size of window
11226 from X server.
11227
11228 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
11229 for MapNotify.
11230
835bdaa7 11231 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 11232 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 11233 (flush_and_sync): Reintroduce.
574c8efa 11234
3f1c6666 112352009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 11236
31fd7c5c 11237 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
11238
11239 * xterm.c (x_handle_net_wm_state): Also look for sticky.
11240 (x_term_init): Initialize Xatom_net_wm_state_sticky.
11241
11242 * frame.h: Declare Qsticky.
11243
cad9ef74
JD
11244 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
11245
11246 * nsfns.m (ns_frame_parm_handlers): Ditto.
11247
11248 * frame.c: Declare Qsticky.
11249 (frame_parms): Add sticky.
11250
11251 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
11252
11253 * xterm.h: Declare x_set_sticky.
11254
11255 * xterm.c (x_set_sticky): New function.
11256
69b16610
JD
11257 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
11258 (xg_tool_bar_menu_proxy): Attach enter/leave events to
11259 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
11260
11261 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
11262
11263 * frame.c: Qmaximized is new.
11264 (x_set_frame_parameters): Do not handle fullscreen specially.
11265 Only set width and height if explicitly set.
11266 (x_set_fullscreen): Handle Qmaximized.
11267 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
11268 (syms_of_frame): Initialize Qmaximized.
11269
1ac9108a
SM
11270 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
11271 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
11272
11273 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
11274 for Expose event. Add call to x_check_fullscreen for MapNotify event.
11275 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
11276 set gravity to NorthWestGravity when USE_GTK.
11277 (set_wm_state): New function.
31fd7c5c 11278 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
11279 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
11280 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 11281 or the case when no window manager is running. That means remove calls
3f1c6666
JD
11282 to x_real_positions and x_fullscreen_adjust.
11283
11284 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
11285 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
11286 flush_and_sync.
11287 (xg_height_changed): New function.
11288 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
11289 and gtk_window_set_policy. Set frame gravity after parsing the
11290 geometry string.
3f1c6666
JD
11291 (xg_update_frame_menubar, free_frame_menubar)
11292 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
11293 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
11294 Remove calls to xg_frame_set_char_size.
11295
fd503d99
KH
112962009-07-01 Kenichi Handa <handa@m17n.org>
11297
11298 * keyboard.c (decode_keyboard_code): New function.
11299 (tty_read_avail_input): Decode the input bytes if necessary.
11300
1ac9108a
SM
11301 * coding.c (setup_coding_system):
11302 Initialize coding->carryover_bytes to 0.
fd503d99
KH
11303 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
11304 use Qno_conversion.
11305
24ed93fb
YM
113062009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11307
11308 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
11309
99061dfc
CY
113102009-06-30 Chong Yidong <cyd@stupidchicken.com>
11311
1ac9108a 11312 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 11313
ff90fbde
JR
113142009-06-30 Jason Rumney <jasonr@gnu.org>
11315
11316 * w32term.c (w32_initialize): Use GetModuleHandle for library that
11317 is already loaded.
11318 Set user model ID if supported (bug#1849).
11319
5f445726
JM
113202009-06-29 Jim Meyering <meyering@redhat.com>
11321
11322 Remove useless if-before-xfree test.
11323 * nsfont.m (nsfont_close): Remove useless test.
11324 * term.c (delete_tty): Likewise.
11325 * w32.c (system_process_attributes): Likewise.
11326 * w32font.c (w32font_close): Likewise.
11327 * xfaces.c (x_free_gc): Likewise.
11328 * xselect.c (buffer): Likewise.
11329
b9607587
AS
113302009-06-28 Andreas Schwab <schwab@linux-m68k.org>
11331
11332 * process.c (send_process): Keep decoded string in a local
11333 variable and protect it from GC. (Bug#3521)
11334
89ba96f4
EZ
113352009-06-28 Eli Zaretskii <eliz@gnu.org>
11336
11337 * term.c (create_tty_output) [MSDOS]: #ifdef away.
11338 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
11339
098a1589
CY
113402009-06-28 Chong Yidong <cyd@stupidchicken.com>
11341
485422be
CY
11342 * xdisp.c (start_display, handle_face_prop)
11343 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
11344 (redisplay_window, try_window_id, produce_image_glyph):
11345 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 11346
098a1589
CY
11347 * xterm.c (x_update_window_begin, x_new_focus_frame)
11348 (x_scroll_bar_handle_click, handle_one_xevent)
11349 (handle_one_xevent, XTread_socket, x_focus_on_frame)
11350 (x_make_frame_visible, x_make_frame_invisible)
11351 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
11352 code chunks that are now obsolete.
11353
78c38319
MA
113542009-06-28 Michael Albinus <michael.albinus@gmx.de>
11355
11356 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
11357 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
11358 for hours, when optimzation is enabled.
11359 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
11360 (xd_read_message): Make them static.
11361
4189ed40
CY
113622009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
11363
11364 * term.c (turn_on_face): Allow simultaneously bold and dim
11365 terminal faces (Bug#3530).
11366
cd9b5e16
CY
113672009-06-27 Chong Yidong <cyd@stupidchicken.com>
11368
4e23bedb
CY
11369 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
11370
cd9b5e16
CY
11371 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
11372 truncation glyphs (Bug#3686).
11373
07cc3c35
GM
113742009-06-27 Glenn Morris <rgm@gnu.org>
11375
11376 * m/pmax.h: Restore file, with only netbsd portions.
11377
31fd7c5c 113782009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 11379
cd9b5e16 11380 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 11381
42d4a64f
KH
113822009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
11383
11384 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
11385 the arg FORCE_SYMBOL.
11386
930fe55b 113872009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
11388
11389 * fontset.c (fontset_find_font): When a usable rfont_def is found
11390 in a fallback font-group, make it the first element of the group.
11391
57ebc3fd
CY
113922009-06-24 Chong Yidong <cyd@stupidchicken.com>
11393
11394 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
11395
f084f942
KH
113962009-06-24 Kenichi Handa <handa@m17n.org>
11397
11398 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
11399 set for C.
11400 (fontset_font): Record the availability of a font for C both in
11401 the realized fontsets of the current one and the default one.
11402
2f686c87
DN
114032009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
11404
11405 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
11406 conditional, it is always defined on AIX.
11407
666e158e
MB
114082009-06-23 Miles Bader <miles@gnu.org>
11409
11410 * window.c (Vrecenter_redisplay): New variable.
11411 (syms_of_window): Initialize it.
11412 (Qtty): New extern declaration.
11413 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
11414
c6da7cd2
JM
114152009-06-23 Jim Meyering <meyering@redhat.com>
11416
1ac9108a
SM
11417 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
11418 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 11419 pointer dereferences are guaranteed to be valid.
c6da7cd2 11420
678dca3d
KH
114212009-06-23 Kenichi Handa <handa@m17n.org>
11422
74d75424
KH
11423 * emacs.c (main): Call init_font ().
11424
11425 * font.h (Vfont_log): Extern it.
11426 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
11427
11428 * font.c (font_sort_entities, font_list_entities)
11429 (font_matching_entity, font_open_entity)
11430 (font_close_object): Change font_add_log to FONT_ADD_LOG.
11431 (Vfont_log): Delete static.
11432 (font_log_env_checked): Delete this variable.
11433 (font_add_log): Don't check font_log_env_checked.
11434 (font_deferred_log): Check Vfont_log.
11435 (init_font): New function.
11436
678dca3d
KH
11437 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
11438
11439 * w32font.c: Change font_add_log to FONT_ADD_LOG.
11440
11441 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
11442
11443 * xfont.c: Change font_add_log to FONT_ADD_LOG.
11444
11445 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
11446 (face_for_char): Don't call font_deferred_log here.
11447 (font_for_char): Likewise.
11448
8a668709
CY
114492009-06-22 Chong Yidong <cyd@stupidchicken.com>
11450
9a01ee33
CY
11451 * w32term.c (x_draw_glyph_string): Use the glyph string's width
11452 rather than its background_width for drawing the overline and
11453 underline (Bug#489).
11454
11455 * xterm.c (x_draw_glyph_string): Use the glyph string's width
11456 rather than its background_width for drawing the overline and
11457 underline (Bug#489).
ec7c9926
CY
11458 (xg_default_icon_file): New variable.
11459 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
11460 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 11461
8a668709
CY
11462 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
11463 (load_overlay_strings): Remove externs.
11464 (fast_find_position): Function deleted.
11465 (mouse_face_from_buffer_pos): New function, based on
11466 fast_find_position. Correctly handle before-strings,
11467 display-strings, and after-strings (Bug#1220).
11468 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
11469
4d4c02d8
CY
114702009-06-21 Chong Yidong <cyd@stupidchicken.com>
11471
1ac9108a 11472 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
11473 (move_it_in_display_line_to, move_it_in_display_line_to)
11474 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
11475
70243478
CY
114762009-06-21 Chong Yidong <cyd@stupidchicken.com>
11477
11478 * Branch for 23.1.
11479
13087e59
JR
114802009-06-21 Jason Rumney <jasonr@gnu.org>
11481
11482 * w32term.c (keyboard_codepage): New static variable.
11483 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
11484 (w32_read_socket) [WM_CHAR]: Use it to decode character
11485 input (bug#3237).
11486 (w32_initialize): Initialize it.
11487 (codepage_for_locale): New function.
11488
4735b74e
KR
114892009-06-20 Ken Raeburn <raeburn@raeburn.org>
11490
11491 * process.c (status_message): Pass Faset index argument as a lisp
11492 object, so as to work with USE_LISP_UNION_TYPE.
11493
0e727afa
YM
114942009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11495
11496 * coding.c (Ffind_coding_systems_region_internal):
11497 Cache checked characters.
11498
cf299835
KH
114992009-06-18 Kenichi Handa <handa@m17n.org>
11500
1ac9108a 11501 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 11502
90f20d94
AS
115032009-06-18 Andreas Schwab <aschwab@redhat.com>
11504
11505 * xdisp.c (redisplay_internal): Check that the frame is still
11506 live after redisplay of its windows.
11507 (redisplay_windows): Check that the window is still live.
11508
7f1faf1c
KH
115092009-06-17 Andreas Schwab <schwab@linux-m68k.org>
11510
11511 * coding.c (detect_coding_utf_16): Fix previous change.
11512
cc13543e
KH
115132009-06-16 Kenichi Handa <handa@m17n.org>
11514
11515 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
11516 UTF-16 by checking the dispersion of Eth and Oth bytes.
11517
977b85f4
AS
115182009-06-15 Andreas Schwab <schwab@linux-m68k.org>
11519
11520 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
11521
66bd43d1
KH
115222009-06-15 Kenichi Handa <handa@m17n.org>
11523
11524 * process.c (status_message): Fix previous change. Be sure to
11525 decode a localized string.
11526
cb5ca9c5
YM
115272009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11528
11529 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
11530 add comment explaining why.
11531
ec7709ba 115322009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 11533
ec7709ba 11534 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 11535
4b7f335c
AR
115362009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
11537
11538 * nsfont.m (ns_attribute_value): Remove.
11539 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
11540 (ns_has_attribute): Shrink the normal range.
11541 (ns_findfonts): Don't worry about requested spec in determining
11542 need for synthItal.
e41820ee 11543 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 11544
73b26103
SZ
115452009-06-14 Seiji Zenitani <zenitani@mac.com>
11546
11547 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
11548
5753e4da
KH
115492009-06-11 Kenichi Handa <handa@m17n.org>
11550
11551 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
11552 overhang for the static composition case.
11553
3561b671
KH
115542009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11555
5753e4da
KH
11556 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
11557 overhang for the automatic composition case.
11558
3561b671
KH
11559 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
11560 composition case.
11561
852bbd41
CY
115622009-06-10 Chong Yidong <cyd@stupidchicken.com>
11563
11564 * xdisp.c (get_next_display_element): When handling wrap-prefix
11565 and line-prefix, treat \n as a control character (bug#3502).
11566
9903d1e6
KH
115672009-06-10 Kenichi Handa <handa@m17n.org>
11568
11569 * font.c (font_parse_family_registry): Fix for one-char foundry.
11570 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
11571
0bcbaaaa
CY
115722009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
11573
11574 * process.c (status_message): Fix handling of multibyte signal
11575 string (Bug#3499).
11576
40aa3f13
JM
115772009-06-09 Jim Meyering <meyering@redhat.com>
11578
1f80c7e2
CY
11579 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
11580 color name is missing.
40aa3f13 11581
72d51285
KH
115822009-06-09 Kenichi Handa <handa@m17n.org>
11583
11584 * charset.c (Fmap_charset_chars): In docstring, state clearly that
11585 FROM-CODE and TO-CODE are codepoints of CHARSET.
11586
c1d04d84
AR
115872009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
11588
11589 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
11590
115912009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
11592
11593 Changes to support :script/:lang/:otf in NS font driver.
11594 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
11595 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
11596 indicate not part of font driver interface, and change callers.
11597 (ns_get_family): Remove pointless null check.
11598 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
11599 ns_spec_to_descriptor, ns_descriptor_to_entity.
11600 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
11601 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
11602 (ns_spec_to_descriptor, ns_descriptor_to_entity)
11603 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
11604 (ns_get_req_script, ns_accumulate_script_ranges)
11605 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
11606 New functions.
11607 (nsfont_list, nsfont_match): Use ns_findfonts.
11608 (nsfont_open): Use font descriptor instead of traits.
11609 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
11610 (dump_glyphstring): Rename to ns_dump_glyphstring.
11611
c7eb9816
AR
11612 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
11613
c1d04d84
AR
11614 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
11615
11616 * fontset.c (fontset_from_font): Remove NS-specific code.
11617
ec7709ba 116182009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
11619
11620 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
11621 nonactive windows.
11622
31fd7c5c 116232009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 11624
1ac9108a 11625 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 11626
68852c13 116272009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
11628
11629 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
11630
6756cd1d
CY
116312009-06-07 Chong Yidong <cyd@stupidchicken.com>
11632
11633 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
11634 account for the overflowing of newlines into the last glyph on the
11635 display line (Bug#3482).
11636
28bf482a
DR
116372009-06-05 David Reitter <david.reitter@gmail.com>
11638
ec7709ba
JB
11639 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
11640 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
11641 Fns_selection_exists_p, Fns_selection_owner_p.
11642
fdb55376
JR
116432009-06-03 Jason Rumney <jasonr@gnu.org>
11644
11645 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
11646 available. (Bug#3379)
11647
05129fbe
KH
116482009-05-29 Kenichi Handa <handa@m17n.org>
11649
1ac9108a
SM
11650 * coding.c (get_translation_table):
11651 Check Venable_character_translation.
05129fbe 11652
ec7709ba 116532009-05-26 David Reitter <david.reitter@gmail.com>
15891144 11654
ec7709ba
JB
11655 * nsterm.m (ns_raise_frame): Only raise frame if visible.
11656 (x_make_frame_visible): Move frame to front rather than calling
15891144 11657 ns_raise_frame().
ec7709ba 11658 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 11659 isn't key window.
ec7709ba 11660 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
11661 drawRect may be called by NSView even if the frame is hidden.
11662
ec7709ba
JB
11663 * nsfns.m (Fx_create_frame): Follow other ports in
11664 determining visibility; default to t. Ensure async_visible is set.
15891144 11665
21f73755
EZ
116662009-05-23 Eli Zaretskii <eliz@gnu.org>
11667
11668 * dired.c (Ffile_attributes): Doc fix.
11669
34001e41
CY
116702009-05-22 Chong Yidong <cyd@stupidchicken.com>
11671
11672 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
11673
46306a17
SM
116742009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
11675
11676 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
11677 and xfont_scratch_props.
11678 (syms_of_xfont): Do it here instead.
11679 (xfont_find_ccl_program): Delete, unused.
11680 (xfont_open): Delete unused var `i'.
11681
ef6e0694
KH
116822009-05-21 Kenichi Handa <handa@m17n.org>
11683
11684 * fontset.c (Qlatin): Don't make it static.
11685
46306a17
SM
11686 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
11687 New functions.
ef6e0694
KH
11688 (xfont_scripts_cache, xfont_scratch_props): New variables.
11689 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
11690 (xfont_list_pattern): Argument changed. Callers changed.
11691 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
11692 (xfont_list): Don't reject a font spec with :script property.
11693 (xfont_has_char): Fix setting of encoding.
11694 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
11695 xfont_scratch_props.
11696
116972009-05-19 Kenichi Handa <handa@m17n.org>
11698
46306a17 11699 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
11700 Callers changed.
11701
117022009-05-18 Kenichi Handa <handa@m17n.org>
11703
11704 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
11705
ac71ced7
SM
117062009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
11707
11708 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
11709 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
11710
1c6d1051
YM
117112009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11712
11713 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
11714 (x_delete_terminal): Dissociate resource database from display and
11715 then call XrmDestroyDatabase before closing display.
11716
9b9b779c
AR
117172009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
11718
11719 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
11720 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
11721 whether selected frame is viable before raising it (based on patch
11722 by David Reitter), and improve commentary.
11723 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 11724
cccd42d5
KH
117252009-05-15 Kenichi Handa <handa@m17n.org>
11726
11727 * font.c (Ffont_spec): Check arguments.
11728
337fbd17
CY
117292009-05-14 Chong Yidong <cyd@stupidchicken.com>
11730
11731 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
11732 weight when testing attributes (Bug#3282).
11733
47a6002f
JD
117342009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11735
11736 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
11737 what we expect to get in the next ConfigureNotify event.
11738
9cb363db
YM
11739 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
11740 before Xft one (Bug#1696).
11741
b9126609
CY
117422009-05-07 David Reitter <david.reitter@gmail.com>
11743
11744 * nsfns.m (Fx_display_planes): Compute bitplanes using
11745 NSBitsPerPixelFromDepth (Bug#3207).
11746
27a69fd9
CY
117472009-05-10 Chong Yidong <cyd@stupidchicken.com>
11748
11749 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
11750
00f37552
TTN
117512009-05-10 Ulrich Mueller <ulm@gentoo.org>
11752
11753 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
11754
2d82a920
DR
117552009-05-07 David Reitter <david.reitter@gmail.com>
11756
ec7709ba
JB
11757 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
11758 Respect mouse face background.
2d82a920 11759
46b0d52d
DR
117602009-05-07 David Reitter <david.reitter@gmail.com>
11761
ec7709ba
JB
11762 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
11763 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
11764 in ns_update_begin and ns_update_end.
11765
ce1b23bb
SM
117662009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
11767
5996e1b7
SM
11768 * nsfns.m (ns_get_screen): Rewrite.
11769 Don't presume selected-frame is of type `ns'.
11770
ba98e3a0
SM
11771 * font.c (font_update_drivers): Sanity fallback to avoid disabling
11772 all drivers.
11773
ce1b23bb
SM
11774 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
11775
bcda200f
YM
117762009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11777
11778 * keyboard.h (add_user_signal): Fix typo in extern.
11779
11780 * lisp.h (add_user_signal): Remove extern.
11781
11782 * unexelf.c (unexec): Consider a section to precede the .bss section
11783 if its addresses overlap that of .bss.
11784 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
11785 instead of dumping process.
11786
864660a2
SM
117872009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
11788
11789 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
11790
50da4e56
SM
117912009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
11792
11793 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
11794
51520a1a
DN
117952009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
11796
11797 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
11798 any statements.
11799
409ea3a1
AS
118002009-05-02 Andreas Schwab <schwab@linux-m68k.org>
11801
59c4c60f
AS
11802 * process.c (read_process_output): Make sure the current buffer is
11803 always restored.
11804
409ea3a1
AS
11805 * coding.c (record_conversion_result): Don't modify
11806 Vlast_code_conversion_error for successful result.
11807 (alloc_destination): Don't clobber conversion result. (Bug#1650)
11808
56f00ed2
KH
118092009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
11810
11811 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 11812 (load_charset_map): Remove unnecessary code.
56f00ed2 11813
4491c9d2
DR
118142009-04-30 David Reitter <david.reitter@gmail.com>
11815
35f5b128 11816 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
11817 through f24.
11818
6970f632
CY
118192009-04-30 Chong Yidong <cyd@stupidchicken.com>
11820
11821 * xfaces.c (face_at_buffer_position): New arg base_face_id.
11822
11823 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
11824 face_at_buffer_position.
11825 (face_before_or_after_it_pos, get_next_display_element)
11826 (note_mouse_highlight): Update face_at_buffer_position call.
11827
11828 * term.c (term_mouse_highlight):
11829 * msdos.c (IT_note_mouse_highlight):
11830 * fontset.c (Finternal_char_font):
35f5b128 11831 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
11832
11833 * dispextern.h (face_at_buffer_position): Update prototype.
11834
0c616f63
KH
118352009-04-30 Kenichi Handa <handa@m17n.org>
11836
35f5b128 11837 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 11838
ad3aaf33
AS
118392009-04-29 Andreas Schwab <schwab@linux-m68k.org>
11840
11841 * callproc.c (Fcall_process): Fix GC protection. Make sure
11842 current buffer is always restored.
11843
c3c963a0
YM
118442009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11845
11846 * atimer.c (init_atimer): Also clear stopped_atimers.
11847
11848 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
11849
7e3386cb
YM
11850 * process.c (create_process): Clean up merger residues of
11851 2008-07-17 change.
11852
91f68422
CY
118532009-04-29 Ulrich Mueller <ulm@gentoo.org>
11854
11855 * lread.c (Vread_circle): New variable.
11856 (read1): Disable recursive read if Vread_circle is nil.
11857
24b34550
KH
118582009-04-29 Kenichi Handa <handa@m17n.org>
11859
11860 * fontset.h (set_default_ascii_font): Delete extern.
11861
11862 * fontset.c (set_default_ascii_font): Delete this unused function.
11863
11864 * frame.c (x_set_font): When ARG is a font-object, check if the
11865 font-object matches with the ASCII font-spec of the frame's
9c358bda 11866 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 11867
77bf07e1
AS
118682009-04-28 Andreas Schwab <schwab@linux-m68k.org>
11869
11870 * fns.c (Flocale_info): Protect vector from GC during decoding.
11871
11872 * process.c (Fstart_process): Protect argv strings from GC during
11873 encoding.
11874
2c55aacf
AS
118752009-04-27 Andreas Schwab <schwab@linux-m68k.org>
11876
11877 * sysdep.c: Include <ctype.h>.
11878
b892d3c9
DR
118792009-04-27 David Reitter <david.reitter@gmail.com>
11880
35f5b128 11881 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
11882 Remove commented-out code.
11883
9d0644c4
JB
118842009-04-26 Johan Bockgård <bojohan@gnu.org>
11885
11886 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
11887
b7053016
JR
118882009-04-25 Jason Rumney <jasonr@gnu.org>
11889
11890 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
11891
4e8231f3
YM
118922009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11893
11894 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
11895 Swap bytes in short integer if fringe bitmap width > 8.
11896
493dcf2c
KH
118972009-04-23 Kenichi Handa <handa@m17n.org>
11898
11899 * xfaces.c (Fx_list_fonts): If a font size is specified in
11900 PATTERN, set it in returned scalable fonts.
11901
401e9e57
CY
119022009-04-22 Chong Yidong <cyd@stupidchicken.com>
11903
708e05dc
CY
11904 * keyboard.c (Fset_input_meta_mode): Doc fix.
11905
11906 * dispnew.c (Fsend_string_to_terminal): Doc fix.
11907
1ac9108a 11908 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
11909
11910 * coding.c (Fterminal_coding_system): Doc fix.
11911
11912 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
11913 (Fx_display_pixel_height, Fx_display_planes)
11914 (Fx_display_color_cells, Fx_server_max_request_size)
11915 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
11916 (Fx_display_mm_height, Fx_display_mm_width)
11917 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
11918 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
11919 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
11920 (check_x_display_info): Handle terminal objects instead of
11921 terminal ids.
11922
401e9e57
CY
11923 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
11924 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
11925 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
11926 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 11927
df80c7f0
KH
119282009-04-21 Kenichi Handa <handa@m17n.org>
11929
5a8f12af 11930 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 11931 (font_score): Check AVGWIDTH too.
908567ef 11932
df80c7f0
KH
11933 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
11934 worst case.
1ac9108a
SM
11935 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
11936 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 11937
705af33f
JR
119382009-04-19 Jason Rumney <jasonr@gnu.org>
11939
11940 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 11941 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
11942
11943 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
11944 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
11945 get_phys_cursor_geometry.
11946
b71ac3dd 11947 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
11948 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
11949 using get_phys_cursor_geometry.
11950
11951 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
11952 correctly calculated.
11953
dc2933eb
JD
119542009-04-19 Jan Djärv <jan.h.d@swipnet.se>
11955
1ac9108a
SM
11956 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
11957 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
11958 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
11959 is deprecated.
11960
973e7849
AS
119612009-04-18 Andreas Schwab <schwab@linux-m68k.org>
11962
11963 * font.c (font_put_frame_data): Use xfree instead of free.
11964
314d66f4
JB
119652009-04-17 Juanma Barranquero <lekktu@gmail.com>
11966
11967 * w32font.c (Qja, Qko): Remove declarations.
11968 (syms_of_w32font): Don't DEFSYM them.
11969
cf702558
CY
119702009-04-17 Chong Yidong <cyd@stupidchicken.com>
11971
11972 * font.c (Qja, Qko): Move definitions here from ftfont.c.
11973
11974 * font.h (Qja, Qko): Extern them.
11975
11976 * ftfont.c (Qja, Qko): Remove declarations.
11977
11978 * xfont.c (Qja, Qko): Remove declarations.
11979
b50504f5
KH
119802009-04-17 Kenichi Handa <handa@m17n.org>
11981
bde25748
KH
11982 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
11983 string from a vector to handle Latin-1 characters correctly.
11984
b50504f5
KH
11985 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
11986 entity even if the cache hits.
11987
f4646fff
AS
119882009-04-16 Andreas Schwab <schwab@linux-m68k.org>
11989
11990 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 11991 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 11992
e7deaab0
AS
11993 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
11994 * lisp.h: Adjust prototypes.
11995
0a0e7d49
CY
119962009-04-16 Chong Yidong <cyd@stupidchicken.com>
11997
11998 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
11999 change (Bug#3003).
12000
3c908a57
KH
120012009-04-16 Kenichi Handa <handa@m17n.org>
12002
1ac9108a 12003 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
12004
12005 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
12006 adstyle.
12007
12008 * ftfont.c (Qja, Qko): Don't make them static.
12009 (enum ftfont_cache_for): New enum.
12010 (fc_charset_table): Undo the previous change.
12011 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
12012 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
12013 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
12014 non-scarable font, try to get AVERAGE_WIDTH.
12015 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
12016 Change ft_face_cache from a list of a hash-table. Don't check
12017 `ja' and `ko' adstyle here.
12018 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
12019 FTFONT_CACHE_FOR_CHARET.
12020 (ftfont_get_charset): Undo the previous change.
1ac9108a 12021 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
12022 (ftfont_close): Likewise.
12023 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
12024
12025 * font.c (font_sort_entites): Change the meaning of the arg
12026 BEST-ONLY. Don't optimize for VEC of lenght 1.
12027 (font_select_entity): Just return the value of font_sort_entites.
12028
12029 * xfaces.c (merge_face_vectors): Reflect font properties in
12030 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
12031 font_clear_prop if a face attribute doesn't change.
12032
3c908a57
KH
12033 * charset.h (charset_ksc5601): Extern it.
12034
12035 * charset.c (charset_ksc5601): New variable.
12036 (Fdefine_charset_internal): Set charset_ksc5601.
12037 (init_charset_once): Initialize charset_ksc5601 to -1.
12038
d65859c3
DN
120392009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
12040
12041 * fileio.c (history_delete_duplicates): Remove unused declaration.
12042
12043 * callint.c (history_delete_duplicates): New declaration.
12044 (Fcall_interactively): Remove command history duplicates when
12045 history_delete_duplicates is true.
12046
3ba010e5
EZ
120472009-04-14 Eli Zaretskii <eliz@gnu.org>
12048
12049 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
12050
06f19b91
KH
120512009-04-14 Kenichi Handa <handa@m17n.org>
12052
12053 * font.c (Ffont_info): Fix docstring. Fix the second element of
12054 the returned value (bug#2949).
12055
2cce8bfc
CY
120562009-04-14 Chong Yidong <cyd@stupidchicken.com>
12057
12058 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
12059
d156542d
KH
120602009-04-14 Kenichi Handa <handa@m17n.org>
12061
12062 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
12063 encoding charset is ascii_compatible.
12064
12065 * charset.c (Fdefine_charset_internal): Make charset
12066 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
12067 code_offset is 0, and covers all ASCII characters.
12068
86fa089e
SM
120692009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
12070
12071 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
12072 (ns_string_to_pasteboard_internal):
12073 * nsmenu.m (process_dialog):
12074 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
12075 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
12076 * lisp.h (Fx_load_color_file): Declare.
12077
a8a3728b
KH
120782009-04-13 Kenichi Handa <handa@m17n.org>
12079
1ac9108a 12080 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
12081 (font_select_entity): Suppress the code to optimize for the same
12082 kind of fonts.
12083 (font_load_for_lface): Get a font that supports at least ASCII
12084 characters.
12085
12086 * ftfont.c (Qja, Qko): New variables.
12087 (fc_charset_table): Delete uniquifier data for iso8859-1.
12088 (ftfont_get_latin1_charset): New function.
12089 (get_adstyle_property): New function.
12090 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
12091 bitmap fonts.
12092 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
12093 Delete iso-8859-1 range from the charset of fonts whose adstyle is
12094 `ko' or `ja'.
12095 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 12096 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
12097 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
12098 property.
12099 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
12100 (syms_of_ftfont): DEFSYM Qja and Qko.
12101
483670b5
KH
121022009-04-09 Kenichi Handa <handa@m17n.org>
12103
12b55765
KH
12104 * charset.c (map_charset_chars): For a charset of `superset'
12105 method, fix calculation of code range.
12106
483670b5
KH
12107 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
12108 from the list of extra properties.
12109 (font_clear_prop): Be sure to delete `:name' font property.
12110
57d3b93b
KH
121112009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12112
b4b2c2ca
YM
12113 * dispnew.c (redraw_overlapping_rows): Fix detection of
12114 overlapping for topmost and bottommost rows.
12115
1ac9108a 12116 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 12117
472c3609
JR
121182009-04-06 Jason Rumney <jasonr@gnu.org>
12119
12120 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
12121
ab193662
KH
121222009-04-06 Kenichi Handa <handa@m17n.org>
12123
12124 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
12125
12126 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
12127
0c26f026
KH
121282009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12129
12130 * ftfont.c (ftfont_open): Fix checking of the return value of
12131 FT_Load_Char. Fix setting font->underline_thickness.
12132
e173bbce
CY
121332009-04-04 Chong Yidong <cyd@stupidchicken.com>
12134
12135 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
12136 (Fterminal_parameters, Fterminal_parameter)
12137 (Fset_terminal_parameter): In doc string, refer to terminal
12138 objects rather than terminal ids.
12139
693a2698
EZ
121402009-04-04 Eli Zaretskii <eliz@gnu.org>
12141
12142 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
12143 ret_lim_data. (Bug#2867)
12144
d5221487
CY
121452009-04-03 Chong Yidong <cyd@stupidchicken.com>
12146
12147 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
12148 so they don't get wider than the window, matching 2006-01-23
12149 change to the partner function in xdisp.c (Bug#2800).
12150
223509a3
KH
121512009-04-03 Kenichi Handa <handa@m17n.org>
12152
12153 * print.c (print_object): Make each lowest sub_char_table start a
12154 new line (Bug#2866).
12155
74fcd0b1
KH
121562009-04-02 Kenichi Handa <handa@m17n.org>
12157
12158 * fontset.c (fontset_font): Record no-font when a fontset
12159 explicitly tells not to try another font-specs.
12160
c542407d
SM
121612009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
12162
12163 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
12164
e3869731
KH
121652009-03-30 Kenichi Handa <handa@m17n.org>
12166
d8d2f142
KH
12167 * fontset.c (fontset_from_font): Specify only registry in a
12168 font-spec for all characters supported by that registry.
12169
e3869731
KH
12170 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
12171 even if HAVE_M17N_FLT is not defined.
12172
5da5f805
CY
121732009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
12174
12175 * ftfont.c: Conditionalize prototyping and use of
12176 ftfont_variation_glyphs.
12177
ab226c50
SM
121782009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
12179
9628fed7
SM
12180 * frame.c (delete_frame): Work around compiler bug.
12181
12182 * editfns.c (general_insert_function): Adjust to insdel.c changes.
12183 * insdel.c (prepare_to_modify_buffer, signal_before_change):
12184 Some more EMACS_INT.
12185 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
12186
12187 * xdisp.c (dump_glyph): Fix typo.
12188
ae19ba7c
SM
12189 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
12190 (adjust_markers_gap_motion, adjust_markers_for_delete)
12191 (adjust_markers_for_insert, adjust_point)
12192 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
12193 (make_gap, copy_text, count_size_as_multibyte, insert)
12194 (insert_and_inherit, insert_before_markers)
12195 (insert_before_markers_and_inherit, insert_1)
12196 (count_combining_before, count_combining_after, insert_1_both)
12197 (insert_from_string, insert_from_string_before_markers)
12198 (insert_from_string_1, insert_from_gap, insert_from_buffer)
12199 (insert_from_buffer_1, adjust_after_replace)
12200 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
12201 (replace_range_2, del_range, del_range_1, del_range_byte)
12202 (del_range_both, del_range_2, modify_region)
12203 (prepare_to_modify_buffer, signal_before_change)
12204 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
12205 for buffer positions and sizes.
12206 * lisp.h: Adjust prototypes accordingly.
12207
12208 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
12209 (non_regular_inserted, non_regular_nbytes, read_non_regular)
12210 (Finsert_file_contents): Use EMACS_INT for buffer positions.
12211
ab226c50
SM
12212 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
12213
46dfb8fb
JD
122142009-03-27 Jan Djärv <jan.h.d@swipnet.se>
12215
12216 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
12217 lines and columns so we keep the same pixel height and width.
12218
12219 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
12220 the property _NET_WM_STATE has changed.
46dfb8fb
JD
12221 (x_handle_net_wm_state): New function to update frame parameter
12222 fullscreen.
12223 (x_term_init): Initialize atoms for _NET_WM_STATE.
12224
12225 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
12226
d347e494
SM
122272009-03-27 Kevin Ryde <user42@zip.com.au>
12228
12229 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
12230 Gpm_GetEvent as an error that justifies closing the filedescriptor.
12231 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
12232 (Fgpm_mouse_stop): Pass that new parameter.
12233 * termhooks.h (close_gpm): Adjust prototype.
12234
84db11d6
SM
122352009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
12236
c95a5008
SM
12237 * lisp.h (Fx_focus_frame): Declare.
12238
84db11d6
SM
12239 * callint.c (Fcall_interactively): For '^' just delegate the work to
12240 handle-shift-selection.
12241 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
12242
0a1958d6
CY
122432009-03-24 Chong Yidong <cyd@stupidchicken.com>
12244
0bfdff23
CY
12245 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
12246
0a1958d6
CY
12247 * data.c (Qinteractive_form): New variable.
12248 (Finteractive_form): Use it.
12249
12250 * eval.c (Fcommandp): Use Qinteractive_form.
12251
58aec0d6
JR
122522009-03-24 Jason Rumney <jasonr@gnu.org>
12253
12254 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
12255 Calculate total size precisely. Decode environment variables
12256 before substituting. (Bug#38)
12257
553dd618
KH
122582009-03-24 Kenichi Handa <handa@m17n.org>
12259
12260 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 12261 encoding (Bug#2722).
553dd618 12262
c39ea606
JD
122632009-03-23 Jan Djärv <jan.h.d@swipnet.se>
12264
12265 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
12266 that gdpy is set.
12267
bc9b2b5e
AM
122682009-03-22 Alan Mackenzie <acm@muc.de>
12269
12270 * callint.c (Finteractive): Clarify the doc string - even
12271 promptless elements need \n separators.
12272
9f995a76
JR
122732009-03-22 Jason Rumney <jasonr@gnu.org>
12274
12275 * w32term.c (syms_of_w32term): Doc fix for
12276 x-use-underline-position-properties.
12277
22749e9a
EZ
122782009-03-21 Eli Zaretskii <eliz@gnu.org>
12279
12280 * w32.c (getpwuid): Change argument type to unsigned.
12281 (struct w32_id): Change type of `rid' member to unsigned.
12282 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
12283 argument ID to unsigned. All callers changed.
12284 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
12285
e00553bf
EZ
122862009-03-20 Eli Zaretskii <eliz@gnu.org>
12287
12288 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
12289 negative, produce a float value.
12290
12291 * dired.c (make_uid, make_gid): New functions.
12292 (Ffile_attributes): Use them to avoid negative UID and GID.
12293
f761d6b6
JB
122942009-03-20 Juanma Barranquero <lekktu@gmail.com>
12295
12296 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
12297 (syms_of_keyboard) <command-hook-internal, input-method-function>:
12298 Fix typos in docstrings.
12299
d507f8d7
KH
123002009-03-19 Kenichi Handa <handa@m17n.org>
12301
12302 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
12303 changed, use font_load_for_lface to get a new font object.
12304 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
12305
12306 * frame.c (x_set_font): Handle the case that ARG is a cons.
12307
c68845e0
GM
123082009-03-19 Glenn Morris <rgm@gnu.org>
12309
12310 * fileio.c (Fsubstitute_in_file_name): Doc fix.
12311
bfa49dd1
CY
123122009-03-19 Chong Yidong <cyd@stupidchicken.com>
12313
12314 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
12315
8458d4c1
KH
123162009-03-19 Kenichi Handa <handa@m17n.org>
12317
12318 * charset.c (load_charset_map_from_file): When a mapfile can't be
12319 loaded, signal an error.
12320
78e7d1fe
EZ
123212009-03-18 Eli Zaretskii <eliz@gnu.org>
12322
12323 * dired.c (Ffile_attributes): Make sure UID and GID are always
12324 positive, even if the value is too large for a positive EMACS_INT.
12325 Doc fix.
12326
12327 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
12328
5da9fdfa
YM
123292009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12330
12331 * xmenu.c (xdialog_show): Move Fredisplay call ...
12332 (Fx_popup_dialog): ... here.
12333
7519c40d
SM
123342009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
12335
12336 * dired.c (file_name_completion): Disable the first optimization just
12337 installed, since it is not implemented correctly.
12338
2cd298e2
SM
123392009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
12340
12341 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 12342 only if the entry can affect bestmatch.
2cd298e2
SM
12343 Stop the search early, as Ftry_completion already does.
12344
48d37adf
CY
123452009-03-17 Chong Yidong <cyd@stupidchicken.com>
12346
e10c9c93 12347 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 12348
9286b16a
CY
123492009-03-15 Chong Yidong <cyd@stupidchicken.com>
12350
12351 * keyboard.c (parse_menu_item): Don't display remappings as menu
12352 equivalent bindings (Bug#788).
12353
f7b146dc
JR
123542009-03-15 Jason Rumney <jasonr@gnu.org>
12355
12356 * w32term.h (WM_EMACS_PAINT): New message.
12357 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
12358 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
12359 before passing to lisp thread. (Bug#950)
12360
f761d6b6 123612009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 12362
d93f9575
CY
12363 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
12364 variable as it was never reset.
12365 (ns_term_init): Remove initialization of Lisp-settable defaults
12366 and ns_expand_space.
12367 (-setPanelFromDefaultValues): Remove ns_expand_space.
12368 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
12369 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
12370 i.e. no additional spacing, similar to Carbon port.
12371
d93f9575
CY
12372 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
12373 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 12374
305018ec
JD
123752009-03-14 Jan Djärv <jan.h.d@swipnet.se>
12376
12377 * sound.c (alsa_configure): Remove call to deprecated
12378 snd_pcm_sw_params_set_xfer_align.
12379
f761d6b6 123802009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
12381
12382 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
12383 after clicking in a detached tool bar.
12384 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
12385
46e722a9
SM
123862009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
12387
348db3dd
SM
12388 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
12389 int/Lisp_Object mixup).
46e722a9 12390
a3d16f39
KH
123912009-03-13 Kenichi Handa <handa@m17n.org>
12392
12393 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 12394 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
12395 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
12396 (set_fontset_font): Change ARG to a vector. Handle range_list in
12397 ARG correctly.
12398 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 12399 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
12400 the above change.
12401 (fontset_from_font): Fix previous change.
fe24f56a 12402 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
12403 entry. If FONTSET is the default fontset, don't set the extra
12404 slot of the returning char-table.
12405
b066e6b6
JB
124062009-03-12 Juanma Barranquero <lekktu@gmail.com>
12407
12408 * nsfns.m (Fx_close_connection): Doc fix.
12409 (Fns_do_applescript): Reflow docstring.
12410 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
12411 (Fx_display_pixel_width, Fx_display_pixel_height)
12412 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
12413 Fix typos in docstrings.
12414 (Fns_set_alpha): Fix typos in error messages.
12415
d472514e 124162009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 12417
d472514e 12418 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
12419 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
12420 were used for such events.
12421
d472514e
JB
12422 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
12423 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 12424
d472514e 12425 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
12426 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
12427
fb930676
KH
124282009-03-11 Kenichi Handa <handa@m17n.org>
12429
ff85581a
KH
12430 * font.h (font_open_by_spec): Extern it.
12431
c50b7e98
KH
12432 * font.c (font_open_by_spec): New function.
12433 (font_open_by_name): Use font_open_by_spec.
12434
fb930676
KH
12435 * frame.c (x_set_font): When ARG is a font-object, don't alter the
12436 fontset of the frame.
12437
12438 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
12439 modify the default font of frames that use this fontset.
12440 (num_auto_fontsets): New variable.
12441 (fontset_from_font): Use num_auto_fontsets to decide a fontset
12442 name. Be sure to set FONTSET_ASCII to the correct font name.
12443 (update_auto_fontset_alist): New function.
12444
df4e8455
JB
124452009-03-11 Juanma Barranquero <lekktu@gmail.com>
12446
12447 * makefile.w32-in: Update dependencies.
12448
0a375797
AR
124492009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12450
12451 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
12452
61313fa3
SM
124532009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
12454
12455 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
12456
b55103fb
CY
124572009-03-10 Chong Yidong <cyd@stupidchicken.com>
12458
12459 * lread.c (Feval_buffer): Doc fix.
12460
dde2559c
KH
124612009-03-09 Kenichi Handa <handa@m17n.org>
12462
12463 * charset.c (Qfile_name_handler_alist): Extern it.
12464 (load_charset_map_from_file): Temporarily bind
12465 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
12466
df4e8455 124672009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 12468
47f588bb
GM
12469 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
12470 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 12471
4ddf94bd
AR
124722009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12473
4c9bdfc2
AR
12474 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
12475 (x_set_window_size): Change back to calculated method of setting
12476 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
12477 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
12478 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
12479
fe41ae9e
AR
12480 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
12481
4c9bdfc2
AR
12482 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
12483 accelerator in parens under GNUstep.
12484
825d0875
KH
124852009-03-06 Kenichi Handa <handa@m17n.org>
12486
12487 These changes are to detect incorrect composition sequence without
f3b3be74 12488 looking ahead the source. (Bug#2370)
825d0875
KH
12489
12490 * coding.h: Include "composite.h".
12491 (enum compisition_state): New enum.
12492 (struct compisition_status): New struct.
12493 (struct iso_2022_spec): New member cmp_status.
12494 (struct emacs_mule_spec): New struct.
12495 (struct coding_system): New members ctext_extended_segment_len and
12496 embedded_utf_8. Change the union member
12497 spec.emacs_mule_full_support to spec.emacs_mule.
12498
12499 * coding.c (CODING_ISO_CMP_STATUS): New macro.
12500 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 12501 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
12502 (ADD_COMPOSITION_DATA): New arg nbytes.
12503 (emacs_mule_char): New arg cmp_status.
12504 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
12505 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
12506 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
12507 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
12508 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
12509 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
12510 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
12511 (EMACS_MULE_COMPOSITION_END): New macro.
12512 (emacs_mule_finish_composition): New function.
12513 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
12514 (decode_coding_emacs_mule): Avoid long looking ahead while
12515 handling composition.
12516 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
12517 (ENCODE_COMPOSITION_RULE): New macro.
12518 (finish_composition): New function.
12519 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
12520 (DECODE_COMPOSITION_START): New implementation.
12521 (DECODE_COMPOSITION_END): Likewise.
12522 (STORE_COMPOSITION_RULE): New macro.
12523 (decode_coding_iso_2022): Avoid long looking ahead while handling
12524 composition, CTEXT extended segment, and embedded UTF-8.
12525 (setup_coding_system): For a coding of type iso-2022, reset
12526 CODING_ISO_EXTSEGMENT_LEN (coding) and
12527 CODING_ISO_EMBEDDED_UTF_8 (coding).
12528 (get_translation): Delete arguments last_block, from_nchars,
12529 to_nchars. Callers changed.
12530 (produce_chars): Don't modify charbuf. Adjusted for the change of
12531 get_translation.
98a326f7 12532 (produce_composition): Adjust for the new annotation sequence.
825d0875 12533 (handle_composition_annotation): Likewise.
98a326f7 12534 (consume_chars): Adjust for the change of get_translation.
825d0875 12535
ccbc4452
AR
125362009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
12537
4ddf94bd 12538 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 12539
988a7ddb
KH
125402009-03-05 Kenichi Handa <handa@m17n.org>
12541
12542 * font.c (font_select_entity): New function.
12543 (font_find_for_lface): Use font_select_entity to select a font.
12544
12545 * fontset.c (fontset_find_font): If a font found without
a8a3728b 12546 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
12547 font with C restriction.
12548
98a326f7 125492009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 12550
be1bce46 12551 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 12552
10ea2b82
JR
125532009-03-04 Jason Rumney <jasonr@gnu.org>
12554
2c93b248 12555 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 12556 characters that have already been read. (Bug#2569)
2c93b248 12557
10ea2b82
JR
12558 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
12559 Log an error message if check_image_size failed.
12560 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 12561 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 12562
71a0c011
EZ
125632009-03-02 Eli Zaretskii <eliz@gnu.org>
12564
12565 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
12566 when decoding process output.
12567
2f63bba8
RS
125682009-03-01 Richard M Stallman <rms@gnu.org>
12569
12570 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
12571
12572 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
12573
0a9564cb
EZ
125742009-02-28 Eli Zaretskii <eliz@gnu.org>
12575
12576 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
12577 (decode_coding_emacs_mule, decode_coding_iso_2022)
12578 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
12579 (decode_coding_raw_text, decode_coding_charset)
12580 (setup_coding_system, decode_eol, decode_coding, consume_chars):
12581 Honor inhibit-eol-conversion. (Bug #2186)
12582
449148b3
JR
125832009-02-28 Jason Rumney <jasonr@gnu.org>
12584
12585 * coding.c (detect_coding_charset): If not checking latin extra,
12586 fail on characters between 0x80 and 0xA0. (Bug#2354)
12587
a4aee864
EZ
125882009-02-28 Eli Zaretskii <eliz@gnu.org>
12589
12590 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 12591 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 12592
d88bee5a
GM
125932009-02-27 Glenn Morris <rgm@gnu.org>
12594
12595 * callint.c (Finteractive): Doc fix.
12596
a808f22d
KH
125972009-02-27 Kenichi Handa <handa@m17n.org>
12598
12599 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
12600
caf8d60c
CY
126012009-02-27 Chong Yidong <cyd@stupidchicken.com>
12602
12603 * font.c (font_style_to_value): Set value for unknown symbols to
12604 100 instead of 255.
b61137ea
CY
12605 (weight_table, slant_table, width_table): Treat "unspecified" as
12606 the default value.
caf8d60c 12607
1a0de25c
JB
126082009-02-26 Juanma Barranquero <lekktu@gmail.com>
12609
12610 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
12611
8fc45744
JB
126122009-02-25 Juanma Barranquero <lekktu@gmail.com>
12613
107bd7d1
JB
12614 * lread.c (Fload): Stop checking Vloads_in_progress and signal
12615 error as soon as a recursive load is detected.
8fc45744 12616
f097e223
AR
126172009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
12618
12619 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
12620 before caching.
12621
8810a12f
KH
126222009-02-24 Kenichi Handa <handa@m17n.org>
12623
12624 * fontset.c (fontset_find_font): Fix the condition for checking
12625 unavailable font.
12626
2c7d1565
GM
126272009-02-24 Glenn Morris <rgm@gnu.org>
12628
12629 * xfaces.c (Finternal_set_font_selection_order): Remove leading
12630 whitespace that confuses documentation.
12631
a20878b6
MB
126322009-02-23 Miles Bader <miles@gnu.org>
12633
12634 * process.c (Flist_system_processes, Fprocess_attributes)
12635 (syms_of_process): Rename `system-process-attributes' to
12636 `process-attributes'.
12637
b3b58c01
AS
126382009-02-22 Andreas Schwab <schwab@linux-m68k.org>
12639
1b3b981b
AS
12640 * coding.h (struct coding_system): Make safe_charsets a pointer to
12641 unsigned char.
12642 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
12643 being 255.
12644 (SAFE_CHARSET_P): Likewise.
12645 (setup_iso_safe_charsets): Properly setup safe_charsets.
12646 (Fdefine_coding_system_internal): Likewise.
12647 (setup_coding_system): Likewise. Remove unneeded casts.
12648 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
bba3e508
SM
12649 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS.
12650 Remove unneeded casts.
1b3b981b 12651
b3b58c01
AS
12652 * insdel.c (del_range_2): Don't modify gap contents when called
12653 from decode_coding_object. (Bug#1809)
12654
0b6f228c
CY
126552009-02-21 Chong Yidong <cyd@stupidchicken.com>
12656
12657 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
12658 Qfont_object.
12659 (Ftype_of): Recognize font objects.
12660
12661 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
12662
bba3e508
SM
12663 * font.c (Qfont_spec, Qfont_entity, Qfont_object):
12664 Definitions moved to data.c.
0b6f228c 12665
52f8870b
AR
126662009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12667
12668 * nsterm.m (x_make_frame_invisible): Unset async_visible,
12669 async_iconified. Based on a patch by Christian Lynbech
12670 <christian.lynbech@tieto.com>.
12671 (EmacsView-windowDidMiniaturize:): Unset async_visible.
12672
7087d5e9
GM
126732009-02-20 Glenn Morris <rgm@gnu.org>
12674
12675 * syntax.c (Fskip_chars_forward): Fix doc typo.
12676
41d2ceef
CY
126772009-02-20 Chong Yidong <cyd@stupidchicken.com>
12678
12679 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
12680
1a3b7ca6
CY
126812009-02-19 Chong Yidong <cyd@stupidchicken.com>
12682
12683 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
12684
73cce38d
KH
126852009-02-19 Kenichi Handa <handa@m17n.org>
12686
12687 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 12688 Don't overflow coding->carryover. (Bug#2370)
73cce38d 12689
a51092ee
DN
126902009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
12691
12692 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
12693
c423ecca
KH
126942009-02-18 Kenichi Handa <handa@m17n.org>
12695
12696 * font.c (font_check_otf_features): Fix handling of `nil' element.
12697 (Ffont_spec): Describe :lang and :otf in the docstring.
12698
4c1958f4
AS
126992009-02-16 Andreas Schwab <schwab@suse.de>
12700
12701 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
12702 string.
12703
5704f39a
KH
127042009-02-16 Kenichi Handa <handa@m17n.org>
12705
12706 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 12707 (Bug#1723)
5704f39a 12708
8f0085aa
CY
127092009-02-14 Chong Yidong <cyd@stupidchicken.com>
12710
a057d86a 12711 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
12712
12713 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
12714 (handle_line_prefix): Suppress wrapping of wrap prefixes.
12715
aff01dd9
EZ
127162009-02-14 Eli Zaretskii <eliz@gnu.org>
12717
12718 * msdos.c (MAX_SCREEN_BUF): New macro.
12719 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
12720 Encode the entire run of glyphs sharing the same face, instead of
12721 doing that one glyph at a time (fixes a bug with displaying
12722 double-size characters).
12723
ba301db3
AR
127242009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
12725
12726 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
12727
12728 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
12729 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 12730 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
12731
12732 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 12733 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 12734
51d861de
SM
127352009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
12736
ac146f82 12737 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
12738 invisible areas.
12739
7fed8996
JR
127402009-02-12 Jason Rumney <jasonr@gnu.org>
12741
631ea4fb
JR
12742 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
12743 (add_font_entity_to_list): Call check_face_name even when family
12744 is unspecified.
12745
cb4a3e42
JR
12746 * w32term.c (x_display_pixel_height, x_display_pixel_width):
12747 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 12748 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 12749
7fed8996 12750 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 12751 raster fonts. (Bug#2219)
7fed8996 12752
895416e3
KH
127532009-02-12 Kenichi Handa <handa@m17n.org>
12754
12755 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
12756 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
12757 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 12758 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
12759 (find_automatic_composition): While looking forward and backward,
12760 check static composition. Fix where to stop looking forward.
12761 (composition_adjust_point): Fix checking of static composition.
12762 (Fcomposition_get_gstring): Pay attention to
1dacf998 12763 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
12764
12765 * lisp.h (fast_looking_at): Extern it.
12766
12767 * search.c (fast_looking_at): New function.
12768
51d861de 12769 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
12770 <struct glyph>.u.cmp.to.
12771 (append_composite_glyph): Likewise.
12772
51d861de 12773 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
12774 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
12775 composition.
51d861de 12776 (append_composite_glyph): Adjust for the change of
895416e3
KH
12777 <strcut glyph>.u.cmp.to.
12778
8510724d
JB
127792009-02-11 Juanma Barranquero <lekktu@gmail.com>
12780
12781 * casetab.c (init_casetab_once):
12782 * coding.c (ALLOC_CONVERSION_WORK_AREA):
12783 * font.c (font_update_lface):
12784 * fontset.c (Fnew_fontset):
12785 * ftfont.c (ftfont_drive_otf):
12786 * xfont.c (xfont_open):
12787 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
12788
294fa707
SM
127892009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
12790
12791 * fileio.c (Fwrite_region): !NILP -> CONSP.
12792
b5bfebec
AS
127932009-02-10 Andreas Schwab <schwab@suse.de>
12794
12795 * process.c (send_process): Properly relocate pointer into data
adab88bd 12796 when using encoded data. (Bug#2272)
b5bfebec 12797
cb84a2be
KH
127982009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
12799
12800 * coding.c (detect_coding_charset): Fix previous change.
12801
89e09428
JR
128022009-02-08 Jason Rumney <jasonr@gnu.org>
12803
12804 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 12805 disappeared while hourglass was displayed. (Bug #2193)
89e09428 12806
4470a277
AS
128072009-02-07 Andreas Schwab <schwab@suse.de>
12808
12809 * unexelf.c (unexec): Fix error message.
12810
3175b12a
AR
128112009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
12812
12813 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 12814 when modal window is active. (Bug #2152)
3175b12a
AR
12815 (applicationShouldTerminate:): Remove now-unneeded while loop
12816 around NSRunAlertPanel.
12817
12818 * nsmenu.m (popupSession): New file-global variable.
12819 (pop_down_menu): End the popupSession before closing dialog.
12820 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
12821 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
12822 don't query NSApp for events (just sleep instead).
12823
8434d0b8
EZ
128242009-02-07 Eli Zaretskii <eliz@gnu.org>
12825
51d861de
SM
12826 * coding.c (syms_of_coding) <translation-table-for-input>:
12827 Modify doc string to discourage use for character code unification.
8434d0b8 12828
aa82edfd
CY
128292009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12830
12831 * atimer.c (run_timers): Update pending_atimers.
12832
2d283c7c
CY
128332009-02-06 Chong Yidong <cyd@stupidchicken.com>
12834
eb306cab
CY
12835 * image.c (svg_load_image): Fix last change.
12836
2d283c7c
CY
12837 * xfns.c (Fx_create_frame): Signal an error if no font is
12838 found (Bug#2147).
12839
4d8e170e
JB
128402009-02-05 Juanma Barranquero <lekktu@gmail.com>
12841
12842 * character.c (syms_of_character) <script-representative-chars>:
12843 Fix typo in docstring.
12844
c96169a0
AR
128452009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
12846
12847 * nsmenu.m (pop_down_menu): New function.
12848 (ns_popup_dialog): Call it on unwind.
12849 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
12850 call timer_check() (Bug#2154).
12851 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
12852 handling_signal is set.
12853 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
12854
31fd7c5c 12855 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
12856
12857 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
12858
12859 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
12860
51d861de
SM
12861 * keyboard.c (poll_for_input_1, handle_async_input):
12862 Set handling_signal under HAVE_NS.
c96169a0 12863
aacd8ba1
GM
128642009-02-04 Glenn Morris <rgm@gnu.org>
12865
12866 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
12867
4cb75c4b
KH
128682009-02-04 Kenichi Handa <handa@m17n.org>
12869
12870 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
12871
12872 * charset.c (Fchar_charset): New optional arg restriction.
12873
12874 * coding.h (coding_system_charset_list): Extern it.
12875
12876 * coding.c (coding_system_charset_list): New function.
12877
12878 * composite.c: Include coding.h and termhooks.h.
12879 (composition_gstring_p): Fix for the terminal case.
12880 (composition_gstring_width): Likewise.
12881 (fill_gstring_body): Likewise.
12882 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
12883 the frame.
12884 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
12885 is within a composition.
867d4bb3 12886 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
12887
12888 * term.c (encode_terminal_code): Fix handling of composition.
12889 (produce_composite_glyph): For static composition, get pixel_width
12890 from struct composition.
12891
826ba17e
AS
128922009-02-02 Andreas Schwab <schwab@suse.de>
12893
12894 * unexelf.c (unexec): Handle unaligned bss offset.
12895
8ad093db
AR
128962009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12897
12898 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
12899 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 12900
8ad093db
AR
12901 * keyboard.c (handle_interrupt): Don't call
12902 quit_throw_to_read_char() under NS.
d0a76a6e 12903
8ad093db
AR
12904 * blockinput.h: Remove NS-specific code.
12905
4d18a7a2
DN
129062009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
12907
db878925
DN
12908 * dispnew.c (window_change_signal): Don't try to get the size of a
12909 suspended tty frame.
12910 * term.c (Fresume_tty): Resize if the size has changed while the
12911 tty was suspended.
12912
4d18a7a2
DN
12913 * alloc.c (mark_stack): Properly conditionalize previous change.
12914
8984df7c
JB
129152009-01-30 Juanma Barranquero <lekktu@gmail.com>
12916
12917 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
12918 * w32term.c (w32_read_socket) [SYNC_INPUT]:
12919 Remove; this code is not used on Windows.
12920
75f4f1ac
EZ
129212009-01-30 Eli Zaretskii <eliz@gnu.org>
12922
12923 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
12924 EOLs that also has stray ^M characters.
12925
07a1e794
JB
129262009-01-30 Juanma Barranquero <lekktu@gmail.com>
12927
12928 * atimer.c (run_timers, alarm_signal_handler):
12929 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
12930 * w32inevt.c (w32_console_read_socket):
12931 * w32term.c (w32_read_socket):
12932 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
12933
a8b11cc9
CY
129342009-01-30 Chong Yidong <cyd@stupidchicken.com>
12935
12936 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
12937 Initialize it as a relative filename pattern.
12938 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
12939 (Fcall_process_region): Simplify temp file creation using
12940 temporary-file-directory.
12941
c279587b
EZ
129422009-01-29 Eli Zaretskii <eliz@gnu.org>
12943
12944 * msdos.c: Rename pending_signals to msdos_pending_signals.
12945 (sig_suspender, sigprocmask): Adjust.
12946
a8fe3242
CY
129472009-01-29 Chong Yidong <cyd@stupidchicken.com>
12948
12949 * keyboard.c (pending_signals): New var.
12950 (poll_for_input, input_available_signal, init_keyboard): Set it.
12951 (process_pending_signals): New function.
12952
12953 * lisp.h (QUIT): Check pending_signals instead of
12954 interrupt_input_pending. Use process_pending_signals.
12955
51d861de 12956 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 12957
51d861de 12958 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
12959
12960 * sysdep.c (emacs_write): Use process_pending_signals.
12961
12962 * xterm.c (XTread_socket): Update pending_signals.
12963
12964 * w32term.c (w32_read_socket): Update pending_signals.
12965
12966 * w32inevt.c (w32_console_read_socket): Update pending_signals.
12967
6570a1c4
KH
129682009-01-29 Kenichi Handa <handa@m17n.org>
12969
12970 * xftfont.c (xftfont_has_char): New function.
12971 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
12972
d72a4afa
AR
129732009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
12974
12975 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
12976 under GNUstep.
12977 (ns_query_color): New declaration.
12978
12979 * nsterm.m (ns_confirm_quit): New variable.
12980 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
12981 (EmacsApp-applicationShouldTerminate:): Use it.
12982 (EmacsPrefsController): Let user set it.
12983 (ns_query_color): New function.
12984 (ns_defined_color): Use it.
12985 (ns_initialize): Drop.
12986 (ns_term_init): Add two lines from ns_initialize(), and set
12987 input_interrupt_mode to nil.
12988
12989 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 12990 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 12991
9fe78804
KH
129922009-01-28 Kenichi Handa <handa@m17n.org>
12993
12994 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
12995 (fontset_get_font_group): Remember that no font-group is specified
12996 for C.
9fe78804 12997
fa57de36
CY
129982009-01-27 Chong Yidong <cyd@stupidchicken.com>
12999
930600e9
CY
13000 * fns.c (concat): Check for string overflow (bug#1787).
13001
fa57de36
CY
13002 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
13003 Quadruple undo limits (bug#1501).
13004
7179ce7b
KH
130052009-01-27 Kenichi Handa <handa@m17n.org>
13006
13007 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
13008 directly use GT_Get_Char_index.
13009
13010 * xftfont.c (struct xftfont_info): New member `index'.
13011
13012 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 13013 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 13014
5be8fcc0
CY
130152009-01-26 Kenichi Handa <handa@m17n.org>
13016
13017 * fontset.c (fontset_find_font): Fix handling of non-cons return
13018 value of fontset_get_font_group.
13019 (fontset_font): Revert last change.
13020
19ae3e61
JR
130212009-01-26 Jason Rumney <jasonr@gnu.org>
13022
13023 * w32font.c (w32font_list_internal): Return quickly if registry is
13024 unknown. Simplify final return.
13025 (add_font_entity_to_list): Break complex logic down into more
13026 manageable chunks. Move unknown registry check to
13027 w32font_list_internal.
13028
8612b71a
AR
130292009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
13030
13031 Changes to remove Feval calls from GUI under NS.
13032
d8038940
JB
13033 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
13034 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
13035 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
13036
13037 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
13038 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
13039 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
13040 instead of NON_ASCII_KEYSTROKE_EVENT.
13041 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
13042 (EmacsApp-applicationShouldTerminate:): Query user.
13043 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
13044 instead of Feval.
13045
13046 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
13047
13048 * keyboard.c (kbd_buffer_get_event): Check for it.
13049 (keys_of_keyboard): Define lispy keys for
13050 ns-put/unput-working-text.
13051
13052 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
13053 versions.
13054 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
13055
6288ae55
CY
130562009-01-25 Chong Yidong <cyd@stupidchicken.com>
13057
13058 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 13059 setting current_buffer directly. (Bug#2044)
6288ae55 13060
289e7f8f
CY
130612009-01-24 Chong Yidong <cyd@stupidchicken.com>
13062
5ce87308 13063 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 13064 any work. (Bug#1952, bug#1990).
5ce87308 13065
64cc3cf6 13066 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 13067
b3243e6f
AR
130682009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
13069
13070 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
13071 (ns_no_defaults): New declaration.
13072 (main): Use it.
e0d2e69a 13073
d900b2af 13074 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 13075
d900b2af 13076 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 13077
d900b2af
AR
13078 * nsterm.m (ns_no_defaults): New variable.
13079 (ns_initialize): Don't read defaults when ns_no_defaults.
13080 (EmacsView-readSelectionFromPasteboard:)
13081 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 13082 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
13083 (ns_dumpglyphs_stretch): New function.
13084 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 13085 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 13086
e0d2e69a
AR
13087 * nsimage.m (setPixmapData:): Set to ignore image DPI.
13088
3ac71f5d
CY
130892009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
13090
13091 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
13092 call for Sparc64.
13093
3fe53a83
AR
130942009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
13095
13096 * nsfns.m:
13097 * nsgui.h:
13098 * nsmenu.m:
13099 * nsselect.m:
13100 * nsterm.h:
13101 * nsterm.m: Remove '23' comments that indicated code added during
13102 update from emacs-20 -> emacs-23.
13103
10f87c6f 131042009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
13105
13106 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 13107 ns_alternate_modifier. (Bug#1217)
a3b53a85 13108
c7cef62d
AR
13109 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
13110 Display all shortcuts, including those w/o super modifier.
13111
575fb8bd
AR
13112 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
13113
918b848b
CY
131142009-01-22 Chong Yidong <cyd@stupidchicken.com>
13115
13116 * fileio.c (Vwrite_region_post_annotation_function)
13117 (Vwrite_region_annotation_buffers): New vars.
13118 (build_annotations_unwind): Just reset
13119 Vwrite_region_annotation_buffers.
13120 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
13121 Call write-region-post-annotation-function.
13122 (build_annotations): Add to Vwrite_region_annotation_buffers if
13123 buffer changes.
13124
a39e2539
AR
131252009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
13126
13127 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
13128 Tiger.
51d861de
SM
13129 * nsfns.m (ns_do_applescript):
13130 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 13131
35ed44db
AR
131322009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
13133
13134 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
13135
cbe0b5bf
AR
131362009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
13137
13138 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 13139
6049d3a0
AR
13140 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
13141
13142 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
13143 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
13144 handle Ctrl-tab. (Bug#1841)
13145 (ns_get_color): Use unsigned long long for scanned hex string value.
13146 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 13147 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 13148 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 13149 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 13150 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 13151 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 13152 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 13153
d3810c21 13154 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 13155 DPI. (Bug#1316)
d3810c21
AR
13156 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
13157 values in onTiger section.
4c7077c3 13158
e301e634
CY
131592009-01-19 Chong Yidong <cyd@stupidchicken.com>
13160
7f82490b
CY
13161 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
13162 Check return value of font_spec_from_name.
64cc3cf6 13163 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
13164
13165 * font.c (font_spec_from_name): Return Qnil if font name could not
13166 be parsed.
13167 (font_parse_name): Treat a `?' character as part of an XLFD.
13168
e301e634
CY
13169 * fns.c (Fsubstring): Doc fix.
13170
1c0db158
KH
131712009-01-19 Kenichi Handa <handa@m17n.org>
13172
51d861de 13173 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
13174 (ftfont_list): Likewise.
13175
acf20901
JB
131762009-01-18 Juanma Barranquero <lekktu@gmail.com>
13177
fff4e459
JB
13178 * dbusbind.c (Fdbus_register_signal):
13179 * process.c (conv_sockaddr_to_lisp):
13180 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
13181
acf20901
JB
13182 * callproc.c (Fgetenv_internal): Doc fix.
13183
e7abcdfb
CY
131842009-01-16 Chong Yidong <cyd@stupidchicken.com>
13185
13186 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
13187 it is not even used.
13188
b60861e6
GM
131892009-01-16 Glenn Morris <rgm@gnu.org>
13190
13191 * font.c (Ffont_variation_glyphs): Silence compiler.
13192
8db52afe
JB
131932009-01-15 Juanma Barranquero <lekktu@gmail.com>
13194
13195 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
13196 Reported by David Robinow <drobinow@gmail.com>.
13197
4cddb209
KH
131982009-01-15 Kenichi Handa <handa@m17n.org>
13199
51d861de 13200 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 13201
f247f67b
JR
132022009-01-14 Jason Rumney <jasonr@gnu.org>
13203
13204 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 13205 never a fontset. (Bug#1562)
f247f67b 13206
f56a4450
KH
132072009-01-14 Kenichi Handa <handa@m17n.org>
13208
13209 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 13210 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 13211
4e99855e
CY
132122009-01-13 Chong Yidong <cyd@stupidchicken.com>
13213
13214 * font.c (font_clear_prop): If clearing the family, clear the font
13215 width index too.
13216
fff4e459 13217 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 13218
24f01470
JB
132192009-01-12 Juanma Barranquero <lekktu@gmail.com>
13220
13221 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
13222 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
13223 functions, use sizeof.
13224
a41240a3
MR
132252009-01-12 Martin Rudalics <rudalics@gmx.at>
13226
13227 * keyboard.c (read_char): Fix case where last_nonmenu_event
13228 returned a bad value with submenus. (Bug#447)
13229
944636b8
CY
132302009-01-12 Chong Yidong <cyd@stupidchicken.com>
13231
13232 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
13233 family, clear the font width index too.
13234
0dad7c6f
JR
132352009-01-11 Jason Rumney <jasonr@gnu.org>
13236
13237 * keyboard.c (cmd_error_internal): Exit when errors occur before
13238 frame creation and not in daemon mode. (Bug#1836)
13239
7c2363af
CY
132402009-01-10 Chong Yidong <cyd@stupidchicken.com>
13241
13242 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
13243 of a display vector, backtrack.
13244 (try_window_reusing_current_matrix): Check glyph type before
13245 referencing charpos member.
13246
97b1b294
EZ
132472009-01-10 Eli Zaretskii <eliz@gnu.org>
13248
13249 Fix Bug #876:
13250
13251 * coding.c (inhibit_null_byte_detection): New variable.
13252 (detect_coding, detect_coding_system): Don't pay attention to null
13253 bytes if inhibit_null_byte_detection is non-zero.
51d861de 13254 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
13255 <inhibit-iso-escape-detection>: Doc fix.
13256
4624b6e3
JR
132572009-01-09 Jason Rumney <jasonr@gnu.org>
13258
13259 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 13260 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
13261 Only report Unicode Plane 2 fonts as unicode-sip.
13262
323b840c
CY
132632009-01-09 Chong Yidong <cyd@stupidchicken.com>
13264
51d861de
SM
13265 * xfaces.c (Fx_font_family_list): Delete function.
13266 Move compatibility version to faces.el.
323b840c 13267
51d861de 13268 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 13269
eba7400d
MR
132702009-01-09 Martin Rudalics <rudalics@gmx.at>
13271
13272 * frame.c (x_set_frame_parameters): Remember requested value for
13273 fullscreen before it's reset by the parameter handler.
13274
4b09796d
GM
132752009-01-09 Glenn Morris <rgm@gnu.org>
13276
13277 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 13278 (last_command_event): ... and update all users.
4b09796d
GM
13279 (last_input_char): For clarity, rename to...
13280 (last_input_event): ... and update all users.
13281 (last-command-char, last-input-char): Move to subr.el as aliases.
13282 * cmds.c, commands.h: Update for last_command_char rename.
13283
14ccea62
CY
132842009-01-08 Chong Yidong <cyd@stupidchicken.com>
13285
51d861de 13286 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 13287
5f004711
JR
132882009-01-08 Jason Rumney <jasonr@gnu.org>
13289
13290 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
13291 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
13292 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
13293 Don't declare.
fff4e459 13294 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
13295 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
13296
b71f6f73
KH
132972009-01-07 Kenichi Handa <handa@m17n.org>
13298
50b06221 13299 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 13300 remember the coding system used for decoding in
50b06221
KH
13301 coding_system (Bug#1039).
13302
b71f6f73 13303 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 13304 breaking the loop. (Bug#870)
b71f6f73
KH
13305 (decode_coding_utf_16, decode_coding_emacs_mule)
13306 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
13307 (decode_coding_charset): Likewise.
13308
56f668f7
MR
133092009-01-05 Martin Rudalics <rudalics@gmx.at>
13310
13311 * frame.c (x_set_frame_parameters): Make sure height (width) get
13312 applied when fullwidth (fullheight) is set. (Bug#1522)
13313
5da9424d
JB
133142009-01-04 Juanma Barranquero <lekktu@gmail.com>
13315
13316 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
13317 (utc_base): Declare as ULONGLONG, not long double.
13318 (convert_time_raw): Delete.
13319 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
13320 (initialize_utc_base): New function.
13321 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
13322 (convert_from_time_t): Use initialize_utc_base; compute result with
13323 64-bit arithmetic.
13324 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
13325
c4605e09
EZ
133262009-01-03 Eli Zaretskii <eliz@gnu.org>
13327
9acef61c 13328 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
13329 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
13330 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
13331 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
13332 [!subprocesses]: Define.
13333 (syms_of_process) [!subprocesses]: Intern and staticpro them.
13334 (Flist_system_processes, Fsystem_process_attributes)
13335 [!subprocesses]: Call list_system_processes and
13336 system_process_attributes instead of returning Qnil.
13337
9acef61c
JB
13338 * dosfns.c (system_process_attributes, list_system_processes):
13339 New functions.
c4605e09
EZ
13340
13341 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
13342
13343 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
13344 Don't use the default (no-op) implementation.
13345
8b7d0a16
JR
133462009-01-03 Jason Rumney <jasonr@gnu.org>
13347
a6d46bc1
JR
13348 * keyboard.c (parse_modifiers_uncached): Wheel events are
13349 clicks (bug#687).
13350
8b7d0a16
JR
13351 * w32term.c (x_query_colors, x_query_color): New functions.
13352
13353 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
13354 (svg_load_image): Cast returned pointers from dynamically loaded
13355 functions. Eliminate W32 specific code.
13356
bfe11752
DN
133572009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
13358
89e2438a
DN
13359 * nsfns.m (x_set_foreground_color, x_set_background_color)
13360 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
13361 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
13362 x_ prefix instead of ns_. Update references.
13363 (syms_of_nsfns): Add a FIXME comment.
13364
13365 * nsterm.m (x_set_cursor_type): New prototype.
13366 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
13367
bfe11752
DN
13368 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
13369 for Solaris instead of incorrectly providing Qutime and Qcutime.
13370
031da700
EZ
133712009-01-02 Eli Zaretskii <eliz@gnu.org>
13372
13373 * w32.c (process_times): Compute sum of utime and stime.
13374 (system_process_attributes): Add Qtime to the alist.
13375
13376 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
13377 and add them to the alist.
13378
13379 * process.c (top level) <Qtime, Qctime>: New variables.
13380 (syms_of_process): staticpro them.
13381 (Fsystem_process_attributes): Add their documentation to the doc
13382 string.
13383
13384 * process.h: Declare Qtime and Qctime.
13385
df23bf08
JR
133862009-01-02 Jason Rumney <jasonr@gnu.org>
13387
9acef61c 13388 * image.c (Qgobject): New symbol.
df23bf08
JR
13389 (syms_of_image): Initialize it.
13390 (init_svg_functions): Load some functions from gobject library.
13391
5bbdf7aa
DN
133922009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
13393
13394 * frame.c (make_terminal_frame): Remove redundant code and useless
13395 block.
13396
63136da6
AS
133972009-01-01 Andreas Schwab <schwab@suse.de>
13398
13399 * process.c (conv_sockaddr_to_lisp): Add workaround for
13400 getsockname bug on BSD.
13401
9ef69046
CY
134022009-01-01 Chong Yidong <cyd@stupidchicken.com>
13403
d6fafbe0
CY
13404 * xfns.c (x_create_tip_frame): Set border width of the X window.
13405
51d861de 13406 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 13407
f9c34147
JR
134082009-01-01 Jason Rumney <jasonr@gnu.org>
13409
9acef61c 13410 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
13411 Don't block input, as per earlier xterm.c changes.
13412
f5497e45
AR
134132008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
13414
13415 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
13416 (ns_appkit_version_int): New function.
13417 (x-server-version): Use ns_appkit_version_int and follow 21+
13418 convention of returning 3 integers.
13419
c19cab20
KH
134202008-12-30 Kenichi Handa <handa@m17n.org>
13421
13422 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
13423 (CHAR_SURROGATE_PAIR_P): New macro.
13424
13425 * font.h (struct font_driver): New member get_variation_glyphs.
13426
9acef61c 13427 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
13428 (Ffont_variation_glyphs): New function.
13429 (syms_of_font): Defsubr it.
13430
13431 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
13432 ftfont_variation_glyphs.
13433 (setup_otf_gstring): New function.
13434 (ftfont_drive_otf): Use it.
13435 (ftfont_shape_by_flt): Handle variation selector.
13436 (ftfont_variation_glyphs): New function.
13437
28cd591f
MR
134382008-12-30 Martin Rudalics <rudalics@gmx.at>
13439
13440 * frame.c (Vemacs_iconified): Remove.
13441
7f714baf
JR
134422008-12-30 Jason Rumney <jasonr@gnu.org>
13443
13444 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 13445 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 13446
9d2d22ab
CY
134472008-12-30 Chong Yidong <cyd@stupidchicken.com>
13448
13449 * indent.c (Fvertical_motion): Don't advance iterator if we have
13450 reseated to the desired position.
13451
13452 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
13453 checking for pos match.
13454
545312c2
KH
134552008-12-30 Kenichi Handa <handa@m17n.org>
13456
1ede3eb6
KH
13457 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
13458 just get the low 8-bit of the code.
13459
545312c2
KH
13460 * font.c (font_intern_prop): Validate str as multibyte.
13461
bd7bbf29
DN
134622008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
13463
31e0750e
DN
13464 * dispextern.h (struct face): Move lface and hash from the middle
13465 of bitfields.
13466
bd7bbf29
DN
13467 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
13468
b5672e7c
DN
134692008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
13470
13471 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
13472 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
13473 instead of intervals.h.
13474
d704470f
AS
134752008-12-26 Andreas Schwab <schwab@suse.de>
13476
13477 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
13478 cons.
13479
54b33868
MR
134802008-12-26 Martin Rudalics <rudalics@gmx.at>
13481
13482 * textprop.c (Qminibuffer_prompt): New variable.
13483 (syms_of_textprop): Initialize it.
13484 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
13485 in minibuffer-prompt face. (Bug#1662)
13486
40b615d6
JR
134872008-12-25 Jason Rumney <jasonr@gnu.org>
13488
13489 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
13490
baae5c2d
JR
134912008-12-24 Jason Rumney <jasonr@gnu.org>
13492
13493 * ralloc.c (r_alloc_reset_variable): New function.
13494
13495 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 13496 record of what points where. (Bug#716)
baae5c2d 13497
a9051c88
DN
134982008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
13499
13500 * minibuf.c (read_minibuf): Follow the non-interactive case when
13501 running as a daemon, before detaching.
13502
8b146312
AS
135032008-12-22 Andreas Schwab <schwab@suse.de>
13504
13505 * buffer.c (init_buffer): Use realloc instead of xrealloc.
13506 * gtkutil.c (free_widget_value): Use xfree instead of free.
13507
56f2de10
MR
135082008-12-22 Martin Rudalics <rudalics@gmx.at>
13509
13510 * frame.c (delete_frame): New function derived from
13511 Fdelete_frame to handle Qnoelisp value for FORCE argument.
13512 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
13513 (Fdelete_frame): Call delete_frame. Remove line from doc-string
13514 saying that FORCE non-nil doesn't run `delete-frame-functions'.
13515 * frame.h: Extern delete_frame.
13516 * window.c (window_loop):
13517 * terminal.c (delete_terminal):
13518 * xterm.c (x_connection_closed):
13519 * xfns.c (Fx_hide_tip):
9acef61c 13520 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 13521
1fc200d6
JR
135222008-12-21 Jason Rumney <jasonr@gnu.org>
13523
13524 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
13525 when character maps to .notdef character.
13526
5e252df2
SM
135272008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
13528
13529 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
13530
99b72cc4
JR
135312008-12-20 Jason Rumney <jasonr@gnu.org>
13532
13533 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 13534 a graphical frame on Windows. (Bug#1325)
99b72cc4 13535
acc49a52
JD
135362008-12-20 Jan Djärv <jan.h.d@swipnet.se>
13537
13538 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
13539
6ea15123
CY
135402008-12-20 Chong Yidong <cyd@stupidchicken.com>
13541
13542 * minibuf.c (Fread_buffer): Doc fix.
13543
b2dab6c8
JR
135442008-12-20 Jason Rumney <jasonr@gnu.org>
13545
54ea0c87 13546 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 13547 server name in UNC paths. (Bug#719)
54ea0c87 13548
b2dab6c8 13549 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 13550 charbuf. (Bug#1035)
b2dab6c8 13551
6d1921be
DN
135522008-12-19 Daniel Engeler <engeler@gmail.com>
13553
13554 * sysdep.c (serial_configure): Fix typo.
13555
53934c98
DN
135562008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
13557
13558 * sysdep.c: Include alloca.h.
f4f634e8
DN
13559 (system_process_attributes): Add implementation for Solaris.
13560
13561 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 13562
06e111a6
DN
135632008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
13564
13565 Reorganize implementation of Flist_system_processes and
13566 Fsystem_process_attributes. No functional changes.
13567 * process.c: Don't #include pwd.h, grp.h and limits.h.
13568 (Flist_system_processes): Just call list_system_processes.
13569 (Fsystem_process_attributes): Just call system_process_attributes.
13570 (procfs_list_system_processes, time_from_jiffies)
13571 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
13572 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
13573
13574 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
13575 (list_system_processes): Rename from
13576 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
13577 Provide a do nothing implementation.
13578 (system_process_attributes): Rename from
13579 procfs_list_system_processes.
13580 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 13581 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
13582
13583 * w32.c (list_system_processes): Rename from
13584 w32_list_system_processes.
13585 (system_process_attributes): Rename from
13586 w32_system_process_attributes.
13587
13588 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
13589
13590 * process.h (w32_list_system_processes)
13591 (w32_system_process_attributes): Remove.
362654a6
JB
13592 (list_system_processes, system_process_attributes):
13593 New prototypes.
06e111a6 13594
6a705b23
KH
135952008-12-19 Kenichi Handa <handa@m17n.org>
13596
13597 * xfont.c (xfont_decode_coding_xlfd): New function.
13598 (xfont_encode_coding_xlfd): New function.
13599 (xfont_list_pattern): Decode XLFD by iso-8859-1.
13600 (xfont_list): Decode and encode XLFD by iso-8859-1.
13601 (xfont_match): Likewise.
13602 (xfont_list_family): Likewise.
13603 (xfont_open): Likewise.
13604
d66c0241 13605 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
13606 names are utf-8.
13607
d66c0241 13608 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
13609 names are utf-8.
13610
5a130941
JD
136112008-12-18 Jan Djärv <jan.h.d@swipnet.se>
13612
13613 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
13614 changed.
bfd20325
JD
13615 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
13616 clicked on a detached tool bar button.
5a130941 13617
fd95644b
DN
136182008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
13619
13620 * emacs.c (main): Print and error and exit when no data is read
13621 from the pipe.
13622
e6eee6ae
JR
136232008-12-17 Jason Rumney <jasonr@gnu.org>
13624
13625 * w32font.c (w32font_has_char): Always return -1.
13626
a35dd56b
KH
136272008-12-16 Kenichi Handa <handa@m17n.org>
13628
13629 * font.c (font_open_entity): Fix previous change.
13630
0e3635c2
DN
136312008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
13632
13633 * process.c: Include <limits.h>.
13634
d4835507 136352008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
13636
13637 * font.c (font_update_drivers): Fix mistake in reconstructing the
13638 driver list.
13639
136402008-12-16 Chong Yidong <cyd@stupidchicken.com>
13641
13642 * font.c (font_clear_cache): Fix format of font cache data.
13643
e2cbc401
CY
136442008-12-15 Chong Yidong <cyd@stupidchicken.com>
13645
13646 * xftfont.c (xftfont_open): Free Xft font pattern if
13647 XftFontOpenPattern fails.
13648
13649 * xterm.c (x_free_frame_resources): Remove extraneous call to
13650 free_frame_faces.
13651
b131d535
CY
136522008-12-13 Chong Yidong <cyd@stupidchicken.com>
13653
13654 * xterm.c (x_delete_display): Move xim_close_dpy call to
13655 x_delete_terminal.
13656 (x_delete_terminal): Call xim_close_dpy.
13657
e6df5336
JR
136582008-12-13 Jason Rumney <jasonr@gnu.org>
13659
13660 * w32font.c (intern_font_name): New function.
13661 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
13662 (w32font_open_internal, Fx_select_font): Decode font name.
13663 (fill_in_logfont, list_all_matching_fonts): Encode font name.
13664
13665 * w32font.h (intern_font_name): Declare new function.
13666
13667 * w32uniscribe.c (add_opentype_font_name_to_list):
13668 Use intern_font_name.
13669
20d68145
CY
136702008-12-13 Chong Yidong <cyd@stupidchicken.com>
13671
9f2554de
CY
13672 * frame.c (Fdelete_frame): Call free_font_driver_list.
13673
3d9bec9a
CY
13674 * font.c (free_font_driver_list): Implement missing function.
13675
20d68145
CY
13676 * w32term.c (w32_term_init): Don't initialize the image cache
13677 here; it will be done in init_frame_faces.
13678
13679 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
bba3e508
SM
13680 (struct x_display_info): Remove unused member null_pixel.
13681 New member xim_callback_data.
20d68145
CY
13682
13683 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
13684 (xim_initialize): Save pointer to callback function data.
13685 (xim_close_dpy): Free callback function data. Call XCloseIM,
13686 reverting 2008-11-04 change by David Smith.
13687 (x_term_init): Don't initialize the image cache here; it will be
13688 done in init_frame_faces. Remove ancient "null_pixel" cruft.
13689 (x_delete_display): Free x_dnd_atoms member.
13690
96f9306b
KH
136912008-12-13 Kenichi Handa <handa@m17n.org>
13692
ef1b0ba7 13693 * font.c (font_rescale_ratio): Move from xfaces.c.
6dec9044 13694 Argument type changed. Handle a font-spec too.
96f9306b 13695 (font_score): Check Vface_font_rescale_alist.
6dec9044 13696 (font_open_entity): Likewise. (Bug#1547)
96f9306b 13697
ef1b0ba7 13698 * xfaces.c (font_rescale_ratio): Move to font.c.
96f9306b 13699
8d5b4964
CY
137002008-12-13 Chong Yidong <cyd@stupidchicken.com>
13701
13702 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
13703
e6df5336
JR
137042008-12-12 Jason Rumney <jasonr@gnu.org>
13705
bba3e508
SM
13706 * w32fns.c (x_display_info_for_name, Fx_open_connection):
13707 Set Vwindow_system_version to the real w32 major version.
e6df5336 13708
97c6058a
DN
137092008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
13710
13711 * term.c (init_tty): Move setting the terminal name before the
13712 potential user: maybe_fatal.
13713
ec4e88d7
CY
137142008-12-11 Chong Yidong <cyd@stupidchicken.com>
13715
ef1b0ba7 13716 * term.c (tty_free_frame_resources): Rename from delete_tty_output;
d4835507 13717 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 13718
b4233ec9
JR
137192008-12-11 Jason Rumney <jasonr@gnu.org>
13720
8ec71e23 13721 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 13722 SYMBOL_CHARSET. (Bug#547)
8ec71e23 13723
b4233ec9 13724 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 13725 size for surrogates. (Bug#1096, bug#872)
b4233ec9 13726
011a0143
JB
137272008-12-11 Juanma Barranquero <lekktu@gmail.com>
13728
13729 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
13730
3c309f34
JB
137312008-12-11 Juanma Barranquero <lekktu@gmail.com>
13732
13733 * process.c (Fsystem_process_attributes, syms_of_process):
13734 Fix typo in name of Ssystem_process_attributes.
13735 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
13736
fedc6ab5
JB
137372008-12-11 Juanma Barranquero <lekktu@gmail.com>
13738
13739 * syntax.c (Fmodify_syntax_entry): Doc fix.
13740
ba3de0e8
JB
137412008-12-10 Juanma Barranquero <lekktu@gmail.com>
13742
13743 * font.c (Ffont_spec): Move usage to end of docstring.
13744
174f1c74
JR
137452008-12-10 Jason Rumney <jasonr@gnu.org>
13746
13747 * w32font.c (Qcham): New symbol.
13748 (font_supported_scripts): Add cham, and comments for other new
13749 scripts in bitfield from OpenType spec.
9d32f818
JR
13750 (add_font_entity_to_list): Limit unicode-sip fonts to those that
13751 contain characters beyond the bmp.
174f1c74 13752
7b649478
KH
137532008-12-10 Kenichi Handa <handa@m17n.org>
13754
13755 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 13756 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
13757 Qunicode_sip.
13758
2133e2d1
JB
137592008-12-10 Juanma Barranquero <lekktu@gmail.com>
13760
13761 * coding.c (QCdefault_char): Rename from QCdefalut_char.
13762 (Fcoding_system_put): Use QCdefault_char.
13763 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
13764
9af886ee
CY
137652008-12-09 Chong Yidong <cyd@stupidchicken.com>
13766
74d819eb
CY
13767 * xftfont.c (syms_of_xftfont): Fix typo.
13768
4ccfa1c0 13769 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 13770
7c19d3ae
DN
137712008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
13772
13773 * emacs.c (main): Close daemon_pipe on exec.
13774
567826bb
CY
137752008-12-08 Chong Yidong <cyd@stupidchicken.com>
13776
13777 * termchar.h (struct tty): New members termcap_term_buffer and
13778 termcap_strings_buffer.
13779
13780 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 13781 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
13782 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
13783 All callers changed.
13784 (init_tty): Store termcap data and string buffers in new struct
13785 tty members termcap_term_buffer and termcap_strings_buffer.
13786 (delete_tty): Free them.
4ccfa1c0 13787 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 13788
aa96c42b
SZ
137892008-12-07 Seiji Zenitani <zenitani@mac.com>
13790
13791 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 13792 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 13793
b7e1d896
CY
137942008-12-06 Chong Yidong <cyd@stupidchicken.com>
13795
13796 * coding.c (make_conversion_work_buffer): Disable buffer
13797 modification hooks in the work buffer.
13798
b5ec91a5
EZ
137992008-12-05 Eli Zaretskii <eliz@gnu.org>
13800
13801 * process.c (procfs_system_process_attributes): If `nread' has a
13802 negative value, assign zero to it.
13803
a5d2a52b
CY
138042008-12-05 Chong Yidong <cyd@stupidchicken.com>
13805
68c5540b 13806 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 13807
7bf1bb21
KH
138082008-12-05 Kenichi Handa <handa@m17n.org>
13809
13810 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
13811 second character is a combining character.
13812
2fdc7d00
EZ
138132008-12-05 Eli Zaretskii <eliz@gnu.org>
13814
13815 * process.c (procfs_system_process_attributes): Don't use cmd,
13816 cmdsize, and q without initializing them first.
13817
bf6bfba8
JR
138182008-12-04 Jason Rumney <jasonr@gnu.org>
13819
13820 * w32font.c (w32font_draw): Initialize orig_clip before getting
13821 it, and delete it when finished.
13822
a3b1a468
DN
138232008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
13824
13825 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
13826 case when running as a daemon before detaching.
13827
8b8be8eb
JB
138282008-12-03 Juanma Barranquero <lekktu@gmail.com>
13829
805f2638 13830 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 13831
b1bde622
KH
138322008-12-03 Kenichi Handa <handa@m17n.org>
13833
e500c47d
KH
13834 * font.c (font_at): Set `multibyte' at first.
13835
ca516334
KH
13836 * coding.c (decode_coding_charset): Check type of an element of
13837 vector VALIDS.
7bf1bb21 13838 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 13839
4ccfa1c0 13840 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
13841 (font_for_char): Likewise.
13842
1e5ecd37
CY
138432008-12-03 Chong Yidong <cyd@stupidchicken.com>
13844
d5b01609 13845 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
13846 (font_update_lface): Handle fonts with corrupted size specs,
13847 i.e. non-int and non-float.
d5b01609 13848
11e3a6e4 13849 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 13850 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 13851 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 13852
ab06788b
CY
13853 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
13854
1e5ecd37 13855 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 13856 underline_minimum_offset for underline position.
1e5ecd37 13857
63c125ab
DN
138582008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
13859
13860 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
13861
13862 * character.c (c_string_width): Specify the type for LEN.
13863
3a8406e1
KH
138642008-12-03 Kenichi Handa <handa@m17n.org>
13865
4ccfa1c0 13866 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 13867 (decode_coding_utf_8): Likewise.
4ccfa1c0 13868 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 13869 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 13870
651df7d9
CY
138712008-12-02 Chong Yidong <cyd@stupidchicken.com>
13872
13873 * keyboard.c (make_lispy_position): Only use PT if the selected
13874 window is current.
13875
1f625c6c
AS
138762008-12-02 Andreas Schwab <schwab@suse.de>
13877
f7741ce9
AS
13878 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
13879
1f625c6c
AS
13880 * doprnt.c (doprnt1): Fix size of charbuf.
13881
92bc2678
CY
138822008-12-02 Chong Yidong <cyd@stupidchicken.com>
13883
13884 * keyboard.c (timer_check): Revert last change.
13885
93b9e8cc
JB
138862008-12-02 Juanma Barranquero <lekktu@gmail.com>
13887
13888 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
13889
fd7a37d5
JB
138902008-12-01 Juanma Barranquero <lekktu@gmail.com>
13891
13892 * makefile.w32-in: Update dependencies.
13893 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
13894
c115043b
AS
138952008-12-01 Andreas Schwab <schwab@suse.de>
13896
13897 * font.c (register_font_driver): Use xmalloc.
13898 (font_put_frame_data): Likewise.
13899
f5668d2a
CY
139002008-12-01 Chong Yidong <cyd@stupidchicken.com>
13901
860d96be
CY
13902 * xfaces.c (realize_x_face): Make abort condition clearer.
13903
f5668d2a
CY
13904 * gtkutil.c (update_frame_tool_bar): Initialize variable.
13905
379c17e7
CY
139062008-11-30 Chong Yidong <cyd@stupidchicken.com>
13907
13908 * keyboard.c (timer_check): After a timer runs, ensure that the
13909 selected window's buffer is current.
13910
35f36d65
JB
139112008-11-30 Juanma Barranquero <lekktu@gmail.com>
13912
f952c61c
JB
13913 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
13914 It was accidentally restored by the Unicode merge.
13915
35f36d65
JB
13916 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
13917
b23077df
JB
139182008-11-29 Juanma Barranquero <lekktu@gmail.com>
13919
13920 * w32proc.c: Include "coding.h".
13921 (Fw32_short_file_name): Encode filename passed to Windows API.
13922 (Fw32_long_file_name): Encode filename passed to Windows API and
13923 decode back the result. (Bug#1433)
13924
b8ebe9dd
KH
139252008-11-29 Kenichi Handa <handa@m17n.org>
13926
8cc53f96
KH
13927 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
13928 not before accessing it.
13929
b8ebe9dd
KH
13930 * charset.c (Fdefine_charset_internal): After calculating
13931 min_char, max_char, and fastmap, copy the charset structure again.
13932 (encode_char): Fix the previous change.
13933
59bc82c0
SZ
139342008-11-28 Seiji Zenitani <zenitani@mac.com>
13935
13936 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
13937
13938 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
13939
13940 * nsterm.m (x_set_frame_alpha): New function.
13941
32247e3d
EZ
139422008-11-27 Eli Zaretskii <eliz@gnu.org>
13943
13944 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
13945
b003e5ff
JB
139462008-11-27 Juanma Barranquero <lekktu@gmail.com>
13947
13948 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
13949 pointer to check_face_name.
13950
708550f5
KH
139512008-11-27 Kenichi Handa <handa@m17n.org>
13952
13953 * category.h (SET_CATEGORY_SET): Call set_category_set.
13954 (set_category_set): Extern it.
13955
13956 * category.c (hash_get_category_set): New function.
bba3e508 13957 (Fmodify_category_entry): Adjust for the change of
708550f5
KH
13958 char_table_ref_and_range. Call hash_get_category_set to get a
13959 category set to store in the table.
13960
13961 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
13962 Funify_charset.
13963
2ae37cf0 13964 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
13965 (DECODE_CHAR): Check if the decoder vector is ready.
13966 (ENCODE_CHAR): Check if the encoder char-table is ready.
13967 (maybe_unify_char): Extern it.
13968
13969 * charset.c (Vchar_unified_charset_table): Delete it.
13970 (inhibit_load_charset_map): New variable.
13971 (temp_charset_work): New variable.
13972 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
13973 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
13974 New macros.
bba3e508
SM
13975 (load_charset_map): Meaning of control_flag changed.
13976 If inhibit_load_charset_map is nonzero, setup a table in
708550f5
KH
13977 temp_charset_work.
13978 (load_charset): New argument control_flag.
13979 (map_charset_for_dump): New function.
13980 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
13981 map_charset_for_dump.
13982 (Fdefine_charset_internal): If the charset method is MAP, load
13983 mapping tables by calling load_charset.
13984 (Funify_charset): Don't load a mapping table but directly set
13985 Vchar_unify_table.
13986 (maybe_unify_char): New function.
13987 (decode_char): Don't handle the deleted method MAP_DEFERRED.
13988 Handle the case of inhibit_load_charset_map being nonzero.
13989 (encode_char): Don't handle the deleted method MAP_DEFERRED.
13990 Handle the case of inhibit_load_charset_map being nonzero.
13991 (Fclear_charset_maps): Just free temp_charset_work.
13992 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
13993 variable.
13994
bba3e508 13995 * chartab.c (sub_char_table_ref_and_range): Adjust for the
708550f5
KH
13996 change of char_table_ref_and_range.
13997 (char_table_ref_and_range): Change the meaning of argument FROM
13998 and TO. Now the caller must provide initial values for *FROM
13999 and *TO.
14000
bba3e508 14001 * fontset.c (fontset_add): Adjust for the change of
708550f5
KH
14002 char_table_ref_and_range.
14003 (fontset_get_font_group): Likewise.
14004 (Ffontset_info): Likewise.
14005
bba3e508 14006 * keymap.c (describe_vector): Adjust for the change of
708550f5
KH
14007 char_table_ref_and_range. For char-table, put boundary between
14008 non-ASCII and 8-bit characters.
14009
14010 * print.c (print_object): For bool-vector, delete unnecessary
14011 check of ASCII_BYTE_P.
14012
9196133b
JR
140132008-11-26 Jason Rumney <jasonr@gnu.org>
14014
14015 * w32font.c (w32font_open_internal): Don't include external
9acef61c 14016 leading in font height. (Bug#879)
9196133b 14017
9f688acf
GM
140182008-11-26 Glenn Morris <rgm@gnu.org>
14019
14020 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
14021 redefinition with ifdef. (Bug#1383)
14022
90d19aff
AR
140232008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
14024
14025 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
14026
4ccfa1c0 140272008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
14028
14029 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
14030 New EmacsView methods.
14031 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
14032 Fixes bug #1048,1357,1414.
14033
140342008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
14035
14036 Fix bug #1362.
14037 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
14038 is not an indexed color.
14039 * nsterm.m (free_indexed_color): Add argument checking.
14040 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
14041
e7d5ecb3
CY
140422008-11-24 Chong Yidong <cyd@stupidchicken.com>
14043
14044 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
14045 Document confirm-after-completion value for
14046 minibuffer-completion-confirm.
14047
c285743c
JR
140482008-11-24 Jason Rumney <jasonr@gnu.org>
14049
14050 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
14051 warning.
14052
b0857706
JR
140532008-11-23 Jason Rumney <jasonr@gnu.org>
14054
14055 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
14056 restored before returning.
14057
14058 * w32font.c (check_face_name): New function.
14059 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 14060 fonts. (Bug#642)
b0857706 14061
ee50ff07
MR
140622008-11-22 Martin Rudalics <rudalics@gmx.at>
14063
14064 * buffer.c (Fswitch_to_buffer): Reword and mention new option
14065 confirm-nonexistent-file-or-buffer in doc-string.
14066
b8ff72fa
SM
140672008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
14068
14069 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
14070 Fix copy/paste typo. Add checks.
14071
cee53ed4
KH
140722008-11-21 Kenichi Handa <handa@m17n.org>
14073
14074 * coding.c (detect_coding_iso_2022): Reject invalid composition
14075 sequence.
14076 (DECODE_COMPOSITION_START): If the current source is the last
14077 block, and the current composition doesn't end, regard this
14078 sequence as invalid.
14079 (decode_coding_iso_2022): Handle invalid composition sequence.
14080
f6ef1e65
MR
140812008-11-20 Martin Rudalics <rudalics@gmx.at>
14082
14083 * window.c (coordinates_in_window): Don't return
14084 ON_VERTICAL_BORDER for the rightmost position of a mode/header
14085 line when the window is not the rightmost one. (Bug#1372)
14086
e08b1705
MR
140872008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
14088
14089 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
14090
ad98e89f
EZ
140912008-11-15 Eli Zaretskii <eliz@gnu.org>
14092
14093 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
14094 and bright_bg if noninteractive is non-zero.
14095
fb098a4b
CY
140962008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14097
14098 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
14099 x_draw_glyph_string_background.
14100
14101 * w32term.c (x_draw_glyph_string): Likewise.
14102
ce952b6e
CY
141032008-11-15 Chong Yidong <cyd@stupidchicken.com>
14104
14105 * xterm.c (x_draw_glyph_string): Stop drawing the background of
14106 the next glyph string once past the overhang width.
14107
14108 * nsterm.m (ns_draw_glyph_string): Likewise.
14109
14110 * w32term.c (x_draw_glyph_string): Likewise.
14111
26ea7079
CY
141122008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
14113
14114 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
14115 double file close.
14116
1c33c906
MR
141172008-11-14 Martin Rudalics <rudalics@gmx.at>
14118
14119 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
14120 dedicated status of window before attempting to display another
14121 buffer in it.
14122
8fc29035
JB
141232008-11-14 Juanma Barranquero <lekktu@gmail.com>
14124
14125 * msdos.c (Fmsdos_long_file_names):
14126 (syms_of_msdos) <dos-unsupported-char-glyph>:
14127 * dosfns.c (Fint86): Fix typos in docstrings.
14128
55fb4286
EZ
141292008-11-14 Eli Zaretskii <eliz@gnu.org>
14130
14131 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
14132
3fda0315
KY
141332008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
14134
14135 * puresize.h (BASE_PURESIZE): Increase to 1260000.
14136
7e849c17
CY
141372008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
14138
14139 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
14140
14141 * frame.h: Negative alpha means "don't touch".
14142
14143 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
14144
14145 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
14146
b9fd67bd
DN
141472008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
14148
14149 * hftctl.c:
14150 * chpdef.h:
14151 * acldef.h: Remove files used only for systems no longer supported.
14152
14153 * Makefile.in: Fix .o alphabetical ordering.
14154 (hftctl.o): Remove dependency, file removed.
14155 (keymap.o, print.o): Depend on charset.h.
14156
d5998e03
KH
141572008-11-10 Kenichi Handa <handa@m17n.org>
14158
2ae37cf0 14159 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 14160
be70e183
CY
141612008-11-08 Chong Yidong <cyd@stupidchicken.com>
14162
14163 * dired.c (file_name_completion): If completion_ignore_case is
14164 enabled, ignore case when checking completion-regexp-list.
14165
7cf94eac
EZ
141662008-11-08 Eli Zaretskii <eliz@gnu.org>
14167
14168 * vm-limit.c (get_lim_data): Fix last change.
14169
ee107a89
KH
141702008-11-08 Kenichi Handa <handa@m17n.org>
14171
14172 * character.c (Fget_byte): New function.
14173 (syms_of_character): Defsubr Fget_byte.
14174
5fd15622
CY
141752008-11-07 Chong Yidong <cyd@stupidchicken.com>
14176
14177 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
14178 cursor position is valid after scrolling.
14179
13d62fad
JB
141802008-11-06 Juanma Barranquero <lekktu@gmail.com>
14181
14182 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
14183
a1dd2936
GM
141842008-11-06 Glenn Morris <rgm@gnu.org>
14185
14186 * xterm.c (handle_one_xevent): Don't let popup menus cause
14187 mouse-autoselect-window related window switching. (Bug#1261)
14188
860cd236
CY
141892008-11-04 David Smith <davidsmith@acm.org> (tiny change)
14190
14191 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
14192
653a3150
AS
141932008-11-04 Andreas Schwab <schwab@suse.de>
14194
14195 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
14196
870f5cac
CY
141972008-11-03 Chong Yidong <cyd@stupidchicken.com>
14198
14199 * xfns.c (Fx_wm_set_size_hint): New function.
14200
1e02f3cb
MR
142012008-11-03 Martin Rudalics <rudalics@gmx.at>
14202
14203 * textprop.c (Fprevious_single_char_property_change): Return 0
14204 when there's no change in a string. (Bug#1301)
14205
e630dfc6
MR
142062008-11-02 Martin Rudalics <rudalics@gmx.at>
14207
14208 * frame.c (do_switch_frame): New argument NORECORD passed to
14209 Fselect_window.
14210 (Fselect_frame): New argument NORECORD passed to
14211 do_switch_frame.
14212 (Fset_frame_selected_window): New argument NORECORD passed to
14213 Fselect_frame.
14214 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
14215 in call of do_switch_frame.
14216 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
14217 Handle NORECORD argument in call of Fselect_frame.
14218 * lisp.h (do_switch_frame, Fselect_frame)
14219 (Fset_frame_selected_window): Adjust declarations.
14220 * window.c (select_frame_norecord): New function.
14221 (run_window_configuration_change_hook): Use it and call
14222 Fselect_frame with NORECORD set.
14223 (Fselect_window): Pass NORECORD to Fselect_frame.
14224 (Fset_window_configuration): Handle NORECORD argument in call of
14225 do_switch_frame.
14226 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
14227 Fset_frame_selected_window.
14228 * keyboard.c (command_loop_1): Handle NORECORD in call of
14229 Fselect_frame (currently ifdefd).
14230
9020b223
GM
142312008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
14232
14233 * emacs.c (USAGE2): Untabify.
14234
793ffee8
SM
142352008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
14236
14237 * composite.c (fill_gstring_header): Fix copy/paste typo.
14238
ab6d1131
MR
142392008-10-31 Martin Rudalics <rudalics@gmx.at>
14240
14241 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
14242 (Fother_window): Rename argument and rewrite doc-string.
14243 (select_window_norecord): Fix return value. (Bug#1276)
14244
601a9cf1
JB
142452008-10-30 Juanma Barranquero <lekktu@gmail.com>
14246
14247 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
14248 new frames overriding foreground for tooltips. Based on similar patch
14249 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
14250
813b0652
CY
142512008-10-29 Chong Yidong <cyd@stupidchicken.com>
14252
14253 * emacs.c (Fdaemon_initialized): Initialize nfd.
14254
4414f58f
MR
142552008-10-29 Martin Rudalics <rudalics@gmx.at>
14256
14257 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
14258 (Fwindow_text_height): Clarify doc-strings.
14259 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
14260 doc-string of window-scroll-functions.
14261
ecdcaa09
RS
142622008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
14263
14264 * category.c (syms_of_category): Fix typo in docstring.
14265
23fe745a
JB
142662008-10-28 Juanma Barranquero <lekktu@gmail.com>
14267
14268 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
14269 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
14270 Fix typos in docstrings.
14271
ff808935
DN
142722008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
14273
14274 * emacs.c (daemon_pipe): Make non-static.
14275 (IS_DAEMON): Move definition ...
14276 * lisp.h (IS_DAEMON): ... here.
14277 (daemon_pipe): Declare.
14278 (is_daemon): Remove.
14279 * dispnew.c (init_display): Use IS_DAEMON.
14280
fc012771
SM
142812008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
14282
14283 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
14284 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
14285
14286 * emacs.c (is_daemon): Remove.
14287 (main): Don't set is_daemon.
14288 (IS_DAEMON): New macro.
14289 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 14290 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
14291 parent exits.
14292 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
14293
d8bdbe6f
CY
142942008-10-27 Chong Yidong <cyd@stupidchicken.com>
14295
d1a072bf
CY
14296 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
14297 over-sized glyph, draw it with the default glyph width.
14298
e2e325aa
CY
14299 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
14300 glyph, draw it with the default glyph width.
14301
14302 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
14303 glyph, draw it with the default glyph width.
14304
d8bdbe6f
CY
14305 * xdisp.c (try_scrolling): When computing the distance from the
14306 scroll margin to PT, try moving some distance past the window
14307 bottom before giving up.
14308
7bfac547
MR
143092008-10-27 Martin Rudalics <rudalics@gmx.at>
14310
14311 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
14312 (Fset_window_buffer): Explain in doc-string that a window can be
14313 "strongly" dedicated to its buffer.
14314
4ff029f6
DN
143152008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
14316
14317 * emacs.c (daemon_name): New variable.
14318 (main): Deal with --daemon=SERVER_NAME.
14319 (Fdaemonp): Return a name if one was passed to --daemon.
14320
5790ef40
DN
143212008-10-26 Romain Francoise <romain@orebokech.com>
14322
f9bd0df9 14323 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
14324 (main): Create a pipe before forking, make the parent exit only after
14325 the child has closed its end of the pipe. Move closing the
14326 descriptors ...
14327 (Fdaemon_initialized): ... here. New function.
14328
f5385255
SM
143292008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
14330
4d632321
SM
14331 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
14332 the previous unoptimized table.
14333
f5385255
SM
14334 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
14335 the distinction between non-nil and non-t value of `dedicated'.
14336
6c56a0f3
CY
143372008-10-25 Chong Yidong <cyd@stupidchicken.com>
14338
14339 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 14340 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 14341
fec89261
MR
143422008-10-25 Martin Rudalics <rudalics@gmx.at>
14343
14344 * window.c (Fget_buffer_window, Fdelete_windows_on)
14345 (Freplace_buffer_in_windows): Make buffer argument optional and
14346 rename to buffer_or_name.
14347
34fcddd0
CY
143482008-10-24 Chong Yidong <cyd@stupidchicken.com>
14349
f5385255
SM
14350 * xdisp.c (handle_single_display_spec, handle_display_prop):
14351 Undo 2005-05-16 change.
34fcddd0
CY
14352 (handle_stop): Pop iterator if it's loaded with an empty string.
14353 (get_overlay_strings_1): Don't save iterator if it's loaded with
14354 an empty string (bug#1201).
14355
064766f2
KH
143562008-10-24 Kenichi Handa <handa@m17n.org>
14357
14358 * ftfont.c (ftfont_otf_features): Fix previous change.
14359 (ftfont_otf_capability): Check FeatureList.FeatureCount before
14360 calling ftfont_otf_features.
14361
f9bd0df9 143622008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
14363
14364 * font.c (font_match_p): Fix for the case that a vector of
14365 characters is in script-representative-chars.
14366
1dae9197
MA
143672008-10-24 Michael Albinus <michael.albinus@gmx.de>
14368
14369 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 14370 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
14371 (xd_read_queued_messages): Catch Qdbus_error from the macros.
14372 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 14373 macro. (Bug#1186)
1dae9197 14374
f9bd0df9 143752008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
14376
14377 * s/sol2-10.h: New file.
14378
878a4584
JB
143792008-10-23 Juanma Barranquero <lekktu@gmail.com>
14380
14381 * xdisp.c (fill_glyph_string): Fix typo in source (though the
14382 poor beast has survived 9+ years and the jump from xterm.c!).
14383
cd265ca6
MR
143842008-10-23 Martin Rudalics <rudalics@gmx.at>
14385
14386 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
14387 Reword doc-string.
f5385255 14388 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 14389
472a4dc9
JB
143902008-10-23 Juanma Barranquero <lekktu@gmail.com>
14391
14392 * character.c (syms_of_character) <script-representative-chars>:
14393 <unicode-category-table>: Doc fixes.
14394
159bd5a2
NF
143952008-10-23 Noah Friedman <friedman@splode.com>
14396
14397 * coding.c (make_conversion_work_buffer): Check that
14398 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
14399 Fget_buffer_create.
14400
49f9c344
KH
144012008-10-23 Kenichi Handa <handa@m17n.org>
14402
14403 * font.c (font_add_log): Check the values of extra properties.
14404
12bb3111
MR
144052008-10-22 Martin Rudalics <rudalics@gmx.at>
14406
14407 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
14408 Reword doc-string.
14409 (Fset_window_parameter): Use NILP.
14410 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 14411 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 14412
bbeb4e99
JB
144132008-10-22 Juanma Barranquero <lekktu@gmail.com>
14414
14415 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
14416
144172008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
14418
14419 * nsfns.m (ns_appkit_version): New function.
14420 (x-server-version): Use it.
14421 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
14422 (x-server-vendor): Don't check_ns().
14423
14424 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
14425
a9b555d3
JB
144262008-10-22 Juanma Barranquero <lekktu@gmail.com>
14427
14428 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
14429 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
14430
4626499f
KH
144312008-10-22 Kenichi Handa <handa@m17n.org>
14432
e3681952
KH
14433 * syntax.c (scan_words): Call word_boundary_p instead of comparing
14434 scripts.
14435
4626499f
KH
14436 * category.c (word_boundary_p): Check scripts instead of charset.
14437 Handle nil value in word-separating-categories and
14438 word-combining-categories.
14439 (syms_of_category): Fix docstrings of word-separating-categories
14440 and word-combining-categories.
14441
1560f91a
EZ
144422008-10-21 Eli Zaretskii <eliz@gnu.org>
14443
14444 * coding.c (Fencode_coding_region, Fdecode_coding_region)
14445 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
14446
f4668441
MR
144472008-10-21 Martin Rudalics <rudalics@gmx.at>
14448
14449 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
14450 Rename arg "buffer" to "buffer_or_name".
14451 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
14452 it optional.
14453 (no_switch_window): Remove since the return value is not used.
a9b555d3 14454 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
14455 Consider window as dedicated when Fwindow_dedicated_p returns a
14456 non-nil value.
14457 * lisp.h: Remove prototype for no_switch_window.
14458
fd75ddb2
JD
144592008-10-21 Jan Djärv <jan.h.d@swipnet.se>
14460
14461 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 14462 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 14463
07295713
KH
144642008-10-21 Kenichi Handa <handa@m17n.org>
14465
14466 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
14467 check Vlatin_extra_code_table.
14468
712adc82
EZ
144692008-10-20 Eli Zaretskii <eliz@gnu.org>
14470
14471 * fileio.c (Fset_file_modes): Doc fix.
14472
f549eb0b
MA
144732008-10-19 Michael Albinus <michael.albinus@gmx.de>
14474
14475 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
14476 in arrays.
14477
aac0c6e3
MR
144782008-10-19 Martin Rudalics <rudalics@gmx.at>
14479
14480 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
14481 Mention kill-buffer in doc-string.
14482 (Fset_window_buffer): Reinsert tem check removed in last commit.
14483 (Fenlarge_window, Fshrink_window): Have argument names and
14484 doc-string follow Elisp manual more closely.
14485
144862008-10-18 Eli Zaretskii <eliz@gnu.org>
14487
14488 * fileio.c (Fset_file_modes): Doc fix.
14489
144902008-10-18 Martin Rudalics <rudalics@gmx.at>
14491
14492 * window.c (Fwindow_width, Fset_window_start)
14493 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
14494 (Fdelete_windows_on, Freplace_buffer_in_windows):
14495 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
14496 (Fwindow_dedicated_p): Make window argument optional.
14497 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
14498 (Fset_window_buffer): Respect any non-nil dedicated value for
14499 window. Rename "buffer" argument to "buffer_or_name".
14500
145012008-10-18 Ulrich Mueller <ulm@gentoo.org>
14502
14503 * m/sh3.h: New file, machine description for SuperH.
14504
145052008-10-17 Martin Rudalics <rudalics@gmx.at>
14506
14507 * window.c (Fsplit_window): Rename arg horflag to horizontal.
14508
145092008-10-17 Kenichi Handa <handa@m17n.org>
14510
14511 * ftfont.c (ftfont_otf_features): Fix indexing
14512 gsub_gpos->FeatureList.Feature. Check the validity of indices.
14513
145142008-10-16 Magnus Henoch <mange@freemail.hu>
14515
14516 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
14517 (Fdbus_call_method_asynchronously): Ditto.
14518 This change makes C-h f display the argument list.
14519
145202008-10-16 Chong Yidong <cyd@stupidchicken.com>
14521
14522 * fileio.c (Fexpand_file_name): Doc fix.
14523
14524 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
14525 of :foreground and :background equivalent to unspecified (20.x
14526 compatibility).
14527
145282008-10-15 Eli Zaretskii <eliz@gnu.org>
14529
14530 * buffer.c (syms_of_buffer): Doc fix.
14531
145322008-10-14 Kenichi Handa <handa@m17n.org>
14533
14534 * font.c (font_clear_prop): When clearing font width, clear the
14535 average width field too.
14536
145372008-10-12 Andreas Schwab <schwab@suse.de>
14538
14539 * ftfont.c (ftfont_shape_by_flt): Make static.
14540 * ftfont.h (ftfont_shape_by_flt): Don't declare.
14541
14542 * font.c: Don't include <m17n-flt.h>.
14543
145442008-10-10 Eli Zaretskii <eliz@gnu.org>
14545
14546 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
14547
145482008-10-09 Eli Zaretskii <eliz@gnu.org>
14549
14550 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
14551 away code.
14552
145532008-10-09 Chong Yidong <cyd@stupidchicken.com>
14554
14555 * dispnew.c (update_text_area): Avoid looping due to large glyph
14556 overhangs (bug#1070).
14557
145582008-10-09 Kenichi Handa <handa@m17n.org>
14559
14560 * fontset.c (face_for_char): If face->fontset is negative, just
14561 return ascii_face.
14562
f5385255
SM
14563 * font.c (font_delete_unmatched): Fix previous change.
14564 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
14565
145662008-10-09 Martin Rudalics <rudalics@gmx.at>
14567
14568 * frame.c (Fraise_frame): On text-only terminals select frame in
14569 order to make it visible. (Bug#1061)
14570
145712008-10-08 Chong Yidong <cyd@stupidchicken.com>
14572
14573 * fontset.c (fontset_find_font): Check frame validity.
14574
145752008-10-07 Chong Yidong <cyd@stupidchicken.com>
14576
a9b555d3 14577 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
14578 (xg_display_close): Allow Emacs to close all displays (bug#985).
14579
145802008-10-06 Andreas Schwab <schwab@suse.de>
14581
f5385255 14582 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
14583
145842008-10-06 Chong Yidong <cyd@stupidchicken.com>
14585
f5385255 14586 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 14587
a9b555d3 14588 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
14589
14590 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
14591 during initialization.
14592
145932008-10-04 Eli Zaretskii <eliz@gnu.org>
14594
14595 * xdisp.c (redisplay_internal): If frame switched, redisplay the
14596 whole thing on MSDOS frames as well as on a TTY.
14597
14598 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
14599 well as for TTY.
14600 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
14601 well as on a TTY.
14602
14603 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
14604 as well as for TTY.
14605
14606 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
14607
14608 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
14609 MSDOS frames as well.
14610
146112008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
14612
14613 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
14614 correct arguments.
b71ac3dd 14615 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
14616
146172008-10-03 Glenn Morris <rgm@gnu.org>
14618
14619 * emacs.c (USAGE1): Add --daemon.
14620
146212008-10-02 Eli Zaretskii <eliz@gnu.org>
14622
14623 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
14624 100, so it's in percents as advertised.
14625
146262008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
14627
14628 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
14629 (ns_output.current_cursor, ns_output.desired_cursor)
14630 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
14631 (FRAME_NEW_CURSOR_COLOR): Remove.
14632
14633 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 14634 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
14635 enumeration (HOLLOW_BOX_CURSOR, etc.).
14636
14637 * nsterm.m (ns_frame_rehighlight): Remove commented code.
14638 (draw_window_cursor): Simplify code.
f5385255
SM
14639 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
14640 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 14641 updates manually.
a9b555d3
JB
14642 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
14643 Use core Emacs cursor types.
aac0c6e3 14644
b8ff72fa 14645 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
14646
146472008-10-02 Martin Rudalics <rudalics@gmx.at>
14648
14649 * process.c (Faccept_process_output): Fix doc-string.
14650
146512008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
14652
14653 * gmalloc.c (__sbrk): Also define for uClibc.
14654
14655 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
14656 for uClibc.
14657
146582008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
14659
14660 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
14661 styles.
14662 (nsfont_open): Reenable the cache.
14663
146642008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
14665
14666 * font.c (font_matching_entity): Reflect ATTRS in font selection.
14667 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
14668
146692008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
14670
14671 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
14672 a suspended terminal.
14673
146742008-09-30 Michael Albinus <michael.albinus@gmx.de>
14675
14676 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
14677
146782008-09-30 Eli Zaretskii <eliz@gnu.org>
14679
14680 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
14681
146822008-09-30 Chong Yidong <cyd@stupidchicken.com>
14683
14684 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
14685 in a continued line coincides with a line beginning.
14686
146872008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
14688
14689 * nsfont.m (nsfont_trait_distance): Fix bug.
14690 (nsfont_list): Return a list rather than a vector (syncs with Handa
14691 changes of 2008-05-14).
14692 (nsfont_open): Improve logging.
14693
146942008-09-29 Andreas Schwab <schwab@suse.de>
14695
14696 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
14697
146982008-09-28 Martin Rudalics <rudalics@gmx.at>
14699
14700 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
14701 name as char-resolve-modifiers.
14702 Reported by: Markus Triska <markus.triska@gmx.at>
14703
147042008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
14705
14706 * dispnew.c (init_display): Return earlier when running as a daemon.
14707
147082008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
14709
14710 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
14711
147122008-09-27 Eli Zaretskii <eliz@gnu.org>
14713
14714 * composite.c (Fcomposition_get_gstring)
14715 (Fcompose_region_internal, Fcompose_string_internal)
14716 (Ffind_composition_internal): Doc fix.
14717 (syms_of_composite) <compose-chars-after-function>: Doc fix.
14718 (syms_of_composite) <auto-composition-function>: Doc fix.
14719 (syms_of_composite) <composition-function-table>: Doc fix.
14720
147212008-09-25 Chong Yidong <cyd@stupidchicken.com>
14722
14723 * search.c (wordify): New argument for lax word-ends.
14724 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
14725
147262008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
14727
14728 * lisp.h (is_daemon): Declare.
14729 * dispnew.c (init_display): Do not try to initialize the terminal
14730 when running as a daemon.
14731
147322008-09-22 Chong Yidong <cyd@stupidchicken.com>
14733
14734 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
14735 x_display_pixel_height.
14736
147372008-09-22 Martin Rudalics <rudalics@gmx.at>
14738
14739 * undo.c (record_point): Don't call Fundo_boundary for first
14740 change. (Bug#731)
14741
147422008-09-22 Juanma Barranquero <lekktu@gmail.com>
14743
14744 * emacs.c (Fdaemonp): Doc fix.
14745
147462008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
14747
14748 * emacs.c (main): Place #ifdef in the proper place.
14749
147502008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
14751
14752 * emacs.c (standard_args): Add --daemon.
14753 (main): Disconnect from the terminal when --daemon is passed.
14754 (is_daemon): New variable.
14755 (Fdaemonp): New function.
14756 (syms_of_emacs): Defsubr it.
14757
147582008-09-20 Chong Yidong <cyd@stupidchicken.com>
14759
14760 * xdisp.c (get_next_display_element): Handle string display
14761 correctly when checking for the end of a box run.
14762
147632008-09-20 Glenn Morris <rgm@gnu.org>
14764
14765 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
14766 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
14767 (Frename_file): Avoid copying to trash if a rename involves
14768 a delete. (Bug#964).
14769
147702008-09-20 Eli Zaretskii <eliz@gnu.org>
14771
14772 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
14773 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
14774 frames as well as termcap frames.
14775 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
14776 get_named_tty.
14777
147782008-09-19 Eli Zaretskii <eliz@gnu.org>
14779
14780 * process.c (procfs_system_process_attributes): Fix cmdline in
14781 case /proc/PID/cmdline is empty.
14782
14783 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
14784 x_display_pixel_height.
14785
147862008-09-19 Juanma Barranquero <lekktu@gmail.com>
14787
14788 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
14789
14790 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
14791 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
14792
147932008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
14794
14795 * dispextern.h (struct it): Move line_wrap away from the middle of
14796 bitfields. Move voffset in struct iterator_stack_entry after the
14797 bitfields. Move tab_width near after another short.
14798
147992008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
14800
14801 * frame.h (struct frame): Move alpha from the middle of bitfields.
14802
14803 * window.h (struct window): Move frozen_window_start_p after the
14804 rest of the bitfields to reduce padding.
14805
148062008-09-18 Chong Yidong <cyd@stupidchicken.com>
14807
14808 * xterm.h (x_display_info): Remove `height' and `width' members.
14809
14810 * nsterm.h (ns_display_info): Remove `height' and `width' members.
14811
14812 * w32term.h (w32_display_info): Remove `height', `width',
14813 `height_in', and `width_in' members.
14814
b8ff72fa
SM
14815 * xterm.c (x_display_pixel_height, x_display_pixel_width):
14816 New functions.
aac0c6e3
MR
14817 (x_calc_absolute_position): Use them.
14818 (x_term_init): Omit removed `height' and `width' members.
14819
b8ff72fa
SM
14820 * w32term.c (x_display_pixel_height, x_display_pixel_width):
14821 New functions.
aac0c6e3
MR
14822 (w32_read_socket, x_calc_absolute_position): Use them.
14823 (w32_initialize_display_info, w32_term_init): Omit removed members
14824 of w32_display_info.
14825
b8ff72fa
SM
14826 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
14827 New functions.
14828 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 14829
b8ff72fa
SM
14830 * xterm.c (x_display_pixel_height, x_display_pixel_width):
14831 New functions.
aac0c6e3
MR
14832 (x_calc_absolute_position): Use them.
14833 (x_term_init): Omit removed `height' and `width' members.
14834
14835 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
14836 (compute_tip_xy):
14837 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
14838 * xmenu.c (menu_position_func): Use x_display_pixel_height and
14839 x_display_pixel_width.
14840
148412008-09-18 Kenichi Handa <handa@m17n.org>
14842
14843 * composite.c (fill_gstring_header): Don't check FROM and TO here.
14844 (composition_compute_stop_pos): Fix handling of static composition.
14845 (Fcomposition_get_gstring): Check FROM and TO at first.
14846
148472008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
14848
46e722a9 14849 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
14850 mixup (YAILOM).
14851
148522008-09-17 Chong Yidong <cyd@stupidchicken.com>
14853
14854 * indent.c (Fvertical_motion): Use position reported by iterator
14855 instead of PT for determining screen motion (bug#943).
14856
148572008-09-17 Romain Francoise <romain@orebokech.com>
14858
14859 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
14860
148612008-09-17 Kenichi Handa <handa@m17n.org>
14862
14863 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
14864
14865 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
14866 if necessary.
14867
148682008-09-16 Kenichi Handa <handa@m17n.org>
14869
14870 * coding.c (make_conversion_work_buffer): Avoid calling
14871 Fget_buffer_create if it is not necessary.
14872
148732008-09-15 Martin Rudalics <rudalics@gmx.at>
14874
14875 * window.c (Fselect_window): Don't update window_select_count and
14876 use_time when norecord is not nil.
14877
148782008-09-14 Kenichi Handa <handa@m17n.org>
14879
14880 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
14881 specpdl_ptr.
14882
148832008-09-12 Kenichi Handa <handa@m17n.org>
14884
14885 * indent.c (scan_for_column): Don't handle automatic composition
14886 if the current buffer is not associated with a window.
14887
14888 * composite.c (composition_reseat_it): If the current buffer is
14889 not associated with a window, ignore the automatic composition.
14890 (find_automatic_composition): Likewise.
14891
148922008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
14893
14894 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
14895 (Fgpm_mouse_stop): Use it.
14896 * termhooks.h (close_gpm): Declare.
14897 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
14898 connection if Gpm_GetEvent fails.
14899
14900 * window.c (set_window_buffer): Always preserve current-buffer.
14901
149022008-09-12 Glenn Morris <rgm@gnu.org>
14903
14904 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
14905
149062008-09-11 Glenn Morris <rgm@gnu.org>
14907
14908 * charset.c (charset-map-path): Doc fix.
14909
149102008-09-10 Kenichi Handa <handa@m17n.org>
14911
14912 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
14913
14914 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
14915 compose a grapheme cluster with the preceding base glyph.
14916
14917 * composite.c (composition_compute_stop_pos): Fix previous change.
14918 Reset cmp_it->id to -1 at first.
14919
149202008-09-10 Glenn Morris <rgm@gnu.org>
14921
14922 * Makefile.in (character.o, chartab.o): Fix config.h typo.
14923
149242008-09-09 Chong Yidong <cyd@stupidchicken.com>
14925
14926 * keyboard.c (read_key_sequence): Reapply translation maps when
14927 switching keyboards.
14928
149292008-09-09 Kenichi Handa <handa@m17n.org>
14930
14931 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
14932 characters.
14933
14934 * composite.c (FORWARD_CHAR): Fix calculation
14935 of (POSITION).pos_byte.
14936 (composition_compute_stop_pos): Limit the search of composition to
14937 at most 500 characters ahead. If we reach the limit or find a
14938 newline, set cmp_it->ch to -2 and return 0.
14939 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
14940
149412008-09-08 Kenichi Handa <handa@m17n.org>
14942
14943 * indent.c (Fvertical_motion): Be sure to set
14944 it_overshoot_expected if it.cmp_it.id is non-negative.
14945
149462008-09-07 Andreas Schwab <schwab@suse.de>
14947
14948 * callproc.c (Fcall_process): Don't hold references to string data
14949 across garbage collection. Move initialisation of new_argv down
14950 to avoid compiler bug.
14951
149522008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
14953
14954 * process.c (Fsystem_process_attributes): Doc fix.
14955
149562008-09-07 Chong Yidong <cyd@stupidchicken.com>
14957
14958 * callproc.c (Fcall_process): Canonicalize current directory name.
14959
14960 * xdisp.c (move_it_to): When moving by vpos, ensure that the
14961 iterator advances to the next line if the current line ends in a
14962 continued tab.
14963
149642008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
14965
14966 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
14967 member to point to cmp_from.
14968
14969 * xdisp.c: Doc fix for references to gidx data member.
14970
149712008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
14972
14973 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
14974
149752008-09-07 Kenichi Handa <handa@m17n.org>
14976
14977 * composite.c (FORWARD_CHAR): Check STOP after
14978 incrementing (POSITION).pos.
14979
149802008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
14981
14982 * process.c (Fsystem_process_attributes): Doc fix.
14983
149842008-09-06 Chong Yidong <cyd@stupidchicken.com>
14985
14986 * keyboard.c (Ftop_level): Doc fix.
14987
149882008-09-06 Eli Zaretskii <eliz@gnu.org>
14989
14990 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
14991 minibuffer, don't let lower part of menu invade the echo area.
14992
14993 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
14994 "char *q" to access menu text and advance through it. Revert the
14995 change that displayed ">" instead of ASCII character 0x10.
14996
149972008-09-05 Eli Zaretskii <eliz@gnu.org>
14998
14999 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
15000 toggle boxes and radio buttons on MS-DOS as well.
15001
150022008-09-05 Kenichi Handa <handa@m17n.org>
15003
15004 * composite.c (autocmp_chars): Check lookback count.
15005 (composition_compute_stop_pos): Set cmp_it->lookback.
15006 (composition_reseat_it): Check lookback count.
15007 (struct position_record): New struct.
15008 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
15009 (find_automatic_composition): New function.
15010 (composition_adjust_point): Use find_automatic_composition.
15011
15012 * dispextern.h (struct composition_it): New member lookback.
15013
150142008-09-02 Chong Yidong <cyd@stupidchicken.com>
15015
15016 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
15017 if moving by a single line.
15018
150192008-09-02 Andreas Schwab <schwab@suse.de>
15020
15021 * xterm.c (x_delete_display): Fix merge error.
15022
15023 * fileio.c (Fexpand_file_name): Remove unused variables.
15024
150252008-09-02 Eli Zaretskii <eliz@gnu.org>
15026
15027 * fileio.c (Fexpand_file_name): Copy argument `name' into local
15028 storage on all platforms, not just on DOS_NT.
15029
150302008-09-02 Jason Rumney <jasonr@gnu.org>
15031
b8ff72fa
SM
15032 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
15033 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
15034
150352008-09-01 Chong Yidong <cyd@stupidchicken.com>
15036
15037 * xfaces.c (Finternal_set_alternative_font_family_alist)
15038 (Finternal_set_alternative_font_registry_alist): Properly copy
15039 entire alist structure.
15040
150412008-09-01 Kenichi Handa <handa@m17n.org>
15042
d66c0241 15043 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 15044 representative chars of the script is a vector.
d66c0241
JB
15045 (ftfont_list): Handle the case where the representative chars of
15046 the script is a vector.
aac0c6e3
MR
15047
15048 * character.c (syms_of_character): Docstring of
15049 script-representative-chars fixed.
15050
150512008-08-31 Eli Zaretskii <eliz@gnu.org>
15052
15053 * msdos.c (BUILD_CHAR_GLYPH): New macro.
15054 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
15055 the menu. Allocate larger buffer for `text', to account for
15056 possible ^C characters.
15057
150582008-08-31 Martin Rudalics <rudalics@gmx.at>
15059
15060 * xdisp.c (prepare_menu_bars): Don't call
15061 Vwindow_size_change_functions with arg Qt.
15062
150632008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
15064
15065 * font.h (font_range):
15066 * fileio.c (report_file_error):
46e722a9
SM
15067 * composite.c (composition_update_it): Yet another int/Lisp_Object
15068 mixup (YAILOM).
aac0c6e3
MR
15069
150702008-08-30 Glenn Morris <rgm@gnu.org>
15071
15072 * data.c (Fmake_variable_frame_local): Doc fix.
15073
15074 * frame.c (Fmodify_frame_parameters): Doc fix.
15075
150762008-08-30 Eli Zaretskii <eliz@gnu.org>
15077
15078 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
15079 needed by GetTokenInformation.
15080 (w32_system_process_attributes): Check return values of all system
15081 APIs.
15082
15083 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
15084 only when the state changes.
15085 (IT_update_begin, IT_update_end): Add termscript trace.
15086
15087 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
15088 clipboard is unavailable. Set dst to NULL if it doesn't point to
15089 malloc'ed data.
15090 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
15091 passing random values to xfree.
15092
15093 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 15094 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
15095
150962008-08-29 Jason Rumney <jasonr@gnu.org>
15097
15098 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
15099
151002008-08-29 Eli Zaretskii <eliz@gnu.org>
15101
15102 * composite.c (fill_gstring_body): Avoid compiler warnings.
15103
15104 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
15105 LGLYPH_SET_CODE to avoid compiler warnings.
15106
2ae37cf0 15107 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
15108
15109 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
15110
15111 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
15112 LGLYPH_SET_CODE.
15113
151142008-08-29 Kenichi Handa <handa@m17n.org>
15115
15116 * fileio.c (report_file_error): Don't downcase the first character
15117 of errstring if it is still unibyte.
15118
151192008-08-29 Kenichi Handa <handa@m17n.org>
15120
15121 These changes are to re-implement the automatic composition so
15122 that it doesn't use text properties.
15123
15124 * Makefile.in (ftfont.o): Depend on composite.h.
15125 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
15126
15127 * character.h (Vunicode_category_table): Extern it.
15128
15129 * character.c (Vunicode_category_table): New variable.
15130 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
15131
15132 * chartab.c (optimize_sub_char_table): Perform more greedy
15133 optimization.
15134
b8ff72fa
SM
15135 * composite.h (enum composition_method):
15136 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
15137 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
15138 (Vcomposition_function_table): Extern it.
15139 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
15140 (composition_gstring_put_cache, composition_gstring_from_id)
15141 (composition_gstring_p, composition_gstring_width)
15142 (composition_compute_stop_pos, composition_reseat_it)
15143 (composition_update_it, composition_adjust_point): Extern them.
15144 (Fcomposition_get_gstring): EXFUN it.
15145
d66c0241 15146 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
15147 (Vcomposition_function_table)
15148 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
15149 (gstring_hash_table, gstring_work, gstring_work_headers):
15150 New variables.
aac0c6e3
MR
15151 (gstring_lookup_cache, composition_gstring_put_cache)
15152 (composition_gstring_from_id, composition_gstring_p)
15153 (composition_gstring_width, fill_gstring_header)
15154 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
15155 (composition_reseat_it, composition_update_it)
b8ff72fa 15156 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
15157 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
15158 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 15159 Defsubr composition_get_gstring.
aac0c6e3
MR
15160
15161 * dispextern.h (struct glyph): New union u.cmp. Delete the member
15162 cmp_id.
15163 (struct glyph_string): Delete the member gidx. New members
15164 cmp_id, cmp_from, and cmp_to.
15165 (enum it_method): Delete GET_FROM_COMPOSITION.
15166 (struct composition_it): New struct.
15167 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
15168 Delete c, len, cmp_id, cmp_len in u.comp.
15169
15170 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 15171 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 15172 (enum lglyph_indices): Likewise.
b8ff72fa 15173 (font_range): Adjust extern.
aac0c6e3
MR
15174 (font_fill_lglyph_metrics): Extern it.
15175
15176 * font.c (QCf): New variable.
15177 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
15178 (font_prepare_composition): Delete this function.
15179 (font_range): Type and arguments changed.
15180 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
15181 (font_fill_lglyph_metrics): New function.
b8ff72fa 15182 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 15183 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
15184 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
15185 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
15186
15187 * fontset.h (font_for_char): Extern it.
15188
15189 * fontset.c (font_for_char): New function.
15190
15191 * ftfont.c: Include composite.h.
15192 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 15193 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
15194
15195 * indent.c: Include composite.h and dispextern.h.
15196 (check_composition): Delete this function.
15197 (scan_for_column): Handle composition by
15198 composition_compute_stop_pos, composition_reseat_it, and
15199 composition_update_it.
15200 (compute_motion): Likewise.
15201 (Fvertical_motion): Fix checking of composition.
15202
15203 * keyboard.c (adjust_point_for_property): Check composition by
15204 composition_adjust_point.
15205
b8ff72fa 15206 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
15207 struct glyph_string.
15208
b8ff72fa
SM
15209 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
15210 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
15211 struct glyph.
15212 (produce_composite_glyph): Likewise.
15213
b8ff72fa
SM
15214 * w32term.c (x_draw_composite_glyph_string_foreground):
15215 Adjust for the change of struct glyph_string.
aac0c6e3
MR
15216 (x_draw_glyph_string): Likewise.
15217
15218 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
15219 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
15220
15221 * xdisp.c: Include font.h.
15222 (it_props): Delete the entry for Qauto_composed.
15223 (init_iterator): Initialize it->cmp_it.id to -1.
15224 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 15225 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
15226 (handle_auto_composed_prop): Delete it.
15227 (handle_composition_prop): Handle only static composition.
15228 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
15229 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 15230 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
15231 (pop_it): Likewise.
15232 (get_next_element): Delete next_element_from_composition.
15233 (CHAR_COMPOSED_P): New macro.
15234 (get_next_display_element): For automatic composition, get a face
15235 from the font in the glyph-string.
15236 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 15237 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
15238 (next_element_from_string): Check if the character at the current
15239 position is composed by CHAR_COMPOSED_P.
15240 (next_element_from_buffer): Likewise.
d66c0241
JB
15241 (next_element_from_composition): Adjust for the change of struct it.
15242 Update it->cmp_it.
b8ff72fa
SM
15243 (dump_glyph): Adjust for the change of struct glyph.
15244 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
15245 it and struct glyph. Don't handle automatic composition here.
15246 (fill_gstring_glyph_string): New function.
15247 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 15248 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
15249 (BUILD_GSTRING_GLYPH_STRING): New macro.
15250 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
15251 automatic composition.
b8ff72fa 15252 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 15253 struct glyph.
b8ff72fa 15254 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 15255
b8ff72fa 15256 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
15257 the change of struct glyph_string.
15258 (x_draw_glyph_string): Likewise.
15259
152602008-08-29 Glenn Morris <rgm@gnu.org>
15261
15262 * buffer.c (word-wrap): Doc fix.
15263 * xdisp.c (truncate-partial-width-windows): Doc fix.
15264 Increase default to 50.
15265
152662008-08-29 Chong Yidong <cyd@stupidchicken.com>
15267
15268 * xdisp.c (update_tool_bar_unwind): New function.
15269 (update_tool_bar): Temporarily set selected frame before building
15270 tool-bar items.
15271
152722008-08-28 Michael Albinus <michael.albinus@gmx.de>
15273
15274 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
15275 snprintf, respectively.
15276 (xd_append_arg): Convert strings with Fstring_make_unibyte.
15277
152782008-08-28 Chong Yidong <cyd@stupidchicken.com>
15279
15280 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
15281 LDFLAGS to GNUstep CC invocation.
15282
152832008-08-27 Chong Yidong <cyd@stupidchicken.com>
15284
15285 * indent.c (Fvertical_motion): Revert last change. Handle the
15286 general case where we are moving forward, and PT spans multiple
15287 screen lines.
15288
15289 * eval.c (find_handler_clause): Temporarily increase
15290 max-lisp-eval-depth while printing the backtrace buffer, to
15291 guarantee that help-mode code can run.
15292
152932008-08-27 Eli Zaretskii <eliz@gnu.org>
15294
15295 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
15296 colors under -rv.
15297 (IT_set_frame_parameters): Don't swap foreground and background
15298 colors if `(reverse . t)' is present in the frame properties.
15299 (internal_terminal_init): Call init_frame_faces only for the
15300 initial frame.
15301
153022008-08-27 Andreas Schwab <schwab@suse.de>
15303
15304 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
15305
153062008-08-27 Andreas Schwab <schwab@suse.de>
15307
15308 * search.c (search_buffer): Set char_base to zero only at the end.
15309
153102008-08-27 Kenichi Handa <handa@m17n.org>
15311
b8ff72fa 15312 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
15313
153142008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
15315
15316 * xterm.c (x_term_init): Temporarily hide the partially
15317 initialized terminal while calling vendor-specific-keysyms.
15318
153192008-08-26 Eli Zaretskii <eliz@gnu.org>
15320
15321 * msdos.c (internal_terminal_init): Most initializations done only
15322 once, especially initial_screen_colors[] and termscript open.
15323
153242008-08-26 Chong Yidong <cyd@stupidchicken.com>
15325
15326 * eval.c (Fcondition_case): Doc fix.
15327
15328 * widgetprv.h (EmacsFramePart): Change font member to the new font
15329 struct.
15330
15331 * widget.c: Include character.h and font.h for XSETFONT.
15332 (setup_frame_gcs): Compute X font id from font struct, just once.
15333
153342008-08-26 Eli Zaretskii <eliz@gnu.org>
15335
15336 * term.c (get_named_tty): Fix last change.
15337
153382008-08-26 Chong Yidong <cyd@stupidchicken.com>
15339
15340 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 15341 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
15342
153432008-08-25 Eli Zaretskii <eliz@gnu.org>
15344
15345 * frame.c (do_switch_frame): Mark previously displayed frame as
15346 obscured for FRAME_MSDOS_P frames as well.
15347
153482008-08-24 Eli Zaretskii <eliz@gnu.org>
15349
15350 * frame.c (make_terminal_frame): Initialize f->terminal,
15351 f->terminal->reference_count, and scroll bars on MS-DOS as well.
15352 Set the top frame to newly created frame.
15353 (Fmake_terminal_frame): Reuse the_only_display_info.
15354
15355 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
15356 estimating available memory.
15357
b97439ce 153582008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
15359
15360 * nsterm.m (ns_draw_window_cursor): Don't call
15361 NSDisableScreenUpdates and NSEnableScreenUpdates on
15362 non-NS_IMPL_COCOA systems.
15363
153642008-08-23 Andreas Schwab <schwab@suse.de>
15365
15366 * process.c (procfs_system_process_attributes): Fix use of
15367 uninitialized variables.
15368
153692008-08-23 Eli Zaretskii <eliz@gnu.org>
15370
15371 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
15372
15373 * dispnew.c (init_display): Remove MS-DOS specific conditions for
15374 calling tty-set-up-initial-frame-faces.
15375
b8ff72fa
SM
15376 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
15377 Allow MSDOS frames along with X frames.
aac0c6e3
MR
15378
15379 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
15380 addition to output_termcap.
15381
15382 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
15383
15384 * termchar.h (FRAME_TTY): Support output_msdos_raw.
15385 (struct tty_display_info) [MSDOS]: Add fields related to mouse
15386 highlight.
15387
15388 * process.c [!subprocesses]: Define QCname.
15389 (syms_of_process): Intern and staticpro it.
15390
15391 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
15392 Adjust for changes in encoding/decoding routines.
15393 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
15394 encode_coding and decode_coding.
15395
b8ff72fa 15396 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
15397
15398 * dosfns.c: Include frame.h before termhooks.h.
15399 (dos_cleanup): Use CURTTY ()->termscript instead of a global
15400 variable termscript.
15401
15402 * s/msdos.h (USER_FULL_NAME): Define.
15403 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
15404
15405 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
15406 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
15407 pw->pw_gecos.
15408
15409 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
15410 SELECTED_FRAME as additional (1st) argument.
15411 (tty_read_avail_input): Handle output_msdos_raw in
15412 addition to output_termcap.
15413
15414 * msdos.c: Include frame.h before termhooks.h.
15415 (mouse_on, mouse_off, mouse_moveto, mouse_init)
15416 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
15417 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
15418 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
15419 (IT_set_terminal_modes, IT_reset_terminal_modes)
15420 (IT_set_frame_parameters): Use tty->termscript instead of a global
15421 variable termscript.
15422 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
15423 global variable terminal_coding. Don't refer to
15424 Vnonascii_translation_table.
15425 (internal_terminal_init): Set Vwindow_system in current_kboard.
15426 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
15427 Announce date and time of session start, if termscript is open.
15428 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
15429 term.c:init_tty). Open termscript only of not already open.
15430 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
15431 here instead of dos_ttraw. Don't initialize display if this is an
15432 initial tty. Don't set FRAME_FONT.
15433 (Vwindow_system_version): Bump to 23.
15434 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
15435 is available, set up mouse_position_hook.
15436 (dos_ttraw, IT_set_terminal_modes): If called with initial
15437 terminal, do nothing.
15438 (IT_set_frame_parameters): Handle the Qtty_type frame
15439 parameter by calling internal_terminal_init.
15440 (dos_set_window_size, show_mouse_face)
15441 (clear_mouse_face, IT_note_mode_line_highlight)
15442 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
15443 (dos_rawgetc): Use tty_display_info instead of x_display_info.
15444 (initialize_msdos_display): New function.
15445 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
15446 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
15447 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
15448 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 15449 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
15450 (request_sigio, unrequest_sigio): Don't define, now defined on
15451 sysdep.c.
15452 (IT_write_glyphs): Rewrite to use encode_terminal_code.
15453
15454 * term.c [MSDOS]: Include msdos.h.
15455 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
15456 conditional to DOS_NT. Allow only one call to this function in a
15457 session. Don't allocate a new struct tty_display_info; instead,
15458 reuse the_only_display_info. Call get_tty_size to get screen
15459 dimensions. Call init_baud_rate to set bad_rate.
15460 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
15461 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 15462 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
15463 (get_tty_terminal, get_named_tty, Ftty_type)
15464 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
15465 output_termcap.
b8ff72fa
SM
15466 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
15467 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 15468 only when subprocesses are supported.
aac0c6e3
MR
15469
15470 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
15471 f->output_data.x.
15472 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
15473 terminal devices.
15474
5582fbc7 15475 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
15476 x_output.
15477 (FRAME_FONT): Use output_data.tty.
15478 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
15479 (struct x_display_info): Rename from display_info. Update all users in
15480 msdos.c.
aac0c6e3 15481 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 15482 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
15483 (dos_ttraw): Update prototype.
15484
15485 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
15486 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
15487
154882008-08-23 Jason Rumney <jasonr@gnu.org>
15489
15490 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
15491 (fn_TIFFSetDirectory): New library function used.
15492 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
15493 (tiff_load): Use :index to select among multiple images. Set count
15494 property when multiple images exist.
15495 (gif_format): Use :index, not :image.
15496
154972008-08-23 Chong Yidong <cyd@stupidchicken.com>
15498
15499 * xdisp.c (try_scrolling): Check INT_MAX instead of
15500 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
15501 to obtain INT_MAX.
15502
155032008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
15504
15505 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
15506
155072008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
15508
15509 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
15510 GNUstep library location.
15511
155122008-08-21 Chong Yidong <cyd@stupidchicken.com>
15513
15514 * xfaces.c (x_update_menu_appearance): Check validity of menu font
15515 before using it.
15516
15517 * puresize.h (BASE_PURESIZE): Increase to 1250000.
15518
155192008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
15520
15521 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
15522 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
15523 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
15524 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
15525 (EmacsApp-cursor_blink_handler): Remove declaration.
15526 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
15527 match 01 Feb 2008 changes in xterm.c.
15528 (ns_read_socket): Add cast to avoid warning.
15529 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
15530 GNUstep.
15531
155322008-08-20 Chong Yidong <cyd@stupidchicken.com>
15533
15534 * xselect.c (x_get_foreign_selection): Return nil if desired
15535 selection could not be obtained, instead of signalling an error.
15536
155372008-08-20 David Reitter <david.reitter@gmail.com>
15538
15539 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
15540 * nsterm.m: Remove ns-specific code for cursor blinking.
15541 (ns_draw_window_cursor): Clear cursor properly rather than
15542 redrawing the area. Respect width of bar cursors.
15543 These changes enable the use of generic blink-cursor-mode and
15544 generic cursor types in NS and support smooth cursor movements (do
15545 not blink off after command).
15546 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
15547 Nextstep, too.
15548
155492008-08-19 Kenichi Handa <handa@m17n.org>
15550
15551 * font.c (Vfont_log_deferred): New variable.
15552 (font_add_log): Check Vfont_log_deferred.
15553 (font_deferred_log): New function.
15554
15555 * font.h (font_deferred_log): Extern it.
15556
15557 * fontset.c (reorder_font_vector): Use encoding charset of fonts
15558 for sorting.
15559 (face_for_char): Use deferred log.
15560
155612008-08-18 Kenichi Handa <handa@m17n.org>
15562
15563 * fontset.c (face_for_char): Add font log.
15564
15565 * font.c (font_add_log): Add the font properties :script, :lang,
15566 and :otf in the log.
15567
155682008-08-17 Chong Yidong <cyd@stupidchicken.com>
15569
15570 * xdisp.c: Remove dead code.
15571 (handle_invisible_prop, next_overlay_string): Defer call to
15572 setup_for_ellipsis.
15573 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
15574
155752008-08-15 Chong Yidong <cyd@stupidchicken.com>
15576
15577 * xfaces.c (lookup_derived_face): Properly handle possible zero
15578 return value of get_lface_attributes.
15579 (merge_faces): Don't tell lookup_derived_face to signal an error
15580 if face is not found.
15581
15582 * dired.c (Fdirectory_files): Doc fix.
15583
15584 * process.c (make_process): Initialize kill_without_query struct
15585 member.
15586
155872008-08-15 Eli Zaretskii <eliz@gnu.org>
15588
15589 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
15590 Alternative calculation of totphys for Visual Studio 6.
15591
15592 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
15593
15594 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
15595 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
15596 All users changed.
15597 (stat): Only root directory passed to GetDriveType. Allow RAM
15598 disk as well as local fixed disk when w32-get-true-file-attributes
15599 is set to `local'.
15600 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
15601 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
15602 (w32_cached_id, w32_add_to_cache): New functions.
15603 (get_name_and_id): Look account names in the cache before calling
15604 lookup_account_sid.
15605 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
15606 New initialization flags.
15607 (globals_of_w32): Initialize them to zero.
15608 (w32_system_process_attributes): Use w32_cached_id and
15609 w32_add_to_cache.
15610
156112008-08-14 Lawrence Mitchell <wence@gmx.li>
15612
15613 * lread.c (Fread_char, Fread_char_exclusive): If no character
15614 event is read before timeout is reached, return nil, rather than
15615 converting to a number.
15616
156172008-08-14 Chong Yidong <cyd@stupidchicken.com>
15618
15619 * fns.c (use_dialog_box): Doc fix.
15620
15621 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
15622 on OS X.
15623
156242008-08-13 Chong Yidong <cyd@stupidchicken.com>
15625
15626 * frame.c (Qns_parse_geometry): New var.
15627 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
15628
156292008-08-11 Chong Yidong <cyd@stupidchicken.com>
15630
15631 * xdisp.c (x_produce_glyphs): Handle the case when font has no
15632 space character in calculating tabs.
15633
156342008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
15635
15636 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
15637
156382008-08-10 Glenn Morris <rgm@gnu.org>
15639
15640 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
15641 silence gcc "limited range of data type" warnings in some
15642 make_fixnum_or_float calls.
15643
156442008-08-09 Eli Zaretskii <eliz@gnu.org>
15645
15646 * w32.c (w32_system_process_attributes): If the process does not
15647 exist, return nil.
15648
15649 * w32.c: Include thelp32.h, psapi.h and coding.h.
15650 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
15651 declarations.
15652 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
15653 (Process32Next_Proc): New typedefs.
15654 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
15655 (g_b_init_process32_next, g_b_init_open_thread_token)
15656 (g_b_init_impersonate_self, g_b_init_revert_to_self)
15657 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
15658 (g_b_init_get_process_working_set_size)
15659 (g_b_init_global_memory_status_ex): New static variables.
15660 (globals_of_w32): Initialize them.
15661 (create_toolhelp32_snapshot, process32_first, process32_next)
15662 (open_thread_token, impersonate_self, revert_to_self)
15663 (get_process_memory_info, get_process_working_set_size)
15664 (global_memory_status, global_memory_status_ex): New wrapper
15665 functions.
15666 (w32_list_system_processes, w32_system_process_attributes)
15667 (enable_privilege, restore_privilege, ltime, process_times):
15668 New functions.
15669 (convert_time_raw): New function.
15670 (convert_time): Remove conversion of FILETIME into time in 100
15671 nsec units, call convert_time_raw instead.
15672
15673 * process.h (w32_list_system_processes, w32_system_process_attributes):
15674 Add prototypes.
15675 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
15676 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
15677 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
15678 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
15679
15680 * process.c (Fsystem_process_attributes): Doc fix.
15681
156822008-08-08 Chong Yidong <cyd@stupidchicken.com>
15683
15684 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
15685 a continued multi-char glyph; if so, advance to the actual glyph.
15686
156872008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
15688
15689 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
15690
15691 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
15692 (.m.o): Use it.
15693 * config.in: Regenerate.
15694
156952008-08-07 Chong Yidong <cyd@stupidchicken.com>
15696
15697 * xdisp.c (redisplay_window): Revert last change.
15698 (try_window): Check bottom scroll margin too.
15699
157002008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
15701
15702 * config.in: Regenerate.
15703
15704 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
15705 -list-load-path-shadows'.
15706 (nsgui.h): Reduce number of things depending on it.
15707
157082008-08-06 Chong Yidong <cyd@stupidchicken.com>
15709
15710 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
15711 instead of window-end which does the wrong thing at eob.
15712 (try_cursor_movement): Minor optimization.
15713 (redisplay_window): If scroll margin is defined, don't assume
15714 window doesn't need scrolling.
15715
157162008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
15717
15718 * config.in: Regenerate.
15719
15720 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
15721 (mostlyclean): Don't delete *.d under NS.
15722
15723 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
15724
157252008-08-06 Kenichi Handa <handa@m17n.org>
15726
15727 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
15728
157292008-08-06 Andreas Schwab <schwab@suse.de>
15730
15731 * config.in: Regenerate.
15732
157332008-08-05 Chong Yidong <cyd@stupidchicken.com>
15734
15735 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
15736 forcing a window start.
15737
15738 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
15739 (auto_save_1): Update modtime when auto-save-list-file-name is on.
15740
157412008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
15742
15743 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
15744 argument.
15745
157462008-08-05 Juanma Barranquero <lekktu@gmail.com>
15747
15748 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
15749 <scroll-down-aggressively, before-change-functions>:
15750 <after-change-functions>: Reflow docstrings.
15751
157522008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 15753 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
15754
15755 Dock menu customization, based on a patch by Ken Raeburn, plus some
15756 other fixes.
15757 * nsmenu.m (dockMenu): New variable.
15758 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
15759
15760 * nsterm.h (dockMenu): Declare.
15761
15762 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
15763 (ns_term_init): Initialize dockMenu.
15764 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
15765 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
15766 left.
15767
15768 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
15769
157702008-08-04 Chong Yidong <cyd@stupidchicken.com>
15771
15772 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
15773
15774 * config.in: Regenerate.
15775
157762008-08-04 Seiji Zenitani <zenitani@mac.com>
15777
15778 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
15779
157802008-08-04 Chong Yidong <cyd@stupidchicken.com>
15781
15782 * nsterm.h (find_and_call_menu_selection): Fix prototype.
15783
157842008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
15785
15786 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
15787
15788 * keyboard.h: Comment an #endif.
15789
15790 * lisp.h (have_menus_p): Adjust comment.
15791
15792 * menu.c (find_and_return_menu_selection): Fix comparison with
15793 client_data.
15794
15795 * nsmenu.m (popup_activated_flag): New variable.
15796 (popup_activated): New function.
15797 (menu-or-popup-active-p): New exported lisp definition.
15798 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
15799 when popup done.
15800 (ns_popup_dialog): Set popup_activated_flag.
15801
15802 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
15803 version for GNUstep (handled by conditional typedef in nsterm.m).
15804 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
15805 in rgb.txt).
15806
15807 * process.c (init_process): Use DARWIN_OS, not DARWIN.
15808
15809 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
15810
15811 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
15812
15813 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
15814 shortcircuit if popup_activated like GTK and X toolkit.
15815
15816 * m/inter386.h: Change DARWIN to DARWIN_OS.
15817
15818 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
15819 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
bba3e508
SM
15820 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood.
15821 Expand comment on NO_SOCK_SIGIO.
aac0c6e3
MR
15822
158232008-08-03 Chong Yidong <cyd@stupidchicken.com>
15824
15825 * nsterm.m (windowDidResize): Remove stopModal call.
15826
158272008-08-03 Andreas Schwab <schwab@suse.de>
15828
15829 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
15830 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
15831
158322008-08-02 Chong Yidong <cyd@stupidchicken.com>
15833
15834 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
15835 Don't use uninitialized pointer variable when using getrlimit.
15836
158372008-08-02 Jason Rumney <jasonr@gnu.org>
15838
15839 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
15840
158412008-08-02 Eli Zaretskii <eliz@gnu.org>
15842
15843 * alloc.c (NSTATICS): Bump to 0x640.
15844
15845 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
15846
15847 * lisp.h: Add prototype for directory_files_internal.
15848
15849 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
15850 New functions.
15851 (syms_of_process): Defsubr them. Add initializations for various
15852 Q* symbols used in procfs_system_process_attributes.
15853 (procfs_list_system_processes, procfs_system_process_attributes)
15854 [HAVE_PROCFS]: New functions.
15855 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
15856 (procfs_get_total_memory): New functions.
15857
158582008-08-01 Juanma Barranquero <lekktu@gmail.com>
15859
15860 * xfaces.c (Fx_load_color_file): Fix previous change;
15861 it is #ifdef WINDOWSNT, not WINDOWS_NT.
15862
158632008-08-01 Michael Albinus <michael.albinus@gmx.de>
15864
15865 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
15866
158672008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
15868
15869 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
15870
158712008-08-01 Chong Yidong <cyd@stupidchicken.com>
15872
15873 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
15874
15875 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
15876 define NSApplicationDelegateReplySuccess.
15877 (EmacsView -converstationIdentifier): Use long instead of
15878 NSInteger for GNUstep, since it doesn't have NSInteger.
15879
15880 * xmenu.c: Revert last change.
15881
15882 * keyboard.h: Fix last change.
15883
158842008-08-01 Juanma Barranquero <lekktu@gmail.com>
15885
15886 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
15887 on Windows.
15888
158892008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
15890
15891 Warning clearing and clean-up in NS port.
15892 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
15893 Add prototypes.
15894 * nsgui.h (FACE_DEFAULT): Remove, unused.
15895 (XGCValues): Change colors to unsigned long.
15896 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
15897 nsterm.m.
15898 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
15899 (ns_list_fonts): Remove, unused.
15900 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
15901 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
15902 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
15903 (nsfont_draw): Compare face colors to 0, not nil.
15904 * nsmenu.m (struct widget_value): Drop unneeded declaration.
15905 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
15906 (-addSubmenuWithTitle:): Use NSMenuItem class.
15907 (ns_popup_menu): Use NO, not NULL, for enabled setting.
15908 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
15909 (ns_clip_to_row): Make gc arg a BOOL.
15910 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
15911 ns_clip_to_row() call.
15912 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
15913 used). Cast FRAME_FONT assignments.
15914 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
15915 (ns_string_to_lispmod): Change arg to const char.
15916 (ns_term_init): Use NSMenuItem class.
15917 (EmacsApp -openFile:): Move to different section of file.
15918 (EmacsApp -application:openFiles:): Don't return a value, call
15919 -replyToOpenOrPrint:.
15920 (EmacsView -keyDown:): Fix up cast.
15921 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
15922 (EmacsView -menuDown:): Cast tag in call to
15923 find_and_call_menu_selection().
15924 (ns_list_fonts): Remove, unused.
15925 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
15926 (ns_fontname_to_xlfd): Make static.
15927 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
15928 Remove prototypes (now in keyboard.h).
15929 (next_menubar_widget_id): Remove, unused.
15930 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
15931 Remove prototypes (now in keyboard.h).
15932 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
15933
159342008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
15935
15936 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
15937 (floatfns.o): Depend on syssignal.h.
15938 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
15939
15940 * systty.h: Fix previous change that removed BSD_TERMIOS.
15941 Add comments to #ifdefs.
15942
159432008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
15944
15945 * w32fns.c (w32-load-color-file): Remove.
15946 (x-open-connection): Use renamed Fx_load_color_file.
15947 * xfaces.c (x-load-color-file): Add.
15948 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
15949 Emacs.clr.
15950 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
15951
159522008-07-31 Michael Albinus <michael.albinus@gmx.de>
15953
15954 * dbusbind.c (Fdbus_call_method_asynchronously)
15955 (Fdbus_method_error_internal): New defuns.
15956 (xd_read_message): Handle also reply messages.
15957 (Vdbus_registered_functions_table): Extend docstring.
15958
159592008-07-31 Juanma Barranquero <lekktu@gmail.com>
15960
15961 * keyboard.c (gobble_input): Fix previous change.
15962
159632008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
15964
15965 * bitmaps/README:
15966 * xfns.c:
15967 * termcap.c:
15968 * term.c:
15969 * syswait.h:
15970 * systty.h:
15971 * systime.h:
15972 * syssignal.h:
15973 * sysdep.c:
15974 * process.h:
15975 * process.c:
15976 * print.c:
15977 * ndir.h:
15978 * lread.c:
15979 * keyboard.c:
15980 * getpagesize.h:
15981 * floatfns.c:
15982 * fileio.c:
15983 * emacs.c:
15984 * doc.c:
15985 * dispnew.c:
15986 * dired.c:
15987 * data.c:
15988 * callproc.c:
15989 * buffer.c:
15990 * README:
15991 * Makefile.in:
15992 * s/template.h:
15993 * s/msdos.h:
15994 * m/vax.h: Remove VMS support.
15995 * s/vms.h:
15996 * vlimit.h:
15997 * uaf.h:
15998 * temacs.opt:
15999 * param.h:
16000 * ioctl.h: Remove file.
16001
160022008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
16003
16004 * s/ms-w32.h (MULTI_KBOARD): Remove.
16005 * xterm.c:
16006 * xselect.c:
16007 * xfns.c:
16008 * window.c:
16009 * w32term.c:
16010 * w32fns.c:
16011 * terminal.c:
16012 * termhooks.h:
16013 * term.c:
16014 * sysdep.c:
16015 * keyboard.h:
16016 * keyboard.c:
16017 * frame.h:
16018 * frame.c:
16019 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
16020 * config.in: Regenerate.
16021
160222008-07-30 Jason Rumney <jasonr@gnu.org>
16023
16024 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
16025
16026 * w32font.c (w32font_encode_char): Leave as unicode if in range.
16027 (w32font_open_internal): Get unicode version of textmetrics.
16028 Don't enable or disable glyph indices here.
16029 (w32font_open): Disable use of glyph indices.
16030
16031 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
16032
160332008-07-30 Chong Yidong <cyd@stupidchicken.com>
16034
16035 * minibuf.c (Vread_buffer_function): Doc fix.
16036
160372008-07-30 John Paul Wallington <jpw@pobox.com>
16038
16039 * minibuf.c (read_buffer_completion_ignore_case): New var.
16040 (Fread_buffer): Use it.
16041
160422008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
16043
16044 * systty.h (sensemode): Remove empty #if. Remove reference to
16045 BSD_TERMIOS, unused.
16046
16047 * sysdep.c: Remove reference to DGUX.
16048 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
16049
16050 * config.in: Regenerate.
16051
160522008-07-30 Jason Rumney <jasonr@gnu.org>
16053
16054 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
16055
160562008-07-29 Jason Rumney <jasonr@gnu.org>
16057
16058 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
16059 is populated.
16060 (uniscribe_encode_char): Always use uniscribe.
16061 Avoid using context if cache is populated.
16062
160632008-07-29 Jan Djärv <jan.h.d@swipnet.se>
16064
16065 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
16066 open menu.
16067
16068 * gtkutil.c (menu_nav_ended): Remove.
16069 (create_menus): Remove signal connect for menu_nav_ended.
16070
160712008-07-28 Chong Yidong <cyd@stupidchicken.com>
16072
16073 * xdisp.c (redisplay_window): Check return value of
16074 compute_window_start_on_continuation_line before forcing a window
16075 start.
16076
160772008-07-28 Jason Rumney <jasonr@gnu.org>
16078
16079 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
16080
16081 * w32term.c (w32_enable_unicode_output, cleartype_active):
16082 Remove obsolete display options.
16083 (x_draw_glyph_string_background): Don't use old cleartype_active
16084 workaround.
16085 (w32_initialize): Remove cleartype_active initialization.
16086 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
16087
160882008-07-28 Andreas Schwab <schwab@suse.de>
16089
16090 * lisp.h (init_weak_hash_tables, syms_of_font)
16091 (xd_read_queued_messages, syms_of_dbusbind): Declare.
16092 (remove_hash_entry): Don't declare.
16093 * eval.c (maybe_call_debugger): Make static and move before use.
16094 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
16095 * xdisp.c: Include "gtkutil.h" if USE_GTK.
16096 * xterm.h (x_set_frame_alpha): Declare.
16097
160982008-07-28 Jan Djärv <jan.h.d@swipnet.se>
16099
16100 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
16101 (create_menus): Connect selection-done to menu_nav_ended.
16102
161032008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
16104
16105 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
16106 Set Vx_resource_name to a fallback. Replace read of 'buffered'
16107 parameter with read of 'alpha' one.
16108 (Qns_frame_parameter): Remove.
5582fbc7 16109 * nsselect.m (selection-coding-system)
aac0c6e3
MR
16110 (next-selection-coding-system, Vselection_coding_system)
16111 (Vnext_selection_coding_system): Drop.
16112
161132008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
16114
16115 * nsfns.m (do-applescript, do_applescript): Rename to
16116 ns-do-applescript, ns_do_applescript, and move within file.
16117
161182008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
16119
16120 Remove support for Mac Carbon.
16121 * mactoolbox.c:
16122 * macterm.h:
16123 * macterm.c:
16124 * macselect.c:
16125 * macmenu.c:
16126 * macgui.h:
16127 * macfns.c:
16128 * mac.c: Remove file.
16129 * s/darwin.h:
16130 * m/intel386.h:
16131 * xfaces.c:
16132 * xdisp.c:
16133 * window.c:
16134 * tparam.c:
16135 * termhooks.h:
16136 * termcap.c:
16137 * term.c:
16138 * syssignal.h:
16139 * sysselect.h:
16140 * sysdep.c:
16141 * process.c:
16142 * lread.c:
16143 * lisp.h:
16144 * keyboard.c:
16145 * image.c:
16146 * fringe.c:
16147 * frame.h:
16148 * frame.c:
16149 * fontset.c:
16150 * font.h:
16151 * font.c:
16152 * fns.c:
16153 * fileio.c:
16154 * emacs.c:
16155 * dispnew.c:
16156 * dispextern.h:
16157 * config.in:
16158 * atimer.c:
2ae37cf0 16159 * Makefile.in: Remove code for Carbon.
aac0c6e3 16160
f0131492 161612008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
16162
16163 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
16164
161652008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16166
16167 * macterm.h (kCGBitmapByteOrder32Host): New define for
16168 non-universal SDKs.
16169
16170 * image.c (mac_create_cg_image_from_image, image_load_image_io)
16171 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
16172
16173 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
16174 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
16175
161762008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
16177
16178 * w32inevt.c: Include dispextern.h.
16179
161802008-07-26 Andreas Schwab <schwab@suse.de>
16181
16182 * print.c (print_object): Fix off-by-one in last change.
16183
161842008-07-25 Juanma Barranquero <lekktu@gmail.com>
16185
16186 * term.c (syms_of_term): Don't initialize default_orig_pair,
16187 default_set_foreground and default_set_background on Windows.
16188
161892008-07-25 Jason Rumney <jasonr@gnu.org>
16190
16191 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
16192 ScriptItemize. Clean up return value checking. Remove unused
16193 variables.
16194 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
16195 shaping engine.
16196
16197 * w32font.c (w32font_has_char): Handle the case where we can't
16198 determine the script for a character.
16199
162002008-07-25 Chong Yidong <cyd@stupidchicken.com>
16201
16202 * term.c (syms_of_term): Initialize default_orig_pair,
16203 default_set_foreground, and default_set_background.
16204
16205 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
16206 clash (bug#86).
16207 (getloadavg): Callers changed.
16208
16209 * image.c (svg_load_image): Fix last change.
16210 (svg_load_image): Use rsvg_handle_get_dimensions to check that
16211 image size is valid. Use g_object_unref instead of deprecated
16212 rsvg_handle_free to free rsvg handle.
16213 (x_from_xcolors): Don't initialize pixmap (silence compiler).
16214
162152008-07-25 Jason Rumney <jasonr@gnu.org>
16216
16217 * w32font.c (w32font_encode_char): Encode characters outside BMP as
16218 surrogates before looking up glyph index.
16219 (w32font_text_extents): Encode as surrogates if falling back to
16220 functions that need UTF-16 wide chars.
16221
16222 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
16223 BMP as surrogates before looking up glyph index.
16224
162252008-07-25 Chong Yidong <cyd@stupidchicken.com>
16226
16227 * image.c (svg_load_image): Check for failure in return value of
16228 rsvg_handle_get_pixbuf. Free rsvg handle when done.
16229
162302008-07-25 Jason Rumney <jasonr@gnu.org>
16231
16232 * w32font.c (Fx_select_font): Reverse sense of second arg.
16233
162342008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
16235
16236 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
16237 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
16238
16239 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
16240 (PURESIZE): Use it.
16241
162422008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
16243
16244 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
16245 * m/alpha.h (TEXT_END):
16246 * m/ibmrs6000.h (TEXT_END):
16247 * m/macppc.h (TEXT_END):
16248 * s/darwin.h (TEXT_END):
16249 * s/msdos.h (TEXT_END): Remove, unused.
16250 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
16251 * s/cygwin.h: Remove comment.
16252
16253 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
16254 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
16255 * m/intel386.h (DOT_GLOBAL_START):
16256 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
16257 (USG): Remove, file not used on USG platforms.
16258
16259 * Makefile.in (HAVE_X11): Remove empty #else.
16260
162612008-07-24 Andreas Schwab <schwab@suse.de>
16262
16263 * fileio.c (Finsert_file_contents): Properly adjust undo list
16264 after format conversion.
16265
162662008-07-24 Jan Djärv <jan.h.d@swipnet.se>
16267
16268 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
16269 (menu_nav_ended): Remove.
16270 (create_menus): Remove signal connect for menu_nav_ended.
16271 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
16272 create_menus.
16273 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
16274
162752008-07-23 Jason Rumney <jasonr@gnu.org>
16276
16277 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
16278 with opened font.
16279 (w32font_open): Set font type to gdi.
16280
16281 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
16282
162832008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
16284
16285 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
16286 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
16287 defines it.
16288 * unexec.c (ADDR_CORRECT): Define unconditionally.
16289
16290 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
16291
16292 * unexec.c: Remove code depending on !COFF and USG, the file is
16293 not used for such systems.
16294
16295 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
16296 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
16297 (LD_SWITCH_SYSTEM_1): Remove, update users.
16298
16299 * s/darwin.h (DATA_END):
16300 * m/intel386.h (DATA_END):
16301 * m/ibmrs6000.h (DATA_END):
16302 * m/alpha.h (DATA_END): Remove, unused.
16303
16304 * config.in: Regenerate.
16305 * s/ms-w32.h (subprocesses): Define unconditionally.
16306 * s/template.h (subprocesses): Update comment.
16307 * s/vms.h (subprocesses):
16308 * s/usg5-4.h (subprocesses):
16309 * s/hpux10-20.h (subprocesses):
16310 * s/gnu-linux.h (subprocesses):
16311 * s/cygwin.h (subprocesses):
16312 * s/bsd-common.h (subprocesses):
16313 * s/aix4-2.h (subprocesses):
16314 * s/darwin.h (subprocesses): Do not define, defined by default now.
16315
16316 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
16317 Remove all references.
16318 (temacs): Add GNUstep specific ld flags.
16319
16320 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
16321 similarly to what X does.
16322
163232008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
16324
16325 * nsfns.m (x-list-fonts): Remove.
16326 (syms_of_nsfns): Drop the x-list-fonts declaration.
16327 * nsterm.m: Get rid of remaining "//" comments.
16328
163292008-07-22 Chong Yidong <cyd@stupidchicken.com>
16330
16331 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
16332
16333 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
16334 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
16335 (Fns_own_selection_internal, Fx_disown_selection_internal)
16336 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
16337
16338 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
16339 ... */' style of docstrings. Doc fixes.
16340
163412008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
16342
16343 * terminfo.c (UP, BC, PC): Undo previous change.
16344
16345 * nsfns.m: Rename ns prefixed functions/variables to the
16346 corresponding x versions. Update references.
16347
163482008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
16349
16350 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
16351
163522008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
16353
16354 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
16355 Remove forwarding functions.
16356 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
16357 non-static.
16358 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
16359 non-static.
16360 (ns_frame_parm_handlers): Use the new names.
16361 (syms_of_nsfns): Move to the end of file.
16362
16363 * nsterm.m (syms_of_nsterm): Move to the end of file.
16364
16365 * dispnew.c (init_display): Remove code for X10.
16366
163672008-07-22 Jason Rumney <jasonr@gnu.org>
16368
16369 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
16370 bare drive.
16371
163722008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
16373
16374 * nsterm.m (syms_of_nsterm): Remove debugging println.
16375
163762008-07-22 David Reitter <david.reitter@gmail.com>
16377
16378 * nsfns.m (do_applescript, F_do_applescript): NS version of the
16379 Carbon implementation of the same functionality: execute arbitrary
16380 AppleScript code.
16381
163822008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
16383
16384 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
16385 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
16386 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
16387 (Fx_display_mm_height, Fx_display_mm_width)
16388 (Fx_display_backing_store, Fx_display_visual_class)
16389 (Fx_display_save_under, Fx_open_connection)
16390 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
16391 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
16392 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
16393 (Fx_display_pixel_width, Fx_display_pixel_height)
16394 (Fx_display_usable_bounds, Fx_display_planes)
16395 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
16396 ... */' style of docstrings.
16397
163982008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
16399
16400 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
16401 on this platform.
16402 (mips):
16403 * m/iris4d.h (mips): Do not define.
16404 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
16405
16406 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
16407
16408 * image.c:
16409 * nsfns.m:
16410 * nsselect.m:
16411 * nsterm.h:
16412 * nsterm.m: Rename ns prefixed functions/variables to the
16413 corresponding x versions. Update references.
16414
16415 * m/ibms390x.h (NO_REMAP): Do not undefine.
16416
16417 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
16418
164192008-07-21 Chong Yidong <cyd@stupidchicken.com>
16420
16421 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
16422 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
16423 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
16424 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
16425 (Fns_display_mm_height, Fns_display_mm_width)
16426 (Fns_display_backing_store, Fns_display_visual_class)
16427 (Fns_display_save_under, Fns_open_connection)
16428 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
16429 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
16430 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
16431 (Fns_display_pixel_width, Fns_display_pixel_height)
16432 (Fns_display_usable_bounds, Fx_display_planes)
16433 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
16434
164352008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
16436
16437 * print.c (print_object): Check print_depth before searching for
16438 circularities.
16439
164402008-07-21 Michael Albinus <michael.albinus@gmx.de>
16441
16442 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
16443 only sprintf.
16444
164452008-07-21 Kenichi Handa <handa@m17n.org>
16446
16447 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
16448
164492008-07-20 Andreas Schwab <schwab@suse.de>
16450
16451 * syntax.c (find_start_pos, find_start_value)
16452 (find_start_value_byte, find_start_begv, find_defun_start)
16453 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
16454
164552008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
16456
16457 * s/sol2-3.h: Insert contents of s/sol2.h.
16458 (LD_SWITCH_SYSTEM): Remove redundant definition.
16459 * s/sol2.h: Remove, unused.
16460
164612008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
16462
16463 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
16464
164652008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
16466
16467 * Makefile.in (ns_appdir): Fix typo in find command.
16468
164692008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
16470
16471 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
16472
16473 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
16474 added not supported anymore.
16475
16476 * s/usg5-4-2.h (LIBS_SYSTEM):
16477 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
16478
16479 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
16480 * s/lynxos.h (GETPGRP_NO_ARG):
16481 * s/hpux10-20.h (NO_SIOCTL_H):
16482 * s/gnu.h (GETPGRP_NO_ARG):
16483 * s/gnu-linux.h (NO_SIOCTL_H):
16484 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
16485 * s/cygwin.h (GETPGRP_NO_ARG):
16486 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
16487 (C_DEBUG_SWITCH): Remove duplicate definition.
16488
16489 * m/ibms390.h: Remove boilerplate comments.
16490
16491 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
16492
16493 * process.c (HAVE_SERIAL): Consolidate ifdefs.
16494 (wait_reading_process_output): Remove code for SunOS, platform not
16495 supported anymore. Use SOLARIS2 instead of sun.
16496
164972008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
16498
16499 * font.c (font_open_by_name): Under NS, default lface height to zero.
16500 (font_open_for_lface): Under NS, set size based on frame fontsize.
16501 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
16502 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
16503
165042008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
16505
16506 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
16507 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
16508 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
16509 YES/NO.
16510 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
16511 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
16512 * Makefile.in (clean): Clear out build destination dir.
16513
165142008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
16515
16516 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
16517 xterm, xselect.
16518 * lisp.h: Remove declaration of hash_remove.
16519 * nsgui.h: Remove redefinitions of hash_remove.
16520 * fns.c (hash_remove): Rename to hash_remove_from_table.
16521
165222008-07-19 Seiji Zenitani <zenitani@mac.com>
16523
16524 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
16525 strdup() the family UTF8String before modifying it.
16526
165272008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
16528
16529 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
16530 NS_FACE_BACKGROUND with 0 instead of nil.
16531 * nsfont.m (nsfont_draw): Same.
16532
165332008-07-19 Chong Yidong <cyd@stupidchicken.com>
16534
16535 * nsfns.m (ns_set_background_color): Fix crash.
16536
165372008-07-18 Chong Yidong <cyd@stupidchicken.com>
16538
16539 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
16540
165412008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
16542
16543 * puresize.h (BASE_PURESIZE): Increase to 1240000.
16544
165452008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16546
16547 * gtkutil.c: Include <config.h> instead of "config.h".
16548
16549 * lisp.h (Foverlay_buffer): Add EXFUN.
16550
16551 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
16552 child process to complete child_setup. Undo 2005-09-21 change.
16553
16554 * s/darwin.h: Mention setsid after vfork.
16555
165562008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16557
16558 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
16559 Depend on macgui.h.
16560
16561 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
16562 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
16563
16564 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
16565 and f19.
16566 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
16567
16568 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
16569 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
16570 Remove enumerators.
16571
16572 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
16573 Check if FACE_FROM_ID returns NULL.
16574
165752008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
16576
16577 * w32inevt.c (change_frame_size): Remove extern declaration.
16578 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
16579 change_frame_size.
16580
165812008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
16582
16583 * getloadavg.c: Revert last change (2008-07-15).
16584
165852008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
16586
16587 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 16588 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
16589 from configure.
16590
165912008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
16592
16593 * s/sol2.h:
16594 * s/sol2-4.h: Reorganize conditionals.
16595
16596 * ecrt0.c: Remove code depending on m68000, not used anymore.
16597
16598 * fns.c (hash_remove): Make static.
16599 * lisp.h (hash_remove): Don't prototype.
16600
16601 * m/ibmrs6000.h:
16602 * m/ibms390x.h:
16603 * m/macppc.h: Remove boilerplate comments.
16604
16605 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
16606 Solaris, which does not need them.
16607
16608 * m/vax.h: Remove comments about unsupported systems.
16609
16610 * s/darwin.h: Reorganize ifdefs.
16611
166122008-07-17 Andreas Schwab <schwab@suse.de>
16613
16614 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
16615
166162008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
16617
16618 Use SDATA. Follow coding convention of placing operators at
16619 beginning of next line rather than end of previous line, and placing
16620 spaces around infix operators.
16621
16622 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
16623 in case it was defined already.
16624 USE @GNUSTEP_MAKEFILES@ rather than envvars.
16625 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
16626 ns_default.
16627 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
16628 Lisp_Objects.
16629 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
16630 (ns_defined_color, ns_color_to_lisp): Declare.
16631 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
16632 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
16633 it's accepted even with USE_LISP_UNION_TYPE.
16634 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
16635 (update_frame_tool_bar): Remove apparently obsolete tests for
16636 non-integerness of f->tool_bar_lines.
16637 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
16638 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
16639 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
16640 (nsfont_open): Don't confuse NULL for Qnil.
16641 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
16642 * menu.h (find_and_call_menu_selection):
16643 * menu.c (find_and_call_menu_selection): Use just int for vector size.
16644 (find_and_return_menu_selection): Always return something.
16645 * frame.h: Include dispextern.h for Display_Info.
16646 (display_x_get_resource): Declare.
16647
166482008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
16649
16650 * syntax.c: Remove stdio.h include accidentally introduced in
16651 Emacs.app commit.
16652 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
16653 NS_IMPL_COCOA.
16654 * keyboard.c (handle_async_input, input_available_signal): Remove
16655 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
16656
166572008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
16658
16659 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
16660 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
16661 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
16662 Use SDATA.
16663
16664 * keymap.c: Remove all NS-specific code.
16665 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
16666 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
16667 where_is_preferred_modifier, return a different value depending on how
16668 preferred is the binding.
16669 (where_is_internal): Adjust accordingly.
16670 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
16671 Adjust to new preferred_sequence_p.
16672 (syms_of_keymap): Declare `where-is-preferred-modifier'.
16673 * keyboard.c (parse_solitary_modifier): Not static any more.
16674 * keyboard.h (parse_solitary_modifier): Declare.
16675
166762008-07-16 Andreas Schwab <schwab@suse.de>
16677
16678 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
16679 of easymenu.
16680
166812008-07-16 Chong Yidong <cyd@stupidchicken.com>
16682
16683 * xdisp.c (move_it_in_display_line): Account for word wrap, so
16684 that we don't move off the line.
16685
166862008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
16687
16688 * keyboard.c (Qsuper): Remove.
16689 (parse_menu_item): Don't call where_is_internal specially for NS.
16690
166912008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
16692
16693 * s/gnu-linux.h: Remove boilerplate comments.
16694
16695 * m/alpha.h (__ELF__): Consolidate conditions.
16696
16697 * m/m68k.h (linux): Use GNU_LINUX instead.
16698 Remove boilerplate comments.
16699
16700 * m/intel386.h: Undo refactoring from previous change.
16701 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
16702 too, remove dead code.
16703 (linux): Use GNU_LINUX instead.
16704
167052008-07-16 Jason Rumney <jasonr@gnu.org>
16706
16707 * w32gui.h: Repeat 26 June changes lost by last change.
16708
167092008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
16710
16711 * systty.h: Remove code for Aix on 386, unsupported platform.
16712
16713 * s/ms-w32.h: Remove boilerplate comments.
16714 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
16715
16716 * s/gnu-linux.h (TERM): Remove support.
16717 (HAVE_SYSVIPC): Remove, unused.
16718 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
16719 for this system.
16720
16721 * process.c: Remove support for IRIS, unused.
16722 Remove support for TERM, not relevant anymore.
16723
16724 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
16725 used with the definition.
16726
16727 * s/aix4-2.h (static): Do not undef.
16728
16729 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
16730 only used on Aix.
16731 (HAVE_SYSVIPC): Remove, unused.
16732
16733 * m/hp800.h (CANNOT_DUMP): Do not undef.
16734
16735 * m/alpha.h: Fix comment.
16736
16737 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
16738 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
16739 used by this configuration.
16740 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
16741 * unexec.c: Remove code depending on HPUX and
16742 USG_SHARED_LIBRARIES, not used with this file. Remove code
16743 depending on IRIS, unused. Remove if 0-ed code.
16744
16745 * s/template.h: Remove comments about static.
16746
16747 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
16748 Remove if 0-ed code.
16749 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
16750 were the same as the default.
16751 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
16752 Remove boilerplate comments.
16753 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
16754 (HAVE_SYSVIPC): Remove, unused.
16755 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
16756
16757 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
16758 Remove boilerplate comments.
16759 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
16760 Remove boilerplate comments.
16761 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
16762 Remove boilerplate comments.
16763 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
16764
16765 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
16766 USG systems which do not use DATA_SEG_BITS.
16767 Refactor code. Remove boilerplate comments.
16768
16769 * m/ibms390.h:
16770 * m/m68k.h:
16771 * s/bsd-common.h:
16772 * s/cygwin.h:
16773 * s/darwin.h:
16774 * s/freebsd.h:
16775 * s/gnu.h:
16776 * s/msdos.h: Remove boilerplate comments.
16777
16778 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 16779 do not use this file.
aac0c6e3
MR
16780 (IRIS_4D): Remove, unused.
16781
16782 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 16783 do not use this file.
aac0c6e3
MR
16784 (SIGN_EXTEND_CHAR):
16785 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
16786 * unexmips.c: Remove file, unused.
16787
16788 * editfns.c (Fuser_full_name): Replace the only use of
16789 USER_FULL_NAME with its value.
16790 * config.in: Regenerate.
16791
167922008-07-16 David Reitter <david.reitter@gmail.com>
16793
16794 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
16795 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
16796
167972008-07-16 Glenn Morris <rgm@gnu.org>
16798
16799 * emacs.c (system-type): Doc fix.
16800
168012008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
16802
16803 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
16804 If the cache doesn't work, let's fix it, rather than work around it.
16805
168062008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
16807
16808 * Makefile.in: Correct additions for nsfont.o in last commit.
16809 * nsfont.m: New file (forgot last commit).
16810
168112008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
16812
bba3e508
SM
16813 * callproc.c (set_initial_environment):
16814 Initialize Vprocess_environment under CANNOT_DUMP (fixes crash when
aac0c6e3
MR
16815 batch-compiling for bootstrap).
16816
168172008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 16818 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 16819
c4cc8b9a
JB
16820 * frame.c (make_initial_frame): Call init_frame_faces(f) in
16821 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
16822
168232008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
16824
16825 Changes and additions for NeXTstep windowing system (Cocoa and
16826 GNUstep) support.
16827
16828 * Makefile.in:
16829 * config.in: Support defines and build commands for NS port.
16830 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
16831 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
16832 * dispextern.h: Include nsgui.h and add needed typedefs under NS
16833 windowing.
16834 (struct face): Add synth_ital field.
16835 * dispnew.c: Include nsterm.h when compiling under NS windowing.
16836 (init_display): Initialize Vinitial_window_system to "ns" when so
16837 compiled.
16838 * emacs.c: Include GSConfig.h when compiling under GNUstep.
16839 (display_arg): Use under NS.
16840 (main): Under NS, allocate autorelease pool and handle command line
16841 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
16842 (standard_args): Add NS-specific args.
16843 (shut_down_emacs): Shut down NS terminal if compiled under NS.
16844 * font.c (DEFAULT_ENCODING): New variable.
16845 (font_find_for_lface): Use it.
16846 (syms_of_font): Load syms_of_nsfont under NS.
16847 * font.h: Declare nsfont_driver when compiled under NS.
16848 * fontset.c: When compiling under NS, include nsterm.h.
16849 (fontset_from_font): Autoconstruct fontset under NS.
16850 * frame.c (various): Under NS, include nsterm.h, add Qns window system
16851 symbol, document and use it.
16852 (do_switch_frame): When for_deletion under Cocoa, add
16853 Fraise_frame(Qnil).
16854 (x_set_frame_parameters): Ensure font attribute changes are picked up.
16855 (x_get_arg): Allow "yes" and "no" as boolean values.
16856 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
16857 Qright under Cocoa.
16858 (focus-follows-mouse): Default to 0 under NS.
16859 * frame.h (enum output_method): Add output_ns.
16860 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
16861 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
16862 (FRAME_WINDOW_P): NS-specific definition.
16863 * fringe.c (max_used_fringe_bitmap): Make public.
16864 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
16865 (getloadavg): Use NeXT code under descendant OS's.
16866 * image.c (includes and header section, x_create_bitmap_from_data)
16867 (x_create_bitmap_from_file, free_bitmap_record, image_background)
16868 (image_background_transparent, x_clear_image_1)
16869 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
16870 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
16871 (x_to_xcolors, x_from_xcolors, x_disable_image)
16872 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
16873 other GUIs, including XPM support using code originally written for
16874 Carbon GUI.
16875 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
16876 using NS API.
16877 (image_ascent): Use font metrics macros instead of direct struct field
16878 access.
16879 * keyboard.c (includes): Add nsterm.h when compiling under NS.
16880 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
16881 Also, handle NS as GTK for menu bar purposes.
16882 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
16883 toolkit where they differ.
16884 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
16885 use cachelist, still needed under NS.
16886 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
16887 (struct widget_value): Define it here for menu.c.
16888 * keymap.c (includes): Include modifier internals.
16889 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
16890 NS.
16891 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
16892 support for preferring sequences using certain modifiers, specified by
16893 the FIRSTONLY argument.
16894 * lisp.h (hash_remove): Rename to avoid name clash when compiling
16895 under NS GNUstep implementation.
16896 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
16897 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
16898 * menu.c: Include nsterm.h under NS.
16899 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
16900 (free_menubar_widget_tree_value, update_submenu_strings)
16901 (find_and_call_menu_selection): Treat NS as X and NT.
16902 (find_and_return_menu_selection): New function, used for popup menus.
16903 * nsgui.h:
16904 * nsterm.h:
16905 * nsfns.m:
16906 * nsimage.m:
16907 * nsmenu.m:
16908 * nsselect.m:
16909 * nsterm.m: New files.
16910 * process.c (wait_reading_process_output): Under NS, call ns_select()
16911 instead of plain select().
16912 * syntax.c (char_quoted): Under NS, avoid a crash when called near
16913 beginning of buffer.
16914 * sysselect.h (init_process): Rename when compiling under Cocoa to
16915 avoid name conflict.
16916 * termhooks.h (display_info): Add ns_display_info to union.
16917 * terminal.c (Fterminal_live_p): Add ns to terminal types.
16918 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
16919 COCOA environment.
16920 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
16921 unexec() signature. (Note, this will dump, but the resulting file
16922 crashes; unexosx is used instead; keeping around for reference and
16923 possible aid in getting dump working under GNUstep.)
16924 * w32gui.h (button_type, widget_value): Remove definitions (now in
16925 keyboard.h).
16926 * window.c: Include nsterm.h when compiling under NS.
16927 * xdisp.c (includes): Include nsterm.h when compiling under NS.
16928 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
16929 other GUI windowing systems.
16930 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
16931 GTK.
16932 (x_consider_frame_title): Under NS, set icon type and frame
16933 modified-state indicator; use ns_set_name_as_filename() when using
16934 formatted title.
16935 (update_window_cursor): Make public when compiling under NS.
16936 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
16937 (hourglass_atimer, Vhourglass_delay
16938 * xfaces.c (header section, init_frame_faces, clear_font_table)
16939 (defined_color, unload_color, x_face_list_fonts)
16940 (prepare_face_for_display): Add NS support parallel to other GUIs.
16941 Emulate GCs like other non-X GUIs.
16942 (split_font_name): Don't lowercase font name under NS.
16943 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
16944 under NS.
16945 * s/darwin.h: Add support for compilation under NS.
16946
169472008-07-15 Jason Rumney <jasonr@gnu.org>
16948
16949 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
16950 (w32_show_hourglass): Rename from show_hourglass.
16951 (w32_hide_hourglass): Rename from hide_hourglass.
16952 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
16953 (Vhourglass_delay): Declare extern.
16954 (hourglass_started): Remove.
16955
16956 * xdisp.c (Vhourglass_delay): Remove static.
16957 (hourglass_started, start_hourglass, cancel_hourglass):
16958 Don't include these versions on WINDOWSNT.
16959
169602008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
16961
16962 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
16963 variables (formerly in xfns.c).
16964 (show_hourglass, hide_hourglass): New prototypes (same).
16965 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
16966 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
16967 in xfns.c).
16968 (syms_of_xdisp): Declare/initialize display-hourglass,
16969 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
16970 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
16971 formerly in xfns.c.
16972 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
16973 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
16974 (start_hourglass, cancel_hourglass): Remove.
16975 (show_hourglass, hide_hourglass): Remove prototypes and static
16976 modifiers.
16977 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
16978 hourglass_atimer, hourglass_shown_p declaration/initialization.
16979 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
16980 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
16981 (start_hourglass, cancel_hourglass): Remove.
16982 (show_hourglass, hide_hourglass): Remove prototypes and static
16983 modifiers.
16984 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
16985 hourglass_atimer, hourglass_shown_p declaration/initialization.
16986 * w32fns.c (display_hourglass_p, Vhourglass_delay)
16987 (DEFAULT_HOURGLASS_DELAY): Remove.
16988 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
16989 hourglass_shown_p declaration/initialization.
16990
169912008-07-14 Jason Rumney <jasonr@gnu.org>
16992
16993 * w32fns.c (w32_get_arg): Remove wrapper function.
16994 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
16995 directly.
16996 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
16997
169982008-07-14 Kenichi Handa <handa@m17n.org>
16999
17000 * xfont.c (xfont_open): Add workaround for X's bug.
17001
170022008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
17003
17004 * fontset.c: Include <stdio.h> unconditionally.
17005
170062008-07-13 Michael Albinus <michael.albinus@gmx.de>
17007
17008 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
17009 for filtering.
17010
170112008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
17012
17013 * s/vms.h: Use __GNUC__ instead of _GNUC_.
17014
17015 * m/macppc.h:
17016 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
17017
c4cc8b9a 17018 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
17019 (SPECIAL_EMACS_INT):
17020 * m/ia64.h (SPECIAL_EMACS_INT):
17021 * m/amdx86-64.h (SPECIAL_EMACS_INT):
17022 * s/gnu.h (NLIST_STRUCT):
17023 * s/aix4-2.h (X11R5_INHIBIT_I18N):
17024 * s/gnu-linux.h (LINUX):
17025 * s/msdos.h (HAVE_FACES):
17026 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
17027
17028 * systty.h:
17029 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
17030 anymore.
17031
170322008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
17033
17034 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
17035 always defined as int.
17036
17037 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
17038 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
17039 * s/gnu-linux.h (HAVE_WAIT_HEADER):
17040 * s/freebsd.h (HAVE_WAIT_HEADER):
17041 * s/bsd-common.h (HAVE_UNION_WAIT):
17042 * s/aix4-2.h (HAVE_WAIT_HEADER):
17043 * m/mips.h (HAVE_UNION_WAIT):
17044 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
17045 (COFF, static): Do not define, they are undefined later in the file.
17046
17047 * process.c (update_status): Don't use a union.
17048 (status_convert):
17049 (sigchld_handler): Use int instead of WAITTYPE.
17050
170512008-07-12 Chong Yidong <cyd@stupidchicken.com>
17052
17053 * indent.c (Fvertical_motion): Restore hscroll before moving to
17054 goal column.
17055
170562008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
17057
17058 * lisp.h: Remove left over code.
17059
170602008-07-11 Andreas Schwab <schwab@suse.de>
17061
17062 * lisp.h: Fix logic in last change.
17063
17064 * menu.h: New file.
17065 * menu.c: Include it.
17066 * xmenu.c: Likewise.
17067 * Makefile.in: Update dependencies.
17068
170692008-07-11 Kenichi Handa <handa@m17n.org>
17070
17071 * fontset.c (fontset_from_font): Cancel the previous change.
17072
170732008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
17074
17075 * lisp.h:
17076 * w32heap.c:
17077 * emacs.c:
17078 * alloc.c: Replace all references of NO_UNION_TYPE with
17079 USE_LISP_UNION_TYPE.
17080
17081 * m/xtensa.h (NO_UNION_TYPE):
17082 * m/vax.h (NO_UNION_TYPE):
17083 * m/template.h (NO_UNION_TYPE):
17084 * m/sparc.h (NO_UNION_TYPE):
17085 * m/mips.h (NO_UNION_TYPE):
17086 * m/macppc.h (NO_UNION_TYPE):
17087 * m/m68k.h (NO_UNION_TYPE):
17088 * m/iris4d.h (NO_UNION_TYPE):
17089 * m/intel386.h (NO_UNION_TYPE):
17090 * m/ibms390x.h (NO_UNION_TYPE):
17091 * m/ibms390.h (NO_UNION_TYPE):
17092 * m/ibmrs6000.h (NO_UNION_TYPE):
17093 * m/ia64.h (NO_UNION_TYPE):
17094 * m/hp800.h (NO_UNION_TYPE):
17095 * m/arm.h (NO_UNION_TYPE):
17096 * m/amdx86-64.h (NO_UNION_TYPE):
17097 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
17098 defining it the same.
17099
171002008-07-10 Chong Yidong <cyd@stupidchicken.com>
17101
17102 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
17103
171042008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
17105
17106 * fileio.c:
50426a04 17107 * sysdep.c:
aac0c6e3
MR
17108 * systty.h:
17109 * m/ibmrs6000.h:
17110 * m/iris4d.h:
17111 * s/aix4-2.h:
17112 * s/freebsd.h:
17113 * s/gnu-linux.h:
17114 * s/hpux10-20.h:
17115 * s/hpux11.h:
17116 * s/netbsd.h:
17117 * s/sol2-3.h:
17118 * s/sol2-4.h:
17119 * s/sol2.h:
17120 * s/usg5-4.h:
17121 * s/vms.h: Remove references to unused variables.
17122
171232008-07-10 Andreas Schwab <schwab@suse.de>
17124
17125 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
17126 pattern before matching the generic family.
17127
171282008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
17129
17130 * unexec.c:
17131 * s/vms.h:
17132 * s/usg5-4-2.h:
17133 * s/sol2-5.h:
17134 * s/freebsd.h:
17135 * s/darwin.h: Remove dead code.
17136
17137 * m/template.h:
17138 * m/sparc.h:
17139 * m/mips.h:
17140 * m/m68k.h:
17141 * m/iris4d.h:
17142 * m/intel386.h:
17143 * m/ibms390x.h:
17144 * m/ibms390.h:
17145 * m/ia64.h:
17146 * m/hp800.h:
17147 * m/arm.h:
17148 * m/amdx86-64.h: Remove dead code and references to unused
17149 and compiler defined symbols.
17150
17151 * unexmips.c:
17152 * unexelf.c: Remove references to desupported systems.
17153
17154 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
17155
17156 * m/powermac.h: Remove boilerplate comments.
17157 (NO_REMAP): Remove unused definition.
17158
17159 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
17160 define them.
17161
171622008-07-10 Kenichi Handa <handa@m17n.org>
17163
17164 * xfont.c (xfont_open): Log the reason of failure.
17165
171662008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
17167
17168 * fontset.c (fontset_get_font_group):
17169 * font.c (font_check_otf): Specify argument types.
17170
171712008-07-09 Kenichi Handa <handa@m17n.org>
17172
17173 * coding.c (detect_coding_utf_8): Set detect_info->found only when
17174 non-ASCII char is found.
17175
17176 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
17177 (reorder_font_vector): Change the arg preferred_family to font.
17178 Prefer the spec matching with font.
17179 (fontset_get_font_group): New function.
17180 (fontset_find_font): Change the format of an element of a realized
17181 fontset. Use fontset_get_font_group.
17182 (fontset_font): Try the current fontset, the default fontset, the
17183 fallbacks of the current fontset, and the fallbacks of the default
17184 fontset in this order.
17185 (face_for_char): Delete the shortcut to use the current font.
17186 (fontset_from_font): Don't set fonts for Latin in the fontset.
17187
17188 * font.h (font_make_object, font_match_p): Adjust prototypes.
17189
17190 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
17191
17192 * font.c (font_make_object): New arg entity and pixelsize.
17193 (font_check_otf_features, font_check_otf): New functions.
17194 (font_match_p): Check :lang, :script, and :otf properties.
17195
17196 * xfont.c (xfont_open): Adjust it for the change of
17197 font_make_object.
17198 (xfont_text_extents): Fix initial setting of metrics.
17199
17200 * ftfont.c (struct ftfont_info): New member index, delete member
17201 fc_charset_idx. Make the member order compatible with struct
17202 xftfont_info.
17203 (fc_charset_table): Change charset names to registry names.
17204 (ftfont_pattern_entity): Delete the args registry and
17205 fc_charset_idx. Change the value of :font-entity property
17206 to (FONTNAME . INDEX). Always set :registry property to
17207 `iso10646-1'.
17208 (struct ftfont_cache_data): New struct.
17209 (ftfont_lookup_cache): New arg for_face.
17210 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
17211 (ftfont_driver): Set the member otf_capability.
17212 (ftfont_get_charset): Adjust it for the change of
17213 fc_charset_table.
17214 (OTF_TAG_SYM): New macro.
17215 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
17216 for the change of fc_charset_table.
17217 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
17218 ftfont_pattern_entity. Add FC_INDEX to objset.
17219 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
17220 and ftfont_pattern_entity.
17221 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
17222 font_make_object, struct ftfont_info.
17223 (ftfont_has_char): Use ftfont_get_fc_charset.
17224 (ftfont_otf_features, ftfont_otf_capability): New functions.
17225 (ftfont_shape): Use ftfont_get_otf.
17226 (ftfont_text_extents): Fix initial setting of metrics.
17227
17228 * xftfont.c (struct xftfont_info): New member ft_size. Make the
17229 member order compatible with struct ftfont_info.
bba3e508
SM
17230 (xftfont_open): Add FC_CHARSET to the pattern.
17231 Set xftfont_info->ft_size. Don't unlock the face. Check BDF
aac0c6e3
MR
17232 properties if appropriate.
17233 (xftfont_close): Unlock the face.
17234 (xftfont_anchor_point, xftfont_shape): Deleted.
17235 (syms_of_xftfont): Don't set members anchor_point and shape of
17236 xftfont_driver.
17237
17238 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
17239 font_make_object.
17240
17241 * w32font.c (w32font_open): Adjust it for the change of
17242 font_make_object.
17243 (w32font_open_internal): Don't set properties of font_object here.
17244
172452008-07-08 Chong Yidong <cyd@stupidchicken.com>
17246
17247 * macfns.c (x_create_tip_frame):
17248 * w32fns.c (x_create_tip_frame):
17249 * xfns.c (x_create_tip_frame): Pass parameter argument to
17250 face-set-after-frame-default.
17251
17252 * xfaces.c (Finternal_merge_in_global_face): Save merged
17253 attributes for the default face back into the face vector.
17254
172552008-07-08 Andreas Schwab <schwab@suse.de>
17256
17257 * fontset.h: Declare fontset_from_font. Don't declare
17258 new_fontset_from_font and fontset_from_font_name.
17259 * xterm.c: Include "fontset.h".
17260 * Makefile.in (xterm.o): Update dependencies.
17261
172622008-07-08 Glenn Morris <rgm@gnu.org>
17263
17264 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
17265 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
17266
172672008-07-07 Chong Yidong <cyd@stupidchicken.com>
17268
17269 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
17270 (x_set_frame_parameters): Don't bind it.
17271
172722008-07-07 Juanma Barranquero <lekktu@gmail.com>
17273
17274 * w32fns.c (map_w32_filename): Declare extern.
17275
172762008-07-07 Jason Rumney <jasonr@gnu.org>
17277
17278 * w32term.c (WS_EX_LAYERED): Define if not already.
17279
172802008-07-06 Chong Yidong <cyd@stupidchicken.com>
17281
17282 * xfaces.c (set_font_frame_param): Don't try to set the font
17283 parameter if it is still unspecified in the lface.
17284
172852008-07-05 Chong Yidong <cyd@stupidchicken.com>
17286
17287 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
17288 face if it didn't already exist.
17289
17290 * xdisp.c (try_window_id): Give up if word-wrapping is on.
17291
172922008-07-05 Andreas Schwab <schwab@suse.de>
17293
17294 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
17295
172962008-07-05 Chong Yidong <cyd@stupidchicken.com>
17297
17298 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
17299 word-wrapping.
17300 (IT_DISPLAYING_WHITESPACE): New macro.
17301 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
17302 when word-wrapping. Simplify word-wrapping logic. Use correct
17303 pixel positions when saving copies of the iterator.
17304 (display_line): Use proper wrap point if the last character on a
17305 line was preceded by whitespace.
17306
173072008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
17308
17309 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
17310
173112008-07-04 Kenichi Handa <handa@m17n.org>
17312
17313 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
17314
17315 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
17316
173172008-07-02 Jason Rumney <jasonr@gnu.org>
17318
17319 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 17320 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
17321
17322 * xdisp.c (next_element_from_display_vector): Move assignment out
17323 of if statement.
17324
173252008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
17326
17327 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
17328
17329 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
17330 (syms_of_fileio): Initialize and export them.
17331 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
17332
17333 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
17334 (Fsystem_move_file_to_trash): New function.
17335 (syms_of_w32fns): Export it to lisp.
17336
173372008-07-01 Jason Rumney <jasonr@gnu.org>
17338
17339 * w32font.c (w32font_text_extents): Don't count overhang as part
17340 of width.
17341
173422008-06-30 Miles Bader <miles@gnu.org>
17343
17344 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
17345 Add `avoid_cursor_p' field.
17346
17347 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
17348 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
17349 (append_glyph, append_composite_glyph, produce_image_glyph)
17350 (append_stretch_glyph): Initialize avoid_cursor_p.
17351 (get_it_property): Rename from `get_line_height_property'.
17352 (x_produce_glyphs): Use get_it_property.
17353 (handle_line_prefix, push_display_prop): New functions.
17354 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
17355 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
17356 New variables.
17357 (syms_of_xdisp): Initialize them.
17358
173592008-06-30 Kenichi Handa <handa@m17n.org>
17360
17361 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
17362 XftDefaultSubstitute (they are called in XftFontMatch).
17363 (xftfont_open): Fix args to ftfont_font_format.
17364
17365 * ftfont.c (fc_charset_table): New member lang.
17366 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 17367 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
17368 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
17369 (ftfont_open): Fix args to ftfont_font_format.
17370 (ftfont_font_format): New arg filename.
17371
173722008-06-30 Chong Yidong <cyd@stupidchicken.com>
17373
17374 * xfaces.c (Finternal_merge_in_global_face): If default face was
17375 modified, realize it again. Update the font face attribute.
17376
173772008-06-29 Jason Rumney <jasonr@gnu.org>
17378
17379 * w32term.c (x_set_frame_alpha): Fix logic.
17380
173812008-06-29 Kenichi Handa <handa@m17n.org>
17382
17383 * fontset.c (Finternal_char_font): Return font-object instead of
17384 font-name.
17385
17386 * composite.c (get_composition_id): Fix the width calculation for TAB.
17387
173882008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
17389
17390 * indent.c (Fvertical_motion): Properly handle float column arg.
17391
173922008-06-28 Jason Rumney <jasonr@gnu.org>
17393
17394 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
17395 (pfnSetLayeredWindowAttributes): New function pointer.
17396 (w32_initialize): Initialize it when supported.
17397 (x_set_frame_alpha): New function.
17398
17399 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
17400 (w32_frame_parm_handlers): Set alpha handler.
17401
17402 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
17403
174042008-06-27 Jason Rumney <jasonr@gnu.org>
17405
17406 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
17407 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
17408 (w32_to_x_charset, x_to_w32_charset)
17409 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
17410 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
17411 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
17412 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
17413 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
17414 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
17415 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
17416 (Qw32_charset_unicode): Remove.
17417 (syms_of_w32fns): Update for above changes.
17418
17419 * w32font.c (w32_to_x_charset, x_to_w32_charset)
17420 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
17421 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
17422 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
17423 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
17424 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
17425 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
17426 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
17427 (syms_of_w32font): Update for above changes.
17428
174292008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
17430
17431 * s/usg5-4.h: Fix previous change: keep the correct branch of a
17432 removed #if.
17433 (USG_SHARED_LIBRARIES): Remove duplicate definition.
17434
174352008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 17436 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
17437
17438 * makefile.w32-in (LOCAL_FLAGS):
17439 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
17440
17441 * sysdep.c (_spawnlp, _getpid):
17442 Declare with explicit _cdecl instead of _CRTAPI1.
17443
17444 * editfns.c (Fget_internal_run_time):
17445 Check for WINDOWSNT with #ifdef, not #if.
17446
174472008-06-26 Jason Rumney <jasonr@gnu.org>
17448
17449 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
17450
17451 * w32term.c (x_draw_glyph_string_foreground)
17452 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
17453 Use FONT_HANDLE macro.
17454 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
17455
17456 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
17457 (uniscribe_encode_char): Use FONT_HANDLE macro.
17458
17459 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
17460 (w32font_text_extents): Use precast w32_font.
17461 (w32font_close): Free cached metrics.
17462 (w32font_open_internal): Allocate space for name on stack.
17463
174642008-06-26 Chong Yidong <cyd@stupidchicken.com>
17465
17466 * xdisp.c (extend_face_to_end_of_line): Fix last change.
17467
174682008-06-26 Jason Rumney <jasonr@gnu.org>
17469
17470 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
17471 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
17472
174732008-06-26 Juanma Barranquero <lekktu@gmail.com>
17474
17475 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
17476
174772008-06-26 Jason Rumney <jasonr@gnu.org>
17478
17479 * w32bdf.c, w32bdf.h: Remove obsolete files.
17480
17481 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
17482
17483 * w32gui.h: Don't include w32bdf.h.
17484 (XCharStruct, enum w32_char_font_type, W32FontStruct):
17485 Remove obsolete font support.
17486
17487 * w32font.h (struct w32font_info): Remove compat_w32_font.
17488 Add hfont member.
17489 (FONT_COMPAT): Remove obsolete macro.
17490
17491 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
17492 (w32font_encode_char, w32font_text_extents): Use new hfont member.
17493 (w32font_open_internal): Remove compat code. Set new hfont member.
17494 (Fx_select_font): Use new hfont member.
17495
17496 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
17497 (uniscribe_encode_char): Use new hfont member.
17498
17499 * w32term.c (x_draw_glyph_string_foreground)
17500 (x_draw_composite_glyph_string_foreground): Use new hfont member.
17501 (x_draw_glyph_string): Use metrics in w32font_info.
17502
175032008-06-26 Kenichi Handa <handa@m17n.org>
17504
17505 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
17506
175072008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
17508
17509 * unexnext.c:
17510 * m/ews4800.h:
17511 * m/hp9000s300.h:
17512 * m/ibm370aix.h:
17513 * m/mips-siemens.h:
17514 * m/ncr386.h:
17515 * m/next.h:
17516 * m/pmax.h:
17517 * m/powerpcle.h:
17518 * m/tandem-s2.h:
17519 * s/386bsd.h:
17520 * s/bsd386.h:
17521 * s/bsd4-1.h:
17522 * s/bsd4-2.h:
17523 * s/bsdos2-1.h:
17524 * s/bsdos2.h:
17525 * s/bsdos3.h:
17526 * s/bsdos4.h:
17527 * s/nextstep.h:
17528 * s/ultrix4-3.h:
17529 * s/usg5-0.h:
17530 * s/usg5-2-2.h:
17531 * s/usg5-2.h:
17532 * s/usg5-4-3.h:
17533 * s/ux4800.h:
17534 * s/uxpds.h:
17535 * s/uxpv.h: Remove support for obsolete systems.
17536 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 17537 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
17538 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
17539 Remove, insert contents in s/aix4-2.h.
17540 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
17541 * s/bsd4-3.h: Rename to ...
17542 * s/bsd-common.h: ... this.
17543 * data.c:
17544 * doc.c:
17545 * ecrt0.c:
17546 * emacs.c:
17547 * fileio.c:
17548 * floatfns.c:
17549 * keyboard.c:
17550 * mem-limits.h:
17551 * print.c:
17552 * process.c:
17553 * sysdep.c:
17554 * syssignal.h:
17555 * systty.h:
17556 * syswait.h:
17557 * term.c:
17558 * unexec.c:
17559 * unexelf.c:
17560 * unexhp9k800.c:
17561 * m/hp800.h:
17562 * m/ibmrs6000.h:
17563 * m/mips.h:
17564 * m/vax.h:
17565 * s/darwin.h:
17566 * s/freebsd.h:
17567 * s/gnu.h:
17568 * s/ms-w32.h:
17569 * s/msdos.h:
17570 * s/netbsd.h:
17571 * s/template.h: Remove references to obsolete variables.
17572
17573 * Makefile.in: Add dependencies for all unexec files.
17574 (admindir): Remove unused variable.
17575 (UNEXEC_SRC): Remove references.
17576
175772008-06-25 Chong Yidong <cyd@stupidchicken.com>
17578
17579 * xfns.c (x_default_font_parameter): If Xft is available, first
17580 try Monospace-12 for the default font.
17581
175822008-06-25 Jason Rumney <jasonr@gnu.org>
17583
17584 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
17585
175862008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
17587
17588 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
17589
17590 * buffer.c (syms_of_buffer): Remove default-word-wrap.
17591
175922008-06-25 Juanma Barranquero <lekktu@gmail.com>
17593
17594 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
17595 <scroll-conservatively>: Fix typo in docstring.
17596
17597 * xselect.c (Fx_send_client_event): Doc fix.
17598
175992008-06-25 Kenichi Handa <handa@m17n.org>
17600
17601 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
17602
17603 * font.c (font_parse_fcname): Remove unused variables.
17604 (font_sort_entites): Delete the arg SPEC. Caller changed.
17605 Fix for the case of ! best_only.
17606 (font_delete_unmatched): Check DPI and AVGWIDTH too.
17607
17608 * lisp.h (Fstring_to_unibyte): EXFUN it.
17609
17610 * character.h (str_to_unibyte): Extern it.
17611
17612 * character.c (str_to_unibyte): New function.
17613
17614 * fns.c (Fstring_to_unibyte): New function.
17615 (syms_of_fns): Defsubr it.
17616
176172008-06-24 Kenichi Handa <handa@m17n.org>
17618
17619 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
17620 DPI too.
17621 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
17622
176232008-06-24 Andreas Schwab <schwab@suse.de>
17624
17625 * Makefile.in (${lispsource}loaddefs.el): Rename from
17626 ../lisp/loaddefs.el.
17627 (bootstrap-clean): Do what distclean does but don't remove
17628 Makefile.
17629 (distclean): Depend on bootstrap-clean and remove Makefile.
17630
176312008-06-24 Chong Yidong <cyd@stupidchicken.com>
17632
17633 * buffer.h (struct buffer): New member word_wrap.
17634
17635 * buffer.c (syms_of_buffer): New variables default-word-wrap and
17636 word-wrap.
17637 (init_buffer_once): Initialize them.
17638
17639 * dispextern.h (struct it): Replace bool truncate_lines_p with a
17640 line_wrap enum possessing three possible values.
17641
17642 * termopts.h: Replace truncate_partial_width_windows with
17643 Vtruncate_partial_width_windows.
17644
17645 * dispnew.c (direct_output_for_insert): Avoid direct output when
17646 inserting a space with word wrap on.
17647
17648 * indent.c (compute_motion): Obey integer values of
17649 truncate-partial-width-windows.
17650
17651 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
17652 replacing truncate_partial_width_windows.
17653 (init_iterator): If Vtruncate_partial_width_windows is an integer,
17654 truncate only if the window width is below that integer.
17655 (start_display, resize_mini_window, produce_stretch_glyph)
17656 (display_string, move_it_in_display_line_to): Use line_wrap.
bba3e508
SM
17657 (back_to_previous_visible_line_start, reseat_1):
17658 Reset string_from_display_prop_p.
aac0c6e3
MR
17659 (display_line): Extend default face to end of line when wrapping.
17660
176612008-06-24 Kim F. Storm <storm@cua.dk>
17662
17663 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
17664 to wrap continued lines at word boundaries.
17665
176662008-06-24 Jason Rumney <jasonr@gnu.org>
17667
17668 * font.c (Ffont_face_attributes): Multiply pixel size before point
17669 conversion to avoid multiplying rounding error.
17670
176712008-06-23 Jason Rumney <jasonr@gnu.org>
17672
17673 * w32term.c (x_draw_glyph_string_background)
17674 (x_draw_glyph_string): Remove old bdf font code.
17675
17676 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
17677
176782008-06-22 Kenichi Handa <handa@m17n.org>
17679
17680 * font.c (font_find_for_lface): Try the adstyle specified in
17681 the property of LFACE_FONT of LFACE (if any).
17682
176832008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 17684 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
17685
17686 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
17687
176882008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
17689
17690 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
17691 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
17692 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
17693 (witness-emacs): Remove.
17694 (lisp, shortlisp): Move loaddefs.el earlier.
17695 (mostlyclean): Forget about witness-emacs.
17696
176972008-06-22 Glenn Morris <rgm@gnu.org>
17698
17699 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
17700 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
17701
177022008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
17703
17704 * Makefile.in (PRECOMP): Remove.
17705 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
17706 (witness-emacs): Run `compile-first'.
17707 (.el.elc): Use the new compile-onefile target.
17708
177092008-06-21 Kenichi Handa <handa@m17n.org>
17710
17711 * xftfont.c (xftfont_open): Handle QCembolden only when
17712 FC_EMBOLDEN is defined.
17713
177142008-06-21 Andreas Schwab <schwab@suse.de>
17715
17716 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
17717 (.el.elc): Likewise.
17718
177192008-06-21 Miles Bader <miles@gnu.org>
17720
17721 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
17722 build dir, not the lisp source dir.
17723
177242008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
17725
17726 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
17727 (bootstrapclean): Remove.
17728 (.el.elc): New rule.
17729 (PRECOMP): New var.
17730 (../lisp/subdirs.el): Remove.
17731 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
17732 (witness-emacs): New target.
17733 (mostlyclean): Remove witness-emacs as well.
17734 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
17735 Add witness-emacs dependency.
17736
177372008-06-20 Chong Yidong <cyd@stupidchicken.com>
17738
17739 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
17740 defined by the font.
17741
177422008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
17743
17744 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
17745 (bootstrap-clean): New target that keeps TAGS around.
17746 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
17747 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
17748
177492008-06-20 Jason Rumney <jasonr@gnu.org>
17750
17751 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
17752 Remove obsolete font code.
17753
17754 * w32font.c (font_matches_spec): Use csb bitfield from font signature
17755 to determine language support.
17756
177572008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
17758
17759 * sysdep.c (cfsetspeed): New fun extracted from the code.
17760 (cfmakeraw): Move before first use.
17761
177622008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
17763
17764 * sysdep.c (cfmakeraw): Provide fallback implementation.
17765 (serial_configure): Provide fallback implementation of cfsetspeed.
17766
177672008-06-20 Kenichi Handa <handa@m17n.org>
17768
17769 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
17770 the pattern.
17771
17772 * fontset.c (fontset_from_font): Copy font_spec before changing
17773 the elements.
17774
17775 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
17776
177772008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
17778
17779 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
17780 for explicit `font' parameters.
17781
17782 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
17783
177842008-06-19 Kenichi Handa <handa@m17n.org>
17785
17786 * frame.c: Include <ctype.h>.
17787 (x_set_font_backend): Allow spacing characters in the X resource
17788 for FontBackend.
17789
177902008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
17791
17792 * w32fns.c, xfns.c (Qfont_param): New var.
17793 (syms_of_w32fns): Initialize it.
17794 (x_default_font_parameter): Record explicit `font' into
17795 `font-parameter'.
17796
177972008-06-18 Kenichi Handa <handa@m17n.org>
17798
17799 * font.c (font_parse_xlfd): Fix previous change.
17800 (font_parse_fcname): Don't use :fc-unknown-spec.
17801 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
17802 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
17803 (font_add_log): Prepend the driver name to the resulting fonts.
17804
17805 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
17806 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
17807 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
17808
17809 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
17810 (QCembolden): New variables.
17811 (syms_of_xftfont): DEFSYM them.
17812 (xftfont_open): Call XftFontMatch. Don't trust the result of
17813 XftTextExtents8 if the pixel_size is less than 5.
17814
178152008-06-18 Andreas Schwab <schwab@suse.de>
17816
17817 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
17818 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
17819
178202008-06-18 Jason Rumney <jasonr@gnu.org>
17821
17822 * w32font.c (w32font_list, w32font_match): Add logging.
17823
17824 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
17825
178262008-06-17 Chong Yidong <cyd@stupidchicken.com>
17827
17828 * font.c (font_parse_fcname): Store divider characters for
17829 unknown-spec list. For known key symbols, intern using correct
17830 symbol name.
17831
178322008-06-17 Kenichi Handa <handa@m17n.org>
17833
17834 * xfaces.c (realize_default_face): If the frame is not on window
17835 system, set the fontset of face to nil.
17836
178372008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
17838
17839 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
17840
178412008-06-16 Juanma Barranquero <lekktu@gmail.com>
17842
17843 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
17844 (build_font_name_from_vector): Delete externs.
17845
17846 * xfaces.c (struct font_name): Don't declare.
17847
178482008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
17849
17850 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
17851
178522008-06-16 Chong Yidong <cyd@stupidchicken.com>
17853
17854 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
17855
178562008-06-16 Juanma Barranquero <lekktu@gmail.com>
17857
17858 * font.c (Ffont_spec): Fix usage in docstring.
17859 (Ffont_face_attributes): Doc fix.
17860
178612008-06-16 Andreas Schwab <schwab@suse.de>
17862
17863 * font.c (Ffont_face_attributes): Fix definition.
17864
178652008-06-16 Jason Rumney <jasonr@gnu.org>
17866
17867 * font.h (font_style_symbolic_from_value): Remove.
17868
17869 * font.c (font_style_symbolic_from_value): Remove.
17870 (font_style_symbolic): Revert to pre 2008-06-13 version.
17871
17872 * w32font.c (w32_to_fc_weight): New function.
17873 (w32font_full_name, logfont_to_fcname): Use it.
17874
178752008-06-16 Kenichi Handa <handa@m17n.org>
17876
17877 * font.c (font_check_object): Delete it.
17878 (font_clear_cache): Check if a font-object is alive.
17879 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
17880 font-object to nil.
17881 (font_close_object): Don't check FONT_CLOSE_OBJECT.
17882 (font_at): Don't call font_check_object.
17883 (Ffont_get): Return a symbol for :weight, :slant, and :width.
17884
178852008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
17886
17887 * puresize.h (BASE_PURESIZE): Increase to 1230000.
17888
178892008-06-16 Chong Yidong <cyd@stupidchicken.com>
17890
17891 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
17892
178932008-06-15 Chong Yidong <cyd@stupidchicken.com>
17894
17895 * font.c (font_parse_fcname): Only one decimal point.
17896 (font_unparse_fcname): Handle data in family and foundry indices
17897 as symbols, not strings.
17898 (font_unparse_gtkname, Ffont_face_attributes): New functions.
17899
17900 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
17901
17902 * font.h (font_unparse_gtkname): Add prototype.
17903
179042008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
17905
17906 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
17907
179082008-06-15 Andreas Schwab <schwab@suse.de>
17909
17910 * font.c (font_update_drivers): Fix crash when no drivers match.
17911
179122008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
17913
17914 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
17915 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
17916
179172008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
17918
17919 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
17920
179212008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
17922
17923 * process.c (Fserial_process_configure, Fprocess_send_eof):
17924 Use EQ to compare Lisp_Objects.
17925
179262008-06-13 Jason Rumney <jasonr@gnu.org>
17927
17928 * w32fns.c (Fw32_select_font): Remove old font API function.
17929
17930 * w32font.c (logfont_to_fcname): New function.
17931 (Fx_select_font): New font dialog function compatible with
17932 GTK/fontconfig version.
17933
17934 * font.c (font_style_symbolic_from_value): New function.
17935 (font_style_symbolic): Use it.
17936
17937 * font.h (font_style_symbolic_from_value): Declare new function.
17938
179392008-06-13 Juanma Barranquero <lekktu@gmail.com>
17940
17941 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
17942 <font-width-table>: Fix typos in docstrings.
17943
179442008-06-13 Daniel Engeler <engeler@gmail.com>
17945
17946 These changes add serial port access.
17947 * process.c: Add HAVE_SERIAL.
17948 (Fdelete_process, Fprocess_status, Fset_process_buffer)
17949 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
17950 (list_processes_1, select_wrapper, Fstop_process)
17951 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
17952 (status_notify): Modify to handle serial processes.
17953 [HAVE_SERIAL] (Fserial_process_configure)
17954 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
17955 New functions.
17956 * process.h (struct Lisp_Process): Add `type'.
17957 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
17958 New functions.
17959 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
17960 serial ports.
b71ac3dd 17961 (serial_open, serial_configure): New functions.
aac0c6e3
MR
17962 * w32.h: Add FILE_SERIAL.
17963 (struct _child_process): Add ovl_read, ovl_write.
17964
179652008-06-13 Kenichi Handa <handa@m17n.org>
17966
17967 * dispextern.h (enum lface_attribute_index): New member
17968 LFACE_FOUNDRY_INDEX.
17969
17970 * font.c (font_score): Delete arg alternate_families. Check only
17971 weight, slant, width, and size. Ignore the difference of alias
17972 style symbols.
17973 (font_sort_entites): Adjust for the above change. Reflect the
17974 order of font-driver to scores.
17975 (font_list_entities): Don't check alternate_familes here.
17976 (font_clear_prop): Handle foundry.
17977 (font_update_lface): Don't parse "foundry-family" form here.
17978 Handle FONT_FOUNDRY_INDEX.
17979 (font_find_for_lface): Likewise. Handle alternate families here.
17980 If registry is nil, try iso8859-1 and ascii-0.
17981 (font_open_for_lface): Pay attention to size in ENTITY.
17982 (font_open_by_name): Simplify by calling font_load_for_lface.
17983 (free_font_driver_list): Delete it.
17984 (font_update_drivers): Preserve the order of backends.
17985 (syms_of_font): Setting of sort_shift_bits adjusted for the change
17986 of font_score and font_sort_entites.
17987 (font_update_sort_order): Likewise.
17988
17989 * xfaces.c (LFACE_FOUNDRY): New macro.
17990 (check_lface_attrs): Check foundry.
17991 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
17992 (merge_face_vectors): Check foundry.
17993 (merge_face_ref): Likewise.
17994 (Finternal_set_lisp_face_attribute): Likewise.
17995 (x_update_menu_appearance): Likewise.
17996 (Finternal_get_lisp_face_attribute): Likewise.
17997 (lface_hash): Likewise.
17998 (lface_same_font_attributes_p): Likewise.
17999 (x_supports_face_attributes_p): Likewise.
18000 (tty_supports_face_attributes_p): Likewise.
18001 (Finternal_set_alternative_font_family_alist): Intern strings.
18002 (Finternal_set_alternative_font_registry_alist): Downcase strings.
18003 (realize_default_face): Set LFACE_FOUNDRY (lface).
18004
18005 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
18006 font-driver at first.
18007
18008 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
18009
180102008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
18011
18012 * lread.c (Fload): Use xfree, not free on saved_doc_string.
18013
180142008-06-12 Jim Meyering <meyering@redhat.com>
18015
18016 Make unexec_free handle NULL the same way free does.
18017 * unexmacosx.c (unexec_free): Ignore a NULL argument.
18018
180192008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
18020
18021 * character.h (CHAR_TO_BYTE_SAFE): New macro.
18022 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
18023 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
18024 (WEAK_ALIAS): Simplify.
18025 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
18026 when searching a unibyte buffer.
18027
180282008-06-12 Chong Yidong <cyd@stupidchicken.com>
18029
18030 * xfns.c (Fx_select_font): Rename from x-font-dialog.
18031
180322008-06-12 Juanma Barranquero <lekktu@gmail.com>
18033
18034 * w32font.c: Include ctype.h.
18035
180362008-06-11 Jason Rumney <jasonr@gnu.org>
18037
18038 * w32font.c (w32font_encode_char): Detect missing glyphs that are
18039 misreported as space.
18040 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
18041 as aliases for registry iso10646-1.
18042
180432008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
18044
18045 * buffer.c (clone_per_buffer_values): Skip `name'.
18046
180472008-06-11 Chong Yidong <cyd@stupidchicken.com>
18048
18049 * font.c (font_parse_fcname): Fix last change; accept decimal
18050 points in font size.
18051
180522008-06-10 Jason Rumney <jasonr@gnu.org>
18053
18054 * w32uniscribe.c (add_opentype_font_name_to_list):
18055 Skip non unicode fonts.
18056
180572008-06-10 Chong Yidong <cyd@stupidchicken.com>
18058
18059 * xfns.c (Fx_font_dialog): New function.
18060
18061 * gtkutil.c (xg_dialog_response_cb): Rename from
18062 xg_file_response_callback.
18063 (pop_down_dialog): Rename from pop_down_file_dialog.
18064 (xg_get_file_name): Callers changed.
18065 (xg_get_font_name): New function.
18066
18067 * gtkutil.h (xg_get_font_name): Insert prototype.
18068
180692008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
18070
18071 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
18072 x_underline_minimum_display_offset.
18073 (syms_of_xdisp): Declare it here rather than in xterm.c.
18074 * dispextern.h (underline_minimum_offset): Declare it.
18075 * w32term.c (x_draw_glyph_string): Use it.
18076 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
18077 (syms_of_xterm): Don't declare it any more.
18078 (x_draw_glyph_string): Adjust to the new name.
18079
8719abec 180802008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
18081
18082 * xterm.c (x_underline_minimum_display_offset): New var.
18083 (x_draw_glyph_string): Use it.
18084 (syms_of_xterm): Declare it.
18085
180862008-06-10 Chong Yidong <cyd@stupidchicken.com>
18087
18088 * font.c (font_parse_fcname): Accept GTK-style font names too.
18089
180902008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
18091
18092 * dired.c (file_name_completion): Don't return t if the match is exact
18093 but with different capitalization.
18094 * minibuf.c (Ftry_completion): Simplify.
18095
18096 * window.c (Vwindow_point_insertion_type): New var.
18097 (set_window_buffer): Use it.
18098 (syms_of_window): Init and export it to Lisp.
18099
181002008-06-10 Kenichi Handa <handa@m17n.org>
18101
18102 * font.h (font_intern_prop): Prototype adjusted.
18103
18104 * font.c (font_intern_prop): New arg force_symbol.
18105 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
18106 Adjust for the change of font_intern_prop.
18107
18108 * ftfont.c (ftfont_pattern_entity):
18109 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
18110 (w32_registry):
18111 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
18112 the change of font_intern_prop.
18113
181142008-06-09 Juanma Barranquero <lekktu@gmail.com>
18115
18116 * w32menu.c (digest_single_submenu): Declare extern.
18117
181182008-06-09 Jason Rumney <jasonr@gnu.org>
18119
18120 * w32term.c (x_make_frame_visible): Use alternate restore flags.
18121
18122 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
18123 (parse_single_submenu): Remove.
18124 (digest_single_submenu): Remove.
18125 (syms_of_w32menu): Don't initialise variables that have moved
18126 to menu.c.
18127 (set_frame_menubar): Sync with version in xmenu.c.
18128 (w32_menu_show): Sync with xmenu_show in xmenu.c.
18129
18130 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
18131 Make static again.
18132
181332008-06-09 Jason Rumney <jasonr@gnu.org>
18134
18135 Changes to w32 files related to the move of common menu code
18136 to menu.c on 2008-06-08 by Chong Yidong.
18137
18138 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
18139 defs to w32gui.h.
18140 (single_keymap_panes, push_menu_item, push_menu_pane):
18141 Make globally visible.
18142
18143 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
18144 (local_free, malloc_widget_value, free_widget_value)
18145 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
18146 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
18147 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
18148 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
18149 (menu_items, menu_items_allocated, menu_items_used)
18150 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
18151 (init_menu_items, finish_menu_items, discard_menu_items)
18152 (grow_menu_items, push_submenu_start, push_submenu_end)
18153 (push_left_right_boundary, push_menu_pane, push_menu_item)
18154 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
18155 (free_menubar_widget_tree_value, parse_single_submenu)
18156 (update_submenu_strings): Remove functions.
18157 (xmalloc_widget_value): Remove and declare extern.
18158
18159 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
18160 (OBJ1): Build it.
18161
18162 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
18163 (local_heap, local_alloc, local_free, malloc_widget_value)
18164 (free_widget_value): Define here.
18165
181662008-06-09 Kenichi Handa <handa@m17n.org>
18167
18168 * font.h (Qascii_0): Extern it.
18169
18170 * font.c (Qascii_0): New variable.
18171 (syms_of_font): DEFSYM it.
18172 (font_open_by_name): If the registry "iso8859-1" fails, try also
18173 "ascii-0".
18174
18175 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
18176
181772008-06-08 Kenichi Handa <handa@m17n.org>
18178
18179 * .gdbinit (xfont): New command.
18180
181812008-06-08 Andreas Schwab <schwab@suse.de>
18182
18183 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
18184 * Makefile.in (menu.o): Update dependencies.
18185
18186 * Makefile.in (obj): Always add menu.o.
18187 * emacs.c (main): Always call syms_of_menu.
18188 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
18189
181902008-06-08 Chong Yidong <cyd@stupidchicken.com>
18191
18192 * Makefile.in: Compile menu.c.
18193
18194 * lisp.h: Declare syms_of_menu.
18195
18196 * emacs.c (main): Call syms_of_menu.
18197
18198 * keyboard.h: Relocate platform-independent menu definitions from
18199 xmenu.c.
18200
18201 * menu.c: New file. Relocate platform-independent menu
18202 definitions from xmenu.c. Suggested by Adrian Robert.
18203
18204 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 18205 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
18206 (menu_items_used, menu_items_n_panes)
18207 (menu_items_submenu_depth): Move to keyboard.h.
18208 (init_menu_items, finish_menu_items, unuse_menu_items)
18209 (discard_menu_items, restore_menu_items, save_menu_items)
18210 (grow_menu_items, push_submenu_start, push_submenu_end)
18211 (push_left_right_boundary, push_menu_pane, push_menu_item)
18212 (keymap_panes, single_keymap_panes, single_menu_item)
18213 (list_of_panes, list_of_items, find_and_call_menu_selection)
18214 (xmalloc_widget_value, free_menubar_widget_value_tree)
18215 (parse_single_submenu, digest_single_submenu)
18216 (update_submenu_strings): Move to menu.c.
18217
182182008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
18219
18220 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
18221
182222008-06-06 Miles Bader <miles@gnu.org>
18223
18224 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
18225 face, not frame default.
18226
182272008-06-05 Martin Rudalics <rudalics@gmx.at>
18228
18229 * window.c (pop_up_windows, pop_up_frames)
18230 (display_buffer_reuse_frames, Vpop_up_frame_function)
18231 (Vdisplay_buffer_function, Veven_window_heights)
18232 (Vspecial_display_buffer_names, Vspecial_display_regexps)
18233 (Vspecial_display_function, Vsame_window_buffer_names)
18234 (Vsame_window_regexps, split_height_threshold)
18235 (Vsplit_window_preferred_function): Move those vars to window.el.
18236 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
18237 (Fdisplay_buffer): Move those functions to window.el.
18238 (syms_of_window): Remove corresponding declarations.
18239 (display_buffer): New function.
18240 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
18241 * dispnew.c (Flast_nonminibuf_frame): New function.
18242 * buffer.c (Fpop_to_buffer): Move to window.el.
18243
182442008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
18245
18246 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
18247
182482008-06-05 Kenichi Handa <handa@m17n.org>
18249
18250 * coding.c (detect_coding): Fix previous change.
18251 (detect_coding_system): Likewise.
18252
182532008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
18254
18255 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
18256
18257 * keymap.c (Vminibuffer_local_filename_must_match_map):
18258 Rename from Vminibuffer_local_must_match_filename_map.
18259 (syms_of_keymap):
18260 * minibuf.c (Fcompleting_read): Adjust accordingly.
18261 * commands.h: Rename declaration as well.
18262
182632008-06-05 Kenichi Handa <handa@m17n.org>
18264
18265 * font.c (Ffont_spec): Don't use font_parse_family_registry for
18266 family name.
18267 (Ffont_put): Likewise.
18268
18269 * fontset.c (fontset_find_font): Call font_open_for_lface with the
18270 current font-spec.
18271
18272 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
18273 is unspecified.
18274
18275 * xfaces.c (realize_x_face): If the font-related face attributes
18276 are the same as those of default face, realize a new fontset from
18277 default->fontset.
18278 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
18279
182802008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
18281
18282 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
18283 (move_it_in_display_line): New wrapper.
18284
18285 * window.c (window_scroll_pixel_based_preserve_x)
18286 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
18287 (window_scroll_pixel_based, window_scroll_line_based):
18288 Use them to preserve column positions.
18289 (syms_of_window): Initialize them.
18290
18291 * indent.c (Fvertical_motion): Extend first arg to allow passing an
18292 (HPOS . VPOS) pair.
18293
18294 * dispextern.h (move_it_in_display_line): Declare.
18295
182962008-06-05 Juanma Barranquero <lekktu@gmail.com>
18297
18298 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
18299 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
18300 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
18301
183022008-06-04 Juanma Barranquero <lekktu@gmail.com>
18303
18304 * window.c (Fset_window_parameter): Doc fix.
18305 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
18306
183072008-06-04 Joakim Verona <joakim@verona.se>
18308
18309 * window.h (struct window): Add new member window_parameters.
18310
18311 * window.c (Fwindow_parameters, Fwindow_parameter)
18312 (Fset_window_parameter): New defuns.
18313 (syms_of_window): Defsubr the new defuns.
18314 (make_window): Initialize window_parameters to nil.
18315
183162008-06-04 John Paul Wallington <jpw@pobox.com>
18317
18318 * eval.c (Fdefmacro): Doc fix.
18319
183202008-06-04 Kenichi Handa <handa@m17n.org>
18321
18322 * coding.c (detect_coding): Fix handling of coding->head_ascii.
18323 Be sure to call setup_coding_system when we find a proper coding system.
18324 (detect_coding_system): Fix handling of coding->head_ascii.
18325
183262008-06-03 Andreas Schwab <schwab@suse.de>
18327
18328 * font.c (font_prop_validate_spacing): Fix last change.
18329
183302008-06-03 Kenichi Handa <handa@m17n.org>
18331
18332 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
18333 (font_parse_fcname): Fix handling of unknown key.
18334
18335 * xfont.c (xfont_list): Try an alias.
18336
18337 * charset.c (char_charset): Return NULL if the arg charset_list is
18338 specified and C doesn't belong to any of them.
18339
183402008-06-02 Chip Coldwell <coldwell@redhat.com>
18341
18342 * font.c (font_pixel_size): Don't take cdr of an integer.
18343
183442008-06-02 Jim Meyering <meyering@redhat.com>
18345
18346 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
18347 * alloc.c (xfree): Return right away for a NULL arg.
18348 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
18349 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
18350 * mac.c (create_apple_event_from_event_ref): Likewise.
18351 (create_apple_event_from_drag_ref, cfstring_create_normalized):
18352 Likewise.
18353 * doprnt.c (doprnt1): Likewise.
18354 * frame.c (frame): Likewise.
18355 * keyboard.c (wipe_kboard): Likewise.
18356 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
18357 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
18358 * term.c (tty_default_color_capabilities, maybe_fatal)
18359 (delete_tty): Likewise.
18360 * w16select.c (string): Likewise.
18361 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
18362 * w32bdf.c (w32_free_bdf_font): Likewise.
18363 * w32fns.c (w32_unload_font): Likewise.
18364 * w32font.c (w32font_close): Likewise.
18365 * window.c (size_window): Likewise.
18366 * xselect.c (receive_incremental_selection): Likewise.
18367 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
18368 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
18369 * w32.c (stat): Likewise.
18370
18371 Remove useless if-before-free tests.
18372 * editfns.c (Fset_time_zone_rule): Likewise.
18373 * lread.c (nosuffix): Likewise.
18374 * ralloc.c (get_bloc): Likewise.
18375 * regex.c (reg_free): Likewise.
18376 * xftfont.c (xftfont_open, xftfont_close): Likewise.
18377 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
18378 * xsmfns.c (smc_save_yourself_CB): Likewise.
18379
183802008-06-02 Kenichi Handa <handa@m17n.org>
18381
18382 * font.c (font_find_for_lface): Handle float font size.
18383 (font_open_for_lface): Likewise.
18384
18385 * xfaces.c (x_supports_face_attributes_p): Check face->font before
18386 comparing the properties.
18387
183882008-06-01 Jason Rumney <jasonr@gnu.org>
18389
18390 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
18391 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
18392 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
18393 Don't add empty script list.
18394 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
18395
183962008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
18397
18398 * Makefile.in (dot, dotdot): Remove, update users.
18399 ".." has been used elsewhere in the file for a long time.
18400 (LIBXT_STATIC): Remove conditional based on unused variable.
18401
184022008-06-01 Miles Bader <miles@gnu.org>
18403
18404 * xfaces.c (Vface_remapping_alist): New variable.
18405 (syms_of_xfaces): Initialize it.
18406 (enum named_merge_point_kind): New type.
18407 (struct named_merge_point): Add `named_merge_point_kind' field.
18408 (push_named_merge_point): Make cycle detection respect different
18409 named-merge-point kinds.
18410 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
18411 Remove face-name alias resolution.
18412 (lface_from_face_name): New definition using
18413 `lface_from_face_name_no_resolve'.
18414 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
18415 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
18416 (get_lface_attributes): New definition that layers face-remapping on
18417 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
18418 (lookup_basic_face): New function.
18419 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
18420 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
18421 `get_lface_attributes'.
18422 (face_at_buffer_position): Use `lookup_basic_face' to lookup
18423 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
18424 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
18425
18426 * xdisp.c (init_iterator): Pass base_face_id through
18427 `lookup_basic_face' when we actually use it as a face-id.
18428 (handle_single_display_prop): Use `lookup_basic_face' to lookup
18429 DEFAULT_FACE_ID.
18430
18431 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
18432 lookup the initial face-id.
18433
18434 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
18435
184362008-06-01 Juanma Barranquero <lekktu@gmail.com>
18437
18438 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
18439 (Fremove_text_properties): Fix typos in docstrings.
18440
184412008-05-31 Kenichi Handa <handa@m17n.org>
18442
18443 * font.c (font_list_entities): Fix the car part of data to be
18444 stored in the cache.
18445
18446 * ftfont.c (ftfont_font_format): Don't use strcasestr.
18447
184482008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
18449
18450 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
18451 Add a `test' argument so another predicate than `equal' can be used.
18452 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
18453 (map_char_table): Remove unused vars `c' and `i'.
18454 * lisp.h (Foptimize_char_table): Adjust declaration.
18455 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
18456
184572008-05-30 Kenichi Handa <handa@m17n.org>
18458
18459 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
18460 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
18461 defined.
18462
184632008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
18464
18465 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
18466 (Fmake_variable_frame_local): Disallow mixing buffer-local and
18467 frame-local settings for the same variable.
18468
184692008-05-30 Kenichi Handa <handa@m17n.org>
18470
18471 * fontset.c (Ffont_info): Move to font.c.
18472 (syms_of_fontset): Delete defsubr of Sfont_info.
18473
18474 * font.c (font_style_to_value, font_score): Delete casting of the
18475 args to xstcasecmp.
18476 (register_font_driver): Increment num_font_drivers only when
18477 registering the driver globally.
18478 (Ffont_info): Move from fontset.c. Handle a font object too.
18479 (syms_of_font): Defsubr Sfont_info.
18480
184812008-05-29 Kenichi Handa <handa@m17n.org>
18482
18483 * coding.h (enum define_coding_utf8_arg_index): New enum.
18484 (enum coding_attr_index): Change coding_attr_utf_16_bom to
18485 coding_attr_utf_bom.
18486 (enum utf_bom_type): Rename from utf_16_bom_type.
18487 (struct utf_16_spec): Adjust for the above change.
18488 (struct coding_system): Add utf_8_bom in `spec' union.
18489
18490 * coding.c (CODING_UTF_8_BOM): New macro.
18491 (enum coding_category): Delete coding_category_utf_8, add
18492 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
18493 coding_category_utf_8_sig.
18494 (CATEGORY_MASK_UTF_8): Delete it.
18495 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
18496 (CATEGORY_MASK_UTF_8_SIG): New macros.
18497 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
18498 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
18499 CATEGORY_MASK_UTF_8_SIG.
18500 (CATEGORY_MASK_UTF_8): New macro.
18501 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
18502 (detect_coding_utf_8): Check BOM.
18503 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
18504 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
18505 (encode_coding_utf_16): Likewise.
18506 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
18507 (detect_coding, detect_coding_system): Handle utf-8-auto.
18508 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
18509 (syms_of_coding): Fix setting up of Vcoding_category_table.
18510
185112008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
18512
18513 * process.c (Faccept_process_output): If `millisec' is non-nil,
18514 `seconds' default to 0.
18515 (wait_reading_process_output): Also return non-nil if we read output
18516 from a non-running process.
18517
185182008-05-29 Jason Rumney <jasonr@gnu.org>
18519
18520 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
18521 `raster' specified.
18522 (add_font_entity_to_list): Allow non-opentype truetype fonts back
18523 in the uniscribe backend, but disallow any font that has no
18524 unicode subrange support.
18525
185262008-05-29 Juanma Barranquero <lekktu@gmail.com>
18527
18528 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
18529 Fix typos in docstrings.
18530
185312008-05-29 Kenichi Handa <handa@m17n.org>
18532
18533 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
18534 (Fx_family_fonts): Set frame correctly.
18535
185362008-05-28 Jason Rumney <jasonr@gnu.org>
18537
18538 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
18539
185402008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
18541
18542 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
18543 calling build_annotations.
18544
185452008-05-28 Juanma Barranquero <lekktu@gmail.com>
18546
18547 * coding.c (Fdecode_coding_region, Fencode_coding_region)
18548 (Fencode_coding_string):
18549 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
18550 <latin-extra-code-table>: Fix typos in docstrings.
18551 (syms_of_coding) <coding-system-alist>: Doc fix.
18552 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
18553
185542008-05-28 Kenichi Handa <handa@m17n.org>
18555
18556 * fontset.c (Ffont_info): Don't call font_close_object.
18557
18558 * font.c (font_parse_family_registry): Use Ffont_put to validate
18559 foundry and family.
18560 (font_delete_unmatched): Don't check spacing.
18561 (font_list_entities): Add spacing to the spec to list fonts.
18562
18563 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
18564 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
18565
18566 * coding.c (encode_coding_raw_text): Fix previous change.
18567 (encode_coding_object): When the dst_object is a buffer and is
18568 different from src_object, move gap to PT.
18569
185702008-05-27 Chong Yidong <cyd@stupidchicken.com>
18571
18572 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
18573
185742008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
18575
18576 * coding.c (encode_coding_raw_text): Set coding->produced_char for
18577 all branches. Compute it differently.
18578
18579 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
18580
185812008-05-27 Juanma Barranquero <lekktu@gmail.com>
18582
18583 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
18584 into "else if () ... else ...".
18585
185862008-05-27 Jason Rumney <jasonr@gnu.org>
18587
18588 * w32font.c (w32font_open_internal): Determine if glyph indices
18589 are likely to work here.
18590
185912008-05-27 Chong Yidong <cyd@stupidchicken.com>
18592
18593 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
18594 draw overlap glyphs with appropriate highlighting.
18595
185962008-05-27 Kenichi Handa <handa@m17n.org>
18597
18598 * xfont.c (xfont_open): Fix calculation of font->average_width.
18599
186002008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
18601
18602 * casefiddle.c (casify_object): Try to guess better whether the
18603 argument is a byte or a char.
18604
186052008-05-26 Andreas Schwab <schwab@suse.de>
18606
18607 * xselect.c (x_reply_selection_request): Properly handle format == 32.
18608 Always send multiples of format size.
18609
18610 * xterm.c (x_set_frame_alpha): Fix type mismatch.
18611
186122008-05-26 Jason Rumney <jasonr@gnu.org>
18613
18614 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
18615 (compute_metrics): Don't set failure if we just cleared the cache.
18616 (w32_weight_table): Remove unused variable.
18617 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
18618 backwards compatibility.
18619
186202008-05-25 Kenichi Handa <handa@m17n.org>
18621
18622 * w32term.c (x_draw_glyph_string):
18623 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
18624
18625 * xfaces.c: Delete unused function prototypes.
18626 (xstrlwr, font_frame): Delete them.
18627 (clear_face_cache): Delete unused variable.
18628
18629 * xftfont.c (xftfont_open): Delete unused variable.
18630 If underline_thickness is not 1, adjust underline_position.
18631
18632 * ftxfont.c (ftxfont_open): Delete unused variable.
18633
18634 * fontset.c (face_for_char): Optimize for the case of no charset
18635 property.
18636
18637 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
18638 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
18639 (otf_open, font_otf_capability, generate_otf_features)
18640 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
18641 Comment out by surrounding "#if 0" and "#endif" for the moment.
18642 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
18643 (syms_of_font): Codes for accessing above commented out.
18644
186452008-05-24 Eli Zaretskii <eliz@gnu.org>
18646
18647 * w32proc.c: Include dispextern.h.
18648
18649 * w32.c: Include dispextern.h.
18650
186512008-05-23 Juanma Barranquero <lekktu@gmail.com>
18652
18653 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
18654 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
18655 Fix typos in docstrings.
18656
186572008-05-23 Jason Rumney <jasonr@gnu.org>
18658
18659 * xsmfns.c: Remove includes that are already included by config.h.
18660
186612008-05-23 Kenichi Handa <handa@m17n.org>
18662
18663 * charset.c (Qemacs, charset_emacs): New variables.
18664 (char_charset): Fix for non-Unicode characters.
18665 (syms_of_charset): Define charset_emacs.
18666
18667 * w32term.c (x_draw_glyph_string): Be sure to update
18668 s->underline_thickness and s->underline_position. Be sure to draw
18669 underline within the current line area.
18670
18671 * xterm.c (x_draw_glyph_string): Be sure to update
18672 s->underline_thickness and s->underline_position. Be sure to draw
18673 underline within the current line area.
18674
18675 * fontset.c: Delete unused variables and add casting for char *
18676 throughout the file.
18677 (fontset_font): Try the fallback fonts of the current fontset
18678 before consulting the default fontset.
18679
18680 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
18681
18682 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
18683
186842008-05-22 Jason Rumney <jasonr@gnu.org>
18685
18686 * font.c: Don't include strings.h.
18687
18688 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
18689
18690 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
18691 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
18692 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
18693 to call xstrcasecmp.
18694
18695 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
18696
18697 * fontset.c (fs_query_fontset): Use xstrcasecmp.
18698
18699 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
18700
18701 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
18702
187032008-05-22 Kenichi Handa <handa@m17n.org>
18704
18705 * puresize.h (BASE_PURESIZE): Increase to 1220000.
18706
18707 * font.c (font_prop_validate_style): Adjust for the format
18708 change of font_style_table.
18709
18710 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
18711 two args.
18712
18713 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
18714 two args.
18715
187162008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
18717
18718 * minibuf.c (keys_of_minibuf): Delete.
18719 * lisp.h (keys_of_minibuf): Delete.
18720 * emacs.c (main): Don't call keys_of_minibuf.
18721
187222008-05-22 Kenichi Handa <handa@m17n.org>
18723
18724 * ftfont.c (ftfont_resolve_generic_family): Rename from
18725 ftfont_list_generic_family. Return a single family for each
18726 generic family.
18727 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
18728 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
18729 Call font_add_log.
18730 (ftfont_match): Call font_add_log.
18731
18732 * font.h (Ffont_xlfd_name): EXFUN adjusted.
18733 (FONT_DEBUG): Define it.
18734 (font_add_log): Extern it.
18735 (font_assert): Rename from xassert.
18736
18737 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
18738 (xfont_list_family): Call font_add_log.
18739 (xfont_match): Likewise.
18740 (memq_no_quit): Delete.
18741
18742 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
18743 call of Ffont_xlfd_name.
18744
18745 * xfaces.c (struct table_entry, slant_table, weight_table)
18746 (swidth_table): Move to font.c.
18747
18748 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
18749 xassert are changed to font_assert. Delete many unused variables.
18750 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
18751 New variables.
18752 (struct table_entry): Move from xfaces.c and modified.
18753 (weight_table, slant_table, width_table): Move from xfaces.c and
18754 contents adjusted for the change of struct table_entry.
18755 (font_style_to_value, font_style_symbolic): Adjust for the
18756 format change of font_style_table.
18757 (font_parse_family_registry): Don't overwrite existing foundry and
18758 family of font_spec.
18759 (font_score): Fix calculation of diff for sizes.
18760 (font_sort_entites): Call font_add_log.
18761 (font_delete_unmatched): Return a newly created list.
18762 (font_list_entities): Fix previous change. Call font_add_log.
18763 (font_matching_entity, font_open_entity, font_close_entity):
18764 Call font_add_log.
18765 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
18766 (Finternal_set_font_style_table): Delete.
18767 (BUILD_STYLE_TABLE): New macro.
18768 (build_style_table): New function.
18769 (Vfont_log, font_log_env_checked): New variables.
18770 (font_add_log): New function.
18771 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
18772 Declare Lisp variables "font-weight-table", "font-slant-table",
18773 "font-width-table", and "font-log". Initialize font_style_table.
18774
187752008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
18776
18777 * xterm.c (x_set_frame_alpha): Move declarations before statements.
18778
187792008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 18780 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
18781
18782 * frame.c (Qalpha): Add a new frame parameter `alpha'.
18783 (Vframe_alpha_lower_limit): New variable.
18784 (x_set_alpha): New function.
18785
18786 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
18787
18788 * xfns.c (x-create-frame, Qalpha):
18789 Initialize the frame parameter `alpha'.
18790 * xterm.c (OPAQUE, OPACITY): New.
18791 (x_set_frame_alpha): New function.
18792 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
18793
18794 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
18795 * w32fns.c (w32_frame_parm_handlers): Likewise.
18796
187972008-05-20 Jason Rumney <jasonr@gnu.org>
18798
18799 * w32font.c (add_font_entity_to_list): Don't add non-opentype
18800 truetype fonts to opentype list.
18801
188022008-05-20 Juanma Barranquero <lekktu@gmail.com>
18803
18804 * fontset.c (Ffontset_info): Doc fix.
18805 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
18806 <ignore-relative-composition>: Fix typos in docstrings.
18807
18808 * font.c (syms-of-font) <font-encoding-alist>:
18809 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
18810 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
18811 (Ffont_otf_alternates): Doc fixes.
18812
188132008-05-20 Kenichi Handa <handa@m17n.org>
18814
18815 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
18816 font.h through out the file.
18817 (FONT_DRIVERS): Rename from FONTOBJ.
18818 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
18819 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
18820
18821 * emacs.c (main): Call syms_of_font unconditionally.
18822
18823 * font.h (find_font_encoding): Extern it.
18824
18825 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
18826 fontset.c.
194d44e7 18827 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
18828 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
18829 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
18830 only when HAVE_WINDOW_SYSTEM is defined.
18831 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
18832 when HAVE_WINDOW_SYSTEM is defined.
18833
18834 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
18835 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
18836
18837 * xfaces.c: Include font.h unconditionally.
18838 (merge_face_ref, merge_face_vectors)
18839 (Finternal_set_lisp_face_attribute): Cancel the previous change.
18840
188412008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
18842
18843 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
18844 indirect_variable.
18845 * eval.c (lisp_indirect_variable): New fun.
18846 (Fuser_variable_p): Use it.
18847
188482008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
18849
18850 * lisp.h (indirect_variable):
18851 * data.c (indirect_variable, let_shadows_buffer_binding_p):
18852 Use Lisp_Symbol pointers rather than Lisp_Object.
18853 Adjust callers.
18854 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
18855 To this end, change calling-convention.
18856
18857 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
18858 if some non-hidden buffers are selected by string&pred.
18859
188602008-05-19 Chong Yidong <cyd@stupidchicken.com>
18861
18862 * process.c (wait_reading_process_output): Always check status
18863 when in batch mode.
18864
188652008-05-19 Kenichi Handa <handa@m17n.org>
18866
18867 * font.c (font_list_entities): Fix handling of cache.
18868 (font_matching_entity): Likewise.
18869
18870 * ftfont.c (cs_iso8859_1): Delete.
18871 (ft_face_cache): New variable.
18872 (struct ftfont_info): New member fc_charset_idx.
18873 (ftfont_build_basic_charsets): Delete.
18874 (fc_charset_table): New variable.
18875 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
18876 . FC_CHARSET_IDX) as :font-entity property in the font entity.
18877 Callers changed.
18878 (ftfont_lookup_cache, ftfont_get_charset): New functions.
18879 (ftfont_spec_pattern): New argument fc_charset_idx.
18880 Check registry more rigidly. Change callers.
18881 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
18882 change of :font-entity property of the font.
18883
18884 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
18885 property of the font.
18886
188872008-05-18 Juanma Barranquero <lekktu@gmail.com>
18888
18889 * coding.c (Fcoding_system_p): Rename argument to match docstring.
18890 (Funencodable_char_position, Fcheck_coding_systems_region)
18891 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
18892 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
18893 (Ffind_operation_coding_system, Fset_coding_system_priority)
18894 (Fcoding_system_eol_type): Doc fixes.
18895
188962008-05-17 Glenn Morris <rgm@gnu.org>
18897
18898 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
18899
189002008-05-16 Eli Zaretskii <eliz@gnu.org>
18901
18902 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
18903 and st_gid.
18904
18905 * frame.c (Fdelete_frame): Don't call font_update_drivers if
18906 HAVE_WINDOW_SYSTEM is not defined.
18907
18908 * xfaces.c (merge_face_ref, merge_face_vectors)
18909 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
18910 HAVE_WINDOW_SYSTEM is defined.
18911 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
18912
189132008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
18914
18915 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
18916
189172008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18918
18919 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
18920
189212008-05-15 Kenichi Handa <handa@m17n.org>
18922
18923 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
18924 preference.
18925
189262008-05-15 Glenn Morris <rgm@gnu.org>
18927
18928 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
18929
189302008-05-15 Chong Yidong <cyd@stupidchicken.com>
18931
18932 * fns.c (init_fns): Don't initialize weak_hash_tables here.
18933 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
18934
18935 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
18936
189372008-05-15 Kenichi Handa <handa@m17n.org>
18938
18939 * ftfont.c (ftfont_list): Downcase family name to check generic
18940 families.
18941
18942 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
18943 font-spec for QCfont value.
18944
18945 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
18946 buffer. Check the return value of it.
18947
189482008-05-14 Jason Rumney <jasonr@gnu.org>
18949
18950 * w32term.c (w32_get_glyph_overhangs): Remove.
18951 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
18952
189532008-05-14 Kenichi Handa <handa@m17n.org>
18954
18955 * font.c (font_prop_validate): Make nil a valid value.
18956 (font_clear_cache): Check if the cached vector of entities is nil
18957 or not.
18958
189592008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18960
18961 * emacs.c (main_thread): Conditionalize on
18962 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
18963 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
18964
18965 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
18966 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
18967 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
18968
189692008-05-14 Kenichi Handa <handa@m17n.org>
18970
18971 * coding.c (detect_coding_iso_2022): Ignore a coding category that
18972 has no corresponding coding system.
18973
189742008-05-14 Jason Rumney <jasonr@gnu.org>
18975
18976 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
18977
18978 * w32font.h (w32font_open_internal): Update declaration.
18979
18980 * w32font.c (w32font_open_internal): Change last argument from
18981 w32font_info struct to font object. Fill in font object from
18982 font_entity. Get Outline metrics if possible. Use them to
18983 calculate underline position and thickness. Use xlfd name as name
18984 property. Don't set codepage.
18985 (w32font_open): Pass font_object to w32font_open_internal. Don't
18986 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
18987 (w32font_draw): Use s->font.
18988 (clear_cached_metrics): Don't clear non-existent blocks.
18989
18990 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
18991 font was not found.
18992 (x_draw_glyph_string): Use underline position and thickness from font.
18993
18994 * w32uniscribe.c (uniscribe_open): Pass font_object to
18995 w32font_open_internal.
18996
189972008-05-14 Kenichi Handa <handa@m17n.org>
18998
18999 These changes are to delete all legacy font-handling codes, and
19000 make Emacs use only font-backends.
19001
19002 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
19003 (frame.o, image.o, print.o): Depend on $(FONTSRC).
19004
19005 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
19006
19007 * charset.h (Vcharset_non_preferred_head)
19008 (Vcurrent_iso639_language): Extern them.
19009
19010 * charset.c (Vcharset_non_preferred_head): New variable.
19011 (Vcurrent_iso639_language): New variable.
19012 (syms_of_charset): Declare it as a Lisp variable.
19013 (char_charset): Don't check non preferred charsets. As a last
19014 resort, return charset_unicode.
19015 (Fset_charset_priority): Update Vcharset_non_preferred_head.
19016
19017 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
19018 conditionals. Don't check enable_font_backend. Delete all codes
19019 used only when USE_FONT_BACKEND is not defined.
19020
19021 * dispextern.h (struct glyph_string): Change type of `font' to
19022 `struct font *'.
19023 (struct glyph_string): New member underline_position and
19024 underline_thickness.
19025 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
bba3e508
SM
19026 (struct face): Change type of `font' to `struct font *'.
19027 Remove members `font_name', `font_info_id'.
aac0c6e3
MR
19028 (per_char_metric, encode_char): Delete externs.
19029 (calc_pixel_width_or_height): Adjust the prototype.
19030
19031 * emacs.c (enable_font_backend): Delete extern.
19032 (main): Don't set enable_font_backend. Don't check the command
19033 line argument "-disable-font-backend".
19034
19035 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
19036 (enum font_property_index): New members FONT_DPI_INDEX,
19037 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
19038 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
19039 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
19040 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
19041 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
19042 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
19043 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
19044 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
19045 (struct font_spec, struct font_entity): New structs.
ef1b0ba7 19046 (FONT_ENCODING_NOT_DECIDED): Move from fontset.h.
aac0c6e3
MR
19047 (struct font): Many members from old "struct font_info" moved to
19048 here. Members font and entity deleted.
19049 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
19050 the new font-related objects.
19051 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
19052 (CHECK_FONT_GET_OBJECT): Likewise.
19053 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
ef1b0ba7 19054 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move from font.h.
bba3e508
SM
19055 (struct font_driver): New members case_sensitive anc check.
19056 Type of the member list and open changed.
aac0c6e3
MR
19057 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
19058 (font_symbolic_width, font_find_object, font_get_spec)
19059 (font_set_lface_from_name): Delete extern.
19060 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
19061
19062 * font.c: Include <strings.h>.
19063 (enable_font_backend): Delete it.
19064 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
19065 (CHECK_VALIDATE_FONT_SPEC): Delete it.
ef1b0ba7 19066 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move to font.h.
aac0c6e3
MR
19067 (null_string): Delete it.
19068 (null_vector): Make it static.
19069 (font_family_alist): Delete it.
19070 (Qnormal): Extern it.
19071 (QCextra, QClanguage): Delete it.
19072 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
19073 (font_make_spec, font_make_entity, font_make_object)
ef1b0ba7 19074 (font_intern_prop): Rename from intern_downcase. Don't downcase
aac0c6e3 19075 the string. Callers changed.
bba3e508 19076 (font_pixel_size): Adjust for the format change of font-related
aac0c6e3
MR
19077 objects.
19078 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
19079 (font_style_to_value, font_style_symbolic): New function.
19080 (build_font_family_alist): Delete it.
19081 (font_registry_charsets): Use Fassoc_string instead of
19082 assq_no_quit.
19083 (font_prop_validate_symbol): Don't return null_string.
bba3e508 19084 (font_prop_validate_style): Adjust for the change of
aac0c6e3
MR
19085 style-related values in a font vector.
19086 (font_property_table): Delete entries for QClanguage and
19087 QCantialias, add entries for QCavgwidth.
19088 (get_font_prop_index): Delete the 2nd argument FROM.
19089 (font_prop_validate): Arguments changed.
bba3e508 19090 (font_put_extra): Adjust for the change of font-related objects.
aac0c6e3
MR
19091 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
19092 (font_parse_fcname, font_unparse_fcname)
19093 (font_prepare_composition): Likewise.
ef1b0ba7 19094 (font_parse_family_registry): Rename from font_merge_old_spec.
aac0c6e3 19095 (otf_open): Delete the 1st arg entity.
bba3e508 19096 (font_otf_capability): Adjust for the above change.
aac0c6e3
MR
19097 (font_score): New arg alternate_families. Adjusted for the change
19098 of font-related objects.
19099 (font_sort_entites): New arg best_only.
19100 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
19101 Delete them.
19102 (font_match_p): Check alternate families.
19103 (font_find_object): Delete it.
19104 (font_check_object): New function.
bba3e508 19105 (font_clear_cache): Adjust for the change of font-related objects.
aac0c6e3
MR
19106 (font_delete_unmatched): New arg.
19107 (font_list_entities): Call font_driver->list with a spec that
19108 doesn't specify style-related properties.
19109 (font_matching_entity): Arguments changed. Caller changed.
bba3e508 19110 (font_open_entity): Adjust for the change of font-related objects.
aac0c6e3
MR
19111 (font_close_object, font_has_char, font_encode_char)
19112 (font_get_name, font_get_spec): Likewise.
19113 (font_spec_from_name, font_clear_prop, font_update_lface):
19114 New functions.
19115 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
19116 (font_prepare_for_face, font_done_for_face, font_open_by_name)
bba3e508 19117 (font_at): Adjust for the change of font-related objects.
aac0c6e3
MR
19118 (font_range): New function.
19119 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
bba3e508 19120 (Ffont_xlfd_name): Adjust for the change of font-related objects.
aac0c6e3 19121 (Fcopy_font_spec, Fmerge_font_spec): New function.
ef1b0ba7 19122 (Ffont_family_list): Rename from list-families.
aac0c6e3
MR
19123 (Finternal_set_font_style_table): Arguments changed.
19124 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
bba3e508 19125 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjust for the
aac0c6e3
MR
19126 change of font-related objects.
19127 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
19128
19129 * fontset.h (struct font_info): Delete it. Most members go to
19130 struct font.
ef1b0ba7 19131 (FONT_ENCODING_NOT_DECIDED): Move to font.h.
aac0c6e3
MR
19132 (enum FONT_SPEC_INDEX): Delete it.
19133 (font_info, list_fonts_func, load_font_func, query_font_func)
19134 (set_frame_fontset_func, find_ccl_program_func)
bba3e508
SM
19135 (get_font_repertory_func, new_fontset_from_font_name):
19136 Delete externs.
aac0c6e3
MR
19137 (fontset_from_font_name): Extern it.
19138 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
19139 (FONT_INFO_FROM_FACE): Deleted.
19140 (face_for_font): Adjust prototype.
19141
19142 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
19143 conditionals. Don't check enable_font_backend. Delete all codes
19144 used only when USE_FONT_BACKEND is not defined.
19145 (get_font_info_func, list_font_func, load_font_func)
19146 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
19147 (get_font_repertory_func): Delete them.
19148 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
19149 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
19150 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
19151 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
19152 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
19153 (fontset_compare_rfontdef): New function.
19154 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
19155 rfont-defs by qsort. Adjusted for the change of font-group vector.
19156 (load_font_get_repertory): Deleted.
19157 (fontset_find_font): Use new macros to ref/set elements of
19158 font-def and rfont-def.
19159 (fontset_font): Fix the timing of remembering that no font for C.
19160 (free_face_fontset): Do nothing if the face has no fontset.
19161 (face_suitable_for_char_p): Use new macros to ref/set elements of
19162 rfont-def.
19163 (face_for_char): Likewise. Call face_for_char with font_object.
19164 (fs_load_font): Delete. Delete #pragma surrounding it.
19165 (fs_query_fontset): Use strcasecmp instead of strcmp.
bba3e508 19166 (generate_ascii_font_name): Adjust for the format change of
aac0c6e3
MR
19167 font-spec.
19168 (Fset_fontset_font): Likewise. Use new macros to set elements of
19169 font-def.
19170 (Fnew_fontset): Use font_unparse_xlfd to generate
19171 FONTSET_ASCII (fontset).
19172 (new_fontset_from_font_name): Deleted.
ef1b0ba7 19173 (fontset_from_font): Rename from new_fontset_from_font. Check if
aac0c6e3
MR
19174 a fontset is already created for the font. FIx updating of
19175 Vfontset_alias_alist.
19176 (fontset_ascii_font): Deleted.
bba3e508 19177 (Ffont_info): Adjust for the format change of font-spec.
aac0c6e3
MR
19178 (Finternal_char_font): Likewise.
19179 (Ffontset_info): Likewise.
19180 (syms_of_fontset): Don't check load_font_func.
19181
19182 * fns.c (internal_equal): Handle PREV_FONT.
19183
19184 * frame.h: Delete USE_FONT_BACKEND conditional.
19185
19186 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
19187 conditionals. Don't check enable_font_backend. Delete all codes
19188 used only when USE_FONT_BACKEND is not defined.
19189 (x_set_font): Call x_new_font, not x_new_fontset2.
19190 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
19191 already set for the frame.
19192
bba3e508
SM
19193 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed.
19194 Make a font-entity by font_make_entity. Use font_intern_prop instead
aac0c6e3
MR
19195 of intern_downcase. Use FONT_SET_STYLE to set a style-related
19196 font property. If a font is scalable, set avgwidth property to 0.
19197 Set font-entity property by font_put_extra.
19198 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
bba3e508 19199 (ffont_driver): Adjust for the change of struct font_driver.
aac0c6e3
MR
19200 (ftfont_spec_pattern): New function.
19201 (ftfont_list): Return a list, not vector.
19202 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
19203 (ftfont_list_family): Don't downcase names.
19204 (ftfont_free_entity): Deleted.
19205 (ftfont_open): Return a font-object. Adjusted for the change of
19206 struct font. Get underline_thickness and underline_position from
19207 font property. Don't update dpyinfo->smallest_font_height and
19208 dpyinfo->smallest_char_width.
19209 (ftfont_close): Don't free `struct font'.
bba3e508 19210 (ftfont_has_char): Adjust for the format change of font-entity.
aac0c6e3
MR
19211 (ftfont_encode_char, ftfont_text_extents): Likewise.
19212
19213 * ftxfont.c (ftxfont_list): Return a list, not vector.
19214 (ftxfont_open): Return a font-object. Adjusted for the change of
19215 struct font. Get underline_thickness and underline_position from
19216 font property. Don't update dpyinfo->smallest_font_height and
19217 dpyinfo->smallest_char_width.
19218 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
bba3e508 19219 (ftxfont_draw): Adjust for the change of struct font.
aac0c6e3 19220
bba3e508
SM
19221 * image.c (image_ascent): Don't include "charset.h".
19222 Include "character.h" and "font.h".
aac0c6e3
MR
19223
19224 * lisp.h (enum pvec_type): New member PREV_FONT.
19225 (Fassoc_string): EXFUN it.
19226
19227 * print.c: Include font.h.
19228 (print_object): Handle font-related objects.
19229
19230 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
19231 conditionals. Don't check enable_font_backend. Delete all codes
19232 used only when USE_FONT_BACKEND is not defined.
19233 (handle_auto_composed_prop): Do nothing if it->f is not on a
19234 window system. Check how many following characters can be
19235 displayed by the same font.
19236 (calc_pixel_width_or_height): Type of the 4th arg is changed to
19237 'struct font *'.
19238 (get_char_face_and_encoding): Assign the whole encoding task to
19239 the `encode-char' method of a font driver.
bba3e508 19240 (fill_composite_glyph_string): Adjust for the change of `struct
aac0c6e3
MR
19241 face' and `struct glyph_string'.
19242 (fill_glyph_string): Likewise.
19243 (get_per_char_metric): Arguments changed.
bba3e508 19244 (x_get_glyph_overhangs): Adjust for the change of `struct face'
aac0c6e3
MR
19245 and `struct glyph_string'.
19246 (produce_stretch_glyph, calc_line_height_property)
19247 (x_produce_glyphs): Likewise.
19248
19249 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
19250 conditionals. Don't check enable_font_backend. Delete all codes
bba3e508
SM
19251 used only when USE_FONT_BACKEND is not defined.
19252 Use FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
aac0c6e3
MR
19253 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
19254 (Qp): Extern them.
19255 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
19256 Deleted.
19257 (struct font_name): Deleted.
19258 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
19259 (compare_fonts_by_sort_order): New function.
19260 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
19261 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
19262 Deleted.
19263 (Fx_family_fonts): Use font_list_entities, and sort fonts by
19264 compare_fonts_by_sort_order.
19265 (Fx_font_family_list): Call Ffont_family_list.
19266 (face_numeric_value, face_numeric_weight, face_numeric_slant)
19267 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
19268 (face_symbolic_slant, face_symbolic_swidth)
19269 (split_font_name_into_vector, build_font_name_from_vector)
19270 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
19271 (font_rescale_ratio, split_font_name, build_font_name)
19272 (free_font_names, sort_fonts, x_face_list_fonts)
19273 (face_font_available_p, sorted_font_list, cmp_font_names)
19274 (font_list_1, concat_font_list, font_list, remove_duplicates):
19275 Deleted.
19276 (Fx_list_fonts): Use Ffont_list.
19277 (LFACE_AVGWIDTH): Deleted.
19278 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
19279 by FONTP.
19280 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
19281 (set_lface_from_font_name): Delete it.
ef1b0ba7 19282 (set_lface_from_font): Rename from
aac0c6e3
MR
19283 set_lface_from_font_and_fontset. Caller changed. Don't set
19284 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
19285 for face.
19286 (merge_face_vectors): Copy font-spec if necessary.
19287 Clear properties of the font-spec if necessary.
19288 (merge_face_ref): Clear properties of the font-spec if necessary.
19289 (Finternal_set_lisp_face_attribute): Likewise.
19290 (set_font_frame_param): Use font_load_for_lface to load a
19291 font-object, and call Fmodify_frame_parameters with it.
19292 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
19293 font name by Ffont_xlfd_name.
19294 (Finternal_lisp_face_attribute_values): Don't check QCweight,
19295 QCslant, and QCwidth.
19296 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
19297 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
19298 Compare fonts by EQ.
19299 (lookup_non_ascii_face): Deleted.
19300 (face_for_font): The 2nd argument changed.
19301 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
19302 Check atomic font properties by case insensitive.
19303 (realize_non_ascii_face): Set face->overstrike correctly.
19304 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
19305 (dump_realized_face): Get font name from
19306 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
19307
19308 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
19309 conditionals. Don't check enable_font_backend. Delete all codes
19310 used only when USE_FONT_BACKEND is not defined.
19311 (xic_create_xfontset): Original code deleted and renamed from
19312 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
19313 (x_make_gc): Don't set GCFont in GCs.
19314 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
19315 opened by "fixed".
19316 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
19317 find_ccl_program_func, query_font_func, set_frame_fontset_func,
19318 get_font_repertory_func.
19319
19320 * xfont.c: Include <stdlib.h> and "ccl.h".
19321 (struct xfont_info): New structure.
19322 (xfont_query_font): Deleted.
ef1b0ba7 19323 (xfont_find_ccl_program): Rename from x_find_ccl_program and
aac0c6e3 19324 moved from xterm.c.
bba3e508 19325 (xfont_driver): Adjust for the change of struct font_driver.
aac0c6e3 19326 (compare_font_names): New function.
ef1b0ba7
SM
19327 (xfont_list_pattern): Sort font names case insensitively.
19328 Make font_entity by calling font_make_entity. Avoid auto-scaled fonts.
aac0c6e3
MR
19329 (xfont_list): Return a list, not vector.
19330 (xfont_match): If the font doesn't have QCname property, generate
19331 a name from the other font properties.
19332 (xfont_open): Return a font-object. Adjusted for the change of
19333 struct font. Get underline_thickness and underline_position from
19334 font property. Don't update dpyinfo->smallest_font_height and
19335 dpyinfo->smallest_char_width.
19336 (xfont_close): Don't free struct font.
bba3e508 19337 (xfont_prepare_face): Adjust for the change of struct font.
aac0c6e3 19338 (xfont_done_face): Deleted.
bba3e508 19339 (xfont_has_char): Adjust for the change of struct font.
aac0c6e3
MR
19340 (xfont_encode_char, xfont_draw): Likewise.
19341 (xfont_check): New function.
19342
bba3e508 19343 * xftfont.c (xftfont_list): Adjust for the change of `list'
aac0c6e3 19344 callback function.
bba3e508
SM
19345 (xftfont_match): Adjust for the format change of font-entity.
19346 (xftfont_open): Adjust for the format change of font-entity and
aac0c6e3
MR
19347 font-object. Adjusted for the change of struct font. Return a
19348 font-object. Don't update dpyinfo->smallest_font_height and
19349 dpyinfo->smallest_char_width.
19350 (xftfont_close): Block input while calling XftFontClose.
19351 (xftfont_prepare_face): Don't block input while calling
19352 xftfont_get_colors. Adjusted for the change of struct font.
19353 (xftfont_shape): Return value of error case fixed.
19354
19355 * xrdb.c (x_load_resources): Don't setup a fontset resource.
19356
19357 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
19358 conditionals.
19359 (FONT_WIDTH): Return (f)->max_width.
19360 (struct x_display_info): Delete member `font'.
19361 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
19362 (x_find_ccl_program, x_get_font_repertory): Delete externs.
19363 (struct x_output): Change type of `font' to `struct font *'.
19364
19365 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
19366 conditionals. Don't check enable_font_backend. Delete all codes
19367 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
19368 (x_per_char_metric, x_encode_char): Deleted.
19369 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
bba3e508 19370 (x_compute_glyph_string_overhangs): Adjust for the change of
aac0c6e3
MR
19371 `struct face'.
19372 (x_draw_glyph_string_foreground)
19373 (x_draw_composite_glyph_string_foreground): Likewise.
19374 (x_draw_glyph_string): Likewise. Use font->underline_position and
19375 font->underline_thickness.
ef1b0ba7 19376 (x_new_font): Rename from x_new_fontset2.
aac0c6e3
MR
19377 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
19378 (x_check_font): Call `check' method of a font driver.
19379 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
19380 (x_query_font, x_get_font_repertory): Deleted.
ef1b0ba7 19381 (x_find_ccl_program): Rename and moved to xfont.c.
bba3e508 19382 (x_redisplay_interface): Adjust for the change of `struct
aac0c6e3
MR
19383 redisplay_interface'.
19384
19385 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
19386 conditionals. Don't check enable_font_backend. Delete all codes
19387 used only when USE_FONT_BACKEND is not defined. Surround non-used
19388 code by "#ifdef OLD_FONT" and "endif".
19389 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
19390
19391 * w32font.h (struct w32font_info): New member.
19392 (FONT_COMPAT): New macro.
19393 (w32font_open_internal): Prototype adjusted.
19394
19395 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
19396 OLD_FONT" and "endif".
19397
19398 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
19399 conditionals. Don't check enable_font_backend. Delete all codes
19400 used only when USE_FONT_BACKEND is not defined.
19401 (w32font_open): Return a font-object. Make a font-object by
19402 font_make_object. Adjusted for the change of struct w32font_info.
19403 (w32font_close): Don't free struct font. Adjusted for the change
19404 of struct w32font_info.
19405 (w32font_encode_char, w32font_text_extents, w32font_draw):
ef1b0ba7 19406 Adjust for the change of struct w32font_info.
aac0c6e3
MR
19407 (w32font_draw): Likewise.
19408 (w32font_list_internal): Return a list, not vector.
19409 (w32font_open_internal): Change the 4th arg to font-object.
19410 Adjusted for the change of struct w32font_info and font-object format.
19411 (add_font_name_to_list): Don't downcase names.
19412 (w32_enumfont_pattern_entity): Make a font-entity by
19413 font_make_entity. Adjusted for the format change of font-entity.
19414 Use FONT_SET_STYLE to set a style-related font property. If a
19415 font is scalable, set avgwidth property to 0. Set font-entity
19416 property by font_put_extra.
bba3e508 19417 (font_matches_spec): Adjust for the format change of font-entity.
aac0c6e3
MR
19418 (w32_weight_table, w32_decode_weight): New variables.
19419 (w32_encode_weight): New function.
bba3e508 19420 (fill_in_logfont): Adjust for the format change of font-spec.
aac0c6e3
MR
19421 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
19422 weight value.
bba3e508 19423 (w32font_driver): Adjust for the change of struct font_driver.
aac0c6e3
MR
19424
19425 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
19426 conditionals. Don't check enable_font_backend. Surround non-used
19427 code by "#ifdef OLD_FONT" and "endif".
19428 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
bba3e508 19429 (FONT_AVG_WIDTH): Adjust for the change of struct font.
aac0c6e3
MR
19430
19431 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
19432 conditionals. Don't check enable_font_backend. Delete all codes
19433 used only when USE_FONT_BACKEND is not defined. Surround non-used
19434 code by "#ifdef OLD_FONT" and "endif".
19435
19436 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
19437 (uniscribe_open): Return value changed to font-object.
19438 Adjusted for the format change of font-object.
bba3e508 19439 (uniscribe_otf_capability): Adjust for the change of struct font.
aac0c6e3 19440 (add_opentype_font_name_to_list): Don't downcase names.
bba3e508 19441 (uniscribe_font_driver): Adjust for the change of struct
aac0c6e3
MR
19442 font_driver.
19443
194442008-05-13 Chong Yidong <cyd@stupidchicken.com>
19445
19446 * dispnew.c (update_frame_1): Check if tty output is still valid
19447 before flushing it.
19448
194492008-05-13 Jan Djärv <jan.h.d@swipnet.se>
19450
19451 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
19452 to Gtk+ menus.
19453
194542008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
19455
19456 * dired.c (file_name_completion): Tweak the code so as to always do it
19457 in a single pass. Tighten the scope of some variables.
19458
19459 * dired.c (Qdefault_directory): New var.
19460 (file_name_completion): Use it instead of Fexpand_file_name.
19461 (syms_of_dired): Initialize it.
19462
194632008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
19464
19465 * fileio.c (double_dollars): Remove dead code.
19466
194672008-05-10 Eli Zaretskii <eliz@gnu.org>
19468
19469 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
19470 Mention w32-get-true-file-attributes in doc string.
19471
19472 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
19473
194742008-05-09 Glenn Morris <rgm@gnu.org>
19475
19476 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
19477 2008-04-23.
19478
194792008-05-09 Eli Zaretskii <eliz@gnu.org>
19480
19481 Support for reporting owner and group of each file on MS-Windows:
19482 * dired.c (stat_uname, stat_gname): New functions, with special
19483 implementation for w32.
19484 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
19485
19486 * w32.c: Rename the_passwd_* to dflt_passwd_*.
19487 (dflt_group_name): New static variable.
19488 (dflt_group): Rename from the_group.
19489 (init_user_info): Init dflt_group fields. Get user's group name
19490 from LookupAccountSid.
19491 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
19492 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
19493 New initialization states.
19494 (globals_of_w32): Initialize them to zero. Initialize the default
19495 group name to "None".
19496 (GetFileSecurity_Name): New global var, the name of the function
19497 to call for GetFileSecurity.
19498 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
19499 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
19500 (get_file_security, get_security_descriptor_owner)
19501 (get_security_descriptor_group, is_valid_sid)
19502 (get_file_security_desc, get_rid, get_name_and_id)
19503 (get_file_owner_and_group): New functions.
19504 (stat): Use get_file_security_desc and get_file_owner_and_group to
19505 report the owner and primary group of each file. Don't ignore the
19506 high 32 bits of file's size, now that st_size is 64-bit wide.
19507 Fix test when to get true file attributes.
19508 (init_user_info): Use get_rid instead of equivalent inline code.
19509 (fstat): Don't ignore the high 32 bits of file's size.
19510
195112008-05-09 Chong Yidong <cyd@stupidchicken.com>
19512
19513 * image.c (png_load): Use correct bit-depth for setting background
19514 color.
19515
195162008-05-08 Eli Zaretskii <eliz@gnu.org>
19517
19518 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
19519 epa-hook.elc.
19520
195212008-05-08 Juanma Barranquero <lekktu@gmail.com>
19522
19523 * font.c (Ffont_match_p): Don't use `iff' in docstring.
19524
195252008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
19526
19527 * macfns.c (Fx_create_frame): Make a copy of frame parameters
19528 because the original parameters are in pure storage now.
19529 (mac_window): Remove unused params. Update callers.
19530
195312008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
19532
19533 * lread.c (substitute_object_recurse): Use lower-level primitives.
19534 Don't signal errors when traversing sub-char-tables.
19535 Don't loop over all the possible characters when traversing char-tables.
19536
19537 * print.c (print_preprocess): Add sub-char-tables to the print-table,
19538 just like we do in print.c.
19539
195402008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
19541
19542 * minibuf.c (Ftry_completion): Remove code left over from when we used
19543 scmp instead of Fcompare_strings.
19544
195452008-05-04 Juanma Barranquero <lekktu@gmail.com>
19546
19547 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
19548
195492008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19550
19551 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
19552 Create bitmap context in native byte order.
19553
19554 * macterm.c (XDrawLine)
19555 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
19556 context in native byte order.
19557
195582008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19559
19560 * config.in: Regenerate.
19561
19562 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
19563 New definitions for Image I/O support.
19564 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
19565 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
19566 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
19567 (mac_data_provider_release_data, image_load_image_io)
19568 [USE_MAC_IMAGE_IO]: New functions.
19569 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
19570 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
19571 (init_image_func_pointer) [MAC_OSX]: Remove function.
19572 (image_load_quartz2d) [MAC_OSX]: Check availability of
19573 CGImageCreateWithPNGDataProvider at compile time.
19574 Use lowercase `false' for boolean constant.
19575 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
19576 Use image_load_image_io.
19577 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
19578 Don't check MyCGImageCreateWithPNGDataProvider.
19579 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
19580 Don't call init_image_func_pointer.
19581
19582 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
19583
19584 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
19585 Make variable non-static.
19586 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
19587 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
19588
19589 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
19590 (RED_FROM_ULONG): Mask off higher bits.
19591 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
19592
19593 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
19594 Include AvailabilityMacros.h.
19595 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
19596 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
19597
195982008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
19599
19600 * chartab.c (Fset_char_table_range): If range is t, really set all
19601 chars to that value.
19602
196032008-05-03 Eli Zaretskii <eliz@gnu.org>
19604
19605 * dired.c (Ffile_attributes): Don't allow the device number become
19606 negative.
19607
196082008-05-02 Daiki Ueno <ueno@unixuser.org>
19609
19610 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
19611
196122008-05-02 Juri Linkov <juri@jurta.org>
19613
19614 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
19615 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
19616 DEFAULT argument as a list of default values in docstrings.
19617
196182008-05-01 Chong Yidong <cyd@stupidchicken.com>
19619
19620 * puresize.h (BASE_PURESIZE): Increase to 1210000.
19621
196222008-05-01 Martin Rudalics <rudalics@gmx.at>
19623
19624 * dispnew.c (change_frame_size_1): Preserve small windows when
19625 shrinking frames by calling set_window_height|width with third
19626 arg 2.
19627
19628 * window.h (struct window): Replace field too_small_ok by field
19629 resize_proportionally.
19630
19631 * window.c (make_window): Initialize resize_proportionally.
19632 (enlarge_window): Temporarily set resize_proportionally to make
19633 sure that shrink_windows does scale the window proportionally.
19634 (shrink_windows): When window has resize_proportionally set try
19635 to shrink it proportionally by stealing from other windows.
19636 (struct saved_window, Fset_window_configuration)
19637 (compare_window_configurations): Handle resize_proportionally.
19638 (WINDOW_TOTAL_SIZE): New macro.
19639 (window_min_size, shrink_windows, size_window): Use it.
19640 (check_min_window_sizes): Remove. Invalid values of
19641 window-min-height|width are handled by window_min_size_2 now.
19642 (size_window, Fsplit_window, enlarge_window)
19643 (adjust_window_trailing_edge, grow_mini_window): Don't call
19644 check_min_window_sizes.
19645 (window_min_size_2, window_min_size_1, window_min_size):
19646 New argument safe_p for retrieving "safe" minimum sizes.
19647 (Fdisplay_buffer, Fsplit_window, enlarge_window)
19648 (adjust_window_trailing_edge, grow_mini_window):
19649 Adjust arguments of window_min_size... functions.
19650 (shrink_windows): Argument min_size removed. New argument
19651 safe_p allows shrinking windows to their safe minimum sizes.
19652 Calculate minimum size and decide whether a window shall be
19653 deleted for each window individually.
19654 (size_window): When nodelete_p equals 2, tell shrink_windows to
19655 delete windows only if their new minimum size is no more safe.
19656 (shrink_window_lowest_first): Call window_min_size_1 to make
19657 sure to preserve modeline of bottom-most window when resizing
19658 the minibuffer.
19659 (Fset_window_configuration, Fcurrent_window_configuration)
19660 (compare_window_configurations): Do not handle
19661 window-min-height|width any more.
19662 (syms_of_window): Clarify window-min-height|width doc-strings.
19663
196642008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
19665
19666 * dired.c (file_name_completion): Fix up the encoding/decoding issue
19667 some more. Copy some of the code from Ftry_completions.
19668 Remove special case code that dates back to initial revision when the
19669 slash was only added when necessary and that can't trigger nowadays.
19670
196712008-04-27 Kenichi Handa <handa@m17n.org>
19672
19673 * font.c (font_prop_validate): Signal `error' instead of `font'.
19674
196752008-04-29 Jason Rumney <jasonr@gnu.org>
19676
19677 * w32fns.c (Fw32_battery_status): New defun.
19678 (syms_of_w32fns): Defsubr it.
19679
196802008-04-28 Andreas Schwab <schwab@suse.de>
19681
19682 * dired.c (file_name_completion): Fix another mixing of encoded
19683 and decoded names.
19684
196852008-04-28 Juanma Barranquero <lekktu@gmail.com>
19686
19687 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
19688
196892008-04-27 Juanma Barranquero <lekktu@gmail.com>
19690
19691 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
19692
196932008-04-27 Andreas Schwab <schwab@suse.de>
19694
19695 * dired.c (file_name_completion): Fix inappropriate mixing of
19696 encoded and decoded names.
19697
19698 * xterm.c (XTread_socket): Fix use of uninitialized variable.
19699
19700 * puresize.h (BASE_PURESIZE): Increase to 1200000.
19701
197022008-04-26 Eli Zaretskii <eliz@gnu.org>
19703
19704 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
19705 2008-03-31, it's not needed anymore with `struct stat' definition
19706 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
19707 for the same reasons.
19708
197092008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
19710
19711 * m/sparc.h: Additional redefinitions for GNU/Linux.
19712
197132008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19714
19715 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
19716 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
19717 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
19718 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
19719 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
19720 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
19721 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
19722 Likewise.
19723
19724 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
19725 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
19726 (mac_ax_number_of_characters): Add externs.
19727 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
19728 [USE_MAC_TSM]: Likewise.
19729 (mac_handle_text_input_event) [MAC_OSX]:
19730 Handle kEventTextInputOffsetToPos for no active input area case.
19731 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
19732 (mac_handle_document_access_event)
19733 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
19734 (install_application_handler) [MAC_OSX]: Register handlers for
19735 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
19736 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
19737 Register mac_handle_document_access_event.
19738
19739 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
19740 Make functions non-static.
19741
197422008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
19743
19744 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
19745 (read_file_name_completion_ignore_case, insert_default_directory)
19746 (Qdefault_directory): Move to minibuffer.el.
19747 (Fread_file_name): Call the new `read-file-name' instead.
19748
197492008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19750
19751 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
19752 Make function non-static.
19753 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
19754 Remove function.
19755 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
19756 Move to mactoolbox.c.
19757 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
19758
19759 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
19760 (mac_rect_make): New macro.
19761
19762 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
19763 instead of float.
19764 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
19765 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
19766 (XSetBackground) [USE_CG_DRAWING]: Likewise.
19767 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
19768 CGRectMake.
19769 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
19770 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
19771 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
19772 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
19773 instead of WindowRef in argument type.
19774 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
19775 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
19776 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
19777 instead of DISPLAY. All uses changed.
19778 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
19779 (x_calc_absolute_position): Simplify so as not to use
19780 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
19781
19782 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
19783 instead of WindowRef in argument type.
19784 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
19785 [TARGET_API_MAC_CARBON]: Remove externs.
19786 (create_apple_event, mac_event_parameters_to_lisp)
19787 [TARGET_API_MAC_CARBON]: Add externs.
19788
19789 * mactoolbox.c (Vmac_ts_script_language_on_focus)
19790 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
19791 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
19792 is clicked.
19793 (x_activate_menubar): Remove extern for saved_menu_event_location.
19794 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
19795 Move from mac.c.
19796
197972008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19798
19799 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
19800 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
19801
198022008-04-23 Jason Rumney <jasonr@gnu.org>
19803
19804 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
19805 attributes only for local files.
19806
19807 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
19808 default to Qlocal.
19809
198102008-04-22 Juri Linkov <juri@jurta.org>
19811
19812 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
19813 read-buffer-to-switch instead of using the letter "B".
19814
198152008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
19816
19817 * fileio.c (Qdefault_directory): New variable.
19818 (Fread_file_name): Use it to pass `dir' to the completion functions.
19819
198202008-04-20 Chong Yidong <cyd@stupidchicken.com>
19821
19822 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
19823
198242008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
19825
19826 * keyboard.c (Vpre_help_message): Remove.
19827 (show_help_echo): Remove default C code.
19828
19829 * dired.c (directory_files_internal, file_name_completion):
19830 Only call ENCODE_FILE if the string is indeed decoded.
19831
198322008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
19833
19834 * Makefile.in (TOOLKIT_DEFINES): Remove.
19835 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
19836
198372008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19838
19839 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
19840 (mactoolbox.o): New target.
19841
19842 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
19843 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
19844
19845 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
19846 Use mac_set_frame_window_background instead of XSetWindowBackground.
19847 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
19848 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
19849 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
19850 instead of SetWindowTitleWithCFString.
19851 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
19852 Move function to mactoolbox.c.
19853 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
19854 Use mac_set_window_modified instead of SetWindowModified.
19855 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
19856 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
19857 (Fx_focus_frame): Use mac_front_non_floating_window instead of
19858 FrontNonFloatingWindow. Use mac_activate_window instead of
19859 ActivateWindow. Use mac_active_non_floating_window instead of
19860 ActiveNonFloatingWindow.
19861 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
19862 Use mac_show_hourglass and mac_hide_hourglass.
19863 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
19864 instead of GetGlobalMouse.
19865 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
19866 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
19867 Use mac_bring_window_to_front instead of BringToFront.
19868 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
19869 mactoolbox.c.
19870 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
19871 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
19872 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
19873 mactoolbox.c.
19874
19875 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
19876 (XtPointer): Move typedef from macmenu.c.
19877 (enum button_type): Move enum from macmenu.c.
19878 (widget_value): Move typedef from macmenu.c.
19879 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
19880 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
19881 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
19882 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
19883 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
19884 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
19885 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
19886 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
19887 (Selection): Move typedef from macselect.c.
19888 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
19889 macterm.c.
19890 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
19891 (mac_is_window_collapsed, mac_bring_window_to_front)
19892 (mac_send_window_behind, mac_hide_window, mac_show_window)
19893 (mac_collapse_window, mac_front_non_floating_window)
19894 (mac_active_non_floating_window, mac_activate_window)
19895 (mac_move_window_structure, mac_move_window, mac_size_window)
19896 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
19897
19898 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
19899 (enum mac_menu_kind): Move enum to mactoolbox.c.
19900 (min_menu_id): Move variable to mactoolbox.c.
19901 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
19902 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
19903 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
19904 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
19905 [TARGET_API_MAC_CARBON]: Likewise.
19906 (XtPointer): Move typedef to macgui.h.
19907 (enum button_type): Move enum to macgui.h.
19908 (widget_value): Move typedef to macgui.h.
19909 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
19910 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
19911 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
19912 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
19913 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
19914 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
19915 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
19916 (popup_activated_flag): Make variable non-static.
19917 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
19918 (add_menu_item, fill_menu, dispose_menus):
19919 Move functions to mactoolbox.c.
19920 (restore_show_help_function, menu_target_item_handler)
19921 (install_menu_target_item_handler, mac_handle_dialog_event)
19922 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
19923 [TARGET_API_MAC_CARBON]: Likewise.
19924 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
19925 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
19926 (find_and_call_menu_selection, name_is_separator): Make function
19927 non-static.
19928 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
19929 to mactoolbox.c.
19930 (set_frame_menubar): Don't call install_menu_quit_handler.
19931 (menu_item_selection): New variable.
19932 (mac_menu_show): Use create_and_show_popup_menu.
19933 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
19934 selection but set variable menu_item_selection. All uses changed.
19935 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
19936 Call install_menu_quit_handler. Move to mactoolbox.c.
19937
19938 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
19939 (Selection): Move typedef to macgui.h.
19940 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
19941 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
19942 Make variables non-static.
19943 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
19944 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
19945 Make functions non-static.
19946 (Vmac_service_selection) [MAC_OSX]: Likewise.
19947 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
19948 (mac_valid_selection_target_p, mac_clear_selection)
19949 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
19950 (mac_put_selection_value, mac_selection_has_target_p)
19951 (mac_get_selection_value, mac_get_selection_target_list)
19952 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
19953 Move functions to mactoolbox.c.
19954 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
19955 Likewise.
19956 (copy_scrap_flavor_data, mac_handle_service_event)
19957 (install_service_handler) [MAC_OSX]: Likewise.
19958 (syms_of_macselect) <Vmac_dnd_known_types>:
19959 Use mac_dnd_default_known_types.
19960
19961 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
19962 Move to mactoolbox.c.
19963 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
19964 (Fx_selection_owner_p): Add EXFUN.
19965 (install_window_handler, remove_window_handler, XSetWindowBackground):
19966 Remove externs.
19967 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
19968 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
19969 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
19970 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
19971 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
19972 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
19973 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
19974 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
19975 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
19976 (create_and_show_popup_menu, mac_get_selection_from_symbol)
19977 (mac_valid_selection_target_p, mac_clear_selection)
19978 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
19979 (mac_put_selection_value, mac_selection_has_target_p)
19980 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
19981 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
19982 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
19983 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
19984 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
19985 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
19986 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
19987 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
19988 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
19989
19990 * mactoolbox.c: New file.
19991
199922008-04-18 Jason Rumney <jasonr@gnu.org>
19993
19994 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
19995
199962008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
19997
19998 * character.c (Fmultibyte_char_to_unibyte):
19999 Return latin1 chars unchanged.
20000
20001 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
20002 relocated if it points to `name'.
20003
200042008-04-17 Kenichi Handa <handa@m17n.org>
20005
20006 * data.c (Faset): Allow setting a multibyte character in an
20007 ASCII-only unibyte string.
20008
20009 * lisp.h (STRING_SET_MULTIBYTE): New macro.
20010
200112008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
20012
20013 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
20014 done in config.h.
20015
200162008-04-16 Juanma Barranquero <lekktu@gmail.com>
20017
20018 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
20019 (Fchar_direction): Add usage in the docstring.
20020
200212008-04-15 Chong Yidong <cyd@stupidchicken.com>
20022
20023 * keyboard.c (read_key_sequence): Remove always-true checks.
20024
200252008-04-14 Jason Rumney <jasonr@gnu.org>
20026
20027 * w32font.c (w32font_open_internal): Set max_bounds.descent in
20028 compatibility struct, for better underline positioning.
20029
200302008-04-13 David Hansen <david.hansen@gmx.net>
20031
20032 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
20033 string.
20034
200352008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
20036
20037 * m/hp800.h (XUINT, XSET): Remove.
20038
200392008-04-12 Juanma Barranquero <lekktu@gmail.com>
20040
20041 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
20042 previous change.
20043
200442008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
20045
20046 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
20047 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
20048
200492008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
20050
20051 * keymap.h (map_keymap_canonical): Declare.
20052 * xmenu.c (single_keymap_panes): Use it.
20053
200542008-04-11 Glenn Morris <rgm@gnu.org>
20055
20056 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
20057 set the target's value to that of the alias.
20058
200592008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
20060
20061 * term.c (set_tty_color_mode): Left over typo.
20062
200632008-04-10 Michael Albinus <michael.albinus@gmx.de>
20064
20065 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
20066 only after check for file name handler functions. Signal, when
20067 native functionality is not supported.
20068 (syms_of_fileio): Declare it unconditionally.
20069
200702008-04-10 Jason Rumney <jasonr@gnu.org>
20071
20072 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
20073 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
20074
20075 * w32.c (logon_network_drive): Also logon to remote drives that
20076 are mapped to drive letters.
20077
200782008-04-10 Glenn Morris <rgm@gnu.org>
20079
20080 * xdisp.c (truncate-partial-width-windows): Doc fix.
20081
200822008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
20083
20084 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
20085 Move functions to minibuffer.el.
20086 (syms_of_fileio): Don't declare them.
20087
200882008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
20089
20090 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
20091 (syms_of_minibuf): Remove its initialization.
20092
20093 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
20094
200952008-04-09 Juanma Barranquero <lekktu@gmail.com>
20096
20097 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
20098
200992008-04-09 Jason Rumney <jasonr@gnu.org>
20100
20101 * makefile.w32-in (distclean): Delete makefile too.
20102 (maintainer-clean): New target.
20103
20104 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
20105
20106 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
20107 for new font backend and composite cases.
20108
201092008-04-09 Jan Djärv <jan.h.d@swipnet.se>
20110
20111 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
20112 Most of the code moved to run_timers.
20113 (do_pending_atimers): Call run_timers.
20114 (run_timers): New function.
20115
20116 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
20117 run atimers.
20118
20119 * process.c (wait_reading_process_output): The same as above.
20120
201212008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
20122
20123 * minibuf.c (last_exact_completion): Remove variable.
20124 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
20125 (complete_and_exit_1, complete_and_exit_2)
20126 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
20127 (Fdisplay_completion_list, display_completion_list_1)
20128 (Fminibuffer_completion_help, Fself_insert_and_exit)
20129 (Fexit_minibuffer, Fminibuffer_message): Move functions to
20130 minibuffer.el.
20131 (syms_of_minibuf): Remove corresponding initializations.
20132
20133 * keyboard.c (Qdeactivate_mark): New var.
20134 (command_loop_1): Use it to call `deactivate-mark'.
20135 (syms_of_keyboard): Initialize it.
20136
20137 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
20138 to another frame.
20139 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
20140 Don't call set_tty_color_mode.
20141 (store_frame_param): Reset previous_frame rather than call
20142 set_tty_color_mode.
20143 * term.c (set_tty_color_mode): Rewrite.
20144 * dispextern.h (set_tty_color_mode): New type.
20145 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
20146
201472008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
20148
20149 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
20150 for generic chars, which do not exist any more in emacs-unicode.
20151
201522008-04-08 Michael Albinus <michael.albinus@gmx.de>
20153
20154 * coding.c (detect_coding_emacs_mule)
20155 (Ffind_operation_coding_system): Fix typo.
20156
201572008-04-08 Jason Rumney <jasonr@gnu.org>
20158
20159 * w32uniscribe.c (SNAME): Extract only symbol name.
20160
20161 * w32font.h (struct w32_metric_cache): New struct.
20162 (w32font_info): Use it.
20163 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
20164 (CACHE_BLOCKSIZE): New constants.
20165
20166 * w32font.c (Qja, Qko, Qzh): New symbols.
20167 (syms_of_w32font): Initialise them.
20168 (font_matches_spec): Use them to filter by language.
20169 (recompute_cached_metrics): Remove function.
20170 (compute_metrics, clear_cached_metrics): New functions.
20171 (w32font_encode_char): Use them to manage metric cache.
20172 (w32font_text_extents): Cache metrics for all glyphs on demand.
20173 Delay converting glyph indices to WORD until needed.
20174 (w32font_open_internal): Initialize metric cache to empty.
20175 (registry_to_w32_charset): Charset should always be a symbol.
20176 (fill_in_logfont, list_all_matching_fonts): Family should
20177 always be a symbol.
20178
201792008-04-06 Jason Rumney <jasonr@gnu.org>
20180
20181 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
20182 Give up if glyph indices not supported. Use uniscribe obtained
20183 ABC widths for individual metrics. Map glyph clusters back to
20184 characters using fClusterStart flag. Return number of glyphs
20185 produced, not chars processed.
20186 (uniscribe_shape): Map char at FROM to current glyph.
20187
201882008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20189
20190 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
20191 Use SetMenuItemHierarchicalMenu.
20192
201932008-04-05 Jason Rumney <jasonr@gnu.org>
20194
20195 * image.c (pbm_load): Allow color values up to 65535.
20196 Throw an error if max_color_idx is outside the supported range.
20197 Report an error when image size is invalid.
20198 Read two bytes at a time when raw images have max_color_idx above 255.
20199
aac0c6e3
MR
202002008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
20201
20202 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
20203 append "CCL: Quitted" when the CCL program is quitted.
20204 (setup_ccl_program): Initialize ccl->quit_silently to zero.
20205
20206 * ccl.h (struct ccl_program): New member quit_silently.
20207
202082008-04-05 Chong Yidong <cyd@stupidchicken.com>
20209
20210 * search.c (compile_pattern_1): Treat non-nil and non-string of
20211 search-spaces-regexp as nil.
20212
20213 * minibuf.c (Fassoc_string): Tweak docstring.
20214
202152008-04-05 Eli Zaretskii <eliz@gnu.org>
20216
20217 * dired.c (Ffile_attributes): Support inode numbers wider than 32
20218 bits. Remove ugly WINDOWSNT-specific kludge introduced on
20219 2008-03-14 to force inode be positive.
20220
20221 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
20222 _S_* ones, since we now use our own sys/stat.h.
20223 (stat, fstat): Don't mangle the inode number.
20224 (init_user_info): Don't restrict UID and GID to 0-60000 range.
20225
202262008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
20227
20228 * frame.h (struct frame): Give one more bit to `visible' since we use
20229 values larger than 1 to indicate obscured frames on ttys.
20230
20231 * keymap.c (Qkeymap_canonicalize): New var.
20232 (Fmap_keymap_internal): New fun.
20233 (describe_map): Use keymap-canonicalize.
20234
20235 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
20236 (Fundo_boundary): Set them.
20237 (syms_of_undo): Initialize them.
20238 (record_point): Use them instead of last_point_position*.
20239 (last_undo_buffer): Change type.
20240
202412008-04-04 Jason Rumney <jasonr@gnu.org>
20242
20243 * w32font.c (w32font_text_extents): Use font's ascent and descent.
20244 (recompute_cached_metrics): Don't set ascent and descent per char.
20245
20246 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
20247 (uniscribe_check_otf): Add GC protection before consing.
20248 Rearrange loop for counting features.
20249
202502008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
20251
20252 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
20253 buffer with byte-size of source buffer.
20254
202552008-04-03 Chong Yidong <cyd@stupidchicken.com>
20256
20257 * callint.c (Fcall_interactively): Handle temporary region even
20258 when shift-select-mode is off.
20259
202602008-04-03 Jason Rumney <jasonr@gnu.org>
20261
20262 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
20263
202642008-04-03 Kenichi Handa <handa@m17n.org>
20265
20266 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
20267 (CATEGORY_MASK_UTF_16): Likewise.
20268 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
20269 binary file.
20270 (detect_coding): Add null-byte detection for a binary file.
20271 (detect_coding_system): Likewise.
20272
202732008-04-03 Jason Rumney <jasonr@gnu.org>
20274
20275 * w32uniscribe.c: New file.
20276
20277 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
20278
20279 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
20280
20281 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
20282 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
20283 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
20284 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
20285 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
20286 (Qphonetic): New symbols.
20287 (syms_of_w32font): Initialize them.
20288 (font_supported_scripts): Use them.
20289 (w32font_list_family): List all charsets.
20290 (w32font_text_extents, recompute_cached_metrics): Fix metric
20291 calculations.
20292 (w32_enumfont_pattern_entity): Make full_type a DWORD.
20293 Give opentype fonts their own format.
20294 (font_matches_spec): New arguments backend and logfont.
20295 Handle :otf spec for uniscribe backend.
20296 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
20297 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
20298
20299 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
20300 font backend.
20301 (globals_of_w32fns): Initialize uniscribe font backend.
20302
20303 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
20304 dependencies.
20305 (w32uniscribe.$(O)): New file to build.
20306 (FONT_OBJ): Include w32uniscribe.$(O).
20307 (LIBS): Add uniscribe libraries.
20308
20309 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
20310
203112008-04-02 Chong Yidong <cyd@stupidchicken.com>
20312
20313 * callint.c (Vshift_select_mode): New var.
20314 (Finteractive): Document new ^ spec.
20315 (Fcall_interactively): Call handle-shift-selection if the ^ spec
20316 is present.
20317
20318 * keyboard.c (Vthis_command_keys_shift_translated): New var.
20319 (command_loop_1): Avoid running the direct display versions of
20320 forward-char and backward-char if shift-selection may occur.
20321 (read_key_sequence): Set Vthis_command_keys_shift_translated if
20322 shift-translation takes place.
20323
20324 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
20325 avoid clobbering by define-minor-mode.
20326
20327 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
20328 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
20329
20330 * syntax.c (Fforward_word): Add ^ interactive spec.
20331
20332 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
20333 (Fscroll_right): Add ^ interactive spec.
20334
203352008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
20336
20337 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
20338
20339 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
20340
20341 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
20342
203432008-03-31 Juri Linkov <juri@jurta.org>
20344
20345 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
20346
203472008-03-30 Jan Djärv <jan.h.d@swipnet.se>
20348
20349 * gtkutil.c (xg_set_geometry): Fix indentation.
20350 (xg_resize_outer_widget): Remove.
20351 (x_wm_size_hint_off): Fix indentation.
20352 (xg_frame_set_char_size): Call flush_and_sync after
20353 gtk_window_resize.
20354 (x_wm_set_size_hint): Pass NULL as geometry window to
20355 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
20356 Add menu bar and tool bar height to base height.
20357 (xg_update_frame_menubar, free_frame_menubar)
20358 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
20359 (update_frame_tool_bar, free_frame_tool_bar):
20360 Change xg_resize_outer_widget to xg_frame_set_char_size.
20361
203622008-03-30 Michael Albinus <michael.albinus@gmx.de>
20363
20364 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
20365 (Fdbus_call_method): New parameter TIMEOUT.
20366 (dbus-send-signal): Optimize UNGCPRO call.
20367
203682008-03-29 Juri Linkov <juri@jurta.org>
20369
20370 * window.c (Fdisplay_buffer): Move call to
20371 Vsplit_window_preferred_function out of conditions that check
20372 if window is eligible for vertical splitting.
20373 When Vsplit_window_preferred_function is non-nil, call it and use
20374 its non-nil return value as window. Otherwise, continue doing
20375 vertical splitting using Fsplit_window with arg horflag=nil.
20376 (syms_of_window) <Vsplit_window_preferred_function>: Change the
20377 default value from `split-window' to nil.
20378
203792008-03-29 Juri Linkov <juri@jurta.org>
20380
20381 * callint.c (Fcall_interactively): Revert 2008-03-16 change
20382 for interactive code letters 'b' and 'B'.
20383
203842008-03-29 Eli Zaretskii <eliz@gnu.org>
20385
20386 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
20387 multibyte string.
20388
203892008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
20390
20391 * keyboard.c (pending_funcalls): New var.
20392 (timer_check): Run it.
20393 (syms_of_keyboard): Initialize it.
20394 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
20395 (Vdelete_terminal_functions): New vars.
20396 (syms_of_terminal): Initialize them.
20397 (Fdelete_terminal): Run delete-terminal-functions.
20398 * xdisp.c (safe_eval): Rewrite.
20399 (safe_call2): New fun.
20400 * frame.c (Qdelete_frame_functions): New var.
20401 (syms_of_frame): Initialize it.
20402 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
20403 * lisp.h (safe_call2, pending_funcalls): Declare.
20404
204052008-03-28 Andreas Schwab <schwab@suse.de>
20406
20407 * indent.c (Fmove_to_column): Move declaration before statements.
20408
204092008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
20410
20411 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
20412 (struct frame): Use bit fields for boolean vars.
20413
20414 * process.c (server_accept_connection): Simplify naming.
20415 (emacs_get_tty_pgrp): Use SDATA.
20416
20417 * coding.c (decode_coding_object): Fix last change.
20418
204192008-03-27 Jason Rumney <jasonr@gnu.org>
20420
20421 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
20422
204232008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
20424
20425 * charset.c (Fdefine_charset_internal): Change the way of
20426 registering charsets in Vcharset_order_list.
20427 (syms_of_charset): Make the charset `eight-bit' supplementary.
20428
204292008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
20430
20431 * regex.c (EXTEND_BUFFER): Change order of pointer addition
20432 operations, to avoid having the difference between pointers
20433 overflow.
20434
204352008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
20436
20437 * indent.c (check_display_width): New fun.
20438 (scan_for_column): Use it.
20439
20440 * data.c (syms_of_data): Mark most-positive-fixnum and
20441 most-negative-fixnum as constants.
20442
20443 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
20444
20445 * indent.c (scan_for_column): Extract from current_column_1.
20446 Merge with the same code from Fmove_to_column.
20447 (current_column_1, Fmove_to_column): Use it.
20448
204492008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
20450
20451 * keymap.c (map_keymap_internal): New fun.
20452 (map_keymap): Use it.
20453 (Fmap_keymap_internal): New fun.
20454 (Fmap_keymap): Remove left-out test from before make_save_value.
20455
20456 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
20457
20458 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
20459 Use XCAR/XCDR.
20460
20461 * process.h (struct Lisp_Process): Remove filter_multibyte.
20462 * process.c (QCfilter_multibyte): Remove.
20463 (setup_process_coding_systems): Don't use filter_multibyte.
20464 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
20465 (read_process_output): Don't adjust multibyteness to filter_multibyte.
20466 (Fset_process_filter_multibyte): Change the coding-system to
20467 approximate the previous behavior.
20468 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
20469 coding-system.
20470
20471 * coding.c (decode_coding_object): When not decoding into a buffer,
20472 obey the coding system's preference of (uni|multi)byte.
20473
204742008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
20475
20476 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
20477 every char is changed and has a different byte-length.
20478 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
20479 Fix int -> EMACS_INT.
20480
204812008-03-23 David Hansen <david.hansen@gmx.net>
20482
20483 * dbusbind.c (xd_read_message): Remove extra copying of message
20484 strings. Check for NULL `interface' or `member'.
20485
204862008-03-22 Eli Zaretskii <eliz@gnu.org>
20487
20488 * w32.c (readdir): If FindFirstFile/FindNextFile return in
20489 cFileName a file name that includes `?' characters, use the 8+3
20490 alias in cAlternateFileName instead.
20491
204922008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
20493
20494 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
20495
204962008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
20497
20498 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
20499 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
20500 work on current_buffer only instead (that was already the case
20501 for some of the code anyway).
20502 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
20503 (temp_set_point, temp_set_point_both): Use EMACS_INT.
20504 (SET_PT, SET_PT_BOTH): Adjust.
20505 * intervals.h (set_point, temp_set_point, set_point_both)
20506 (temp_set_point_both): Remove redundant declarations.
20507
205082008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
20509
20510 * fileio.c (Finsert_file_contents):
20511 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
20512 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
20513 when buffer != current_buffer anyway.
20514
205152008-03-20 Andreas Schwab <schwab@suse.de>
20516
20517 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
20518 as default.
20519
205202008-03-19 Jason Rumney <jasonr@gnu.org>
20521
20522 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
20523 (syms_of_w32fns): Initialize them.
20524 (HOURGLASS_ID): New constant.
20525 (x_window_to_frame): Don't check hourglass_window.
20526 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
20527 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
20528 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
20529 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
20530 Only change the cursor if hourglass is not active.
20531 (Fx_create_frame): Initialize frame's current_cursor.
20532 (hourglass_atimer): Remove.
20533 (hourglass_started): New function.
20534 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
20535 (show_hourglass): Adapt to w32, changing argument to frame.
20536
20537 * w32term.h (struct w32_output): Remove hourglass_window.
20538 Add current_cursor.
20539
20540 * eval.c (call_debugger, Fsignal):
20541 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
20542 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
20543 (Fexecute_extended_command, cancel_hourglass_unwind):
20544 * minibuf.c (read_minibuf):
20545 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
20546
205472008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
20548
20549 * window.c (run_funs): New fun.
20550 (run_window_configuration_change_hook): Use it to run the buffer-local
20551 and the global part of the hook.
20552
20553 * xdisp.c (format_mode_line_unwind_data): Add window argument.
20554 (unwind_format_mode_line): Restore selected window.
20555 (x_consider_frame_title, Fformat_mode_line): Set selected window.
20556
205572008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
20558
20559 * editfns.c (Fchar_equal): Check they are valid characters.
20560
20561 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
20562
205632008-03-17 Andreas Schwab <schwab@suse.de>
20564
20565 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
20566 against a charset.
20567
20568 * lisp.h (Fbuffer_list): Declare.
20569
205702008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 20571
aac0c6e3
MR
20572 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
20573 handlebox_widget is != 0.
20574
205752008-03-16 Juri Linkov <juri@jurta.org>
20576
20577 * callint.c (Fcall_interactively): For interactive code letters
20578 'b' and 'B' put the buffer list into the list of default "future"
20579 values of the minibuffer.
20580
205812008-03-16 Andreas Schwab <schwab@suse.de>
20582
20583 * keyboard.c (read_key_sequence): Fix downcasing of letters with
20584 modifiers.
20585
20586 * regex.c (re_match_2_internal): Correct matching of a charset
20587 against latin-1 characters.
20588
205892008-03-16 Kenichi Handa <handa@m17n.org>
20590
20591 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
20592 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
20593 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
20594 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
20595 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
20596 CHAR_STRING_ADVANCE.
20597 (produce_chars): Fix for the case that the source and the
20598 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
20599 instead of CHAR_STRING_ADVANCE.
20600 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
20601 STRING_CHAR_ADVANCE.
20602
206032008-03-15 Andreas Schwab <schwab@suse.de>
20604
20605 * regex.c (re_match_2_internal): Correct matching of eight bit
20606 characters in unibyte strings.
20607
206082008-03-15 Martin Rudalics <rudalics@gmx.at>
20609
20610 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
20611 at end of range when it coincides with the end of the buffer.
20612
206132008-03-14 Eli Zaretskii <eliz@gnu.org>
20614
20615 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
20616
20617 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
20618
206192008-03-14 Jason Rumney <jasonr@gnu.org>
20620
20621 * editfns.c (initial_tz): New variable.
20622 (syms_of_editfns): Initialize it.
20623 (Fset_time_zone_rule): Set it when first called.
20624 Use it when TZSTRING is nil.
20625
20626 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
20627 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
20628 (monitor_from_point_fn, get_monitor_info_fn): New globals.
20629 (globals_of_w32fns): Initialize them.
20630 (compute_tip_xy): Use them to position tooltips.
20631
206322008-03-14 Glenn Morris <rgm@gnu.org>
20633
20634 * emacs.c (main): Revert previous change.
20635 (standard_args): Revert -internal-script back to -scriptload,
20636 and remove the long-option form.
20637
206382008-03-13 Glenn Morris <rgm@gnu.org>
20639
20640 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
20641 Remove option -enable-font-backend.
20642
206432008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
20644
20645 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
20646
206472008-03-11 Jan Djärv <jan.h.d@swipnet.se>
20648
20649 * xterm.c (x_connection_closed): For GTK: If this is the last
20650 terminal just exit without closing the display.
20651
206522008-03-11 Jason Rumney <jasonr@gnu.org>
20653
20654 * w32font.c (w32font_full_name): Use floor to round.
20655
f0131492 206562008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
20657
20658 * sound.c (alsa_configure): Declare vol at beginning of block.
20659
20660 * fontset.c (Ffontset_info): Remove extra semicolon.
20661
206622008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
20663
20664 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
20665 size of resulting string.
20666
206672008-03-10 Jason Rumney <jasonr@gnu.org>
20668
20669 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
20670
206712008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20672
20673 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
20674 Don't pretend as if characters with display property haven't been
20675 consumed for string-replacing-string case.
20676
206772008-03-08 Kim F. Storm <storm@cua.dk>
20678
20679 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
20680 (get_next_display_element, next_element_from_string)
20681 (next_element_from_ellipsis, next_element_from_buffer): Use it.
20682
206832008-03-08 Andreas Schwab <schwab@suse.de>
20684
20685 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
20686
206872008-03-06 Jason Rumney <jasonr@gnu.org>
20688
20689 * w32font.c (w32_registry): Take font_type argument. Use ANSI
20690 when charset not specified. Only translate ANSI to unicode when
20691 font_type is truetype.
20692 (w32font_coverage_ok): New function.
20693 (add_font_entity_to_list): Use it to filter unsuitable fonts.
20694
206952008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
20696
20697 * lread.c (Fread_char): Resolve modifiers.
20698 (Fread_char_exclusive): Likewise.
20699
20700 * character.c (char_resolve_modifier_mask): New function.
20701 (char_string): Use char_resolve_modifier_mask.
20702 (Fchar_resolve_modifiers): New function.
20703 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
20704 function.
20705
207062008-03-04 Jason Rumney <jasonr@gnu.org>
20707
20708 * makefile.w32-in: Always include w32font.c in the build.
20709 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
20710
207112008-03-04 Andreas Schwab <schwab@suse.de>
20712
20713 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
20714 (versionclean): Likewise.
20715
207162008-03-04 Juanma Barranquero <lekktu@gmail.com>
20717
20718 * .cvsignore: Add oo.
20719
207202008-03-03 Andreas Schwab <schwab@suse.de>
20721
20722 * coding.c (decode_coding_object): Inhibit gap shrinking while
20723 decoding in place.
20724
207252008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
20726
20727 * w32term.c: Remove unused include "gnu.h".
20728 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
20729
20730 * gnu.h: Rename to ...
20731 * emacs-icon.h: ... this.
20732 * xterm.c: Use emacs-icon.h instead of gnu.h.
20733 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
20734
207352008-03-03 Juanma Barranquero <lekktu@gmail.com>
20736
20737 * w32font.c: Include math.h.
20738
207392008-03-03 Jason Rumney <jasonr@gnu.org>
20740
20741 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
20742 Compute options separately.
20743 (w32font_open_internal): Set glyph_idx before caching metrics.
20744
20745 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
20746 Define if system headers don't.
20747 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
20748 (w32font_encode_char): Don't declare here.
20749
20750 * w32font.c (Quniscribe, QCformat): New symbols.
20751 (syms_of_w32font): Define them.
20752 (w32font_has_char): Indicate uncertainty.
20753 (w32font_encode_char): Encode as glyph point. Make static.
20754 (recompute_cached_metrics): New function.
20755 (w32font_open_internal): Use it. Set font to use glyph points
20756 initially. Set format based on type of font.
20757 (w32font_text_extents, w32font_draw): Optionally use glyph points.
20758 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
20759 on it. Set format based on information available here.
20760 (add_font_entity_to_list): Identify backend based on opentype_only.
20761
207622008-03-02 Andreas Schwab <schwab@suse.de>
20763
20764 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
20765
20766 * coding.c (decode_coding_big5, produce_chars):
20767 Fix typos in last change.
20768
207692008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
20770
20771 * gnu.h: New icon.
20772
207732008-03-02 Kenichi Handa <handa@m17n.org>
20774
20775 * coding.c (decode_coding_utf_8): When eol-type of CODING is
20776 `dos', don't decode '\r' if that is the last in the source.
20777 (decode_coding_utf_16, decode_coding_emacs_mule)
20778 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
20779 (decode_coding_raw_text, decode_coding_charset): Likewise.
20780 (produce_chars): Don't decode EOL here. Use EMACS_INT.
20781
207822008-03-01 Jason Rumney <jasonr@gnu.org>
20783
20784 * w32font.c (w32font_full_name): Report point size for scalable fonts.
20785
207862008-03-01 Kim F. Storm <storm@cua.dk>
20787
20788 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
20789
207902008-03-01 Jason Rumney <jasonr@gnu.org>
20791
20792 * w32font.c (w32font_full_name): New function.
20793 (w32font_open_internal): Use it.
20794
207952008-03-01 Kim F. Storm <storm@cua.dk>
20796
20797 * dispnew.c (line_draw_cost): Fix invalid glyph check.
20798
207992008-03-01 Jason Rumney <jasonr@gnu.org>
20800
20801 * font.c (font_unparse_fcname): Increase len when style is a symbol.
20802
208032008-03-01 Jan Djärv <jan.h.d@swipnet.se>
20804
20805 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
20806 xg_frame_resized when the event is for the edit widget.
20807
ef1b0ba7 20808 * gtkutil.h (xg_frame_resized): Rename from xg_resize_widgets.
aac0c6e3
MR
20809
20810 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
20811 set_char_size.
ef1b0ba7 20812 (xg_frame_resized): Rename from xg_resize_widgets. Remove all
aac0c6e3
MR
20813 operations on widgets here. Just set frame size if needed.
20814 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
20815 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
20816 (x_wm_set_size_hint): Set size hints on the edit widget only, not
20817 the whole frame.
20818 (xg_create_tool_bar): Move attachment of the tool bar to
20819 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
20820 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
20821
208222008-03-01 Jason Rumney <jasonr@gnu.org>
20823
20824 * w32fns.c (w32_msg_pump): Disable debug code.
20825
208262008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20827
20828 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
20829
208302008-02-29 Chong Yidong <cyd@stupidchicken.com>
20831
20832 * xdisp.c (next_overlay_string): Don't set
20833 overlay_strings_at_end_processed_p if we're currently reading from
20834 a display string.
20835
208362008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
20837
20838 * xdisp.c (get_overlay_strings_1): Fix typo.
20839
208402008-02-29 Chong Yidong <cyd@stupidchicken.com>
20841
20842 * xdisp.c (get_overlay_strings_1): Add missing argument type.
20843
208442008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
20845
20846 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
20847
20848 * xdisp.c (display_mode_element): Cancel the previous change.
20849 (decode_mode_spec): Likewise.
20850 (handle_auto_composed_prop): Don't make composition if it->string
20851 is a string.
20852
208532008-02-27 Kim F. Storm <storm@cua.dk>
20854
20855 * lisp.h (GLYPH): Change type from int to struct with separate char
20856 and face_id members.
20857 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
20858 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
20859 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
20860 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
20861 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
20862 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
20863 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
20864 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
20865 handle new Lisp glyph code encoding, either an integer or a cons.
20866
20867 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
20868 (GLYPH_ALIAS): Delete.
20869 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
20870 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
20871 (GLYPH_FROM_CHAR): Replace macro by ...
20872 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
20873
20874 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
20875 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
20876 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
20877 (GLYPH_INVALID_P): New macro.
20878 (spec_glyph_lookup_face): Update prototype.
20879
20880 * dispnew.c (line_draw_cost): Adapt to new glyph type.
20881 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
20882 new glyph code encoding.
20883 (spec_glyph_lookup_face): No return value; update passed glyph instead.
20884 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
20885
20886 * xdisp.c (get_next_display_element, next_element_from_display_vector):
20887 Adapt to new glyph type and new glyph code encoding.
20888
20889 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
20890
20891 * indent.c (current_column, current_column_1, Fmove_to_column)
20892 (compute_motion): Adapt to new glyph code encoding.
20893
20894 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
20895
208962008-02-27 Chong Yidong <cyd@stupidchicken.com>
20897
20898 * process.c (wait_reading_process_output): Check for window
20899 changes caused by timers.
20900 Suggested by Johan Bockgård.
20901
209022008-02-27 Glenn Morris <rgm@gnu.org>
20903
20904 * emacs.c (USAGE1): Add `--disable-font-backend'.
20905
209062008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
20907
20908 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
20909 is made to the buffer.
20910
209112008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
20912
20913 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
20914 (face_at_string_position):
20915 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
20916 (face_at_string_position):
20917 * xdisp.c (display_string, next_overlay_change):
20918 * buffer.h (overlays_at):
20919 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
20920 Update callers.
20921
209222008-02-26 Chong Yidong <cyd@stupidchicken.com>
20923
20924 * editfns.c (Fformat): Doc fix.
20925
209262008-02-26 Juanma Barranquero <lekktu@gmail.com>
20927
20928 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
20929 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
20930 (Ffont_otf_alternates, Fquery_font): Doc fixes.
20931
209322008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
20933
20934 * buffer.c (Fbuffer_swap_text): New function.
20935 (syms_of_buffer): Defsubr it.
20936
209372008-02-25 Chong Yidong <cyd@stupidchicken.com>
20938
20939 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
20940
209412008-02-25 Jason Rumney <jasonr@gnu.org>
20942
20943 * w32font.c (w32font_draw): Draw one character at a time when padding.
20944
209452008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
20946
20947 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
20948 Handle a nil arg. Use run_window_configuration_change_hook.
20949 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
20950 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
20951 Use run_window_configuration_change_hook.
20952
209532008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
20954
20955 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
20956 1-pixel width.
20957
209582008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
20959
20960 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
20961 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
20962 if the glyph in the font is zero pixel with.
20963
20964 * dispextern.h (struct glyph_string): New member padding_p.
20965
20966 * w32font.c (w32font_draw): Pay attention to s->padding_p.
20967
20968 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
20969
20970 * xfont.c (xfont_draw): Pay attention to s->padding_p.
20971
20972 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
20973
20974 * font.c: If the font driver doesn't have `shape' function, return Qnil.
20975
209762008-02-25 Jason Rumney <jasonr@gnu.org>
20977
20978 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
20979
209802008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
20981
20982 Allow fine-grained image-cache flushing.
20983 * dispextern.h (struct image): Add `dependencies' field.
20984 (clear_image_caches): Change arg to Lisp_Object.
20985 * image.c (make_image): Initialize `dependencies' field.
20986 (clear_image_cache): Change arg to allow fine-grained flushing.
20987 Perform the flush even if image-cache-eviction-delay is nil.
20988 (clear_image_caches): Change arg to Lisp_Object.
20989 (Fclear_image_cache): Expand meaning of the argument.
20990 (mark_image): Mark `dependencies' field.
20991 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
20992 (lface_hash): Use XHASH rather than XFASTINT.
20993 (face_at_buffer_position): Fix int -> EMACS_INT position.
20994 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
20995 (select_frame_for_redisplay): Remove code duplication.
20996 (redisplay_internal): Adapt arg to call to clear_image_caches.
20997
209982008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
20999
21000 * s/vms4-0.h:
21001 * s/vms4-2.h:
21002 * s/vms4-4.h:
21003 * s/vms5-5.h: Remove, unused.
21004
21005 * s/irix5-2.h:
21006 * s/irix6-0.h:
21007 * s/riscos5.h:
21008 * s/mach-bsd4-3.h:
21009 * m/mips4.h: Remove files for obsolete systems.
21010
21011 * Makefile.in:
21012 * filelock.c:
21013 * unexmips.c:
21014 * m/hp9000s300.h:
21015 * m/iris4d.h:
21016 * s/aix3-1.h:
21017 * s/hpux.h:
21018 * s/msdos.h:
21019 * s/usg5-0.h:
21020 * s/usg5-2-2.h:
21021 * s/usg5-2.h:
21022 * s/usg5-3.h: Remove references to obsolete variables.
21023
21024 * s/irix5-0.h: Remove, move all the contents ...
21025 * s/irix6-5.h: ... here. Simplify.
21026 * config.in: Regenerate.
21027
210282008-02-24 Jason Rumney <jasonr@gnu.org>
21029
21030 * w32term.c (x_draw_glyph_string_background): Clear the background
21031 manually when cleartype is in use.
21032 (x_draw_glyph_string_foreground): Draw text transparently when
21033 cleartype is in use.
21034
21035 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
21036 a font into it unless we have to.
21037
210382008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
21039
21040 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
21041 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 21042
aac0c6e3
MR
210432008-02-18 Jason Rumney <jasonr@gnu.org>
21044
21045 * w32fns.c (Fw32_shell_execute): Encode parameters.
21046
210472008-02-09 Eli Zaretskii <eliz@gnu.org>
21048
21049 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
21050
210512008-02-05 Juanma Barranquero <lekktu@gmail.com>
21052
21053 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
21054
210552008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
21056
21057 * xterm.c (x_set_offset): Don't change the gravity if
21058 CHANGE_GRAVITY is -1.
21059
210602008-02-23 Chong Yidong <cyd@stupidchicken.com>
21061
21062 * fileio.c (auto_save_error_occurred): New var.
21063 (auto_save_error): Set it.
21064 (Fdo_auto_save): Don't overwrite the error message if an auto-save
21065 error occurred.
21066
210672008-02-23 Eli Zaretskii <eliz@gnu.org>
21068
21069 * w32.c (globals_of_w32): Add initializations for
21070 g_b_init_get_sid_sub_authority and
21071 g_b_init_get_sid_sub_authority_count.
21072
210732008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
21074
21075 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
21076 (font_parse_xlfd): Use them for sanity check.
21077 (Finternal_set_font_style_table): Make sure the table is bijective.
21078
21079 Consolidate the image_cache to the terminal struct.
21080 * termhooks.h (P_): Remove redundant def.
21081 (struct terminal): New field `image_cache'.
21082 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
21083 of FRAME_X_IMAGE_CACHE.
21084 * xterm.h (struct x_display_info): Remove image_cache field.
21085 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
21086 * w32term.h (struct w32_display_info): Remove image_cache field.
21087 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
21088 * macterm.h (struct mac_display_info): Remove image_cache field.
21089 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
21090 * xterm.c (x_term_init):
21091 * w32term.c (w32_term_init):
21092 * macterm.c (mac_term_init): Set the image_cache in the terminal.
21093 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
21094 Remove declarations.
21095 (clear_image_caches, mark_image_cache): New declarations.
21096 * xfaces.c (clear_face_cache):
21097 * xdisp.c (redisplay_internal): Use clear_image_caches.
21098 * image.c (clear_image_cache): Don't check that a frame is on
21099 a window-system before checking if it shares the same cache.
21100 (clear_image_caches): New function.
21101 (Fclear_image_cache): Use it.
21102 (mark_image): Move from allo.c.
21103 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
21104 * alloc.c (mark_image, mark_image_cache): Move to image.c.
21105 (mark_object): Don't call mark_image_cache for frames.
21106 (mark_terminals): Call mark_image_cache.
21107
21108 * lisp.h (Fdelete_terminal): Declare.
21109
21110 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
21111 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
21112 wrong_type_argument.
21113
211142008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
21115
21116 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
21117 malayalam.el, and tamil.el. Add sinhala.el.
21118
211192008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
21120
21121 * xterm.c (x_connection_closed): Consolidate identical tests.
21122 (x_delete_terminal): Don't crash if called via x_connection_closed.
21123
211242008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
21125
21126 * xdisp.c (decode_mode_spec): New arg string.
21127 (display_mode_element): Adjust for the above change.
21128
211292008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
21130
21131 * callint.c (Fcall_interactively): Use AREF.
21132
211332008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
21134
21135 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
21136
211372008-02-18 Jan Djärv <jan.h.d@swipnet.se>
21138
21139 * xfns.c (Fx_show_tip): Set string to " " if empty.
21140
211412008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
21142
21143 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
21144 with Qt.
21145
211462008-02-17 Kenichi Handa <handa@m17n.org>
21147
21148 * ftfont.c (ftfont_shape): Return Lispy number.
21149
21150 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
21151 for GCs.
21152 (Finternal_set_font_selection_order): Call font_update_sort_order
21153 only when enable_font_backend is set.
21154 (realize_x_face): Set face->font_info to that of default face only
21155 when enable_font_backend is set.
21156
21157 * xdisp.c (handle_composition_prop): Set it->c to the fist
21158 character of the composed region.
21159 (fill_composite_glyph_string): Set base_face->font_info to
21160 s->font_info. Get a face for ascii from base_face->ascii_face.
21161 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
21162 with a face already decided.
21163 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
21164 non-negative.
21165 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
21166 call font_prepare_composition unconditionally.
21167
21168 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
21169
21170 * xterm.h (struct x_display_info): New member font.
21171
21172 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
21173 (x_set_mouse_face_gc, x_new_font): Likewise.
21174 (x_term_init): Setup display_info->font.
21175 (x_delete_terminal): Free display_info->font.
21176
21177 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
21178
21179 * ftxfont.c (ftxfont_default_fid): Delete it.
21180 (ftxfont_open): Set xfont->fid to 0.
21181 (ftxfont_end_for_frame): Clear data specific to the frame and the
21182 font-driver.
21183
21184 * xftfont.c (xftfont_default_fid): Delete it.
21185 (xftfont_open): Set xfont->fid to 0.
21186
21187 * fontset.c (FONTSET_OBJLIST): New macro.
21188 (fontset_find_font): Update font-object list of the fontset.
21189 (free_realized_fontset): New function.
21190 (free_face_fontset): Call free_realized_fontset.
21191 (Ffont_info): Call font_close_object only when enable_font_backend
21192 is set.
21193
21194 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
21195 [HAVE_NTGUI]: Include w32term.h.
21196 [MAC_OS]: Include macterm.ch.
21197 (font_otf_ValueRecord): Use make_number.
21198 (font_finish_cache): Fix handling of reference count.
21199 (font_clear_cache): Update num_fonts.
21200 (font_open_entity): Update smallest_char_width and
21201 smallest_font_height of the frame.
21202 (font_close_object): Update num_fonts.
21203 (Fclear_font_cache): Fix finding the target cache data.
21204
212052008-02-16 Glenn Morris <rgm@gnu.org>
21206
21207 * fontset.c (Finternal_char_font): Fix compilation warning.
21208
212092008-02-16 Eli Zaretskii <eliz@gnu.org>
21210
21211 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
21212 instead of char arrays. Enlarge the size of array passed to
21213 get_token_information.
21214
21215 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
21216 warnings.
21217
212182008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
21219
21220 * .gdbinit: Don't set `args', it breaks gdb --args.
21221
212222008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
21223
21224 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
21225 within a narrowed buffer.
21226
212272008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
21228
21229 * coding.c (decode_coding_object, encode_coding_object):
21230 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
21231
212322008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
21233
21234 * coding.c (coding_set_destination): Use BEG_BYTE rather than
21235 hardcoding 1.
21236 (detect_coding_system):
21237 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
21238 (string_char_to_byte, string_byte_to_char, insert_from_gap):
21239 * insdel.c (insert_from_gap):
21240 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
21241 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
21242 (string_to_multibyte):
21243 * character.c (chars_in_text, multibyte_chars_in_text):
21244 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
21245
21246 * character.h (FETCH_STRING_CHAR_ADVANCE)
21247 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
21248 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
21249 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
21250
21251 * casefiddle.c (casify_region): Only call after-change and composition
21252 functions on the part of the region that was changed.
21253
21254 * keyboard.c (read_avail_input):
21255 * frame.c (Fdelete_frame): Call Fdelete_terminal.
21256
212572008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
21258
21259 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
21260 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
21261
212622008-02-11 Juanma Barranquero <lekktu@gmail.com>
21263
21264 * w32menu.c (push_submenu_start, push_submenu_end)
21265 (push_left_right_boundary, push_menu_pane, push_menu_item):
21266 * keyboard.c (read_key_sequence): Don't pass args with side effects
21267 to AREF, it fails when compiling with -DENABLE_CHECKING.
21268
212692008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
21270
21271 * Makefile.in (${lispsource}international/charprop.el):
21272 Delete this target.
21273
21274 * search.c (boyer_moore): Fix incorrect synching of the trunk and
21275 emacs-unicode-2.
21276
212772008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
21278
21279 * terminal.c (Fdelete_terminal): Clean up the `force' path.
21280
212812008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
21282
21283 * frame.c (Qnoelisp): New symbol.
21284 (syms_of_frame): Initialize it.
21285 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
21286 harmless Elisp code, from a strong `force' from x_connection_closed.
21287 * frame.h (Qnoelisp): Declare.
21288 * xterm.c (x_connection_closed): Pass `noelisp'.
21289
21290 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
21291 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
21292 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
21293 rather than `int' for the type of `type'.
21294
212952008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
21296
21297 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
21298
21299 * Makefile.in (GNUC): Remove support for gcc-1.x.
21300
213012008-02-10 Richard Stallman <rms@gnu.org>
21302
21303 * lisp.h (ASET): Use AREF, not ASLOT.
21304
213052008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
21306
21307 * lisp.h (ASET): Check bounds.
21308
213092008-02-10 Glenn Morris <rgm@gnu.org>
21310
21311 * buffer.c (mode-name): Doc fix.
21312
213132008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
21314
21315 * Makefile.in:
21316 * emacs.c:
21317 * gmalloc.c:
21318 * keyboard.c:
21319 * lisp.h:
21320 * m/ibm370aix.h:
21321 * process.c:
21322 * regex.c:
21323 * s/hpux.h:
21324 * sysdep.c:
21325 * sysselect.h:
21326 * systty.h:
21327 * unexec.c:
21328 * w32term.c:
21329 * xsmfns.c:
21330 * xterm.c: Remove code that deals with obsolete variables.
21331
21332 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
21333
21334 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
21335 nothing else needs it anymore.
21336
213372008-02-09 Eli Zaretskii <eliz@gnu.org>
21338
21339 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
21340 instead of unibyte_char_to_multibyte.
21341
213422008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
21343
21344 * s/gnu-linux.h: Remove commented out code.
21345
21346 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
21347
21348 * Makefile.in: Update what RMS says about using autoconf.
21349 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
21350 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
21351 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
21352 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
21353
213542008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
21355
21356 * keymap.c (Fkey_description): Move side effect outside of macro call.
21357
21358 * xfaces.c (Finternal_make_lisp_face):
21359 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
21360
21361 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
21362 (syms_of_fontset): Use ASET.
21363
21364 * fns.c (concat): Move side effect outside of macro call.
21365 (hash_clear): Use ASET.
21366
213672008-02-08 Richard Stallman <rms@gnu.org>
21368
21369 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
21370 If FORCE, and frame has a surrogate minibuffer for another frame,
21371 delete the other frame first.
21372
213732008-02-07 Timo Savola <timo.savola@iki.fi>
21374
21375 * xterm.c (x_detect_focus_change): Handle embed client message.
21376 (handle_one_xevent): Ditto.
21377 (handle_one_xevent): If embedded and we get a button press/release,
21378 request focus.
21379 (xembed_set_info, xembed_send_message): New functions.
21380 (x_make_frame_visible): Call xembed_set_info if embedded.
21381 (x_make_frame_invisible): Call xembed_set_info if embedded.
21382 (x_term_init): Initialize Xatom_XEMBED.
21383 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
21384 (x_iconify_frame): Ditto.
21385
21386 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
21387 (enum xembed_info, enum xembed_message, enum xembed_focus)
21388 (enum xembed_modifier, enum xembed_accelerator): New.
21389 (xembed_set_info, xembed_send_message): Declare.
21390 (FRAME_X_EMBEDDED_P): New.
21391
21392 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
21393 gtk_plug_new.
21394
21395 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
21396 window ID of a frame.
21397 (x_window): Reparent frame if embedded.
21398 (Fx_create_frame): Don't set border width if embedded.
21399
21400 * emacs.c (USAGE3): Add --parent-id.
21401 (standard_args): Ditto.
21402
214032008-02-07 Jan Djärv <jan.h.d@swipnet.se>
21404
21405 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
21406
214072008-02-07 Jim Meyering <meyering@redhat.com>
21408
21409 Use "do...while (0)", not "if (1)...else" in macro definitions.
21410 The latter provokes a warning from gcc about the empty else, when
21411 followed by ";". Also, without that trailing semicolon, it would
21412 silently swallow up any following statement.
21413 * syntax.h (SETUP_SYNTAX_TABLE)
21414 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
21415 * buffer.h (DECODE_POSITION): Likewise.
21416 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
21417 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
21418 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
21419 (FETCH_CHAR_ADVANCE): Likewise.
21420 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
21421
214222008-02-07 Jim Meyering <meyering@redhat.com>
21423
21424 * lread.c [lint]: Don't include <sys/inode.h>.
21425
214262008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
21427
21428 * xselect.c (x_handle_dnd_message):
21429 * xmenu.c (digest_single_submenu, xmenu_show):
21430 * xdisp.c (with_echo_area_buffer_unwind_data)
21431 (format_mode_line_unwind_data, unwind_format_mode_line)
21432 (display_menu_bar):
21433 * eval.c (Ffetch_bytecode):
21434 * doc.c (store_function_docstring):
21435 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
21436 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
21437 * buffer.c (add_overlay_mod_hooklist): Use ASET.
21438
214392008-02-07 Kenichi Handa <handa@m17n.org>
21440
21441 * ftxfont.c (ftxfont_open): Don't set
21442 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
21443
21444 * ftfont.c (ftfont_open): Fix previous change.
21445
214462008-02-06 Jason Rumney <jasonr@gnu.org>
21447
21448 * w32font.c (w32font_text_extents): Fill in lbearing metric.
21449 Use cached metrics for ASCII characters.
21450 (w32font_open_internal): Don't set font's owning_frame.
21451 Cache metrics for ASCII characters.
21452
21453 * w32font.h (struct w32font_info): Add ascii_metrics.
21454 Remove owning_frame.
21455
214562008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
21457
21458 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
21459 to negative value.
21460
21461 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
21462
21463 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
21464
21465 * charset.c (syms_of_charset): Set QCtest and Qeq.
21466
214672008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
21468
21469 * process.c (Fstart_process):
21470 * callproc.c (Fcall_process): Handle the case where
21471 Funhandled_file_name_directory returns nil.
21472
21473 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
21474 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
21475 * font.c (check_gstring): Use them and AREF to access the vector before
21476 we know it's really a gstring.
21477 (Ffont_shape_text): Fix typo.
46e722a9 21478 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
21479
21480 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
21481 Declare.
21482
21483 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
21484
214852008-02-05 Jason Rumney <jasonr@gnu.org>
21486
21487 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
21488 Set smallest_font_height and smallest_char_width in display info.
21489
214902008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
21491
21492 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
21493
214942008-02-05 Miles Bader <miles@gnu.org>
21495
21496 * xfaces.c (get_lface_attributes, merge_named_face)
21497 (lookup_named_face, lookup_derived_face, realize_named_face):
21498 Revert 2008-02-01 change by cyd@stupidchicken.com.
21499
215002008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
21501
21502 * fontset.c (Ffontset_info): Handle the case of inhibitting the
21503 fallback fonts.
21504 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
21505
215062008-02-04 Jason Rumney <jasonr@gnu.org>
21507
21508 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
21509 set full_name.
21510 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
21511
215122008-02-03 Jason Rumney <jasonr@gnu.org>
21513
21514 * makefile.w32-in (OBJ1): Include font.o here.
21515 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
21516
215172008-02-02 Jason Rumney <jasonr@gnu.org>
21518
21519 * makefile.w32-in (temacs): Bump EMHEAP to 21.
21520
215212008-02-01 Jason Rumney <jasonr@gnu.org>
21522
21523 * s/cygwin.h: Define VIRT_ADDR_VARIES.
21524
21525 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
21526
215272008-02-01 Andreas Schwab <schwab@suse.de>
21528
21529 * Makefile.in (shortlisp, lisp): Update for rename of
21530 ../lisp/language/myanmar.el.
21531
215322008-02-01 Chong Yidong <cyd@stupidchicken.com>
21533
21534 * xfaces.c (get_lface_attributes): Delete function.
21535 (merge_named_face, lookup_named_face, lookup_derived_face)
21536 (realize_named_face): Call lface_from_face_name directly, and use
21537 the fact that merge_face_vectors does not alter its FROM argument.
21538
215392008-02-01 Jason Rumney <jasonr@gnu.org>
21540
21541 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
21542 input in the default locale. Handle non-Unicode multibyte input.
21543
215442008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21545
21546 * fontset.c (reorder_font_vector): Exclude nil elements from the
21547 font group. Don't try multiple fonts.
21548 (fontset_font): Adjust for the above change.
21549 (Finternal_char_font): Return nil if the found font doesn't
21550 contain the character ch.
21551
21552 * Makefile.in (lisp, shortlisp): Add cham.el.
21553
215542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21555
21556 * font.h (FONTP): Make it return 1 also for a font-object.
21557
21558 * .gdbinit (xfontset): New function.
21559
21560 * font.c (font_find_for_lface): Check if the character C is
21561 supported or not only for the first font.
21562
21563 * fontset.c (reorder_font_vector): Fix typo.
21564 (fontset_find_font): Don't add a font-spec specifying a script.
21565 Use 0 (not Qt) for the indication of empty font-group. Change the
21566 format of RFONT-DEF. Return Qt if no font in the font-group
21567 support the character.
21568 (fontset_font): Adjust for the above change. If no font was
21569 found the character, remember that.
21570 (face_for_char): Adjust for the change of RFONT-DEF.
21571 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
21572 no font for the target.
21573 (Finternal_char_font): Adjust for the change of RFONT-DEF.
21574
215752008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21576
21577 * font.c (font_load_for_face): Handle the case that the font in
21578 face->lface is a string.
21579
215802008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21581
21582 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
21583
215842008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21585
21586 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
21587 Fix previous change. If the frame is not on a window system,
21588 signal an error.
21589
215902008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21591
bba3e508
SM
21592 * coding.c (decode_coding_object, encode_coding_object):
21593 Adjust marker positions after conversion.
aac0c6e3
MR
21594
21595 * lisp.h (struct Lisp_Marker): New member need_adjustment.
21596
215972008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21598
21599 * font.c (font_find_for_lface): Fix the handling of the return
21600 value of font_has_char.
21601 (Ffont_shape_text): Fix previous change.
21602
21603 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
21604 (fontset_ref_and_range): Delete it.
21605 (fontset_find_font): Call char_table_ref_and_range instead of
21606 FONTSET_REF_AND_RANGE.
21607 (make_fontset): Don't setup font groups of Latin here.
21608 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
21609 (new_fontset_from_font): Make the specified font the default for
21610 all Latin characters.
21611
216122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21613
21614 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
21615 is on a window system before accessing the fontset of the frame.
21616
216172008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21618
21619 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
21620
21621 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
21622 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
21623
21624 * font.c (Ffont_shape_text): If the font driver doesn't have a
21625 shaper function, make zero-width glyphs to have at least one-pixel
21626 width. Fix setting of `to' field of glyphs.
21627
216282008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21629
21630 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
21631 glyphs.
21632
21633 * font.h (struct font_driver): Improve docstring of member `shape'.
21634
216352008-02-01 Kenichi Handa <handa@m17n.org>
21636
21637 * composite.c (syms_of_composite): Fix docstring of
21638 auto-composition-function.
21639
21640 * font.h (LGLYPH_SIZE): New macro.
21641
21642 * font.c (Ffont_fill_gstring): Stop filling when a character not
21643 supported by the font is found.
21644 (Ffont_shape_text): When a shape callback function returns nil,
21645 try at most two more times with larger gstring.
21646 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
21647
21648 * xdisp.c (handle_auto_composed_prop): Change the argument to
21649 auto-composition-function.
21650
21651 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
21652 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
21653 Lispy glyph and store it in the lgstring.
21654
21655 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
21656
21657 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
21658
216592008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21660
21661 * font.c (Ffont_shape_text): Avoid unnecessary composition.
21662
21663 * fontset.c (Vfont_encoding_charset_alist): New variable.
21664 (syms_of_fontset): DEFVAR it.
21665 (reorder_font_vector, fontset_find_font): Optimize for the case of
21666 no need of reordering.
21667 (face_for_char): Map the charset property by
21668 Vfont_encoding_charset_alist.
21669
216702008-02-01 Jason Rumney <jasonr@gnu.org>
21671
21672 * w32font.c (logfonts_match): Don't check adstyle here.
21673 (font_matches_spec): Check here against physical font instead.
21674 (add_font_entity_to_list): Avoid some substitutions.
21675
21676 * font.c (font_parse_fcname): Default weight and slant to normal.
21677 (font_score): Prefer normal fonts if weight or slant unspecified.
21678 (font_score) [WINDOWSNT]: Scale weight difference down to closer
21679 match freetype scores.
21680
216812008-02-01 Jason Rumney <jasonr@gnu.org>
21682
21683 * w32font.c (w32font_text_extents): Don't use the frame stored in the
21684 font, as it may have been deleted.
21685 (w32_enumfont_pattern_entity): Map generic family to adstyle using
21686 most common hyphenless variation.
21687 (logfonts_match): Check generic family.
21688 (font_matches_spec): Don't check generic family here.
21689 (fill_in_logfont): Set generic family based on adstyle.
21690
21691 * w32font.h (w32font_get_cache): Update declaration.
21692
216932008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21694
21695 * ftfont.c (ftfont_get_cache): Adjust the argument type.
21696
21697 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
21698 If none of the new drivers are available, call font_update_drivers
21699 with the old drivers.
21700
21701 * w32font.c (w32font_get_cache): Adjust the argument type.
21702
21703 * xfont.c (xfont_get_cache): Adjust the argument type.
21704
21705 * font.h (struct font_driver): Change argument type of get_cache.
21706
21707 * xftfont.c (xftfont_start_for_frame): Delete prototype.
21708
21709 * font.c (Ffont_get): Fix arguments to Fassoc.
21710 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
21711 (font_clear_cache): New function.
21712 (font_list_entities, font_matching_entity): Use font_get_cache.
21713 (font_update_drivers): Call font_clear_cache when finishing a driver.
21714
21715 * fontset.c (fontset_find_font): Fix previous change.
21716
217172008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21718
21719 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
21720 dpyinfo->font_table.
21721 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
21722 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
21723
21724 * font.c (font_at): Handle the case that the arg C is negative.
21725 Handle the unibyte case.
21726 (Ffont_at): Call font_at with the arg C -1.
21727
21728 * xdisp.c (handle_auto_composed_prop): Don't get a character at
21729 the position here, and call font_at with the arg C -1.
21730 Don't check the range of the existing composition at the point.
21731
217322008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21733
21734 * fontset.c (fontset_add): New args charset_id and family.
21735 Change caller.
21736 (load_font_get_repertory, fontset_find_font): Assume that
21737 font_spec is always a font-spec object.
21738 (Fset_fontset_font): Always store a font-spec object in a fontset.
21739
21740 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
21741 instead of get_property_and_range.
21742
217432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21744
21745 * xftfont.c (struct xftfont_info): Delete the member ft_face.
21746 (xftfont_open): Don't keep locking face.
21747 (xftfont_close): Don't unlock face.
21748 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
21749
21750 * fontset.c (fontset_find_font): Don't prefer a font of
21751 supplementary charset.
21752
217532008-02-01 Kenichi Handa <handa@m17n.org>
21754
21755 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
21756 script, langsys_tag to langsys, new member script.
21757 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 21758 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
21759 listing to the script specified in that property. Fix arg to
21760 OTF_check_features.
21761
217622008-02-01 Jason Rumney <jasonr@gnu.org>
21763
21764 * w32font.h: New file.
21765
21766 * w32font.c: Include it.
21767 (struct w32font_info): Add owning_frame field. Move to w32font.h.
21768 (w32font_open): Set owning_frame.
21769 (w32font_text_extents): Use owning_frame.
21770 (struct font_callback_data): Add opentype_only field.
21771 (add_font_entity_to_list): Use it to filter fonts.
21772 Don't check against full name.
21773 (w32font_list_internal): New function.
21774 (w32font_list): Use it.
21775 (w32font_match_internal): New function.
21776 (w32font_match): Use it.
21777 (w32font_open_internal): New function.
21778 (w32font_open): Use it.
21779 (w32font_get_cache, w32font_close, w32font_has_char)
21780 (w32font_encode_char, w32font_text_extents, w32font_draw):
21781 Make non-static.
21782
21783 * makefile.w32-in (w32font.o): Depend on w32font.h.
21784
217852008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21786
21787 * charset.c (Fdefine_charset_internal): Record a supplementary
21788 charset at the tail of Vcharset_order_list.
21789
21790 * font.c (Ffont_shape_text): Fix the return value.
21791
21792 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
21793
21794 * xdisp.c (handle_auto_composed_prop): Fix previous change.
21795
217962008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21797
21798 * ftfont.c (struct OpenTypeSpec): New struct.
21799 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
21800 (ftfont_get_open_type_spec): New function.
21801 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
21802
21803 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
21804
218052008-02-01 Jason Rumney <jasonr@gnu.org>
21806
21807 * w32font.c (add_font_entity_to_list): Compare only the beginning
21808 of full name.
21809
218102008-02-01 Kenichi Handa <handa@m17n.org>
21811
21812 * xdisp.c (handle_auto_composed_prop): Simplify the code.
21813 Never return HANDLED_RECOMPUTE_PROPS.
21814
218152008-02-01 Kenichi Handa <handa@m17n.org>
21816
21817 * font.c (font_gstring_produce): Delete it.
21818
21819 * composite.h (COMPOSITION_METHOD):
21820 Handle COMPOSITION_WITH_GLYPH_STRING.
21821
218222008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21823
21824 * xfont.c (Qx): Delete.
21825 (syms_of_xfont): Don't initialize Qx.
21826
21827 * composite.h (enum composition_method):
21828 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
21829
218302008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21831
21832 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
21833 (choose_face_font): Accept new form of font-spec.
21834
21835 * frame.h (font_driver_list): Declare it unconditionally.
21836 (struct frame): Define members font_driver_list and font_data_list
21837 unconditionally.
21838
21839 * fontset.c: Include "font.h" unconditionally.
21840 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
21841 (Fset_fontset_font): Accept a font-spec object.
21842
21843 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
21844 PIXEL_SIZE part a wild card.
21845
21846 * dispextern.h (struct glyph_string): Define members clip and
21847 num_clips unconditionally.
21848 (struct face): Define members font_info and extra unconditionally.
21849
21850 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
21851 ftfont_info only when HAVE_LIBOTF is defined.
21852
218532008-02-01 Andreas Schwab <schwab@suse.de>
21854
21855 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
21856 and end.
21857
218582008-02-01 Jason Rumney <jasonr@gnu.org>
21859
21860 * w32font.c (w32font_driver): Add new fields.
21861
218622008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21863
21864 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
21865 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
21866 (LIBES): Add @M17N_FLT_CFLAGS@.
21867
21868 * composite.c (compose_text): Don't treat the new style
21869 composition specially.
21870
21871 * emacs.c (main): Call syms_of_font unconditionally.
21872
21873 * font.h (FONT_ENTITY_NOT_LOADABLE)
21874 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
21875 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
21876 (struct font_driver): New member shape.
21877 (font_registry_charsets): Extern it.
21878 (font_find_for_lface, font_prepare_composition): Adjust prototype.
21879 (font_otf_capability, font_drive_otf): Delete their externs.
21880
21881 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
21882 (font_charset_alist, font_registry_charsets): Move from xfont.c
21883 and rename.
21884 (font_prop_validate_otf): New function.
21885 (font_property_table): Register it for QCotf.
21886 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
21887 (font_drive_otf): Delete.
21888 (font_prepare_composition): New arg F. Adjust for the change of
21889 lispy gstring.
21890 (font_find_for_lface): New arg C.
21891 (font_load_for_face): Adjust for the change of font_find_for_lface.
21892 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
21893 lispy gstring.
21894 (Ffont_shape_text): New function.
21895 (Fopen_font): If the font size is not given, use 12-pixel.
21896 (Ffont_at): New arg STRING.
40b1a3a9 21897 (syms_of_font): Initialize font_charset_alist.
aac0c6e3
MR
21898 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
21899 conditionally.
21900
21901 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
21902 fonts of the same font-spec. Change the format of RFONT-DEF.
21903 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
21904 Adjust for the change of RFONT-DEF.
21905 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
21906
21907 * ftfont.h: New file.
21908
21909 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
21910 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
21911 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
21912 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
21913 font_otf_capability and font_drive_otf, set ftfont_shape.
21914 (ftfont_list): Adjust for the change of :otf property value.
21915 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
21916 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
21917 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
21918 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
21919 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
21920 (otf_gstring, gstring, m17n_flt_initialized): New variables.
21921
21922 * w32term.c (x_draw_composite_glyph_string_foreground):
21923 Adjust for the change of lispy gstring.
21924
21925 * xdisp.c (handle_composition_prop): Adjust for the change of
21926 lispy gstring. Call a function for auto-composition with the
21927 third arg it->window.
21928 (fill_composite_glyph_string): Adjust for the change of lispy string.
21929 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
21930
21931 * xfaces.c (set_font_frame_param): Adjust for the change of
21932 font_find_for_lface.
21933
21934 * xfont.c (x_font_charset_alist): Move to font.c and rename.
21935 (xfont_registry_charsets): Likewise. Change caller.
21936 (syms_of_xfont): Don't handle x_font_charset_alist.
21937
21938 * xftfont.c: Include "ftfont.h".
21939 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
21940 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
21941 (xftfont_close) [HAVE_LIBOTF]: Close otf.
21942 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
21943 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
21944 Set xftfont_driver.shape to xftfont_shape.
21945
21946 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
21947 the change of lispy gstring.
21948
219492008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21950
21951 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
21952
219532008-02-01 Jason Rumney <jasonr@gnu.org>
21954
21955 * w32font.c (w32font_draw): Fill background manually.
21956
219572008-02-01 Jason Rumney <jasonr@gnu.org>
21958
21959 * font.c (Qfontp): Remove unused symbol.
21960 (QCantialias): New symbol.
21961 (syms_of_font): Define it.
21962 (font_property_table): Set a validator for QCantialias.
21963
21964 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
21965 Define if not already.
21966 (QCfamily): Share with xfaces.c.
21967 (Qstandard, Qsubpixel, Qnatural): New symbols.
21968 (syms_of_w32font): Define them. Don't define QCfamily here.
21969 (w32_antialias_type, lispy_antialias_type): New functions.
21970 (w32_enumfont_pattern_entity): New arg requested_font.
21971 Set antialias parameter if non-default was requested.
21972 (fill_in_logfont): Fill in lfQuality if :antialias specified.
21973
219742008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21975
21976 * lread.c (read1): Undo the previous change.
21977
219782008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
21979
21980 * frame.c (Fdelete_frame): Call font_update_drivers only when
21981 USE_FONT_BACKEND is defined.
21982
219832008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21984
21985 * font.h (struct font_bitmap): New member bits_per_pixel.
21986 (struct font_driver): New members start_for_frame and end_for_frame.
21987 (struct font_data_list): New struct.
21988 (font_put_frame_data, font_get_frame_data): Extern them.
21989
21990 * frame.h (struct frame): New member font_data_list.
21991
21992 * font.c (font_update_drivers): Call driver->start_for_frame and
21993 driver->end_for_frame at proper timings.
21994 (font_put_frame_data, font_get_frame_data): New functions.
21995 (Ffont_spec): Add usage in the docstring.
21996
21997 * frame.c (make_frame): Initialize f->font_data_list to NULL.
21998 (Fdelete_frame): Call font_update_drivers.
21999
22000 * xftfont.c (struct xftface_info): Delete the member xft_draw.
22001 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
22002 (xftfont_get_xft_draw): New function.
22003 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
22004 (xftfont_end_for_frame): New function.
22005 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
22006
22007 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
22008 Change argument. Cache GCs in the per-frame data.
22009 (struct ftxfont_frame_data): New struct.
22010 (ftxfont_draw_bitmap): New arg gc_fore and flush.
22011 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
22012 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
22013 (ftxfont_end_for_frame): New function.
22014 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
22015
22016 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
22017
220182008-02-01 Kenichi Handa <handa@m17n.org>
22019
22020 * xselect.c (Vselection_coding_system)
22021 (Vnext_selection_coding_system): Delete them.
22022 (syms_of_xselect): Don't declare selection-coding-system and
22023 next-selection-coding-system. They are declared in select.el.
22024
220252008-02-01 Jason Rumney <jasonr@gnu.org>
22026
22027 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
22028
22029 * w32fns.c: Include imm.h.
22030 (get_composition_string_fn, get_ime_context_fn): New optional
22031 system functions.
22032 (globals_of_w32fns): Load them from imm32.dll.
22033 (ignore_ime_char): New flag.
22034 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
22035 WM_IME_ENDCOMPOSITION messages.
22036
22037 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
22038 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
22039
220402008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22041
22042 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
22043 (READCHAR_REPORT_MULTIBYTE): New macro.
22044 (readchar): New 2nd arg MULTIBYTE.
22045 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
22046 Make symbol's name multibyte according to the multibyteness of the
22047 source.
22048
220492008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22050
22051 * xfaces.c (face_for_overlay_string): Call lookup_face with
22052 correct arguments (fix of synching with the trunk).
22053
220542008-02-01 Kenichi Handa <handa@m17n.org>
22055
22056 * font.c (font_prop_validate_symbol, font_prop_validate_style)
22057 (font_prop_validate_non_neg, font_prop_validate_spacing):
22058 Delete argument prop_index.
22059 (font_property_table): Change arguments to validater. Change Callers.
22060 (font_lispy_object): Delete.
22061 (font_at): Use font_find_object instead fo font_lispy_object.
22062
220632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22064
22065 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
22066 and file names.
22067
220682008-02-01 Jason Rumney <jasonr@gnu.org>
22069
22070 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
22071 (font_matches_spec): Remove debug output.
22072 (add_font_entity_to_list): Avoid using substituted fonts.
22073
220742008-02-01 Jason Rumney <jasonr@gnu.org>
22075
22076 * doc.c (Fsnarf_documentation):
22077 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
22078
220792008-02-01 Miles Bader <miles@gnu.org>
22080
22081 * dispextern.h (struct glyph_row): Only define "clip" field if
22082 HAVE_WINDOW_SYSTEM is defined.
22083
220842008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
22085
22086 Fix up multi-tty merge.
22087
22088 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
22089 and indentation.
22090
22091 * xfaces.c (free_realized_face, clear_face_gcs):
22092 Include font_done_for_face in the input_blocked section, just in case.
22093
22094 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
22095 (get_char_face_and_encoding): Undo last change and remove the *other*
22096 duplicate definition (i.e. keep the one that's better scoped and that
22097 includes code for the font-backend).
22098
22099 * terminal.c (create_terminal): Default keyboard_coding to
22100 `no-conversion' and terminal_coding to `undecided'.
22101
22102 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
22103
22104 * fontset.c (free_realized_fontsets): Check that the table entry does
22105 contain a fontset before trying to compare it to `base'.
22106
22107 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
22108 syms_of_charset, and syms_of_coding earlier because init_window_once
22109 now needs Vcoding_system_hash_table to be setup.
22110
22111 * coding.h (default_buffer_file_coding): Remove.
22112
22113 * coding.c (default_buffer_file_coding): Remove.
22114 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
22115 than ->symbol, and use the terminal-local coding system.
22116 (syms_of_coding): Don't setup the coding-systems that are not
22117 terminal-local.
22118 (Fdefine_coding_system_internal): Use XCAR/XCDR.
22119
22120 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
22121 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
22122
22123 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
22124 in chartab.c and were re-added here by mistake.
22125 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
22126
22127 * doc.c (Fsnarf_documentation):
22128 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
22129 src to etc.
22130
22131 * ChangeLog.10: Add mistakenly removed entry.
22132
221332008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
22134
22135 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
22136
221372008-02-01 Miles Bader <miles@gnu.org>
22138
22139 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
22140 Add extra args to FACE_FOR_CHAR.
22141
221422008-02-01 Kenichi Handa <handa@m17n.org>
22143
22144 * keymap.c (where_is_internal_1): If key is a cons, store the copy
22145 in sequence.
22146
22147 * chartab.c (map_sub_char_table, map_char_table): If the range
22148 contains just one character, call the function with that character
22149 even if the depth is not 3.
22150
221512008-02-01 Jason Rumney <jasonr@gnu.org>
22152
22153 * w32font.c (w32font_text_extents): Calculate metrics for the
22154 whole string.
22155
221562008-02-01 Jason Rumney <jasonr@gnu.org>
22157
22158 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
22159
221602008-02-01 Jason Rumney <jasonr@gnu.org>
22161
bba3e508
SM
22162 * w32term.c (x_set_glyph_string_clipping):
22163 Use get_glyph_string_clip_rects.
aac0c6e3
MR
22164 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
22165 Adjust for the change of struct glyph_string.
22166
22167 * w32font.c (w32font_draw): Do clipping here.
22168
221692008-02-01 Kenichi Handa <handa@m17n.org>
22170
22171 * xftfont.c (xftfont_draw): Adjust for the change of struct
22172 glyph_string.
22173
bba3e508
SM
22174 * xterm.c (x_set_glyph_string_clipping):
22175 Use get_glyph_string_clip_rects.
aac0c6e3
MR
22176 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
22177 Adjust for the change of struct glyph_string.
22178
22179 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
22180 the resulting clip(s}.
22181 (expose_overlaps): Add arg r. Change callers. Set it to
22182 row->clip temporarily.
22183 (expose_window): Redraw rows overlapping the exposed area.
22184
22185 * dispextern.h (struct glyph_row): New member clip.
22186 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
22187 clip_height, new member clip, and num_clips.
22188
221892008-02-01 Kenichi Handa <handa@m17n.org>
22190
22191 * data.c (Fchar_or_string_p): Fix docstring.
22192
221932008-02-01 Kenichi Handa <handa@m17n.org>
22194
22195 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
22196 create a temporary XftDraw object.
22197
221982008-02-01 Kenichi Handa <handa@m17n.org>
22199
22200 * font.c (Ffontp): Fix docstring.
22201
22202 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
22203 strong evidence of ISO-2022.
22204
222052008-02-01 Kenichi Handa <handa@m17n.org>
22206
22207 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
22208 SYNTAX_ENTRY_FOLLOW_PARENT.
22209
222102008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
22211
22212 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
22213 its type.
22214 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
22215 Update to the new type of weak_hash_tables and next_weak.
22216
22217 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
22218 a plain C pointer to Lisp_Hash_Table.
22219
22220 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
22221 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
22222 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
22223 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
22224 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
22225 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
22226 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
22227 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
22228 (GC_EQ): Remove since they've been identical to their non-GC_
22229 alter-egos ever since the markbit was eradicated.
22230
22231 * alloc.c:
22232 * buffer.c:
22233 * buffer.h:
22234 * data.c:
22235 * fileio.c:
22236 * filelock.c:
22237 * fns.c:
22238 * frame.h:
22239 * lisp.h:
22240 * macterm.c:
22241 * print.c:
22242 * process.c:
22243 * w32fns.c:
22244 * w32menu.c:
22245 * w32term.c:
22246 * xfns.c:
22247 * xmenu.c:
22248 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
22249
222502008-02-01 Kenichi Handa <handa@m17n.org>
22251
22252 * chartab.c (map_sub_char_table): Make it work for the top-level
22253 char-table. Fix handling of parent char-table.
22254 (map_char_table): Adjust for the above change.
22255
222562008-02-01 Jason Rumney <jasonr@gnu.org>
22257
22258 * w32font.c (Qgdi): Rename from Qw32.
22259
222602008-02-01 Jason Rumney <jasonr@gnu.org>
22261
22262 * w32bdf.c (get_quoted_string): Make function static.
22263
222642008-02-01 Kenichi Handa <handa@m17n.org>
22265
22266 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
22267 bigger ascent and descent than those of the font, use them as
22268 font's ascent and descent.
22269
222702008-02-01 Kenichi Handa <handa@m17n.org>
22271
22272 * Makefile.in (${lispsource}international/charprop.el): Move this
22273 target within "#ifdef HAVE_UNIDATA" and "#endif".
22274
222752008-02-01 Kenichi Handa <handa@m17n.org>
22276
22277 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
22278 (shortlisp): Add ../lisp/language/tai-viet.el.
22279
222802008-02-01 Ulrich Mueller <ulm@gentoo.org>
22281
22282 * Makefile.in (${lispsource}international/charprop.el): Depend on
22283 temacs${EXEEXT}.
22284
222852008-02-01 Jason Rumney <jasonr@gnu.org>
22286
22287 * w32font.c (w32font_close): Delete the GDI font object.
22288
22289 * w32menu.c: Include character.h.
22290
22291 * w32proc.c: Likewise.
22292
22293 * w32select.c: Likewise.
22294
22295 * makefile.w32-in (w32proc.o): Depend on character.h.
22296
222972008-02-01 Jason Rumney <jasonr@gnu.org>
22298
22299 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
22300
22301 * w32menu.c (syms_of_w32menu): Likewise.
22302
22303 * w32proc.c (syms_of_ntproc): Likewise.
22304
22305 * w32select.c (syms_of_w32select): Likewise.
22306
22307 * w32term.c (syms_of_w32term): Likewise.
22308
223092008-02-01 Jason Rumney <jasonr@gnu.org>
22310
22311 * w32font.c (w32font_draw): Delete brush after using it.
22312
223132008-02-01 Jason Rumney <jasonr@gnu.org>
22314
22315 * w32font.c (w32font_open): Don't set font_idx.
22316 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
22317 to font settings.
22318 (w32font_draw): Fill background explicitly.
22319
223202008-02-01 Jason Rumney <jasonr@gnu.org>
22321
22322 * w32term.c (w32_initialize): Don't call w32font_initialize.
22323
22324 * w32font.c (w32font_info): Remove subranges.
22325 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
22326 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
22327 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
22328 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
22329 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
22330 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
22331 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
22332 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
22333 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
22334 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
22335 New symbols.
22336 (font_callback_data): New struct.
22337 (w32font_list, w32font_match): Use it.
22338 (w32font_open): Don't populate subranges.
22339 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
22340 (w32font_encode_char): Always return unicode code-point as-is.
22341 (w32font_text_extents): Supply a transformation matrix to
22342 GetGlyphOutline. Never look up by glyph index. Avoid looping
22343 twice. Use unicode version of GetTexExtentPoint32 instead of
22344 glyph index version.
22345 (set_fonts_frame): Remove.
22346 (w32_enumfont_pattern_entity): Add frame parameter, use it to
22347 set frame parameter. Use backward compatible fake foundries.
22348 Save generic family in extra slot under QCfamily. Make width slot
22349 constant. Save QCspacing value. Save list of scripts instead of
22350 binary subranges.
22351 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
bba3e508
SM
22352 (add_font_entity_to_list): Use font_callback_data struct.
22353 Filter unwanted fonts.
aac0c6e3
MR
22354 (add_one_font_entity_to_list): Use font_callback_data struct.
22355 (w32_registry): Default to iso10646_1.
22356 (fill_in_logfont): Use dpi from extra slot. Don't bother with
22357 string font registries. Don't fill in font name if it is a generic
22358 family name, fill family instead. Use spacing, family and script
22359 extra info to fill pitch, family and charset fields.
22360 (list_all_matching_fonts): Use font_callback_data struct.
22361 (unicode_range_for_char): Remove.
22362 (font_supported_scripts): New function.
22363 (w32font_initialize): Remove.
22364 (syms_of_w32font): Update which symbols are defined.
22365
223662008-02-01 Jason Rumney <jasonr@gnu.org>
22367
22368 * font.c (font_pixel_size): Reverse assq_no_quit args.
22369
22370 * w32term.h (FONT_WIDTH): Report max width, not average.
22371 (FONT_MAX_WIDTH): Remove.
22372 (FONT_AVG_WIDTH): New macro.
22373
22374 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
22375 redefinition of FONT_WIDTH.
22376
22377 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
22378 (w32_cache_char_metrics): Use FONT_WIDTH.
22379
22380 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
22381
223822008-02-01 Jason Rumney <jasonr@gnu.org>
22383
22384 * w32font.c (w32font_open): Make lfHeight negative.
22385
22386 * w32fns.c (x_default_font_parameter): Use new style font name.
22387 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
22388
223892008-02-01 Jason Rumney <jasonr@gnu.org>
22390
22391 * w32font.c (QCsubranges): New symbol.
22392 (w32font_open, w32font_has_char): Get subranges from subproperty
22393 of extra.
22394 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
22395 (syms_of_w32font): Define :subranges symbol.
22396
22397 * font.c (font_put_extra): Expose externally.
22398
22399 * font.h (font_put_extra): Move declaration from font.c.
22400
22401 * font.c (Ffont_get): Use font driver to determine otf capability.
22402 (adjust_anchor): Check if driver defines anchor_point before using.
22403
22404 * w32font.c (w32font_open): Handle size, height and pixel_size better.
22405 (w32font_draw): Use options.
22406 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
22407 Fix detection of truetype fonts.
22408 (registry_to_w32_charset): Handle charsets other than iso8859-1
22409 expressed as lisp symbols.
22410 (w32_registry): Express charset as lisp symbol.
22411 (fill_in_logfont): Reverse pixel and point height logic.
22412 Don't set width here. Set quality to default.
22413
22414 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
22415 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
22416
22417 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
22418 Remove redundant loop and allocation.
22419
22420 * makefile.w32-in (font.o, w32font.o): New objects.
22421 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
22422 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
22423
22424 * xdisp.c (fill_composite_glyph_string): Make the first arg to
22425 STORE_XCHARB a valid l-value.
22426
22427 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
22428 calculations for non-Truetype fonts.
22429 (x_draw_glyph_string): Sync with xterm.c.
22430 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
22431 Remove redundant code.
22432 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
22433
22434 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
22435 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
22436
22437 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
22438 (x_to_w32_charset, w32_to_x_charset): Expose externally.
22439
22440 * w32font.c: New file for w32 font backend.
22441
224422008-02-01 Kenichi Handa <handa@m17n.org>
22443
22444 * term.c: Don't include "buffer.h" twice.
22445
224462008-02-01 Kenichi Handa <handa@m17n.org>
22447
22448 * character.c (Funibyte_string): New function.
22449 (syms_of_character): Defsubr it.
22450
224512008-02-01 Jason Rumney <jasonr@gnu.org>
22452
22453 * w32term.c [USE_FONT_BACKEND]:
22454 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
22455 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
22456 (x_draw_glyph_string, x_draw_glyph_string_foreground)
22457 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
22458 (x_free_frame_resources): Sync with xterm.c.
22459
224602008-02-01 Andreas Schwab <schwab@suse.de>
22461
22462 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
22463 char-table size.
22464
224652008-02-01 Kenichi Handa <handa@m17n.org>
22466
22467 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
22468
224692008-02-01 Kenichi Handa <handa@m17n.org>
22470
22471 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
22472 font_otf_gpos, add font_drive_otf.
22473
22474 * fontset.c (fontset_find_font): Pay attention to font size
22475 specified for a font.
22476 (reorder_font_vector): Check contents of font_def.
22477
22478 * font.c (struct otf_list): Delete it.
22479 (otf_list): Make it a lisp variable.
22480 (otf_open): Use lispy otf_list.
22481 (generate_otf_features): Rename from parse_gsub_gpos_spec.
22482 (check_otf_features): New function.
22483 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
22484 New functions.
22485 (font_drive_otf): New function merging font_otf_gsub and
22486 font_otf_gpos.
22487 (font_open_for_lface): New arg spec. Change argument order.
22488 (font_load_for_face): Adjust for the change of font_open_for_lface.
22489 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
22490 Ffont_otf_gpos.
22491 (syms_of_font): Staticpro otf_list. Delete defsubr of
22492 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
22493
22494 * xfaces.c (set_font_frame_param): Adjust for the change of
22495 font_open_for_lface.
22496
22497 * font.h (font_open_for_lface): Adjust prototype.
22498 (struct font_driver): Delete members otf_gsub and otf_gpos, add
22499 member otf_drive.
22500 (font_otf_gsub, font_otf_gpos): Delete externs.
22501 (font_drive_otf): Extern it.
22502
225032008-02-01 Kenichi Handa <handa@m17n.org>
22504
22505 * font.c (font_at): If the window W is not on a window system,
22506 return Qnil.
22507
22508 * coding.c (produce_chars, encode_coding): Don't call
22509 insert_from_gap if no characters to produce.
22510
225112008-02-01 Kenichi Handa <handa@m17n.org>
22512
22513 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
22514 Fclear_face_cache.
22515
22516 * xfaces.c (face_for_font): Check also face->font==font->font.font.
22517
225182008-02-01 Miles Bader <miles@gnu.org>
22519
22520 * emacs.c (main): Change default value of `enable_font_backend' to 1.
22521 Parse "--disable-font-backend" option.
22522 (standard_args): Add "--disable-font-backend" option.
22523
225242008-02-01 Kenichi Handa <handa@m17n.org>
22525
22526 * fontset.c (fontset_find_font): New function.
22527 (fontset_font): Use fontset_find_font.
22528 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
22529 Register the specified font for all Latin characters.
22530 (new_fontset_from_font): Register the specified font for all Latin
22531 characters.
22532 (dump_fontset): For a realized fontset, include the base fontset
22533 name in the returned vector.
22534
225352008-02-01 Kenichi Handa <handa@m17n.org>
22536
22537 * character.h (CHAR_STRING): Cast C to unsigned on calling
22538 char_string.
22539
22540 * character.c (char_string): Type of arg C changed to unsigned.
22541 Signal an error if C is an invalid character code.
22542
22543 * editfns.c (general_insert_function, Fchar_to_string):
22544 Use CHARACTERP, not INTEGERP.
22545
225462008-02-01 Kenichi Handa <handa@m17n.org>
22547
22548 * character.h (MIN_MULTIBYTE_LEADING_CODE)
22549 (MAX_MULTIBYTE_LEADING_CODE): New macros.
22550
22551 * regex.c (analyse_first): Fix for multibyte characters in "case
22552 charset:" and "case categoryspec:".
22553
225542008-02-01 Andreas Schwab <schwab@suse.de>
22555
22556 * Makefile.in (LIBES): Move standard libraries to the end.
22557
225582008-02-01 Kenichi Handa <handa@m17n.org>
22559
22560 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
22561 nonzero, don't shrink the buffer nextb.
22562
22563 * buffer.h (struct buffer_text): New member inhibit_shrinking.
22564
22565 * coding.c (coding_alloc_by_making_gap): New arg offset.
22566 (alloc_destination): Call coding_alloc_by_making_gap with the arg
22567 offset.
22568 (decode_coding_iso_2022): Update coding->safe_charsets.
22569 (decode_coding_gap): Temporarily set
22570 current_buffer->text->inhibit_shrinking to 1.
22571
225722008-02-01 Kenichi Handa <handa@m17n.org>
22573
bba3e508
SM
22574 * xterm.c (x_draw_composite_glyph_string_foreground):
22575 Fix indexing into elements of s->cmp and s->char2b.
aac0c6e3
MR
22576
225772008-02-01 Juanma Barranquero <lekktu@gmail.com>
22578
22579 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
22580
225812008-02-01 Kenichi Handa <handa@m17n.org>
22582
22583 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
22584 target_multibyte instead of multibyte.
22585 (re_match_2_internal): Call bcmp_translate with target_multibyte.
22586 (bcmp_translate): Change the argument name from multibyte to
22587 target_multibyte.
22588
225892008-02-01 Kenichi Handa <handa@m17n.org>
22590
22591 These changes are to compile a regexp into a pattern that can be
22592 used both for multibyte and unibyte targets.
22593
22594 * Makefile.in (search.o): Depend on charset.h.
22595
22596 * character.c (multibyte_char_to_unibyte_safe): New function.
22597
22598 * search.c: Include "charset.h".
22599 (compile_pattern_1): Delete argument multibyte. Don't set
22600 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
22601 (compile_pattern): Don't compare cp->buf.target_multibyte.
22602 Compare cp->buf.charset_unibyte.
22603 (compile_pattern): Set cp->buf.target_multibyte.
22604
22605 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
22606
22607 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
22608
22609 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
22610 multibyte. Change callers.
22611 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
22612 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
22613 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
22614 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
22615 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
22616 (regex_compile): Make the compiled pattern usable both for
22617 multibyte and unibyte targets.
22618 (analyse_first): Make the fastmap usable both for multibyte and
22619 unibyte targets.
22620 (TRANSLATE_VIA_MULTIBYTE): Delete.
22621 (re_match_2_internal): Pay attention to the case that the
22622 multibyteness of bufp and target may be different.
22623
226242008-02-01 Kenichi Handa <handa@m17n.org>
22625
22626 * xdisp.c (x_produce_glyphs): When a font is not found, make the
22627 empty box occupy at least one column width.
22628
226292008-02-01 Miles Bader <miles@gnu.org>
22630
22631 * Makefile.in: Remove redundant HAVE_XFT clause.
22632
226332008-02-01 Kenichi Handa <handa@m17n.org>
22634
22635 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
22636
226372008-02-01 Kenichi Handa <handa@m17n.org>
22638
22639 * fontset.c (Finternal_char_font): Fix for the case of POSITION
22640 being nil.
22641
226422008-02-01 Kenichi Handa <handa@m17n.org>
22643
22644 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
22645
226462008-02-01 Kenichi Handa <handa@m17n.org>
22647
22648 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
22649
226502008-02-01 Kenichi Handa <handa@m17n.org>
22651
22652 * search.c (simple_search): Fix previous change.
22653
226542008-02-01 Kenichi Handa <handa@m17n.org>
22655
22656 * xftfont.c (ftfont_font_format): Extern declaration.
22657
22658 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
22659
22660 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
22661 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
22662
22663 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
22664 (ftfont_font_format): Fix previous change.
22665
22666 * font.h (Ffont_xlfd_name): EXFUN it.
22667
22668 * font.c (font_parse_xlfd): Fix the array size of `f'.
22669 (register_font_driver): Use EQ to compare driver->type.
22670
22671 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
22672 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
22673 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
22674
226752008-02-01 Kenichi Handa <handa@m17n.org>
22676
22677 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
22678 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
22679
226802008-02-01 Kenichi Handa <handa@m17n.org>
22681
22682 * xfont.c (xfont_open): Set font->format.
22683
22684 * xftfont.c (xftfont_open): Set font->format.
22685
22686 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
22687 (ftfont_list): Include FC_FONTFORMAT in FcObject.
22688 (ftfont_open): Set font->format.
22689 (ftfont_font_format): New function.
22690
22691 * font.h (struct font): New member format.
22692
22693 * font.c (Qopentype): New variable.
22694 (syms_of_font): Defsym it.
22695 (Fquery_font): Change the format of the last element of the return
22696 value.
22697
226982008-02-01 Kenichi Handa <handa@m17n.org>
22699
22700 * xfns.c (xic_create_xfontset): Try the default fontset name as a
22701 last resort.
22702
227032008-02-01 Kenichi Handa <handa@m17n.org>
22704
22705 * coding.c (detect_coding_charset): Fix detection of multi-byte
22706 charset.
22707
227082008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
22709
22710 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
22711
227122008-02-01 Kenichi Handa <handa@m17n.org>
22713
22714 * xdisp.c (get_next_display_element): Set it->face_id for the
22715 first component of a composition.
22716 (x_produce_glyphs): Check if the font is changed or not for composition.
22717
227182008-02-01 Kenichi Handa <handa@m17n.org>
22719
22720 * fontset.c (Qlatin): New variable.
22721 (syms_of_fontset): Define it as a lisp symbol.
22722 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
22723
227242008-02-01 Kenichi Handa <handa@m17n.org>
22725
22726 * font.c (font_unparse_fcname): Pay attention to the case that
22727 some of font property is a null string.
22728
227292008-02-01 Kenichi Handa <handa@m17n.org>
22730
22731 * term.c: Include "composite.h".
22732 (encode_terminal_code): Output all components of composition.
22733 Check the size of encode_terminal_src.
22734 (produce_glyphs): For composition, call produce_composite_glyph.
22735 (append_composite_glyph, produce_composite_glyph): New functions.
22736
22737 * xdisp.c (x_produce_glyphs): In handling composition, if a font
22738 is not found, get font_info from the current ascii face.
22739
227402008-02-01 Kenichi Handa <handa@m17n.org>
22741
22742 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
22743 buffer-file-name to Qnil before calling insert_from_buffer.
22744
22745 * font.c (font_unparse_fcname): Pay attention to the case that
22746 foundry is a null string.
22747
227482008-02-01 Kenichi Handa <handa@m17n.org>
22749
22750 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
22751
22752 * font.c (Qunicode_sip): New variable.
22753 (syms_of_font): Declare it as a Lisp symbol.
22754
22755 * font.h (Qunicode_sip): Extern it.
22756
227572008-02-01 Kenichi Handa <handa@m17n.org>
22758
22759 * composite.c (get_composition_id): Pay attention to TAB component.
22760
22761 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
22762 TAB. Adjust for the change of s->char2b which always points to
22763 the first element of allocated memory.
22764
22765 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
22766
22767 * xdisp.c (handle_composition_prop): Set it->c to the first
22768 non-TAB component.
22769 (fill_composite_glyph_string): Change argument.
22770 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
22771 (x_produce_glyphs): Fix handling of left/right padding.
22772
227732008-02-01 Kenichi Handa <handa@m17n.org>
22774
22775 * coding.c (detect_coding_system): Fix for handling off
22776 inhibit_iso_escape_detection. Fix for the case that no coding
22777 system is defined for a specific coding category.
22778
227792008-02-01 Kenichi Handa <handa@m17n.org>
22780
22781 * font.c (font_matching_entity): Delete unused local var.
22782
22783 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
22784 opening a font.
22785
22786 * fileio.c (Finsert_file_contents): On recovering a file, assume
22787 Unix-like eol.
22788 (choose_write_coding_system): On auto-saving a file, force
22789 Unix-like eol.
22790
22791 * coding.c (setup_coding_system): Fix setting of
22792 coding->common_flags based on eol_type.
22793 (coding_inherit_eol_type): If PARENT is not nil, be sure to
22794 inherit from it.
22795
227962008-02-01 Kenichi Handa <handa@m17n.org>
22797
22798 * alloc.c (NSTATICS): Increas to 0x600.
22799
228002008-02-01 Kenichi Handa <handa@m17n.org>
22801
22802 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
22803 (ftfont_list): Don't check :name property.
22804 (ftfont_match): New function.
22805 (ftfont_pattern_entity): If the pattern doesn't contain
22806 FC_SPACING, don't assume FC_MONO.
22807
22808 * font.h (struct font_driver): New member `match'.
22809 (font_update_drivers): Adjust prototype.
22810
22811 * font.c (font_parse_fcname, font_parse_name): Don't change :name
22812 property of FONT.
bba3e508
SM
22813 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring):
22814 Define them unconditionally.
aac0c6e3
MR
22815 (font_matching_entity): New function.
22816 (font_open_by_name): Try font_matching_entity if exact match is
22817 not found.
22818 (font_update_drivers): Delete the arg FONT. Return a list of
22819 actually used backends. Don't free faces, font caches here.
22820 Don't store data in frame parameters. Don't call x_set_font.
22821 (Ffont_spec): Store :name property as is.
22822 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
22823 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
22824 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
22825 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
22826 Call font->driver->otf_gsub instead of font_otf_gsub.
22827
22828 * frame.c (x_set_font_backend): Do more works that were done in
22829 font_update_drivers before.
22830
22831 * xfont.c (xfont_match): New function.
22832 (xfont_driver): Set xfont_driver.match to xfont_match.
22833 (xfont_draw): Set font in GC if necessary.
22834
22835 * ftxfont.c (ftxfont_match): New function.
22836 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
22837
22838 * xftfont.c (xftfont_match): New function.
22839 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
22840
228412008-02-01 Kenichi Handa <handa@m17n.org>
22842
22843 * font.h (struct font): New member scalable.
22844 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
22845 (font_otf_gsub): Adjust prototype.
22846
22847 * font.c (font_otf_capability): Fix handling of the default langsys.
22848 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
22849 Check the contents of SPEC.
22850 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
22851 (check_gstring): New function.
22852 (REPLACEMENT_CHARACTER): New macro.
22853 (font_otf_gsub): New arg alternate_subst. Be sure to set all
22854 glyph codes of GSTRING.
22855 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
22856 (font_prepare_composition): Set cmp->glyph_len.
22857 (font_open_entity): Set font->scalable.
22858 (Ffont_get): Handle :otf property.
bba3e508
SM
22859 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates):
22860 New functions.
aac0c6e3
MR
22861 (Fquery_font): Use font->font.full_name.
22862 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
22863 Sfont_otf_alternates.
22864
22865 * ftfont.c (ftfont_open): Set font->font.full_name and
22866 font->font.name properly. Fix calculation of font->font.height
22867 and font->min_width.
22868
22869 * ftxfont.c (ftxfont_create_gcs): New function.
22870 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
22871 (ftxfont_draw_backgrond): Fix filling region.
22872 (ftxfont_default_fid): New function.
22873 (ftxfont_open): Set xfont->fid to the return value of
22874 ftxfont_default_fid.
22875 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
22876 (ftxfont_done_face): Free only GCs that are created by
22877 ftxfont_create_gcs.
22878 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
22879
22880 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
22881 Clip to src->width, etc (not src->clip_XXX).
22882
22883 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
22884 FontBackend frame parameter.
22885
228862008-02-01 Kenichi Handa <handa@m17n.org>
22887
22888 * font.h (struct font_driver_list): New member `on'.
22889 (Fclear_font_cache): EXFUN it.
22890 (font_update_drivers): Extern it.
22891
22892 * font.c (font_unparse_fcname): Fix typo (swidth->width).
22893 (font_list_entities): Check driver_list->on.
40b1a3a9 22894 (register_font_driver): Initialize `on' member to 0.
aac0c6e3
MR
22895 (font_update_drivers): New function.
22896 (Fclear_font_cache): Check driver_list->on.
22897
22898 * frame.h (Qfont_backend): Extern it.
22899 (x_set_font_backend): Extern it.
22900
22901 * frame.c (Qfont_backend): New variable.
22902 (frame_parms): New element for font-backend.
22903 (x_set_font_backend): New function.
22904
22905 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
22906 FontBackend frame parameter.
22907 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
22908 x_set_font_backend.
22909
22910 * xfont.c (xfont_list): Don't try listing by :name property if the
22911 name is not for XLFD.
22912
229132008-02-01 Kenichi Handa <handa@m17n.org>
22914
22915 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
22916 (LGLYPH_SET_TO): New macros.
22917 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
22918 element of G is vector or not.
22919 (font_at): Extern it.
22920
22921 * font.c: Include window.h.
22922 (font_lispy_object): New function.
22923 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
22924 end of valid glyph.
22925 (font_close_object): Fix getting (struct font *).
22926 (font_at): New function.
22927 (Ffont_get): If FONT is a font-object, get entity from it.
22928 (Ffont_make_gstring): Initialize elements of glyphs with nil.
bba3e508
SM
22929 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX.
22930 Fix range check.
aac0c6e3
MR
22931 (Ffont_at): New function.
22932 (syms_of_font): Defsubr Sfont_at.
22933
22934 * xdisp.c (it_props): Move the entry for Qauto_composed to just
22935 before the entry for Qcomposition.
22936 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
22937 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
22938 the font in gstring.
22939 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
22940 LGLYPH_FORM (g) to detect the end of valid glyph.
22941 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
22942 we are composing with gstring.
22943
22944 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
22945 Check if adjustment is vector or not.
22946
22947 * Makefile.in (font.o): Make it depends on window.h.
22948
229492008-02-01 Kenichi Handa <handa@m17n.org>
22950
22951 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
22952 adjustment is vector or not.
22953
229542008-02-01 Miles Bader <miles@gnu.org>
22955
22956 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
22957
229582008-02-01 Kenichi Handa <handa@m17n.org>
22959
22960 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
bba3e508 22961 (LGLYPH_SET_WIDTH): Adjust for the change of LGLYPH format.
aac0c6e3
MR
22962 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
22963
22964 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
22965 (DEVICE_DELTA): Fix typo.
22966 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
22967 LGLYPH format.
22968
22969 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
22970 the change of LGLYPH format.
22971
229722008-02-01 Kenichi Handa <handa@m17n.org>
22973
22974 * ftfont.c (ftfont_list): Fix typo.
22975 (ftfont_build_basic_charsets): Don't include letters with diacritics.
22976
229772008-02-01 Jan Djärv <jan.h.d@swipnet.se>
22978
22979 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
22980
22981 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
22982 xftface_info is non-NULL.
22983
229842008-02-01 Jan Djärv <jan.h.d@swipnet.se>
22985
22986 * ftfont.c (ftfont_list): Move misplaced #endif.
22987
229882008-02-01 Kenichi Handa <handa@m17n.org>
22989
22990 * ftfont.c (ftfont_list): Pay attention to the case that
22991 FC_CAPABILITY is not defined.
22992
229932008-02-01 Kenichi Handa <handa@m17n.org>
22994
22995 * xftfont.c (xftfont_open): Set charset related members to -1.
22996
22997 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
22998 QCname.
22999 (ftfont_open): Set charset related members to -1.
23000
23001 * fontset.c (Votf_script_alist): New variable.
23002 (syms_of_fontset): Initialize it.
23003 (fontset_font): Delete unused variable.
23004
23005 * fontset.h (Votf_script_alist): Extern it.
23006
23007 * font.c (font_find_for_lface): Optimize code.
23008
23009 * font.h (font_close_object, font_merge_old_spec): Extern them.
23010
230112008-02-01 Kenichi Handa <handa@m17n.org>
23012
23013 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
23014 (syms_of_font): Initialize them.
23015 (font_pixel_size): Allow float value in dpi.
23016 (font_prop_validate_type): Delete.
23017 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
23018 Change caller.
23019 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
23020 (font_prop_validate_extra): Delete.
23021 (font_prop_validate_spacing): New function.
23022 (font_property_table): Add elements for all known properties.
bba3e508
SM
23023 (get_font_prop_index): Rename from check_font_prop_name.
23024 New argument FROM. Change caller.
aac0c6e3
MR
23025 (font_prop_validate): Validate all known properties.
23026 (font_put_extra): Delete argument force. Change caller.
23027 (font_expand_wildcards): Make it static. Fix the way of shrinking
23028 the possible range.
23029 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
23030 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
23031 Change caller.
23032 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
23033 (font_parse_fcname): Delete argument merge. Fix parsing of point
23034 size. Don't validate properties values here. Change caller.
23035 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
23036 (font_open_by_name): Delete unused variable.
23037 (Ffont_spec): Likewise. Validate property values.
23038 (Ffont_match_p): New function.
23039
23040 * font.h (QCscalable): Extern it.
23041 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
23042
23043 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
23044
23045 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
23046 (xfont_list_pattern): New function.
23047 (xfont_list): Use xfont_list_pattern.
23048
230492008-02-01 Kenichi Handa <handa@m17n.org>
23050
23051 * font.h (Flist_fonts): EXFUN it.
23052
230532008-02-01 Jason Rumney <jasonr@gnu.org>
23054
23055 * w32term.c (w32_initialize): Add back smoothing_type and
23056 smoothing_enabled definitions.
23057
230582008-02-01 Kenichi Handa <handa@m17n.org>
23059
23060 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
23061 s->face->font on determining underline position.
23062
230632008-02-01 Kenichi Handa <handa@m17n.org>
23064
23065 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
23066 (font_has_char): Accept font-object too.
23067 (font_find_for_lface): Try at first with a size specified in face.
23068
230692008-02-01 Kenichi Handa <handa@m17n.org>
23070
23071 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
23072 font_open_by_name.
23073
230742008-02-01 Kenichi Handa <handa@m17n.org>
23075
23076 * font.h (QCspacing, QCdpi): Extern them.
23077 (enum font_spacing): New enum.
23078 (FONT_PIXEL_SIZE_QUANTUM): New macro.
23079
23080 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
23081 (QCspacing, QCdpi): New variables.
23082 (syms_of_font): Initialize them.
23083 (font_pixel_size): New function.
23084 (font_put_extra): New function.
23085 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
23086 in FONT_EXTRA.
23087 (font_parse_fcname): Handle enumerated values (e.g. bold).
23088 Fix handling font size. Add QCname property that contains only
23089 unknown properties.
23090 (font_score): Change argument. Change caller. Pay attention to
23091 FONT_PIXEL_SIZE_QUANTUM.
23092 (font_sort_entites, font_list_entities, font_find_for_lface)
23093 (font_open_for_lface, font_open_by_name): Fix handling of font size.
23094 (Ffont_spec): Add QCname property that contains only unknown properties.
23095
bba3e508
SM
23096 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq.
23097 Don't include weight in listing pattern, instead check weight of each
aac0c6e3
MR
23098 listed font. Don't include scalable in pattern. Pay attention to
23099 FONT_PIXEL_SIZE_QUANTUM.
23100
231012008-02-01 Kenichi Handa <handa@m17n.org>
23102
23103 * font.c (font_parse_fcname): Fix parsing of point-size.
23104 (font_unparse_fcname): Produce symbolic names for style properties.
23105 (font_list_entities): Handle float size correctly.
23106 (font_open_by_name): Prefer `normal' property values if the name
23107 doesn't specify them.
23108
23109 * fontset.c (Finternal_char_font): Use font_get_name, not
23110 Ffont_xlfd_name.
23111
23112 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
23113 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
23114 pattern. Don't force scalable.
23115
23116 * xftfont.c (xftfont_open): For generating a name, start from
23117 96-byte buffer.
23118
231192008-02-01 Jan Djärv <jan.h.d@swipnet.se>
23120
23121 * frame.h (x_new_fontset2): Fix prototype.
23122
231232008-02-01 Kenichi Handa <handa@m17n.org>
23124
23125 * font.h (struct font_driver): Delete member parse_name.
23126 (font_match_p, font_get_spec, font_parse_fcname)
23127 (font_unparse_fcname): Extern them.
23128 (font_get_name): Adjust prototype.
23129
23130 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
23131 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
bba3e508
SM
23132 (font_expand_wildcards): Fix handling ENCODING field.
23133 Avoid unnecessary checks for weight, slant, and swidth.
aac0c6e3
MR
23134 (font_parse_fcname): New function.
23135 (font_unparse_fcname): New function.
23136 (font_parse_name): New function.
23137 (font_match_p): New function.
23138 (font_get_name): Change return value to Lisp string.
23139 (font_get_spec): New function.
23140 (Qunspecified, Qignore_defface): Don't extern them.
23141 (font_find_for_lface): Assume that LFACE is fully specified.
23142 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
23143 object, use it for FACE.
23144 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
23145 driver->parse_name.
23146 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
23147
23148 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
23149 prototype.
23150
23151 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
23152 argument F. Don't call Fnew_fontset. Instead, directly call
23153 make_fontset.
23154
23155 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
23156
23157 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
23158 of x_new_fontset2.
23159
23160 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
23161 (Qsans__serif): New variables.
23162 (ftfont_generic_family_list): New variable.
23163 (syms_of_ftfont): Initialize the above variables.
23164 (ftfont_pattern_entity): Delete argument NAME.
23165 (ftfont_list_generic_family): New function.
23166 (ftfont_parse_name): Delete this function.
23167 (ftfont_list): Try generic family only when FcFontList found no font.
23168 (ftfont_list_family): Fix args to FcObjectSetBuild.
23169
23170 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
23171 object in attrs[LFACE_FONT_INDEX].
23172 (set_lface_from_font_name): Cancel all changes for font-backend.
23173 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
23174 function.
23175 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
23176 font object in QCfont attribute.
23177 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
23178 (realize_default_face) [USE_FONT_BACKEND]: Call
23179 set_lface_from_font_and_fontset.
23180
23181 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
23182 "fixed", and signal error here if no suitable font was found.
23183
23184 * xfont.c (xfont_parse_name): Delete this function.
23185
23186 * xftfont.c (xftfont_open): Change coding style of error
23187 handling. Generate fontconfig's fontname pattern.
23188
23189 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
23190 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
23191
23192 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
23193 Both args FONTSET and FONT_OBJECT must be existing ones.
23194
231952008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23196
23197 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
23198
231992008-02-01 Kenichi Handa <handa@m17n.org>
23200
23201 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
23202
23203 * font.h (struct font): Fix typo.
23204
23205 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
23206 XLFD_XXX_INDEX.
23207 (enum xlfd_field_mask): New enum.
ef1b0ba7 23208 (intern_font_field): Change argument. Change caller. If digits
aac0c6e3
MR
23209 are followed by non-digits, return a symbol.
23210 (font_expand_wildcards): New function.
23211 (font_parse_xlfd): Fix wildcard handling.
23212 (Ffont_spec): If :name is specified, reflect the info in the other
23213 properties.
23214
23215 * ftfont.c (ftfont_pattern_entity): Fix typo.
23216 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
23217 locale.
23218
232192008-02-01 Kenichi Handa <handa@m17n.org>
23220
23221 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
23222
23223 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
23224 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
23225 registry doesn't specify encoding part.
23226 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
23227 (font_open_by_name): At first try parsing the name.
23228 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
23229 as Lisp symbols.
23230
23231 * fontset.c (reorder_font_vector): Pay attention to the case that
23232 the 3rd element of font_def is nil.
23233 (fontset_font): For the default fontset, append one more fontset
23234 elements for a script-based font specification. Don't add script
23235 attribute on finding a font.
23236 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
23237 font name.
23238 (fontset_ascii_font): If a font can't be opened, return nil.
23239
23240 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
23241 (ftfont_pattern_entity): New function.
23242 (ftfont_get_cache): Assume that freetype_font_cache is already
23243 initialized.
23244 (ftfont_list): Handle the case that a file is specified in font
23245 name. Use ftfont_pattern_entity to generate entities.
23246 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
23247 (syms_of_ftfont): Initialize freetype_font_cache.
23248
23249 * xftfont.c (xftfont_open): Make the font name fontconfig's
23250 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
23251 (xftfont_close): Free font->font.name if not NULL.
23252
23253 * xfont.c (xfont_list): If script is specified for a font, return
23254 null_vector.
23255 (xfont_list_family): Declare argument type.
23256
23257 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
23258 name, set LFACE_FONT (lface) to nil.
23259
23260 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
23261 return Qnil.
23262
232632008-02-01 Kenichi Handa <handa@m17n.org>
23264
23265 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
23266 (standard_args): Add "-enable-font-backend".
23267
232682008-02-01 Kenichi Handa <handa@m17n.org>
23269
23270 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
23271 (struct xftdraw_list, xftdraw_list): Delete them.
23272 (register_xftdraw, check_xftdraw): Delete them.
23273 (xftfont_prepare_face): Don't call register_xftdraw.
23274 (xftfont_done_face): Don't call check_xftdraw.
23275 (xftfont_draw): Get background color only when with_background is
23276 nonzero.
23277
23278 * xfont.c (xfont_encode_char): Fix calculation of char2b.
23279
232802008-02-01 Kenichi Handa <handa@m17n.org>
23281
23282 These changes are for the new font handling codes.
23283
23284 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
23285 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
23286 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
23287 (FONTSRC, FONTOBJ): New variables.
23288 (obj): Add $(FONTOBJ).
23289 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
23290 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
23291 @LIBOTF_LIBS@.
23292 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
23293 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
23294
23295 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
23296
23297 * character.h (Vscript_representative_chars): Extern it.
23298
23299 * character.c (Vscript_representative_chars): New variable.
23300 (syms_of_character): Declare it as a Lisp variable.
23301
23302 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
23303 enable_font_backend is nonzero, accept the composition method
23304 COMPOSITION_WITH_GLYPH_STRING.
23305
23306 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
23307 enumeration COMPOSITION_WITH_GLYPH_STRING.
23308
23309 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
23310 members clip_x, clip_y, clip_width, and clip_height.
23311 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
23312
23313 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
23314 --enable-font-backend. Call syms_of_font.
23315
23316 * fns.c (assoc_no_quit): New function.
23317
23318 * fontset.h (FONT_INFO_FROM_FACE): New macro.
23319 (face_for_font, new_fontset_from_font)
23320 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
23321
23322 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
23323 (fontset_font, fontset_ascii, face_for_char)
23324 (make_fontset_for_ascii_face, Ffont_info)
23325 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
23326 is nonzero, use font-backend mechanism.
23327 (find_font_encoding): Make it non-static.
23328 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
23329 New functions.
23330
23331 * frame.h (struct frame): New members resx and resy.
23332 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
23333 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
23334
23335 * frame.c [USE_FONT_BACKEND]: Include "font.h".
23336 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
23337
23338 * lisp.h (assoc_no_quit): Extern it.
23339
23340 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
23341 Through out the file, use FONT_INFO_FROM_FACE instead of
23342 FONT_INFO_FROM_ID, use get_per_char_metric instead of
23343 rif->per_char_metric.
23344 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
23345 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
23346 (get_glyph_face_and_encoding, fill_composite_glyph_string)
23347 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
23348 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
23349 nonzero, use font-backend mechanism.
23350 (get_per_char_metric): New function.
23351
23352 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
23353 (set_lface_from_font_name)
23354 (set_font_frame_param, free_realized_face)
23355 (prepare_face_for_display, clear_face_gcs)
23356 (Finternal_set_font_selection_order, realize_x_face)
23357 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
23358 font-backend mechanism.
23359 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
23360 (load_face_font) [USE_FONT_BACKEND]: Abort.
23361 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
23362 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
23363
23364 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
23365 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
23366 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
bba3e508
SM
23367 nonzero, register all available font drivers.
23368 Call x_default_font_parameter for deciding a font.
aac0c6e3
MR
23369 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
23370
23371 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
23372 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
23373 (x_set_glyph_string_clipping_exactly)
23374 (x_compute_glyph_string_overhangs)
23375 (x_draw_glyph_string_foreground)
23376 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
23377 (x_free_frame_resources) [USE_FONT_BACKEND]: If
23378 enable_font_backend is nonzero, use font-backend mechanism.
23379 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
23380
233812008-02-01 Kenichi Handa <handa@m17n.org>
23382
23383 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
23384 system_eol_type.
23385 (syms_of_coding): Initialize system_eol_type.
23386
23387 * process.c (Fset_process_coding_system): Inherit system's eol
23388 format if necessary.
23389
233902008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23391
23392 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
23393
233942008-02-01 Kenichi Handa <handa@m17n.org>
23395
23396 * coding.c (decode_eol): Pay attention to buffer relocation in
23397 del_range_2.
23398 (decode_coding): Call decode_eol before restoring undo_list.
23399
234002008-02-01 Kenichi Handa <handa@m17n.org>
23401
23402 * charset.c (Fdefine_charset_internal): Fix setting of
23403 emacs_mule_bytes.
23404
234052008-02-01 Kenichi Handa <handa@m17n.org>
23406
23407 * keyboard.c (read_char): Check if C is a character or not before
23408 looking up Vkeyboard_translate_table.
23409
234102008-02-01 Kenichi Handa <handa@m17n.org>
23411
bba3e508
SM
23412 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION):
23413 Fix condition to terminate the loop.
aac0c6e3
MR
23414
234152008-02-01 Kenichi Handa <handa@m17n.org>
23416
23417 * coding.c (produce_composition): Compare charbuf[i] instead of
23418 args[i] against 0.
23419 (Fterminal_coding_system): Use EQ to compare Lisp objects.
23420
234212008-02-01 Kenichi Handa <handa@m17n.org>
23422
23423 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
23424 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
23425 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
23426 detect_coding.
23427 (emacs_mule_char): Handle old style (Emacs 20) component character
23428 of a composition.
23429 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
23430 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
23431 composition rule.
23432 (decode_coding_emacs_mule): Handle invalid bytes correctly.
23433
234342008-02-01 Kenichi Handa <handa@m17n.org>
23435
23436 * coding.c (encode_coding_ccl): Allocate destination dynamically
23437 when necessary.
23438
234392008-02-01 Kenichi Handa <handa@m17n.org>
23440
23441 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
23442 the loop. When quitted, show a proper error message.
23443
234442008-02-01 Kenichi Handa <handa@m17n.org>
23445
bba3e508
SM
23446 * xterm.c (x_set_glyph_string_clipping_exactly):
23447 Set src->clip_head and src->clip_tail temporarily instead of src->hl.
aac0c6e3
MR
23448
23449 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
23450 character sequence.
23451 (Fccl_execute_on_string): Use ASET, not XSET.
23452
234532008-02-01 Kenichi Handa <handa@m17n.org>
23454
23455 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
23456
234572008-02-01 Kenichi Handa <handa@m17n.org>
23458
23459 * coding.c (decode_coding): Fix the condition of terminating the
23460 decoding loop.
23461
234622008-02-01 Kenichi Handa <handa@m17n.org>
23463
23464 * data.c (Faset): On setting a character bigger than 255 in a
23465 unibyte string, signal an error instead of make the string multibyte.
23466
234672008-02-01 Kenichi Handa <handa@m17n.org>
23468
23469 * charset.c (map_charset_chars): Fix for ascii-compatible charset
23470 made by a mapping table.
23471
234722008-02-01 Kenichi Handa <handa@m17n.org>
23473
23474 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
23475 not.
23476 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
23477 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
23478
bba3e508
SM
23479 * xterm.c (x_draw_composite_glyph_string_foreground):
23480 Check s->face is NULL or not.
aac0c6e3
MR
23481
234822008-02-01 Kenichi Handa <handa@m17n.org>
23483
23484 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
23485 (x_draw_glyph_string): Fix drawing of right_overhang and
23486 left_overhang around/on cursor.
23487
23488 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
23489
234902008-02-01 Kenichi Handa <handa@m17n.org>
23491
23492 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
23493
234942008-02-01 Kenichi Handa <handa@m17n.org>
23495
23496 * coding.c (Fdefine_coding_system_internal)
23497 (Fdefine_coding_system_alias): Avoid a duplicated element in
23498 Vcoding_system_alist.
23499
235002008-02-01 Kenichi Handa <handa@m17n.org>
23501
23502 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
23503
23504 * coding.c (Qcoding_system_define_form): New variable.
23505 (syms_of_coding): Intern and staticpro it.
23506 (Fcoding_system_p): Check Qcoding_system_define_form.
23507 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
23508
23509 * coding.h (CODING_SYSTEM_P): If ID is not available, call
23510 Fcoding_system_p.
23511 (CHECK_CODING_SYSTEM): If ID is not available, call
23512 Fcheck_coding_system.
23513 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
23514 Try also Fcheck_coding_system.
23515
235162008-02-01 Kenichi Handa <handa@m17n.org>
23517
23518 * coding.c (code_conversion_restore): GCPRO arg.
23519
235202008-02-01 Kenichi Handa <handa@m17n.org>
23521
23522 * character.c (lisp_string_width): Check multibyteness of STRING.
23523
235242008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23525
23526 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
23527 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
23528 (decode_mac_font_name): Use decode_coding_c_string instead of
23529 decode_coding.
bba3e508
SM
23530 (x_load_font): Initialize fontp->fontset to -1.
23531 Set fontp->encoding_type.
aac0c6e3
MR
23532
235332008-02-01 Kenichi Handa <handa@m17n.org>
23534
23535 * search.c (search_buffer): Give up BM search on case-fold-search
23536 if one of a target character has a case-equivalence of different
3b59c351 23537 byte length even if that target character is an ASCII.
aac0c6e3
MR
23538 (simple_search): Fix calculation of byte length of matched text.
23539 (boyer_moore): Fix handling of case-equivalent multibyte characters.
23540
235412008-02-01 Kenichi Handa <handa@m17n.org>
23542
23543 * coding.c (decode_coding): Fix handling of invalid bytes.
23544
235452008-02-01 Kenichi Handa <handa@m17n.org>
23546
23547 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
23548 Unicode characters.
23549
235502008-02-01 Kenichi Handa <handa@m17n.org>
23551
23552 * coding.c (encode_coding_object): If a pre-write-conversion
23553 function makes a new buffer, kill it.
23554
235552008-02-01 Kenichi Handa <handa@m17n.org>
23556
23557 * coding.c (QCascii_compatible_p): New variable.
23558 (syms_of_coding): Initialize it.
23559 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
23560 calling string_char.
23561 (record_conversion_result): Add `default:' case.
23562 (coding_charset_list): Delete unused variable `coding_type'.
23563 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
23564 property in the plist of the coding system.
23565 (Fcoding_system_put): Check QCascii_compatible_p.
23566
235672008-02-01 Miles Bader <miles@gnu.org>
23568
23569 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
23570 removed calculation of frame `f', as it's now used.
23571
235722008-02-01 Kenichi Handa <handa@m17n.org>
23573
23574 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
23575 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
23576 (UNIDATA): New variable.
23577 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
bba3e508
SM
23578 (bootstrap-emacs${EXEEXT}): Depends on charprop.el.
23579 Run $(RUN_TEMACS) unconditionally.
aac0c6e3
MR
23580
235812008-02-01 Kenichi Handa <handa@m17n.org>
23582
23583 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
23584 (admindir): New variable.
23585 ($(lispsource)international/charprop.el): New target.
23586
235872008-02-01 Miles Bader <miles@gnu.org>
23588
23589 * character.c (chars-in-region): Remove obsolete function.
23590 (syms_of_character): Remove its initialization.
23591
235922008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
23593
23594 * w32select.c (validate_coding_system)
23595 (setup_windows_coding_system): New functions.
bba3e508
SM
23596 (convert_to_handle_as_coded, Fw32_get_clipboard_data):
23597 Use setup_windows_coding_system.
23598 (setup_config, Fw32_get_clipboard_data):
23599 Use validate_coding_system.
aac0c6e3
MR
23600 (Fx_selection_exists): Move call to setup_config to a place
23601 where signals are allowed.
23602
23603 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
23604 (Fcheck_coding_system): Add declarations.
23605
236062008-02-01 Kenichi Handa <handa@m17n.org>
23607
23608 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
23609
236102008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23611
23612 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
23613 string as the second argument for x_new_fontset.
23614
236152008-02-01 Kenichi Handa <handa@m17n.org>
23616
23617 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
23618 (encode_coding_object): Use safe_call instead of call2.
23619
236202008-02-01 Kenichi Handa <handa@m17n.org>
23621
23622 * fontset.c (Fset_fontset_font): Check family element of a given vector.
23623
23624 * Makefile.in (lisp): Include charprop.el.
23625
236262008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23627
23628 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
23629 Not sure if it's unnecessary.
23630
236312008-02-01 Steven Tamm <steventamm@mac.com>
23632
23633 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
23634 some possibly unnecessary fontset checking code that crashed
23635 when creating a new frame.
23636
236372008-02-01 Kenichi Handa <handa@m17n.org>
23638
23639 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
23640 lookup_face.
23641
23642 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
23643
23644 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
23645
236462008-02-01 Kenichi Handa <handa@m17n.org>
23647
23648 * coding.c: Cancel the change done in HEAD on 2008-02-01.
23649 (coding_charset_list): New function.
23650
23651 * coding.h (coding_charset_list): Extern it.
23652
236532008-02-01 Kenichi Handa <handa@m17n.org>
23654
23655 * fontset.c (Fset_fontset_font): Call find_font_encoding with
23656 concatenation of family and registry.
23657
236582008-02-01 Kenichi Handa <handa@m17n.org>
23659
23660 * character.h (BYTE8_STRING): Fix typo.
23661
23662 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
23663 string to multibyte (sync to HEAD).
23664
23665 * casefiddle.c (casify_region): Handle changes in byte-length
23666 using replace_range_2 (sync to HEAD).
23667
236682008-02-01 Andreas Schwab <schwab@suse.de>
23669
23670 * chartab.c (map_char_table): GCPRO table and arg.
23671
236722008-02-01 Kenichi Handa <handa@m17n.org>
23673
23674 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
23675 already at limit.
23676
236772008-02-01 Kenichi Handa <handa@m17n.org>
23678
23679 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
23680 instead of fast_c_string_match_ignore_case.
bba3e508
SM
23681 (find_font_encoding): Change argument to Lisp_Object.
23682 Use fast_string_match_ignore_case instead of
aac0c6e3
MR
23683 fast_c_string_match_ignore_case. Change caller.
23684
236852008-02-01 Kenichi Handa <handa@m17n.org>
23686
23687 * xdisp.c (get_next_display_element): In unibyte case, decide to
23688 display in octal form by checking a character by
23689 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
23690
23691 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
23692
23693 * character.c (unibyte_has_multibyte_table): New variable.
23694
23695 * character.h (unibyte_has_multibyte_table): Extern it.
23696 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
23697
236982008-02-01 Kenichi Handa <handa@m17n.org>
23699
23700 * coding.c (encode_coding_iso_2022): Fix handling of charset
23701 annotation.
23702
237032008-02-01 Kenichi Handa <handa@m17n.org>
23704
23705 * coding.c (setup_coding_system): If coding_system is nil, use
23706 Qundecided.
23707 (Fterminal_coding_system): Return nil if terminal coding system is
23708 `undecided'.
bba3e508
SM
23709 (syms_of_coding): Define coding-system `undecided' here.
23710 Setup terminal_coding as `undecided'.
aac0c6e3
MR
23711
237122008-02-01 Kenichi Handa <handa@m17n.org>
23713
bba3e508
SM
23714 * xdisp.c (message_dolog, set_message_1):
23715 Call unibyte_char_to_multibyte with arg type int.
aac0c6e3
MR
23716
23717 * lread.c (read1): Fix reading of a char-table.
23718
23719 * print.c (print_object): Include sub char-table in circularities
23720 detection.
23721
237222008-02-01 Kenichi Handa <handa@m17n.org>
23723
23724 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
23725 Append the found sequences in car of ARGS instead of prepending.
23726
237272008-02-01 Kenichi Handa <handa@m17n.org>
23728
23729 * fileio.c (report_file_error): Make a unibyte string from
23730 strerror (errorno).
23731 (Fsubstitute_in_file_name): Fix the arg to
23732 unibyte_char_to_multibyte. It is evaluated twice.
23733
237342008-02-01 Kenichi Handa <handa@m17n.org>
23735
23736 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
23737
237382008-02-01 Kenichi Handa <handa@m17n.org>
23739
23740 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
23741 BOM is not found.
23742 (detect_coding, detect_coding_system): Optimization for ISO-2022
23743 when no 8-bit data is found.
23744
237452008-02-01 Jason Rumney <jasonr@gnu.org>
23746
23747 * w32fns.c (x_to_w32_font): Update to use new coding struct.
23748
237492008-02-01 Kenichi Handa <handa@m17n.org>
23750
23751 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
23752 CHARS.
23753
237542008-02-01 Steven Tamm <steventamm@mac.com>
23755
23756 * macterm.c (mac_encode_char): Add charset argument and update
23757 to use encoding_type.
23758 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
23759 switch to pure fontset.
23760 (decode_mac_font_name): Temporarily remove decoding.
23761 (x_font_name_to_mac_font_name): Temporarily remove encoding.
23762 (x_load_font): Temporarily remove encoding.
23763
237642008-02-01 Kenichi Handa <handa@m17n.org>
23765
23766 * xfaces.c (Fface_font): If frame is not on a window system,
23767 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
23768 refer to face->font.
23769 (split_font_name_into_vector, build_font_name_from_vector)
23770 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
23771 when HAVE_WINDOW_SYSTEM is defined.
23772
237732008-02-01 Kenichi Handa <handa@m17n.org>
23774
23775 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
23776 (x_produce_glyphs): Fix setting of members of cmp in case
23777 cmp->glyph_len is zero.
23778
23779 * fontset.c (Fset_fontset_font): Fix docstring.
23780 (Ffontset_info): Make it backward compatible. New arg ALL.
23781
237822008-02-01 Kim F. Storm <storm@cua.dk>
23783
23784 * process.c (read_process_output): Grow decoding_buf when needed;
23785 this could cause a crash in allocate_string and compact_small_strings.
23786
237872008-02-01 Kenichi Handa <handa@m17n.org>
23788
23789 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
23790
237912008-02-01 Kenichi Handa <handa@m17n.org>
23792
23793 * coding.c (setup_coding_system): Set coding->common_flags
23794 correctly for raw-text.
23795 (consume_chars): On encoding unibyte text by raw-text, don't check
23796 multibyte form.
23797 (encode_coding): On encoding by raw-text, never use translation tables.
23798
23799 * fileio.c (e_write): Short cut for the case of no encoding.
23800
238012008-02-01 Kenichi Handa <handa@m17n.org>
23802
23803 * coding.c (detect_coding, detect_coding_system): Delete unused
23804 variables.
23805
238062008-02-01 Kenichi Handa <handa@m17n.org>
23807
23808 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
23809 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
23810
238112008-02-01 Kenichi Handa <handa@m17n.org>
23812
bba3e508
SM
23813 * coding.c (Ffind_coding_systems_region_internal):
23814 Include raw-text and no-conversion in the result.
aac0c6e3
MR
23815
238162008-02-01 Kenichi Handa <handa@m17n.org>
23817
23818 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
23819 (load_font_get_repertory): Delete unnecessary check of ENCODING of
23820 FONT_DEF.
23821 (font_def_arg, add_arg, from_arg, to_arg): New args.
23822 (set_fontset_font): Change argument.
23823 (Fset_fontset_font): Fix for the case that TARGET is a script
23824 name and charset name.
23825 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
23826
238272008-02-01 Kenichi Handa <handa@m17n.org>
23828
23829 * fontset.c (fontset_font): Rename from fontset_face. Change return
23830 value.
23831 (face_suitable_for_char_p, face_for_char): Adjust for the change
23832 of fontset_font.
23833 (make_fontset_for_ascii_face): Fix setting of the fontset element
23834 for ASCII.
23835 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
23836 to get a font name.
23837 (Ffontset_info): Adjust for the change of fontset_font.
23838
23839 * coding.c (emacs_mule_char): Check invalid code more rigidly.
23840
23841 * character.h (LEADING_CODE_LATIN_1_MIN)
23842 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
23843
238442008-02-01 Kenichi Handa <handa@m17n.org>
23845
23846 * editfns.c (check_translation): New function.
23847 (Ftranslate_region_internal): Handle M:N mapping.
23848
238492008-02-01 Kenichi Handa <handa@m17n.org>
23850
23851 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
23852
238532008-02-01 Kenichi Handa <handa@m17n.org>
23854
23855 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
23856 goto invalid_code.
23857 (decode_coding_iso_2022): Fix handling of invalid designation.
23858
23859 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
23860 after calling code_conversion_save.
23861
238622008-02-01 Kenichi Handa <handa@m17n.org>
23863
23864 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
23865
23866 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
23867
23868 * fontset.c: Include "intervals.h".
23869 (fontset_face): Fix comparing of Lisp_Objects.
bba3e508
SM
23870 (free_face_fontset, new_fontset_from_font_name):
23871 Fix Lisp_Object/int mixup.
aac0c6e3
MR
23872
23873 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
23874
23875 * coding.c: Add many prototypes for static functions.
23876 (get_translation_table): Allow max_lookup to be NULL.
23877 (decode_coding, Ffind_coding_systems_region_internal)
bba3e508
SM
23878 (Funencodable_char_position, Fcheck_coding_systems_region):
23879 Call get_translation_table with max_lookup NULL.
aac0c6e3
MR
23880
238812008-02-01 Kenichi Handa <handa@m17n.org>
23882
23883 * coding.c (get_translation_table): Declare it as Lisp_Object.
23884 (LOOKUP_TRANSLATION_TABLE): New macro.
23885 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
23886 instead of CHAR_TABLE_REF.
23887
238882008-02-01 Kenichi Handa <handa@m17n.org>
23889
23890 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
23891 annotation data format.
23892 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
23893 Change arguments FROM and TO to single argument NCHARS. Change caller.
23894 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
23895 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
23896 (decode_coding_ccl, decode_coding_charset): Pay attention to
23897 coding->charbuf_used.
23898 (get_translation): New function.
23899 (produce_chars): New arguments translation_table and last_block.
23900 Translate characters here. Return number of carryover chars.
23901 Change caller.
23902 (produce_composition): New argument pos. Change caller.
23903 Adjust for the change of annotation data format.
23904 (produce_charset, produce_annotation): Likewise.
23905 (decode_coding, encode_coding): Don't call translate_chars.
23906 (consume_chars): New arg translation_table. Change caller.
23907 (translate_chars): Delete.
23908 (syms_of_coding): Make translation-table's number of extra slots 2.
23909
239102008-02-01 Kenichi Handa <handa@m17n.org>
23911
23912 * search.c (simple_search): Fix setting this_pos_byte in backward
23913 search.
23914
23915 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
23916 byte sequence.
23917 (detect_coding_ccl): Fix setting of the variable valids.
23918
239192008-02-01 Kenichi Handa <handa@m17n.org>
23920
23921 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
23922
23923 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
23924
23925 * editfns.c (Ftranslate_region_internal): Rename from
23926 Ftranslate_region. Accept a char-table in TABLE.
23927 (syms_of_editfns): Defsubr Stranslate_region_internal.
23928
23929 * xfaces.c (set_lface_from_font_name): If a font is specified for
23930 a frame, generate a fontset from the font.
23931 (build_scalable_font_name): If the scalable font is requested for
23932 a specific size, don't change that size.
23933 (try_font_list): Try a scalable font also in the case that a
23934 pattern string is specified.
23935
239362008-02-01 Kenichi Handa <handa@m17n.org>
23937
23938 * xfaces.c (Fface_font): New optional arg CHARACTER.
23939
239402008-02-01 Kenichi Handa <handa@m17n.org>
23941
23942 * charset.h (CHARSET_OFFSET): New macro.
23943
239442008-02-01 Kenichi Handa <handa@m17n.org>
23945
23946 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
23947
23948 * fontset.c (fontset_face): Handle the case that repertory is a
23949 char-table.
23950 (find_font_encoding): Return nil for unknown encoding.
23951 (Fset_fontset_font): Ignore a font of unknown encoding.
23952
239532008-02-01 Kenichi Handa <handa@m17n.org>
23954
23955 * keymap.c (describe_vector): Handle default value of a char table.
23956
23957 * fontset.c (fontset_face): Handle fallback fonts correctly.
23958 (Ffontset_info): Return infomation about fallback fonts.
23959
239602008-02-01 Kenichi Handa <handa@m17n.org>
23961
23962 * fontset.c (FONTSET_DEFAULT): New macro.
23963 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
23964 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
23965 the case that it is nil.
23966 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
23967 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
23968
23969 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
23970 subset or superset.
23971
239722008-02-01 Kenichi Handa <handa@m17n.org>
23973
23974 * emacs.c (main): Call init_charset after syms_of_XXX.
23975
23976 * charset.c (Vcharset_map_directory): Delete.
23977 (Vcharset_map_path): New variable.
23978 (load_charset_map_from_file): Use Vcharset_map_path instead.
23979 (init_charset): Initialize Vcharset_map_path.
23980 (syms_of_charset): Delete declaration of "charset-map-directory",
23981 add declaration of "charset-map-path".
23982
239832008-02-01 Kenichi Handa <handa@m17n.org>
23984
23985 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
23986 ASCII only string.
23987
23988 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
23989
23990 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
23991 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
23992
239932008-02-01 Kenichi Handa <handa@m17n.org>
23994
23995 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
23996
23997 * coding.c (QCmnemonic, QCdefalut_char)
23998 (QCdecode_translation_table, QCencode_translation_table)
23999 (QCpost_read_conversion, QCpre_write_conversion): New variables.
24000 (get_translation_table): Return a list of translation tables if
24001 necessary.
24002 (decode_coding): Call get_translation_table with ENCODEP 0.
24003 (char_encodable_p): If translation_table is non-nil, always call
24004 translate_char.
24005 (Fdefine_coding_system_internal): Accept list of translation
24006 tables as :encode-translation-table and :decode-translation-table.
24007 (Fcoding_system_put): New function.
bba3e508
SM
24008 (syms_of_coding): Declare new symbols.
24009 Defsubr Scoding_system_put.
aac0c6e3
MR
24010 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
24011 typically JISX0212.
24012
24013 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
24014 when the charset is superset type.
24015
24016 * character.c (translate_char): Accept list of translation tables.
24017
240182008-02-01 Kenichi Handa <handa@m17n.org>
24019
24020 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
24021 (CODING_ATTR_TRANS_TBL): New macro.
24022
24023 * coding.c (get_translation_table): New function.
24024 (translate_chars): Fix the bug of skipping annotation data.
24025 (decode_coding, encode_coding): Utilize get_translation_table.
24026 (char_encodable_p, Funencodable_char_position): Translate char if
24027 necessary.
24028 (Ffind_coding_systems_region_internal)
24029 (Fcheck_coding_systems_region): Setup translation table for encode
24030 in a coding system attribute vector in advance.
24031 (Fdefine_coding_system_internal): Allow a symbol as translation
24032 table. For shift-jis type coding system, allow 4th charset.
24033
240342008-02-01 Kenichi Handa <handa@m17n.org>
24035
24036 * coding.c (decode_coding_sjis): Check the first byte rigidly.
24037
24038 * xdisp.c (get_next_display_element): Pass -1 as POS to
24039 FACE_FOR_CHAR if displaying a C-string.
24040
240412008-02-01 Kenichi Handa <handa@m17n.org>
24042
24043 * composite.c (get_composition_id): Handle xoff and yoff in a
24044 composition rule.
24045
24046 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
24047 (struct composition): New member lbearing and rbearing.
24048
24049 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
24050 (x_get_glyph_overhangs): Handle a composition glyph.
24051 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
24052
24053 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
24054 composition glyph.
24055
240562008-02-01 Kenichi Handa <handa@m17n.org>
24057
24058 * print.c: Include charset.h.
24059 (Vprint_charset_text_property): New variable.
24060 (Qdefault): Extern it.
24061 (PRINT_STRING_NON_CHARSET_FOUND)
24062 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
24063 (print_check_string_result): New variable.
24064 (print_check_string_charset_prop): New function.
24065 (print_prune_charset_plist): New variable.
24066 (print_prune_string_charset): New function.
24067 (print_object): Call print_prune_string_charset if
24068 Vprint_charset_text_property is not t.
24069 (print_interval): Print nothing if interval->plist is nil.
24070 (syms_of_print): Declare Vprint_charset_text_property as a lisp
24071 variable. Init and staticpro print_prune_charset_plist.
24072
240732008-02-01 Kenichi Handa <handa@m17n.org>
24074
24075 * fontset.c (new_fontset_from_font_name): Use the specified font
24076 for all characters in the new fontset.
24077
24078 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
24079 OBJECT args.
24080
24081 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
24082 OBJECT args for composition too.
24083
24084 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
24085 OBJECT args.
24086
240872008-02-01 Kenichi Handa <handa@m17n.org>
24088
24089 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
24090
24091 * fontset.c (reorder_font_vector): Adjust for the change of
24092 FONT_DEF format.
24093 (fontset_face): New arg id. Change caller.
24094 (face_for_char): New args pos and object.
24095 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
24096 (fs_query_fontset): Check NAME by Fassoc too.
24097 (Fset_fontset_font): Allow non-XLFD font name.
24098 (Ffontset_info): Adjust for the change of FONT_DEF format.
24099
24100 * fontset.h (face_for_char): Adjust prototype.
24101
24102 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
24103 (append_space, extend_face_to_end_of_line)
24104 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
24105 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
24106
24107 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
24108 POS and OBJECT args.
24109
24110 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
24111 POS and OBJECT args.
24112
241132008-02-01 Jason Rumney <jasonr@gnu.org>
24114
24115 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
24116 of GlobalAlloc'ed memory.
24117
241182008-02-01 Kenichi Handa <handa@m17n.org>
24119
24120 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
24121
24122 * charset.h (charset_table_used): Delete extern.
24123
24124 * charset.c (charset_table_used): Make it static.
24125 (map_charset_chars): Fix args to c_function with.
24126
24127 * chartab.c (map_sub_char_table_for_charset): Fix args to
24128 c_function with.
24129
bba3e508
SM
24130 * coding.h (enum coding_result_code):
24131 Delete CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
aac0c6e3
MR
24132
24133 * coding.c (Qinsufficient_source, Qinconsistent_eol)
24134 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
24135 (Vlast_code_conversion_error): New variables.
24136 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
24137 (ONE_MORE_BYTE): Record error if any instead of signaling an
24138 error. If non-ASCII multibyte char is found, return the negative
24139 value of the code. All callers changed to check it.
24140 (ONE_MORE_BYTE_NO_CHECK): Likewise.
24141 (record_conversion_result): New function. Change all codes setting
24142 coding->result to call this function.
24143 (detect_coding_utf_8, decode_coding_utf_8)
24144 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
24145 Don't use the local variable incomplete.
24146 (emacs_mule_char): Change the second arg to `const'.
24147 (decode_coding): Fix of flushing out unprocessed data.
24148 (make_conversion_work_buffer): Fix making of a work buffer.
24149 (decode_coding_object): Return coding->dst_object.
24150
24151 * fontset.c (set_fontset_font): Fix args.
24152
24153 * lisp.h (CHARACTERBITS): Define as 22.
24154
24155 * process.c (send_process): Be sure to set coding->src_multibyte.
24156
24157 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
24158
241592008-02-01 Kenichi Handa <handa@m17n.org>
24160
24161 * xdisp.c (handle_auto_composed_prop): Give limit to
24162 Fnext_single_char_property_change.
24163
241642008-02-01 Kenichi Handa <handa@m17n.org>
24165
24166 * composite.c (syms_of_composite): Don't make the composition hash
24167 table weak.
24168
24169 * fontset.c (Fset_fontset_font): Fix docstring.
24170
24171 * lisp.h (detect_coding_system): Adjust prototype.
24172
24173 * fileio.c (kill_workbuf_unwind): Delete this function.
24174 (Finsert_file_contents): Adjust the call of detect_coding_system.
24175 Get conversion_buffer by code_conversion_save. Use the macro
24176 CODING_MAY_REQUIRE_DECODING. After decoding, update
24177 coding_system.
24178
24179 * coding.h (make_conversion_work_buffer): Delete extern.
24180 (code_conversion_save): Extern it.
24181
24182 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
24183 (CODING_GET_INFO): Delete argument eol_type. Change callers.
24184 (decode_coding_utf_8): Don't do eol converion.
24185 (detect_coding_utf_16): Check coding->src_chars, not
24186 coding->src_bytes. Add heuristics for those that have no signature.
24187 (decode_coding_emacs_mule, decode_coding_iso_2022)
24188 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
24189 Don't do eol converion.
24190 (adjust_coding_eol_type): Return a new coding system.
24191 (detect_coding): Don't detect eol. Fix for utf-16 detection.
24192 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
24193 each change.
24194 (decode_coding): Pay attention to undo_list. Do eol conversion for
24195 all types of coding-systems (if necessary).
24196 (Vcode_conversion_work_buf_list): Delete it.
24197 (Vcode_conversion_reused_workbuf): Rename from
24198 Vcode_conversion_reused_work_buf.
24199 (Vcode_conversion_workbuf_name): New variable.
24200 (reused_workbuf_in_use): New variable.
24201 (make_conversion_work_buffer): Delete the arg DEPTH.
24202 (code_conversion_restore): Change argument to cons.
24203 (code_conversion_save): Delete the argument BUFFER. Change callers.
24204 (detect_coding_system): New argument src_chars. Change callers.
24205 Fix for utf-16 detection.
24206 (init_coding_once): Don't use ISO_carriage_return.
24207 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
24208 reused_workbuf_in_use.
24209
242102008-02-01 Kenichi Handa <handa@m17n.org>
24211
24212 * keymap.c (store_in_keymap): Pay attention to the case that idx
24213 is a cons specifying a character range.
24214
242152008-02-01 Kenichi Handa <handa@m17n.org>
24216
24217 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
24218 HANDLED_RECOMPUTE_PROPS.
24219
24220 * coding.c (Fdefine_coding_system_internal): Fix checking of
24221 ascii compatibility.
24222
242232008-02-01 Kenichi Handa <handa@m17n.org>
24224
24225 * charset.c (find_charsets_in_text): Delete unused locale variable.
24226 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
24227
24228 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
24229 Resync charset_list to Vemacs_mule_charset_list.
24230
24231 * keymap.c (store_in_keymap): Pay attention to the case that idx
24232 is a cons specifying a character range.
24233
242342008-02-01 Kenichi Handa <handa@m17n.org>
24235
24236 * composite.c (update_compositions): Bind inhibit-read-only, etc
24237 to t before calling remove-list-of-text-properties.
24238
24239 * print.c (print_object): Always print ASCII chars as is.
24240
242412008-02-01 Kenichi Handa <handa@m17n.org>
24242
24243 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
24244
24245 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
24246 is a char table.
24247
242482008-02-01 Kenichi Handa <handa@m17n.org>
24249
24250 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
24251
242522008-02-01 Kenichi Handa <handa@m17n.org>
24253
24254 * xfaces.c (set_lface_from_font_name): Fix for the case that
24255 FONTNAME is not fontset name.
24256
242572008-02-01 Kenichi Handa <handa@m17n.org>
24258
24259 * fns.c (base64_encode_1): Fix previous change.
24260
242612008-02-01 Kenichi Handa <handa@m17n.org>
24262
24263 * fontset.c (set_fontset_font): New function.
24264 (Fset_fontset_font): If a font is specified for a charset, use
24265 map_charset_chars to store the font spec in a fontset.
24266
242672008-02-01 Kenichi Handa <handa@m17n.org>
24268
24269 * fontset.c (fontset_face): Create a fallback fontset on demand.
24270 (make_fontset): Don't create a fallback fontset here.
24271 (free_face_fontset): Free a fallback fontset (if any) too.
24272 (n_auto_fontsets): Delete this variable.
24273 (auto_fontset_alist): New variable.
24274 (new_fontset_from_font_name): Check auto_fontset_alist.
24275 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
24276 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
24277 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
24278 Defsubr Sfontset_list_all.
24279
242802008-02-01 Kenichi Handa <handa@m17n.org>
24281
24282 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
24283
242842008-02-01 Kenichi Handa <handa@m17n.org>
24285
24286 * fontset.c (Fnew_fontset): Check NAME more rigidly.
24287
242882008-02-01 Kenichi Handa <handa@m17n.org>
24289
24290 * editfns.c (Fgoto_char): Fix docstring.
24291
242922008-02-01 Kenichi Handa <handa@m17n.org>
24293
24294 * insdel.c (insert_from_gap): Adjust intervals correctly.
24295
242962008-02-01 Jason Rumney <jasonr@gnu.org>
24297
24298 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
24299 (pfnGetFontUnicodeRanges): New dynamically loaded function.
24300 (w32_initialize): Try to load it.
24301 (x_get_font_repertory): Use it if available.
24302 (w32_encode_char): Add shortcut for unicode output.
24303
24304 * w32fns.c (w32_load_system_font): Default charset to -1.
24305 (x_to_w32_charset): Match all fonts for unicode.
24306 (w32_to_x_charset): New parameter matching. Don't return partial
24307 or wildcard charsets.
24308 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
24309 (w32_codepage_for_font): Return CP_UNICODE for unicode.
24310 (w32_to_x_font): Match charset to real charset.
24311 (enum_font_cb2): Always list unicode versions.
24312
24313 * makefile.w32-in (temacs): Increase EMHEAP.
24314
243152008-02-01 Jason Rumney <jasonr@gnu.org>
24316
24317 * w32term.c (w32_encode_char): New charset parameter.
24318 font_info.encoding becomes encoding_type.
24319 (x_get_font_repertory): New function. Warning: stub only!
24320 (x_new_font): Return quickly if font already set.
24321 (x_new_fontset): fontsetname parameter is Lisp_Object.
24322 Use new fs_query_fontset. Try new_fontset_from_font_name.
24323 Use fontset_name for return value.
24324
24325 * w32term.h: Declare x_get_font_repertory.
24326
24327 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
24328 place of find_charset_in_text. Use encode_coding_object in place
24329 of encode_coding.
24330 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
24331 decode_coding.
24332
24333 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
24334 of x_new_fontset.
24335 (w32_load_system_font): Initialize charset as unicode.
24336 font_info.encoding becomes encoding_type.
24337 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
24338 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
24339 (syms_of_w32fns): Set get_font_repertory_func.
24340
24341 * w32console.c: Include character.h. Use terminal_encode_buffer
24342 from term.c.
bba3e508
SM
24343 (write_glyphs): Use new version of encode_terminal_code.
24344 Use encode_coding_object in place of encode_coding.
aac0c6e3
MR
24345
24346 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
24347 encoding becomes encoding_type.
24348
24349 * term.c (terminal_encode_buffer): Make externally visible.
24350
24351 * makefile.w32-in: Add character.h dependancies.
24352 (character.o, chartab.o): New targets.
24353
243542008-02-01 Kenichi Handa <handa@m17n.org>
24355
24356 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
24357 CODING_ID_EOL_TYPE.
24358
243592008-02-01 Andreas Schwab <schwab@suse.de>
24360
24361 * coding.c (produce_chars): Revert last change.
24362
243632008-02-01 Kenichi Handa <handa@m17n.org>
24364
24365 * charset.h (charset_unicode): Extern it.
24366
24367 * charset.c (string_xstring_p): Check by (C >= 0x100).
bba3e508
SM
24368 (find_charsets_in_text): Change format of the arc CHARSETS.
24369 New arg MULTIBYTE.
aac0c6e3
MR
24370 (Ffind_charset_region, Ffind_charset_string): Adjust for the
24371 change of find_charsets_in_text.
24372 (Fsplit_char): Fix doc. Never return unknown.
24373
24374 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
24375
bba3e508
SM
24376 * coding.c (Fdefine_coding_system_alias):
24377 Update Vcoding_system_list.
aac0c6e3
MR
24378
24379 * fontset.c (load_font_get_repertory): Pay attention to the case
24380 that ENCODING of a font is specified by a char-table.
24381
24382 * xterm.c (x_get_font_repertory): Handle the case that the
24383 encoding of font is other than Unicode.
24384
243852008-02-01 Kenichi Handa <handa@m17n.org>
24386
bba3e508
SM
24387 * term.c (encode_terminal_code): Don't handle glyph-table.
24388 Check if a character is encodable by the terminal coding system.
24389 If not, produces proper number of `?'s. Update
aac0c6e3
MR
24390 terminal_encode_buffer and terminal_encode_buf_size if necessary.
24391 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
24392
243932008-02-01 Kenichi Handa <handa@m17n.org>
24394
bba3e508
SM
24395 * term.c (terminal_encode_buffer, terminal_encode_buf_size):
24396 New variables.
aac0c6e3
MR
24397 (encode_terminal_code): Change argument. Encode multiple
24398 characters at once. Store the result of encoding in
24399 terminal_encode_buffer.
24400 (write_glyphs, insert_glyphs): Adjust for the change of
24401 encode_terminal_code.
24402 (term_init): Initialize terminal_encode_buffer and
24403 terminal_encode_buf_size.
24404
24405 * coding.c (consume_chars): If coding->src_object is nil, don't
24406 check annotation.
24407
244082008-02-01 Kenichi Handa <handa@m17n.org>
24409
24410 * character.c (char_string): Use ASCII_CHAR_P instead of
24411 SINGLE_BYTE_CHAR_P.
24412
244132008-02-01 Kenichi Handa <handa@m17n.org>
24414
24415 * xdisp.c (handle_auto_composed_prop): Check if the last
24416 characters of auto-composed region is newly composed with the
24417 following characters.
24418 (handle_composition_prop): Fix checking of point being inside
24419 composition.
24420
244212008-02-01 Kenichi Handa <handa@m17n.org>
24422
24423 * fns.c (concat): Don't change multibyteness of the result by
24424 concatenating an 8-bit character.
24425
24426 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
24427 multibyteness of the result when newelt is an 8-bit character.
24428
244292008-02-01 Dave Love <fx@gnu.org>
24430
24431 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
24432 EMACS_INT.
24433
24434 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
24435
24436 * xfaces.c (face_numeric_value): Declare dim size_t.
24437 (Finternal_lisp_face_equal_p): Remove unused f.
24438
24439 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
24440 (MATRIX_ROW): Remove unused vars.
24441 (draw_glyphs, x_insert_glyphs, fast_find_position)
24442 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
24443 byte/char counts.
24444
24445 * regex.c (regex_compile): Remove unused var.
24446
24447 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
24448
24449 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
24450 (Faccessible_keymaps, where_is_internal): Remove unused vars.
24451
24452 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
24453
24454 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
24455
24456 * fileio.c (Fwrite_region): Remove unused var.
24457
24458 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
24459 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
24460
24461 * composite.c (Fremove_list_of_text_properties): Declare.
24462
24463 * coding.c (inhibit_pre_post_conversion): Remove (unused).
24464 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
24465 (coding_inherit_eol_type): Remove unused attrs.
24466 (detect_coding): Cast arg of detect_eol.
24467
24468 * charset.c (syms_of_charset): Remove unused var p.
24469 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
24470 byte/char counts.
24471
24472 * casetab.c (set_case_table): Remove unused var.
24473
bba3e508
SM
24474 * window.c (Fdisplay_buffer, Fframe_selected_window):
24475 Remove unused vars.
aac0c6e3
MR
24476
244772008-02-01 Dave Love <fx@gnu.org>
24478
24479 * xterm.c (x_bitmap_mask): Declare.
24480
244812008-02-01 Dave Love <fx@gnu.org>
24482
24483 * xterm.c (x_term_init): Fix type error.
24484
24485 * lisp.h: Add Funibyte_char_to_multibyte.
24486
24487 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
24488 (Fset_coding_system_priority): Doc fix.
24489
24490 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
24491
24492 * indent.c (check_composition): Make start and end EMACS_INT.
24493
24494 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
24495
24496 * xdisp.c (handle_composition_prop, check_point_in_composition):
24497 Make buffer positions EMACS_INT.
24498
24499 * composite.c (find_composition, run_composition_function)
24500 (update_compositions, Ffind_composition_internal): Make buffer
24501 positions EMACS_INT.
24502
bba3e508
SM
24503 * composite.h (find_composition, update_compositions):
24504 Make position args EMACS_INT.
aac0c6e3
MR
24505
24506 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
24507
24508 * intervals.c (get_property_and_range):
24509 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
24510
24511 * unexalpha.c: Don't include varargs.h.
24512
245132008-02-01 Dave Love <fx@gnu.org>
24514
24515 * coding.h (ENCODE_UTF_8): New.
24516
24517 * Makefile.in (gtkutil.o): Depend on coding.h.
24518
24519 * coding.c (Fset_coding_system_priority): Doc fix.
24520
245212008-02-01 Kenichi Handa <handa@m17n.org>
24522
24523 * fileio.c (Finsert_file_contents): Call setup_coding_system in
24524 the case of auto saving.
24525
245262008-02-01 Andreas Schwab <schwab@suse.de>
24527
bba3e508
SM
24528 * chartab.c (map_char_table, map_char_table_for_charset):
24529 Protect `range' from GC.
aac0c6e3
MR
24530
245312008-02-01 Kenichi Handa <handa@m17n.org>
24532
24533 * coding.c (decode_coding_sjis): Check bytes more rigidly.
24534
245352008-02-01 Kenichi Handa <handa@m17n.org>
24536
24537 * fileio.c (choose_write_coding_system): Return a decided coding system.
24538 (Fwrite_region): Set Vlast_coding_system_used to the return value
24539 of choose_write_coding_system.
24540
245412008-02-01 Kenichi Handa <handa@m17n.org>
24542
24543 * charset.c (Fset_charset_priority): Pay attention to duplicated
24544 arguments.
24545
24546 * coding.c (QCcategory): New variable.
24547 (syms_of_coding): Defsym it. Set all elements of
24548 Vcoding_category_table and their symbol values.
24549 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
24550 coding-category-XXX, and coding-category-list.
24551 (Fdefine_coding_system_internal): Add category in the plist.
24552
245532008-02-01 Kenichi Handa <handa@m17n.org>
24554
24555 * callproc.c (Fcall_process): Handle carryover correctly.
24556
24557 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
24558 (raw_text_coding_system): Check NILP (coding_system).
24559 (coding_inherit_eol_type): Check NILP (coding_system) and
24560 NILP (parent).
24561 (consume_chars): Fix for the case of raw-text.
24562
24563 * process.c (read_process_output): Handle carryover correctly.
24564
245652008-02-01 Dave Love <fx@gnu.org>
24566
24567 * regex.c (re_search_2): Fix last change.
24568
245692008-02-01 Kenichi Handa <handa@m17n.org>
24570
24571 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
24572 target_multibyte. Even in a unibyte case, return a converted
24573 multibyte char.
24574 (GET_CHAR_AFTER): New macro.
24575 (PATFETCH): Translate via multibyte char.
24576 (HANDLE_UNIBYTE_RANGE): Delete this macro.
24577 (SETUP_MULTIBYTE_RANGE): New macro.
24578 (regex_compile): Setup compiled code so that its multibyteness
24579 matches that of a target. Fix the handling of "[X-YZ]" using
24580 SETUP_MULTIBYTE_RANGE.
24581 (analyse_first) <charset>: For filling fastmap for all multibyte
24582 characters, don't check by BASE_LEADING_CODE_P.
24583 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
24584 the same as RE_MULTIBYTE_P (bufp) now.
24585 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
24586 (TARGET_CHAR_AND_LENGTH): Delete this macro.
24587 (TRANSLATE_VIA_MULTIBYTE): New macro.
24588 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
24589 It is the same as RE_MULTIBYTE_P (bufp) now.
24590 <exactn>: Translate via multibyte.
bba3e508
SM
24591 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH.
24592 Don't translate it.
aac0c6e3
MR
24593 <charset, charset_not>: Fetch a character by
24594 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
24595 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
24596 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
24597 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
24598 by GET_CHAR_AFTER.
24599 (bcmp_translate): Likewise.
24600
24601 * search.c (compile_pattern): Check the member target_multibyte,
24602 not the member multibyte of buf.
24603
24604 * lread.c (read1): While reading a string, set force_singlebyte
24605 and force_multibyte correctly.
24606
24607 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
24608 up of unibyte_to_multibyte_table.
24609
246102008-02-01 Kenichi Handa <handa@m17n.org>
24611
24612 * coding.c (setup_coding_system): If coding has
24613 post-read-conversion or pre-write-conversion, set
24614 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
24615 respectively.
24616 (decode_coding_gap): Run post-read-conversion if any.
24617
24618 * fileio.c (Finsert_file_contents): Even if we read into a
24619 unibyte buffer, check if we must decode the result or not.
24620
246212008-02-01 Kenichi Handa <handa@m17n.org>
24622
24623 * coding.c (make_conversion_work_buffer): Change the work buffer
24624 name to the same one as that of Emacs 21.
24625
246262008-02-01 Kenichi Handa <handa@m17n.org>
24627
24628 * coding.h (make_conversion_work_buffer): Adjust prototype.
24629 (code_conversion_restore): Don't extern it.
24630
24631 * coding.c (detected_mask): Delete unused variable.
24632 (decode_coding_iso_2022): Pay attention to the byte sequence of
24633 CTEXT extended segment, and retain those bytes as is.
24634 (decode_coding_ccl): Delete unused variable `valids'.
24635 (setup_coding_system): Delete unused variable `category'.
24636 (consume_chars): Delete unused variable `category'. Make it work
24637 for non-multibyte case.
24638 (make_conversion_work_buffer): Change argument.
24639 (saved_coding): Delete unused variable.
24640 (code_conversion_restore): Don't check saved_coding->destination.
24641 (code_conversion_save): New function.
24642 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
24643 instead of record_unwind_protect.
24644 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
24645 (detect_coding_system): Delete unused variable `mask'.
24646 (Fdefine_coding_system_internal): Delete unused variable id.
24647
24648 * fileio.c (kill_workbuf_unwind): New function.
24649 (Finsert_file_contents): On replacing, call
24650 make_conversion_work_buffer with correct args, and call
24651 record_unwind_protect with the first arg kill_workbuf_unwind.
24652
24653 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
24654
246552008-02-01 Kenichi Handa <handa@m17n.org>
24656
24657 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
24658 (fontset_add): Fix for the case that TO is less than TO1.
24659 (Ffontset_info): Don't use fallback fontset on checking the
24660 default fontset.
24661 (dump_fontset): New function for debugging.
24662
24663 * coding.c (Fdefine_coding_system_internal): Fix for the case that
24664 coding_type is Qcharset.
24665
246662008-02-01 Kenichi Handa <handa@m17n.org>
24667
24668 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
24669 (map_char_table): Don't inherit the value from the parent on
24670 initializing VAL. Adjust for the above change.
24671
246722008-02-01 Kenichi Handa <handa@m17n.org>
24673
24674 * coding.c (Qsignature, Qendian): Delete these variables.
24675 (syms_of_coding): Don't initialize them.
24676 (CATEGORY_MASK_UTF_16_AUTO): New macro.
24677 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
24678 detect_info->found.
24679 (decode_coding_utf_16): Don't detect BOM here.
24680 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
24681 is NOT utf_16_without_bom.
24682 (setup_coding_system): For a coding system of type utf-16, check
24683 if the attribute :endian is Qbig or not (not nil or not), and set
24684 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
24685 (detect_coding): If coding type is utf-16 and BOM detection is
24686 required, detect it.
24687 (Fdefine_coding_system_internal): For a coding system of type
24688 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
24689
246902008-02-01 Kenichi Handa <handa@m17n.org>
24691
24692 * coding.c (coding_set_source): Fix for the case that the current
24693 buffer is different from coding->src_object.
24694 (decode_coding_object): Don't use the conversion work buffer if
24695 DST_OBJECT is a buffer.
24696
246972008-02-01 Dave Love <fx@gnu.org>
24698
24699 * lread.c (read_emacs_mule_char) [len==2]: Index
24700 emacs_mule_charset correctly.
24701
247022008-02-01 Dave Love <fx@gnu.org>
24703
24704 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
24705 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
24706 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
24707 treated specially.)
24708 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
24709 (detected_mask): Remove Big5 bits.
24710
247112008-02-01 Kenichi Handa <handa@m17n.org>
24712
24713 The following changes are to make the font rescaling facility
24714 compatible with Emacs 21.
24715
24716 * xfaces.c (Vface_font_rescale_alist): Rename from
24717 Vface_resizing_fonts.
24718 (struct font_name): Rename member resizing_ratio to rescale_ratio.
24719 (font_rescale_ratio): Rename from font_resizing_ratio.
24720 (split_font_name): Set font->rescale_ratio.
24721 (better_font_p): Pay attention to font->rescale_ratio.
24722 (build_scalable_font_name): Likewise. Change RESX, and RESY
24723 fields.
24724 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
24725
247262008-02-01 Kenichi Handa <handa@m17n.org>
24727
24728 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
24729 (Qutf_16_le): Remove these variables.
24730 (syms_of_coding): Don't DEFSYM them.
24731 (decode_coding_utf_16): Fix handling of BOM.
24732 (encode_coding_utf_16): Fix handling of BOM.
24733
247342008-02-01 Kenichi Handa <handa@m17n.org>
24735
24736 * fileio.c (Finsert_file_contents): On replacing, before decoding
24737 the file into the work buffer, set point of the work buffer to the end.
24738
247392008-02-01 Dave Love <fx@gnu.org>
24740
24741 * coding.c (Fcheck_coding_systems_region): Fix type errors.
24742
247432008-02-01 Dave Love <fx@gnu.org>
24744
24745 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
24746 and fix C types.
24747
247482008-02-01 Kenichi Handa <handa@m17n.org>
24749
24750 * xdisp.c (SKIP_GLYPHS): New macro.
24751 (set_cursor_from_row): Pay attention to string display properties.
24752
24753 * category.c (copy_category_entry): Fix for the case that RANGE
24754 is an integer.
24755
24756 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
24757
24758 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
24759
247602008-02-01 Kenichi Handa <handa@m17n.org>
24761
24762 * charset.c (Fcharset_id_internal): New function.
24763 (syms_of_charset): Defsubr it.
24764
24765 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
24766 with the last arg charset_list acquired from coding.
24767 (Fdefine_coding_system_internal): For ccl-based coding system, fix
24768 the attribute coding_attr_ccl_valids.
24769
24770 * coding.h (enum define_coding_ccl_arg_index): Set the first
24771 member coding_arg_ccl_decoder to coding_arg_max.
24772
24773 * ccl.h (ccl_driver): Adjust prototype.
24774
24775 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
24776 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 24777 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
24778 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
24779 last arg Qnil.
24780
247812008-02-01 Kenichi Handa <handa@m17n.org>
24782
24783 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
24784 call encode_char.
24785
24786 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
24787
247882008-02-01 Dave Love <fx@gnu.org>
24789
24790 * composite.c (syms_of_composite): Make composition_hash_table weak.
24791
247922008-02-01 Kenichi Handa <handa@m17n.org>
24793
24794 * dispextern.h (check_face_attributes, generate_ascii_font_name)
24795 (font_name_registry): Don't extern them.
24796 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
24797
24798 * fontset.h (Qfontset): Don't extern it.
24799 (new_fontset_from_font_name): Extern it.
24800
24801 * fontset.c: Give 8 extra slots to fontset objects.
24802 (Qfontset_info): New variable.
24803 (syms_of_fontset): Defsym it.
24804 (FONTSET_FALLBACK): New macro.
24805 (fontset_face): Try also the default fontset.
24806 (make_fontset): Realize a fallback fontset from the default fontset.
24807 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
24808 using split_font_name_into_vector and build_font_name_from_vector.
24809 (Fset_fontset_font): Access the elements of font_spec by enum
24810 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
24811 name by using split_font_name_into_vector.
24812 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
bba3e508
SM
24813 generate a proper font name from the fontset name.
24814 Update Vfontset_alias_alist.
aac0c6e3
MR
24815 (n_auto_fontsets): New variable.
24816 (new_fontset_from_font_name): New function.
24817 (Ffont_info): Store the information about fonts generated from the
24818 default fontset in the first extra slot of the returned char-table.
24819
24820 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
24821 (font_name_registry): Delete function.
24822 (split_font_name_into_vector): New function.
24823 (build_font_name_from_vector): New function.
24824 (font_list): The argument REGISTRY is now a list of registry names.
24825 (choose_face_font): If we are choosing an ASCII font, and ATTRS
24826 specifies an explicit font name, return the name as is. Make a
24827 list of registy names.
24828
24829 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
24830 of x_new_fontset.
24831 (Fx_create_frame): Don't call x_new_fontset here. Just use
24832 x_list_fonts to check the existence of fonts.
24833
24834 * xterm.h (x_new_fontset): Adjust prototype.
24835
24836 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
24837 string. Use new_fontset_from_font_name to create a fontset from a
24838 font name.
24839
248402008-02-01 Kenichi Handa <handa@m17n.org>
24841
24842 * syntax.c (Vfind_word_boundary_function_table): New name for
24843 Vnext_word_boundary_function_table.
24844 (find-word-boundary-function-table): New name for
24845 next-word-boundary-function-table.
24846
248472008-02-01 Dave Love <fx@gnu.org>
24848
24849 * Makefile.in: Fix some dependencies.
24850
24851 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
24852 set it to nil before returning.
24853
24854 * composite.c (update_compositions): Fix type error.
24855
24856 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
24857
248582008-02-01 Kenichi Handa <handa@m17n.org>
24859
24860 * xterm.c (x_new_font): Optimize for the case that the font is
24861 already set for the frame.
24862
248632008-02-01 Kenichi Handa <handa@m17n.org>
24864
24865 * chartab.c (char_table_ascii): Check if the char table contents
24866 is sub-char-table or not.
24867 (char_table_set, char_table_set_range): Fix argument to
24868 char_table_ascii.
24869
24870 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
24871 (detect_coding_utf_8, detect_coding_utf_16)
24872 (detect_coding_emacs_mule, detect_coding_iso_2022)
24873 (detect_coding_sjis, detect_coding_big5)
24874 (detect_coding_ccl, detect_coding_charset): Change argument MASK
24875 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
24876 sequence is valid in this coding system. Change callers.
24877 (MAX_ANNOTATION_LENGTH): New macro.
24878 (ADD_ANNOTATION_DATA): New macro.
bba3e508
SM
24879 (ADD_COMPOSITION_DATA): Change argument. Change callers.
24880 Call ADD_ANNOTATION_DATA. Change the format of annotation data.
aac0c6e3
MR
24881 (ADD_CHARSET_DATA): New macro.
24882 (emacs_mule_char): New argument ID. Change callers.
24883 (decode_coding_emacs_mule, decode_coding_iso_2022)
24884 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
24885 Produce charset annotation data in coding->charbuf.
24886 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
24887 to charset annotation data in coding->charbuf.
24888 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
24889 coding->common_flags if the coding system is iso-2022 based and
24890 uses designation.
24891 (produce_composition): Adjust for the new annotation data format.
24892 (produce_charset): New function.
24893 (produce_annotation): Handle charset annotation.
bba3e508
SM
24894 (handle_composition_annotation, handle_charset_annotation):
24895 New functions.
aac0c6e3
MR
24896 (consume_chars): Handle charset annotation. Utilize the above two
24897 functions.
24898 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
24899 buffer, get the deleted text as a string and set
24900 coding->src_object to that string.
24901 (detect_coding, detect_coding_system): Use the new struct
24902 coding_detection_info.
24903
24904 * coding.h (struct coding_detection_info): New structure.
24905 (struct coding_system): Adjust prototype of the member `detector'.
24906 (CODING_ANNOTATE_CHARSET_MASK): New macro.
24907
249082008-02-01 Kenichi Handa <handa@m17n.org>
24909
24910 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
24911
249122008-02-01 Dave Love <fx@gnu.org>
24913
24914 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
24915 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
24916 to new local and nullify apropos_accumulate before returning.
24917 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
24918
249192008-02-01 Kenichi Handa <handa@m17n.org>
24920
24921 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
24922 correctly.
e3eea1fc 24923
aac0c6e3
MR
249242008-02-01 Dave Love <fx@gnu.org>
24925
24926 * fns.c (Flanginfo): Call synchronize_system_time_locale.
24927
249282008-02-01 Kenichi Handa <handa@m17n.org>
24929
24930 The following changes are to make character composition happen
24931 automatically on displaying.
24932
24933 * Makefile.in (lisp, shortlisp): Add composite.elc.
24934
24935 * composite.h (Qauto_composed, Vauto_composition_function)
24936 (Qauto_composition_function): Extern them.
24937
24938 * composite.c (Vcomposition_function_table)
24939 (Qcomposition_function_table): Delete variables.
24940 (Qauto_composed, Vauto_composition_function)
24941 (Qauto_composition_function): New variables.
24942 (run_composition_function): Don't call
24943 compose-chars-after-function.
24944 (update_compositions): Clear `auto-composed' text property.
24945 (compose_chars_in_text): Delete this function.
24946 (syms_of_composite): Staticpro Qauto_composed and
24947 Qauto_composition_function. Declare Vauto_composition_function as
24948 a Lisp variable.
24949
24950 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
24951
24952 * xdisp.c (it_props): Add an entry for Qauto_composed.
24953 (handle_auto_composed_prop): New function.
24954
24955 * xselect.c (selection_data_to_lisp_data): Don't call
24956 compose_chars_in_text.
24957
249582008-02-01 Dave Love <fx@gnu.org>
24959
24960 * keyboard.c (read_char): Modify checking around use of
24961 Vkeyboard_translate_table.
24962
24963 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
24964 and fix C types.
24965
249662008-02-01 Kenichi Handa <handa@m17n.org>
24967
24968 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
24969 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
24970 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
24971 the case that the last byte is '\r' correctly.
24972 (decode_coding): Flush out the unprocessed data correctly.
24973 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
24974
249752008-02-01 Dave Love <fx@gnu.org>
24976
24977 * xterm.c (XTread_socket): Fix changes for defined keysyms.
24978 Add XK_ISO... case.
24979 (xaw_scroll_callback): Revert last change.
24980
249812008-02-01 Kenichi Handa <handa@m17n.org>
24982
24983 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
24984
249852008-02-01 Kenichi Handa <handa@m17n.org>
24986
24987 * xfaces.c (Vface_resizing_fonts): New variable.
24988 (struct font_name): New member `resizing_ratio'.
24989 (font_resizing_ratio): New function.
24990 (split_font_name): Set font->resizing_ratio.
24991 (better_font_p): Pay attention to font->resizing_ratio.
24992 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
24993 RESX, and RESY fields.
24994 (try_alternative_families): Try scalable fonts if
24995 Vscalable_fonts_allowed is not Qt.
24996 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
24997
249982008-02-01 Dave Love <fx@gnu.org>
24999
25000 * xterm.c (xaw_scroll_callback): Cast correctly.
25001
250022008-02-01 Dave Love <fx@gnu.org>
25003
25004 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
25005 (lispy_kana_keys): Comment out.
25006 (make_lispy_event) [XK_kana_A]: Comment out.
25007
25008 * xterm.c (xaw_scroll_callback): Cast call_data.
25009 (XTread_socket): Deal with ASCII keysyms.
25010 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
25011
250122008-02-01 Dave Love <fx@gnu.org>
25013
25014 * xterm.c (Vx_keysym_table): New.
25015 (syms_of_xterm): Initialize it.
25016 (XTread_socket): Use it.
25017 From head: Eliminate incorrect optimization that tried to avoid
25018 decoding the output of X*LookupString.
25019 (x_get_font_repertory): Delete charset declaration.
25020
250212008-02-01 Kenichi Handa <handa@m17n.org>
25022
25023 * coding.c (detect_coding_charset): If only ASCII bytes are found,
25024 return 0.
bba3e508
SM
25025 (Fdefine_coding_system_internal):
25026 Setup CODING_ATTR_ASCII_COMPAT (attrs) correctly.
aac0c6e3
MR
25027
250282008-02-01 Dave Love <fx@gnu.org>
25029
25030 * coding.c (Fcheck_coding_system): Doc fix.
25031
25032 * editfns.c (Finsert_byte): Return a proper value.
25033
250342008-02-01 Kenichi Handa <handa@m17n.org>
25035
bba3e508
SM
25036 * coding.c (decode_coding): Fix args to translate_chars.
25037 Pay attention to Vstandard_translation_table_for_decode.
aac0c6e3
MR
25038 (encode_coding): Fix args to translate_chars. Pay attention to
25039 Vstandard_translation_table_for_encode.
25040
25041 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
25042 SINGLE_BYTE_CHAR_P.
25043
25044 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
25045 not by SINGLE_BYTE_CHAR_P.
25046
25047 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
25048 SINGLE_BYTE_CHAR_P.
25049
25050 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
25051 SINGLE_BYTE_CHAR_P.
25052
25053 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
25054 by SINGLE_BYTE_CHAR_P.
25055
25056 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
25057 SINGLE_BYTE_CHAR_P.
25058
250592008-02-01 Dave Love <fx@gnu.org>
25060
25061 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
25062
250632008-02-01 Dave Love <fx@gnu.org>
25064
25065 * fns.c (Flanginfo): Fix typo.
25066
25067 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
25068
250692008-02-01 Kenichi Handa <handa@m17n.org>
25070
25071 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
25072 (detect_coding_emacs_mule, detect_coding_iso_2022)
25073 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
25074 incomplete byte sequence. Don't update *mask when correctly detected.
25075 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
25076 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
25077 (detect_coding, detect_coding_system): Adjust for the changes above.
25078
250792008-02-01 Kenichi Handa <handa@m17n.org>
25080
25081 * character.c (char_string): Rename from
25082 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
25083 (string_char): Rename from string_char.
25084
25085 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
25086 if C is greater than MAX_3_BYTE_CHAR.
bba3e508
SM
25087 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE):
25088 Call string_char instead of string_char_with_unification.
aac0c6e3
MR
25089
250902008-02-01 Dave Love <fx@gnu.org>
25091
25092 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
25093
250942008-02-01 Kenichi Handa <handa@m17n.org>
25095
25096 * keymap.c (push_key_description): Pay attention to force_multibyte.
25097
25098 * regex.c (re_search_2): Fix for the case of unibyte buffer.
25099
251002008-02-01 Dave Love <fx@gnu.org>
25101
25102 * charset.c (define_charset_internal): Rename `supprementary'.
25103
25104 * Makefile.in (lisp, shortlisp): Remove latin-N.
25105
251062008-02-01 Dave Love <fx@gnu.org>
25107
25108 * xfns.c (x_window, x_window): Use use_xim.
25109
25110 * xterm.c (use_xim): Initialize.
25111 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
25112 (x_term_init): Maybe set use_xim.
25113
25114 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
25115
251162008-02-01 Kenichi Handa <handa@m17n.org>
25117
25118 * search.c (search_buffer): Fix case-fold-search of multibyte
25119 characters.
25120 (boyer_moore): Rename the last argument to char_high_bits.
25121
251222008-02-01 Kenichi Handa <handa@m17n.org>
25123
25124 * xdisp.c (display_string): Fix for the case of zero width glyph.
25125
25126 * xfns.c (x_set_font): Change the error message of the case that
25127 x_new_fontset returns Qt.
25128
25129 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
25130 (Finternal_set_lisp_face_attribute): Use signal_error for the
25131 error of invalid fontset.
25132
25133 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
25134 fontset, return Qt.
25135
251362008-02-01 Dave Love <fx@gnu.org>
25137
25138 * unexelf.c (unexec): Make .got handling not SGI-specific.
25139
25140 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
25141
25142 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
25143
25144 * keyboard.c (read_key_sequence): Fix type error.
25145
bba3e508
SM
25146 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte):
25147 Fix type error.
aac0c6e3
MR
25148
25149 * fontset.c (fontset_add): Return Lisp_Object.
25150
251512008-02-01 Dave Love <fx@gnu.org>
25152
25153 * charset.h (charset_ordered_list_tick): Declare extern.
25154
251552008-02-01 Kenichi Handa <handa@m17n.org>
25156
25157 The following changes (and some of 2008-02-01 changes of mine) are
25158 for handling syntax, category, and case conversion for unibyte
25159 characters by converting them to multibyte on the fly. With these
25160 changes, we don't have to setup syntax and case tables for unibyte
25161 characters in each language environment.
25162
25163 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
25164 multibyte if necessary.
25165
25166 * bytecode.c (Fbyte_code): Likewise.
25167
25168 * character.h (LEADING_CODE_LATIN_1_MIN)
25169 (LEADING_CODE_LATIN_1_MAX): New macros.
25170 (unibyte_to_multibyte_table): Extern it.
25171 (unibyte_char_to_multibyte): New macro.
25172 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
25173 (CHAR_LEADING_CODE): New macro.
25174 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
25175
25176 * character.c (unibyte_to_multibyte_table): New variable.
25177 (unibyte_char_to_multibyte): Move to character.h and define as macro.
25178 (multibyte_char_to_unibyte): If C is an eight-bit character,
25179 convert it to the corresponding byte value.
25180
25181 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
25182 not 1, signals an error. Update the elements of
25183 unibyte_to_multibyte_table.
25184 (init_charset_once): Initialize unibyte_to_multibyte_table.
25185 (syms_of_charset): Define the charset `iso-8859-1'.
25186
25187 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
25188 as is without converting it to unibyte. In a unibyte buffer,
25189 convert C to multibyte before checking the syntax.
25190
25191 * lisp.h (unibyte_char_to_multibyte): Delete extern.
25192
25193 * minibuf.c (Fminibuffer_complete_word): Use the macro
25194 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
25195
25196 * regex.h (struct re_pattern_buffer): New member target_multibyte.
25197
25198 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
bba3e508
SM
25199 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte.
25200 If that is zero, convert an eight-bit char to multibyte.
aac0c6e3
MR
25201 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
25202 non-emacs case.
25203 (PATFETCH): Convert an eight-bit char to multibyte.
25204 (HANDLE_UNIBYTE_RANGE): New macro.
25205 (regex_compile): Setup the compiled pattern for multibyte chars
25206 even if the given regex string is unibyte. Use PATFETCH_RAW
25207 instead of PATFETCH in many places. To handle `charset'
25208 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
25209 only for ASCII chars.
25210 (analyse_first) <exactn>: Simplify because the compiled pattern
25211 is multibyte.
25212 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
25213 <charset>: Use CHAR_LEADING_CODE to get leading codes.
25214 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
25215 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
25216 multibyte always 1.
25217 (re_search_2): In emacs, set the locale variable multibyte to 1,
25218 otherwise to 0. New local variable target_multibyte. Check it
bba3e508
SM
25219 to decide the multibyteness of STR1 and STR2.
25220 If target_multibyte is zero, convert unibyte chars to multibyte
aac0c6e3
MR
25221 before translating and checking fastmap.
25222 (TARGET_CHAR_AND_LENGTH): New macro.
25223 (re_match_2_internal): In emacs, set the locale variable multibyte
bba3e508
SM
25224 to 1, otherwise to 0. New local variable target_multibyte.
25225 Check it to decide the multibyteness of STR1 and STR2.
25226 Use TARGET_CHAR_AND_LENGTH to fetch a character from D.
aac0c6e3
MR
25227 <charset, charset_not>: If multibyte is nonzero, check fastmap
25228 only for ASCII chars. Call bcmp_translate with
25229 target_multibyte, not with multibyte.
25230 <begline>: Declare the local variable C as `unsigned'.
25231 (bcmp_translate): Change the last arg name to target_multibyte.
25232
25233 * search.c (compile_pattern_1): Don't adjust the multibyteness of
25234 the regexp pattern and the matching target. Set cp->buf.multibyte
25235 to the multibyteness of the regexp pattern. Set
25236 cp->but.target_multibyte to the multibyteness of the matching target.
25237 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
25238 FETCH_STRING_CHAR_ADVANCE.
25239 (Freplace_match): Convert unibyte chars to multibyte.
25240
25241 * syntax.c (char_quoted, back_comment, scan_words)
25242 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
25243 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
25244 unibyte chars to multibyte.
25245 (skip_chars): Delete the arg syntaxp, and move the code for
25246 handling syntaxes to skip_syntaxes. Change callers.
25247 Fix the case that the multibyteness of STRING and the current
25248 buffer doesn't match.
25249 (skip_syntaxes): New function.
25250 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
25251 SINGLE_BYTE_CHAR_P.
25252
252532008-02-01 Kenichi Handa <handa@m17n.org>
25254
25255 * xfaces.c (QCfontset): New variable.
25256 (LFACE_FONTSET): New macro.
25257 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
25258 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
25259 (Finternal_set_lisp_face_attribute)
25260 (Finternal_get_lisp_face_attribute): Handle QCfontset.
25261 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
25262 check also LFACE_FONTSET_INDEX.
25263 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
25264 attrs[LFACE_FONT_INDEX].
25265 (syms_of_xfaces): Intern and staticpro QCfontset.
25266
25267 * dispextern.h (enum lface_attribute_index): New member
25268 LFACE_FONTSET_INDEX.
25269
25270 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
25271
252722008-02-01 Kenichi Handa <handa@m17n.org>
25273
25274 * coding.c (coding_set_destination): Fix coding->destination for
25275 the case converting a region.
25276 (encode_coding_utf_8): Encode eight-bit chars as single byte.
25277 (encode_coding_object): Fix coding->dst_pos and
25278 coding->dst_pos_byte for the case converting a region.
25279
25280 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
25281
25282 * character.h (BYTE8_STRING): New macro.
25283
25284 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
25285
252862008-02-01 Kenichi Handa <handa@m17n.org>
25287
25288 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
25289 characters by octal form.
25290
25291 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
25292
25293 * buffer.h (_fetch_multibyte_char_len): Delete extern.
25294 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
25295 _fetch_multibyte_char_len.
25296 (FETCH_CHAR_AS_MULTIBYTE): New macro.
25297
25298 * casetab.c (set_canon, set_identity, shuffle): Simplify.
25299
25300 * casefiddle.c (casify_object): Simplify. Handle the case that
25301 the case conversion change the byte length.
25302 (casify_region): Likewise.
25303
25304 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
25305
25306 * character.c (_fetch_multibyte_char_len): Delete this variable.
25307 (syms_of_character): Setup Vprintable_chars.
25308
25309 * editfns.c (Fchar_equal): Fix for the unibyte case.
25310 (Finsert_byte): New function.
25311 (syms_of_editfns): Defsubr it.
25312
25313 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
25314 of direct code 0x3ffff.
25315
25316 * search.c (Freplace_match): Fix for the unibyte case.
25317
253182008-02-01 Kenichi Handa <handa@m17n.org>
25319
25320 * lread.c (safe_to_load_p): Fix the logic.
25321
25322 * syntax.c (scan_words): Don't treat characters belonging to
25323 different scripts as constituting a word.
25324
25325 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
25326
25327 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
25328
25329 * emacs.c (main): In the case of --unibyte, instead of aborting on
25330 finding non-empty buffer, make it unibyte.
25331
253322008-02-01 Kenichi Handa <handa@m17n.org>
25333
25334 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
25335 to create a fontset.
25336
253372008-02-01 Dave Love <fx@gnu.org>
25338
25339 * character.c (Funibyte_char_to_multibyte): Doc fix.
25340
25341 * xfns.c [HAVE_STDLIB_H]: Fix last change.
25342
253432008-02-01 Kenichi Handa <handa@m17n.org>
25344
25345 * fontset.c (fontset_add): Make the type `int'.
25346 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
25347
25348 * character.c (unibyte_char_to_multibyte)
25349 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
25350 charset_unibyte, not charset_primary.
25351
25352 * charset.h (charset_unibyte): Extern it instead of charset_primary.
25353
25354 * charset.c (charset_unibyte): Rename from charset_primary.
25355 (Funibyte_charset): Rename from Fprimary_charset.
25356 (Fset_unibyte_charset): Rename from Fset_primary_charset.
25357 (syms_of_charset): Adjust for the above changes.
25358
25359 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
25360 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
25361 it->multibyte_p is zero.
25362
25363 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
25364 Delete extern.
25365
253662008-02-01 Kenichi Handa <handa@m17n.org>
25367
25368 * coding.c (Fdefine_coding_system_internal): Fix category setting
25369 for a coding system of type iso-2022.
25370
253712008-02-01 Kenichi Handa <handa@m17n.org>
25372
25373 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
25374
253752008-02-01 Kenichi Handa <handa@m17n.org>
25376
25377 * syntax.c (Vnext_word_boundary_function_table): New variable.
25378 (next-word-boundary-function-table): Declare it as a Lisp variable
25379 in syms_of_syntax.
25380 (scan_words): Call functions in Vnext_word_boundary_function_table
25381 if any.
25382
25383 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
25384
25385 * fontset.c (fs_load_font): If fontp->charset is not negative,
25386 return fontp without setting its members.
25387
253882008-02-01 Dave Love <fx@gnu.org>
25389
25390 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
25391
25392 * m/sparc.h (HAVE_ALLOCA): Delete.
25393
25394 * s/irix6-5.h: Don't include strings.h.
25395 (bcopy, bzero, bcmp): Don't undef.
25396
25397 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
25398
25399 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
25400 (TIOCSIGSEND): Don't test IRIX6.
25401 (bcopy, bzero, bcmp): Define conditionally.
25402
254032008-02-01 Kenichi Handa <handa@m17n.org>
25404
25405 * buffer.c (Qas, Qmake, Qto): New variables.
25406 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
25407 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
25408
25409 * callproc.c (Fcall_process): Don't call insert_1_both directly if
25410 we are inserting a process output into a multibyte buffer.
25411
25412 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
25413 multibyte_char_to_unibyte.
25414
25415 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
25416 by the primary charset, make it eight-bit char.
25417 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
25418
25419 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
25420 (charset_8_bit__control, charset_8_bit_graphic)
25421 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
25422 (define_charset_internal): New function.
25423 (syms_of_charset): Call define_charset_internal for pre-defined
25424 charsets.
25425
25426 * charset.h (charset_8_bit): Extern it.
25427
25428 * coding.c (make_conversion_work_buffer): Adjust for the change
25429 of Fset_buffer_multibyte.
25430 (encode_coding_raw_text): Increment p0 in the loop.
25431
25432 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
25433
bba3e508
SM
25434 * xdisp.c (setup_echo_area_for_printing, set_message_1):
25435 Adjust for the change of Fset_buffer_multibyte.
aac0c6e3
MR
25436
25437 * fns.c (Fstring_to_multibyte): New function.
25438 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
25439
254402008-02-01 Dave Love <fx@gnu.org>
25441
25442 * xfns.c (x_put_x_image): Declare args.
25443
25444 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
25445 (try_font_list): Declare an arg.
25446
25447 * xdisp.c (message2_nolog, set_message): Declare an arg.
25448
25449 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
25450
25451 * syntax.c (scan_sexps_forward): Declare an arg.
25452
25453 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
25454 Declare an arg.
25455
25456 * lisp.h (Fnew_fontset): Declare.
25457
25458 * keymap.c (push_key_description): Call CHARACTERP correctly.
25459
25460 * fontset.c (fontset_add): Declare args. Call make_number correctly.
25461 (face_for_char): Delete unused vars.
25462 (Fset_fontset_font): Doc fix. Delete unused vars.
25463
25464 * doc.c (Fsubstitute_command_keys): Delete unused vars.
25465
25466 * composite.c (update_compositions): Declare arg.
25467
25468 * cm.c (calccost, cmgoto): Declare args.
25469
25470 * charset.c: Remove `emacs' conditional. Doc fixes.
25471 (map_char_table_for_charset): Declare.
25472
25473 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
25474
25475 * ccl.c: Remove `emacs' conditional.
25476
254772008-02-01 Kenichi Handa <handa@m17n.org>
25478
25479 The following changes are to allow specifying multiple font
25480 patterns for a character range (specified by script or charset).
25481
25482 * Makefile.in (abbrev.o): Depend on syntax.h.
25483 (xfaces.o): Depend on charset.h.
25484
25485 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
25486 SINGLE_BYTE_CHAR_P.
25487
25488 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
25489
25490 * character.h (Vchar_script_table): Extern it.
25491
25492 * character.c (Vscript_alist): Delete.
25493 (Vchar_script_table, Qchar_script_table): New variable.
25494 (syms_of_character): Declare Vchar_script_table as a lisp variable
25495 and initialize it.
25496
25497 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
25498 have property char-table-extra-slots, make no extra slot.
25499
25500 * dispextern.h (struct face): Delete member `charset'.
25501 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
25502 SINGLE_BYTE_CHAR_P.
25503 (choose_face_font, lookup_non_ascii_face, font_name_registry):
25504 Add prototypes.
25505 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
25506 (generate_ascii_font_name): Rename from generate_ascii_font.
25507
25508 * fontset.h (get_font_repertory_func): New prototype.
25509 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
25510 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
25511
25512 * fontset.c (Qprepend, Qappend): New variables.
25513 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
25514 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
25515 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
25516 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
25517 (fontset_ref_and_range, fontset_add, reorder_font_vector)
25518 (load_font_get_repertory): New functions.
25519 (fontset_set): Delete.
25520 (fontset_face): New arg FACE. Return face ID, not face.
25521 Complete re-write to handle new fontset structure. Change caller.
25522 (free_face_fontset): Use ASET istead of AREF (X) = Y.
25523 (face_for_char): Don't call lookup_face.
25524 (make_fontset_for_ascii_face): New arg FACE.
25525 (fs_load_font): New arg CHARSET_ID. Don't check
25526 Vfont_encoding_alist here.
25527 (find_font_encoding): New function.
25528 (list_fontsets): Use STRINGP, not ! NILP.
25529 (accumulate_script_ranges): New function.
bba3e508
SM
25530 (Fset_fontset_font, Fnew_fontset, Ffontset_info):
25531 Completely re-written to handle new fontset structure.
aac0c6e3 25532 (Ffontset_font): Return a copy of element.
bba3e508
SM
25533 (syms_of_fontset): Define symbols Qprepend and Qappend.
25534 Fix docstring of font-encoding-alist.
aac0c6e3
MR
25535
25536 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
25537 (Fset_fotset_font): Fix arguments to 5.
25538
25539 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
25540
25541 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
25542 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
25543 (highlight_trailing_whitespace): Adjust for the change of
25544 lookup_named_face.
25545
25546 * xfaces.c: Include charset.h.
25547 (load_face_font): Delete argument C. Change caller.
25548 (generate_ascii_font_name): Rename from generate_ascii_font.
25549 (font_name_registry): New function.
25550 (cache_face): Store ascii faces before non-ascii faces in buckets.
25551 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
25552 Lookup only ascii faces.
25553 (lookup_non_ascii_face): New function.
25554 (lookup_named_face): Delete argument C. Change caller.
25555 (lookup_derived_face): Delete argument C. Change caller.
25556 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
25557 a string, just call font_list with it.
25558 (choose_face_font): Delete arguments FACE and C. New arg
25559 FONT_SPEC. Change caller.
25560 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
25561 Change caller.
25562 (realize_non_ascii_face): New function.
25563 (realize_x_face): Call load_face_font here.
25564 (realize_tty_face): Delete argument C. Change caller.
25565 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
25566 get a face ID.
25567 (dump_realized_face): Don't print charset of FACE.
25568
25569 * xfns.c (x_set_font): Always call x_new_fontset and
25570 store_frame_parameter.
25571 (Fx_create_frame): Call x_new_fontset, not x_new_font.
25572 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
25573
25574 * xterm.h (x_get_font_repertory): Extern it.
25575
25576 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
25577 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
25578 it->multibyte_p is zero.
25579 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
25580 (x_new_fontset): If FONTSETNAME doesn't match any existing
25581 fontsets, create a new one.
25582 (x_get_font_repertory): New function.
25583
255842008-02-01 Kenichi Handa <handa@m17n.org>
25585
25586 * coding.c (Ffind_coding_systems_region_internal): Detect an
25587 ASCII only string correctly.
25588
25589 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
25590 version is 0.
25591
255922008-02-01 Kenichi Handa <handa@m17n.org>
25593
25594 * lread.c: Include "coding.h".
25595 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
25596 (load_each_byte, unread_char): New variables.
25597 (readchar_backlog): Delete.
25598 (readchar): Return a character unless load_each_byte is nonzero.
25599 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
25600 cons. If unread_char is not -1, simply return it.
25601 (unreadchar): Handle the case that readcharfun is
25602 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
25603 (read_multibyte): Delete.
25604 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
25605 (read_emacs_mule_char): New functions.
25606 (Fload): Even if the file doesn't have the extension ".elc", if
25607 safe_to_load_p returns a positive version number, assume that the
25608 file contains bytecompiled code. If the version is less than 22,
25609 load the file while decoding multibyte sequences by emacs-mule.
25610 (readevalloop): Don't use readchar_backlog.
25611 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
25612 (Fread_from_string): Pay attention to the case that STREAM is a cons.
25613 (read_escape): Delete the arg BYTEREP.
25614 (read1): Set load_each_byte to 1 temporarily while handling
25615 #@NUMBER. Don't call read_multibyte.
25616 (read_vector): Call Fread with a cons. If readcharfun is
25617 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
25618 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
25619 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
25620 and Qload_force_doc_strings.
25621
256222008-02-01 Kenichi Handa <handa@m17n.org>
25623
bba3e508
SM
25624 * xdisp.c (face_before_or_after_it_pos):
25625 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
aac0c6e3
MR
25626
256272008-02-01 Kenichi Handa <handa@m17n.org>
25628
25629 * character.h (TRAILING_CODE_P): New macro.
25630 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
25631 (string_char_with_unification): Fix prototype.
25632 (Vscript_alist): Extern it.
25633
25634 * character.c (Vscript_alist): New variable.
25635 (string_char_with_unification, str_as_unibyte)
25636 (string_escape_byte8): Add `const' to local variables.
25637 (syms_of_character): Declare script-alist as a Lisp variable.
25638
25639 * charset.h (Vcharset_ordered_list): Extern it.
25640 (charset_ordered_list_tick): Extern it.
25641 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
25642 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
25643 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
25644 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
25645 (Funify_charset): Adjust for the change of Funify_charset.
25646
25647 * charset.c (charset_ordered_list_tick): New variable.
25648 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
25649 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6e051c0a 25650 deunify instead of unify a charset.
aac0c6e3
MR
25651 (string_xstring_p): Add `const' to local variables.
25652 (find_charsets_in_text): Add `const' to arguments and local variables.
bba3e508
SM
25653 (encode_char): Adjust for the change of Funify_charset.
25654 Fix detecting of invalid code.
aac0c6e3
MR
25655 (Fset_charset_priority): Increment charset_ordered_list_tick.
25656 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
25657 and TO_CODE.
25658
25659 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
25660 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
25661 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
25662 (decode_coding_ccl, consume_chars)
25663 (Ffind_coding_systems_region_internal)
25664 (Fcheck_coding_systems_region): Add `const' to local variables.
25665
25666 * print.c (print_object): Use octal form for printing the
25667 contents of a bool vector.
25668
256692008-02-01 Dave Love <fx@gnu.org>
25670
25671 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
25672 <version == 20>: Refuse to load.
25673
256742008-02-01 Dave Love <fx@gnu.org>
25675
25676 * fns.c: Move coding.h.
25677 (Qcodeset, Qdays, Qmonths): New.
25678 (concat): Use CHARACTERP instead of INTEGERP.
25679 (Flocale_codeset): Delete.
25680 (Flanginfo): New function.
25681 (syms_of_fns): Change accordingly.
25682
25683 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
25684
256852008-02-01 Dave Love <fx@gnu.org>
25686
bba3e508
SM
25687 * casetab.c (init_casetab_once, init_casetab_once):
25688 Fix CHAR_TABLE_SET call.
aac0c6e3
MR
25689
25690 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
25691
25692 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
25693
25694 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
25695 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
25696 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
25697
25698 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
25699
25700 * coding.c (ENCODE_DESIGNATION, decode_eol)
25701 (make_conversion_work_buffer, code_conversion_restore)
25702 (Fdefine_coding_system_internal): Convert Lisp types.
25703 (code_conversion_restore): Use EQ, not ==.
25704 (Fencode_coding_string): Fix code_convert_string call.
25705
25706 * coding.h (code_convert_region): Fix prototype.
25707
25708 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
25709
25710 * fontset.c (fontset_ref, fontset_set, fs_load_font)
25711 (Ffontset_info): Convert Lisp types.
25712
25713 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
25714
25715 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
25716
25717 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
25718
25719 * chartab.c: Include "...h", not <...h> in some cases.
25720
25721 * callproc.c (Fcall_process): Remove unused variables.
25722
257232008-02-01 Dave Love <fx@gnu.org>
25724
25725 * coding.c (Fset_coding_system_priority): Allow null arg list.
25726
257272008-02-01 Dave Love <fx@gnu.org>
25728
25729 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
25730 (Fself_insert_and_exit): Use CHARACTERP.
25731
25732 * callproc.c (Fcall_process): Remove unused vars.
25733
25734 * xterm.c (XTread_socket): Add extra dead keysyms.
25735
25736 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
25737
25738 * dispextern.h: Remove prototypes for redraw_frame,
25739 redraw_garbaged_frames.
25740
25741 * cmds.c (Fself_insert_command): Use CHARACTERP.
25742
25743 * chartab.c (make_sub_char_table): Remove unused var.
25744 (Fset_char_table_default, Fmap_char_table): Doc fix.
25745
25746 * keymap.c (access_keymap): Remove generic char code.
25747 (push_key_description): Use CHARACTERP.
25748
257492008-02-01 Dave Love <fx@gnu.org>
25750
25751 * charset.c: Doc fixes.
25752 (Funify_charset): Extra checking.
25753
257542008-02-01 Dave Love <fx@gnu.org>
25755
25756 * lread.c: Remove some unused variables.
25757 (safe_to_load_p): If safe, return the magic number version byte.
25758 (Fload): Maybe use load-with-code-conversion.
25759
257602008-02-01 Kenichi Handa <handa@m17n.org>
25761
25762 * category.c (Fmodify_category_entry): Don't modify the contents
bba3e508
SM
25763 of category_set for characters out of the range.
25764 Avoid unnecessary modification.
aac0c6e3
MR
25765
25766 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
25767 Vchar_unify_table. The default value of the table is now nil.
25768
25769 * character.c (syms_of_character): Setup Vchar_width_table for
25770 eight-bit-control and raw-byte chars.
25771
bba3e508
SM
25772 * charset.h (enum define_charset_arg_index):
25773 Delete charset_arg_parents and add charset_arg_subset and
aac0c6e3
MR
25774 charset_arg_superset.
25775 (enum charset_attr_index): Delete charset_parents and add
25776 charset_subset and charset_superset.
25777 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
25778 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
25779 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
25780 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
25781 (CHARSET_SUPERSET): New macros.
25782 (charset_work): Extern it.
25783 (ENCODE_CHAR): Use charset_work.
25784 (CHAR_CHARSET_P): Adjust for the change of encoder format.
25785 (map_charset_chars): Extern it.
25786
25787 * charset.c (load_charset_map): Set the default value of encoder
25788 and deunifier char-tables to nil.
bba3e508
SM
25789 (map_charset_chars): Change argument. Change callers.
25790 Use map_char_table_for_charset instead of map_char_table.
aac0c6e3
MR
25791 (Fmap_charset_chars): New optional args from_code and to_code.
25792 (Fdefine_charset_internal): Adjust for the change of
25793 `define-charset' (:parents -> :subset or :superset).
25794 (charset_work): New variable.
25795 (encode_char, syms_of_charset): Adjust for the change of
25796 Fdefine_charset_internal.
25797 (Ffind_charset_string): Setup the vector `charsets' correctly.
25798
bba3e508
SM
25799 * chartab.c (sub_char_table_ref_and_range): New arg default.
25800 Fix the previous change.
aac0c6e3
MR
25801 (char_table_ref_and_range): Adjust for the above change.
25802 (map_sub_char_table_for_charset): New function.
25803 (map_char_table_for_charset): New function.
25804
25805 * keymap.c (describe_vector): Handle a char-table directly here.
25806 (describe_char_table): Delete.
25807
25808 * lisp.h (map_charset_chars): Delete.
25809
258102008-02-01 Dave Love <fx@gnu.org>
25811
25812 * fns.c (count_combining): Comment out (unused).
25813 (Flocale_codeset): New.
25814 (syms_of_fns): Defsubr it.
25815
25816 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
25817 (size_t): Remove.
25818
258192008-02-01 Dave Love <fx@gnu.org>
25820
25821 * Makefile.in (chartab.o): Depend on charset.h.
25822
258232008-02-01 Kenichi Handa <handa@m17n.org>
25824
25825 * character.c (syms_of_character): Set the default value of
25826 Vprintable_chars to Qnil.
25827
258282008-02-01 Dave Love <fx@gnu.org>
25829
25830 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
25831
258322008-02-01 Kenichi Handa <handa@m17n.org>
25833
25834 * charset.c (load_charset_map): Handle the case that from < to
25835 correctly.
25836
25837 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
25838 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
25839 Pay attention to raw-8-bit chars.
25840
258412008-02-01 Kenichi Handa <handa@m17n.org>
25842
25843 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
25844 It is not bytecompiled now.
25845
25846 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
25847 (charset_jisx0208): New variables.
25848 (Fdefine_charset_internal): Setup them if appropriate.
25849 (init_charset_once): Initialize them to -1.
25850
25851 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
25852 (charset_jisx0208): Extern them.
25853
25854 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
25855 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
25856 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
25857 (setup_iso_safe_charsets): Fix arguments to Fassq.
25858 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
25859 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
25860 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
25861 (encode_coding_iso_2022): Change the 1st arg to
25862 ENCODE_ISO_CHARACTER to a variable.
25863
258642008-02-01 Kenichi Handa <handa@m17n.org>
25865
25866 * charset.h (enum define_charset_arg_index): New enums
25867 charset_arg_min_code and charset_arg_max_code.
25868 (struct charset): New member char_index_offset.
25869
25870 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
25871 Take charset->char_index_offset into account.
25872 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
25873 args[charset_arg_max_code]. Setup charset.char_index_offset.
25874 (syms_of_charset): Fix args to Fdefine_charset_internal.
25875
258762008-02-01 Dave Love <fx@gnu.org>
25877
25878 * coding.c (decode_coding_utf_8): Reject overlong sequences.
25879
258802008-02-01 Dave Love <fx@gnu.org>
25881
25882 * coding.c: Doc fixes.
25883 (Fcoding_system_aliases): Fix return value.
25884 (Qmac): Remove (duplicated) definition.
25885
258862008-02-01 Dave Love <fx@gnu.org>
25887
362654a6
JB
25888 * charset.c (Fcharset_priority_list, Fset_charset_priority):
25889 New functions.
aac0c6e3
MR
25890
25891 * character.c (Fstring): Doc fix.
25892
25893 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
25894
362654a6 25895 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
25896 (font-encoding-alist): Doc fix.
25897
258982008-02-01 Dave Love <fx@gnu.org>
25899
25900 * term.c (costs_set): Declare static, non-initialized for pcc.
25901 (encode_terminal_code): Remove unused var.
25902
25903 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
25904 for K&R.
25905
25906 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
25907
25908 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
25909 (suffixes): Move out of make_subsidiaries for K&R.
25910
25911 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
25912
25913 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
25914
259152008-02-01 Dave Love <fx@gnu.org>
25916
25917 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
25918
25919 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
25920
259212008-02-01 Yong Lu <lyongu@asia-infonet.com>
25922
25923 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
25924
25925 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
25926
259272008-02-01 Kenichi Handa <handa@m17n.org>
25928
25929 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
25930 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
25931
259322008-02-01 Kenichi Handa <handa@m17n.org>
25933
25934 * coding.c (decode_coding_charset): Adjust for the change of
25935 Fdefine_coding_system_internal.
25936 (Fdefine_coding_system_internal): For a coding system of
25937 `charset' type, store a list of charset IDs in
25938 `charset_attr_charset_valids' element of coding attributes.
25939
259402008-02-01 Kenichi Handa <handa@m17n.org>
25941
25942 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
bba3e508
SM
25943 (emacs_mule_char): New arg src. Delete arg `composition'.
25944 Change caller. Handle 2-byte and 3-byte charsets correctly.
aac0c6e3
MR
25945 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
25946 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
25947 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
ef1b0ba7
SM
25948 (DECODE_EMACS_MULE_21_COMPOSITION):
25949 Call DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
aac0c6e3
MR
25950 sequence.
25951 (decode_coding_emacs_mule): Handle composition correctly. Rewind
25952 `src' and `consumed_chars' correctly before calling emacs_mule_char.
25953 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
25954 and alt&rule composition.
25955 (decode_coding_iso_2022): Handle composition correctly.
25956 (init_coding_once): Setup emacs_mule_bytes for private charsets.
25957
25958 * charset.c (Fdefine_charset_internal): Fix bug for the case of
25959 re-defining a charset. If the charset has :emacs-mule-id, setup
25960 emacs_mule_bytes.
25961 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
25962
259632008-02-01 Kenichi Handa <handa@m17n.org>
25964
25965 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
25966 (encode_coding_big5, encode_coding_charset): If coding requires safe
25967 encoding, produce a character specified by
25968 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
25969
259702008-02-01 Dave Love <fx@gnu.org>
25971
25972 * xterm.c (XSetIMValues): Declare.
25973
25974 * process.c: Conditionally include sys/wait.h, pty.h.
25975
25976 * print.c (print_object): Fix print format for 64-bit systems.
25977
25978 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
25979
25980 * buffer.c (emacs_strerror): Declare.
25981
25982 * fontset.c (Fclear_face_cache): Declare.
25983 (accumulate_font_info): Comment-out (unused).
25984 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
25985 variables.
25986
25987 * character.h (string_escape_byte8): Declare.
25988
bba3e508
SM
25989 * charset.c (load_charset_map, load_charset_map_from_file):
25990 Remove unused vars.
aac0c6e3
MR
25991 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
25992 (Fmap_charset_chars): Doc fix.
25993
25994 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
25995 (Fset_coding_system_priority, Fset_coding_system_priority)
25996 (Fdefine_coding_system_internal): Doc fix.
25997
259982008-02-01 Dave Love <fx@gnu.org>
25999
26000 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
26001
260022008-02-01 Kenichi Handa <handa@m17n.org>
26003
26004 * character.c (string_escape_byte8): Make multibyte string with
26005 correct size.
26006
26007 * charset.c (Fmake_char): Delete unnecessary code.
26008
260092008-02-01 Kenichi Handa <handa@m17n.org>
26010
26011 * xfns.c (x_encode_text): Allocate coding.destination here, and
26012 call encode_coding_object with dst_object Qnil.
26013
26014 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
26015 multibyte form correctly.
26016
26017 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
26018 against Vfont_encoding_alist.
26019
26020 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
26021 handling of charset list.
26022 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
26023 (decode_coding_object): Move point to coding->dst_pos before
26024 calling post-read-conversion function.
26025 (encode_coding_object): Give correct arguments to
26026 pre-write-conversion. Ignore the return value of
26027 pre-write-conversion function. Pay attention to the case that
26028 pre-write-conversion changes the current buffer. If dst_object is
26029 Qt, even if coding->src_bytes is zero, allocate at least one byte
26030 to coding->destination.
26031
26032 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
26033
26034 * charset.c (Fmake_char): Make it more backward compatible.
26035 (Fmap_charset_chars): Fix docstring.
26036
260372008-02-01 Dave Love <fx@gnu.org>
26038
26039 * coding.c: Doc fixes.
26040 (Fdefine_coding_system_alias): Use names, not symbols, in
26041 coding-system-alist.
26042
260432008-02-01 Kenichi Handa <handa@m17n.org>
26044
26045 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
26046 of calling free_realized_face.
26047
260482008-02-01 Yong Lu <lyongu@asia-infonet.com>
26049
26050 * charset.c (read_hex): Don't treat SPC as a comment starter.
26051 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
26052 (Fdecode_char): Fix typo.
26053
260542008-02-01 Kenichi Handa <handa@m17n.org>
26055
26056 * charset.h (struct charset): New member `code_space_mask'.
26057
26058 * coding.c (coding_set_source): Delete the local variable beg_byte.
26059 (encode_coding_charset, Fdefine_coding_system_internal):
26060 Delete the local variable charset.
bba3e508
SM
26061 (Fdefine_coding_system_internal):
26062 Setup attrs[coding_attr_charset_valids] correctly.
aac0c6e3
MR
26063
26064 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
26065 member to check if CODE is valid or not.
26066 (Fdefine_charset_internal): Initialize `code_space_mask' member.
26067 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
26068 is within the range of charset->min_code and carset->max_code.
26069
260702008-02-01 Dave Love <fx@gnu.org>
26071
26072 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
26073
26074 * dispextern.h (generate_ascii_font): Fix return type.
26075
26076 * xfaces.c (generate_ascii_font): Fix arg declaration.
26077
26078 * coding.c (coding_inherit_eol_type)
26079 (Fset_terminal_coding_system_internal)
26080 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
26081
260822008-02-01 Kenichi Handa <handa@m17n.org>
26083
bba3e508
SM
26084 * coding.c (decode_coding_charset, encode_coding_charset):
26085 Handle multiple charsets correctly.
aac0c6e3
MR
26086
260872008-02-01 Kenichi Handa <handa@m17n.org>
26088
26089 * search.c (boyer_moore): Fix handling of multibyte character
26090 translation.
26091
26092 * xdisp.c (display_mode_element): When the variable `elt' is
26093 changed, update `this' and `lisp_string'.
26094
260952008-02-01 Kenichi Handa <handa@m17n.org>
26096
26097 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
26098
26099 * callproc.c (Fcall_process): Be sure to give the current buffer
26100 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
26101
26102 * charset.c (struct charset_map_entries): New struct.
26103 (load_charset_map): Rename from parse_charset_map. New args
26104 entries and n_entries. Change caller.
26105 (load_charset_map_from_file): Rename from load_charset_map.
26106 Change caller. New arg control_flag. Call load_charset_map at
26107 the tail.
26108 (load_charset_map_from_vector): New function.
26109 (Fdefine_charset_internal): Setup charset.compact_codes_p.
26110 (encode_char): If the charset is compact, change a character index
26111 to a code point.
26112
26113 * coding.c (coding_alloc_by_making_gap): Check the case that the
26114 source and destination are the same correctly.
26115 (decode_coding_raw_text): Set coding->consumed_char and
26116 coding->consumed to 0.
26117 (produce_chars): If coding->chars_at_source is nonzero, update
26118 coding->consumed_char and coding->consumed before calling
26119 alloc_destination.
26120 (Fdefine_coding_system_alias): Register ALIAS in
26121 Vcoding_system_alist.
26122 (syms_of_coding): Define `no-conversion' coding system at the tail.
26123
26124 * fileio.c (Finsert_file_contents): Set coding_system instead of
26125 val. If the current buffer is multibyte, always call
26126 decode_coding_gap.
26127
26128 * xfaces.c (try_font_list): Give higher priority to fontset's
26129 family than face's family.
26130
261312008-02-01 Kenichi Handa <handa@m17n.org>
26132
26133 * callproc.c (Fcall_process): Be sure to give the current buffer
26134 to decode_coding_c_string.
26135
26136 * xfaces.c (try_font_list): Give a family specified in a fontset
26137 higher priority than a family specified in a face.
26138
261392008-02-01 Kenichi Handa <handa@m17n.org>
26140
26141 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
26142 Fix arguments to insert_from_buffer.
26143
26144 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
26145
261462008-02-01 Kenichi Handa <handa@m17n.org>
26147
26148 * coding.c (produce_chars): Set the variable `multibytep' correctly.
26149 (decode_coding_gap): Set coding->dst_multibyte correctly.
26150
261512008-02-01 Kenichi Handa <handa@m17n.org>
26152
26153 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
26154 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
26155 (encode_coding_utf_16): Substitute coding->default_char for
26156 non-Unicode characters.
26157 (decode_coding): Don't call record_insert here.
26158 (setup_coding_system): Initialize `surrogate' of
26159 coding->spec.utf_16 to 0.
26160 (EMIT_ONE_BYTE): Fix for multibyte case.
26161
26162 * insdel.c (insert_from_gap): Call record_insert.
26163
261642008-02-01 Kenichi Handa <handa@m17n.org>
26165
26166 * casefiddle.c (casify_region): Fix multibyte case.
26167
26168 * character.c (c_string_width): Add return type `int'.
26169 (char_string_with_unification): Delete arg ADVANCED.
26170
26171 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
26172 (CHAR_STRING): Adjust for the change of char_string_with_unification.
26173 (CHAR_STRING_ADVANCE): Make it do-while statement.
26174
26175 * chartab.c (sub_char_table_set_range): Optimize for the case
26176 DEPTH == 3. Add workaround code for a GCC optimization bug.
26177
26178 * charset.c (parse_charset_map): Remove an unused variable.
26179
26180 * coding.c: Delete unused variables.
26181
26182 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
26183 earlier. If inserted is zero and the coding system doesn't
26184 require flushing, don't call decode_coding_gap.
26185
26186 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
26187
261882008-02-01 Kenichi Handa <handa@m17n.org>
26189
26190 The following changes are for using Unicode as an internal
26191 character model, and use UTF-8 format for buffer/string
26192 representation.
26193
26194 * .gdbinit (xchartable): Adjust for the change of char table structure.
26195 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
26196
26197 * Makefile.in (obj): Add character.o and chartab.o.
26198 (lisp, shortlisp): Remove utf-8.elc.
26199 (*.o): For many files, change dependency on charset.h to
26200 character.h, and add dependency on character.h.
26201 (character.o, chartab.o): New targets.
26202
26203 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
26204 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
26205 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
26206 of "charset.h".
26207
26208 * dired.c, filelock.c: Include "character.h".
26209
26210 * alloc.c: Include "character.h" instead of "charset.h".
26211 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
26212 (syms_of_alloc): Remove defsubr for Smake_char_table.
26213
26214 * buffer.c: Include "character.h" instead of "charset.h", don't
26215 include "coding.h".
26216 (Fset_buffer_multibyte): Adjust for UTF-8.
26217
26218 * buffer.h: EXFUN Fbuffer_live_p.
26219
26220 * callproc.c: Include "character.h" instead of "charset.h".
26221 (Fcall_process): Big change for the new code-conversion APIs.
26222
26223 * casetab.c: Include "character.h" instead of "charset.h".
26224 (set_canon, set_identity, shuffle): Adjust for the new
26225 map_char_table spec.
26226 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
26227 accessing the char table structure.
26228
26229 * chartab.c: New file that implements char table.
26230
26231 * category.c: Include "character.h".
26232 (copy_category_entry): New function.
26233 (copy_category_table): Call map_char_table and copy_category_entry.
26234 (Fmake_category_table): Initialize all top-level slots.
26235 (char_category_set): New function.
26236 (modify_lower_category_set): Delete.
26237 (Fmodify_category_entry): Call char_table_ref_and_range.
26238
26239 * category.h (CATEGORY_SET): Just call char_category_set.
26240
26241 * ccl.c: Include "character.h".
26242 (Qccl, Qcclp): New variables.
26243 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
26244 it's less than 256.
26245 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
26246 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
26247 and DST type.
26248 (ccl_driver): Change types of argument, adjust code accordingly.
26249 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
26250 ccl_driver.
26251 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
26252
26253 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
26254 New members src_multibyte, dst_multibyte, consumed, and produced.
26255 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
26256 (CODING_SPEC_CCL_PROGRAM): New macro.
26257 (ccl_driver): Update prototype.
26258 (Qccl, Qcclp, Fccl_program_p): Extern them.
26259 (CHECK_CCL_PROGRAM): New macro.
26260
26261 * character.c, character.h, chartab.c: New files.
26262
26263 * charset.c: Mostly re-written. Move character and multibyte sequence
26264 handling codes to character.c.
26265
26266 * charset.h: Mostly re-written. Move character and multibyte sequence
26267 handling codes to character.h.
26268
26269 * coding.c, coding.h: Mostly re-written.
26270
26271 * composite.c: Include "character.h" instead of "charset.h".
26272 (CHAR_WIDTH): Move to character.h.
26273 (HASH_KEY, HASH_VALUE): Delete.
26274
26275 * composite.h (enum composition_method): Change order of enumeration
26276 symbols.
26277
26278 * data.c: Include "character.h" instead of "charset.h".
26279 (Faref): Call CHAR_TABLE_REF for a char table.
26280 (Faset): Call CHAR_TABLE_SET for a char table.
26281
26282 * dispextern.h (free_realized_face, check_face_attribytes)
26283 (generate_ascii_font): Extern them.
26284 (free_realized_multibyte_face): Delete extern.
26285
26286 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
26287 table structure.
26288
26289 * editfns.c: Include "character.h" instead of "charset.h".
26290 (Fchar_to_string): Always call CHAR_STRING.
26291
26292 * emacs.c (main): Call init_charset_once, init_charset,
26293 syms_of_chartab, and syms_of_character.
26294
26295 * fileio.c: Include "character.h" instead of "charset.h".
26296 (Finsert_file_contents): Big change for the new code-conversion API.
26297 (choose_write_coding_system, Fwrite_region): Likewise.
26298 (build_annotations_2): Delete.
26299 (e_write): Big change for the new code-conversion API.
26300
26301 * fns.c: Include "character.h" instead of "charset.h".
26302 (copy_sub_char_table): Move to chartab.c.
26303 (Fcopy_sequence): Call copy_char_table for a char table.
26304 (concat): Delete codes calling count_multibyte.
26305 (string_char_to_byte, string_byte_to_char): Adjust for the new
26306 multibyte form.
26307 (internal_equal): Adjust for the change of char table structure.
26308 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
26309 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
26310 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
26311 (char_table_translate, optimize_sub_char_table)
26312 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
26313 chartab.c.
26314 (char_table_ref_and_index): Delete.
26315 (HASH_KEY, HASH_VALUE): Move to lisp.h.
26316 (Fmd5): Call preferred_coding_system instead of accessing
26317 Vcoding_category_list. Adjust for the new code-conversion API.
26318 (syms_of_fns): Move defsubr for char table related functions to
26319 chartab.c.
26320
26321 * fontset.c: Mostly re-written.
26322
26323 * fontset.h (struct font_info): Change type of the member encoding_type.
26324 (enum FONT_SPEC_INDEX): New enum.
26325 (fontset_font_pattern, fs_load_font): Update prototype.
26326 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
26327
26328 * indent.c: Include "character.h" instead of "charset.h".
26329 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
26330
26331 * insdel.c: Include "character.h" instead of "charset.h".
26332 (copy_text): Don't refer to Vnonascii_translation_table.
26333 (insert_from_gap): New function.
26334
26335 * keyboard.c: Include "character.h" instead of "charset.h".
26336 (command_loop_1): Never call direct_output_forward_char before
26337 a non-ASCII character.
26338 (read_char): If Vkeyboard_translate_table is a char table, always
26339 translate a character.
26340
26341 * keymap.c: Include "character.h".
26342 (store_in_keymap): Handle the case that IDX is a cons.
26343 (Fdefine_key): Handle the case that KEY is a cons and the car part
26344 is also a cons (range).
26345 (push_key_description): Adjust for the new character code.
26346 (describe_vector): Call describe_char_table for a char table.
26347 (describe_char_table): New function.
26348
26349 * keymap.h (describe_char_table): Extern it.
26350
26351 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
26352 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
26353 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
26354 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
26355 Delete.
26356 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
26357 structure.
26358 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
26359 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
26360 (CHARTAB_SIZE_BITS_3): New macros.
26361 (chartab_size): Extern it.
26362 (struct Lisp_Char_Table): Re-design.
26363 (struct Lisp_Sub_Char_Table): New structure.
26364 (HASH_KEY, HASH_VALUE): Move from fns.c.
26365 (CHARACTERBITS): Define as 22.
26366 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
26367 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
26368 (GC_SUB_CHAR_TABLE_P): New macro.
26369 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
ef1b0ba7 26370 (code_convert_string_norecord): Delete extern.
aac0c6e3
MR
26371 (init_character_once, syms_of_character, init_charset)
26372 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
26373
26374 * lread.c: Include "character.h".
26375 (read_multibyte): New arg NBYTES.
26376 (read_escape): Change the meaning of returned *BYTEREP.
26377 (to_multibyte): Delete.
26378 (read1): Adjust the handling of char table and string.
26379
26380 * print.c: Include "character.h" instead of "charset.h".
26381 (print_string): Convert 8-bit raw bytes to octal form by
26382 string_escape_byte8.
26383 (print_object): Adjust for the new multibyte form. Print 8-bit
26384 raw bytes always in octal form. Handle sub char table correctly.
26385
26386 * process.c: Include "character.h" instead of "charset.h".
26387 (read_process_output, send_process): Adjust for the new
26388 code-conversion API.
26389
26390 * puresize.h (BASE_PURESIZE): Increase.
26391
26392 * regex.c: Include "character.h" instead of "charset.h".
26393 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
26394 (regex_compile): Accept a range whose starting and ending
26395 character have different leading bytes.
26396 (analyse_first): Adjust for the above change.
26397
26398 * search.c: Include "character.h" instead of "charset.h".
26399 (search_buffer, boyer_moore): Adjust for the new multibyte form.
26400 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
26401
26402 * syntax.c: Include "character.h" instead of "charset.h".
26403 (syntax_parent_lookup): Delete.
26404 (Fmodify_syntax_entry): Accept a cons as CHAR.
26405 (skip_chars): Adjust for the new multibyte form.
26406 (init_syntax_once): Call char_table_set_range instead of directly
26407 accessing the structure of a char table.
26408
26409 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
26410 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
26411 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
26412 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
26413
26414 * term.c: Include "buffer.h" and "character.h".
26415 (encode_terminal_code, write_glyphs): Adjust for the new
26416 code-conversion API.
26417 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
26418
26419 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
26420
26421 * xdisp.c: Include "character.h".
26422 (get_next_display_element): Adjust for the new multibyte form.
26423 (disp_char_vector): Adjust for the new char table structure.
26424 (decode_mode_spec_coding): Adjust for the new structure of
26425 coding system.
26426 (decode_mode_spec): Adjust for the new code-conversion API.
26427
26428 * xfaces.c: Include "character.h" instead of "charset.h".
26429 (load_face_font): Adjust for the change of choose_face_font and
26430 FS_LOAD_FONT.
26431 (generate_ascii_font): New function.
26432 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
26433 (set_font_frame_param): Adjust for the change of choose_face_font.
26434 (free_realized_face): Make it public.
26435 (free_realized_faces_for_fontset): Rename from
26436 free_realized_multibyte_face. Free also faces realized for ASCII.
26437 (choose_face_font): Change arguments. Adjust for the change of
26438 fontset_font_pattern and FS_LOAD_FONT.
26439
26440 * xfns.c: Include "character.h".
26441 (x_encode_text): Adjust for the new code-conversion API.
26442
26443 * xselect.c: Don't include "charset.h".
26444 (selection_data_to_lisp_data): Adjust for the new code conversion API.
26445
26446 * xterm.c: Include "character.h".
26447 (x_encode_char): New argument CHARSET. Change caller.
26448 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
26449 Call ENCODE_CHAR instead of SPLIT_CHAR.
26450 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
26451 CHAR_WIDTH instead of CHARSET_WIDTH.
26452 (XTread_socket): Adjust for the new code-conversion API.
26453 (x_new_font): Adjust for the change of FS_LOAD_FONT.
26454 (x_load_font): Adjust for the change of struct font.
26455
264562008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
26457
26458 * xfaces.c (face_at_buffer_position): Remove unused vars.
26459
264602008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
26461
26462 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
26463 Fix overflow checking.
26464
264652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
26466
26467 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
26468 Cancel previous change.
26469
264702008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
26471
26472 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
26473 ccl->eight_bit_control. Fix check for buffer overflow.
26474 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
26475 (ccl_driver): Initialize extra_bytes to 0.
26476
264772008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
26478
26479 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
26480 return it ORed with ctrl_modifier.
26481
264822008-01-29 Miles Bader <miles@gnu.org>
26483
26484 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
26485
264862008-01-28 Jason Rumney <jasonr@gnu.org>
26487
26488 * w32.c (stat): Don't double check for networked drive.
26489
264902008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
26491
26492 * window.c (run_window_configuration_change_hook): New function.
26493 Code extracted from set_window_buffer. Set the selected frame.
26494 (set_window_buffer): Use it.
26495 * window.h (run_window_configuration_change_hook): Declare.
26496 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
26497
26498 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
26499
265002008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
26501
26502 * Makefile.in: Remove references to unused macros.
26503
265042008-01-26 Eli Zaretskii <eliz@gnu.org>
26505
26506 * w32.c (g_b_init_get_sid_sub_authority)
26507 (g_b_init_get_sid_sub_authority_count): New static variables.
26508 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
26509 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
26510 (init_user_info): Use them to retrieve uid and gid.
26511 Use 500/513, the Windows defaults, as Administrator's uid/gid.
26512 (fstat): Use pw_uid and pw_gid from the_passwd structure for
26513 st_uid and st_gid of the file.
26514
265152008-01-26 Jason Rumney <jasonr@gnu.org>
26516
26517 * w32.c (logon_network_drive): New function.
26518 (stat): Use it.
26519
265202008-01-26 Chong Yidong <cyd@stupidchicken.com>
26521
26522 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
26523 invisible text covered with an ellipsis.
26524
265252008-01-25 Richard Stallman <rms@gnu.org>
26526
26527 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
26528 jump back to beginning. Move some other initializations after that.
26529 (Qwindow_text_change_functions, Vwindow_text_change_functions):
26530 New variables.
26531 (syms_of_xdisp): Init them.
26532
26533 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
26534
26535 * buffer.c (reset_buffer_local_variables):
26536 Implement `permanent-local-hook'.
26537 (Qpermanent_local_hook): New variable.
26538 (syms_of_buffer): Init and staticpro it.
26539
265402008-01-25 Michael Albinus <michael.albinus@gmx.de>
26541
26542 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
26543
265442008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
26545
26546 * fns.c (Fclrhash): Return TABLE.
26547
265482008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26549
26550 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
26551 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
26552 is set even without positional changes.
26553 (x_scroll_bar_clear): Set bar->redraw_needed_p.
26554
26555 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
26556
265572008-01-23 Jason Rumney <jasonr@gnu.org>
26558
26559 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
26560
26561 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
26562 the unicode range available in MULE by locale-coding-system.
26563 Improve dbcs lead byte detection. Set event timestamp and modifiers
26564 earlier.
26565
265662008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26567
26568 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
26569 [MAC_OSX] (init_mac_osx_environment): Initialize it.
26570 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
26571 when used on child processes.
26572
265732008-01-21 Michael Albinus <michael.albinus@gmx.de>
26574
26575 * dbusbind.c (Fdbus_method_return_internal): Rename from
26576 Fdbus_method_return.
26577 (Fdbus_unregister_object): Move to dbus.el.
26578 (Fdbus_call_method, Fdbus_method_return_internal)
26579 (Fdbus_send_signal): Improve debug messages.
26580
265812008-01-20 Martin Rudalics <rudalics@gmx.at>
26582
26583 * undo.c (undo_inhibit_record_point): New variable.
26584 (syms_of_undo): Initialize it.
26585 (record_point): Don't record point when undo_inhibit_record_point
26586 is set.
26587
265882008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
26589
26590 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
26591
26592 * xdisp.c (Qauto_hscroll_mode): New var.
26593 (syms_of_xdisp): Initialize it.
26594 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
26595 window's buffer.
26596 (hscroll_windows): Don't check automatic_hscrolling_p here.
26597
26598 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
26599 vscroll if we're setting window-buffer to the value it already has.
26600
266012008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
26602
26603 * m/intel386.h: Remove references to XENIX.
26604
266052008-01-17 Andreas Schwab <schwab@suse.de>
26606
26607 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
26608 instead of HAVE_X86_64_LIB64_DIR.
26609 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
26610
266112008-01-17 Glenn Morris <rgm@gnu.org>
26612
26613 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
26614 to HAVE_X86_64_LIB64_DIR.
26615
266162008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
26617
26618 * s/irix3-3.h:
26619 * s/irix4-0.h:
26620 * s/386-ix.h:
26621 * s/domain.h:
26622 * s/hpux9-x11r4.h:
26623 * s/hpux9shxr4.h: Remove files for systems no longer supported.
26624
26625 * sysdep.c: Remove code containing references to symbols defined
26626 by unsupported systems.
26627
266282008-01-16 Glenn Morris <rgm@gnu.org>
26629
26630 * coding.c (select-safe-coding-system-function): Doc fix.
26631
266322008-01-15 Glenn Morris <rgm@gnu.org>
26633
26634 * config.in: Revert 2008-01-13 change: this is a generated file.
26635
266362008-01-13 Tom Tromey <tromey@redhat.com>
26637
26638 * lisp.h: Fix typo.
26639
266402008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
26641
26642 * m/sequent-ptx.h:
26643 * m/sequent.h:
26644 * s/ptx.h:
26645 * s/ptx4-2.h:
26646 * s/ptx4.h: Remove files for systems no longer supported.
26647
26648 * callproc.c (Fcall_process): Fix previous change.
26649
266502008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
26651
26652 * unexsunos4.c: Remove file, system not supported anymore.
26653
26654 * m/mips.h:
26655 * m/intel386.h:
26656 * callproc.c:
26657 * config.in:
26658 * ecrt0.c:
26659 * emacs.c:
26660 * fileio.c:
26661 * frame.c:
26662 * getpagesize.h:
26663 * keyboard.c:
26664 * lread.c:
26665 * process.c:
26666 * puresize.h:
26667 * sysdep.c:
26668 * systty.h:
26669 * syswait.h:
26670 * unexec.c:
26671 * xdisp.c:
26672 * alloc.c: Remove code containing references to symbols defined by
26673 unsupported systems.
26674
266752008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
26676
26677 * coding.c (detect_coding_mask): Fix previous change.
26678
266792008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
26680
26681 * coding.c (detect_coding_iso2022): New arg
26682 latin_extra_code_state. Allow Latin extra codes only
26683 when *latin_extra_code_state is nonzero.
26684 (detect_coding_mask): If there is a NULL byte, detect the encoding
26685 as UTF-16 or binary. If Latin extra codes exist, detect the
26686 encoding as ISO-2022 only when there's no other proper encoding is
26687 found.
26688
266892008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26690
26691 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
26692 #ifdef MAC_OS.
26693
266942008-01-08 Richard Stallman <rms@gnu.org>
26695
26696 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
26697
266982008-01-06 Nick Roberts <nickrob@snap.net.nz>
26699
26700 * keyboard.c (parse_menu_item): Don't enclose key bindings on
26701 menu bar in parentheses.
26702
267032008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
26704
26705 * m/7300.h:
26706 * m/acorn.h:
26707 * m/alliant-2800.h:
26708 * m/alliant.h:
26709 * m/alliant1.h:
26710 * m/alliant4.h:
26711 * m/altos.h:
26712 * m/amdahl.h:
26713 * m/apollo.h:
26714 * m/att3b.h:
26715 * m/aviion-intel.h:
26716 * m/aviion.h:
26717 * m/celerity.h:
26718 * m/clipper.h:
26719 * m/cnvrgnt.h:
26720 * m/convex.h:
26721 * m/cydra5.h:
26722 * m/delta88k.h:
26723 * m/dpx2.h:
26724 * m/dual.h:
26725 * m/elxsi.h:
26726 * m/f301.h:
26727 * m/gould-np1.h:
26728 * m/gould.h:
26729 * m/i860.h:
26730 * m/ibmps2-aix.h:
26731 * m/ibmrt-aix.h:
26732 * m/ibmrt.h:
26733 * m/irist.h:
26734 * m/is386.h:
26735 * m/isi-ov.h:
26736 * m/mega68.h:
26737 * m/mg1.h:
26738 * m/news-r6.h:
26739 * m/news-risc.h:
26740 * m/news.h:
26741 * m/nh3000.h:
26742 * m/nh4000.h:
26743 * m/ns16000.h:
26744 * m/ns32000.h:
26745 * m/nu.h:
26746 * m/orion.h:
26747 * m/orion105.h:
26748 * m/paragon.h:
26749 * m/pfa50.h:
26750 * m/plexus.h:
26751 * m/pyramid.h:
26752 * m/pyrmips.h:
26753 * m/sh3el.h:
26754 * m/sps7.h:
26755 * m/sr2k.h:
26756 * m/stride.h:
26757 * m/sun1.h:
26758 * m/sun2.h:
26759 * m/sun3-68881.h:
26760 * m/sun3-fpa.h:
26761 * m/sun3-soft.h:
26762 * m/sun3.h:
26763 * m/sun386.h:
26764 * m/symmetry.h:
26765 * m/tad68k.h:
26766 * m/tahoe.h:
26767 * m/targon31.h:
26768 * m/tek4300.h:
26769 * m/tekxd88.h:
26770 * m/tower32.h:
26771 * m/tower32v3.h:
26772 * m/ustation.h:
26773 * m/wicat.h:
26774 * m/xps100.h:
26775 * s/cxux.h:
26776 * s/cxux7.h:
26777 * s/dgux.h:
26778 * s/dgux4.h:
26779 * s/dgux5-4-3.h:
26780 * s/dgux5-4r2.h:
26781 * s/esix.h:
26782 * s/esix5r4.h:
26783 * s/hiuxmpp.h:
26784 * s/hiuxwe2.h:
26785 * s/iris3-5.h:
26786 * s/iris3-6.h:
26787 * s/isc2-2.h:
26788 * s/isc3-0.h:
26789 * s/isc4-0.h:
26790 * s/isc4-1.h:
26791 * s/newsos5.h:
26792 * s/newsos6.h:
26793 * s/osf1.h:
26794 * s/osf5-0.h:
26795 * s/riscix1-1.h:
26796 * s/riscix12.h:
26797 * s/sco4.h:
26798 * s/sco5.h:
26799 * s/sunos4-0.h:
26800 * s/sunos4-1.h:
26801 * s/sunos413.h:
26802 * s/sunos4shr.h:
26803 * s/umax.h:
26804 * s/unipl5-2.h:
26805 * s/xenix.h:
26806 * cxux-crt0.s:
26807 * unexapollo.c:
26808 * unexconvex.c:
26809 * unexenix.c:
26810 * unexsni.c: Remove files for systems no longer supported.
26811
26812 * m/intel386.h: Remove references to unsupported systems.
26813
26814 * w32.c (get_emacs_configuration): Remove reference to i860.
26815
26816 * sysdep.c: Remove dead code.
26817
268182008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
26819
26820 * s/rtu.h:
26821 * m/masscomp.h: Remove files. Platform is obsolete.
26822
268232008-01-04 Michael Albinus <michael.albinus@gmx.de>
26824
26825 * dbusbind.c (Fdbus_method_return): New function.
26826 (xd_read_message): Add the serial number to the event.
26827 (Fdbus_register_method): Activate the function.
26828
268292008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
26830
26831 * keyboard.c (read_key_sequence): Fix typo.
26832
268332008-01-03 Michael Albinus <michael.albinus@gmx.de>
26834
26835 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
26836 (xd_signature, xd_append_arg): Handle element type detection for
26837 empty arrays.
26838 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
26839 SDATA () calls; this must be solved more general.
26840 (Fdbus_register_signal): Use SBYTES instead of strlen.
26841
268422008-01-03 Magnus Henoch <magnus@zemdatav>
26843
26844 * dbusbind.c (xd_append_arg): Use unsigned char instead of
26845 unsigned int for byte values (necessary for big-endian platform).
26846 (Fdbus_call_method): Handle the case of no returned arguments.
26847
268482007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
26849
26850 * dbusbind.c (xd_read_message): Use non-static input_event struct.
26851
268522007-12-31 Magnus Henoch <mange@freemail.hu>
26853
26854 * dbusbind.c (xd_signature): Signature of variant is just "v".
26855
268562007-12-30 Michael Albinus <michael.albinus@gmx.de>
26857
26858 * dbusbind.c: Fix several errors and compiler warnings.
26859 Reported by Tom Tromey <tromey@redhat.com>.
26860 (XD_ERROR, XD_DEBUG_MESSAGE)
26861 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
26862 (xd_append_arg): Part for basic D-Bus types rewritten.
26863 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
26864 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
26865 appropriate.
26866 (xd_read_message): Return Qnil. Don't signal an error; it is not
26867 useful during event reading.
26868 (Fdbus_register_signal): Signal an error if the check for
26869 FUNCTIONP fails.
26870 (Fdbus_register_method): New function. The implementation is not
26871 complete, the call of the function signals an error therefore.
26872 (Fdbus_unregister_object): New function, renamed from
26873 Fdbus_unregister_signal. The initial check signals an error, if
26874 the object is not well formed.
26875
268762007-12-30 Richard Stallman <rms@gnu.org>
26877
26878 * textprop.c (get_char_property_and_overlay):
26879 Signal error if POSITION is out of range in a buffer.
26880
268812007-12-29 Martin Rudalics <rudalics@gmx.at>
26882
26883 * w32fns.c (Fx_create_frame): Make copy of frame parameters
26884 because the original parameters are in pure storage now.
26885
268862007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26887
26888 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
26889
268902007-12-22 Eli Zaretskii <eliz@gnu.org>
26891
26892 * callint.c (syms_of_callint) <command-history>: Add reference to
26893 history-length in the doc string.
26894
268952007-12-17 Jason Rumney <jasonr@gnu.org>
26896
26897 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
26898 before passing as wParam.
26899
269002007-12-22 Michael Albinus <michael.albinus@gmx.de>
26901
26902 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
26903 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
26904 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
26905 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
26906 as number.
26907 (Fdbus_call_method): Fix docstring.
26908
269092007-12-21 Michael Albinus <michael.albinus@gmx.de>
26910
26911 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
26912 New macros.
26913 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
26914 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
26915 Simplify.
26916 (xd_signature): New function.
26917 (xd_append_arg): Compute also signatures. Major rewrite.
26918 (xd_retrieve_arg): Make debug messages friendly.
26919 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
26920 Check for signatures of arguments.
26921
269222007-12-19 Michael Albinus <michael.albinus@gmx.de>
26923
26924 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
26925 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
26926 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
26927 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
26928 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
26929 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
26930 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
26931 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
26932 (xd_retrieve_value): Remove. Functionality included in ...
26933 (xd_append_arg): New function.
26934 (Fdbus_call_method, Fdbus_send_signal): Apply it.
26935
269362007-12-16 Michael Albinus <michael.albinus@gmx.de>
26937
26938 * dbusbind.c (top): Include <stdio.h>.
26939 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
26940 dbus_message_new_method_call and dbus_message_new_signal.
26941 (Fdbus_register_signal): Rename unique_name to uname.
26942 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
26943 non-existing unique name. Fix typos in matching rule. Return an
26944 object which is useful in Fdbus_unregister_signal.
26945 (Fdbus_unregister_signal): Reimplementation, in order to remove
26946 only the corresponding entry.
26947 (Vdbus_registered_functions_table): Change the order of entries.
26948 Apply these changes in xd_read_message and Fdbus_register_signal.
26949
269502007-12-16 Andreas Schwab <schwab@suse.de>
26951
26952 * fileio.c (Finsert_file_contents): Fix overflow check to not
26953 depend on undefined integer overflow.
26954
269552007-12-14 Jason Rumney <jasonr@gnu.org>
26956
26957 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
26958 for characters above 127.
26959
269602007-12-13 Jason Rumney <jasonr@gnu.org>
26961
26962 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
26963 before dereferencing array.
26964 (lookup_vk_code): Remove zero comparison.
26965
269662007-12-14 Michael Albinus <michael.albinus@gmx.de>
26967
26968 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
26969 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
26970 Use `unsigned int' instead of `uint'.
26971 (xd_read_message, Fdbus_register_signal): Split expressions into
26972 multiple lines before operators "&&" and "||", according to the
26973 GNU Coding Standards.
26974
269752007-12-14 Eli Zaretskii <eliz@gnu.org>
26976
26977 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
26978
269792007-12-12 Juri Linkov <juri@jurta.org>
26980
26981 * buffer.c (Frename_buffer): In interactive spec replace
26982 `read-buffer' with `read-string' that uses `buffer-name-history'
26983 as history, and the current buffer's name as default.
26984
269852007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
26986
26987 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
26988 manipulating the backtrace manually.
26989 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
26990 (struct backtrace, backtrace_list): Remove.
26991 (command_loop_1): Remove dead var `no_direct'.
26992
26993 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
26994 preserve non-built-in buffer-local variables.
26995 (Fkill_all_local_variables): Don't re-create&re-set permanent
26996 buffer-local variables.
26997
269982007-12-09 Juri Linkov <juri@jurta.org>
26999
27000 * buffer.c (Frename_buffer): Change interactive spec from "s" to
27001 Lisp code that uses `read-buffer' with current buffer as default.
27002
270032007-12-08 Michael Albinus <michael.albinus@gmx.de>
27004
27005 * dbusbind.c (xd_read_message): Generate an event for every
27006 registered handler. There might be several handlers registered
27007 for the same signal.
27008 (Fdbus_register_signal): Don't overwrite a registration for the
27009 same signal. Add a new registration if handlers are different.
27010 (Vdbus_registered_functions_table): Rework doc string.
27011
270122007-12-07 Michael Albinus <michael.albinus@gmx.de>
27013
27014 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
27015 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
27016 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
27017 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
27018 Unify argument lists.
27019 (xd_read_message, Fdbus_register_signal): Reorder and extend event
27020 arguments and hash table keys. Use unique name for service.
27021 (Fdbus_unregister_signal): Remove checks.
27022 (Vdbus_registered_functions_table): Fix doc string.
27023
270242007-12-05 Magnus Henoch <mange@freemail.hu>
27025
27026 * process.c (make_process): Initialize pty_flag to 0.
27027
270282007-12-05 Jason Rumney <jasonr@gnu.org>
27029
27030 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
27031 specified XBMs.
27032
270332007-12-05 Richard Stallman <rms@gnu.org>
27034
27035 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
27036
270372007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27038
27039 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
27040 New variable.
27041 (mac_try_close_socket) [MAC_OSX]: New function.
27042 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
27043 Update cfsockets_for_select. Replace invalid CFRunLoop source.
27044
27045 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
27046 Use mac_try_close_socket.
27047
270482007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27049
27050 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
27051 reloc_base.
27052 (copy_dysymtab): Compute relocation base here.
27053 (rebase_reloc_address) [__ppc64__]: New function.
27054 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
27055 changed.
27056
270572007-12-05 Jason Rumney <jasonr@gnu.org>
27058
27059 * w32proc.c (sys_spawnve): Quote args with wildcards.
27060
270612007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27062
27063 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
27064 __objc_* sections.
27065 (unrelocate) [_LP64]: Set relocation base to address of data segment.
27066
270672007-12-05 Michael Albinus <michael.albinus@gmx.de>
27068
27069 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
27070 Move check for Vdbus_registered_functions_table to
27071 xd_read_queued_messages.
27072 (xd_read_queued_messages): Protect xd_read_message calls by
27073 internal_condition_case_1.
27074
270752007-12-04 Michael Albinus <michael.albinus@gmx.de>
27076
27077 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
27078 Qdbus_system_bus and Qdbus_session_bus, respectively.
27079 (Vdbus_intern_symbols): Remove.
27080 (Vdbus_registered_functions_table): New hash table.
27081 (XD_SYMBOL_INTERN_SYMBOL): Remove.
27082 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
27083 Rewrite in order to manage registered functions by hash table
27084 Vdbus_registered_functions_table.
27085
270862007-12-03 Jan Djärv <jan.h.d@swipnet.se>
27087
27088 * xterm.c: Update URL to Window Manager Specification in comment.
27089
270902007-12-02 Michael Albinus <michael.albinus@gmx.de>
27091
27092 * config.in (HAVE_DBUS): Add.
27093
27094 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
27095 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
27096 (obj): Add $(DBUS_OBJ).
27097 (LIBES): Add $(DBUS_LIBS).
27098 (dbusbind.o): New target.
27099
27100 * dbusbind.c: New file.
27101
27102 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
27103
27104 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
27105 (Qdbus_event): New Lisp symbol.
27106 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
27107 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 27108 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
27109
27110 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
27111
271122007-12-01 Richard Stallman <rms@gnu.org>
27113
27114 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
27115
271162007-11-30 Jason Rumney <jasonr@gnu.org>
27117
27118 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
27119 (w32con_reset_terminal_modes): Clear screen buffer.
27120 (w32_face_attributes): Don't use color indexes that are out of range.
27121 Only reverse the default colors.
27122
27123 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
27124 WINDOWSNT.
27125
27126 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
27127
271282007-11-29 Jason Rumney <jasonr@gnu.org>
27129
27130 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
27131 (w32_face_attributes): Use Vtty_defined_color_alist to determine
27132 if the terminal colors are initialized.
27133 (unspecified_fg, unspecified_bg): Remove unused declarations.
27134
271352007-11-29 Andreas Schwab <schwab@suse.de>
27136
27137 * keyboard.c (apply_modifiers): Fix typo.
27138
271392007-11-29 Richard Stallman <rms@gnu.org>
27140
27141 * keymap.c (Fcurrent_local_map): Doc fix.
27142
271432007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
27144
27145 * s/gnu-kfreebsd.h: New file.
27146
271472007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
27148
27149 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
27150 Don't cast redundantly.
27151
27152 * keyboard.c (KEY_TO_CHAR): New macro.
27153 (parse_modifiers, apply_modifiers): Accept integer arguments.
27154 (read_key_sequence): Use them to unify the "shift->unshift" mapping
27155 for chars and symbol keys.
27156 After doing such remapping, apply function-key-map again.
27157
271582007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
27159
27160 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
27161 compiled anymore.
27162
271632007-11-26 Andreas Schwab <schwab@suse.de>
27164
27165 * process.c (list_processes_1): Fix indentation level of the
27166 command column.
27167
271682007-11-23 Andreas Schwab <schwab@suse.de>
27169
27170 * editfns.c (Fformat): Handle %c specially since it requires the
27171 argument to be of type int.
27172
271732007-11-23 Markus Triska <markus.triska@gmx.at>
27174
27175 * emacs.c (main): Call init_editfns before init_process, since
27176 init_process sets Vprocess_connection_type depending on OS release.
27177
271782007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
27179
27180 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
27181 (find_symbol_value): Use do_symval_forwarding.
27182
27183 * data.c (set_internal): Set the value in the `cons-cell' (for
27184 Buffer_Local_values) not only for frame-local variables.
27185
271862007-11-22 Andreas Schwab <schwab@suse.de>
27187
27188 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
27189 values to sprintf.
27190 * keymap.c (Fsingle_key_description): Likewise.
27191 * print.c (print_object): Likewise.
27192
271932007-11-22 Jan Djärv <jan.h.d@swipnet.se>
27194
27195 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
27196 file for image is nil.
27197
271982007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
27199
27200 * term.c: Include stdarg.h.
27201 (fatal): Implement using varargs.
27202 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
27203
272042007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
27205
27206 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
27207 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
27208 Update call to buffer_slot_type_mismatch.
27209 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
27210 (buffer_slot_type_mismatch): Update.
27211 * buffer.c (buffer_local_types): Remove.
27212 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
27213 (defvar_per_buffer): Set the type in the buffer_objfwd.
27214
272152007-11-21 Jason Rumney <jasonr@gnu.org>
27216
27217 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
27218 CreateFileMapping returns NULL on failure.
27219
272202007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
27221
27222 * search.c (Fset_match_data): Remove the `evaporate' feature.
27223 (unwind_set_match_data): Don't use the `evaporate' feature.
27224
272252007-11-21 Jason Rumney <jasonr@gnu.org>
27226
27227 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
27228
27229 * w32console.c (w32con_write_glyphs): Remove unused variables.
27230
272312007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
27232
27233 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
27234
27235 * s/darwin.h (MULTI_KBOARD): Remove.
27236
27237 * macfns.c (x_create_tip_frame, Fx_create_frame)
27238 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
27239
272402007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
27241
27242 * buffer.c (Fbuffer_local_value): Remove redundant test.
27243 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
27244 than in `current-buffer' to match the comment.
27245 Do the swap using swap_in_global_binding.
27246
27247 * data.c (store_symval_forwarding, set_internal):
27248 * eval.c (specbind): Remove dead code.
27249
27250 * coding.c (detect_coding, Fupdate_coding_systems_internal):
27251 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
27252 Since we do not want to see internal Lisp_*fwd objects here.
27253
272542007-11-18 Jan Djärv <jan.h.d@swipnet.se>
27255
27256 * sysdep.c (init_system_name): Use getaddrinfo if available.
27257
27258 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
27259 (x_scroll_bar_note_movement): start, end, with, height in struct
27260 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
27261
272622007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
27263
27264 * puresize.h (BASE_PURESIZE): Increase to 1190000.
27265
272662007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
27267
27268 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
27269 This undoes Richard's change of 14-Oct-2002.
27270
27271 * alloc.c (allocate_other_vector):
27272 * lisp.h (allocate_other_vector): Remove.
27273
27274 * window.c (struct save_window_data): Move non-lisp data to the end
27275 and make it `int' rather than Lisp_Object.
27276 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
27277 Done wrap/unwrap integer values.
27278 (Fset_window_configuration, compare_window_configurations):
27279 Update use of fields to their new types.
27280
27281 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
27282 Turn integer fields into `int'. Merge x_window_low and x_window_high.
27283 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
27284 (SET_SCROLL_BAR_X_WINDOW): Remove.
27285 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
27286 Access the new x_window field directly.
27287 * xterm.c (x_scroll_bar_create): Use a pseudovector.
27288 Don't wrap/unwrap integers into Lisp_Objects.
27289 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
27290 (x_scroll_bar_report_motion):
27291 Don't wrap/unwrap integers into Lisp_Objects.
27292 (x_term_init): Use SDATA.
27293 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
27294 (x_scroll_bar_set_handle, x_scroll_bar_remove)
27295 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
27296 (x_scroll_bar_report_motion, x_scroll_bar_clear):
27297 * xfns.c (x_set_background_color):
27298 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
27299 Access the new x_window field directly.
27300
27301 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
27302 (allocate_pseudovector): Make non-static.
27303
27304 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
27305 (allocate_pseudovector): Declare.
27306 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
27307
273082007-11-15 Andreas Schwab <schwab@suse.de>
27309
27310 * editfns.c (Fformat): Correctly format EMACS_INT values.
27311 Also take precision into account when formatting an integer.
27312
27313 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
27314
273152007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
27316
27317 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
27318 (syms_of_keyboard): Defsubr it.
27319
27320 * data.c (swap_in_global_binding): Fix longstanding bug where
27321 store_symval_forwarding was not called with the right second argument,
27322 thus causing objfwd-ing from being dropped.
27323
273242007-11-14 Juanma Barranquero <lekktu@gmail.com>
27325
27326 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
27327 (Fx_display_pixel_height, Fx_display_planes)
27328 (Fx_display_color_cells, Fx_server_max_request_size)
27329 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
27330 (Fx_display_visual_class, Fx_display_save_under):
27331 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
27332 (Fx_display_pixel_height, Fx_display_planes)
27333 (Fx_display_color_cells, Fx_server_max_request_size)
27334 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
27335 (Fx_display_mm_height, Fx_display_mm_width)
27336 (Fx_display_backing_store, Fx_display_visual_class)
27337 (Fw32_select_font, Fx_display_save_under):
27338 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
27339 (Fx_display_pixel_height, Fx_display_planes)
27340 (Fx_display_color_cells, Fx_server_max_request_size)
27341 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
27342 (Fx_display_save_under): Fix typos in docstrings.
27343
273442007-11-14 Juanma Barranquero <lekktu@gmail.com>
27345
27346 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
27347 corresponding to deleted entries; they are an implementation detail.
27348 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
27349 Remove variables.
27350 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
27351 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
27352 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
27353 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
27354 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
27355 (Fw32_define_rgb_color, Fw32_load_color_file)
27356 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
27357 Fix typos in docstrings.
27358 (Fx_server_version): Reflow docstring.
27359 (Fw32_shell_execute): Doc fixes.
27360
273612007-11-13 Juanma Barranquero <lekktu@gmail.com>
27362
27363 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
27364 if w32_parse_hot_key returned nil.
27365
273662007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
27367
27368 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
27369
273702007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 27371
aac0c6e3
MR
27372 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
27373
27374 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
27375
27376 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
27377 Remove W32_SCROLL_BAR_CLICK_EVENT.
27378
27379 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
27380 Add MULTIMEDIA_KEY_EVENT.
27381
27382 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
27383 (lispy_multimedia_keys) [WINDOWSNT]: New array.
27384 (make_lispy_event) [WINDOWSNT]: Use it to translate
27385 MULTIMEDIA_KEY_EVENT.
27386
27387 * w32term.h (WM_APPCOMMAND): Define if not already.
27388 (GET_APPCOMMAND_LPARAM): Likewise.
27389
27390 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
27391 WM_APPCOMMAND.
27392
27393 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
27394 (syms_of_w32fns): Export and initialize it.
27395 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
27396
273972007-11-09 Chong Yidong <cyd@stupidchicken.com>
27398
27399 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
27400 twice.
27401
27402 * xdisp.c (handle_face_prop): Fix last change.
27403
274042007-11-09 Richard Stallman <rms@gnu.org>
27405
27406 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
27407 not just for after-strings and before-strings.
27408 Call face_for_overlay_string and pass the overlay to it.
27409 (handle_display_prop): Determine whether property came from an overlay.
27410 Pass OVERLAY arg to handle_single_display_spec.
27411 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
27412 (load_overlay_strings): Fill in it->string_overlays.
27413 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
27414
27415 * xfaces.c (face_for_overlay_string): Function renamed from
27416 face_at_buffer_position_no_overlays, and add arg OVERLAY.
27417
27418 * dispextern.h (struct it): New elt string_overlays.
27419 New elt from_overlay, also in stack.
27420 Rearrange a few elements.
27421 (face_for_overlay_string): Decl renamed from
27422 face_at_buffer_position_no_overlays, and add argument.
27423
274242007-11-09 Richard Stallman <rms@gnu.org>
27425
27426 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
27427 to get the base face for an overlay string.
27428
27429 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
27430
27431 * xfaces.c (face_at_buffer_position_no_overlays): New function.
27432
27433 * xdisp.c (handle_stop): Move some code out of loop.
27434
274352007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27436
27437 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
27438 Fix conversion from Lisp object to ATSUFontID.
27439
274402007-11-09 Jason Rumney <jasonr@gnu.org>
27441
27442 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
27443
274442007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27445
27446 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
27447 Don't assume regions are aligned to page boundary.
27448 (print_load_command_name): Add LC_UUID if defined.
27449
274502007-11-09 Richard Stallman <rms@gnu.org>
27451
27452 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
27453
274542007-11-07 Jason Rumney <jasonr@gnu.org>
27455
27456 * s/windows95.h: Remove.
27457
274582007-11-06 Jan Djärv <jan.h.d@swipnet.se>
27459
27460 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
27461 abort with a message on unhandled store_type values.
27462
274632007-11-01 Jan Djärv <jan.h.d@swipnet.se>
27464
27465 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
27466 Remove HAVE_X11R5 and HAVE_X11R4.
27467
274682007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
27469
27470 * Makefile.in: Remove references to sunfns.c and sunfns.o.
27471
274722007-11-01 Johan Bockgård <bojohan@gnu.org>
27473
27474 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
27475 Don't set s->stippled_p here, since it has already been set by
27476 x_set_glyph_string_gc from x_draw_glyph_string.
27477
274782007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
27479
27480 * sunfns.c: Remove file.
27481
27482 * m/sun386.h:
27483 * m/sun2.h:
27484 * m/sparc.h: Remove Sun windows code.
27485
274862007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
27487
27488 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
27489 (init_keyboard): Set current_kboard's window-system to nil.
27490 (tty_read_avail_input): Typo.
27491 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
27492
274932007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
27494
27495 * s/usg5-4.h:
27496 * s/usg5-3.h:
27497 * s/ptx.h:
27498 * m/is386.h:
27499 * m/ibmps2-aix.h:
27500 * Makefile.in: Remove all mentions of X10.
27501
27502 * dispnew.c (syms_of_display): Don't mention version 10.
27503
275042007-10-28 Juanma Barranquero <lekktu@gmail.com>
27505
27506 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
27507 ($(BLD)/abbrev.$(O)): Remove.
27508
275092007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
27510
27511 Rewrite abbrev.c in Elisp.
27512 * image.c (Qcount): Don't declare as extern.
27513 (syms_of_image): Initialize and staticpro `Qcount'.
27514 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
27515 * emacs.c (main): Don't call syms_of_abbrev.
27516 * Makefile.in (obj): Remove abbrev.o.
27517 (abbrev.o): Remove.
27518 * abbrev.c: Remove.
27519
275202007-10-26 Martin Rudalics <rudalics@gmx.at>
27521
27522 * window.c (window_min_size_2): Don't count header-line.
27523
275242007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
27525
27526 * frame.h (struct frame): Move all bit fields after the first bit
27527 field to take advantage of the available space. Group all the
27528 chars together to reduce wasted space due to padding.
27529
275302007-10-26 Juanma Barranquero <lekktu@gmail.com>
27531
27532 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
27533
27534 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
27535 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
27536 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
27537 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
27538 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
27539 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
27540 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
27541 (last_marked, mark_object_loop_halt): Make static.
27542
27543 * frame.c (syms_of_frame) <delete-frame-functions>:
27544 Fix typo in docstring.
27545
275462007-10-25 Juanma Barranquero <lekktu@gmail.com>
27547
27548 * w32.c (init_environment): Fix tiny memory leak.
27549 (w32_get_resource): Remove unused variable `ok'.
27550
275512007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
27552
27553 Make `window-system' into a keyboard-local variable (rather than
27554 frame-local as done originally by multi-tty).
27555
27556 * keyboard.h (struct kboard): Add Vwindow_system.
27557 * keyboard.c (init_kboard): Set a default for Vwindow_system.
27558 (mark_kboards): Mark Vwindow_system.
27559
27560 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
27561 (init_display): Don't set the obsolete `window-system' frame-param.
27562
27563 * xterm.c (x_term_init):
27564 * w32term.c (w32_create_terminal):
27565 * term.c (init_tty): Set Vwindow_system.
27566 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
27567 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
27568
27569 * xfns.c (Fx_create_frame, x_create_tip_frame):
27570 * w32fns.c (Fx_create_frame, x_create_tip_frame):
27571 * macfns.c (Fx_create_frame):
27572 Don't set the obsolete `window-system' frame-param.
27573
27574 * frame.h (Qwindow_system): Remove.
27575 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
27576 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
27577
275782007-10-24 Richard Stallman <rms@gnu.org>
27579
27580 * frame.c (x_figure_window_size): For fullscreen case,
27581 set USPosition | PPosition without clobbering rest of window_prompting.
27582
27583 * keyboard.c (Fcurrent_idle_time): Doc fix.
27584
27585 * print.c (Fwith_output_to_temp_buffer): Doc fix.
27586
275872007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
27588
27589 * process.c (unwind_request_sigio): Only define if __ultrix__.
27590
27591 * callproc.c (child_setup): Remove spurious *.
27592
27593 * lisp.h (Fget_text_property): Declare.
27594 (have_menus_p): Declare it here rather than in sys-dep header files.
27595 * macterm.h (have_menus_p):
27596 * msdos.h (have_menus_p):
27597 * xterm.h (have_menus_p): Remove.
27598
27599 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
27600 (Fmake_variable_frame_local): Just check the variable's const-ness
27601 rather than checking nil or t.
27602
276032007-10-22 Jason Rumney <jasonr@gnu.org>
27604
27605 * w32fns.c: Include math.h.
27606 (w32_abort): Declaration moved to nt/config.nt.
27607
27608 * s/ms-w32.h (HAVE_STDLIB_H): Define.
27609 (abort): Redefinition moved to nt/config.nt.
27610
27611 * m/windowsnt.h: Remove.
27612
276132007-10-22 Juanma Barranquero <lekktu@gmail.com>
27614
27615 * emacs.c (Fdump_emacs): Fix typo in message.
27616 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
27617 <installation-directory>: Reflow docstring.
27618
276192007-10-22 Juri Linkov <juri@jurta.org>
27620
27621 * minibuf.c: Allow minibuffer default to be a list of default values.
27622 With empty input use the first element of this list as returned default.
27623 (string_to_object)
27624 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
27625 (read_minibuf): If defalt is cons, set histstring to its car.
27626 (Fread_string): If default_value is cons, set val to its car.
27627 (Fread_buffer): If def is cons, use its car.
27628 (Fcompleting_read): If defalt is cons, set val to its car.
27629
276302007-10-21 Michael Albinus <michael.albinus@gmx.de>
27631
27632 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
27633
276342007-10-20 Juanma Barranquero <lekktu@gmail.com>
27635
27636 * doc.c (Fdocumentation): Check for advice in all cases.
27637
276382007-10-19 Chong Yidong <cyd@stupidchicken.com>
27639
27640 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
27641
276422007-10-19 Richard Stallman <rms@gnu.org>
27643
27644 * doc.c (Fdocumentation): Check for and handle an advised function.
27645
276462007-10-19 Juanma Barranquero <lekktu@gmail.com>
27647
27648 * process.c (Fset_process_filter): Doc fix.
27649
276502007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
27651
27652 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
27653 which caused key-translation-map to applied repeatedly (thus breaking
27654 double-mode).
27655
276562007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
27657
27658 * xselect.c (x_own_selection, x_handle_selection_clear)
27659 (x_clear_frame_selections):
27660 * w32menu.c (list_of_panes, list_of_items):
27661 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
27662 * textprop.c (validate_plist, interval_has_all_properties)
27663 (interval_has_some_properties, interval_has_some_properties_list)
27664 (add_properties, text_property_list):
27665 * process.c (Fget_buffer_process, list_processes_1, status_notify):
27666 * minibuf.c (Fassoc_string):
27667 * macselect.c (x_own_selection, x_clear_frame_selections)
27668 (Fx_disown_selection_internal):
27669 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
27670 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
27671
276722007-10-17 Chong Yidong <cyd@stupidchicken.com>
27673
27674 * process.c: Link to libs for calling res_init() if available.
27675 (Fmake_network_process): Call res_init() before getaddrinfo or
27676 gethostbyname, if possible.
27677
276782007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
27679
27680 * lread.c (read1): Set pvectype for char_tables.
27681
27682 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
27683 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
27684 Add type checks.
27685 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
27686
27687 * alloc.c (free_misc): Use XMISCTYPE.
27688 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
27689
276902007-10-17 Glenn Morris <rgm@gnu.org>
27691
27692 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
27693 (syms_of_minibuf): Add Qcompletion_ignore_case.
27694 * dired.c (Qcompletion_ignore_case): Change to external.
27695 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
27696 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
27697 (Fread_file_name): Use it rather than intern'ing.
27698
27699 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
27700 (Fread_coding_system): Ignore case of user input.
27701
277022007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27703
27704 * xdisp.c (handle_display_prop): Ignore display specs after
27705 replacing one when string text is being replaced.
27706 (handle_single_display_spec): Pretend as if characters with display
27707 property haven't been consumed only when buffer text is being replaced.
27708
277092007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
27710
27711 * xfns.c (Fx_create_frame, Fx_display_list):
27712 * window.c (window_fixed_size_p, enlarge_window)
27713 (shrink_window_lowest_first):
27714 * macterm.c (init_font_name_table):
27715 * macfns.c (Fx_create_frame, Fx_display_list):
27716 * lread.c (close_load_descs):
27717 * keyboard.c (read_char_x_menu_prompt):
27718 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
27719 * coding.c (code_convert_region_unwind): Test the type of an object
27720 rather than just !NILP before extracting data from it.
27721
27722 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
27723
27724 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
27725 (XMISCANY): New macro.
27726 (XMISCTYPE): Use it.
27727 (struct Lisp_Misc_Any): New type.
27728 (union Lisp_Misc): Use it.
27729 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
27730 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
27731 (find_symbol_value, set_internal, default_value, Fset_default)
27732 (Fmake_variable_buffer_local, Fmake_local_variable)
27733 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
27734 (Flocal_variable_if_set_p, Fvariable_binding_locus):
27735 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
27736 * alloc.c (allocate_buffer): Set the size and tag.
27737 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
27738 Use XMISCANY.
27739 (die): Follow the GNU convention for error messages.
27740 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
27741 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
27742 tag any more.
27743 (set_buffer_internal_1):
27744 * frame.c (store_frame_param):
27745 * eval.c (specbind):
27746 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
27747
27748 * doc.c (Fsnarf_documentation): Simplify.
27749
277502007-10-14 Juanma Barranquero <lekktu@gmail.com>
27751
27752 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
27753 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
27754
277552007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
27756
27757 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
27758
277592007-10-14 Juanma Barranquero <lekktu@gmail.com>
27760
27761 * eval.c (do_autoload): Don't save autoloads.
27762
27763 * data.c (Ffset): Save autoload of the function being set.
27764
277652007-10-07 John Paul Wallington <jpw@pobox.com>
27766
27767 * xfns.c (x_create_tip_frame): Set the `display-type' frame
27768 parameter before setting up faces.
27769
277702007-10-13 Eli Zaretskii <eliz@gnu.org>
27771
27772 * ccl.c (Fregister_code_conversion_map):
27773 * keyboard.c (append_tool_bar_item): Reformat last change.
27774
27775 * lisp.h (eabs): Rename from `abs'. All callers changed.
27776
277772007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
27778
27779 * buffer.c (add_overlay_mod_hooklist):
27780 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
27781 * fontset.c (make_fontset):
27782 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
27783 (append_tool_bar_item):
27784 * macmenu.c (grow_menu_items):
27785 * w32menu.c (grow_menu_items):
27786 * xmenu.c (grow_menu_items): Use larger_vector.
27787
277882007-10-13 Eli Zaretskii <eliz@gnu.org>
27789
27790 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
27791 selected frame'' on MSDOS).
27792
277932007-10-12 Martin Rudalics <rudalics@gmx.at>
27794
27795 * frame.c (Qexplicit_name): New variable.
27796 (x_report_frame_params): Report it in parameter alist.
27797 (syms_of_frame): Intern and staticpro it.
27798
277992007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
27800
27801 * macfns.c (x_create_tip_frame): Set terminal for frame.
27802
278032007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
27804
27805 * frame.c (Qenvironment): Remove.
27806 (syms_of_frame) <Qenvironment>: Don't initialize.
27807 (Fdelete_frame): Don't treat the `environment' param specially.
27808 * frame.h (Qenvironment): Don't declare.
27809 * callproc.c (set_initial_environment): Don't set unused frame param.
27810
27811 * frame.c (Fframe_with_environment): Remove.
27812 (syms_of_frame) <Sframe_with_environment>: Don't declare.
27813
27814 * lisp.h (Fframe_with_environment): Don't declare.
27815
278162007-10-10 Juanma Barranquero <lekktu@gmail.com>
27817
27818 * indent.c (indent_tabs_mode, last_known_column)
27819 (last_known_column_modified): Make static.
27820 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
27821
278222007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
27823
27824 * puresize.h (BASE_PURESIZE): Increase to 1170000.
27825
278262007-10-09 Jason Rumney <jasonr@gnu.org>
27827
27828 * w32term.c (x_set_window_size): Disable code that attempts to tell
27829 Lisp code about a size change before it actually happens.
27830
278312007-10-09 Richard Stallman <rms@gnu.org>
27832
27833 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
27834 return HANDLED_RETURN.
27835
278362007-10-08 Martin Rudalics <rudalics@gmx.at>
27837
27838 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
27839 when there's an unread command event.
27840
27841 * frame.c (focus_follows_mouse): Move here from frame.el to allow
27842 window autoselection act appropriately when leaving selected frame.
27843 (syms_of_frame): Initialize focus_follows_mouse.
27844 * frame.h (focus_follows_mouse): Extern it.
27845 * macterm.c (XTread_socket): When focus_follows_mouse is nil
27846 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
27847 * msdos.c (dos_rawgetc): Likewise.
27848 * w32term.c (w32_read_socket): Likewise.
27849 * xterm.c (handle_one_xevent): Likewise.
27850 * xdisp.c (syms_of_xdisp): In doc-string of
27851 mouse-autoselect-window mention focus-follows-mouse.
27852
278532007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27854
27855 * macterm.c (mac_load_query_font): Fix missing return value.
27856 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
27857 Add BLOCK_INPUT.
27858
278592007-10-08 Richard Stallman <rms@gnu.org>
27860
27861 * xdisp.c (get_window_cursor_type): Implement documented behavior
27862 for cursor-in-non-selected-windows = t.
27863
278642007-10-08 Jason Rumney <jasonr@gnu.org>
27865
27866 * w32.c (w32_get_resource): Always close registry keys.
27867
278682007-10-08 Jason Rumney <jasonr@gnu.org>
27869
27870 * makefile.w32-in (LIBS): Add COMCTL32.
27871
27872 * w32fns.c (globals_of_w32fns): Init common controls.
27873
278742007-10-08 Richard Stallman <rms@gnu.org>
27875
27876 * image.c (our_memory_buffer): Rename from omfib_buffer.
27877
278782007-10-08 Richard Stallman <rms@gnu.org>
27879
27880 * buffer.c (Foverlays_at): Doc fix.
27881
278822007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
27883
27884 * fns.c (Fplist_put): Preserve uneven tail data.
27885
278862007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
27887
27888 * termhooks.h (enum event_kind): Remove trailing comma.
27889
27890 * frame.h (enum): Remove trailing comma.
27891
278922007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
27893
27894 * w32proc.c (delete_child): Don't terminate threads of zombies.
27895
278962007-10-08 Martin Rudalics <rudalics@gmx.at>
27897
27898 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
27899
27900 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
27901 last-repeatable-command.
27902 (init_kboard): Initialize Vlast_repeatable_command.
27903 (command_loop_1): Set it to real_this_command unless that was
27904 bound to an input event.
27905 (mark_kboards): Mark it.
27906
279072007-10-08 Richard Stallman <rms@gnu.org>
27908
27909 * eval.c (condition-case): Doc fix.
27910
279112007-10-08 Masatake YAMATO <jet@gyve.org>
27912
27913 * xfaces.c (tty_supports_face_attributes_p): Fix code
27914 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
27915 was copied and not edited.
27916
279172007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
27918
27919 Add new `input-decode-map' keymap and use it for terminal
27920 escape sequences.
27921 * keyboard.h (struct kboard): Add Vinput_decode_map.
27922 Remove Vlocal_key_translation_map.
27923 * keyboard.c (read_key_sequence): Add support for input-decode-map.
27924 (init_kboard): Init input-decode-map.
27925 Replace local-key-translation-map back with key-translation-map.
27926 (syms_of_keyboard): Declare input-decode-map.
27927 Remove local-key-translation-map. Update docstrings.
27928 (mark_kboards): Mark Vinput_decode_map.
27929 Don't mark Vlocal_key_translation_map.
27930 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
27931 Replace local-key-translation-map back with key-translation-map.
27932 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
27933 Bind in input-decode-map rather than function-key-map.
27934
27935 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
27936 This was made redundant by the previous introduction of XSETPVECTYPE.
27937
279382007-10-09 Richard Stallman <rms@gnu.org>
27939
27940 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
27941
279422007-09-29 Richard Stallman <rms@gnu.org>
27943
27944 * eval.c (internal_condition_case_2, internal_condition_case_1)
27945 (internal_condition_case): Reenable abort if x_catching_errors ()
27946 to see if that really happens and why.
27947
279482007-10-06 Andreas Schwab <schwab@suse.de>
27949
27950 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
27951
279522007-10-04 Juanma Barranquero <lekktu@gmail.com>
27953
27954 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
27955
279562007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
27957
27958 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
27959
279602007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
27961
27962 * window.h (struct window):
27963 * window.c (struct save_window_data, struct saved_window):
27964 * termhooks.h (struct terminal):
27965 * process.h (struct Lisp_Process):
27966 * frame.h (struct frame):
27967 * buffer.h (struct buffer):
27968 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
27969 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
27970 The size field of (pseudo)vectors is now unsigned.
27971 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
27972
27973 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
27974 Turn `count' into an integer.
27975
27976 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
27977 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
27978 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
27979 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
27980 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
27981
27982 * alloc.c (allocate_pseudovector): New fun.
27983 (ALLOCATE_PSEUDOVECTOR): New macro.
27984 (allocate_window, allocate_terminal, allocate_frame)
27985 (allocate_process): Use it.
27986 (mark_vectorlike): New function.
27987 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
27988 (mark_terminals): Use it.
27989 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
27990 (Fmake_byte_code): Use XSETPVECTYPE.
27991
27992 * frame.c (Fframe_parameters): Minor simplification.
27993
27994 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
27995
27996 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
27997
27998 * buffer.c (Fget_buffer_create, init_buffer_once):
27999 * lread.c (defsubr):
28000 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
28001
28002 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
28003 defined differently in the m/*.h files.
28004 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
28005 (XSETPVECTYPE): New macro.
28006 (XSETPSEUDOVECTOR): Use it.
28007
28008 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
28009 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
28010
28011 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
28012 * lread.c (defvar_per_buffer):
28013 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
28014
28015 * window.c (candidate_window_p): Only consider as visible frames that
28016 are on the same terminal.
28017
28018 * m/ibms390x.h (MARKBIT): Remove unused macro.
28019
280202007-10-01 Juanma Barranquero <lekktu@gmail.com>
28021
28022 * lread.c (Fload): Fix typo in docstring.
28023
280242007-10-01 Michaël Cadilhac <michael@cadilhac.name>
28025
28026 * floatfns.c (Fexpt): Manually check for overflows, so that a power
28027 of a non-zero value can't yield zero.
28028
280292007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
28030
28031 * term.c (term_clear_mouse_face, term_mouse_highlight)
28032 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
28033
28034 * print.c (safe_debug_print): Use XHASH.
28035
28036 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
28037 Lisp elements such as tags.
28038 (XHASH): New macro.
28039 (EQ): Use it.
28040 (SREF, SSET, STRING_COPYIN): Use SDATA.
28041 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
28042
28043 * alloc.c (mark_terminal): Remove left-over declaration.
28044 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
28045 (allocate_vectorlike): Remove type argument. Adjust callers.
28046 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
28047 Only handle the one remaining MEM_TYPE_VECTORLIKE.
28048
28049 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
28050 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
28051 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
28052 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
28053 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
28054 Use them.
28055
28056 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
28057 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
28058 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
28059
280602007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
28061
28062 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
28063 loaded by default.
28064
280652007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
28066
28067 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
28068 on this tty.
28069 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
28070
28071 * term.c (mouse_face_window): Rename from Qmouse_face_window.
28072 Update all users.
28073 (handle_one_term_event): Use Gpm_DrawPointer.
28074 (Fgpm_mouse_start): Rename from Fterm_open_connection.
28075 Signal errors instead of returning nil. Always return nil.
28076 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
28077 Make it a noop if gpm-mouse was not activated.
28078 (syms_of_term): Update names.
28079
280802007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
28081
28082 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
28083 (init_sys_modes): Check that gpm_tty is the current tty.
28084
28085 * alloc.c (allocate_terminal): Set the vector size to only count the
28086 lisp fields. Initialize those to nil.
28087 (mark_object): Don't treat terminals specially.
28088 (mark_terminal): Remove.
28089 (mark_terminals): Use mark_object instead.
28090
28091 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
28092 the GC to the beginning.
28093
28094 * indent.h:
28095 * indent.c: Use EMACS_INT for ints coming from Elisp data.
28096
28097 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
28098
280992007-09-25 Jason Rumney <jasonr@gnu.org>
28100
28101 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
28102
28103 * w32console.c (create_w32cons_output): Remove.
28104
28105 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
28106
28107 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
28108 (reset_sys_modes): Use reset_terminal_modes_hook.
28109
281102007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
28111
28112 * eval.c (do_autoload): Don't output any message.
28113
281142007-09-24 Juri Linkov <juri@jurta.org>
28115
28116 * emacs.c (standard_args): Change priority of "--no-splash"
28117 from 40 to 3. Add "--no-desktop" with the same priority.
28118
281192007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
28120
28121 * alloc.c (gc_sweep): Check cons cell mark bits word by word
28122 and optimize the case where they are all 1.
28123
281242007-09-23 Johannes Weiner <hannes@saeurebad.de>
28125
28126 * lisp.h (abs): Define if not defined.
28127 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
28128 Don't define `abs', since it's defined in lisp.h.
28129
281302007-09-22 Eli Zaretskii <eliz@gnu.org>
28131
28132 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
28133 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
28134 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
28135 (init_tty): Use DEV_TTY instead of "/dev/tty".
28136 [WINDOWSNT]: No need to protect from NAME arg being null.
28137
281382007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
28139
28140 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
28141 up the tty state.
28142
281432007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
28144
28145 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
28146 (gpm_tty): Change its type.
28147 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
28148 (gpm_tty): Change its type and initialize it.
28149 (Fterm_open_connection): Check the frame is indeed a tty.
28150 Use the new gpm_tty.
28151 (Fterm_close_connection): Use the new gpm_tty.
28152 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
28153 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
28154
281552007-09-21 Juanma Barranquero <lekktu@gmail.com>
28156
28157 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
28158 underline_color, to draw strike-through.
28159
281602007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
28161
28162 * lisp.h (allocate_terminal): Declare.
28163
28164 * window.c (candidate_window_p): Consider frames that are being placed
28165 by the user as somewhere between visible and iconified.
28166 (window_loop): Prefer windows on the current frame.
28167 (Fselect_window): Move the use of select-frame to the beginning so we
28168 can just delegate all the work (it'll call us back anyway).
28169
28170 * frame.c (Qdisplay_environment_variable):
28171 * frame.h (Qdisplay_environment_variable): Delete.
28172
28173 * .gdbinit (xbacktrace): Print the arg's address rather than the value
28174 of the first arg, since that value may be a union.
28175
28176 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
28177 parameter rather than Qdisplay_environment_variable. If all else
28178 fails, look for DISPLAY in initial-environment.
28179
281802007-09-21 Glenn Morris <rgm@gnu.org>
28181
28182 * Makefile.in (emacstool): Remove target.
28183 (lisp, shortlisp): Remove termdev.elc.
28184
281852007-09-21 Markus Triska <markus.triska@gmx.at>
28186
28187 * xterm.c (x_delete_display): Compile session management conditionally.
28188
281892007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
28190
28191 * callproc.c (getenv_internal_1): New function.
28192 (getenv_internal): Use it.
28193 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
28194
28195 * terminal.c (get_terminal): Don't accept ints to represent terminals.
28196 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
28197 (Fset_terminal_parameter): Work with dead terminals as well.
28198 (Fmodify_terminal_parameters): Remove.
28199
28200 * terminal.c (get_terminal): Handle terminals.
28201 Make sure the terminal returned is live.
28202 (create_terminal): Use allocate_terminal.
28203 (mark_terminals): Move to alloc.c.
28204 (delete_terminal): Use terminal->name as liveness status.
28205 NULL out fields after freeing their contents.
28206 Don't deallocate the object.
28207 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
28208 rather than an int.
28209 (Fterminal_live_p): Accept non-integer arguments.
28210 (Fterminal_list): Return terminal objects rather than an ints.
28211
28212 * alloc.c (enum mem_type): New member for `terminal' objects.
28213 (allocate_terminal): New function.
28214 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
28215 Handle terminals.
28216 (mark_terminal): New fun.
28217 (mark_terminals): Move from terminal.c.
28218
28219 * term.c (get_tty_terminal): Don't treat output_initial specially.
28220 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
28221 (delete_tty): Use terminal->name as liveness status.
28222
28223 * termhooks.h (struct terminal): Make it into a pseudovector.
28224 Remove `deleted' replaced by checking `name's nullness.
28225
28226 * print.c (print_object): Handle terminals.
28227
28228 * lisp.h (enum pvec_type): New `terminal' pseudovector.
28229 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
28230
28231 * frame.c (make_terminal_frame):
28232 * keyboard.c (tty_read_avail_input):
28233 * w32term.c (x_delete_terminal):
28234 * xfns.c (Fx_create_frame, x_create_tip_frame):
28235 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
28236
282372007-09-20 Glenn Morris <rgm@gnu.org>
28238
28239 * process.c (Fmake_network_process): Doc fix.
28240
282412007-09-19 Jason Rumney <jasonr@gnu.org>
28242
28243 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
28244
282452007-09-19 Michaël Cadilhac <michael@cadilhac.name>
28246
28247 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
28248 Fix a C warning regarding variable constness.
28249
28250 * xterm.c (handle_one_xevent): Fix a C warning.
28251
282522007-09-18 Jason Rumney <jasonr@gnu.org>
28253
28254 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
28255
282562007-09-17 Jan Djärv <jan.h.d@swipnet.se>
28257
28258 * gtkutil.c (gdpy_def): New variable.
28259 (xg_initialize): Initialize gdpy_def.
28260 (xg_display_close): If no other display exists, set gdpy_def to a
28261 new connection.
28262
282632007-09-16 Jan Djärv <jan.h.d@swipnet.se>
28264
28265 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
28266 when we have no file name for the icon.
28267 (xg_tool_bar_expose_callback): Remove.
28268 (xg_create_tool_bar): Don't connect expose signal to
28269 xg_tool_bar_expose_callback.
28270 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
28271
282722007-09-16 Andreas Schwab <schwab@suse.de>
28273
28274 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
28275 values instead of zapping them.
28276
282772007-09-14 Glenn Morris <rgm@gnu.org>
28278
28279 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
28280 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
28281 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
28282 scope and rename to omfib_buffer for clarity.
28283 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
28284
282852007-09-14 Kenichi Handa <handa@m17n.org>
28286
28287 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
28288
282892007-09-13 Jason Rumney <jasonr@gnu.org>
28290
28291 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
28292
28293 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
28294
28295 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
28296 (mac_term_init): Call here instead, passing rif.
28297
282982007-09-13 Glenn Morris <rgm@gnu.org>
28299
28300 * s/hpux.h: No longer define `static' as nothing.
28301
283022007-09-13 Johan Bockgård <bojohan@gnu.org>
28303
28304 * callint.c (Fcall_interactively): Remove unused var `fun'.
28305
283062007-09-12 Romain Francoise <romain@orebokech.com>
28307
28308 * window.c (prefer_window_split_horizontally, display_buffer):
28309 Revert 2007-09-08 change.
28310
283112007-09-12 Glenn Morris <rgm@gnu.org>
28312
28313 * alloca.c: Remove file.
28314 * Makefile.in (alloca): Do not undef.
28315 (allocaobj, alloca.o): Remove.
28316 (otherobj): Remove allocaobj.
28317 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
28318 * regex.c (C_ALLOCA): Remove all references and code that was only
28319 used when this was defined.
28320 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
28321 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
28322 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
28323
28324 * Makefile.in (SOURCES, unlock, relock): Delete.
28325
28326 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
28327 (menu_grab_callback): All uses changed.
28328
28329 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
28330 (x_reply_selection_request): All uses changed.
28331
283322007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
28333
28334 * lread.c (load_warn_old_style_backquotes): Change message to look
28335 better when it appears in the middle of byte-compiler messages.
28336
283372007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
28338
28339 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
28340
28341 * xterm.c (x_create_terminal): Add comment.
28342
28343 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
28344
283452007-09-10 Richard Stallman <rms@gnu.org>
28346
28347 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
28348
283492007-09-10 Michaël Cadilhac <michael@cadilhac.name>
28350
28351 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
28352 (DEFUN): Document `intspec', use it instead of `prompt'.
28353
28354 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
28355
28356 * data.c (Finteractive_form): If the interactive specification starts
28357 with a `(', use it as a Lisp form.
28358
28359 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
28360 name and file modes.
28361
28362 * callint.c (Fcall_interactively): Comment fixes.
28363
283642007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
28365
28366 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
28367 and compiled functions.
28368
283692007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
28370
28371 * window.c (prefer_window_split_horizontally): New variable.
28372 (display_buffer): Consider splitting window horizontally depending
28373 on prefer_window_split_horizontally.
28374
283752007-09-08 Eli Zaretskii <eliz@gnu.org>
28376
28377 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
28378
283792007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
28380
28381 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
28382
28383 * frame.c (x_set_frame_parameters): Check number is positive before
28384 using XFASTINT.
28385
28386 * window.c (freeze_window_start): Don't presume selected_window holds
28387 a window object.
28388 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
28389
283902007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
28391
28392 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
28393
283942007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
28395
28396 * window.c (Vsplit_window_preferred_function): New var.
28397 (Fdisplay_buffer): Use it.
28398 (syms_of_window): Export, and initialize it.
28399
284002007-09-06 Pixel <pixel@mandriva.com> (tiny change)
28401
28402 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
28403
284042007-09-06 Glenn Morris <rgm@gnu.org>
28405
28406 * gtkutil.c (menu_grab_callback) <cnt>:
28407 * xselect.c (x_reply_selection_request) <cnt>: Move static
28408 variable to file scope.
28409
284102007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
28411
28412 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
28413 consistent values of selected_frame and selected_window.
28414
284152007-09-04 Jason Rumney <jasonr@gnu.org>
28416
28417 * w32console.c (initialize_w32_display): Zero unused hooks.
28418
284192007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
28420
28421 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
28422 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
28423
284242007-09-04 Jason Rumney <jasonr@gnu.org>
28425
28426 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
28427 in w32console.c. Set up input. Remove XXX comments that have been
28428 confirmed as correct.
28429
28430 * s/ms-w32.h (MULTI_KBOARD): Define.
28431
28432 * w32console.c (one_and_only_w32cons): Remove.
28433 (initialize_w32_display): Take terminal argument.
28434
28435 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
28436 initialize_w32_display.
28437 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
28438
28439 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
28440
28441 * keyboard.c (discard_mouse_events): Discard it.
28442 (make_lispy_event): Translate it to a lisp event.
28443 (lispy_wheel_names): Add wheel-left and right events.
28444 (syms_of_keyboard): Enlarge wheel_syms.
28445
28446 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
28447 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
28448
28449 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
28450
28451 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
28452 from WM_MOUSEHWHEEL.
28453 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
28454
28455 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
28456 terminal.
28457
28458 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
28459 keyboard for the terminal.
28460
284612007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
28462
28463 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
28464 (Vresume_tty_hook): Rename from Vresume_tty_functions.
28465 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
28466 and resume-tty-function to resume-tty-hook.
28467 (Fsuspend_tty, Fresume_tty): Use new names.
28468
284692007-09-02 Jan Djärv <jan.h.d@swipnet.se>
28470
28471 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
28472 if it starts with "n:".
28473
284742007-08-31 Jan Djärv <jan.h.d@swipnet.se>
28475
28476 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
28477
284782007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
28479
28480 * frame.h:
28481 * frame.c (Qterm_environment_variable): Remove.
28482 (syms_of_frame): Don't init and staticpro it.
28483
28484 * callproc.c (getenv_internal): Remove special case for $TERM.
28485
28486 * callproc.c (Vinitial_environment): New variable.
28487 (set_initial_environment): Initialize it.
28488 (syms_of_callproc): Declare it.
28489 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
28490 TERM under which a process runs is never related to the TERM in which
28491 Emacs is running.
28492
284932007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
28494
28495 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
28496 * s/darwin.h: ... do it here.
28497
284982007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
28499
28500 * lisp.h (set_initial_environment): Rename from set_global_environment.
28501
28502 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
28503 removed by mistake on the multi-tty branch.
28504
28505 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
28506 (Fmodify_frame_parameters): Return a value.
28507
28508 * image.c (png_load): Comment-out var only used in commented-out code.
28509
28510 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
28511 before passing it to mark_object.
28512
28513 * xfaces.c (internal_resolve_face_name): Return a value.
28514 (internal_resolve_face_name, resolve_face_name_error): Comment out.
28515
28516 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
28517 (x_icon): Comment-out var only used in commented-out code.
28518
285192007-08-29 Romain Francoise <romain@orebokech.com>
28520
28521 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
28522 QUIT hasn't been provided.
28523
285242007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
28525
28526 * callproc.c (child_setup, getenv_internal): Use the
28527 display-environment-variable and term-environment-variable frame params.
28528 (set_initial_environment): Initialise Vprocess_environment.
28529
28530 * config.in: Disable multi-keyboard support on a mac.
28531
28532 * frame.c (Qterm_environment_variable)
28533 (Qdisplay_environment_variable): New variables.
28534 (syms_of_frame): Intern and staticpro them.
28535 (Fmake_terminal_frame): Disable output method test.
28536
28537 * frame.h: Declare them here.
28538
28539 * macfns.c (x_set_mouse_color): Get rif from the frame.
28540 (x_set_tool_bar_lines): Don't use updating_frame.
28541 (mac_window): Add 2 new parameters for consistency with other systems.
28542 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
28543 frame parameters following what is done in X11 and w32. Don't use
28544 FRAME_MAC_DISPLAY_INFO.
28545 (Fx_open_connection, start_hourglass): Remove window-system check.
28546 (x_create_tip_frame): Get the keyboard from the terminal.
28547
28548 * macmenu.c: Reorder includes.
28549 (Fx_popup_menu): Use terminal specific mouse_position_hook.
28550
28551 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
28552 terminal parameter.
28553 (x_clear_frame): Add a frame parameter.
28554 (note_mouse_movement): Get rif from the frame.
28555 (mac_term_init): Initialize the terminal.
28556 (mac_initialize): Make static and move terminal initialization ...
28557 (mac_create_terminal): ... to this new function.
28558
28559 * macterm.h (struct mac_display_info): Add terminal.
28560 (mac_initialize): Delete declaration.
28561
28562 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
28563
28564 * sysdep.c: Comment out text after #endif.
28565
28566 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
28567 is defined. Better initialize ttys in windows. Use terminal
28568 specific mouse_position_hook.
28569
28570 * termhooks.h (union display_info): Add mac_display_info.
28571
28572 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
28573 Set the default minibuffer frame, window_system and the rest of the
28574 frame parameters following what is done in X11.
28575
28576 * w32term.c (w32_initialize): Make static.
28577
28578 * xselect.c (x_handle_selection_clear): Only access
28579 terminal->kboard when MULTI_KBOARD is defined.
28580
28581 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
28582 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
28583
285842007-08-29 Jason Rumney <jasonr@gnu.org>
28585
28586 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
28587 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
28588
28589 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
28590 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
28591
28592 * keyboard.c (restore_kboard_configuration): Only define when
28593 MULTI_KBOARD defined.
28594
28595 * makefile.w32-in: Update dependancies from Makefile.in.
28596 (OBJ1): Add terminal.$(O)
28597
28598 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
28599 Don't define function body.
28600 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
28601
28602 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
28603
28604 * w32.c (request_sigio, unrequest_sigio): Remove.
28605
28606 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
28607 (w32con_clear_frame, w32con_clear_end_of_line)
28608 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
28609 (w32con_delete_glyphs, w32con_set_terminal_window)
28610 (scroll_line, w32_sys_ring_bell): Add frame arg.
28611 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
28612 Add terminal arg.
28613 (PICK_FRAME): Remove.
28614 (w32con_write_glyphs): Use frame specific terminal coding.
28615 (one_and_only_w32cons): New global variable.
28616 (initialize_w32_display): Use it for storing hooks.
28617 (create_w32cons_output): New function.
28618
28619 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
28620 arg a frame.
28621
28622 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
28623 Set window_system.
28624 (x_set_tool_bar_lines): Don't use updating_frame.
28625 (Fx_create_frame): Set terminal and ref count.
28626 (Fx_open_connection): Remove window-system check.
28627
28628 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
28629
28630 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
28631 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
28632 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
28633 Add frame arg.
28634 (x_delete_terminal, w32_create_terminal): New functions.
28635 (w32_term_init): Create a terminal.
28636 (w32_initialize): Move terminal specific initialization to
28637 w32_create_terminal.
28638
28639 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
28640 (w32_clear_rect, w32_clear_area): Use background from frame.
28641 (w32_display_info): Add terminal.
28642 (w32_sys_ring_bell, x_delete_display): Declare here.
28643
28644 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
28645
28646 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
28647
286482007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
28649
28650 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
28651 Fix get_named_tty calls for the controlling tty.
28652
286532007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
28654
194d44e7 28655 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
28656
286572007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
28658
28659 * term.c (tty_insert_glyphs): Add missing first parameter.
28660
286612007-08-29 Károly Lőrentey <karoly@lorentey.hu>
28662
28663 * buffer.c (Fbuffer_list, Fbury_buffer):
28664 Take frame->buried_buffer_list into account.
28665
28666 * cm.c (current_tty): New variable, for cmputc().
28667 (cmputc): Use it.
28668 (cmcheckmagic): Add tty parameter, look up terminal streams there.
28669 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
28670 (cmgoto): Add tty parameter. Pass it on to calccost().
28671 Use emacs_tputs() instead of tputs().
28672
28673 * cm.h (emacs_tputs): New macro to set current_tty, and then call
28674 tputs().
28675 (current_tty): New variable, for cmputc().
28676 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
28677
28678 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
28679 (internal_condition_case, internal_condition_case_1)
28680 (internal_condition_case_2): Don't abort when x_catching_errors.
28681
28682 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
28683 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
28684 prevent crashes caused by bogus longjmps in read_char.
28685
28686 * keymap.h (Fset_keymap_parent): Add EXFUN.
28687
28688 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
28689 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
28690 Remove redundant definition.
28691
28692 * macfns.c (x_set_mouse_color, x_make_gc):
28693 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
28694
28695 * w32term.c (x_free_frame_resources):
28696 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
28697 (w32_initialize): Use the accessor macros for terminal characteristics.
28698
28699 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
28700 Use the accessor macros for terminal characteristics.
28701 * msdos.c (internal_terminal_init): Use the accessor macros for
28702 terminal characteristics.
28703 (ScreenVisualBell, internal_terminal_init):
28704 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
28705
28706 * termopts.h (no_redraw_on_reenter): Declare.
28707
28708 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
28709 (mark_terminals, mark_ttys): Declare.
28710 (Fgarbage_collect): Call them.
28711 (mark_object): Mark buried_buffer_list.
28712
28713 * prefix-args.c: Include stdlib.h for exit.
28714
28715 * syssignal.h: Add comment.
28716
28717 * indent.c: Include stdio.h.
28718
28719 * window.h (Vinitial_window_system): Declare.
28720 (Vwindow_system): Delete declaration.
28721
28722 * fontset.c (Finternal_char_font): Use FRAME_RIF.
28723
28724 * image.c (lookup_image): Don't initialize `c' until the xasserts
28725 have been run.
28726
28727 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
28728 FRAME_FOREGROUND_PIXEL.
28729
28730 * print.c (print_preprocess): Don't lose print_depth levels while
28731 iterating.
28732
28733 * widget.c (update_from_various_frame_slots):
28734 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
28735
28736 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
28737 frames.
28738 (window_internal_height): Remove bogus make_number call.
28739 (init_window_once): Call make_terminal_frame with two zero parameters.
28740
28741 * fileio.c (Fread_file_name): Update comment.
28742
28743 * callint.c (Fcall_interactively):
28744 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
28745 Make sure it is correctly unwound.
28746
28747 * xsmfns.c (x_session_close): New function.
28748
28749 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
28750 Delete declarations.
28751
28752 * xterm.h: Remove declaration for x_fully_uncatch_errors.
28753 (x_output): Remove background_pixel and foreground_pixel fields.
28754 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
28755 (x_delete_device, x_session_close): Declare.
28756
28757 * lread.c: Include setjmp.h. Update declaration of `read_char'.
28758 (read_filtered_event): Call `read_char' with a local
28759 `wrong_kboard_jmpbuf'.
28760
28761 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
28762 Don't call single_kboard_state. Use FRAME_RIF.
28763
28764 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
28765 systems.
28766
28767 * lisp.h (set_process_environment): Rename to `set_global_environment'.
28768 (Fframe_with_environment, Fset_input_meta_mode)
28769 (Fset_quit_char): EXFUN.
28770 (x_create_device, tty_output, terminal, tty_display_info): Declare.
28771 (init_sys_modes, reset_sys_modes): Update prototypes.
28772 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
28773
28774 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
28775 Vlocal_key_translation_map, and Vkeyboard_translate_table.
28776 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
28777 Delete declarations.
28778 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
28779 (temporarily_switch_to_single_kboard, tty_read_avail_input):
28780 New declarations.
28781
28782 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
28783 already does that during init_display(). Call syms_of_keymap
28784 before syms_of_keyboard. Call `syms_of_terminal'.
28785 Call set_initial_environment, not set_process_environment.
28786 (shut_down_emacs): Call reset_all_sys_modes() instead of
28787 reset_sys_modes().
28788
28789 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
28790 (internal_resolve_face_name, resolve_face_name_error): New functions.
28791 (resolve_face_name): Protect against loops and errors thrown by Fget.
28792 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
28793 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
28794
28795 * scroll.c: Replace CURTTY() with local variables throughout the
28796 file (where applicable).
28797 (calculate_scrolling, calculate_direct_scrolling)
28798 (scrolling_1, scroll_cost): Use the accessor macros for terminal
28799 characteristics.
28800
28801 * keymap.c (Vfunction_key_map): Remove.
28802 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
28803 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
28804 (Vkey_translation_map): Remove.
28805 (syms_of_keymap): Remove DEFVAR for key-translation-map.
28806 (Fdescribe_buffer_bindings)
28807 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
28808 Update for terminal-local key-translation-map.
28809
28810 * Makefile.in (callproc.o): Update dependencies.
28811 (lisp, shortlisp): Add termdev.elc.
28812 (obj): Add terminal.o.
28813 (terminal.o): Add dependencies.
28814 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
28815 (data.o, fns.o): Add termhooks.h dependency.
28816 (SOME_MACHINE_LISP): Add dnd.elc.
28817 (minibuf.o): Fix typo.
28818 Update dependencies.
28819
28820 * data.c (do_symval_forwarding, store_symval_forwarding)
28821 (find_symbol_value): Use the selected frame's keyboard, not
28822 current_kboard.
28823
28824 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
28825 Vwindow_system.
28826
28827 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
28828 Fmenu_bar_open.
28829 (syms_of_xmenu): Update defsubr.
28830 (mouse_position_for_popup, Fx_popup_menu)
28831 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
28832 (set_frame_menubar, free_frame_menubar)
b97439ce 28833 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
28834 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
28835 an X frame.
28836
28837 * xselect.c (x_own_selection): Abort if not an X frame.
28838 (some_frame_on_display): Check if it is an X frame.
28839 (x_handle_selection_clear): Deal with MULTI_KBOARD.
28840
28841 * coding.c: Include frame.h and termhooks.h.
28842 (terminal_coding, keyboard_coding): Delete.
28843 (Fset_terminal_coding_system_internal)
28844 (Fset_keyboard_coding_system_internal)
28845 (Fkeyboard_coding_system)
28846 (Fterminal_coding_system): Add a terminal parameter.
28847 Get terminal_coding from the terminal.
28848 (init_coding_once): Don't call setup_coding_system here.
28849
28850 * dispextern.h (set_scroll_region, turn_off_insert)
28851 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
28852 (tty_clear_end_of_line, tty_setup_colors)
28853 (delete_tty, updating_frame)
28854 (produce_special_glyphs, produce_glyphs, write_glyphs)
28855 (insert_glyphs): Remove.
28856 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
28857 (tty_turn_off_highlight, get_tty_size): Add declaration.
28858 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
28859
28860 * frame.h (enum output_method): Add output_initial.
28861 (struct x_output): Delete.
28862 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
28863 Access foreground_pixel and background_pixel directly from the frame.
28864 (tty_display): Delete.
28865 (struct frame): Add buried_buffer_list, foreground_pixel,
28866 background_pixel and terminal. Delete kboard.
28867 (union output_data): Add tty.
28868 (FRAME_KBOARD): Get the kboard from the terminal.
28869 (FRAME_INITIAL_P): New macro.
28870 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
28871 (Qterm_environment_variable, Qdisplay_environment_variable)
28872 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
28873 New declarations.
28874
28875 * termchar.h (tty_output, tty_display_info): New structures.
28876 (tty_list): Declare.
28877 (FRAME_TTY, CURTTY): New macros.
28878 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
28879 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
28880 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
28881 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
28882
28883 * callproc.c: Include frame.h and termhooks.h, for terminal
28884 parameters.
28885 (add_env): New function.
28886 (child_setup): Use it.
28887 (child_setup, getenv_internal): Handle the new Vprocess_environment.
28888 (getenv_internal): Fix get_terminal_param call.
28889 (Fgetenv_internal, egetenv): Update doc.
28890 (syms_of_callproc): Initialize Vprocess_environment to nil.
28891 Register and initialize them. Remove obsolete defvars. Update doc
28892 strings.
28893 (child_setup): Handle Vlocal_environment_variables.
28894 (getenv_internal): Add terminal parameter.
28895 Handle Vlocal_environment_variables.
28896 (Fgetenv_internal): Add terminal parameter.
28897 (child_setup, getenv_internal, Fgetenv_internal): Store the local
28898 environment in a frame (not terminal) parameter. Update doc strings.
28899 (set_initial_environment): Rename from set_global_environment.
28900 Store Emacs environment in initial frame parameter.
28901
28902 * xdisp.c (redisplay_internal): Update references to
28903 `previous_terminal_frame'.
28904 (display_mode_line, Fformat_mode_line): Replace calls to
28905 `push_frame_kboard' with `push_kboard'.
28906 (get_glyph_string_clip_rects): Add extra parentheses and
28907 braces to prevent compiler warnings.
28908 (calc_pixel_width_or_height): Add xassert to check that the
28909 frame is alive. Don't call `lookup_image' on a termcap frame.
28910 (message2_nolog, message3_nolog, redisplay_internal)
28911 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
28912 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
28913 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
28914 (Fx_display_pixel_width, Fx_display_pixel_height)
28915 (Fx_display_planes, Fx_display_color_cells)
28916 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
28917 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
28918 (Fx_display_backing_store, Fx_display_visual_class)
28919 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
28920 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
28921
28922 * xfns.c (x_set_foreground_color x_set_background_color)
28923 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
28924 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
28925 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
28926 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
28927 terminal that is being deleted.
28928 (Fx_create_frame): Use `store_frame_param' to set `window-system'
28929 frame parameter, and make sure it overrides any user-supplied setting.
28930 (Fx_close_connection, Fx_synchronize): Unify argument names with
28931 the rest of the DEFUNs.
28932
28933 * dispnew.c (Fsend_string_to_terminal): Update call to
28934 `get_tty_terminal'.
28935 (Fredraw_frame, Fsend_string_to_terminal)
28936 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
28937 FRAME_TERMCAP_P and FRAME_TTY.
28938 (window_change_signal): Don't believe width/height values that are
28939 impossibly small.
28940 (Vinitial_window_system): Rename from Vwindow_system.
28941 (termscript, Wcm, rif): Delete.
28942
28943 * termhooks.h (struct terminal): New struct containing the
28944 previously global text display hooks and new members NAME,
28945 DELETED and PARAM_ALIST.
28946 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
28947 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
28948 (FRAME_RIF): New macros.
28949 (get_terminal_param, get_device): New declarations.
28950 (termscript): Delete declaration.
28951
28952 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
28953 (XTflash, x_free_frame_resources, x_scroll_bar_create)
28954 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
28955 FRAME_FOREGROUND_PIXEL.
28956 (x_fully_uncatch_errors): Disable definition.
28957 (x_scroll_bar_expose): Fix reference to foreground pixel.
28958 (XTread_socket): Disable loop on all X displays.
28959 (x_delete_terminal): Don't set terminal->deleted and let
28960 delete_terminal delete the frames on the terminal.
28961 (x_delete_display): Doc update to reflect changes in
28962 delete_terminal.
28963 (x_display_info) <terminal>: Move member earlier in the struct.
28964 (deleting_tty): Remove old variable.
28965 (Fsuspend_tty): Call clear_tty_hooks.
28966 (Fresume_tty, init_tty): Call set_tty_hooks.
28967 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
28968 errors on X frames.
28969 (x_catch_errors_unwind): Abort if x_error_message is NULL.
28970 (handle_one_xevent): Initialize `f' to NULL.
28971 (x_delete_terminal, x_create_terminal): New functions.
28972 (XTset_terminal_modes, XTreset_terminal_modes)
28973 (XTread_socket, x_connection_closed, x_term_init)
28974 (x_term_init, x_delete_display): Add terminal parameter.
28975 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
28976 X connections.
28977
28978 * frame.c: Include termchar.h.
28979 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
28980 (Qwindow_system, Qenvironment, Qterm_environment_variable)
28981 (Qdisplay_environment_variable): New vars.
28982 (Fframep): Deal with output_initial.
28983 (Fframe-live-p): Doc fix.
28984 (Fwindow-system): New function.
28985 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
28986 (make_terminal_frame): Don't create frames on a terminal that is
28987 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
28988 (store_frame_param): Check for found_for_frame before calling XFRAME.
28989 (Fmake_terminal_frame): Handle NULL tty names correctly.
28990 (syms_of_frame): Enhance doc string of `default-frame-alist'.
28991 (Fdelete_frame): Remove unused variable `count'. Don't allow other
28992 frames to refer to a deleted frame in their 'environment parameter.
28993 (Fframe_with_environment): New function.
28994 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
28995 (get_future_frame_param): New function.
28996 (Fmake_terminal_frame): Use it.
28997 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
28998
28999 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
29000 * sysdep.c (reset_sys_modes): Update for renames.
29001
29002 * keyboard.c (tty_read_avail_input): New function.
29003 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
29004 (syms_of_keyboard): Defsubr them.
29005 (Fset_input_meta_mode, Fset_quit_char): New functions.
29006 (Fset_input_mode): Split to above functions.
29007 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
29008 parameter. Use it in call to `read_char'.
29009 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
29010 Set wrong_kboard_jmpbuf correctly in recursive calls.
29011 Use current_kboard to access Vkeyboard_translate_table.
29012 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
29013 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
29014 Update longjmp invocations. Remember the original current_kboard,
29015 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
29016 changes it. Comment out unnecessary calls to
29017 `record_single_kboard_state' and `any_kboard_state'.
29018 Update recursive calls.
29019 (wrong_kboard_jmpbuf): Remove global variable.
29020 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
29021 Handle deleted interrupted_kboards correctly; that is a legal
29022 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
29023 and read_char calls. Abort if interrupted_kboard died in read_char.
29024 (any_kboard_state, single_kboard_state)
29025 (push_frame_kboard): Remove function.
29026 (pop_kboard): Switch out of single_kboard mode if the kboard has
29027 been deleted. Remove unused variable. Help debugging by not
29028 changing current_kboard unnecessarily. Set current_kboard to the
29029 kboard of the selected frame when the stored kboard object has
29030 been deleted before pop_kboard.
29031 (temporarily_switch_to_single_kboard): Change first parameter to a
29032 frame pointer. Throw an error when caller wants to change kboards
29033 while in single_kboard mode. Don't push_kboard if we weren't in
29034 single kboard state. Don't pop_kboard if we popped into any
29035 kboard state.
29036 (restore_kboard_configuration): Abort if pop_kboard changed the
29037 kboard in single_kboard mode. Call pop_kboard only after setting
29038 up single_kboard mode.
29039 (Frecursive_edit): Switch to single_kboard mode only in nested
29040 command loops.
29041 (cmd_error, command_loop, command_loop_1, timer_check):
29042 Comment out unnecessary call to `any_kboard_state' and
29043 `record_single_kboard_state'.
29044 (delete_kboard): Exit single_kboard mode if we have just deleted
29045 that kboard. Use FRAME_KBOARD.
29046 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
29047 `fatal_error_signal'.
29048 (record_single_kboard_state): Don't push_kboard if we weren't in
29049 single kboard state. Don't pop_kboard if we popped into any
29050 kboard state.
29051 (push_frame_kboard): Rename to push_kboard.
29052 (kbd_buffer_get_event): Use FRAME_TERMINAL.
29053 (read_avail_input): Read input from all terminals.
29054 (mark_kboards): Also mark Vkeyboard_translate_table.
29055 (kbd_buffer_store_event_hold): Simplify condition.
29056 (read_key_sequence): Reinitialize fkey and keytran at each replay.
29057 (Vkeyboard_translate_table): Move to struct kboard.
29058 (init_kboard): Initialize Vkeyboard_translate_table.
29059 (syms_of_keyboard): Use DEFVAR_KBOARD to define
29060 Vkeyboard_translate_table. Update doc strings. Update docs of
29061 local-function-key-map and function-key-map.
29062
29063 * terminal.c: New file.
29064
29065 * term.c: Include errno.h.
29066 (Vring_bell_function, device_list, initial_device)
29067 (next_device_id, ring_bell, update_begin, update_end)
29068 (set_terminal_window, cursor_to, raw_cursor_to)
29069 (clear_to_end, clear_frame, clear_end_of_line)
29070 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
29071 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
29072 (syms_of_term): Move their initialization to terminal.c.
29073 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
29074 (Ftty_display_color_cells)
29075 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
29076 (clear_tty_hooks, set_tty_hooks)
29077 (init_tty, maybe_fatal): New functions.
29078 (Ftty_type): Return nil if terminal is not on a tty instead of
29079 throwing an error. Doc update.
29080 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
29081 Doc update. Initialize new subrs and variables.
29082 (delete_tty): Use terminal->deleted.
29083 (tty_set_terminal_modes): Rename from set_terminal_modes.
29084 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
29085 (set_scroll_region): Rename to `tty_set_scroll_region'.
29086 (turn_on_insert): Rename to `tty_turn_on_insert'.
29087 (turn_off_insert): Rename to `tty_turn_off_insert'.
29088 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
29089 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
29090 (toggle_highligh): Rename to `tty_toggle_highlight'.
29091 (background_highlight): Rename to `tty_background_highlight'.
29092 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
29093 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
29094 (tty_set_scroll_region, tty_background_highlight)
29095 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
29096 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
29097 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
29098 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
29099 Add static modifier.
29100 (tty_reset_terminal_modes, tty_set_terminal_window)
29101 (tty_set_scroll_region, tty_background_highlight)
29102 (tty_highlight_if_desired, tty_cursor_to)
29103 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
29104 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
29105 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
29106 renames.
29107
291082007-08-28 Jan Djärv <jan.h.d@swipnet.se>
29109
29110 * keyboard.c: Qrtl is new.
29111 (parse_tool_bar_item): Handle :rtl keyword.
29112 (syms_of_keyboard): Intern :rtl keyword.
29113
29114 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
29115
29116 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
29117 so no Lisp code is executed.
29118 (file_for_image, find_rtl_image): New functions.
29119 (xg_get_image_for_pixmap): Use file_for_image.
29120 (update_frame_tool_bar): If direction is RTL, use RTL image if
29121 defined. Use Gtk stock images if defined.
29122
291232007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29124
29125 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
29126 for nonexistent or zero-width glyph in composition glyph.
29127
291282007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
29129
29130 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
29131
29132 * xdisp.c (Finvisible_p): New function.
29133 (syms_of_xdisp): defsubr it.
29134
291352007-08-24 Juanma Barranquero <lekktu@gmail.com>
29136
29137 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
29138 Doc fixes.
29139
291402007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29141
29142 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
29143
291442007-08-24 Martin Rudalics <rudalics@gmx.at>
29145
29146 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
29147 whether decoding has modified buffer contents.
29148
291492007-08-24 Jason Rumney <jasonr@gnu.org>
29150
29151 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
29152 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
29153 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
29154 (init_svg_functions) [HAVE_NTGUI]: New function.
29155 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
29156 (svg_load_image): Use them.
29157 (svg_load_image) [HAVE_NTGUI]: Implement background.
29158
291592007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29160
29161 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
29162 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
29163 (LIBX): Remove @RSVG_LIBS@.
29164 (LIBES): Add $(RSVG_LIBS).
29165
29166 * image.c (svg_load_image): Blend with specified background if exists.
29167 Use IMAGE_BACKGROUND. Add Mac OS Support.
29168
29169 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
29170 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
29171 Remove macros.
29172 [MAC_OSX] (socket_callback): Do nothing.
29173 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
29174 ReceiveNextEvent.
29175 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
29176 socket_callback.
29177 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
29178
291792007-08-22 Glenn Morris <rgm@gnu.org>
29180
29181 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
29182
291832007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
29184
29185 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
29186
29187 * image.c: Add support for SVG images. Some additional comments
29188 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
29189 (svg_image_p): New function to test for SVG image.
29190 (svg_load): New function to load SVG image.
29191 (svg_load_image): New function, helper for svg_load.
29192 (Qsvg): New Lisp_object.
29193 (svg_keyword_index): New enum.
29194 (svg_format): New static `image_keyword' struct.
29195 (svg_type): New static `image_type' struct.
29196 (librsvg/rsvg.h): Include it.
29197
291982007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
29199
29200 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
29201
292022007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
29203
29204 * lread.c (Qold_style_backquotes): New var.
29205 (syms_of_lread): Init and staticpro it.
29206 (load_warn_old_style_backquotes): New fun.
29207 (Fload): Use them to warn about old style backquotes.
29208 (end_of_file_error, Fload): Remove unused vars.
29209
29210 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
29211
29212 * lread.c (Vold_style_backquotes): New var.
29213 (syms_of_lread): Init and export it to Elisp.
29214 (read1): Set it when we find an old-style (back)quote.
29215
292162007-08-22 Jason Rumney <jasonr@gnu.org>
29217
29218 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
29219
292202007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
29221
29222 * puresize.h (BASE_PURESIZE): Increase to 1140000.
29223
292242007-08-19 Richard Stallman <rms@gnu.org>
29225
29226 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
29227
292282007-08-19 Andreas Schwab <schwab@suse.de>
29229
29230 * alloc.c (pure): Round PURESIZE up.
29231
292322007-08-17 Jan Djärv <jan.h.d@swipnet.se>
29233
29234 * xterm.c (handle_one_xevent): Remove check that mouse click is in
29235 active frame.
29236
292372007-08-16 Richard Stallman <rms@gnu.org>
29238
29239 * eval.c (Fcommandp): Add parens to clarify.
29240
29241 * minibuf.c (Fall_completions): Use enum for type of table.
29242
29243 * emacs.c (USAGE2): Improve text.
29244
292452007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
29246
29247 * term.c (tty_default_color_capabilities): Declare static
29248 variables in file scope, to avoid HPUX compiler problem.
29249
292502007-08-13 Jan Djärv <jan.h.d@swipnet.se>
29251
29252 * gtkutil.c (update_frame_tool_bar): Use -1 as index
29253 to gtk_toolbar_insert.
29254
292552007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
29256
29257 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
29258
29259 * insdel.c (reset_var_on_error): New fun.
29260 (signal_before_change, signal_after_change):
29261 Use it to reset (after|before)-change-functions to nil in case of error.
29262 Bind inhibit-modification-hooks to t.
29263 Don't bind (after|before)-change-functions to nil while they run.
29264
292652007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29266
29267 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
29268 filling pixmap with stippled background.
29269
292702007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29271
29272 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
29273 Don't use invisible frame as parent window for repositioning.
29274
292752007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
29276
29277 * print.c (new_backquote_output): Rename from old_backquote_output.
29278 (print): Inverse its logic (according to its name) so as to match the
29279 behavior of new_backquote_flag in lread.c.
29280
292812007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29282
29283 * gmalloc.c (posix_memalign): New function.
29284
29285 * macterm.c (frame_highlight, frame_unhighlight): Don't call
29286 ActivateControl/DeactivateControl here.
29287 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
29288 frame-notice-user-settings is non-nil.
29289 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
29290 for kEventParamFMFontStyle.
29291 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
29292 mac_pass_command_to_system and mac_pass_control_to_system here.
29293 (XTread_socket): Call ActivateControl/DeactivateControl here.
29294 (XTread_socket) [TARGET_API_MAC_CARBON]:
29295 Check mac_pass_command_to_system and mac_pass_control_to_system here.
29296 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
29297 for window repositioning.
29298
292992007-08-08 Glenn Morris <rgm@gnu.org>
29300
29301 * Replace `iff' in doc-strings and comments.
29302
293032007-08-07 Chong Yidong <cyd@stupidchicken.com>
29304
29305 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
29306
293072007-08-07 Martin Rudalics <rudalics@gmx.at>
29308
29309 * fileio.c (Finsert_file_contents): Run format-decode and
29310 after_insert_file_functions on entire buffer when REPLACE is
29311 non-nil and inhibit modification_hooks and point_motion_hooks.
29312 For consistency, run after_insert_file_functions iff something
29313 got inserted. Move signal_after_change and update_compositions
29314 after code running after_insert_file_functions. Make sure that
29315 undo_list doesn't record intermediate steps of the decoding process.
29316
293172007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29318
29319 * emacs.c (main)
29320 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
29321 Call malloc_enable_thread on interactive startup.
29322
29323 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
29324 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
29325 [USE_PTHREAD]: Conditionalize with it.
29326 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
29327 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
29328 New functions.
29329
293302007-08-06 Chong Yidong <cyd@stupidchicken.com>
29331
29332 * xdisp.c (redisplay_window): When restoring original buffer
29333 position, make sure it is still valid.
29334
29335 * image.c (png_load): Ignore png-supplied background color.
29336
293372007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29338
29339 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
29340 Use kCFAbsoluteTimeIntervalSince1970.
29341
29342 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
29343 New variable.
29344 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
29345 event loop should be quit.
29346 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
29347 Quit dialog event loop if quit_dialog_event_loop is set.
29348
29349 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
29350 (Selection): New typedef. Use instead of ScrapRef.
29351 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
29352 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
29353 (mac_clear_selection): Rename from clear_scrap.
29354 (get_flavor_type_from_symbol): New argument SEL and subsume function of
29355 scrap_has_target_type. All uses changed.
29356 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
29357 (mac_selection_has_target_p): New functions.
29358 (mac_put_selection_value): Rename from put_scrap_string.
29359 (mac_get_selection_value): Rename from get_scrap_string.
29360 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
29361 (put_scrap_private_timestamp, scrap_has_target_type)
29362 (get_scrap_private_timestamp): Remove functions.
29363 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
29364 (x_own_selection, x_get_local_selection):
29365 Use mac_valid_selection_value_p.
29366 (x_own_selection): Don't use put_scrap_private_timestamp.
29367 Record OWNERSHIP-INFO into Vselection_alist instead.
29368 (x_get_local_selection): Don't check type if request is local.
29369 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
29370 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
29371
293722007-08-04 Jan Djärv <jan.h.d@swipnet.se>
29373
29374 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
29375 add comment explaining why.
29376
293772007-08-03 Richard Stallman <rms@gnu.org>
29378
29379 * fileio.c (Fvisited_file_modtime): Use make_time.
29380
293812007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
29382
29383 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
29384 build.
29385
293862007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
29387
29388 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
29389
293902007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
29391
29392 * puresize.h (BASE_PURESIZE): Increase to 1130000.
29393
293942007-07-30 Richard Stallman <rms@gnu.org>
29395
29396 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
29397
293982007-07-29 Jan Djärv <jan.h.d@swipnet.se>
29399
29400 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
29401
294022007-07-28 Nick Roberts <nickrob@snap.net.nz>
29403
29404 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
29405 remote default-directory.
29406
29407 * buffer.c (mode-line-format): Update doc string.
29408
294092007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29410
29411 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
29412 scroll bar gap.
29413 (x_scroll_bar_create): Set bar->fringe_extended_p.
29414 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
29415 on frame edge. Check fringe background extension. Don't clear
29416 extended fringe background area.
29417
29418 * w32term.h (struct scroll_bar): New member fringe_extended_p.
29419 (w32_fill_area): Enclose multiple statements with do ... while (0).
29420
29421 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
29422 Extend fringe background to scroll bar gap.
29423 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
29424 Set bar->fringe_extended_p.
29425 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
29426 Put leftmost/rightmost scroll bars on frame edge. Check fringe
29427 background extension. Don't clear extended fringe background area.
29428
29429 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
29430 New member fringe_extended_p.
29431
294322007-07-25 Glenn Morris <rgm@gnu.org>
29433
29434 * Relicense all FSF files to GPLv3 or later.
29435
29436 * COPYING: Switch to GPLv3.
29437
294382007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
29439
29440 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
29441
29442 * data.c (Finteractive_form): Check for the presence of an
29443 `interactive-form' symbol property more thoroughly.
29444
29445 * data.c (Finteractive_form): Use an `interactive-form' property if
29446 present, analogous to the function-documentation property.
29447
294482007-07-24 Jason Rumney <jasonr@gnu.org>
29449
29450 * w32fns.c (x_real_positions): Get real position from OS instead of
29451 calculating it.
29452
294532007-07-23 Jason Rumney <jasonr@gnu.org>
29454
29455 * filelock.c (current_lock_owner): Allow for @ sign in username.
29456
294572007-07-22 Nick Roberts <nickrob@snap.net.nz>
29458
29459 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
29460 remote default-directory.
29461
29462 * buffer.c (mode-line-format): Describe above case in doc string.
29463
294642007-07-20 Eli Zaretskii <eliz@gnu.org>
29465
29466 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
29467 Define if not defined.
29468
294692007-07-18 Jason Rumney <jasonr@gnu.org>
29470
29471 * w32proc.c (w32_executable_type): Handle 64 bit executables.
29472
294732007-07-18 Richard Stallman <rms@gnu.org>
29474
29475 * data.c (Fsetq_default): Doc fix.
29476
29477 * eval.c (Fsetq): Doc fix.
29478
294792007-07-18 Juanma Barranquero <lekktu@gmail.com>
29480
29481 * coding.c (Ffind_operation_coding_system):
29482 * eval.c (For, Fand): Doc fixes.
29483 Reported by Johan Bockgård.
29484
294852007-07-18 Jan Djärv <jan.h.d@swipnet.se>
29486
29487 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
29488
29489 * xterm.h: Declare x_ewmh_activate_frame.
29490
29491 * xterm.c (x_ewmh_activate_frame): New function.
29492 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
29493
294942007-07-17 Martin Rudalics <rudalics@gmx.at>
29495
29496 * window.c (Fdisplay_buffer): If largest or LRU window is the
29497 only window, split it even if it is not eligible for splitting.
29498 This restores the original behavior broken by the 2007-07-15
29499 change.
29500
295012007-07-17 Glenn Morris <rgm@gnu.org>
29502
29503 * abbrev.c (abbrev_check_chars): New function.
29504 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
29505 Call abbrev_check_chars to check abbrev characters are word
29506 constituents. Doc fix.
29507
295082007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
29509
29510 * process.c (Fstart_process, Fmake_network_process)
29511 (read_process_output): Fix up last changes.
29512
295132007-07-16 Eli Zaretskii <eliz@gnu.org>
29514
29515 * makefile.w32-in (clean): Don't delete *~.
29516
295172007-07-16 Andreas Schwab <schwab@suse.de>
29518
29519 * window.c (Fdisplay_buffer): Use NILP.
29520 (Fset_window_scroll_bars): Likewise.
29521
295222007-07-15 Martin Rudalics <rudalics@gmx.at>
29523
29524 * window.c (window_min_size_2): New function.
29525 (window_min_size_1, size_window, Fdisplay_buffer)
29526 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
29527 windows without mode- or header-lines when window-min-height is
29528 too small.
29529 (size_window): Reset nodelete_p after testing it, following an
29530 earlier note by Kim F. Storm.
29531 (display_buffer): Do not set split_height_threshold to twice the
29532 value of window_min_height to avoid changing the value of a
29533 customizable variable. Rather explicitly check whether the
29534 height of the window that shall be splitted is at least as large
29535 as split_height_threshold.
29536 (Fwindow_full_width_p): New defun.
29537 (syms_of_window): Defsubr it.
29538
29539 * window.h: Add EXFUN for Fwindow_full_width_p.
29540
295412007-07-14 Jason Rumney <jasonr@gnu.org>
29542
29543 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
29544
295452007-07-14 Richard Stallman <rms@gnu.org>
29546
29547 * eval.c (maybe_call_debugger): New function.
29548 (find_handler_clause): Use maybe_call_debugger.
29549 Call it when the handler says `debug'.
29550 Eliminate DEBUGGER_VALUE_PTR.
29551 (Fsignal): Eliminate debugger_value.
29552 (Qdebug): New variable.
29553 (syms_of_eval): Initialize it.
29554
295552007-07-14 Juanma Barranquero <lekktu@gmail.com>
29556
29557 * eval.c (Fprogn):
29558 * keyboard.c (Ftrack_mouse):
29559 * print.c (Fwith_output_to_temp_buffer):
29560 * window.c (Fsave_window_excursion): Doc fix.
29561
295622007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
29563
29564 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
29565
295662007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
29567
29568 * process.h (struct Lisp_Process): Turn slots infd, outfd,
29569 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
29570 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
29571 read_output_delay, and read_output_skip from Lisp_Objects to ints.
29572 Remove unused encoding_carryover.
29573 * process.c: Adjust all functions accordingly.
29574
295752007-07-12 Richard Stallman <rms@gnu.org>
29576
29577 * term.c: Include unistd.h only if HAVE_UNISTD_H.
29578
295792007-07-11 Jason Rumney <jasonr@gnu.org>
29580
29581 * makefile.w32-in (LIBS): Include OLE32.
29582
29583 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
29584 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
29585
295862007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
29587
29588 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
29589 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
29590 from a Lisp_Object into a bare pointer.
29591 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
29592 Adjust the code correspondingly.
29593
29594 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
29595
29596 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
29597 (term_show_mouse_face): Remove unused var `j'.
29598 (handle_one_term_event): Remove unused vars `i' and `j'.
29599 Don't cast return value of ttyname since it's not necessary.
29600
296012007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
29602
29603 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
29604 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
29605
29606 * fns.c (map_char_table): Use an array of int for `indices' rather than
29607 an array of Lisp_Objects (which are only ever integers anyway).
29608 (Fmap_char_table): Update caller.
29609 * lisp.h: Update prototype.
29610 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
29611 * fontset.c (Ffontset_info):
29612 * casetab.c (set_case_table): Update callers.
29613
29614 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
29615
29616 * keymap.c (struct accessible_keymaps_data)
29617 (struct where_is_internal_data): New structures.
29618 (accessible_keymaps_1, where_is_internal_1): Use them to change
29619 interface to adhere to the one used by map_keymap.
29620 (Faccessible_keymaps, where_is_internal): Use map_keymap.
29621 (accessible_keymaps_char_table, where_is_internal_2): Remove.
29622
29623 * keymap.h (map_keymap_function_t): More informative prototype.
29624
296252007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
29626
29627 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
29628 (looking_at_1): Don't change search_regs and last_thing_searched
29629 if `inhibit-changing-match-data' is non-nil.
29630 (string_match_1, search_buffer, set_search_regs): Likewise.
29631 (syms_of_search): Add Lisp level definition for
29632 `inhibit-changing-match-data' and set it to nil.
29633 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
29634 start and end of the match, instead of using values in search_regs.
29635
296362007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
29637
29638 * minibuf.c (Fcompleting_read): New value `confirm-only'
29639 for `require-match'.
29640
296412007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
29642
29643 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
29644 part of the 2007-06-27 change to syms_of_fileio.
29645
296462007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29647
29648 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
29649 Check WINDOWP before using XWINDOW. Consolidate return statements.
29650
296512007-06-27 Richard Stallman <rms@gnu.org>
29652
29653 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
29654
296552007-06-27 Juanma Barranquero <lekktu@gmail.com>
29656
29657 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
29658
296592007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29660
29661 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
29662 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
29663 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
29664 (_free_internal, memalign): Use them.
29665 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
29666 Initialize to PTHREAD_MUTEX_INITIALIZER.
29667 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
29668 (morecore_nolock): Rename from morecore. All uses changed.
29669 Use only nolock versions of internal allocation functions.
29670 (_malloc_internal_nolock, _realloc_internal_nolock)
29671 (_free_internal_nolock): New functions created from
29672 _malloc_internal, _realloc_internal, and _free_internal.
29673 (_malloc_internal, _realloc_internal, _free_internal): Use them.
29674 Copy hook value to automatic variable before its use.
29675 (memalign): Copy hook value to automatic variable before its use.
29676
296772007-06-26 Kenichi Handa <handa@m17n.org>
29678
29679 * coding.c (Ffind_operation_coding_system): Docstring improved.
29680 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
29681
296822007-06-25 David Kastrup <dak@gnu.org>
29683
29684 * keymap.c (Fcurrent_active_maps): Add `position' argument.
29685 (Fwhere_is_internal): Adjust call to `current-active-maps' to
29686 cater for additional parameter.
29687
29688 * keymap.h: Adjust number of parameters to `current-active-maps'.
29689
29690 * doc.c (Fsubstitute_command_keys): Adjust call of
29691 `current-active-maps'.
29692
296932007-06-25 David Kastrup <dak@gnu.org>
29694
29695 * callint.c (Fcall_interactively): Make the parsing of interactive
29696 specs somewhat more readable.
29697
296982007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29699
29700 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
29701 to scroll bar gap also when bitmap fills fringe. Draw only foreground
29702 if extended background has already been filled.
29703
297042007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29705
29706 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
29707 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
29708
29709 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
29710 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
29711 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
29712 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
29713 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
29714 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
29715 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
29716 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
29717 Run timers during dialog popup.
29718 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
29719
297202007-06-21 Jason Rumney <jasonr@gnu.org>
29721
29722 * image.c (convert_mono_to_color_image): Swap fore and background.
29723
297242007-06-20 Jason Rumney <jasonr@gnu.org>
29725
29726 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
29727 (w32_free_bdf_font): Unmap memory not handle.
29728
297292007-06-20 Sam Steingold <sds@gnu.org>
29730
29731 * gmalloc.c (__morecore): Fix the declaration to comply with the
29732 definition.
29733
297342007-06-20 Juanma Barranquero <lekktu@gmail.com>
29735
29736 * w32term.c (w32_delete_display): Remove leftover declaration.
29737 (w32_define_cursor, w32_initialize): Make static.
29738
29739 * w32.c (_wsa_errlist): Fix typo in error message.
29740 (init_environment): Ignore any environment variable from the
29741 registry having a null value.
29742
297432007-06-20 Glenn Morris <rgm@gnu.org>
29744
29745 * Makefile.in (LIBGIF): Default to -lgif.
29746
297472007-06-17 Jason Rumney <jasonr@gnu.org>
29748
29749 * w32menu.c (add_menu_item): Don't use multibyte string functions on
29750 unicode strings.
29751
297522007-06-16 Juanma Barranquero <lekktu@gmail.com>
29753
29754 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
29755 Fix typo in docstring.
29756
297572007-06-16 Eli Zaretskii <eliz@gnu.org>
29758
29759 * w32menu.c (add_menu_item): Escape `&' characters in menu items
29760 and their keybindings.
29761
297622007-06-15 Chong Yidong <cyd@stupidchicken.com>
29763
29764 * composite.c (update_compositions): Fix last fix.
29765
297662007-06-14 Jason Rumney <jasonr@gnu.org>
29767
29768 * w32.c (get_process_times_fn): New function pointer.
29769 (globals_of_w32): Intialize it if present in kernel32.dll.
29770 (w32_get_internal_run_time): New function.
29771
29772 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
29773
297742007-06-14 Kenichi Handa <handa@etlken.m17n.org>
29775
29776 * composite.c (update_compositions): Check the validness of
29777 compositions.
29778
297792007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29780
29781 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
29782 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
29783
29784 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
29785 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
29786
29787 * macgui.h (USE_MAC_TOOLBAR): New define.
29788
29789 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
29790 Return immediately unless popup is activated.
29791
29792 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
29793 background to scroll bar gap.
29794 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
29795 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
29796 scroll bars on frame edge. Check fringe background extension.
29797 Don't clear extended fringe background area.
29798 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
29799 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
29800 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
29801 [USE_MAC_TOOLBAR]: New macros.
29802 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
29803 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
29804 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
29805 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
29806 [USE_MAC_TOOLBAR]: New functions.
29807 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
29808 manually if previous repositioning has failed.
29809 (mac_handle_keyboard_event): Use precomputed event kind.
29810 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
29811 as tool bar item click. Handle mouse movement over tool bar items.
29812
29813 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
29814 toolbar_win_gravity.
29815 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
29816 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
29817 Add externs.
29818
29819 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
29820 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
29821
298222007-06-14 Chong Yidong <cyd@stupidchicken.com>
29823
29824 * image.c (search_image_cache): Remove unused variable.
29825
298262007-06-13 Chong Yidong <cyd@stupidchicken.com>
29827
29828 * xfns.c, xmenu.c: Link to xaw3d if available.
29829
298302007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29831
29832 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
29833 frame_foreground and frame_background.
29834
29835 * image.c (lookup_image): Save frame foreground and background colors.
29836 (search_image_cache): Check if saved and current frame colors match.
29837
298382007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
29839
29840 * regex.c (regex_compile): Remove the `regnum' counter.
29841 Use bufp->re_nsub instead. Add support for \(?N:RE\).
29842
298432007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
29844
29845 * term.c: Include intervals.h to declare Fget_text_property.
29846
298472007-06-10 Jason Rumney <jasonr@gnu.org>
29848
29849 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
29850
298512007-06-08 Juanma Barranquero <lekktu@gmail.com>
29852
29853 * callint.c (Fcall_interactively):
29854 * editfns.c (Fdelete_and_extract_region):
29855 * fileio.c (Fread_file_name):
29856 * fns.c (Fmapconcat):
29857 * keyboard.c (cmd_error_internal):
29858 * keymap.c (Fkey_description):
29859 * lread.c (openp):
29860 * minibuf.c (read_minibuf):
29861 * search.c (wordify):
29862 * sunfns.c (sel_read):
29863 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
29864 * xfns.c (x_default_scroll_bar_color_parameter):
29865 * xmenu.c (menu_help_callback):
29866 * xselect.c (Fx_get_atom_name):
29867 * xterm.c (x_term_init): Use empty_unibyte_string.
29868
298692007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
29870
29871 * alloc.c (init_strings): Initialize canonical empty strings.
29872 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
29873 canonical empty string when the requested size is 0.
29874
29875 * emacs.c (empty_unibyte_string): Rename from empty_string.
29876 (empty_multibyte_string): New canonical empty string.
29877 (syms_of_emacs): Don't initialize empty_string.
29878
29879 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
29880 string, if appropriate.
29881 (empty_unibyte_string, empty_multibyte_string): New externs.
29882 (empty_string): Remove extern.
29883
29884 * lread.c (syms_of_lread): Use empty_unibyte_string.
29885
298862007-06-07 Jason Rumney <jasonr@gnu.org>
29887
29888 * s/ms-w32.h: Don't define HAVE_TZNAME.
29889
29890 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
29891
298922007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29893
29894 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
29895
29896 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
29897 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
29898
29899 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
29900 Don't call next handler.
29901 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
29902 Remove argument. Install handler to application.
29903 (set_frame_menubar): Don't change deep_p.
29904 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
29905 FRAME_OUTER_TO_INNER_DIFF_Y.
29906 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
29907 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
29908 [HAVE_DIALOGS]: New macros.
29909 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
29910 Use them.
29911 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
29912
29913 * macselect.c [MAC_OSX] (install_service_handler): Rename from
29914 init_service_handler. All callers changed. Return OSStatus value.
29915
29916 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
29917 All callers changed so as not to call SetPortWindowPort.
29918 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
29919 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
29920 mac_draw_string_common.
29921 (mac_draw_image_string_qd): Likewise.
29922 (mac_draw_string_common): Use them. Add INLINE.
29923 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
29924 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
29925 GetGlobalMouse.
29926 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
29927 and FRAME_OUTER_TO_INNER_DIFF_Y.
29928 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
29929 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
29930 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
29931 repositioning window to mac_handle_window_event.
29932 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
29933 saving window location to mac_handle_window_event
29934 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
29935 (install_menu_target_item_handler): Remove argument in extern.
29936 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
29937 Also accept command events.
29938 (do_keystroke): New function created from XTread_socket.
29939 (init_command_handler): Remove functions.
29940 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
29941 and save window location by kEventWindowShowing and kEventWindowHiding
29942 handlers here. Don't call next handler for window state change and
29943 focus events.
29944 (mac_handle_application_event, mac_handle_keyboard_event)
29945 [TARGET_API_MAC_CARBON]: New functions.
29946 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
29947 kEventWindowShowing and kEventWindowHiding events. Move installation
29948 of mouse, font, text input and menu target item handlers to
29949 install_application_handler.
29950 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
29951 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
29952 New function.
29953 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
29954 Register it.
29955 (XTread_socket) [TARGET_API_MAC_CARBON]:
29956 Consolidate SendEventToEventTarget calls.
29957 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
29958 Move application activation handler to mac_handle_application_event.
29959 Move keyboard handler to mac_handle_keyboard_event.
29960 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
29961 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
29962 init_command_handler. Call install_application_handler.
29963
29964 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
29965 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
29966
299672007-06-07 Glenn Morris <rgm@gnu.org>
29968
29969 * emacs.c (main): Use `emacs-copyright' in --version output.
29970
299712007-06-06 Chong Yidong <cyd@stupidchicken.com>
29972
29973 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
29974
299752007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29976
29977 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
29978
29979 * macgui.h: Replace WindowPtr with WindowRef.
29980
29981 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
29982 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
29983 Replace ControlHandle with ControlRef.
29984 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
29985
29986 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
29987 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
29988 Replace ControlHandle with ControlRef.
29989 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
29990 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
29991
29992 * macterm.h (struct scroll_bar): Rename member control_handle_low
29993 and control_handle_high to control_ref_low and control_ref_high.
29994 All uses changed.
29995 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
29996 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
29997 respectively. All uses changed.
29998 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
29999 (install_window_handler, remove_window_handler): Replace WindowPtr
30000 with WindowRef in externs.
30001
300022007-06-05 Juanma Barranquero <lekktu@gmail.com>
30003
30004 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
30005
300062007-06-03 Nick Roberts <nickrob@snap.net.nz>
30007
30008 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
30009
30010 * frame.c (Fmouse_position, Fmouse_pixel_position):
30011 Condition on HAVE_GPM too.
30012
30013 * term.c (term_mouse_highlight): Remove unused variables.
30014 (Fterm_open_connection): Set gpm_zerobased to 1.
30015 (term_mouse_movement, term_mouse_click, handle_one_term_event):
30016 Use zero based co-ordinates.
30017 (handle_one_term_event): Report a drag as mouse movement too.
30018
30019 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
30020
300212007-06-03 Chong Yidong <cyd@stupidchicken.com>
30022
30023 * image.c (search_image_cache): New function. Require background
30024 color match if background color is unspecified in the image spec.
30025 (uncache_image, lookup_image): Use it.
30026
300272007-06-01 Juanma Barranquero <lekktu@gmail.com>
30028
30029 * window.c (Fshrink_window): Reflow docstring.
30030
300312007-06-02 Chong Yidong <cyd@stupidchicken.com>
30032
30033 * Version 22.1 released.
30034
300352007-06-01 Richard Stallman <rms@gnu.org>
30036
30037 * xfns.c (x_encode_text): Add GCPRO.
30038
300392007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30040
30041 * xfns.c (x_set_name_internal): Save encoded name before
30042 x_encode_text in case string data is relocated.
30043
300442007-05-31 Richard Stallman <rms@gnu.org>
30045
30046 * buffer.c (syms_of_buffer): Doc fix.
30047
300482007-05-30 Nick Roberts <nickrob@snap.net.nz>
30049
30050 * sysdep.c (init_sys_modes): Add rather than replace with
30051 O_NONBLOCK.
30052
30053 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
30054 term_mouse_moveto.
30055
30056 * termhooks.h (term_mouse_moveto): New extern.
30057
30058 * term.c (mouse_face_window): Rename...
30059 (Qmouse_face_window): ...to this.
30060 (term_show_mouse_face, term_clear_mouse_face)
30061 (term_mouse_highlight): Use Qmouse_face_window.
30062 (term_mouse_moveto): New function.
30063 (term_mouse_position): Make it work.
30064 (syms_of_term): Uncomment assignment to mouse_position_hook.
30065 Staticpro Qmouse_face_window.
30066
300672007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30068
30069 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
30070 around current_column call.
30071
300722007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
30073
30074 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
30075 * xdisp.c (next_element_from_buffer):
30076 * window.c (delete_window):
30077 * term.c (term_mouse_highlight):
30078 * msdos.c (getdefdir):
30079 * macterm.c (mac_create_bitmap_from_bitmap_data)
30080 (init_font_name_table):
30081 * fns.c (Fsxhash):
30082 * data.c (Fmake_local_variable):
30083 * ccl.c (ccl_driver): Likewise.
30084
300852007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30086
30087 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
30088 Call mac_wakeup_from_rne on window size change.
30089
300902007-05-25 Chong Yidong <cyd@stupidchicken.com>
30091
30092 * image.c (uncache_image): Fix typo.
30093
300942007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
30095
30096 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
30097
300982007-05-22 Richard Stallman <rms@gnu.org>
30099
30100 * xterm.c (x_connection_closed): Remove NO_RETURN.
30101
301022007-05-22 Martin Rudalics <rudalics@gmx.at>
30103
30104 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
30105
301062007-05-21 Chong Yidong <cyd@stupidchicken.com>
30107
30108 * image.c (uncache_image): New function.
30109 (Fimage_refresh): New function.
30110
301112007-05-20 Jan Djärv <jan.h.d@swipnet.se>
30112
30113 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
30114
301152007-05-20 Nick Roberts <nickrob@snap.net.nz>
30116
30117 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
30118 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
30119
301202007-05-20 Nick Roberts <nickrob@snap.net.nz>
30121
30122 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
30123 conditional on [HAVE_GPM_H].
30124
301252007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
30126
30127 * syntax.c (skip_chars): Update syntax-table only after we checked that
30128 the new location is valid.
30129
301302007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30131
30132 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
30133 mac_get_window_bounds.
30134
301352007-05-20 Nick Roberts <nickrob@snap.net.nz>
30136
30137 * Makefile.in (LIBGPM): Allow it to be set from configure.
30138 If set then link Emacs with it.
30139
30140 * config.in: Regenerate.
30141
30142 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
30143 New externs.
30144
30145 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
30146 Include gpm.h.
30147 (handle_one_term_event, term_gpm): New externs.
30148
30149 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
30150 and allow it to be interrupted by SIGIO.
30151
30152 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
30153 (wait_reading_process_output): Wait on gpm_fd too.
30154 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
30155 (add_gpm_wait_descriptor_called_flag): New variable.
30156 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
30157
30158 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
30159 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
30160 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
30161 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
30162 (make_lispy_event): Add case GPM_CLICK_EVENT.
30163 (read_avail_input): Handle mouse input.
30164
30165 * term.c (write_glyphs_with_face): New function.
30166 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
30167 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
30168 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
30169 (mouse_face_face_id, term_gpm, pos_x, pos_y)
30170 (last_mouse_x, last_mouse_y): New variables.
30171 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
30172 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
30173 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
30174 (Fterm_close_connection): New functions.
30175 (term_init): Initialise mouse_face_window.
30176
301772007-05-19 Chong Yidong <cyd@stupidchicken.com>
30178
30179 * xdisp.c (redisplay_window): If first window line is a
30180 continuation line, recompute the new window start instead of
30181 recentering.
30182
301832007-05-18 Glenn Morris <rgm@gnu.org>
30184
30185 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
30186 Suggested by Alfred M. Szmidt <ams@gnu.org>.
30187
301882007-05-17 Glenn Morris <rgm@gnu.org>
30189
30190 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
30191
301922007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30193
30194 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
30195 dead key repeat and up events.
30196
301972007-05-14 Chong Yidong <cyd@stupidchicken.com>
30198
30199 * image.c (pbm_load): Check image size for monochrome pbm.
30200
302012007-05-13 Chong Yidong <cyd@stupidchicken.com>
30202
30203 * xterm.c (XTread_socket): Revert last change.
30204
302052007-05-12 Chong Yidong <cyd@stupidchicken.com>
30206
30207 * image.c (pbm_load): Correctly check image size for greyscale pbm.
30208
30209 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
30210
302112007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
30212
30213 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
30214 mixup (YAILOM).
30215
302162007-05-07 Andreas Schwab <schwab@suse.de>
30217
30218 * keymap.c (Flookup_key): Fix typo in last change.
30219
302202007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
30221
30222 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
30223 mapping for unibyte strings.
30224
302252007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30226
30227 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
30228 (Fx_popup_dialog) [MAC_OSX]: Likewise.
30229
302302007-04-29 Richard Stallman <rms@gnu.org>
30231
30232 * insdel.c (replace_range): For undo, record insertion first.
30233
302342007-04-29 Andreas Schwab <schwab@suse.de>
30235
30236 * lisp.h (VECSIZE): Use OFFSETOF.
30237
302382007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30239
30240 * xdisp.c (try_window_reusing_current_matrix): Fix number of
30241 disabled lines.
30242
302432007-04-28 Richard Stallman <rms@gnu.org>
30244
30245 * lread.c (read_escape): In a string, \s is always space.
30246
302472007-04-27 Jan Djärv <jan.h.d@swipnet.se>
30248
30249 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
30250
30251 * gtkutil.c (xg_update_menubar, create_menus): Create empty
30252 submenu for menu bar items.
30253
30254See ChangeLog.10 for earlier changes.
30255
30256;; Local Variables:
30257;; coding: utf-8
aac0c6e3
MR
30258;; End:
30259
73b0cd50 30260 Copyright (C) 2007-2011 Free Software Foundation, Inc.
aac0c6e3
MR
30261
30262 This file is part of GNU Emacs.
30263
30264 GNU Emacs is free software: you can redistribute it and/or modify
30265 it under the terms of the GNU General Public License as published by
30266 the Free Software Foundation, either version 3 of the License, or
30267 (at your option) any later version.
30268
30269 GNU Emacs is distributed in the hope that it will be useful,
30270 but WITHOUT ANY WARRANTY; without even the implied warranty of
30271 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30272 GNU General Public License for more details.
30273
30274 You should have received a copy of the GNU General Public License
30275 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.