Use KVAR in MS-Windows build, remove buffer-file-type.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
05c65251
EZ
12011-02-16 Eli Zaretskii <eliz@gnu.org>
2
3 * w32fns.c (Fx_create_frame): Use KVAR.
4
5 * w32term.c (w32_create_terminal): Use KVAR.
6
7 * s/ms-w32.h (MODE_LINE_BINARY_TEXT): Remove.
8
9 * xdisp.c (decode_mode_spec): Don't use MODE_LINE_BINARY_TEXT.
10
11 * fileio.c (Finsert_file_contents, Fwrite_region): Remove
12 references to buffer_file_type.
13 (syms_of_fileio): Don't intern and staticpro
14 find-buffer-file-type.
15
16 * callproc.c (syms_of_callproc): Remove references to
17 buffer_file_type.
18
19 * buffer.c (reset_buffer_local_variables): Don't set
20 buffer_file_type.
21 (init_buffer_once): Likewise.
22 (syms_of_buffer): Don't define buffer-file-type.
23
24 * buffer.h (struct buffer): Remove buffer_file_type.
25
1344aad4
TT
262011-02-16 Tom Tromey <tromey@parfait>
27
28 * callint.c (Fcall_interactively): Update.
29 * doc.c (Fsubstitute_command_keys): Update.
30 * cmds.c (Fself_insert_command): Update.
31 * keymap.c (Fcurrent_active_maps, Fkey_binding)
32 (Fdescribe_buffer_bindings): Update.
33 * macros.c (Fstart_kbd_macro, end_kbd_macro, Fend_kbd_macro)
34 (store_kbd_macro_char, Fcall_last_kbd_macro, Fexecute_kbd_macro):
35 Update.
36 * keyboard.c (echo_char, echo_dash, echo_now, cancel_echoing)
37 (echo_length, echo_truncate, cmd_error, command_loop_1)
38 (read_char, kbd_buffer_store_event_hold, make_lispy_event)
39 (menu_bar_items, tool_bar_items, read_char_minibuf_menu_prompt)
40 (read_key_sequence, Fcommand_execute, Fexecute_extended_command)
41 (Fdiscard_input, init_kboard, init_keyboard, mark_kboards):
42 Update.
43 * xfns.c (Fx_create_frame): Update.
44 * xterm.c (x_connection_closed, x_term_init): Update.
45 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN, init_tty):
46 Update.
47 * window.c (window_scroll_pixel_based, window_scroll_line_based):
48 Update.
49 * frame.c (make_frame_without_minibuffer, Fhandle_switch_frame)
50 (delete_frame): Update.
51 * lisp.h (DEFVAR_KBOARD): Update for change to field names.
52 * keyboard.h (struct kboard): Rename all Lisp_Object fields.
53 (KBOARD_INTERNAL_FIELD, KVAR): New macros.
54
eb4916d7
TT
552011-02-16 Tom Tromey <tromey@redhat.com>
56
57 * lisp.h (DEFVAR_BUFFER_DEFAULTS): Use BVAR.
58
4b4deea2
TT
592011-02-16 Tom Tromey <tromey@parfait>
60
61 * xfns.c (x_create_tip_frame, Fx_show_tip): Replace B_ with BVAR.
62 * xfaces.c (compute_char_face): Replace B_ with BVAR.
63 * xdisp.c (pos_visible_p, init_iterator, reseat_1)
64 (message_dolog, update_echo_area, ensure_echo_area_buffers)
65 (with_echo_area_buffer, setup_echo_area_for_printing)
66 (set_message_1, update_menu_bar, update_tool_bar)
67 (text_outside_line_unchanged_p, redisplay_internal)
68 (try_scrolling, try_cursor_movement, redisplay_window)
69 (try_window_reusing_current_matrix, row_containing_pos)
70 (try_window_id, get_overlay_arrow_glyph_row, display_line)
71 (Fcurrent_bidi_paragraph_direction, display_mode_lines)
72 (decode_mode_spec_coding, decode_mode_spec, display_count_lines)
73 (get_window_cursor_type, note_mouse_highlight): Replace B_ with
74 BVAR.
75 * window.c (window_display_table, unshow_buffer, window_loop)
76 (window_min_size_2, set_window_buffer, Fset_window_buffer)
77 (select_window, Fforce_window_update, temp_output_buffer_show)
78 (Fset_window_configuration, save_window_save): Replace B_ with
79 BVAR.
80 * w32fns.c (x_create_tip_frame, Fx_show_tip, Fw32_shell_execute):
81 Replace B_ with BVAR.
82 * undo.c (record_point, record_insert, record_delete)
83 (record_marker_adjustment, record_first_change)
84 (record_property_change, Fundo_boundary, truncate_undo_list)
85 (Fprimitive_undo): Replace B_ with BVAR.
86 * syntax.h (Vstandard_syntax_table, CURRENT_SYNTAX_TABLE)
87 (SETUP_BUFFER_SYNTAX_TABLE): Replace B_ with BVAR.
88 * syntax.c (update_syntax_table, dec_bytepos, Fsyntax_table)
89 (Fset_syntax_table, Fmodify_syntax_entry, skip_chars)
90 (skip_syntaxes, scan_lists): Replace B_ with BVAR.
91 * search.c (compile_pattern_1, compile_pattern, looking_at_1)
92 (string_match_1, fast_looking_at, newline_cache_on_off)
93 (search_command, search_buffer, simple_search, boyer_moore)
94 (Freplace_match): Replace B_ with BVAR.
95 * process.c (get_process, list_processes_1, Fstart_process)
96 (Fmake_serial_process, Fmake_network_process)
97 (read_process_output, send_process, exec_sentinel)
98 (status_notify, setup_process_coding_systems): Replace B_ with
99 BVAR.
100 * print.c (PRINTDECLARE, PRINTPREPARE, PRINTFINISH, printchar)
101 (strout, print_string, temp_output_buffer_setup, print_object):
102 Replace B_ with BVAR.
103 * msdos.c (IT_frame_up_to_date): Replace B_ with BVAR.
104 * minibuf.c (read_minibuf, get_minibuffer, Fread_buffer): Replace
105 B_ with BVAR.
106 * marker.c (Fmarker_buffer, Fset_marker, set_marker_restricted)
107 (set_marker_both, set_marker_restricted_both, unchain_marker):
108 Replace B_ with BVAR.
109 * lread.c (readchar, unreadchar, openp, readevalloop)
110 (Feval_buffer, Feval_region): Replace B_ with BVAR.
111 * lisp.h (DOWNCASE_TABLE, UPCASE_TABLE): Replace B_ with BVAR.
112 * keymap.c (Flocal_key_binding, Fuse_local_map)
113 (Fcurrent_local_map, push_key_description)
114 (Fdescribe_buffer_bindings): Replace B_ with BVAR.
115 * keyboard.c (command_loop_1, read_char_minibuf_menu_prompt)
116 (read_key_sequence): Replace B_ with BVAR.
117 * intervals.h (TEXT_PROP_MEANS_INVISIBLE): Replace B_ with BVAR.
118 * intervals.c (set_point_both, get_local_map): Replace B_ with
119 BVAR.
120 * insdel.c (check_markers, insert_char, insert_1_both)
121 (insert_from_string_1, insert_from_gap, insert_from_buffer_1)
122 (adjust_after_replace, replace_range, del_range_2)
123 (modify_region, prepare_to_modify_buffer)
124 (Fcombine_after_change_execute): Replace B_ with BVAR.
125 * indent.c (buffer_display_table, recompute_width_table)
126 (width_run_cache_on_off, current_column, scan_for_column)
127 (Findent_to, position_indentation, compute_motion, vmotion):
128 Replace B_ with BVAR.
129 * fringe.c (get_logical_cursor_bitmap)
130 (get_logical_fringe_bitmap, update_window_fringes): Replace B_
131 with BVAR.
132 * frame.c (make_frame_visible_1): Replace B_ with BVAR.
133 * font.c (font_at): Replace B_ with BVAR.
134 * fns.c (Fbase64_encode_region, Fbase64_decode_region, Fmd5):
135 Replace B_ with BVAR.
136 * filelock.c (unlock_all_files, Flock_buffer, Funlock_buffer)
137 (unlock_buffer): Replace B_ with BVAR.
138 * fileio.c (Fexpand_file_name, Ffile_directory_p)
139 (Ffile_regular_p, Ffile_selinux_context)
140 (Fset_file_selinux_context, Ffile_modes, Fset_file_modes)
141 (Fset_file_times, Ffile_newer_than_file_p, decide_coding_unwind)
142 (Finsert_file_contents, choose_write_coding_system)
143 (Fwrite_region, build_annotations, Fverify_visited_file_modtime)
144 (Fset_visited_file_modtime, auto_save_error, auto_save_1)
145 (Fdo_auto_save, Fset_buffer_auto_saved): Replace B_ with BVAR.
146 * editfns.c (region_limit, Fmark_marker, save_excursion_save)
147 (save_excursion_restore, Fprevious_char, Fchar_before)
148 (general_insert_function, Finsert_char, Finsert_byte)
149 (make_buffer_string_both, Finsert_buffer_substring)
150 (Fcompare_buffer_substrings, subst_char_in_region_unwind)
151 (subst_char_in_region_unwind_1, Fsubst_char_in_region)
152 (Ftranslate_region_internal, save_restriction_restore)
153 (Fchar_equal): Replace B_ with BVAR.
154 * dispnew.c (Fframe_or_buffer_changed_p): Replace B_ with BVAR.
155 * dispextern.h (WINDOW_WANTS_MODELINE_P)
156 (WINDOW_WANTS_HEADER_LINE_P): Replace B_ with BVAR.
157 * dired.c (directory_files_internal): Replace B_ with BVAR.
158 * data.c (swap_in_symval_forwarding, set_internal)
159 (Fmake_local_variable, Fkill_local_variable, Flocal_variable_p):
160 Replace B_ with BVAR.
161 * composite.c (fill_gstring_header)
162 (composition_compute_stop_pos, composition_adjust_point)
163 (Ffind_composition_internal): Replace B_ with BVAR.
164 * coding.c (decode_coding, encode_coding)
165 (make_conversion_work_buffer, decode_coding_gap)
166 (decode_coding_object, encode_coding_object)
167 (Fdetect_coding_region, Ffind_coding_systems_region_internal)
168 (Funencodable_char_position, Fcheck_coding_systems_region):
169 Replace B_ with BVAR.
170 * cmds.c (Fself_insert_command, internal_self_insert): Replace B_
171 with BVAR.
172 * charset.c (Ffind_charset_region): Replace B_ with BVAR.
173 * character.h (FETCH_CHAR_ADVANCE, INC_BOTH, DEC_BOTH)
174 (ASCII_CHAR_WIDTH): Replace B_ with BVAR.
175 * character.c (chars_in_text, Fget_byte): Replace B_ with BVAR.
176 * category.h (Vstandard_category_table): Replace B_ with BVAR.
177 * category.c (check_category_table, Fcategory_table)
178 (Fset_category_table, char_category_set): Replace B_ with BVAR.
179 * casetab.c (Fcurrent_case_table, set_case_table): Replace B_ with
180 BVAR.
181 * casefiddle.c (casify_object, casify_region): Replace B_ with
182 BVAR.
183 * callproc.c (Fcall_process, Fcall_process_region): Replace B_
184 with BVAR.
185 * callint.c (check_mark, Fcall_interactively): Replace B_ with
186 BVAR.
187 * bytecode.c (Fbyte_code): Replace B_ with BVAR.
188 * buffer.h (FETCH_CHAR, FETCH_CHAR_AS_MULTIBYTE, BVAR): Replace B_
189 with BVAR.
190 * buffer.c (Fbuffer_live_p, Fget_file_buffer)
191 (get_truename_buffer, Fget_buffer_create)
192 (clone_per_buffer_values, Fmake_indirect_buffer, reset_buffer)
193 (reset_buffer_local_variables, Fbuffer_name, Fbuffer_file_name)
194 (Fbuffer_local_value, buffer_lisp_local_variables)
195 (Fset_buffer_modified_p, Frestore_buffer_modified_p)
196 (Frename_buffer, Fother_buffer, Fbuffer_enable_undo)
197 (Fkill_buffer, Fset_buffer_major_mode, set_buffer_internal_1)
198 (set_buffer_temp, Fset_buffer, set_buffer_if_live)
199 (Fbarf_if_buffer_read_only, Fbury_buffer, Ferase_buffer)
200 (Fbuffer_swap_text, swapfield_, Fbuffer_swap_text)
201 (Fset_buffer_multibyte, swap_out_buffer_local_variables)
202 (record_overlay_string, overlay_strings, init_buffer_once)
203 (init_buffer, syms_of_buffer): Replace B_ with BVAR.
204
8678d9e4 2052011-02-16 Eli Zaretskii <eliz@gnu.org>
a73d395b
EZ
206
207 * xdisp.c (redisplay_internal): Resynchronize `w' if the selected
208 window is changed inside calls to do_pending_window_change.
209 (Bug#8020)
210
1f5d53eb
PE
2112011-02-16 Paul Eggert <eggert@cs.ucla.edu>
212
213 Remove no-longer needed getloadavg symbols.
214 * m/alpha.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
215 * m/amdx86-64.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
216 * m/ia64.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
217 * m/ibms390.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
218 * m/macppc.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
219 * m/sparc.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
220 * m/template.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
221 * m/vax.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
222 * s/aix4-2.h (KERNEL_FILE, LDAV_SYMBOL): Remove.
223 * s/bsd-common.h (KERNEL_FILE, LDAV_SYMBOL): Remove #undef.
224 * s/hpux10-20.h (KERNEL_FILE, LOAD_AVE_TYPE, LOAD_AVE_CVT):
225 (LDAV_SYMBOL): Remove.
226 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Remove.
227 * s/usg5-4-common.h (KERNEL_FILE, LDAV_SYMBOL): Remove.
228
229 Import getloadavg module from gnulib.
230 * deps.mk (getloadavg.o): Remove; gnulib now does this.
231 * lisp.h (getloadavg) [!defined HAVE_GETLOADAVG]: Remove; gnulib
232 now does this.
233 * src/s/freebsd.h (HAVE_GETLOADAVG): Remove; gnulib now does this.
234 * src/s/netbsd.h (HAVE_GETLOADAVG): Likewise.
235 * config.in: Regenerate.
236
8017fd6b
EZ
2372011-02-15 Eli Zaretskii <eliz@gnu.org>
238
239 * nsfns.m (ns_set_name_as_filename, Fns_read_file_name): Use B_.
240
75b43359
MWD
2412011-02-14 Michael Welsh Duggan <md5i@md5i.com>
242
243 * print.c (float_to_string): Ensure that a decimal point is
244 printed if using dtoastr (Bug#8033).
245
fc3ca113
EZ
2462011-02-14 Eli Zaretskii <eliz@gnu.org>
247
1f5d53eb 248 * msdos.c (IT_frame_up_to_date):
ef72f149
EZ
249 * s/msdos.h (MODE_LINE_BINARY_TEXT): Use B_ for the MS-DOS build.
250
fc3ca113
EZ
251 * dired.c (directory_files_internal):
252 * fileio.c (Finsert_file_contents):
253 * insdel.c (prepare_to_modify_buffer):
254 * xdisp.c (pos_visible_p):
255 * s/ms-w32.h (MODE_LINE_BINARY_TEXT):
256 * w32fns.c (Fw32_shell_execute, Fx_show_tip, x_create_tip_frame):
257 Use B_ for the MS-Windows build.
258
3928f2b6
JD
2592011-02-14 Jan Djärv <jan.h.d@swipnet.se>
260
261 * xrdb.c (x_load_resources): For LUCID and XFT, don't put a
262 resource that specifies helvetica for menus and dialogs.
263
264 * xmenu.c (apply_systemfont_to_dialog): Apply to *dialog.font.
265 (apply_systemfont_to_menu): Set resources *menubar*font and
266 *popup*font. Remove defflt.
267 (set_frame_menubar, create_and_show_popup_menu): Call
268 apply_systemfont_to_menu before lw_create_widget.
269
4bb81cc2
TT
2702011-02-14 Tom Tromey <tromey@redhat.com>
271
fc3ca113
EZ
272 * buffer.c (init_buffer_once, syms_of_buffer): Use B_ in DOS_NT case.
273
4bb81cc2
TT
274 * keyboard.h: Remove obsolete comment.
275
5d8ea120
TT
2762011-02-14 Tom Tromey <tromey@parfait>
277
278 * composite.c (fill_gstring_header)
279 (composition_compute_stop_pos, composition_adjust_point)
280 (Ffind_composition_internal): Use B_.
281 * intervals.c (set_point_both, get_local_map): Use B_.
282 * callproc.c (Fcall_process, Fcall_process_region): Use B_.
283 * process.c (get_process, list_processes_1, Fstart_process)
284 (Fmake_serial_process, Fmake_network_process)
285 (read_process_output, send_process, exec_sentinel)
286 (status_notify, setup_process_coding_systems): Use B_.
287 * bytecode.c (Fbyte_code): Use B_.
288 * syntax.c (update_syntax_table, dec_bytepos, Fsyntax_table)
289 (Fset_syntax_table, Fmodify_syntax_entry, skip_chars)
290 (skip_syntaxes, scan_lists): Use B_.
291 * lread.c (readchar, unreadchar, openp, readevalloop)
292 (Feval_buffer, Feval_region): Use B_.
293 * print.c (printchar, strout, print_string, PRINTDECLARE)
294 (PRINTPREPARE, PRINTFINISH, temp_output_buffer_setup)
295 (print_object): Use B_.
296 * font.c (font_at): Use B_.
297 * fns.c (Fbase64_encode_region, Fbase64_decode_region, Fmd5): Use
298 B_.
299 * callint.c (check_mark, Fcall_interactively): Use B_.
300 * editfns.c (region_limit, Fmark_marker, save_excursion_save)
301 (save_excursion_restore, Fprevious_char, Fchar_before)
302 (general_insert_function, Finsert_char, Finsert_byte)
303 (make_buffer_string_both, Finsert_buffer_substring)
304 (Fcompare_buffer_substrings, subst_char_in_region_unwind)
305 (subst_char_in_region_unwind_1, Fsubst_char_in_region)
306 (Ftranslate_region_internal, save_restriction_restore)
307 (Fchar_equal): Use B_.
308 * data.c (swap_in_symval_forwarding, set_internal)
309 (Fmake_local_variable, Fkill_local_variable, Flocal_variable_p):
310 Use B_.
311 * undo.c (record_point, record_insert, record_delete)
312 (record_marker_adjustment, record_first_change)
313 (record_property_change, Fundo_boundary, truncate_undo_list)
314 (Fprimitive_undo): Use B_.
315 * search.c (compile_pattern_1, compile_pattern, looking_at_1)
316 (string_match_1, fast_looking_at, newline_cache_on_off)
317 (search_command, search_buffer, simple_search, boyer_moore)
318 (Freplace_match): Use B_.
319 * indent.c (buffer_display_table, recompute_width_table)
320 (width_run_cache_on_off, current_column, scan_for_column)
321 (Findent_to, position_indentation, compute_motion, vmotion): Use
322 B_.
323 * casefiddle.c (casify_object, casify_region): Use B_.
324 * casetab.c (Fcurrent_case_table, set_case_table): Use B_.
325 * cmds.c (Fself_insert_command, internal_self_insert): Use B_.
326 * fileio.c (Fexpand_file_name, Ffile_directory_p)
327 (Ffile_regular_p, Ffile_selinux_context)
328 (Fset_file_selinux_context, Ffile_modes, Fset_file_modes)
329 (Fset_file_times, Ffile_newer_than_file_p, decide_coding_unwind)
330 (Finsert_file_contents, choose_write_coding_system)
331 (Fwrite_region, build_annotations, Fverify_visited_file_modtime)
332 (Fset_visited_file_modtime, auto_save_error, auto_save_1)
333 (Fdo_auto_save, Fset_buffer_auto_saved): Use B_.
334 * minibuf.c (read_minibuf, get_minibuffer, Fread_buffer): Use B_.
335 * marker.c (Fmarker_buffer, Fset_marker, set_marker_restricted)
336 (set_marker_both, set_marker_restricted_both, unchain_marker): Use
337 B_.
338 * insdel.c (check_markers, insert_char, insert_1_both)
339 (insert_from_string_1, insert_from_gap, insert_from_buffer_1)
340 (adjust_after_replace, replace_range, del_range_2)
341 (modify_region, prepare_to_modify_buffer)
342 (Fcombine_after_change_execute): Use B_.
343 * filelock.c (unlock_all_files, Flock_buffer, Funlock_buffer)
344 (unlock_buffer): Use B_.
345 * keymap.c (Flocal_key_binding, Fuse_local_map)
346 (Fcurrent_local_map, push_key_description)
347 (Fdescribe_buffer_bindings): Use B_.
348 * keyboard.c (command_loop_1, read_char_minibuf_menu_prompt)
349 (read_key_sequence): Use B_.
350 * fringe.c (get_logical_cursor_bitmap)
351 (get_logical_fringe_bitmap, update_window_fringes): Use B_.
352 * xfns.c (x_create_tip_frame, Fx_show_tip): Use B_.
353 * xfaces.c (compute_char_face): Use B_.
354 * character.c (chars_in_text, Fget_byte): Use B_.
355 * category.c (check_category_table, Fcategory_table)
356 (Fset_category_table, char_category_set): Use B_.
357 * coding.c (decode_coding, encode_coding)
358 (make_conversion_work_buffer, decode_coding_gap)
359 (decode_coding_object, encode_coding_object)
360 (Fdetect_coding_region, Ffind_coding_systems_region_internal)
361 (Funencodable_char_position, Fcheck_coding_systems_region): Use
362 B_.
363 * charset.c (Ffind_charset_region): Use B_.
364 * window.c (window_display_table, unshow_buffer, window_loop)
365 (window_min_size_2, set_window_buffer, Fset_window_buffer)
366 (select_window, Fforce_window_update, temp_output_buffer_show)
367 (Fset_window_configuration, save_window_save): Use B_.
368 * xdisp.c (pos_visible_p, init_iterator, reseat_1)
369 (message_dolog, update_echo_area, ensure_echo_area_buffers)
370 (with_echo_area_buffer, setup_echo_area_for_printing)
371 (set_message_1, update_menu_bar, update_tool_bar)
372 (text_outside_line_unchanged_p, redisplay_internal)
373 (try_scrolling, try_cursor_movement, redisplay_window)
374 (try_window_reusing_current_matrix, row_containing_pos)
375 (try_window_id, get_overlay_arrow_glyph_row, display_line)
376 (Fcurrent_bidi_paragraph_direction, display_mode_lines)
377 (decode_mode_spec_coding, decode_mode_spec, display_count_lines)
378 (get_window_cursor_type, note_mouse_highlight): Use B_.
379 * frame.c (make_frame_visible_1): Use B_.
380 * dispnew.c (Fframe_or_buffer_changed_p): Use B_.
381 * dispextern.h (WINDOW_WANTS_HEADER_LINE_P)
382 (WINDOW_WANTS_MODELINE_P): Use B_.
383 * syntax.h (Vstandard_syntax_table): Update.
384 (CURRENT_SYNTAX_TABLE, SETUP_BUFFER_SYNTAX_TABLE): Use B_.
385 * intervals.h (TEXT_PROP_MEANS_INVISIBLE): Update.
386 (TEXT_PROP_MEANS_INVISIBLE): Use B_.
387 * character.h (FETCH_CHAR_ADVANCE): Update.
388 (INC_BOTH, ASCII_CHAR_WIDTH, DEC_BOTH): Use B_.
389 * category.h (Vstandard_category_table): Update.
390 * lisp.h (DEFVAR_BUFFER_DEFAULTS): Update for change to field
391 names.
392 (DOWNCASE_TABLE, UPCASE_TABLE): Use B_.
393 * buffer.c (swapfield_): New macro.
394 (Fbuffer_swap_text): Use swapfield_ where appropriate.
395 (Fbuffer_live_p, Fget_file_buffer, get_truename_buffer)
396 (Fget_buffer_create, clone_per_buffer_values)
397 (Fmake_indirect_buffer, reset_buffer)
398 (reset_buffer_local_variables, Fbuffer_name, Fbuffer_file_name)
399 (Fbuffer_local_value, buffer_lisp_local_variables)
400 (Fset_buffer_modified_p, Frestore_buffer_modified_p)
401 (Frename_buffer, Fother_buffer, Fbuffer_enable_undo)
402 (Fkill_buffer, Fset_buffer_major_mode, set_buffer_internal_1)
403 (set_buffer_temp, Fset_buffer, set_buffer_if_live)
404 (Fbarf_if_buffer_read_only, Fbury_buffer, Ferase_buffer)
405 (Fbuffer_swap_text, Fset_buffer_multibyte)
406 (swap_out_buffer_local_variables, record_overlay_string)
407 (overlay_strings, init_buffer_once, init_buffer, syms_of_buffer):
408 Use B_.
409 * buffer.h (struct buffer): Rename all Lisp_Object fields.
410 (BUFFER_INTERNAL_FIELD, B_): New macro.
411 (FETCH_CHAR, FETCH_CHAR_AS_MULTIBYTE): Use B_.
412
42f60557
JD
4132011-02-14 Jan Djärv <jan.h.d@swipnet.se>
414
415 * gtkutil.c (xg_tool_bar_menu_proxy): Handle case when tool bar label
416 is null.
417
2f9a22e2
J
4182011-02-13 Jan Djärv <jan.h.d@swipnet.se>
419
420 * callproc.c (Fcall_process):
421 * process.c (create_process): Replace Gtk with GConf in SIGPIPE
422 comment.
423
84eb0351 4242011-02-12 Martin Rudalics <rudalics@gmx.at>
bae1fa42
MR
425
426 * window.c (select_window): Check inhibit_point_swap argument when
427 deciding whether to return immediately.
428
84eb0351 4292011-02-12 Jan Djärv <jan.h.d@swipnet.se>
9aabf64c
JD
430
431 * nsterm.m (setFrame, initFrame): Make sure pixel_height doesn't become
432 zero (Bug#7348).
433
84eb0351
CY
4342011-02-12 Chong Yidong <cyd@stupidchicken.com>
435
436 * config.in (TERMINFO): New definition.
437
438 * s/netbsd.h: Use it to choose between terminfo and termcap
439 (Bug#7642).
440
33d605d0
PE
4412011-02-12 Paul Eggert <eggert@cs.ucla.edu>
442
443 * md5.c (md5_process_bytes): Use sizeof, not __alignof__.
444 The difference doesn't matter here, in practice, and sizeof is
445 more portable to non-GCC compilers. Also, this makes the code
446 match the already-existing comment.
447
c0ad4ea5
AS
4482011-02-12 Andreas Schwab <schwab@linux-m68k.org>
449
450 * process.c (create_process): Reset SIGPIPE handler in the child.
451 * callproc.c (Fcall_process): Likewise. (Bug#5238)
452
50fd938f
EZ
4532011-02-12 Eli Zaretskii <eliz@gnu.org>
454
455 * xdisp.c <this_line_min_pos>: New variable.
456 (move_it_in_display_line_to): Record in this_line_min_pos the
457 smallest position iterated across.
458 (display_line): Use this_line_min_pos to record the smallest
459 position in the line even if it is not displayed due to
460 hscrolling. (Bug#7939)
461
af59aa6e
PE
4622011-02-12 Paul Eggert <eggert@cs.ucla.edu>
463
cec81b22
PE
464 Port to Sun C 5.11, which has __attribute__ ((__aligned (N))).
465 * md5.h (ATTRIBUTE_ALIGNED): New macro.
466 (struct md5_ctx): Use it.
467
af59aa6e
PE
468 Port to Solaris 10, which doesn't support FC_HINT_STYLE.
469 * xftfont.c (FC_HINT_STYLE): #define to "hintstyle" if not
470 defined.
471 * xsettings.c (parse_settings, apply_xft_settings): Don't assume
472 FC_HINT_STYLE is supported.
473
02c3706c
JD
4742011-02-11 Jan Djärv <jan.h.d@swipnet.se>
475
476 * xterm.c (x_set_frame_alpha): Access data before it is free:d.
477 Make sure we don't do x_catch_errors twice.
478
5ac75e8f
GM
4792011-02-10 Glenn Morris <rgm@gnu.org>
480
481 * Makefile.in (really-lwlib): Depend on globals.h, for parallel builds.
482
d37f40ed
EZ
4832011-02-09 Eli Zaretskii <eliz@gnu.org>
484
5ac75e8f
GM
485 * makefile.w32-in (GLOBAL_SOURCES, SOME_MACHINE_OBJECTS, obj):
486 New macros.
d37f40ed
EZ
487 (globals.h, gl-stamp): New targets.
488 (clean): Clean gl-stamp and globals.h.
489
33cd3ee4
AS
4902011-02-09 Andreas Schwab <schwab@linux-m68k.org>
491
492 * Makefile.in (gl-stamp): Create globals.h here.
493 (globals.h): Don't do it here.
494 (mostlyclean): Clean globals.h and gl-stamp.
495
f9f2e7f5
PE
4962011-02-09 Paul Eggert <eggert@cs.ucla.edu>
497
498 * Makefile.in ($(otherobj)): Depend on globals.h.
499 Otherwise 'make -j10' failed on my host, because the build lacked
500 necessary dependencies, e.g., vm-limit.o depends on globals.h.
501
00b3c7ac
TT
5022011-02-08 Tom Tromey <tromey@redhat.com>
503
504 * Makefile.in (NS_OBJC_OBJ): New variable.
505 (base_obj): Rename from 'obj'.
506 (obj): New variable.
507 (globals.h, gl-stamp, $(obj)): New targets.
508 (GLOBAL_SOURCES): New variable.
509 * globals.h: Remove.
510 * nsselect.m (Vselection_alist): Define. Reverts part of
511 2011-01-19T22:11:33Z!jan.h.d@swipnet.se.
512 * buffer.c: Don't use "no_cell" for name of kill-buffer-hook's
513 variable.
514 * xselect.c (Vselection_alist): Define. Reverts part of 2011-01-19T23:32:42Z!eggert@cs.ucla.edu.
515
8f3b2e12
KH
5162011-02-08 Kenichi Handa <handa@m17n.org>
517
518 * font.c (Ffont_get): Do not cache :otf value.
519
4f043d0f
PE
5202011-02-07 Paul Eggert <eggert@cs.ucla.edu>
521
522 conform to C89 pointer rules
523
524 * dired.c (scmp, file_name_completion):
525 Change types between char * and unsigned char *, to satisfy C89
526 rules about pointer type compatibility.
47ce90e4 527 * casefiddle.c (casify_object, casify_region): Likewise.
a7e979a4 528 * search.c (Freplace_match, Fregexp_quote): Likewise.
90256841
PE
529 * alloc.c (make_string, make_specified_string, make_pure_string):
530 Likewise.
57ace6d0 531 * data.c (Fstring_to_number): Likewise.
09125ef8
PE
532 * print.c (float_to_string, PRINTFINISH, printchar, strout):
533 (print_object): Likewise.
e7f8264d
PE
534 * editfns.c (init_editfns, Fchar_to_string, Fbyte_to_string):
535 (Fuser_full_name, Fsubst_char_in_region, Ftranslate_region_internal):
536 (Fformat): Likewise.
a2db9982 537 * callint.c (Fcall_interactively): Likewise.
f1e59824
PE
538 * fns.c (string_make_multibyte, string_to_multibyte):
539 (string_make_unibyte, Fstring_as_unibyte, Fstring_to_unibyte):
540 (Fbase64_encode_region, base64_encode_1, Fbase64_decode_region, Fmd5):
541 Likewise.
4a25e32a 542 * lread.c (read1, hash_string): Likewise.
400a67ff
PE
543 * process.c (read_process_output, send_process, Fprocess_send_region):
544 Likewise.
0ca76b1e 545 * callproc.c (Fcall_process): Likewise.
7469ef5d
PE
546 * doprnt.c (doprnt): Likewise.
547 * indent.c (compute_motion): Likewise.
efe0234f 548 * xfont.c (xfont_decode_coding_xlfd): Likewise.
3ce2f8ac 549 * ralloc.c (resize_bloc): Likewise.
b19beacc 550 * image.c (tiff_load): Likewise.
c45e5276 551 * xml.c (make_dom, parse_region): Likewise.
7469ef5d
PE
552 * character.c (strwidth): Make its argument const char *, not const
553 unsigned char *, since more callers prefer it that way. All callers
554 changed.
4f043d0f 555
9eee99eb
PE
5562011-02-06 Paul Eggert <eggert@cs.ucla.edu>
557
4c83cffc
PE
558 * xterm.c (x_alloc_nearest_color_1): Avoid unportable int assumption.
559 Emacs assumes two's complement elsewhere, but the assumption is
560 easy to remove here, and this suppresses a warning with Sun C 5.8.
561
82470039
PE
562 conform to C89 pointer rules
563
564 * xterm.c (x_draw_fringe_bitmap, handle_one_xevent, x_bitmap_icon):
565 (same_x_server, x_term_init):
9eee99eb
PE
566 Change types between char * and unsigned char *, to satisfy C89
567 rules about pointer type compatibility.
82470039
PE
568 * doc.c (get_doc_string, Fsnarf_documentation):
569 (Fsubstitute_command_keys): Likewise.
5f742c1b
PE
570 * xfns.c (Fx_open_connection, Fx_window_property): Likewise.
571 * bitmaps/gray.xbm (gray_bits): Likewise.
b8dc29e9 572 * image.c (xbm_read_bitmap_data, xbm_load_image, xbm_load): Likewise.
847c0824
PE
573 * keyboard.c (echo_char, MULTI_LETTER_MOD, tty_read_avail_input):
574 Likewise.
01c9aa3a 575 * keymap.c (Ftext_char_description): Likewise.
637de37e 576 * minibuf.c (Fread_buffer): Likewise.
5976c3fe
PE
577 * fileio.c (IS_DRIVE) [defined WINDOWSNT]:
578 (DRIVE_LETTER) [defined DOS_NT]:
579 (report_file_error, Ffile_name_directory, Ffile_name_nondirectory):
580 (make_temp_name, Fexpand_file_name, file_name_absolute_p):
581 (search_embedded_absfilename, Fsubstitute_in_file_name):
582 (barf_or_query_if_file_exists, Fmake_directory_internal):
583 (Fdelete_directory_internal, Ffile_name_absolute_p, read_non_regular):
584 (Finsert_file_contents, Fwrite_region):
585 Likewise.
b68864e5
PE
586 * insdel.c (insert, insert_and_inherit, insert_before_markers):
587 (insert_before_markers_and_inherit, insert_1, insert_1_both):
588 Likewise. This changes these functions' signatures, which is
589 more convenient since most callers use char *. All remaining
590 callers changed.
591 * editfns.c (general_insert_function): Change signature to
592 match changes to insert functions' signatures.
01c9aa3a
PE
593 * keymap.c (map_keymap_char_table_item, map_keymap_internal): Use
594 explicit cast when converting between void * and function pointer
595 types, as C89 requires this.
9eee99eb 596
32299e33
PE
5972011-02-05 Paul Eggert <eggert@cs.ucla.edu>
598
599 don't ignore chdir failure
600 * sysdep.c (sys_subshell) [!defined DOS_NT]: Diagnose chdir
601 failure and exit.
602 (sys_subshell) [defined DOS_NT]: Mark with a FIXME the two
603 remaining unchecked chdir calls in this function; some DOS/NT
604 expert needs to fix them.
605 * emacs.c (main): Mark with a FIXME the unchecked chdir calls
606 in this function; some NextStep expert needs to fix them.
607
233ba4d9 6082011-02-05 Glenn Morris <rgm@gnu.org>
95838641
GM
609
610 * xfaces.c (Finternal_set_lisp_face_attribute):
611 Try to clarify some error messages. (Bug#2659)
612
233ba4d9 6132011-02-05 Stefan Monnier <monnier@iro.umontreal.ca>
aca092ac
SM
614
615 * editfns.c (save_restriction_restore): Don't forget to invalidate the
616 current_column cache (bug#7946).
617
233ba4d9 6182011-02-05 Kenichi Handa <handa@m17n.org>
ea2460a0
KH
619
620 * ftfont.c (ftfont_open): Use FC_DUAL only when it is defined.
621
622 * xftfont.c (xftfont_open): Likewise.
623
233ba4d9 6242011-02-05 Andreas Schwab <schwab@linux-m68k.org>
29feb0e9
AS
625
626 * window.c (Fselect_window): Add missing return value.
627
d67985d3
PE
6282011-02-05 Paul Eggert <eggert@cs.ucla.edu>
629
25a48bd0
PE
630 xstrcasecmp: conform to C89 pointer rules
631 * xfaces.c (xstrcasecmp): Change args from const unsigned char *
632 to const char *, since they're usually low-level C strings, and
633 this stays compatible with C89 pointer rules. All callers changed.
634
dfb6afda
PE
635 * charset.c: conform to C89 pointer rules
636 (define_charset_internal): Switch between char * and unsigned char *.
637
cc618f4e
PE
638 * xmenu.c: conform to C89 const rules
639 (xmenu_show, xdialog_show): Declare local var as char *, not
640 const char *, to stay compatible with C89 const rules.
641
9bcaafce
PE
642 * xdisp.c: conform to C89 pointer rules
643 (store_mode_line_noprop, display_string, reseat_to_string):
644 (c_string_pos, number_of_chars, message_dolog):
645 (message_log_check_duplicate, set_message_1, store_mode_line_noprop):
646 (display_mode_element, display_string):
647 Switch between char * and unsigned char * to stay compatible wth
648 C89 pointer rules.
649
5b0534c8
PE
650 * regex.c: conform to C89 pointer rules
651 (re_wctype): Add cast, as C89 does not allow assigning between
652 char * and unsigned char *.
653 (regex_compile): Likewise.
654
d67985d3
PE
655 sync from gnulib to remove HAVE_STDBOOL_H
656 * config.in: Regenerate.
657
a5d733f5
EZ
6582011-02-04 Eli Zaretskii <eliz@gnu.org>
659
f90e08f5
EZ
660 * makefile.w32-in (LISP_H, PROCESS_H): New variables.
661 Replace all uses of lisp.h with $(LISP_H), and all uses of
662 process.h with $(PROCESS_H).
663 ($(BLD)/editfns.$(O)): Depend on ../lib/strftime.h.
664 ($(BLD)/print.$(O)): Depend on ../lib/ftoastr.h and ../lib/intprops.h.
665
be50df37
EZ
666 * deps.mk: Update for recent changes: gnutls support, gnulib
667 imports, addition of globals.h.
668
f90e08f5
EZ
669 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on
670 ../lib/ignore-value.h.
a5d733f5 671
67342916
PE
6722011-02-03 Paul Eggert <eggert@cs.ucla.edu>
673
674 allow C code to suppress warnings about ignored return values
675
676 We need to go through the code and for each such warning, either
677 fix the code to pay attention to the returned value, or tell GCC
678 that we really do want to ignore the returned value. Here is one
679 example of how to do the latter.
680 * sysdep.c: Include <ignore-value.h>.
681 (sys_subshell): Suppress an undesirable warning about not checking
682 the returned value of 'write', as there's nothing useful one can
683 do with that returned value.
684
36941b32
JD
6852011-02-03 Jan Djärv <jan.h.d@swipnet.se>
686
687 * xterm.c (x_connection_closed): Remove all calls that calls
688 XSync (Bug#7949).
689
3082f617
EZ
6902011-02-01 Eli Zaretskii <eliz@gnu.org>
691
692 * image.c (tiff_load): Avoid compiler warning in 2nd arg to
693 TIFFClientOpen.
694
4df0af9b
JD
6952011-02-01 Jan Djärv <jan.h.d@swipnet.se>
696
697 * xsmfns.c (ice_connection_closed): Call delete_read_fd.
698 (x_session_check_input): Change args and return type so it can be used
699 as argument to add_read_fd. Make static. Remove call to select.
700 Call kbd_buffer_store_event for emacs_event.
701 (smc_save_yourself_CB): Also store initial argv to SmRestartCommand.
702 (ice_conn_watch_CB): Call add_read_fd.
703
704 * xterm.c (XTread_socket): Remove HAVE_X_SM block with call to
705 x_session_check_input.
706 (x_session_initialized): Remove definition.
707 (x_initialize): Remove setting of x_session_initialized.
708
709 * xterm.h (x_session_check_input): Remove declaration.
710
a4180391
PE
7112011-02-01 Paul Eggert <eggert@cs.ucla.edu>
712
713 format-time-string now supports subsecond time stamp resolution
714 * editfns.c (emacs_nmemftime): Renamed from emacs_memftimeu,
715 for consistency with its new argument and with gnulib nstrftime.
716 All callers changed. New argument NS.
717 (Fformat_time_string): Check that the time argument's microseconds
718 component, if any, is in range; this avoids integer overflow and
719 also nstrftime needs this. Document %N.
720
14beddf4 7212011-01-31 Andreas Schwab <schwab@linux-m68k.org>
df61c790
AS
722
723 * image.c (DEF_IMGLIB_FN): Add parameter rettype, use it instead
724 of int. All uses adjusted.
725 (PNG_JMPBUF, png_load, jpeg_load, tiff_load, gif_load)
726 (svg_load_image): Remove casts.
727
14beddf4 7282011-01-31 Chong Yidong <cyd@stupidchicken.com>
7f9c5df9
CY
729
730 * image.c (fn_png_longjmp, fn_png_set_longjmp_fn): New png
731 function definitions for compiling with libpng-1.5.
732 (PNG_LONGJMP, PNG_JMPBUF): New macros for libpng-1.5.
733 (my_png_error, png_load): Use them. Suggested by Thomas Klausner
734 (Bug#7908).
735
70b0d280
EZ
7362011-01-31 Eli Zaretskii <eliz@gnu.org>
737
8b3c625b
EZ
738 * s/ms-w32.h (HAVE_STRFTIME): Don't define.
739
70b0d280
EZ
740 * makefile.w32-in (OBJ2): Remove strftime.$(O).
741 ($(BLD)/strftime.$(O)): Remove prerequisites.
742
16fab143
PE
7432011-01-31 Paul Eggert <eggert@cs.ucla.edu>
744
745 src/emacs.c now gets version number from configure.in
746 * emacs.c (emacs_version): Set to VERSION so that it
747 is determined automatically from ../configure.in.
748
546961a9
JM
7492011-01-31 Jim Meyering <meyering@redhat.com>
750
751 * charset.c (load_charset_map): Don't deref NULL on failed malloc.
752 Use xmalloc rather than malloc.
753
42a5b22f
PE
7542011-01-30 Paul Eggert <eggert@cs.ucla.edu>
755
16c3e636
PE
756 strftime: import from gnulib
757 * Makefile.in (obj): Remove strftime.o, as gnulib now does this for us.
758 * deps.mk (strftime.o): Remove.
759 * editfns.c: Include <strftime.h>, supplied by gnulib.
760 (emacs_strftimeu): Remove decl.
761 (emacs_memftimeu): Use nstrftime (the gnulib name) rather than
762 emacs_strftimeu.
763 * config.in: Regenerate.
764 * strftime.c: Remove; we now use strftime from gnulib.
765
42a5b22f
PE
766 Use SSDATA when the context wants char *.
767 * alloc.c, buffer.c, bytecode.c, callproc.c, dired.c:
768 * dispnew.c, doc.c, editfns.c, emacs.c, fileio.c, filelock.c:
769 * fns.c, font.c, frame.c, image.c, indent.c, keyboard.c:
770 * lread.c, minibuf.c, print.c, process.c, search.c, widget.c:
771 * xdisp.c, xfaces.c, xfns.c, xml.c, xselect.c, xterm.c:
772 Use SSDATA (not SDATA) when the context of the expression wants
773 char * (not unsigned char *).
774
2787bba3
JD
7752011-01-30 Jan Djärv <jan.h.d@swipnet.se>
776
777 * .gdbinit: Read global lisp variables as globals.f_V*.
778
4ec88040
AS
7792011-01-30 Andreas Schwab <schwab@linux-m68k.org>
780
781 * font.c (PROP_MATCH): Remove parameter N and use strlen instead.
782 All uses changed.
783 (PROP_SAVE): Likewise.
784
b6bcd048
CY
7852011-01-29 Chong Yidong <cyd@stupidchicken.com>
786
787 * keyboard.c (make_lispy_position): Fix typo in last change
788 (Bug#7935).
789
f915f0f7
EZ
7902011-01-29 Eli Zaretskii <eliz@gnu.org>
791
792 * s/ms-w32.h (HAVE_MKTIME): Remove.
793
794 * makefile.w32-in (LOCAL_FLAGS): Add -I../lib.
795 (GNULIB): New variable.
796 (LIBS): Add $(GNULIB).
797 $(TEMACS): Depend on $(GNULIB).
798 <top-level>: Fix font-lock disrupted by a lone `"'.
799
497a1925
JD
8002011-01-29 Jan Djärv <jan.h.d@swipnet.se>
801
802 * nsselect.m (ns_string_from_pasteboard): Get length of string
803 and use make_string instead of build_string (Bug#7934).
804 (ns_string_to_pasteboard_internal): Use initWithBytesNoCopy
805 instead of stringWithUTF8String (Bug#7934).
806
481ae085
JD
8072011-01-29 Anders Lindgren <andlind@gmail.com> (tiny change)
808
809 * nsfont.m (nsfont_open): Ensure that fonts with inexact
810 descenders would not become one pixel too tall (Bug#7887).
811
6b918613
CY
8122011-01-28 Chong Yidong <cyd@stupidchicken.com>
813
814 * keyboard.c (make_lispy_position): For clicks on right fringe or
815 margin, compute text position using the X coordinate relative to
816 the left of the text area (Bug#7839).
817
9e269017
KH
8182011-01-28 Kenichi Handa <handa@m17n.org>
819
820 * ftfont.c (ftfont_spec_pattern): Check each extra property
821 value.
822
17dd1fc8
SM
8232011-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
824
825 * xdisp.c (safe_eval_handler): Distinguish symbols and strings.
826
372fb76b
CY
8272011-01-27 Chong Yidong <cyd@stupidchicken.com>
828
829 * font.c (font_parse_fcname): Undefine a temporary macro.
830
e7f7fbaa
SM
8312011-01-26 Stefan Monnier <monnier@iro.umontreal.ca>
832
833 Let the debugger continue to the normal handler (bug#7825).
834 * eval.c (maybe_call_debugger): Declare before new use.
835 (find_handler_clause): Don't call debugger any more.
836 Ignore Vstack_trace_on_error.
837 Use XCAR/XCDR.
838 (syms_of_eval): Remove Vstack_trace_on_error.
839 (Fsignal): Only modify handlerlist when we know we need to do it.
840 Call the debugger when necessary.
841 * globals.h (Vstack_trace_on_error): Remove.
842
6608a7d8
CY
8432011-01-26 Chong Yidong <cyd@stupidchicken.com>
844
845 * font.c (font_parse_fcname): Rewrite GTK font name parser.
846
06d8ace5 8472011-01-25 Stefan Monnier <monnier@iro.umontreal.ca>
f996bbcb
SM
848
849 * xdisp.c (handle_fontified_prop): Be careful with font-lock changing
850 the buffer's point-max (bug#7876).
851
06d8ace5 8522011-01-25 Chong Yidong <cyd@stupidchicken.com>
19634648
CY
853
854 * lisp.h (XPNTR): Obey DATA_SEG_BITS in all non-USE_LSB_TAG cases.
06d8ace5 855 Remove unused case (Bug#6811).
19634648 856
8ab70320
JD
8572011-01-23 Jan Djärv <jan.h.d@swipnet.se>
858
859 * nsterm.m (x_set_offset): Set dont_constrain to 0 so the call to
860 setFrameTopLeftPoint is constrained.
861
51b59d79
PE
8622011-01-23 Paul Eggert <eggert@cs.ucla.edu>
863
9055082e
PE
864 Check return values of some library calls.
865 * emacs.c (main): Check dup result.
866 * frame.c: Include <limits.h>, for INT_MIN and INT_MAX.
867 (frame_name_fnn_p): Check strtol result.
868
5c7d01a5 869 * image.c (x_create_bitmap_from_xpm_data): Add cast to fix type clash
f77fabaf
PE
870 when calling XpmCreatePixmapFromData.
871
51b59d79
PE
872 Promote SSDATA macro from gtkutil.c and xsmfns.c to lisp.h.
873 * lisp.h (SSDATA): New macro.
874 All uses of (char *) SDATA (x) replaced with SSDATA (x),
875 and all uses of (unsigned char *) SDATA (x) replaced with SDATA (x).
876 * gtkutil.c (SSDATA): Remove, as lisp.h now defines this.
877 * xsmfns.c (SSDATA): Likewise.
878
e6b84b30
MR
8792011-01-22 Martin Rudalics <rudalics@gmx.at>
880
881 * window.c (select_window): New function.
882 (Fselect_window): Call it.
883 (inhibit_point_swap): Variable deleted.
884 (Fset_window_configuration): Call select_window directly.
885
3fb69558
JD
8862011-01-22 Jan Djärv <jan.h.d@swipnet.se>
887
888 * nsterm.m (constrainFrameRect): Only constrain the first time called.
889
449ab399
JD
8902011-01-21 Jan Djärv <jan.h.d@swipnet.se>
891
e2f79c8d
JD
892 * nsterm.m (x_set_offset, windowDidMove): When calculating y, use first
893 screen, not the window screen.
894 (x_set_window_size): Remove constraints.
895 Calculate origin.y only if zooming is 0 and without referring to a
896 screen.
897 (windowWillResize): Don't modify frameSize.
898 (windowDidBecomeKey, mouseDown): Set dont_constrain to 1.
899 (initFrameFromEmacs): Initialize ns_userRect.
900 (windowShouldZoom): Set zooming to one. Remove all other code.
901 (windowWillUseStandardFrame): Move static ns_userRect to EmacsView.
902 Zero it after restore.
903 (constrainFrameRect): New method for EmacsWindow.
904 (mouseDragged): Always post NSWindowDidResizeNotification after call to
905 windowWillResize.
906
907 * nsterm.h (ns_output): Add dont_constrain and zooming.
908 (EmacsView): Add ns_userRect.
909
449ab399
JD
910 * nsterm.m (keyDown): If ns_right_alternate_modifier is Qleft, check
911 if ns_alternate_modifier is none.
912
e885315d
JD
9132011-01-20 Jan Djärv <jan.h.d@swipnet.se>
914
915 * unexmacosx.c: Add comment about include order.
916
bb1c6663
GM
9172011-01-20 Glenn Morris <rgm@gnu.org>
918
c11136ec
GM
919 * minibuf.c (syms_of_minibuf) <read-expression-history>:
920 Give it a doc string.
921 * globals.h: Add Vread_expression_history.
922
bb1c6663
GM
923 * macros.c (syms_of_macros) <kbd-macro-termination-hook>:
924 Give it a doc string.
925 * globals.h: Add Vkbd_macro_termination_hook.
926
9aea757b
CY
9272011-01-20 Chong Yidong <cyd@stupidchicken.com>
928
929 * fns.c (Fyes_or_no_p): Revert 2011-01-07 change, removing ARGS.
930
e1ef0dac
PE
9312011-01-19 Paul Eggert <eggert@cs.ucla.edu>
932
933 Fix X11 compilation failure.
934 * globals.h (struct emacs_globals): Document f_Vselection_alist.
935 * xselect.c (Vselection_alist): Remove declaration, moving its
936 documentation to globals.h. This fixes a compilation failure
937 induced by the earlier change to globals.h today.
938
fb9d0f5a
JD
9392011-01-19 Jan Djärv <jan.h.d@swipnet.se>
940
8beb828a
JD
941 * unexmacosx.c: Include config.h before unistd.h (Bug#7859).
942
fb9d0f5a
JD
943 * nsterm.m (ns_input_file, ns_input_font, ns_input_fontsize)
944 (ns_input_line, ns_input_color, ns_input_text, ns_working_text)
945 (ns_input_spi_name, ns_input_spi_arg)
946 (ns_alternate_modifier, ns_right_alternate_modifier)
947 (ns_command_modifier, ns_right_command_modifier, ns_control_modifier)
948 (ns_right_control_modifier, ns_function_modifier)
949 (ns_antialias_text, ns_confirm_quit): Move to globals.h.
950 (Vx_toolkit_scroll_bars, x_use_underline_position_properties)
951 (x_underline_at_descent_line): Remove declaration.
952 (syms_of_nsterm): Remove & from DEFVAR_LISP and DEFVAR_BOOL.
953
954 * nsselect.m (Vns_sent_selection_hooks, Vns_lost_selection_hooks
955 (Vselection_alist, Vselection_converter_alist): Move to globals.h.
956 (syms_of_nsselect): Remove & from DEFVAR_LISP.
957
958 * nsmenu.m (Voverriding_local_map, Voverriding_local_map_menu_flag):
959 Remove declaration.
960
961 * nsfont.m (Vns_reg_to_script, ns_antialias_text): Move to
962 globals.h.
963 (syms_of_nsfont): Remove & from DEFVAR_LISP.
964
965 * nsfns.m (Vmenu_bar_mode, Vtool_bar_mode): Remove declaration.
966 (Vns_icon_type_alist, Vns_version_string): Move to globals.h.
967 (syms_of_nsfns): Remove & from DEFVAR_LISP calls.
968
969 * globals.h (struct emacs_globals): Add f_ns_input_file,
970 f_ns_input_font, f_ns_input_fontsize, f_ns_input_line,
971 f_ns_input_color, f_ns_input_text, f_ns_working_text,
972 f_ns_input_spi_name, f_ns_input_spi_arg, f_ns_alternate_modifier,
973 f_ns_right_alternate_modifier, f_ns_command_modifier,
974 f_ns_right_command_modifier, f_ns_control_modifier,
975 f_ns_right_control_modifier, f_ns_function_modifier,
976 f_ns_antialias_text, f_ns_confirm_quit, f_Vns_icon_type_alist,
977 f_Vns_version_string, f_Vns_sent_selection_hooks,
978 f_Vns_lost_selection_hooks, f_Vselection_alist, f_Vns_reg_to_script
979 and corresponding defines.
980
981
4e55715e
SS
9822011-01-19 Sam Steingold <sds@gnu.org>
983
984 * w32.c (check_windows_init_file): Remove declarations of
985 Vwindow_system, Vload_path, Qfile_exists_p to fix compilation.
817a735d 986 * w32fns.c: Fix an error introduced by the previous patch.
4e55715e 987
ef79d2fa
TT
9882011-01-19 Tom Tromey <tromey@redhat.com>
989
990 * window.c: Fix error introduced by previous patch.
991
29208e82
TT
9922011-01-18 Tom Tromey <tromey@parfait>
993
994 * globals.h: New file.
995 * xterm.h (Vx_pixel_size_width_font_regexp): Remove declaration.
996 * window.h (Vinitial_window_system, Vminibuf_scroll_window)
997 (Vwindow_system_version): Remove declaration.
998 * w32term.h (Vw32_enable_palette)
999 (Vx_pixel_size_width_font_regexp): Remove declaration.
1000 * w32menu.c (Voverriding_local_map)
1001 (Voverriding_local_map_menu_flag): Remove declaration.
1002 * w32inevt.c (Vw32_alt_is_meta, Vw32_apps_modifier)
1003 (Vw32_capslock_is_shiftlock, Vw32_enable_caps_lock)
1004 (Vw32_enable_num_lock, Vw32_lwindow_modifier)
1005 (Vw32_pass_lwindow_to_system, Vw32_pass_rwindow_to_system)
1006 (Vw32_phantom_key_code, Vw32_recognize_altgr)
1007 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
1008 (w32_use_full_screen_buffer): Remove declaration.
1009 * w32.c (Vsystem_configuration, Vw32_downcase_file_names)
1010 (Vw32_generate_fake_inodes, Vw32_get_true_file_attributes)
1011 (w32_num_mouse_buttons, w32_pipe_read_delay): Remove declaration.
1012 * termopts.h (Vtruncate_partial_width_windows, inverse_video)
1013 (no_redraw_on_reenter, visible_bell): Remove declaration.
1014 * sysdep.c (Vsystem_name): Remove declaration.
1015 * syntax.h (parse_sexp_lookup_properties): Remove declaration.
1016 * menu.h (Vmenu_updating_frame): Remove declaration.
1017 * macros.h (Vexecuting_kbd_macro, executing_kbd_macro_index):
1018 Remove declaration.
1019 * lisp.h (Vafter_init_time, Vafter_load_alist)
1020 (Vauto_save_list_file_name, Vbefore_init_time, Vcommand_history)
1021 (Vcompletion_regexp_list, Vcurrent_load_list)
1022 (Vcurrent_prefix_arg, Vdata_directory, Vdebug_on_error)
1023 (Vdoc_directory, Vdoc_file_name, Vdynamic_library_alist)
1024 (Vexec_directory, Vexec_path, Vexec_suffixes)
1025 (Vface_font_rescale_alist, Vface_ignored_fonts, Vfeatures)
1026 (Vhelp_form, Vhistory_length, Vinhibit_field_text_motion)
1027 (Vinhibit_quit, Vinhibit_read_only, Vinhibit_redisplay)
1028 (Vinstallation_directory, Vinvocation_directory)
1029 (Vinvocation_name, Vload_file_rep_suffixes, Vload_history)
1030 (Vload_suffixes, Vmark_even_if_inactive, Vmemory_full)
1031 (Vmessage_log_max, Vobarray, Vprint_length, Vprint_level)
1032 (Vpurify_flag, Vquit_flag, Vsaved_region_selection)
1033 (Vscalable_fonts_allowed, Vselect_active_regions)
1034 (Vshell_file_name, Vstandard_input, Vstandard_output)
1035 (Vsystem_name, Vtemporary_file_directory, Vthrow_on_input)
1036 (Vtop_level, Vtty_erase_char, Vundo_outer_limit)
1037 (Vuser_login_name, Vwindow_scroll_functions)
1038 (Vwindow_system_version, Vx_no_window_manager)
1039 (Vx_resource_class, Vx_resource_name, baud_rate)
1040 (completion_ignore_case, debug_on_next_call, gc_cons_threshold)
1041 (history_delete_duplicates, inhibit_x_resources)
1042 (last_nonmenu_event, load_in_progress, max_specpdl_size)
1043 (minibuffer_auto_raise, print_escape_newlines, scroll_margin)
1044 (use_dialog_box, use_file_dialog): Remove declaration. Include
1045 globals.h.
1046 * keymap.h (Voverriding_local_map)
1047 (Voverriding_local_map_menu_flag, meta_prefix_char): Remove
1048 declaration.
1049 * keyboard.h (Vdouble_click_time, Vfunction_key_map)
1050 (Vinput_method_function, Vkey_translation_map)
1051 (Vlucid_menu_bar_dirty_flag, Vthis_original_command)
1052 (do_mouse_tracking, extra_keyboard_modifiers)
1053 (num_nonmacro_input_events): Remove declaration.
1054 * intervals.h (Vchar_property_alias_alist)
1055 (Vdefault_text_properties, Vinhibit_point_motion_hooks)
1056 (Vtext_property_default_nonsticky): Remove declaration.
1057 * gtkutil.h (x_gtk_file_dialog_help_text)
1058 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
1059 (x_gtk_whole_detached_tool_bar): Remove declaration.
1060 * frame.h (Vdefault_frame_alist, Vframe_alpha_lower_limit)
1061 (Vmenu_bar_mode, Vmouse_highlight, Vterminal_frame)
1062 (Vtool_bar_mode, Vx_resource_class, Vx_resource_name)
1063 (focus_follows_mouse): Remove declaration.
1064 * fontset.h (Valternate_fontname_alist, Vfontset_alias_alist)
1065 (Vignore_relative_composition, Votf_script_alist)
1066 (Vuse_default_ascent, Vvertical_centering_font_regexp): Remove
1067 declaration.
1068 * font.h (Vfont_log): Remove declaration.
1069 * dosfns.h (Vdos_display_scancodes, Vdos_version)
1070 (Vdos_windows_version, dos_codepage, dos_country_code)
1071 (dos_decimal_point, dos_hyper_key, dos_keyboard_layout)
1072 (dos_keypad_mode, dos_super_key, dos_timezone_offset): Remove
1073 declaration.
1074 * disptab.h (Vglyph_table, Vstandard_display_table): Remove
1075 declaration.
1076 * dispextern.h (Vface_remapping_alist, Vglyphless_char_display)
1077 (Vmouse_autoselect_window, Voverflow_newline_into_fringe)
1078 (Vshow_trailing_whitespace, Vtool_bar_button_margin)
1079 (Vtool_bar_style, cursor_in_echo_area, display_hourglass_p)
1080 (inverse_video, mode_line_in_non_selected_windows)
1081 (tool_bar_button_relief, tool_bar_max_label_size)
1082 (underline_minimum_offset)
1083 (unibyte_display_via_language_environment, x_stretch_cursor_p):
1084 Remove declaration.
1085 * composite.h (Vauto_composition_function)
1086 (Vcomposition_function_table): Remove declaration.
1087 * commands.h (Vexecuting_kbd_macro)
1088 (Vminibuffer_local_completion_map)
1089 (Vminibuffer_local_filename_completion_map)
1090 (Vminibuffer_local_filename_must_match_map)
1091 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
1092 (Vminibuffer_local_ns_map, Vthis_command)
1093 (Vunread_command_events, cursor_in_echo_area)
1094 (last_command_event, last_nonmenu_event, unread_command_char):
1095 Remove declaration.
1096 * coding.h (Vcoding_system_for_read, Vcoding_system_for_write)
1097 (Vdefault_file_name_coding_system)
1098 (Vdefault_process_coding_system, Vfile_name_coding_system)
1099 (Vlast_coding_system_used, Vlocale_coding_system)
1100 (Vselect_safe_coding_system_function)
1101 (Vtranslation_table_for_input, coding_system_require_warning)
1102 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
1103 (eol_mnemonic_unix, inherit_process_coding_system): Remove
1104 declaration.
1105 * charset.h (Vcharset_list, Vcurrent_iso639_language): Remove
1106 declaration.
1107 * character.h (Vauto_fill_chars, Vchar_direction_table)
1108 (Vchar_script_table, Vchar_width_table, Vprintable_chars)
1109 (Vscript_representative_chars, Vtranslation_table_vector)
1110 (Vunicode_category_table): Remove declaration.
1111 * ccl.h (Vfont_ccl_encoder_alist): Remove declaration.
1112 * buffer.h (Vafter_change_functions, Vbefore_change_functions)
1113 (Vdeactivate_mark, Vfirst_change_hook, Vtransient_mark_mode)
1114 (inhibit_modification_hooks): Remove declaration.
1115 * xterm.c (syms_of_xterm): Update.
1116 (Vx_alt_keysym, Vx_hyper_keysym, Vx_keysym_table)
1117 (Vx_meta_keysym, Vx_super_keysym, Vx_toolkit_scroll_bars)
1118 (x_mouse_click_focus_ignore_position)
1119 (x_underline_at_descent_line)
1120 (x_use_underline_position_properties): Remove.
1121 * xsmfns.c (syms_of_xsmfns): Update.
1122 (Vx_session_id, Vx_session_previous_id): Remove.
1123 * xsettings.c (syms_of_xsettings): Update.
1124 (Vxft_settings, use_system_font): Remove.
1125 * xselect.c (syms_of_xselect): Update.
1126 (Vselection_converter_alist, Vx_lost_selection_functions)
1127 (Vx_sent_selection_functions, x_selection_timeout): Remove.
1128 * xfns.c (syms_of_xfns): Update.
1129 (Vgtk_version_string, Vmotif_version_string)
1130 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
1131 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
1132 (Vx_no_window_manager, Vx_nontext_pointer_shape)
1133 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
1134 (Vx_sensitive_text_pointer_shape)
1135 (Vx_window_horizontal_drag_shape, x_gtk_file_dialog_help_text)
1136 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
1137 (x_gtk_use_system_tooltips, x_gtk_whole_detached_tool_bar):
1138 Remove.
1139 * xfaces.c (syms_of_xfaces): Update.
1140 (Vface_default_stipple, Vface_font_rescale_alist)
1141 (Vface_ignored_fonts, Vface_new_frame_defaults)
1142 (Vface_remapping_alist, Vfont_list_limit)
1143 (Vscalable_fonts_allowed, Vtty_defined_color_alist): Remove.
1144 * xdisp.c (syms_of_xdisp): Update.
1145 (Vauto_resize_tool_bars, Vblink_cursor_alist)
1146 (Vdisplay_pixels_per_inch, Vfontification_functions)
1147 (Vframe_title_format, Vglobal_mode_string)
1148 (Vglyphless_char_display, Vhourglass_delay, Vhscroll_step)
1149 (Vicon_title_format, Vinhibit_redisplay)
1150 (Vline_number_display_limit, Vline_prefix)
1151 (Vmax_mini_window_height, Vmenu_bar_update_hook)
1152 (Vmenu_updating_frame, Vmessage_log_max)
1153 (Vmouse_autoselect_window, Vnobreak_char_display)
1154 (Voverlay_arrow_position, Voverlay_arrow_string)
1155 (Voverlay_arrow_variable_list, Vredisplay_end_trigger_functions)
1156 (Vresize_mini_windows, Vshow_trailing_whitespace)
1157 (Vtool_bar_border, Vtool_bar_button_margin, Vtool_bar_style)
1158 (Vtruncate_partial_width_windows, Vvoid_text_area_pointer)
1159 (Vwindow_scroll_functions, Vwindow_size_change_functions)
1160 (Vwindow_text_change_functions, Vwrap_prefix)
1161 (auto_raise_tool_bar_buttons_p, automatic_hscrolling_p)
1162 (debug_end_pos, display_hourglass_p, emacs_scroll_step)
1163 (highlight_nonselected_windows, hscroll_margin)
1164 (inhibit_eval_during_redisplay, inhibit_free_realized_faces)
1165 (inhibit_menubar_update, inhibit_try_cursor_movement)
1166 (inhibit_try_window_id, inhibit_try_window_reusing)
1167 (line_number_display_limit_width)
1168 (make_cursor_line_fully_visible_p, message_truncate_lines)
1169 (mode_line_inverse_video, multiple_frames, overline_margin)
1170 (scroll_conservatively, scroll_margin, tool_bar_button_relief)
1171 (tool_bar_max_label_size, underline_minimum_offset)
1172 (unibyte_display_via_language_environment, x_stretch_cursor_p):
1173 Remove.
1174 * window.c (syms_of_window): Update.
1175 (Vminibuf_scroll_window, Vother_window_scroll_buffer)
1176 (Vrecenter_redisplay, Vscroll_preserve_screen_position)
1177 (Vtemp_buffer_show_function, Vwindow_configuration_change_hook)
1178 (Vwindow_point_insertion_type, auto_window_vscroll_p)
1179 (mode_line_in_non_selected_windows, next_screen_context_lines)
1180 (window_min_height, window_min_width): Remove.
1181 (scroll_margin): Remove declaration.
1182 * w32term.c (syms_of_w32term): Update.
1183 (Vw32_capslock_is_shiftlock, Vw32_grab_focus_on_raise)
1184 (Vw32_recognize_altgr, Vw32_swap_mouse_buttons)
1185 (Vx_toolkit_scroll_bars, w32_num_mouse_buttons)
1186 (w32_use_visible_system_caret, x_underline_at_descent_line)
1187 (x_use_underline_position_properties): Remove.
1188 (Vcommand_line_args, Vsystem_name, extra_keyboard_modifiers):
1189 Remove declaration.
1190 * w32select.c (syms_of_w32select): Update.
1191 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
1192 * w32proc.c (syms_of_ntproc): Update.
1193 (Vw32_downcase_file_names, Vw32_generate_fake_inodes)
1194 (Vw32_get_true_file_attributes, Vw32_quote_process_args)
1195 (Vw32_start_process_inherit_error_mode)
1196 (Vw32_start_process_share_console)
1197 (Vw32_start_process_show_window, w32_pipe_read_delay): Remove.
1198 (Vsystem_name): Remove declaration.
1199 * w32font.c (syms_of_w32font): Update.
1200 (Vw32_charset_info_alist): Remove.
1201 * w32fns.c (globals_of_w32fns, syms_of_w32fns): Update.
1202 (Vw32_alt_is_meta, Vw32_apps_modifier, Vw32_bdf_filename_alist)
1203 (Vw32_color_map, Vw32_enable_caps_lock, Vw32_enable_num_lock)
1204 (Vw32_enable_palette, Vw32_lwindow_modifier)
1205 (Vw32_pass_alt_to_system, Vw32_pass_lwindow_to_system)
1206 (Vw32_pass_rwindow_to_system, Vw32_phantom_key_code)
1207 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
1208 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
1209 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
1210 (Vx_no_window_manager, Vx_nontext_pointer_shape)
1211 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
1212 (Vx_sensitive_text_pointer_shape)
1213 (Vx_window_horizontal_drag_shape, w32_ansi_code_page)
1214 (w32_enable_synthesized_fonts, w32_mouse_button_tolerance)
1215 (w32_mouse_move_interval)
1216 (w32_pass_extra_mouse_buttons_to_system)
1217 (w32_pass_multimedia_buttons_to_system, w32_quit_key)
1218 (w32_strict_fontnames, w32_strict_painting): Remove.
1219 (Vhourglass_delay, Vmenu_bar_mode, Vtool_bar_mode)
1220 (Vw32_recognize_altgr, Vwindow_system_version)
1221 (w32_num_mouse_buttons, w32_use_visible_system_caret): Remove
1222 declaration.
1223 * w32console.c (syms_of_ntterm): Update.
1224 (w32_use_full_screen_buffer): Remove.
1225 (Vtty_defined_color_alist): Remove declaration.
1226 * w16select.c (syms_of_win16select): Update.
1227 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
1228 * undo.c (syms_of_undo): Update.
1229 (Vundo_outer_limit, Vundo_outer_limit_function)
1230 (undo_inhibit_record_point, undo_limit, undo_strong_limit):
1231 Remove.
1232 * textprop.c (syms_of_textprop): Update.
1233 (Vchar_property_alias_alist, Vdefault_text_properties)
1234 (Vinhibit_point_motion_hooks, Vtext_property_default_nonsticky):
1235 Remove.
1236 * terminal.c (syms_of_terminal): Update.
1237 (Vdelete_terminal_functions, Vring_bell_function): Remove.
1238 * term.c (syms_of_term): Update.
1239 (Vresume_tty_functions, Vsuspend_tty_functions)
1240 (no_redraw_on_reenter, system_uses_terminfo, visible_cursor):
1241 Remove.
1242 * syntax.c (syms_of_syntax): Update.
1243 (Vfind_word_boundary_function_table, multibyte_syntax_as_symbol)
1244 (open_paren_in_column_0_is_defun_start)
1245 (parse_sexp_ignore_comments, parse_sexp_lookup_properties)
1246 (words_include_escapes): Remove.
1247 * search.c (syms_of_search): Update.
1248 (Vinhibit_changing_match_data, Vsearch_spaces_regexp): Remove.
1249 * process.c (syms_of_process): Update.
1250 (Vprocess_adaptive_read_buffering, Vprocess_connection_type)
1251 (delete_exited_processes): Remove.
1252 * print.c (syms_of_print): Update.
1253 (Vfloat_output_format, Vprint_charset_text_property)
1254 (Vprint_circle, Vprint_continuous_numbering, Vprint_gensym)
1255 (Vprint_length, Vprint_level, Vprint_number_table)
1256 (Vstandard_output, print_escape_multibyte)
1257 (print_escape_newlines, print_escape_nonascii, print_quoted):
1258 Remove.
1259 * msdos.c (syms_of_msdos): Update.
1260 (Vdos_unsupported_char_glyph): Remove.
1261 (unibyte_display_via_language_environment): Remove declaration.
1262 * minibuf.c (syms_of_minibuf): Update.
1263 (Vcompletion_regexp_list, Vhistory_add_new_input)
1264 (Vhistory_length, Vminibuffer_completing_file_name)
1265 (Vminibuffer_completion_confirm)
1266 (Vminibuffer_completion_predicate, Vminibuffer_completion_table)
1267 (Vminibuffer_exit_hook, Vminibuffer_help_form)
1268 (Vminibuffer_history_position, Vminibuffer_history_variable)
1269 (Vminibuffer_prompt_properties, Vminibuffer_setup_hook)
1270 (Vread_buffer_function, Vread_expression_map)
1271 (completion_ignore_case, enable_recursive_minibuffers)
1272 (history_delete_duplicates, minibuffer_allow_text_properties)
1273 (minibuffer_auto_raise, read_buffer_completion_ignore_case):
1274 Remove.
1275 * marker.c (syms_of_marker): Update.
1276 (byte_debug_flag): Remove.
1277 * macros.c (syms_of_macros): Update.
1278 (Vexecuting_kbd_macro, executing_kbd_macro_index): Remove.
1279 * lread.c (syms_of_lread): Update.
1280 (Vafter_load_alist, Vbyte_boolean_vars)
1281 (Vbytecomp_version_regexp, Vcurrent_load_list)
1282 (Veval_buffer_list, Vload_file_name, Vload_file_rep_suffixes)
1283 (Vload_history, Vload_path, Vload_read_function)
1284 (Vload_source_file_function, Vload_suffixes, Vobarray)
1285 (Vold_style_backquotes, Vpreloaded_file_list, Vread_circle)
1286 (Vread_symbol_positions_list, Vread_with_symbol_positions)
1287 (Vsource_directory, Vstandard_input, Vuser_init_file, Vvalues)
1288 (force_load_messages, load_convert_to_unibyte)
1289 (load_dangerous_libraries, load_force_doc_strings)
1290 (load_in_progress): Remove.
1291 * keymap.c (syms_of_keymap): Update.
1292 (Vdefine_key_rebound_commands, Vemulation_mode_map_alists)
1293 (Vminibuffer_local_completion_map)
1294 (Vminibuffer_local_filename_completion_map)
1295 (Vminibuffer_local_filename_must_match_map)
1296 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
1297 (Vminibuffer_local_ns_map, Vminor_mode_map_alist)
1298 (Vminor_mode_overriding_map_alist, Vwhere_is_preferred_modifier):
1299 Remove.
1300 * keyboard.c (syms_of_keyboard): Update.
1301 (Vauto_save_timeout, Vcommand_error_function)
1302 (Vcommand_hook_internal, Vdeactivate_mark)
1303 (Vdeferred_action_function, Vdeferred_action_list)
1304 (Vdisable_point_adjustment, Vdouble_click_time)
1305 (Vecho_keystrokes, Venable_disabled_menus_and_buttons)
1306 (Vfunction_key_map, Vglobal_disable_point_adjustment)
1307 (Vhelp_char, Vhelp_event_list, Vhelp_form)
1308 (Vinput_method_function, Vinput_method_previous_message)
1309 (Vkey_translation_map, Vlast_event_frame)
1310 (Vlucid_menu_bar_dirty_flag, Vmenu_bar_final_items)
1311 (Vminibuffer_message_timeout, Voverriding_local_map)
1312 (Voverriding_local_map_menu_flag, Vpost_command_hook)
1313 (Vpre_command_hook, Vprefix_help_command)
1314 (Vsaved_region_selection, Vselect_active_regions)
1315 (Vshow_help_function, Vspecial_event_map, Vsuggest_key_bindings)
1316 (Vthis_command, Vthis_command_keys_shift_translated)
1317 (Vthis_original_command, Vthrow_on_input, Vtimer_idle_list)
1318 (Vtimer_list, Vtool_bar_separator_image_expression, Vtop_level)
1319 (Vtty_erase_char, Vunread_command_events)
1320 (Vunread_input_method_events, Vunread_post_input_method_events)
1321 (auto_save_interval, cannot_suspend, do_mouse_tracking)
1322 (double_click_fuzz, extra_keyboard_modifiers)
1323 (inhibit_local_menu_bar_menus, last_command_event)
1324 (last_input_event, last_nonmenu_event, menu_prompt_more_char)
1325 (menu_prompting, meta_prefix_char, num_input_keys)
1326 (num_nonmacro_input_events, polling_period, unread_command_char):
1327 Remove.
1328 * insdel.c (syms_of_insdel): Update.
1329 (Vcombine_after_change_calls, check_markers_debug_flag): Remove.
1330 * indent.c (syms_of_indent): Update.
1331 (indent_tabs_mode): Remove.
1332 * image.c (syms_of_image): Update.
1333 (Vimage_cache_eviction_delay, Vimage_types)
1334 (Vimagemagick_render_type, Vmax_image_size, Vx_bitmap_file_path)
1335 (cross_disabled_images): Remove.
1336 * fringe.c (syms_of_fringe): Update.
1337 (Vfringe_bitmaps, Voverflow_newline_into_fringe): Remove.
1338 * frame.c (syms_of_frame): Update.
1339 (Vdefault_frame_alist, Vdefault_frame_scroll_bars)
1340 (Vdelete_frame_functions, Vframe_alpha_lower_limit)
1341 (Vmake_pointer_invisible, Vmenu_bar_mode, Vmouse_highlight)
1342 (Vmouse_position_function, Vterminal_frame, Vtool_bar_mode)
1343 (Vx_resource_class, Vx_resource_name, focus_follows_mouse):
1344 Remove.
1345 * fontset.c (syms_of_fontset): Update.
1346 (Valternate_fontname_alist, Vfont_encoding_charset_alist)
1347 (Vfontset_alias_alist, Vignore_relative_composition)
1348 (Votf_script_alist, Vuse_default_ascent)
1349 (Vvertical_centering_font_regexp): Remove.
1350 * font.c (syms_of_font): Update.
1351 (Vfont_encoding_alist, Vfont_log, Vfont_slant_table)
1352 (Vfont_weight_table, Vfont_width_table): Remove.
1353 * fns.c (syms_of_fns): Update.
1354 (Vfeatures, use_dialog_box, use_file_dialog): Remove.
1355 * filelock.c (syms_of_filelock): Update.
1356 (Vtemporary_file_directory): Remove.
1357 * fileio.c (syms_of_fileio): Update.
1358 (Vafter_insert_file_functions, Vauto_save_include_big_deletions)
1359 (Vauto_save_list_file_name, Vauto_save_visited_file_name)
1360 (Vdefault_file_name_coding_system, Vfile_name_coding_system)
1361 (Vfile_name_handler_alist, Vinhibit_file_name_handlers)
1362 (Vinhibit_file_name_operation, Vset_auto_coding_function)
1363 (Vwrite_region_annotate_functions)
1364 (Vwrite_region_annotations_so_far)
1365 (Vwrite_region_post_annotation_function)
1366 (delete_by_moving_to_trash, write_region_inhibit_fsync): Remove.
1367 (Vw32_get_true_file_attributes): Remove declaration.
1368 * eval.c (syms_of_eval): Update.
1369 (Vdebug_ignored_errors, Vdebug_on_error, Vdebug_on_signal)
1370 (Vdebugger, Vinhibit_quit, Vmacro_declaration_function)
1371 (Vquit_flag, Vsignal_hook_function, Vstack_trace_on_error)
1372 (debug_on_next_call, debug_on_quit, debugger_may_continue)
1373 (max_lisp_eval_depth, max_specpdl_size): Remove.
1374 * emacs.c (syms_of_emacs): Update.
1375 (Vafter_init_time, Vbefore_init_time, Vcommand_line_args)
1376 (Vdynamic_library_alist, Vemacs_copyright, Vemacs_version)
1377 (Vinstallation_directory, Vinvocation_directory)
1378 (Vinvocation_name, Vkill_emacs_hook, Vpath_separator)
1379 (Vprevious_system_messages_locale, Vprevious_system_time_locale)
1380 (Vsystem_configuration, Vsystem_configuration_options)
1381 (Vsystem_messages_locale, Vsystem_time_locale, Vsystem_type)
1382 (inhibit_x_resources, noninteractive1): Remove.
1383 * editfns.c (syms_of_editfns): Update.
1384 (Vbuffer_access_fontified_property)
1385 (Vbuffer_access_fontify_functions, Vinhibit_field_text_motion)
1386 (Voperating_system_release, Vsystem_name, Vuser_full_name)
1387 (Vuser_login_name, Vuser_real_login_name): Remove.
1388 * dosfns.c (syms_of_dosfns): Update.
1389 (Vdos_display_scancodes, Vdos_version, Vdos_windows_version)
1390 (dos_codepage, dos_country_code, dos_decimal_point)
1391 (dos_hyper_key, dos_keyboard_layout, dos_keypad_mode)
1392 (dos_super_key, dos_timezone_offset): Remove.
1393 * doc.c (syms_of_doc): Update.
1394 (Vbuild_files, Vdoc_file_name): Remove.
1395 * dispnew.c (syms_of_display): Update.
1396 (Vglyph_table, Vinitial_window_system)
1397 (Vredisplay_preemption_period, Vstandard_display_table)
1398 (Vwindow_system_version, baud_rate, cursor_in_echo_area)
1399 (inverse_video, redisplay_dont_pause, visible_bell): Remove.
1400 * dired.c (syms_of_dired): Update.
1401 (Vcompletion_ignored_extensions): Remove.
1402 (Vw32_get_true_file_attributes): Remove declaration.
1403 * dbusbind.c (syms_of_dbusbind): Update.
1404 (Vdbus_debug, Vdbus_registered_buses)
1405 (Vdbus_registered_objects_table): Remove.
1406 * data.c (syms_of_data): Update.
1407 (Vmost_negative_fixnum, Vmost_positive_fixnum): Remove.
1408 * composite.c (syms_of_composite): Update.
1409 (Vauto_composition_function, Vauto_composition_mode)
1410 (Vcompose_chars_after_function, Vcomposition_function_table):
1411 Remove.
1412 * coding.c (syms_of_coding): Update.
1413 (Vcharset_revision_table, Vcoding_category_list)
1414 (Vcoding_system_alist, Vcoding_system_for_read)
1415 (Vcoding_system_for_write, Vcoding_system_list)
1416 (Vdefault_process_coding_system, Venable_character_translation)
1417 (Vfile_coding_system_alist, Vlast_code_conversion_error)
1418 (Vlast_coding_system_used, Vlatin_extra_code_table)
1419 (Vlocale_coding_system, Vnetwork_coding_system_alist)
1420 (Vprocess_coding_system_alist)
1421 (Vselect_safe_coding_system_function)
1422 (Vstandard_translation_table_for_decode)
1423 (Vstandard_translation_table_for_encode)
1424 (Vtranslation_table_for_input, coding_system_require_warning)
1425 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
1426 (eol_mnemonic_unix, inherit_process_coding_system)
1427 (inhibit_eol_conversion, inhibit_iso_escape_detection)
1428 (inhibit_null_byte_detection): Remove.
1429 * cmds.c (syms_of_cmds): Update.
1430 (Vpost_self_insert_hook): Remove.
1431 * charset.c (syms_of_charset): Update.
1432 (Vcharset_list, Vcharset_map_path, Vcurrent_iso639_language)
1433 (inhibit_load_charset_map): Remove.
1434 * character.c (syms_of_character): Update.
1435 (Vauto_fill_chars, Vchar_direction_table, Vchar_script_table)
1436 (Vchar_width_table, Vprintable_chars)
1437 (Vscript_representative_chars, Vtranslation_table_vector)
1438 (Vunicode_category_table): Remove.
1439 * ccl.c (syms_of_ccl): Update.
1440 (Vcode_conversion_map_vector, Vfont_ccl_encoder_alist)
1441 (Vtranslation_hash_table_vector): Remove.
1442 * category.c (syms_of_category): Update.
1443 (Vword_combining_categories, Vword_separating_categories): Remove.
1444 * callproc.c (syms_of_callproc): Update.
1445 (Vconfigure_info_directory, Vdata_directory, Vdoc_directory)
1446 (Vexec_directory, Vexec_path, Vexec_suffixes)
1447 (Vinitial_environment, Vprocess_environment)
1448 (Vshared_game_score_directory, Vshell_file_name): Remove.
1449 * callint.c (syms_of_callint): Update.
1450 (Vcommand_debug_status, Vcommand_history, Vcurrent_prefix_arg)
1451 (Vmark_even_if_inactive, Vmouse_leave_buffer_hook): Remove.
1452 * bytecode.c (syms_of_bytecode): Update.
1453 (Vbyte_code_meter, byte_metering_on): Remove.
1454 * buffer.c (syms_of_buffer): Update.
1455 (Vafter_change_functions, Vbefore_change_functions)
1456 (Vchange_major_mode_hook, Vfirst_change_hook)
1457 (Vinhibit_read_only, Vkill_buffer_query_functions)
1458 (Vtransient_mark_mode, inhibit_modification_hooks): Remove.
1459 * alloc.c (syms_of_alloc): Update.
1460 (Vgc_cons_percentage, Vgc_elapsed, Vmemory_full)
1461 (Vmemory_signal_data, Vpost_gc_hook, Vpurify_flag)
1462 (cons_cells_consed, floats_consed, garbage_collection_messages)
1463 (gc_cons_threshold, gcs_done, intervals_consed)
1464 (misc_objects_consed, pure_bytes_used, string_chars_consed)
1465 (strings_consed, symbols_consed, vector_cells_consed): Remove.
1466
1467 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
1468 (DEFVAR_INT): Assume global is in `globals'.
1469 * alloc.c (globals): Define.
1470
448c0820
TT
14712011-01-18 Tom Tromey <tromey@redhat.com>
1472
1473 * image.c (Vimagemagick_render_type): Remove redundant
1474 definition.
1475
8442d95d
TT
14762011-01-18 Tom Tromey <tromey@redhat.com>
1477
1478 * xdisp.c (emacs_scroll_step): Rename from scroll_step.
1479 (try_scrolling): Rename argument to 'arg_scroll_conservatively'.
1480 (redisplay_window): Update.
1481 (syms_of_xdisp): Update.
1482
cab0ba98
TT
14832011-01-18 Tom Tromey <tromey@redhat.com>
1484
1485 * gtkutil.h (x_gtk_use_old_file_dialog, x_gtk_show_hidden_files)
1486 (x_gtk_file_dialog_help_text, x_gtk_whole_detached_tool_bar):
1487 Declare.
1488 * gtkutil.c (xg_uses_old_file_dialog):
1489 (xg_get_file_with_chooser):
1490 (xg_tool_bar_detach_callback): Don't redeclare globals.
1491
422745d0
TT
14922011-01-18 Tom Tromey <tromey@redhat.com>
1493
1494 * lisp.h (DEFVAR_BUFFER_DEFAULTS): New macro.
1495 * buffer.c (syms_of_buffer): Use DEFVAR_BUFFER_DEFAULTS.
1496
7cae64b4
PE
14972011-01-18 Paul Eggert <eggert@cs.ucla.edu>
1498
1499 * lisp.h (DECL_ALIGN): Define if HAVE_ATTRIBUTE_ALIGNED, not if
1500 defined __GNUC__. ../configure now checks for this GCC feature,
1501 which is now also supported by IBM and Oracle compilers.
1502 (USE_LSB_TAG) [defined DECL_ALIGN]: Also define if defined __sun,
1503 since Solaris malloc returns mult-of-8.
1504
a9faac5c 15052011-01-18 Stefan Monnier <monnier@iro.umontreal.ca>
0514b4be
SM
1506
1507 * image.c (syms_of_image): Don't access XSYMBOL's internals directly.
1508
a3e44e79 15092011-01-17 Paul Eggert <eggert@cs.ucla.edu>
fa2c4f56 1510
6e8e6bf2
PE
1511 Give a name FLOAT_TO_STRING_BUFSIZE to the constant 350.
1512 * lisp.h (FLOAT_TO_STRING_BUFSIZE): New macro.
1513 * data.c (Fnumber_to_string): Use it.
1514 * print.c (float_to_string, print_object): Likewise.
1515
4004364e
PE
1516 Include <unistd.h> unilaterally.
1517 * alloc.c, atimer.c, buffer.c, callproc.c, dired.c, dispnew.c, doc.c:
1518 * doprnt.c, editfns.c, emacs.c, fileio.c, filelock.c, fns.c:
1519 * getloadavg.c, getpagesize.h, gmalloc.c, image.c, keyboard.c:
1520 * lread.c, process.c, process.h, ralloc.c, regex.c, sysdep.c:
1521 * systty.h, term.c, termcap.c, xfns.c, xrdb.c, xselect.c, xsmfns.c:
1522 * xterm.c:
1523 Include <unistd.h> without worrying about HAVE_UNISTD_H, since
1524 unistd.h is always present now, possibly supplied by gnulib.
1525
e84aba69
PE
1526 * mktime.c: Remove; moving to ../lib.
1527
1e11dbe3
PE
1528 Use gnulib's mktime module.
1529 * deps.mk (mktime.o): Remove rule.
1530
fa2c4f56
PE
1531 Use gnulib's ftoastr module.
1532 * print.c: Include ftoastr.h.
1533 (FLT_RADIX, DBL_MANT_DIG, DBL_DIG, DBL_MIN, DOUBLE_DIGITS_BOUND):
1534 Remove; no longer needed.
1535 (float_to_string): Use dtoastr rather than rolling our own code,
1536 which had an off-by-one bug on non-IEEE hosts.
1537
9a514d4a
PE
1538 Automate syncing from gnulib.
1539 * Makefile.in (lib): New macro.
1540 (ALL_CFLAGS): Add -I$(lib) -I$(srcdir)/../lib.
1541 ($(lib)/libgnu.a): New rule.
1542 (temacs$(EXEEXT)): Also link $(lib)/libgnu.a.
1543
717c30e0
PE
1544 * xfns.c (x_real_positions): Fix signedness of local var 'ign'.
1545 XGetGeometry wants unsigned int *, not int *, for its last 4 args,
1546 so change the type of 'ign' to unsigned int from int.
1547
8865d794
PE
1548 * regex.c (analyse_first): Remove unreachable 'continue' statement.
1549
4ef36a7b
PE
1550 * xterm.h (struct x_display_info): Remove stray semicolon.
1551 The extra semicolon didn't conform to the C standard.
1552 Problem reported by Sun cc.
1553
6df4097e
PE
1554 * lisp.h: Redo flags and XSET slightly to avoid overflow diagnostics.
1555 These changes make compilation easier to follow with Sun cc.
1556 (ARRAY_MARK_FLAG): Make it signed, so that it can be assigned to
1557 EMACS_INT values without provoking overflow diagnostics.
1558 (PSEUDOVECTOR_FLAG): Likewise, for consistency.
1559 (XSET) [! USE_LSB_TAG]: Use unsigned left shift to avoid overflow
1560 diagnostic with signed left shift.
9fba3563 1561
410ed5c3
PE
1562 * fileio.c (make_temp_name): Remove unreachable code.
1563
97be3ce3
PE
1564 * fontset.c (free_realized_fontset): Mark unreachable code with if (0).
1565 Previously it was marked by preceding it with "return;", but
1566 Sun cc complains about this.
1567
9fba3563
PE
1568 * coding.c (decode_coding_emacs_mule): Remove unreachable code.
1569 This is a typo left over from 2009-03-06T07:51:52Z!handa@m17n.org,
1570 which fixed Bug#2370. Caught by Sun cc.
1571
6dc1d2d3
MR
15722011-01-15 Martin Rudalics <rudalics@gmx.at>
1573
1574 * window.c (inhibit_point_swap): New variable.
1575 (Fselect_window): If inhibit_point_swap is nonzero, avoid swapping
1576 point this time.
1577 (Fset_window_configuration): Set inhibit_point_swap to 1 instead
1578 of setting selected_window to nil (Bug#7728).
1579
f853f599
TH
15802011-01-11 Tassilo Horn <tassilo@member.fsf.org>
1581
8dabbfd6
SM
1582 * image.c (imagemagick_load_image, Finit_image_library):
1583 Free intermediate image after creating a MagickWand from it.
1584 Terminate MagickWand environment after image loading.
f853f599 1585
2bc92a93
MA
15862011-01-10 Michael Albinus <michael.albinus@gmx.de>
1587
1588 * dbusbind.c (Fdbus_register_service): Raise an error in case of
1589 unexpected return values.
1590 (Fdbus_register_method): Remove connection initialization.
1591
15922011-01-10 Jan Moringen <jan.moringen@uni-bielefeld.de>
5b83ba18
MA
1593
1594 * dbusbind.c (QCdbus_request_name_allow_replacement): New symbol;
1595 used by Fdbus_register_service.
1596 (QCdbus_request_name_replace_existing): Likewise.
1597 (QCdbus_request_name_do_not_queue): Likewise.
1598 (QCdbus_request_name_reply_primary_owner): Likewise.
1599 (QCdbus_request_name_reply_in_queue): Likewise.
1600 (QCdbus_request_name_reply_exists): Likewise.
1601 (QCdbus_request_name_reply_already_owner): Likewise.
1602 (Fdbus_register_service): New function.
1603 (Fdbus_register_method): Use Fdbus_register_service to do the name
1604 registration.
1605 (syms_of_dbusbind): Add symbols dbus-register-service,
1606 :allow-replacement, :replace-existing, :do-not-queue,
1607 :primary-owner, :existing, :in-queue and :already-owner.
1608
21a76236
CY
16092011-01-09 Chong Yidong <cyd@stupidchicken.com>
1610
1611 * gtkutil.c (update_frame_tool_bar): Don't advance tool-bar index
1612 when removing extra buttons.
1613
3d91e302
CY
16142011-01-08 Chong Yidong <cyd@stupidchicken.com>
1615
1616 * fns.c (Fyes_or_no_p): Doc fix.
1617
0d23ffb5
AS
16182011-01-08 Andreas Schwab <schwab@linux-m68k.org>
1619
1620 * fns.c (Fyes_or_no_p): Add usage.
1621
9dc3366b
GM
16222011-01-08 Glenn Morris <rgm@gnu.org>
1623
d0981f82
GM
1624 * makefile.w32-in ($(EMACS)):
1625 * Makefile.in (emacs$(EXEEXT)): -batch implies -q.
1626
9dc3366b
GM
1627 * xdisp.c (syms_of_xdisp) <Qrisky_local_variable>: Move from here...
1628 * emacs.c (syms_of_emacs) <Qrisky_local_variable>: ...to here.
1629
466cbae9
AS
16302011-01-07 Andreas Schwab <schwab@linux-m68k.org>
1631
1632 * image.c (imagemagick_load_image): Fix some resource leaks and
1633 error handling.
1634
8c51d2a2
CY
16352011-01-07 Chong Yidong <cyd@stupidchicken.com>
1636
1637 * fns.c (Fyes_or_no_p): Accept format string args.
1638
66b7b0fe
GM
16392011-01-07 Glenn Morris <rgm@gnu.org>
1640
1641 * emacs.c (no_site_lisp): New int.
1642 (USAGE1): Add --no-site-lisp, mention -Q uses it.
1643 (main): Set no_site_lisp.
1644 (standard_args): Add --no-site-lisp.
1645 * lisp.h (no_site_lisp): New int.
1646 * lread.c (init_lread): If no_site_lisp, don't re-add site-lisp
1647 directories to Vload_path.
1648
2018939f
AS
16492011-01-05 Andreas Schwab <schwab@linux-m68k.org>
1650
1651 * alloc.c (mark_stack): Use __builtin_unwind_init if available.
1652
6ed843e5
MA
16532011-01-04 Jan Moringen <jan.moringen@uni-bielefeld.de>
1654
8dabbfd6 1655 * dbusbind.c (Fdbus_register_method): Add optional parameter
6ed843e5
MA
1656 dont_register_service. Updated docstring accordingly.
1657
3f9b7090
GM
16582011-01-04 Glenn Morris <rgm@gnu.org>
1659
1660 * emacs.c (emacs_copyright): Update short copyright year to 2011.
1661
d82bce4a
EZ
16622011-01-03 Eli Zaretskii <eliz@gnu.org>
1663
1664 * image.c (png_jmpbuf): Remove definition.
1665 (my_png_error, png_load): Don't use png_jmpbuf.
1666
7c420169
CY
16672011-01-02 Eli Zaretskii <eliz@gnu.org>
1668
1669 * keyboard.c (Vselect_active_regions): Doc fix. (Bug#7702)
1670
16712011-01-02 Eli Zaretskii <eliz@gnu.org>
5be1c984
EZ
1672
1673 * image.c <Qlibpng_version>: New variable.
1674 (syms_of_image): Intern and staticpro it. Set its value to the
1675 version of PNG library we were compiled with.
1676 (my_png_error, png_load): Avoid GCC warnings about direct access
1677 to png_ptr->jmpbuf. (Bug#7716)
18da2e74
EZ
1678 (png_jmpbuf): New macro.
1679 (my_png_error, png_load): Use it instead of #ifdef'ing according
1680 to PNG_LIBPNG_VER_MAJOR and PNG_LIBPNG_VER_MINOR.
5be1c984 1681
7c420169 16822011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
cf07311b
SM
1683
1684 * .gdbinit (xgetptr): Fix the union+lsb case.
1685 (xbacktrace): Fix the union case.
1686
7c420169 16872011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
794b75c7
SM
1688
1689 * window.c (Fmove_to_window_line): Avoid abort when called in a buffer
1690 different from selected-window's.
1691
7c420169 16922011-01-02 Eli Zaretskii <eliz@gnu.org>
2e4ab211 1693
71fe378d
EZ
1694 * keyboard.c (parse_menu_item): Prepend " " to the key sequence
1695 equivalent of a menu item when the key sequence is given by the
1696 `:keys' attribute. (Bug#7662)
1697
2e4ab211
EZ
1698 * xdisp.c (Fformat_mode_line): Doc fix: no need to state that only
1699 the basic faces are supported.
1700
7c420169 17012011-01-02 Jan Djärv <jan.h.d@swipnet.se>
84595ff0
JD
1702
1703 * xterm.c (x_check_fullscreen): Fix pixel/character mixup.
1704
7c420169 17052011-01-02 Eli Zaretskii <eliz@gnu.org>
30d621a2
EZ
1706
1707 * xdisp.c (Fformat_mode_line): Fix last change.
1708
7c420169 17092011-01-02 Chong Yidong <cyd@stupidchicken.com>
4bf3e46e
CY
1710
1711 * xdisp.c (Fformat_mode_line): Restrict the FACE argument to basic
1712 faces (Bug#7587).
1713
7c420169 17142011-01-02 Eli Zaretskii <eliz@gnu.org>
1b2a627f
EZ
1715
1716 * fileio.c (Fexpand_file_name): One more doc fix.
1717
3afff00e
CY
17182011-01-01 Chong Yidong <cyd@stupidchicken.com>
1719
1720 * gtkutil.c (xg_get_tool_bar_widgets): Use NULL for a missing
1721 image or label in the container.
1722 (xg_make_tool_item): Replace VERT_ONLY arg with HORIZ, TEXT_IMAGE.
1723 (xg_show_toolbar_item): Function deleted.
1724 (xg_tool_item_stale_p): New function.
1725 (update_frame_tool_bar): Calculate tool-bar style once per call.
1726 Instead of hiding text labels, omit them. Don't use
1727 xg_show_toolbar_item; create new GtkToolItems from scratch if
1728 necessary, instead of trying to re-use them. This avoids an
1729 annoying animation when changing tool-bars.
1730
aeb7e951
JD
17312010-12-31 Jan Djärv <jan.h.d@swipnet.se>
1732
1733 * nsfns.m (ns_set_name_as_filename): Always use buffer name for
1734 title and buffer filename only for RepresentedFilename.
1735 Handle bad UTF-8 in buffer name (Bug#7517).
1736
5bbb4727
JD
17372010-12-30 Jan Djärv <jan.h.d@swipnet.se>
1738
1739 * coding.h (ENCODE_UTF_8): Remove "Used by ..." comment.
1740
1741 * nsfns.m (ns_set_name_iconic): Remove.
1742 (ns_set_name_internal): New function (Bug#7517).
1743 (Vicon_title_format): Extern declare.
1744 (ns_set_name): Call ns_set_name_internal.
1745 (x_explicitly_set_name): Remove call to ns_set_name_iconic.
1746 (x_implicitly_set_name): Ditto.
1747 (x_set_title): Remove commet about EXPLICIT. Call ns_set_name_internal.
1748 (ns_set_name_as_filename): Encode name with ENCODE_UTF_8 (Bug#7517).
1749
f1aab3ff
ŠN
17502010-12-29 Štěpán Němec <stepnem@gmail.com> (tiny change)
1751
1752 * window.c (syms_of_window): Add missing defsubr for
1753 window-use-time.
1754
365525b3
AS
17552010-12-28 Andreas Schwab <schwab@linux-m68k.org>
1756
1757 * xterm.h (x_alloc_lighter_color_for_widget): Restore declaration.
1758 * xterm.c (x_alloc_lighter_color_for_widget): Restore.
1759
59fc5cf9
AS
17602010-12-27 Andreas Schwab <schwab@linux-m68k.org>
1761
2f7c71a1
AS
1762 * buffer.c: Remove unused declarations.
1763 * buffer.h: Likewise.
1764 * charset.h: Likewise.
1765 * composite.h: Likewise.
1766 * dispextern.h: Likewise.
1767 * dispnew.c: Likewise.
1768 * font.h: Likewise.
1769 * fontset.c: Likewise.
1770 * fontset.h: Likewise.
1771 * intervals.h: Likewise.
1772 * keymap.h: Likewise.
1773 * lisp.h: Likewise.
1774 * syntax.c: Likewise.
1775 * syntax.h: Likewise.
1776 * termhooks.h: Likewise.
1777 * window.h: Likewise.
1778 * xsettings.h: Likewise.
1779 * xterm.c: Likewise.
1780 * xterm.h: Likewise.
1781
1782 * chartab.c (sub_char_table_ref): Make static.
1783 * dispnew.c (line_hash_code, required_matrix_height)
1784 (required_matrix_width): Likewise.
1785 * eval.c (interactive_p, apply_lambda): Likewise.
1786 * fns.c (string_make_multibyte, copy_hash_table, hash_clear):
1787 Likewise.
1788 * font.c (QCadstyle, QCregistry, font_make_spec)
1789 (font_parse_fcname, font_encode_char, font_at): Likewise.
1790 * frame.c (x_frame_get_arg): Likewise.
1791 * keymap.c (get_keyelt): Likewise.
1792 * lread.c (read_filtered_event): Likewise.
1793 * print.c (write_string_1): Likewise.
1794 * window.c (delete_window, window_height, window_width)
1795 (foreach_window): Likewise.
1796 * xrdb.c (x_get_customization_string, x_get_resource): Likewise.
1797 * xterm.c (x_scroll_bar_clear, xembed_set_info)
1798 (xembed_send_message): Likewise.
1799
1800 * eval.c (run_hook_list_with_args): Delete.
1801 * font.c (font_unparse_gtkname, font_update_lface): Likewise.
1802 * terminal.c (get_terminal_param): Likewise.
1803 * xterm.c (x_alloc_lighter_color_for_widget): Likewise.
1804
c4b607ed
AS
1805 * scroll.c: Fix comment.
1806
59fc5cf9
AS
1807 * dispnew.c (add_window_display_history)
1808 (add_frame_display_history, glyph_row_slice_p)
1809 (find_glyph_row_slice, flush_stdout)
1810 (check_matrix_pointer_lossage, matrix_row)
1811 (check_matrix_invariants, check_window_matrix_pointers)
1812 (check_matrix_pointers, window_to_frame_vpos)
1813 (window_to_frame_hpos): Prototize.
1814 * textprop.c (erase_properties): Likewise.
1815
a65b85b5
SM
18162010-12-22 Stefan Monnier <monnier@iro.umontreal.ca>
1817
17870c01
SM
1818 * print.c (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): Remove.
1819 (print_preprocess): Fix handling of uninterned symbols in last change.
1820
a65b85b5
SM
1821 * print.c (print, print_preprocess, print_object): Use a hash table
1822 rather than a linear table for Vprint_number_table.
1823
f13183cf
CY
18242010-12-20 Chong Yidong <cyd@stupidchicken.com>
1825
1826 * frame.c (focus_follows_mouse): Default to 0 (Bug#7269).
1827
94975270
CY
18282010-12-20 Chong Yidong <cyd@stupidchicken.com>
1829
1830 * keyboard.c (Vtool_bar_separator_image_expression): New variable.
1831 (parse_tool_bar_item): Use it to obtain image separators for
1832 displays not using native tool-bar separators.
1833
1834 * xdisp.c (build_desired_tool_bar_string): Don't handle separators
1835 specially, since this is now done in parse_tool_bar_item.
1836
ef1b0ba7
SM
18372010-12-19 Stefan Monnier <monnier@iro.umontreal.ca>
1838
1839 Minor clean up to silence some gcc warnings.
1840 * window.c (Fset_window_buffer):
1841 * xterm.c (x_set_frame_alpha): Restructure code to silence
1842 compiler warning.
1843 (handle_one_xevent): Remove unused var `p'.
1844 (do_ewmh_fullscreen): Remove unused var `lval'.
1845 (xembed_set_info): Remove unused var `atom'.
1846 * textprop.c (Fremove_list_of_text_properties): Add braces to silence
1847 compiler warning.
1848 * fontset.c (fontset_id_valid_p, dump_fontset):
1849 * ftfont.c (ftfont_drive_otf): Modernize k&r declaration.
1850 * eval.c (Feval, Ffuncall): Avoid unneeded gotos.
1851 * dispnew.c (update_frame, update_frame_1): Compile the `do_pause'
1852 label only when it's used.
1853 * image.c (x_create_bitmap_from_xpm_data):
1854 * dispextern.h (x_create_bitmap_from_xpm_data): Use const char** like
1855 its callers.
1856 * coding.c (detect_coding_utf_16): Remove unused vars `src_base' and
1857 `consumed_chars'.
1858 (DECODE_EMACS_MULE_21_COMPOSITION): Remove unused var `charbuf_base'.
1859 (decode_coding_emacs_mule): Remove unused label `retry'.
1860 (detect_eol): Add parens to silence compiler warning.
1861 * alloc.c (bytes_used_when_reconsidered): Move to the #ifdef where
1862 it's used to silence the compiler.
1863 (make_number): Modernize k&r declaration.
1864 (mark_char_table): Add parens to silence compiler warning.
1865
4039c786
CY
18662010-12-17 Chong Yidong <cyd@stupidchicken.com>
1867
1868 * keyboard.c (parse_tool_bar_item): Allow menu separators in
1869 tool-bar maps.
1870 (menu_separator_name_p): New function, from gtkutil.c.
1871 (separator_names): Move from gtkutil.c.
1872
1873 * keyboard.h (menu_separator_name_p): Add prototype.
1874
1875 * gtkutil.c (XG_BIN_CHILD): New macro.
1876 (xg_get_menu_item_label, xg_update_menubar)
1877 (xg_update_menu_item, xg_tool_bar_menu_proxy)
1878 (xg_show_toolbar_item, update_frame_tool_bar): Use it.
1879 (separator_names, xg_separator_p): Move to keyboard.c.
ef1b0ba7
SM
1880 (create_menus, xg_update_submenu, update_frame_tool_bar):
1881 Use menu_separator_name_p.
4039c786
CY
1882
1883 * nsmenu.m (name_is_separator): Function deleted.
1884 (addItemWithWidgetValue): Use menu_separator_name_p.
1885
1886 * w32menu.c (name_is_separator): Function deleted.
1887 (add_menu_item): Use menu_separator_name_p.
1888
aa936e8e
JD
18892010-12-16 Jan Djärv <jan.h.d@swipnet.se>
1890
1891 * nsterm.m (ns_draw_window_cursor): If the cursor color is the
1892 same as the background, use the face forground as cursor.
1893
f49d1f52 18942010-12-13 Eli Zaretskii <eliz@gnu.org>
15579471
EZ
1895
1896 * fileio.c (Fexpand_file_name): Doc fix. (Bug#7617)
1897
f49d1f52 18982010-12-13 Eli Zaretskii <eliz@gnu.org>
76feb864 1899
f0559026
EZ
1900 * xdisp.c (string_pos_nchars_ahead, c_string_pos)
1901 (face_before_or_after_it_pos, next_element_from_string)
1902 (next_element_from_c_string, produce_stretch_glyph): Remove unused
1903 calculations of maximum string length before calling
1904 string_char_and_length and STRING_CHAR_AND_LENGTH.
1905 (string_char_and_length): Update commentary: MAXLEN is no longer
1906 needed.
1907
f49d1f52 19082010-12-13 Jan Djärv <jan.h.d@swipnet.se>
0b9fc69a
JD
1909
1910 * keyboard.c (kbd_buffer_get_event): Construct SAVE_SESSION_EVENT
1911 as (Qsave_session arg).
1912
1913 * xsmfns.c (smc_interact_CB): Set arg to Qnil.
1914 (smc_die_CB): Make an event with arg Qt.
1915 (Fhandle_save_session): If event has Qt as argument,
1916 call Fkill_emacs (Bug#7552).
1917
f49d1f52
SM
19182010-12-13 Chong Yidong <cyd@stupidchicken.com>
1919
1920 * buffer.c (transient-mark-mode): Doc fix (Bug#7465).
1921
19222010-12-13 Jan Djärv <jan.h.d@swipnet.se>
2b815743
JD
1923
1924 * xsmfns.c (smc_die_CB): Call Fkill_emacs (Bug#7552).
1925
f49d1f52 19262010-12-13 Chong Yidong <cyd@stupidchicken.com>
d8b2a962
CY
1927
1928 * dispextern.h (struct it): New member overlay_strings_charpos.
1929
1930 * xdisp.c (next_overlay_string, load_overlay_strings): Record the
1931 charpos where we computed n_overlay_strings.
1932 (next_overlay_string): Load overlay strings at recorded position,
1933 which may not be the same as the iterator's charpos (Bug#7016).
1934
f49d1f52 19352010-12-13 Chong Yidong <cyd@stupidchicken.com>
77f1ed6c
CY
1936
1937 * xdisp.c (try_scrolling): Avoid infloop if the first line is
1938 obscured due to a vscroll (Bug#7537).
1939
f49d1f52 19402010-12-13 Jan Djärv <jhd@zeplinf.localdomain>
2a91a0b5
JD
1941
1942 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
1943
1944 * nsterm.m (x_set_window_size, windowWillResize, initFrameFromEmacs):
1945 Use FRAME_TOOLBAR_HEIGHT.
1946 (x_set_offset): Handle XNegative and YNegative in
1947 f->size_hint_flags (Bug#7510).
1948
39321b94
EZ
19492010-12-11 Eli Zaretskii <eliz@gnu.org>
1950
1951 * w32fns.c (Fx_show_tip): Call try_window with last argument
1952 TRY_WINDOW_IGNORE_FONTS_CHANGE. Delete the TODO ifdef: problem
1953 solved. Round up the tip height to an integral multiple of the
1954 frame's line height. Add FRAME_COLUMN_WIDTH to the tip width.
1955 (Bug#7398)
1956
ec1b9b17
GM
19572010-12-08 Glenn Morris <rgm@gnu.org>
1958
1959 * fileio.c (Fverify_visited_file_modtime): Default to current buffer.
1960
3c2317e8
LMI
19612010-12-06 Lars Magne Ingebrigtsen <larsi@gnus.org>
1962
1963 * xml.c (parse_region): Ignore blank HTML nodes.
1964 (make_dom): Return CDATA sections (like <style>foo</style>) as
1965 text nodes.
1966
bba3e508
SM
19672010-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
1968
1969 * lread.c (read1): Allow newstyle unquote outside of backquote.
1970 Disallow old-style backquotes inside new-style backquotes.
1971 Don't count unquotes to figure out when we're "syntactically inside
1972 but semantically outside of a backquote" any more.
1973 Extend the restriction no-unescaped-commas-and-backquotes-in-symbols
1974 to all contexts.
1975
d23d8608
CY
19762010-12-05 Chong Yidong <cyd@stupidchicken.com>
1977
1978 * process.c: Remove checks for HAVE_SYS_IOCTL_H (Bug#7484).
1979
d6a003a8
AS
19802010-12-04 Andreas Schwab <schwab@linux-m68k.org>
1981
1982 * Makefile.in (M_FILE): Substitute @M_FILE@ instead of @machfile@.
1983 (S_FILE): Substitute @S_FILE@ instead of @opsysfile@.
1984 * m/arm.h, m/sh3.h, m/xtensa.h: Remove files.
1985
201ef780
AS
19862010-12-03 Andreas Schwab <schwab@linux-m68k.org>
1987
1988 * lisp.h (union Lisp_Object): Explicitly declare signedness of
1989 bit-field.
1990 (XINT): Remove variant for EXPLICIT_SIGN_EXTEND.
1991 * m/alpha.h (EXPLICIT_SIGN_EXTEND): Don't define.
1992 * m/amdx86-64.h (EXPLICIT_SIGN_EXTEND): Likewise.
1993 * m/ia64.h (EXPLICIT_SIGN_EXTEND): Likewise.
1994 * m/ibms390.h (EXPLICIT_SIGN_EXTEND): Likewise.
1995 * m/ibms390x.h (EXPLICIT_SIGN_EXTEND): Likewise.
1996 * m/iris4d.h (EXPLICIT_SIGN_EXTEND): Likewise.
1997 * m/m68k.h (EXPLICIT_SIGN_EXTEND): Likewise.
1998 * m/sparc.h (EXPLICIT_SIGN_EXTEND): Likewise.
1999 * m/template.h (EXPLICIT_SIGN_EXTEND): Likewise.
2000 * m/hp800.h: Remove file.
2001 * m/mips.h: Remove file.
2002
146490c3
JD
20032010-12-03 Jan Djärv <jan.h.d@swipnet.se>
2004
2005 * nsterm.m (ns_dumpglyphs_image): If drawing cursor, fill background
2006 with cursor color and draw a rectangle around the image (Bug#7412).
2007
babc8f0d
AS
20082010-12-03 Andreas Schwab <schwab@linux-m68k.org>
2009
2010 * frame.c (x_set_font): Remove unused variable.
2011
9583e9a0
JD
20122010-12-02 Jan Djärv <jan.h.d@swipnet.se>
2013
dd723bbd
JD
2014 * nsmenu.m (update_frame_tool_bar): Remove NSLog on invalid image.
2015
9583e9a0
JD
2016 * nsterm.m (ns_draw_glyph_string): Switch fore- and background if
2017 drawing text under filled box cursor (Bug#7479).
2018
07976ae3 20192010-11-27 Kenichi Handa <handa@m17n.org>
b84ae584
KH
2020
2021 * charset.c (emacs_mule_charset): Make it an array of charset ID;
2022 i.e. integer.
bba3e508 2023 (Fdefine_charset_internal): Adjust for the above change.
b84ae584
KH
2024 (init_charset_once): Likewise.
2025
bba3e508
SM
2026 * charset.h (emacs_mule_charset): Adjust the prototype.
2027 Delete duplicated extern.
b84ae584
KH
2028
2029 * coding.c (emacs_mule_char): Adjust for the change of
2030 emacs_mule_charset.
2031
2032 * lread.c (read_emacs_mule_char): Adjust for the change of
2033 emacs_mule_charset.
2034
07976ae3 20352010-11-27 Eli Zaretskii <eliz@gnu.org>
b8e5cf1d
EZ
2036
2037 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
2038 of w32api >= 3.15. (Bug#6989) (Bug#7452)
2039
07976ae3 20402010-11-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
96ad0af7
YM
2041
2042 * alloc.c (mark_terminals): Ensure that the image cache is marked
2043 even if the terminal object was marked earlier (Bug#6301).
2044
35f1de62
CY
20452010-11-21 Chong Yidong <cyd@stupidchicken.com>
2046
2047 * editfns.c (Fbyte_to_string): Signal an error arg is not a byte.
2048
07976ae3 20492010-11-27 Jan Djärv <jan.h.d@swipnet.se>
8d7f026f
JD
2050
2051 * gtkutil.c (menubar_map_cb): New function (Bug#7425).
2052 (xg_update_frame_menubar): Connect signal map to menubar_map_cb.
b762841f 2053 Use 23 as menubar height if 0. (Bug#7425).
8d7f026f 2054
8547874a
EZ
20552010-11-26 Eli Zaretskii <eliz@gnu.org>
2056
228482b2
EZ
2057 * xdisp.c (set_message_1): Force paragraph direction in echo area
2058 be left-to-right.
2059
8547874a
EZ
2060 * keyboard.c (make_lispy_position): Put a meaningful value in yret
2061 when the click is on the header or mode line.
2062
1e2dddbe
EZ
20632010-11-25 Eli Zaretskii <eliz@gnu.org>
2064
2065 * xdisp.c (set_cursor_from_row): Don't forget to consider the
2066 `cursor' property of the first character in overlay strings.
12365240 2067 (Bug#7474) (Bug#7481)
1e2dddbe 2068
50795d1f
JD
20692010-11-24 Jan Djärv <jan.h.d@swipnet.se>
2070
2071 * nsterm.m (NSLeftControlKeyMask, NSLeftCommandKeyMask)
2072 (NSLeftAlternateKeyMask): New defines.
c80c6166
JD
2073 (keyDown): Parse left and right keys separately (Bug#7458).
2074 Compare Left key masks exactly (Bug#7458).
50795d1f 2075
f8ab8c1f
EZ
20762010-11-23 Eli Zaretskii <eliz@gnu.org>
2077
2078 * intervals.c (temp_set_point_both): Define before calling, to
2079 avoid GCC warnings.
2080
2e8a4797
DN
20812010-11-23 Dan Nicolaescu <dann@ics.uci.edu>
2082
b29116ef
DN
2083 * nsmenu.m: Use #include <config.h> instead of "config.h".
2084
b932f8b1
DN
2085 * term.c (Qglyphless_char,last_glyphless_glyph_frame)
2086 (last_glyphless_glyph_face_id. last_glyphless_glyph_merged_face_id):
2087 Move declarations ...
2088 * lisp.h (Qglyphless_char,last_glyphless_glyph_frame)
2089 (last_glyphless_glyph_face_id. last_glyphless_glyph_merged_face_id):
2090 ... here.
2091
42c8bc9b
DN
2092 * emacs.c (gdb_use_union, gdb_valbits,gdb_gctypebits)
2093 (gdb_data_seg_bits, gdb_array_mark_flag, PVEC_FLAG)
2094 (gdb_pvec_type):
2095 * print.c (print_output_debug_flag):
2096 * lisp.h (debug_print): Mark as EXTERNALLY_VISIBLE.
2097 (safe_debug_print): New declaration.
2098
2e8a4797
DN
2099 * xterm.c:
2100 * systty.h:
2101 * sound.c: Include <sys/ioctl.h> unconditionally.
2102
b609f591
YM
21032010-11-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2104
2105 * alloc.c (mark_maybe_object): Return early if given a Lisp
2106 integer (Bug#6301).
2107
731e263a
KB
21082010-11-21 Ken Brown <kbrown@cornell.edu>
2109
2110 * sheap.c (STATIC_HEAP_SIZE): Revert previous change.
2111
b7d1e144
JD
21122010-11-21 Jan Djärv <jan.h.d@swipnet.se>
2113
2114 * nsterm.m (ns_right_command_modifier, ns_right_control_modifier):
2115 Define (Bug#7458).
2116 (NSRightCommandKeyMask, NSRightControlKeyMask): Define (Bug#7458).
2117 (EV_MODIFIERS): Check for NSRightCommandKeyMask and
2118 NSRightControlKeyMask also (Bug#7458).
2119 (keyDown): Ditto (Bug#7458).
2120 (syms_of_nsterm): Defvar ns-right-command-modifier and
2121 ns-right-control-modifier (Bug#7458).
2122
b7982059
DN
21232010-11-21 Dan Nicolaescu <dann@ics.uci.edu>
2124
bee3419f
DN
2125 * sysdep.c (sys_subshell): Remove SET_EMACS_PRIORITY.
2126 * emacs.c (emacs_priority, syms_of_emacs): Remove emacs_priority.
2127
b7982059
DN
2128 * intervals.h (temp_set_point, temp_set_point_both):
2129 * buffer.h (offset_intervals, copy_intervals): Remove INLINE.
2130
01664ed1
KB
21312010-11-20 Ken Brown <kbrown@cornell.edu>
2132
2133 * sheap.c (STATIC_HEAP_SIZE): Increase to 13MB.
2134
7c2d713b
EZ
21352010-11-20 Eli Zaretskii <eliz@gnu.org>
2136
2137 * term.c (produce_glyphless_glyph): Use \uNNNN, \UNNNNNN, or
2138 \xNNNNNN for hex-code display of glyphless characters.
2139
d2bd5189
JD
21402010-11-20 Jan Djärv <jan.h.d@swipnet.se>
2141
2142 * gtkutil.c (xg_make_tool_item): Take vert_only as argument.
2143 Set important to ! vert_only.
2144 (xg_show_toolbar_item): Don't show label horizontally if
2145 tool item isn't important.
2146 (update_frame_tool_bar): Get TOOL_BAR_ITEM_VERT_ONLY and pass it to
2147 xg_make_tool_item, or update important on existing tool item.
2148
2149 * keyboard.c (QCvert_only): New variable.
2150 (parse_tool_bar_item): Check for QCvert_only.
2151 (syms_of_keyboard): Initialize QCvert_only.
2152
2153 * dispextern.h (tool_bar_item_idx): Add TOOL_BAR_ITEM_VERT_ONLY.
2154
d9a95e67
EZ
21552010-11-20 Eli Zaretskii <eliz@gnu.org>
2156
2157 * msdos.c (dos_rawgetc): Use gen_help_event, instead of doing the
2158 same in-line.
2159
b6557553
AS
21602010-11-20 Andreas Schwab <schwab@linux-m68k.org>
2161
2162 * xfaces.c (lookup_face): Make static.
2163 * dispnew.c (copy_row_except_pointers): Likewise.
2164 * syntax.c (dec_bytepos): Likewise.
2165 (inc_bytepos): Remove.
2166 * dispextern.h (lookup_face): Remove declaration.
2167
f48fe1f0
EZ
21682010-11-19 Eli Zaretskii <eliz@gnu.org>
2169
2170 * xdisp.c (set_cursor_from_row): Display cursor after all the
2171 glyphs that come from an overlay. Don't overstep the last glyph
2172 when skipping glyphs from an overlay. (Bug#6687)
2173
654ef137
DN
21742010-11-18 Dan Nicolaescu <dann@ics.uci.edu>
2175
84dfc8a7
DN
2176 * alloc.c (refill_memory_reserve): Move declaration ...
2177 * lisp.h (refill_memory_reserve): ... here.
2178
94fa3833
DN
2179 * strftime.c (_strftime_copytm): Add declaration.
2180
dde990a0
DN
2181 * callproc.c (syms_of_callproc): Use intern_c_string.
2182
50c77428
DN
2183 Move declarations from .c files to .h files.
2184 * process.c (timers_run):
2185 * minibuf.c (quit_char):
2186 * lread.c (read_emacs_mule_char):
2187 * keyboard.c (minibuf_level, message_enable_multibyte)
2188 (pending_malloc_warning):
2189 * insdel.c (Vselect_active_regions, Vsaved_region_selection)
2190 (Qonly): Remove declarations.
2191 * lisp.h (pending_malloc_warning, Vsaved_region_selection)
2192 (Vselect_active_regions):
2193 * keyboard.h (timers_run): Add declarations.
2194
654ef137
DN
2195 * strftime.c (my_strftime_gmtime_r, my_strftime_localtime_r)
2196 (tm_diff): Convert definitions to standard C.
2197 (extra_args_spec_iso): Remove, unused.
2198
4a47c275 21992010-11-18 Jan Djärv <jan.h.d@swipnet.se>
37de8fd0
J
2200
2201 * xsettings.c (init_gconf): Check HAVE_G_TYPE_INIT.
2202
2203 * config.in (HAVE_G_TYPE_INIT): New symbol.
2204
4a47c275 22052010-11-18 Eli Zaretskii <eliz@gnu.org>
c7926fe2
EZ
2206
2207 * lread.c (Fload): Mention `load-in-progress' and
2208 `load-file-name'. (Bug#7346)
2209
86520d8c
EZ
2210 * keyboard.c (kbd_buffer_nr_stored): Define only ifdef subprocesses.
2211 (kbd_buffer_store_event_hold, kbd_buffer_get_event)
2212 (tty_read_avail_input): Call kbd_buffer_nr_stored only ifdef
2213 subprocesses. Use buffer_free only ifdef subprocesses.
2214
2215 * process.c (init_process) [subprocesses]: Init kbd_is_on_hold in
2216 the subprocesses version, not in the non-subprocesses one.
2217
794a4b6d
EZ
2218 * Makefile.in: Don't use ## comment, it breaks the MSDOS build.
2219
146d267b
EZ
22202010-11-17 Eli Zaretskii <eliz@gnu.org>
2221
2222 * xdisp.c (set_cursor_from_row): Fix cursor positioning in empty
2223 lines on text-mode terminals. (bug#7417)
2224
fad0d565
SM
22252010-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
2226
2227 * xterm.c (get_current_wm_state): Rename from get_current_vm_state.
2228 (do_ewmh_fullscreen, x_handle_net_wm_state): Update callers.
2229
6b4bb703
KH
22302010-11-17 Kenichi Handa <handa@m17n.org>
2231
2232 * coding.c (Fset_terminal_coding_system_internal): Fix previous
2233 change (set charset-ID list instead of charset-symbol list).
2234
9173a8fb
CY
22352010-11-16 Chong Yidong <cyd@stupidchicken.com>
2236
2237 * keyboard.c (make_lispy_position): For text area clicks, record Y
2238 pixel position relative to the text area, excluding header line.
2239 Also change X and Y to Lisp_Objects, not pointers; don't return
2240 coordinate values via pointers. Pass ON_TEXT_AREA coordinate to
2241 buffer_posn_from_coords counting from the start of the text area.
2242 (Fposn_at_x_y, make_lispy_event): Callers changed.
2243
2244 * window.c (coordinates_in_window): Change X and Y to ints rather
2245 than pointers; don't return coordinates via pointers.
2246 (struct check_window_data): Change X and Y from pointers to ints.
2247 (window_from_coordinates): Remove args WX and WY; don't return
2248 coordinates via pointers.
2249 (Fcoordinates_in_window_p, window_from_coordinates):
2250 (check_window_containing, Fwindow_at): Callers changed.
2251 (window_relative_x_coord): New function.
2252
2253 * window.h (window_from_coordinates, window_relative_x_coord):
2254 Update prototypes.
2255
2256 * dispnew.c (buffer_posn_from_coords): Assume that X counts from
2257 the start of the text area.
2258
2259 * xdisp.c (remember_mouse_glyph): Change window_from_coordinates
2260 call. Use window_relative_x_coord.
2261 (note_mouse_highlight): Change window_from_coordinates call.
2262
2263 * w32term.c (w32_read_socket):
2264 * msdos.c (dos_rawgetc):
2265 * xterm.c (handle_one_xevent): Likewise.
2266
d2762c86
DN
22672010-11-16 Dan Nicolaescu <dann@ics.uci.edu>
2268
2269 * strftime.c (LOCALE_PARAM_DECL): Update for standard C.
2270 (LOCALE_PARAM, LOCALE_PARAM_PROTO): Remove, unused.
2271 (memcpy_lowcase, so_week_days, extra_args_spec, emacs_strftimeu):
2272 Convert definitions to standard C.
2273 * regex.c: Do not include <stdlib.h>, config.h does it.
2274 Include unistd.h.
2275 (xrealloc, init_syntax_once, re_match, regcomp, regexec)
2276 (regerror, regfree): Convert definitions to standard C.
2277 * mktime.c (my_mktime_localtime_r, ydhms_tm_diff, ranged_convert)
2278 (__mktime_internal): Convert definitions to standard C.
2279
c2f0866a
DN
22802010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
2281
42a7e7f1
DN
2282 * w32proc.c:
2283 * w32inevt.c:
2284 * w32heap.c:
2285 * w32.c: Remove config.h include guards.
2286
67802943
DN
2287 * callproc.c (child_setup): Reorder code to simplify #ifdefs.
2288 No code changes.
2289
f0e1af46
DN
2290 * process.c: Include <sys/ioctl.h> unconditionally,
2291 keyboard.c already does it.
2292
c2f0866a
DN
2293 * keyboard.c (pending_malloc_warning): Add const to match
2294 definition in alloc.c.
2295 (Fset_input_interrupt_mode): Simplify #ifdefs.
2296
92d3ab7e
DN
22972010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
2298
12e610e8
DN
2299 Clean up systty.h macros.
2300 * systty.h (EMACS_GET_TTY_PGRP, EMACS_SET_TTY_PGRP, EMACS_GET_TTY)
2301 (EMACS_SET_TTY): Remove unneeded abstraction, instead inline the
2302 definition in all uses.
2303 (EMACS_TTY_TABS_OK): Remove, it has a single user.
2304 * sysdep.c (discard_tty_input, child_setup_tty)
2305 (init_sys_modes, tabs_safe_p, reset_sys_modes):
2306 * emacs.c (shut_down_emacs):
2307 * callproc.c (child_setup):
2308 * term.c (dissociate_if_controlling_tty): Inline removed macros.
2309
92d3ab7e
DN
2310 * data.c (sign_extend_temp, sign_extend_lisp_int): Remove, unused.
2311
a3e6bad4
CY
23122010-11-14 Chong Yidong <cyd@stupidchicken.com>
2313
2314 * w32fns.c (Fx_create_frame):
2315 * nsfns.m (Fx_create_frame): Don't check for the cursorColor
2316 resource here; it's now done at startup.
2317
5a232ffb
J
23182010-11-14 Jan Djärv <jan.h.d@swipnet.se>
2319
2320 * xterm.c (set_wm_state): Add Qnil to final cons.
2321
2322 * xselect.c (x_send_client_event): Remove unused variables cons and
2323 size.
2324
24021b38
YM
23252010-11-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2326
2327 * keyboard.c (modify_event_symbol) : Add const to array elements of
2328 arg NAME_TABLE.
2329 (lispy_accent_keys, lispy_function_keys, lispy_multimedia_keys)
2330 (lispy_kana_keys, iso_lispy_function_keys, lispy_wheel_names)
2331 (lispy_wheel_names, lispy_drag_n_drop_names, modifier_names):
2332 Add const to array elements.
2333 (scroll_bar_parts): Make static. Fix position of const.
2334
2335 * w32fns.c (lispy_function_keys): Add const to extern.
2336
2337 * w32inevt.c (lispy_function_keys): Likewise.
2338
afa42fe3
CY
23392010-11-14 Chong Yidong <cyd@stupidchicken.com>
2340
2341 * xfns.c (Fx_create_frame): Don't check for the cursorColor
2342 resource here; it's now done at startup.
2343
53260a94
DN
23442010-11-13 Dan Nicolaescu <dann@ics.uci.edu>
2345
c865c575 2346 * xmenu.c: Make it clear that ../lwlib/lwlib.h is only needed for Motif.
ff2e8052 2347
c865c575 2348 Fix compilation on Solaris.
ff2e8052
DN
2349 * sysdep.c: Do not #include <term.h>.
2350 (tputs): Add declaration, similar to what cm.c does. (Bug#7178)
2351
53260a94
DN
2352 * s/ms-w32.h (HAVE_TERMIOS_H): Do not undef, not used anymore.
2353
933e29ff
J
23542010-11-13 Jan Djärv <jan.h.d@swipnet.se>
2355
2356 * xterm.c (set_wm_state): Don't put Atom in cons, call
2357 make_fixnum_or_float on them first.
2358 (x_term_init): Initialize Xatom_net_supporting_wm_check and
2359 Xatom_net_supported correctly.
2360
2361 * xselect.c (x_send_client_event): Move CHECK_STRING ...
2362 (Fx_send_client_event): to here.
2363
a048073e
MR
23642010-11-13 Martin Rudalics <rudalics@gmx.at>
2365
2366 * window.c (Fwindow_use_time): New function.
2367
0eb025fb
EZ
23682010-11-13 Eli Zaretskii <eliz@gnu.org>
2369
2370 * xdisp.c (set_cursor_from_row): Fix cursor positioning on
2371 zero-width characters.
2372
2373 * .gdbinit (pgx): Adapt to latest changes in `struct glyph'.
2374
2375 * w32term.c (x_draw_glyphless_glyph_string_foreground): Draw the
2376 box before drawing the glyphs inside it.
2377
2378 * xdisp.c (syms_of_xdisp) <glyphless-char-display>: Doc fix.
2379
bba3e508
SM
2380 * dispextern.h (enum glyphless_display_method):
2381 Rename GLYPHLESS_DISPLAY_HEXA_CODE to GLYPHLESS_DISPLAY_HEX_CODE.
2382 All users changed.
0eb025fb 2383
bba3e508
SM
2384 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
2385 Fix comments.
0eb025fb
EZ
2386 (produce_glyphless_glyph): Enclose "U+nnnn" and "empty box"
2387 whitespace in "[]", to simulate a box. Don't use uninitialized
2388 variable `width'.
2389
c869cc37
JD
23902010-11-11 Julien Danjou <julien@danjou.info>
2391
2d9074ba
JD
2392 * xsettings.c (init_xsettings): Use already fetch atoms.
2393
2394 * xsmfns.c (create_client_leader_window): Use SM_CLIENT_ID atom
2395 from dpyinfo.
2396
2397 * xselect.c (Fx_send_client_event): Split and create
2398 x_send_client_event.
2399
2400 * lisp.h: Do not EXFUN Fx_send_client_event.
2401
2402 * xterm.c (x_set_frame_alpha): Use _NET_WM_WINDOW_OPACITY atom
2403 from dpyinfo.
2404 (wm_supports): Use atoms from dpyinfo.
2405 (do_ewmh_fullscreen): Use atoms from dpyinfo.
2406 (x_ewmh_activate_frame): Use atoms from dpyinfo.
2407 (xembed_set_info): Use atoms from dpyinfo.
2408 (x_term_init): Fetch _XEMBED_INFO, _NET_SUPPORTED,
2409 _NET_SUPPORTING_WM_CHECK, _NET_WM_WINDOW_OPACITY and
2410 _NET_ACTIVE_WINDOW, XSETTINGS atoms.
2411 Get all atoms in one round-trip.
2412 (set_wm_state): Use x_send_client_event rather than
2413 Fx_send_client_event, using Atom directly.
2414 (x_ewmh_activate_frame): Ditto.
2415 (x_set_sticky): Pass atoms to set_wm_state.
2416 (do_ewmh_fullscreen): Ditto.
2417
2418
2419 * xterm.h (x_display_info): Add Xatom_net_supported,
2420 Xatom_net_supporting_wm_check, Xatom_net_active_window,
2421 Xatom_net_wm_window_opacity, Xatom_XEMBED_INFO, SM_CLIENT_ID.
2422
c869cc37
JD
2423 * xfns.c (Fx_show_tip): Fix typo in docstring.
2424
1a4236ea
SM
24252010-11-11 Stefan Monnier <monnier@iro.umontreal.ca>
2426
2427 * cmds.c (Fself_insert_command): Don't call XFASTINT without checking
2428 it's not negative.
2429
3106121c
YM
24302010-11-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2431
2432 * font.c (font_filter_properties): Add const to array elements of
2433 properties args.
2434
2435 * font.h (font_filter_properties): Likewise.
2436
2437 * ftfont.c (ftfont_booleans, ftfont_non_booleans): Add const to array
2438 elements.
2439
2440 * w32font.c (w32font_booleans, w32font_non_booleans): Likewise.
2441
da1fec2b
MA
24422010-11-10 Michael Albinus <michael.albinus@gmx.de>
2443
2444 * dbusbind.c (QCdbus_type_unix_fd): New Lisp object.
2445 (XD_BASIC_DBUS_TYPE, xd_symbol_to_dbus_type, xd_signature)
2446 (xd_append_arg, xd_retrieve_arg): Support DBUS_TYPE_UNIX_FD.
2447 (Fdbus_call_method): Add DBUS_TYPE_UNIX_FD type mapping to doc string.
2448 (syms_of_dbusbind): Initialize QCdbus_type_unix_fd).
2449
bd6bc222
GM
24502010-11-10 Glenn Morris <rgm@gnu.org>
2451
2452 * emacs.c (syms_of_emacs) <system-type>: Doc fix.
2453
c0098065
EZ
24542010-11-09 Eli Zaretskii <eliz@gnu.org>
2455
bd6bc222 2456 * xfns.c (x_real_positions): Fix declaration-after-statement problem.
c0098065 2457
d607b96b 24582010-11-09 Chong Yidong <cyd@stupidchicken.com>
be3faa80
CY
2459
2460 * image.c (free_image): Don't garbage the frame here, since this
2461 function can be called while redisplaying (Bug#7210).
2462 (uncache_image): Garbage the frame here (Bug#6426).
2463
d607b96b 24642010-11-09 Jan Djärv <jan.h.d@swipnet.se>
184765cc 2465
d607b96b
SM
2466 * xfns.c (x_real_positions): Only use _NET_FRAME_EXTENTS if our
2467 parent is the root window. Check this after traversing window tree.
184765cc 2468
d607b96b 2469 * xterm.c (x_term_init): Initialize Xatom_net_frame_extents.
bd80a886 2470
d607b96b 2471 * xterm.h (struct x_display_info): Xatom_net_frame_extents is new.
bd80a886 2472
d607b96b
SM
2473 * xfns.c (x_real_positions): Try to get _NET_FRAME_EXTENTS first
2474 before traversing window tree (Bug#5721).
c2e124a9 2475
27f92be7
J
24762010-11-07 Jan Djärv <jan.h.d@swipnet.se>
2477
66b16767
J
2478 * xfns.c (set_machine_and_pid_properties): Let X set WM_CLIENT_MACHINE.
2479
25f38310
SM
2480 * xdisp.c (note_mode_line_or_margin_highlight):
2481 Initialize Cursor to No_Cursor for HAVE_WINDOW_SYSTEM also.
27f92be7 2482
a971c0a7
EZ
24832010-11-06 Eli Zaretskii <eliz@gnu.org>
2484
2485 * xfns.c (Fx_show_tip): If any of the tool-tip text lines is R2L,
2486 adjust width of tool-tip frame to the width of text, excluding the
2487 stretch glyph at the beginning of R2L glyph rows.
2488
2489 * w32fns.c (Fx_show_tip): Likewise.
2490
80417b95
JD
24912010-11-06 Jan Djärv <jan.h.d@swipnet.se>
2492
2493 * nsfont.m: Include termchar for new mouse-highlight.
6dc61cf1 2494 (nsfont_draw): Use MOUSE_HL_INFO.
80417b95 2495
28118eb6
EZ
24962010-11-05 Eli Zaretskii <eliz@gnu.org>
2497
c1fc2d3a 2498 Unify mouse-highlight code for all GUI and TTY sessions.
cf482c50
EZ
2499
2500 * term.c: Remove static mouse_face_* variables. All users
2501 changed.
2502 (term_show_mouse_face, term_clear_mouse_face)
2503 (fast_find_position, term_mouse_highlight): Functions deleted.
2504 (tty_draw_row_with_mouse_face): New function.
2505 (term_mouse_movement): Call note_mouse_highlight instead of
2506 term_mouse_highlight.
2507
bbf534ce
EZ
2508 * nsterm.m (ns_update_window_begin, ns_update_window_end)
2509 (ns_update_end, x_destroy_window, ns_frame_up_to_date)
2510 (ns_dumpglyphs_box_or_relief, ns_maybe_dumpglyphs_background)
2511 (ns_dumpglyphs_image, ns_dumpglyphs_stretch)
2512 (ns_initialize_display_info, keyDown, mouseMoved, mouseExited):
2513 Replace Display_Info with Mouse_HLInfo everywhere where
2514 mouse_face_* members were accessed for mouse highlight purposes.
2515
2516 * xterm.c (x_update_window_begin, x_update_window_end)
2517 (x_update_end, XTframe_up_to_date, x_set_mouse_face_gc)
bba3e508
SM
2518 (handle_one_xevent, x_free_frame_resources, x_term_init):
2519 Replace Display_Info with Mouse_HLInfo everywhere where mouse_face_*
bbf534ce
EZ
2520 members were accessed for mouse highlight purposes.
2521
2522 * w32term.c (x_update_window_begin, x_update_window_end)
2523 (x_update_end, w32_read_socket, x_free_frame_resources)
2524 (w32_initialize_display_info): Replace Display_Info with
2525 Mouse_HLInfo everywhere where mouse_face_* members were accessed
2526 for mouse highlight purposes.
2527
2528 * xdisp.c (show_mouse_face, note_mode_line_or_margin_highlight)
2529 (note_mouse_highlight) [HAVE_WINDOW_SYSTEM]: Don't run GUI code
2530 unless the frame is on a window-system.
c1fc2d3a 2531 (get_tool_bar_item, handle_tool_bar_click)
7ea692f6
EZ
2532 (note_tool_bar_highlight, draw_glyphs, erase_phys_cursor)
2533 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
2534 (note_mode_line_or_margin_highlight, note_mouse_highlight)
2535 (x_clear_window_mouse_face, cancel_mouse_face, expose_frame):
2536 Replace Display_Info with Mouse_HLInfo everywhere where
2537 mouse_face_* members were accessed for mouse highlight purposes.
c1fc2d3a 2538 (coords_in_mouse_face_p): Move prototype out of the
d009ae66
EZ
2539 HAVE_WINDOW_SYSTEM conditional.
2540 (x_y_to_hpos_vpos, frame_to_window_pixel_xy): Move out of the
2541 HAVE_WINDOW_SYSTEM block.
bba3e508
SM
2542 (try_window_id) [HAVE_GPM || MSDOS]:
2543 Call x_clear_window_mouse_face.
d009ae66 2544 (draw_row_with_mouse_face): Implementation for HAVE_WINDOW_SYSTEM
c1fc2d3a
EZ
2545 systems. Call tty_draw_row_with_mouse_face for TTY systems.
2546 (show_mouse_face): Call draw_row_with_mouse_face, instead of
2547 calling draw_glyphs directly.
d009ae66
EZ
2548 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
2549 (cursor_in_mouse_face_p, rows_from_pos_range)
2550 (mouse_face_from_buffer_pos, mouse_face_from_string_pos)
2551 (note_mode_line_or_margin_highlight, note_mouse_highlight)
2552 (x_clear_window_mouse_face, cancel_mouse_face): Move out of the
2553 HAVE_WINDOW_SYSTEM block. Ifdef away window-system specific
2554 fragments.
2555 (note_mouse_highlight): Call popup_activated for MSDOS as well.
2556 Clear mouse highlight if pointer is over glyphs whose OBJECT is an
2557 integer.
2558 (mouse_face_from_buffer_pos): Add parentheses around && within ||.
bba3e508
SM
2559 (x_consider_frame_title, tool_bar_lines_needed):
2560 Move prototypes to HAVE_WINDOW_SYSTEM-only part.
c1fc2d3a
EZ
2561 (get_window_cursor_type): Move inside a HAVE_WINDOW_SYSTEM-only
2562 part. Remove "#ifdef HAVE_WINDOW_SYSTEM" from body of function.
2563 (null_glyph_slice): Move declaration into HAVE_WINDOW_SYSTEM-only
2564 part.
d009ae66
EZ
2565
2566 * dispnew.c (mirror_make_current): Set Y coordinate of the
2567 mode-line and header-line rows.
c1fc2d3a
EZ
2568 (init_display): Setup initial frame's output_data for text
2569 terminal frames.
d009ae66 2570
c1fc2d3a
EZ
2571 * xmenu.c (popup_activated): Don't define on MSDOS, which now has
2572 its own definition on msdos.c.
d009ae66
EZ
2573
2574 * msdos.c (show_mouse_face, clear_mouse_face)
2575 (fast_find_position, IT_note_mode_line_highlight)
2576 (IT_note_mouse_highlight): Functions deleted.
2577 (IT_frame_up_to_date, dos_rawgetc): Call note_mouse_highlight
2578 instead of IT_note_mouse_highlight.
2579 (draw_row_with_mouse_face, popup_activated): New functions.
c1fc2d3a
EZ
2580 (dos_set_window_size, draw_row_with_mouse_face, IT_update_begin)
2581 (IT_update_end, IT_frame_up_to_date, internal_terminal_init)
2582 (dos_rawgetc): Replace Display_Info with Mouse_HLInfo everywhere
2583 where mouse_face_* members were accessed for mouse highlight
2584 purposes.
2585
2586 * msdos.h (initialize_msdos_display): Add prototype.
2587
2588 * frame.h (MOUSE_HL_INFO): New macro.
2589
2590 * lisp.h (Mouse_HLInfo): New data type.
2591
2592 * xterm.h (struct x_display_info):
2593 * w32term.h (struct w32_display_info):
2594 * nsterm.h (struct ns_display_info):
2595 * termchar.h (struct tty_display_info): Use it instead of
2596 mouse_face_* members.
2597
2598 * dispextern.h (show_mouse_face, clear_mouse_face): Update type of
2599 1st argument.
2600 (frame_to_window_pixel_xy, note_mouse_highlight)
2601 (x_clear_window_mouse_face, cancel_mouse_face, clear_mouse_face)
2602 (show_mouse_face, cursor_in_mouse_face_p): Move prototypes out of
2603 HAVE_WINDOW_SYSTEM conditional.
2604 (draw_row_with_mouse_face): Declare prototype.
2605 (tty_draw_row_with_mouse_face): Declare prototype.
2606
6e8d7c47
EZ
26072010-11-05 Eli Zaretskii <eliz@gnu.org>
2608
bba3e508
SM
2609 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
2610 Remove unused variables.
6e8d7c47 2611
f31ba3f0
AR
26122010-11-05 Adrian Robert <Adrian.B.Robert@gmail.com>
2613
2614 * nsterm.m (EmacsView-mouseExited:): Correct error in conditional
2615 logic pointed out by Eli Zaretskii.
2616
448e17d6
LMI
26172010-11-04 Lars Magne Ingebrigtsen <larsi@gnus.org>
2618
0c3a9a9f
GM
2619 * coding.c (coding-category-list): Refer to set-coding-system-priority
2620 instead of the obsolete set-coding-priority in the doc string.
448e17d6 2621
f31ba3f0 2622
3fdebbf9 26232010-11-04 Adrian Robert <Adrian.B.Robert@gmail.com>
f31ba3f0
AR
2624
2625 * nsfont.m (nsfont_draw): Correct previous patch to return
2626 correct value.
2627 * nsimage.m (EmacsImage-setXBMColor:): Correct previous patch:
2628 don't change the method signature, change the return.
2629
26302010-11-04 Ismail Donmez <ismail@namtrac.org> (tiny change)
3fdebbf9
AR
2631
2632 * nsfont.m (nsfont_draw)
2633 * nsimage.m (EmacsImage-setXBMColor:)
f31ba3f0 2634 * nsterm.m (EmacsView-performDragOperation:): Correct empty return.
3fdebbf9 2635
17c0c952
JD
26362010-11-03 Julien Danjou <julien@danjou.info>
2637
2638 * image.c (gif_load): Add support for transparency and specified
2639 :background.
2640
b18fad6d
KH
26412010-11-01 Kenichi Handa <handa@m17n.org>
2642
2643 * dispextern.h (lookup_glyphless_char_display): Extern it.
2644
2645 * termhooks.h (struct terminal): New member charset_list.
2646
2647 * coding.c (Fset_terminal_coding_system_internal): Set the
2648 `charset_list' member of struct terminal.
2649
a8039db1 2650 * term.c (produce_glyphs): Handle the case it->what == IT_GLYPHLESS.
b18fad6d
KH
2651 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
2652
2653 * xdisp.c (lookup_glyphless_char_display): Make it non-static.
2654 (lookup_glyphless_char_display): Set it->what at the end.
2655 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
2656 (last_glyphless_glyph_merged_face_id): Make them non-static.
2657
a8039db1
JB
2658 * w32term.c (x_draw_glyphless_glyph_string_foreground):
2659 Fix the arg with_background for font->driver->draw.
65b6b59a 2660
a8039db1 26612010-11-01 Kenichi Handa <handa@m17n.org>
0269bd90 2662
a8039db1
JB
2663 * w32gui.h (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
2664 Surround chp by parentheses.
0269bd90 2665
a8039db1 26662010-11-01 Kenichi Handa <handa@m17n.org>
b2cca856
KH
2667
2668 Implement various display methods for glyphless characters.
2669
2670 * xdisp.c (Qglyphless_char, Vglyphless_char_display)
2671 (Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space)
2672 (Qzero_width): New variables.
2673 (THIN_SPACE_WIDTH): New macro.
2674 (lookup_glyphless_char_display): New funciton.
2675 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
2676 (last_glyphless_glyph_merged_face_id): New variables.
2677 (get_next_display_element): Check glyphless characters.
2678 (redisplay_internal): Initialize last_glyphless_glyph_frame and
2679 last_glyphless_glyph_face_id.
2680 (fill_glyphless_glyph_string): New function.
2681 (BUILD_GLYPHLESS_GLYPH_STRING): New macro.
2682 (BUILD_GLYPH_STRINGS): Handle the case GLYPHLESS_GLYPH.
2683 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
2684 (x_produce_glyphs): If a suitable font is not found, produce a
2685 glyphless glyph. Handle the case it->what == IT_GLYPHLESS.
2686 (syms_of_xdisp): Intern and staticpro Qglyphless_char,
2687 Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space, and
2688 Qzero_width.
2689 (Vglyphless_char_display): Declare it as a Lisp variable.
2690
2691 * dispextern.h (enum glyph_type): Add GLYPHLESS_GLYPH.
a8039db1
JB
2692 (struct glyph): Change the size of the member "type" to 3.
2693 Add glyphless to the union slice and u.
b2cca856
KH
2694 (enum display_element_type): Add IT_GLYPHLESS.
2695 (enum glyphless_display_method): New enum.
2696 (struct it): New member glyphless_method.
2697 (Vglyphless_char_display): Extern it.
2698
2699 * xterm.c (x_draw_glyphless_glyph_string_foreground): New function.
2700 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
2701
a8039db1 2702 * w32term.c (x_draw_glyphless_glyph_string_foreground): New function.
b2cca856
KH
2703 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
2704
2705 * nsterm.m (ns_draw_glyph_string): Handle the case
2706 GLYPHLESS_GLYPH (the detail is not yet implemented).
2707
c8c59954
GM
27082010-10-31 Glenn Morris <rgm@gnu.org>
2709
80696982
GM
2710 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Fix merge, maybe.
2711
c8c59954
GM
2712 * frame.c (syms_of_frame) <tool-bar-mode>:
2713 Default to nil if !HAVE_WINDOW_SYSTEM. (Bug#7299)
2714
46eadc7a
CY
27152010-10-31 Chong Yidong <cyd@stupidchicken.com>
2716
2717 * xterm.c (x_connection_closed): Print informative error message
2718 when aborting on GTK. This requires using shut_down_emacs
2719 directly instead of Fkill_emacs.
2720
ffe75e6b
EZ
27212010-10-29 Eli Zaretskii <eliz@gnu.org>
2722
2723 * emacs.c (main): Call syms_of_filelock unconditionally.
2724
2725 * filelock.c (syms_of_filelock): Move out of #ifdef CLASH_DETECTION
2726 clause, but keep part of it conditioned on CLASH_DETECTION.
2727
9d794026
GM
27282010-10-29 Glenn Morris <rgm@gnu.org>
2729
4f4f2973
GM
2730 * nsfns.m (Fx-display-save-under, Fx-open-connection)
2731 (Fxw-color-defined-p, Fxw-display-color-p, Fx-show-tip):
2732 * w32fns.c (Fxw_color_defined_p, Fx_open_connection):
2733 * xfns.c (Fxw_color_defined_p, Fx_open_connection):
2734 Sync docs between X, W32, NS.
2735
9d794026
GM
2736 * buffer.c (syms_of_buffer) <abbrev-mode, transient-mark-mode>:
2737 * frame.c (syms_of_frame) <tool-bar-mode>: Move doc here from Lisp.
2738
d46f6bbb
JB
27392010-10-26 Juanma Barranquero <lekktu@gmail.com>
2740
2741 * eval.c (init_eval_once): Set max_lisp_eval_depth to 600;
2742 otherwise, bootstrapping on Windows fails to compile macroexp.el.
2743
2e35f1a2
EZ
27442010-10-26 Eli Zaretskii <eliz@gnu.org>
2745
2746 * cmds.c (internal_self_insert): Don't insert if argument N is
84b28888 2747 zero or negative. (Bug#7281)
2e35f1a2 2748
8daaeda6
J
27492010-10-26 Jan Djärv <jan.h.d@swipnet.se>
2750
2751 * gtkutil.c (qttip_cb): Set title to empty for ATK (Bug#7278).
2752
6a5c2175
GM
27532010-10-25 Glenn Morris <rgm@gnu.org>
2754
2755 * Makefile.in (SOME_MACHINE_LISP): Remove easymenu.elc.
2756
7c051dd8
GM
27572010-10-24 Glenn Morris <rgm@gnu.org>
2758
2759 * w32fns.c (Fx_synchronize, Fx_change_window_property)
2760 (Fx_window_property, Fx_file_dialog):
2761 * xfns.c (Fx_synchronize, Fx_change_window_property)
2762 (Fx_window_property, Fx_file_dialog): Sync docs between w32 and X.
2763
23c261f5
CY
27642010-10-24 Chong Yidong <cyd@stupidchicken.com>
2765
2766 * xterm.c (x_connection_closed): Kill Emacs unconditionally.
2767
d414c713 27682010-10-24 Eli Zaretskii <eliz@gnu.org>
89baa1df
EZ
2769
2770 * frame.c (Fframep, Fwindow_system): Deprecate use as a predicate.
2771
2772 * dispnew.c (syms_of_display) <initial-window-system, window-system>:
2773 Deprecate use as a boolean flag.
2774
947f5e01
JM
27752010-10-24 Jim Meyering <jim@meyering.net>
2776
2777 * emacs.c (argmatch): Don't treat "--" as "--chdir".
2778
65807d73
GM
27792010-10-24 Glenn Morris <rgm@gnu.org>
2780
f5f25615
GM
2781 * w16select.c (syms_of_win16select) <selection-coding-system>:
2782 <next-selection-coding-system>:
2783 * w32select.c (syms_of_w32select) <selection-coding-system>:
2784 <next-selection-coding-system>:
3646b86d
GM
2785 Sync docs with select.el.
2786
46710489
GM
2787 * xfaces.c (syms_of_xfaces) <tty-defined-color-alist>: Sync doc with
2788 Lisp version.
2789
ea883883
GM
2790 * w32term.c (syms_of_w32term) <x-use-underline-position-properties>:
2791 Sync doc with the xterm.c version.
2792
65807d73
GM
2793 * w32term.c (syms_of_w32term) <x-toolkit-scroll-bars>:
2794 * xterm.c (syms_of_xterm) <x-toolkit-scroll-bars>: Sync docs.
2795
f3d87560
GM
27962010-10-23 Glenn Morris <rgm@gnu.org>
2797
66c6abf0 2798 * buffer.c (syms_of_buffer) <cursor-in-non-selected-windows>:
e1fd756b 2799 * frame.c (syms_of_frame) <menu-bar-mode>:
6e82cf1a 2800 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode, display-hourglass>:
a102db1e 2801 <hourglass-delay>: Sync docs with Lisp.
f3d87560 2802
7b7e2c18
EZ
28032010-10-23 Eli Zaretskii <eliz@gnu.org>
2804
d1d6801e 2805 Implement mouse highlight for bidi-reordered lines.
d0010be5
EZ
2806
2807 * xdisp.c (fast_find_string_pos): #ifdef away, not used anymore.
2808 (mouse_face_from_string_pos): New function, replaces
2809 fast_find_string_pos.
2810 (note_mouse_highlight): Call it instead of fast_find_string_pos.
d1d6801e
EZ
2811 (note_mode_line_or_margin_highlight): Support bidi-reordered
2812 strings and R2L glyph rows. Fix comments.
2f3f89b3
EZ
2813 (note_mouse_highlight): When bidi reordering is turned on in a
2814 buffer, call next-single-property-change and
ef1b0ba7
SM
2815 previous-single-property-change with last argument nil.
2816 Clear mouse highlight when mouse pointer is in a R2L row on the stretch
d1d6801e 2817 glyph that stands for no text beyond the line end.
1f382a02
EZ
2818 (row_containing_pos): Don't return too early when CHARPOS is in a
2819 bidi-reordered continued line. Return immediately when the first
2820 hit is found in a line that is not continued, or when an exact
2821 match for CHARPOS is found.
d1d6801e
EZ
2822 (rows_from_pos_range): New function.
2823 (mouse_face_from_buffer_pos): Use it instead of calling
2824 row_containing_pos for START_CHARPOS and END_CHARPOS. Rewrite the
2825 function to support mouse highlight in bidi-reordered lines and
2826 not to assume that START_CHARPOS is always in mouse_face_beg_row.
2827 If necessary, swap mouse_face_beg_row and mouse_face_end_row so
2828 that the former is always above the latter or identical to it.
1554d88e 2829 (show_mouse_face): Support drawing highlighted R2L lines.
1b5a721b
EZ
2830 (coords_in_mouse_face_p): New function, bidi-aware.
2831 (cursor_in_mouse_face_p, note_mouse_highlight, erase_phys_cursor):
2832 Call it instead of comparing with mouse-face members of dpyinfo.
2833 (note_mode_line_or_margin_highlight): Fix confusingly swapped
2834 usage of hpos and vpos.
544bbc31 2835
dee186b6
J
28362010-10-22 Jan Djärv <jan.h.d@swipnet.se>
2837
2838 * xrdb.c: Include keyboard.h for MOTIF.
2839
2840 * xmenu.c: Revert 2010-07-27 change: lwlib.h is needed for
2841 MOTIF (Bug#7263).
2842
2843 * xfns.c: Include Xm/TextF and Xm/List.
bba3e508
SM
2844 (file_dialog_cb, file_dialog_unmap_cb, clean_up_file_dialog):
2845 Make ANSI prototypes.
dee186b6 2846
5fb59edb
GM
28472010-10-22 Glenn Morris <rgm@gnu.org>
2848
2849 * Makefile.in (SOME_MACHINE_LISP): Add w32-vars.
2850 Remove ccl and duplicate mouse.
2851
8b78d5e3
CY
28522010-10-21 Chong Yidong <cyd@stupidchicken.com>
2853
2854 * insdel.c (prepare_to_modify_buffer): Don't set
2855 saved-region-selection if modification hooks are disabled.
2856
b8a47412
CY
28572010-10-19 Chong Yidong <cyd@stupidchicken.com>
2858
2859 * cmds.c (Fdelete_char): Doc fix.
2860
ca3fa302 28612010-10-19 Ken Brown <kbrown@cornell.edu>
5419963b
KB
2862
2863 * s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
2864
ca3fa302 28652010-10-19 Kenichi Handa <handa@m17n.org>
31daa5e1
KH
2866
2867 Fix incorrect font metrics when the same font is opened with
2868 different pixelsizes.
2869
2870 * xftfont.c: Include composite.h.
2871 (xftfont_shape): New function.
2872 (syms_of_xftfont): Set xftfont_driver.shape.
2873
c978536f
JD
28742010-10-18 Julien Danjou <julien@danjou.info>
2875
2876 * frame.c (Fframe_pointer_visible_p):
2877 Add `frame-pointer-visible-p' to get the pointer visibility.
2878
4b2d9ec2
LMI
28792010-10-18 Lars Magne Ingebrigtsen <larsi@gnus.org>
2880
2881 * gnutls.c (emacs_gnutls_read): Return 0 if we get a
2882 non-"EAGAIN"-like error to signal to Emacs that the socket should
2883 be closed.
2884
9cf66cf2
EZ
28852010-10-15 Eli Zaretskii <eliz@gnu.org>
2886
c3911ead
EZ
2887 * unexcoff.c (make_hdr): Fix prototype according to changes in
2888 2010-10-03T13:59:56Z!dann@ics.uci.edu.
2889
9cf66cf2
EZ
2890 * image.c (tiff_load): Cast 3rd argument to avoid compiler warning.
2891
be98da05
TH
28922010-10-15 Tassilo Horn <tassilo@member.fsf.org>
2893
2894 * Makefile.in (really-oldXMenu): Fix typo in variable name that
2895 made building the X menu fail.
cc98b256 2896 (really-oldXMenu): Fix my previous fix.
be98da05 2897
220d91b8 28982010-10-14 Damyan Pepper <damyanp@gmail.com>
9fa82824
DP
2899
2900 Fix handling of font properties on Windows (bug#6303).
2901 * font.c (font_filter_properties): New function, refactored from
2902 ftfont_filter_properties.
2903 * font.h (font_filter_properties): Declare.
2904 * ftfont.c (ftfont_filter_properties): Use font_filter_properties.
2905 * w32font.c (w32font_booleans, w32font_non_booleans): New variables.
2906 (w32font_filter_properties): New function.
2907 (w32font_driver): Add w32font_filter_properties.
2908
220d91b8 29092010-10-14 Juanma Barranquero <lekktu@gmail.com>
51e4f4a8 2910
c0943d3d 2911 * font.c (Ffont_variation_glyphs):
51e4f4a8
JB
2912 * ccl.c (Fccl_execute_on_string): Fix typo in docstring.
2913
24f981c9
JB
29142010-10-14 Juanma Barranquero <lekktu@gmail.com>
2915
2916 * w32fns.c (w32_wnd_proc, file_dialog_callback):
2917 * w32font.c (w32_generic_family):
2918 * w32inevt.c (key_event):
2919 * w32menu.c (fill_in_menu):
2920 * w32proc.c (reader_thread, w32_executable_type, compare_env)
2921 (merge_and_sort_env, int_from_hex, enum_locale_fn, enum_codepage_fn):
2922 * w32term.c (w32_read_socket): Make static.
2923
850690cc
JB
29242010-10-13 Juanma Barranquero <lekktu@gmail.com>
2925
2926 * image.c (DEF_IMGLIB_FN): Add argument to adapt to strict
2927 prototypes; all callers changed.
2928
5e371708
JB
29292010-10-13 Juanma Barranquero <lekktu@gmail.com>
2930
2931 * makefile.w32-in (TLIB2): Rename from TLIBW32.
2932 (OBJ2): New macro.
2933 (WIN32OBJ, FONTOBJ): Remove.
2934 (OBJ1): Redistribute object files with OBJ2.
2935 (LIBS, $(TEMACS)): Use TLIB2.
2936 (make-buildobj-CMD, make-buildobj-SH): Use OBJ2.
2937 ($(TLIB2), TAGS, TAGS-LISP, TAGS-gmake): Depend on OBJ2.
2938
2e288d54
JB
29392010-10-13 Juanma Barranquero <lekktu@gmail.com>
2940
2941 * emacs.c (Vdynamic_library_alist)
2942 (syms_of_emacs) <dynamic-library-alist>: Move from image.c and rename.
2943 Doc fix.
2944
2945 * lisp.h (Vdynamic_library_alist): Declare extern.
2946
2947 * image.c (Vimage_library_alist)
2948 (syms_of_image) <image-library-alist>: Move to emacs.c and rename.
2949 (lookup_image_type): Use Vdynamic_library_alist.
2950 (Finit_image_library): Doc fix.
2951
aba1381b
DN
29522010-10-12 Dan Nicolaescu <dann@ics.uci.edu>
2953
2954 * Makefile.in (lispsource, libsrc, etc, oldxmenudir, lwlibdir)
2955 (lispdir): Remove trailing /, update all uses.
2956
4c14013d 29572010-10-12 Jan Djärv <jan.h.d@swipnet.se>
a2e35ef5
JD
2958
2959 * nsterm.m (Qleft): Declare.
2960 (ns_right_alternate_modifier): New variable
2961 (NSRightAlternateKeyMask): New define.
2962 (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
2963 ns_right_alternate_modifier isn't Qleft.
2964 (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
2965 as emacs modifier for NSRightAlternateKeyMask.
2966 (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
2967
355cdaf3
LMI
29682010-10-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
2969
2970 * gnutls.c (emacs_gnutls_write): If we're trying to write before
2971 gnutls is ready, return EAGAIN as the errno.
2972
4c620157
DN
29732010-10-10 Dan Nicolaescu <dann@ics.uci.edu>
2974
edfd76ce
DN
2975 * vm-limit.c:
2976 * unexhp9k800.c:
2977 * unexelf.c:
2978 * unexaix.c:
2979 * termcap.c: Remove #ifdef emacs / #ifndef emacs code, unused.
2980
a4daeecf
DN
2981 * Makefile.in (temacs): Use $(ALL_CFLAGS) on the link line.
2982 (PROFILING_LDFLAGS): Remove, not needed anymore.
2983
2cb72a75 2984 * Makefile.in: Use $(...) everywhere instead of ${...}
4cf3ad30
DN
2985 (CRT_DIR): Move near potential user.
2986 (START_FILE): Move near CRT_DIR, it might use it.
2cb72a75 2987
4c620157
DN
2988 * sysdep.c (LPASS8): Remove, unused.
2989 (emacs_ospeed): Change from being a global to a local in the only
2990 user: init_baud_rate.
2991
b845653d
LMI
29922010-10-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
2993
2994 * gnutls.c (syms_of_gnutls): All the bootprops are keywords.
bda6d2bd 2995 (emacs_gnutls_write): Remove the debuggin fsync call.
b845653d 2996 (emacs_gnutls_read): Return -1 if we got an error from
bda6d2bd 2997 gnutls_read. This allows us to actually read lots of data from
b845653d 2998 the GnuTLS stream.
2e6c74c5
LMI
2999 (emacs_gnutls_write): Check for GNUTLS_E_AGAIN and not EINTR.
3000 According to the documentation, this is correct, and it seems to
3001 make things work.
b845653d 3002
3625b3e2
CY
30032010-10-09 Chong Yidong <cyd@stupidchicken.com>
3004
3005 * xterm.c (x_draw_relief_rect): Clear corner pixels.
3006
8b1c619f
MA
30072010-10-08 Michael Albinus <michael.albinus@gmx.de>
3008
3009 * keyboard.c: Revert last change; it was not intended to be
3010 synchronized with the trunk.
3011
93d50df8
KH
30122010-10-08 Kenichi Handa <handa@m17n.org>
3013
2b7c9342 3014 * coding.c (complement_process_encoding_system): Fix previous change.
5886ec9c 3015
4628bef1 30162010-10-08 Michael Albinus <michael.albinus@gmx.de>
a79b0f28
MA
3017
3018 * dbusbind.c (syms_of_dbusbind): Move putenv call ...
3019 (Fdbus_init_bus): ... here. (Bug#7113)
3020
4628bef1 30212010-10-08 Glenn Morris <rgm@gnu.org>
7b2bf907
GM
3022
3023 * buffer.c (before-change-functions, after-change-functions):
3024 Three-year overdue doc fix following 2007-08-13 change.
3025
4628bef1 30262010-10-08 Kenichi Handa <handa@m17n.org>
1911a33b
KH
3027
3028 * coding.c (coding_inherit_eol_type): If parent doesn't specify
3029 eol-format, inherit from the system's default.
3030 (complement_process_encoding_system): Make a new coding system
3031 inherit the original eol-format.
3032
4628bef1 30332010-10-08 Kenichi Handa <handa@m17n.org>
fcaf8878
KH
3034
3035 * coding.c (complement_process_encoding_system): New function.
3036
3037 * coding.h (complement_process_encoding_system): Extern it.
3038
3039 * callproc.c (Fcall_process): Complement the coding system for
3040 encoding arguments.
3041 (Fcall_process_region): Complement the coding system for encoding
3042 the input to the process.
3043
3044 * process.c (Fstart_process): Complement the coding system for
3045 encoding arguments.
3046 (send_process): Complement the coding system for encoding what
3047 sent to the process.
3048
4628bef1 30492010-10-08 Kenichi Handa <handa@m17n.org>
18acb5ad
KH
3050
3051 * xfont.c (xfont_open): Fix setting of font->average_width from
3052 :avgwidth property (Bug#7123).
3053
4628bef1 30542010-10-08 Michael Albinus <michael.albinus@gmx.de>
dec83468
MA
3055
3056 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
3057 is more portable.
3058
3059 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
84eb0351 3060 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
dec83468
MA
3061 has not defined SIGIO.
3062
389454fb
CY
30632010-10-08 Chong Yidong <cyd@stupidchicken.com>
3064
3065 * xterm.c (x_draw_relief_rect): If box width is larger than 1,
3066 draw the outermost line using the black relief, for legibility.
3067 Omit drawing the four corner pixels.
3068
51b403bd
CY
30692010-10-04 Chong Yidong <cyd@stupidchicken.com>
3070
3071 * keyboard.c (echo_prompt): Function moved into read_key_sequence.
3072 (read_key_sequence): Inline echo_prompt.
3073 (echo_dash): Add a dash only if key is continued (Bug#7137).
3074
3e6ae1a4
DN
30752010-10-04 Dan Nicolaescu <dann@ics.uci.edu>
3076
3077 Remove O_RDONLY, O_WRONLY definitions, not needed.
3078 * unexcoff.c:
3079 * lread.c:
3080 * fileio.c:
3081 * doc.c:
3082 * callproc.c:
3083 * alloc.c:
3084 * termcap.c: Remove O_RDONLY O_WRONLY definitions.
3085
c1ae068b
LMI
30862010-10-03 Teodor Zlatanov <tzz@lifelogs.com>
3087
3088 * gnutls.h (GNUTLS_LOG2): Convenience macro.
3089
3090 * gnutls.c: Add property list symbol holders.
3091 (emacs_gnutls_handshake): Clarify how sockets are passed to
3092 GnuTLS.
3093 (gnutls_log_function2): Convenience function using GNUTLS_LOG2.
3094 (Fgnutls_boot): Get all parameters from a plist. Require trustfiles
3095 and keyfiles to be a list of file names. Default to "NORMAL" for
3096 the priority string. Improve logging.
3097
e2afe435
GM
30982010-10-03 Glenn Morris <rgm@gnu.org>
3099
3100 * fileio.c (Vdirectory_sep_char): Remove.
3101
dd5ecd6b
DN
31022010-10-03 Dan Nicolaescu <dann@ics.uci.edu>
3103
b5437a05
DN
3104 * termhooks.h: Remove #ifdef CONSP.
3105
4777478a
DN
3106 * xterm.c (NO_INLINE, noinline): Move definitions to ../configure.in.
3107
a3d5088d
DN
3108 Include <fcntl.h> unconditionally.
3109 * termcap.c:
3110 * sysdep.c:
3111 * lread.c:
3112 * keyboard.c:
3113 * filelock.c:
3114 * fileio.c:
3115 * doc.c:
3116 * callproc.c:
3117 * alloc.c: Remove include guards for <fcntl.h>, process.c already
3118 does it.
3119
82719735
DN
3120 * process.c: Do not include <sys/wait.h>, syswait.h does it.
3121
9de940b5
DN
3122 * sysdep.c (flush_pending_output): Remove code, does not do
3123 anything on any platform.
3124
57507bf8 3125 Remove unused code.
bba3e508
SM
3126 * sysdep.c (select_alarm, sys_select, read_input_waiting):
3127 Remove select emulation, all systems support select.
57507bf8
DN
3128 (set_exclusive_use): Remove, the only user is in an #if 0 block.
3129 * process.c (create_process): Remove #if 0 code.
3130
dd5ecd6b
DN
3131 Remove unused arguments for unexec.
3132 The third one is never used, and the last two are always passed as zero.
3133 * emacs.c (unexec): Add declaration.
3134 (Fdump_emacs): Only pass the first two arguments to unexec.
3135 Simplify #ifdef.
3136 * unexw32.c (unexec):
3137 * unexsol.c (unexec):
3138 * unexhp9k800.c (unexec):
3139 * unexcw.c (unexec): Remove the last 3 arguments, unused.
3140 * unexelf.c (unexec): Remove the last 3 arguments, unused.
3141 (find_section): Use const.
3142 * unexmacosx.c (unexec): Remove the last 3 arguments, unused.
3143 (unexec_error): Declare it NO_RETURN.
3144 * unexcoff.c (make_hdr): Assume bss_start is always zero, remove
3145 it as an argument, remove data_start and entry_address arguments, unused.
3146 (unexec): Remove bss_start, data_start and
3147 entry_address arguments.
3148 * unexaix.c (make_hdr): Assume bss_start is always zero, remove
3149 it as an argument, remove data_start and entry_address arguments, unused.
3150 (unexec): Remove bss_start, data_start and
3151 entry_address arguments.
3152
74f1829d
JB
31532010-10-03 Juanma Barranquero <lekktu@gmail.com>
3154
7f467e14
JB
3155 * makefile.w32-in (TAGS, TAGS-LISP, TAGS-gmake): Add $(FONTOBJ).
3156
74f1829d
JB
3157 * gnutls.c (emacs_gnutls_handshake, gnutls_make_error)
3158 (gnutls_emacs_global_init, gnutls_emacs_global_deinit): Make static.
3159 (Fgnutls_get_initstage, Fgnutls_deinit, Fgnutls_boot, Fgnutls_bye):
3160 Fix typos in docstrings.
3161 (Fgnutls_error_fatalp, Fgnutls_error_string): Doc fixes.
3162 (Fgnutls_errorp): Doc fix; use ERR for the argument name.
3163
6926550f
CY
31642010-10-03 Chong Yidong <cyd@stupidchicken.com>
3165
3166 * keyboard.c (command_loop_1): Make sure the mark is really alive
3167 before using it (Bug#7044).
3168
54b65f7b
JB
31692010-10-02 Juanma Barranquero <lekktu@gmail.com>
3170
3171 * makefile.w32-in (tags): Rename target to full-tags.
3172
383ebd15
EZ
31732010-10-02 Eli Zaretskii <eliz@gnu.org>
3174
3175 * emacs.c (main): Remove !WINDOWSNT conditional.
3176 (Fkill_emacs): Don't mention exemption on MS-Windows.
3177
9c524fcb
GM
31782010-10-02 Glenn Morris <rgm@gnu.org>
3179
3226d6ca
GM
3180 * character.c (Fchar_bytes): Remove obsolete function.
3181 (syms_of_character): Remove Schar_bytes.
3182
9c524fcb
GM
3183 * emacs.c (fatal_error_signal): Also run Fkill_emacs on SIGINT.
3184 (main) [!WINDOWSNT]: Handle SIGINT with fatal_error_signal
3185 in batch-mode.
3186 (Fkill_emacs): Doc fix. Also run the hook in batch mode.
3187 (kill-emacs-hook): Doc fix.
3188
1b217849
LMI
31892010-10-02 Lars Magne Ingebrigtsen <larsi@gnus.org>
3190
3191 * xml.c (Flibxml_parse_xml_region, Flibxml_parse_html_region)
bba3e508 3192 (parse_region): Rework to take regions instead of strings, and
1b217849
LMI
3193 renamed to reflect that these are the libxml functions.
3194
54cc6a83
EZ
31952010-10-01 Eli Zaretskii <eliz@gnu.org>
3196
0ebf79de
EZ
3197 * term.c (init_tty) [DOS_NT]: Don't call Wcm_clear after setting
3198 screen dimensions in tty->Wcm.
3199
54cc6a83
EZ
3200 * xdisp.c (set_cursor_from_row): When the row is truncated and
3201 point is outside the range of displayed characters, position the
3202 cursor inside the scroll margin. (Bug#6349)
3203
321401d1
DN
32042010-10-01 Dan Nicolaescu <dann@ics.uci.edu>
3205
4cacd822
DN
3206 Do not include stdlib.h and string.h, config.h does it.
3207 * xfont.c:
3208 * w32term.c:
3209 * w32reg.c:
3210 * w32inevt.c:
3211 * w32heap.c:
3212 * w32console.c:
3213 * w16select.c:
3214 * unexsol.c:
3215 * term.c:
3216 * sound.c:
3217 * scroll.c (m):
3218 * gtkutil.c:
3219 * font.c:
3220 * filelock.c:
3221 * fileio.c:
3222 * dosfns.c:
3223 * dbusbind.c:
3224 * bidi.c:
3225 * callproc.c:
3226 * process.c:
3227 * msdos.c:
3228 * charset.c: Do not include stdlib.h and string.h, config.h does it.
3229
bba3e508
SM
3230 * callproc.c (SIGCHLD): Remove conditional definition, syssignal.h
3231 defines it.
0781e7ab 3232
9bf58201
DN
3233 * process.c: Move #include <pty.h> earlier.
3234 (SIGCHLD): Remove conditional definition, syssignal.h defines it.
3235 (pty_name): Move definition later.
3236
088dcc3e
DN
3237 * nsselect.m (syms_of_nsselect):
3238 * nsmenu.m (syms_of_nsmenu):
3239 * nsfns.m (syms_of_nsfns):
3240 * msdos.c (syms_of_msdos):
4cacd822 3241
088dcc3e
DN
3242 * image.c (syms_of_image):
3243 * charset.c (syms_of_charset): Use intern_c_string instead of intern.
3244
321401d1
DN
3245 * point.h: Remove, unused.
3246
73077a9a
EZ
32472010-10-01 Eli Zaretskii <eliz@gnu.org>
3248
3249 * makefile.w32-in (TAGS, frc, TAGS-LISP, ../nt/TAGS, tags)
3250 (TAGS-gmake, TAGS-nmake, TAGS-LISP-gmake, TAGS-LISP-nmake)
3251 (nt-TAGS-gmake, nt-TAGS-nmake): New targets.
3252
55e572ef
DN
32532010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
3254
3255 * xml.c (parse_string): Use const.
3256
d4b6d95d
LMI
32572010-09-30 Lars Magne Ingebrigtsen <larsi@gnus.org>
3258
ef1b0ba7
SM
3259 * eval.c (Fbacktrace): Don't overwrite print-level on exit.
3260 Also only override Vprint_level if it isn't already bound, and increase
d4b6d95d
LMI
3261 the level to 8 to produce more useful backtraces for bug reports.
3262
e4b6db12
DN
32632010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
3264
3265 * Makefile.in: ecrt0.c does not exist anymore, do not mention it.
3266
1becef93
JB
32672010-09-30 Juanma Barranquero <lekktu@gmail.com>
3268
3269 * w32console.c (vga_stdcolor_name): Remove unused function;
3270 presumed dead after 2007-11-30T13:57:21Z!jasonr@gnu.org.
3271
df7fcaff
LMI
32722010-09-29 Lars Magne Ingebrigtsen <larsi@gnus.org>
3273
bac5cef8
LMI
3274 * gnutls.c (emacs_gnutls_handshake): Made into internal function.
3275 (Fgnutls_boot): Start the handshake.
3276 (emacs_gnutls_read): Perform the handshake from the reader loop.
e6059fa2
LMI
3277 (Fgnutls_boot): Remove some debugging messages.
3278 Change indentation throughout to use the Emacs style.
3279 (emacs_gnutls_handshake): Cast the fds to something that's
3280 possibly the expected length.
3281 (emacs_gnutls_write): Return -1 if we try to write before handshake.
bac5cef8 3282
df7fcaff
LMI
3283 * process.h (Lisp_Process): Add a gnutls_p field to Lisp_Process.
3284
3285 * process.c (make_process): Set the gnutls_p field to zero by
3286 default.
3287 (read_process_output): Always call the gnutls_read function if the
3288 stream is a gnutls stream.
3289 (send_process): Ditto for writes.
3290
3291 * gnutls.c (emacs_gnutls_write, emacs_gnutls_read): Refuse to read
3292 or write anything until the state is GNUTLS_STAGE_READY.
3293 (Fgnutls_boot): Mark the stream as being a gnutls stream.
3294
d585695f
EZ
32952010-09-29 Eli Zaretskii <eliz@gnu.org>
3296
af7ef32d
EZ
3297 * xdisp.c (reseat_1): Initialize bidi_it.paragraph_dir to
3298 NEUTRAL_DIR.
3299 (handle_invisible_prop, iterate_out_of_display_property)
3300 (next_element_from_buffer): If bidi_it.first_elt is set, call
3301 bidi_paragraph_init with NO_DEFAULT_P argument non-zero.
3302 (Bug#7128)
3303
d585695f
EZ
3304 * print.c (print_object): Fix format string and argument types for
3305 printing a Lisp_Misc_Marker.
3306
3307 * xdisp.c (pos_visible_p, c_string_pos, number_of_chars)
3308 (load_overlay_strings, get_overlay_strings_1)
3309 (get_overlay_strings, forward_to_next_line_start)
3310 (back_to_previous_visible_line_start, reseat, reseat_to_string)
3311 (get_next_display_element, next_element_from_string)
3312 (next_element_from_c_string, next_element_from_buffer)
3313 (move_it_vertically_backward, move_it_by_lines, add_to_log)
3314 (message_dolog, message_log_check_duplicate, message2_nolog)
3315 (message3, message3_nolog, vmessage, set_message, set_message_1)
3316 (hscroll_window_tree, text_outside_line_unchanged_p)
3317 (set_cursor_from_row, set_vertical_scroll_bar, redisplay_window)
3318 (find_last_unchanged_at_beg_row)
3319 (find_first_unchanged_at_end_row, row_containing_pos)
3320 (trailing_whitespace_p, display_mode_element, decode_mode_spec)
bba3e508
SM
3321 (display_count_lines, x_produce_glyphs, note_mouse_highlight):
3322 Use EMACS_INT for buffer and string positions.
d585695f
EZ
3323
3324 * dispextern.h (struct it) <string_nchars>: Declare EMACS_INT.
3325 (row_containing_pos): Adjust prototype.
3326
3327 * lisp.h (pos_visible_p, message2, message2_nolog, message3)
3328 (message2_nolog, set_message): Adjust prototypes.
3329
a6f3211f
SM
33302010-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
3331
3332 * gnutls.c (Fgnutls_boot): Remove unused vars `data' and `srp_cred'.
3333 (Fgnutls_boot): Use SDATA.
3334 (Fgnutls_handshake): Remove unused var `max_log_level'.
3335
e0720500
MA
33362010-09-27 Michael Albinus <michael.albinus@gmx.de>
3337
11a5af7c 3338 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
e0720500
MA
3339 (Bug#7113)
3340
d8a4b27a
J
33412010-09-27 Jan Djärv <jan.h.d@swipnet.se>
3342
42d3022b
J
3343 * xgselect.c (xg_select): Clear file descriptors not set from
3344 rfds and wfds.
3345
d8a4b27a
J
3346 * process.c (wait_reading_process_output): Add missing FD_CLR
3347 for write_mask (must mirror connect_wait_mask).
3348
8ed70bf3
LMI
33492010-09-27 Teodor Zlatanov <tzz@lifelogs.com>
3350
3351 * gnutls.c (gnutls_log_function): Show level and "gnutls.c"
3352 prefix.
3353 (Fgnutls_boot): Use changed process members. Use log level with a
3354 function parameter to set it. Bring back Emacs-level debugging
3355 messages at log level 1 and 2.
3356
3357 * process.c (make_process): Initialize gnutls_log_level.
3358
3359 * process.h: Add gnutls_log_level and rename x509_cred and
3360 anon_cred to have the gnutls_ prefix for consistency.
3361
3362 * gnutls.h (GNUTLS_LOG): Add convenience macro.
3363
bedf4aab
JB
33642010-09-27 Juanma Barranquero <lekktu@gmail.com>
3365
3366 * w32.c (g_b_init_get_sid_identifier_authority)
3367 (GetSidIdentifierAuthority_Proc, get_sid_identifier_authority):
3368 Remove, not used.
3369 (globals_of_w32): Don't set g_b_init_get_sid_identifier_authority.
3370 (init_winsock): Remove useless assignment.
3371 (open_process_token, get_token_information, lookup_account_sid)
3372 (get_sid_sub_authority, get_sid_sub_authority_count, get_file_security)
3373 (get_security_descriptor_owner, get_security_descriptor_group)
3374 (is_valid_sid, equal_sid, get_length_sid, copy_sid)
3375 (get_native_system_info, get_system_times, init_user_info, crlf_to_lf)
3376 (is_unc_volume, GetCachedVolumeInformation, get_volume_info)
3377 (is_fat_volume, open_unc_volume, read_unc_volume, close_unc_volume)
3378 (unc_volume_file_attributes, convert_from_time_t)
3379 (create_toolhelp32_snapshot, process32_first, process32_next)
3380 (open_thread_token, impersonate_self, revert_to_self)
3381 (get_process_memory_info, get_process_working_set_size)
3382 (global_memory_status, global_memory_status_ex, socket_to_fd)
3383 (shutdown_handler): Make static.
3384
08609ffd
MA
33852010-09-27 Michael Albinus <michael.albinus@gmx.de>
3386
3387 * dbusbind.c (dbus_fd_cb, xd_get_dispatch_status)
3388 (xd_pending_messages): Functions removed.
3389 (xd_read_queued_messages): Add parameters fd, *data, for_read in
3390 order to be compatible with add_read_fd. Determine bus from data,
3391 and call xd_read_message just for this bus.
3392 (xd_add_watch): Use xd_read_queued_messages as callback function.
3393 Add data.
3394
3395 * lisp.h (xd_pending_messages, xd_read_queued_messages): Remove.
3396
d2e9d0bb
LMI
33972010-09-27 Lars Magne Ingebrigtsen <larsi@gnus.org>
3398
ef1b0ba7 3399 * gnutls.c (gnutls_log_function): Add more debugging.
ec9f09be 3400 (emacs_gnutls_read): Don't infloop while reading.
d2e9d0bb 3401
4be9765d
KH
34022010-09-27 Kenichi Handa <handa@m17n.org>
3403
3404 These changes are to remove restriction on the number of glyphs in
3405 one composition.
3406
3407 * dispextern.h (struct glyph): Change the member "slice" to union.
3408 Remove u.cmp.from and u.cmp.to. Give more bits to u.cmp.id.
bba3e508 3409 (GLYPH_SLICE_EQUAL_P): Adjust for the above change.
4be9765d
KH
3410
3411 * dispnew.c (buffer_posn_from_coords): Use glyph->slice.img
3412 instead of glyph->slice.
3413 (marginal_area_string): Likewise.
3414
3415 * term.c (encode_terminal_code): Use glyph->slice.cmp instead of
3416 glyph->u.cmp.
3417 (append_composite_glyph): Likewise.
3418
3419 * xdisp.c (dump_glyph): Use glyph->slice.cmp instead of
3420 glyph->u.cmp.
3421 (fill_gstring_glyph_string, x_get_glyph_overhangs)
3422 (append_composite_glyph): Likewise.
3423 (fill_image_glyph_string): Use glyph->slice.img instead of
3424 glyph->slice.
3425 (append_glyph, produce_image_glyph, append_stretch_glyph)
3426 (note_mouse_highlight): Likewise.
3427
3fad2ad2
J
34282010-09-26 Jan Djärv <jan.h.d@swipnet.se>
3429
bf05eed6
J
3430 * process.c (add_keyboard_wait_descriptor)
3431 (delete_keyboard_wait_descriptor): Reinstate ifdef subprocesses.
82d6e50b
J
3432 (wait_reading_process_output): Don't pass write_mask to select
3433 if SELECT_CANT_DO_WRITE_MASK is defined.
3434 (SELECT_CANT_DO_WRITE_MASK): Define if SELECT_CANT_DO_WRITE_MASK.
bf05eed6 3435
3fad2ad2
J
3436 * process.h (add_read_fd, delete_read_fd, add_write_fd)
3437 (delete_write_fd): Declare.
3438
3439 * process.c (gpm_wait_mask, max_gpm_desc): Remove.
3440 (write_mask): New variable.
ef1b0ba7 3441 (max_input_desc): Rename from max_keyboard_desc.
3fad2ad2 3442 (fd_callback_info): New variable.
70e31436
JB
3443 (add_read_fd, delete_read_fd, add_write_fd, delete_write_fd):
3444 New functions.
3fad2ad2
J
3445 (Fmake_network_process): FD_SET write_mask.
3446 (deactivate_process): FD_CLR write_mask.
3447 (wait_reading_process_output): Connecting renamed to Writeok.
70e31436
JB
3448 check_connect removed. check_write is new. Remove references to gpm.
3449 Use Writeok/check_write unconditionally (i.e. no #ifdef
3fad2ad2
J
3450 NON_BLOCKING_CONNECT) instead of Connecting.
3451 Loop over file descriptors and call callbacks in fd_callback_info
3452 if file descriptor is ready for I/O.
3453 (add_gpm_wait_descriptor): Just call add_keyboard_wait_descriptor.
3454 (delete_gpm_wait_descriptor): Just call delete_keyboard_wait_descriptor.
3455 (keyboard_bit_set): Use max_input_desc.
70e31436
JB
3456 (add_keyboard_wait_descriptor, delete_keyboard_wait_descriptor):
3457 Remove #ifdef subprocesses. Use max_input_desc.
3fad2ad2
J
3458 (init_process): Initialize write_mask and fd_callback_info.
3459
3460 * keyboard.c (readable_events, gobble_input): Remove DBUS code.
3461
3462 * dbusbind.c: Include process.h.
3463 (dbus_fd_cb, xd_find_watch_fd, xd_toggle_watch)
3464 (xd_read_message_1): New functions.
70e31436
JB
3465 (xd_add_watch, xd_remove_watch): Call xd_find_watch_fd.
3466 Handle watch for both read and write.
3fad2ad2
J
3467 (Fdbus_init_bus): Also register xd_toggle_watch.
3468 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
3469 (Fdbus_method_error_internal, Fdbus_send_signal): Remove call
3470 to dbus_connection_flush.
70e31436 3471 (xd_read_message): Move most of the code to xd_read_message_1.
3fad2ad2
J
3472 Call xd_read_message_1 until status is COMPLETE.
3473
dce4c2ac
DN
34742010-09-26 Dan Nicolaescu <dann@ics.uci.edu>
3475
3476 * term.c: Do not include sys/ioctl.h, not needed.
70e31436
JB
3477 (init_tty): Reorder code to reduce the number of #ifdefs.
3478 No code changes.
dce4c2ac 3479
8af55556
TZ
34802010-09-26 Teodor Zlatanov <tzz@lifelogs.com>
3481
3482 * process.h: Set up GnuTLS support.
3483
3484 * process.c (make_process, Fstart_process)
3485 (read_process_output, send_process): Set up GnuTLS support for
3486 process input/output file descriptors.
3487
3488 * gnutls.h: The GnuTLS glue for Emacs, macros and enums.
3489
3490 * gnutls.c: The source code for GnuTLS support in Emacs.
3491
3492 * emacs.c: Set up GnuTLS support and call syms_of_gnutls.
3493
3494 * config.in: Set up GnuTLS support.
3495
3496 * Makefile.in (LIBGNUTLS_LIBS, LIBGNUTLS_CFLAGS, ALL_CFLAGS)
3497 (obj, LIBES): Set up GnuTLS support.
3498
83e245c4
JB
34992010-09-26 Juanma Barranquero <lekktu@gmail.com>
3500
3501 * w32.c (get_emacs_configuration_options): Fix previous change.
3502
d24ec09a
CY
35032010-09-25 Chong Yidong <cyd@stupidchicken.com>
3504
3505 * insdel.c (prepare_to_modify_buffer): Ensure the mark marker is
3506 alive before using it (Bug#6977).
3507
b7bdc47c
LMI
35082010-09-25 Lars Magne Ingebrigtsen <larsi@gnus.org>
3509
a952d5f3
LMI
3510 * xdisp.c (face_before_or_after_it_pos): EMACS_INT/int fixup.
3511
3512 * dispextern.h: EMACS_INT/int fixup.
3513
3514 * xdisp.c (string_pos_nchars_ahead, init_iterator): EMACS_INT/int
3515 fixup.
3516
b7bdc47c
LMI
3517 * xrdb.c (magic_file_p): EMACS_INT/int fixup.
3518
41118bd3
EZ
35192010-09-25 Eli Zaretskii <eliz@gnu.org>
3520
2452438f
EZ
3521 * window.c (Fpos_visible_in_window_p, Fdelete_other_windows)
3522 (Fselect_window, window_scroll_pixel_based)
3523 (window_scroll_line_based, Frecenter, Fset_window_configuration):
3524 Use EMACS_INT for buffer positions.
3525
3526 * textprop.c (validate_interval_range, interval_of)
3527 (property_change_between_p, Fadd_text_properties)
3528 (set_text_properties_1, Fremove_text_properties)
3529 (Fremove_list_of_text_properties, Ftext_property_any)
3530 (Ftext_property_not_all, copy_text_properties)
3531 (text_property_list, extend_property_ranges)
3532 (verify_interval_modification): Use EMACS_INT for buffer
3533 positions.
3534
f877c546
EZ
3535 * term.c (fast_find_position, term_mouse_highlight): Use EMACS_INT
3536 for buffer positions.
3537
3538 * process.c (read_process_output, send_process)
3539 (Fprocess_send_region, status_notify): Use EMACS_INT for buffer
3540 and string positions and size.
3541
da43f021
EZ
3542 * print.c (print_object, print_string, strout): Use EMACS_INT for
3543 string indices.
3544
3545 * minibuf.c (string_to_object): Use EMACS_INT for string position
3546 and size.
3547
3548 * marker.c (verify_bytepos): Use EMACS_INT for buffer positions.
3549
3550 * lread.c <read_from_string_index, read_from_string_index_byte>
3551 <read_from_string_limit, readchar_count>: Define EMACS_INT.
3552 (readchar, unreadchar, read_internal_start): Use EMACS_INT for
3553 buffer positions and string length.
3554
41118bd3
EZ
3555 * keyboard.c <last_point_position, last_non_minibuf_size>: Declare
3556 EMACS_INT.
3557 (echo_truncate, adjust_point_for_property, read_char)
3558 (gen_help_event, make_lispy_event, modify_event_symbol)
3559 (Fexecute_extended_command, stuff_buffered_input): Use EMACS_INT
3560 for buffer positions and string length.
3561
3562 * keyboard.h (gen_help_event): Adjust prototype.
3563
3564 * termhooks.h <struct input_event>: Make `code' member EMACS_INT.
3565
3566 * commands.h <last_point_position>: Declare EMACS_INT.
3567
3568 * xdisp.c <help_echo_pos>: Define as EMACS_INT.
3569 (truncate_echo_area): Accept EMACS_INT argument.
3570
3571 * dispextern.h <help_echo_pos>: Declare EMACS_INT.
3572
3573 * lisp.h (truncate_echo_area): Adjust prototype.
3574
3575 * composite.c (composition_adjust_point): Return EMACS_INT.
3576
3577 * composite.h (composition_adjust_point): Adjust prototype.
3578
ba3033ee
JB
35792010-09-25 Juanma Barranquero <lekktu@gmail.com>
3580
3581 * process.c (Fmake_network_process): When arg :host is 'local,
3582 use address 127.0.0.1, not name "localhost". (Bug#6781)
3583
4f3a2f8d
EZ
35842010-09-24 Eli Zaretskii <eliz@gnu.org>
3585
5816888b
EZ
3586 * indent.c (Fcurrent_indentation, indented_beyond_p)
3587 (compute_motion): Use EMACS_INT for buffer position variables.
3588
3589 * lisp.h (indented_beyond_p): Adjust prototype.
3590
3591 * buffer.c (overlay_strings): Return EMACS_INT.
3592
3593 * buffer.h (overlay_strings): Adjust prototype.
3594
3595 * region-cache.c (pp_cache): Adjust format to arguments.
3596
3597 * eval.c <specpdl_size, lisp_eval_depth>: Declare EMACS_INT.
3598 (call_debugger): Use EMACS_INT for specpdl_size related variables.
3599 (verror): Use EMACS_INT for size of allocated buffer.
3600
ace1712c
EZ
3601 * keyboard.c (make_lispy_position): Use EMACS_INT for buffer
3602 positions.
3603
3604 * xdisp.c (redisplay_internal, try_window_id)
bba3e508
SM
3605 (set_cursor_from_row, find_first_unchanged_at_end_row):
3606 Use EMACS_INT for buffer positions.
ace1712c 3607
f5276b75 3608 * dispextern.h (set_cursor_from_row): Adjust prototype.
ace1712c
EZ
3609
3610 * dispnew.c (increment_matrix_positions)
3611 (increment_row_positions, copy_glyph_row_contents)
3612 (mode_line_string, marginal_area_string): Use EMACS_INT for buffer
3613 positions.
3614
3615 * dispextern.h (mode_line_string, marginal_area_string)
bba3e508
SM
3616 (increment_matrix_positions, increment_row_positions):
3617 Adjust prototypes.
ace1712c
EZ
3618
3619 * data.c (Faref, Faset): Use EMACS_INT for string length and
3620 positions.
3621
3622 * cmds.c (internal_self_insert): Use EMACS_INT for the count of
3623 characters to insert.
3624
3625 * ccl.c (Fccl_execute_on_string): Use EMACS_INT for string
3626 position and size.
3627
4f3a2f8d
EZ
3628 * syntax.c (scan_words, update_syntax_table)
3629 (prev_char_comend_first, back_comment, skip_chars)
bba3e508
SM
3630 (skip_syntaxes, Fforward_comment, Fbackward_prefix_chars):
3631 Use EMACS_INT for buffer and string positions.
4f3a2f8d
EZ
3632
3633 * syntax.h (scan_words, update_syntax_table): Adjust prototypes.
3634
3635 * casefiddle.c (operate_on_word): Use EMACS_INT for buffer
3636 positions.
3637
db063399
LMI
36382010-09-24 Lars Magne Ingebrigtsen <larsi@gnus.org>
3639
f0812d35
LMI
3640 * scroll.c (calculate_scrolling, line_ins_del)
3641 (calculate_direct_scrolling, scroll_cost): Fix EMACS_INT/int
3642 conversion.
3643
f5c7fc27
LMI
3644 * region-cache.c (move_cache_gap, set_cache_region, pp_cache)
3645 (region_cache_backward, region_cache_forward)
3646 (revalidate_region_cache, set_cache_region): FIX EMACS_INT/int
3647 conversion.
3648
db063399
LMI
3649 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
3650
3651 * eval.c (verror): Fix EMACS_INT/int conversion.
3652
07914cd0 3653 * print.c (PRINTDECLARE, PRINTPREPARE, strout, print_string)
db063399
LMI
3654 (print_preprocess, print_check_string_charset_prop)
3655 (print_object): Fix EMACS_INT/int conversion.
3656
3657 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
3658
e6d4aefa
EZ
36592010-09-24 Eli Zaretskii <eliz@gnu.org>
3660
69481da7
EZ
3661 * callproc.c (Fcall_process): Use EMACS_INT for count of
3662 characters read from the subprocess.
3663
61bfec98
EZ
3664 * bidi.c (struct bidi_paragraph_info): Use EMACS_INT for buffer
3665 positions.
3666 (bidi_cache_search, bidi_cache_find): Use EMACS_INT for buffer
3667 positions.
3668
145582a0
EZ
3669 * buffer.c (struct sortvec): Use EMACS_INT for buffer positions.
3670 (struct sortstrlist, overlay_str_len): Use EMACS_INT for string
3671 length.
3672 (advance_to_char_boundary, Fset_buffer_multibyte)
3673 (overlays_at, overlays_in, mouse_face_overlay_overlaps)
3674 (overlay_touches_p, record_overlay_string, overlay_strings)
3675 (recenter_overlay_lists, fix_start_end_in_overlays)
3676 (modify_overlay, Fmove_overlay, report_overlay_modification)
3677 (evaporate_overlays): Use EMACS_INT for buffer positions.
3678
bba3e508
SM
3679 * lisp.h (fix_start_end_in_overlays, overlay_touches_p):
3680 Adjust prototypes.
145582a0 3681
446470a9
EZ
3682 * dispextern.h (struct bidi_saved_info): Use EMACS_INT for buffer
3683 positions.
3684
e6d4aefa
EZ
3685 * fns.c (Fcompare_strings, Fstring_lessp, concat)
3686 (string_make_unibyte, Fstring_as_unibyte, Fsubstring)
3687 (Fsubstring_no_properties, substring_both, Ffillarray)
3688 (Fclear_string, mapcar1, Fmapconcat, Fmapcar, Fmapc)
3689 (Fbase64_encode_region, Fbase64_encode_string, base64_encode_1)
3690 (Fbase64_decode_region, Fbase64_decode_string, base64_decode_1)
3691 (Fmd5): Use EMACS_INT for buffer and string positions and length
3692 variables and arguments.
3693
3694 * lisp.h (substring_both): Adjust prototype.
3695
eb652396
JB
36962010-09-24 Juanma Barranquero <lekktu@gmail.com>
3697
3698 Remove W32 API function pointer unused since 2005-02-15 (revno 2005-02-15T23:19:26Z!jasonr@gnu.org).
3699 * w32fns.c (clipboard_sequence_fn): Don't declare.
3700 (globals_of_w32fns): Don't initialize it.
3701
266a86bd 37022010-09-23 Stefan Monnier <monnier@iro.umontreal.ca>
fbb3da77
SM
3703
3704 * syntax.c (back_comment): Detect the case where a 1-char comment
3705 starter is also the 2nd char of a 2-char comment ender.
3706
266a86bd 37072010-09-23 Jan Djärv <jan.h.d@swipnet.se>
2b5b82db
J
3708
3709 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
3710
40283062
LMI
37112010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
3712
db063399
LMI
3713 * eval.c (verror): EMACS_INT/int cleanup.
3714
faf8b5bc
LMI
3715 * lisp.h (SPECPDL_INDEX): Cast to int, since we're not going to
3716 unwind_protect more than 2GB worth of functions.
3717
3718 * editfns.c (Finsert_char): EMACS_INT/int cleanup.
3719
40283062
LMI
3720 * lisp.h: Have oblookup take EMACS_INT to allow interning big
3721 string and avoid compiler warnings.
3722 (USE_SAFE_ALLOCA): Cast to int to avoid compilation warnings in
3723 all users.
3724
3725 * lread.c (oblookup): EMACS_INT/int cleanup.
3726
3727 * cmds.c (Fforward_line, Fdelete_char): EMACS_INT/int cleanup.
3728
fe3537c3
EZ
37292010-09-23 Eli Zaretskii <eliz@gnu.org>
3730
3731 * editfns.c (clip_to_bounds): Return an EMACS_INT value.
3732
3733 * lisp.h (clip_to_bounds): Adjust prototype.
3734
3735 * intervals.c (adjust_for_invis_intang): Return EMACS_INT value.
3736
0350982f
LMI
37372010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
3738
84c9ce05
LMI
3739 * lisp.h: doprnt.c EMACS_INT/int cleanup.
3740
3741 * doprnt.c (doprnt): EMACS_INT/int cleanup.
3742
3743 * doc.c (Fsnarf_documentation, get_doc_string): EMACS_INT/int
3744 cleanup.
3745
0350982f
LMI
3746 * lisp.h: Change the definition of all marker.c functions that
3747 take and return buffer stuff to be EMACS_INT instead of int.
3748
3749 * marker.c (buf_charpos_to_bytepos, CONSIDER, set_marker_both)
3750 (buf_charpos_to_bytepos, bytepos_to_charpos)
3751 (buf_bytepos_to_charpos, Fbuffer_has_markers_at)
3752 (set_marker_restricted, set_marker_both): Convert int to EMACS_INT
3753 for all buffer positions.
3754
c50bd0d2
CY
37552010-09-23 Chong Yidong <cyd@stupidchicken.com>
3756
3757 * intervals.c (traverse_intervals, rotate_right, rotate_left)
3758 (split_interval_right, find_interval, next_interval)
3759 (delete_node, delete_interval, interval_deletion_adjustment)
3760 (adjust_intervals_for_deletion, merge_interval_right)
3761 (merge_interval_left, graft_intervals_into_buffer)
3762 (copy_intervals): Convert EMACS_UINTs to EMACS_INT.
3763
3764 * intervals.h (traverse_intervals): Update prototype.
3765
14162469
EZ
37662010-09-23 Eli Zaretskii <eliz@gnu.org>
3767
c098fdb8
EZ
3768 * indent.c (compute_motion): Use EMACS_INT for arguments to
3769 region_cache_forward.
3770
bba3e508
SM
3771 * region-cache.c (struct boundary, struct region_cache):
3772 Use EMACS_INT for positions.
c098fdb8
EZ
3773 (find_cache_boundary, move_cache_gap, insert_cache_boundary)
3774 (delete_cache_boundaries, set_cache_region)
3775 (invalidate_region_cache, know_region_cache)
bba3e508
SM
3776 (region_cache_forward, region_cache_backward, pp_cache):
3777 Use EMACS_INT for buffer positions.
c098fdb8
EZ
3778
3779 * region-cache.h (know_region_cache, invalidate_region_cache)
3780 (region_cache_forward, region_cache_backward): Adjust prototypes.
3781
3782 * search.c (string_match_1, fast_c_string_match_ignore_case)
3783 (looking_at_1, scan_buffer, scan_newline)
3784 (find_next_newline_no_quit, find_before_next_newline)
3785 (search_command, trivial_regexp_p, search_buffer, simple_search)
3786 (boyer_moore, wordify, Freplace_match): Use EMACS_INT for buffer
3787 and string positions and length.
3788
caefdbe7
EZ
3789 * lisp.h (scan_buffer, scan_newline, find_next_newline_no_quit)
3790 (find_before_next_newline): Adjust prototypes.
c098fdb8 3791
29cdc13e
EZ
3792 * editfns.c (transpose_markers, update_buffer_properties)
3793 (buildmark, clip_to_bounds, Fgoto_char, overlays_around)
3794 (get_pos_property, Fconstrain_to_field)
3795 (Fline_beginning_position, Fline_end_position, Fprevious_char)
3796 (Fchar_after, Fchar_before, Finsert_char)
3797 (Finsert_buffer_substring, Fcompare_buffer_substrings)
bba3e508
SM
3798 (Fsubst_char_in_region, Fformat, Ftranspose_regions):
3799 Use EMACS_INT for buffer and string position variables.
c098fdb8 3800 (Finsert_char): Protect against too large insertions.
29cdc13e
EZ
3801
3802 * lisp.h (clip_to_bounds): Adjust prototype.
3803
e79123aa
EZ
3804 * intervals.c (traverse_intervals, rotate_right, rotate_left)
3805 (balance_an_interval, split_interval_right, split_interval_left)
3806 (find_interval, next_interval, update_interval)
3807 (adjust_intervals_for_insertion, delete_node, delete_interval)
3808 (interval_deletion_adjustment, adjust_intervals_for_deletion)
3809 (offset_intervals, merge_interval_right, merge_interval_left)
3810 (graft_intervals_into_buffer, adjust_for_invis_intang)
3811 (move_if_not_intangible, get_local_map, copy_intervals)
3812 (copy_intervals_to_string, compare_string_intervals)
3813 (set_intervals_multibyte_1): Use EMACS_INT for buffer positions
6e48267a 3814 and for interval tree size.
e79123aa
EZ
3815
3816 * intervals.h (traverse_intervals, split_interval_right)
3817 (split_interval_left, find_interval, offset_intervals)
3818 (graft_intervals_into_buffer, copy_intervals)
3819 (copy_intervals_to_string, move_if_not_intangible, get_local_map)
3820 (update_interval): Adjust prototypes.
3821
579c18d0
EZ
3822 * xdisp.c (check_point_in_composition, reconsider_clip_changes):
3823 Use EMACS_INT for buffer position variables and arguments.
3824
3825 * composite.c (get_composition_id, find_composition)
3826 (run_composition_function, compose_text)
3827 (composition_gstring_width, autocmp_chars)
3828 (composition_update_it, Ffind_composition_internal): Use EMACS_INT
3829 for buffer positions and string length variables and arguments.
3830
3831 * composite.h (get_composition_id, find_composition, compose_text)
3832 (composition_gstring_width): Adjust prototypes.
3833
3834 * editfns.c (Fformat): Use EMACS_INT for string size variables.
3835
bba3e508
SM
3836 * xdisp.c (store_mode_line_noprop, display_mode_element):
3837 Use EMACS_INT for string positions.
579c18d0
EZ
3838
3839 * intervals.c (get_property_and_range): Use EMACS_INT for buffer
3840 position arguments.
3841
3842 * intervals.h (get_property_and_range): Adjust prototype.
14162469
EZ
3843
3844 * character.c (parse_str_as_multibyte, str_as_multibyte)
3845 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
579c18d0 3846 (string_count_byte8, string_escape_byte8, c_string_width)
bba3e508
SM
3847 (strwidth, lisp_string_width, multibyte_chars_in_text):
3848 Use EMACS_INT for string length variables and arguments.
14162469
EZ
3849
3850 * character.h (parse_str_as_multibyte, str_as_multibyte)
579c18d0 3851 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
bba3e508
SM
3852 (c_string_width, strwidth, lisp_string_width):
3853 Adjust prototypes.
14162469 3854
579c18d0
EZ
3855 * font.c (font_intern_prop): Use EMACS_INT for string length
3856 variables.
3857
3858 * font.c (font_intern_prop): Use EMACS_INT for string length
3859 variables.
3860
14162469
EZ
3861 * fns.c (Fstring_as_multibyte): Use EMACS_INT for string length
3862 variables.
3863
3864 * alloc.c <total_string_size>: Declare as EMACS_INT, not int.
3865 (Fmake_string): Protect against too large strings.
3866 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
3867 (live_misc_p): Use ptrdiff_t instead of int for pointer
3868 differences.
3869 (string_bytes, check_sblock, check_string_free_list)
3870 (allocate_string_data, compact_small_strings, Fmake_string)
3871 (Fmake_bool_vector, make_string, make_unibyte_string)
3872 (make_multibyte_string, make_string_from_bytes)
bba3e508
SM
3873 (make_specified_string_string, Fmake_list, Fmake_vector):
3874 Use EMACS_INT for string length variables and arguments.
14162469
EZ
3875 (find_string_data_in_pure, make_pure_string, make_pure_c_string)
3876 (Fpurecopy): Use EMACS_INT for string size.
3877 (mark_vectorlike, mark_char_table, mark_object): Use EMACS_UINT
3878 for vector size.
3879
3880 * lisp.h (make_string, make_unibyte_string, make_multibyte_string)
3881 (make_string_from_bytes, make_specified_string_string)
579c18d0
EZ
3882 (make_pure_string, string_bytes, check_point_in_composition):
3883 Adjust prototypes.
14162469 3884
c8a66ab8
EZ
38852010-09-22 Eli Zaretskii <eliz@gnu.org>
3886
3887 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
3888 (check_translation): Use EMACS_INT for buffer positions and
3889 length.
3890
3891 * undo.c (record_marker_adjustment, record_delete)
3892 (record_change, record_point, record_insert)
3893 (record_property_change, Fprimitive_undo): Use EMACS_INT for
3894 buffer positions.
3895
3896 * lisp.h (record_marker_adjustment, record_delete)
3897 (record_change, record_point, record_insert)
3898 (record_property_change, Fprimitive_undo): Adjust prototypes.
3899
38c54d9d
JB
39002010-09-22 Juanma Barranquero <lekktu@gmail.com>
3901 Eli Zaretskii <eliz@gnu.org>
3902
3903 * w32.c (get_emacs_configuration_options): Fix buffer overrun.
3904
413d18e7
EZ
39052010-09-22 Eli Zaretskii <eliz@gnu.org>
3906
3907 * minibuf.c (Fminibuffer_contents)
3908 (Fminibuffer_contents_no_properties)
3909 (Fminibuffer_completion_contents): Use EMACS_INT for minibuffer
3910 positions.
3911
3912 * keyboard.c (command_loop_1): Use EMACS_INT to compare point with
3913 mark.
3914
3915 * alloc.c (make_uninit_string, make_uninit_multibyte_string)
3916 (allocate_string_data): Accept EMACS_INT for string length.
3917
3918 * editfns.c (Ffield_string, Ffield_string_no_properties)
3919 (make_buffer_string, make_buffer_string_both, Fbuffer_substring)
3920 (Fbuffer_substring_no_properties, find_field, Fdelete_field)
3921 (Ffield_string, Ffield_string_no_properties, Ffield_beginning)
3922 (Ffield_end): Use EMACS_INT for buffer positions.
3923
3924 * insdel.c (prepare_to_modify_buffer): Use EMACS_INT to compare
3925 point with mark.
3926
3927 * lisp.h (allocate_string_data, make_uninit_string)
3928 (make_uninit_multibyte_string, make_buffer_string)
3929 (make_buffer_string_both): Adjust prototypes.
3930
4b9832a6
CY
39312010-09-22 Chong Yidong <cyd@stupidchicken.com>
3932
3933 * xml.c: Switch to GNU indentation.
3934 (make_dom): Change parse tree format to match xml.el.
3935 (Fxml_parse_html_string_internal): Rename from html-parse-string.
3936 (Fxml_parse_string_internal): Rename from xml-parse-string.
3937
86282aab
KH
39382010-09-22 Kenichi Handa <handa@m17n.org>
3939
3940 * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos
3941 only if we are not at a composition.
3942 (set_iterator_to_next): Give it->end_charpos to
3943 composition_compute_stop_pos.
3944 (set_iterator_to_next, next_element_from_buffer): Likewise.
3945
3946 * dispnew.c (buffer_posn_from_coords): Fix position when the
3947 current display element is a grapheme cluster in bidi-reordered
3948 region.
3949
840b985a
AR
39502010-09-21 Ari Roponen <ari.roponen@gmail.com> (tiny change)
3951
3952 * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
3953 the regions may overlap.
3954
5bc88f4b
JB
39552010-09-21 Juanma Barranquero <lekktu@gmail.com>
3956
3957 * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
3958
92bc9a36
DN
39592010-09-21 Dan Nicolaescu <dann@ics.uci.edu>
3960
d19e096e
DN
3961 * emacs.c: Do not include sys/ioctl.h, not needed.
3962
92bc9a36
DN
3963 * doprnt.c: Do not include stdlib.h, config.h does it.
3964 Move #include before macro definition.
3965
15f844ac
DN
39662010-09-20 Dan Nicolaescu <dann@ics.uci.edu>
3967
48e24408
DN
3968 * Makefile.in (temacs): Link using $(CC) not $(LD).
3969 (LD_FIRSTFLAG): Define using autoconf.
3970 (LD): Remove.
3971
65539506
DN
3972 Remove HAVE_TERMIOS definitions.
3973 * s/usg5-4-common.h (HAVE_TERMIOS):
3974 * s/template.h (HAVE_TERMIOS):
3975 * s/gnu-linux.h (HAVE_TERMIOS):
3976 * s/darwin.h (HAVE_TERMIOS):
3977 * s/cygwin.h (HAVE_TERMIOS):
3978 * s/bsd-common.h (HAVE_TERMIOS):
3979 * s/aix4-2.h (HAVE_TERMIOS):
3980 * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
3981 defined on all non-MS platforms.
3982 (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
3983
15f844ac
DN
3984 * xterm.c (xt_action_hook): Use const.
3985
7d701334
JB
39862010-09-20 Juanma Barranquero <lekktu@gmail.com>
3987
3988 Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
3989 * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
3990 (gethostname) [!HAVE_SOCKETS]: Remove.
3991 (SOCK_REPLACE_HANDLE): Remove macro.
3992 (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
3993 (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
3994 * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
3995 (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
3996
f3ec267a
EZ
39972010-09-18 Eli Zaretskii <eliz@gnu.org>
3998
3999 * deps.mk (xml.o): Add dependencies.
4000
93acd23d
JB
4001 * xdisp.c (Fcurrent_bidi_paragraph_direction):
4002 Call bidi_paragraph_init with NO_DEFAULT_P non-zero. (Bug#7038)
bea4f10c
EZ
4003
4004 * bidi.c (bidi_paragraph_init): Accept an additional argument
4005 NO_DEFAULT_P; all callers changed. If NO_DEFAULT_P is non-zero,
4006 search back until a paragraph with a strong directional character
4007 is found, and use that to determine paragraph's base direction.
4008
4009 * dispextern.h (bidi_paragraph_init): Update prototype.
4010
69e847be
EZ
40112010-09-17 Eli Zaretskii <eliz@gnu.org>
4012
4013 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
4014 of w32api >= 3.15. (Bug#6989)
4015
283357a7
LMI
40162010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
4017
4018 * process.c (wait_reading_process_output): Don't message about
4019 accept-process-output unless the time limit really is zero.
4020
4ddb20d6
SM
40212010-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
4022
4023 * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
4024 int/Lisp_Object mixup).
4025
e24ad6dd
J
40262010-09-17 Jan Djärv <jan.h.d@swipnet.se>
4027
4028 * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
4029 not HELP.
4030
fb0cf781
J
40312010-09-17 Stephen Berman <stephen.berman@gmx.net>
4032
4033 * frame.c (Ftool_bar_pixel_width): New function to expose tool
4034 bar's pixel width to Lisp (Bug#7048).
4035
4ddb20d6
SM
40362010-09-14 Juanma Barranquero <lekktu@gmail.com>
4037
4038 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
fb0cf781 4039
318a04c6
J
40402010-09-17 Jan Djärv <jan.h.d@swipnet.se>
4041
4042 * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
4043 with argument top/left if tool bar is vertical/horizontal (Bug#7051).
4044
78a21772
KH
40452010-09-17 Kenichi Handa <handa@m17n.org>
4046
4047 * ftfont.c (ftfont_check_otf): Fix previous change.
4048
fa3f6039
KH
40492010-09-14 Kenichi Handa <handa@m17n.org>
4050
4051 * ftfont.c (ftfont_check_otf): Fix the case of checking just
4052 existence of GSUB or GPOS.
4053
2b5491fa
JB
40542010-09-14 Juanma Barranquero <lekktu@gmail.com>
4055
4056 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
4057
c97c655f
LMI
40582010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
4059
ef1b0ba7 4060 * xml.c (parse_buffer): Rename to parse_string(), since that's
c97c655f
LMI
4061 what it does.
4062 (parse_string): Return nil when the document can't be parsed.
4063
6664fc59 40642010-09-14 Jan Djärv <jan.h.d@swipnet.se>
5f61a25c
J
4065
4066 * xterm.c (get_current_vm_state): New function.
4067 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
4068 want_fullscreen so set_wm_state calls are few (Bug#7013).
4069 (x_handle_net_wm_state): Move code to get_current_vm_state and
4070 call that function.
4071
6664fc59 40722010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
65b3d997
A
4073
4074 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
4075
6664fc59 40762010-09-14 Kenichi Handa <handa@m17n.org>
a552b35a
KH
4077
4078 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
4079 we may use designation or locking-shift.
4080
6664fc59 40812010-09-14 Kenichi Handa <handa@m17n.org>
396475b7
KH
4082
4083 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
4084 sequence when the source is multibyte.
4085
1da70e99
AS
40862010-09-14 Andreas Schwab <schwab@linux-m68k.org>
4087
6664fc59
JB
4088 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
4089 Don't make first argument optional. Doc fix.
1da70e99 4090
26632d8d
LMI
40912010-09-14 Leo <sdl.web@gmail.com> (tiny change)
4092
4093 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
4094 parameters for the doc string.
4095
21fa8e37
LMI
40962010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
4097
4098 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
4099
5616cc54
SM
41002010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4101
4102 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
4103 (syms_of_fns): Don't defsubr Sy_or_n_p.
4104 * lisp.h: Don't declare Fy_or_n_p.
4105 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
4106
381408e2
LMI
41072010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
4108
4109 * xml.c (Fxml_parse_buffer): New function to parse XML files.
4110
41112010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
4112
4113 * xml.c: New file.
4114 (Fhtml_parse_buffer): New function to interface to the libxml2
4115 html parsing function.
4116
733946e7
JB
41172010-09-05 Juanma Barranquero <lekktu@gmail.com>
4118
4119 * biditype.h: Regenerate.
4120
7574650a
AS
41212010-09-04 Andreas Schwab <schwab@linux-m68k.org>
4122
4123 * nsimage.m (ns_load_image): Check argument types.
4124
4125 * image.c: Remove all uses of gcpro.
4126 (xpm_load): Check all lisp types.
4127 (pbm_load): Likewise.
4128 (png_load): Likewise.
4129 (jpeg_load): Likewise.
4130 (tiff_load): Likewise.
4131 (gif_load): Likewise.
4132 (imagemagick_load_image): Likewise.
4133 (imagemagick_load): Likewise.
4134 (svg_load): Likewise.
4135 (gs_load): Likewise.
4136
6e6b8e25
EZ
41372010-09-04 Eli Zaretskii <eliz@gnu.org>
4138
bba3e508
SM
4139 * w32uniscribe.c (uniscribe_shape): Update commentary.
4140 Don't try to reorder grapheme clusters, since LGSTRING should always
6e6b8e25
EZ
4141 hold them in the logical order.
4142 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
4143 return glyph codes in the logical order.
4144
dbfe4532
AS
41452010-09-04 Andreas Schwab <schwab@linux-m68k.org>
4146
4147 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
b7d187f8 4148 (imagemagick_load_image): Fix type mismatch.
5e5992c2 4149 (Fimagemagick_types): Likewise. Doc fix.
dbfe4532 4150
6d7cc563
JD
41512010-09-02 Jan Djärv <jan.h.d@swipnet.se>
4152
4153 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
4154
4155 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
4156
4157 * xselect.c: Remove declaration of cut-buffer objects and functions.
4158 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
4159 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
4160 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
4161 (Fx_rotate_cut_buffers_internal): Remove.
4162 (syms_of_xselect): Remove defsubr of above.
4163 Remove intern of QCUT_BUFFERn.
4164
8f4e9110
SM
41652010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
4166
4167 * cmds.c (Vblink_paren_function): Remove.
4168 (internal_self_insert): Make it insert N chars at a time.
4169 Don't call blink-paren-function.
4170 (Fself_insert_command): Adjust accordingly.
4171 (syms_of_cmds): Don't declare blink-paren-function.
4172
d419e1d9
KH
41732010-08-31 Kenichi Handa <handa@m17n.org>
4174
4175 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
4176 characters.
4177
4178 * term.c (encode_terminal_code): Fix the previous change.
5616cc54
SM
4179 (produce_glyphs): Don't set it->char_to_display here.
4180 Don't handle unibyte-display-via-language-environment here.
d419e1d9
KH
4181 (produce_special_glyphs): Set temp_it.char_to_display before
4182 calling produce_glyphs.
4183
4184 * xdisp.c (get_next_display_element): Set it->char_to_display
4185 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
4186 characters.
4187 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
4188 calling PRODUCE_GLYPHS.
4189 (append_space_for_newline): Save and store it->char_to_display.
4190 Set it->char_to_display before calling PRODUCE_GLYPHS.
4191 (extend_face_to_end_of_line): Set it->char_to_display before
4192 calling PRODUCE_GLYPHS.
4193 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
4194 character to its byte value.
4195 (get_char_glyph_code): New function.
4196 (produce_stretch_glyph): Set it2.char_to_display too before
4197 calling x_produce_glyphs.
4198 (x_produce_glyphs): Simplify by using the same code for ASCII and
65b3d997
A
4199 non-ASCII characters. Don't set it->char_to_display here.
4200 Don't handle unibyte-display-via-language-environment here. For a
2b5491fa 4201 character of no glyph, use font->space_width instead of FONT_WIDTH.
d419e1d9 4202
b819f760
SM
42032010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
4204
4205 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
4206
07fa68a7
CY
42072010-08-31 Chong Yidong <cyd@stupidchicken.com>
4208
4209 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
4210
cd196f12
SM
42112010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
4212
4213 * marker.c (Fcopy_marker): Make the first arg optional.
4214
49a752bb
KH
42152010-08-30 Kenichi Handa <handa@m17n.org>
4216
4217 * composite.c (composition_update_it): Fix computing of
4218 cmp_it->width.
4219
769ae9e1
KH
42202010-08-29 Kenichi Handa <handa@m17n.org>
4221
9e69cb05 4222 * term.c (encode_terminal_code): Encode byte chars to the
5616cc54 4223 corresponding bytes.
9e69cb05 4224
4520b858
J
42252010-08-29 Jan Djärv <jan.h.d@swipnet.se>
4226
4227 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
4228
fe50eb41
KH
42292010-08-26 Kenichi Handa <handa@m17n.org>
4230
4231 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
4232 on calling composition_compute_stop_pos.
4233
f6aa6ec6
KH
42342010-08-25 Kenichi Handa <handa@m17n.org>
4235
9dfdbc0a
KH
4236 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
4237 :otf.
4238
f6aa6ec6
KH
4239 * composite.c (composition_compute_stop_pos): Don't break
4240 composition at PT.
4241 (composition_reseat_it): Likewise. Fix calculation of character
4242 position starting a composition.
4243 (Fcomposition_get_gstring): Don't limit the number of components
4244 for automatic composition.
4245
ff94e32c
KH
42462010-08-25 Kenichi Handa <handa@m17n.org>
4247
4248 * composite.c (composition_compute_stop_pos): In forward search,
4249 pay attention to the possibility that some character after ENDPOS
4250 will be composed with charactrs before ENDPOS.
4251
1c409d0b
CY
42522010-08-24 Chong Yidong <cyd@stupidchicken.com>
4253
4254 * keyboard.c (command_loop_1): Don't clobber primary selection
4255 during handle-switch-frame (Bug#6872).
4256
0c372655
MA
42572010-08-23 Michael Albinus <michael.albinus@gmx.de>
4258
4259 * dbusbind.c: Accept UNIX domain sockets as bus address.
4260 (Fdbus_close_bus): New function.
4261 (Vdbus_registered_buses): New variable.
4262 (xd_initialize): Implement string as bus address.
4263 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
4264 (Fdbus_get_unique_name, Fdbus_call_method)
4265 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
4266 (Fdbus_method_error_internal, Fdbus_send_signal)
4267 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
4268 check. This is done in xd_initialize_bus. Adapt doc string, if
4269 necessary.
4270 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
4271 Vdbus_registered_buses.
4272 (Vdbus_registered_objects_table): Create hash.
4273
7133b7ee
JL
42742010-08-22 Juri Linkov <juri@jurta.org>
4275
4276 * keyboard.c (Fexecute_extended_command): Move reading a command name
4277 with `completing-read' to a new Elisp function `read-extended-command'.
4278 Call it to read a command to `function' (bug#5364, bug#5214).
4279
198a7a97
CY
42802010-08-22 Chong Yidong <cyd@stupidchicken.com>
4281
4282 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
4283
b0126eac 42842010-08-22 Andreas Schwab <schwab@linux-m68k.org>
b72e0717
AS
4285
4286 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
4287 instead of SAFE_ALLOCA.
4288
b0126eac 42892010-08-22 Chong Yidong <cyd@stupidchicken.com>
3a7a9129
CY
4290
4291 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
4292 (Bug#6214).
4293
b0126eac 42942010-08-22 Jan Djärv <jan.h.d@swipnet.se>
983b8302
J
4295
4296 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
4297
b0126eac
CY
42982010-08-22 Jan Djärv <jan.h.d@swipnet.se>
4299
4300 * doc.c (Fsnarf_documentation): Initialize skip_file before
4301 build-files test.
4302
692f3ddc 43032010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
b0126eac 4304
692f3ddc
JB
4305 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
4306 New definitions.
b0126eac
CY
4307 (HAVE_TERMIO): Remove.
4308
5f2f0bc1
EZ
43092010-08-22 Eli Zaretskii <eliz@gnu.org>
4310
b613941b
EZ
4311 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
4312
a583bbef
EZ
4313 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
4314 for w32.
4315
4316 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
4317 it's done in nt/config.nt.
4318
4319 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
4320
5f2f0bc1
EZ
4321 * unexcoff.c (report_error, make_hdr, write_segment)
4322 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
4323 Convert argument lists and prototypes to ANSI C.
4324 (make_hdr, write_segment): Remove unused variables.
4325 (unexec): Remove commented-out line. Initialize `new' to shut up
4326 compiler warnings.
4327
a7ebc409
DN
43282010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
4329
4330 Simplify termio code.
4331 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
4332 HAVE_TERMIO code is obsolete.
4333 Replace HAVE_TERMIOS conditionals with !DOS_NT.
4334 * systty.h: Do not define HAVE_TCATTR.
4335 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
4336 Do not define EMACS_HAVE_TTY_PGRP. Only define
4337 EMACS_GET_TTY_PGRP for !DOS_NT.
4338 * sysdep.c: Include sysselect.h unconditionally. Do not include
bba3e508
SM
4339 sys/ioctl.h and termios.h, systty.h does it.
4340 Use HAVE_SYS_UTSNAME_H instead of USG as an include guard.
a7ebc409
DN
4341 (init_baud_rate): Remove HAVE_TERMIO code.
4342 (child_setup_tty): Remove HAVE_TERMIO code.
4343 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
4344 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
4345 (new_ltchars, new_tchars): Remove, unused.
4346 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
bba3e508
SM
4347 code. Remove special casing for __mips__, it was a no-op.
4348 Remove HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
a7ebc409
DN
4349 (init_sys_modes): Remove HPUX special case.
4350 * process.c: Include stdlib.h unconditionally. Do not include
4351 fcntl.h, systty.h does it. Remove conditional code for
4352 HAVE_SERIAL, it is always true.
4353 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
4354 always true when SIGNALS_VIA_CHARACTERS is true.
4355 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
4356 !WINDOWSNT means HAVE_TERMIOS.
4357 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
4358 conditional, which is true for all HAVE_TERMIOS systems.
4359 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
4360 instead of HAVE_TERMIOS.
4361 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
4362 EMACS_HAVE_TTY_PGRP.
4363 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
4364 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
4365 anyway.
4366
914f049b 43672010-08-21 Eli Zaretskii <eliz@gnu.org>
40629f17
EZ
4368
4369 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
4370 mirroring pixel positions.
4371
d931da8c
DN
43722010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
4373
b5c76d0c
DN
4374 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
4375 write only.
4376 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
4377 malloc_sbrk_used, nothing uses them.
4378
74815588
DN
4379 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
4380 defined, unconditionally defined in lisp.h.
4381
f5817d1c
DN
4382 * term.c: Do not include <termios.h>, systty.h does it.
4383
d931da8c
DN
4384 * s/unixware.h (HAVE_TCATTR):
4385 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
4386 systty.h defines it when HAVE_TERMIOS is defined.
4387
ff2de6d2 43882010-08-20 Eli Zaretskii <eliz@gnu.org>
491a1546 4389
b43c883c 4390 * dispnew.c (buffer_posn_from_coords): Fix last change for text
00c53994 4391 terminals: add one-character offset for R2L lines.
b43c883c 4392
491a1546
EZ
4393 * emacs.c <emacs_version>: Add a comment regarding
4394 msdos/mainmake.v2's dependency on the syntax of this declaration.
4395
2396cbba
EZ
43962010-08-20 Eli Zaretskii <eliz@gnu.org>
4397
4398 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
4399 position for R2L lines by mirroring the pixel position wrt the
4400 text are box. Improve commentary.
4401
7df6150a
AS
44022010-08-20 Andreas Schwab <schwab@linux-m68k.org>
4403
4404 * image.c (imagemagick_clear_image): Remove debugging output.
4405
a2e5caf7
SM
44062010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
4407
4408 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
4409 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
4410 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
4411 self-insert-face.
4412 (syms_of_cmds): Initialize the new vars.
4413
20d60baf
JR
44142010-08-19 Jason Rumney <jasonr@gnu.org>
4415
cc477da7
JR
4416 * w32menu.c (set_frame_menubar): Remove call to undefined function.
4417
20d60baf
JR
4418 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
4419
2c0ac867
J
44202010-08-19 Jan Djärv <jan.h.d@swipnet.se>
4421
4422 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
4423
93352106
EZ
44242010-08-18 Eli Zaretskii <eliz@gnu.org>
4425
4426 * xterm.c (x_draw_bar_cursor):
4427 * w32term.c (x_draw_bar_cursor): If the character under cursor is
4428 R2L, draw the bar cursor on its right rather than on its left.
4429
c785836d
SM
44302010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
4431
0193499f
SM
4432 * eval.c (Fdefmacro): Only obey one declaration.
4433
c785836d
SM
4434 * casefiddle.c (casify_region): Setup gl_state.
4435
9cb728a5
J
44362010-08-18 Jan Djärv <jan.h.d@swipnet.se>
4437
4438 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
4439
e1e18511
J
44402010-08-18 Jan Djärv <jan.h.d@swipnet.se>
4441
1d77b63e 4442 * gtkutil.c (update_frame_tool_bar): Literal strings are const char*.
e1e18511 4443
64cb6c78
J
44442010-08-18 David De La Harpe Golden <david@harpegolden.net>
4445
4446 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
4447 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
4448 QPRIMARY => NXPrimaryPboard.
4449 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
4450 NXPrimaryPboard => QPRIMARY.
4451 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
4452 NXSecondaryPboard = SecondarySelection.
4453 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
4454
0c9b8993
GM
44552010-08-18 Joakim Verona <joakim@verona.se>
4456
4457 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
4458 defined:
4459 (imagemagick_image_p): New function to test for ImageMagic image.
4460 (imagemagick_load): New function to load ImageMagick image.
4461 (imagemagick_load_image): New function, helper for imagemagick_load.
4462 (imagemagick-types): New function.
4463 (Qimagemagick): New Lisp_object.
4464 (imagemagick-render-type): New variable, decides which renderer to use.
ccd80618 4465
c3554f68
SM
44662010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
4467
4468 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
4469 is a string.
4470
1ff2e434
J
44712010-08-17 Jan Djärv <jan.h.d@swipnet.se>
4472
4473 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
4474 x_set_tool_bar_position handler.
4475
0cc56427
EZ
44762010-08-17 Eli Zaretskii <eliz@gnu.org>
4477
4478 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
4479 x_set_tool_bar_position handler, needed to support changes from
4480 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
4481
e45a249b
JD
44822010-08-16 Jan Djärv <jan.h.d@swipnet.se>
4483
921242c6
J
4484 * nsselect.m: include keyboard.h for QPRIMARY, remove its
4485 declaration (Bug#6863).
573d150b 4486 (syms_of_nsselect): Don't intern QPRIMARY.
921242c6 4487
e45a249b
JD
4488 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
4489
4490 * keyboard.h (QPRIMARY): Declare (Bug#6864).
4491
7c23dd44
CY
44922010-08-16 Chong Yidong <cyd@stupidchicken.com>
4493
4494 * keyboard.c (command_loop_1): Avoid setting selection twice,
4495 since it's done in deactivate-mark as well.
4496 (Vselect_active_regions): Change default to t. Replace `lazy'
4497 with non-default value `only', meaning only set PRIMARY for
4498 temporarily active regions.
4499
4500 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
4501 select-active-regions.
4502
0005830c
J
45032010-08-15 Jan Djärv <jan.h.d@swipnet.se>
4504
4505 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
4506 isn't a string.
4507
603dfc72
AS
45082010-08-15 Andreas Schwab <schwab@linux-m68k.org>
4509
4510 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
4511
c25ce9d0
J
45122010-08-15 Jan Djärv <jan.h.d@swipnet.se>
4513
c3554f68
SM
4514 * keyboard.c (parse_tool_bar_item): malloc buf.
4515 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
4516 new_lbl (Bug#6855).
c25ce9d0 4517
5872c762
EZ
45182010-08-14 Eli Zaretskii <eliz@gnu.org>
4519
b236615c
EZ
4520 * xterm.c (x_draw_stretch_glyph_string):
4521 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
4522 the cursor on the right edge of the stretch glyph.
4523
c3554f68
SM
4524 * xdisp.c (window_box_right_offset, window_box_right):
4525 Fix commentary.
b236615c 4526
5872c762
EZ
4527 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
4528 direction when point is inside a run of whitespace characters.
4529
4530 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
4531
e66f9a1b
JR
45322010-08-14 Jason Rumney <jasonr@gnu.org>
4533
4534 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
4535
79d6f59e
CY
45362010-08-14 Chong Yidong <cyd@stupidchicken.com>
4537
4538 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
4539
1c9b4129
JR
45402010-08-13 Jason Rumney <jasonr@gnu.org>
4541
4542 * w32menu.c (simple_dialog_show): Use unicode message box if available.
4543 (MessageBoxW_Proc): New function typedef.
4544 (unicode-message-box): New function pointer.
4545 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
4546
2b4e6277
J
45472010-08-13 Jan Djärv <jan.h.d@swipnet.se>
4548
4549 * frame.h (Qtool_bar_position): Declare.
4550
4551 * xfns.c (Fx_create_frame): Call x_default_parameter for
4552 Qtool_bar_position.
4553
94c97d85
EZ
45542010-08-13 Eli Zaretskii <eliz@gnu.org>
4555
8ee81892
EZ
4556 * unexcoff.c: Remove the parts used when "emacs" is not defined.
4557 (report_error, report_error_1): Ditto.
4558 (write_segment): Remove "#if 0" unused code.
4559 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
4560 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
4561 (start_of_text): Remove unused function (was used only if NO_REMAP
4562 was NOT defined).
4563
891ef8f7
EZ
4564 * msdos.c (IT_set_face): Fix format string to match argument
4565 types.
4566 (IT_write_glyphs, IT_note_mode_line_highlight)
4567 (IT_set_frame_parameters): Remove unused variables.
4568 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
4569 (IT_set_terminal_modes): Disambiguate expression in if clause.
4570 (Fmsdos_remember_default_colors): Return Qnil.
4571 (IT_set_frame_parameters): Add parens to disambiguate boolean
4572 expression for logging the cursor type to termscript.
4573 (keyboard_layout_list, keypad_translate_map)
4574 (grey_key_translate_map): Add braces in inner initializers.
4575 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
4576 (dos_rawgetc): Remove unused label.
4577 (XMenuActivate): Add braces to remove ambiguous `else'.
4578 (dos_ttraw): Always return a value.
4579 (spawnve): Declare.
4580 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
4581
4582 * dosfns.h (x_set_title): Declare.
4583
4584 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
4585 Remove unused variables.
4586
4587 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
4588 variables.
4589 (init_dosfns): Declare get_lim_data.
4590 (system_process_attributes): Declare Fget_internal_run_time.
4591
38e41e0e
EZ
4592 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
4593 list to be consistent with menu.h.
4594
94c97d85
EZ
4595 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
4596 warnings due to mixing of "char *" and "const char *".
4597
c5683ceb
SM
45982010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
4599
4600 Introduce a new comment style "c" flag.
4601 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
4602 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
4603 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
4604 (syntax_prefix_flag_p): New function.
4605 (Fstring_to_syntax): Understand new "c" flag.
4606 (Finternal_describe_syntax_value): Recognize new flag; use the
4607 SYNTAX_FLAGS_* macros.
4608 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
4609 comment style to accomodate the new styles.
4610 (back_comment, forw_comment, Fforward_comment, scan_lists)
4611 (scan_sexps_forward): Update code to obey the new comment style flag.
4612
4613 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
4614
4615 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
4616
7aee76f4
J
46172010-08-11 Jan Djärv <jan.h.d@swipnet.se>
4618
3a46642b
J
4619 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
4620 first.
94dff98f 4621 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
3a46642b
J
4622
4623 * gtkutil.h (xg_check_special_colors): Declare.
4624
4625 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
4626 (xg_create_frame_widgets): Connect theme name changes to
4627 style_changed_cb.
4628
42ca4633
J
4629 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
4630 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
4631 (x_term_init): Use char[] display_opt and name_opt instead of
93acd23d 4632 string literal. file is const char*.
42ca4633
J
4633
4634 * xsmfns.c (NOSPLASH_OPT): Change to char[].
4635 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
4636 props. Free them at the end.
4637
4638 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
4639
c5683ceb
SM
4640 * xrdb.c (get_system_app): Make path const and use char *p for
4641 non-const char.
42ca4633
J
4642
4643 * xmenu.c (Fx_popup_dialog): error_name is const char*.
93acd23d 4644 (xmenu_show): error parameter is const char **. pane_string is const
42ca4633
J
4645 char *.
4646 (button_names): Is const char *.
4647 (xdialog_show): error_name and pane_string is const.
4648
4649 * process.h (synch_process_death): Is const char*.
4650
4651 * w32menu.c (w32_menu_show):
4652 * nsmenu.m (ns_menu_show): error parameter is const char **.
4653
4654 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
4655 is const char **.
4656
4657 * menu.c (Fx_popup_menu): error_name is const.
4658
4659 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
4660 with unsigned char and XtPointer with void *.
4661
4662 * gtkutil.h: Replace widget_value with struct _widget_value.
4663 (enum button_type, struct _widget_value): Remove and use the one from
4664 keyboard.h.
4665
4666 * gtkutil.c (get_utf8_string): Always return an allocated string.
4667 Parameter is const.
4668 (create_dialog, xg_create_one_menuitem, create_menus)
4669 (xg_item_label_same_p, xg_update_menu_item): Free result from
4670 get_utf8_string.
4671 (xg_separator_p, xg_item_label_same_p): label is const.
4672
4673 * font.h (font_open_by_name): Make name const.
4674
4675 * font.c (font_open_by_name): Make name const.
4676
4677 * floatfns.c (matherr): Use a const char* variable for x->name.
4678
4679 * emacs.c (main): Pass char[] to putenv instead of literal.
4680
4681 * callproc.c (synch_process_death): Make const.
4682 (Fcall_process): Make signame const.
4683
9c5bd55a
J
4684 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
4685 (addDisplayItemWithImage): Use const char*.
4686
4687 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
4688 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
4689
4690 * nsfont.m (ns_descriptor_to_entity): Use const char*.
4691
4692 * keyboard.h (_widget_value): name, value and key are const char*.
4693
7aee76f4
J
4694 * unexmacosx.c (unexec_error): Use const char *.
4695
09d93395
DN
46962010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
4697
4698 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 4699 (font_parse_name, font_open_by_name):
09d93395 4700 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 4701 (font_parse_name, font_open_by_name): Remove const.
09d93395 4702
671d409f
AS
47032010-08-09 Andreas Schwab <schwab@linux-m68k.org>
4704
4705 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
4706 definition.
4707
4708 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
4709 * m/amdx86-64.h: Likewise.
4710 * m/arm.h: Likewise.
4711 * m/hp800.h: Likewise.
4712 * m/ia64.h: Likewise.
4713 * m/ibmrs6000.h: Likewise.
4714 * m/ibms390.h: Likewise.
4715 * m/intel386.h: Likewise.
4716 * m/iris4d.h: Likewise.
4717 * m/m68k.h: Likewise.
4718 * m/macppc.h: Likewise.
4719 * m/mips.h: Likewise.
4720 * m/sh3.h: Likewise.
4721 * m/sparc.h: Likewise.
4722 * m/template.h: Likewise.
4723 * m/vax.h: Likewise.
4724 * m/xtensa.h: Likewise.
4725 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
4726 WORDS_BIG_ENDIAN.
4727 * lisp.h: Likewise.
4728 * md5.c: Likewise.
4729 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
4730
8ea90aa3
DN
47312010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
4732
4733 Use const char* instead of char*.
4734 Reduce the number of warnings with -Wwrite-strings.
4735 * xrdb.c (get_environ_db, get_system_name):
4736 * unexelf.c (find_section):
4737 * term.c (string_cost, string_cost_one_line, per_line_cost)
4738 (get_named_tty, init_tty):
4739 * sysdep.c (sys_subshell):
4740 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
4741 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
4742 * search.c (Freplace_match):
4743 * process.c (Fmake_network_process, send_process, init_process):
4744 * lread.c (Fload, init_lread):
4745 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
4746 * keyboard.c (parse_tool_bar_item, struct event_head):
4747 * gtkutil.h (xg_get_font_name):
4748 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
4749 (make_widget_for_menu_item, make_menu_item, create_menus)
4750 (xg_make_tool_item):
4751 * font.c (parse_matrix, font_parse_name):
4752 * floatfns.c (rounding_driver, float_error_fn_name):
4753 * filelock.c (get_boot_time_1, lock_file_1):
4754 * fileio.c (barf_or_query_if_file_exists, check_writable):
4755 * editfns.c (get_system_name, get_operating_system_release)
4756 (Fencode_time, Fset_time_zone_rule):
4757 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
4758 * buffer.c (defvar_per_buffer): Use const.
4759
7815fe19 47602010-08-08 Kenichi Handa <handa@m17n.org>
7a84eee5 4761
692f3ddc 4762 * charset.c: Include <stdlib.h>.
7a84eee5
KH
4763 (struct charset_sort_data): New struct.
4764 (charset_compare): New function.
692f3ddc 4765 (Fsort_charsets): New function.
7a84eee5
KH
4766 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
4767
4768 * coding.c (decode_coding_iso_2022): Fix checking of dimension
4769 number in CTEXT extended segment.
4770
7815fe19 47712010-08-08 Juanma Barranquero <lekktu@gmail.com>
f5f6c0e0
JB
4772
4773 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
4774 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
4775
7815fe19 47762010-08-08 Juanma Barranquero <lekktu@gmail.com>
b756c005
JB
4777
4778 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
4779 (Fhash_table_size): Fix typos in docstrings.
4780 (Fmake_hash_table): Doc fix.
4781
7815fe19 47822010-08-08 Juanma Barranquero <lekktu@gmail.com>
b4f588fa
JB
4783
4784 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
4785 Doc fix (bug#5625).
4786
7815fe19 47872010-08-08 Ken Brown <kbrown@cornell.edu>
9f8c08a7
KB
4788
4789 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
4790 the MSDOS definition.
4791
1b6d8cf0
DN
47922010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
4793
675e2c69
DN
4794 Use const char* instead of char*.
4795 * xterm.c (x_create_toolkit_scroll_bar):
4796 * xfont.c (xfont_list_pattern):
4797 * xfns.c (x_default_scroll_bar_color_parameter)
4798 (xic_create_fontsetname, x_default_font_parameter)
4799 (x_screen_planes):
4800 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
4801 (store_mode_line_string, decode_mode_spec, display_string):
4802 * menu.c (digest_single_submenu):
4803 * keymap.h (initial_define_key, initial_define_lispy_key):
4804 * keymap.c (initial_define_key, initial_define_lispy_key):
4805 * image.c (image_error, image_keyword):
4806 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
4807 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
4808 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
4809 (ftfont_list, ftfont_match):
4810 * frame.c (frame_parm_table):
4811 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
4812 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
4813 (font_add_log, font_deferred_log):
4814 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
4815 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
4816 (font_add_log, font_deferred_log):
4817 * emacs.c (argmatch):
4818 * dispextern.h (struct it):
4819 * coding.c (ENCODE_DESIGNATION):
4820 * charset.c (define_charset_internal): Use const.
4821
25717ca1
DN
4822 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
4823
c5683ceb
SM
4824 * xrdb.c: Remove include guard.
4825 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
1b6d8cf0
DN
4826 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
4827 realloc->xrealloc instead of using #defines.
4828
efb41e21
EZ
48292010-08-08 Eli Zaretskii <eliz@gnu.org>
4830
cd21226d 4831 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
c5683ceb
SM
4832 * editfns.c (Fline_beginning_position, Fline_end_position):
4833 State in the doc strings that start and end of line are in the
4834 logical order.
cd21226d 4835
efb41e21
EZ
4836 * xdisp.c (display_line): Move the handling of overlay arrow after
4837 the call to find_row_edges. (Bug#6699)
4838
746812d9
CY
48392010-08-07 Chong Yidong <cyd@stupidchicken.com>
4840
4841 * keyboard.c (command_loop_1):
4842 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
4843
9852377f
CY
48442010-08-07 Chong Yidong <cyd@stupidchicken.com>
4845
4846 * insdel.c (prepare_to_modify_buffer): Save active region text to
4847 Vsaved_region_selection.
4848
4849 * xselect.c (QPRIMARY): Move to keyboard.c.
4850
4851 * keyboard.c (Vselect_active_regions): Move from simple.el.
8d9e03e4
JB
4852 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
4853 (command_loop_1): Set window selection prior to deactivating the mark.
9852377f 4854
0e9c8657
JB
48552010-08-07 Juanma Barranquero <lekktu@gmail.com>
4856
4857 * alloc.c (lisp_malloc):
4858 * buffer.c (set_buffer_internal, set_buffer_internal_1):
4859 * charset.h (emacs_mule_charset):
4860 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
4861 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
4862 (bitch_at_user):
4863 * lisp.h (Fcheck_coding_system, Fget_text_property)
4864 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
4865 Remove duplicate declarations.
4866
648801d1
DN
48672010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
4868
32bc6709
DN
4869 * process.c: Simplify include logic.
4870
3ef1d108
DN
4871 * keyboard.h (quit_char): Add declaration.
4872 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
8d9e03e4
JB
4873 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
4874 Add declarations.
3ef1d108
DN
4875 * sysdep.c:
4876 * w32.c: Remove the above declarations.
4877
97ec208f
DN
4878 Remove extern declarations in .c files, .h files have them.
4879 * xterm.c:
4880 * xdisp.c:
97ec208f
DN
4881 * msdos.c:
4882 * image.c:
4883 * gtkutil.c:
4884 * fileio.c:
4885 * eval.c: Remove declarations.
4886
94eed851
DN
4887 * frame.c (frame_params): Make const.
4888
36e053eb
DN
4889 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
4890
0e843971
DN
4891 * emacs.c (emacs_copyright, emacs_version): Make static.
4892 (Vinitial_window_system, Vauto_save_list_file_name)
4893 (Vinhibit_redisplay): Remove declarations.
4894 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
4895 for AIX.
4896
648801d1
DN
4897 Use const for some arrays and functions.
4898 * xterm.h (xg_set_icon_from_xpm_data):
4899 * xfns.c (xg_set_icon_from_xpm_data):
4900 * term.c (fkeys):
4901 * keyboard.c (lispy_accent_keys, lispy_function_keys)
4902 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
4903 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
4904 (frame.c frame_parms):
4905 * emacs-icon.h (gnu_xpm_bits):
4906 * callint.c (callint_argfuns): Use const.
4907
8646d999
J
49082010-08-06 Jan Djärv <jan.h.d@swipnet.se>
4909
4910 * sysdep.c: Move include term.h last of includes (Bug#6812).
4911
cb4545ad
EZ
49122010-08-06 Eli Zaretskii <eliz@gnu.org>
4913
4914 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
4915
4916 * msdos.c (IT_display_cursor): Log cursor position on termscript.
4917
4918 * .gdbinit (pgx): Display the avoid_cursor_p flag.
4919
da7e2be6
JB
49202010-08-06 Juanma Barranquero <lekktu@gmail.com>
4921
4922 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
4923
3d608a86
J
49242010-08-06 Jan Djärv <jan.h.d@swipnet.se>
4925
7908fb60
J
4926 * xterm.h (x_get_focus_frame): Declare.
4927
4928 * keyboard.h (poll_for_input_1): Unconditionally declare.
4929
4094bf36
J
4930 * nsterm.h (x_set_menu_bar_lines): Declare.
4931
4932 * window.c: Don't include menu.h, it depends on lots of other .h-files.
4933
3d608a86
J
4934 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
4935
4936 * window.c: Include menu.h.
4937
4938 * unexmacosx.c (print_region_list, print_regions)
4939 (build_region_list, find_emacs_zone_regions)
4940 (unexec_regions_merge, read_load_commands, dump_it)
4941 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
4942
4943 * term.c: Check HAVE_SYS_IOCTL_H.
4944
686b968e 4945 * sysdep.c: Check HAVE_TERM_H.
3d608a86 4946
686b968e 4947 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
3d608a86
J
4948
4949 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
4950 (ns_ring_bell, ns_defined_color, hide_hourglass)
4951 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
4952 Convert to ANSI C prototypes.
4953 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
4954 before code.
4955
4956 * nsterm.h : Include sysselect.h.
4957 (x_sync, x_get_focus_frame, x_set_mouse_position)
4958 (x_set_mouse_pixel_position, x_make_frame_visible)
4959 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
4960 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
4961 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
4962 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
686b968e 4963 Declare.
3d608a86
J
4964
4965 * nsmenu.m (popup_activated, name_is_separator)
4966 (syms_of_nsmenu): Convert to ANSI C prototypes.
4967 (runMenuAt): Prototypes and move declarations before code.
4968
4969 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
4970
4971 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
4972 prototypes.
4973
4974 * nsfns.m (have_menus_p, ns_display_info_for_name)
4975 (x_set_cursor_type, ns_appkit_version_str)
4976 (ns_appkit_version_int, ns_do_applescript)
4977 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
4978 (syms_of_nsfns): Convert to ANSI C prototypes.
4979
4980 * menu.h (x_set_menu_bar_line): Declare.
4981 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
4982
4983 * lisp.h (fmod_float): Declare.
4984
4985 * image.c (xpm_scan, xpm_make_color_table_v)
4986 (xpm_put_color_table_v, xpm_get_color_table_v)
4987 (xpm_make_color_table_h, xpm_put_color_table_h)
4988 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
4989 (xpm_load): Convert to ANSI C prototypes.
4990
4991 * emacs.c: Include nsterm.h if HAVE_NS.
4992
4993 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
4994
fce70521
DN
49952010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
4996
4997 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
4998 subprocesses, only MSDOS does not define HAVE_SOCKETS.
4999 (socket_options): Use const char* for name.
5000
a11889ab
JB
50012010-08-06 Juanma Barranquero <lekktu@gmail.com>
5002
5003 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
5004
5005 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
5006 Don't declare xmalloc_widget_value and digest_single_submenu.
5007
5008 * w32font.c (Qlatin): Remove declaration.
5009
5010 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
5011
c95b508f 5012 * dired.c (compile_pattern): Restore declaration.
a11889ab 5013
6254cdda
DN
50142010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
5015
04bab72c
DN
5016 Remove extern declarations in .c files, .h files have them.
5017 * data.c:
5018 * dired.c:
5019 * editfns.c:
5020 * filelock.c:
5021 * fns.c:
5022 * font.c:
5023 * fontset.c:
5024 * frame.c:
5025 * fringe.c:
5026 * ftfont.c:
5027 * gtkutil.c:
5028 * indent.c:
5029 * keyboard.c:
5030 * keymap.c:
5031 * lread.c:
5032 * menu.c:
5033 * print.c:
5034 * search.c:
5035 * sound.c:
5036 * window.c:
5037 * xdisp.c:
5038 * xfaces.c:
5039 * xfns.c:
5040 * xfont.c:
5041 * xftfont.c:
5042 * xmenu.c:
5043 * xterm.c: Remove declarations.
5044
dff94ed5
DN
5045 Cleanup syssignal.h.
5046 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
5047 (main_thread): Move down to remove #ifdef.
5048 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
5049 Remove conditional definition following unconditional ones.
5050
99f3388e
DN
5051 * lisp.h: Remove HAVE_SHM code, unused.
5052 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
5053 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
5054 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
5055 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
5056 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
5057 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
5058 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
5059 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
5060 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
5061 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
5062 (Qwindow_scroll_functions, Vafter_load_alist)
5063 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
5064 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
5065 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
5066 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
5067 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
5068 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
5069 (initial_argv, last_nonmenu_event, load_in_progress)
5070 (noninteractive_need_newline, scroll_margin): Add declarations.
5071
bba3e508
SM
5072 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
5073 Remove declarations, menu.h has them.
99f3388e
DN
5074 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
5075 (Vinput_method_function, Qinput_method_function)
5076 (Qevent_symbol_element_mask, last_event_timestamp):
5077 * dispextern.h (Voverflow_newline_into_fringe):
5078 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
5079 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
5080 (syms_of_w32font, syms_of_nsfont):
5081 * fontset.h (find_font_encoding, Qlatin):
5082 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
5083 (Vtool_bar_mode, set_frame_menubar):
5084 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
5085 * xterm.h (Qx_gtk_map_stock):
5086 * keymap.h (meta_prefix_char): Add declarations.
5087
9f5dd6f2
DN
5088 * term.c: Remove dead code.
5089
6254cdda
DN
5090 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
5091 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
5092 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
5093 which is what was there before BSD_PGRPS was removed.
5094
29cf3e20
EZ
50952010-08-05 Eli Zaretskii <eliz@gnu.org>
5096
5097 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
5098
5099 * unexcoff.c: Renamed from unexec.c.
5100
aaa0a19a
SM
51012010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
5102
5103 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
5104
8d1d9587
JB
51052010-08-03 Johan Bockgård <bojohan@gnu.org>
5106
5107 * data.c (Flocal_variable_p): Handle variable aliases correctly.
e0d62a9b 5108 (Bug#6744)
8d1d9587 5109
9a747ba6
JD
51102010-08-02 Jan Djärv <jan.h.d@swipnet.se>
5111
4d464ae4
JD
5112 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
5113 to TRUE if depth of screen is < 16.
5114
ac01763e
JD
5115 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
5116 USE_GTK_TOOLTIP.
e0d62a9b
JB
5117 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
5118 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4d464ae4 5119 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
ac01763e
JD
5120 USE_GTK_TOOLTIP.
5121 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
5122
5123 * xterm.h (USE_GTK_TOOLTIP): New define.
5124 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
5125
9a747ba6
JD
5126 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
5127 to Control-D (Bug#6771).
5128
7b0815ba
JB
51292010-08-02 Juanma Barranquero <lekktu@gmail.com>
5130
5131 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
5132 Wording by Drew Adams <drew.adams@oracle.com>.
5133
aa1859f5
J
51342010-08-01 Jan Djärv <jan.h.d@swipnet.se>
5135
5136 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
5137 ttip_lbl.
5138
5139 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
5140 calling gtk_widget_queue_draw.
5141 (x_free_frame_resources): Call xg_free_frame_widgets.
5142
5143 * xfns.c (x_gtk_use_system_tooltips): New variable.
5144 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
5145 new gtkutil tooltip functions to show the tooltip.
5146 (Fx_hide_tip): Call xg_hide_tooltip.
5147 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
5148
5149 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
5150 (xg_show_tooltip, xg_hide_tooltip): Declare.
5151
5152 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
e0d62a9b
JB
5153 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
5154 New functions.
aa1859f5
J
5155 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
5156 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
5157 Remove code that is commented out.
5158
76417ef4
SM
51592010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
5160
5161 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
5162
16041401
CY
51632010-07-31 Chong Yidong <cyd@stupidchicken.com>
5164
5165 * xselect.c (x_own_selection): Use list4.
5166
2c09a58f
DN
51672010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
5168
5169 * buffer.c (Qwindow): Do not define, already defined in data.c.
5170 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
5171
59df9fdd 51722010-07-29 Chad Brown <yandros@mit.edu>
1c97e857 5173
59df9fdd
JB
5174 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
5175 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
5176 * config.in: Undef HAVE_DIRENT_H.
1c97e857 5177 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
59df9fdd 5178 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1c97e857 5179
1b231651
DN
51802010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
5181
5182 Rename s/usg5-4.h -> s/usg5-4-common.h.
5183 * s/usg5-4.h: Rename file to ...
5184 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
5185 * s/unixware.h:
5186 * s/sol2-6.h:
5187 * s/irix6-5.h: Update includes accordingly.
5188
bfeabdc3
JD
51892010-07-29 Jan Djärv <jan.h.d@swipnet.se>
5190
2ebf1083
J
5191 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
5192
bfeabdc3 5193 * xterm.h (struct x_output): Add toolbar_top_height,
e0d62a9b
JB
5194 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
5195 Remove toolbar_height.
5196 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
bfeabdc3
JD
5197 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
5198 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
5199 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
5200
5201 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
5202
5203 * xfns.c (x_set_tool_bar_position): New function.
5204 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
5205 (x_frame_parm_handlers): Add x_set_tool_bar_position.
e0d62a9b 5206 (syms_of_xfns): If USE_GTK, provide move-toolbar.
bfeabdc3
JD
5207
5208 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
5209 and FRAME_TOOLBAR_LEFT_WIDTH.
5210
5211 * gtkutil.h (xg_change_toolbar_position): Declare.
5212
5213 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
5214 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
5215 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
5216 (xg_create_frame_widgets): Create a hobox for placing widgets
5217 vertically. Use gtk_box_pack_start.
ef1b0ba7 5218 (xg_height_or_width_changed): Rename from xg_height_changed.
bfeabdc3
JD
5219 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
5220 (xg_update_frame_menubar, free_frame_menubar): Change to
5221 xg_height_or_width_changed.
5222 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
5223 size correctly. Remove hardcoded 4, instead use handlebox size -
5224 toolbar size.
5225 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
e0d62a9b 5226 size correctly. Use handlebox size + toolbar size as additional size.
bfeabdc3
JD
5227 (xg_pack_tool_bar): POS is a new parameter.
5228 Set orientation of tool bar based on pos.
5229 Only make handlebox_widget if NULL.
5230 Check if tool bar goes to vbox or hbox depending on pos.
5231 (xg_update_tool_bar_sizes): New function.
686b968e 5232 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
bfeabdc3
JD
5233 height, call xg_update_tool_bar_sizes instead.
5234 (free_frame_tool_bar): Remove from hbox or vbox depending on
5235 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
5236 (xg_change_toolbar_position): New function.
5237
5238 * frame.h (struct frame): Add tool_bar_position.
5239 (Qbottom): Declare.
5240
5241 * frame.c (Qtool_bar_position): New variable.
5242 (make_frame): Set tool_bar_position to Qtop.
5243 (frame_parms): Add tool-bar-position.
5244 (x_report_frame_params): Store tool_bar_position.
5245 (x_set_fringe_width): Reset wm size hint after fringe changes.
5246
26469a38
DN
52472010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
5248
5249 Make lisp_time_argument declaration work on all systems.
5250 * lisp.h (lisp_time_argument): Move declaration ...
5251 * systime.h (lisp_time_argument): ... here
5252 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
5253
8848b728
JD
52542010-07-29 Jan Djärv <jan.h.d@swipnet.se>
5255
5256 * vm-limit.c (POINTER): Add typedef for it.
5257 (start_of_data): Change return type from POINTER to char *.
5258
5259 * frame.h (Qtty_color_mode): Move declaration out of ifdef
5260 HAVE_WINDOW_SYSTEM.
5261
76fd1ee9
DN
52622010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
5263
0441987e
DN
5264 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
5265 Remove reference to __osf__, unused.
5266
56a000c7
DN
5267 * mem-limits.h: Remove duplicated includes.
5268 (NULL): Remove definition, unused.
5269 (POINTER): Remove definition.
5270 (start_of_data): Use char* in prototype, as the function
5271 definition does.
5272
e6cba650
DN
5273 Remove extern declarations from .c files, and them to .h files.
5274 * keyboard.h (Qhelp_echo, waiting_for_input)
5275 (input_available_clear_time, ignore_mouse_drag_p)
5276 (Vdouble_click_time, real_this_command, Vthis_original_command):
5277 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
5278 (Voverriding_local_map_menu_flag):
5279 * lisp.h (Qinteractive_form, use_file_dialog)
5280 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
5281 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
5282 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
5283 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
5284 (Qfunction, debug_on_next_call, Qfield)
5285 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
5286 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
5287 (Qfile_directory_p, Qinsert_file_contents)
5288 (Qcompletion_ignore_case, Qcompletion_ignore_case)
5289 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
5290 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
5291 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
5292 (Qminibuffer_prompt)
5293 (Vtemporary_file_directory,char_ins_del_vector, Qface):
5294 * xterm.h (gray_bitmap_width, gray_bitmap_height)
5295 (gray_bitmap_bits, xic_create_fontsetname):
5296 * coding.h (Vtranslation_table_for_input): Add extern declarations.
5297
5298 * xsmfns.c (Vuser_login_name):
5299 * xrdb.c (Vdouble_click_time):
5300 * xfaces.c (xic_create_fontsetname):
5301 * w32select.c (waiting_for_input):
5302 * print.c (minibuffer_auto_raise):
5303 * msdos.c (Qhelp_echo):
5304 * macros.c (real_this_command):
5305 * keymap.c (Voverriding_local_map):
5306 * xterm.c (poll_for_input_1, gray_bitmap_width)
5307 (gray_bitmap_height, gray_bitmap_bits;
5308 * xmenu.c ( Voverriding_local_map)
5309 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
5310 (use_file_dialog, Xt_app_con):
5311 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
5312 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
5313 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
5314 (Qtool_bar_lines, ignore_mouse_drag_p):
5315 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
5316 (Qrear_nonsticky, nconc2):
5317 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
5318 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
5319 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
5320 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
5321 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
5322 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
5323 (gc_in_progress):
5324 * doc.c (Voverriding_local_map, Qremap):
5325 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
5326 (Vcompletion_regexp_list):
5327 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
5328 (Qcompletion_ignore_case):
5329 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
5330 (Vhistory_length, Vthis_original_command, real_this_command)
5331 (Qface, Qminibuffer_prompt, history_delete_duplicates):
5332 * image.c (Qrisky_local_variable):
5333 * fontset.c (QCname):
5334 * fns.c (minibuffer_auto_raise, QCname):
5335 * dispnew.c (char_ins_del_cost):
5336 * composite.c (font_fill_lglyph_metrics):
5337 * cmds.c (Qface, Vtranslation_table_for_input):
5338 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
5339 * ccl.c (charset_unicode):
5340 * callproc.c (Vtemporary_file_directory):
5341 * buffer.c (emacs_strerror): Remove extern declarations.
5342
5343 * data.c (Qwindow): Make non-static, used from other files too.
5344 * frame.c (validate_x_resource_name): Remove shadow definition for i.
5345
76fd1ee9
DN
5346 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
5347 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
5348 * s/usg5-4.h (COFF):
5349 * s/template.h:
5350 * s/msdos.h (COFF, NO_REMAP):
5351 * s/ms-w32.h (NO_REMAP):
5352 * s/hpux10-20.h (NO_REMAP):
5353 * m/sparc.h (SEGMENT_MASK):
5354 * m/m68k.h (NO_REMAP):
5355 * m/intel386.h (SEGMENT_MASK):
5356 * m/arm.h (NO_REMAP):
5357 * m/alpha.h (COFF):
5358 * m/template.h: Remove references to unused defines.
5359
8a52f00a
JD
53602010-07-28 Jan Djärv <jan.h.d@swipnet.se>
5361
5362 * xsettings.c (Ftool_bar_get_system_style): Also check for
5363 Qtext_image_horiz.
5364
5365 * xdisp.c (Qtext_image_horiz): Define.
5366 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 5367 to documentation of tool-bar-style.
8a52f00a
JD
5368
5369 * lisp.h (Qtext_image_horiz): Declare.
5370
5371 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
5372 style text_image_horiz.
5373
89dc303e
DN
53742010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
5375
60799703
DN
5376 * emacs.c (Fkill_emacs): Remove return statement.
5377
37254dc1
DN
5378 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
5379 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
bba3e508
SM
5380 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys):
5381 Remove local extern declarations.
37254dc1 5382
71c7345a
DN
5383 * xmenu.c: Do not included lwlib.h, not needed.
5384
6ba577cb
DN
5385 * m/iris4d.h (XUINT, XSET): Remove, not needed.
5386
fdb183d6
DN
5387 * process.c: Move definitions earlier to minimize #ifdefs.
5388
5389 * xterm.h (x_get_customization_string, x_load_resources)
5390 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
5391 (x_check_errors, x_property_data_to_lisp, defined_color)
5392 (xic_set_xfontset, x_defined_color): Use const.
5393
5394 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
5395 (x_text_icon, x_check_errors, x_connection_closed): Use const.
5396
5397 * xselect.c (selection_data_to_lisp_data)
5398 (x_property_data_to_lisp):
5399 * xrdb.c (x_get_string_resource, file_p)
5400 (x_get_customization_string, magic_file_p, search_magic_path)
5401 (get_system_app, get_user_app, x_load_resources, x_get_resource)
5402 (x_get_string_resource): Use const.
5403
5404 * xfns.c: Include xlwmenu.h when USE_LUCID.
5405 (x_defined_color, xic_set_xfontset): Use const.
5406 (Fx_hide_tip): Remove local extern declaration.
5407
5408 * xfaces.c (Qmouse_face): Remove declaration.
5409 (face_color_gray_p, tty_defined_color, defined_color)
686b968e 5410 (face_color_gray_p, face_color_supported_p): Add const.
fdb183d6
DN
5411
5412 * xdisp.c (do_mouse_tracking): Remove declaration.
5413 (add_to_log): Use const.
5414
5415 * minibuf.c (Qmouse_face): Remove declaration.
5416
5417 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
5418
5419 * keyboard.h (do_mouse_tracking): Add declaration.
5420
5421 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
5422 (QCdata, QCtype, Qcenter): Remove declarations.
5423
5424 * frame.c (x_get_resource_string, x_get_string_resource)
5425 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
5426 (x_default_parameter): Use const.
5427
5428 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
5429 (QCheight, QCsize, QCname): Remove declarations.
5430
5431 * emacs.c (main): Remove local extern declaration.
5432
5433 * editfns.c (region_limit, syms_of_editfns): Remove local extern
5434 declarations.
5435
5436 * dispnew.c: Remove duplicate #include <unistd.h>.
5437 (update_window, update_frame_1, init_display): Remove local extern
5438 declarations.
5439
5440 * dispextern.h (add_to_log): Remove declaration.
5441 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
5442 (x_frame_get_and_record_arg, x_default_parameter): Add const.
5443
5444 * dired.c (scmp): Add const.
5445 (directory_files_internal): Remove local extern declaration.
5446
5447 * data.c (Finteractive_form): Use const.
5448
5449 * composite.c (syms_of_composite): Remove local extern declarations.
5450
5451 * charset.c (add_to_log): Remove declaration.
5452
5453 * character.c (strwidth, parse_str_to_multibyte): Add const.
5454
5455 * character.h (strwidth, parse_str_to_multibyte): Likewise.
5456
5457 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
5458
89dc303e 5459 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
5460 (Lisp_Subr): Make doc and intspec constant.
5461 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
5462 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
5463 (QCheight, QCsize, QCname, QCwidth, QCforeground)
5464 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
5465 (display_arg): Add declarations.
89dc303e 5466
0ed082fe 54672010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
5468
5469 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
5470
0ed082fe
JB
5471 * window.c (Fwindow_height): Doc fix (bug#6518).
5472
54732010-07-27 Juanma Barranquero <lekktu@gmail.com>
5474
5475 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
5476
ccaf0336
DN
54772010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
5478
977105dc
DN
5479 * keyboard.c (Ftop_level, Fexit_recursive_edit)
5480 (Fabort_recursive_edit): Remove return statements in NO_RETURN
5481 functions.
5482
f5ada890
DN
5483 * frame.h (Qtty_color_mode): Add declaration.
5484
ccaf0336
DN
5485 * lisp.h (Ftop_level, Fexit_recursive_edit)
5486 (Fabort_recursive_edit): Mark as NO_RETURN.
5487
dfe3c90f
KH
54882010-07-26 Kenichi Handa <handa@m17n.org>
5489
5490 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 5491 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 5492
7d383292
JB
54932010-07-26 Juanma Barranquero <lekktu@gmail.com>
5494
5495 * lread.c (unreadpure, mapatoms_1): Make static.
5496
da31e629
JB
54972010-07-25 Juanma Barranquero <lekktu@gmail.com>
5498
5499 * terminfo.c (tparam): Fix prototype of tparm.
5500
7bfa6d77
AS
55012010-07-25 Andreas Schwab <schwab@linux-m68k.org>
5502
dcc19aac
AS
5503 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
5504 find start of text segment.
5505 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
5506 is defined.
5507
7bfa6d77
AS
5508 * callproc.c (set_initial_environment): Avoid unbalanced braces.
5509
63f9a672
KB
55102010-07-25 Ken Brown <kbrown@cornell.edu>
5511
5512 * vm-limit.c (check_memory_limits): Fix previous change;
5513 accidentally reverted an earlier change.
5514
24933075
KB
55152010-07-25 Ken Brown <kbrown@cornell.edu>
5516
5517 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
5518 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
5519
361358ea
JB
55202010-07-25 Juanma Barranquero <lekktu@gmail.com>
5521
5522 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
5523 * dired.c (opendir, readdir): Fix prototypes.
5524 * editfns.c (w32_get_internal_run_time): Fix prototypes.
5525 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
5526 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
5527 (telldir): Remove declaration.
5528 * ralloc.c (real_morecore, __morecore): Fix prototypes.
5529 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
5530 * syssignal.h (strsignal): Fix prototype.
5531 * term.c (tparam): Fix prototype.
5532 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
5533 (term_get_fkeys): Set inside "#ifndef DOS_NT".
5534 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
5535 and __morecore.
5536 * w32gui.h (XParseGeometry): Fix prototype.
5537 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
5538 * w32term.c (my_set_focus): Declare inside #if 0.
5539 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
5540 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
5541 (drain_message_queue, get_next_msg, post_msg, parse_button)
5542 (ClipboardSequence_Proc): Fix prototypes.
5543 (wait_for_sync): Remove declaration.
5544
630b9592
JB
55452010-07-24 Juanma Barranquero <lekktu@gmail.com>
5546
5547 * w32fns.c (w32_to_x_color): Remove, unused.
5548
6a0d6611
AS
55492010-07-24 Andreas Schwab <schwab@linux-m68k.org>
5550
5551 * lisp.h: Remove leftover P_.
5552
4e8608ff
DN
55532010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
5554
5555 * ecrt0.c, unexalpha.c: Remove files, unused.
5556
c8197983
AS
55572010-07-24 Andreas Schwab <schwab@linux-m68k.org>
5558
5559 * cmds.c (internal_self_insert): Make static.
5560 * lisp.h (internal_self_insert): Remove declaration.
5561
97b372d7
JB
55622010-07-23 Juanma Barranquero <lekktu@gmail.com>
5563
33ac0414
JB
5564 * alloc.c (free_float):
5565 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
5566 * frame.c (delete_frame_handler):
5567 * ralloc.c (reorder_bloc):
5568 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
5569 Remove unused static functions.
5570
94da8397
JB
5571 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
5572 it is called only from NS code.
5573
2e6c8532
JB
5574 * w32term.c (my_set_focus): #ifdef away; it is called only from
5575 "#ifdef 0" code.
5576
97b372d7
JB
5577 * w32fns.c (x_edge_detection):
5578 * xfaces.c (may_use_scalable_font_p):
5579 Remove obsolete static declarations.
5580
7c3320d8
JB
55812010-07-20 Juanma Barranquero <lekktu@gmail.com>
5582
5583 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
5584 (emacs_blocked_realloc, uninterrupt_malloc):
5585 * fringe.c (w32_reset_fringes):
5586 * image.c (convert_mono_to_color_image, lookup_rgb_color)
5587 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
5588 * sound.c (be2hs, do_play_sound):
5589 * vm-limit.c (get_lim_data, ret_lim_data):
5590 * w32term.c (x_free_frame_resources):
5591 * xfaces.c (x_create_gc, x_free_gc):
5592 Convert definitions to standard C.
5593
d5273788
SM
55942010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
5595
5596 * eval.c (Feval, Ffuncall): Use the new names.
5597
5598 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
5599 (DEFUN): Add braces around the union initialisation and use ## to
5600 specify the right union alternative and avoid a cast.
5601
8d16a259
JB
56022010-07-18 Juanma Barranquero <lekktu@gmail.com>
5603
5604 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
5605
3b8eff32
CY
56062010-07-17 Chong Yidong <cyd@stupidchicken.com>
5607
5608 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
5609
499322ce
J
56102010-07-17 Jan Djärv <jan.h.d@swipnet.se>
5611
5612 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
5613 is related to the menu bar (Bug#6499).
a628ad9d 5614 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 5615
f6003da5 56162010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
5617
5618 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
5619
5620 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
5621
5622 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
5623 i.e. don't put back ButtonRelease (Bug#6608).
5624
5625 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
5626 instead of Window. Call xg_event_is_for_menubar when
5627 USE_GTK (Bug#6499).
5628
5629 * gtkutil.h (xg_event_is_for_menubar): Declare.
5630
5631 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
5632
f6003da5 56332010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
5634
5635 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
5636 when it's the same as the old foreground. (Bug#6609)
5637
23243f29
J
56382010-07-16 Jan Djärv <jan.h.d@swipnet.se>
5639
5640 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
5641 widget is non-null (Bug#6645).
5642
2b23d2a6
AS
56432010-07-15 Andreas Schwab <schwab@linux-m68k.org>
5644
01b564ff
AS
5645 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
5646 Convert old-style definition.
5647
2b23d2a6
AS
5648 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
5649 timestamp argument.
5650
c4affd2c
EZ
56512010-07-15 Eli Zaretskii <eliz@gnu.org>
5652
5653 * fringe.c (update_window_fringes): Restore mistakenly reverted
5654 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
5655
cf28cebc
J
56562010-07-14 Jan Djärv <jan.h.d@swipnet.se>
5657
5658 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
5659 (SET_SAVED_KEY_EVENT): Remove (not used).
5660 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
5661 remove size parameter.
5662 (handle_one_xevent): Check popup_activated () for menu for Xt also.
5663 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
5664 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
5665 ButtonRelease.
6b2c4bd9
J
5666 (x_set_window_size_1): scroll_bar_actual_width is always
5667 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
5668
5669 * xdisp.c (pending_menu_activation): Remove extern declaration.
5670 (prepare_menu_bars): Remove setting of pending_menu_activation.
5671
5672 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
5673 (x_activate_menubar): Set popup_activated_flag for Xt also.
5674 Remove setting of pending_menu_activation.
cf28cebc
J
5675 (set_frame_menubar): Remove check of pending_menu_activation.
5676 Declare menubar_size before code. Correct spelling in comment.
5677
f6c1c771
KH
56782010-07-14 Kenichi Handa <handa@m17n.org>
5679
5680 * font.c (font_open_entity): Cancel previous change.
5681 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
5682
20477505
EZ
56832010-07-13 Eli Zaretskii <eliz@gnu.org>
5684
77defa9a
EZ
5685 Remove subprocesses #ifdefs.
5686 * process.c <inhibit_sentinels>: Move to the common part.
5687 (Fwaiting_for_user_input_p): Move to the common part; return nil
5688 if async subprocesses aren't supported.
5689 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
5690 MS-DOS. Remove "#ifdef subprocesses".
5691 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
5692 (gettimeofday): Remove "#ifdef subprocesses".
5693 (wait_without_blocking): Remove function.
5694 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
5695 Remove "#ifdef subprocesses".
5696 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
5697 compiled on MS-DOS.
5698 * callproc.c (Fcall_process) [!MSDOS]: Don't call
5699 wait_for_termination on MS-DOS.
5700 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
5701 initialization of inhibit_sentinels.
5702 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
5703 subprocesses" conditional.
5704 * callproc.c (Fcall_process) [!subprocesses]: Don't call
5705 wait_for_termination, since `buffer' cannot be an integer when
5706 async subprocesses are not supported
5707 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
5708 for ifdefing away the call to Fprocess_status.
5709
20477505
EZ
5710 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
5711 away the entire body of the function.
5712
b3ffc17c
DN
57132010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
5714
01faa934
DN
5715 Remove subprocesses #ifdefs from term.c.
5716 * process.c (add_keyboard_wait_descriptor)
5717 (delete_keyboard_wait_descriptor): Move to common section, do
5718 nothing when subprocesses is not defined.
a628ad9d
JB
5719 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
5720 Remove subprocesses #ifdefs.
01faa934 5721
b3ffc17c
DN
5722 Convert maybe_fatal to standard C.
5723 * lisp.h (verror): Declare.
5724 * eval.c (verror): New function containing the code from ...
5725 (error): ... this. Call verror.
5726 * term.c (vfatal): New function containing the code from ...
5727 (fatal): ... this. Call vfatal.
5728 (maybe_fatal): Convert to standard C, use variable number of
5729 arguments. Declare as non-return.
5730 (init_tty): Fix maybe_fatal call.
5731
0521f580
DN
57322010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
5733
5734 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
5735 (_scroll_bar_note_movement): Convert definitions to standard C.
5736 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
5737 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
5738
ebd15611
DN
57392010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
5740
5741 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
5742 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
5743 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
5744 (xaw_jump_callback, xaw_scroll_callback)
5745 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
bba3e508
SM
5746 (x_wm_set_size_hint, x_activate_timeout_atimer):
5747 Convert definitions to standard C.
ebd15611
DN
5748 * xmenu.c (menubar_id_to_frame, popup_get_selection)
5749 (popup_activate_callback, popup_deactivate_callback)
5750 (menu_highlight_callback, menubar_selection_callback)
5751 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
5752 (free_frame_menubar, popup_selection_callback, as)
5753 (create_and_show_popup_menu, dialog_selection_callback)
5754 (create_and_show_dialog):
5755 * xfns.c (hack_wm_protocols, x_window):
5756 * xfaces.c (x_update_menu_appearance):
5757 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
5758 (char_to_pixel_size, round_size_to_char, get_wm_shell)
5759 (set_frame_size, update_wm_hints, setup_frame_gcs)
5760 (update_various_frame_slots, update_from_various_frame_slots)
5761 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
5762 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
5763 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
5764
de06a2dd
AS
57652010-07-12 Andreas Schwab <schwab@linux-m68k.org>
5766
a628ad9d 5767 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 5768
fc549af9
EZ
57692010-07-12 Eli Zaretskii <eliz@gnu.org>
5770
5771 * process.c (setup_process_coding_systems): Move to the part
5772 shared by non-subprocesses systems, and make its body empty when
5773 subprocesses is not defined.
5774 (close_process_descs): Move to the part shared by non-subprocesses
5775 systems.
1408902e
EZ
5776 (wait_reading_process_output) [!subprocesses]: Convert arg list to
5777 ANSI C.
fc549af9 5778
d5a3eaaf
AS
57792010-07-12 Andreas Schwab <schwab@linux-m68k.org>
5780
5781 * editfns.c (transpose_markers): Convert old-style definition.
5782 * emacs.c (abort, shut_down_emacs, fixup_locale)
5783 (synchronize_system_time_locale)
5784 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
5785 * floatfns.c (extract_float, matherr, init_floatfns)
5786 (syms_of_floatfns): Likewise.
5787 * fns.c (make_hash_table): Likewise.
5788 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
5789 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
5790 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
5791 (ftfont_variation_glyphs): Likewise.
5792 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
5793 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
5794 * lread.c (read_filtered_event): Likewise.
5795 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
5796 * process.c (wait_reading_process_output): Likewise.
5797 * scroll.c (do_line_insertion_deletion_costs): Likewise.
5798 * search.c (search_buffer, boyer_moore): Likewise.
5799 * syntax.c (scan_sexps_forward): Likewise.
5800 * xdisp.c (try_scrolling): Likewise.
5801 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
5802 (face_at_string_position): Likewise.
5803 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
5804 * xselect.c (x_get_window_property, receive_incremental_selection)
5805 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
5806 Likewise.
5807 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
5808
6f704c76
DN
58092010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
5810
ded80a25
DN
5811 * callproc.c (child_setup): Remove subprocesses conditional.
5812 Remove code dealing with SET_EMACS_PRIORITY, unused.
5813
49d937f4 5814 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
5815 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
5816
5817 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
5818 (__do_global_dtors, __main): Use void in definition.
5819 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
5820 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
5821 the only users from ...
5822 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
5823 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
5824 (HAVE_VOLATILE): Remove, unused.
5825
6f704c76
DN
5826 Convert more function definitions to standard C.
5827 * xdisp.c (window_box_edges, handle_single_display_spec)
5828 (display_string): Convert definition to standard C.
5829 * scroll.c (do_direct_scrolling, scrolling_1):
5830 * dispnew.c (allocate_matrices_for_frame_redisplay)
5831 (mirrored_line_dance):
5832 * coding.c (code_convert_string):
5833 * charset.c (map_charset_chars):
5834 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
5835 (Fregister_ccl_program, Fregister_code_conversion_map):
5836 * keyboard.c (kbd_buffer_nr_stored): Likewise.
5837 (head_table): Make static and const.
5838
e6cfa7c3
AS
58392010-07-12 Andreas Schwab <schwab@linux-m68k.org>
5840
5841 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
5842 (PROFILING_LDFLAGS): Set from substitution.
5843 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
5844 CFLAGS last.
5845
892dd565
KH
58462010-07-12 Kenichi Handa <handa@m17n.org>
5847
6f2cdcd1
KH
5848 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
5849 (shortlisp): Likewise.
5850
892dd565
KH
5851 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
5852
5853 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
5854 of FONT_ENTITY_INDEX.
5855 (Ffont_get): If KEY is :otf and the font-object doesn't have the
5856 property, get the property value dynamically.
5857 (Ffont_put): Accept font-entity and font-object too.
ef1b0ba7 5858 (Ffont_get_glyhphs): Rename from Fget_font_glyphs. Arguments and
892dd565 5859 return value changed.
bba3e508 5860 (syms_of_font): Adjust for the above change.
892dd565 5861
ae96d47a
AS
58622010-07-11 Andreas Schwab <schwab@linux-m68k.org>
5863
c8fc18ee
AS
5864 * blockinput.h: Remove obsolete comment.
5865
89887d67
AS
5866 * lisp.h: Include <stddef.h>.
5867 (OFFSETOF): Don't define.
5868 (VECSIZE): Use offsetof instead of OFFSETOF.
5869 (PSEUDOVECSIZE): Likewise.
5870 * process.c (conv_sockaddr_to_lisp): Likewise.
5871 * alloc.c: Don't include <stddef.h>.
5872 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
5873
ae96d47a
AS
5874 * process.c: Remove obsolete comment.
5875
635c0aa1
CY
58762010-07-11 Chong Yidong <cyd@stupidchicken.com>
5877
5878 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
5879
a64df650
AS
58802010-07-11 Andreas Schwab <schwab@linux-m68k.org>
5881
8966b757
AS
5882 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
5883 index, rindex.
5884 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
5885 * editfns.c (Fuser_full_name, Fformat): Likewise.
5886 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
5887 * fileio.c (Ffile_symlink_p): Likewise.
5888 * filelock.c (current_lock_owner): Likewise.
5889 * font.c (font_parse_name, font_parse_family_registry): Likewise.
5890 * fontset.c (fontset_pattern_regexp): Likewise.
5891 * lread.c (read1): Likewise.
5892 * sysdep.c (init_system_name): Likewise.
5893 * xfns.c (select_visual): Likewise.
5894 * s/hpux10-20.h (index, rindex): Don't define.
5895 * s/ms-w32.h (index): Likewise.
5896 * s/usg5-4.h: Likewise.
5897
cf237e27
AS
5898 * callproc.c (relocate_fd): Use F_DUPFD if defined.
5899
a8fe7202
AS
5900 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
5901 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
5902 (egetenv): Likewise.
5903 * doprnt.c (doprnt): Likewise.
5904 * editfns.c (set_time_zone_rule, format2): Likewise.
5905 * emacs.c (decode_env_path): Likewise.
5906 * eval.c (signal_error, error): Likewise.
5907 * insdel.c (replace_range_2): Likewise.
5908 * keyboard.c (cmd_error_internal): Likewise.
5909 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
5910 * print.c (write_string, write_string_1, print_error_message):
5911 Likewise.
5912 * vm-limit.c (warn_function, memory_warnings): Likewise.
5913 * xdisp.c (message1, message1_nolog, message_with_string)
5914 (vmessage, message, message_nolog): Likewise.
5915 * emacs.c: Remove duplicate declaration.
5916 * keyboard.h: Likewise.
5917 * lisp.h: Update prototypes.
5918
bb8e180f
AS
5919 * eval.c: Fix indentation problem.
5920
83380e65
AS
5921 * keyboard.c: Include "process.h"
5922
a64df650
AS
5923 * eval.c: Remove obsolete noinline declaration.
5924 * fns.c: Likewise.
5925
6a8033e1
KR
59262010-07-11 Ken Raeburn <raeburn@raeburn.org>
5927
5928 * doprnt.c (doprnt): Take a va_list argument instead of count and
5929 pointer.
5930 * eval.c (error): Change to a standard-C variadic function.
ef1b0ba7 5931 * xdisp.c (vmessage): Rename from message, made static, and
6a8033e1
KR
5932 changed to take a va_list argument.
5933 (message): New variadic wrapper.
5934 (message_nolog): Now a variadic function, calling vmessage.
5935 * lisp.h: Include stdarg.h for va_list.
5936 (doprnt, error, message, message_nolog): Decls updated.
5937
462aa963
EZ
59382010-07-11 Eli Zaretskii <eliz@gnu.org>
5939
5940 * process.c (syms_of_process) <delete-exited-processes>: Define
5941 even if !subprocesses.
5942 (delete_exited_processes): Ditto.
5943
5944 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
5945 (delete_exited_processes): Don't define.
5946
48104462
CY
59472010-07-10 Chong Yidong <cyd@stupidchicken.com>
5948
5949 * frame.c (make_frame): Initialize menu_bar_lines and
5950 tool_bar_lines members.
bba3e508
SM
5951 (make_initial_frame, make_terminal_frame):
5952 Initialize menu_bar_lines using value of menu-bar-mode.
48104462
CY
5953
5954 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
5955
f388c88a
EZ
59562010-07-10 Eli Zaretskii <eliz@gnu.org>
5957
5958 * process.c: Reshuffle #include's. Condition some of the global
5959 and static variables on `subprocesses'.
5960 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
5961 Leave only one implementation.
5962 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
5963 (kill_buffer_processes, Flist_system_processes)
5964 (Fprocess_attributes, init_process, syms_of_process): Unify the
5965 implementations for with subprocesses and without them.
5966
723f5a07
J
59672010-07-09 Jan Djärv <jan.h.d@swipnet.se>
5968
5969 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
5970 correct size for Motif.
5971 (free_frame_menubar): Call x_set_window_size to update frame size.
5972
5973 * xfns.c (x_window): Set borderWidth to 0 for pane and
5974 EmacsFrame. Frame size calculation is wrong otherwise.
5975
2536a4b7
MA
59762010-07-09 Michael Albinus <michael.albinus@gmx.de>
5977
5978 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
5979 allows to suppress errors when polling in Emacs' main loop.
5980 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
5981 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
5982 (Fdbus_method_error_internal, Fdbus_send_signal)
5983 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
5984 (Fdbus_register_method): Use it. (Bug#6579)
5985
5842a27b
DN
59862010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
5987
5988 * alloc.c: Convert DEFUNs to standard C.
5989 * buffer.c:
5990 * bytecode.c:
5991 * callint.c:
5992 * callproc.c:
5993 * casefiddle.c:
5994 * casetab.c:
5995 * category.c:
5996 * character.c:
5997 * charset.c:
5998 * chartab.c:
5999 * cmds.c:
6000 * coding.c:
6001 * composite.c:
6002 * data.c:
6003 * dbusbind.c:
6004 * dired.c:
6005 * dispnew.c:
6006 * doc.c:
6007 * dosfns.c:
6008 * editfns.c:
6009 * emacs.c:
6010 * eval.c:
6011 * fileio.c:
6012 * filelock.c:
6013 * floatfns.c:
6014 * fns.c:
6015 * font.c:
6016 * fontset.c:
6017 * frame.c:
6018 * fringe.c:
6019 * image.c:
6020 * indent.c:
6021 * insdel.c:
6022 * keyboard.c:
6023 * keymap.c:
6024 * lread.c:
6025 * macros.c:
6026 * marker.c:
6027 * menu.c:
6028 * minibuf.c:
6029 * msdos.c:
6030 * nsfns.m:
6031 * nsmenu.m:
6032 * nsselect.m:
6033 * print.c:
6034 * process.c:
6035 * search.c:
6036 * sound.c:
6037 * syntax.c:
6038 * term.c:
6039 * terminal.c:
6040 * textprop.c:
6041 * undo.c:
6042 * w16select.c:
6043 * w32console.c:
6044 * w32fns.c:
6045 * w32font.c:
6046 * w32menu.c:
6047 * w32proc.c:
6048 * w32select.c:
6049 * window.c:
6050 * xdisp.c:
6051 * xfaces.c:
6052 * xfns.c:
6053 * xmenu.c:
6054 * xselect.c:
6055 * xsettings.c:
6056 * xsmfns.c: Likewise.
6057
d568829b
EZ
60582010-07-08 Eli Zaretskii <eliz@gnu.org>
6059
6060 * process.c (kbd_is_on_hold, hold_keyboard_input)
6061 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
6062
52214050
J
60632010-07-08 Jan Djärv <jan.h.d@swipnet.se>
6064
6065 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
6066 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
6067 unless USE_LUCID.
6068
313d9eb2
DN
60692010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
6070
a628ad9d
JB
6071 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
6072 declaration.
d8825aa3 6073
295d0d8f
DN
6074 Clean up include guards.
6075 * tparam.c: Remove include guards for config.h, string.h and code
6076 that assumes #ifndef emacs.
6077 * termcap.c:
6078 * unexalpha.c:
6079 * sysdep.c:
6080 * filemode.c:
6081 * filelock.c:
6082 * bidi.c: Likewise.
6083
49d9e6b0
DN
6084 Remove prefix-args.c
6085 * prefix-args.c: Remove file.
6086 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
6087 * Makefile.in (temacs${EXEEXT}): Remove references to
6088 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
6089 (mostlyclean): Remove reference to prefix-args.
6090 (prefix-args): Remove.
6091
313d9eb2
DN
6092 Simplify cstart_of_data, start_of_code and related code.
6093 * mem-limits.h: Remove !emacs and _LIBC conditional code.
6094 (start_of_data): Merge into start_of_data function.
6095 * sysdep.c (start_of_text): Remove. Move simplified versions of
6096 it in the only users: unexaix.c and unexec.c.
6097 (read_input_waiting): Remove local declaration of quit_char.
6098 (start, etext): Remove declarations.
6099 (start_of_data): Merge with the version in mem-limits.h and move
6100 to vm-limits.c.
6101 * vm-limit.c (start_of_data): Merged and simplified version of the
6102 code formerly in mem-limits.h and sysdep.c.
6103 * unexec.c (start): New declaration, moved from sysdep.c.
6104 (start_of_text): Simplified version of the code formerly in sysdep.c.
6105 * unexaix.c (start_of_text): Simplified version of the code
6106 formerly in sysdep.c.
6107 * m/alpha.h (HAVE_TEXT_START): Remove.
6108 (TEXT_START): Move ...
6109 * unexalpha.c (TEXT_START): ... here.
6110 * s/hpux10-20.h (TEXT_START): Remove.
6111 * s/darwin.h (TEXT_START):
6112 * m/mips.h (TEXT_START):
6113 * m/macppc.h (HAVE_TEXT_START):
6114 * m/m68k.h (TEXT_START):
6115 * m/iris4d.h (TEXT_START):
6116 * m/intel386.h (TEXT_START):
6117 * m/ibmrs6000.h (TEXT_START):
6118 * m/ia64.h (HAVE_TEXT_START):
6119 * s/msdos.h (TEXT_START): Likewise.
6120
72af86bd
AS
61212010-07-07 Andreas Schwab <schwab@linux-m68k.org>
6122
6123 * alloc.c (overrun_check_malloc, overrun_check_realloc)
6124 (overrun_check_free, xstrdup, allocate_string)
6125 (allocate_string_data, compact_small_strings, Fmake_string)
6126 (make_unibyte_string, make_multibyte_string)
6127 (make_string_from_bytes, make_specified_string, make_float)
6128 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
6129 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
6130 memcpy, memmove, memset, memcmp.
6131 * atimer.c (start_atimer, set_alarm): Likewise.
6132 * buffer.c (clone_per_buffer_values, report_overlay_modification)
6133 (mmap_realloc, init_buffer_once): Likewise.
6134 * callint.c (Fcall_interactively): Likewise.
6135 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
6136 (getenv_internal_1): Likewise.
6137 * casefiddle.c (casify_object): Likewise.
6138 * ccl.c (ccl_driver): Likewise.
6139 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
6140 * charset.c (load_charset_map_from_file)
6141 (load_charset_map_from_file, load_charset_map_from_vector)
6142 (Fdefine_charset_internal): Likewise.
6143 * cm.c (Wcm_clear): Likewise.
6144 * coding.c (decode_eol, decode_coding_object)
6145 (Fset_coding_system_priority, make_subsidiaries): Likewise.
6146 * data.c (Faset): Likewise.
6147 * dired.c (directory_files_internal, file_name_completion_stat):
6148 Likewise.
6149 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
6150 (clear_glyph_row, copy_row_except_pointers)
6151 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
6152 (save_current_matrix, restore_current_matrix)
6153 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
6154 (mirror_line_dance, scrolling_window): Likewise.
6155 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
6156 Likewise.
6157 * doprnt.c (doprnt): Likewise.
6158 * editfns.c (Fuser_full_name, make_buffer_string_both)
6159 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
6160 * emacs.c (sort_args): Likewise.
6161 * eval.c (Fapply, Ffuncall): Likewise.
6162 * fileio.c (Ffile_name_directory, make_temp_name)
6163 (Fexpand_file_name, search_embedded_absfilename)
6164 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
6165 (auto_save_error): Likewise.
6166 * fns.c (Fstring_equal, Fcopy_sequence, concat)
6167 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
6168 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
6169 (Fmake_hash_table): Likewise.
6170 * fringe.c (Fdefine_fringe_bitmap): Likewise.
6171 * ftfont.c (ftfont_text_extents): Likewise.
6172 * getloadavg.c (getloadavg): Likewise.
6173 * image.c (define_image_type, make_image, make_image_cache)
6174 (x_create_x_image_and_pixmap, xbm_image_p)
6175 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
6176 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
6177 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
6178 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
6179 (tiff_image_p, tiff_read_from_memory, gif_image_p)
6180 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
6181 Likewise.
6182 * indent.c (scan_for_column, compute_motion): Likewise.
6183 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
6184 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
6185 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
6186 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
6187 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
6188 (store_user_signal_events, menu_bar_items, tool_bar_items)
6189 (process_tool_bar_item, append_tool_bar_item)
6190 (read_char_minibuf_menu_prompt, read_key_sequence)
6191 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
6192 Likewise.
6193 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
6194 Likewise.
6195 * lisp.h (STRING_COPYIN): Likewise.
6196 * lread.c (Fload, read1, oblookup): Likewise.
6197 * msdos.c (Frecent_doskeys): Likewise.
6198 * nsfns.m (Fx_create_frame): Likewise.
6199 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
6200 Likewise.
6201 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
6202 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
6203 Likewise.
6204 * nsmenu.m (ns_update_menubar): Likewise.
6205 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
6206 * print.c (print_unwind, printchar, strout, print_string)
6207 (print_error_message): Likewise.
6208 * process.c (conv_lisp_to_sockaddr, set_socket_option)
6209 (Fmake_network_process, Fnetwork_interface_list)
6210 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
6211 (init_process): Likewise.
6212 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
6213 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
6214 Likewise.
6215 * scroll.c (do_scrolling, do_direct_scrolling)
6216 (scrolling_max_lines_saved): Likewise.
6217 * search.c (search_buffer, wordify, Freplace_match): Likewise.
6218 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
6219 * syntax.c (skip_chars, skip_syntaxes): Likewise.
6220 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
6221 (emacs_set_tty): Likewise.
6222 * term.c (encode_terminal_code, calculate_costs)
6223 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
6224 Likewise.
6225 * termcap.c (tgetst1, gobble_line): Likewise.
6226 * termhooks.h (EVENT_INIT): Likewise.
6227 * tparam.c (tparam1): Likewise.
6228 * unexalpha.c (unexec): Likewise.
6229 * unexec.c (write_segment): Likewise.
6230 * unexmacosx.c (unexec_write_zero): Likewise.
6231 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
6232 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
6233 * w32font.c (w32font_list_family, w32font_text_extents)
6234 (w32font_list_internal, w32font_match_internal)
6235 (w32font_open_internal, compute_metrics, Fx_select_font):
6236 Likewise.
6237 * w32menu.c (set_frame_menubar, add_menu_item)
6238 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
6239 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
6240 * w32uniscribe.c (uniscribe_list_family): Likewise.
6241 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
6242 * window.c (make_window, replace_window, set_window_buffer)
6243 (Fsplit_window): Likewise.
6244 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
6245 (add_to_log, message3, x_consider_frame_title)
6246 (append_space_for_newline, extend_face_to_end_of_line)
6247 (decode_mode_spec_coding, init_glyph_string): Likewise.
6248 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
6249 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
6250 (face_attr_equal_p, make_realized_face, make_face_cache)
6251 (free_realized_faces, lookup_named_face, smaller_face)
6252 (face_with_height, lookup_derived_face)
6253 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
6254 (Finternal_set_font_selection_order, realize_default_face)
6255 (compute_char_face, face_at_buffer_position)
6256 (face_for_overlay_string, face_at_string_position, merge_faces):
6257 Likewise.
6258 * xfns.c (xic_create_fontsetname, Fx_create_frame)
6259 (Fx_window_property, x_create_tip_frame)
6260 (Fx_backspace_delete_keys_p): Likewise.
6261 * xfont.c (xfont_list, xfont_match, xfont_list_family)
6262 (xfont_text_extents): Likewise.
6263 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
6264 * xrdb.c (magic_file_p, x_get_resource): Likewise.
6265 * xselect.c (x_queue_event, x_get_window_property)
6266 (receive_incremental_selection): Likewise.
6267 * xsmfns.c (x_session_check_input): Likewise.
6268 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
6269 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
6270 Likewise.
6271 * character.h (BCOPY_SHORT): Removed.
6272 * config.in: Regenerate.
6273 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
6274 * emacs.c (main) [PROFILING]: Don't declare
6275 dump_opcode_frequencies.
6276 * lisp.h (safe_bcopy): Remove declaration.
6277 (memset) [!HAVE_MEMSET]: Declare.
6278 (memcpy) [!HAVE_MEMCPY]: Likewise.
6279 (memmove) [!HAVE_MEMMOVE]: Likewise.
6280 (memcmp) [!HAVE_MEMCMP]: Likewise.
6281 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
6282 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
6283 Don't define.
6284 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
6285 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
6286 (BCOPY_DOWNWARD_SAFE): Don't define.
6287 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
6288 (memcpy) [!HAVE_MEMCPY]: Define.
6289 (memmove) [!HAVE_MEMMOVE]: Define.
6290 (memcmp) [!HAVE_MEMCMP]: Define.
6291
cb768704
J
62922010-07-07 Jan Djärv <jan.h.d@swipnet.se>
6293
6294 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
6295 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
6296 New functions.
cb768704
J
6297 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
6298 select on empty input mask.
6299 (init_process): Initialize kbd_is_on_hold to 0.
6300
6301 * process.h (hold_keyboard_input, unhold_keyboard_input)
6302 (kbd_on_hold_p): Declare.
6303
6304 * keyboard.c (input_available_signal): Declare.
6305 (kbd_buffer_nr_stored): New function.
6306 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
6307 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
6308 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
6309 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
6310 (tty_read_avail_input): If input is on hold, return.
6311 Don't read more that free slots in kbd_buffer (Bug#6571).
6312
3a8ce822
EZ
63132010-07-07 Eli Zaretskii <eliz@gnu.org>
6314
6315 * msdos.h:
6316 * msdos.c:
6317 * dosfns.c:
6318 * w16select.c: Convert function definitions to ANSI C.
6319
a628ad9d
JB
6320 * msdos.h (ctrl_break_func, install_ctrl_break_check):
6321 Remove unused prototypes.
3a8ce822 6322
cf84bb53
JB
63232010-07-07 Juanma Barranquero <lekktu@gmail.com>
6324
6325 * coding.c, sysdep.c: Convert some more functions to standard C.
6326
1a4990fb
JB
63272010-07-07 Juanma Barranquero <lekktu@gmail.com>
6328
6329 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
6330 (encode_coding_object): Use SPECPDL_INDEX.
6331 (syms_of_coding): Use DOS_NT.
6332
c0f2f16b
DN
63332010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
6334
48fb6855
DN
6335 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
6336
c0f2f16b
DN
6337 Make the function member of Lisp_Subr use standard C prototypes.
6338 * lisp.h (struct Lisp_Subr): Use a union for the function member.
6339 (DECL_ALIGN): Add a cast for the function.
6340 * eval.c (Feval, Ffuncall): Use the proper type for each type
6341 function call.
6342
67aecef9
CY
63432010-07-06 Chong Yidong <cyd@stupidchicken.com>
6344
6345 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
6346 fringe face id, so face-remapping-alist works (Bug#6091).
6347
b56ceb92
JB
63482010-07-06 Juanma Barranquero <lekktu@gmail.com>
6349
6350 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
6351 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
6352 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
6353
7af07b96
AS
63542010-07-06 Andreas Schwab <schwab@linux-m68k.org>
6355
6356 * xterm.c (x_get_keysym_name): Change type of parameter to int.
6357 * lisp.h: Declare x_get_keysym_name.
6358 * keyboard.c (modify_event_symbol): Don't declare
6359 x_get_keysym_name here.
6360
69e24e34
DN
63612010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
6362
6363 * ecrt0.c: Revert conversion to standard C.
6364
d3da34e0 63652010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
6366
6367 * vm-limit.c (memory_warnings):
6368 * keyboard.c (modify_event_symbol):
6369 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
6370 (round2, emacs_rint):
6371 * process.c (send_process, old_sigpipe): Convert function
6372 definitions and declarations to standard C.
6373
63742010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
6375
6376 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
6377 * xdisp.c: Convert function definitions to standard C.
6378
6379 * cm.c (cmputc): Arg C is now int, not char.
6380 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
6381
00be444c
J
63822010-07-05 James Cloos <cloos@jhcloos.com>
6383
6384 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
6385
6386 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
6387 _NET_WM_ICON_NAME atoms.
6388
6389 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
6390 and _NET_WM_ICON_NAME properties, too, matching what is
6391 done in the Gtk+ case.
6392
e4c8d29a
J
63932010-07-05 Jan Djärv <jan.h.d@swipnet.se>
6394
ff919460
J
6395 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
6396
e4c8d29a
J
6397 * xsmfns.c (SSDATA): New macro.
6398 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
6399 passed to strlen/strcpy/strcat.
bba3e508
SM
6400 (create_client_leader_window): Surround with #ifndef USE_GTK.
6401 Cast 7:th arg to XChangeProperty to (unsigned char *).
e4c8d29a
J
6402
6403 * xsettings.c (something_changedCB, parse_settings)
6404 (apply_xft_settings): Reformat prototype.
6405 (something_changedCB, init_gconf): Remove unused variable i.
6406 (read_settings): Remove unused variable long_len.
6407
6408 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
6409 (xg_get_image_for_pixmap, create_dialog)
6410 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
6411 (menuitem_highlight_callback, make_menu_item)
6412 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
6413 (xg_create_scroll_bar, xg_update_scrollbar_pos)
6414 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
6415 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
6416 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
6417 (xg_tool_bar_item_expose_callback): Reformat prototype.
6418 (xg_update_menubar): GList *group => GSList *group.
6419 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
6420 before use.
6421 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
6422 to GTK_IMAGE (wimage).
6423
dd4c5104
DN
64242010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
6425
898b4c5c
DN
6426 * atimer.c: Use "" instead of <> for local includes for
6427 consistency with the rest of the code.
6428
dd4c5104
DN
6429 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
6430 * xrdb.c (get_system_name):
6431 * window.c (shrink_windows):
6432 * syntax.c (forw_comment):
6433 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
6434 (ins_del_costs):
6435 * mem-limits.h (start_of_data):
6436 * lread.c (readevalloop):
6437 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
6438 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
6439 * frame.c (x_get_focus_frame):
6440 * floatfns.c (fmod_float):
6441 * fileio.c (choose_write_coding_system):
6442 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
6443 (malloc_initialize_hook, sort_args, synchronize_locale):
6444 * doprnt.c (doprnt):
6445 * dired.c (compile_pattern):
6446 * data.c (fmod_float):
6447 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
6448 (map_char_table_for_charset):
6449 * charset.c (define_charset_internal):
6450 * alloc.c (Fgarbage_collect): Convert declarations or definitions
6451 to standard C.
6452
9a39b306 64532010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 6454 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
6455
6456 * lread.c (read1): Fix up last change to not mess up `c'.
6457
e6cb2cbb
JB
64582010-07-04 Juanma Barranquero <lekktu@gmail.com>
6459
6460 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
6461
438105ed
JB
64622010-07-04 Juanma Barranquero <lekktu@gmail.com>
6463
6464 Fix prototypes.
6465
e5447b22 6466 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 6467 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
6468 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
6469 arg, as required by internal_condition_case_1.
dcc7404b 6470 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
6471 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
6472 (analyse_first): Fix "const const".
e5447b22 6473 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 6474 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 6475 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 6476
971de7fb
DN
64772010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
6478
6479 * alloc.c: Convert function definitions to standard C.
6480 * atimer.c:
6481 * bidi.c:
6482 * bytecode.c:
6483 * callint.c:
6484 * callproc.c:
6485 * casefiddle.c:
6486 * casetab.c:
6487 * category.c:
6488 * ccl.c:
6489 * character.c:
6490 * charset.c:
6491 * chartab.c:
6492 * cmds.c:
6493 * coding.c:
6494 * composite.c:
6495 * data.c:
6496 * dbusbind.c:
6497 * dired.c:
6498 * dispnew.c:
6499 * doc.c:
6500 * doprnt.c:
6501 * ecrt0.c:
6502 * editfns.c:
6503 * fileio.c:
6504 * filelock.c:
6505 * filemode.c:
6506 * fns.c:
6507 * font.c:
6508 * fontset.c:
6509 * frame.c:
6510 * fringe.c:
6511 * ftfont.c:
6512 * ftxfont.c:
6513 * gtkutil.c:
6514 * indent.c:
6515 * insdel.c:
6516 * intervals.c:
6517 * keymap.c:
6518 * lread.c:
6519 * macros.c:
6520 * marker.c:
6521 * md5.c:
6522 * menu.c:
6523 * minibuf.c:
6524 * prefix-args.c:
6525 * print.c:
6526 * ralloc.c:
6527 * regex.c:
6528 * region-cache.c:
6529 * scroll.c:
6530 * search.c:
6531 * sound.c:
6532 * strftime.c:
6533 * syntax.c:
6534 * sysdep.c:
6535 * termcap.c:
6536 * terminal.c:
6537 * terminfo.c:
6538 * textprop.c:
6539 * tparam.c:
6540 * undo.c:
6541 * unexelf.c:
6542 * window.c:
6543 * xfaces.c:
6544 * xfns.c:
6545 * xfont.c:
6546 * xftfont.c:
6547 * xgselect.c:
6548 * xmenu.c:
6549 * xrdb.c:
6550 * xselect.c:
6551 * xsettings.c:
6552 * xsmfns.c:
6553 * xterm.c: Likewise.
6554
ae492bec
EZ
65552010-07-03 Eli Zaretskii <eliz@gnu.org>
6556
76ea4cc9
EZ
6557 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
6558 frames other than the initial one. Fix reversal of colors when
bba3e508
SM
6559 `reverse' is specified in the frame parameters.
6560 Call update_face_from_frame_parameter instead of
76ea4cc9
EZ
6561 internal-set-lisp-face-attribute. Initialize screen colors from
6562 initial_screen_colors[] when f->default_face_done_p is zero,
6563 instead of depending on being called with default-frame-alist as
6564 the alist argument.
6565
6566 * xfaces.c (update_face_from_frame_parameter): Move out of
6567 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
6568 with HAVE_WINDOW_SYSTEM.
6569
1e6255ae
EZ
6570 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
6571 to menu-bar-mode, if not set in the frame parameters or in
6572 default-frame-alist.
6573
ae492bec
EZ
6574 * w32console.c (sys_tputs): Adjust argument list to prototype in
6575 term.c.
6576
3a35a84c
JB
65772010-07-03 Juanma Barranquero <lekktu@gmail.com>
6578
6579 * lisp.h (memory_warnings): Fix prototype.
6580
6581 * cm.h (evalcost): Fix prototype.
6582
6583 * cm.c (evalcost): Fix arg type.
6584
c532d349
DN
65852010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
6586
6587 * term.c (term_clear_mouse_face, Fidentity):
6588 * syssignal.h (signal_handler_t):
6589 * lisp.h (memory_warnings):
6590 * coding.h (preferred_coding_system):
6591 * cm.h (evalcost):
6592 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
6593
c0b36d46
EZ
65942010-07-02 Eli Zaretskii <eliz@gnu.org>
6595
6596 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
6597 from prototypes.
6598
6599 * msdos.h (load_pixmap): Don't define away.
6600
383e0970
J
66012010-07-02 Jan Djärv <jan.h.d@swipnet.se>
6602
f57e2426
J
6603 * lisp.h:
6604 * atimer.h: Remove define for P_.
6605
6606 * alloc.c: Remove __P and P_ from .c and .m files.
6607 * atimer.c:
6608 * buffer.c:
6609 * callint.c:
6610 * category.c:
6611 * charset.c:
6612 * chartab.c:
6613 * cm.c:
6614 * coding.c:
6615 * composite.c:
6616 * data.c:
6617 * dired.c:
6618 * dispnew.c:
6619 * doc.c:
6620 * editfns.c:
6621 * emacs.c:
6622 * eval.c:
6623 * fileio.c:
6624 * filelock.c:
6625 * fns.c:
6626 * font.c:
6627 * fontset.c:
6628 * frame.c:
6629 * ftfont.c:
6630 * ftxfont.c:
6631 * gmalloc.c:
6632 * gtkutil.c:
6633 * image.c:
6634 * indent.c:
6635 * intervals.c:
6636 * keyboard.c:
6637 * keymap.c:
6638 * lread.c:
6639 * marker.c:
6640 * menu.c:
6641 * minibuf.c:
6642 * print.c:
6643 * process.c:
6644 * scroll.c:
6645 * search.c:
6646 * sound.c:
6647 * strftime.c:
6648 * syntax.c:
6649 * sysdep.c:
6650 * term.c:
6651 * terminal.c:
6652 * textprop.c:
6653 * unexalpha.c:
6654 * w32console.c:
6655 * w32fns.c:
6656 * w32font.c:
6657 * w32menu.c:
6658 * w32term.c:
6659 * w32uniscribe.c:
6660 * window.c:
6661 * xdisp.c:
6662 * xfaces.c:
6663 * xfns.c:
6664 * xfont.c:
6665 * xftfont.c:
6666 * xmenu.c:
6667 * xselect.c:
6668 * xterm.c: Likewise.
6669
383e0970 6670 Remove P_ and __P macros.
f57e2426
J
6671 * atimer.h: Remove P_ and __P macros.
6672 * buffer.h:
383e0970
J
6673 * category.h:
6674 * ccl.h:
6675 * character.h:
6676 * charset.h:
6677 * cm.h:
6678 * coding.h:
6679 * composite.h:
6680 * dispextern.h:
6681 * disptab.h:
9e892c8d 6682 * dosfns.h:
383e0970
J
6683 * font.h:
6684 * fontset.h:
6685 * frame.h:
6686 * gtkutil.h:
6687 * indent.h:
6688 * intervals.h:
6689 * keyboard.h:
6690 * keymap.h:
6691 * lisp.h:
6692 * macros.h:
6693 * md5.h:
6694 * menu.h:
6695 * msdos.h:
6696 * nsterm.h:
6697 * puresize.h:
6698 * region-cache.h:
6699 * syntax.h:
6700 * syssignal.h:
6701 * systime.h:
6702 * termhooks.h:
9e892c8d 6703 * w32font.h:
383e0970
J
6704 * w32term.h:
6705 * widget.h:
6706 * window.h:
6707 * xgselect.h:
6708 * xsettings.h:
6709 * xterm.h: Likewise.
6710
98601119
DN
67112010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
6712
d9170db5
DN
6713 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
6714
98601119
DN
6715 Cleanup old code.
6716 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
6717 * syssignal.h: Remove code for Lynx, not supported anymore.
6718 * vm-limit.c: Remove unused code the depends on emacs not being
6719 defined and NO_LIM_DATA being defined.
6720 * mem-limits.h: Remove dead code.
6721
1f984e12
J
67222010-07-01 Jan Djärv <jan.h.d@swipnet.se>
6723
c49d071a
J
6724 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
6725
9d5405ec
J
6726 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
6727 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
6728
7a18115b
J
6729 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
6730 parameters, they are already absolute.
6731
a628ad9d
JB
6732 * nsterm.m (x_set_window_size, initFrameFromEmacs):
6733 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 6734
a628ad9d 6735 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 6736
a628ad9d
JB
6737 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
6738 Update FRAME_TOOLBAR_HEIGHT.
581a8100 6739
a628ad9d
JB
6740 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
6741 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 6742
c1ef4455
CY
67432010-06-30 Chong Yidong <cyd@stupidchicken.com>
6744
bba3e508
SM
6745 * frame.c (get_future_frame_param, Fmake_terminal_frame):
6746 Don't check default-frame-alist.
c1ef4455 6747
ce8f5a9a
AS
67482010-06-30 Andreas Schwab <schwab@linux-m68k.org>
6749
6750 * process.c (create_process): Avoid using invalid file descriptors.
6751
6752 * callproc.c (child_setup): Avoid closing a file descriptor twice.
6753
bf935339
J
67542010-06-30 Jan Djärv <jan.h.d@swipnet.se>
6755
6756 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
6757 Improve documentation. Return font regardless of use_system_font.
6758 (syms_of_xsettings): Improve documentation for font-use-system-font.
6759
7c33a057
CY
67602010-07-10 Chong Yidong <cyd@stupidchicken.com>
6761
2ec1b5ee
CY
6762 * xfaces.c (realize_face): Garbage the frame if a face is removed
6763 (Bug#6593).
6764
67652010-07-05 Andreas Schwab <schwab@linux-m68k.org>
6766
6767 * keyboard.c: Remove duplicate <setjmp.h>.
6768 (read_key_sequence): Remove volatile qualifiers.
6769
67702010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6771
6772 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
6773 (struct glyph_row): New members left_fringe_offset and
6774 right_fringe_offset.
6775
6776 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
6777 specially.
6778 * w32term.c (w32_draw_fringe_bitmap): Likewise.
6779 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
6780
6781 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 6782 Take account of bitmap offset.
2ec1b5ee
CY
6783 (draw_window_fringes): Take account of window vscroll.
6784 (update_window_fringes): Likewise. Extend top-aligned top indicator
6785 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
6786 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
6787 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
6788
67892010-07-04 Juanma Barranquero <lekktu@gmail.com>
6790
6791 * w32fns.c (Qtooltip): Declare.
6792 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
6793
67942010-07-03 Jan Djärv <jan.h.d@swipnet.se>
6795
6796 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
6797 grab on just Press (Bug#6499).
6798
67992010-07-02 Chong Yidong <cyd@stupidchicken.com>
6800
6801 * frame.c (Qtooltip): New var.
6802 (delete_frame): Use it. Fix faulty if statement. Don't update
6803 mode line for tooltip frames. Suggested by Martin Rudalics.
6804
6805 * xfns.c (x_create_tip_frame):
6806 * w32fns.c (x_create_tip_frame): Use it.
6807
68082010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
6809
6810 * xftfont.c (xftfont_open): Check font width one by one also when
6811 spacing is dual.
6812
6813 * ftfont.c (ftfont_open): Ditto.
6814
6259c2ec
GM
68152010-06-30 Glenn Morris <rgm@gnu.org>
6816
a46007e9
GM
6817 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
6818
6259c2ec
GM
6819 * Makefile.in (CANNOT_DUMP): Update for configure name change.
6820
6821 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
6822 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
6823 * s/darwin.h (SYSTEM_MALLOC):
6824 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
6825
5d1d3d04
J
68262010-06-29 Jan Djärv <jan.h.d@swipnet.se>
6827
6828 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
6829 (ns_get_screen): Don't assign integer to f.
6830 (Fx_display_color_cells): Declarations before statements.
6831
e547b051
J
68322010-06-28 Jan Djärv <jan.h.d@swipnet.se>
6833
5fc8e5bc
J
6834 * xfns.c (x_default_font_parameter): Remove got_from_system
6835 (Bug#6526).
6836
e547b051 6837 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
bba3e508
SM
6838 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper):
6839 New defines based on what configure finds.
e547b051
J
6840
6841 * xterm.c (XTflash): Use gtk_widget_get_window.
6842 (xg_scroll_callback): Use gtk_adjustment_get_upper and
6843 gtk_adjustment_get_page_size.
6844 (handle_one_xevent): Use gtk_widget_get_mapped.
6845 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
6846 messages.
6847
6848 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
6849
6850 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
6851 HAVE_GTK_FILE_SELECTION_NEW.
6852
bba3e508
SM
6853 * gtkutil.c (xg_display_open, xg_display_close):
6854 Remove HAVE_GTK_MULTIDISPLAY, it is always defined.
e547b051
J
6855 (xg_display_open): Return type is void.
6856 (gtk_widget_set_has_window)
6857 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
6858 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
6859 (gtk_adjustment_set_page_increment)
6860 (gtk_adjustment_get_step_increment): #define these if not found
6861 by configure.
6862 (remove_submenu): New define based on Gtk+ version.
bba3e508
SM
6863 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar):
6864 Use gtk_widget_get_window.
e547b051
J
6865 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
6866 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
6867 (create_dialog): Use gtk_dialog_get_action_area and
6868 gtk_dialog_get_content_area.
6869 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
6870 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
6871 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
bba3e508
SM
6872 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item):
6873 Use g_object_ref and g_object_unref.
6874 (xg_update_menu_item, xg_tool_bar_menu_proxy):
6875 Use gtk_widget_get_sensitive.
e547b051
J
6876 (xg_update_submenu): Use remove_submenu.
6877 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
6878 properties instead to get old x and y position.
6879 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
6880 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 6881 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
6882 (xg_get_tool_bar_widgets): New function.
6883 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
6884 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
6885 (toolbar_set_orientation): New #define based on if configure
6886 finds gtk_orientable_set_orientation.
6887 (xg_create_tool_bar): Call toolbar_set_orientation.
6888 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
6889 instead of gtk_box_pack_start_defaults.
6890
b9229673
CY
68912010-06-28 Chong Yidong <cyd@stupidchicken.com>
6892
6893 * cmds.c (Fdelete_backward_char): Move into Lisp.
6894
bbc803b0
DN
68952010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
6896
6897 * s/freebsd.h (BSD4_2): Remove redundant definition.
6898 bsd-common.h defines it already.
6899
6431f2e6
CY
69002010-06-27 Chong Yidong <cyd@stupidchicken.com>
6901
6902 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
6903 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
6904 tool-bar-mode, which are now set using these X resources at
6905 startup, to determine the defaults (Bug#2249).
6906
6907 * w32fns.c (Fx_create_frame):
6908 * nsfns.m (Fx_create_frame): Likewise.
6909
6910 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
6911
8c079ebb
JB
69122010-06-24 Juanma Barranquero <lekktu@gmail.com>
6913
6914 * gtkutil.c (xg_update_scrollbar_pos):
6915 Avoid C99 mid-block variable declaration.
6916
e9b7ab96
JD
69172010-06-22 Jan Djärv <jan.h.d@swipnet.se>
6918
bc869eca
JD
6919 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
6920
2b7e356a 6921 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
6922
6923 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
6924 if height is less than scroll bar min size.
6925 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
6926
e9b7ab96
JD
6927 * xfns.c (x_default_font_parameter): Try to open font from system
6928 before using it (bug#6478). Rename got_from_gconf to got_from_system.
6929
a628ad9d 69302010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
6931
6932 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
6933
70c4cfbb
EZ
69342010-06-20 Eli Zaretskii <eliz@gnu.org>
6935
6936 * xdisp.c (try_scrolling): When scroll-conservatively is set to
6937 most-positive-fixnum, be extra accurate when scrolling window
6938 start, to avoid missing the cursor line.
6939
ad5a12b5
EZ
69402010-06-19 Eli Zaretskii <eliz@gnu.org>
6941
6942 * xdisp.c (try_scrolling): Compute the limit for searching point
6943 in forward scroll from scroll_max, instead of an arbitrary limit
ef1b0ba7
SM
6944 of 10 screen lines.
6945 See http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
ad5a12b5
EZ
6946 and
6947 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
6948 for details.
6949
2a64315a 69502010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
6951
6952 * editfns.c (Fbyte_to_string): Pacify compiler.
6953
288cf4e9
SM
69542010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
6955
6956 * lread.c (read1): Phase out old-style backquotes a bit more.
6957
6e6e5760
EZ
69582010-06-12 Eli Zaretskii <eliz@gnu.org>
6959
cbc4fd20
EZ
6960 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
6961 bidimirror.h.
6962
6963 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
6964
317fbf33
EZ
6965 * bidi.c (bidi_initialize): Remove explicit initialization of
6966 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 6967 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 6968 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
6969
6970 * biditype.h: New file.
6971
cbc4fd20
EZ
6972 * bidimirror.h: New file.
6973
6e6e5760
EZ
6974 * window.c (syms_of_window): Doc fix (bug#6409).
6975
4176cba2
RF
69762010-06-12 Romain Francoise <romain@orebokech.com>
6977
6978 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
6979 ediff-hook.
6980
cb4bfcb5
GM
69812010-06-10 Glenn Morris <rgm@gnu.org>
6982
64c60c2f
GM
6983 * editfns.c (Fbyte_to_string): Pacify compiler.
6984
cb4bfcb5
GM
6985 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
6986
2ec1b5ee
CY
69872010-06-26 Andreas Schwab <schwab@linux-m68k.org>
6988
6989 * alloc.c (Fmake_byte_code): Don't access undefined argument
6990 (Bug#6517).
6991
69922010-06-25 Chong Yidong <cyd@stupidchicken.com>
6993
6994 * xdisp.c (next_element_from_image): Ensure that after-strings are
6995 read the next time we hit handle_stop (Bug#1336).
6996
69972010-06-23 Andreas Schwab <schwab@linux-m68k.org>
6998
6999 * lread.c (read1): Signal error if #s is not followed by paren.
7000
70012010-06-19 Chong Yidong <cyd@stupidchicken.com>
7002
7003 * image.c (free_image): Mark frame as garbaged (Bug#6426).
7004
7005 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
7006
70072010-06-15 Glenn Morris <rgm@gnu.org>
7008
7009 * editfns.c (Fbyte_to_string): Pacify compiler.
7010
e454a4a3
SM
70112010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
7012
7013 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
7014 Check `object's type before accessing its guts.
7015
c1b1acc2
DN
70162010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
7017
7018 * s/usg5-4.h: Fix previous change.
7019 Suggested by Lawrence Mitchell <wence@gmx.li>
7020
657d4c0b
AS
70212010-06-08 Andreas Schwab <schwab@linux-m68k.org>
7022
7023 * minibuf.c (Fall_completions): Add more checks.
7024
9b27fd9f
JB
70252010-06-08 Juanma Barranquero <lekktu@gmail.com>
7026
7027 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
7028
a99ebb40
DN
70292010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
7030
d7c5d87d
DN
7031 * lread.c (X_OK): Remove, unused.
7032
0263a941
DN
7033 * dispnew.c: Remove obsolete comment.
7034
a99ebb40
DN
7035 Remove INCLUDED_FCNTL.
7036 * xterm.c (INCLUDED_FCNTL):
7037 * callproc.c (INCLUDED_FCNTL):
7038 * alloc.c (INCLUDED_FCNTL):
7039 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
7040 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
7041
13b5221f
MR
70422010-06-07 Martin Rudalics <rudalics@gmx.at>
7043
7044 * window.c (Fselect_window): Move `record_buffer' up to the
7045 beginning of this function, so the buffer gets recorded
7046 even if the selected window does not change.
7047 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
7048
5220357f
JB
70492010-06-07 Juanma Barranquero <lekktu@gmail.com>
7050
7051 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
7052 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
7053
3085237c
DN
70542010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
7055
7056 Remove BSTRING related code, all platforms define it.
7057 * s/usg5-4.h (BSTRING): Remove definition.
7058 * s/template.h (BSTRING):
7059 * s/msdos.h (BSTRING):
7060 * s/ms-w32.h (BSTRING):
7061 * s/hpux10-20.h (BSTRING):
7062 * s/gnu-linux.h (BSTRING):
7063 * s/darwin.h (BSTRING):
7064 * s/cygwin.h (BSTRING):
7065 * s/bsd-common.h (BSTRING):
7066 * s/aix4-2.h (BSTRING): Likewise.
7067 * sysdep.c: Remove code depending on BSTRING not being defined.
7068
409f2919
JB
70692010-06-05 Juanma Barranquero <lekktu@gmail.com>
7070
7071 Remove obsolete macro BASE_LEADING_CODE_P.
7072 * character.h (BASE_LEADING_CODE_P): Remove.
7073 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
7074 * buffer.c (Fset_buffer_multibyte):
7075 * indent.c (scan_for_column, compute_motion):
7076 * insdel.c (count_combining_before, count_combining_after):
7077 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
7078
087fc47a
JB
70792010-06-04 Juanma Barranquero <lekktu@gmail.com>
7080
7081 Turn `directory-sep-char' into a noop.
7082
7083 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
7084 (DIRECTORY_SEP): Define unconditionally.
7085
7086 * s/ms-w32.h (DIRECTORY_SEP): Remove.
7087
7088 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
7089 call dostounix_filename directly.
7090
7091 * fileio.c (CORRECT_DIR_SEPS): Remove.
7092 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
7093 (Fsubstitute_in_file_name): Use dostounix_filename instead.
7094 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
7095 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
7096
7097 * w32proc.c (CORRECT_DIR_SEPS): Remove.
7098 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
7099
0eb7675e
AS
71002010-06-03 Andreas Schwab <schwab@linux-m68k.org>
7101
a628ad9d
JB
7102 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
7103 (Bug#6346)
0eb7675e 7104
78edd3b7
JB
71052010-06-03 Juanma Barranquero <lekktu@gmail.com>
7106
7107 * ccl.c (Fccl_program_p): Fix typo in docstring.
7108
eb697db5
DN
71092010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
7110
7111 Move UNEXEC definition to autoconf.
7112 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
7113 * s/sol2-10.h (UNEXEC):
7114 * s/irix6-5.h (UNEXEC):
7115 * s/hpux10-20.h (UNEXEC):
7116 * s/gnu-linux.h (UNEXEC):
7117 * s/darwin.h (UNEXEC):
7118 * s/cygwin.h (UNEXEC):
7119 * s/bsd-common.h (UNEXEC):
7120 * s/aix4-2.h (UNEXEC):
7121 * m/alpha.h (UNEXEC): Likewise.
7122 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
7123
aa3830c4
JB
71242010-06-03 Juanma Barranquero <lekktu@gmail.com>
7125
7126 Remove obsolete pre-unicode2 macros.
7127 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
7128 * composite.c (composition_reseat_it):
7129 * data.c (Faset):
7130 * fns.c (Ffillarray):
7131 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
7132 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
7133
d234d13e
JL
71342010-06-03 Juri Linkov <juri@jurta.org>
7135
7136 * buffer.c (Fother_buffer): Add CHECK_FRAME.
7137 (Fswitch_to_buffer): Remove unused variable `err'.
7138
0d4bcf4d
GM
71392010-06-03 Glenn Morris <rgm@gnu.org>
7140
e23dc1e2
GM
7141 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
7142
05b09564
GM
7143 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
7144 now that AH_BOTTOM does it.
7145
824e2978
GM
7146 * m/hp800.h (HAVE_ALLOCA):
7147 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
7148
0d4bcf4d
GM
7149 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
7150 Remove NOT_C_CODE tests, it is always true now.
7151
c55d2abf
DN
71522010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
7153
08a494a3
DN
7154 Fix config.h includes.
7155 * xsettings.c:
7156 * xgselect.c:
7157 * nsterm.m:
7158 * nsselect.m:
7159 * nsimage.m:
7160 * nsfont.m:
7161 * nsfns.m:
7162 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
7163 other files do.
7164
75934b1d
DN
7165 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
7166
9f32a766
DN
7167 * s/sol2-6.h: Remove obsolete comments.
7168
c55d2abf
DN
7169 Remove unnecessary alloca.h includes.
7170 * keymap.c: Do not include alloca.h, config.h does that.
7171 * sysdep.c: Likewise. Do not define fwrite, not used.
7172
06ac62b4
SM
71732010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
7174
7175 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
7176 the HAVE_TERMIO where it belongs (bug#6149).
7177
1ab8293c
SM
71782010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
7179
7180 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
7181 of bug#6305).
7182
6dcfd253
EZ
71832010-05-30 Eli Zaretskii <eliz@gnu.org>
7184
7185 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
7186 state is always cached (bug#6306).
7187
6d26bbb2
EZ
71882010-05-29 Eli Zaretskii <eliz@gnu.org>
7189
06fa4a23
EZ
7190 Fix cursor motion in bidi-reordered continued lines.
7191 * xdisp.c (try_cursor_movement): Backup to non-continuation line
7192 only after finding point's row. Fix the logic. Rewrite the loop
ef1b0ba7
SM
7193 over continuation lines in bidi-reordered buffers.
7194 Return CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
6d26bbb2
EZ
7195 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
7196
f5783df3
MA
71972010-05-28 Michael Albinus <michael.albinus@gmx.de>
7198
7199 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
7200
7d56b2dd
KH
72012010-05-28 Kenichi Handa <handa@m17n.org>
7202
7203 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
7204 Don't sheck SPEC if it is nil.
7205 (font_list_entities): Call font_delete_unmatched if
b925d231 7206 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 7207
e58d4ff7
GM
72082010-05-28 Glenn Morris <rgm@gnu.org>
7209
7210 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
7211
f1a5d776
CY
72122010-05-27 Chong Yidong <cyd@stupidchicken.com>
7213
7214 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
7215 whether to trash.
7216 (internal_delete_file, Frename_file): Callers changed.
7217 (delete_by_moving_to_trash): Doc fix.
7218 (Fdelete_directory_internal): Don't move to trash.
7219
7220 * callproc.c (delete_temp_file):
7221 * buffer.c (Fkill_buffer): Callers changed.
7222
7223 * lisp.h: Update prototype.
7224
f44a59e6
CY
72252010-05-27 Chong Yidong <cyd@stupidchicken.com>
7226
7227 * xdisp.c (redisplay_window): After redisplay, check if point is
7228 still valid before setting it (Bug#6177).
7229
81ac4f35
GM
72302010-05-27 Glenn Morris <rgm@gnu.org>
7231
7232 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
7233 Convert comments to Makefile format.
7234
7235 * Makefile.in (bootstrap-clean): No more Makefile.c.
7236
ccd89fb3
GM
72372010-05-26 Glenn Morris <rgm@gnu.org>
7238
90278cb6
GM
7239 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
7240 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
7241
ccd89fb3
GM
7242 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
7243 Remove.
7244 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
7245
b7050583
KH
72462010-05-26 Kenichi Handa <handa@m17n.org>
7247
7248 * composite.c (composition_compute_stop_pos): Fix condition for
7249 backward scanning.
7250
e5458003
GM
72512010-05-25 Glenn Morris <rgm@gnu.org>
7252
c345fe90
GM
7253 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
7254 Move before TEMACS_LDFLAGS.
7255 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
7256 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
7257
2e0689ab
GM
7258 * Makefile.in (NOT_C_CODE): No longer define.
7259 (config.h): No longer include.
7260
8009a5e8
GM
7261 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
7262 variables it may reference.
7263
e5458003
GM
7264 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
7265 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
7266
10f72a37
KH
72672010-05-25 Kenichi Handa <handa@m17n.org>
7268
7269 * dispextern.h (struct composition_it): New members rule_idx and
7270 charpos.
7271
7272 * xdisp.c (set_iterator_to_next): While scanning backward, assume
7273 that the character positions of IT point the last character of the
7274 current grapheme cluster.
7275 (next_element_from_composition): Don't change character positions
7276 of IT.
7277 (append_composite_glyph): Set glyph->charpos to
7278 it->cmp_it.charpos.
7279
7280 * composite.c (autocmp_chars): Change the first argument to RULE,
7281 and try composition with RULE only.
7282 (composition_compute_stop_pos): Record the index number of the
7283 composition rule in CMP_IT->rule_idx.
7284 (composition_reseat_it): Call autocmp_chars repeatedly until the
7285 correct rule of the composition is found.
7286 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
7287 is at the last character of the current grapheme cluster when
7288 CMP_IT->reversed_p is nonzero.
7289
171eda53 72902010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 7291
171eda53
SM
7292 * editfns.c (Fbyte_to_string): New function.
7293
66a9f7f4
SM
72942010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
7295
7296 * process.c (Fmake_network_process): Set :host to nil if it's not used.
7297 Suggested by Masatake YAMATO <yamato@redhat.com>.
7298
d8c315d1
EZ
72992010-05-23 Eli Zaretskii <eliz@gnu.org>
7300
171eda53 7301 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 7302
f5b416d2 73032010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
7304
7305 * s/netbsd.h: If terminfo is found, use it in preference to
7306 termcap. (Bug#6190) [Backport from trunk]
7307
0416466c
EZ
73082010-05-19 Eli Zaretskii <eliz@gnu.org>
7309
11117830 7310 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
7311
7312 * dispextern.h (struct glyph_row): New members minpos and maxpos.
7313 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
7314 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
7315 and maxpos members instead of start.pos and end.pos, respectively.
7316
7317 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
7318 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
7319 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
7320 (try_window_reusing_current_matrix, try_window_id):
7321 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
7322 (init_from_display_pos, init_iterator): Use EMACS_INT for
7323 character and byte positions.
66a9f7f4 7324 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
7325 arguments for minimum and maximum buffer positions seen by
7326 display_line for this row. Don't use iterator to find the
7327 position following the maximum one; instead, increment the
11117830
EZ
7328 position found by display_line directly. Fix logic; eol_pos
7329 should be tested before the rest. Handle the case of characters
7330 delivered from display vector (bug#6036). Fix tests related to
7331 it->method. Handle the truncated_on_right_p rows.
7332 (RECORD_MAX_MIN_POS): New macro.
7333 (display_line): Use it to record the minimum and maximum buffer
7334 positions for glyphs in the row being assembled. Record the
7335 position of the newline that terminates the line. If word wrap is
7336 in effect, restore minimum and maximum positions seen up to the
7337 wrap point, when iterator returns to it.
7338 (try_window_reusing_current_matrix): Give up if in bidi-reordered
7339 row and cursor not already at point. Restore original pre-bidi
7340 code for unidirectional buffers.
d36fe237
EZ
7341
7342 * dispnew.c (increment_row_positions, check_matrix_invariants):
7343 Increment and check row->start.pos and row->end.pos, in addition
7344 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
7345
11117830
EZ
7346 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
7347 Display truncated_on_left_p and truncated_on_right_p flags.
7348 Formatting fixes.
7349 (pmtxrows): Display the ordinal number of each row. Don't display
7350 rows beyond the last one.
7351
7352 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
7353 it is not copied by bidi_copy_it.
7354
6e83d800
EZ
73552010-05-22 Eli Zaretskii <eliz@gnu.org>
7356
7357 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
7358 (Bug#6237)
7359
110683ad
CY
73602010-05-22 Chong Yidong <cyd@stupidchicken.com>
7361
7362 * image.c (Fimage_flush): Rename from image-refresh.
7363
98fe5161
CY
73642010-05-21 Chong Yidong <cyd@stupidchicken.com>
7365
7366 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
7367 just one window.
7368
7369 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
7370 (clear_image_cache): If the number of cached images is unusually
7371 large, decrease the cache eviction delay (Bug#6230).
7372
e8752c66
GM
73732010-05-21 Glenn Morris <rgm@gnu.org>
7374
66dbf213
GM
7375 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
7376 Move these rules to ns.mk.
7377 * ns.mk: New file.
7378
04384b2d
GM
7379 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
7380
e8752c66
GM
7381 * Makefile.in (CANNOT_DUMP): New, set by configure.
7382 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
7383
2e2bbddb
JL
73842010-05-20 Juri Linkov <juri@jurta.org>
7385
7386 * fileio.c (Fdelete_file): Change interative spec to use
7387 `read-file-name' like in `find-file-read-args' where the default
7388 value is `default-directory' instead of `buffer-file-name'.
7389 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
7390
31c4aaf6
KR
73912010-05-20 Kevin Ryde <user42@zip.com.au>
7392
7393 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
7394 (Voverriding_terminal_local_map, Vsystem_key_alist)
7395 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
7396
9d5cf9b6
GM
73972010-05-20 Glenn Morris <rgm@gnu.org>
7398
7399 * Makefile.in (DEPDIR): New constant.
7400 (DEPFLAGS): Set with configure, not cpp.
7401 (MKDEPDIR): New, set by configure.
7402 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
7403 (clean): Use $DEPDIR.
7404 (deps_frag): Include from configure.
7405 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
7406 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
7407
bba3e508
SM
7408 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state):
7409 Fix reallocation of the cache. (Bug#6210)
ead6f8f5 7410
7f34aec3
GM
74112010-05-19 Glenn Morris <rgm@gnu.org>
7412
d494e8f2
GM
7413 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
7414
c1d0dcfd
GM
7415 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
7416 (GNULIB_VAR): Remove.
7417 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
7418
7419 * m/ibms390x.h (LINKER):
7420 * m/macppc.h (LINKER) [GNU_LINUX]:
7421 * s/aix4-2.h (ORDINARY_LINK):
7422 * s/cygwin.h (LINKER):
7423 * s/darwin.h (ORDINARY_LINK):
7424 * s/gnu.h (ORDINARY_LINK):
7425 * s/netbsd.h (LINKER):
7426 * s/usg5-4.h (ORDINARY_LINK):
7427 Move to configure.
7428
7f34aec3
GM
7429 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
7430
754790b6
CY
74312010-05-18 Chong Yidong <cyd@stupidchicken.com>
7432
7433 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
7434 prevent stack overflow if number of arguments is too large
7435 (Bug#6214).
7436
161e44d1
JB
74372010-05-18 Juanma Barranquero <lekktu@gmail.com>
7438
7439 * charset.c (load_charset_map_from_file): Don't call close after fclose.
7440
be4ff9da
GM
74412010-05-18 Glenn Morris <rgm@gnu.org>
7442
9539dc5d
GM
7443 * s/gnu-linux.h: Combine two conditionals.
7444
7445 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
7446 $(POST_ALLOC_OBJ).
7447
40dc6bf4
GM
7448 * Makefile.in (RALLOC_OBJ): New, set by configure.
7449 (rallocobj): Replace with the previous variable.
7450 (otherobj): Use $RALLOC_OBJ.
7451
7452 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
7453 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
7454
be4ff9da
GM
7455 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
7456 (gmallocobj, vmlimitobj): Replace with previous two variables.
7457 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
7458
16455a85
GM
74592010-05-17 Glenn Morris <rgm@gnu.org>
7460
7461 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
7462 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
7463
5fdb7468
GM
74642010-05-16 Glenn Morris <rgm@gnu.org>
7465
7ca1f3f9
GM
7466 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
7467
7541dad5
GM
7468 * Makefile.in (clean): Get rid of HAVE_NS conditional.
7469
da53fab9
GM
7470 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
7471 trailing "/".
7472
b02a6645
GM
7473 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
7474 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
7475
8877ca0f
GM
7476 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
7477 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
7478 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
7479 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
7480 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
7481
5fdb7468
GM
7482 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
7483 Remove ${STARTFLAGS}, nothing ever sets it.
7484
95adb4b1
DN
74852010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
7486
7487 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
7488
676b6304
GM
74892010-05-16 Glenn Morris <rgm@gnu.org>
7490
9beab9ce
GM
7491 * Makefile.in (LIBX_BASE): Always define.
7492
8a95f0e7
GM
7493 * Makefile.in (LIBX_OTHER): Move out of cpp section.
7494
676b6304
GM
7495 * Makefile.in (LIBXT): Always define.
7496
6e546d18
GM
74972010-05-15 Glenn Morris <rgm@gnu.org>
7498
4235ca47 7499 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 7500
6e546d18
GM
7501 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
7502 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
7503
8c5ff6dd
KR
75042010-05-15 Ken Raeburn <raeburn@raeburn.org>
7505
560bb7ae 7506 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
7507 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
7508
8b4eb796
KR
7509 * emacs.c (main): Initialize initial-environment and
7510 process-environment before generating from env, not after.
7511
8c5ff6dd
KR
7512 Handle --version reasonably in CANNOT_DUMP configuration.
7513 * emacs.c (emacs_version, emacs_copyright): New string variables.
7514 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
7515 (syms_of_emacs): Defvar them, and initialize them from the C
7516 string variables.
7517 (main): If initialization hasn't been done, print initial version
7518 info from the C strings, instead of starting an interactive session.
7519
dbd3f723
EZ
75202010-05-15 Eli Zaretskii <eliz@gnu.org>
7521
d20e1419
EZ
7522 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
7523 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
7524 (bidi_paragraph_init): Remove redundant assertion that we are at
7525 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
7526
7527 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
7528 (syms_of_xdisp): Defsubr it.
7529
d36fe237
EZ
7530 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
7531
dbd3f723
EZ
7532 * Makefile.in: Fix MSDOS-related comments.
7533
02be533b
GM
75342010-05-15 Glenn Morris <rgm@gnu.org>
7535
1a82cca9
GM
7536 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
7537 (really-lwlib, really-oldXMenu): Always define.
7538 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
7539
3df7b338
GM
7540 * Makefile.in: Simplify cpp conditional.
7541
2b5f541b
GM
7542 * Makefile.in (${ns_appdir}): Simplify using umask.
7543
02be533b
GM
7544 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
7545
4e2db1fe
SM
75462010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
7547
7548 * eval.c (specbind): Remove left-over duplicate test.
7549 Disallow let-binding frame-local vars. Add comment.
7550
4b292a22
EZ
75512010-05-14 Eli Zaretskii <eliz@gnu.org>
7552
2fe72643 7553 Make the cache of bidi iterator states dynamically allocated.
1edbd309 7554 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
7555 (bidi_init_it): Call it.
7556 (bidi_cache_iterator_state): Enlarge the cache if needed.
7557
4e2db1fe 7558 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
7559 bidi_get_next_char_visually. All callers changed.
7560
82ebc97b
KH
75612010-05-14 Kenichi Handa <handa@m17n.org>
7562
7563 * dispextern.h (struct composition_it): New member reversed_p.
7564
7565 * composite.c (composition_compute_stop_pos): Search backward if
7566 ENDPOS < CHARPOS.
7567 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
7568 Set CMP_IT->reversed_p.
b4b6e17e 7569 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 7570
4e2db1fe
SM
7571 * xdisp.c (set_iterator_to_next):
7572 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
7573 scanning backward. Call composition_compute_stop_pos if scan
7574 direction is changed.
7575 (next_element_from_buffer): Call composition_compute_stop_pos with
7576 negative ENDPOS if we are scanning backward.
7577 (next_element_from_composition): Pay attention to
7578 IT->cmp_it.reversed_p.
7579
0e5d7800
KH
75802010-05-14 Kenichi Handa <handa@m17n.org>
7581
560bb7ae 7582 * font.c (font_range): Return the range for the font found at first.
0e5d7800 7583
cb027b32
GM
75842010-05-14 Glenn Morris <rgm@gnu.org>
7585
177b0288
GM
7586 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
7587
fbc00890
GM
7588 * Makefile.in (mktime, X11, register): Move undefs to configure.
7589
f14d1dfd
GM
7590 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
7591 (MSDOS_X_OBJ): New variable.
7592 (MSDOS_SUPPORT_REAL): New constant.
7593 (MSDOS_SUPPORT): Set as a variable, not with cpp.
7594 (obj): Use MSDOS_X_OBJ.
7595 (lisp): Use MSDOS_SUPPORT as a variable.
7596
11842bd8
GM
7597 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
7598 (GPM_MOUSE_SUPPORT): Now it's a constant.
7599 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
7600 not cpp.
7601
489d31a4 7602 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 7603 (ns_appresdir): Remove, unused.
e20f1f07 7604
489d31a4
GM
7605 * Makefile.in (SHELL): Move outside cpp section.
7606
cb027b32
GM
7607 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
7608
5a903aa9
GM
76092010-05-13 Glenn Morris <rgm@gnu.org>
7610
3369c79f
GM
7611 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
7612 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
7613
d5e982a6
GM
7614 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
7615 HAVE_WINDOW_SYSTEM must be too.
7616
6192e163
GM
7617 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
7618 (lisp): Remove WINNT_SUPPORT.
7619
472c5d6b
GM
7620 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
7621 Let configure set these variables (to empty) in this case as well.
7622
0116466b
GM
7623 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
7624 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
7625
5a903aa9
GM
7626 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
7627 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
7628 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
7629 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
7630 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 7631 the values output by configure.
5a903aa9
GM
7632 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
7633
1a0d7c06
GM
76342010-05-12 Glenn Morris <rgm@gnu.org>
7635
b5457f14
GM
7636 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
7637 (LINKER_WAS_SPECIFIED): Remove.
7638
1a0d7c06
GM
7639 * Makefile.in (LIB_GCC): Set using configure, not cpp.
7640 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
7641 * m/arm.h (LIB_GCC) [GNU_LINUX]:
7642 * s/cygwin.h (LIB_GCC):
7643 * s/freebsd.h (LIB_GCC):
7644 * s/gnu-linux.h (LIB_GCC):
7645 * s/msdos.h (LIB_GCC):
7646 * s/netbsd.h (LIB_GCC):
7647 Move to configure.
7648
d1ddd1d0 76492010-05-11 Karel Klíč <kklic@redhat.com>
c90ca7b7
KH
7650
7651 * ftfont.c: Fix incorrect parentheses of #if condition for
7652 definining M17N_FLT_USE_NEW_FEATURE.
7653
acddf8ae
GM
76542010-05-11 Glenn Morris <rgm@gnu.org>
7655
7656 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
7657 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
7658
ae5e04fa
EZ
76592010-05-10 Eli Zaretskii <eliz@gnu.org>
7660
7661 * xdisp.c (init_iterator): Don't turn on bidi reordering in
7662 unibyte buffers. See
7663 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
7664
7490175b
GM
76652010-05-10 Glenn Morris <rgm@gnu.org>
7666
97efb629
GM
7667 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
7668 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
7669 (LIBES): Use LIBS_SYSTEM as a variable.
7670 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
7671 * s/aix4-2.h (LIBS_SYSTEM):
7672 * s/freebsd.h (LIBS_SYSTEM):
7673 * s/hpux10-20.h (LIBS_SYSTEM):
7674 * s/sol2-6.h (LIBS_SYSTEM):
7675 * s/unixware.h (LIBS_SYSTEM):
7676 Move to configure.
7677
7490175b
GM
7678 * s/aix4-2.h (MAIL_USE_LOCKF):
7679 * s/bsd-common.h (MAIL_USE_FLOCK):
7680 * s/darwin.h (MAIL_USE_FLOCK):
7681 * s/gnu-linux.h (MAIL_USE_FLOCK):
7682 * s/irix6-5.h (MAIL_USE_FLOCK):
7683 * s/template.h (MAIL_USE_FLOCK):
7684 Move to configure.
7685
0235128c 76862010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
7687
7688 * Version 23.2 released.
7689
0235128c 76902010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
7691
7692 * composite.c (autocmp_chars): Save point as marker before calling
7693 auto-composition-function (Bug#5984).
7694
7695 * lisp.h (restore_point_unwind): Add prototype.
7696
7697 * fileio.c (restore_point_unwind): Remove static attribute.
7698
0235128c 76992010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
7700
7701 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
7702 new feature of libotf and m17n-flt.
0235128c
SM
7703 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
7704 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
7705 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
7706 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
7707 that OUT is NULL. Use OTF_drive_gsub_with_log and
7708 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
7709 OTF_drive_gpos.
7710 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
7711 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
7712 Setup mflt_enable_new_feature and mflt_try_otf.
7713
4721152c
J
77142010-05-08 Jan Djärv <jan.h.d@swipnet.se>
7715
7716 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
7717
7718 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
7719 box and toolbar (Bug #6139).
7720 (xg_create_tool_bar): Remove comment (Bug #6139).
7721 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
7722 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
7723
ee0a16cf
JB
77242010-05-08 Juanma Barranquero <lekktu@gmail.com>
7725
7726 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
7727 Update dependencies.
7728
96d79611
EZ
77292010-05-08 Eli Zaretskii <eliz@gnu.org>
7730
7731 * fringe.c (update_window_fringes): Set up truncation bitmaps for
7732 R2L lines.
7733
40c17879
GM
77342010-05-08 Glenn Morris <rgm@gnu.org>
7735
7b42b29f
GM
7736 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
7737
40c17879
GM
7738 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
7739 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
7740 (termcapobj): Replace with TERMCAP_OBJ.
7741 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
7742 (LIBES): Use LIBS_TERMCAP as a variable.
7743
7744 * s/freebsd.h (osreldate.h): No longer include, since this file
7745 does not use __FreeBSD_version any more.
7746
7747 * s/aix4-2.h (TERMINFO):
7748 * s/cygwin.h (TERMINFO):
7749 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
7750 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
7751 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
7752 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
7753 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
7754 * s/irix6-5.h (TERMINFO):
7755 * s/netbsd.h (LIBS_TERMCAP):
7756 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
7757 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
7758 * s/usg5-4.h (TERMINFO):
7759 Move to configure.
7760
94b612ad
SM
77612010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
7762
7763 * eval.c (unbind_to): Don't unbind a local binding into the global
7764 binding when the local binding disappeared. Inversely, don't unbind
7765 a global binding into a newly created local binding.
7766 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
7767 can specify the frame to use, when applicable. Adjust callers.
7768
15e12598 77692010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 7770 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
7771
7772 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
7773
f724825e
EZ
77742010-05-07 Eli Zaretskii <eliz@gnu.org>
7775
5cba3209
EZ
7776 * w32fns.c: Include w32.h.
7777 (Fw32_shell_execute): Decode the error message before passing it
7778 to `error'. (Bug#6126)
7779
d16bdfc3
EZ
7780 * msdos.c (dos_set_window_size):
7781 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
7782 instead of `XSYMBOL (foo)->value'.
7783
59d93e87
EZ
77842010-05-07 Eli Zaretskii <eliz@gnu.org>
7785
9fdec8bc
EZ
7786 Fix the MS-DOS build, broken by autoconfiscation.
7787
7788 * Makefile.in: Don't use Make-style comments past the "start of
7789 cpp stuff" line.
7790 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
7791
7792 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
7793 edited directly by msdos/sed1v2.inp).
f724825e 7794
2f86b22b
GM
77952010-05-07 Glenn Morris <rgm@gnu.org>
7796
7797 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
7798 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
7799 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
7800 move out of cpp section.
7801 * s/freebsd.h (LD_SWITCH_SYSTEM):
7802 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
7803 * s/netbsd.h (LD_SWITCH_SYSTEM):
7804 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
7805
49ebbd65
DN
78062010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
7807
7808 Define LIB_STANDARD and START_FILES using autoconf.
7809 * s/usg5-4.h (LIB_STANDARD):
7810 * s/netbsd.h (START_FILES):
7811 * s/irix6-5.h (LIB_STANDARD):
7812 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
7813 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
7814 * s/freebsd.h (START_FILES):
7815 * s/darwin.h (START_FILES):
7816 * s/cygwin.h (START_FILES):
7817 * s/aix4-2.h (LIB_STANDARD):
7818 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
7819 * Makefile.in (STARTFILES): Rename to START_FILES, define using
7820 autoconf, not cpp.
7821
d43c06d6
DN
78222010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
7823
28823648
DN
7824 Remove NEED_BSDTTY and NEED_UNISTD_H.
7825 * s/hpux10-20.h (NEED_BSDTTY): Remove.
7826 * s/aix4-2.h (NEED_UNISTD_H): Remove.
7827 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
7828 <sys/ptyio.h> and <unistd.h>.
7829
aca00430
DN
7830 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
7831
d43c06d6
DN
7832 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
7833 * s/gnu.h (START_FILES): Remove empty definition.
7834
3e56b11d
JD
78352010-05-06 Jan Djärv <jan.h.d@swipnet.se>
7836
7837 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
7838
e3cf0cde
GM
78392010-05-06 Glenn Morris <rgm@gnu.org>
7840
7841 * Makefile.in (CPP, LN_S): Remove unused variables.
7842
774b9a60
SM
78432010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
7844
7845 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
7846
4ab92842
LM
78472010-05-05 Lawrence Mitchell <wence@gmx.li>
7848
7849 * m/sparc.h: Fix typo in earlier change.
7850
178f2507
SM
78512010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
7852
7853 Misc tweaks.
7854 * eval.c (Fdefvaralias): Remove unintended nested if.
7855 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
7856
80f00217 78572010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
7858
7859 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
7860
ef03a4e6
DN
78612010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
7862
58eb6cf0
DN
7863 Remove BSD_PGRPS.
7864 * s/bsd-common.h (BSD_PGRPS): Remove undef.
7865 * s/gnu-linux.h (BSD_PGRPS): Remove.
7866 * term.c (dissociate_if_controlling_tty):
7867 * sysdep.c (narrow_foreground_group, widen_foreground_group)
7868 (init_sys_modes, reset_sys_modes):
7869 * emacs.c (main):
7870 * callproc.c (Fcall_process, child_setup): Remove code depending
7871 on BSD_PGRPS.
7872
ef03a4e6
DN
7873 Remove POSIX_SIGNALS.
7874 * s/usg5-4.h (POSIX_SIGNALS):
7875 * s/netbsd.h (POSIX_SIGNALS):
7876 * s/msdos.h (POSIX_SIGNALS):
7877 * s/ms-w32.h (POSIX_SIGNALS):
7878 * s/hpux11.h (POSIX_SIGNALS):
7879 * s/gnu.h (POSIX_SIGNALS):
7880 * s/gnu-linux.h (POSIX_SIGNALS):
7881 * s/freebsd.h (POSIX_SIGNALS):
7882 * s/darwin.h (POSIX_SIGNALS):
7883 * s/cygwin.h (POSIX_SIGNALS):
7884 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
7885 * s/unixware.h:
7886 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
7887 * process.c (create_process):
7888 * syssignal.h:
7889 * sysdep.c (wait_for_termination, init_signals):
7890 * process.c (create_process):
7891 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
7892 remove all code that assumes the contrary.
7893
49628785
GM
78942010-05-04 Glenn Morris <rgm@gnu.org>
7895
27a2cdfc
GM
7896 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
7897 variable.
7898 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
7899 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
7900 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
7901 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
7902 LD_SWITCH_SYSTEM_tmp.
7903 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
7904 New variables, set by configure.
7905
eb21eab5
GM
7906 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
7907 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
7908 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
7909 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
7910 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
7911
49628785
GM
7912 * s/aix4-2.h (C_SWITCH_SYSTEM):
7913 * m/alpha.h (C_SWITCH_MACHINE):
7914 Move to configure.in.
7915 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
7916 New variables, set by configure.
7917 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
7918 $c_switch_machine and $c_switch_system.
7919
7dff330b
DN
79202010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
7921
7922 * s/hpux10-20.h (LIB_STANDARD): New definition.
7923 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
7924 on it, not used anymore.
7925
53967e09
CY
79262010-05-03 Chong Yidong <cyd@stupidchicken.com>
7927
7928 * eval.c (internal_condition_case_n): Rename from
7929 internal_condition_case_2.
7930 (internal_condition_case_2): New function.
7931
7932 * xdisp.c (safe_call): Use internal_condition_case_n.
7933
7934 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
7935 (internal_delete_file, Frename_file): Callers changed.
7936
7937 * buffer.c (Fkill_buffer):
7938 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
7939
7940 * lisp.h: Update prototypes.
7941
3dee6fdb
GM
79422010-05-03 Glenn Morris <rgm@gnu.org>
7943
7944 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
7945 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
7946 (LIBXT): Set with configure, not cpp.
7947 (LIBX): Remove.
7948 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
7949
a101e0fb
DN
79502010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
7951
7952 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
7953 The FreeBSD is not needed, the default works, Solaris version is
7954 not needed, and the remaining case is not supported by configure.
7955
f63d0028
JD
79562010-05-02 Jan Djärv <jan.h.d@swipnet.se>
7957
7958 * xsmfns.c (CHDIR_OPT): New define.
7959 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
7960 restarting emacs.
7961
7962 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
7963 shut_down_emacs.
7964
7965 * emacs.c (USAGE1): Mention --chdir.
7966 (main): Handle --chdir.
7967 (standard_args): Add --chdir.
7968 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
7969 #5552).
7970
e4814a9f
DN
79712010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
7972
cd03c74a
DN
7973 Remove LD_SWITCH_MACHINE.
7974 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
7975 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
7976
c3a398a1
DN
7977 Clean up IRIX code.
7978 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
7979 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
7980
87e7285c
DN
7981 Clean up AIX code.
7982 * m/ibmrs6000.inp: Remove file, unused.
7983 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
7984 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
7985 definition ...
7986 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
7987
80f00217
JB
7988 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
7989 unused.
e4814a9f 7990
59ca28de
EZ
79912010-05-01 Eli Zaretskii <eliz@gnu.org>
7992
197daef4
EZ
7993 Emulate POSIX_SIGNALS on MS-Windows.
7994
7995 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
7996 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
7997
7998 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
7999 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
8000 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
8001
80f00217
JB
8002 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
8003 New stubs.
197daef4 8004
af7c7572
EZ
8005 Miscellaneous fixes of bidi display.
8006
59ca28de
EZ
8007 * xdisp.c (find_row_end): New function, refactored from display_line.
8008 (display_line): Use it.
017ea819
EZ
8009 (extend_face_to_end_of_line): In almost-filled rows, extend only
8010 if the row is R2L and not continued.
166e930d 8011 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 8012 Preserve overlay and string info in row->end.
166e930d
EZ
8013 (insert_left_trunc_glyphs): Support addition of left truncation
8014 glyphs to R2L rows.
b47e0dcf 8015 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
8016 glyph between adjacent windows. Fix a crash when a display string
8017 is continued to the next line. Don't return zero if cursor was
8018 found by `cursor' property of a display string.
b47e0dcf
EZ
8019 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
8020 test for that explicitly.
59ca28de 8021
7acac9f4
GM
80222010-05-01 Glenn Morris <rgm@gnu.org>
8023
8024 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
8025 for clarity.
8026 (OTHER_OBJ): Remove.
8027 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
8028 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
8029
45841e65
KK
80302010-05-01 Karel Klíč <kklic@redhat.com>
8031
8032 * fileio.c (Ffile_selinux_context): Context functions may return null.
8033
afc61943
DN
80342010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
8035
80f00217 8036 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 8037
5a1bb006
GM
80382010-04-30 Glenn Morris <rgm@gnu.org>
8039
8040 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
8041 (OTHER_OBJ): Define as a separate variable, for clarity.
8042
210af043
J
80432010-04-30 Jan Djärv <jan.h.d@swipnet.se>
8044
8045 * xsettings.c: include limits.h and update file comment.
8046
0a7df391
GM
80472010-04-30 Glenn Morris <rgm@gnu.org>
8048
d5096f16
GM
8049 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
8050 Set with configure, not cpp.
8051 (LIBW): Remove, replace with $TOOLKIT_LIBW.
8052
7eb1ac33
GM
8053 * Makefile.in (mallocobj): Remove.
8054 (otherobj): Simplify using @OTHER_OBJ@.
8055
517d086b
GM
8056 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
8057 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
8058 Don't bother making nsgui.h dependency platform-specific.
8059
0a7df391
GM
8060 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
8061
d6d23852
SM
80622010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
8063
d2630aef
SM
8064 * process.c (read_process_output, exec_sentinel): Don't burp if the
8065 sentinel/filter kills the current buffer (bug#6060).
8066
f9dddf52 8067 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
8068 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
8069 Remove unused var `args'.
8070 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
8071 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
8072 * doc.c (store_function_docstring): Use XSETCAR.
8073
f1e3642a
GM
80742010-04-28 Glenn Morris <rgm@gnu.org>
8075
faf535f8
GM
8076 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
8077 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
8078
c40f9449
GM
8079 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
8080
658f86ca
GM
8081 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
8082 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
8083
bc0b5f61
GM
8084 * Makefile.in (FONT_OBJ): New, set by configure.
8085 (FONT_DRIVERS): Use $FONT_OBJ.
8086
294c50a0
GM
8087 * Makefile.in (LIBXMU): Set with configure, not cpp.
8088 * s/aix4-2.h (LIBXMU):
8089 * s/hpux10-20.h (LIBXMU):
8090 Remove definition, now set in configure.
8091
e6ec4e99
GM
8092 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
8093
f1e3642a
GM
8094 * m/amdx86-64.h [i386]: Move this test to configure.in.
8095
c6ea2936
GM
80962010-04-27 Glenn Morris <rgm@gnu.org>
8097
8fdac2c3
GM
8098 * Makefile.in (LIBXTR6): Set with configure, not cpp.
8099 * s/unixware.h (NEED_LIBW): Remove definition.
8100
986fb647
GM
8101 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
8102 (TOOLKIT_LIBW): New, set by configure.
8103 (@X_TOOLKIT_TYPE@): No longer define it.
8104
c6ea2936
GM
8105 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
8106 (MOTIF_LIBW): Set with configure, not cpp.
8107 * s/aix4-2.h (LIB_MOTIF):
8108 * s/gnu-linux.h (LIB_MOTIF):
8109 * s/unixware.h (LIB_MOTIF): Move to configure.in.
8110
aaa36002
DN
81112010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
8112
8113 Reduce CPP usage.
8114 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
8115 (obj): Use autoconf for unexec instead of cpp.
bba3e508
SM
8116 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE):
8117 Remove definitions and undefs. Inline definitions in the only user.
ed6281b0 8118 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 8119
b678dd8b
GM
81202010-04-27 Glenn Morris <rgm@gnu.org>
8121
76cda504
GM
8122 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
8123 since the defaults (set by the system file) are fine in most cases.
8124 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
8125 * m/ibms390x.h (START_FILES, LIB_STANDARD):
8126 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
8127 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
8128 Remove definitions, since they are set correctly in s/gnu-linux.h.
8129 * s/freebsd.h (START_FILES, LIB_STANDARD):
8130 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
8131 * s/hpux10-20.h (START_FILES):
8132 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
8133 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
8134
b678dd8b
GM
8135 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
8136 (MOTIF_LIBW): Use $LIBXP.
8137 (otherobj): Use $WIDGET_OBJ.
8138
9452ded1
DN
81392010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
8140
7e10844c
DN
8141 * Makefile.in (LIBS_MACHINE): Remove, unused.
8142
9452ded1
DN
8143 Use autoconf instead of cpp for LIB_MATH.
8144 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
8145 * s/cygwin.h (LIB_MATH): Likewise.
8146 * Makefile.in (LIB_MATH): Do not define with cpp.
8147 (LIBES): Use autoconf for LIB_MATH.
8148
fcebfc6a
KH
81492010-04-26 Kenichi Handa <handa@m17n.org>
8150
8151 * composite.c (Ffind_composition_internal): Fix the return value
8152 for an automatic composition.
8153
39e2ad1b
DN
81542010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
8155
8156 Remove all NO_ARG_ARRAY uses.
8157 * fns.c (concat2, concat3, nconc2):
8158 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
8159 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
8160 * m/xtensa.h (NO_ARG_ARRAY):
8161 * m/template.h (NO_ARG_ARRAY):
8162 * m/sparc.h (NO_ARG_ARRAY):
8163 * m/sh3.h (NO_ARG_ARRAY):
8164 * m/mips.h (NO_ARG_ARRAY):
8165 * m/macppc.h (NO_ARG_ARRAY):
8166 * m/iris4d.h (NO_ARG_ARRAY):
8167 * m/intel386.h (NO_ARG_ARRAY):
8168 * m/ibms390x.h (NO_ARG_ARRAY):
8169 * m/ibms390.h (NO_ARG_ARRAY):
8170 * m/ibmrs6000.h (NO_ARG_ARRAY):
8171 * m/ia64.h (NO_ARG_ARRAY):
8172 * m/hp800.h (NO_ARG_ARRAY):
8173 * m/arm.h (NO_ARG_ARRAY):
8174 * m/amdx86-64.h (NO_ARG_ARRAY):
8175 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
8176
adf4f59c
EZ
81772010-04-25 Eli Zaretskii <eliz@gnu.org>
8178
6bdf5d65
EZ
8179 * xdisp.c (display_line): Don't assume 2nd call to
8180 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
8181 (iterate_out_of_display_property): New function, body from pop_it.
8182 (pop_it): Use it.
adf4f59c 8183
dfbbda83
GM
81842010-04-24 Glenn Morris <rgm@gnu.org>
8185
8186 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
8187 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
8188 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
8189 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
8190
2d4018aa
EZ
81912010-04-24 Eli Zaretskii <eliz@gnu.org>
8192
a49884a6
EZ
8193 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
8194 use `get_next_display_element' and `set_iterator_to_next' to
8195 advance to the next character, when looking for the character that
8196 begins the next row.
8197
76db6fcc 8198 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
8199 definition of "struct Lisp_Symbol".
8200
70eab5c1
GM
82012010-04-24 Glenn Morris <rgm@gnu.org>
8202
8203 * Makefile.in (CRT_DIR): New variable, set by configure.
8204 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
8205 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
8206
1ad4cc3d
DN
82072010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
8208
e769f484
DN
8209 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
8210
4196ff33
DN
8211 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
8212
879b0ee4
DN
8213 Remove redundant flags.
8214 * s/freebsd.h (C_SWITCH_SYSTEM):
8215 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
8216 * s/netbsd.h (C_SWITCH_SYSTEM):
8217 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
8218 of these.
8219
03cbbcb8
DN
8220 Simplify m/intel386.h.
8221 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
8222 user: ecrt0.c.
8223 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
8224 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
8225 the only user: s/unixware.h.
8226 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
8227 from m/intel386.h.
bba3e508
SM
8228 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE):
8229 Definitions moved here from m/intel386.h.
03cbbcb8 8230
1ad4cc3d
DN
8231 * m/mips.h: Remove #if 0 code.
8232
8785b888
EZ
82332010-04-23 Eli Zaretskii <eliz@gnu.org>
8234
728588cc
EZ
8235 Fix display of composed characters from L2R scripts in bidi buffers.
8236 * xdisp.c (set_iterator_to_next, next_element_from_composition):
8237 After advancing IT past the composition, resync the bidi iterator
8238 with IT's position. (Bug#5977)
8239
a63f80b4
DN
82402010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
8241
8242 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
8243 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
8244
ff5dec5c
SM
82452010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
8246
8247 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
8248
8785b888
EZ
82492010-04-23 Eli Zaretskii <eliz@gnu.org>
8250
58ccf243 8251 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
8252 * xdisp.c (pop_it): When the stack is popped after displaying
8253 from a string, bidi-iterate to exit from the text portion covered
8254 by the `display' property or overlay. (Bug#5988, bug#5920)
8255
feeb1604
DN
82562010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
8257
8e324eb6
DN
8258 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
8259 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
8260
809fcaba
DN
8261 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
8262 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
8263
ed710380
DN
8264 Simplify STARTFILES definition.
8265 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
8266 relying on Makefile.in to define it.
8267 * s/cygwin.h (START_FILES): Likewise.
8268 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
8269
feeb1604
DN
8270 Clean up Solaris code.
8271 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
8272 (LIB_MOTIF): Remove, configure takes care of this.
8273 (NOT_USING_MOTIF): Remove, unused.
8274 * xrdb.c: Remove #if 0-ed #include.
8275 (SYSV): Remove conditional for old SysV.
8276 * sysdep.c (closedir): Remove conditional code for Solaris,
8277 Solaris has closedir.
8278
a0d0b563
JD
82792010-04-22 Jan Djärv <jan.h.d@swipnet.se>
8280
8281 * xsettings.c (read_and_apply_settings): Check if current_font is
8282 NULL before strcmp (Bug#6001).
8283
56bae7c7
DN
82842010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
8285
8286 Clean up HP-UX files.
8287 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
8288 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
8289 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
8290 * s/hpux10-20.h: ... to the only user, here.
8291
372b7a95
EZ
82922010-04-21 Eli Zaretskii <eliz@gnu.org>
8293
8294 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
8295 use buffer-local values of paragraph-start and paragraph-separate.
8296 <paragraph_start_re, paragraph_separate_re>: Rename from
8297 fallback_paragraph_start_re and fallback_paragraph_separate_re.
8298 (Bug#5992)
8299
f904c0f9
JD
83002010-04-21 Jan Djärv <jan.h.d@swipnet.se>
8301
8302 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
8303 current_tool_bar_style are new.
8304 (store_config_changed_event): Rename from store_font_changed_event.
8305 (XSETTINGS_TOOL_BAR_STYLE): New define.
8306 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
8307 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
8308 HAVE_XFT.
8309 (something_changedCB): store_font_changed_event is now
c4cc8b9a 8310 store_config_changed_event.
bba3e508
SM
8311 (parse_settings): Rename from parse_xft_settings.
8312 Read non-xft xsettings outside #ifdef HAVE_XFT.
ef1b0ba7 8313 (read_settings): Rename from read_xft_settings.
f904c0f9
JD
8314 (apply_xft_settings): Take current settings as parameter. Do not
8315 call read_(xft)_settings.
8316 (read_and_apply_settings): New function.
bba3e508
SM
8317 (xft_settings_event): Do non-xft stuff out of HAVE_XFT.
8318 Call read_and_apply_settings if there are settings to be read.
ef1b0ba7 8319 (init_xsettings): Rename from init_xfd_settings.
f904c0f9
JD
8320 Call read_and_apply_settings unconditionally.
8321 (xsettings_initialize): Call init_xsettings.
8322 (Ftool_bar_get_system_style): New function.
8323 (syms_of_xsettings): Define Qmonospace_font_name and
8324 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 8325 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 8326 dynamic-setting.
31a01b90 8327 Move misplaced HAVE_GCONF
f904c0f9
JD
8328
8329 * xsettings.h (Ftool_bar_get_system_style): Declare.
8330
8331 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
8332 Qtext, Qboth, Qboth_horiz are new.
8333 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
8334 Vtool_bar_style, tool_bar_max_label_size.
8335
8336 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
8337
8338 * keyboard.c: QClabel is new.
8339 (parse_tool_bar_item): Take out QClabel from tool bar items.
8340 Try to construct a label if ther is no QClabel.
8341 (syms_of_keyboard): Intern :label as QClabel.
8342
8343 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
8344 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
8345 New.
8346
8347 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
8348 dynamic-setting.el.
8349
8350 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
8351 (xg_make_tool_item, xg_show_toolbar_item): New function.
8352 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
8353 Call xg_make_tool_item to make a tool bar item.
8354 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
8355
8356 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
8357 into account for toolbars.
8358
c632dfda
JD
83592010-04-21 Jan Djärv <jan.h.d@swipnet.se>
8360
8361 * data.c (make_blv): Declarations before code (Bug#5993).
8362
10efe302
GM
83632010-04-21 Glenn Morris <rgm@gnu.org>
8364
8365 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
8366 Define using autoconf, not cpp.
8367 (LIBXSM): New variable, set by autoconf.
8368 (LIBXT): Use $LIBXSM.
8369
4285ac5a
DN
83702010-04-21 Dan Nicolaescu <local_user@dannlt>
8371
3ec759e7
DN
8372 Remove NOMULTIPLEJOBS, unused.
8373 * s/template.h (NOMULTIPLEJOBS):
8374 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
8375
4285ac5a
DN
8376 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
8377 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
8378 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
8379 detects -znocombreloc and passes it to the linker
8380 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
8381
2807228d
GM
83822010-04-21 Glenn Morris <rgm@gnu.org>
8383
8384 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
8385
574c05e2
KK
83862010-04-21 Karel Klíč <kklic@redhat.com>
8387
8388 * Makefile.in (LIBSELINUX_LIBS): New.
8389 (LIBES): Add $LIBSELINUX_LIBS.
8390 * eval.c, lisp.h (call7): New function.
8391 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
8392 (Ffile_selinux_context, Fset_file_selinux_context):
8393 New functions.
8394 (Fcopy_file): New parameter preserve-selinux-context.
8395 (Frename_file): Preserve selinux context when renaming by copy-file.
8396
91eac4bb 83972010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 8398 Eli Zaretskii <eliz@gnu.org>
91eac4bb 8399
50426a04
JB
8400 Don't depend on cm.c or termcap.c on Windows, use stubs.
8401 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
8402 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
8403 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
8404 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
8405 (sys_tputs, sys_tgetstr): New stubs.
8406 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
8407 (tputs, tgetstr): New; define to sys_*.
91eac4bb 8408
938efb77
JB
84092010-04-20 Juanma Barranquero <lekktu@gmail.com>
8410
8411 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
8412
b4bf28b7
SM
84132010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
8414
8b1e1112
SM
8415 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
8416 Just signal a warning rather than an error when inside a let.
8417 (Fmake_variable_frame_local): Add the same test.
8418
933ac235
SM
8419 * font.c (syms_of_font): Make the style table vars read-only.
8420
b4bf28b7
SM
8421 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
8422 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
8423
8424 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
8425
93d68d0c
EZ
84262010-04-20 Eli Zaretskii <eliz@gnu.org>
8427
8428 Fix R2L paragraph display on TTY.
8429
8430 * xdisp.c (unproduce_glyphs): New function.
8431 (display_line): Use it when produced glyphs are discarded from R2L
8432 glyph rows.
8433 (append_composite_glyph): In R2L rows, prepend the glyph rather
8434 than appending it.
8435
8436 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
8437 rather than append it. Set up the resolved_level and bidi_type
8438 attributes of the appended glyph.
283ccc18
EZ
8439 (produce_special_glyphs): Mirror the backslash continuation
8440 character in R2L lines.
93d68d0c 8441
283ccc18 8442 Implement display of R2L paragraphs in GUI sessions.
26cdf528 8443
283ccc18
EZ
8444 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
8445 append_stretch_glyph.
bba3e508
SM
8446 (set_cursor_from_row) <cursor_x>: Remove unused variable.
8447 Fix off-by-one error in computing x at end of text in the row.
283ccc18
EZ
8448 (append_stretch_glyph): In reversed row, prepend the glyph rather
8449 than append it. Set resolved_level and bidi_type of the glyph.
8450 (extend_face_to_end_of_line): If the row is reversed, prepend a
8451 stretch glyph whose width is such that the rightmost glyph will be
8452 drawn at the right margin of the window. Fix off-by-one error on
bba3e508
SM
8453 TTY frames in testing whether a line needs face extension.
8454 Fix face extension at ZV. If this is the last glyph row, use
283ccc18
EZ
8455 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
8456 region face.
bba3e508
SM
8457 (set_cursor_from_row, display_line):
8458 Use MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
26cdf528 8459 row->continuation_lines_width.
283ccc18
EZ
8460 (next_element_from_buffer): Don't call bidi_paragraph_init if we
8461 are at ZV. Fixes a crash when reseated to ZV by
8462 try_window_reusing_current_matrix.
45903529
EZ
8463 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
8464 which happens with R2L glyph rows. Fixes a crash when inserting a
8465 character at end of an R2L line.
283ccc18
EZ
8466 (set_cursor_from_row): Don't be fooled by truncated rows: don't
8467 treat them as having zero-width characters. Improve comments.
8468 Don't reverse pos_before and pos_after for reversed glyph rows.
8469 Set cursor.x to negative value when the cursor might be on the
8470 left fringe.
8471 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
8472 left fringe, not the right one.
f951a506
EZ
8473 (notice_overwritten_cursor, draw_phys_cursor_glyph)
8474 (erase_phys_cursor): For reversed cursor_row, support cursor on
8475 the left fringe.
8476
283ccc18
EZ
8477 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
8478 of continuation indicators on the fringes.
8479 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
8480 left fringe.
8481
f951a506
EZ
8482 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
8483 draw cursor on the left fringe.
8484
8485 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
8486 cursor on the left fringe.
8487
f951a506
EZ
8488 * dispnew.c (update_text_area): Handle reversed desired rows when
8489 the cursor is on the left fringe.
8490 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
8491 below, not by 0, for when the cursor is on the left fringe.
8492
3bb49aaf
JD
84932010-04-20 Jan Djärv <jan.h.d@swipnet.se>
8494
8495 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
8496 widget is a scrollbar.
8497
c0be27fd
KH
84982010-04-20 Kenichi Handa <handa@m17n.org>
8499
8500 * charset.c (char_charset): Consider Vcharset_non_preferred_head
8501 only when the arg CHARSET_LIST is nil.
8502
ce5b453a
SM
85032010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
8504
8505 Make variable forwarding explicit rather the using special values.
8506 Basically, this makes the structure of buffer-local values and object
8507 forwarding explicit in the type of Lisp_Symbols rather than use
8508 special Lisp_Objects for that. This tends to lead to slightly more
8509 verbose code, but is more C-like, simpler, and makes it easier to make
8510 sure we handled all cases, among other things by letting the compiler
8511 help us check it.
8512 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
8513 Removing forwarding objects.
8514 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
8515 (struct Lisp_Symbol): Make the various forms of variable-forwarding
8516 explicit rather than hiding them inside Lisp_Object "values".
8517 (XFWDTYPE): New macro.
8518 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
8519 (XBUFFER_LOCAL_VALUE): Remove.
8520 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
8521 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
8522 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
8523 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
8524 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
8525 Remove the Lisp_Misc_* header.
8526 (struct Lisp_Buffer_Local_Value): Redefine.
8527 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
8528 (struct Lisp_Misc_Any): Add filler to get the right size.
8529 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
8530 Lisp_Intfwd.
8531 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
8532 (DEFVAR_KBOARD): Allocate a forwarding object.
8533 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
8534 (let_shadows_global_binding_p): New function.
8535 (union Lisp_Val_Fwd): New type.
8536 (make_blv): New function.
8537 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
8538 (store_symval_forwarding, swap_in_global_binding, Fboundp)
8539 (swap_in_symval_forwarding, find_symbol_value, Fset)
8540 (let_shadows_buffer_binding_p, set_internal, default_value)
8541 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
8542 (Fkill_local_variable, Fmake_variable_frame_local)
8543 (Flocal_variable_p, Flocal_variable_if_set_p)
8544 (Fvariable_binding_locus):
8545 * xdisp.c (select_frame_for_redisplay):
8546 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
8547 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
8548 * frame.c (store_frame_param):
8549 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
8550 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
8551 value structure.
8552 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
8553 (clone_per_buffer_values): Only adjust markers into the current buffer.
8554 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
8555 (Fbuffer_local_value, set_buffer_internal_1)
8556 (swap_out_buffer_local_variables):
8557 Adapt to the new symbol value structure.
8558 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
8559 (defvar_per_buffer): Take a new arg for the fwd object.
8560 (buffer_lisp_local_variables): Return a proper alist (different fix
8561 for bug#4138).
8562 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
8563 (Fgarbage_collect): Don't handle buffer_defaults specially.
8564 (mark_object): Handle new symbol value structure rather than the old
8565 special Lisp_Misc_* objects.
8566 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
8567 * term.c (set_tty_color_mode):
8568 * bidi.c (bidi_initialize): Don't access the ->value field directly.
8569 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
8570 a buffer_local_flags.
8571 * print.c (print_object): Get rid of impossible forwarding objects.
8572
fd3998ff
EZ
85732010-04-19 Eli Zaretskii <eliz@gnu.org>
8574
8575 * bidi.c (bidi_get_type, bidi_get_category)
8576 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
8577 (bidi_type_of_next_char, bidi_level_of_next_char):
8578 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 8579
e42cd1a7
JB
85802010-04-19 Juanma Barranquero <lekktu@gmail.com>
8581
8582 * dired.c (Ffile_attributes): Fix typo in docstring.
8583
6e104790 85842010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
8585
8586 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
8587 NSInteger (Bug#5811).
8588
6e104790 85892010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
8590
8591 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
8592 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
8593
6e104790 85942010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
8595
8596 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
8597
6e104790
SM
85982010-04-19 Chong Yidong <cyd@stupidchicken.com>
8599
8600 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
8601 terminal frames (Bug#5837).
8602
37dcfea0
EZ
86032010-04-19 Eli Zaretskii <eliz@gnu.org>
8604
d1da276f
EZ
8605 * .gdbinit (xsubchartable): New command.
8606
37dcfea0
EZ
86072010-04-19 Eli Zaretskii <eliz@gnu.org>
8608
8609 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 8610 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
8611 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
8612 and
8613 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
8614
e9515805
SM
86152010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
8616
8617 * alloc.c (Fpurecopy): Hash-cons if requested.
8618 (syms_of_alloc): Update purify-flag docstring.
8619
22aa44a8
JD
86202010-04-18 Jan Djärv <jan.h.d@swipnet.se>
8621
8622 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
8623 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
8624
ebb5722e
EZ
86252010-04-17 Eli Zaretskii <eliz@gnu.org>
8626
8627 Fix a crash when an NSM character is inserted at BEGV.
8628
8629 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
8630 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
8631 NEUTRAL_B or UNKNOWN_BT.
8632
0f4442ef
EZ
86332010-04-16 Eli Zaretskii <eliz@gnu.org>
8634
8635 * xdisp.c (set_cursor_from_row): Don't consider possibility of
8636 other rows with cursor unless they are different from this row and
8637 this row is part of a continued line. (Bug#5943)
8638
7d4e45f8
DN
86392010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
8640
8641 * s/freebsd.h: Restore osreldate.h include.
8642 Suggested by Naohiro Aota.
8643
5ba5ec85
J
86442010-04-16 Jan Djärv <jan.h.d@swipnet.se>
8645
8646 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
8647
20af301d
CY
86482010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
8649
8650 * s/cygwin.h: Avoid linking against static libgcc.
8651
a4b000fb
JL
86522010-04-15 Juri Linkov <juri@jurta.org>
8653
8654 * window.c: Add Qscroll_command.
8655 Remove Vscroll_preserve_screen_position_commands.
8656 (window_scroll_pixel_based, window_scroll_line_based): Check the
8657 `scroll-command' property on the last command instead of searching
8658 the last command in Vscroll_preserve_screen_position_commands.
8659 (syms_of_window): Initialize and staticpro `Qscroll_command'.
8660 Put Qscroll_command property on Qscroll_up and Qscroll_down.
8661 (scroll-preserve-screen-position): Doc fix.
8662 (Vscroll_preserve_screen_position_commands): Remove variable.
8663
bc319ba4
DN
86642010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
8665
6bb24457
DN
8666 * xdisp.c (message): Do not use NO_ARG_ARRAY.
8667
19d4c244
DN
86682010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
8669
8670 Reduce cpp use in Makefile.in.
8671 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
8672 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
8673 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
8674 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
8675 (CRT0_COMPILE): Remove, inline it in the only user.
8676
32129746
JL
86772010-04-14 Juri Linkov <juri@jurta.org>
8678
8679 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
8680 `scroll-up-command' and `M-v' from `scroll-down' to
8681 `scroll-down-command'.
8682
9013a7f8
JL
86832010-04-14 Juri Linkov <juri@jurta.org>
8684
8685 * window.c (Vscroll_preserve_screen_position_commands): New variable
8686 with the default value as the list of Qscroll_down and Qscroll_up.
8687 (window_scroll_pixel_based, window_scroll_line_based): Search the
8688 last command in the list Vscroll_preserve_screen_position_commands
8689 instead of comparing with Qscroll_up and Qscroll_down.
8690
4bef8d26
JD
86912010-04-13 Jan Djärv <jan.h.d@swipnet.se>
8692
92848133
JD
8693 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
8694 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
8695 does that.
8696
4bef8d26
JD
8697 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
8698 to zero.
8699
58b963f7
SM
87002010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
8701
84164a0d
SM
8702 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
8703
2b0a91e7
SM
8704 Try to solve the problem of spurious EOF chars in long lines of text
8705 sent to interactive subprocesses.
8706 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
8707 (system_process_attributes): Remove unused var `ttotal'.
8708 * process.c (send_process): Don't bother breaking long line with EOF
8709 chars when talking to ttys any more.
8710 (wait_reading_process_output): Output a warning when called in such
8711 a way that it could block without being interruptible.
8712
58b963f7
SM
8713 Try to detect file modification within the same second.
8714 * buffer.h (struct buffer): New field modtime_size.
8715 * buffer.c (reset_buffer): Initialize it.
8716 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
8717 (Fverify_visited_file_modtime): Check it.
8718 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
8719 (Fset_visited_file_modtime): Set (or clear) it.
8720
01f5787b
SM
87212010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
8722
8723 * process.c (status_notify): Remove unused var `ro'.
8724
83725342
JD
87252010-04-12 Jan Djärv <jan.h.d@swipnet.se>
8726
8727 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
8728 more than one visual (Bug#5938).
8729
b9465836
DN
87302010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
8731
50426a04
JB
8732 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
8733 Undefine.
b9465836 8734
8d9c8ece
DN
87352010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
8736
b1f52161
DN
8737 Remove C_SWITCH_SYSTEM_TEMACS.
8738 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
8739 (malloc, realloc, free): Use emacs, not temacs for conditional
8740 definition.
8741
8742 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
8743 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
8744
8d9c8ece
DN
8745 Use autoconf, not cpp for some variables.
8746 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
8747 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
8748 (ALL_CFLAGS): Use them as make variables.
8749 (really-lwlib, really-oldXMenu): Do not pass them.
8750
1ecb2d3f
JD
87512010-04-11 Jan Djärv <jan.h.d@swipnet.se>
8752
8753 * xmenu.c (apply_systemfont_to_dialog): New.
8754 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
8755
3a4fa2f2
SM
87562010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
8757
97e53006
SM
8758 * process.c (exec_sentinel): Preserve current-buffer.
8759
3a4fa2f2
SM
8760 * process.c (read_process_output): Move the save-current-buffer to
8761 apply to both the filter and the non-filter branches.
8762
88df7221
DN
87632010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
8764
8765 * s/msdos.h (UNEXEC): New definition.
8766
5634ff85
YM
87672010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8768
6eff5c3d
YM
8769 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
8770 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
8771
8772 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
8773 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
8774 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
8775 TRY_WINDOW_CHECK_MARGINS.
8776
8777 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
8778 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
8779 width only when it is for padding.
5634ff85 8780
b13aef54
J
87812010-04-09 Jan Djärv <jan.h.d@swipnet.se>
8782
8783 * xfns.c (Fx_show_tip): Call try_window in a loop until
8784 fonts_changed_p is zero (Bug#2423).
8785
21d28484
EZ
87862010-04-08 Eli Zaretskii <eliz@gnu.org>
8787
8788 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
8789 the end of TEXT_AREA. (Bug#5856)
8790
0269ef77
JD
87912010-04-08 Jan Djärv <jan.h.d@swipnet.se>
8792
8793 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
8794 HAVE_GCONF.
8795
5930fe97
EZ
87962010-04-08 Eli Zaretskii <eliz@gnu.org>
8797
8798 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
8799 prev.orig_type, for resolving type of NSM. (Bug#5858)
8800
99852628
JD
88012010-04-08 Jan Djärv <jan.h.d@swipnet.se>
8802
8803 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
8804 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
8805 in current_font.
8806 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
8807 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
8808 New functions.
8809 (syms_of_xsettings): Initialize current_font.
8810 defsubr Sfont_get_system_normal_font.
99852628 8811
686b968e
JB
8812 * xsettings.h (Ffont_get_system_normal_font)
8813 (xsettings_get_system_normal_font): Declare.
99852628
JD
8814
8815 * xfns.c (extern xlwmenu_default_font): Remove.
8816 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
8817 to xlwmenu.c.
8818
8819 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
8820 menu items in UTF-8.
8821
8822 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
8823 (apply_systemfont_to_menu): New function.
bba3e508
SM
8824 (set_frame_menubar, create_and_show_popup_menu):
8825 Call apply_systemfont_to_menu.
99852628 8826
7fc874c4
J
88272010-04-07 Jan Djärv <jan.h.d@swipnet.se>
8828
8829 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
8830 FRAME_LINE_TO_PIXEL_Y.
8831
8832 * xterm.c (x_set_window_size_1): Don't add border_width/height to
8833 pixelwidth/height.
8834
863bf481
DN
88352010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
8836
5e5a3b92
DN
8837 Simplify code for HP machines.
8838 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
8839 for GNU_LINUX, not needed.
8840 (UNEXEC, NEED_BSDTTY): Move definitions...
8841 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
8842
863bf481
DN
8843 * m/iris4d.h (UNEXEC): Move definition ...
8844 * s/irix6-5.h (UNEXEC): ... here.
8845
3e6bec3b
JD
88462010-04-04 Jan Djärv <jan.h.d@swipnet.se>
8847
8848 * xfns.c (set_machine_and_pid_properties): New function.
8849 (Fx_create_frame): Call set_machine_and_pid_properties.
8850
2912322b
SM
88512010-04-03 Eli Zaretskii <eliz@gnu.org>
8852
bba3e508
SM
8853 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char):
8854 Check bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
1502b819
EZ
8855 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
8856
2912322b
SM
8857 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
8858 in this function. (Bug#5703)
8859
88602010-04-03 Chong Yidong <cyd@stupidchicken.com>
8861
8862 * nsterm.h: Fix last change.
8863
c435b432
DN
88642010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
8865
a568f507
DN
8866 * m/intel386.h (NO_REMAP): Move definition ...
8867 * s/msdos.h (NO_REMAP): ... here.
8868
4cd9f6c2
DN
8869 * m/vax.h (CRT0_DUMMIES): Remove, unused.
8870
c435b432
DN
8871 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
8872 used on those platforms.
8873
42a2c622
DN
88742010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
8875
8876 Remove extern errno declarations.
8877 * xterm.c:
8878 * xrdb.c:
8879 * w32term.c:
8880 * unexec.c:
8881 * unexaix.c:
8882 * sysdep.c:
8883 * process.c:
8884 * lread.c:
8885 * keyboard.c:
8886 * floatfns.c:
8887 * filelock.c:
8888 * fileio.c:
8889 * emacs.c (main):
8890 * ecrt0.c:
8891 * dispnew.c:
8892 * callproc.c:
8893 * buffer.c: Remove errno extern declarations.
8894 * s/netbsd.h (NEED_ERRNO): Remove.
8895
8224f93d
DN
88962010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
8897
8898 Remove all uses of LIBX11_SYSTEM.
8899 * Makefile.in (LIBX11_SYSTEM): Remove.
8900 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
8901 instead.
8902
814062c7
EZ
89032010-04-01 Eli Zaretskii <eliz@gnu.org>
8904
ed68db4d
EZ
8905 Remove support for DJGPP v1.x (bug#5813).
8906
8907 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
8908 * s/msdos.h:
8909 * unexec.c (make_hdr, copy_text_and_data):
8910 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 8911 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
8912 (IT_set_terminal_modes, __write, _rename, gethostname)
8913 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
8914 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
8915 the value of __DJGPP__.
ed68db4d
EZ
8916 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
8917 compatibility code.
8224f93d
DN
8918 * lread.c:
8919 * gmalloc.c (memalign):
8920 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
8921 * emacs.c (main):
8922 * dosfns.c (init_dosfns):
ed68db4d
EZ
8923 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
8924
52f4d8d5
EZ
89252010-04-01 Eli Zaretskii <eliz@gnu.org>
8926
814062c7
EZ
8927 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
8928 string with `cursor' property comes from an `after-string'
8929 overlay. (Bug#5816)
8930
0dc2e11d
GM
89312010-04-01 Glenn Morris <rgm@gnu.org>
8932
8933 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
8934 Define as Makefile variables.
8935 (LIBX): Use above variables rather than directly using autoconf.
8936
1d29df59
DN
89372010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
8938
8939 Clean up BSD_SYSTEM use.
8940 * xterm.c:
8941 * process.c:
8942 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
8943 for including <sys/ioctl.h>.
8944 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
8945 code is only used for MSDOS.
8946
1546c559
JL
89472010-03-31 Juri Linkov <juri@jurta.org>
8948
8949 * image.c: Add `Qextension_data'.
8950 (syms_of_image): Initialize and staticpro `Qextension_data'.
8951 (Fimage_metadata): Rename from `Fimage_extension_data'.
8952 (gif_load): Put GIF extension data to the property
8953 `Qextension_data'.
8954
6521c534
CY
89552010-03-31 Chong Yidong <cyd@stupidchicken.com>
8956
8957 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
8958 * nsterm.h: Fix prototype.
8959
52c30783
EZ
89602010-03-31 Eli Zaretskii <eliz@gnu.org>
8961
8962 * xdisp.c (highlight_trailing_whitespace): Support highlight of
8963 trailing whitespace in right-to-left rows.
8964
855a0da7
SM
89652010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
8966
8967 Get rid of the direct_output optimizations.
8968 * keyboard.c (nonundocount): Remove extern declaration.
8969 (command_loop_1): Remove brittle optimisation for cheap and
8970 common operations.
8971 * xdisp.c (redisplay_internal): Don't bother checking
8972 redisplay_performed_directly_p any more.
8973 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
8974 any more.
8975 * dispnew.c (redisplay_performed_directly_p)
8976 (direct_output_for_insert, direct_output_forward_char):
8977 * dispextern.h (redisplay_performed_directly_p)
8978 (direct_output_for_insert, direct_output_forward_char): Remove.
8979 * cmds.c (nonundocount): Make it static.
8980
85738751 89812010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
8982
8983 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
8984
85738751 89852010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
8986
8987 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
8988 invisible (Bug#5766).
8989
85738751 89902010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 8991
855a0da7
SM
8992 * xdisp.c (x_consider_frame_title, update_window_cursor):
8993 Remove HAVE_NS conditionals.
194d44e7 8994 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
8995
8996 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
8997 filename for the title.
8998 (ns_set_doc_edited): Do nothing if the selected window is a
8999 minibuffer window.
9000
9001 * nsterm.h: Add prototypes for ns_set_name_as_filename and
9002 ns_set_doc_edited.
9003
9004 * nsterm.m: Remove unneeded prototype.
9005
85738751 90062010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
9007
9008 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
9009 in the DOC file. (Bug#5336)
9010
85738751 90112010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
9012
9013 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
9014
75d1428c
SM
90152010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
9016
9017 * window.c (keys_of_window): Remove redundant/overridden bindings.
9018
82043cfb
EZ
90192010-03-30 Eli Zaretskii <eliz@gnu.org>
9020
9021 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
9022 Restore original behavior when the iterator is not bidi_p.
9023
b5dd0ae7
DN
90242010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
9025
9026 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
9027
bd924a5d
EZ
90282010-03-30 Eli Zaretskii <eliz@gnu.org>
9029
9030 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
9031 are outside the range of cached character positions.
9032
3580374b
JB
90332010-03-30 Juanma Barranquero <lekktu@gmail.com>
9034
9035 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
9036
a7b02820
EZ
90372010-03-30 Eli Zaretskii <eliz@gnu.org>
9038
9039 Initial support for bidirectional editing.
9040
9041 * Makefile.in (obj): Include bidi.o.
9042 (bidi.o): New target.
9043
9044 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
9045 ($(BLD)/bidi.$(O)): New target.
9046
9047 * bidi.c: New file.
9048
9049 * buffer.h (struct buffer): New members bidi_display_reordering
9050 and bidi_paragraph_direction.
9051
9052 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
9053 and bidi_paragraph_direction.
9054 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
9055 and bidi-paragraph-direction.
9056 (Fbuffer_swap_text): Swap the values of
9057 bidi_display_reordering and bidi_paragraph_direction.
9058
9059 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
9060 (bidi_type_t, bidi_dir_t): New types.
9061 (bidi_saved_info, bidi_stack, bidi_it): New structures.
9062 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
9063 prev_stop, base_level_stop, and eol_pos.
9064 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
9065 (IT_STACK_SIZE): Enlarge to 5.
9066 (struct glyph_row): New member reversed_p.
9067 <string_buffer_position>: Update prototype.
9068 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
9069 glyph_row if bidi_it.paragraph_dir == R2L.
9070 (struct glyph): New members resolved_level and bidi_type.
9071
9072 * dispnew.c (direct_output_forward_char): Give up if we need bidi
9073 processing or buffer's direction is right-to-left.
9074 (prepare_desired_row): Preserve the reversed_p flag.
9075 (row_equal_p): Compare the reversed_p attributes as well.
9076
bba3e508
SM
9077 * xdisp.c (init_iterator): Initialize it->bidi_p.
9078 Call bidi_init_it and set it->paragraph_embedding from the current
a7b02820
EZ
9079 buffer's value of bidi_paragraph_direction.
9080 (reseat_1): Initialize bidi_it.first_elt.
9081 (set_iterator_to_next, next_element_from_buffer): Use the value of
9082 paragraph_embedding to determine the paragraph direction.
9083 (set_iterator_to_next): Under bidi reordering, call
9084 bidi_get_next_char_visually. Call bidi_paragraph_init if the
9085 new_paragraph flag is set in the bidi iterator.
9086 (next_element_from_buffer): If bidi_it.first_elt is set,
9087 initialize paragraph direction and find the first character to
9088 display in the visual order. If reseated to a middle of a line,
bba3e508
SM
9089 prime the bidi iterator starting at the line's beginning.
9090 Handle the situation where we overstepped stop_charpos due to
a7b02820
EZ
9091 non-linearity of the bidi iteration. Likewise for when we back up
9092 beyond the previous stop_charpos. When moving across stop_charpos,
9093 record it in prev_stop.
9094 (display_line): Set row->end and it->start for the next row to the
9095 next character in logical order. Always extend reversed_p rows to
9096 the end of line, even if they end at ZV. Copy the reversed_p flag
9097 to the next glyph row. Keep calling set_cursor_from_row for
9098 bidi-reordered rows even if we already have a possible candidate
9099 for cursor position. Set row_end after all the row's glyphs have
9100 been produced, by looping over the glyphs. Record the position
9101 after EOL in it->eol_pos, and use it to set end_pos of the last
9102 row produced for a continued line.
9103 <Qright_to_left, Qleft_to_right>: New variables.
9104 (syms_of_xdisp): Initialize and staticpro them.
9105 (string_buffer_position_lim): New function.
9106 (string_buffer_position): Most of code moved to
9107 string_buffer_position_lim. Last argument and return value are
9108 now EMACS_INT; all callers changed.
9109 (set_cursor_from_row): Rewritten to support bidirectional text and
9110 reversed glyph rows.
bba3e508
SM
9111 (text_outside_line_unchanged_p, try_window_id):
9112 Disable optimizations if we are reordering bidirectional text and the
a7b02820
EZ
9113 paragraph direction can be affected by the change.
9114 (append_glyph, append_composite_glyph)
9115 (produce_image_glyph, append_stretch_glyph): Set the
9116 resolved_level and bidi_type members of each glyph.
9117 (append_glyph): If the glyph row is reversed, prepend the glyph
9118 rather than appending it.
9119 (handle_stop_backwards): New function.
9120 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
9121 (reseat): call handle_stop_backwards to recompute prev_stop and
9122 base_level_stop for the new position.
9123 (handle_invisible_prop): Under bidi iteration, skip invisible text
9124 using bidi_get_next_char_visually. If we are `reseat'ed, init the
9125 paragraph direction. Update IT->prev_stop after skipping
9126 invisible text.
9127 (move_it_in_display_line_to): New variables prev_method
9128 and prev_pos. Compare for strict equality in
9129 BUFFER_POS_REACHED_P.
9130 (try_cursor_movement): Examine all the candidate rows that occlude
9131 point, to return the best match. If rows are bidi-reordered
9132 and point moved backwards, back up to the row that is not a
9133 continuation line, and start looking for a suitable row from
9134 there.
9135
9136 * term.c (append_glyph): Reverse glyphs by pre-pending them,
9137 rather than appending, if the glyph_row's reversed_p flag is set.
9138 Set the resolved_level and bidi_type members of each glyph.
9139
9140 * .gdbinit (pbiditype): New command.
9141 (pgx): Use it to display bidi level and type of the glyph.
9142 (pitx): Display some bidi information about the iterator.
9143 (prowlims, pmtxrows): New commands.
9144
32a8894e
DN
91452010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
9146
9147 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
9148 * s/usg5-4.h (LIBS_DEBUG):
9149 * s/irix6-5.h (C_DEBUG_SWITCH):
9150 * s/gnu-linux.h (LIBS_DEBUG):
9151 * s/darwin.h (LIBS_DEBUG):
9152 * s/bsd-common.h (LIBS_DEBUG):
9153 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
9154 * m/iris4d.h (LIBS_DEBUG):
9155 * m/hp800.h (LIBS_DEBUG): Remove definitions.
9156
9157 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
9158 (LIBS_DEBUG): Remove definition.
9159
649dbf36
CY
91602010-03-27 Chong Yidong <cyd@stupidchicken.com>
9161
9162 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
9163 Windows.
9164
cad4261f
YM
91652010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9166
9167 * process.c (Fmake_network_process): Don't call turn_on_atimers around
9168 `connect' (Bug#5723).
9169
cd591dbc
HE
91702010-03-25 Helmut Eller <eller.helmut@gmail.com>
9171
9172 * process.c (Fmake_network_process): Call `select' for interrupted
9173 `connect' rather than creating new socket (Bug#5173).
9174
e867cb5d 91752010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
9176
9177 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
9178
9179 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
9180
9181 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
9182
e867cb5d 91832010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
9184
9185 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
9186 XLoadQueryFont.
9187
e867cb5d 91882010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
9189
9190 * coding.c (decode_coding_ccl): Fix previous change for the
9191 multibyte case.
fb608df3
KH
9192 (encode_coding_ccl): Don't setup ccl program here. Fix for the
9193 case that the output buffer is fullfilled.
9194 (encode_coding): Setup ccl program here.
fbdc1721 9195
5845f0ed
DN
91962010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
9197
814fb708
DN
9198 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
9199
5845f0ed
DN
9200 Simplify LIBS_MACHINE definitions.
9201 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
9202 * m/iris4d.h (LIBS_MACHINE): Likewise.
9203 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
9204 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 9205 * s/netbsd.h: Remove commented out code.
5845f0ed 9206
b7064064
DN
92072010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
9208
df7734b2
DN
9209 Remove dead code dealing with POSIX_SIGNALS.
9210 * atimer.c (set_alarm): Remove dead code, all USG systems define
9211 POSIX_SIGNALS.
9212 * data.c (arith_error): Likewise.
9213 * keyboard.c (input_available_signal, handle_user_signal)
9214 (interrupt_signal): Likewise.
9215 * process.c (sigchld_handler): Likewise.
9216 (create_process): Remove if 0 code. Remove HPUX conditional when
9217 !defined (POSIX_SIGNALS), it cannot be true.
9218 * syssignal.h: Remove USG5_4 and USG conditionals when
9219 !POSIX_SIGNALS, they cannot be true.
9220
b7064064
DN
9221 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
9222 NO_SOCK_SIGIO, not used anymore.
9223
55da5ee3
DN
92242010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
9225
0be96e3a
DN
9226 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
9227 support vax on BSDs.
9228
55da5ee3
DN
9229 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
9230 * s/aix4-2.h (ORDINARY_LINK): ... here.
9231
c0282183
AS
92322010-03-21 Andreas Schwab <schwab@linux-m68k.org>
9233
82c3d67a
AS
9234 * Makefile.in (abs_builddir): Define.
9235 (bootstrap_exe): Use it.
9236 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 9237
3613edce
SM
92382010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
9239
9240 * Makefile.in (bootstrap_exe): Use an absolute name.
9241
7f110ddc
DN
92422010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
9243
22e87574
DN
9244 Remove support for old GNU/Linux using libc version 5.
9245 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
9246 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
9247
05a670e6
DN
9248 Consolidate redundant definitions in s/bsd-common.h.
9249 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
9250 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
9251 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
9252 doing it in all files that include this one.
9253 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
9254 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
9255 (LDAV_SYMBOL, KERNEL_FILE): Remove.
9256 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
9257 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
9258 (LDAV_SYMBOL, KERNEL_FILE): Remove.
9259 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
9260 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
9261 (LDAV_SYMBOL, KERNEL_FILE): Remove.
9262
2968f561
DN
9263 Consolidate redundant definitions.
9264 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
9265 it's undefined in all files that include this one.
9266 (POSIX_SIGNALS): Define here instead of doing it in all files that
9267 include this one.
9268 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
9269 (POSIX_SIGNALS): Do not define.
9270 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
9271 (POSIX_SIGNALS): Do not define.
9272 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
9273 (POSIX_SIGNALS): Do not define.
9274
15d25dc0
DN
9275 Remove support for old UNIX System V systems.
9276 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
9277 * s/usg-5-4-2.h: Remove.
9278
07e339e4
DN
9279 Remove support for Solaris on PPC and for old versions.
9280 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
9281 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
9282 that cancel each other.
9283 * s/sol2-3.h:
9284 * s/sol2-4.h:
9285 * s/sol2-5.h: Remove.
9286 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
9287 (NO_REMAP): Remove, unused.
9288 (UNEXEC): Move definition ...
9289 * s/aix4-2.h (UNEXEC): ... here.
9290
7f110ddc
DN
9291 * s/openbsd.h: Remove support for non-ELF and for systems that do
9292 not support shared libraries.
9293 * s/netbsd.h:
9294 * s/freebsd.h: Likewise.
9295
605f35cd
DN
92962010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
9297
9298 Remove non-working support for lynxos 3.0.
9299 * s/lynxos.h: Remove file.
9300
9301 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
9302 COFF_BSD_SYMBOLS, nothing defines it anymore.
9303
aed71cf4
DN
93042010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
9305
9306 Remove obsolete uses of HAVE_SHM.
9307 * emacs.c (standard_args):
9308 (Fdump_emacs):
9309 (syms_of_emacs): Remove code depending on HAVE_SHM.
9310
9311 * alloc.c: Remove HAVE_SHM dependent definition.
9312
9313 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
9314
aded53ff
GM
93152010-03-18 Glenn Morris <rgm@gnu.org>
9316
17284745
GM
9317 * emacs.c (USAGE4): Hard-code bug address.
9318 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
9319 (bug_reporting_address): Remove.
9320 (main): Don't call bug_reporting_address.
9321
aded53ff
GM
9322 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
9323 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
9324
303500aa
CY
93252010-03-15 Chong Yidong <cyd@stupidchicken.com>
9326
9327 * xfns.c (Fx_create_frame):
9328 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
9329 on left.
9330
cef3058f
CY
93312010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
9332
9333 * editfns.c (Fformat): Account for string precision when computing
9334 field width (Bug#5710).
9335
a647d59d
CY
93362010-03-12 Chong Yidong <cyd@stupidchicken.com>
9337
4fa42018
CY
9338 * xfns.c (Fx_create_frame): Set default to Qright.
9339
a647d59d
CY
9340 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
9341 all window systems.
9342
6da23aaa
EZ
93432010-03-12 Eli Zaretskii <eliz@gnu.org>
9344
a96f6398 9345 These changes remove termcap.c from the build on Posix platforms.
83d02def 9346 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
9347 (MSDOS_OBJ): ...to here.
9348 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
9349 now identical to when LIBS_TERMCAP is defined.
9350
9351 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
9352
9353 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
9354
a96f6398 9355 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 9356
288f9fc0
CY
93572010-03-10 Chong Yidong <cyd@stupidchicken.com>
9358
9359 * Branch for 23.2.
9360
d48cd3f4
SM
93612010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
9362
9363 Cleanup setup of gl_state in various parts of the code.
9364 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
9365 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
9366 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
9367 (skip_chars):
9368 * regex.c (regex_compile): Use it.
9369 (re_compile_pattern): Don't set gl_state.current_syntax_table since
9370 it's now set in regex_compile when/if we need it.
9371
618db430
SM
93722010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
9373
c0335e02
SM
9374 Make it possible to C-g in a tight bytecode loop again (bug#5680).
9375 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
9376 (QUIT): Use it to consolidate code and remove redundancy.
9377 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
9378
254c06a8
SM
9379 * regex.c (regex_compile): Setup gl_state as well.
9380
618db430
SM
9381 * syntax.c (skip_chars): Setup gl_state (bug#3823).
9382 (in_classes): Use CONSP before XCAR/XCDR.
9383
233f0c9f
CY
93842010-03-03 Chong Yidong <cyd@stupidchicken.com>
9385
9386 * keymap.c (Fwhere_is_internal): Use Fequal to compare
9387 definitions, so that keyboard macros are correctly handled
9388 (Bug#5481).
9389
75f80e63
EZ
93902010-03-02 Eli Zaretskii <eliz@gnu.org>
9391
9392 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
9393 text that could be relocated inside the call to emacs_mule_char.
9394 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
9395 (CODING_DECODE_CHAR): Add a comment describing its purpose.
9396
dcfb9bc4
KH
93972010-03-02 Kenichi Handa <handa@m17n.org>
9398
fc9a17bc
KH
9399 * character.c (parse_str_as_multibyte): Fix handling of the
9400 multibyte form of raw-bytes.
9401 (str_as_multibyte): Likewise.
9402
dcfb9bc4
KH
9403 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
9404 form of raw-bytes.
9405
412c01b6
CY
94062010-02-28 Chong Yidong <cyd@stupidchicken.com>
9407
9408 * charset.c (load_charset_map_from_file)
9409 (load_charset_map_from_vector): Zero out allocated
9410 charset_map_entries before using them.
9411
df7e1ea0
AS
94122010-02-27 Andreas Schwab <schwab@linux-m68k.org>
9413
9414 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
9415
fe69a722
CY
94162010-02-27 Chong Yidong <cyd@stupidchicken.com>
9417
4ed28cf4
CY
9418 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
9419 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 9420
7379cfce
KH
94212010-02-26 Kenichi Handa <handa@m17n.org>
9422
f88cc4d6
KH
9423 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
9424
7379cfce
KH
9425 * xdisp.c (reseat_to_string): Fix previous change.
9426
cf2fdcfb
CY
94272010-02-26 David Reitter <david.reitter@gmail.com>
9428
9429 * nsfont.m (nsfont_draw): ns_antialias_text should be a
9430 Lisp_Object (Bug#4736).
9431
cc6c7c75
KH
94322010-02-25 Kenichi Handa <handa@m17n.org>
9433
9434 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
9435
32e737d7
JD
94362010-02-24 Jan Djärv <jan.h.d@swipnet.se>
9437
9438 * xterm.c (XTflash): Move declarations before statements.
9439
9440 * gtkutil.c (xg_get_gdk_display): Remove (unused).
9441 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
9442 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
9443 (xg_create_tool_bar): Remove unused variables.
9444 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 9445 (xg_create_frame_widgets): Remove variable grav.
32e737d7 9446
676cae9f
CY
94472010-02-21 Chong Yidong <cyd@stupidchicken.com>
9448
9449 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
9450
886cc2b8
SM
94512010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
9452
9453 * term.c (fatal): Add a final \n if needed (bug#5596).
9454
ddb2d8e2
CY
94552010-02-18 Chong Yidong <cyd@stupidchicken.com>
9456
9457 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
9458
2a4f8d3d
GM
94592010-02-18 Glenn Morris <rgm@gnu.org>
9460
9461 * callint.c (Finteractive): Doc fix.
9462
ebaf11b6
KH
94632010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
9464
886cc2b8
SM
9465 * coding.c (record_conversion_result):
9466 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
9467 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
9468 memory allocation error.
9469
d0396581
KH
94702010-02-17 Kenichi Handa <handa@m17n.org>
9471
886cc2b8
SM
9472 * coding.c (decode_coding_ccl): Don't setup ccl program here.
9473 Fix for the case that the output buffer is fullfilled.
d0396581
KH
9474 (decode_coding): Setup ccl program here. Keep looping when the
9475 decoder stopped because the output buffer is
9476 fullfilled (bug#5534).
9477
9478 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
9479
98599f74
JD
94802010-02-13 Jan Djärv <jan.h.d@swipnet.se>
9481
471e4f04 9482 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 9483 bug #5571.
886cc2b8 9484 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 9485 overdrawn.
98599f74 9486
182659ae
JD
94872010-02-10 Jan Djärv <jan.h.d@swipnet.se>
9488
9489 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
9490 doing_interact here.
9491 (ice_connection_closed): New function.
9492 (x_session_check_input, smc_die_CB, ice_io_error_handler)
9493 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
9494 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
9495 returns I/O error.
9496 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
9497 bug #5512.
9498
9be32c4e 94992010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
9500
9501 * nsfont.m (nsfont_open): The system's value for the font descent
9502 is negative, so round it down to avoid clipping.
9503
a2f3eb19
CY
95042010-02-06 Chong Yidong <cyd@stupidchicken.com>
9505
9506 * charset.c (load_charset_map_from_file)
9507 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 9508 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 9509
3088147c
CY
95102010-02-05 Chong Yidong <cyd@stupidchicken.com>
9511
9512 * charset.c (load_charset_map_from_file): Allocate large
9513 charset_map_entries structure on the heap rather than the stack.
9514 (Bug#5526).
9515
b57d9029
KH
95162010-01-31 Kenichi Handa <handa@m17n.org>
9517
9518 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 9519 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 9520
c67d885b
CY
95212010-01-31 Chong Yidong <cyd@stupidchicken.com>
9522
9523 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
9524 <deactivated@gmail.com> (Bug#3605).
9525
8fab2362
CY
95262010-01-31 David De La Harpe Golden <david@harpegolden.net>
9527
9528 * fileio.c (Frename_file): Correctly rename symlinks to
9529 directories (Bug#5496).
9530
cb2a62f2
CY
95312010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
9532
9533 * nsterm.m (ns_ring_bell): Handle visible bell like X.
9534
944c7a26
AS
95352010-01-30 Andreas Schwab <schwab@linux-m68k.org>
9536
9537 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
9538
c024ac08
CY
95392010-01-29 Chong Yidong <cyd@stupidchicken.com>
9540
9541 * frame.c (DEFAULT_ROWS): Change default to 35.
9542
9543 * xfns.c (x_default_font_parameter): Change default XFT font to
9544 monospace-10 (Bug#3643).
9545
af93af83
EZ
95462010-01-29 Eli Zaretskii <eliz@gnu.org>
9547
9548 * w32inevt.c (key_event): Remove unnecessary comparison of
9549 event->uChar.AsciiChar with 128.
9550
ca0eb708
CY
95512010-01-28 Chong Yidong <cyd@stupidchicken.com>
9552
b242dbfc
CY
9553 * fileio.c (Frename_file): Fix last change (Bug#5487).
9554
ca0eb708
CY
9555 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
9556
9557 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
9558
45d45af5
JD
95592010-01-28 Jan Djärv <jan.h.d@swipnet.se>
9560
9561 * xfns.c (Fx_create_frame): Remove window size matching code from
9562 2010-01-15.
a73f9c9d 9563 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 9564
7e233730
JR
95652010-01-27 Jason Rumney <jasonr@gnu.org>
9566
9567 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 9568 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 9569
86e893e3
KH
95702010-01-27 Kenichi Handa <handa@m17n.org>
9571
9572 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 9573 pattern string (Bug#4209).
86e893e3 9574
8719abec
CY
95752010-01-27 David De La Harpe Golden <david@harpegolden.net>
9576
9577 * fileio.c (Frename_file): Call copy-directory and
9578 delete-directory for directories, in order to handle cross-device
9579 renaming (Bug#3353).
9580
844794c8
JD
95812010-01-25 Jan Djärv <jan.h.d@swipnet.se>
9582
aa3e13b5 9583 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 9584 sizes 24 and 10. Bug #3643.
844794c8 9585
bd4b5750
SM
95862010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
9587
8dc1adf6 9588 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
9589 * keymap.c (shadow_lookup): Add `remap' arg.
9590 (describe_map, describe_vector): Update calls to shadow_lookup.
9591 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
9592 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
9593 perform remapping during shadow_lookup check of remapped_sequences.
9594
285d07e2
CY
95952010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
9596
9597 * image.c (png_load): Use png_sig_cmp instead of the obsolete
9598 png_check_sig, which has been removed in libpng 1.4.
9599
c6d09b8d
CY
96002010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
9601
9602 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
9603 lacks this header file).
9604
3d782998
YM
96052010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9606
9607 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
9608 as in Emacs 22.
9609
2aff7c53
YM
96102010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9611
9612 * lisp.h (make_pure_string): String pointer arg now points to const.
9613
9614 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
9615 args now point to const.
9616
74327f7a
EZ
96172010-01-22 Eli Zaretskii <eliz@gnu.org>
9618
9619 * lread.c (Fload): Don't treat files without .elc extension as
9620 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
9621 them. (bug#5303)
9622
4d1e6632
KH
96232010-01-20 Kenichi Handa <handa@m17n.org>
9624
9625 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
9626 treat the source as actual byte sequence.
9627
1fdede8f
AM
96282010-01-19 Alan Mackenzie <acm@muc.de>
9629
9630 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 9631 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
9632 `signal_after_change_p' to `coherent_change_p', and make the
9633 invocation of `modify_region' conditional on it.
9634
67477f30
JD
96352010-01-19 Jan Djärv <jan.h.d@swipnet.se>
9636
9637 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
9638 for debug purpose.
9639 (syms_of_xsettings): Declare xft-settings.
9640
244b023e
CY
96412010-01-18 Chong Yidong <cyd@stupidchicken.com>
9642
9643 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
9644
617364fe
CY
96452010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
9646
9647 * xterm.c (event_handler_gdk): Block input (Bug#5037).
9648
4fe22cdf
CY
96492010-01-16 Chong Yidong <cyd@stupidchicken.com>
9650
9651 * emacs.c (standard_args): Adjust arg priorities to reflect how
9652 they are processed in startup.el.
9653
e118d2be
AS
96542010-01-16 Andreas Schwab <schwab@linux-m68k.org>
9655
9656 * Makefile.in (lisp, shortlisp): Update.
9657
523ae620
SM
96582010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
9659
9660 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
9661 code, link the new kboard into all_kboard before running Lisp code,
9662 and protect the new terminal with GCPRO (Bug#5365).
9663 (x_term_init): Remove unused var `atom'.
9664 (x_delete_display, x_delete_terminal): Remove unused var `i'.
9665
f0d13888
JD
96662010-01-15 Jan Djärv <jan.h.d@swipnet.se>
9667
9668 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
9669 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
9670 to find out usable size of the desktop. Don't make frames larger than
ac146f82 9671 this. Bug #3643.
f0d13888 9672
cc320f07
KH
96732010-01-15 Kenichi Handa <handa@m17n.org>
9674
9675 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
9676
7ffdf101
CY
96772010-01-15 Chong Yidong <cyd@stupidchicken.com>
9678
9679 * nsterm.m (Qnone): Define.
9680
9681 * nsfns.m (Qnone): Move definition to nsterm.m.
9682
d12bd917
KH
96832010-01-14 Kenichi Handa <handa@m17n.org>
9684
9685 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
9686 systems.
9687
d9a7c140
KH
96882010-01-14 Kenichi Handa <handa@m17n.org>
9689
9690 Make auto-composition work on all buffers even if they are
9691 fundamental mode.
9692
9693 * composite.c (Vauto_composition_mode): New variable.
9694 (composition_compute_stop_pos): Check Vauto_composition_mode
9695 instead of Vauto_composition_function.
9696 (composition_adjust_point, Ffind_composition_internal): Likewise.
9697 (syms_of_composite): Declare Lisp variable
9698 "auto-composition-mode" here.
9699
63286bb2
CY
97002010-01-13 Chong Yidong <cyd@stupidchicken.com>
9701
9702 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
9703 during call to vendor-specific-keysyms (Bug#5365).
9704
c2623ee7
YM
97052010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9706
9707 * keyboard.c (input_available_signal) [SYNC_INPUT]:
9708 Call SIGNAL_THREAD_CHECK (Bug#5333).
9709
9710 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
9711 Call SIGNAL_THREAD_CHECK.
9712
0b5397c2
SM
97132010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
9714
9715 Try to fix bug#5314. This is probably not the final word, tho.
9716 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
9717 recent-auto-save-p as a side-effect.
9718 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
9719 * buffer.c (Fkill_buffer, reset_buffer):
9720 * editfns.c (Fsubst_char_in_region):
9721 * fileio.c (Finsert_file_contents, Fdo_auto_save)
9722 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
9723
dc954cb2
KH
97242010-01-13 Kenichi Handa <handa@m17n.org>
9725
9726 Display buffer name, etc. in mode line by composing correctly.
9727
9728 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
9729 STRING is not nil.
0b5397c2 9730 (display_mode_element): Adjust for the change of
dc954cb2
KH
9731 decode_mode_spec and display_line.
9732 (decode_mode_spec): Change arg MULTIBYTE to STRING.
9733 (display_string): Handle the case that STRING is non-null and
9734 LISP_STRING is not nil.
9735
0b5397c2
SM
9736 * xterm.c (x_draw_composite_glyph_string_foreground):
9737 Pay attention to s->face->overstrike.
dc954cb2
KH
9738
9739 * composite.c (composition_reseat_it): Don't check PT if STRING is
9740 non nil.
9741
4a00eaca
YM
97422010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9743
9744 * keyboard.c (read_char): Don't apply previous change when current
9745 buffer is unchanged by command execution.
9746
60abb287
JD
97472010-01-12 Jan Djärv <jan.h.d@swipnet.se>
9748
9749 * keyboard.c (read_char): Return after executing from special map.
9750
893db5bc
GM
97512010-01-12 Glenn Morris <rgm@gnu.org>
9752
9753 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
9754 bug-gnu-emacs rather than emacs-pretest-bug.
9755
4d03ece0
CY
97562010-01-11 Chong Yidong <cyd@stupidchicken.com>
9757
9758 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
9759 initializing the Lisp variables that depend on them.
9760
1df47e38
YM
97612010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9762
9763 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
9764 Clear areas that will not be updated after change of menu bar lines.
9765 Clear the menu bar window's current matrix when the window gets empty.
9766
2f1c6384
CY
97672010-01-09 Chong Yidong <cyd@stupidchicken.com>
9768
e398c61c
CY
9769 * intervals.h, textprop.c (extend_property_ranges): Return value
9770 and args changed. Discard properties that begin at or after the
9771 new end (Bug#5306).
9772
9773 * editfns.c (Fformat): Caller changed.
9774
e5a29a10
CY
9775 * nsterm.m (ns_set_default_prefs): Delete function.
9776 (syms_of_nsterm): Initialize ns_command_modifier,
9777 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
9778 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
9779
2f1c6384
CY
9780 * xdisp.c (pos_visible_p): Check for invisible text at the correct
9781 position (Bug#4040).
9782
d427a9fa
EZ
97832010-01-09 Eli Zaretskii <eliz@gnu.org>
9784
9785 * editfns.c (Ffloat_time): Doc fix.
9786
21b9df2f
JD
97872010-01-09 Jan Djärv <jan.h.d@swipnet.se>
9788
9789 * xfns.c (Fx_create_frame): Don't create frame larger than display
9790 by default bug#3643.
9791
4b00d3b1
YM
97922010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9793
9794 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
9795 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
9796 windows above internal border.
9797
9798 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
9799 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
9800 windows above internal border.
9801
9802 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
9803 tool bar windows specially.
9804
9805 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
9806
9807 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
9808 specially.
9809 (XTflash): Take account of menu bar height.
9810
9811 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
9812 specially.
9813
5075d853
JD
98142010-01-08 Jan Djärv <jan.h.d@swipnet.se>
9815
ac146f82 9816 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
9817 also be true before we can return early (bug #5339).
9818
474217c8
CY
98192010-01-06 David Reitter <david.reitter@gmail.com>
9820
9821 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
9822 (Fns_display_usable_bounds): Rewrite, computing bounds properly
9823 (Bug#3233).
9824
c0e6d47d
JD
98252010-01-06 Jan Djärv <jan.h.d@swipnet.se>
9826
d0cf45b7
JD
9827 * font.c (font_open_entity): Enable chache and call cached_font_ok
9828 for the driver if defined.
9829 (QCuser_spec): New symbol.
9830 (font_spec_from_name): Save name as user-spec.
9831 (font_load_for_lface): Keep user-spec instead of name.
9832 (font_open_by_name): Save name as user-spec.
9833 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 9834 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
9835
9836 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
9837 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
9838 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
9839
9840 * font.h (struct font_driver): Add cached_font_ok.
9841
c0e6d47d
JD
9842 * xterm.c (x_clear_frame): Queue draw for scroll bars.
9843
7c583cd8
JD
98442010-01-05 Jan Djärv <jan.h.d@swipnet.se>
9845
9846 * xterm.c (x_new_font): Move code for setting rows/cols before
9847 resizing ...
ac146f82 9848 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
9849
9850 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
9851 (xg_frame_resized, xg_frame_set_char_size):
9852 Call xg_clear_under_internal_border.
7c583cd8 9853 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 9854
03f77f0a
CY
98552010-01-05 Chong Yidong <cyd@stupidchicken.com>
9856
9857 * keyboard.c (read_key_sequence): Catch keyboard switch after
9858 making a new tty frame (Bug#5095).
9859
2a1ef5be
KH
98602010-01-05 Kenichi Handa <handa@m17n.org>
9861
9862 * fontset.c (fontset_find_font): Fix getting the frame pointer.
9863
e3eb1dae
SM
98642010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
9865
9866 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
9867 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
9868 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
9869
777013f2
MA
98702010-01-03 Michael Albinus <michael.albinus@gmx.de>
9871
9872 * dbusbind.c (xd_add_watch): Improve debug message.
9873 (xd_remove_watch): Improve debug message. If DATA is the session
9874 bus, unset D-Bus session environment.
9875 (Fdbus_init_bus): Pass the bus as argument to
9876 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 9877
8932b1c2
CY
98782010-01-01 Chong Yidong <cyd@stupidchicken.com>
9879
87231e2c
CY
9880 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
9881
4801c5fa
CY
9882 * lread.c (syms_of_lread): Make it clearer that these are the
9883 names of loaded files (Bug#5068).
9884
8932b1c2
CY
9885 * eval.c (run_hook_with_args): Handle the case where the global
9886 value has the obsolete single-function form (Bug#5026).
9887
11e3c684
CY
98882009-12-27 Chong Yidong <cyd@stupidchicken.com>
9889
9890 * minibuf.c (Fall_completions): Minor optimization.
9891
5b28ce35
EZ
98922009-12-26 Eli Zaretskii <eliz@gnu.org>
9893
5ce6e4f4
JB
9894 * .gdbinit (pgx): Fix display of composite glyphs.
9895 Display cmp.from and cmp.to as well.
9896 (pitx): Fix last change.
5b28ce35 9897
bcffff46
KH
98982009-12-25 Kenichi Handa <handa@m17n.org>
9899
9900 * composite.h (composition_adjust_point): Update prototype.
9901
9902 * composite.c (composition_reseat_it): Don't make a composition
9903 spanning over point.
9904 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
9905 composable characters.
9906 (composition_adjust_point): New arg NEW_PT. Callers changed.
9907
9908 * keyboard.c (command_loop_1): Force redisplay if the last point
9909 was within a composition.
9910 (adjust_point_for_property): Don't adjust point for automatic
9911 composition when called after buffer modification.
9912
3f670e9a
EZ
99132009-12-19 Eli Zaretskii <eliz@gnu.org>
9914
5ce6e4f4
JB
9915 * .gdbinit (pitx): Don't use enum names, use their values.
9916 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
9917 (pgx): Don't use enum names, use their values.
9918 (pitmethod): New helper command.
9919 (pitx): Use it to display iteration method.
9920 (pgrowit): New command.
9921
ad903955
EZ
9922 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
9923
3f670e9a
EZ
9924 Update dependencies in Makefile.in.
9925
9926 * Makefile.in (alloc.o): Depend on termhooks.h.
9927 (atimer.o): Depend on blockinput.h.
9928 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
9929 and frame.h.
9930 (callint.o): Depend on systime.h, coding.h, and composite.h.
9931 (callproc.o): Depend on buffer.h.
9932 (casefiddle.o): Don't depend on charset.h.
9933 (casetab.o): Depend on character.h.
9934 (ccl.o): Depend on composite.h.
9935 (chartab.o): Depend on ccl.h.
9936 (cm.o): Depend on dispextern.h.
9937 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
9938 (coding.o): Don't depend on $(INTERVALS_H).
9939 (composite.o): Don't depend on dispextern.h explicitly (it's in
9940 $(INTERVALS_H)). Depend on ccl.h.
9941 (data.o): Depend on systime.h, coding.h, composite.h,
9942 dispextern.h, font.h, and ccl.h.
9943 (dired.o): Depend on composite.h.
9944 (dispnew.o): Depend on coding.h. Don't depend explicitly on
9945 composite.h (it's in $(INTERVALS_H)).
9946 (doc.o): Depend on systime.h, coding.h, and composite.h.
9947 (editfns.o): Don't depend explicitly on dispextern.h.
9948 (emacs.o): Depend on frame.h and coding.h.
9949 (eval.o): Depend on coding.h, composite.h, and xterm.h.
9950 (fileio.o): Depend on frame.h and commands.h. Don't depend
9951 explicitly on dispextern.h.
9952 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
9953 composite.h.
9954 (fns.o): Don't depend on termhooks.h.
9955 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
9956 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
9957 coding.h, $(INTERVALS_H), window.h, xterm.h.
9958 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
9959 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
9960 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
9961 fontset.h, ccl.h, and ftfont.h.
9962 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
9963 (gtkutil.o): Depend on dispextern.h and composite.h.
9964 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
9965 termhooks.h, and ccl.h.
9966 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
9967 (intervals.o): Depend on systime.h and coding.h.
9968 (keyboard.o): Depend on composite.h and coding.h.
9969 (keymap.o): Depend on coding.h and frame.h.
9970 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
9971 (macros.o): Depend on systime.h, coding.h, and composite.h.
9972 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
9973 and atimer.h.
9974 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
9975 dispextern.h explicitly.
0b5397c2
SM
9976 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
9977 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
9978 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
9979 (regex.o): Don't depend on charset.h.
9980 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
9981 (search.o): Don't depend explicitly on composite.h.
9982 (sound.o): Depend on atimer.h and systime.h.
9983 (syntax.o): Don't depend explicitly on composite.h.
9984 (sysdep.o): Depend on coding.h and composite.h.
9985 (term.o): Depend on xterm.h and buffer.h.
9986 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
9987 (textprop.o): Don't depend on dispextern.h explicitly.
9988 (undo.o): Depend on dispextern.h.
9989 (window.o): Depend on coding.h and termhooks.h. Don't depend on
9990 dispextern.h and composite.h explicitly.
9991 (xdisp.o): Depend on ccl.h.
9992 (xfaces.o): Depend on coding.h and ccl.h.
9993 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
9994 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
9995 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
9996 ftfont.h.
9997 (xgselect.o): New dependency.
9998 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
9999 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
10000 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
10001 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
10002 (xsmfns.o): Depend on frame.h and dispextern.h.
10003 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
10004 sysselect.h.
10005
7a6f7fea
AS
100062009-12-19 Andreas Schwab <schwab@linux-m68k.org>
10007
10008 * font.c (Fclear_font_cache): Pass correct cache argument to
10009 font_clear_cache.
10010
f4c21026
AS
100112009-12-16 Andreas Schwab <schwab@linux-m68k.org>
10012
10013 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
10014 twice.
10015
f7ab0997
CY
100162009-12-15 Chong Yidong <cyd@stupidchicken.com>
10017
10018 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
10019 calling file-remote-p. Reported by Jim Meyering.
10020
fa8e045a
MA
100212009-12-15 Michael Albinus <michael.albinus@gmx.de>
10022
10023 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 10024 avoid compiler warnings. (Bug #5217)
fa8e045a 10025
a63dba42
KH
100262009-12-14 Kenichi Handa <handa@m17n.org>
10027
10028 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
10029 in 8-bit encoding.
10030
5ce6e4f4 100312009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
10032
10033 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
10034 tooltip windows.
10035
223e5fc6
JD
100362009-12-13 Jan Djärv <jan.h.d@swipnet.se>
10037
36acb2a7
JD
10038 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
10039 Xatom_net_window_type.
10040
10041 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
10042 Xatom_net_window_type.
10043
b8f00677
JD
10044 * xterm.c (my_log_handler): New function.
10045 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 10046 so we can filter out buggy messages. (Bug #5120).
b8f00677 10047
e5f0bc9a
JD
10048 * xterm.c (xg_scroll_callback): Parameter list changed,
10049 use parameter GtkScrollType to determine scroll/line/page.
10050 Only allow dragging if a button < 4 is grabbed (bug #5177).
10051 (xg_end_scroll_callback): New function.
10052 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
10053 xg_create_scroll_bar.
10054
10055 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
10056 (scroll_end_callback): Remove.
10057 (xg_create_scroll_bar): Add parameter end_callback, bind it to
10058 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 10059 bug #5177.
e5f0bc9a
JD
10060 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
10061 bug #5177.
10062
10063 * gtkutil.h (XG_LAST_SB_DATA): Remove.
10064 (xg_create_scroll_bar): Add GCallback end_callback.
10065
223e5fc6
JD
10066 * xftfont.c (QClcdfilter): New variable.
10067 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
10068 (syms_of_xftfont): Initialize QClcdfilter.
10069
3c055b77
JD
100702009-12-12 Jan Djärv <jan.h.d@swipnet.se>
10071
10072 * xsettings.c (struct xsettings): Add member seen.
10073 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 10074 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
10075 (apply_xft_settings): Only update Xft settings with what member seen
10076 indicates as new.
10077
05fe33ff
EZ
100782009-12-12 Eli Zaretskii <eliz@gnu.org>
10079
c4cc8b9a 10080 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
10081 (struct glyph): Use EMACS_INT for charpos.
10082 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
10083 region_beg_charpos, region_end_charpos,
10084 redisplay_end_trigger_charpos, and also for
10085 iterator_stack_entry.end_charpos and
10086 iterator_stack_entry.stop_charpos.
10087
e8d7886a
JD
100882009-12-12 Jan Djärv <jan.h.d@swipnet.se>
10089
5ce6e4f4 10090 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
10091 (xg_create_scroll_bar): Call scroll_end_callback on button release
10092 event (bug #5177).
10093 (xg_event_is_for_scrollbar): != replaced with ==.
10094
d0db2ec8
KH
100952009-12-12 Kenichi Handa <handa@m17n.org>
10096
10097 * ftfont.c (struct ftfont_info): New member matrix.
10098 (ftfont_open): Setup xftfont_info->matrix.
10099 (MFLTFontFT): New member matrix.
10100 (FLOOR, CEIL, ROUND): New macros.
10101 (ftfont_get_metrics): Handle matrix transformation.
10102 (ftfont_shape_by_flt): New arg matrix. Callers changed.
10103
10104 * xftfont.c (struct xftfont_info): New member matrix.
10105 (xftfont_open): Setup xftfont_info->matrix.
10106
101072009-12-10 Kenichi Handa <handa@m17n.org>
10108
10109 * xdisp.c (append_space_for_newline): Consider face-remapping.
10110
2cc7b62f
AS
101112009-12-09 Andreas Schwab <schwab@linux-m68k.org>
10112
b87dd913
AS
10113 * xsettings.c: Include "keyboard.h".
10114
eba5eb94
AS
10115 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
10116
2cc7b62f
AS
10117 Fix implicit function declarations.
10118 * cmds.c: Include "frame.h".
10119 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
10120 * frame.h: Move declaration of delete_frame outside of
10121 HAVE_WINDOW_SYSTEM.
10122
a4ef73c8
CY
101232009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
10124
10125 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
10126
10127 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
10128 GTK builds.
10129
944a300c
AS
101302009-12-07 Andreas Schwab <schwab@linux-m68k.org>
10131
10132 * unexelf.c (unexec): Don't search for .data twice.
10133
022eef62
CY
101342009-12-05 Chong Yidong <cyd@stupidchicken.com>
10135
426ac949
CY
10136 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
10137 if push failed.
10138 (handle_line_prefix): Set avoid_cursor_p here. Check return value
10139 of push_display_prop (Bug#5000).
10140
022eef62
CY
10141 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
10142 value of font_list_entities (Bug#5085).
10143
be95bee9
JB
101442009-12-04 Juanma Barranquero <lekktu@gmail.com>
10145
10146 Fix `string-to-number' to deal consistently with integers and floats.
10147 * lread.c (isfloat_string): New argument ignore_trailing to accept all
10148 trailing characters, not just whitespace.
10149 (read1): Pass new arg 0 to keep old behavior.
10150 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
10151 trailing chars, as it is already done for integers. Doc fixes.
10152 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
10153
24c2d7ce
EZ
101542009-12-04 Eli Zaretskii <eliz@gnu.org>
10155
0b5397c2
SM
10156 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
10157 Delete unused enumeration value.
24c2d7ce 10158
7e694795
EZ
101592009-12-03 Eli Zaretskii <eliz@gnu.org>
10160
10161 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
10162
84b31826
SM
101632009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
10164
10165 * process.c (Fmake_network_process): Fix up the tests for
10166 "connectionless socket", so they DTRT for seqpacket sockets as well.
10167
f00c449b
SM
101682009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
10169
10170 * process.c (Qseqpacket): New symbol.
10171 (HAVE_SEQPACKET): New macro.
10172 (Fmake_network_process): Accept new :type `seqpacket'.
10173 (init_process): Add `seqpacket' feature when applicable.
10174 (syms_of_process): Initialize Qseqpacket.
10175
8096a0ff
YM
101762009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10177
10178 * font.c (font_load_for_lface, font_open_by_name): Don't store name
10179 if entity is Qnil.
10180
3e0de07f
SM
101812009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
10182
10183 * print.c (print_preprocess): Preprocess the key_and_value table of
10184 hashtables, even tho they're "hidden" (bug#5082).
10185
abeafb2a
JD
101862009-11-29 Jan Djärv <jan.h.d@swipnet.se>
10187
10188 * frame.c (frame_make_pointer_invisible)
10189 (frame_make_pointer_visible): Declare f before statements.
10190
4bf47195
EZ
101912009-11-28 Eli Zaretskii <eliz@gnu.org>
10192
10193 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
10194 omitted dependencies on lisp.h.
10195
c525b3f2
JD
101962009-11-27 Jan Djärv <jan.h.d@swipnet.se>
10197
ece2d4ed
JD
10198 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
10199 is NULL.
10200
10201 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
10202
10203 * frame.c (frame_make_pointer_invisible)
3e0de07f 10204 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
10205 frame.
10206
c525b3f2
JD
10207 * search.c (simple_search): Remove warning by making *p const.
10208
2f00e299
DN
102092009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
10210
10211 * xdisp.c (power_letter): Remove duplicate const.
10212
084b049b
JD
102132009-11-25 Jan Djärv <jan.h.d@swipnet.se>
10214
a1fadc6f
JD
10215 * term.c (delete_tty): Remove check for last terminal (bug#4970).
10216
5ce6e4f4 10217 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
10218 defaults (bug #5025).
10219
28259cac
SM
102202009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
10221
10222 * insdel.c (adjust_markers_for_delete): Move it in the
10223 right direction! (bug#4803)
10224
e8e14166
YM
102252009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10226
10227 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
10228
10229 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
10230
86677b58
GM
102312009-11-24 Glenn Morris <rgm@gnu.org>
10232
10233 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
10234
581e51e8
JD
102352009-11-23 Jan Djärv <jan.h.d@swipnet.se>
10236
cfc86c7a
JD
10237 * Makefile.in: Must create deps for ecrt0.o in its rule.
10238
581e51e8
JD
10239 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
10240 because that is what Gtk+ font dialog understands.
10241
10242 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
10243 of Fcopy_sequence.
10244 (font_open_by_name): Put name given into QCname for font-object returned.
10245
10246 * frame.c (x_set_font): Save original font name as frame parameter
10247 font-parameter.
10248
10249 * xsettings.c (set_default_xft_settings): New function.
10250 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
10251 is found.
10252
8b264ecb
AS
102532009-11-22 Andreas Schwab <schwab@linux-m68k.org>
10254
10255 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
10256 searching backwards through multibyte buffer.
10257
872870b2
JD
102582009-11-21 Jan Djärv <jan.h.d@swipnet.se>
10259
10260 * xterm.c: #include xgselect.h.
10261 (x_initialize): Call xgselect_initialize.
10262
10263 * xsettings.c (something_changedCB): C++ comments => C comments.
10264 (init_gconf): Do not deal with any GLib file descriptors, xg_select
10265 does that now.
10266
10267 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
10268 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
10269 (scroll_bar_button_cb): Remove.
5ce6e4f4 10270 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
10271 event.
10272 (xg_create_scroll_bar): Don't bind button-press-event and
10273 button-release-event.
10274
10275 * process.c: Include xgselect.h if defined (USE_GTK) ||
10276 defined (HAVE_GCONF).
10277 (wait_reading_process_output): Call xg_select for the same condition.
10278
10279 * xgselect.c (xg_select): New function to better integrate with
10280 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
10281
10282 * xgselect.h: New file, declare xg_select, xgselect_initialize.
10283
10284 * Makefile.in (XOBJ): Add xgselect.o.
10285
62a6e103
AS
102862009-11-21 Andreas Schwab <schwab@linux-m68k.org>
10287
0b5397c2
SM
10288 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
10289 Remove ignored second argument. All callers changed.
62a6e103
AS
10290 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
10291 (RE_STRING_CHAR_AND_LENGTH): Likewise.
10292 * xdisp.c (string_char_and_length): Likewise.
10293
b0ca0f33
DN
102942009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
10295
10296 * xterm.c (x_new_font):
10297 * print.c (print_object):
10298 * cmds.c (Fself_insert_command): Move declarations before statements.
10299
dd5a6279
CY
103002009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
10301
10302 * s/cygwin.h: Remove unneeded linker flags.
10303
4a8e097d
JD
103042009-11-20 Jan Djärv <jan.h.d@swipnet.se>
10305
0d1d0d26
JD
10306 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
10307
10308 * xsettings.h: Declare xsettings_get_system_font.
10309
10310 * xsettings.c (xsettings_get_system_font): New function.
10311 (init_gconf): No use initiating gconf unless we have Xft also.
10312 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
10313 HAVE_GCONF.
10314
4a8e097d
JD
10315 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
10316 add a blank entry so it doesn't collapse into nothing.
10317
8ab1650e
SM
103182009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
10319
10320 * lread.c (Funintern): Comment out last change.
10321
82c602f0
RS
103222009-11-19 Richard Stallman <rms@gnu.org>
10323
10324 * lread.c (Funintern): Error if symbol is t or nil.
10325
87e32266
SM
103262009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
10327
10328 * insdel.c (make_gap_larger): Don't make as many assumptions about the
10329 representation of Lisp integers.
10330 Reported by MJ Chan <mjchan.inbox@gmail.com>.
10331
1b9ac145
AS
103322009-11-17 Andreas Schwab <schwab@linux-m68k.org>
10333
10334 * lisp.h: Remove declaration of Ffont_get_system_font.
10335 * xfns.c: Move include of "xsettings.h".
10336 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
10337
dfb3c4c6
JD
103382009-11-17 Jan Djärv <jan.h.d@swipnet.se>
10339
87e32266
SM
10340 * xsettings.c (something_changedCB, Ffont_get_system_font):
10341 Check use_system_font.
dfb3c4c6
JD
10342 (syms_of_xsettings): DEFVAR font-use-system-font.
10343
9370c1d8
AS
103442009-11-17 Andreas Schwab <schwab@linux-m68k.org>
10345
25fe851a
AS
10346 * xfns.c (x_default_font_parameter): Remove dead assignment.
10347
9370c1d8
AS
10348 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
10349
637fa988
JD
103502009-11-17 Jan Djärv <jan.h.d@swipnet.se>
10351
87e32266 10352 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 10353 not have FC_LCD_*. #define them if not there.
a6eb20d8 10354
87e32266 10355 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 10356
637fa988
JD
10357 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
10358
10359 * xterm.c (handle_one_xevent): Call xft_settings_event for
10360 ClientMessage, PropertyNotify and DestroyNotify.
10361 (x_term_init): If we have XFT, get DPI from Xft.dpi.
10362 Call xsettings_initialize.
10363
10364 * xftfont.c (xftfont_fix_match): New function.
10365 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
10366 Call xftfont_fix_match after XftFontMatch.
10367
10368 * xfont.c (xfont_driver): Initialize all members.
10369
87e32266
SM
10370 * xfns.c (x_default_font_parameter):
10371 Try font from Ffont_get_system_font.
637fa988
JD
10372 Do not get font from x_default_parameter if we got one from
10373 Ffont_get_system_font.
87e32266 10374 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
10375
10376 * w32font.c (w32font_driver): Initialize all members.
10377
10378 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
10379
10380 * lisp.h: Declare syms_of_xsettings.
10381
87e32266
SM
10382 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
10383 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
10384
10385 * ftfont.c (ftfont_filter_properties): New function.
10386
10387 * frame.c (x_set_font): Remove unused variable lval.
10388
87e32266 10389 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
10390
10391 * font.c (font_put_extra): Don't return if val is nil, it means
10392 boolean option is off.
10393 (font_parse_fcname): Collect all extra properties in extra_props
10394 and call filter_properties for all drivers with extra_props and
10395 font as parameter.
87e32266
SM
10396 (font_open_entity): Do not use cache, it does not pick up new
10397 fontconfig settings like hinting.
637fa988
JD
10398 (font_load_for_lface): If spec had a name in it, store it in entity.
10399
a73f9c9d 10400 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
10401
10402 * config.in: HAVE_GCONF is new.
10403
10404 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
10405 xsettings.o is new.
10406
5a942932
KH
104072009-11-17 Kenichi Handa <handa@m17n.org>
10408
10409 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
10410 back to the default font in case that no suitable font is found.
10411
b7c7a4d1
SM
104122009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
10413
10414 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
10415 Suggested by Chad Brown <yandros@mit.edu>.
10416 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
10417
072f1e39
JD
104182009-11-16 Jan Djärv <jan.h.d@swipnet.se>
10419
10420 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
10421
5d1e70a2
AS
104222009-11-14 Andreas Schwab <schwab@linux-m68k.org>
10423
87e32266 10424 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 10425
a53cfbe5
JD
104262009-11-14 Jan Djärv <jan.h.d@swipnet.se>
10427
473a99b7
JD
10428 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
10429 has a parent.
10430
a53cfbe5 10431 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 10432 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
10433
10434 * config.in: Generated (AUTO_DEPEND).
10435
f04bb9b2
MA
104362009-11-13 Michael Albinus <michael.albinus@gmx.de>
10437
b7c7a4d1 10438 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
10439 Vdbus_registered_functions_table, because it contains also
10440 properties. Fix docstring.
b7c7a4d1 10441 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 10442
8f11f7ec
SM
104432009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
10444
10445 * alloc.c (mark_object): Don't reprocess marked strings.
10446 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
10447 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
10448
8a605fe8
KH
104492009-11-13 Kenichi Handa <handa@m17n.org>
10450
8f11f7ec 10451 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
10452 semantics of Vword_combining_categories.
10453 (Vword_combining_categories): Describe the slight change of the
10454 semantics.
10455
241c4680
EZ
104562009-11-13 Eli Zaretskii <eliz@gnu.org>
10457
10458 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
10459
10460 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
10461
5d58e44c
SM
104622009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
10463
10464 * xdisp.c (syms_of_xdisp): Fix typo in last change.
10465
5e13f9d3
JB
104662009-11-12 Juanma Barranquero <lekktu@gmail.com>
10467
10468 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
10469
cf54c754
DR
104702009-11-11 David Reitter <david.reitter@gmail.com>
10471
10472 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
10473 variables to fix 2009-11-09 change.
10474
a4ada374
DN
104752009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
10476
91433552
DN
10477 * process.c (ifflag_def): Make flag_sym constant.
10478 (Fnetwork_interface_info): Use a constant pointer.
10479 (ifflag_table):
10480 * xfns.c (cursor_bits):
10481 * xdisp.c (power_letter):
10482 * termcap.c (speeds, esctab):
10483 * sysdep.c (baud_convert):
10484 * keyboard.c (lispy_accent_codes, modifier_names):
10485 * image.c (xbm_format, xpm_format, pbm_format, png_format)
10486 (jpeg_format, tiff_format, gif_format, svg_format)
10487 (interlace_start, interlace_increment, gs_format):
10488 * gtkutil.c (separator_names):
10489 * fringe.c (swap_nibble):
10490 * fns.c (base64_value_to_char, base64_char_to_value):
10491 * fileio.c (make_temp_name_tbl):
10492 * coding.c (suffixes): Make constant.
10493
f4265f6c
DN
10494 * frame.c (make_initial_frame):
10495 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
10496 build_string.
10497 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
10498
04420943
DN
10499 * s/freebsd.h:
10500 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
10501
0a5d24ae
DN
10502 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
10503 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
10504
a4ada374
DN
10505 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
10506 * xterm.c (syms_of_xterm):
10507 * xfaces.c (syms_of_xfaces):
10508 * xdisp.c (syms_of_xdisp):
10509 * lread.c (syms_of_lread):
10510 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
10511 build_string.
91433552 10512
a4ada374
DN
10513 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
10514
af98fc7f
SM
105152009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
10516
8ab1650e 10517 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 10518
e90292a9
JD
105192009-11-10 Jan Djärv <jan.h.d@swipnet.se>
10520
10521 * keyboard.h: Declare timer_check.
10522
10523 * keyboard.c (timer_check_2): New function that does what the old
10524 timer_check did.
10525 (timer_check): Call timer_check_2 until -1 or a non-zero time is
10526 returned, i.e. don't return -1 with timers pending.
10527
10528 * process.c: Remove extern declaration of timer_check.
10529
10530 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
10531 even if timer_check returned -1.
10532
af98fc7f
SM
10533 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
10534 xg_dialog_data.
e90292a9
JD
10535 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
10536 the event loop.
10537 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
10538 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
10539 Destroy the dialog after xg_dialog_run.
10540
045b83c0
SM
105412009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
10542
10543 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
10544
1fb99a3a
JD
105452009-11-10 Jan Djärv <jan.h.d@swipnet.se>
10546
10547 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
10548
04e452cb
JB
105492009-11-09 Juanma Barranquero <lekktu@gmail.com>
10550
10551 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
10552
ef7417fd
SM
105532009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
10554
10555 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
10556 w32menu.c, and nsmenu.m.
10557 Simplify the obsolete case where position is nil.
10558 (cleanup_popup_menu): New function, moved from nsmenu.m.
10559 (struct skp): Remove slot `notreal'.
10560 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
10561 adjust callers.
10562 (single_menu_item): Adjust call to parse_menu_item.
10563 (syms_of_menu): Defsubr x-popup-menu.
10564 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
10565 (keymap_panes): Don't export any more.
10566 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
10567 (xmenu_show): Declare.
10568 * keyboard.c (parse_menu_item): Remove arg `notreal'.
10569 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
10570 * keyboard.h (parse_menu_item): Update declaration.
10571 * xmenu.c (Fx_popup_menu): Remove.
10572 (syms_of_xmenu): Don't defsubr x-popup-menu.
10573 * w32menu.c (Fx_popup_menu): Remove.
10574 (syms_of_w32menu): Don't defsubr x-popup-menu.
10575 * nsmenu.m (cleanup_popup_menu): Remove.
10576 (ns_menu_show): Rename from ns_popup_menu and remove all the code
10577 moved to menu.c's Fx_popup_menu.
10578 (Fx_popup_menu): Remove.
10579 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
10580 menu_items (it's done in menu.c already).
10581
424d6179
SM
105822009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
10583
10584 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
10585 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
10586
c0df13a6 105872009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
10588
10589 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 10590 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
10591 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
10592 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
10593
2de9f71c
SM
105942009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
10595
10596 Let integers use up 2 tags to give them one extra bit and thus double
10597 their range.
10598 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
10599 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
10600 New macros.
10601 (enum Lisp_Type): Use them. Give explicit values.
10602 (Lisp_Type_Limit): Remove.
10603 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
10604 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
10605 Pay attention to USE_2_TAGS_FOR_INTS.
10606 (INTEGERP): Use LISP_INT_TAG_P.
10607 * fns.c (internal_equal): Simplify the default case.
10608 (sxhash): Use case_Lisp_Int.
10609 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
10610 any more.
10611 (Ftype_of): Use case_Lisp_Int.
10612 (store_symval_forwarding): Take into account the fact that Ints can
10613 now have more than one tag.
10614 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
686b968e 10615 (buffer_slot_type_mismatch):
2de9f71c
SM
10616 * xfaces.c (face_attr_equal_p):
10617 * print.c (print_object):
10618 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
10619 Use case_Lisp_Int.
10620
323637a2
EZ
106212009-11-06 Eli Zaretskii <eliz@gnu.org>
10622
7ac65b38
EZ
10623 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
10624
323637a2
EZ
10625 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
10626 warning.
10627
e511451f
JD
106282009-11-06 Jan Djärv <jan.h.d@swipnet.se>
10629
10630 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
10631
10632 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
10633
10634 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
10635 ButtonPressRelease and MotionNotify (bug#4870).
10636
5e2327cf
DN
106372009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
10638
5adc433e
DN
10639 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
10640
d67b4f80
DN
10641 * xterm.c (syms_of_xterm):
10642 * xselect.c (syms_of_xselect):
10643 * xmenu.c (syms_of_xmenu):
10644 * xfns.c (syms_of_xfns):
10645 * xfaces.c (syms_of_xfaces):
10646 * xdisp.c (syms_of_xdisp):
10647 * window.c (syms_of_window):
10648 * w32fns.c (syms_of_w32fns):
10649 * undo.c (syms_of_undo):
10650 * textprop.c (syms_of_textprop):
10651 * terminal.c (syms_of_terminal):
10652 * syntax.c (syms_of_syntax):
10653 * sound.c (syms_of_sound):
10654 * search.c (syms_of_search):
10655 * print.c (syms_of_print):
10656 * minibuf.c (syms_of_minibuf):
10657 * macros.c (syms_of_macros):
10658 * keymap.c (syms_of_keymap, initial_define_key)
10659 (initial_define_lispy_key):
10660 * keyboard.c (syms_of_keyboard):
10661 * insdel.c (syms_of_insdel):
10662 * image.c (syms_of_image):
10663 * fringe.c (syms_of_fringe):
10664 * frame.c (syms_of_frame):
10665 * fontset.c (syms_of_fontset):
10666 * fns.c (syms_of_fns):
10667 * fns.c (syms_of_fns):
10668 * fileio.c (syms_of_fileio):
10669 * fileio.c (syms_of_fileio):
10670 * eval.c (syms_of_eval):
10671 * doc.c (syms_of_doc):
10672 * dispnew.c (syms_of_display):
10673 * dired.c (syms_of_dired):
10674 * dbusbind.c (syms_of_dbusbind):
10675 * data.c (syms_of_data):
10676 * composite.c (syms_of_composite):
10677 * coding.c (syms_of_coding):
10678 * cmds.c (syms_of_cmds):
10679 * charset.c (define_charset_internal, syms_of_character):
10680 * ccl.c (syms_of_ccl):
10681 * category.c (syms_of_category, init_category_once):
10682 * casetab.c (syms_of_casetab):
10683 * casefiddle.c (syms_of_casefiddle):
10684 * callint.c (syms_of_callint):
10685 * bytecode.c (syms_of_bytecode):
10686 * buffer.c (keys_of_buffer, syms_of_buffer):
10687 * alloc.c (syms_of_alloc):
10688 * process.c (syms_of_process, init_process):
10689 * lread.c (syms_of_lread, init_obarray):
10690 * font.c (build_style_table):
10691 * emacs.c (syms_of_emacs, main): Replace calls to intern with
10692 intern_c_string, calls to make_pure_string with
10693 make_pure_c_string. Use pure_cons instead of Fcons.
10694
5e2327cf
DN
10695 * process.c (socket_options): Make it const.
10696 (set_socket_option, init_process): Use a const pointer.
10697
10698 * lread.c (intern_c_string): New function.
10699 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
10700 (defvar_int): Uset it. Make the name const char*.
10701
10702 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
10703 (defvar_int): Update prototypes.
10704 (DEFUN, EXFUN): Support for prototypes is now required.
10705 (intern_c_string): New prototype.
10706 (struct Lisp_Subr): Make symbol_name constant.
10707
10708 * font.c (struct table_entry): Remove unused member. Make NAMES
10709 constant.
10710 (weight_table, slant_table, width_table): Make constant.
10711
10712 * emacs.c (struct standard_args): Make name and longname constant.
10713
10714 * character.h (DEFSYM): Use intern_c_string.
10715
a56eaaef
DN
107162009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
10717
10718 * alloc.c (make_pure_c_string): New function.
10719
10720 * eval.c (Fautoload): Purecopy all arguments.
10721
f6a07420
KH
107222009-11-05 Kenichi Handa <handa@m17n.org>
10723
10724 * fileio.c (Finsert_file_contents): Be sure set coding-system of
10725 the buffer in case of replace.
10726
5d28d4b1
DN
107272009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
10728
10729 * puresize.h (BASE_PURESIZE): Increase to 1620000.
10730
b349d111
SM
107312009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
10732
d528b1ce
SM
10733 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
10734 when applicable (bug#4851).
10735
b349d111
SM
10736 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
10737 (P_): Support for prototypes is now required.
10738
c38eb027
CY
107392009-10-31 Chong Yidong <cyd@stupidchicken.com>
10740
10741 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
10742 (Bug#4827).
10743
0405f8d9
EZ
107442009-10-30 Eli Zaretskii <eliz@gnu.org>
10745
d528b1ce 10746 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 10747
ca0a881a
DN
107482009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
10749
10750 * puresize.h (BASE_PURESIZE): Increase to 1470000.
10751
d528b1ce
SM
10752 * lread.c (Fload): Purecopy the file name when building
10753 Vpreloaded_file_list.
ca0a881a 10754
47e0e0e4
JR
107552009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
10756
10757 * w32fns.c (syms_of_w32fns): Change default value of
10758 w32-scroll-lock-modifier to nil. (Bug#2827)
10759
057bce6f
JB
107602009-10-26 Juanma Barranquero <lekktu@gmail.com>
10761
782a943e 10762 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 10763
242bc74c
AS
107642009-10-26 Andreas Schwab <schwab@redhat.com>
10765
10766 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
10767
522d013a
JB
107682009-10-26 Juanma Barranquero <lekktu@gmail.com>
10769
10770 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
10771 For delta < 0, skip check that only makes sense when the mini-window
10772 is going to be enlarged. (Bug#4534)
10773
18060980
CY
107742009-10-25 Chong Yidong <cyd@stupidchicken.com>
10775
10776 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
10777 string in menu maps (Bug#4471).
10778
fec8f0fe
CY
107792009-10-24 Chong Yidong <cyd@stupidchicken.com>
10780
10781 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
10782 FRAME_NS_VIEW on terminal frames (Bug#4765).
10783
10d66ec0
AS
107842009-10-24 Andreas Schwab <schwab@linux-m68k.org>
10785
1cae01f7
AS
10786 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
10787 DBUS_TYPE_UINTnn separately to get proper sign extension.
10788
58a12889
AS
10789 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
10790 can properly handle unsigned types.
d528b1ce 10791 (make_uid, make_gid): Remove.
58a12889 10792
987c9327
AS
10793 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
10794 types again.
10795
522d013a 10796 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
10797 (system_process_attributes): Likewise.
10798
905a9ed3
DN
107992009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
10800
10801 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
10802
10803 * eval.c (Fautoload): Purecopy the filename. Simplify.
10804
10805 * category.c (Fdefine_category): Purecopy docstring.
10806
a599b3e8
AS
108072009-10-23 Andreas Schwab <schwab@linux-m68k.org>
10808
7b792fc9
AS
10809 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
10810
a599b3e8
AS
10811 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
10812
b35ac83e
CY
108132009-10-23 Chong Yidong <cyd@stupidchicken.com>
10814
10815 * window.c (Fwindow_edges, Fwindow_pixel_edges)
10816 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
10817 (Bug#4775).
10818
e8903e00
SM
108192009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
10820
10821 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
10822 (init_fileio_once):
10823 * lisp.h (init_fileio_once): Remove.
10824 * emacs.c (main): Don't call init_fileio_once.
10825
8f43cbf3
DN
108262009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
10827
10828 * puresize.h (BASE_PURESIZE): Increase to 1430000.
10829
26898943
AS
108302009-10-21 Andreas Schwab <schwab@linux-m68k.org>
10831
10832 * doprnt.c (doprnt): Fix overflow check.
10833
5c646d5a
JD
108342009-10-21 Jan Djärv <jan.h.d@swipnet.se>
10835
3132a7ea
JD
10836 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
10837
5c646d5a
JD
10838 * xterm.h (x_wait_for_event): Declare it.
10839
10840 * xterm.c (pending_event_wait): New variable.
10841 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
10842 see pending_event_wait.eventtype.
10843 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
10844 (x_new_font): Call change_frame_size with new rows/columns before we
10845 try to resize the frame.
5c646d5a 10846 (x_wait_for_event): New function.
d528b1ce
SM
10847 (x_set_window_size_1): Don't change gravity unless change_gravity
10848 is set.
5c646d5a
JD
10849 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
10850 don't change frame size, instead wait for the ConfigureNotify.
10851 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
10852 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
10853 (x_initialize): Initialize pending_event_wait.
10854
10855 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
10856 size.
10857
10858 * widget.c (EmacsFrameSetValues): Add comment.
10859 (EmacsFrameSetCharSize): Just call x_set_window_size.
10860
10861 * gtkutil.c (xg_frame_set_char_size): Flush events and call
10862 x_wait_for_event.
d528b1ce 10863 (flush_and_sync): Remove again.
5c646d5a
JD
10864 (xg_get_font_name): Suggest monospace if no previous font is known.
10865
e9c1637d
SM
108662009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
10867
10868 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 10869 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 10870
5a72cccb
YM
108712009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10872
10873 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
10874 processing pending events when event is filtered for input method.
ab04798f 10875 (Bug#3681)
5a72cccb 10876
2629aa37
JB
108772009-10-20 Juanma Barranquero <lekktu@gmail.com>
10878
10879 * fns.c: Add #endif accidentally removed in previous change.
10880
c3417a74
DN
108812009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
10882
10883 * fns.c: Remove code for unsupported system: MAC_OS.
10884 * image.c: Likewise. Include setjmp.h.
10885
9685cef2
JD
108862009-10-19 Jan Djärv <jan.h.d@swipnet.se>
10887
10888 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
10889 pixel -1 (bug #4742).
10890
d7306fe6
DN
108912009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
10892
019d2c4c
DN
10893 * process.c (create_pty): Remove conditionals for no longer
10894 supported systems: UNIPLUS and RTU.
10895
ee6bacd4
DN
10896 * xterm.c:
10897 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
10898
d7306fe6
DN
10899 * alloc.c: Do not define struct catchtag.
10900 * eval.c: Move struct catchtag definition ...
10901 * lisp.h: ... here.
10902
10903 * image.c: Move png.h #include earlier to avoid warnings.
10904
10905 * xterm.c:
10906 * xsmfns.c:
10907 * xselect.c:
10908 * xrdb.c:
10909 * xmenu.c:
10910 * xftfont.c:
10911 * xfont.c:
10912 * xfns.c:
10913 * xfaces.c:
10914 * xdisp.c:
10915 * window.c:
10916 * widget.c:
10917 * w32xfns.c:
10918 * w32uniscribe.c:
10919 * w32term.c:
10920 * w32select.c:
10921 * w32reg.c:
10922 * w32proc.c:
10923 * w32menu.c:
10924 * w32inevt.c:
10925 * w32heap.c:
10926 * w32font.c:
10927 * w32fns.c:
10928 * w32console.c:
10929 * w32.c:
10930 * w16select.c:
10931 * vm-limit.c:
10932 * unexsol.c:
10933 * unexec.c:
10934 * unexcw.c:
10935 * unexaix.c:
10936 * undo.c:
10937 * tparam.c:
10938 * textprop.c:
10939 * terminfo.c:
10940 * terminal.c:
10941 * termcap.c:
10942 * term.c:
10943 * syntax.c:
10944 * sound.c:
10945 * sheap.c:
10946 * search.c:
10947 * scroll.c:
10948 * region-cache.c:
10949 * regex.c:
10950 * ralloc.c:
10951 * process.c:
10952 * print.c:
b024548b
DN
10953 * nsterm.m:
10954 * nsselect.m:
10955 * nsmenu.m:
10956 * nsimage.m:
10957 * nsfont.m:
10958 * nsfns.m:
d7306fe6
DN
10959 * msdos.c:
10960 * minibuf.c:
10961 * menu.c:
10962 * marker.c:
10963 * macros.c:
10964 * keymap.c:
10965 * keyboard.c:
10966 * intervals.c:
10967 * insdel.c:
10968 * indent.c:
10969 * gtkutil.c:
10970 * ftxfont.c:
10971 * ftfont.c:
10972 * fringe.c:
10973 * frame.c:
10974 * fontset.c:
10975 * font.c:
10976 * fns.c:
10977 * floatfns.c:
10978 * filelock.c:
10979 * fileio.c:
10980 * emacs.c:
10981 * editfns.c:
10982 * dosfns.c:
10983 * doprnt.c:
10984 * doc.c:
10985 * dispnew.c:
10986 * dired.c:
10987 * dbusbind.c:
10988 * data.c:
10989 * composite.c:
10990 * coding.c:
10991 * cmds.c:
10992 * cm.c:
10993 * chartab.c:
10994 * charset.c:
10995 * character.c:
10996 * ccl.c:
10997 * category.c:
10998 * casetab.c:
10999 * casefiddle.c:
11000 * callproc.c:
11001 * callint.c:
11002 * bytecode.c:
11003 * buffer.c:
11004 * atimer.c: Include setjmp.h. (Bug#4643)
11005
fd5f21e6
SM
110062009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
11007
4c0354d7
SM
11008 Remove leftover table unibyte_to_multibyte_table.
11009 * character.c (unibyte_to_multibyte_table): Remove.
11010 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
11011 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
11012 * character.h (UNIBYTE_TO_CHAR): New macro.
11013 (MAKE_CHAR_MULTIBYTE): Use it.
11014 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
11015 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
11016 (message_dolog, set_message_1):
11017 * search.c (Freplace_match):
11018 * editfns.c (Fcompare_buffer_substrings):
11019 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
11020 (concat):
11021 * insdel.c (copy_text, count_size_as_multibyte):
11022 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
11023 * term.c (produce_glyphs):
11024 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
11025 * regex.c (RE_CHAR_TO_MULTIBYTE):
11026 * cmds.c (internal_self_insert):
11027 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
11028
fd5f21e6
SM
11029 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
11030
4418646e
DN
110312009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
11032
11033 * puresize.h (BASE_PURESIZE): Increase to 1310000.
11034
35f5c1d2
JB
110352009-10-16 Juanma Barranquero <lekktu@gmail.com>
11036
11037 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
11038
a0cd8f6b
AR
110392009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
11040
11041 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
11042 still needed under Tiger.
11043
11044 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
11045
11046 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
11047 __Apple__.
11048
11049 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
11050
01a8d3fa
KH
110512009-10-15 Kenichi Handa <handa@m17n.org>
11052
11053 * print.c (print_object): Escape a symbol like "2E10" too.
11054
bf6c75c9 110552009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
11056
11057 Cleanups and changes for 64-bit compile under Snow Leopard.
11058 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
11059
11060 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
11061
c5959062 11062 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
11063 (ns_findfonts, nsfont_list_family): Use long format in printf, and
11064 cast argument.
11065 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 11066 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
11067
11068 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
11069
11070 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
11071 where appropriate.
11072
11073 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
11074 where appropriate.
6e4780c5
JB
11075 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
11076 Use stringWithUTF8String.
bf6c75c9
AR
11077 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
11078
6e4780c5
JB
11079 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
11080 Add formal protocol mention to inheritance.
bf6c75c9
AR
11081 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
11082
6e4780c5
JB
11083 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
11084 Fix printf format.
bf6c75c9
AR
11085 (ns_query_color): Use CGFloat where appropriate.
11086 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 11087 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
11088 argument.
11089
3d87f118
AR
11090 * config.in (NS_HAVE_NSINTEGER): Drop.
11091
a95c8102
AR
11092 * dbusbind.c (dbus-method-return-internal)
11093 (dbus-method-error-internal): Use long format in printf, and cast
11094 argument.
11095
11096 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
11097 in printf, and cast argument.
11098
6873acca 11099 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
11100 cast argument.
11101
9ec6f100
GM
111022009-10-11 Glenn Morris <rgm@gnu.org>
11103
11104 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
11105
5be883cd
JD
111062009-10-08 Jan Djärv <jan.h.d@swipnet.se>
11107
11108 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
11109 menu bar with a small width so it doesn't enlarge the frame.
11110
d7a39b51
JB
111112009-10-08 Juanma Barranquero <lekktu@gmail.com>
11112
11113 * fontset.c (Fset_fontset_font): Fix typos in error messages.
11114
0c2b6f8e
GM
111152009-10-06 Glenn Morris <rgm@gnu.org>
11116
11117 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
11118 SOME_MACHINE_LISP (this enters indirectly via DOC).
11119
e02131a2
EZ
111202009-10-05 Eli Zaretskii <eliz@gnu.org>
11121
11122 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
11123
b4744254
EZ
111242009-10-04 Eli Zaretskii <eliz@gnu.org>
11125
11126 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
11127 Doc fix.
11128
dbf64827
JB
111292009-10-03 Martin Rudalics <rudalics@gmx.at>
11130
11131 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
11132
e9a0aef8
MA
111332009-10-02 Michael Albinus <michael.albinus@gmx.de>
11134
d528b1ce 11135 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
11136 used anymore outside fileio.c.
11137
11138 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
11139
64eb2b56
JB
111402009-10-01 Juanma Barranquero <lekktu@gmail.com>
11141
11142 * lisp.h (Qdelete_directory_internal):
11143 Declare, instead of Qdelete_directory.
11144
11145 * w32fns.c (Fsystem_move_file_to_trash): Use it.
11146
9d28c33e
SM
111472009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
11148
11149 * eval.c (Fcalled_interactively_p): Add `kind' argument.
11150
9d8f3bd9
MA
111512009-10-01 Michael Albinus <michael.albinus@gmx.de>
11152
9d28c33e 11153 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
11154 Fdelete_directory. It is not a command anymore. It has no file
11155 name handler.
11156
9694740b
SM
111572009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
11158
11159 * xdisp.c (get_next_display_element): Use an enum in last change.
11160
748e162f
KH
111612009-09-28 Kenichi Handa <handa@m17n.org>
11162
9694740b 11163 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
11164 unibyte_display_via_language_environment in handling
11165 Vnobreak_char_display.
11166
17efd58d
AR
111672009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11168
11169 * nsterm.h (ns_app_name): New extern variable.
11170
11171 * nsterm.m (ns_app_name): New variable.
11172 (ns_term_init): Set and use it.
11173 (ns_term_shutdown): Use it.
11174
11175 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
11176 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
11177
11178 * nsfns.m (ns_set_name_iconic, ns_set_name)
11179 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
11180 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
11181
9694740b
SM
11182 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
11183 Remove double-casting in client_data comparison.
31c2d412 11184
3208cb35
YM
111852009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11186
11187 * keyboard.c (make_lispy_event): Remember last wheel direction.
11188 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
11189
b7d552d6
GM
111902009-09-26 Glenn Morris <rgm@gnu.org>
11191
11192 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
11193 internal.elc. Add term/pc-win.elc.
11194 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
11195 term/x-win.elc.
11196 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
11197 term/w32-win.elc.
11198 (NS_SUPPORT): New.
11199 (lisp): Add NS_SUPPORT.
11200 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
11201
4ff670a8
DR
112022009-09-25 David Reitter <david.reitter@gmail.com>
11203
11204 * nsmenu.m (EmacsMenu-clear): Recognize application menu
11205 on Mac OS X 10.6+ (bug#4513).
11206
feabfb6c
JB
112072009-09-24 Juanma Barranquero <lekktu@gmail.com>
11208
11209 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
11210 some parts of Emacs code (like font selection) don't grok them.
11211 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 11212
de59072a
AS
112132009-09-24 Andreas Schwab <schwab@redhat.com>
11214
11215 * coding.c (decode_coding_iso_2022): Fix operator precedence.
11216
a489517b
JB
112172009-09-24 Juanma Barranquero <lekktu@gmail.com>
11218
11219 * dired.c (Fdirectory_files): Fix typo in docstring.
11220
0592970c
AR
112212009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
11222
11223 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
11224 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
11225 (EmacsScroller-setPosition:portion:whole:): Remove -display call
11226 under GNUstep.
11227 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
11228
11229 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
11230 glyph advancement.
11231
48e8a88b
AR
112322009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
11233
11234 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 11235 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
11236
11237 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
11238 deleted (bug #4492).
11239
e14f0a78
AR
11240 * nsfont.m (Vns_reg_to_script): New lisp variable.
11241 (syms_of_nsfont): Declare it.
11242 (ns_registry_to_script): New function.
11243 (ns_get_req_script): Call it.
11244 (ns_findfonts): Don't give up on non-unicode registry.
11245
11246 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
11247
5b650faa
SM
112482009-09-20 Tom Tromey <tromey@redhat.com>
11249
11250 * eval.c (find_handler_clause): Make stack-trace-on-error work in
11251 batch mode (bug#4228).
11252
a489517b 112532009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
11254
11255 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 11256 carefully. (Bug #4339)
0bae4e09 11257
fcfe06f3
CY
112582009-09-18 Chong Yidong <cyd@stupidchicken.com>
11259
d798ba87 11260 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 11261
31642728
AR
112622009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
11263
11264 * emacs.c (inhibit_x_resources): Update doc string for NS.
bba3e508
SM
11265 (main) [HAVE_NS]: Don't process --no-init-file option.
11266 Remove legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
11267
11268 * nsterm.h (ns_no_defaults): Remove.
11269
11270 * nsterm.m (ns_no_defaults): Remove.
11271 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
11272 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
11273 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
11274 don't update the NSWindow itself.
bba3e508
SM
11275 (EmacsView-windowWillUseStandardFrame:defaultFrame:):
11276 Improve state detection and store user rect ourselves. (Bug #3581)
31642728
AR
11277
11278 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
11279 ns_use_qd_smoothing.
11280
11281 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
11282 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 11283 (x-close-connection): Drop PSFlush() under OS X.
a489517b 11284 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 11285
8686ac71
JB
112862009-09-17 Juanma Barranquero <lekktu@gmail.com>
11287
11288 * emacs.c (inhibit_x_resources): New variable.
11289 (main) [HAVE_NS]: Don't process --quick command line option.
11290 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
11291
11292 * lisp.h (inhibit_x_resources): Declare it extern.
11293
11294 * w32reg.c (x_get_string_resource):
11295 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
11296
e227ba05
EZ
112972009-09-17 Eli Zaretskii <eliz@gnu.org>
11298
362654a6
JB
11299 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
11300 Add lisp/term/internal.elc.
e227ba05 11301
742d40e8
SM
113022009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
11303
11304 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
11305 (bug#4461).
11306
005bd5a2
DN
113072009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
11308
11309 * puresize.h (BASE_PURESIZE): Increase to 1290000.
11310
11311 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
11312 (OBJECTS_MACHINE): Remove, unused.
11313
f9af9719
SM
113142009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
11315
11316 * frame.c (x_get_resource_string): Remove unused.
11317
0307c7d2
JD
113182009-09-15 Jan Djärv <jan.h.d@swipnet.se>
11319
11320 * xterm.c (x_new_font): Call change_frame_size before calling
11321 x_set_window_size, in case frame size won't change.
11322
11323 * frame.c (x_set_font): Remove dead code.
11324
428b13d6
SM
113252009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
11326
11327 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
11328
5766c380
SM
113292009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
11330
11331 * lread.c (Fload): Don't output a message after loading an obsolete
11332 package any more (done in Lisp now).
11333
2fd0161b
CY
113342009-09-12 Chong Yidong <cyd@stupidchicken.com>
11335
11336 * fns.c (syms_of_fns): Doc fix (Bug#4227).
11337
bc5e75b6
SM
113382009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
11339
11340 * keymap.c (Fwhere_is_internal): Use nconc2.
11341
c31c985e
AM
113422009-09-11 Alan Mackenzie <acm@muc.de>
11343
11344 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
11345 batch mode.
11346
78012bd2
AS
113472009-09-11 Andreas Schwab <schwab@linux-m68k.org>
11348
11349 * xdisp.c (display_mode_element): Detect cycles.
11350
9d889332
SM
113512009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
11352
11353 * keymap.c (where_is_internal): Don't erroneously return nil right after
11354 filling the cache.
11355 (where_is_internal_1): Fix up typo.
11356
7ab5d780
GM
113572009-09-11 Glenn Morris <rgm@gnu.org>
11358
11359 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
11360 share a common doc-string.
11361
5238a749
SM
113622009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
11363
66d77eda
SM
11364 * keymap.c (get_keymap): Return the actual keymap symbol rather than
11365 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
11366
5238a749
SM
11367 * keymap.c (QCadvertised_binding): New constant.
11368 (syms_of_keymap): Initialize it.
11369 (Fwhere_is_internal): Try and use bindings from :advertised-binding
11370 if applicable.
11371
19f48442
SM
113722009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
11373
50d4ba39
SM
11374 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
11375 (parse_menu_item): Streamline since bindings are recomputed all the
11376 time anyway. Don't bother checking Vdefine_key_rebound_commands any
11377 more and don't support lmenu's menu-alias any more either.
11378
a88a5372
SM
11379 * keymap.c (where_is_internal_data): Make noindirect a boolean.
11380 (where_is_internal): Strip it down to only traverse the keymaps.
11381 Move the cache handling from Fwhere_is_internal to here.
11382 (Fwhere_is_internal): Move the handling of remapping and the choice of
11383 the best binding from where_is_internal to here.
11384 Unify the cached/noncached paths, so remapping is also handled
11385 correctly when the cache is used, and so the cache can be used to
11386 speed up remap-handling when applicable.
11387 Give preference to non-remapped bindings.
11388 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
11389 non-remapped bindings.
11390 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
11391 command remapping.
11392
19f48442
SM
11393 * xdisp.c (display_mode_element): Move list length limit from 50 to
11394 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
11395
599498c3 113962009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
11397
11398 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
11399
f9b7b5ac
SM
114002009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
11401
a53af587
JB
11402 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
11403 (Bug#4334)
11404
f9b7b5ac
SM
11405 * keymap.c (where_is_internal): Filter out shadowed remappings.
11406 Assume that where_is_internal returns unshadowed bindings to simplify
11407 the code and get rid of the gotos. Use ASIZE.
11408
04f4b72d
JD
114092009-09-04 Jan Djärv <jan.h.d@swipnet.se>
11410
4da146f2
JD
11411 * xterm.c (x_focus_changed): If we get a focusout and pointer
11412 is invisible, make it visible.
11413
04f4b72d
JD
11414 * xterm.h: Remove condition for declaration of
11415 x_*_window_to_frame.
11416
7cef7ce3
SM
114172009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
11418
11419 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
11420 initial terminal as well.
11421
a54fa5b7
JD
114222009-09-02 Jan Djärv <jan.h.d@swipnet.se>
11423
11424 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 11425 x_menubar_window_to_frame.
a54fa5b7 11426
50426a04 11427 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
11428 (XTmouse_position): Do not return valid positions
11429 for clicks in the menubar and the toolbar for Gtk+.
11430
11431 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
11432 if the widget for the event has the same top level as a frame,
11433 return the frame.
11434 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
11435 internal windows, bug #4122.
11436 (x_non_menubar_window_to_frame): Remove.
11437
5a021dd0
GM
114382009-09-02 Glenn Morris <rgm@gnu.org>
11439
11440 * buffer.c (default-major-mode): Move most of the doc from here...
11441 (major-mode): ... to here.
11442
548fe2f3
NR
114432009-08-30 Nick Roberts <nickrob@snap.net.nz>
11444
11445 * process.c (wait_reading_process_output): Keep the descriptor
11446 when pty is used by a non-child process, e.g., in I/O buffer of
11447 GDB this allows inferior to be restarted.
11448
e0840eef
EZ
114492009-08-29 Eli Zaretskii <eliz@gnu.org>
11450
11451 * xdisp.c (redisplay_internal): Remove redundant test and collapse
11452 both branches into one.
11453
82e98df4
SM
114542009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
11455
11456 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
11457 (main): Use enable-multibyte-characters rather than
11458 default-enable-multibyte-characters. Output a warning message when
11459 running a unibyte session.
11460
890617cb
YM
114612009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11462
11463 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
11464 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
11465 (copy_data_segment): Also copy __program_vars section.
11466 (copy_dyld_info) [LC_DYLD_INFO]: New function.
11467 (dump_it) [LC_DYLD_INFO]: Use it.
11468
11469 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
11470
e7adeadc
EZ
114712009-08-28 Eli Zaretskii <eliz@gnu.org>
11472
11473 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
11474 $(SRC)/buildobj.h.
ef1b0ba7 11475 (buildobj.h): Rename from $(SRC)/buildobj.h.
e7adeadc
EZ
11476 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
11477 $(SRC)/buildobj.h.
11478 (clean): Add buildobj.h.
11479
3ed8bbdc
TZ
114802009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
11481
11482 * print.c (print_object): Set escapeflag to 1 when printing
11483 hashtable keys and values.
11484
155a6764
SM
114852009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
11486
11487 * lread.c (read_integer): Use doubles (and potentially return a float
11488 number) as we do in string-to-number.
11489 (read1): Use strtol to read integers, signal errors on strtol's
11490 overflow and use floats if strtol's output is too large for
11491 Elisp integers.
11492
877610de
EZ
114932009-08-27 Eli Zaretskii <eliz@gnu.org>
11494
11495 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
11496 (make-buildobj-SH): Fix last change.
11497 (SRC): Move to before where it's first used.
11498
ef73e7be
KH
114992009-08-27 Kenichi Handa <handa@m17n.org>
11500
550c8289
KH
11501 * process.c (send_process): Use encode_coding_object instead of
11502 encode_coding_string to perform eol-conversion even if the string
11503 is unibyte.
11504
60afa08d
KH
11505 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
11506 character.
11507
ef73e7be 11508 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 11509 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 11510
7b3a82d7
DN
115112009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
11512
5654bf63
DN
11513 * callproc.c (Fcall_process): Remove always true #if.
11514
7b3a82d7
DN
11515 * lisp.h: Replace #if 0 code for checking with text pointing to
11516 the --enable-checking configure flag.
11517
11518 * emacs.c (main): Mention the --enable-profiling configure flag
11519 instead of using CFLAGS.
11520
878bde49
KR
115212009-08-26 Ken Raeburn <raeburn@raeburn.org>
11522
11523 * Makefile.in (buildobj.h): New target.
11524 (doc.o): Depend on it.
11525 (temacs${EXEEXT}): Don't generate buildobj.lst.
11526 (mostlyclean): Delete buildobj.h, not buildobj.lst.
11527 * makefile.w32-in ($(SRC)/buildobj.h): New target.
11528 ($(BLD)/doc.$(O)): Depend on it.
11529 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
11530 provided by Eli Zaretskii.)
11531 ($(TEMACS)): Don't generate buildobj.lst.
11532 * doc.c: Include buildobj.h.
11533 (buildobj): New static variable.
11534 (Fsnarf_documentation): Use it, instead of opening and reading
11535 buildobj.lst.
11536
1574224c
MA
115372009-08-25 Michael Albinus <michael.albinus@gmx.de>
11538
11539 * dbusbind.c (Fdbus_call_method)
11540 (Fdbus_call_method_asynchronously): Use English numeric format for
11541 timeout values in doc string.
11542
d9da2f45
KH
115432009-08-25 Kenichi Handa <handa@m17n.org>
11544
ef73e7be
KH
11545 * alloc.c (mark_char_table): New function.
11546 (mark_object): Use mark_char_table for a char-table.
11547
d9da2f45
KH
11548 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
11549 (CHAR_TABLE_REF): Use it.
11550
c8edcc01
KR
115512009-08-23 Ken Raeburn <raeburn@raeburn.org>
11552
11553 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
11554 before invoking the newly build emacs to check for load-path
11555 shadowing.
11556
7763401b
GM
115572009-08-22 Glenn Morris <rgm@gnu.org>
11558
11559 * Makefile.in (bootstrap_exe): New variable.
11560 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
11561 Use ${bootstrap_exe}.
11562
729eadda
EZ
115632009-08-22 Eli Zaretskii <eliz@gnu.org>
11564
11565 * coding.h (encode_coding_string): Don't encode unibyte strings.
11566 (Bug#4047)
11567
eb4c6ace
MA
115682009-08-22 Michael Albinus <michael.albinus@gmx.de>
11569
11570 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
11571
11572 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
11573 intended as hotfix only.
11574 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
11575
36e34d1b
AR
115762009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
11577
11578 * nsterm.m (ns_get_color): Update documentation properly for last
bba3e508
SM
11579 change, and clean up loose ends in the code left by it.
11580 Fix longstanding bug with 16-bit hex parsing, and add support for
36e34d1b
AR
11581 yet another X11 format (rgb:r/g/b) for compatibility.
11582 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
11583 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
11584
f983eb8a
SM
115852009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
11586
11587 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
11588
3f56d3c6
MA
115892009-08-20 Michael Albinus <michael.albinus@gmx.de>
11590
11591 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
11592 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
11593 (xd_initialize, xd_pending_messages): Check, whether
11594 $DBUS_SESSION_BUS_ADDRESS is set.
11595
fb641d68
YM
115962009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11597
11598 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
11599
11600 * nsterm.m (ns_get_color): Remove incompatible color formats again.
11601
cf59a374
GM
116022009-08-20 Glenn Morris <rgm@gnu.org>
11603
11604 * emacs.c (system-type): Doc fix.
11605
1373f3be
SM
116062009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
11607
11608 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
11609 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
11610
058ed861
MA
116112009-08-18 Michael Albinus <michael.albinus@gmx.de>
11612
1373f3be
SM
11613 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
11614 New functions.
058ed861
MA
11615 (xd_initialize): Revert change from 2009-08-16.
11616
563a866e 116172009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
11618
11619 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 11620 font-group vector, return nil.
5fc05db0 11621
e42bdf01
CY
116222009-08-17 Chong Yidong <cyd@stupidchicken.com>
11623
11624 * process.c (status_notify): Don't perform redisplay.
11625 (Fdelete_process, list_processes_1, process_send_signal):
11626 Expliticly perform redisplay.
11627 (wait_reading_process_output): Always check process status, but
11628 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
11629
4230ab74
KR
116302009-08-17 Ken Raeburn <raeburn@raeburn.org>
11631
1373f3be 11632 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
11633 (XFLOAT_INIT): New macro for storing a float value.
11634 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
11635 * fns.c (sxhash): Copy out the value of a float in order to
11636 examine its bytes.
11637 * dbusbind.c (xd_append_arg): Likewise.
11638
4230ab74
KR
11639 * emacs.c (main): Don't call syms_of_data twice.
11640
a0645cdd
MA
116412009-08-16 Michael Albinus <michael.albinus@gmx.de>
11642
11643 * dbusbind.c (xd_initialize): Add connection file descriptor to
11644 input_wait_mask, in order to let select() detect, whether a new
11645 message has been arrived.
ca4f31ea 11646 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 11647
485db0ba
MA
116482009-08-15 Michael Albinus <michael.albinus@gmx.de>
11649
1373f3be
SM
11650 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
11651 New functions.
485db0ba
MA
11652
11653 * lisp.h (xd_pending_messages): Declare.
11654
11655 * keyboard.c (readable_events): Call xd_pending_messages.
11656
b5b98ff4
CY
116572009-08-15 Chong Yidong <cyd@stupidchicken.com>
11658
1373f3be 11659 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 11660
f8354c6e
CY
11661 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
11662
b5b98ff4
CY
11663 * buffer.c (set_buffer_internal_1)
11664 (swap_out_buffer_local_variables): Check for unbound local
11665 variables (Bug#4138).
11666
8b9fc636
EZ
116672009-08-14 Eli Zaretskii <eliz@gnu.org>
11668
11669 * process.c (create_pty): Fix last change.
11670
ce959360
CY
116712009-08-13 Chong Yidong <cyd@stupidchicken.com>
11672
11673 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
11674 (xbm_load_image): Caller changed.
64b807c9 11675 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 11676
c7baf7e9
NR
116772009-08-13 Nick Roberts <nickrob@snap.net.nz>
11678
11679 * process.c (create_pty): New function.
11680 (Fstart_process): Use it to allow Emacs to just associate a pty
11681 with the buffer. See associated change in gdb-mi.el.
11682 (list_processes_1): Deal with no program name.
11683 (start_process_unwind): Use pid == -2 to mean no process.
11684
1ac9108a
SM
116852009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
11686
11687 * cmds.c (nonundocount): New global variable.
11688 (keys_of_cmds): Initialize it.
11689 (Fself_insert_command): Use it to combine upto 20 sequential chars
11690 into a single undo entry, just like the Qself_insert_command code in
11691 keyboard.c does.
11692 Call frame_make_pointer_invisible, also like the Qself_insert_command
11693 code in keyboard.c does.
11694 * keyboard.c (command_loop_1): Use the new global nonundocount rather
11695 than its own local replacement for it.
11696
e267324c
KR
116972009-08-10 Ken Raeburn <raeburn@raeburn.org>
11698
1ac9108a 11699 * fns.c (concat): Don't re-set string length to its current value.
77437343 11700
1ac9108a
SM
11701 * coding.h (decode_coding_string, encode_coding_string):
11702 Use SBYTES macro.
f0bed503 11703
1ac9108a 11704 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
11705 (doprnt): Merge with doprnt1, discarding lispstrings code.
11706 * lisp.h (doprnt_lisp): Don't declare.
11707
416e006d
JL
117082009-08-07 Juri Linkov <juri@jurta.org>
11709
11710 * puresize.h (BASE_PURESIZE): Increase to 1270000.
11711
6f7d5780
DN
117122009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
11713
11714 * print.c (syms_of_print): Undo previous change.
11715
f19a0f5b
TZ
117162009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
11717
11718 * lread.c (read1, syms_of_lread): Read hashtables back from the
11719 readable format.
11720
11721 * print.c (print_preprocess, print_object): Print hashtables fully
11722 and readably.
11723 (syms_of_print): Provide 'hashtable-print-readable.
11724
b9173dc2
AR
117252009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
11726
11727 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
11728 no family set.
11729 (nsfont_open): Handle case when entity has no family.
11730
1586503c
AR
117312009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
11732
11733 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
11734 element, not a list, for match case.
11735
087048cd
KH
117362009-07-28 Kenichi Handa <handa@m17n.org>
11737
11738 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
11739 rigidly.
11740
11741 * xfont.c (xfont_list_pattern): Don't ignore the return value of
11742 font_parse_xlfd. Check font properties more rigidly.
11743
780c2506
DN
117442009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
11745
31fd7c5c
JB
11746 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
11747 bsd-common.h.
780c2506 11748
a8c0cc18
KH
117492009-07-27 Kenichi Handa <handa@m17n.org>
11750
11751 * xfaces.c (face_with_height): Call font_clear_prop.
11752
4fbe2306
CY
117532009-07-26 Chong Yidong <cyd@stupidchicken.com>
11754
111d9af3
CY
11755 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
11756
11757 * xterm.c (x_term_init): Use Qx.
11758
4fbe2306
CY
11759 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
11760
1ac9108a 11761 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
11762 (ns_get_color): Revert 2009-07-16 change.
11763
beb0b7f9
EZ
117642009-07-25 Eli Zaretskii <eliz@gnu.org>
11765
11766 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 11767 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 11768
2baf5e76
KR
117692009-07-25 Ken Raeburn <raeburn@raeburn.org>
11770
1ac9108a
SM
11771 * coding.h (decode_coding_string, encode_coding_string):
11772 Use SCHARS macro.
8890e5f5 11773
2baf5e76 11774 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 11775 (load_depth): Delete.
2baf5e76
KR
11776 (Qload_in_progress): New variable.
11777 (load_unwind): Don't reference load_depth or load_in_progress.
11778 (Fload): Likewise; specbind Qload_in_progress instead.
11779 (init_lread): Don't initialize load_depth.
11780 (syms_of_lread): Initialize and protect Qload_in_progress.
11781
1395c6f5
AR
117822009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
11783
11784 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
11785
4e2f36cf
AR
117862009-07-23 Yavor Doganov <yavor@gnu.org>
11787
11788 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
11789
5dd9a6f7
AR
117902009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
11791
11792 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
11793 Bugs 3792, 3720, 2402.
11794 (ns_lookup_indexed_color): Check for bad index.
11795 (ns_index_color): Init unused slot to 0.
11796 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
11797 Bug 3714, possibly 3082.
5dd9a6f7 11798
c902b920
JR
117992009-07-22 Jason Rumney <jasonr@gnu.org>
11800
1ac9108a
SM
11801 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
11802 Position IME window at cursor (Bug#2570).
c902b920
JR
11803 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
11804 (globals_of_w32fns): Dynamically load functions required above.
11805
11806 * w32term.c (w32_draw_window_cursor): Send message to reposition
11807 any IME window.
11808
090101cf
CY
118092009-07-21 Chong Yidong <cyd@stupidchicken.com>
11810
11811 * fileio.c: Revert 2009-07-16 changes.
11812 (Vauto_save_include_big_deletions): New variable.
11813 (Fdo_auto_save): Disable auto-save only if
11814 auto-save-include-big-deletions is nil.
11815
e6583e3d
CY
118162009-07-21 Chong Yidong <cyd@stupidchicken.com>
11817
11818 * xdisp.c (move_it_to): For continued lines ending in a tab, take
11819 the overflowed pixels into account (Bug#3879).
11820
ece435a5
KR
118212009-07-21 Ken Raeburn <raeburn@raeburn.org>
11822
11823 * lread.c (load_depth): New variable.
11824 (Fload, load_unwind, init_lread): Set it to the load recursion
11825 depth; set load_in_progress as a simple boolean based on the
11826 current load_depth. (Bug#3892)
11827
40b2d973
AR
118282009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11829
11830 * nsfont.m (ns_has_attribute): Remove.
11831 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
11832
10be7e0d
JL
118332009-07-18 Juri Linkov <juri@jurta.org>
11834
11835 * process.c (Fset_process_query_on_exit_flag): Mention killing
11836 a buffer in docstring.
11837
fa055055
KH
118382009-07-17 Kenichi Handa <handa@m17n.org>
11839
11840 * casetab.c (shuffle): Fix the logic of setting up the cycle.
11841
042f7b69
YM
118422009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11843
11844 * nsfns.m (Fns_set_alpha): Remove function.
11845 (syms_of_nsfns): Don't defsubr it.
11846
11847 * nsterm.m (ns_get_color): Remove incompatible color formats.
11848 (ns_color_to_lisp): Generate #rrggbb color format string.
11849
4be941e3
RS
118502009-07-16 Richard Stallman <rms@gnu.org>
11851
11852 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
11853 (Fset_buffer_auto_saved): Handle save_length = -2.
11854
4e6b227d
CY
118552009-07-16 Chong Yidong <cyd@stupidchicken.com>
11856
11857 * xterm.c (Qx_gtk_map_stock): New var.
11858
11859 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
11860 of calling intern each time.
11861
a1856973
YM
118622009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11863
11864 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
11865 does tiling.
11866
11867 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
11868
497e54d8
KH
118692009-07-14 Kenichi Handa <handa@m17n.org>
11870
72d36834
KH
11871 * font.c (font_vconcat_entity_vectors): New function.
11872 (struct font_sort_data): New member font_driver_preference.
11873 (font_compare): Check font_driver_preference.
11874 (font_sort_entities): The format of the first argument changed.
11875 (font_delete_unmatched): Likewise.
11876 (font_list_entities): The return type changed.
11877 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
11878 (font_find_for_lface): Adjuste for the above changes.
11879 Don't suppress the checking of C even if the repertory supports it.
11880 (Flist_fonts): Adjust for the above changes.
72d36834 11881
1ac9108a
SM
11882 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
11883 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
11884 Reject a font who has adstyle property that is different from a
11885 langname derived from registry property.
1ac9108a 11886 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 11887
b6046155
EZ
118882009-07-13 Eli Zaretskii <eliz@gnu.org>
11889
11890 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
11891 local copy of dirfilename.
11892
fb6b6049
KH
118932009-07-13 Kenichi Handa <handa@m17n.org>
11894
e2402a5e
KH
11895 * chartab.c (sub_char_table_ref_and_range): Fix the range check
11896 against max_char.
11897
fb6b6049
KH
11898 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
11899 calling XSYMBOL (sym).
11900
65156807
EZ
119012009-07-11 Eli Zaretskii <eliz@gnu.org>
11902
1ac9108a
SM
11903 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
11904 New function.
11905 (directory_files_internal) [WINDOWSNT]:
11906 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
11907 the filesystem of the directory is fast or slow.
11908
11909 * w32.c (logon_network_drive): Don't assume PATH is an absolute
11910 file name.
11911 (is_slow_fs): New function.
11912 (stat): Use it to determine whether to issue more system calls to
11913 get accurate file attributes, when w32-get-true-file-attributes is
11914 `local'.
11915
e0ab5fcf
JD
119162009-07-10 Jan Djärv <jan.h.d@swipnet.se>
11917
11918 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 11919 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
11920 parameter font-parameter as default to the font dialog.
11921
784ceded
KH
119222009-07-10 Kenichi Handa <handa@m17n.org>
11923
11924 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
11925
fb8edc0b
EZ
119262009-07-09 Eli Zaretskii <eliz@gnu.org>
11927
1ac9108a 11928 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 11929
fb8edc0b
EZ
11930 * w32.c (stat): Treat UNC file names as residing on remote
11931 drives. (Bug#3542)
11932
635c75b1
KH
119332009-07-09 Kenichi Handa <handa@m17n.org>
11934
11935 * fontset.c (fontset_find_font): Fix previous change.
11936
c1d5ce94
MA
119372009-07-08 Michael Albinus <michael.albinus@gmx.de>
11938
11939 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
11940 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
11941 error flag.
11942
edb61b39
KH
119432009-07-08 Kenichi Handa <handa@m17n.org>
11944
374bf7e4
KH
11945 * fontset.c (fontset_find_font): Fix the logic of handling
11946 charset_matched.
11947 (font_for_char): Delete unused var.
11948 (generate_ascii_font_name): Delete it.
11949
edb61b39
KH
11950 * coding.h (JIS_TO_SJIS2): Fix the code range check.
11951
11952 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
11953 (encode_coding_sjis): Fix the code range check.
11954
0f3f018c
CY
119552009-07-07 Chong Yidong <cyd@stupidchicken.com>
11956
11957 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
11958 (Fexpand_file_name): Copy string data properly (Bug#3772).
11959
fcaf6f3a
JD
119602009-07-07 Jan Djärv <jan.h.d@swipnet.se>
11961
11962 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
11963 first MapNotify.
11964
6809ca75
KH
119652009-07-07 Kenichi Handa <handa@m17n.org>
11966
11967 * character.h (unibyte_has_multibyte_table): Delete extern.
11968 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
11969
11970 * charset.c (Fset_charset_priority): Update charset_unibyte.
11971 (syms_of_charset): Initialize charset_unibyte.
11972
11973 * character.c (unibyte_has_multibyte_table): Delete it.
11974 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
11975 charset_unibyte.
11976 (multibyte_char_to_unibyte_safe): Likewise.
11977 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
11978
1ac9108a 11979 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
11980 (x_produce_glyphs): Likewise.
11981
11982 * .gdbinit (xcharset): Fix the treating $arg0.
11983
ad9e2d54
EZ
119842009-07-04 Eli Zaretskii <eliz@gnu.org>
11985
11986 Emulation of `getloadavg' on MS-Windows.
50426a04 11987 * w32.c: Include float.h.
ad9e2d54
EZ
11988 (g_b_init_get_native_system_info, g_b_init_get_system_times)
11989 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
11990 (get_native_system_info, get_system_times): New functions.
11991 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
11992 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
11993 (globals_of_w32): Initialize g_b_init_get_native_system_info,
11994 g_b_init_get_system_times, and num_of_processors.
11995
0a3472c7
JR
119962009-07-03 Jason Rumney <jasonr@gnu.org>
11997
11998 * w32term.c (w32_initialize): Use standard types.
11999
80904120
EZ
120002009-07-03 Eli Zaretskii <eliz@gnu.org>
12001
12002 * dired.c (Ffile_attributes): Decode user and group names by the
12003 locale's encoding. (Bug#3443)
12004
6978862d
DN
120052009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
12006
f8d23104
DN
12007 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
12008 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
12009
12010 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
12011
12012 * term.c (init_tty): Remove spurious #ifdef.
12013
6978862d
DN
12014 * m/mips.h: Mention this file is also used for netbsd.
12015 * m/pmax.h: Remove file.
12016
e044e4fc
JD
120172009-07-03 Jan Djärv <jan.h.d@swipnet.se>
12018
12019 * xterm.h (struct x_display_info): Add invisible_cursor.
12020 (struct x_output): Add current_cursor.
12021
12022 * xterm.c (XTtoggle_invisible_pointer): New function.
12023 (x_define_frame_cursor): Don't define cursor if invisible or the
12024 same as before. Set current_cursor.
12025 (x_create_terminal): Set toggle_invisible_pointer_hook.
12026
12027 * xfns.c (make_invisible_cursor): New function.
12028 (x_set_mouse_color): Call make_invisible_cursor.
12029 Set current_cursor.
12030 (x_window): Set current_cursor.
12031
12032 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
12033
12034 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
12035 inserting a character.
12036 (read_avail_input): Call frame_make_pointer_visible.
12037
12038 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
12039 (frame_make_pointer_invisible, frame_make_pointer_visible):
12040 New functions.
e044e4fc
JD
12041 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
12042
12043 * frame.h: Declare frame_make_pointer_invisible and
12044 frame_make_pointer_visible.
12045 (struct frame): Add pointer_invisible.
12046
574c8efa
JD
120472009-07-02 Jan Djärv <jan.h.d@swipnet.se>
12048
7b507248
JD
12049 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
12050 frame isn't visible.
12051 (xg_frame_resized): If width/height is -1, get size of window
12052 from X server.
12053
12054 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
12055 for MapNotify.
12056
835bdaa7 12057 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 12058 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 12059 (flush_and_sync): Reintroduce.
574c8efa 12060
3f1c6666 120612009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 12062
31fd7c5c 12063 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
12064
12065 * xterm.c (x_handle_net_wm_state): Also look for sticky.
12066 (x_term_init): Initialize Xatom_net_wm_state_sticky.
12067
12068 * frame.h: Declare Qsticky.
12069
cad9ef74
JD
12070 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
12071
12072 * nsfns.m (ns_frame_parm_handlers): Ditto.
12073
12074 * frame.c: Declare Qsticky.
12075 (frame_parms): Add sticky.
12076
12077 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
12078
12079 * xterm.h: Declare x_set_sticky.
12080
12081 * xterm.c (x_set_sticky): New function.
12082
69b16610
JD
12083 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
12084 (xg_tool_bar_menu_proxy): Attach enter/leave events to
12085 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
12086
12087 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
12088
12089 * frame.c: Qmaximized is new.
12090 (x_set_frame_parameters): Do not handle fullscreen specially.
12091 Only set width and height if explicitly set.
12092 (x_set_fullscreen): Handle Qmaximized.
12093 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
12094 (syms_of_frame): Initialize Qmaximized.
12095
1ac9108a
SM
12096 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
12097 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
12098
12099 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
12100 for Expose event. Add call to x_check_fullscreen for MapNotify event.
12101 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
12102 set gravity to NorthWestGravity when USE_GTK.
12103 (set_wm_state): New function.
31fd7c5c 12104 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
12105 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
12106 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 12107 or the case when no window manager is running. That means remove calls
3f1c6666
JD
12108 to x_real_positions and x_fullscreen_adjust.
12109
12110 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
12111 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
12112 flush_and_sync.
12113 (xg_height_changed): New function.
12114 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
12115 and gtk_window_set_policy. Set frame gravity after parsing the
12116 geometry string.
3f1c6666
JD
12117 (xg_update_frame_menubar, free_frame_menubar)
12118 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
12119 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
12120 Remove calls to xg_frame_set_char_size.
12121
fd503d99
KH
121222009-07-01 Kenichi Handa <handa@m17n.org>
12123
12124 * keyboard.c (decode_keyboard_code): New function.
12125 (tty_read_avail_input): Decode the input bytes if necessary.
12126
1ac9108a
SM
12127 * coding.c (setup_coding_system):
12128 Initialize coding->carryover_bytes to 0.
fd503d99
KH
12129 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
12130 use Qno_conversion.
12131
24ed93fb
YM
121322009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12133
12134 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
12135
99061dfc
CY
121362009-06-30 Chong Yidong <cyd@stupidchicken.com>
12137
1ac9108a 12138 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 12139
ff90fbde
JR
121402009-06-30 Jason Rumney <jasonr@gnu.org>
12141
12142 * w32term.c (w32_initialize): Use GetModuleHandle for library that
12143 is already loaded.
12144 Set user model ID if supported (bug#1849).
12145
5f445726
JM
121462009-06-29 Jim Meyering <meyering@redhat.com>
12147
12148 Remove useless if-before-xfree test.
12149 * nsfont.m (nsfont_close): Remove useless test.
12150 * term.c (delete_tty): Likewise.
12151 * w32.c (system_process_attributes): Likewise.
12152 * w32font.c (w32font_close): Likewise.
12153 * xfaces.c (x_free_gc): Likewise.
12154 * xselect.c (buffer): Likewise.
12155
b9607587
AS
121562009-06-28 Andreas Schwab <schwab@linux-m68k.org>
12157
12158 * process.c (send_process): Keep decoded string in a local
12159 variable and protect it from GC. (Bug#3521)
12160
89ba96f4
EZ
121612009-06-28 Eli Zaretskii <eliz@gnu.org>
12162
12163 * term.c (create_tty_output) [MSDOS]: #ifdef away.
12164 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
12165
098a1589
CY
121662009-06-28 Chong Yidong <cyd@stupidchicken.com>
12167
485422be
CY
12168 * xdisp.c (start_display, handle_face_prop)
12169 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
12170 (redisplay_window, try_window_id, produce_image_glyph):
12171 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 12172
098a1589
CY
12173 * xterm.c (x_update_window_begin, x_new_focus_frame)
12174 (x_scroll_bar_handle_click, handle_one_xevent)
12175 (handle_one_xevent, XTread_socket, x_focus_on_frame)
12176 (x_make_frame_visible, x_make_frame_invisible)
12177 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
12178 code chunks that are now obsolete.
12179
78c38319
MA
121802009-06-28 Michael Albinus <michael.albinus@gmx.de>
12181
12182 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
12183 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
12184 for hours, when optimzation is enabled.
12185 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
12186 (xd_read_message): Make them static.
12187
4189ed40
CY
121882009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
12189
12190 * term.c (turn_on_face): Allow simultaneously bold and dim
12191 terminal faces (Bug#3530).
12192
cd9b5e16
CY
121932009-06-27 Chong Yidong <cyd@stupidchicken.com>
12194
4e23bedb
CY
12195 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
12196
cd9b5e16
CY
12197 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
12198 truncation glyphs (Bug#3686).
12199
07cc3c35
GM
122002009-06-27 Glenn Morris <rgm@gnu.org>
12201
12202 * m/pmax.h: Restore file, with only netbsd portions.
12203
31fd7c5c 122042009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 12205
cd9b5e16 12206 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 12207
42d4a64f
KH
122082009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
12209
12210 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
12211 the arg FORCE_SYMBOL.
12212
930fe55b 122132009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
12214
12215 * fontset.c (fontset_find_font): When a usable rfont_def is found
12216 in a fallback font-group, make it the first element of the group.
12217
57ebc3fd
CY
122182009-06-24 Chong Yidong <cyd@stupidchicken.com>
12219
12220 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
12221
f084f942
KH
122222009-06-24 Kenichi Handa <handa@m17n.org>
12223
12224 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
12225 set for C.
12226 (fontset_font): Record the availability of a font for C both in
12227 the realized fontsets of the current one and the default one.
12228
2f686c87
DN
122292009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
12230
12231 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
12232 conditional, it is always defined on AIX.
12233
666e158e
MB
122342009-06-23 Miles Bader <miles@gnu.org>
12235
12236 * window.c (Vrecenter_redisplay): New variable.
12237 (syms_of_window): Initialize it.
12238 (Qtty): New extern declaration.
12239 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
12240
c6da7cd2
JM
122412009-06-23 Jim Meyering <meyering@redhat.com>
12242
1ac9108a
SM
12243 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
12244 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 12245 pointer dereferences are guaranteed to be valid.
c6da7cd2 12246
678dca3d
KH
122472009-06-23 Kenichi Handa <handa@m17n.org>
12248
74d75424
KH
12249 * emacs.c (main): Call init_font ().
12250
12251 * font.h (Vfont_log): Extern it.
12252 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
12253
12254 * font.c (font_sort_entities, font_list_entities)
12255 (font_matching_entity, font_open_entity)
12256 (font_close_object): Change font_add_log to FONT_ADD_LOG.
12257 (Vfont_log): Delete static.
12258 (font_log_env_checked): Delete this variable.
12259 (font_add_log): Don't check font_log_env_checked.
12260 (font_deferred_log): Check Vfont_log.
12261 (init_font): New function.
12262
678dca3d
KH
12263 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
12264
12265 * w32font.c: Change font_add_log to FONT_ADD_LOG.
12266
12267 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
12268
12269 * xfont.c: Change font_add_log to FONT_ADD_LOG.
12270
12271 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
12272 (face_for_char): Don't call font_deferred_log here.
12273 (font_for_char): Likewise.
12274
8a668709
CY
122752009-06-22 Chong Yidong <cyd@stupidchicken.com>
12276
9a01ee33
CY
12277 * w32term.c (x_draw_glyph_string): Use the glyph string's width
12278 rather than its background_width for drawing the overline and
12279 underline (Bug#489).
12280
12281 * xterm.c (x_draw_glyph_string): Use the glyph string's width
12282 rather than its background_width for drawing the overline and
12283 underline (Bug#489).
ec7c9926
CY
12284 (xg_default_icon_file): New variable.
12285 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
12286 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 12287
8a668709
CY
12288 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
12289 (load_overlay_strings): Remove externs.
12290 (fast_find_position): Function deleted.
12291 (mouse_face_from_buffer_pos): New function, based on
12292 fast_find_position. Correctly handle before-strings,
12293 display-strings, and after-strings (Bug#1220).
12294 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
12295
4d4c02d8
CY
122962009-06-21 Chong Yidong <cyd@stupidchicken.com>
12297
1ac9108a 12298 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
12299 (move_it_in_display_line_to, move_it_in_display_line_to)
12300 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
12301
70243478
CY
123022009-06-21 Chong Yidong <cyd@stupidchicken.com>
12303
12304 * Branch for 23.1.
12305
13087e59
JR
123062009-06-21 Jason Rumney <jasonr@gnu.org>
12307
12308 * w32term.c (keyboard_codepage): New static variable.
12309 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
12310 (w32_read_socket) [WM_CHAR]: Use it to decode character
12311 input (bug#3237).
12312 (w32_initialize): Initialize it.
12313 (codepage_for_locale): New function.
12314
4735b74e
KR
123152009-06-20 Ken Raeburn <raeburn@raeburn.org>
12316
12317 * process.c (status_message): Pass Faset index argument as a lisp
12318 object, so as to work with USE_LISP_UNION_TYPE.
12319
0e727afa
YM
123202009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12321
12322 * coding.c (Ffind_coding_systems_region_internal):
12323 Cache checked characters.
12324
cf299835
KH
123252009-06-18 Kenichi Handa <handa@m17n.org>
12326
1ac9108a 12327 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 12328
90f20d94
AS
123292009-06-18 Andreas Schwab <aschwab@redhat.com>
12330
12331 * xdisp.c (redisplay_internal): Check that the frame is still
12332 live after redisplay of its windows.
12333 (redisplay_windows): Check that the window is still live.
12334
7f1faf1c
KH
123352009-06-17 Andreas Schwab <schwab@linux-m68k.org>
12336
12337 * coding.c (detect_coding_utf_16): Fix previous change.
12338
cc13543e
KH
123392009-06-16 Kenichi Handa <handa@m17n.org>
12340
12341 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
12342 UTF-16 by checking the dispersion of Eth and Oth bytes.
12343
977b85f4
AS
123442009-06-15 Andreas Schwab <schwab@linux-m68k.org>
12345
12346 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
12347
66bd43d1
KH
123482009-06-15 Kenichi Handa <handa@m17n.org>
12349
12350 * process.c (status_message): Fix previous change. Be sure to
12351 decode a localized string.
12352
cb5ca9c5
YM
123532009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12354
12355 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
12356 add comment explaining why.
12357
ec7709ba 123582009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 12359
ec7709ba 12360 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 12361
4b7f335c
AR
123622009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
12363
12364 * nsfont.m (ns_attribute_value): Remove.
12365 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
12366 (ns_has_attribute): Shrink the normal range.
12367 (ns_findfonts): Don't worry about requested spec in determining
12368 need for synthItal.
e41820ee 12369 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 12370
73b26103
SZ
123712009-06-14 Seiji Zenitani <zenitani@mac.com>
12372
12373 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
12374
5753e4da
KH
123752009-06-11 Kenichi Handa <handa@m17n.org>
12376
12377 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
12378 overhang for the static composition case.
12379
3561b671
KH
123802009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12381
5753e4da
KH
12382 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
12383 overhang for the automatic composition case.
12384
3561b671
KH
12385 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
12386 composition case.
12387
852bbd41
CY
123882009-06-10 Chong Yidong <cyd@stupidchicken.com>
12389
12390 * xdisp.c (get_next_display_element): When handling wrap-prefix
12391 and line-prefix, treat \n as a control character (bug#3502).
12392
9903d1e6
KH
123932009-06-10 Kenichi Handa <handa@m17n.org>
12394
12395 * font.c (font_parse_family_registry): Fix for one-char foundry.
12396 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
12397
0bcbaaaa
CY
123982009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
12399
12400 * process.c (status_message): Fix handling of multibyte signal
12401 string (Bug#3499).
12402
40aa3f13
JM
124032009-06-09 Jim Meyering <meyering@redhat.com>
12404
1f80c7e2
CY
12405 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
12406 color name is missing.
40aa3f13 12407
72d51285
KH
124082009-06-09 Kenichi Handa <handa@m17n.org>
12409
12410 * charset.c (Fmap_charset_chars): In docstring, state clearly that
12411 FROM-CODE and TO-CODE are codepoints of CHARSET.
12412
c1d04d84
AR
124132009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
12414
12415 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
12416
124172009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
12418
12419 Changes to support :script/:lang/:otf in NS font driver.
12420 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
12421 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
12422 indicate not part of font driver interface, and change callers.
12423 (ns_get_family): Remove pointless null check.
12424 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
12425 ns_spec_to_descriptor, ns_descriptor_to_entity.
12426 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
12427 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
12428 (ns_spec_to_descriptor, ns_descriptor_to_entity)
12429 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
12430 (ns_get_req_script, ns_accumulate_script_ranges)
12431 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
12432 New functions.
12433 (nsfont_list, nsfont_match): Use ns_findfonts.
12434 (nsfont_open): Use font descriptor instead of traits.
12435 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
12436 (dump_glyphstring): Rename to ns_dump_glyphstring.
12437
c7eb9816
AR
12438 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
12439
c1d04d84
AR
12440 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
12441
12442 * fontset.c (fontset_from_font): Remove NS-specific code.
12443
ec7709ba 124442009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
12445
12446 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
12447 nonactive windows.
12448
31fd7c5c 124492009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 12450
1ac9108a 12451 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 12452
68852c13 124532009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
12454
12455 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
12456
6756cd1d
CY
124572009-06-07 Chong Yidong <cyd@stupidchicken.com>
12458
12459 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
12460 account for the overflowing of newlines into the last glyph on the
12461 display line (Bug#3482).
12462
28bf482a
DR
124632009-06-05 David Reitter <david.reitter@gmail.com>
12464
ec7709ba
JB
12465 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
12466 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
12467 Fns_selection_exists_p, Fns_selection_owner_p.
12468
fdb55376
JR
124692009-06-03 Jason Rumney <jasonr@gnu.org>
12470
12471 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
12472 available. (Bug#3379)
12473
05129fbe
KH
124742009-05-29 Kenichi Handa <handa@m17n.org>
12475
1ac9108a
SM
12476 * coding.c (get_translation_table):
12477 Check Venable_character_translation.
05129fbe 12478
ec7709ba 124792009-05-26 David Reitter <david.reitter@gmail.com>
15891144 12480
ec7709ba
JB
12481 * nsterm.m (ns_raise_frame): Only raise frame if visible.
12482 (x_make_frame_visible): Move frame to front rather than calling
15891144 12483 ns_raise_frame().
ec7709ba 12484 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 12485 isn't key window.
ec7709ba 12486 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
12487 drawRect may be called by NSView even if the frame is hidden.
12488
ec7709ba
JB
12489 * nsfns.m (Fx_create_frame): Follow other ports in
12490 determining visibility; default to t. Ensure async_visible is set.
15891144 12491
21f73755
EZ
124922009-05-23 Eli Zaretskii <eliz@gnu.org>
12493
12494 * dired.c (Ffile_attributes): Doc fix.
12495
34001e41
CY
124962009-05-22 Chong Yidong <cyd@stupidchicken.com>
12497
12498 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
12499
46306a17
SM
125002009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
12501
12502 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
12503 and xfont_scratch_props.
12504 (syms_of_xfont): Do it here instead.
12505 (xfont_find_ccl_program): Delete, unused.
12506 (xfont_open): Delete unused var `i'.
12507
ef6e0694
KH
125082009-05-21 Kenichi Handa <handa@m17n.org>
12509
12510 * fontset.c (Qlatin): Don't make it static.
12511
46306a17
SM
12512 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
12513 New functions.
ef6e0694
KH
12514 (xfont_scripts_cache, xfont_scratch_props): New variables.
12515 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
12516 (xfont_list_pattern): Argument changed. Callers changed.
12517 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
12518 (xfont_list): Don't reject a font spec with :script property.
12519 (xfont_has_char): Fix setting of encoding.
12520 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
12521 xfont_scratch_props.
12522
125232009-05-19 Kenichi Handa <handa@m17n.org>
12524
46306a17 12525 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
12526 Callers changed.
12527
125282009-05-18 Kenichi Handa <handa@m17n.org>
12529
12530 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
12531
ac71ced7
SM
125322009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
12533
12534 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
12535 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
12536
1c6d1051
YM
125372009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12538
12539 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
12540 (x_delete_terminal): Dissociate resource database from display and
12541 then call XrmDestroyDatabase before closing display.
12542
9b9b779c
AR
125432009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
12544
12545 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
12546 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
12547 whether selected frame is viable before raising it (based on patch
12548 by David Reitter), and improve commentary.
12549 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 12550
cccd42d5
KH
125512009-05-15 Kenichi Handa <handa@m17n.org>
12552
12553 * font.c (Ffont_spec): Check arguments.
12554
337fbd17
CY
125552009-05-14 Chong Yidong <cyd@stupidchicken.com>
12556
12557 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
12558 weight when testing attributes (Bug#3282).
12559
47a6002f
JD
125602009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12561
12562 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
12563 what we expect to get in the next ConfigureNotify event.
12564
9cb363db
YM
12565 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
12566 before Xft one (Bug#1696).
12567
b9126609
CY
125682009-05-07 David Reitter <david.reitter@gmail.com>
12569
12570 * nsfns.m (Fx_display_planes): Compute bitplanes using
12571 NSBitsPerPixelFromDepth (Bug#3207).
12572
27a69fd9
CY
125732009-05-10 Chong Yidong <cyd@stupidchicken.com>
12574
12575 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
12576
00f37552
TTN
125772009-05-10 Ulrich Mueller <ulm@gentoo.org>
12578
12579 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
12580
2d82a920
DR
125812009-05-07 David Reitter <david.reitter@gmail.com>
12582
ec7709ba
JB
12583 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
12584 Respect mouse face background.
2d82a920 12585
46b0d52d
DR
125862009-05-07 David Reitter <david.reitter@gmail.com>
12587
ec7709ba
JB
12588 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
12589 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
12590 in ns_update_begin and ns_update_end.
12591
ce1b23bb
SM
125922009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
12593
5996e1b7
SM
12594 * nsfns.m (ns_get_screen): Rewrite.
12595 Don't presume selected-frame is of type `ns'.
12596
ba98e3a0
SM
12597 * font.c (font_update_drivers): Sanity fallback to avoid disabling
12598 all drivers.
12599
ce1b23bb
SM
12600 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
12601
bcda200f
YM
126022009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12603
12604 * keyboard.h (add_user_signal): Fix typo in extern.
12605
12606 * lisp.h (add_user_signal): Remove extern.
12607
12608 * unexelf.c (unexec): Consider a section to precede the .bss section
12609 if its addresses overlap that of .bss.
12610 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
12611 instead of dumping process.
12612
864660a2
SM
126132009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
12614
12615 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
12616
50da4e56
SM
126172009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
12618
12619 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
12620
51520a1a
DN
126212009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
12622
12623 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
12624 any statements.
12625
409ea3a1
AS
126262009-05-02 Andreas Schwab <schwab@linux-m68k.org>
12627
59c4c60f
AS
12628 * process.c (read_process_output): Make sure the current buffer is
12629 always restored.
12630
409ea3a1
AS
12631 * coding.c (record_conversion_result): Don't modify
12632 Vlast_code_conversion_error for successful result.
12633 (alloc_destination): Don't clobber conversion result. (Bug#1650)
12634
56f00ed2
KH
126352009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
12636
12637 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 12638 (load_charset_map): Remove unnecessary code.
56f00ed2 12639
4491c9d2
DR
126402009-04-30 David Reitter <david.reitter@gmail.com>
12641
35f5b128 12642 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
12643 through f24.
12644
6970f632
CY
126452009-04-30 Chong Yidong <cyd@stupidchicken.com>
12646
12647 * xfaces.c (face_at_buffer_position): New arg base_face_id.
12648
12649 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
12650 face_at_buffer_position.
12651 (face_before_or_after_it_pos, get_next_display_element)
12652 (note_mouse_highlight): Update face_at_buffer_position call.
12653
12654 * term.c (term_mouse_highlight):
12655 * msdos.c (IT_note_mouse_highlight):
12656 * fontset.c (Finternal_char_font):
35f5b128 12657 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
12658
12659 * dispextern.h (face_at_buffer_position): Update prototype.
12660
0c616f63
KH
126612009-04-30 Kenichi Handa <handa@m17n.org>
12662
35f5b128 12663 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 12664
ad3aaf33
AS
126652009-04-29 Andreas Schwab <schwab@linux-m68k.org>
12666
12667 * callproc.c (Fcall_process): Fix GC protection. Make sure
12668 current buffer is always restored.
12669
c3c963a0
YM
126702009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12671
12672 * atimer.c (init_atimer): Also clear stopped_atimers.
12673
12674 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
12675
7e3386cb
YM
12676 * process.c (create_process): Clean up merger residues of
12677 2008-07-17 change.
12678
91f68422
CY
126792009-04-29 Ulrich Mueller <ulm@gentoo.org>
12680
12681 * lread.c (Vread_circle): New variable.
12682 (read1): Disable recursive read if Vread_circle is nil.
12683
24b34550
KH
126842009-04-29 Kenichi Handa <handa@m17n.org>
12685
12686 * fontset.h (set_default_ascii_font): Delete extern.
12687
12688 * fontset.c (set_default_ascii_font): Delete this unused function.
12689
12690 * frame.c (x_set_font): When ARG is a font-object, check if the
12691 font-object matches with the ASCII font-spec of the frame's
9c358bda 12692 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 12693
77bf07e1
AS
126942009-04-28 Andreas Schwab <schwab@linux-m68k.org>
12695
12696 * fns.c (Flocale_info): Protect vector from GC during decoding.
12697
12698 * process.c (Fstart_process): Protect argv strings from GC during
12699 encoding.
12700
2c55aacf
AS
127012009-04-27 Andreas Schwab <schwab@linux-m68k.org>
12702
12703 * sysdep.c: Include <ctype.h>.
12704
b892d3c9
DR
127052009-04-27 David Reitter <david.reitter@gmail.com>
12706
35f5b128 12707 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
12708 Remove commented-out code.
12709
9d0644c4
JB
127102009-04-26 Johan Bockgård <bojohan@gnu.org>
12711
12712 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
12713
b7053016
JR
127142009-04-25 Jason Rumney <jasonr@gnu.org>
12715
12716 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
12717
4e8231f3
YM
127182009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12719
12720 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
12721 Swap bytes in short integer if fringe bitmap width > 8.
12722
493dcf2c
KH
127232009-04-23 Kenichi Handa <handa@m17n.org>
12724
12725 * xfaces.c (Fx_list_fonts): If a font size is specified in
12726 PATTERN, set it in returned scalable fonts.
12727
401e9e57
CY
127282009-04-22 Chong Yidong <cyd@stupidchicken.com>
12729
708e05dc
CY
12730 * keyboard.c (Fset_input_meta_mode): Doc fix.
12731
12732 * dispnew.c (Fsend_string_to_terminal): Doc fix.
12733
1ac9108a 12734 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
12735
12736 * coding.c (Fterminal_coding_system): Doc fix.
12737
12738 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
12739 (Fx_display_pixel_height, Fx_display_planes)
12740 (Fx_display_color_cells, Fx_server_max_request_size)
12741 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
12742 (Fx_display_mm_height, Fx_display_mm_width)
12743 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
12744 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
12745 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
12746 (check_x_display_info): Handle terminal objects instead of
12747 terminal ids.
12748
401e9e57
CY
12749 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
12750 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
12751 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
12752 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 12753
df80c7f0
KH
127542009-04-21 Kenichi Handa <handa@m17n.org>
12755
5a8f12af 12756 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 12757 (font_score): Check AVGWIDTH too.
908567ef 12758
df80c7f0
KH
12759 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
12760 worst case.
1ac9108a
SM
12761 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
12762 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 12763
705af33f
JR
127642009-04-19 Jason Rumney <jasonr@gnu.org>
12765
12766 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 12767 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
12768
12769 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
12770 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
12771 get_phys_cursor_geometry.
12772
b71ac3dd 12773 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
12774 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
12775 using get_phys_cursor_geometry.
12776
12777 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
12778 correctly calculated.
12779
dc2933eb
JD
127802009-04-19 Jan Djärv <jan.h.d@swipnet.se>
12781
1ac9108a
SM
12782 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
12783 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
12784 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
12785 is deprecated.
12786
973e7849
AS
127872009-04-18 Andreas Schwab <schwab@linux-m68k.org>
12788
12789 * font.c (font_put_frame_data): Use xfree instead of free.
12790
314d66f4
JB
127912009-04-17 Juanma Barranquero <lekktu@gmail.com>
12792
12793 * w32font.c (Qja, Qko): Remove declarations.
12794 (syms_of_w32font): Don't DEFSYM them.
12795
cf702558
CY
127962009-04-17 Chong Yidong <cyd@stupidchicken.com>
12797
12798 * font.c (Qja, Qko): Move definitions here from ftfont.c.
12799
12800 * font.h (Qja, Qko): Extern them.
12801
12802 * ftfont.c (Qja, Qko): Remove declarations.
12803
12804 * xfont.c (Qja, Qko): Remove declarations.
12805
b50504f5
KH
128062009-04-17 Kenichi Handa <handa@m17n.org>
12807
bde25748
KH
12808 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
12809 string from a vector to handle Latin-1 characters correctly.
12810
b50504f5
KH
12811 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
12812 entity even if the cache hits.
12813
f4646fff
AS
128142009-04-16 Andreas Schwab <schwab@linux-m68k.org>
12815
12816 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 12817 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 12818
e7deaab0
AS
12819 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
12820 * lisp.h: Adjust prototypes.
12821
0a0e7d49
CY
128222009-04-16 Chong Yidong <cyd@stupidchicken.com>
12823
12824 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
12825 change (Bug#3003).
12826
3c908a57
KH
128272009-04-16 Kenichi Handa <handa@m17n.org>
12828
1ac9108a 12829 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
12830
12831 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
12832 adstyle.
12833
12834 * ftfont.c (Qja, Qko): Don't make them static.
12835 (enum ftfont_cache_for): New enum.
12836 (fc_charset_table): Undo the previous change.
12837 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
12838 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
12839 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
12840 non-scarable font, try to get AVERAGE_WIDTH.
12841 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
12842 Change ft_face_cache from a list of a hash-table. Don't check
12843 `ja' and `ko' adstyle here.
12844 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
12845 FTFONT_CACHE_FOR_CHARET.
12846 (ftfont_get_charset): Undo the previous change.
1ac9108a 12847 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
12848 (ftfont_close): Likewise.
12849 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
12850
12851 * font.c (font_sort_entites): Change the meaning of the arg
12852 BEST-ONLY. Don't optimize for VEC of lenght 1.
12853 (font_select_entity): Just return the value of font_sort_entites.
12854
12855 * xfaces.c (merge_face_vectors): Reflect font properties in
12856 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
12857 font_clear_prop if a face attribute doesn't change.
12858
3c908a57
KH
12859 * charset.h (charset_ksc5601): Extern it.
12860
12861 * charset.c (charset_ksc5601): New variable.
12862 (Fdefine_charset_internal): Set charset_ksc5601.
12863 (init_charset_once): Initialize charset_ksc5601 to -1.
12864
d65859c3
DN
128652009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
12866
12867 * fileio.c (history_delete_duplicates): Remove unused declaration.
12868
12869 * callint.c (history_delete_duplicates): New declaration.
12870 (Fcall_interactively): Remove command history duplicates when
12871 history_delete_duplicates is true.
12872
3ba010e5
EZ
128732009-04-14 Eli Zaretskii <eliz@gnu.org>
12874
12875 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
12876
06f19b91
KH
128772009-04-14 Kenichi Handa <handa@m17n.org>
12878
12879 * font.c (Ffont_info): Fix docstring. Fix the second element of
12880 the returned value (bug#2949).
12881
2cce8bfc
CY
128822009-04-14 Chong Yidong <cyd@stupidchicken.com>
12883
12884 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
12885
d156542d
KH
128862009-04-14 Kenichi Handa <handa@m17n.org>
12887
12888 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
12889 encoding charset is ascii_compatible.
12890
12891 * charset.c (Fdefine_charset_internal): Make charset
12892 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
12893 code_offset is 0, and covers all ASCII characters.
12894
86fa089e
SM
128952009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
12896
12897 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
12898 (ns_string_to_pasteboard_internal):
12899 * nsmenu.m (process_dialog):
12900 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
12901 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
12902 * lisp.h (Fx_load_color_file): Declare.
12903
a8a3728b
KH
129042009-04-13 Kenichi Handa <handa@m17n.org>
12905
1ac9108a 12906 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
12907 (font_select_entity): Suppress the code to optimize for the same
12908 kind of fonts.
12909 (font_load_for_lface): Get a font that supports at least ASCII
12910 characters.
12911
12912 * ftfont.c (Qja, Qko): New variables.
12913 (fc_charset_table): Delete uniquifier data for iso8859-1.
12914 (ftfont_get_latin1_charset): New function.
12915 (get_adstyle_property): New function.
12916 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
12917 bitmap fonts.
12918 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
12919 Delete iso-8859-1 range from the charset of fonts whose adstyle is
12920 `ko' or `ja'.
12921 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 12922 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
12923 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
12924 property.
12925 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
12926 (syms_of_ftfont): DEFSYM Qja and Qko.
12927
483670b5
KH
129282009-04-09 Kenichi Handa <handa@m17n.org>
12929
12b55765
KH
12930 * charset.c (map_charset_chars): For a charset of `superset'
12931 method, fix calculation of code range.
12932
483670b5
KH
12933 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
12934 from the list of extra properties.
12935 (font_clear_prop): Be sure to delete `:name' font property.
12936
57d3b93b
KH
129372009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12938
b4b2c2ca
YM
12939 * dispnew.c (redraw_overlapping_rows): Fix detection of
12940 overlapping for topmost and bottommost rows.
12941
1ac9108a 12942 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 12943
472c3609
JR
129442009-04-06 Jason Rumney <jasonr@gnu.org>
12945
12946 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
12947
ab193662
KH
129482009-04-06 Kenichi Handa <handa@m17n.org>
12949
12950 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
12951
12952 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
12953
0c26f026
KH
129542009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12955
12956 * ftfont.c (ftfont_open): Fix checking of the return value of
12957 FT_Load_Char. Fix setting font->underline_thickness.
12958
e173bbce
CY
129592009-04-04 Chong Yidong <cyd@stupidchicken.com>
12960
12961 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
12962 (Fterminal_parameters, Fterminal_parameter)
12963 (Fset_terminal_parameter): In doc string, refer to terminal
12964 objects rather than terminal ids.
12965
693a2698
EZ
129662009-04-04 Eli Zaretskii <eliz@gnu.org>
12967
12968 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
12969 ret_lim_data. (Bug#2867)
12970
d5221487
CY
129712009-04-03 Chong Yidong <cyd@stupidchicken.com>
12972
12973 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
12974 so they don't get wider than the window, matching 2006-01-23
12975 change to the partner function in xdisp.c (Bug#2800).
12976
223509a3
KH
129772009-04-03 Kenichi Handa <handa@m17n.org>
12978
12979 * print.c (print_object): Make each lowest sub_char_table start a
12980 new line (Bug#2866).
12981
74fcd0b1
KH
129822009-04-02 Kenichi Handa <handa@m17n.org>
12983
12984 * fontset.c (fontset_font): Record no-font when a fontset
12985 explicitly tells not to try another font-specs.
12986
c542407d
SM
129872009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
12988
12989 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
12990
e3869731
KH
129912009-03-30 Kenichi Handa <handa@m17n.org>
12992
d8d2f142
KH
12993 * fontset.c (fontset_from_font): Specify only registry in a
12994 font-spec for all characters supported by that registry.
12995
e3869731
KH
12996 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
12997 even if HAVE_M17N_FLT is not defined.
12998
5da5f805
CY
129992009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
13000
13001 * ftfont.c: Conditionalize prototyping and use of
13002 ftfont_variation_glyphs.
13003
ab226c50
SM
130042009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
13005
9628fed7
SM
13006 * frame.c (delete_frame): Work around compiler bug.
13007
13008 * editfns.c (general_insert_function): Adjust to insdel.c changes.
13009 * insdel.c (prepare_to_modify_buffer, signal_before_change):
13010 Some more EMACS_INT.
13011 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
13012
13013 * xdisp.c (dump_glyph): Fix typo.
13014
ae19ba7c
SM
13015 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
13016 (adjust_markers_gap_motion, adjust_markers_for_delete)
13017 (adjust_markers_for_insert, adjust_point)
13018 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
13019 (make_gap, copy_text, count_size_as_multibyte, insert)
13020 (insert_and_inherit, insert_before_markers)
13021 (insert_before_markers_and_inherit, insert_1)
13022 (count_combining_before, count_combining_after, insert_1_both)
13023 (insert_from_string, insert_from_string_before_markers)
13024 (insert_from_string_1, insert_from_gap, insert_from_buffer)
13025 (insert_from_buffer_1, adjust_after_replace)
13026 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
13027 (replace_range_2, del_range, del_range_1, del_range_byte)
13028 (del_range_both, del_range_2, modify_region)
13029 (prepare_to_modify_buffer, signal_before_change)
13030 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
13031 for buffer positions and sizes.
13032 * lisp.h: Adjust prototypes accordingly.
13033
13034 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
13035 (non_regular_inserted, non_regular_nbytes, read_non_regular)
13036 (Finsert_file_contents): Use EMACS_INT for buffer positions.
13037
ab226c50
SM
13038 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
13039
46dfb8fb
JD
130402009-03-27 Jan Djärv <jan.h.d@swipnet.se>
13041
13042 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
13043 lines and columns so we keep the same pixel height and width.
13044
13045 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
13046 the property _NET_WM_STATE has changed.
46dfb8fb
JD
13047 (x_handle_net_wm_state): New function to update frame parameter
13048 fullscreen.
13049 (x_term_init): Initialize atoms for _NET_WM_STATE.
13050
13051 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
13052
d347e494
SM
130532009-03-27 Kevin Ryde <user42@zip.com.au>
13054
13055 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
13056 Gpm_GetEvent as an error that justifies closing the filedescriptor.
13057 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
13058 (Fgpm_mouse_stop): Pass that new parameter.
13059 * termhooks.h (close_gpm): Adjust prototype.
13060
84db11d6
SM
130612009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
13062
c95a5008
SM
13063 * lisp.h (Fx_focus_frame): Declare.
13064
84db11d6
SM
13065 * callint.c (Fcall_interactively): For '^' just delegate the work to
13066 handle-shift-selection.
13067 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
13068
0a1958d6
CY
130692009-03-24 Chong Yidong <cyd@stupidchicken.com>
13070
0bfdff23
CY
13071 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
13072
0a1958d6
CY
13073 * data.c (Qinteractive_form): New variable.
13074 (Finteractive_form): Use it.
13075
13076 * eval.c (Fcommandp): Use Qinteractive_form.
13077
58aec0d6
JR
130782009-03-24 Jason Rumney <jasonr@gnu.org>
13079
13080 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
13081 Calculate total size precisely. Decode environment variables
13082 before substituting. (Bug#38)
13083
553dd618
KH
130842009-03-24 Kenichi Handa <handa@m17n.org>
13085
13086 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 13087 encoding (Bug#2722).
553dd618 13088
c39ea606
JD
130892009-03-23 Jan Djärv <jan.h.d@swipnet.se>
13090
13091 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
13092 that gdpy is set.
13093
bc9b2b5e
AM
130942009-03-22 Alan Mackenzie <acm@muc.de>
13095
13096 * callint.c (Finteractive): Clarify the doc string - even
13097 promptless elements need \n separators.
13098
9f995a76
JR
130992009-03-22 Jason Rumney <jasonr@gnu.org>
13100
13101 * w32term.c (syms_of_w32term): Doc fix for
13102 x-use-underline-position-properties.
13103
22749e9a
EZ
131042009-03-21 Eli Zaretskii <eliz@gnu.org>
13105
13106 * w32.c (getpwuid): Change argument type to unsigned.
13107 (struct w32_id): Change type of `rid' member to unsigned.
13108 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
13109 argument ID to unsigned. All callers changed.
13110 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
13111
e00553bf
EZ
131122009-03-20 Eli Zaretskii <eliz@gnu.org>
13113
13114 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
13115 negative, produce a float value.
13116
13117 * dired.c (make_uid, make_gid): New functions.
13118 (Ffile_attributes): Use them to avoid negative UID and GID.
13119
f761d6b6
JB
131202009-03-20 Juanma Barranquero <lekktu@gmail.com>
13121
13122 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
13123 (syms_of_keyboard) <command-hook-internal, input-method-function>:
13124 Fix typos in docstrings.
13125
d507f8d7
KH
131262009-03-19 Kenichi Handa <handa@m17n.org>
13127
13128 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
13129 changed, use font_load_for_lface to get a new font object.
13130 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
13131
13132 * frame.c (x_set_font): Handle the case that ARG is a cons.
13133
c68845e0
GM
131342009-03-19 Glenn Morris <rgm@gnu.org>
13135
13136 * fileio.c (Fsubstitute_in_file_name): Doc fix.
13137
bfa49dd1
CY
131382009-03-19 Chong Yidong <cyd@stupidchicken.com>
13139
13140 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
13141
8458d4c1
KH
131422009-03-19 Kenichi Handa <handa@m17n.org>
13143
13144 * charset.c (load_charset_map_from_file): When a mapfile can't be
13145 loaded, signal an error.
13146
78e7d1fe
EZ
131472009-03-18 Eli Zaretskii <eliz@gnu.org>
13148
13149 * dired.c (Ffile_attributes): Make sure UID and GID are always
13150 positive, even if the value is too large for a positive EMACS_INT.
13151 Doc fix.
13152
13153 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
13154
5da9fdfa
YM
131552009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13156
13157 * xmenu.c (xdialog_show): Move Fredisplay call ...
13158 (Fx_popup_dialog): ... here.
13159
7519c40d
SM
131602009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
13161
13162 * dired.c (file_name_completion): Disable the first optimization just
13163 installed, since it is not implemented correctly.
13164
2cd298e2
SM
131652009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
13166
13167 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 13168 only if the entry can affect bestmatch.
2cd298e2
SM
13169 Stop the search early, as Ftry_completion already does.
13170
48d37adf
CY
131712009-03-17 Chong Yidong <cyd@stupidchicken.com>
13172
e10c9c93 13173 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 13174
9286b16a
CY
131752009-03-15 Chong Yidong <cyd@stupidchicken.com>
13176
13177 * keyboard.c (parse_menu_item): Don't display remappings as menu
13178 equivalent bindings (Bug#788).
13179
f7b146dc
JR
131802009-03-15 Jason Rumney <jasonr@gnu.org>
13181
13182 * w32term.h (WM_EMACS_PAINT): New message.
13183 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
13184 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
13185 before passing to lisp thread. (Bug#950)
13186
f761d6b6 131872009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 13188
d93f9575
CY
13189 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
13190 variable as it was never reset.
13191 (ns_term_init): Remove initialization of Lisp-settable defaults
13192 and ns_expand_space.
13193 (-setPanelFromDefaultValues): Remove ns_expand_space.
13194 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
13195 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
13196 i.e. no additional spacing, similar to Carbon port.
13197
d93f9575
CY
13198 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
13199 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 13200
305018ec
JD
132012009-03-14 Jan Djärv <jan.h.d@swipnet.se>
13202
13203 * sound.c (alsa_configure): Remove call to deprecated
13204 snd_pcm_sw_params_set_xfer_align.
13205
f761d6b6 132062009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
13207
13208 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
13209 after clicking in a detached tool bar.
13210 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
13211
46e722a9
SM
132122009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
13213
348db3dd
SM
13214 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
13215 int/Lisp_Object mixup).
46e722a9 13216
a3d16f39
KH
132172009-03-13 Kenichi Handa <handa@m17n.org>
13218
13219 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 13220 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
13221 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
13222 (set_fontset_font): Change ARG to a vector. Handle range_list in
13223 ARG correctly.
13224 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 13225 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
13226 the above change.
13227 (fontset_from_font): Fix previous change.
fe24f56a 13228 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
13229 entry. If FONTSET is the default fontset, don't set the extra
13230 slot of the returning char-table.
13231
b066e6b6
JB
132322009-03-12 Juanma Barranquero <lekktu@gmail.com>
13233
13234 * nsfns.m (Fx_close_connection): Doc fix.
13235 (Fns_do_applescript): Reflow docstring.
13236 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
13237 (Fx_display_pixel_width, Fx_display_pixel_height)
13238 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
13239 Fix typos in docstrings.
13240 (Fns_set_alpha): Fix typos in error messages.
13241
d472514e 132422009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 13243
d472514e 13244 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
13245 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
13246 were used for such events.
13247
d472514e
JB
13248 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
13249 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 13250
d472514e 13251 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
13252 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
13253
fb930676
KH
132542009-03-11 Kenichi Handa <handa@m17n.org>
13255
ff85581a
KH
13256 * font.h (font_open_by_spec): Extern it.
13257
c50b7e98
KH
13258 * font.c (font_open_by_spec): New function.
13259 (font_open_by_name): Use font_open_by_spec.
13260
fb930676
KH
13261 * frame.c (x_set_font): When ARG is a font-object, don't alter the
13262 fontset of the frame.
13263
13264 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
13265 modify the default font of frames that use this fontset.
13266 (num_auto_fontsets): New variable.
13267 (fontset_from_font): Use num_auto_fontsets to decide a fontset
13268 name. Be sure to set FONTSET_ASCII to the correct font name.
13269 (update_auto_fontset_alist): New function.
13270
df4e8455
JB
132712009-03-11 Juanma Barranquero <lekktu@gmail.com>
13272
13273 * makefile.w32-in: Update dependencies.
13274
0a375797
AR
132752009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
13276
13277 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
13278
61313fa3
SM
132792009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
13280
13281 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
13282
b55103fb
CY
132832009-03-10 Chong Yidong <cyd@stupidchicken.com>
13284
13285 * lread.c (Feval_buffer): Doc fix.
13286
dde2559c
KH
132872009-03-09 Kenichi Handa <handa@m17n.org>
13288
13289 * charset.c (Qfile_name_handler_alist): Extern it.
13290 (load_charset_map_from_file): Temporarily bind
13291 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
13292
df4e8455 132932009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 13294
47f588bb
GM
13295 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
13296 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 13297
4ddf94bd
AR
132982009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
13299
4c9bdfc2
AR
13300 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
13301 (x_set_window_size): Change back to calculated method of setting
13302 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
13303 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
13304 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
13305
fe41ae9e
AR
13306 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
13307
4c9bdfc2
AR
13308 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
13309 accelerator in parens under GNUstep.
13310
825d0875
KH
133112009-03-06 Kenichi Handa <handa@m17n.org>
13312
13313 These changes are to detect incorrect composition sequence without
f3b3be74 13314 looking ahead the source. (Bug#2370)
825d0875
KH
13315
13316 * coding.h: Include "composite.h".
13317 (enum compisition_state): New enum.
13318 (struct compisition_status): New struct.
13319 (struct iso_2022_spec): New member cmp_status.
13320 (struct emacs_mule_spec): New struct.
13321 (struct coding_system): New members ctext_extended_segment_len and
13322 embedded_utf_8. Change the union member
13323 spec.emacs_mule_full_support to spec.emacs_mule.
13324
13325 * coding.c (CODING_ISO_CMP_STATUS): New macro.
13326 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 13327 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
13328 (ADD_COMPOSITION_DATA): New arg nbytes.
13329 (emacs_mule_char): New arg cmp_status.
13330 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
13331 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
13332 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
13333 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
13334 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
13335 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
13336 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
13337 (EMACS_MULE_COMPOSITION_END): New macro.
13338 (emacs_mule_finish_composition): New function.
13339 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
13340 (decode_coding_emacs_mule): Avoid long looking ahead while
13341 handling composition.
13342 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
13343 (ENCODE_COMPOSITION_RULE): New macro.
13344 (finish_composition): New function.
13345 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
13346 (DECODE_COMPOSITION_START): New implementation.
13347 (DECODE_COMPOSITION_END): Likewise.
13348 (STORE_COMPOSITION_RULE): New macro.
13349 (decode_coding_iso_2022): Avoid long looking ahead while handling
13350 composition, CTEXT extended segment, and embedded UTF-8.
13351 (setup_coding_system): For a coding of type iso-2022, reset
13352 CODING_ISO_EXTSEGMENT_LEN (coding) and
13353 CODING_ISO_EMBEDDED_UTF_8 (coding).
13354 (get_translation): Delete arguments last_block, from_nchars,
13355 to_nchars. Callers changed.
13356 (produce_chars): Don't modify charbuf. Adjusted for the change of
13357 get_translation.
98a326f7 13358 (produce_composition): Adjust for the new annotation sequence.
825d0875 13359 (handle_composition_annotation): Likewise.
98a326f7 13360 (consume_chars): Adjust for the change of get_translation.
825d0875 13361
ccbc4452
AR
133622009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
13363
4ddf94bd 13364 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 13365
988a7ddb
KH
133662009-03-05 Kenichi Handa <handa@m17n.org>
13367
13368 * font.c (font_select_entity): New function.
13369 (font_find_for_lface): Use font_select_entity to select a font.
13370
13371 * fontset.c (fontset_find_font): If a font found without
a8a3728b 13372 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
13373 font with C restriction.
13374
98a326f7 133752009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 13376
be1bce46 13377 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 13378
10ea2b82
JR
133792009-03-04 Jason Rumney <jasonr@gnu.org>
13380
2c93b248 13381 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 13382 characters that have already been read. (Bug#2569)
2c93b248 13383
10ea2b82
JR
13384 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
13385 Log an error message if check_image_size failed.
13386 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 13387 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 13388
71a0c011
EZ
133892009-03-02 Eli Zaretskii <eliz@gnu.org>
13390
13391 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
13392 when decoding process output.
13393
2f63bba8
RS
133942009-03-01 Richard M Stallman <rms@gnu.org>
13395
13396 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
13397
13398 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
13399
0a9564cb
EZ
134002009-02-28 Eli Zaretskii <eliz@gnu.org>
13401
13402 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
13403 (decode_coding_emacs_mule, decode_coding_iso_2022)
13404 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
13405 (decode_coding_raw_text, decode_coding_charset)
13406 (setup_coding_system, decode_eol, decode_coding, consume_chars):
13407 Honor inhibit-eol-conversion. (Bug #2186)
13408
449148b3
JR
134092009-02-28 Jason Rumney <jasonr@gnu.org>
13410
13411 * coding.c (detect_coding_charset): If not checking latin extra,
13412 fail on characters between 0x80 and 0xA0. (Bug#2354)
13413
a4aee864
EZ
134142009-02-28 Eli Zaretskii <eliz@gnu.org>
13415
13416 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 13417 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 13418
d88bee5a
GM
134192009-02-27 Glenn Morris <rgm@gnu.org>
13420
13421 * callint.c (Finteractive): Doc fix.
13422
a808f22d
KH
134232009-02-27 Kenichi Handa <handa@m17n.org>
13424
13425 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
13426
caf8d60c
CY
134272009-02-27 Chong Yidong <cyd@stupidchicken.com>
13428
13429 * font.c (font_style_to_value): Set value for unknown symbols to
13430 100 instead of 255.
b61137ea
CY
13431 (weight_table, slant_table, width_table): Treat "unspecified" as
13432 the default value.
caf8d60c 13433
1a0de25c
JB
134342009-02-26 Juanma Barranquero <lekktu@gmail.com>
13435
13436 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
13437
8fc45744
JB
134382009-02-25 Juanma Barranquero <lekktu@gmail.com>
13439
107bd7d1
JB
13440 * lread.c (Fload): Stop checking Vloads_in_progress and signal
13441 error as soon as a recursive load is detected.
8fc45744 13442
f097e223
AR
134432009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
13444
13445 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
13446 before caching.
13447
8810a12f
KH
134482009-02-24 Kenichi Handa <handa@m17n.org>
13449
13450 * fontset.c (fontset_find_font): Fix the condition for checking
13451 unavailable font.
13452
2c7d1565
GM
134532009-02-24 Glenn Morris <rgm@gnu.org>
13454
13455 * xfaces.c (Finternal_set_font_selection_order): Remove leading
13456 whitespace that confuses documentation.
13457
a20878b6
MB
134582009-02-23 Miles Bader <miles@gnu.org>
13459
13460 * process.c (Flist_system_processes, Fprocess_attributes)
13461 (syms_of_process): Rename `system-process-attributes' to
13462 `process-attributes'.
13463
b3b58c01
AS
134642009-02-22 Andreas Schwab <schwab@linux-m68k.org>
13465
1b3b981b
AS
13466 * coding.h (struct coding_system): Make safe_charsets a pointer to
13467 unsigned char.
13468 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
13469 being 255.
13470 (SAFE_CHARSET_P): Likewise.
13471 (setup_iso_safe_charsets): Properly setup safe_charsets.
13472 (Fdefine_coding_system_internal): Likewise.
13473 (setup_coding_system): Likewise. Remove unneeded casts.
13474 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
bba3e508
SM
13475 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS.
13476 Remove unneeded casts.
1b3b981b 13477
b3b58c01
AS
13478 * insdel.c (del_range_2): Don't modify gap contents when called
13479 from decode_coding_object. (Bug#1809)
13480
0b6f228c
CY
134812009-02-21 Chong Yidong <cyd@stupidchicken.com>
13482
13483 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
13484 Qfont_object.
13485 (Ftype_of): Recognize font objects.
13486
13487 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
13488
bba3e508
SM
13489 * font.c (Qfont_spec, Qfont_entity, Qfont_object):
13490 Definitions moved to data.c.
0b6f228c 13491
52f8870b
AR
134922009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13493
13494 * nsterm.m (x_make_frame_invisible): Unset async_visible,
13495 async_iconified. Based on a patch by Christian Lynbech
13496 <christian.lynbech@tieto.com>.
13497 (EmacsView-windowDidMiniaturize:): Unset async_visible.
13498
7087d5e9
GM
134992009-02-20 Glenn Morris <rgm@gnu.org>
13500
13501 * syntax.c (Fskip_chars_forward): Fix doc typo.
13502
41d2ceef
CY
135032009-02-20 Chong Yidong <cyd@stupidchicken.com>
13504
13505 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
13506
1a3b7ca6
CY
135072009-02-19 Chong Yidong <cyd@stupidchicken.com>
13508
13509 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
13510
73cce38d
KH
135112009-02-19 Kenichi Handa <handa@m17n.org>
13512
13513 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 13514 Don't overflow coding->carryover. (Bug#2370)
73cce38d 13515
a51092ee
DN
135162009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
13517
13518 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
13519
c423ecca
KH
135202009-02-18 Kenichi Handa <handa@m17n.org>
13521
13522 * font.c (font_check_otf_features): Fix handling of `nil' element.
13523 (Ffont_spec): Describe :lang and :otf in the docstring.
13524
4c1958f4
AS
135252009-02-16 Andreas Schwab <schwab@suse.de>
13526
13527 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
13528 string.
13529
5704f39a
KH
135302009-02-16 Kenichi Handa <handa@m17n.org>
13531
13532 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 13533 (Bug#1723)
5704f39a 13534
8f0085aa
CY
135352009-02-14 Chong Yidong <cyd@stupidchicken.com>
13536
a057d86a 13537 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
13538
13539 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
13540 (handle_line_prefix): Suppress wrapping of wrap prefixes.
13541
aff01dd9
EZ
135422009-02-14 Eli Zaretskii <eliz@gnu.org>
13543
13544 * msdos.c (MAX_SCREEN_BUF): New macro.
13545 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
13546 Encode the entire run of glyphs sharing the same face, instead of
13547 doing that one glyph at a time (fixes a bug with displaying
13548 double-size characters).
13549
ba301db3
AR
135502009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
13551
13552 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
13553
13554 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
13555 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 13556 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
13557
13558 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 13559 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 13560
51d861de
SM
135612009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
13562
ac146f82 13563 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
13564 invisible areas.
13565
7fed8996
JR
135662009-02-12 Jason Rumney <jasonr@gnu.org>
13567
631ea4fb
JR
13568 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
13569 (add_font_entity_to_list): Call check_face_name even when family
13570 is unspecified.
13571
cb4a3e42
JR
13572 * w32term.c (x_display_pixel_height, x_display_pixel_width):
13573 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 13574 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 13575
7fed8996 13576 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 13577 raster fonts. (Bug#2219)
7fed8996 13578
895416e3
KH
135792009-02-12 Kenichi Handa <handa@m17n.org>
13580
13581 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
13582 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
13583 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 13584 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
13585 (find_automatic_composition): While looking forward and backward,
13586 check static composition. Fix where to stop looking forward.
13587 (composition_adjust_point): Fix checking of static composition.
13588 (Fcomposition_get_gstring): Pay attention to
1dacf998 13589 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
13590
13591 * lisp.h (fast_looking_at): Extern it.
13592
13593 * search.c (fast_looking_at): New function.
13594
51d861de 13595 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
13596 <struct glyph>.u.cmp.to.
13597 (append_composite_glyph): Likewise.
13598
51d861de 13599 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
13600 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
13601 composition.
51d861de 13602 (append_composite_glyph): Adjust for the change of
895416e3
KH
13603 <strcut glyph>.u.cmp.to.
13604
8510724d
JB
136052009-02-11 Juanma Barranquero <lekktu@gmail.com>
13606
13607 * casetab.c (init_casetab_once):
13608 * coding.c (ALLOC_CONVERSION_WORK_AREA):
13609 * font.c (font_update_lface):
13610 * fontset.c (Fnew_fontset):
13611 * ftfont.c (ftfont_drive_otf):
13612 * xfont.c (xfont_open):
13613 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
13614
294fa707
SM
136152009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13616
13617 * fileio.c (Fwrite_region): !NILP -> CONSP.
13618
b5bfebec
AS
136192009-02-10 Andreas Schwab <schwab@suse.de>
13620
13621 * process.c (send_process): Properly relocate pointer into data
adab88bd 13622 when using encoded data. (Bug#2272)
b5bfebec 13623
cb84a2be
KH
136242009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
13625
13626 * coding.c (detect_coding_charset): Fix previous change.
13627
89e09428
JR
136282009-02-08 Jason Rumney <jasonr@gnu.org>
13629
13630 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 13631 disappeared while hourglass was displayed. (Bug #2193)
89e09428 13632
4470a277
AS
136332009-02-07 Andreas Schwab <schwab@suse.de>
13634
13635 * unexelf.c (unexec): Fix error message.
13636
3175b12a
AR
136372009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
13638
13639 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 13640 when modal window is active. (Bug #2152)
3175b12a
AR
13641 (applicationShouldTerminate:): Remove now-unneeded while loop
13642 around NSRunAlertPanel.
13643
13644 * nsmenu.m (popupSession): New file-global variable.
13645 (pop_down_menu): End the popupSession before closing dialog.
13646 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
13647 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
13648 don't query NSApp for events (just sleep instead).
13649
8434d0b8
EZ
136502009-02-07 Eli Zaretskii <eliz@gnu.org>
13651
51d861de
SM
13652 * coding.c (syms_of_coding) <translation-table-for-input>:
13653 Modify doc string to discourage use for character code unification.
8434d0b8 13654
aa82edfd
CY
136552009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13656
13657 * atimer.c (run_timers): Update pending_atimers.
13658
2d283c7c
CY
136592009-02-06 Chong Yidong <cyd@stupidchicken.com>
13660
eb306cab
CY
13661 * image.c (svg_load_image): Fix last change.
13662
2d283c7c
CY
13663 * xfns.c (Fx_create_frame): Signal an error if no font is
13664 found (Bug#2147).
13665
4d8e170e
JB
136662009-02-05 Juanma Barranquero <lekktu@gmail.com>
13667
13668 * character.c (syms_of_character) <script-representative-chars>:
13669 Fix typo in docstring.
13670
c96169a0
AR
136712009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
13672
13673 * nsmenu.m (pop_down_menu): New function.
13674 (ns_popup_dialog): Call it on unwind.
13675 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
13676 call timer_check() (Bug#2154).
13677 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
13678 handling_signal is set.
13679 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
13680
31fd7c5c 13681 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
13682
13683 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
13684
13685 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
13686
51d861de
SM
13687 * keyboard.c (poll_for_input_1, handle_async_input):
13688 Set handling_signal under HAVE_NS.
c96169a0 13689
aacd8ba1
GM
136902009-02-04 Glenn Morris <rgm@gnu.org>
13691
13692 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
13693
4cb75c4b
KH
136942009-02-04 Kenichi Handa <handa@m17n.org>
13695
13696 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
13697
13698 * charset.c (Fchar_charset): New optional arg restriction.
13699
13700 * coding.h (coding_system_charset_list): Extern it.
13701
13702 * coding.c (coding_system_charset_list): New function.
13703
13704 * composite.c: Include coding.h and termhooks.h.
13705 (composition_gstring_p): Fix for the terminal case.
13706 (composition_gstring_width): Likewise.
13707 (fill_gstring_body): Likewise.
13708 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
13709 the frame.
13710 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
13711 is within a composition.
867d4bb3 13712 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
13713
13714 * term.c (encode_terminal_code): Fix handling of composition.
13715 (produce_composite_glyph): For static composition, get pixel_width
13716 from struct composition.
13717
826ba17e
AS
137182009-02-02 Andreas Schwab <schwab@suse.de>
13719
13720 * unexelf.c (unexec): Handle unaligned bss offset.
13721
8ad093db
AR
137222009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13723
13724 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
13725 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 13726
8ad093db
AR
13727 * keyboard.c (handle_interrupt): Don't call
13728 quit_throw_to_read_char() under NS.
d0a76a6e 13729
8ad093db
AR
13730 * blockinput.h: Remove NS-specific code.
13731
4d18a7a2
DN
137322009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
13733
db878925
DN
13734 * dispnew.c (window_change_signal): Don't try to get the size of a
13735 suspended tty frame.
13736 * term.c (Fresume_tty): Resize if the size has changed while the
13737 tty was suspended.
13738
4d18a7a2
DN
13739 * alloc.c (mark_stack): Properly conditionalize previous change.
13740
8984df7c
JB
137412009-01-30 Juanma Barranquero <lekktu@gmail.com>
13742
13743 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
13744 * w32term.c (w32_read_socket) [SYNC_INPUT]:
13745 Remove; this code is not used on Windows.
13746
75f4f1ac
EZ
137472009-01-30 Eli Zaretskii <eliz@gnu.org>
13748
13749 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
13750 EOLs that also has stray ^M characters.
13751
07a1e794
JB
137522009-01-30 Juanma Barranquero <lekktu@gmail.com>
13753
13754 * atimer.c (run_timers, alarm_signal_handler):
13755 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
13756 * w32inevt.c (w32_console_read_socket):
13757 * w32term.c (w32_read_socket):
13758 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
13759
a8b11cc9
CY
137602009-01-30 Chong Yidong <cyd@stupidchicken.com>
13761
13762 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
13763 Initialize it as a relative filename pattern.
13764 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
13765 (Fcall_process_region): Simplify temp file creation using
13766 temporary-file-directory.
13767
c279587b
EZ
137682009-01-29 Eli Zaretskii <eliz@gnu.org>
13769
13770 * msdos.c: Rename pending_signals to msdos_pending_signals.
13771 (sig_suspender, sigprocmask): Adjust.
13772
a8fe3242
CY
137732009-01-29 Chong Yidong <cyd@stupidchicken.com>
13774
13775 * keyboard.c (pending_signals): New var.
13776 (poll_for_input, input_available_signal, init_keyboard): Set it.
13777 (process_pending_signals): New function.
13778
13779 * lisp.h (QUIT): Check pending_signals instead of
13780 interrupt_input_pending. Use process_pending_signals.
13781
51d861de 13782 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 13783
51d861de 13784 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
13785
13786 * sysdep.c (emacs_write): Use process_pending_signals.
13787
13788 * xterm.c (XTread_socket): Update pending_signals.
13789
13790 * w32term.c (w32_read_socket): Update pending_signals.
13791
13792 * w32inevt.c (w32_console_read_socket): Update pending_signals.
13793
6570a1c4
KH
137942009-01-29 Kenichi Handa <handa@m17n.org>
13795
13796 * xftfont.c (xftfont_has_char): New function.
13797 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
13798
d72a4afa
AR
137992009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
13800
13801 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
13802 under GNUstep.
13803 (ns_query_color): New declaration.
13804
13805 * nsterm.m (ns_confirm_quit): New variable.
13806 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
13807 (EmacsApp-applicationShouldTerminate:): Use it.
13808 (EmacsPrefsController): Let user set it.
13809 (ns_query_color): New function.
13810 (ns_defined_color): Use it.
13811 (ns_initialize): Drop.
13812 (ns_term_init): Add two lines from ns_initialize(), and set
13813 input_interrupt_mode to nil.
13814
13815 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 13816 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 13817
9fe78804
KH
138182009-01-28 Kenichi Handa <handa@m17n.org>
13819
13820 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
13821 (fontset_get_font_group): Remember that no font-group is specified
13822 for C.
9fe78804 13823
fa57de36
CY
138242009-01-27 Chong Yidong <cyd@stupidchicken.com>
13825
930600e9
CY
13826 * fns.c (concat): Check for string overflow (bug#1787).
13827
fa57de36
CY
13828 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
13829 Quadruple undo limits (bug#1501).
13830
7179ce7b
KH
138312009-01-27 Kenichi Handa <handa@m17n.org>
13832
13833 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
13834 directly use GT_Get_Char_index.
13835
13836 * xftfont.c (struct xftfont_info): New member `index'.
13837
13838 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 13839 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 13840
5be8fcc0
CY
138412009-01-26 Kenichi Handa <handa@m17n.org>
13842
13843 * fontset.c (fontset_find_font): Fix handling of non-cons return
13844 value of fontset_get_font_group.
13845 (fontset_font): Revert last change.
13846
19ae3e61
JR
138472009-01-26 Jason Rumney <jasonr@gnu.org>
13848
13849 * w32font.c (w32font_list_internal): Return quickly if registry is
13850 unknown. Simplify final return.
13851 (add_font_entity_to_list): Break complex logic down into more
13852 manageable chunks. Move unknown registry check to
13853 w32font_list_internal.
13854
8612b71a
AR
138552009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
13856
13857 Changes to remove Feval calls from GUI under NS.
13858
d8038940
JB
13859 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
13860 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
13861 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
13862
13863 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
13864 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
13865 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
13866 instead of NON_ASCII_KEYSTROKE_EVENT.
13867 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
13868 (EmacsApp-applicationShouldTerminate:): Query user.
13869 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
13870 instead of Feval.
13871
13872 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
13873
13874 * keyboard.c (kbd_buffer_get_event): Check for it.
13875 (keys_of_keyboard): Define lispy keys for
13876 ns-put/unput-working-text.
13877
13878 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
13879 versions.
13880 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
13881
6288ae55
CY
138822009-01-25 Chong Yidong <cyd@stupidchicken.com>
13883
13884 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 13885 setting current_buffer directly. (Bug#2044)
6288ae55 13886
289e7f8f
CY
138872009-01-24 Chong Yidong <cyd@stupidchicken.com>
13888
5ce87308 13889 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 13890 any work. (Bug#1952, bug#1990).
5ce87308 13891
64cc3cf6 13892 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 13893
b3243e6f
AR
138942009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
13895
13896 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
13897 (ns_no_defaults): New declaration.
13898 (main): Use it.
e0d2e69a 13899
d900b2af 13900 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 13901
d900b2af 13902 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 13903
d900b2af
AR
13904 * nsterm.m (ns_no_defaults): New variable.
13905 (ns_initialize): Don't read defaults when ns_no_defaults.
13906 (EmacsView-readSelectionFromPasteboard:)
13907 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 13908 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
13909 (ns_dumpglyphs_stretch): New function.
13910 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 13911 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 13912
e0d2e69a
AR
13913 * nsimage.m (setPixmapData:): Set to ignore image DPI.
13914
3ac71f5d
CY
139152009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
13916
13917 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
13918 call for Sparc64.
13919
3fe53a83
AR
139202009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
13921
13922 * nsfns.m:
13923 * nsgui.h:
13924 * nsmenu.m:
13925 * nsselect.m:
13926 * nsterm.h:
13927 * nsterm.m: Remove '23' comments that indicated code added during
13928 update from emacs-20 -> emacs-23.
13929
10f87c6f 139302009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
13931
13932 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 13933 ns_alternate_modifier. (Bug#1217)
a3b53a85 13934
c7cef62d
AR
13935 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
13936 Display all shortcuts, including those w/o super modifier.
13937
575fb8bd
AR
13938 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
13939
918b848b
CY
139402009-01-22 Chong Yidong <cyd@stupidchicken.com>
13941
13942 * fileio.c (Vwrite_region_post_annotation_function)
13943 (Vwrite_region_annotation_buffers): New vars.
13944 (build_annotations_unwind): Just reset
13945 Vwrite_region_annotation_buffers.
13946 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
13947 Call write-region-post-annotation-function.
13948 (build_annotations): Add to Vwrite_region_annotation_buffers if
13949 buffer changes.
13950
a39e2539
AR
139512009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
13952
13953 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
13954 Tiger.
51d861de
SM
13955 * nsfns.m (ns_do_applescript):
13956 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 13957
35ed44db
AR
139582009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
13959
13960 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
13961
cbe0b5bf
AR
139622009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
13963
13964 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 13965
6049d3a0
AR
13966 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
13967
13968 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
13969 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
13970 handle Ctrl-tab. (Bug#1841)
13971 (ns_get_color): Use unsigned long long for scanned hex string value.
13972 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 13973 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 13974 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 13975 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 13976 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 13977 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 13978 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 13979
d3810c21 13980 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 13981 DPI. (Bug#1316)
d3810c21
AR
13982 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
13983 values in onTiger section.
4c7077c3 13984
e301e634
CY
139852009-01-19 Chong Yidong <cyd@stupidchicken.com>
13986
7f82490b
CY
13987 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
13988 Check return value of font_spec_from_name.
64cc3cf6 13989 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
13990
13991 * font.c (font_spec_from_name): Return Qnil if font name could not
13992 be parsed.
13993 (font_parse_name): Treat a `?' character as part of an XLFD.
13994
e301e634
CY
13995 * fns.c (Fsubstring): Doc fix.
13996
1c0db158
KH
139972009-01-19 Kenichi Handa <handa@m17n.org>
13998
51d861de 13999 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
14000 (ftfont_list): Likewise.
14001
acf20901
JB
140022009-01-18 Juanma Barranquero <lekktu@gmail.com>
14003
fff4e459
JB
14004 * dbusbind.c (Fdbus_register_signal):
14005 * process.c (conv_sockaddr_to_lisp):
14006 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
14007
acf20901
JB
14008 * callproc.c (Fgetenv_internal): Doc fix.
14009
e7abcdfb
CY
140102009-01-16 Chong Yidong <cyd@stupidchicken.com>
14011
14012 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
14013 it is not even used.
14014
b60861e6
GM
140152009-01-16 Glenn Morris <rgm@gnu.org>
14016
14017 * font.c (Ffont_variation_glyphs): Silence compiler.
14018
8db52afe
JB
140192009-01-15 Juanma Barranquero <lekktu@gmail.com>
14020
14021 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
14022 Reported by David Robinow <drobinow@gmail.com>.
14023
4cddb209
KH
140242009-01-15 Kenichi Handa <handa@m17n.org>
14025
51d861de 14026 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 14027
f247f67b
JR
140282009-01-14 Jason Rumney <jasonr@gnu.org>
14029
14030 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 14031 never a fontset. (Bug#1562)
f247f67b 14032
f56a4450
KH
140332009-01-14 Kenichi Handa <handa@m17n.org>
14034
14035 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 14036 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 14037
4e99855e
CY
140382009-01-13 Chong Yidong <cyd@stupidchicken.com>
14039
14040 * font.c (font_clear_prop): If clearing the family, clear the font
14041 width index too.
14042
fff4e459 14043 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 14044
24f01470
JB
140452009-01-12 Juanma Barranquero <lekktu@gmail.com>
14046
14047 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
14048 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
14049 functions, use sizeof.
14050
a41240a3
MR
140512009-01-12 Martin Rudalics <rudalics@gmx.at>
14052
14053 * keyboard.c (read_char): Fix case where last_nonmenu_event
14054 returned a bad value with submenus. (Bug#447)
14055
944636b8
CY
140562009-01-12 Chong Yidong <cyd@stupidchicken.com>
14057
14058 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
14059 family, clear the font width index too.
14060
0dad7c6f
JR
140612009-01-11 Jason Rumney <jasonr@gnu.org>
14062
14063 * keyboard.c (cmd_error_internal): Exit when errors occur before
14064 frame creation and not in daemon mode. (Bug#1836)
14065
7c2363af
CY
140662009-01-10 Chong Yidong <cyd@stupidchicken.com>
14067
14068 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
14069 of a display vector, backtrack.
14070 (try_window_reusing_current_matrix): Check glyph type before
14071 referencing charpos member.
14072
97b1b294
EZ
140732009-01-10 Eli Zaretskii <eliz@gnu.org>
14074
14075 Fix Bug #876:
14076
14077 * coding.c (inhibit_null_byte_detection): New variable.
14078 (detect_coding, detect_coding_system): Don't pay attention to null
14079 bytes if inhibit_null_byte_detection is non-zero.
51d861de 14080 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
14081 <inhibit-iso-escape-detection>: Doc fix.
14082
4624b6e3
JR
140832009-01-09 Jason Rumney <jasonr@gnu.org>
14084
14085 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 14086 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
14087 Only report Unicode Plane 2 fonts as unicode-sip.
14088
323b840c
CY
140892009-01-09 Chong Yidong <cyd@stupidchicken.com>
14090
51d861de
SM
14091 * xfaces.c (Fx_font_family_list): Delete function.
14092 Move compatibility version to faces.el.
323b840c 14093
51d861de 14094 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 14095
eba7400d
MR
140962009-01-09 Martin Rudalics <rudalics@gmx.at>
14097
14098 * frame.c (x_set_frame_parameters): Remember requested value for
14099 fullscreen before it's reset by the parameter handler.
14100
4b09796d
GM
141012009-01-09 Glenn Morris <rgm@gnu.org>
14102
14103 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 14104 (last_command_event): ... and update all users.
4b09796d
GM
14105 (last_input_char): For clarity, rename to...
14106 (last_input_event): ... and update all users.
14107 (last-command-char, last-input-char): Move to subr.el as aliases.
14108 * cmds.c, commands.h: Update for last_command_char rename.
14109
14ccea62
CY
141102009-01-08 Chong Yidong <cyd@stupidchicken.com>
14111
51d861de 14112 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 14113
5f004711
JR
141142009-01-08 Jason Rumney <jasonr@gnu.org>
14115
14116 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
14117 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
14118 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
14119 Don't declare.
fff4e459 14120 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
14121 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
14122
b71f6f73
KH
141232009-01-07 Kenichi Handa <handa@m17n.org>
14124
50b06221 14125 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 14126 remember the coding system used for decoding in
50b06221
KH
14127 coding_system (Bug#1039).
14128
b71f6f73 14129 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 14130 breaking the loop. (Bug#870)
b71f6f73
KH
14131 (decode_coding_utf_16, decode_coding_emacs_mule)
14132 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14133 (decode_coding_charset): Likewise.
14134
56f668f7
MR
141352009-01-05 Martin Rudalics <rudalics@gmx.at>
14136
14137 * frame.c (x_set_frame_parameters): Make sure height (width) get
14138 applied when fullwidth (fullheight) is set. (Bug#1522)
14139
5da9424d
JB
141402009-01-04 Juanma Barranquero <lekktu@gmail.com>
14141
14142 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
14143 (utc_base): Declare as ULONGLONG, not long double.
14144 (convert_time_raw): Delete.
14145 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
14146 (initialize_utc_base): New function.
14147 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
14148 (convert_from_time_t): Use initialize_utc_base; compute result with
14149 64-bit arithmetic.
14150 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
14151
c4605e09
EZ
141522009-01-03 Eli Zaretskii <eliz@gnu.org>
14153
9acef61c 14154 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
14155 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
14156 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
14157 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
14158 [!subprocesses]: Define.
14159 (syms_of_process) [!subprocesses]: Intern and staticpro them.
14160 (Flist_system_processes, Fsystem_process_attributes)
14161 [!subprocesses]: Call list_system_processes and
14162 system_process_attributes instead of returning Qnil.
14163
9acef61c
JB
14164 * dosfns.c (system_process_attributes, list_system_processes):
14165 New functions.
c4605e09
EZ
14166
14167 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
14168
14169 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
14170 Don't use the default (no-op) implementation.
14171
8b7d0a16
JR
141722009-01-03 Jason Rumney <jasonr@gnu.org>
14173
a6d46bc1
JR
14174 * keyboard.c (parse_modifiers_uncached): Wheel events are
14175 clicks (bug#687).
14176
8b7d0a16
JR
14177 * w32term.c (x_query_colors, x_query_color): New functions.
14178
14179 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
14180 (svg_load_image): Cast returned pointers from dynamically loaded
14181 functions. Eliminate W32 specific code.
14182
bfe11752
DN
141832009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
14184
89e2438a
DN
14185 * nsfns.m (x_set_foreground_color, x_set_background_color)
14186 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
14187 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
14188 x_ prefix instead of ns_. Update references.
14189 (syms_of_nsfns): Add a FIXME comment.
14190
14191 * nsterm.m (x_set_cursor_type): New prototype.
14192 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
14193
bfe11752
DN
14194 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
14195 for Solaris instead of incorrectly providing Qutime and Qcutime.
14196
031da700
EZ
141972009-01-02 Eli Zaretskii <eliz@gnu.org>
14198
14199 * w32.c (process_times): Compute sum of utime and stime.
14200 (system_process_attributes): Add Qtime to the alist.
14201
14202 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
14203 and add them to the alist.
14204
14205 * process.c (top level) <Qtime, Qctime>: New variables.
14206 (syms_of_process): staticpro them.
14207 (Fsystem_process_attributes): Add their documentation to the doc
14208 string.
14209
14210 * process.h: Declare Qtime and Qctime.
14211
df23bf08
JR
142122009-01-02 Jason Rumney <jasonr@gnu.org>
14213
9acef61c 14214 * image.c (Qgobject): New symbol.
df23bf08
JR
14215 (syms_of_image): Initialize it.
14216 (init_svg_functions): Load some functions from gobject library.
14217
5bbdf7aa
DN
142182009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
14219
14220 * frame.c (make_terminal_frame): Remove redundant code and useless
14221 block.
14222
63136da6
AS
142232009-01-01 Andreas Schwab <schwab@suse.de>
14224
14225 * process.c (conv_sockaddr_to_lisp): Add workaround for
14226 getsockname bug on BSD.
14227
9ef69046
CY
142282009-01-01 Chong Yidong <cyd@stupidchicken.com>
14229
d6fafbe0
CY
14230 * xfns.c (x_create_tip_frame): Set border width of the X window.
14231
51d861de 14232 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 14233
f9c34147
JR
142342009-01-01 Jason Rumney <jasonr@gnu.org>
14235
9acef61c 14236 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
14237 Don't block input, as per earlier xterm.c changes.
14238
f5497e45
AR
142392008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
14240
14241 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
14242 (ns_appkit_version_int): New function.
14243 (x-server-version): Use ns_appkit_version_int and follow 21+
14244 convention of returning 3 integers.
14245
c19cab20
KH
142462008-12-30 Kenichi Handa <handa@m17n.org>
14247
14248 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
14249 (CHAR_SURROGATE_PAIR_P): New macro.
14250
14251 * font.h (struct font_driver): New member get_variation_glyphs.
14252
9acef61c 14253 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
14254 (Ffont_variation_glyphs): New function.
14255 (syms_of_font): Defsubr it.
14256
14257 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
14258 ftfont_variation_glyphs.
14259 (setup_otf_gstring): New function.
14260 (ftfont_drive_otf): Use it.
14261 (ftfont_shape_by_flt): Handle variation selector.
14262 (ftfont_variation_glyphs): New function.
14263
28cd591f
MR
142642008-12-30 Martin Rudalics <rudalics@gmx.at>
14265
14266 * frame.c (Vemacs_iconified): Remove.
14267
7f714baf
JR
142682008-12-30 Jason Rumney <jasonr@gnu.org>
14269
14270 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 14271 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 14272
9d2d22ab
CY
142732008-12-30 Chong Yidong <cyd@stupidchicken.com>
14274
14275 * indent.c (Fvertical_motion): Don't advance iterator if we have
14276 reseated to the desired position.
14277
14278 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
14279 checking for pos match.
14280
545312c2
KH
142812008-12-30 Kenichi Handa <handa@m17n.org>
14282
1ede3eb6
KH
14283 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
14284 just get the low 8-bit of the code.
14285
545312c2
KH
14286 * font.c (font_intern_prop): Validate str as multibyte.
14287
bd7bbf29
DN
142882008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
14289
31e0750e
DN
14290 * dispextern.h (struct face): Move lface and hash from the middle
14291 of bitfields.
14292
bd7bbf29
DN
14293 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
14294
b5672e7c
DN
142952008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
14296
14297 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
14298 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
14299 instead of intervals.h.
14300
d704470f
AS
143012008-12-26 Andreas Schwab <schwab@suse.de>
14302
14303 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
14304 cons.
14305
54b33868
MR
143062008-12-26 Martin Rudalics <rudalics@gmx.at>
14307
14308 * textprop.c (Qminibuffer_prompt): New variable.
14309 (syms_of_textprop): Initialize it.
14310 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
14311 in minibuffer-prompt face. (Bug#1662)
14312
40b615d6
JR
143132008-12-25 Jason Rumney <jasonr@gnu.org>
14314
14315 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
14316
baae5c2d
JR
143172008-12-24 Jason Rumney <jasonr@gnu.org>
14318
14319 * ralloc.c (r_alloc_reset_variable): New function.
14320
14321 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 14322 record of what points where. (Bug#716)
baae5c2d 14323
a9051c88
DN
143242008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
14325
14326 * minibuf.c (read_minibuf): Follow the non-interactive case when
14327 running as a daemon, before detaching.
14328
8b146312
AS
143292008-12-22 Andreas Schwab <schwab@suse.de>
14330
14331 * buffer.c (init_buffer): Use realloc instead of xrealloc.
14332 * gtkutil.c (free_widget_value): Use xfree instead of free.
14333
56f2de10
MR
143342008-12-22 Martin Rudalics <rudalics@gmx.at>
14335
14336 * frame.c (delete_frame): New function derived from
14337 Fdelete_frame to handle Qnoelisp value for FORCE argument.
14338 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
14339 (Fdelete_frame): Call delete_frame. Remove line from doc-string
14340 saying that FORCE non-nil doesn't run `delete-frame-functions'.
14341 * frame.h: Extern delete_frame.
14342 * window.c (window_loop):
14343 * terminal.c (delete_terminal):
14344 * xterm.c (x_connection_closed):
14345 * xfns.c (Fx_hide_tip):
9acef61c 14346 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 14347
1fc200d6
JR
143482008-12-21 Jason Rumney <jasonr@gnu.org>
14349
14350 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
14351 when character maps to .notdef character.
14352
5e252df2
SM
143532008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
14354
14355 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
14356
99b72cc4
JR
143572008-12-20 Jason Rumney <jasonr@gnu.org>
14358
14359 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 14360 a graphical frame on Windows. (Bug#1325)
99b72cc4 14361
acc49a52
JD
143622008-12-20 Jan Djärv <jan.h.d@swipnet.se>
14363
14364 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
14365
6ea15123
CY
143662008-12-20 Chong Yidong <cyd@stupidchicken.com>
14367
14368 * minibuf.c (Fread_buffer): Doc fix.
14369
b2dab6c8
JR
143702008-12-20 Jason Rumney <jasonr@gnu.org>
14371
54ea0c87 14372 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 14373 server name in UNC paths. (Bug#719)
54ea0c87 14374
b2dab6c8 14375 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 14376 charbuf. (Bug#1035)
b2dab6c8 14377
6d1921be
DN
143782008-12-19 Daniel Engeler <engeler@gmail.com>
14379
14380 * sysdep.c (serial_configure): Fix typo.
14381
53934c98
DN
143822008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
14383
14384 * sysdep.c: Include alloca.h.
f4f634e8
DN
14385 (system_process_attributes): Add implementation for Solaris.
14386
14387 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 14388
06e111a6
DN
143892008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
14390
14391 Reorganize implementation of Flist_system_processes and
14392 Fsystem_process_attributes. No functional changes.
14393 * process.c: Don't #include pwd.h, grp.h and limits.h.
14394 (Flist_system_processes): Just call list_system_processes.
14395 (Fsystem_process_attributes): Just call system_process_attributes.
14396 (procfs_list_system_processes, time_from_jiffies)
14397 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
14398 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
14399
14400 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
14401 (list_system_processes): Rename from
14402 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
14403 Provide a do nothing implementation.
14404 (system_process_attributes): Rename from
14405 procfs_list_system_processes.
14406 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 14407 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
14408
14409 * w32.c (list_system_processes): Rename from
14410 w32_list_system_processes.
14411 (system_process_attributes): Rename from
14412 w32_system_process_attributes.
14413
14414 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
14415
14416 * process.h (w32_list_system_processes)
14417 (w32_system_process_attributes): Remove.
362654a6
JB
14418 (list_system_processes, system_process_attributes):
14419 New prototypes.
06e111a6 14420
6a705b23
KH
144212008-12-19 Kenichi Handa <handa@m17n.org>
14422
14423 * xfont.c (xfont_decode_coding_xlfd): New function.
14424 (xfont_encode_coding_xlfd): New function.
14425 (xfont_list_pattern): Decode XLFD by iso-8859-1.
14426 (xfont_list): Decode and encode XLFD by iso-8859-1.
14427 (xfont_match): Likewise.
14428 (xfont_list_family): Likewise.
14429 (xfont_open): Likewise.
14430
d66c0241 14431 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
14432 names are utf-8.
14433
d66c0241 14434 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
14435 names are utf-8.
14436
5a130941
JD
144372008-12-18 Jan Djärv <jan.h.d@swipnet.se>
14438
14439 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
14440 changed.
bfd20325
JD
14441 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
14442 clicked on a detached tool bar button.
5a130941 14443
fd95644b
DN
144442008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
14445
14446 * emacs.c (main): Print and error and exit when no data is read
14447 from the pipe.
14448
e6eee6ae
JR
144492008-12-17 Jason Rumney <jasonr@gnu.org>
14450
14451 * w32font.c (w32font_has_char): Always return -1.
14452
a35dd56b
KH
144532008-12-16 Kenichi Handa <handa@m17n.org>
14454
14455 * font.c (font_open_entity): Fix previous change.
14456
0e3635c2
DN
144572008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
14458
14459 * process.c: Include <limits.h>.
14460
d4835507 144612008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
14462
14463 * font.c (font_update_drivers): Fix mistake in reconstructing the
14464 driver list.
14465
144662008-12-16 Chong Yidong <cyd@stupidchicken.com>
14467
14468 * font.c (font_clear_cache): Fix format of font cache data.
14469
e2cbc401
CY
144702008-12-15 Chong Yidong <cyd@stupidchicken.com>
14471
14472 * xftfont.c (xftfont_open): Free Xft font pattern if
14473 XftFontOpenPattern fails.
14474
14475 * xterm.c (x_free_frame_resources): Remove extraneous call to
14476 free_frame_faces.
14477
b131d535
CY
144782008-12-13 Chong Yidong <cyd@stupidchicken.com>
14479
14480 * xterm.c (x_delete_display): Move xim_close_dpy call to
14481 x_delete_terminal.
14482 (x_delete_terminal): Call xim_close_dpy.
14483
e6df5336
JR
144842008-12-13 Jason Rumney <jasonr@gnu.org>
14485
14486 * w32font.c (intern_font_name): New function.
14487 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
14488 (w32font_open_internal, Fx_select_font): Decode font name.
14489 (fill_in_logfont, list_all_matching_fonts): Encode font name.
14490
14491 * w32font.h (intern_font_name): Declare new function.
14492
14493 * w32uniscribe.c (add_opentype_font_name_to_list):
14494 Use intern_font_name.
14495
20d68145
CY
144962008-12-13 Chong Yidong <cyd@stupidchicken.com>
14497
9f2554de
CY
14498 * frame.c (Fdelete_frame): Call free_font_driver_list.
14499
3d9bec9a
CY
14500 * font.c (free_font_driver_list): Implement missing function.
14501
20d68145
CY
14502 * w32term.c (w32_term_init): Don't initialize the image cache
14503 here; it will be done in init_frame_faces.
14504
14505 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
bba3e508
SM
14506 (struct x_display_info): Remove unused member null_pixel.
14507 New member xim_callback_data.
20d68145
CY
14508
14509 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
14510 (xim_initialize): Save pointer to callback function data.
14511 (xim_close_dpy): Free callback function data. Call XCloseIM,
14512 reverting 2008-11-04 change by David Smith.
14513 (x_term_init): Don't initialize the image cache here; it will be
14514 done in init_frame_faces. Remove ancient "null_pixel" cruft.
14515 (x_delete_display): Free x_dnd_atoms member.
14516
96f9306b
KH
145172008-12-13 Kenichi Handa <handa@m17n.org>
14518
ef1b0ba7 14519 * font.c (font_rescale_ratio): Move from xfaces.c.
6dec9044 14520 Argument type changed. Handle a font-spec too.
96f9306b 14521 (font_score): Check Vface_font_rescale_alist.
6dec9044 14522 (font_open_entity): Likewise. (Bug#1547)
96f9306b 14523
ef1b0ba7 14524 * xfaces.c (font_rescale_ratio): Move to font.c.
96f9306b 14525
8d5b4964
CY
145262008-12-13 Chong Yidong <cyd@stupidchicken.com>
14527
14528 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
14529
e6df5336
JR
145302008-12-12 Jason Rumney <jasonr@gnu.org>
14531
bba3e508
SM
14532 * w32fns.c (x_display_info_for_name, Fx_open_connection):
14533 Set Vwindow_system_version to the real w32 major version.
e6df5336 14534
97c6058a
DN
145352008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
14536
14537 * term.c (init_tty): Move setting the terminal name before the
14538 potential user: maybe_fatal.
14539
ec4e88d7
CY
145402008-12-11 Chong Yidong <cyd@stupidchicken.com>
14541
ef1b0ba7 14542 * term.c (tty_free_frame_resources): Rename from delete_tty_output;
d4835507 14543 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 14544
b4233ec9
JR
145452008-12-11 Jason Rumney <jasonr@gnu.org>
14546
8ec71e23 14547 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 14548 SYMBOL_CHARSET. (Bug#547)
8ec71e23 14549
b4233ec9 14550 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 14551 size for surrogates. (Bug#1096, bug#872)
b4233ec9 14552
011a0143
JB
145532008-12-11 Juanma Barranquero <lekktu@gmail.com>
14554
14555 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
14556
3c309f34
JB
145572008-12-11 Juanma Barranquero <lekktu@gmail.com>
14558
14559 * process.c (Fsystem_process_attributes, syms_of_process):
14560 Fix typo in name of Ssystem_process_attributes.
14561 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
14562
fedc6ab5
JB
145632008-12-11 Juanma Barranquero <lekktu@gmail.com>
14564
14565 * syntax.c (Fmodify_syntax_entry): Doc fix.
14566
ba3de0e8
JB
145672008-12-10 Juanma Barranquero <lekktu@gmail.com>
14568
14569 * font.c (Ffont_spec): Move usage to end of docstring.
14570
174f1c74
JR
145712008-12-10 Jason Rumney <jasonr@gnu.org>
14572
14573 * w32font.c (Qcham): New symbol.
14574 (font_supported_scripts): Add cham, and comments for other new
14575 scripts in bitfield from OpenType spec.
9d32f818
JR
14576 (add_font_entity_to_list): Limit unicode-sip fonts to those that
14577 contain characters beyond the bmp.
174f1c74 14578
7b649478
KH
145792008-12-10 Kenichi Handa <handa@m17n.org>
14580
14581 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 14582 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
14583 Qunicode_sip.
14584
2133e2d1
JB
145852008-12-10 Juanma Barranquero <lekktu@gmail.com>
14586
14587 * coding.c (QCdefault_char): Rename from QCdefalut_char.
14588 (Fcoding_system_put): Use QCdefault_char.
14589 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
14590
9af886ee
CY
145912008-12-09 Chong Yidong <cyd@stupidchicken.com>
14592
74d819eb
CY
14593 * xftfont.c (syms_of_xftfont): Fix typo.
14594
4ccfa1c0 14595 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 14596
7c19d3ae
DN
145972008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
14598
14599 * emacs.c (main): Close daemon_pipe on exec.
14600
567826bb
CY
146012008-12-08 Chong Yidong <cyd@stupidchicken.com>
14602
14603 * termchar.h (struct tty): New members termcap_term_buffer and
14604 termcap_strings_buffer.
14605
14606 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 14607 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
14608 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
14609 All callers changed.
14610 (init_tty): Store termcap data and string buffers in new struct
14611 tty members termcap_term_buffer and termcap_strings_buffer.
14612 (delete_tty): Free them.
4ccfa1c0 14613 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 14614
aa96c42b
SZ
146152008-12-07 Seiji Zenitani <zenitani@mac.com>
14616
14617 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 14618 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 14619
b7e1d896
CY
146202008-12-06 Chong Yidong <cyd@stupidchicken.com>
14621
14622 * coding.c (make_conversion_work_buffer): Disable buffer
14623 modification hooks in the work buffer.
14624
b5ec91a5
EZ
146252008-12-05 Eli Zaretskii <eliz@gnu.org>
14626
14627 * process.c (procfs_system_process_attributes): If `nread' has a
14628 negative value, assign zero to it.
14629
a5d2a52b
CY
146302008-12-05 Chong Yidong <cyd@stupidchicken.com>
14631
68c5540b 14632 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 14633
7bf1bb21
KH
146342008-12-05 Kenichi Handa <handa@m17n.org>
14635
14636 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
14637 second character is a combining character.
14638
2fdc7d00
EZ
146392008-12-05 Eli Zaretskii <eliz@gnu.org>
14640
14641 * process.c (procfs_system_process_attributes): Don't use cmd,
14642 cmdsize, and q without initializing them first.
14643
bf6bfba8
JR
146442008-12-04 Jason Rumney <jasonr@gnu.org>
14645
14646 * w32font.c (w32font_draw): Initialize orig_clip before getting
14647 it, and delete it when finished.
14648
a3b1a468
DN
146492008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
14650
14651 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
14652 case when running as a daemon before detaching.
14653
8b8be8eb
JB
146542008-12-03 Juanma Barranquero <lekktu@gmail.com>
14655
805f2638 14656 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 14657
b1bde622
KH
146582008-12-03 Kenichi Handa <handa@m17n.org>
14659
e500c47d
KH
14660 * font.c (font_at): Set `multibyte' at first.
14661
ca516334
KH
14662 * coding.c (decode_coding_charset): Check type of an element of
14663 vector VALIDS.
7bf1bb21 14664 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 14665
4ccfa1c0 14666 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
14667 (font_for_char): Likewise.
14668
1e5ecd37
CY
146692008-12-03 Chong Yidong <cyd@stupidchicken.com>
14670
d5b01609 14671 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
14672 (font_update_lface): Handle fonts with corrupted size specs,
14673 i.e. non-int and non-float.
d5b01609 14674
11e3a6e4 14675 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 14676 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 14677 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 14678
ab06788b
CY
14679 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
14680
1e5ecd37 14681 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 14682 underline_minimum_offset for underline position.
1e5ecd37 14683
63c125ab
DN
146842008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
14685
14686 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
14687
14688 * character.c (c_string_width): Specify the type for LEN.
14689
3a8406e1
KH
146902008-12-03 Kenichi Handa <handa@m17n.org>
14691
4ccfa1c0 14692 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 14693 (decode_coding_utf_8): Likewise.
4ccfa1c0 14694 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 14695 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 14696
651df7d9
CY
146972008-12-02 Chong Yidong <cyd@stupidchicken.com>
14698
14699 * keyboard.c (make_lispy_position): Only use PT if the selected
14700 window is current.
14701
1f625c6c
AS
147022008-12-02 Andreas Schwab <schwab@suse.de>
14703
f7741ce9
AS
14704 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
14705
1f625c6c
AS
14706 * doprnt.c (doprnt1): Fix size of charbuf.
14707
92bc2678
CY
147082008-12-02 Chong Yidong <cyd@stupidchicken.com>
14709
14710 * keyboard.c (timer_check): Revert last change.
14711
93b9e8cc
JB
147122008-12-02 Juanma Barranquero <lekktu@gmail.com>
14713
14714 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
14715
fd7a37d5
JB
147162008-12-01 Juanma Barranquero <lekktu@gmail.com>
14717
14718 * makefile.w32-in: Update dependencies.
14719 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
14720
c115043b
AS
147212008-12-01 Andreas Schwab <schwab@suse.de>
14722
14723 * font.c (register_font_driver): Use xmalloc.
14724 (font_put_frame_data): Likewise.
14725
f5668d2a
CY
147262008-12-01 Chong Yidong <cyd@stupidchicken.com>
14727
860d96be
CY
14728 * xfaces.c (realize_x_face): Make abort condition clearer.
14729
f5668d2a
CY
14730 * gtkutil.c (update_frame_tool_bar): Initialize variable.
14731
379c17e7
CY
147322008-11-30 Chong Yidong <cyd@stupidchicken.com>
14733
14734 * keyboard.c (timer_check): After a timer runs, ensure that the
14735 selected window's buffer is current.
14736
35f36d65
JB
147372008-11-30 Juanma Barranquero <lekktu@gmail.com>
14738
f952c61c
JB
14739 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
14740 It was accidentally restored by the Unicode merge.
14741
35f36d65
JB
14742 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
14743
b23077df
JB
147442008-11-29 Juanma Barranquero <lekktu@gmail.com>
14745
14746 * w32proc.c: Include "coding.h".
14747 (Fw32_short_file_name): Encode filename passed to Windows API.
14748 (Fw32_long_file_name): Encode filename passed to Windows API and
14749 decode back the result. (Bug#1433)
14750
b8ebe9dd
KH
147512008-11-29 Kenichi Handa <handa@m17n.org>
14752
8cc53f96
KH
14753 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
14754 not before accessing it.
14755
b8ebe9dd
KH
14756 * charset.c (Fdefine_charset_internal): After calculating
14757 min_char, max_char, and fastmap, copy the charset structure again.
14758 (encode_char): Fix the previous change.
14759
59bc82c0
SZ
147602008-11-28 Seiji Zenitani <zenitani@mac.com>
14761
14762 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
14763
14764 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
14765
14766 * nsterm.m (x_set_frame_alpha): New function.
14767
32247e3d
EZ
147682008-11-27 Eli Zaretskii <eliz@gnu.org>
14769
14770 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
14771
b003e5ff
JB
147722008-11-27 Juanma Barranquero <lekktu@gmail.com>
14773
14774 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
14775 pointer to check_face_name.
14776
708550f5
KH
147772008-11-27 Kenichi Handa <handa@m17n.org>
14778
14779 * category.h (SET_CATEGORY_SET): Call set_category_set.
14780 (set_category_set): Extern it.
14781
14782 * category.c (hash_get_category_set): New function.
bba3e508 14783 (Fmodify_category_entry): Adjust for the change of
708550f5
KH
14784 char_table_ref_and_range. Call hash_get_category_set to get a
14785 category set to store in the table.
14786
14787 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
14788 Funify_charset.
14789
2ae37cf0 14790 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
14791 (DECODE_CHAR): Check if the decoder vector is ready.
14792 (ENCODE_CHAR): Check if the encoder char-table is ready.
14793 (maybe_unify_char): Extern it.
14794
14795 * charset.c (Vchar_unified_charset_table): Delete it.
14796 (inhibit_load_charset_map): New variable.
14797 (temp_charset_work): New variable.
14798 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
14799 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
14800 New macros.
bba3e508
SM
14801 (load_charset_map): Meaning of control_flag changed.
14802 If inhibit_load_charset_map is nonzero, setup a table in
708550f5
KH
14803 temp_charset_work.
14804 (load_charset): New argument control_flag.
14805 (map_charset_for_dump): New function.
14806 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
14807 map_charset_for_dump.
14808 (Fdefine_charset_internal): If the charset method is MAP, load
14809 mapping tables by calling load_charset.
14810 (Funify_charset): Don't load a mapping table but directly set
14811 Vchar_unify_table.
14812 (maybe_unify_char): New function.
14813 (decode_char): Don't handle the deleted method MAP_DEFERRED.
14814 Handle the case of inhibit_load_charset_map being nonzero.
14815 (encode_char): Don't handle the deleted method MAP_DEFERRED.
14816 Handle the case of inhibit_load_charset_map being nonzero.
14817 (Fclear_charset_maps): Just free temp_charset_work.
14818 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
14819 variable.
14820
bba3e508 14821 * chartab.c (sub_char_table_ref_and_range): Adjust for the
708550f5
KH
14822 change of char_table_ref_and_range.
14823 (char_table_ref_and_range): Change the meaning of argument FROM
14824 and TO. Now the caller must provide initial values for *FROM
14825 and *TO.
14826
bba3e508 14827 * fontset.c (fontset_add): Adjust for the change of
708550f5
KH
14828 char_table_ref_and_range.
14829 (fontset_get_font_group): Likewise.
14830 (Ffontset_info): Likewise.
14831
bba3e508 14832 * keymap.c (describe_vector): Adjust for the change of
708550f5
KH
14833 char_table_ref_and_range. For char-table, put boundary between
14834 non-ASCII and 8-bit characters.
14835
14836 * print.c (print_object): For bool-vector, delete unnecessary
14837 check of ASCII_BYTE_P.
14838
9196133b
JR
148392008-11-26 Jason Rumney <jasonr@gnu.org>
14840
14841 * w32font.c (w32font_open_internal): Don't include external
9acef61c 14842 leading in font height. (Bug#879)
9196133b 14843
9f688acf
GM
148442008-11-26 Glenn Morris <rgm@gnu.org>
14845
14846 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
14847 redefinition with ifdef. (Bug#1383)
14848
90d19aff
AR
148492008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
14850
14851 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
14852
4ccfa1c0 148532008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
14854
14855 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
14856 New EmacsView methods.
14857 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
14858 Fixes bug #1048,1357,1414.
14859
148602008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
14861
14862 Fix bug #1362.
14863 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
14864 is not an indexed color.
14865 * nsterm.m (free_indexed_color): Add argument checking.
14866 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
14867
e7d5ecb3
CY
148682008-11-24 Chong Yidong <cyd@stupidchicken.com>
14869
14870 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
14871 Document confirm-after-completion value for
14872 minibuffer-completion-confirm.
14873
c285743c
JR
148742008-11-24 Jason Rumney <jasonr@gnu.org>
14875
14876 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
14877 warning.
14878
b0857706
JR
148792008-11-23 Jason Rumney <jasonr@gnu.org>
14880
14881 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
14882 restored before returning.
14883
14884 * w32font.c (check_face_name): New function.
14885 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 14886 fonts. (Bug#642)
b0857706 14887
ee50ff07
MR
148882008-11-22 Martin Rudalics <rudalics@gmx.at>
14889
14890 * buffer.c (Fswitch_to_buffer): Reword and mention new option
14891 confirm-nonexistent-file-or-buffer in doc-string.
14892
b8ff72fa
SM
148932008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
14894
14895 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
14896 Fix copy/paste typo. Add checks.
14897
cee53ed4
KH
148982008-11-21 Kenichi Handa <handa@m17n.org>
14899
14900 * coding.c (detect_coding_iso_2022): Reject invalid composition
14901 sequence.
14902 (DECODE_COMPOSITION_START): If the current source is the last
14903 block, and the current composition doesn't end, regard this
14904 sequence as invalid.
14905 (decode_coding_iso_2022): Handle invalid composition sequence.
14906
f6ef1e65
MR
149072008-11-20 Martin Rudalics <rudalics@gmx.at>
14908
14909 * window.c (coordinates_in_window): Don't return
14910 ON_VERTICAL_BORDER for the rightmost position of a mode/header
14911 line when the window is not the rightmost one. (Bug#1372)
14912
e08b1705
MR
149132008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
14914
14915 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
14916
ad98e89f
EZ
149172008-11-15 Eli Zaretskii <eliz@gnu.org>
14918
14919 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
14920 and bright_bg if noninteractive is non-zero.
14921
fb098a4b
CY
149222008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14923
14924 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
14925 x_draw_glyph_string_background.
14926
14927 * w32term.c (x_draw_glyph_string): Likewise.
14928
ce952b6e
CY
149292008-11-15 Chong Yidong <cyd@stupidchicken.com>
14930
14931 * xterm.c (x_draw_glyph_string): Stop drawing the background of
14932 the next glyph string once past the overhang width.
14933
14934 * nsterm.m (ns_draw_glyph_string): Likewise.
14935
14936 * w32term.c (x_draw_glyph_string): Likewise.
14937
26ea7079
CY
149382008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
14939
14940 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
14941 double file close.
14942
1c33c906
MR
149432008-11-14 Martin Rudalics <rudalics@gmx.at>
14944
14945 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
14946 dedicated status of window before attempting to display another
14947 buffer in it.
14948
8fc29035
JB
149492008-11-14 Juanma Barranquero <lekktu@gmail.com>
14950
14951 * msdos.c (Fmsdos_long_file_names):
14952 (syms_of_msdos) <dos-unsupported-char-glyph>:
14953 * dosfns.c (Fint86): Fix typos in docstrings.
14954
55fb4286
EZ
149552008-11-14 Eli Zaretskii <eliz@gnu.org>
14956
14957 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
14958
3fda0315
KY
149592008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
14960
14961 * puresize.h (BASE_PURESIZE): Increase to 1260000.
14962
7e849c17
CY
149632008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
14964
14965 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
14966
14967 * frame.h: Negative alpha means "don't touch".
14968
14969 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
14970
14971 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
14972
b9fd67bd
DN
149732008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
14974
14975 * hftctl.c:
14976 * chpdef.h:
14977 * acldef.h: Remove files used only for systems no longer supported.
14978
14979 * Makefile.in: Fix .o alphabetical ordering.
14980 (hftctl.o): Remove dependency, file removed.
14981 (keymap.o, print.o): Depend on charset.h.
14982
d5998e03
KH
149832008-11-10 Kenichi Handa <handa@m17n.org>
14984
2ae37cf0 14985 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 14986
be70e183
CY
149872008-11-08 Chong Yidong <cyd@stupidchicken.com>
14988
14989 * dired.c (file_name_completion): If completion_ignore_case is
14990 enabled, ignore case when checking completion-regexp-list.
14991
7cf94eac
EZ
149922008-11-08 Eli Zaretskii <eliz@gnu.org>
14993
14994 * vm-limit.c (get_lim_data): Fix last change.
14995
ee107a89
KH
149962008-11-08 Kenichi Handa <handa@m17n.org>
14997
14998 * character.c (Fget_byte): New function.
14999 (syms_of_character): Defsubr Fget_byte.
15000
5fd15622
CY
150012008-11-07 Chong Yidong <cyd@stupidchicken.com>
15002
15003 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
15004 cursor position is valid after scrolling.
15005
13d62fad
JB
150062008-11-06 Juanma Barranquero <lekktu@gmail.com>
15007
15008 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
15009
a1dd2936
GM
150102008-11-06 Glenn Morris <rgm@gnu.org>
15011
15012 * xterm.c (handle_one_xevent): Don't let popup menus cause
15013 mouse-autoselect-window related window switching. (Bug#1261)
15014
860cd236
CY
150152008-11-04 David Smith <davidsmith@acm.org> (tiny change)
15016
15017 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
15018
653a3150
AS
150192008-11-04 Andreas Schwab <schwab@suse.de>
15020
15021 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
15022
870f5cac
CY
150232008-11-03 Chong Yidong <cyd@stupidchicken.com>
15024
15025 * xfns.c (Fx_wm_set_size_hint): New function.
15026
1e02f3cb
MR
150272008-11-03 Martin Rudalics <rudalics@gmx.at>
15028
15029 * textprop.c (Fprevious_single_char_property_change): Return 0
15030 when there's no change in a string. (Bug#1301)
15031
e630dfc6
MR
150322008-11-02 Martin Rudalics <rudalics@gmx.at>
15033
15034 * frame.c (do_switch_frame): New argument NORECORD passed to
15035 Fselect_window.
15036 (Fselect_frame): New argument NORECORD passed to
15037 do_switch_frame.
15038 (Fset_frame_selected_window): New argument NORECORD passed to
15039 Fselect_frame.
15040 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
15041 in call of do_switch_frame.
15042 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
15043 Handle NORECORD argument in call of Fselect_frame.
15044 * lisp.h (do_switch_frame, Fselect_frame)
15045 (Fset_frame_selected_window): Adjust declarations.
15046 * window.c (select_frame_norecord): New function.
15047 (run_window_configuration_change_hook): Use it and call
15048 Fselect_frame with NORECORD set.
15049 (Fselect_window): Pass NORECORD to Fselect_frame.
15050 (Fset_window_configuration): Handle NORECORD argument in call of
15051 do_switch_frame.
15052 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
15053 Fset_frame_selected_window.
15054 * keyboard.c (command_loop_1): Handle NORECORD in call of
15055 Fselect_frame (currently ifdefd).
15056
9020b223
GM
150572008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
15058
15059 * emacs.c (USAGE2): Untabify.
15060
793ffee8
SM
150612008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
15062
15063 * composite.c (fill_gstring_header): Fix copy/paste typo.
15064
ab6d1131
MR
150652008-10-31 Martin Rudalics <rudalics@gmx.at>
15066
15067 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
15068 (Fother_window): Rename argument and rewrite doc-string.
15069 (select_window_norecord): Fix return value. (Bug#1276)
15070
601a9cf1
JB
150712008-10-30 Juanma Barranquero <lekktu@gmail.com>
15072
15073 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
15074 new frames overriding foreground for tooltips. Based on similar patch
15075 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
15076
813b0652
CY
150772008-10-29 Chong Yidong <cyd@stupidchicken.com>
15078
15079 * emacs.c (Fdaemon_initialized): Initialize nfd.
15080
4414f58f
MR
150812008-10-29 Martin Rudalics <rudalics@gmx.at>
15082
15083 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
15084 (Fwindow_text_height): Clarify doc-strings.
15085 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
15086 doc-string of window-scroll-functions.
15087
ecdcaa09
RS
150882008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
15089
15090 * category.c (syms_of_category): Fix typo in docstring.
15091
23fe745a
JB
150922008-10-28 Juanma Barranquero <lekktu@gmail.com>
15093
15094 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
15095 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
15096 Fix typos in docstrings.
15097
ff808935
DN
150982008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
15099
15100 * emacs.c (daemon_pipe): Make non-static.
15101 (IS_DAEMON): Move definition ...
15102 * lisp.h (IS_DAEMON): ... here.
15103 (daemon_pipe): Declare.
15104 (is_daemon): Remove.
15105 * dispnew.c (init_display): Use IS_DAEMON.
15106
fc012771
SM
151072008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
15108
15109 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
15110 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
15111
15112 * emacs.c (is_daemon): Remove.
15113 (main): Don't set is_daemon.
15114 (IS_DAEMON): New macro.
15115 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 15116 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
15117 parent exits.
15118 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
15119
d8bdbe6f
CY
151202008-10-27 Chong Yidong <cyd@stupidchicken.com>
15121
d1a072bf
CY
15122 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
15123 over-sized glyph, draw it with the default glyph width.
15124
e2e325aa
CY
15125 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
15126 glyph, draw it with the default glyph width.
15127
15128 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
15129 glyph, draw it with the default glyph width.
15130
d8bdbe6f
CY
15131 * xdisp.c (try_scrolling): When computing the distance from the
15132 scroll margin to PT, try moving some distance past the window
15133 bottom before giving up.
15134
7bfac547
MR
151352008-10-27 Martin Rudalics <rudalics@gmx.at>
15136
15137 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
15138 (Fset_window_buffer): Explain in doc-string that a window can be
15139 "strongly" dedicated to its buffer.
15140
4ff029f6
DN
151412008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
15142
15143 * emacs.c (daemon_name): New variable.
15144 (main): Deal with --daemon=SERVER_NAME.
15145 (Fdaemonp): Return a name if one was passed to --daemon.
15146
5790ef40
DN
151472008-10-26 Romain Francoise <romain@orebokech.com>
15148
f9bd0df9 15149 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
15150 (main): Create a pipe before forking, make the parent exit only after
15151 the child has closed its end of the pipe. Move closing the
15152 descriptors ...
15153 (Fdaemon_initialized): ... here. New function.
15154
f5385255
SM
151552008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
15156
4d632321
SM
15157 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
15158 the previous unoptimized table.
15159
f5385255
SM
15160 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
15161 the distinction between non-nil and non-t value of `dedicated'.
15162
6c56a0f3
CY
151632008-10-25 Chong Yidong <cyd@stupidchicken.com>
15164
15165 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 15166 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 15167
fec89261
MR
151682008-10-25 Martin Rudalics <rudalics@gmx.at>
15169
15170 * window.c (Fget_buffer_window, Fdelete_windows_on)
15171 (Freplace_buffer_in_windows): Make buffer argument optional and
15172 rename to buffer_or_name.
15173
34fcddd0
CY
151742008-10-24 Chong Yidong <cyd@stupidchicken.com>
15175
f5385255
SM
15176 * xdisp.c (handle_single_display_spec, handle_display_prop):
15177 Undo 2005-05-16 change.
34fcddd0
CY
15178 (handle_stop): Pop iterator if it's loaded with an empty string.
15179 (get_overlay_strings_1): Don't save iterator if it's loaded with
15180 an empty string (bug#1201).
15181
064766f2
KH
151822008-10-24 Kenichi Handa <handa@m17n.org>
15183
15184 * ftfont.c (ftfont_otf_features): Fix previous change.
15185 (ftfont_otf_capability): Check FeatureList.FeatureCount before
15186 calling ftfont_otf_features.
15187
f9bd0df9 151882008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
15189
15190 * font.c (font_match_p): Fix for the case that a vector of
15191 characters is in script-representative-chars.
15192
1dae9197
MA
151932008-10-24 Michael Albinus <michael.albinus@gmx.de>
15194
15195 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 15196 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
15197 (xd_read_queued_messages): Catch Qdbus_error from the macros.
15198 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 15199 macro. (Bug#1186)
1dae9197 15200
f9bd0df9 152012008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
15202
15203 * s/sol2-10.h: New file.
15204
878a4584
JB
152052008-10-23 Juanma Barranquero <lekktu@gmail.com>
15206
15207 * xdisp.c (fill_glyph_string): Fix typo in source (though the
15208 poor beast has survived 9+ years and the jump from xterm.c!).
15209
cd265ca6
MR
152102008-10-23 Martin Rudalics <rudalics@gmx.at>
15211
15212 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
15213 Reword doc-string.
f5385255 15214 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 15215
472a4dc9
JB
152162008-10-23 Juanma Barranquero <lekktu@gmail.com>
15217
15218 * character.c (syms_of_character) <script-representative-chars>:
15219 <unicode-category-table>: Doc fixes.
15220
159bd5a2
NF
152212008-10-23 Noah Friedman <friedman@splode.com>
15222
15223 * coding.c (make_conversion_work_buffer): Check that
15224 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
15225 Fget_buffer_create.
15226
49f9c344
KH
152272008-10-23 Kenichi Handa <handa@m17n.org>
15228
15229 * font.c (font_add_log): Check the values of extra properties.
15230
12bb3111
MR
152312008-10-22 Martin Rudalics <rudalics@gmx.at>
15232
15233 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
15234 Reword doc-string.
15235 (Fset_window_parameter): Use NILP.
15236 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 15237 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 15238
bbeb4e99
JB
152392008-10-22 Juanma Barranquero <lekktu@gmail.com>
15240
15241 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
15242
152432008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
15244
15245 * nsfns.m (ns_appkit_version): New function.
15246 (x-server-version): Use it.
15247 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
15248 (x-server-vendor): Don't check_ns().
15249
15250 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
15251
a9b555d3
JB
152522008-10-22 Juanma Barranquero <lekktu@gmail.com>
15253
15254 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
15255 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
15256
4626499f
KH
152572008-10-22 Kenichi Handa <handa@m17n.org>
15258
e3681952
KH
15259 * syntax.c (scan_words): Call word_boundary_p instead of comparing
15260 scripts.
15261
4626499f
KH
15262 * category.c (word_boundary_p): Check scripts instead of charset.
15263 Handle nil value in word-separating-categories and
15264 word-combining-categories.
15265 (syms_of_category): Fix docstrings of word-separating-categories
15266 and word-combining-categories.
15267
1560f91a
EZ
152682008-10-21 Eli Zaretskii <eliz@gnu.org>
15269
15270 * coding.c (Fencode_coding_region, Fdecode_coding_region)
15271 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
15272
f4668441
MR
152732008-10-21 Martin Rudalics <rudalics@gmx.at>
15274
15275 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
15276 Rename arg "buffer" to "buffer_or_name".
15277 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
15278 it optional.
15279 (no_switch_window): Remove since the return value is not used.
a9b555d3 15280 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
15281 Consider window as dedicated when Fwindow_dedicated_p returns a
15282 non-nil value.
15283 * lisp.h: Remove prototype for no_switch_window.
15284
fd75ddb2
JD
152852008-10-21 Jan Djärv <jan.h.d@swipnet.se>
15286
15287 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 15288 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 15289
07295713
KH
152902008-10-21 Kenichi Handa <handa@m17n.org>
15291
15292 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
15293 check Vlatin_extra_code_table.
15294
712adc82
EZ
152952008-10-20 Eli Zaretskii <eliz@gnu.org>
15296
15297 * fileio.c (Fset_file_modes): Doc fix.
15298
f549eb0b
MA
152992008-10-19 Michael Albinus <michael.albinus@gmx.de>
15300
15301 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
15302 in arrays.
15303
aac0c6e3
MR
153042008-10-19 Martin Rudalics <rudalics@gmx.at>
15305
15306 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
15307 Mention kill-buffer in doc-string.
15308 (Fset_window_buffer): Reinsert tem check removed in last commit.
15309 (Fenlarge_window, Fshrink_window): Have argument names and
15310 doc-string follow Elisp manual more closely.
15311
153122008-10-18 Eli Zaretskii <eliz@gnu.org>
15313
15314 * fileio.c (Fset_file_modes): Doc fix.
15315
153162008-10-18 Martin Rudalics <rudalics@gmx.at>
15317
15318 * window.c (Fwindow_width, Fset_window_start)
15319 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
15320 (Fdelete_windows_on, Freplace_buffer_in_windows):
15321 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
15322 (Fwindow_dedicated_p): Make window argument optional.
15323 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
15324 (Fset_window_buffer): Respect any non-nil dedicated value for
15325 window. Rename "buffer" argument to "buffer_or_name".
15326
153272008-10-18 Ulrich Mueller <ulm@gentoo.org>
15328
15329 * m/sh3.h: New file, machine description for SuperH.
15330
153312008-10-17 Martin Rudalics <rudalics@gmx.at>
15332
15333 * window.c (Fsplit_window): Rename arg horflag to horizontal.
15334
153352008-10-17 Kenichi Handa <handa@m17n.org>
15336
15337 * ftfont.c (ftfont_otf_features): Fix indexing
15338 gsub_gpos->FeatureList.Feature. Check the validity of indices.
15339
153402008-10-16 Magnus Henoch <mange@freemail.hu>
15341
15342 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
15343 (Fdbus_call_method_asynchronously): Ditto.
15344 This change makes C-h f display the argument list.
15345
153462008-10-16 Chong Yidong <cyd@stupidchicken.com>
15347
15348 * fileio.c (Fexpand_file_name): Doc fix.
15349
15350 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
15351 of :foreground and :background equivalent to unspecified (20.x
15352 compatibility).
15353
153542008-10-15 Eli Zaretskii <eliz@gnu.org>
15355
15356 * buffer.c (syms_of_buffer): Doc fix.
15357
153582008-10-14 Kenichi Handa <handa@m17n.org>
15359
15360 * font.c (font_clear_prop): When clearing font width, clear the
15361 average width field too.
15362
153632008-10-12 Andreas Schwab <schwab@suse.de>
15364
15365 * ftfont.c (ftfont_shape_by_flt): Make static.
15366 * ftfont.h (ftfont_shape_by_flt): Don't declare.
15367
15368 * font.c: Don't include <m17n-flt.h>.
15369
153702008-10-10 Eli Zaretskii <eliz@gnu.org>
15371
15372 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
15373
153742008-10-09 Eli Zaretskii <eliz@gnu.org>
15375
15376 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
15377 away code.
15378
153792008-10-09 Chong Yidong <cyd@stupidchicken.com>
15380
15381 * dispnew.c (update_text_area): Avoid looping due to large glyph
15382 overhangs (bug#1070).
15383
153842008-10-09 Kenichi Handa <handa@m17n.org>
15385
15386 * fontset.c (face_for_char): If face->fontset is negative, just
15387 return ascii_face.
15388
f5385255
SM
15389 * font.c (font_delete_unmatched): Fix previous change.
15390 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
15391
153922008-10-09 Martin Rudalics <rudalics@gmx.at>
15393
15394 * frame.c (Fraise_frame): On text-only terminals select frame in
15395 order to make it visible. (Bug#1061)
15396
153972008-10-08 Chong Yidong <cyd@stupidchicken.com>
15398
15399 * fontset.c (fontset_find_font): Check frame validity.
15400
154012008-10-07 Chong Yidong <cyd@stupidchicken.com>
15402
a9b555d3 15403 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
15404 (xg_display_close): Allow Emacs to close all displays (bug#985).
15405
154062008-10-06 Andreas Schwab <schwab@suse.de>
15407
f5385255 15408 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
15409
154102008-10-06 Chong Yidong <cyd@stupidchicken.com>
15411
f5385255 15412 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 15413
a9b555d3 15414 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
15415
15416 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
15417 during initialization.
15418
154192008-10-04 Eli Zaretskii <eliz@gnu.org>
15420
15421 * xdisp.c (redisplay_internal): If frame switched, redisplay the
15422 whole thing on MSDOS frames as well as on a TTY.
15423
15424 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
15425 well as for TTY.
15426 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
15427 well as on a TTY.
15428
15429 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
15430 as well as for TTY.
15431
15432 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
15433
15434 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
15435 MSDOS frames as well.
15436
154372008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
15438
15439 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
15440 correct arguments.
b71ac3dd 15441 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
15442
154432008-10-03 Glenn Morris <rgm@gnu.org>
15444
15445 * emacs.c (USAGE1): Add --daemon.
15446
154472008-10-02 Eli Zaretskii <eliz@gnu.org>
15448
15449 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
15450 100, so it's in percents as advertised.
15451
154522008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
15453
15454 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
15455 (ns_output.current_cursor, ns_output.desired_cursor)
15456 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
15457 (FRAME_NEW_CURSOR_COLOR): Remove.
15458
15459 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 15460 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
15461 enumeration (HOLLOW_BOX_CURSOR, etc.).
15462
15463 * nsterm.m (ns_frame_rehighlight): Remove commented code.
15464 (draw_window_cursor): Simplify code.
f5385255
SM
15465 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
15466 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 15467 updates manually.
a9b555d3
JB
15468 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
15469 Use core Emacs cursor types.
aac0c6e3 15470
b8ff72fa 15471 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
15472
154732008-10-02 Martin Rudalics <rudalics@gmx.at>
15474
15475 * process.c (Faccept_process_output): Fix doc-string.
15476
154772008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
15478
15479 * gmalloc.c (__sbrk): Also define for uClibc.
15480
15481 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
15482 for uClibc.
15483
154842008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
15485
15486 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
15487 styles.
15488 (nsfont_open): Reenable the cache.
15489
154902008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
15491
15492 * font.c (font_matching_entity): Reflect ATTRS in font selection.
15493 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
15494
154952008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
15496
15497 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
15498 a suspended terminal.
15499
155002008-09-30 Michael Albinus <michael.albinus@gmx.de>
15501
15502 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
15503
155042008-09-30 Eli Zaretskii <eliz@gnu.org>
15505
15506 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
15507
155082008-09-30 Chong Yidong <cyd@stupidchicken.com>
15509
15510 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
15511 in a continued line coincides with a line beginning.
15512
155132008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
15514
15515 * nsfont.m (nsfont_trait_distance): Fix bug.
15516 (nsfont_list): Return a list rather than a vector (syncs with Handa
15517 changes of 2008-05-14).
15518 (nsfont_open): Improve logging.
15519
155202008-09-29 Andreas Schwab <schwab@suse.de>
15521
15522 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
15523
155242008-09-28 Martin Rudalics <rudalics@gmx.at>
15525
15526 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
15527 name as char-resolve-modifiers.
15528 Reported by: Markus Triska <markus.triska@gmx.at>
15529
155302008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
15531
15532 * dispnew.c (init_display): Return earlier when running as a daemon.
15533
155342008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
15535
15536 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
15537
155382008-09-27 Eli Zaretskii <eliz@gnu.org>
15539
15540 * composite.c (Fcomposition_get_gstring)
15541 (Fcompose_region_internal, Fcompose_string_internal)
15542 (Ffind_composition_internal): Doc fix.
15543 (syms_of_composite) <compose-chars-after-function>: Doc fix.
15544 (syms_of_composite) <auto-composition-function>: Doc fix.
15545 (syms_of_composite) <composition-function-table>: Doc fix.
15546
155472008-09-25 Chong Yidong <cyd@stupidchicken.com>
15548
15549 * search.c (wordify): New argument for lax word-ends.
15550 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
15551
155522008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
15553
15554 * lisp.h (is_daemon): Declare.
15555 * dispnew.c (init_display): Do not try to initialize the terminal
15556 when running as a daemon.
15557
155582008-09-22 Chong Yidong <cyd@stupidchicken.com>
15559
15560 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
15561 x_display_pixel_height.
15562
155632008-09-22 Martin Rudalics <rudalics@gmx.at>
15564
15565 * undo.c (record_point): Don't call Fundo_boundary for first
15566 change. (Bug#731)
15567
155682008-09-22 Juanma Barranquero <lekktu@gmail.com>
15569
15570 * emacs.c (Fdaemonp): Doc fix.
15571
155722008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
15573
15574 * emacs.c (main): Place #ifdef in the proper place.
15575
155762008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
15577
15578 * emacs.c (standard_args): Add --daemon.
15579 (main): Disconnect from the terminal when --daemon is passed.
15580 (is_daemon): New variable.
15581 (Fdaemonp): New function.
15582 (syms_of_emacs): Defsubr it.
15583
155842008-09-20 Chong Yidong <cyd@stupidchicken.com>
15585
15586 * xdisp.c (get_next_display_element): Handle string display
15587 correctly when checking for the end of a box run.
15588
155892008-09-20 Glenn Morris <rgm@gnu.org>
15590
15591 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
15592 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
15593 (Frename_file): Avoid copying to trash if a rename involves
15594 a delete. (Bug#964).
15595
155962008-09-20 Eli Zaretskii <eliz@gnu.org>
15597
15598 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
15599 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
15600 frames as well as termcap frames.
15601 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
15602 get_named_tty.
15603
156042008-09-19 Eli Zaretskii <eliz@gnu.org>
15605
15606 * process.c (procfs_system_process_attributes): Fix cmdline in
15607 case /proc/PID/cmdline is empty.
15608
15609 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
15610 x_display_pixel_height.
15611
156122008-09-19 Juanma Barranquero <lekktu@gmail.com>
15613
15614 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
15615
15616 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
15617 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
15618
156192008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
15620
15621 * dispextern.h (struct it): Move line_wrap away from the middle of
15622 bitfields. Move voffset in struct iterator_stack_entry after the
15623 bitfields. Move tab_width near after another short.
15624
156252008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
15626
15627 * frame.h (struct frame): Move alpha from the middle of bitfields.
15628
15629 * window.h (struct window): Move frozen_window_start_p after the
15630 rest of the bitfields to reduce padding.
15631
156322008-09-18 Chong Yidong <cyd@stupidchicken.com>
15633
15634 * xterm.h (x_display_info): Remove `height' and `width' members.
15635
15636 * nsterm.h (ns_display_info): Remove `height' and `width' members.
15637
15638 * w32term.h (w32_display_info): Remove `height', `width',
15639 `height_in', and `width_in' members.
15640
b8ff72fa
SM
15641 * xterm.c (x_display_pixel_height, x_display_pixel_width):
15642 New functions.
aac0c6e3
MR
15643 (x_calc_absolute_position): Use them.
15644 (x_term_init): Omit removed `height' and `width' members.
15645
b8ff72fa
SM
15646 * w32term.c (x_display_pixel_height, x_display_pixel_width):
15647 New functions.
aac0c6e3
MR
15648 (w32_read_socket, x_calc_absolute_position): Use them.
15649 (w32_initialize_display_info, w32_term_init): Omit removed members
15650 of w32_display_info.
15651
b8ff72fa
SM
15652 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
15653 New functions.
15654 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 15655
b8ff72fa
SM
15656 * xterm.c (x_display_pixel_height, x_display_pixel_width):
15657 New functions.
aac0c6e3
MR
15658 (x_calc_absolute_position): Use them.
15659 (x_term_init): Omit removed `height' and `width' members.
15660
15661 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
15662 (compute_tip_xy):
15663 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
15664 * xmenu.c (menu_position_func): Use x_display_pixel_height and
15665 x_display_pixel_width.
15666
156672008-09-18 Kenichi Handa <handa@m17n.org>
15668
15669 * composite.c (fill_gstring_header): Don't check FROM and TO here.
15670 (composition_compute_stop_pos): Fix handling of static composition.
15671 (Fcomposition_get_gstring): Check FROM and TO at first.
15672
156732008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
15674
46e722a9 15675 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
15676 mixup (YAILOM).
15677
156782008-09-17 Chong Yidong <cyd@stupidchicken.com>
15679
15680 * indent.c (Fvertical_motion): Use position reported by iterator
15681 instead of PT for determining screen motion (bug#943).
15682
156832008-09-17 Romain Francoise <romain@orebokech.com>
15684
15685 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
15686
156872008-09-17 Kenichi Handa <handa@m17n.org>
15688
15689 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
15690
15691 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
15692 if necessary.
15693
156942008-09-16 Kenichi Handa <handa@m17n.org>
15695
15696 * coding.c (make_conversion_work_buffer): Avoid calling
15697 Fget_buffer_create if it is not necessary.
15698
156992008-09-15 Martin Rudalics <rudalics@gmx.at>
15700
15701 * window.c (Fselect_window): Don't update window_select_count and
15702 use_time when norecord is not nil.
15703
157042008-09-14 Kenichi Handa <handa@m17n.org>
15705
15706 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
15707 specpdl_ptr.
15708
157092008-09-12 Kenichi Handa <handa@m17n.org>
15710
15711 * indent.c (scan_for_column): Don't handle automatic composition
15712 if the current buffer is not associated with a window.
15713
15714 * composite.c (composition_reseat_it): If the current buffer is
15715 not associated with a window, ignore the automatic composition.
15716 (find_automatic_composition): Likewise.
15717
157182008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
15719
15720 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
15721 (Fgpm_mouse_stop): Use it.
15722 * termhooks.h (close_gpm): Declare.
15723 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
15724 connection if Gpm_GetEvent fails.
15725
15726 * window.c (set_window_buffer): Always preserve current-buffer.
15727
157282008-09-12 Glenn Morris <rgm@gnu.org>
15729
15730 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
15731
157322008-09-11 Glenn Morris <rgm@gnu.org>
15733
15734 * charset.c (charset-map-path): Doc fix.
15735
157362008-09-10 Kenichi Handa <handa@m17n.org>
15737
15738 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
15739
15740 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
15741 compose a grapheme cluster with the preceding base glyph.
15742
15743 * composite.c (composition_compute_stop_pos): Fix previous change.
15744 Reset cmp_it->id to -1 at first.
15745
157462008-09-10 Glenn Morris <rgm@gnu.org>
15747
15748 * Makefile.in (character.o, chartab.o): Fix config.h typo.
15749
157502008-09-09 Chong Yidong <cyd@stupidchicken.com>
15751
15752 * keyboard.c (read_key_sequence): Reapply translation maps when
15753 switching keyboards.
15754
157552008-09-09 Kenichi Handa <handa@m17n.org>
15756
15757 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
15758 characters.
15759
15760 * composite.c (FORWARD_CHAR): Fix calculation
15761 of (POSITION).pos_byte.
15762 (composition_compute_stop_pos): Limit the search of composition to
15763 at most 500 characters ahead. If we reach the limit or find a
15764 newline, set cmp_it->ch to -2 and return 0.
15765 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
15766
157672008-09-08 Kenichi Handa <handa@m17n.org>
15768
15769 * indent.c (Fvertical_motion): Be sure to set
15770 it_overshoot_expected if it.cmp_it.id is non-negative.
15771
157722008-09-07 Andreas Schwab <schwab@suse.de>
15773
15774 * callproc.c (Fcall_process): Don't hold references to string data
15775 across garbage collection. Move initialisation of new_argv down
15776 to avoid compiler bug.
15777
157782008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
15779
15780 * process.c (Fsystem_process_attributes): Doc fix.
15781
157822008-09-07 Chong Yidong <cyd@stupidchicken.com>
15783
15784 * callproc.c (Fcall_process): Canonicalize current directory name.
15785
15786 * xdisp.c (move_it_to): When moving by vpos, ensure that the
15787 iterator advances to the next line if the current line ends in a
15788 continued tab.
15789
157902008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
15791
15792 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
15793 member to point to cmp_from.
15794
15795 * xdisp.c: Doc fix for references to gidx data member.
15796
157972008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
15798
15799 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
15800
158012008-09-07 Kenichi Handa <handa@m17n.org>
15802
15803 * composite.c (FORWARD_CHAR): Check STOP after
15804 incrementing (POSITION).pos.
15805
158062008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
15807
15808 * process.c (Fsystem_process_attributes): Doc fix.
15809
158102008-09-06 Chong Yidong <cyd@stupidchicken.com>
15811
15812 * keyboard.c (Ftop_level): Doc fix.
15813
158142008-09-06 Eli Zaretskii <eliz@gnu.org>
15815
15816 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
15817 minibuffer, don't let lower part of menu invade the echo area.
15818
15819 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
15820 "char *q" to access menu text and advance through it. Revert the
15821 change that displayed ">" instead of ASCII character 0x10.
15822
158232008-09-05 Eli Zaretskii <eliz@gnu.org>
15824
15825 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
15826 toggle boxes and radio buttons on MS-DOS as well.
15827
158282008-09-05 Kenichi Handa <handa@m17n.org>
15829
15830 * composite.c (autocmp_chars): Check lookback count.
15831 (composition_compute_stop_pos): Set cmp_it->lookback.
15832 (composition_reseat_it): Check lookback count.
15833 (struct position_record): New struct.
15834 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
15835 (find_automatic_composition): New function.
15836 (composition_adjust_point): Use find_automatic_composition.
15837
15838 * dispextern.h (struct composition_it): New member lookback.
15839
158402008-09-02 Chong Yidong <cyd@stupidchicken.com>
15841
15842 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
15843 if moving by a single line.
15844
158452008-09-02 Andreas Schwab <schwab@suse.de>
15846
15847 * xterm.c (x_delete_display): Fix merge error.
15848
15849 * fileio.c (Fexpand_file_name): Remove unused variables.
15850
158512008-09-02 Eli Zaretskii <eliz@gnu.org>
15852
15853 * fileio.c (Fexpand_file_name): Copy argument `name' into local
15854 storage on all platforms, not just on DOS_NT.
15855
158562008-09-02 Jason Rumney <jasonr@gnu.org>
15857
b8ff72fa
SM
15858 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
15859 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
15860
158612008-09-01 Chong Yidong <cyd@stupidchicken.com>
15862
15863 * xfaces.c (Finternal_set_alternative_font_family_alist)
15864 (Finternal_set_alternative_font_registry_alist): Properly copy
15865 entire alist structure.
15866
158672008-09-01 Kenichi Handa <handa@m17n.org>
15868
d66c0241 15869 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 15870 representative chars of the script is a vector.
d66c0241
JB
15871 (ftfont_list): Handle the case where the representative chars of
15872 the script is a vector.
aac0c6e3
MR
15873
15874 * character.c (syms_of_character): Docstring of
15875 script-representative-chars fixed.
15876
158772008-08-31 Eli Zaretskii <eliz@gnu.org>
15878
15879 * msdos.c (BUILD_CHAR_GLYPH): New macro.
15880 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
15881 the menu. Allocate larger buffer for `text', to account for
15882 possible ^C characters.
15883
158842008-08-31 Martin Rudalics <rudalics@gmx.at>
15885
15886 * xdisp.c (prepare_menu_bars): Don't call
15887 Vwindow_size_change_functions with arg Qt.
15888
158892008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
15890
15891 * font.h (font_range):
15892 * fileio.c (report_file_error):
46e722a9
SM
15893 * composite.c (composition_update_it): Yet another int/Lisp_Object
15894 mixup (YAILOM).
aac0c6e3
MR
15895
158962008-08-30 Glenn Morris <rgm@gnu.org>
15897
15898 * data.c (Fmake_variable_frame_local): Doc fix.
15899
15900 * frame.c (Fmodify_frame_parameters): Doc fix.
15901
159022008-08-30 Eli Zaretskii <eliz@gnu.org>
15903
15904 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
15905 needed by GetTokenInformation.
15906 (w32_system_process_attributes): Check return values of all system
15907 APIs.
15908
15909 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
15910 only when the state changes.
15911 (IT_update_begin, IT_update_end): Add termscript trace.
15912
15913 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
15914 clipboard is unavailable. Set dst to NULL if it doesn't point to
15915 malloc'ed data.
15916 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
15917 passing random values to xfree.
15918
15919 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 15920 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
15921
159222008-08-29 Jason Rumney <jasonr@gnu.org>
15923
15924 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
15925
159262008-08-29 Eli Zaretskii <eliz@gnu.org>
15927
15928 * composite.c (fill_gstring_body): Avoid compiler warnings.
15929
15930 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
15931 LGLYPH_SET_CODE to avoid compiler warnings.
15932
2ae37cf0 15933 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
15934
15935 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
15936
15937 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
15938 LGLYPH_SET_CODE.
15939
159402008-08-29 Kenichi Handa <handa@m17n.org>
15941
15942 * fileio.c (report_file_error): Don't downcase the first character
15943 of errstring if it is still unibyte.
15944
159452008-08-29 Kenichi Handa <handa@m17n.org>
15946
15947 These changes are to re-implement the automatic composition so
15948 that it doesn't use text properties.
15949
15950 * Makefile.in (ftfont.o): Depend on composite.h.
15951 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
15952
15953 * character.h (Vunicode_category_table): Extern it.
15954
15955 * character.c (Vunicode_category_table): New variable.
15956 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
15957
15958 * chartab.c (optimize_sub_char_table): Perform more greedy
15959 optimization.
15960
b8ff72fa
SM
15961 * composite.h (enum composition_method):
15962 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
15963 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
15964 (Vcomposition_function_table): Extern it.
15965 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
15966 (composition_gstring_put_cache, composition_gstring_from_id)
15967 (composition_gstring_p, composition_gstring_width)
15968 (composition_compute_stop_pos, composition_reseat_it)
15969 (composition_update_it, composition_adjust_point): Extern them.
15970 (Fcomposition_get_gstring): EXFUN it.
15971
d66c0241 15972 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
15973 (Vcomposition_function_table)
15974 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
15975 (gstring_hash_table, gstring_work, gstring_work_headers):
15976 New variables.
aac0c6e3
MR
15977 (gstring_lookup_cache, composition_gstring_put_cache)
15978 (composition_gstring_from_id, composition_gstring_p)
15979 (composition_gstring_width, fill_gstring_header)
15980 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
15981 (composition_reseat_it, composition_update_it)
b8ff72fa 15982 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
15983 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
15984 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 15985 Defsubr composition_get_gstring.
aac0c6e3
MR
15986
15987 * dispextern.h (struct glyph): New union u.cmp. Delete the member
15988 cmp_id.
15989 (struct glyph_string): Delete the member gidx. New members
15990 cmp_id, cmp_from, and cmp_to.
15991 (enum it_method): Delete GET_FROM_COMPOSITION.
15992 (struct composition_it): New struct.
15993 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
15994 Delete c, len, cmp_id, cmp_len in u.comp.
15995
15996 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 15997 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 15998 (enum lglyph_indices): Likewise.
b8ff72fa 15999 (font_range): Adjust extern.
aac0c6e3
MR
16000 (font_fill_lglyph_metrics): Extern it.
16001
16002 * font.c (QCf): New variable.
16003 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
16004 (font_prepare_composition): Delete this function.
16005 (font_range): Type and arguments changed.
16006 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
16007 (font_fill_lglyph_metrics): New function.
b8ff72fa 16008 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 16009 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
16010 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
16011 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
16012
16013 * fontset.h (font_for_char): Extern it.
16014
16015 * fontset.c (font_for_char): New function.
16016
16017 * ftfont.c: Include composite.h.
16018 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 16019 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
16020
16021 * indent.c: Include composite.h and dispextern.h.
16022 (check_composition): Delete this function.
16023 (scan_for_column): Handle composition by
16024 composition_compute_stop_pos, composition_reseat_it, and
16025 composition_update_it.
16026 (compute_motion): Likewise.
16027 (Fvertical_motion): Fix checking of composition.
16028
16029 * keyboard.c (adjust_point_for_property): Check composition by
16030 composition_adjust_point.
16031
b8ff72fa 16032 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
16033 struct glyph_string.
16034
b8ff72fa
SM
16035 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
16036 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
16037 struct glyph.
16038 (produce_composite_glyph): Likewise.
16039
b8ff72fa
SM
16040 * w32term.c (x_draw_composite_glyph_string_foreground):
16041 Adjust for the change of struct glyph_string.
aac0c6e3
MR
16042 (x_draw_glyph_string): Likewise.
16043
16044 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
16045 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
16046
16047 * xdisp.c: Include font.h.
16048 (it_props): Delete the entry for Qauto_composed.
16049 (init_iterator): Initialize it->cmp_it.id to -1.
16050 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 16051 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
16052 (handle_auto_composed_prop): Delete it.
16053 (handle_composition_prop): Handle only static composition.
16054 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
16055 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 16056 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
16057 (pop_it): Likewise.
16058 (get_next_element): Delete next_element_from_composition.
16059 (CHAR_COMPOSED_P): New macro.
16060 (get_next_display_element): For automatic composition, get a face
16061 from the font in the glyph-string.
16062 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 16063 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
16064 (next_element_from_string): Check if the character at the current
16065 position is composed by CHAR_COMPOSED_P.
16066 (next_element_from_buffer): Likewise.
d66c0241
JB
16067 (next_element_from_composition): Adjust for the change of struct it.
16068 Update it->cmp_it.
b8ff72fa
SM
16069 (dump_glyph): Adjust for the change of struct glyph.
16070 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
16071 it and struct glyph. Don't handle automatic composition here.
16072 (fill_gstring_glyph_string): New function.
16073 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 16074 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
16075 (BUILD_GSTRING_GLYPH_STRING): New macro.
16076 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
16077 automatic composition.
b8ff72fa 16078 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 16079 struct glyph.
b8ff72fa 16080 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 16081
b8ff72fa 16082 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
16083 the change of struct glyph_string.
16084 (x_draw_glyph_string): Likewise.
16085
160862008-08-29 Glenn Morris <rgm@gnu.org>
16087
16088 * buffer.c (word-wrap): Doc fix.
16089 * xdisp.c (truncate-partial-width-windows): Doc fix.
16090 Increase default to 50.
16091
160922008-08-29 Chong Yidong <cyd@stupidchicken.com>
16093
16094 * xdisp.c (update_tool_bar_unwind): New function.
16095 (update_tool_bar): Temporarily set selected frame before building
16096 tool-bar items.
16097
160982008-08-28 Michael Albinus <michael.albinus@gmx.de>
16099
16100 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
16101 snprintf, respectively.
16102 (xd_append_arg): Convert strings with Fstring_make_unibyte.
16103
161042008-08-28 Chong Yidong <cyd@stupidchicken.com>
16105
16106 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
16107 LDFLAGS to GNUstep CC invocation.
16108
161092008-08-27 Chong Yidong <cyd@stupidchicken.com>
16110
16111 * indent.c (Fvertical_motion): Revert last change. Handle the
16112 general case where we are moving forward, and PT spans multiple
16113 screen lines.
16114
16115 * eval.c (find_handler_clause): Temporarily increase
16116 max-lisp-eval-depth while printing the backtrace buffer, to
16117 guarantee that help-mode code can run.
16118
161192008-08-27 Eli Zaretskii <eliz@gnu.org>
16120
16121 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
16122 colors under -rv.
16123 (IT_set_frame_parameters): Don't swap foreground and background
16124 colors if `(reverse . t)' is present in the frame properties.
16125 (internal_terminal_init): Call init_frame_faces only for the
16126 initial frame.
16127
161282008-08-27 Andreas Schwab <schwab@suse.de>
16129
16130 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
16131
161322008-08-27 Andreas Schwab <schwab@suse.de>
16133
16134 * search.c (search_buffer): Set char_base to zero only at the end.
16135
161362008-08-27 Kenichi Handa <handa@m17n.org>
16137
b8ff72fa 16138 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
16139
161402008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
16141
16142 * xterm.c (x_term_init): Temporarily hide the partially
16143 initialized terminal while calling vendor-specific-keysyms.
16144
161452008-08-26 Eli Zaretskii <eliz@gnu.org>
16146
16147 * msdos.c (internal_terminal_init): Most initializations done only
16148 once, especially initial_screen_colors[] and termscript open.
16149
161502008-08-26 Chong Yidong <cyd@stupidchicken.com>
16151
16152 * eval.c (Fcondition_case): Doc fix.
16153
16154 * widgetprv.h (EmacsFramePart): Change font member to the new font
16155 struct.
16156
16157 * widget.c: Include character.h and font.h for XSETFONT.
16158 (setup_frame_gcs): Compute X font id from font struct, just once.
16159
161602008-08-26 Eli Zaretskii <eliz@gnu.org>
16161
16162 * term.c (get_named_tty): Fix last change.
16163
161642008-08-26 Chong Yidong <cyd@stupidchicken.com>
16165
16166 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 16167 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
16168
161692008-08-25 Eli Zaretskii <eliz@gnu.org>
16170
16171 * frame.c (do_switch_frame): Mark previously displayed frame as
16172 obscured for FRAME_MSDOS_P frames as well.
16173
161742008-08-24 Eli Zaretskii <eliz@gnu.org>
16175
16176 * frame.c (make_terminal_frame): Initialize f->terminal,
16177 f->terminal->reference_count, and scroll bars on MS-DOS as well.
16178 Set the top frame to newly created frame.
16179 (Fmake_terminal_frame): Reuse the_only_display_info.
16180
16181 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
16182 estimating available memory.
16183
b97439ce 161842008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
16185
16186 * nsterm.m (ns_draw_window_cursor): Don't call
16187 NSDisableScreenUpdates and NSEnableScreenUpdates on
16188 non-NS_IMPL_COCOA systems.
16189
161902008-08-23 Andreas Schwab <schwab@suse.de>
16191
16192 * process.c (procfs_system_process_attributes): Fix use of
16193 uninitialized variables.
16194
161952008-08-23 Eli Zaretskii <eliz@gnu.org>
16196
16197 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
16198
16199 * dispnew.c (init_display): Remove MS-DOS specific conditions for
16200 calling tty-set-up-initial-frame-faces.
16201
b8ff72fa
SM
16202 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
16203 Allow MSDOS frames along with X frames.
aac0c6e3
MR
16204
16205 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
16206 addition to output_termcap.
16207
16208 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
16209
16210 * termchar.h (FRAME_TTY): Support output_msdos_raw.
16211 (struct tty_display_info) [MSDOS]: Add fields related to mouse
16212 highlight.
16213
16214 * process.c [!subprocesses]: Define QCname.
16215 (syms_of_process): Intern and staticpro it.
16216
16217 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
16218 Adjust for changes in encoding/decoding routines.
16219 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
16220 encode_coding and decode_coding.
16221
b8ff72fa 16222 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
16223
16224 * dosfns.c: Include frame.h before termhooks.h.
16225 (dos_cleanup): Use CURTTY ()->termscript instead of a global
16226 variable termscript.
16227
16228 * s/msdos.h (USER_FULL_NAME): Define.
16229 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
16230
16231 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
16232 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
16233 pw->pw_gecos.
16234
16235 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
16236 SELECTED_FRAME as additional (1st) argument.
16237 (tty_read_avail_input): Handle output_msdos_raw in
16238 addition to output_termcap.
16239
16240 * msdos.c: Include frame.h before termhooks.h.
16241 (mouse_on, mouse_off, mouse_moveto, mouse_init)
16242 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
16243 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
16244 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
16245 (IT_set_terminal_modes, IT_reset_terminal_modes)
16246 (IT_set_frame_parameters): Use tty->termscript instead of a global
16247 variable termscript.
16248 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
16249 global variable terminal_coding. Don't refer to
16250 Vnonascii_translation_table.
16251 (internal_terminal_init): Set Vwindow_system in current_kboard.
16252 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
16253 Announce date and time of session start, if termscript is open.
16254 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
16255 term.c:init_tty). Open termscript only of not already open.
16256 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
16257 here instead of dos_ttraw. Don't initialize display if this is an
16258 initial tty. Don't set FRAME_FONT.
16259 (Vwindow_system_version): Bump to 23.
16260 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
16261 is available, set up mouse_position_hook.
16262 (dos_ttraw, IT_set_terminal_modes): If called with initial
16263 terminal, do nothing.
16264 (IT_set_frame_parameters): Handle the Qtty_type frame
16265 parameter by calling internal_terminal_init.
16266 (dos_set_window_size, show_mouse_face)
16267 (clear_mouse_face, IT_note_mode_line_highlight)
16268 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
16269 (dos_rawgetc): Use tty_display_info instead of x_display_info.
16270 (initialize_msdos_display): New function.
16271 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
16272 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
16273 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
16274 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 16275 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
16276 (request_sigio, unrequest_sigio): Don't define, now defined on
16277 sysdep.c.
16278 (IT_write_glyphs): Rewrite to use encode_terminal_code.
16279
16280 * term.c [MSDOS]: Include msdos.h.
16281 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
16282 conditional to DOS_NT. Allow only one call to this function in a
16283 session. Don't allocate a new struct tty_display_info; instead,
16284 reuse the_only_display_info. Call get_tty_size to get screen
16285 dimensions. Call init_baud_rate to set bad_rate.
16286 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
16287 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 16288 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
16289 (get_tty_terminal, get_named_tty, Ftty_type)
16290 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
16291 output_termcap.
b8ff72fa
SM
16292 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
16293 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 16294 only when subprocesses are supported.
aac0c6e3
MR
16295
16296 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
16297 f->output_data.x.
16298 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
16299 terminal devices.
16300
5582fbc7 16301 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
16302 x_output.
16303 (FRAME_FONT): Use output_data.tty.
16304 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
16305 (struct x_display_info): Rename from display_info. Update all users in
16306 msdos.c.
aac0c6e3 16307 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 16308 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
16309 (dos_ttraw): Update prototype.
16310
16311 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
16312 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
16313
163142008-08-23 Jason Rumney <jasonr@gnu.org>
16315
16316 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
16317 (fn_TIFFSetDirectory): New library function used.
16318 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
16319 (tiff_load): Use :index to select among multiple images. Set count
16320 property when multiple images exist.
16321 (gif_format): Use :index, not :image.
16322
163232008-08-23 Chong Yidong <cyd@stupidchicken.com>
16324
16325 * xdisp.c (try_scrolling): Check INT_MAX instead of
16326 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
16327 to obtain INT_MAX.
16328
163292008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
16330
16331 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
16332
163332008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
16334
16335 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
16336 GNUstep library location.
16337
163382008-08-21 Chong Yidong <cyd@stupidchicken.com>
16339
16340 * xfaces.c (x_update_menu_appearance): Check validity of menu font
16341 before using it.
16342
16343 * puresize.h (BASE_PURESIZE): Increase to 1250000.
16344
163452008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
16346
16347 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
16348 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
16349 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
16350 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
16351 (EmacsApp-cursor_blink_handler): Remove declaration.
16352 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
16353 match 01 Feb 2008 changes in xterm.c.
16354 (ns_read_socket): Add cast to avoid warning.
16355 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
16356 GNUstep.
16357
163582008-08-20 Chong Yidong <cyd@stupidchicken.com>
16359
16360 * xselect.c (x_get_foreign_selection): Return nil if desired
16361 selection could not be obtained, instead of signalling an error.
16362
163632008-08-20 David Reitter <david.reitter@gmail.com>
16364
16365 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
16366 * nsterm.m: Remove ns-specific code for cursor blinking.
16367 (ns_draw_window_cursor): Clear cursor properly rather than
16368 redrawing the area. Respect width of bar cursors.
16369 These changes enable the use of generic blink-cursor-mode and
16370 generic cursor types in NS and support smooth cursor movements (do
16371 not blink off after command).
16372 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
16373 Nextstep, too.
16374
163752008-08-19 Kenichi Handa <handa@m17n.org>
16376
16377 * font.c (Vfont_log_deferred): New variable.
16378 (font_add_log): Check Vfont_log_deferred.
16379 (font_deferred_log): New function.
16380
16381 * font.h (font_deferred_log): Extern it.
16382
16383 * fontset.c (reorder_font_vector): Use encoding charset of fonts
16384 for sorting.
16385 (face_for_char): Use deferred log.
16386
163872008-08-18 Kenichi Handa <handa@m17n.org>
16388
16389 * fontset.c (face_for_char): Add font log.
16390
16391 * font.c (font_add_log): Add the font properties :script, :lang,
16392 and :otf in the log.
16393
163942008-08-17 Chong Yidong <cyd@stupidchicken.com>
16395
16396 * xdisp.c: Remove dead code.
16397 (handle_invisible_prop, next_overlay_string): Defer call to
16398 setup_for_ellipsis.
16399 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
16400
164012008-08-15 Chong Yidong <cyd@stupidchicken.com>
16402
16403 * xfaces.c (lookup_derived_face): Properly handle possible zero
16404 return value of get_lface_attributes.
16405 (merge_faces): Don't tell lookup_derived_face to signal an error
16406 if face is not found.
16407
16408 * dired.c (Fdirectory_files): Doc fix.
16409
16410 * process.c (make_process): Initialize kill_without_query struct
16411 member.
16412
164132008-08-15 Eli Zaretskii <eliz@gnu.org>
16414
16415 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
16416 Alternative calculation of totphys for Visual Studio 6.
16417
16418 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
16419
16420 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
16421 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
16422 All users changed.
16423 (stat): Only root directory passed to GetDriveType. Allow RAM
16424 disk as well as local fixed disk when w32-get-true-file-attributes
16425 is set to `local'.
16426 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
16427 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
16428 (w32_cached_id, w32_add_to_cache): New functions.
16429 (get_name_and_id): Look account names in the cache before calling
16430 lookup_account_sid.
16431 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
16432 New initialization flags.
16433 (globals_of_w32): Initialize them to zero.
16434 (w32_system_process_attributes): Use w32_cached_id and
16435 w32_add_to_cache.
16436
164372008-08-14 Lawrence Mitchell <wence@gmx.li>
16438
16439 * lread.c (Fread_char, Fread_char_exclusive): If no character
16440 event is read before timeout is reached, return nil, rather than
16441 converting to a number.
16442
164432008-08-14 Chong Yidong <cyd@stupidchicken.com>
16444
16445 * fns.c (use_dialog_box): Doc fix.
16446
16447 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
16448 on OS X.
16449
164502008-08-13 Chong Yidong <cyd@stupidchicken.com>
16451
16452 * frame.c (Qns_parse_geometry): New var.
16453 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
16454
164552008-08-11 Chong Yidong <cyd@stupidchicken.com>
16456
16457 * xdisp.c (x_produce_glyphs): Handle the case when font has no
16458 space character in calculating tabs.
16459
164602008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
16461
16462 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
16463
164642008-08-10 Glenn Morris <rgm@gnu.org>
16465
16466 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
16467 silence gcc "limited range of data type" warnings in some
16468 make_fixnum_or_float calls.
16469
164702008-08-09 Eli Zaretskii <eliz@gnu.org>
16471
16472 * w32.c (w32_system_process_attributes): If the process does not
16473 exist, return nil.
16474
16475 * w32.c: Include thelp32.h, psapi.h and coding.h.
16476 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
16477 declarations.
16478 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
16479 (Process32Next_Proc): New typedefs.
16480 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
16481 (g_b_init_process32_next, g_b_init_open_thread_token)
16482 (g_b_init_impersonate_self, g_b_init_revert_to_self)
16483 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
16484 (g_b_init_get_process_working_set_size)
16485 (g_b_init_global_memory_status_ex): New static variables.
16486 (globals_of_w32): Initialize them.
16487 (create_toolhelp32_snapshot, process32_first, process32_next)
16488 (open_thread_token, impersonate_self, revert_to_self)
16489 (get_process_memory_info, get_process_working_set_size)
16490 (global_memory_status, global_memory_status_ex): New wrapper
16491 functions.
16492 (w32_list_system_processes, w32_system_process_attributes)
16493 (enable_privilege, restore_privilege, ltime, process_times):
16494 New functions.
16495 (convert_time_raw): New function.
16496 (convert_time): Remove conversion of FILETIME into time in 100
16497 nsec units, call convert_time_raw instead.
16498
16499 * process.h (w32_list_system_processes, w32_system_process_attributes):
16500 Add prototypes.
16501 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
16502 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
16503 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
16504 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
16505
16506 * process.c (Fsystem_process_attributes): Doc fix.
16507
165082008-08-08 Chong Yidong <cyd@stupidchicken.com>
16509
16510 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
16511 a continued multi-char glyph; if so, advance to the actual glyph.
16512
165132008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
16514
16515 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
16516
16517 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
16518 (.m.o): Use it.
16519 * config.in: Regenerate.
16520
165212008-08-07 Chong Yidong <cyd@stupidchicken.com>
16522
16523 * xdisp.c (redisplay_window): Revert last change.
16524 (try_window): Check bottom scroll margin too.
16525
165262008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
16527
16528 * config.in: Regenerate.
16529
16530 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
16531 -list-load-path-shadows'.
16532 (nsgui.h): Reduce number of things depending on it.
16533
165342008-08-06 Chong Yidong <cyd@stupidchicken.com>
16535
16536 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
16537 instead of window-end which does the wrong thing at eob.
16538 (try_cursor_movement): Minor optimization.
16539 (redisplay_window): If scroll margin is defined, don't assume
16540 window doesn't need scrolling.
16541
165422008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
16543
16544 * config.in: Regenerate.
16545
16546 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
16547 (mostlyclean): Don't delete *.d under NS.
16548
16549 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
16550
165512008-08-06 Kenichi Handa <handa@m17n.org>
16552
16553 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
16554
165552008-08-06 Andreas Schwab <schwab@suse.de>
16556
16557 * config.in: Regenerate.
16558
165592008-08-05 Chong Yidong <cyd@stupidchicken.com>
16560
16561 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
16562 forcing a window start.
16563
16564 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
16565 (auto_save_1): Update modtime when auto-save-list-file-name is on.
16566
165672008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
16568
16569 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
16570 argument.
16571
165722008-08-05 Juanma Barranquero <lekktu@gmail.com>
16573
16574 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
16575 <scroll-down-aggressively, before-change-functions>:
16576 <after-change-functions>: Reflow docstrings.
16577
165782008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 16579 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
16580
16581 Dock menu customization, based on a patch by Ken Raeburn, plus some
16582 other fixes.
16583 * nsmenu.m (dockMenu): New variable.
16584 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
16585
16586 * nsterm.h (dockMenu): Declare.
16587
16588 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
16589 (ns_term_init): Initialize dockMenu.
16590 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
16591 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
16592 left.
16593
16594 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
16595
165962008-08-04 Chong Yidong <cyd@stupidchicken.com>
16597
16598 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
16599
16600 * config.in: Regenerate.
16601
166022008-08-04 Seiji Zenitani <zenitani@mac.com>
16603
16604 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
16605
166062008-08-04 Chong Yidong <cyd@stupidchicken.com>
16607
16608 * nsterm.h (find_and_call_menu_selection): Fix prototype.
16609
166102008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
16611
16612 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
16613
16614 * keyboard.h: Comment an #endif.
16615
16616 * lisp.h (have_menus_p): Adjust comment.
16617
16618 * menu.c (find_and_return_menu_selection): Fix comparison with
16619 client_data.
16620
16621 * nsmenu.m (popup_activated_flag): New variable.
16622 (popup_activated): New function.
16623 (menu-or-popup-active-p): New exported lisp definition.
16624 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
16625 when popup done.
16626 (ns_popup_dialog): Set popup_activated_flag.
16627
16628 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
16629 version for GNUstep (handled by conditional typedef in nsterm.m).
16630 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
16631 in rgb.txt).
16632
16633 * process.c (init_process): Use DARWIN_OS, not DARWIN.
16634
16635 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
16636
16637 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
16638
16639 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
16640 shortcircuit if popup_activated like GTK and X toolkit.
16641
16642 * m/inter386.h: Change DARWIN to DARWIN_OS.
16643
16644 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
16645 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
bba3e508
SM
16646 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood.
16647 Expand comment on NO_SOCK_SIGIO.
aac0c6e3
MR
16648
166492008-08-03 Chong Yidong <cyd@stupidchicken.com>
16650
16651 * nsterm.m (windowDidResize): Remove stopModal call.
16652
166532008-08-03 Andreas Schwab <schwab@suse.de>
16654
16655 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
16656 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
16657
166582008-08-02 Chong Yidong <cyd@stupidchicken.com>
16659
16660 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
16661 Don't use uninitialized pointer variable when using getrlimit.
16662
166632008-08-02 Jason Rumney <jasonr@gnu.org>
16664
16665 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
16666
166672008-08-02 Eli Zaretskii <eliz@gnu.org>
16668
16669 * alloc.c (NSTATICS): Bump to 0x640.
16670
16671 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
16672
16673 * lisp.h: Add prototype for directory_files_internal.
16674
16675 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
16676 New functions.
16677 (syms_of_process): Defsubr them. Add initializations for various
16678 Q* symbols used in procfs_system_process_attributes.
16679 (procfs_list_system_processes, procfs_system_process_attributes)
16680 [HAVE_PROCFS]: New functions.
16681 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
16682 (procfs_get_total_memory): New functions.
16683
166842008-08-01 Juanma Barranquero <lekktu@gmail.com>
16685
16686 * xfaces.c (Fx_load_color_file): Fix previous change;
16687 it is #ifdef WINDOWSNT, not WINDOWS_NT.
16688
166892008-08-01 Michael Albinus <michael.albinus@gmx.de>
16690
16691 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
16692
166932008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16694
16695 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
16696
166972008-08-01 Chong Yidong <cyd@stupidchicken.com>
16698
16699 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
16700
16701 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
16702 define NSApplicationDelegateReplySuccess.
16703 (EmacsView -converstationIdentifier): Use long instead of
16704 NSInteger for GNUstep, since it doesn't have NSInteger.
16705
16706 * xmenu.c: Revert last change.
16707
16708 * keyboard.h: Fix last change.
16709
167102008-08-01 Juanma Barranquero <lekktu@gmail.com>
16711
16712 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
16713 on Windows.
16714
167152008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16716
16717 Warning clearing and clean-up in NS port.
16718 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
16719 Add prototypes.
16720 * nsgui.h (FACE_DEFAULT): Remove, unused.
16721 (XGCValues): Change colors to unsigned long.
16722 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
16723 nsterm.m.
16724 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
16725 (ns_list_fonts): Remove, unused.
16726 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
16727 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
16728 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
16729 (nsfont_draw): Compare face colors to 0, not nil.
16730 * nsmenu.m (struct widget_value): Drop unneeded declaration.
16731 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
16732 (-addSubmenuWithTitle:): Use NSMenuItem class.
16733 (ns_popup_menu): Use NO, not NULL, for enabled setting.
16734 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
16735 (ns_clip_to_row): Make gc arg a BOOL.
16736 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
16737 ns_clip_to_row() call.
16738 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
16739 used). Cast FRAME_FONT assignments.
16740 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
16741 (ns_string_to_lispmod): Change arg to const char.
16742 (ns_term_init): Use NSMenuItem class.
16743 (EmacsApp -openFile:): Move to different section of file.
16744 (EmacsApp -application:openFiles:): Don't return a value, call
16745 -replyToOpenOrPrint:.
16746 (EmacsView -keyDown:): Fix up cast.
16747 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
16748 (EmacsView -menuDown:): Cast tag in call to
16749 find_and_call_menu_selection().
16750 (ns_list_fonts): Remove, unused.
16751 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
16752 (ns_fontname_to_xlfd): Make static.
16753 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
16754 Remove prototypes (now in keyboard.h).
16755 (next_menubar_widget_id): Remove, unused.
16756 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
16757 Remove prototypes (now in keyboard.h).
16758 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
16759
167602008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
16761
16762 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
16763 (floatfns.o): Depend on syssignal.h.
16764 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
16765
16766 * systty.h: Fix previous change that removed BSD_TERMIOS.
16767 Add comments to #ifdefs.
16768
167692008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16770
16771 * w32fns.c (w32-load-color-file): Remove.
16772 (x-open-connection): Use renamed Fx_load_color_file.
16773 * xfaces.c (x-load-color-file): Add.
16774 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
16775 Emacs.clr.
16776 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
16777
167782008-07-31 Michael Albinus <michael.albinus@gmx.de>
16779
16780 * dbusbind.c (Fdbus_call_method_asynchronously)
16781 (Fdbus_method_error_internal): New defuns.
16782 (xd_read_message): Handle also reply messages.
16783 (Vdbus_registered_functions_table): Extend docstring.
16784
167852008-07-31 Juanma Barranquero <lekktu@gmail.com>
16786
16787 * keyboard.c (gobble_input): Fix previous change.
16788
167892008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
16790
16791 * bitmaps/README:
16792 * xfns.c:
16793 * termcap.c:
16794 * term.c:
16795 * syswait.h:
16796 * systty.h:
16797 * systime.h:
16798 * syssignal.h:
16799 * sysdep.c:
16800 * process.h:
16801 * process.c:
16802 * print.c:
16803 * ndir.h:
16804 * lread.c:
16805 * keyboard.c:
16806 * getpagesize.h:
16807 * floatfns.c:
16808 * fileio.c:
16809 * emacs.c:
16810 * doc.c:
16811 * dispnew.c:
16812 * dired.c:
16813 * data.c:
16814 * callproc.c:
16815 * buffer.c:
16816 * README:
16817 * Makefile.in:
16818 * s/template.h:
16819 * s/msdos.h:
16820 * m/vax.h: Remove VMS support.
16821 * s/vms.h:
16822 * vlimit.h:
16823 * uaf.h:
16824 * temacs.opt:
16825 * param.h:
16826 * ioctl.h: Remove file.
16827
168282008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
16829
16830 * s/ms-w32.h (MULTI_KBOARD): Remove.
16831 * xterm.c:
16832 * xselect.c:
16833 * xfns.c:
16834 * window.c:
16835 * w32term.c:
16836 * w32fns.c:
16837 * terminal.c:
16838 * termhooks.h:
16839 * term.c:
16840 * sysdep.c:
16841 * keyboard.h:
16842 * keyboard.c:
16843 * frame.h:
16844 * frame.c:
16845 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
16846 * config.in: Regenerate.
16847
168482008-07-30 Jason Rumney <jasonr@gnu.org>
16849
16850 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
16851
16852 * w32font.c (w32font_encode_char): Leave as unicode if in range.
16853 (w32font_open_internal): Get unicode version of textmetrics.
16854 Don't enable or disable glyph indices here.
16855 (w32font_open): Disable use of glyph indices.
16856
16857 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
16858
168592008-07-30 Chong Yidong <cyd@stupidchicken.com>
16860
16861 * minibuf.c (Vread_buffer_function): Doc fix.
16862
168632008-07-30 John Paul Wallington <jpw@pobox.com>
16864
16865 * minibuf.c (read_buffer_completion_ignore_case): New var.
16866 (Fread_buffer): Use it.
16867
168682008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
16869
16870 * systty.h (sensemode): Remove empty #if. Remove reference to
16871 BSD_TERMIOS, unused.
16872
16873 * sysdep.c: Remove reference to DGUX.
16874 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
16875
16876 * config.in: Regenerate.
16877
168782008-07-30 Jason Rumney <jasonr@gnu.org>
16879
16880 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
16881
168822008-07-29 Jason Rumney <jasonr@gnu.org>
16883
16884 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
16885 is populated.
16886 (uniscribe_encode_char): Always use uniscribe.
16887 Avoid using context if cache is populated.
16888
168892008-07-29 Jan Djärv <jan.h.d@swipnet.se>
16890
16891 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
16892 open menu.
16893
16894 * gtkutil.c (menu_nav_ended): Remove.
16895 (create_menus): Remove signal connect for menu_nav_ended.
16896
168972008-07-28 Chong Yidong <cyd@stupidchicken.com>
16898
16899 * xdisp.c (redisplay_window): Check return value of
16900 compute_window_start_on_continuation_line before forcing a window
16901 start.
16902
169032008-07-28 Jason Rumney <jasonr@gnu.org>
16904
16905 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
16906
16907 * w32term.c (w32_enable_unicode_output, cleartype_active):
16908 Remove obsolete display options.
16909 (x_draw_glyph_string_background): Don't use old cleartype_active
16910 workaround.
16911 (w32_initialize): Remove cleartype_active initialization.
16912 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
16913
169142008-07-28 Andreas Schwab <schwab@suse.de>
16915
16916 * lisp.h (init_weak_hash_tables, syms_of_font)
16917 (xd_read_queued_messages, syms_of_dbusbind): Declare.
16918 (remove_hash_entry): Don't declare.
16919 * eval.c (maybe_call_debugger): Make static and move before use.
16920 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
16921 * xdisp.c: Include "gtkutil.h" if USE_GTK.
16922 * xterm.h (x_set_frame_alpha): Declare.
16923
169242008-07-28 Jan Djärv <jan.h.d@swipnet.se>
16925
16926 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
16927 (create_menus): Connect selection-done to menu_nav_ended.
16928
169292008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
16930
16931 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
16932 Set Vx_resource_name to a fallback. Replace read of 'buffered'
16933 parameter with read of 'alpha' one.
16934 (Qns_frame_parameter): Remove.
5582fbc7 16935 * nsselect.m (selection-coding-system)
aac0c6e3
MR
16936 (next-selection-coding-system, Vselection_coding_system)
16937 (Vnext_selection_coding_system): Drop.
16938
169392008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
16940
16941 * nsfns.m (do-applescript, do_applescript): Rename to
16942 ns-do-applescript, ns_do_applescript, and move within file.
16943
169442008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
16945
16946 Remove support for Mac Carbon.
16947 * mactoolbox.c:
16948 * macterm.h:
16949 * macterm.c:
16950 * macselect.c:
16951 * macmenu.c:
16952 * macgui.h:
16953 * macfns.c:
16954 * mac.c: Remove file.
16955 * s/darwin.h:
16956 * m/intel386.h:
16957 * xfaces.c:
16958 * xdisp.c:
16959 * window.c:
16960 * tparam.c:
16961 * termhooks.h:
16962 * termcap.c:
16963 * term.c:
16964 * syssignal.h:
16965 * sysselect.h:
16966 * sysdep.c:
16967 * process.c:
16968 * lread.c:
16969 * lisp.h:
16970 * keyboard.c:
16971 * image.c:
16972 * fringe.c:
16973 * frame.h:
16974 * frame.c:
16975 * fontset.c:
16976 * font.h:
16977 * font.c:
16978 * fns.c:
16979 * fileio.c:
16980 * emacs.c:
16981 * dispnew.c:
16982 * dispextern.h:
16983 * config.in:
16984 * atimer.c:
2ae37cf0 16985 * Makefile.in: Remove code for Carbon.
aac0c6e3 16986
f0131492 169872008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
16988
16989 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
16990
169912008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16992
16993 * macterm.h (kCGBitmapByteOrder32Host): New define for
16994 non-universal SDKs.
16995
16996 * image.c (mac_create_cg_image_from_image, image_load_image_io)
16997 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
16998
16999 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
17000 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
17001
170022008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
17003
17004 * w32inevt.c: Include dispextern.h.
17005
170062008-07-26 Andreas Schwab <schwab@suse.de>
17007
17008 * print.c (print_object): Fix off-by-one in last change.
17009
170102008-07-25 Juanma Barranquero <lekktu@gmail.com>
17011
17012 * term.c (syms_of_term): Don't initialize default_orig_pair,
17013 default_set_foreground and default_set_background on Windows.
17014
170152008-07-25 Jason Rumney <jasonr@gnu.org>
17016
17017 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
17018 ScriptItemize. Clean up return value checking. Remove unused
17019 variables.
17020 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
17021 shaping engine.
17022
17023 * w32font.c (w32font_has_char): Handle the case where we can't
17024 determine the script for a character.
17025
170262008-07-25 Chong Yidong <cyd@stupidchicken.com>
17027
17028 * term.c (syms_of_term): Initialize default_orig_pair,
17029 default_set_foreground, and default_set_background.
17030
17031 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
17032 clash (bug#86).
17033 (getloadavg): Callers changed.
17034
17035 * image.c (svg_load_image): Fix last change.
17036 (svg_load_image): Use rsvg_handle_get_dimensions to check that
17037 image size is valid. Use g_object_unref instead of deprecated
17038 rsvg_handle_free to free rsvg handle.
17039 (x_from_xcolors): Don't initialize pixmap (silence compiler).
17040
170412008-07-25 Jason Rumney <jasonr@gnu.org>
17042
17043 * w32font.c (w32font_encode_char): Encode characters outside BMP as
17044 surrogates before looking up glyph index.
17045 (w32font_text_extents): Encode as surrogates if falling back to
17046 functions that need UTF-16 wide chars.
17047
17048 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
17049 BMP as surrogates before looking up glyph index.
17050
170512008-07-25 Chong Yidong <cyd@stupidchicken.com>
17052
17053 * image.c (svg_load_image): Check for failure in return value of
17054 rsvg_handle_get_pixbuf. Free rsvg handle when done.
17055
170562008-07-25 Jason Rumney <jasonr@gnu.org>
17057
17058 * w32font.c (Fx_select_font): Reverse sense of second arg.
17059
170602008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
17061
17062 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
17063 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
17064
17065 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
17066 (PURESIZE): Use it.
17067
170682008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
17069
17070 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
17071 * m/alpha.h (TEXT_END):
17072 * m/ibmrs6000.h (TEXT_END):
17073 * m/macppc.h (TEXT_END):
17074 * s/darwin.h (TEXT_END):
17075 * s/msdos.h (TEXT_END): Remove, unused.
17076 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
17077 * s/cygwin.h: Remove comment.
17078
17079 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
17080 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
17081 * m/intel386.h (DOT_GLOBAL_START):
17082 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
17083 (USG): Remove, file not used on USG platforms.
17084
17085 * Makefile.in (HAVE_X11): Remove empty #else.
17086
170872008-07-24 Andreas Schwab <schwab@suse.de>
17088
17089 * fileio.c (Finsert_file_contents): Properly adjust undo list
17090 after format conversion.
17091
170922008-07-24 Jan Djärv <jan.h.d@swipnet.se>
17093
17094 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
17095 (menu_nav_ended): Remove.
17096 (create_menus): Remove signal connect for menu_nav_ended.
17097 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
17098 create_menus.
17099 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
17100
171012008-07-23 Jason Rumney <jasonr@gnu.org>
17102
17103 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
17104 with opened font.
17105 (w32font_open): Set font type to gdi.
17106
17107 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
17108
171092008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
17110
17111 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
17112 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
17113 defines it.
17114 * unexec.c (ADDR_CORRECT): Define unconditionally.
17115
17116 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
17117
17118 * unexec.c: Remove code depending on !COFF and USG, the file is
17119 not used for such systems.
17120
17121 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
17122 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
17123 (LD_SWITCH_SYSTEM_1): Remove, update users.
17124
17125 * s/darwin.h (DATA_END):
17126 * m/intel386.h (DATA_END):
17127 * m/ibmrs6000.h (DATA_END):
17128 * m/alpha.h (DATA_END): Remove, unused.
17129
17130 * config.in: Regenerate.
17131 * s/ms-w32.h (subprocesses): Define unconditionally.
17132 * s/template.h (subprocesses): Update comment.
17133 * s/vms.h (subprocesses):
17134 * s/usg5-4.h (subprocesses):
17135 * s/hpux10-20.h (subprocesses):
17136 * s/gnu-linux.h (subprocesses):
17137 * s/cygwin.h (subprocesses):
17138 * s/bsd-common.h (subprocesses):
17139 * s/aix4-2.h (subprocesses):
17140 * s/darwin.h (subprocesses): Do not define, defined by default now.
17141
17142 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
17143 Remove all references.
17144 (temacs): Add GNUstep specific ld flags.
17145
17146 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
17147 similarly to what X does.
17148
171492008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
17150
17151 * nsfns.m (x-list-fonts): Remove.
17152 (syms_of_nsfns): Drop the x-list-fonts declaration.
17153 * nsterm.m: Get rid of remaining "//" comments.
17154
171552008-07-22 Chong Yidong <cyd@stupidchicken.com>
17156
17157 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
17158
17159 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
17160 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
17161 (Fns_own_selection_internal, Fx_disown_selection_internal)
17162 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
17163
17164 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
17165 ... */' style of docstrings. Doc fixes.
17166
171672008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
17168
17169 * terminfo.c (UP, BC, PC): Undo previous change.
17170
17171 * nsfns.m: Rename ns prefixed functions/variables to the
17172 corresponding x versions. Update references.
17173
171742008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
17175
17176 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
17177
171782008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
17179
17180 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
17181 Remove forwarding functions.
17182 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
17183 non-static.
17184 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
17185 non-static.
17186 (ns_frame_parm_handlers): Use the new names.
17187 (syms_of_nsfns): Move to the end of file.
17188
17189 * nsterm.m (syms_of_nsterm): Move to the end of file.
17190
17191 * dispnew.c (init_display): Remove code for X10.
17192
171932008-07-22 Jason Rumney <jasonr@gnu.org>
17194
17195 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
17196 bare drive.
17197
171982008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
17199
17200 * nsterm.m (syms_of_nsterm): Remove debugging println.
17201
172022008-07-22 David Reitter <david.reitter@gmail.com>
17203
17204 * nsfns.m (do_applescript, F_do_applescript): NS version of the
17205 Carbon implementation of the same functionality: execute arbitrary
17206 AppleScript code.
17207
172082008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
17209
17210 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
17211 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
17212 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
17213 (Fx_display_mm_height, Fx_display_mm_width)
17214 (Fx_display_backing_store, Fx_display_visual_class)
17215 (Fx_display_save_under, Fx_open_connection)
17216 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
17217 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
17218 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
17219 (Fx_display_pixel_width, Fx_display_pixel_height)
17220 (Fx_display_usable_bounds, Fx_display_planes)
17221 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
17222 ... */' style of docstrings.
17223
172242008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
17225
17226 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
17227 on this platform.
17228 (mips):
17229 * m/iris4d.h (mips): Do not define.
17230 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
17231
17232 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
17233
17234 * image.c:
17235 * nsfns.m:
17236 * nsselect.m:
17237 * nsterm.h:
17238 * nsterm.m: Rename ns prefixed functions/variables to the
17239 corresponding x versions. Update references.
17240
17241 * m/ibms390x.h (NO_REMAP): Do not undefine.
17242
17243 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
17244
172452008-07-21 Chong Yidong <cyd@stupidchicken.com>
17246
17247 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
17248 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
17249 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
17250 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
17251 (Fns_display_mm_height, Fns_display_mm_width)
17252 (Fns_display_backing_store, Fns_display_visual_class)
17253 (Fns_display_save_under, Fns_open_connection)
17254 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
17255 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
17256 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
17257 (Fns_display_pixel_width, Fns_display_pixel_height)
17258 (Fns_display_usable_bounds, Fx_display_planes)
17259 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
17260
172612008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
17262
17263 * print.c (print_object): Check print_depth before searching for
17264 circularities.
17265
172662008-07-21 Michael Albinus <michael.albinus@gmx.de>
17267
17268 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
17269 only sprintf.
17270
172712008-07-21 Kenichi Handa <handa@m17n.org>
17272
17273 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
17274
172752008-07-20 Andreas Schwab <schwab@suse.de>
17276
17277 * syntax.c (find_start_pos, find_start_value)
17278 (find_start_value_byte, find_start_begv, find_defun_start)
17279 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
17280
172812008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
17282
17283 * s/sol2-3.h: Insert contents of s/sol2.h.
17284 (LD_SWITCH_SYSTEM): Remove redundant definition.
17285 * s/sol2.h: Remove, unused.
17286
172872008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
17288
17289 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
17290
172912008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
17292
17293 * Makefile.in (ns_appdir): Fix typo in find command.
17294
172952008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
17296
17297 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
17298
17299 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
17300 added not supported anymore.
17301
17302 * s/usg5-4-2.h (LIBS_SYSTEM):
17303 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
17304
17305 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
17306 * s/lynxos.h (GETPGRP_NO_ARG):
17307 * s/hpux10-20.h (NO_SIOCTL_H):
17308 * s/gnu.h (GETPGRP_NO_ARG):
17309 * s/gnu-linux.h (NO_SIOCTL_H):
17310 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
17311 * s/cygwin.h (GETPGRP_NO_ARG):
17312 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
17313 (C_DEBUG_SWITCH): Remove duplicate definition.
17314
17315 * m/ibms390.h: Remove boilerplate comments.
17316
17317 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
17318
17319 * process.c (HAVE_SERIAL): Consolidate ifdefs.
17320 (wait_reading_process_output): Remove code for SunOS, platform not
17321 supported anymore. Use SOLARIS2 instead of sun.
17322
173232008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
17324
17325 * font.c (font_open_by_name): Under NS, default lface height to zero.
17326 (font_open_for_lface): Under NS, set size based on frame fontsize.
17327 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
17328 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
17329
173302008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
17331
17332 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
17333 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
17334 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
17335 YES/NO.
17336 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
17337 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
17338 * Makefile.in (clean): Clear out build destination dir.
17339
173402008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
17341
17342 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
17343 xterm, xselect.
17344 * lisp.h: Remove declaration of hash_remove.
17345 * nsgui.h: Remove redefinitions of hash_remove.
17346 * fns.c (hash_remove): Rename to hash_remove_from_table.
17347
173482008-07-19 Seiji Zenitani <zenitani@mac.com>
17349
17350 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
17351 strdup() the family UTF8String before modifying it.
17352
173532008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
17354
17355 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
17356 NS_FACE_BACKGROUND with 0 instead of nil.
17357 * nsfont.m (nsfont_draw): Same.
17358
173592008-07-19 Chong Yidong <cyd@stupidchicken.com>
17360
17361 * nsfns.m (ns_set_background_color): Fix crash.
17362
173632008-07-18 Chong Yidong <cyd@stupidchicken.com>
17364
17365 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
17366
173672008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
17368
17369 * puresize.h (BASE_PURESIZE): Increase to 1240000.
17370
173712008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17372
17373 * gtkutil.c: Include <config.h> instead of "config.h".
17374
17375 * lisp.h (Foverlay_buffer): Add EXFUN.
17376
17377 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
17378 child process to complete child_setup. Undo 2005-09-21 change.
17379
17380 * s/darwin.h: Mention setsid after vfork.
17381
173822008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17383
17384 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
17385 Depend on macgui.h.
17386
17387 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
17388 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
17389
17390 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
17391 and f19.
17392 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
17393
17394 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
17395 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
17396 Remove enumerators.
17397
17398 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
17399 Check if FACE_FROM_ID returns NULL.
17400
174012008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
17402
17403 * w32inevt.c (change_frame_size): Remove extern declaration.
17404 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
17405 change_frame_size.
17406
174072008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
17408
17409 * getloadavg.c: Revert last change (2008-07-15).
17410
174112008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
17412
17413 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 17414 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
17415 from configure.
17416
174172008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
17418
17419 * s/sol2.h:
17420 * s/sol2-4.h: Reorganize conditionals.
17421
17422 * ecrt0.c: Remove code depending on m68000, not used anymore.
17423
17424 * fns.c (hash_remove): Make static.
17425 * lisp.h (hash_remove): Don't prototype.
17426
17427 * m/ibmrs6000.h:
17428 * m/ibms390x.h:
17429 * m/macppc.h: Remove boilerplate comments.
17430
17431 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
17432 Solaris, which does not need them.
17433
17434 * m/vax.h: Remove comments about unsupported systems.
17435
17436 * s/darwin.h: Reorganize ifdefs.
17437
174382008-07-17 Andreas Schwab <schwab@suse.de>
17439
17440 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
17441
174422008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
17443
17444 Use SDATA. Follow coding convention of placing operators at
17445 beginning of next line rather than end of previous line, and placing
17446 spaces around infix operators.
17447
17448 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
17449 in case it was defined already.
17450 USE @GNUSTEP_MAKEFILES@ rather than envvars.
17451 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
17452 ns_default.
17453 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
17454 Lisp_Objects.
17455 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
17456 (ns_defined_color, ns_color_to_lisp): Declare.
17457 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
17458 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
17459 it's accepted even with USE_LISP_UNION_TYPE.
17460 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
17461 (update_frame_tool_bar): Remove apparently obsolete tests for
17462 non-integerness of f->tool_bar_lines.
17463 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
17464 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
17465 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
17466 (nsfont_open): Don't confuse NULL for Qnil.
17467 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
17468 * menu.h (find_and_call_menu_selection):
17469 * menu.c (find_and_call_menu_selection): Use just int for vector size.
17470 (find_and_return_menu_selection): Always return something.
17471 * frame.h: Include dispextern.h for Display_Info.
17472 (display_x_get_resource): Declare.
17473
174742008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
17475
17476 * syntax.c: Remove stdio.h include accidentally introduced in
17477 Emacs.app commit.
17478 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
17479 NS_IMPL_COCOA.
17480 * keyboard.c (handle_async_input, input_available_signal): Remove
17481 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
17482
174832008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
17484
17485 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
17486 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
17487 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
17488 Use SDATA.
17489
17490 * keymap.c: Remove all NS-specific code.
17491 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
17492 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
17493 where_is_preferred_modifier, return a different value depending on how
17494 preferred is the binding.
17495 (where_is_internal): Adjust accordingly.
17496 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
17497 Adjust to new preferred_sequence_p.
17498 (syms_of_keymap): Declare `where-is-preferred-modifier'.
17499 * keyboard.c (parse_solitary_modifier): Not static any more.
17500 * keyboard.h (parse_solitary_modifier): Declare.
17501
175022008-07-16 Andreas Schwab <schwab@suse.de>
17503
17504 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
17505 of easymenu.
17506
175072008-07-16 Chong Yidong <cyd@stupidchicken.com>
17508
17509 * xdisp.c (move_it_in_display_line): Account for word wrap, so
17510 that we don't move off the line.
17511
175122008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
17513
17514 * keyboard.c (Qsuper): Remove.
17515 (parse_menu_item): Don't call where_is_internal specially for NS.
17516
175172008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
17518
17519 * s/gnu-linux.h: Remove boilerplate comments.
17520
17521 * m/alpha.h (__ELF__): Consolidate conditions.
17522
17523 * m/m68k.h (linux): Use GNU_LINUX instead.
17524 Remove boilerplate comments.
17525
17526 * m/intel386.h: Undo refactoring from previous change.
17527 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
17528 too, remove dead code.
17529 (linux): Use GNU_LINUX instead.
17530
175312008-07-16 Jason Rumney <jasonr@gnu.org>
17532
17533 * w32gui.h: Repeat 26 June changes lost by last change.
17534
175352008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
17536
17537 * systty.h: Remove code for Aix on 386, unsupported platform.
17538
17539 * s/ms-w32.h: Remove boilerplate comments.
17540 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
17541
17542 * s/gnu-linux.h (TERM): Remove support.
17543 (HAVE_SYSVIPC): Remove, unused.
17544 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
17545 for this system.
17546
17547 * process.c: Remove support for IRIS, unused.
17548 Remove support for TERM, not relevant anymore.
17549
17550 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
17551 used with the definition.
17552
17553 * s/aix4-2.h (static): Do not undef.
17554
17555 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
17556 only used on Aix.
17557 (HAVE_SYSVIPC): Remove, unused.
17558
17559 * m/hp800.h (CANNOT_DUMP): Do not undef.
17560
17561 * m/alpha.h: Fix comment.
17562
17563 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
17564 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
17565 used by this configuration.
17566 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
17567 * unexec.c: Remove code depending on HPUX and
17568 USG_SHARED_LIBRARIES, not used with this file. Remove code
17569 depending on IRIS, unused. Remove if 0-ed code.
17570
17571 * s/template.h: Remove comments about static.
17572
17573 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
17574 Remove if 0-ed code.
17575 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
17576 were the same as the default.
17577 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
17578 Remove boilerplate comments.
17579 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
17580 (HAVE_SYSVIPC): Remove, unused.
17581 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
17582
17583 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
17584 Remove boilerplate comments.
17585 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
17586 Remove boilerplate comments.
17587 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
17588 Remove boilerplate comments.
17589 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
17590
17591 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
17592 USG systems which do not use DATA_SEG_BITS.
17593 Refactor code. Remove boilerplate comments.
17594
17595 * m/ibms390.h:
17596 * m/m68k.h:
17597 * s/bsd-common.h:
17598 * s/cygwin.h:
17599 * s/darwin.h:
17600 * s/freebsd.h:
17601 * s/gnu.h:
17602 * s/msdos.h: Remove boilerplate comments.
17603
17604 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 17605 do not use this file.
aac0c6e3
MR
17606 (IRIS_4D): Remove, unused.
17607
17608 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 17609 do not use this file.
aac0c6e3
MR
17610 (SIGN_EXTEND_CHAR):
17611 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
17612 * unexmips.c: Remove file, unused.
17613
17614 * editfns.c (Fuser_full_name): Replace the only use of
17615 USER_FULL_NAME with its value.
17616 * config.in: Regenerate.
17617
176182008-07-16 David Reitter <david.reitter@gmail.com>
17619
17620 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
17621 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
17622
176232008-07-16 Glenn Morris <rgm@gnu.org>
17624
17625 * emacs.c (system-type): Doc fix.
17626
176272008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
17628
17629 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
17630 If the cache doesn't work, let's fix it, rather than work around it.
17631
176322008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
17633
17634 * Makefile.in: Correct additions for nsfont.o in last commit.
17635 * nsfont.m: New file (forgot last commit).
17636
176372008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
17638
bba3e508
SM
17639 * callproc.c (set_initial_environment):
17640 Initialize Vprocess_environment under CANNOT_DUMP (fixes crash when
aac0c6e3
MR
17641 batch-compiling for bootstrap).
17642
176432008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 17644 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 17645
c4cc8b9a
JB
17646 * frame.c (make_initial_frame): Call init_frame_faces(f) in
17647 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
17648
176492008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
17650
17651 Changes and additions for NeXTstep windowing system (Cocoa and
17652 GNUstep) support.
17653
17654 * Makefile.in:
17655 * config.in: Support defines and build commands for NS port.
17656 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
17657 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
17658 * dispextern.h: Include nsgui.h and add needed typedefs under NS
17659 windowing.
17660 (struct face): Add synth_ital field.
17661 * dispnew.c: Include nsterm.h when compiling under NS windowing.
17662 (init_display): Initialize Vinitial_window_system to "ns" when so
17663 compiled.
17664 * emacs.c: Include GSConfig.h when compiling under GNUstep.
17665 (display_arg): Use under NS.
17666 (main): Under NS, allocate autorelease pool and handle command line
17667 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
17668 (standard_args): Add NS-specific args.
17669 (shut_down_emacs): Shut down NS terminal if compiled under NS.
17670 * font.c (DEFAULT_ENCODING): New variable.
17671 (font_find_for_lface): Use it.
17672 (syms_of_font): Load syms_of_nsfont under NS.
17673 * font.h: Declare nsfont_driver when compiled under NS.
17674 * fontset.c: When compiling under NS, include nsterm.h.
17675 (fontset_from_font): Autoconstruct fontset under NS.
17676 * frame.c (various): Under NS, include nsterm.h, add Qns window system
17677 symbol, document and use it.
17678 (do_switch_frame): When for_deletion under Cocoa, add
17679 Fraise_frame(Qnil).
17680 (x_set_frame_parameters): Ensure font attribute changes are picked up.
17681 (x_get_arg): Allow "yes" and "no" as boolean values.
17682 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
17683 Qright under Cocoa.
17684 (focus-follows-mouse): Default to 0 under NS.
17685 * frame.h (enum output_method): Add output_ns.
17686 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
17687 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
17688 (FRAME_WINDOW_P): NS-specific definition.
17689 * fringe.c (max_used_fringe_bitmap): Make public.
17690 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
17691 (getloadavg): Use NeXT code under descendant OS's.
17692 * image.c (includes and header section, x_create_bitmap_from_data)
17693 (x_create_bitmap_from_file, free_bitmap_record, image_background)
17694 (image_background_transparent, x_clear_image_1)
17695 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
17696 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
17697 (x_to_xcolors, x_from_xcolors, x_disable_image)
17698 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
17699 other GUIs, including XPM support using code originally written for
17700 Carbon GUI.
17701 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
17702 using NS API.
17703 (image_ascent): Use font metrics macros instead of direct struct field
17704 access.
17705 * keyboard.c (includes): Add nsterm.h when compiling under NS.
17706 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
17707 Also, handle NS as GTK for menu bar purposes.
17708 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
17709 toolkit where they differ.
17710 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
17711 use cachelist, still needed under NS.
17712 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
17713 (struct widget_value): Define it here for menu.c.
17714 * keymap.c (includes): Include modifier internals.
17715 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
17716 NS.
17717 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
17718 support for preferring sequences using certain modifiers, specified by
17719 the FIRSTONLY argument.
17720 * lisp.h (hash_remove): Rename to avoid name clash when compiling
17721 under NS GNUstep implementation.
17722 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
17723 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
17724 * menu.c: Include nsterm.h under NS.
17725 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
17726 (free_menubar_widget_tree_value, update_submenu_strings)
17727 (find_and_call_menu_selection): Treat NS as X and NT.
17728 (find_and_return_menu_selection): New function, used for popup menus.
17729 * nsgui.h:
17730 * nsterm.h:
17731 * nsfns.m:
17732 * nsimage.m:
17733 * nsmenu.m:
17734 * nsselect.m:
17735 * nsterm.m: New files.
17736 * process.c (wait_reading_process_output): Under NS, call ns_select()
17737 instead of plain select().
17738 * syntax.c (char_quoted): Under NS, avoid a crash when called near
17739 beginning of buffer.
17740 * sysselect.h (init_process): Rename when compiling under Cocoa to
17741 avoid name conflict.
17742 * termhooks.h (display_info): Add ns_display_info to union.
17743 * terminal.c (Fterminal_live_p): Add ns to terminal types.
17744 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
17745 COCOA environment.
17746 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
17747 unexec() signature. (Note, this will dump, but the resulting file
17748 crashes; unexosx is used instead; keeping around for reference and
17749 possible aid in getting dump working under GNUstep.)
17750 * w32gui.h (button_type, widget_value): Remove definitions (now in
17751 keyboard.h).
17752 * window.c: Include nsterm.h when compiling under NS.
17753 * xdisp.c (includes): Include nsterm.h when compiling under NS.
17754 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
17755 other GUI windowing systems.
17756 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
17757 GTK.
17758 (x_consider_frame_title): Under NS, set icon type and frame
17759 modified-state indicator; use ns_set_name_as_filename() when using
17760 formatted title.
17761 (update_window_cursor): Make public when compiling under NS.
17762 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
17763 (hourglass_atimer, Vhourglass_delay
17764 * xfaces.c (header section, init_frame_faces, clear_font_table)
17765 (defined_color, unload_color, x_face_list_fonts)
17766 (prepare_face_for_display): Add NS support parallel to other GUIs.
17767 Emulate GCs like other non-X GUIs.
17768 (split_font_name): Don't lowercase font name under NS.
17769 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
17770 under NS.
17771 * s/darwin.h: Add support for compilation under NS.
17772
177732008-07-15 Jason Rumney <jasonr@gnu.org>
17774
17775 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
17776 (w32_show_hourglass): Rename from show_hourglass.
17777 (w32_hide_hourglass): Rename from hide_hourglass.
17778 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
17779 (Vhourglass_delay): Declare extern.
17780 (hourglass_started): Remove.
17781
17782 * xdisp.c (Vhourglass_delay): Remove static.
17783 (hourglass_started, start_hourglass, cancel_hourglass):
17784 Don't include these versions on WINDOWSNT.
17785
177862008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
17787
17788 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
17789 variables (formerly in xfns.c).
17790 (show_hourglass, hide_hourglass): New prototypes (same).
17791 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
17792 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
17793 in xfns.c).
17794 (syms_of_xdisp): Declare/initialize display-hourglass,
17795 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
17796 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
17797 formerly in xfns.c.
17798 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
17799 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
17800 (start_hourglass, cancel_hourglass): Remove.
17801 (show_hourglass, hide_hourglass): Remove prototypes and static
17802 modifiers.
17803 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
17804 hourglass_atimer, hourglass_shown_p declaration/initialization.
17805 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
17806 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
17807 (start_hourglass, cancel_hourglass): Remove.
17808 (show_hourglass, hide_hourglass): Remove prototypes and static
17809 modifiers.
17810 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
17811 hourglass_atimer, hourglass_shown_p declaration/initialization.
17812 * w32fns.c (display_hourglass_p, Vhourglass_delay)
17813 (DEFAULT_HOURGLASS_DELAY): Remove.
17814 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
17815 hourglass_shown_p declaration/initialization.
17816
178172008-07-14 Jason Rumney <jasonr@gnu.org>
17818
17819 * w32fns.c (w32_get_arg): Remove wrapper function.
17820 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
17821 directly.
17822 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
17823
178242008-07-14 Kenichi Handa <handa@m17n.org>
17825
17826 * xfont.c (xfont_open): Add workaround for X's bug.
17827
178282008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
17829
17830 * fontset.c: Include <stdio.h> unconditionally.
17831
178322008-07-13 Michael Albinus <michael.albinus@gmx.de>
17833
17834 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
17835 for filtering.
17836
178372008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
17838
17839 * s/vms.h: Use __GNUC__ instead of _GNUC_.
17840
17841 * m/macppc.h:
17842 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
17843
c4cc8b9a 17844 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
17845 (SPECIAL_EMACS_INT):
17846 * m/ia64.h (SPECIAL_EMACS_INT):
17847 * m/amdx86-64.h (SPECIAL_EMACS_INT):
17848 * s/gnu.h (NLIST_STRUCT):
17849 * s/aix4-2.h (X11R5_INHIBIT_I18N):
17850 * s/gnu-linux.h (LINUX):
17851 * s/msdos.h (HAVE_FACES):
17852 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
17853
17854 * systty.h:
17855 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
17856 anymore.
17857
178582008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
17859
17860 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
17861 always defined as int.
17862
17863 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
17864 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
17865 * s/gnu-linux.h (HAVE_WAIT_HEADER):
17866 * s/freebsd.h (HAVE_WAIT_HEADER):
17867 * s/bsd-common.h (HAVE_UNION_WAIT):
17868 * s/aix4-2.h (HAVE_WAIT_HEADER):
17869 * m/mips.h (HAVE_UNION_WAIT):
17870 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
17871 (COFF, static): Do not define, they are undefined later in the file.
17872
17873 * process.c (update_status): Don't use a union.
17874 (status_convert):
17875 (sigchld_handler): Use int instead of WAITTYPE.
17876
178772008-07-12 Chong Yidong <cyd@stupidchicken.com>
17878
17879 * indent.c (Fvertical_motion): Restore hscroll before moving to
17880 goal column.
17881
178822008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
17883
17884 * lisp.h: Remove left over code.
17885
178862008-07-11 Andreas Schwab <schwab@suse.de>
17887
17888 * lisp.h: Fix logic in last change.
17889
17890 * menu.h: New file.
17891 * menu.c: Include it.
17892 * xmenu.c: Likewise.
17893 * Makefile.in: Update dependencies.
17894
178952008-07-11 Kenichi Handa <handa@m17n.org>
17896
17897 * fontset.c (fontset_from_font): Cancel the previous change.
17898
178992008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
17900
17901 * lisp.h:
17902 * w32heap.c:
17903 * emacs.c:
17904 * alloc.c: Replace all references of NO_UNION_TYPE with
17905 USE_LISP_UNION_TYPE.
17906
17907 * m/xtensa.h (NO_UNION_TYPE):
17908 * m/vax.h (NO_UNION_TYPE):
17909 * m/template.h (NO_UNION_TYPE):
17910 * m/sparc.h (NO_UNION_TYPE):
17911 * m/mips.h (NO_UNION_TYPE):
17912 * m/macppc.h (NO_UNION_TYPE):
17913 * m/m68k.h (NO_UNION_TYPE):
17914 * m/iris4d.h (NO_UNION_TYPE):
17915 * m/intel386.h (NO_UNION_TYPE):
17916 * m/ibms390x.h (NO_UNION_TYPE):
17917 * m/ibms390.h (NO_UNION_TYPE):
17918 * m/ibmrs6000.h (NO_UNION_TYPE):
17919 * m/ia64.h (NO_UNION_TYPE):
17920 * m/hp800.h (NO_UNION_TYPE):
17921 * m/arm.h (NO_UNION_TYPE):
17922 * m/amdx86-64.h (NO_UNION_TYPE):
17923 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
17924 defining it the same.
17925
179262008-07-10 Chong Yidong <cyd@stupidchicken.com>
17927
17928 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
17929
179302008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
17931
17932 * fileio.c:
50426a04 17933 * sysdep.c:
aac0c6e3
MR
17934 * systty.h:
17935 * m/ibmrs6000.h:
17936 * m/iris4d.h:
17937 * s/aix4-2.h:
17938 * s/freebsd.h:
17939 * s/gnu-linux.h:
17940 * s/hpux10-20.h:
17941 * s/hpux11.h:
17942 * s/netbsd.h:
17943 * s/sol2-3.h:
17944 * s/sol2-4.h:
17945 * s/sol2.h:
17946 * s/usg5-4.h:
17947 * s/vms.h: Remove references to unused variables.
17948
179492008-07-10 Andreas Schwab <schwab@suse.de>
17950
17951 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
17952 pattern before matching the generic family.
17953
179542008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
17955
17956 * unexec.c:
17957 * s/vms.h:
17958 * s/usg5-4-2.h:
17959 * s/sol2-5.h:
17960 * s/freebsd.h:
17961 * s/darwin.h: Remove dead code.
17962
17963 * m/template.h:
17964 * m/sparc.h:
17965 * m/mips.h:
17966 * m/m68k.h:
17967 * m/iris4d.h:
17968 * m/intel386.h:
17969 * m/ibms390x.h:
17970 * m/ibms390.h:
17971 * m/ia64.h:
17972 * m/hp800.h:
17973 * m/arm.h:
17974 * m/amdx86-64.h: Remove dead code and references to unused
17975 and compiler defined symbols.
17976
17977 * unexmips.c:
17978 * unexelf.c: Remove references to desupported systems.
17979
17980 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
17981
17982 * m/powermac.h: Remove boilerplate comments.
17983 (NO_REMAP): Remove unused definition.
17984
17985 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
17986 define them.
17987
179882008-07-10 Kenichi Handa <handa@m17n.org>
17989
17990 * xfont.c (xfont_open): Log the reason of failure.
17991
179922008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
17993
17994 * fontset.c (fontset_get_font_group):
17995 * font.c (font_check_otf): Specify argument types.
17996
179972008-07-09 Kenichi Handa <handa@m17n.org>
17998
17999 * coding.c (detect_coding_utf_8): Set detect_info->found only when
18000 non-ASCII char is found.
18001
18002 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
18003 (reorder_font_vector): Change the arg preferred_family to font.
18004 Prefer the spec matching with font.
18005 (fontset_get_font_group): New function.
18006 (fontset_find_font): Change the format of an element of a realized
18007 fontset. Use fontset_get_font_group.
18008 (fontset_font): Try the current fontset, the default fontset, the
18009 fallbacks of the current fontset, and the fallbacks of the default
18010 fontset in this order.
18011 (face_for_char): Delete the shortcut to use the current font.
18012 (fontset_from_font): Don't set fonts for Latin in the fontset.
18013
18014 * font.h (font_make_object, font_match_p): Adjust prototypes.
18015
18016 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
18017
18018 * font.c (font_make_object): New arg entity and pixelsize.
18019 (font_check_otf_features, font_check_otf): New functions.
18020 (font_match_p): Check :lang, :script, and :otf properties.
18021
18022 * xfont.c (xfont_open): Adjust it for the change of
18023 font_make_object.
18024 (xfont_text_extents): Fix initial setting of metrics.
18025
18026 * ftfont.c (struct ftfont_info): New member index, delete member
18027 fc_charset_idx. Make the member order compatible with struct
18028 xftfont_info.
18029 (fc_charset_table): Change charset names to registry names.
18030 (ftfont_pattern_entity): Delete the args registry and
18031 fc_charset_idx. Change the value of :font-entity property
18032 to (FONTNAME . INDEX). Always set :registry property to
18033 `iso10646-1'.
18034 (struct ftfont_cache_data): New struct.
18035 (ftfont_lookup_cache): New arg for_face.
18036 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
18037 (ftfont_driver): Set the member otf_capability.
18038 (ftfont_get_charset): Adjust it for the change of
18039 fc_charset_table.
18040 (OTF_TAG_SYM): New macro.
18041 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
18042 for the change of fc_charset_table.
18043 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
18044 ftfont_pattern_entity. Add FC_INDEX to objset.
18045 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
18046 and ftfont_pattern_entity.
18047 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
18048 font_make_object, struct ftfont_info.
18049 (ftfont_has_char): Use ftfont_get_fc_charset.
18050 (ftfont_otf_features, ftfont_otf_capability): New functions.
18051 (ftfont_shape): Use ftfont_get_otf.
18052 (ftfont_text_extents): Fix initial setting of metrics.
18053
18054 * xftfont.c (struct xftfont_info): New member ft_size. Make the
18055 member order compatible with struct ftfont_info.
bba3e508
SM
18056 (xftfont_open): Add FC_CHARSET to the pattern.
18057 Set xftfont_info->ft_size. Don't unlock the face. Check BDF
aac0c6e3
MR
18058 properties if appropriate.
18059 (xftfont_close): Unlock the face.
18060 (xftfont_anchor_point, xftfont_shape): Deleted.
18061 (syms_of_xftfont): Don't set members anchor_point and shape of
18062 xftfont_driver.
18063
18064 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
18065 font_make_object.
18066
18067 * w32font.c (w32font_open): Adjust it for the change of
18068 font_make_object.
18069 (w32font_open_internal): Don't set properties of font_object here.
18070
180712008-07-08 Chong Yidong <cyd@stupidchicken.com>
18072
18073 * macfns.c (x_create_tip_frame):
18074 * w32fns.c (x_create_tip_frame):
18075 * xfns.c (x_create_tip_frame): Pass parameter argument to
18076 face-set-after-frame-default.
18077
18078 * xfaces.c (Finternal_merge_in_global_face): Save merged
18079 attributes for the default face back into the face vector.
18080
180812008-07-08 Andreas Schwab <schwab@suse.de>
18082
18083 * fontset.h: Declare fontset_from_font. Don't declare
18084 new_fontset_from_font and fontset_from_font_name.
18085 * xterm.c: Include "fontset.h".
18086 * Makefile.in (xterm.o): Update dependencies.
18087
180882008-07-08 Glenn Morris <rgm@gnu.org>
18089
18090 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
18091 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
18092
180932008-07-07 Chong Yidong <cyd@stupidchicken.com>
18094
18095 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
18096 (x_set_frame_parameters): Don't bind it.
18097
180982008-07-07 Juanma Barranquero <lekktu@gmail.com>
18099
18100 * w32fns.c (map_w32_filename): Declare extern.
18101
181022008-07-07 Jason Rumney <jasonr@gnu.org>
18103
18104 * w32term.c (WS_EX_LAYERED): Define if not already.
18105
181062008-07-06 Chong Yidong <cyd@stupidchicken.com>
18107
18108 * xfaces.c (set_font_frame_param): Don't try to set the font
18109 parameter if it is still unspecified in the lface.
18110
181112008-07-05 Chong Yidong <cyd@stupidchicken.com>
18112
18113 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
18114 face if it didn't already exist.
18115
18116 * xdisp.c (try_window_id): Give up if word-wrapping is on.
18117
181182008-07-05 Andreas Schwab <schwab@suse.de>
18119
18120 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
18121
181222008-07-05 Chong Yidong <cyd@stupidchicken.com>
18123
18124 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
18125 word-wrapping.
18126 (IT_DISPLAYING_WHITESPACE): New macro.
18127 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
18128 when word-wrapping. Simplify word-wrapping logic. Use correct
18129 pixel positions when saving copies of the iterator.
18130 (display_line): Use proper wrap point if the last character on a
18131 line was preceded by whitespace.
18132
181332008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
18134
18135 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
18136
181372008-07-04 Kenichi Handa <handa@m17n.org>
18138
18139 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
18140
18141 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
18142
181432008-07-02 Jason Rumney <jasonr@gnu.org>
18144
18145 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 18146 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
18147
18148 * xdisp.c (next_element_from_display_vector): Move assignment out
18149 of if statement.
18150
181512008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
18152
18153 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
18154
18155 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
18156 (syms_of_fileio): Initialize and export them.
18157 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
18158
18159 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
18160 (Fsystem_move_file_to_trash): New function.
18161 (syms_of_w32fns): Export it to lisp.
18162
181632008-07-01 Jason Rumney <jasonr@gnu.org>
18164
18165 * w32font.c (w32font_text_extents): Don't count overhang as part
18166 of width.
18167
181682008-06-30 Miles Bader <miles@gnu.org>
18169
18170 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
18171 Add `avoid_cursor_p' field.
18172
18173 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
18174 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
18175 (append_glyph, append_composite_glyph, produce_image_glyph)
18176 (append_stretch_glyph): Initialize avoid_cursor_p.
18177 (get_it_property): Rename from `get_line_height_property'.
18178 (x_produce_glyphs): Use get_it_property.
18179 (handle_line_prefix, push_display_prop): New functions.
18180 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
18181 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
18182 New variables.
18183 (syms_of_xdisp): Initialize them.
18184
181852008-06-30 Kenichi Handa <handa@m17n.org>
18186
18187 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
18188 XftDefaultSubstitute (they are called in XftFontMatch).
18189 (xftfont_open): Fix args to ftfont_font_format.
18190
18191 * ftfont.c (fc_charset_table): New member lang.
18192 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 18193 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
18194 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
18195 (ftfont_open): Fix args to ftfont_font_format.
18196 (ftfont_font_format): New arg filename.
18197
181982008-06-30 Chong Yidong <cyd@stupidchicken.com>
18199
18200 * xfaces.c (Finternal_merge_in_global_face): If default face was
18201 modified, realize it again. Update the font face attribute.
18202
182032008-06-29 Jason Rumney <jasonr@gnu.org>
18204
18205 * w32term.c (x_set_frame_alpha): Fix logic.
18206
182072008-06-29 Kenichi Handa <handa@m17n.org>
18208
18209 * fontset.c (Finternal_char_font): Return font-object instead of
18210 font-name.
18211
18212 * composite.c (get_composition_id): Fix the width calculation for TAB.
18213
182142008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
18215
18216 * indent.c (Fvertical_motion): Properly handle float column arg.
18217
182182008-06-28 Jason Rumney <jasonr@gnu.org>
18219
18220 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
18221 (pfnSetLayeredWindowAttributes): New function pointer.
18222 (w32_initialize): Initialize it when supported.
18223 (x_set_frame_alpha): New function.
18224
18225 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
18226 (w32_frame_parm_handlers): Set alpha handler.
18227
18228 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
18229
182302008-06-27 Jason Rumney <jasonr@gnu.org>
18231
18232 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
18233 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
18234 (w32_to_x_charset, x_to_w32_charset)
18235 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
18236 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
18237 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
18238 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
18239 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
18240 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
18241 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
18242 (Qw32_charset_unicode): Remove.
18243 (syms_of_w32fns): Update for above changes.
18244
18245 * w32font.c (w32_to_x_charset, x_to_w32_charset)
18246 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
18247 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
18248 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
18249 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
18250 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
18251 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
18252 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
18253 (syms_of_w32font): Update for above changes.
18254
182552008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
18256
18257 * s/usg5-4.h: Fix previous change: keep the correct branch of a
18258 removed #if.
18259 (USG_SHARED_LIBRARIES): Remove duplicate definition.
18260
182612008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 18262 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
18263
18264 * makefile.w32-in (LOCAL_FLAGS):
18265 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
18266
18267 * sysdep.c (_spawnlp, _getpid):
18268 Declare with explicit _cdecl instead of _CRTAPI1.
18269
18270 * editfns.c (Fget_internal_run_time):
18271 Check for WINDOWSNT with #ifdef, not #if.
18272
182732008-06-26 Jason Rumney <jasonr@gnu.org>
18274
18275 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
18276
18277 * w32term.c (x_draw_glyph_string_foreground)
18278 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
18279 Use FONT_HANDLE macro.
18280 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
18281
18282 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
18283 (uniscribe_encode_char): Use FONT_HANDLE macro.
18284
18285 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
18286 (w32font_text_extents): Use precast w32_font.
18287 (w32font_close): Free cached metrics.
18288 (w32font_open_internal): Allocate space for name on stack.
18289
182902008-06-26 Chong Yidong <cyd@stupidchicken.com>
18291
18292 * xdisp.c (extend_face_to_end_of_line): Fix last change.
18293
182942008-06-26 Jason Rumney <jasonr@gnu.org>
18295
18296 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
18297 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
18298
182992008-06-26 Juanma Barranquero <lekktu@gmail.com>
18300
18301 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
18302
183032008-06-26 Jason Rumney <jasonr@gnu.org>
18304
18305 * w32bdf.c, w32bdf.h: Remove obsolete files.
18306
18307 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
18308
18309 * w32gui.h: Don't include w32bdf.h.
18310 (XCharStruct, enum w32_char_font_type, W32FontStruct):
18311 Remove obsolete font support.
18312
18313 * w32font.h (struct w32font_info): Remove compat_w32_font.
18314 Add hfont member.
18315 (FONT_COMPAT): Remove obsolete macro.
18316
18317 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
18318 (w32font_encode_char, w32font_text_extents): Use new hfont member.
18319 (w32font_open_internal): Remove compat code. Set new hfont member.
18320 (Fx_select_font): Use new hfont member.
18321
18322 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
18323 (uniscribe_encode_char): Use new hfont member.
18324
18325 * w32term.c (x_draw_glyph_string_foreground)
18326 (x_draw_composite_glyph_string_foreground): Use new hfont member.
18327 (x_draw_glyph_string): Use metrics in w32font_info.
18328
183292008-06-26 Kenichi Handa <handa@m17n.org>
18330
18331 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
18332
183332008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
18334
18335 * unexnext.c:
18336 * m/ews4800.h:
18337 * m/hp9000s300.h:
18338 * m/ibm370aix.h:
18339 * m/mips-siemens.h:
18340 * m/ncr386.h:
18341 * m/next.h:
18342 * m/pmax.h:
18343 * m/powerpcle.h:
18344 * m/tandem-s2.h:
18345 * s/386bsd.h:
18346 * s/bsd386.h:
18347 * s/bsd4-1.h:
18348 * s/bsd4-2.h:
18349 * s/bsdos2-1.h:
18350 * s/bsdos2.h:
18351 * s/bsdos3.h:
18352 * s/bsdos4.h:
18353 * s/nextstep.h:
18354 * s/ultrix4-3.h:
18355 * s/usg5-0.h:
18356 * s/usg5-2-2.h:
18357 * s/usg5-2.h:
18358 * s/usg5-4-3.h:
18359 * s/ux4800.h:
18360 * s/uxpds.h:
18361 * s/uxpv.h: Remove support for obsolete systems.
18362 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 18363 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
18364 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
18365 Remove, insert contents in s/aix4-2.h.
18366 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
18367 * s/bsd4-3.h: Rename to ...
18368 * s/bsd-common.h: ... this.
18369 * data.c:
18370 * doc.c:
18371 * ecrt0.c:
18372 * emacs.c:
18373 * fileio.c:
18374 * floatfns.c:
18375 * keyboard.c:
18376 * mem-limits.h:
18377 * print.c:
18378 * process.c:
18379 * sysdep.c:
18380 * syssignal.h:
18381 * systty.h:
18382 * syswait.h:
18383 * term.c:
18384 * unexec.c:
18385 * unexelf.c:
18386 * unexhp9k800.c:
18387 * m/hp800.h:
18388 * m/ibmrs6000.h:
18389 * m/mips.h:
18390 * m/vax.h:
18391 * s/darwin.h:
18392 * s/freebsd.h:
18393 * s/gnu.h:
18394 * s/ms-w32.h:
18395 * s/msdos.h:
18396 * s/netbsd.h:
18397 * s/template.h: Remove references to obsolete variables.
18398
18399 * Makefile.in: Add dependencies for all unexec files.
18400 (admindir): Remove unused variable.
18401 (UNEXEC_SRC): Remove references.
18402
184032008-06-25 Chong Yidong <cyd@stupidchicken.com>
18404
18405 * xfns.c (x_default_font_parameter): If Xft is available, first
18406 try Monospace-12 for the default font.
18407
184082008-06-25 Jason Rumney <jasonr@gnu.org>
18409
18410 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
18411
184122008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
18413
18414 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
18415
18416 * buffer.c (syms_of_buffer): Remove default-word-wrap.
18417
184182008-06-25 Juanma Barranquero <lekktu@gmail.com>
18419
18420 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
18421 <scroll-conservatively>: Fix typo in docstring.
18422
18423 * xselect.c (Fx_send_client_event): Doc fix.
18424
184252008-06-25 Kenichi Handa <handa@m17n.org>
18426
18427 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
18428
18429 * font.c (font_parse_fcname): Remove unused variables.
18430 (font_sort_entites): Delete the arg SPEC. Caller changed.
18431 Fix for the case of ! best_only.
18432 (font_delete_unmatched): Check DPI and AVGWIDTH too.
18433
18434 * lisp.h (Fstring_to_unibyte): EXFUN it.
18435
18436 * character.h (str_to_unibyte): Extern it.
18437
18438 * character.c (str_to_unibyte): New function.
18439
18440 * fns.c (Fstring_to_unibyte): New function.
18441 (syms_of_fns): Defsubr it.
18442
184432008-06-24 Kenichi Handa <handa@m17n.org>
18444
18445 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
18446 DPI too.
18447 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
18448
184492008-06-24 Andreas Schwab <schwab@suse.de>
18450
18451 * Makefile.in (${lispsource}loaddefs.el): Rename from
18452 ../lisp/loaddefs.el.
18453 (bootstrap-clean): Do what distclean does but don't remove
18454 Makefile.
18455 (distclean): Depend on bootstrap-clean and remove Makefile.
18456
184572008-06-24 Chong Yidong <cyd@stupidchicken.com>
18458
18459 * buffer.h (struct buffer): New member word_wrap.
18460
18461 * buffer.c (syms_of_buffer): New variables default-word-wrap and
18462 word-wrap.
18463 (init_buffer_once): Initialize them.
18464
18465 * dispextern.h (struct it): Replace bool truncate_lines_p with a
18466 line_wrap enum possessing three possible values.
18467
18468 * termopts.h: Replace truncate_partial_width_windows with
18469 Vtruncate_partial_width_windows.
18470
18471 * dispnew.c (direct_output_for_insert): Avoid direct output when
18472 inserting a space with word wrap on.
18473
18474 * indent.c (compute_motion): Obey integer values of
18475 truncate-partial-width-windows.
18476
18477 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
18478 replacing truncate_partial_width_windows.
18479 (init_iterator): If Vtruncate_partial_width_windows is an integer,
18480 truncate only if the window width is below that integer.
18481 (start_display, resize_mini_window, produce_stretch_glyph)
18482 (display_string, move_it_in_display_line_to): Use line_wrap.
bba3e508
SM
18483 (back_to_previous_visible_line_start, reseat_1):
18484 Reset string_from_display_prop_p.
aac0c6e3
MR
18485 (display_line): Extend default face to end of line when wrapping.
18486
184872008-06-24 Kim F. Storm <storm@cua.dk>
18488
18489 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
18490 to wrap continued lines at word boundaries.
18491
184922008-06-24 Jason Rumney <jasonr@gnu.org>
18493
18494 * font.c (Ffont_face_attributes): Multiply pixel size before point
18495 conversion to avoid multiplying rounding error.
18496
184972008-06-23 Jason Rumney <jasonr@gnu.org>
18498
18499 * w32term.c (x_draw_glyph_string_background)
18500 (x_draw_glyph_string): Remove old bdf font code.
18501
18502 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
18503
185042008-06-22 Kenichi Handa <handa@m17n.org>
18505
18506 * font.c (font_find_for_lface): Try the adstyle specified in
18507 the property of LFACE_FONT of LFACE (if any).
18508
185092008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 18510 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
18511
18512 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
18513
185142008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
18515
18516 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
18517 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
18518 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
18519 (witness-emacs): Remove.
18520 (lisp, shortlisp): Move loaddefs.el earlier.
18521 (mostlyclean): Forget about witness-emacs.
18522
185232008-06-22 Glenn Morris <rgm@gnu.org>
18524
18525 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
18526 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
18527
185282008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
18529
18530 * Makefile.in (PRECOMP): Remove.
18531 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
18532 (witness-emacs): Run `compile-first'.
18533 (.el.elc): Use the new compile-onefile target.
18534
185352008-06-21 Kenichi Handa <handa@m17n.org>
18536
18537 * xftfont.c (xftfont_open): Handle QCembolden only when
18538 FC_EMBOLDEN is defined.
18539
185402008-06-21 Andreas Schwab <schwab@suse.de>
18541
18542 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
18543 (.el.elc): Likewise.
18544
185452008-06-21 Miles Bader <miles@gnu.org>
18546
18547 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
18548 build dir, not the lisp source dir.
18549
185502008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
18551
18552 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
18553 (bootstrapclean): Remove.
18554 (.el.elc): New rule.
18555 (PRECOMP): New var.
18556 (../lisp/subdirs.el): Remove.
18557 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
18558 (witness-emacs): New target.
18559 (mostlyclean): Remove witness-emacs as well.
18560 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
18561 Add witness-emacs dependency.
18562
185632008-06-20 Chong Yidong <cyd@stupidchicken.com>
18564
18565 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
18566 defined by the font.
18567
185682008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
18569
18570 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
18571 (bootstrap-clean): New target that keeps TAGS around.
18572 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
18573 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
18574
185752008-06-20 Jason Rumney <jasonr@gnu.org>
18576
18577 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
18578 Remove obsolete font code.
18579
18580 * w32font.c (font_matches_spec): Use csb bitfield from font signature
18581 to determine language support.
18582
185832008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
18584
18585 * sysdep.c (cfsetspeed): New fun extracted from the code.
18586 (cfmakeraw): Move before first use.
18587
185882008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
18589
18590 * sysdep.c (cfmakeraw): Provide fallback implementation.
18591 (serial_configure): Provide fallback implementation of cfsetspeed.
18592
185932008-06-20 Kenichi Handa <handa@m17n.org>
18594
18595 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
18596 the pattern.
18597
18598 * fontset.c (fontset_from_font): Copy font_spec before changing
18599 the elements.
18600
18601 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
18602
186032008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
18604
18605 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
18606 for explicit `font' parameters.
18607
18608 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
18609
186102008-06-19 Kenichi Handa <handa@m17n.org>
18611
18612 * frame.c: Include <ctype.h>.
18613 (x_set_font_backend): Allow spacing characters in the X resource
18614 for FontBackend.
18615
186162008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
18617
18618 * w32fns.c, xfns.c (Qfont_param): New var.
18619 (syms_of_w32fns): Initialize it.
18620 (x_default_font_parameter): Record explicit `font' into
18621 `font-parameter'.
18622
186232008-06-18 Kenichi Handa <handa@m17n.org>
18624
18625 * font.c (font_parse_xlfd): Fix previous change.
18626 (font_parse_fcname): Don't use :fc-unknown-spec.
18627 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
18628 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
18629 (font_add_log): Prepend the driver name to the resulting fonts.
18630
18631 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
18632 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
18633 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
18634
18635 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
18636 (QCembolden): New variables.
18637 (syms_of_xftfont): DEFSYM them.
18638 (xftfont_open): Call XftFontMatch. Don't trust the result of
18639 XftTextExtents8 if the pixel_size is less than 5.
18640
186412008-06-18 Andreas Schwab <schwab@suse.de>
18642
18643 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
18644 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
18645
186462008-06-18 Jason Rumney <jasonr@gnu.org>
18647
18648 * w32font.c (w32font_list, w32font_match): Add logging.
18649
18650 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
18651
186522008-06-17 Chong Yidong <cyd@stupidchicken.com>
18653
18654 * font.c (font_parse_fcname): Store divider characters for
18655 unknown-spec list. For known key symbols, intern using correct
18656 symbol name.
18657
186582008-06-17 Kenichi Handa <handa@m17n.org>
18659
18660 * xfaces.c (realize_default_face): If the frame is not on window
18661 system, set the fontset of face to nil.
18662
186632008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
18664
18665 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
18666
186672008-06-16 Juanma Barranquero <lekktu@gmail.com>
18668
18669 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
18670 (build_font_name_from_vector): Delete externs.
18671
18672 * xfaces.c (struct font_name): Don't declare.
18673
186742008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
18675
18676 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
18677
186782008-06-16 Chong Yidong <cyd@stupidchicken.com>
18679
18680 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
18681
186822008-06-16 Juanma Barranquero <lekktu@gmail.com>
18683
18684 * font.c (Ffont_spec): Fix usage in docstring.
18685 (Ffont_face_attributes): Doc fix.
18686
186872008-06-16 Andreas Schwab <schwab@suse.de>
18688
18689 * font.c (Ffont_face_attributes): Fix definition.
18690
186912008-06-16 Jason Rumney <jasonr@gnu.org>
18692
18693 * font.h (font_style_symbolic_from_value): Remove.
18694
18695 * font.c (font_style_symbolic_from_value): Remove.
18696 (font_style_symbolic): Revert to pre 2008-06-13 version.
18697
18698 * w32font.c (w32_to_fc_weight): New function.
18699 (w32font_full_name, logfont_to_fcname): Use it.
18700
187012008-06-16 Kenichi Handa <handa@m17n.org>
18702
18703 * font.c (font_check_object): Delete it.
18704 (font_clear_cache): Check if a font-object is alive.
18705 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
18706 font-object to nil.
18707 (font_close_object): Don't check FONT_CLOSE_OBJECT.
18708 (font_at): Don't call font_check_object.
18709 (Ffont_get): Return a symbol for :weight, :slant, and :width.
18710
187112008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
18712
18713 * puresize.h (BASE_PURESIZE): Increase to 1230000.
18714
187152008-06-16 Chong Yidong <cyd@stupidchicken.com>
18716
18717 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
18718
187192008-06-15 Chong Yidong <cyd@stupidchicken.com>
18720
18721 * font.c (font_parse_fcname): Only one decimal point.
18722 (font_unparse_fcname): Handle data in family and foundry indices
18723 as symbols, not strings.
18724 (font_unparse_gtkname, Ffont_face_attributes): New functions.
18725
18726 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
18727
18728 * font.h (font_unparse_gtkname): Add prototype.
18729
187302008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
18731
18732 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
18733
187342008-06-15 Andreas Schwab <schwab@suse.de>
18735
18736 * font.c (font_update_drivers): Fix crash when no drivers match.
18737
187382008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
18739
18740 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
18741 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
18742
187432008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
18744
18745 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
18746
187472008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
18748
18749 * process.c (Fserial_process_configure, Fprocess_send_eof):
18750 Use EQ to compare Lisp_Objects.
18751
187522008-06-13 Jason Rumney <jasonr@gnu.org>
18753
18754 * w32fns.c (Fw32_select_font): Remove old font API function.
18755
18756 * w32font.c (logfont_to_fcname): New function.
18757 (Fx_select_font): New font dialog function compatible with
18758 GTK/fontconfig version.
18759
18760 * font.c (font_style_symbolic_from_value): New function.
18761 (font_style_symbolic): Use it.
18762
18763 * font.h (font_style_symbolic_from_value): Declare new function.
18764
187652008-06-13 Juanma Barranquero <lekktu@gmail.com>
18766
18767 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
18768 <font-width-table>: Fix typos in docstrings.
18769
187702008-06-13 Daniel Engeler <engeler@gmail.com>
18771
18772 These changes add serial port access.
18773 * process.c: Add HAVE_SERIAL.
18774 (Fdelete_process, Fprocess_status, Fset_process_buffer)
18775 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
18776 (list_processes_1, select_wrapper, Fstop_process)
18777 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
18778 (status_notify): Modify to handle serial processes.
18779 [HAVE_SERIAL] (Fserial_process_configure)
18780 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
18781 New functions.
18782 * process.h (struct Lisp_Process): Add `type'.
18783 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
18784 New functions.
18785 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
18786 serial ports.
b71ac3dd 18787 (serial_open, serial_configure): New functions.
aac0c6e3
MR
18788 * w32.h: Add FILE_SERIAL.
18789 (struct _child_process): Add ovl_read, ovl_write.
18790
187912008-06-13 Kenichi Handa <handa@m17n.org>
18792
18793 * dispextern.h (enum lface_attribute_index): New member
18794 LFACE_FOUNDRY_INDEX.
18795
18796 * font.c (font_score): Delete arg alternate_families. Check only
18797 weight, slant, width, and size. Ignore the difference of alias
18798 style symbols.
18799 (font_sort_entites): Adjust for the above change. Reflect the
18800 order of font-driver to scores.
18801 (font_list_entities): Don't check alternate_familes here.
18802 (font_clear_prop): Handle foundry.
18803 (font_update_lface): Don't parse "foundry-family" form here.
18804 Handle FONT_FOUNDRY_INDEX.
18805 (font_find_for_lface): Likewise. Handle alternate families here.
18806 If registry is nil, try iso8859-1 and ascii-0.
18807 (font_open_for_lface): Pay attention to size in ENTITY.
18808 (font_open_by_name): Simplify by calling font_load_for_lface.
18809 (free_font_driver_list): Delete it.
18810 (font_update_drivers): Preserve the order of backends.
18811 (syms_of_font): Setting of sort_shift_bits adjusted for the change
18812 of font_score and font_sort_entites.
18813 (font_update_sort_order): Likewise.
18814
18815 * xfaces.c (LFACE_FOUNDRY): New macro.
18816 (check_lface_attrs): Check foundry.
18817 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
18818 (merge_face_vectors): Check foundry.
18819 (merge_face_ref): Likewise.
18820 (Finternal_set_lisp_face_attribute): Likewise.
18821 (x_update_menu_appearance): Likewise.
18822 (Finternal_get_lisp_face_attribute): Likewise.
18823 (lface_hash): Likewise.
18824 (lface_same_font_attributes_p): Likewise.
18825 (x_supports_face_attributes_p): Likewise.
18826 (tty_supports_face_attributes_p): Likewise.
18827 (Finternal_set_alternative_font_family_alist): Intern strings.
18828 (Finternal_set_alternative_font_registry_alist): Downcase strings.
18829 (realize_default_face): Set LFACE_FOUNDRY (lface).
18830
18831 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
18832 font-driver at first.
18833
18834 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
18835
188362008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
18837
18838 * lread.c (Fload): Use xfree, not free on saved_doc_string.
18839
188402008-06-12 Jim Meyering <meyering@redhat.com>
18841
18842 Make unexec_free handle NULL the same way free does.
18843 * unexmacosx.c (unexec_free): Ignore a NULL argument.
18844
188452008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
18846
18847 * character.h (CHAR_TO_BYTE_SAFE): New macro.
18848 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
18849 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
18850 (WEAK_ALIAS): Simplify.
18851 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
18852 when searching a unibyte buffer.
18853
188542008-06-12 Chong Yidong <cyd@stupidchicken.com>
18855
18856 * xfns.c (Fx_select_font): Rename from x-font-dialog.
18857
188582008-06-12 Juanma Barranquero <lekktu@gmail.com>
18859
18860 * w32font.c: Include ctype.h.
18861
188622008-06-11 Jason Rumney <jasonr@gnu.org>
18863
18864 * w32font.c (w32font_encode_char): Detect missing glyphs that are
18865 misreported as space.
18866 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
18867 as aliases for registry iso10646-1.
18868
188692008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
18870
18871 * buffer.c (clone_per_buffer_values): Skip `name'.
18872
188732008-06-11 Chong Yidong <cyd@stupidchicken.com>
18874
18875 * font.c (font_parse_fcname): Fix last change; accept decimal
18876 points in font size.
18877
188782008-06-10 Jason Rumney <jasonr@gnu.org>
18879
18880 * w32uniscribe.c (add_opentype_font_name_to_list):
18881 Skip non unicode fonts.
18882
188832008-06-10 Chong Yidong <cyd@stupidchicken.com>
18884
18885 * xfns.c (Fx_font_dialog): New function.
18886
18887 * gtkutil.c (xg_dialog_response_cb): Rename from
18888 xg_file_response_callback.
18889 (pop_down_dialog): Rename from pop_down_file_dialog.
18890 (xg_get_file_name): Callers changed.
18891 (xg_get_font_name): New function.
18892
18893 * gtkutil.h (xg_get_font_name): Insert prototype.
18894
188952008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
18896
18897 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
18898 x_underline_minimum_display_offset.
18899 (syms_of_xdisp): Declare it here rather than in xterm.c.
18900 * dispextern.h (underline_minimum_offset): Declare it.
18901 * w32term.c (x_draw_glyph_string): Use it.
18902 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
18903 (syms_of_xterm): Don't declare it any more.
18904 (x_draw_glyph_string): Adjust to the new name.
18905
8719abec 189062008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
18907
18908 * xterm.c (x_underline_minimum_display_offset): New var.
18909 (x_draw_glyph_string): Use it.
18910 (syms_of_xterm): Declare it.
18911
189122008-06-10 Chong Yidong <cyd@stupidchicken.com>
18913
18914 * font.c (font_parse_fcname): Accept GTK-style font names too.
18915
189162008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
18917
18918 * dired.c (file_name_completion): Don't return t if the match is exact
18919 but with different capitalization.
18920 * minibuf.c (Ftry_completion): Simplify.
18921
18922 * window.c (Vwindow_point_insertion_type): New var.
18923 (set_window_buffer): Use it.
18924 (syms_of_window): Init and export it to Lisp.
18925
189262008-06-10 Kenichi Handa <handa@m17n.org>
18927
18928 * font.h (font_intern_prop): Prototype adjusted.
18929
18930 * font.c (font_intern_prop): New arg force_symbol.
18931 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
18932 Adjust for the change of font_intern_prop.
18933
18934 * ftfont.c (ftfont_pattern_entity):
18935 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
18936 (w32_registry):
18937 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
18938 the change of font_intern_prop.
18939
189402008-06-09 Juanma Barranquero <lekktu@gmail.com>
18941
18942 * w32menu.c (digest_single_submenu): Declare extern.
18943
189442008-06-09 Jason Rumney <jasonr@gnu.org>
18945
18946 * w32term.c (x_make_frame_visible): Use alternate restore flags.
18947
18948 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
18949 (parse_single_submenu): Remove.
18950 (digest_single_submenu): Remove.
18951 (syms_of_w32menu): Don't initialise variables that have moved
18952 to menu.c.
18953 (set_frame_menubar): Sync with version in xmenu.c.
18954 (w32_menu_show): Sync with xmenu_show in xmenu.c.
18955
18956 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
18957 Make static again.
18958
189592008-06-09 Jason Rumney <jasonr@gnu.org>
18960
18961 Changes to w32 files related to the move of common menu code
18962 to menu.c on 2008-06-08 by Chong Yidong.
18963
18964 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
18965 defs to w32gui.h.
18966 (single_keymap_panes, push_menu_item, push_menu_pane):
18967 Make globally visible.
18968
18969 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
18970 (local_free, malloc_widget_value, free_widget_value)
18971 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
18972 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
18973 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
18974 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
18975 (menu_items, menu_items_allocated, menu_items_used)
18976 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
18977 (init_menu_items, finish_menu_items, discard_menu_items)
18978 (grow_menu_items, push_submenu_start, push_submenu_end)
18979 (push_left_right_boundary, push_menu_pane, push_menu_item)
18980 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
18981 (free_menubar_widget_tree_value, parse_single_submenu)
18982 (update_submenu_strings): Remove functions.
18983 (xmalloc_widget_value): Remove and declare extern.
18984
18985 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
18986 (OBJ1): Build it.
18987
18988 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
18989 (local_heap, local_alloc, local_free, malloc_widget_value)
18990 (free_widget_value): Define here.
18991
189922008-06-09 Kenichi Handa <handa@m17n.org>
18993
18994 * font.h (Qascii_0): Extern it.
18995
18996 * font.c (Qascii_0): New variable.
18997 (syms_of_font): DEFSYM it.
18998 (font_open_by_name): If the registry "iso8859-1" fails, try also
18999 "ascii-0".
19000
19001 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
19002
190032008-06-08 Kenichi Handa <handa@m17n.org>
19004
19005 * .gdbinit (xfont): New command.
19006
190072008-06-08 Andreas Schwab <schwab@suse.de>
19008
19009 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
19010 * Makefile.in (menu.o): Update dependencies.
19011
19012 * Makefile.in (obj): Always add menu.o.
19013 * emacs.c (main): Always call syms_of_menu.
19014 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
19015
190162008-06-08 Chong Yidong <cyd@stupidchicken.com>
19017
19018 * Makefile.in: Compile menu.c.
19019
19020 * lisp.h: Declare syms_of_menu.
19021
19022 * emacs.c (main): Call syms_of_menu.
19023
19024 * keyboard.h: Relocate platform-independent menu definitions from
19025 xmenu.c.
19026
19027 * menu.c: New file. Relocate platform-independent menu
19028 definitions from xmenu.c. Suggested by Adrian Robert.
19029
19030 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 19031 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
19032 (menu_items_used, menu_items_n_panes)
19033 (menu_items_submenu_depth): Move to keyboard.h.
19034 (init_menu_items, finish_menu_items, unuse_menu_items)
19035 (discard_menu_items, restore_menu_items, save_menu_items)
19036 (grow_menu_items, push_submenu_start, push_submenu_end)
19037 (push_left_right_boundary, push_menu_pane, push_menu_item)
19038 (keymap_panes, single_keymap_panes, single_menu_item)
19039 (list_of_panes, list_of_items, find_and_call_menu_selection)
19040 (xmalloc_widget_value, free_menubar_widget_value_tree)
19041 (parse_single_submenu, digest_single_submenu)
19042 (update_submenu_strings): Move to menu.c.
19043
190442008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
19045
19046 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
19047
190482008-06-06 Miles Bader <miles@gnu.org>
19049
19050 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
19051 face, not frame default.
19052
190532008-06-05 Martin Rudalics <rudalics@gmx.at>
19054
19055 * window.c (pop_up_windows, pop_up_frames)
19056 (display_buffer_reuse_frames, Vpop_up_frame_function)
19057 (Vdisplay_buffer_function, Veven_window_heights)
19058 (Vspecial_display_buffer_names, Vspecial_display_regexps)
19059 (Vspecial_display_function, Vsame_window_buffer_names)
19060 (Vsame_window_regexps, split_height_threshold)
19061 (Vsplit_window_preferred_function): Move those vars to window.el.
19062 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
19063 (Fdisplay_buffer): Move those functions to window.el.
19064 (syms_of_window): Remove corresponding declarations.
19065 (display_buffer): New function.
19066 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
19067 * dispnew.c (Flast_nonminibuf_frame): New function.
19068 * buffer.c (Fpop_to_buffer): Move to window.el.
19069
190702008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
19071
19072 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
19073
190742008-06-05 Kenichi Handa <handa@m17n.org>
19075
19076 * coding.c (detect_coding): Fix previous change.
19077 (detect_coding_system): Likewise.
19078
190792008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
19080
19081 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
19082
19083 * keymap.c (Vminibuffer_local_filename_must_match_map):
19084 Rename from Vminibuffer_local_must_match_filename_map.
19085 (syms_of_keymap):
19086 * minibuf.c (Fcompleting_read): Adjust accordingly.
19087 * commands.h: Rename declaration as well.
19088
190892008-06-05 Kenichi Handa <handa@m17n.org>
19090
19091 * font.c (Ffont_spec): Don't use font_parse_family_registry for
19092 family name.
19093 (Ffont_put): Likewise.
19094
19095 * fontset.c (fontset_find_font): Call font_open_for_lface with the
19096 current font-spec.
19097
19098 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
19099 is unspecified.
19100
19101 * xfaces.c (realize_x_face): If the font-related face attributes
19102 are the same as those of default face, realize a new fontset from
19103 default->fontset.
19104 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
19105
191062008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
19107
19108 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
19109 (move_it_in_display_line): New wrapper.
19110
19111 * window.c (window_scroll_pixel_based_preserve_x)
19112 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
19113 (window_scroll_pixel_based, window_scroll_line_based):
19114 Use them to preserve column positions.
19115 (syms_of_window): Initialize them.
19116
19117 * indent.c (Fvertical_motion): Extend first arg to allow passing an
19118 (HPOS . VPOS) pair.
19119
19120 * dispextern.h (move_it_in_display_line): Declare.
19121
191222008-06-05 Juanma Barranquero <lekktu@gmail.com>
19123
19124 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
19125 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
19126 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
19127
191282008-06-04 Juanma Barranquero <lekktu@gmail.com>
19129
19130 * window.c (Fset_window_parameter): Doc fix.
19131 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
19132
191332008-06-04 Joakim Verona <joakim@verona.se>
19134
19135 * window.h (struct window): Add new member window_parameters.
19136
19137 * window.c (Fwindow_parameters, Fwindow_parameter)
19138 (Fset_window_parameter): New defuns.
19139 (syms_of_window): Defsubr the new defuns.
19140 (make_window): Initialize window_parameters to nil.
19141
191422008-06-04 John Paul Wallington <jpw@pobox.com>
19143
19144 * eval.c (Fdefmacro): Doc fix.
19145
191462008-06-04 Kenichi Handa <handa@m17n.org>
19147
19148 * coding.c (detect_coding): Fix handling of coding->head_ascii.
19149 Be sure to call setup_coding_system when we find a proper coding system.
19150 (detect_coding_system): Fix handling of coding->head_ascii.
19151
191522008-06-03 Andreas Schwab <schwab@suse.de>
19153
19154 * font.c (font_prop_validate_spacing): Fix last change.
19155
191562008-06-03 Kenichi Handa <handa@m17n.org>
19157
19158 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
19159 (font_parse_fcname): Fix handling of unknown key.
19160
19161 * xfont.c (xfont_list): Try an alias.
19162
19163 * charset.c (char_charset): Return NULL if the arg charset_list is
19164 specified and C doesn't belong to any of them.
19165
191662008-06-02 Chip Coldwell <coldwell@redhat.com>
19167
19168 * font.c (font_pixel_size): Don't take cdr of an integer.
19169
191702008-06-02 Jim Meyering <meyering@redhat.com>
19171
19172 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
19173 * alloc.c (xfree): Return right away for a NULL arg.
19174 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
19175 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
19176 * mac.c (create_apple_event_from_event_ref): Likewise.
19177 (create_apple_event_from_drag_ref, cfstring_create_normalized):
19178 Likewise.
19179 * doprnt.c (doprnt1): Likewise.
19180 * frame.c (frame): Likewise.
19181 * keyboard.c (wipe_kboard): Likewise.
19182 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
19183 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
19184 * term.c (tty_default_color_capabilities, maybe_fatal)
19185 (delete_tty): Likewise.
19186 * w16select.c (string): Likewise.
19187 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
19188 * w32bdf.c (w32_free_bdf_font): Likewise.
19189 * w32fns.c (w32_unload_font): Likewise.
19190 * w32font.c (w32font_close): Likewise.
19191 * window.c (size_window): Likewise.
19192 * xselect.c (receive_incremental_selection): Likewise.
19193 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
19194 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
19195 * w32.c (stat): Likewise.
19196
19197 Remove useless if-before-free tests.
19198 * editfns.c (Fset_time_zone_rule): Likewise.
19199 * lread.c (nosuffix): Likewise.
19200 * ralloc.c (get_bloc): Likewise.
19201 * regex.c (reg_free): Likewise.
19202 * xftfont.c (xftfont_open, xftfont_close): Likewise.
19203 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
19204 * xsmfns.c (smc_save_yourself_CB): Likewise.
19205
192062008-06-02 Kenichi Handa <handa@m17n.org>
19207
19208 * font.c (font_find_for_lface): Handle float font size.
19209 (font_open_for_lface): Likewise.
19210
19211 * xfaces.c (x_supports_face_attributes_p): Check face->font before
19212 comparing the properties.
19213
192142008-06-01 Jason Rumney <jasonr@gnu.org>
19215
19216 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
19217 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
19218 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
19219 Don't add empty script list.
19220 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
19221
192222008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
19223
19224 * Makefile.in (dot, dotdot): Remove, update users.
19225 ".." has been used elsewhere in the file for a long time.
19226 (LIBXT_STATIC): Remove conditional based on unused variable.
19227
192282008-06-01 Miles Bader <miles@gnu.org>
19229
19230 * xfaces.c (Vface_remapping_alist): New variable.
19231 (syms_of_xfaces): Initialize it.
19232 (enum named_merge_point_kind): New type.
19233 (struct named_merge_point): Add `named_merge_point_kind' field.
19234 (push_named_merge_point): Make cycle detection respect different
19235 named-merge-point kinds.
19236 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
19237 Remove face-name alias resolution.
19238 (lface_from_face_name): New definition using
19239 `lface_from_face_name_no_resolve'.
19240 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
19241 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
19242 (get_lface_attributes): New definition that layers face-remapping on
19243 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
19244 (lookup_basic_face): New function.
19245 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
19246 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
19247 `get_lface_attributes'.
19248 (face_at_buffer_position): Use `lookup_basic_face' to lookup
19249 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
19250 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
19251
19252 * xdisp.c (init_iterator): Pass base_face_id through
19253 `lookup_basic_face' when we actually use it as a face-id.
19254 (handle_single_display_prop): Use `lookup_basic_face' to lookup
19255 DEFAULT_FACE_ID.
19256
19257 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
19258 lookup the initial face-id.
19259
19260 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
19261
192622008-06-01 Juanma Barranquero <lekktu@gmail.com>
19263
19264 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
19265 (Fremove_text_properties): Fix typos in docstrings.
19266
192672008-05-31 Kenichi Handa <handa@m17n.org>
19268
19269 * font.c (font_list_entities): Fix the car part of data to be
19270 stored in the cache.
19271
19272 * ftfont.c (ftfont_font_format): Don't use strcasestr.
19273
192742008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
19275
19276 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
19277 Add a `test' argument so another predicate than `equal' can be used.
19278 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
19279 (map_char_table): Remove unused vars `c' and `i'.
19280 * lisp.h (Foptimize_char_table): Adjust declaration.
19281 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
19282
192832008-05-30 Kenichi Handa <handa@m17n.org>
19284
19285 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
19286 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
19287 defined.
19288
192892008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
19290
19291 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
19292 (Fmake_variable_frame_local): Disallow mixing buffer-local and
19293 frame-local settings for the same variable.
19294
192952008-05-30 Kenichi Handa <handa@m17n.org>
19296
19297 * fontset.c (Ffont_info): Move to font.c.
19298 (syms_of_fontset): Delete defsubr of Sfont_info.
19299
19300 * font.c (font_style_to_value, font_score): Delete casting of the
19301 args to xstcasecmp.
19302 (register_font_driver): Increment num_font_drivers only when
19303 registering the driver globally.
19304 (Ffont_info): Move from fontset.c. Handle a font object too.
19305 (syms_of_font): Defsubr Sfont_info.
19306
193072008-05-29 Kenichi Handa <handa@m17n.org>
19308
19309 * coding.h (enum define_coding_utf8_arg_index): New enum.
19310 (enum coding_attr_index): Change coding_attr_utf_16_bom to
19311 coding_attr_utf_bom.
19312 (enum utf_bom_type): Rename from utf_16_bom_type.
19313 (struct utf_16_spec): Adjust for the above change.
19314 (struct coding_system): Add utf_8_bom in `spec' union.
19315
19316 * coding.c (CODING_UTF_8_BOM): New macro.
19317 (enum coding_category): Delete coding_category_utf_8, add
19318 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
19319 coding_category_utf_8_sig.
19320 (CATEGORY_MASK_UTF_8): Delete it.
19321 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
19322 (CATEGORY_MASK_UTF_8_SIG): New macros.
19323 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
19324 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
19325 CATEGORY_MASK_UTF_8_SIG.
19326 (CATEGORY_MASK_UTF_8): New macro.
19327 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
19328 (detect_coding_utf_8): Check BOM.
19329 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
19330 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
19331 (encode_coding_utf_16): Likewise.
19332 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
19333 (detect_coding, detect_coding_system): Handle utf-8-auto.
19334 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
19335 (syms_of_coding): Fix setting up of Vcoding_category_table.
19336
193372008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
19338
19339 * process.c (Faccept_process_output): If `millisec' is non-nil,
19340 `seconds' default to 0.
19341 (wait_reading_process_output): Also return non-nil if we read output
19342 from a non-running process.
19343
193442008-05-29 Jason Rumney <jasonr@gnu.org>
19345
19346 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
19347 `raster' specified.
19348 (add_font_entity_to_list): Allow non-opentype truetype fonts back
19349 in the uniscribe backend, but disallow any font that has no
19350 unicode subrange support.
19351
193522008-05-29 Juanma Barranquero <lekktu@gmail.com>
19353
19354 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
19355 Fix typos in docstrings.
19356
193572008-05-29 Kenichi Handa <handa@m17n.org>
19358
19359 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
19360 (Fx_family_fonts): Set frame correctly.
19361
193622008-05-28 Jason Rumney <jasonr@gnu.org>
19363
19364 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
19365
193662008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
19367
19368 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
19369 calling build_annotations.
19370
193712008-05-28 Juanma Barranquero <lekktu@gmail.com>
19372
19373 * coding.c (Fdecode_coding_region, Fencode_coding_region)
19374 (Fencode_coding_string):
19375 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
19376 <latin-extra-code-table>: Fix typos in docstrings.
19377 (syms_of_coding) <coding-system-alist>: Doc fix.
19378 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
19379
193802008-05-28 Kenichi Handa <handa@m17n.org>
19381
19382 * fontset.c (Ffont_info): Don't call font_close_object.
19383
19384 * font.c (font_parse_family_registry): Use Ffont_put to validate
19385 foundry and family.
19386 (font_delete_unmatched): Don't check spacing.
19387 (font_list_entities): Add spacing to the spec to list fonts.
19388
19389 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
19390 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
19391
19392 * coding.c (encode_coding_raw_text): Fix previous change.
19393 (encode_coding_object): When the dst_object is a buffer and is
19394 different from src_object, move gap to PT.
19395
193962008-05-27 Chong Yidong <cyd@stupidchicken.com>
19397
19398 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
19399
194002008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
19401
19402 * coding.c (encode_coding_raw_text): Set coding->produced_char for
19403 all branches. Compute it differently.
19404
19405 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
19406
194072008-05-27 Juanma Barranquero <lekktu@gmail.com>
19408
19409 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
19410 into "else if () ... else ...".
19411
194122008-05-27 Jason Rumney <jasonr@gnu.org>
19413
19414 * w32font.c (w32font_open_internal): Determine if glyph indices
19415 are likely to work here.
19416
194172008-05-27 Chong Yidong <cyd@stupidchicken.com>
19418
19419 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
19420 draw overlap glyphs with appropriate highlighting.
19421
194222008-05-27 Kenichi Handa <handa@m17n.org>
19423
19424 * xfont.c (xfont_open): Fix calculation of font->average_width.
19425
194262008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
19427
19428 * casefiddle.c (casify_object): Try to guess better whether the
19429 argument is a byte or a char.
19430
194312008-05-26 Andreas Schwab <schwab@suse.de>
19432
19433 * xselect.c (x_reply_selection_request): Properly handle format == 32.
19434 Always send multiples of format size.
19435
19436 * xterm.c (x_set_frame_alpha): Fix type mismatch.
19437
194382008-05-26 Jason Rumney <jasonr@gnu.org>
19439
19440 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
19441 (compute_metrics): Don't set failure if we just cleared the cache.
19442 (w32_weight_table): Remove unused variable.
19443 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
19444 backwards compatibility.
19445
194462008-05-25 Kenichi Handa <handa@m17n.org>
19447
19448 * w32term.c (x_draw_glyph_string):
19449 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
19450
19451 * xfaces.c: Delete unused function prototypes.
19452 (xstrlwr, font_frame): Delete them.
19453 (clear_face_cache): Delete unused variable.
19454
19455 * xftfont.c (xftfont_open): Delete unused variable.
19456 If underline_thickness is not 1, adjust underline_position.
19457
19458 * ftxfont.c (ftxfont_open): Delete unused variable.
19459
19460 * fontset.c (face_for_char): Optimize for the case of no charset
19461 property.
19462
19463 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
19464 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
19465 (otf_open, font_otf_capability, generate_otf_features)
19466 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
19467 Comment out by surrounding "#if 0" and "#endif" for the moment.
19468 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
19469 (syms_of_font): Codes for accessing above commented out.
19470
194712008-05-24 Eli Zaretskii <eliz@gnu.org>
19472
19473 * w32proc.c: Include dispextern.h.
19474
19475 * w32.c: Include dispextern.h.
19476
194772008-05-23 Juanma Barranquero <lekktu@gmail.com>
19478
19479 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
19480 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
19481 Fix typos in docstrings.
19482
194832008-05-23 Jason Rumney <jasonr@gnu.org>
19484
19485 * xsmfns.c: Remove includes that are already included by config.h.
19486
194872008-05-23 Kenichi Handa <handa@m17n.org>
19488
19489 * charset.c (Qemacs, charset_emacs): New variables.
19490 (char_charset): Fix for non-Unicode characters.
19491 (syms_of_charset): Define charset_emacs.
19492
19493 * w32term.c (x_draw_glyph_string): Be sure to update
19494 s->underline_thickness and s->underline_position. Be sure to draw
19495 underline within the current line area.
19496
19497 * xterm.c (x_draw_glyph_string): Be sure to update
19498 s->underline_thickness and s->underline_position. Be sure to draw
19499 underline within the current line area.
19500
19501 * fontset.c: Delete unused variables and add casting for char *
19502 throughout the file.
19503 (fontset_font): Try the fallback fonts of the current fontset
19504 before consulting the default fontset.
19505
19506 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
19507
19508 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
19509
195102008-05-22 Jason Rumney <jasonr@gnu.org>
19511
19512 * font.c: Don't include strings.h.
19513
19514 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
19515
19516 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
19517 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
19518 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
19519 to call xstrcasecmp.
19520
19521 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
19522
19523 * fontset.c (fs_query_fontset): Use xstrcasecmp.
19524
19525 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
19526
19527 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
19528
195292008-05-22 Kenichi Handa <handa@m17n.org>
19530
19531 * puresize.h (BASE_PURESIZE): Increase to 1220000.
19532
19533 * font.c (font_prop_validate_style): Adjust for the format
19534 change of font_style_table.
19535
19536 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
19537 two args.
19538
19539 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
19540 two args.
19541
195422008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
19543
19544 * minibuf.c (keys_of_minibuf): Delete.
19545 * lisp.h (keys_of_minibuf): Delete.
19546 * emacs.c (main): Don't call keys_of_minibuf.
19547
195482008-05-22 Kenichi Handa <handa@m17n.org>
19549
19550 * ftfont.c (ftfont_resolve_generic_family): Rename from
19551 ftfont_list_generic_family. Return a single family for each
19552 generic family.
19553 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
19554 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
19555 Call font_add_log.
19556 (ftfont_match): Call font_add_log.
19557
19558 * font.h (Ffont_xlfd_name): EXFUN adjusted.
19559 (FONT_DEBUG): Define it.
19560 (font_add_log): Extern it.
19561 (font_assert): Rename from xassert.
19562
19563 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
19564 (xfont_list_family): Call font_add_log.
19565 (xfont_match): Likewise.
19566 (memq_no_quit): Delete.
19567
19568 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
19569 call of Ffont_xlfd_name.
19570
19571 * xfaces.c (struct table_entry, slant_table, weight_table)
19572 (swidth_table): Move to font.c.
19573
19574 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
19575 xassert are changed to font_assert. Delete many unused variables.
19576 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
19577 New variables.
19578 (struct table_entry): Move from xfaces.c and modified.
19579 (weight_table, slant_table, width_table): Move from xfaces.c and
19580 contents adjusted for the change of struct table_entry.
19581 (font_style_to_value, font_style_symbolic): Adjust for the
19582 format change of font_style_table.
19583 (font_parse_family_registry): Don't overwrite existing foundry and
19584 family of font_spec.
19585 (font_score): Fix calculation of diff for sizes.
19586 (font_sort_entites): Call font_add_log.
19587 (font_delete_unmatched): Return a newly created list.
19588 (font_list_entities): Fix previous change. Call font_add_log.
19589 (font_matching_entity, font_open_entity, font_close_entity):
19590 Call font_add_log.
19591 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
19592 (Finternal_set_font_style_table): Delete.
19593 (BUILD_STYLE_TABLE): New macro.
19594 (build_style_table): New function.
19595 (Vfont_log, font_log_env_checked): New variables.
19596 (font_add_log): New function.
19597 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
19598 Declare Lisp variables "font-weight-table", "font-slant-table",
19599 "font-width-table", and "font-log". Initialize font_style_table.
19600
196012008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
19602
19603 * xterm.c (x_set_frame_alpha): Move declarations before statements.
19604
196052008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 19606 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
19607
19608 * frame.c (Qalpha): Add a new frame parameter `alpha'.
19609 (Vframe_alpha_lower_limit): New variable.
19610 (x_set_alpha): New function.
19611
19612 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
19613
19614 * xfns.c (x-create-frame, Qalpha):
19615 Initialize the frame parameter `alpha'.
19616 * xterm.c (OPAQUE, OPACITY): New.
19617 (x_set_frame_alpha): New function.
19618 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
19619
19620 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
19621 * w32fns.c (w32_frame_parm_handlers): Likewise.
19622
196232008-05-20 Jason Rumney <jasonr@gnu.org>
19624
19625 * w32font.c (add_font_entity_to_list): Don't add non-opentype
19626 truetype fonts to opentype list.
19627
196282008-05-20 Juanma Barranquero <lekktu@gmail.com>
19629
19630 * fontset.c (Ffontset_info): Doc fix.
19631 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
19632 <ignore-relative-composition>: Fix typos in docstrings.
19633
19634 * font.c (syms-of-font) <font-encoding-alist>:
19635 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
19636 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
19637 (Ffont_otf_alternates): Doc fixes.
19638
196392008-05-20 Kenichi Handa <handa@m17n.org>
19640
19641 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
19642 font.h through out the file.
19643 (FONT_DRIVERS): Rename from FONTOBJ.
19644 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
19645 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
19646
19647 * emacs.c (main): Call syms_of_font unconditionally.
19648
19649 * font.h (find_font_encoding): Extern it.
19650
19651 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
19652 fontset.c.
194d44e7 19653 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
19654 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
19655 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
19656 only when HAVE_WINDOW_SYSTEM is defined.
19657 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
19658 when HAVE_WINDOW_SYSTEM is defined.
19659
19660 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
19661 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
19662
19663 * xfaces.c: Include font.h unconditionally.
19664 (merge_face_ref, merge_face_vectors)
19665 (Finternal_set_lisp_face_attribute): Cancel the previous change.
19666
196672008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
19668
19669 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
19670 indirect_variable.
19671 * eval.c (lisp_indirect_variable): New fun.
19672 (Fuser_variable_p): Use it.
19673
196742008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
19675
19676 * lisp.h (indirect_variable):
19677 * data.c (indirect_variable, let_shadows_buffer_binding_p):
19678 Use Lisp_Symbol pointers rather than Lisp_Object.
19679 Adjust callers.
19680 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
19681 To this end, change calling-convention.
19682
19683 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
19684 if some non-hidden buffers are selected by string&pred.
19685
196862008-05-19 Chong Yidong <cyd@stupidchicken.com>
19687
19688 * process.c (wait_reading_process_output): Always check status
19689 when in batch mode.
19690
196912008-05-19 Kenichi Handa <handa@m17n.org>
19692
19693 * font.c (font_list_entities): Fix handling of cache.
19694 (font_matching_entity): Likewise.
19695
19696 * ftfont.c (cs_iso8859_1): Delete.
19697 (ft_face_cache): New variable.
19698 (struct ftfont_info): New member fc_charset_idx.
19699 (ftfont_build_basic_charsets): Delete.
19700 (fc_charset_table): New variable.
19701 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
19702 . FC_CHARSET_IDX) as :font-entity property in the font entity.
19703 Callers changed.
19704 (ftfont_lookup_cache, ftfont_get_charset): New functions.
19705 (ftfont_spec_pattern): New argument fc_charset_idx.
19706 Check registry more rigidly. Change callers.
19707 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
19708 change of :font-entity property of the font.
19709
19710 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
19711 property of the font.
19712
197132008-05-18 Juanma Barranquero <lekktu@gmail.com>
19714
19715 * coding.c (Fcoding_system_p): Rename argument to match docstring.
19716 (Funencodable_char_position, Fcheck_coding_systems_region)
19717 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
19718 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
19719 (Ffind_operation_coding_system, Fset_coding_system_priority)
19720 (Fcoding_system_eol_type): Doc fixes.
19721
197222008-05-17 Glenn Morris <rgm@gnu.org>
19723
19724 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
19725
197262008-05-16 Eli Zaretskii <eliz@gnu.org>
19727
19728 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
19729 and st_gid.
19730
19731 * frame.c (Fdelete_frame): Don't call font_update_drivers if
19732 HAVE_WINDOW_SYSTEM is not defined.
19733
19734 * xfaces.c (merge_face_ref, merge_face_vectors)
19735 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
19736 HAVE_WINDOW_SYSTEM is defined.
19737 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
19738
197392008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
19740
19741 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
19742
197432008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19744
19745 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
19746
197472008-05-15 Kenichi Handa <handa@m17n.org>
19748
19749 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
19750 preference.
19751
197522008-05-15 Glenn Morris <rgm@gnu.org>
19753
19754 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
19755
197562008-05-15 Chong Yidong <cyd@stupidchicken.com>
19757
19758 * fns.c (init_fns): Don't initialize weak_hash_tables here.
19759 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
19760
19761 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
19762
197632008-05-15 Kenichi Handa <handa@m17n.org>
19764
19765 * ftfont.c (ftfont_list): Downcase family name to check generic
19766 families.
19767
19768 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
19769 font-spec for QCfont value.
19770
19771 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
19772 buffer. Check the return value of it.
19773
197742008-05-14 Jason Rumney <jasonr@gnu.org>
19775
19776 * w32term.c (w32_get_glyph_overhangs): Remove.
19777 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
19778
197792008-05-14 Kenichi Handa <handa@m17n.org>
19780
19781 * font.c (font_prop_validate): Make nil a valid value.
19782 (font_clear_cache): Check if the cached vector of entities is nil
19783 or not.
19784
197852008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19786
19787 * emacs.c (main_thread): Conditionalize on
19788 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
19789 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
19790
19791 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
19792 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
19793 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
19794
197952008-05-14 Kenichi Handa <handa@m17n.org>
19796
19797 * coding.c (detect_coding_iso_2022): Ignore a coding category that
19798 has no corresponding coding system.
19799
198002008-05-14 Jason Rumney <jasonr@gnu.org>
19801
19802 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
19803
19804 * w32font.h (w32font_open_internal): Update declaration.
19805
19806 * w32font.c (w32font_open_internal): Change last argument from
19807 w32font_info struct to font object. Fill in font object from
19808 font_entity. Get Outline metrics if possible. Use them to
19809 calculate underline position and thickness. Use xlfd name as name
19810 property. Don't set codepage.
19811 (w32font_open): Pass font_object to w32font_open_internal. Don't
19812 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
19813 (w32font_draw): Use s->font.
19814 (clear_cached_metrics): Don't clear non-existent blocks.
19815
19816 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
19817 font was not found.
19818 (x_draw_glyph_string): Use underline position and thickness from font.
19819
19820 * w32uniscribe.c (uniscribe_open): Pass font_object to
19821 w32font_open_internal.
19822
198232008-05-14 Kenichi Handa <handa@m17n.org>
19824
19825 These changes are to delete all legacy font-handling codes, and
19826 make Emacs use only font-backends.
19827
19828 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
19829 (frame.o, image.o, print.o): Depend on $(FONTSRC).
19830
19831 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
19832
19833 * charset.h (Vcharset_non_preferred_head)
19834 (Vcurrent_iso639_language): Extern them.
19835
19836 * charset.c (Vcharset_non_preferred_head): New variable.
19837 (Vcurrent_iso639_language): New variable.
19838 (syms_of_charset): Declare it as a Lisp variable.
19839 (char_charset): Don't check non preferred charsets. As a last
19840 resort, return charset_unicode.
19841 (Fset_charset_priority): Update Vcharset_non_preferred_head.
19842
19843 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
19844 conditionals. Don't check enable_font_backend. Delete all codes
19845 used only when USE_FONT_BACKEND is not defined.
19846
19847 * dispextern.h (struct glyph_string): Change type of `font' to
19848 `struct font *'.
19849 (struct glyph_string): New member underline_position and
19850 underline_thickness.
19851 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
bba3e508
SM
19852 (struct face): Change type of `font' to `struct font *'.
19853 Remove members `font_name', `font_info_id'.
aac0c6e3
MR
19854 (per_char_metric, encode_char): Delete externs.
19855 (calc_pixel_width_or_height): Adjust the prototype.
19856
19857 * emacs.c (enable_font_backend): Delete extern.
19858 (main): Don't set enable_font_backend. Don't check the command
19859 line argument "-disable-font-backend".
19860
19861 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
19862 (enum font_property_index): New members FONT_DPI_INDEX,
19863 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
19864 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
19865 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
19866 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
19867 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
19868 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
19869 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
19870 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
19871 (struct font_spec, struct font_entity): New structs.
ef1b0ba7 19872 (FONT_ENCODING_NOT_DECIDED): Move from fontset.h.
aac0c6e3
MR
19873 (struct font): Many members from old "struct font_info" moved to
19874 here. Members font and entity deleted.
19875 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
19876 the new font-related objects.
19877 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
19878 (CHECK_FONT_GET_OBJECT): Likewise.
19879 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
ef1b0ba7 19880 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move from font.h.
bba3e508
SM
19881 (struct font_driver): New members case_sensitive anc check.
19882 Type of the member list and open changed.
aac0c6e3
MR
19883 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
19884 (font_symbolic_width, font_find_object, font_get_spec)
19885 (font_set_lface_from_name): Delete extern.
19886 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
19887
19888 * font.c: Include <strings.h>.
19889 (enable_font_backend): Delete it.
19890 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
19891 (CHECK_VALIDATE_FONT_SPEC): Delete it.
ef1b0ba7 19892 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move to font.h.
aac0c6e3
MR
19893 (null_string): Delete it.
19894 (null_vector): Make it static.
19895 (font_family_alist): Delete it.
19896 (Qnormal): Extern it.
19897 (QCextra, QClanguage): Delete it.
19898 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
19899 (font_make_spec, font_make_entity, font_make_object)
ef1b0ba7 19900 (font_intern_prop): Rename from intern_downcase. Don't downcase
aac0c6e3 19901 the string. Callers changed.
bba3e508 19902 (font_pixel_size): Adjust for the format change of font-related
aac0c6e3
MR
19903 objects.
19904 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
19905 (font_style_to_value, font_style_symbolic): New function.
19906 (build_font_family_alist): Delete it.
19907 (font_registry_charsets): Use Fassoc_string instead of
19908 assq_no_quit.
19909 (font_prop_validate_symbol): Don't return null_string.
bba3e508 19910 (font_prop_validate_style): Adjust for the change of
aac0c6e3
MR
19911 style-related values in a font vector.
19912 (font_property_table): Delete entries for QClanguage and
19913 QCantialias, add entries for QCavgwidth.
19914 (get_font_prop_index): Delete the 2nd argument FROM.
19915 (font_prop_validate): Arguments changed.
bba3e508 19916 (font_put_extra): Adjust for the change of font-related objects.
aac0c6e3
MR
19917 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
19918 (font_parse_fcname, font_unparse_fcname)
19919 (font_prepare_composition): Likewise.
ef1b0ba7 19920 (font_parse_family_registry): Rename from font_merge_old_spec.
aac0c6e3 19921 (otf_open): Delete the 1st arg entity.
bba3e508 19922 (font_otf_capability): Adjust for the above change.
aac0c6e3
MR
19923 (font_score): New arg alternate_families. Adjusted for the change
19924 of font-related objects.
19925 (font_sort_entites): New arg best_only.
19926 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
19927 Delete them.
19928 (font_match_p): Check alternate families.
19929 (font_find_object): Delete it.
19930 (font_check_object): New function.
bba3e508 19931 (font_clear_cache): Adjust for the change of font-related objects.
aac0c6e3
MR
19932 (font_delete_unmatched): New arg.
19933 (font_list_entities): Call font_driver->list with a spec that
19934 doesn't specify style-related properties.
19935 (font_matching_entity): Arguments changed. Caller changed.
bba3e508 19936 (font_open_entity): Adjust for the change of font-related objects.
aac0c6e3
MR
19937 (font_close_object, font_has_char, font_encode_char)
19938 (font_get_name, font_get_spec): Likewise.
19939 (font_spec_from_name, font_clear_prop, font_update_lface):
19940 New functions.
19941 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
19942 (font_prepare_for_face, font_done_for_face, font_open_by_name)
bba3e508 19943 (font_at): Adjust for the change of font-related objects.
aac0c6e3
MR
19944 (font_range): New function.
19945 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
bba3e508 19946 (Ffont_xlfd_name): Adjust for the change of font-related objects.
aac0c6e3 19947 (Fcopy_font_spec, Fmerge_font_spec): New function.
ef1b0ba7 19948 (Ffont_family_list): Rename from list-families.
aac0c6e3
MR
19949 (Finternal_set_font_style_table): Arguments changed.
19950 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
bba3e508 19951 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjust for the
aac0c6e3
MR
19952 change of font-related objects.
19953 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
19954
19955 * fontset.h (struct font_info): Delete it. Most members go to
19956 struct font.
ef1b0ba7 19957 (FONT_ENCODING_NOT_DECIDED): Move to font.h.
aac0c6e3
MR
19958 (enum FONT_SPEC_INDEX): Delete it.
19959 (font_info, list_fonts_func, load_font_func, query_font_func)
19960 (set_frame_fontset_func, find_ccl_program_func)
bba3e508
SM
19961 (get_font_repertory_func, new_fontset_from_font_name):
19962 Delete externs.
aac0c6e3
MR
19963 (fontset_from_font_name): Extern it.
19964 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
19965 (FONT_INFO_FROM_FACE): Deleted.
19966 (face_for_font): Adjust prototype.
19967
19968 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
19969 conditionals. Don't check enable_font_backend. Delete all codes
19970 used only when USE_FONT_BACKEND is not defined.
19971 (get_font_info_func, list_font_func, load_font_func)
19972 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
19973 (get_font_repertory_func): Delete them.
19974 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
19975 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
19976 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
19977 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
19978 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
19979 (fontset_compare_rfontdef): New function.
19980 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
19981 rfont-defs by qsort. Adjusted for the change of font-group vector.
19982 (load_font_get_repertory): Deleted.
19983 (fontset_find_font): Use new macros to ref/set elements of
19984 font-def and rfont-def.
19985 (fontset_font): Fix the timing of remembering that no font for C.
19986 (free_face_fontset): Do nothing if the face has no fontset.
19987 (face_suitable_for_char_p): Use new macros to ref/set elements of
19988 rfont-def.
19989 (face_for_char): Likewise. Call face_for_char with font_object.
19990 (fs_load_font): Delete. Delete #pragma surrounding it.
19991 (fs_query_fontset): Use strcasecmp instead of strcmp.
bba3e508 19992 (generate_ascii_font_name): Adjust for the format change of
aac0c6e3
MR
19993 font-spec.
19994 (Fset_fontset_font): Likewise. Use new macros to set elements of
19995 font-def.
19996 (Fnew_fontset): Use font_unparse_xlfd to generate
19997 FONTSET_ASCII (fontset).
19998 (new_fontset_from_font_name): Deleted.
ef1b0ba7 19999 (fontset_from_font): Rename from new_fontset_from_font. Check if
aac0c6e3
MR
20000 a fontset is already created for the font. FIx updating of
20001 Vfontset_alias_alist.
20002 (fontset_ascii_font): Deleted.
bba3e508 20003 (Ffont_info): Adjust for the format change of font-spec.
aac0c6e3
MR
20004 (Finternal_char_font): Likewise.
20005 (Ffontset_info): Likewise.
20006 (syms_of_fontset): Don't check load_font_func.
20007
20008 * fns.c (internal_equal): Handle PREV_FONT.
20009
20010 * frame.h: Delete USE_FONT_BACKEND conditional.
20011
20012 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
20013 conditionals. Don't check enable_font_backend. Delete all codes
20014 used only when USE_FONT_BACKEND is not defined.
20015 (x_set_font): Call x_new_font, not x_new_fontset2.
20016 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
20017 already set for the frame.
20018
bba3e508
SM
20019 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed.
20020 Make a font-entity by font_make_entity. Use font_intern_prop instead
aac0c6e3
MR
20021 of intern_downcase. Use FONT_SET_STYLE to set a style-related
20022 font property. If a font is scalable, set avgwidth property to 0.
20023 Set font-entity property by font_put_extra.
20024 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
bba3e508 20025 (ffont_driver): Adjust for the change of struct font_driver.
aac0c6e3
MR
20026 (ftfont_spec_pattern): New function.
20027 (ftfont_list): Return a list, not vector.
20028 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
20029 (ftfont_list_family): Don't downcase names.
20030 (ftfont_free_entity): Deleted.
20031 (ftfont_open): Return a font-object. Adjusted for the change of
20032 struct font. Get underline_thickness and underline_position from
20033 font property. Don't update dpyinfo->smallest_font_height and
20034 dpyinfo->smallest_char_width.
20035 (ftfont_close): Don't free `struct font'.
bba3e508 20036 (ftfont_has_char): Adjust for the format change of font-entity.
aac0c6e3
MR
20037 (ftfont_encode_char, ftfont_text_extents): Likewise.
20038
20039 * ftxfont.c (ftxfont_list): Return a list, not vector.
20040 (ftxfont_open): Return a font-object. Adjusted for the change of
20041 struct font. Get underline_thickness and underline_position from
20042 font property. Don't update dpyinfo->smallest_font_height and
20043 dpyinfo->smallest_char_width.
20044 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
bba3e508 20045 (ftxfont_draw): Adjust for the change of struct font.
aac0c6e3 20046
bba3e508
SM
20047 * image.c (image_ascent): Don't include "charset.h".
20048 Include "character.h" and "font.h".
aac0c6e3
MR
20049
20050 * lisp.h (enum pvec_type): New member PREV_FONT.
20051 (Fassoc_string): EXFUN it.
20052
20053 * print.c: Include font.h.
20054 (print_object): Handle font-related objects.
20055
20056 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
20057 conditionals. Don't check enable_font_backend. Delete all codes
20058 used only when USE_FONT_BACKEND is not defined.
20059 (handle_auto_composed_prop): Do nothing if it->f is not on a
20060 window system. Check how many following characters can be
20061 displayed by the same font.
20062 (calc_pixel_width_or_height): Type of the 4th arg is changed to
20063 'struct font *'.
20064 (get_char_face_and_encoding): Assign the whole encoding task to
20065 the `encode-char' method of a font driver.
bba3e508 20066 (fill_composite_glyph_string): Adjust for the change of `struct
aac0c6e3
MR
20067 face' and `struct glyph_string'.
20068 (fill_glyph_string): Likewise.
20069 (get_per_char_metric): Arguments changed.
bba3e508 20070 (x_get_glyph_overhangs): Adjust for the change of `struct face'
aac0c6e3
MR
20071 and `struct glyph_string'.
20072 (produce_stretch_glyph, calc_line_height_property)
20073 (x_produce_glyphs): Likewise.
20074
20075 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
20076 conditionals. Don't check enable_font_backend. Delete all codes
bba3e508
SM
20077 used only when USE_FONT_BACKEND is not defined.
20078 Use FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
aac0c6e3
MR
20079 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
20080 (Qp): Extern them.
20081 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
20082 Deleted.
20083 (struct font_name): Deleted.
20084 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
20085 (compare_fonts_by_sort_order): New function.
20086 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
20087 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
20088 Deleted.
20089 (Fx_family_fonts): Use font_list_entities, and sort fonts by
20090 compare_fonts_by_sort_order.
20091 (Fx_font_family_list): Call Ffont_family_list.
20092 (face_numeric_value, face_numeric_weight, face_numeric_slant)
20093 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
20094 (face_symbolic_slant, face_symbolic_swidth)
20095 (split_font_name_into_vector, build_font_name_from_vector)
20096 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
20097 (font_rescale_ratio, split_font_name, build_font_name)
20098 (free_font_names, sort_fonts, x_face_list_fonts)
20099 (face_font_available_p, sorted_font_list, cmp_font_names)
20100 (font_list_1, concat_font_list, font_list, remove_duplicates):
20101 Deleted.
20102 (Fx_list_fonts): Use Ffont_list.
20103 (LFACE_AVGWIDTH): Deleted.
20104 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
20105 by FONTP.
20106 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
20107 (set_lface_from_font_name): Delete it.
ef1b0ba7 20108 (set_lface_from_font): Rename from
aac0c6e3
MR
20109 set_lface_from_font_and_fontset. Caller changed. Don't set
20110 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
20111 for face.
20112 (merge_face_vectors): Copy font-spec if necessary.
20113 Clear properties of the font-spec if necessary.
20114 (merge_face_ref): Clear properties of the font-spec if necessary.
20115 (Finternal_set_lisp_face_attribute): Likewise.
20116 (set_font_frame_param): Use font_load_for_lface to load a
20117 font-object, and call Fmodify_frame_parameters with it.
20118 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
20119 font name by Ffont_xlfd_name.
20120 (Finternal_lisp_face_attribute_values): Don't check QCweight,
20121 QCslant, and QCwidth.
20122 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
20123 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
20124 Compare fonts by EQ.
20125 (lookup_non_ascii_face): Deleted.
20126 (face_for_font): The 2nd argument changed.
20127 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
20128 Check atomic font properties by case insensitive.
20129 (realize_non_ascii_face): Set face->overstrike correctly.
20130 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
20131 (dump_realized_face): Get font name from
20132 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
20133
20134 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
20135 conditionals. Don't check enable_font_backend. Delete all codes
20136 used only when USE_FONT_BACKEND is not defined.
20137 (xic_create_xfontset): Original code deleted and renamed from
20138 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
20139 (x_make_gc): Don't set GCFont in GCs.
20140 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
20141 opened by "fixed".
20142 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
20143 find_ccl_program_func, query_font_func, set_frame_fontset_func,
20144 get_font_repertory_func.
20145
20146 * xfont.c: Include <stdlib.h> and "ccl.h".
20147 (struct xfont_info): New structure.
20148 (xfont_query_font): Deleted.
ef1b0ba7 20149 (xfont_find_ccl_program): Rename from x_find_ccl_program and
aac0c6e3 20150 moved from xterm.c.
bba3e508 20151 (xfont_driver): Adjust for the change of struct font_driver.
aac0c6e3 20152 (compare_font_names): New function.
ef1b0ba7
SM
20153 (xfont_list_pattern): Sort font names case insensitively.
20154 Make font_entity by calling font_make_entity. Avoid auto-scaled fonts.
aac0c6e3
MR
20155 (xfont_list): Return a list, not vector.
20156 (xfont_match): If the font doesn't have QCname property, generate
20157 a name from the other font properties.
20158 (xfont_open): Return a font-object. Adjusted for the change of
20159 struct font. Get underline_thickness and underline_position from
20160 font property. Don't update dpyinfo->smallest_font_height and
20161 dpyinfo->smallest_char_width.
20162 (xfont_close): Don't free struct font.
bba3e508 20163 (xfont_prepare_face): Adjust for the change of struct font.
aac0c6e3 20164 (xfont_done_face): Deleted.
bba3e508 20165 (xfont_has_char): Adjust for the change of struct font.
aac0c6e3
MR
20166 (xfont_encode_char, xfont_draw): Likewise.
20167 (xfont_check): New function.
20168
bba3e508 20169 * xftfont.c (xftfont_list): Adjust for the change of `list'
aac0c6e3 20170 callback function.
bba3e508
SM
20171 (xftfont_match): Adjust for the format change of font-entity.
20172 (xftfont_open): Adjust for the format change of font-entity and
aac0c6e3
MR
20173 font-object. Adjusted for the change of struct font. Return a
20174 font-object. Don't update dpyinfo->smallest_font_height and
20175 dpyinfo->smallest_char_width.
20176 (xftfont_close): Block input while calling XftFontClose.
20177 (xftfont_prepare_face): Don't block input while calling
20178 xftfont_get_colors. Adjusted for the change of struct font.
20179 (xftfont_shape): Return value of error case fixed.
20180
20181 * xrdb.c (x_load_resources): Don't setup a fontset resource.
20182
20183 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
20184 conditionals.
20185 (FONT_WIDTH): Return (f)->max_width.
20186 (struct x_display_info): Delete member `font'.
20187 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
20188 (x_find_ccl_program, x_get_font_repertory): Delete externs.
20189 (struct x_output): Change type of `font' to `struct font *'.
20190
20191 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
20192 conditionals. Don't check enable_font_backend. Delete all codes
20193 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
20194 (x_per_char_metric, x_encode_char): Deleted.
20195 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
bba3e508 20196 (x_compute_glyph_string_overhangs): Adjust for the change of
aac0c6e3
MR
20197 `struct face'.
20198 (x_draw_glyph_string_foreground)
20199 (x_draw_composite_glyph_string_foreground): Likewise.
20200 (x_draw_glyph_string): Likewise. Use font->underline_position and
20201 font->underline_thickness.
ef1b0ba7 20202 (x_new_font): Rename from x_new_fontset2.
aac0c6e3
MR
20203 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
20204 (x_check_font): Call `check' method of a font driver.
20205 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
20206 (x_query_font, x_get_font_repertory): Deleted.
ef1b0ba7 20207 (x_find_ccl_program): Rename and moved to xfont.c.
bba3e508 20208 (x_redisplay_interface): Adjust for the change of `struct
aac0c6e3
MR
20209 redisplay_interface'.
20210
20211 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
20212 conditionals. Don't check enable_font_backend. Delete all codes
20213 used only when USE_FONT_BACKEND is not defined. Surround non-used
20214 code by "#ifdef OLD_FONT" and "endif".
20215 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
20216
20217 * w32font.h (struct w32font_info): New member.
20218 (FONT_COMPAT): New macro.
20219 (w32font_open_internal): Prototype adjusted.
20220
20221 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
20222 OLD_FONT" and "endif".
20223
20224 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
20225 conditionals. Don't check enable_font_backend. Delete all codes
20226 used only when USE_FONT_BACKEND is not defined.
20227 (w32font_open): Return a font-object. Make a font-object by
20228 font_make_object. Adjusted for the change of struct w32font_info.
20229 (w32font_close): Don't free struct font. Adjusted for the change
20230 of struct w32font_info.
20231 (w32font_encode_char, w32font_text_extents, w32font_draw):
ef1b0ba7 20232 Adjust for the change of struct w32font_info.
aac0c6e3
MR
20233 (w32font_draw): Likewise.
20234 (w32font_list_internal): Return a list, not vector.
20235 (w32font_open_internal): Change the 4th arg to font-object.
20236 Adjusted for the change of struct w32font_info and font-object format.
20237 (add_font_name_to_list): Don't downcase names.
20238 (w32_enumfont_pattern_entity): Make a font-entity by
20239 font_make_entity. Adjusted for the format change of font-entity.
20240 Use FONT_SET_STYLE to set a style-related font property. If a
20241 font is scalable, set avgwidth property to 0. Set font-entity
20242 property by font_put_extra.
bba3e508 20243 (font_matches_spec): Adjust for the format change of font-entity.
aac0c6e3
MR
20244 (w32_weight_table, w32_decode_weight): New variables.
20245 (w32_encode_weight): New function.
bba3e508 20246 (fill_in_logfont): Adjust for the format change of font-spec.
aac0c6e3
MR
20247 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
20248 weight value.
bba3e508 20249 (w32font_driver): Adjust for the change of struct font_driver.
aac0c6e3
MR
20250
20251 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
20252 conditionals. Don't check enable_font_backend. Surround non-used
20253 code by "#ifdef OLD_FONT" and "endif".
20254 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
bba3e508 20255 (FONT_AVG_WIDTH): Adjust for the change of struct font.
aac0c6e3
MR
20256
20257 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
20258 conditionals. Don't check enable_font_backend. Delete all codes
20259 used only when USE_FONT_BACKEND is not defined. Surround non-used
20260 code by "#ifdef OLD_FONT" and "endif".
20261
20262 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
20263 (uniscribe_open): Return value changed to font-object.
20264 Adjusted for the format change of font-object.
bba3e508 20265 (uniscribe_otf_capability): Adjust for the change of struct font.
aac0c6e3 20266 (add_opentype_font_name_to_list): Don't downcase names.
bba3e508 20267 (uniscribe_font_driver): Adjust for the change of struct
aac0c6e3
MR
20268 font_driver.
20269
202702008-05-13 Chong Yidong <cyd@stupidchicken.com>
20271
20272 * dispnew.c (update_frame_1): Check if tty output is still valid
20273 before flushing it.
20274
202752008-05-13 Jan Djärv <jan.h.d@swipnet.se>
20276
20277 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
20278 to Gtk+ menus.
20279
202802008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
20281
20282 * dired.c (file_name_completion): Tweak the code so as to always do it
20283 in a single pass. Tighten the scope of some variables.
20284
20285 * dired.c (Qdefault_directory): New var.
20286 (file_name_completion): Use it instead of Fexpand_file_name.
20287 (syms_of_dired): Initialize it.
20288
202892008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
20290
20291 * fileio.c (double_dollars): Remove dead code.
20292
202932008-05-10 Eli Zaretskii <eliz@gnu.org>
20294
20295 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
20296 Mention w32-get-true-file-attributes in doc string.
20297
20298 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
20299
203002008-05-09 Glenn Morris <rgm@gnu.org>
20301
20302 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
20303 2008-04-23.
20304
203052008-05-09 Eli Zaretskii <eliz@gnu.org>
20306
20307 Support for reporting owner and group of each file on MS-Windows:
20308 * dired.c (stat_uname, stat_gname): New functions, with special
20309 implementation for w32.
20310 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
20311
20312 * w32.c: Rename the_passwd_* to dflt_passwd_*.
20313 (dflt_group_name): New static variable.
20314 (dflt_group): Rename from the_group.
20315 (init_user_info): Init dflt_group fields. Get user's group name
20316 from LookupAccountSid.
20317 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
20318 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
20319 New initialization states.
20320 (globals_of_w32): Initialize them to zero. Initialize the default
20321 group name to "None".
20322 (GetFileSecurity_Name): New global var, the name of the function
20323 to call for GetFileSecurity.
20324 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
20325 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
20326 (get_file_security, get_security_descriptor_owner)
20327 (get_security_descriptor_group, is_valid_sid)
20328 (get_file_security_desc, get_rid, get_name_and_id)
20329 (get_file_owner_and_group): New functions.
20330 (stat): Use get_file_security_desc and get_file_owner_and_group to
20331 report the owner and primary group of each file. Don't ignore the
20332 high 32 bits of file's size, now that st_size is 64-bit wide.
20333 Fix test when to get true file attributes.
20334 (init_user_info): Use get_rid instead of equivalent inline code.
20335 (fstat): Don't ignore the high 32 bits of file's size.
20336
203372008-05-09 Chong Yidong <cyd@stupidchicken.com>
20338
20339 * image.c (png_load): Use correct bit-depth for setting background
20340 color.
20341
203422008-05-08 Eli Zaretskii <eliz@gnu.org>
20343
20344 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
20345 epa-hook.elc.
20346
203472008-05-08 Juanma Barranquero <lekktu@gmail.com>
20348
20349 * font.c (Ffont_match_p): Don't use `iff' in docstring.
20350
203512008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
20352
20353 * macfns.c (Fx_create_frame): Make a copy of frame parameters
20354 because the original parameters are in pure storage now.
20355 (mac_window): Remove unused params. Update callers.
20356
203572008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
20358
20359 * lread.c (substitute_object_recurse): Use lower-level primitives.
20360 Don't signal errors when traversing sub-char-tables.
20361 Don't loop over all the possible characters when traversing char-tables.
20362
20363 * print.c (print_preprocess): Add sub-char-tables to the print-table,
20364 just like we do in print.c.
20365
203662008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
20367
20368 * minibuf.c (Ftry_completion): Remove code left over from when we used
20369 scmp instead of Fcompare_strings.
20370
203712008-05-04 Juanma Barranquero <lekktu@gmail.com>
20372
20373 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
20374
203752008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20376
20377 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
20378 Create bitmap context in native byte order.
20379
20380 * macterm.c (XDrawLine)
20381 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
20382 context in native byte order.
20383
203842008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20385
20386 * config.in: Regenerate.
20387
20388 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
20389 New definitions for Image I/O support.
20390 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
20391 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
20392 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
20393 (mac_data_provider_release_data, image_load_image_io)
20394 [USE_MAC_IMAGE_IO]: New functions.
20395 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
20396 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
20397 (init_image_func_pointer) [MAC_OSX]: Remove function.
20398 (image_load_quartz2d) [MAC_OSX]: Check availability of
20399 CGImageCreateWithPNGDataProvider at compile time.
20400 Use lowercase `false' for boolean constant.
20401 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
20402 Use image_load_image_io.
20403 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
20404 Don't check MyCGImageCreateWithPNGDataProvider.
20405 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
20406 Don't call init_image_func_pointer.
20407
20408 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
20409
20410 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
20411 Make variable non-static.
20412 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
20413 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
20414
20415 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
20416 (RED_FROM_ULONG): Mask off higher bits.
20417 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
20418
20419 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
20420 Include AvailabilityMacros.h.
20421 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
20422 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
20423
204242008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
20425
20426 * chartab.c (Fset_char_table_range): If range is t, really set all
20427 chars to that value.
20428
204292008-05-03 Eli Zaretskii <eliz@gnu.org>
20430
20431 * dired.c (Ffile_attributes): Don't allow the device number become
20432 negative.
20433
204342008-05-02 Daiki Ueno <ueno@unixuser.org>
20435
20436 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
20437
204382008-05-02 Juri Linkov <juri@jurta.org>
20439
20440 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
20441 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
20442 DEFAULT argument as a list of default values in docstrings.
20443
204442008-05-01 Chong Yidong <cyd@stupidchicken.com>
20445
20446 * puresize.h (BASE_PURESIZE): Increase to 1210000.
20447
204482008-05-01 Martin Rudalics <rudalics@gmx.at>
20449
20450 * dispnew.c (change_frame_size_1): Preserve small windows when
20451 shrinking frames by calling set_window_height|width with third
20452 arg 2.
20453
20454 * window.h (struct window): Replace field too_small_ok by field
20455 resize_proportionally.
20456
20457 * window.c (make_window): Initialize resize_proportionally.
20458 (enlarge_window): Temporarily set resize_proportionally to make
20459 sure that shrink_windows does scale the window proportionally.
20460 (shrink_windows): When window has resize_proportionally set try
20461 to shrink it proportionally by stealing from other windows.
20462 (struct saved_window, Fset_window_configuration)
20463 (compare_window_configurations): Handle resize_proportionally.
20464 (WINDOW_TOTAL_SIZE): New macro.
20465 (window_min_size, shrink_windows, size_window): Use it.
20466 (check_min_window_sizes): Remove. Invalid values of
20467 window-min-height|width are handled by window_min_size_2 now.
20468 (size_window, Fsplit_window, enlarge_window)
20469 (adjust_window_trailing_edge, grow_mini_window): Don't call
20470 check_min_window_sizes.
20471 (window_min_size_2, window_min_size_1, window_min_size):
20472 New argument safe_p for retrieving "safe" minimum sizes.
20473 (Fdisplay_buffer, Fsplit_window, enlarge_window)
20474 (adjust_window_trailing_edge, grow_mini_window):
20475 Adjust arguments of window_min_size... functions.
20476 (shrink_windows): Argument min_size removed. New argument
20477 safe_p allows shrinking windows to their safe minimum sizes.
20478 Calculate minimum size and decide whether a window shall be
20479 deleted for each window individually.
20480 (size_window): When nodelete_p equals 2, tell shrink_windows to
20481 delete windows only if their new minimum size is no more safe.
20482 (shrink_window_lowest_first): Call window_min_size_1 to make
20483 sure to preserve modeline of bottom-most window when resizing
20484 the minibuffer.
20485 (Fset_window_configuration, Fcurrent_window_configuration)
20486 (compare_window_configurations): Do not handle
20487 window-min-height|width any more.
20488 (syms_of_window): Clarify window-min-height|width doc-strings.
20489
204902008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
20491
20492 * dired.c (file_name_completion): Fix up the encoding/decoding issue
20493 some more. Copy some of the code from Ftry_completions.
20494 Remove special case code that dates back to initial revision when the
20495 slash was only added when necessary and that can't trigger nowadays.
20496
204972008-04-27 Kenichi Handa <handa@m17n.org>
20498
20499 * font.c (font_prop_validate): Signal `error' instead of `font'.
20500
205012008-04-29 Jason Rumney <jasonr@gnu.org>
20502
20503 * w32fns.c (Fw32_battery_status): New defun.
20504 (syms_of_w32fns): Defsubr it.
20505
205062008-04-28 Andreas Schwab <schwab@suse.de>
20507
20508 * dired.c (file_name_completion): Fix another mixing of encoded
20509 and decoded names.
20510
205112008-04-28 Juanma Barranquero <lekktu@gmail.com>
20512
20513 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
20514
205152008-04-27 Juanma Barranquero <lekktu@gmail.com>
20516
20517 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
20518
205192008-04-27 Andreas Schwab <schwab@suse.de>
20520
20521 * dired.c (file_name_completion): Fix inappropriate mixing of
20522 encoded and decoded names.
20523
20524 * xterm.c (XTread_socket): Fix use of uninitialized variable.
20525
20526 * puresize.h (BASE_PURESIZE): Increase to 1200000.
20527
205282008-04-26 Eli Zaretskii <eliz@gnu.org>
20529
20530 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
20531 2008-03-31, it's not needed anymore with `struct stat' definition
20532 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
20533 for the same reasons.
20534
205352008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
20536
20537 * m/sparc.h: Additional redefinitions for GNU/Linux.
20538
205392008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20540
20541 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
20542 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
20543 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
20544 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
20545 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
20546 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
20547 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20548 Likewise.
20549
20550 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
20551 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
20552 (mac_ax_number_of_characters): Add externs.
20553 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
20554 [USE_MAC_TSM]: Likewise.
20555 (mac_handle_text_input_event) [MAC_OSX]:
20556 Handle kEventTextInputOffsetToPos for no active input area case.
20557 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
20558 (mac_handle_document_access_event)
20559 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
20560 (install_application_handler) [MAC_OSX]: Register handlers for
20561 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
20562 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20563 Register mac_handle_document_access_event.
20564
20565 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
20566 Make functions non-static.
20567
205682008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
20569
20570 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
20571 (read_file_name_completion_ignore_case, insert_default_directory)
20572 (Qdefault_directory): Move to minibuffer.el.
20573 (Fread_file_name): Call the new `read-file-name' instead.
20574
205752008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20576
20577 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
20578 Make function non-static.
20579 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
20580 Remove function.
20581 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
20582 Move to mactoolbox.c.
20583 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
20584
20585 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
20586 (mac_rect_make): New macro.
20587
20588 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
20589 instead of float.
20590 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
20591 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
20592 (XSetBackground) [USE_CG_DRAWING]: Likewise.
20593 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
20594 CGRectMake.
20595 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
20596 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
20597 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
20598 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
20599 instead of WindowRef in argument type.
20600 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
20601 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
20602 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
20603 instead of DISPLAY. All uses changed.
20604 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
20605 (x_calc_absolute_position): Simplify so as not to use
20606 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
20607
20608 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
20609 instead of WindowRef in argument type.
20610 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
20611 [TARGET_API_MAC_CARBON]: Remove externs.
20612 (create_apple_event, mac_event_parameters_to_lisp)
20613 [TARGET_API_MAC_CARBON]: Add externs.
20614
20615 * mactoolbox.c (Vmac_ts_script_language_on_focus)
20616 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
20617 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
20618 is clicked.
20619 (x_activate_menubar): Remove extern for saved_menu_event_location.
20620 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
20621 Move from mac.c.
20622
206232008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20624
20625 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
20626 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
20627
206282008-04-23 Jason Rumney <jasonr@gnu.org>
20629
20630 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
20631 attributes only for local files.
20632
20633 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
20634 default to Qlocal.
20635
206362008-04-22 Juri Linkov <juri@jurta.org>
20637
20638 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
20639 read-buffer-to-switch instead of using the letter "B".
20640
206412008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
20642
20643 * fileio.c (Qdefault_directory): New variable.
20644 (Fread_file_name): Use it to pass `dir' to the completion functions.
20645
206462008-04-20 Chong Yidong <cyd@stupidchicken.com>
20647
20648 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
20649
206502008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
20651
20652 * keyboard.c (Vpre_help_message): Remove.
20653 (show_help_echo): Remove default C code.
20654
20655 * dired.c (directory_files_internal, file_name_completion):
20656 Only call ENCODE_FILE if the string is indeed decoded.
20657
206582008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
20659
20660 * Makefile.in (TOOLKIT_DEFINES): Remove.
20661 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
20662
206632008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20664
20665 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
20666 (mactoolbox.o): New target.
20667
20668 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
20669 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
20670
20671 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
20672 Use mac_set_frame_window_background instead of XSetWindowBackground.
20673 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
20674 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
20675 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
20676 instead of SetWindowTitleWithCFString.
20677 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
20678 Move function to mactoolbox.c.
20679 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
20680 Use mac_set_window_modified instead of SetWindowModified.
20681 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
20682 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
20683 (Fx_focus_frame): Use mac_front_non_floating_window instead of
20684 FrontNonFloatingWindow. Use mac_activate_window instead of
20685 ActivateWindow. Use mac_active_non_floating_window instead of
20686 ActiveNonFloatingWindow.
20687 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
20688 Use mac_show_hourglass and mac_hide_hourglass.
20689 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
20690 instead of GetGlobalMouse.
20691 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
20692 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
20693 Use mac_bring_window_to_front instead of BringToFront.
20694 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
20695 mactoolbox.c.
20696 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
20697 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
20698 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
20699 mactoolbox.c.
20700
20701 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
20702 (XtPointer): Move typedef from macmenu.c.
20703 (enum button_type): Move enum from macmenu.c.
20704 (widget_value): Move typedef from macmenu.c.
20705 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
20706 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
20707 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
20708 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
20709 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
20710 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
20711 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
20712 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
20713 (Selection): Move typedef from macselect.c.
20714 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
20715 macterm.c.
20716 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
20717 (mac_is_window_collapsed, mac_bring_window_to_front)
20718 (mac_send_window_behind, mac_hide_window, mac_show_window)
20719 (mac_collapse_window, mac_front_non_floating_window)
20720 (mac_active_non_floating_window, mac_activate_window)
20721 (mac_move_window_structure, mac_move_window, mac_size_window)
20722 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
20723
20724 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
20725 (enum mac_menu_kind): Move enum to mactoolbox.c.
20726 (min_menu_id): Move variable to mactoolbox.c.
20727 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
20728 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
20729 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
20730 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
20731 [TARGET_API_MAC_CARBON]: Likewise.
20732 (XtPointer): Move typedef to macgui.h.
20733 (enum button_type): Move enum to macgui.h.
20734 (widget_value): Move typedef to macgui.h.
20735 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
20736 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
20737 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
20738 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
20739 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
20740 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
20741 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
20742 (popup_activated_flag): Make variable non-static.
20743 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
20744 (add_menu_item, fill_menu, dispose_menus):
20745 Move functions to mactoolbox.c.
20746 (restore_show_help_function, menu_target_item_handler)
20747 (install_menu_target_item_handler, mac_handle_dialog_event)
20748 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
20749 [TARGET_API_MAC_CARBON]: Likewise.
20750 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
20751 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
20752 (find_and_call_menu_selection, name_is_separator): Make function
20753 non-static.
20754 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
20755 to mactoolbox.c.
20756 (set_frame_menubar): Don't call install_menu_quit_handler.
20757 (menu_item_selection): New variable.
20758 (mac_menu_show): Use create_and_show_popup_menu.
20759 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
20760 selection but set variable menu_item_selection. All uses changed.
20761 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
20762 Call install_menu_quit_handler. Move to mactoolbox.c.
20763
20764 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
20765 (Selection): Move typedef to macgui.h.
20766 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
20767 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
20768 Make variables non-static.
20769 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
20770 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
20771 Make functions non-static.
20772 (Vmac_service_selection) [MAC_OSX]: Likewise.
20773 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
20774 (mac_valid_selection_target_p, mac_clear_selection)
20775 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
20776 (mac_put_selection_value, mac_selection_has_target_p)
20777 (mac_get_selection_value, mac_get_selection_target_list)
20778 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
20779 Move functions to mactoolbox.c.
20780 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
20781 Likewise.
20782 (copy_scrap_flavor_data, mac_handle_service_event)
20783 (install_service_handler) [MAC_OSX]: Likewise.
20784 (syms_of_macselect) <Vmac_dnd_known_types>:
20785 Use mac_dnd_default_known_types.
20786
20787 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
20788 Move to mactoolbox.c.
20789 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
20790 (Fx_selection_owner_p): Add EXFUN.
20791 (install_window_handler, remove_window_handler, XSetWindowBackground):
20792 Remove externs.
20793 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
20794 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
20795 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
20796 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
20797 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
20798 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
20799 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
20800 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
20801 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
20802 (create_and_show_popup_menu, mac_get_selection_from_symbol)
20803 (mac_valid_selection_target_p, mac_clear_selection)
20804 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
20805 (mac_put_selection_value, mac_selection_has_target_p)
20806 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
20807 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
20808 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
20809 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
20810 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
20811 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
20812 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
20813 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
20814 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
20815
20816 * mactoolbox.c: New file.
20817
208182008-04-18 Jason Rumney <jasonr@gnu.org>
20819
20820 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
20821
208222008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
20823
20824 * character.c (Fmultibyte_char_to_unibyte):
20825 Return latin1 chars unchanged.
20826
20827 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
20828 relocated if it points to `name'.
20829
208302008-04-17 Kenichi Handa <handa@m17n.org>
20831
20832 * data.c (Faset): Allow setting a multibyte character in an
20833 ASCII-only unibyte string.
20834
20835 * lisp.h (STRING_SET_MULTIBYTE): New macro.
20836
208372008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
20838
20839 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
20840 done in config.h.
20841
208422008-04-16 Juanma Barranquero <lekktu@gmail.com>
20843
20844 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
20845 (Fchar_direction): Add usage in the docstring.
20846
208472008-04-15 Chong Yidong <cyd@stupidchicken.com>
20848
20849 * keyboard.c (read_key_sequence): Remove always-true checks.
20850
208512008-04-14 Jason Rumney <jasonr@gnu.org>
20852
20853 * w32font.c (w32font_open_internal): Set max_bounds.descent in
20854 compatibility struct, for better underline positioning.
20855
208562008-04-13 David Hansen <david.hansen@gmx.net>
20857
20858 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
20859 string.
20860
208612008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
20862
20863 * m/hp800.h (XUINT, XSET): Remove.
20864
208652008-04-12 Juanma Barranquero <lekktu@gmail.com>
20866
20867 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
20868 previous change.
20869
208702008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
20871
20872 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
20873 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
20874
208752008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
20876
20877 * keymap.h (map_keymap_canonical): Declare.
20878 * xmenu.c (single_keymap_panes): Use it.
20879
208802008-04-11 Glenn Morris <rgm@gnu.org>
20881
20882 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
20883 set the target's value to that of the alias.
20884
208852008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
20886
20887 * term.c (set_tty_color_mode): Left over typo.
20888
208892008-04-10 Michael Albinus <michael.albinus@gmx.de>
20890
20891 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
20892 only after check for file name handler functions. Signal, when
20893 native functionality is not supported.
20894 (syms_of_fileio): Declare it unconditionally.
20895
208962008-04-10 Jason Rumney <jasonr@gnu.org>
20897
20898 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
20899 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
20900
20901 * w32.c (logon_network_drive): Also logon to remote drives that
20902 are mapped to drive letters.
20903
209042008-04-10 Glenn Morris <rgm@gnu.org>
20905
20906 * xdisp.c (truncate-partial-width-windows): Doc fix.
20907
209082008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
20909
20910 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
20911 Move functions to minibuffer.el.
20912 (syms_of_fileio): Don't declare them.
20913
209142008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
20915
20916 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
20917 (syms_of_minibuf): Remove its initialization.
20918
20919 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
20920
209212008-04-09 Juanma Barranquero <lekktu@gmail.com>
20922
20923 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
20924
209252008-04-09 Jason Rumney <jasonr@gnu.org>
20926
20927 * makefile.w32-in (distclean): Delete makefile too.
20928 (maintainer-clean): New target.
20929
20930 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
20931
20932 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
20933 for new font backend and composite cases.
20934
209352008-04-09 Jan Djärv <jan.h.d@swipnet.se>
20936
20937 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
20938 Most of the code moved to run_timers.
20939 (do_pending_atimers): Call run_timers.
20940 (run_timers): New function.
20941
20942 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
20943 run atimers.
20944
20945 * process.c (wait_reading_process_output): The same as above.
20946
209472008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
20948
20949 * minibuf.c (last_exact_completion): Remove variable.
20950 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
20951 (complete_and_exit_1, complete_and_exit_2)
20952 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
20953 (Fdisplay_completion_list, display_completion_list_1)
20954 (Fminibuffer_completion_help, Fself_insert_and_exit)
20955 (Fexit_minibuffer, Fminibuffer_message): Move functions to
20956 minibuffer.el.
20957 (syms_of_minibuf): Remove corresponding initializations.
20958
20959 * keyboard.c (Qdeactivate_mark): New var.
20960 (command_loop_1): Use it to call `deactivate-mark'.
20961 (syms_of_keyboard): Initialize it.
20962
20963 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
20964 to another frame.
20965 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
20966 Don't call set_tty_color_mode.
20967 (store_frame_param): Reset previous_frame rather than call
20968 set_tty_color_mode.
20969 * term.c (set_tty_color_mode): Rewrite.
20970 * dispextern.h (set_tty_color_mode): New type.
20971 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
20972
209732008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
20974
20975 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
20976 for generic chars, which do not exist any more in emacs-unicode.
20977
209782008-04-08 Michael Albinus <michael.albinus@gmx.de>
20979
20980 * coding.c (detect_coding_emacs_mule)
20981 (Ffind_operation_coding_system): Fix typo.
20982
209832008-04-08 Jason Rumney <jasonr@gnu.org>
20984
20985 * w32uniscribe.c (SNAME): Extract only symbol name.
20986
20987 * w32font.h (struct w32_metric_cache): New struct.
20988 (w32font_info): Use it.
20989 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
20990 (CACHE_BLOCKSIZE): New constants.
20991
20992 * w32font.c (Qja, Qko, Qzh): New symbols.
20993 (syms_of_w32font): Initialise them.
20994 (font_matches_spec): Use them to filter by language.
20995 (recompute_cached_metrics): Remove function.
20996 (compute_metrics, clear_cached_metrics): New functions.
20997 (w32font_encode_char): Use them to manage metric cache.
20998 (w32font_text_extents): Cache metrics for all glyphs on demand.
20999 Delay converting glyph indices to WORD until needed.
21000 (w32font_open_internal): Initialize metric cache to empty.
21001 (registry_to_w32_charset): Charset should always be a symbol.
21002 (fill_in_logfont, list_all_matching_fonts): Family should
21003 always be a symbol.
21004
210052008-04-06 Jason Rumney <jasonr@gnu.org>
21006
21007 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
21008 Give up if glyph indices not supported. Use uniscribe obtained
21009 ABC widths for individual metrics. Map glyph clusters back to
21010 characters using fClusterStart flag. Return number of glyphs
21011 produced, not chars processed.
21012 (uniscribe_shape): Map char at FROM to current glyph.
21013
210142008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21015
21016 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
21017 Use SetMenuItemHierarchicalMenu.
21018
210192008-04-05 Jason Rumney <jasonr@gnu.org>
21020
21021 * image.c (pbm_load): Allow color values up to 65535.
21022 Throw an error if max_color_idx is outside the supported range.
21023 Report an error when image size is invalid.
21024 Read two bytes at a time when raw images have max_color_idx above 255.
21025
aac0c6e3
MR
210262008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
21027
21028 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
21029 append "CCL: Quitted" when the CCL program is quitted.
21030 (setup_ccl_program): Initialize ccl->quit_silently to zero.
21031
21032 * ccl.h (struct ccl_program): New member quit_silently.
21033
210342008-04-05 Chong Yidong <cyd@stupidchicken.com>
21035
21036 * search.c (compile_pattern_1): Treat non-nil and non-string of
21037 search-spaces-regexp as nil.
21038
21039 * minibuf.c (Fassoc_string): Tweak docstring.
21040
210412008-04-05 Eli Zaretskii <eliz@gnu.org>
21042
21043 * dired.c (Ffile_attributes): Support inode numbers wider than 32
21044 bits. Remove ugly WINDOWSNT-specific kludge introduced on
21045 2008-03-14 to force inode be positive.
21046
21047 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
21048 _S_* ones, since we now use our own sys/stat.h.
21049 (stat, fstat): Don't mangle the inode number.
21050 (init_user_info): Don't restrict UID and GID to 0-60000 range.
21051
210522008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
21053
21054 * frame.h (struct frame): Give one more bit to `visible' since we use
21055 values larger than 1 to indicate obscured frames on ttys.
21056
21057 * keymap.c (Qkeymap_canonicalize): New var.
21058 (Fmap_keymap_internal): New fun.
21059 (describe_map): Use keymap-canonicalize.
21060
21061 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
21062 (Fundo_boundary): Set them.
21063 (syms_of_undo): Initialize them.
21064 (record_point): Use them instead of last_point_position*.
21065 (last_undo_buffer): Change type.
21066
210672008-04-04 Jason Rumney <jasonr@gnu.org>
21068
21069 * w32font.c (w32font_text_extents): Use font's ascent and descent.
21070 (recompute_cached_metrics): Don't set ascent and descent per char.
21071
21072 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
21073 (uniscribe_check_otf): Add GC protection before consing.
21074 Rearrange loop for counting features.
21075
210762008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
21077
21078 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
21079 buffer with byte-size of source buffer.
21080
210812008-04-03 Chong Yidong <cyd@stupidchicken.com>
21082
21083 * callint.c (Fcall_interactively): Handle temporary region even
21084 when shift-select-mode is off.
21085
210862008-04-03 Jason Rumney <jasonr@gnu.org>
21087
21088 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
21089
210902008-04-03 Kenichi Handa <handa@m17n.org>
21091
21092 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
21093 (CATEGORY_MASK_UTF_16): Likewise.
21094 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
21095 binary file.
21096 (detect_coding): Add null-byte detection for a binary file.
21097 (detect_coding_system): Likewise.
21098
210992008-04-03 Jason Rumney <jasonr@gnu.org>
21100
21101 * w32uniscribe.c: New file.
21102
21103 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
21104
21105 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
21106
21107 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
21108 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
21109 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
21110 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
21111 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
21112 (Qphonetic): New symbols.
21113 (syms_of_w32font): Initialize them.
21114 (font_supported_scripts): Use them.
21115 (w32font_list_family): List all charsets.
21116 (w32font_text_extents, recompute_cached_metrics): Fix metric
21117 calculations.
21118 (w32_enumfont_pattern_entity): Make full_type a DWORD.
21119 Give opentype fonts their own format.
21120 (font_matches_spec): New arguments backend and logfont.
21121 Handle :otf spec for uniscribe backend.
21122 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
21123 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
21124
21125 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
21126 font backend.
21127 (globals_of_w32fns): Initialize uniscribe font backend.
21128
21129 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
21130 dependencies.
21131 (w32uniscribe.$(O)): New file to build.
21132 (FONT_OBJ): Include w32uniscribe.$(O).
21133 (LIBS): Add uniscribe libraries.
21134
21135 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
21136
211372008-04-02 Chong Yidong <cyd@stupidchicken.com>
21138
21139 * callint.c (Vshift_select_mode): New var.
21140 (Finteractive): Document new ^ spec.
21141 (Fcall_interactively): Call handle-shift-selection if the ^ spec
21142 is present.
21143
21144 * keyboard.c (Vthis_command_keys_shift_translated): New var.
21145 (command_loop_1): Avoid running the direct display versions of
21146 forward-char and backward-char if shift-selection may occur.
21147 (read_key_sequence): Set Vthis_command_keys_shift_translated if
21148 shift-translation takes place.
21149
21150 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
21151 avoid clobbering by define-minor-mode.
21152
21153 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
21154 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
21155
21156 * syntax.c (Fforward_word): Add ^ interactive spec.
21157
21158 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
21159 (Fscroll_right): Add ^ interactive spec.
21160
211612008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
21162
21163 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
21164
21165 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
21166
21167 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
21168
211692008-03-31 Juri Linkov <juri@jurta.org>
21170
21171 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
21172
211732008-03-30 Jan Djärv <jan.h.d@swipnet.se>
21174
21175 * gtkutil.c (xg_set_geometry): Fix indentation.
21176 (xg_resize_outer_widget): Remove.
21177 (x_wm_size_hint_off): Fix indentation.
21178 (xg_frame_set_char_size): Call flush_and_sync after
21179 gtk_window_resize.
21180 (x_wm_set_size_hint): Pass NULL as geometry window to
21181 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
21182 Add menu bar and tool bar height to base height.
21183 (xg_update_frame_menubar, free_frame_menubar)
21184 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
21185 (update_frame_tool_bar, free_frame_tool_bar):
21186 Change xg_resize_outer_widget to xg_frame_set_char_size.
21187
211882008-03-30 Michael Albinus <michael.albinus@gmx.de>
21189
21190 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
21191 (Fdbus_call_method): New parameter TIMEOUT.
21192 (dbus-send-signal): Optimize UNGCPRO call.
21193
211942008-03-29 Juri Linkov <juri@jurta.org>
21195
21196 * window.c (Fdisplay_buffer): Move call to
21197 Vsplit_window_preferred_function out of conditions that check
21198 if window is eligible for vertical splitting.
21199 When Vsplit_window_preferred_function is non-nil, call it and use
21200 its non-nil return value as window. Otherwise, continue doing
21201 vertical splitting using Fsplit_window with arg horflag=nil.
21202 (syms_of_window) <Vsplit_window_preferred_function>: Change the
21203 default value from `split-window' to nil.
21204
212052008-03-29 Juri Linkov <juri@jurta.org>
21206
21207 * callint.c (Fcall_interactively): Revert 2008-03-16 change
21208 for interactive code letters 'b' and 'B'.
21209
212102008-03-29 Eli Zaretskii <eliz@gnu.org>
21211
21212 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
21213 multibyte string.
21214
212152008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
21216
21217 * keyboard.c (pending_funcalls): New var.
21218 (timer_check): Run it.
21219 (syms_of_keyboard): Initialize it.
21220 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
21221 (Vdelete_terminal_functions): New vars.
21222 (syms_of_terminal): Initialize them.
21223 (Fdelete_terminal): Run delete-terminal-functions.
21224 * xdisp.c (safe_eval): Rewrite.
21225 (safe_call2): New fun.
21226 * frame.c (Qdelete_frame_functions): New var.
21227 (syms_of_frame): Initialize it.
21228 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
21229 * lisp.h (safe_call2, pending_funcalls): Declare.
21230
212312008-03-28 Andreas Schwab <schwab@suse.de>
21232
21233 * indent.c (Fmove_to_column): Move declaration before statements.
21234
212352008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
21236
21237 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
21238 (struct frame): Use bit fields for boolean vars.
21239
21240 * process.c (server_accept_connection): Simplify naming.
21241 (emacs_get_tty_pgrp): Use SDATA.
21242
21243 * coding.c (decode_coding_object): Fix last change.
21244
212452008-03-27 Jason Rumney <jasonr@gnu.org>
21246
21247 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
21248
212492008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
21250
21251 * charset.c (Fdefine_charset_internal): Change the way of
21252 registering charsets in Vcharset_order_list.
21253 (syms_of_charset): Make the charset `eight-bit' supplementary.
21254
212552008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
21256
21257 * regex.c (EXTEND_BUFFER): Change order of pointer addition
21258 operations, to avoid having the difference between pointers
21259 overflow.
21260
212612008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
21262
21263 * indent.c (check_display_width): New fun.
21264 (scan_for_column): Use it.
21265
21266 * data.c (syms_of_data): Mark most-positive-fixnum and
21267 most-negative-fixnum as constants.
21268
21269 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
21270
21271 * indent.c (scan_for_column): Extract from current_column_1.
21272 Merge with the same code from Fmove_to_column.
21273 (current_column_1, Fmove_to_column): Use it.
21274
212752008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
21276
21277 * keymap.c (map_keymap_internal): New fun.
21278 (map_keymap): Use it.
21279 (Fmap_keymap_internal): New fun.
21280 (Fmap_keymap): Remove left-out test from before make_save_value.
21281
21282 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
21283
21284 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
21285 Use XCAR/XCDR.
21286
21287 * process.h (struct Lisp_Process): Remove filter_multibyte.
21288 * process.c (QCfilter_multibyte): Remove.
21289 (setup_process_coding_systems): Don't use filter_multibyte.
21290 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
21291 (read_process_output): Don't adjust multibyteness to filter_multibyte.
21292 (Fset_process_filter_multibyte): Change the coding-system to
21293 approximate the previous behavior.
21294 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
21295 coding-system.
21296
21297 * coding.c (decode_coding_object): When not decoding into a buffer,
21298 obey the coding system's preference of (uni|multi)byte.
21299
213002008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
21301
21302 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
21303 every char is changed and has a different byte-length.
21304 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
21305 Fix int -> EMACS_INT.
21306
213072008-03-23 David Hansen <david.hansen@gmx.net>
21308
21309 * dbusbind.c (xd_read_message): Remove extra copying of message
21310 strings. Check for NULL `interface' or `member'.
21311
213122008-03-22 Eli Zaretskii <eliz@gnu.org>
21313
21314 * w32.c (readdir): If FindFirstFile/FindNextFile return in
21315 cFileName a file name that includes `?' characters, use the 8+3
21316 alias in cAlternateFileName instead.
21317
213182008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
21319
21320 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
21321
213222008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
21323
21324 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
21325 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
21326 work on current_buffer only instead (that was already the case
21327 for some of the code anyway).
21328 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
21329 (temp_set_point, temp_set_point_both): Use EMACS_INT.
21330 (SET_PT, SET_PT_BOTH): Adjust.
21331 * intervals.h (set_point, temp_set_point, set_point_both)
21332 (temp_set_point_both): Remove redundant declarations.
21333
213342008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
21335
21336 * fileio.c (Finsert_file_contents):
21337 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
21338 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
21339 when buffer != current_buffer anyway.
21340
213412008-03-20 Andreas Schwab <schwab@suse.de>
21342
21343 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
21344 as default.
21345
213462008-03-19 Jason Rumney <jasonr@gnu.org>
21347
21348 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
21349 (syms_of_w32fns): Initialize them.
21350 (HOURGLASS_ID): New constant.
21351 (x_window_to_frame): Don't check hourglass_window.
21352 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
21353 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
21354 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
21355 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
21356 Only change the cursor if hourglass is not active.
21357 (Fx_create_frame): Initialize frame's current_cursor.
21358 (hourglass_atimer): Remove.
21359 (hourglass_started): New function.
21360 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
21361 (show_hourglass): Adapt to w32, changing argument to frame.
21362
21363 * w32term.h (struct w32_output): Remove hourglass_window.
21364 Add current_cursor.
21365
21366 * eval.c (call_debugger, Fsignal):
21367 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
21368 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
21369 (Fexecute_extended_command, cancel_hourglass_unwind):
21370 * minibuf.c (read_minibuf):
21371 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
21372
213732008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
21374
21375 * window.c (run_funs): New fun.
21376 (run_window_configuration_change_hook): Use it to run the buffer-local
21377 and the global part of the hook.
21378
21379 * xdisp.c (format_mode_line_unwind_data): Add window argument.
21380 (unwind_format_mode_line): Restore selected window.
21381 (x_consider_frame_title, Fformat_mode_line): Set selected window.
21382
213832008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
21384
21385 * editfns.c (Fchar_equal): Check they are valid characters.
21386
21387 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
21388
213892008-03-17 Andreas Schwab <schwab@suse.de>
21390
21391 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
21392 against a charset.
21393
21394 * lisp.h (Fbuffer_list): Declare.
21395
213962008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 21397
aac0c6e3
MR
21398 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
21399 handlebox_widget is != 0.
21400
214012008-03-16 Juri Linkov <juri@jurta.org>
21402
21403 * callint.c (Fcall_interactively): For interactive code letters
21404 'b' and 'B' put the buffer list into the list of default "future"
21405 values of the minibuffer.
21406
214072008-03-16 Andreas Schwab <schwab@suse.de>
21408
21409 * keyboard.c (read_key_sequence): Fix downcasing of letters with
21410 modifiers.
21411
21412 * regex.c (re_match_2_internal): Correct matching of a charset
21413 against latin-1 characters.
21414
214152008-03-16 Kenichi Handa <handa@m17n.org>
21416
21417 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
21418 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
21419 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
21420 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
21421 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
21422 CHAR_STRING_ADVANCE.
21423 (produce_chars): Fix for the case that the source and the
21424 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
21425 instead of CHAR_STRING_ADVANCE.
21426 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
21427 STRING_CHAR_ADVANCE.
21428
214292008-03-15 Andreas Schwab <schwab@suse.de>
21430
21431 * regex.c (re_match_2_internal): Correct matching of eight bit
21432 characters in unibyte strings.
21433
214342008-03-15 Martin Rudalics <rudalics@gmx.at>
21435
21436 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
21437 at end of range when it coincides with the end of the buffer.
21438
214392008-03-14 Eli Zaretskii <eliz@gnu.org>
21440
21441 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
21442
21443 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
21444
214452008-03-14 Jason Rumney <jasonr@gnu.org>
21446
21447 * editfns.c (initial_tz): New variable.
21448 (syms_of_editfns): Initialize it.
21449 (Fset_time_zone_rule): Set it when first called.
21450 Use it when TZSTRING is nil.
21451
21452 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
21453 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
21454 (monitor_from_point_fn, get_monitor_info_fn): New globals.
21455 (globals_of_w32fns): Initialize them.
21456 (compute_tip_xy): Use them to position tooltips.
21457
214582008-03-14 Glenn Morris <rgm@gnu.org>
21459
21460 * emacs.c (main): Revert previous change.
21461 (standard_args): Revert -internal-script back to -scriptload,
21462 and remove the long-option form.
21463
214642008-03-13 Glenn Morris <rgm@gnu.org>
21465
21466 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
21467 Remove option -enable-font-backend.
21468
214692008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
21470
21471 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
21472
214732008-03-11 Jan Djärv <jan.h.d@swipnet.se>
21474
21475 * xterm.c (x_connection_closed): For GTK: If this is the last
21476 terminal just exit without closing the display.
21477
214782008-03-11 Jason Rumney <jasonr@gnu.org>
21479
21480 * w32font.c (w32font_full_name): Use floor to round.
21481
f0131492 214822008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
21483
21484 * sound.c (alsa_configure): Declare vol at beginning of block.
21485
21486 * fontset.c (Ffontset_info): Remove extra semicolon.
21487
214882008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
21489
21490 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
21491 size of resulting string.
21492
214932008-03-10 Jason Rumney <jasonr@gnu.org>
21494
21495 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
21496
214972008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21498
21499 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
21500 Don't pretend as if characters with display property haven't been
21501 consumed for string-replacing-string case.
21502
215032008-03-08 Kim F. Storm <storm@cua.dk>
21504
21505 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
21506 (get_next_display_element, next_element_from_string)
21507 (next_element_from_ellipsis, next_element_from_buffer): Use it.
21508
215092008-03-08 Andreas Schwab <schwab@suse.de>
21510
21511 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
21512
215132008-03-06 Jason Rumney <jasonr@gnu.org>
21514
21515 * w32font.c (w32_registry): Take font_type argument. Use ANSI
21516 when charset not specified. Only translate ANSI to unicode when
21517 font_type is truetype.
21518 (w32font_coverage_ok): New function.
21519 (add_font_entity_to_list): Use it to filter unsuitable fonts.
21520
215212008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
21522
21523 * lread.c (Fread_char): Resolve modifiers.
21524 (Fread_char_exclusive): Likewise.
21525
21526 * character.c (char_resolve_modifier_mask): New function.
21527 (char_string): Use char_resolve_modifier_mask.
21528 (Fchar_resolve_modifiers): New function.
21529 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
21530 function.
21531
215322008-03-04 Jason Rumney <jasonr@gnu.org>
21533
21534 * makefile.w32-in: Always include w32font.c in the build.
21535 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
21536
215372008-03-04 Andreas Schwab <schwab@suse.de>
21538
21539 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
21540 (versionclean): Likewise.
21541
215422008-03-04 Juanma Barranquero <lekktu@gmail.com>
21543
21544 * .cvsignore: Add oo.
21545
215462008-03-03 Andreas Schwab <schwab@suse.de>
21547
21548 * coding.c (decode_coding_object): Inhibit gap shrinking while
21549 decoding in place.
21550
215512008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
21552
21553 * w32term.c: Remove unused include "gnu.h".
21554 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
21555
21556 * gnu.h: Rename to ...
21557 * emacs-icon.h: ... this.
21558 * xterm.c: Use emacs-icon.h instead of gnu.h.
21559 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
21560
215612008-03-03 Juanma Barranquero <lekktu@gmail.com>
21562
21563 * w32font.c: Include math.h.
21564
215652008-03-03 Jason Rumney <jasonr@gnu.org>
21566
21567 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
21568 Compute options separately.
21569 (w32font_open_internal): Set glyph_idx before caching metrics.
21570
21571 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
21572 Define if system headers don't.
21573 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
21574 (w32font_encode_char): Don't declare here.
21575
21576 * w32font.c (Quniscribe, QCformat): New symbols.
21577 (syms_of_w32font): Define them.
21578 (w32font_has_char): Indicate uncertainty.
21579 (w32font_encode_char): Encode as glyph point. Make static.
21580 (recompute_cached_metrics): New function.
21581 (w32font_open_internal): Use it. Set font to use glyph points
21582 initially. Set format based on type of font.
21583 (w32font_text_extents, w32font_draw): Optionally use glyph points.
21584 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
21585 on it. Set format based on information available here.
21586 (add_font_entity_to_list): Identify backend based on opentype_only.
21587
215882008-03-02 Andreas Schwab <schwab@suse.de>
21589
21590 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
21591
21592 * coding.c (decode_coding_big5, produce_chars):
21593 Fix typos in last change.
21594
215952008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
21596
21597 * gnu.h: New icon.
21598
215992008-03-02 Kenichi Handa <handa@m17n.org>
21600
21601 * coding.c (decode_coding_utf_8): When eol-type of CODING is
21602 `dos', don't decode '\r' if that is the last in the source.
21603 (decode_coding_utf_16, decode_coding_emacs_mule)
21604 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
21605 (decode_coding_raw_text, decode_coding_charset): Likewise.
21606 (produce_chars): Don't decode EOL here. Use EMACS_INT.
21607
216082008-03-01 Jason Rumney <jasonr@gnu.org>
21609
21610 * w32font.c (w32font_full_name): Report point size for scalable fonts.
21611
216122008-03-01 Kim F. Storm <storm@cua.dk>
21613
21614 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
21615
216162008-03-01 Jason Rumney <jasonr@gnu.org>
21617
21618 * w32font.c (w32font_full_name): New function.
21619 (w32font_open_internal): Use it.
21620
216212008-03-01 Kim F. Storm <storm@cua.dk>
21622
21623 * dispnew.c (line_draw_cost): Fix invalid glyph check.
21624
216252008-03-01 Jason Rumney <jasonr@gnu.org>
21626
21627 * font.c (font_unparse_fcname): Increase len when style is a symbol.
21628
216292008-03-01 Jan Djärv <jan.h.d@swipnet.se>
21630
21631 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
21632 xg_frame_resized when the event is for the edit widget.
21633
ef1b0ba7 21634 * gtkutil.h (xg_frame_resized): Rename from xg_resize_widgets.
aac0c6e3
MR
21635
21636 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
21637 set_char_size.
ef1b0ba7 21638 (xg_frame_resized): Rename from xg_resize_widgets. Remove all
aac0c6e3
MR
21639 operations on widgets here. Just set frame size if needed.
21640 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
21641 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
21642 (x_wm_set_size_hint): Set size hints on the edit widget only, not
21643 the whole frame.
21644 (xg_create_tool_bar): Move attachment of the tool bar to
21645 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
21646 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
21647
216482008-03-01 Jason Rumney <jasonr@gnu.org>
21649
21650 * w32fns.c (w32_msg_pump): Disable debug code.
21651
216522008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21653
21654 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
21655
216562008-02-29 Chong Yidong <cyd@stupidchicken.com>
21657
21658 * xdisp.c (next_overlay_string): Don't set
21659 overlay_strings_at_end_processed_p if we're currently reading from
21660 a display string.
21661
216622008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
21663
21664 * xdisp.c (get_overlay_strings_1): Fix typo.
21665
216662008-02-29 Chong Yidong <cyd@stupidchicken.com>
21667
21668 * xdisp.c (get_overlay_strings_1): Add missing argument type.
21669
216702008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
21671
21672 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
21673
21674 * xdisp.c (display_mode_element): Cancel the previous change.
21675 (decode_mode_spec): Likewise.
21676 (handle_auto_composed_prop): Don't make composition if it->string
21677 is a string.
21678
216792008-02-27 Kim F. Storm <storm@cua.dk>
21680
21681 * lisp.h (GLYPH): Change type from int to struct with separate char
21682 and face_id members.
21683 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
21684 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
21685 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
21686 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
21687 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
21688 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
21689 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
21690 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
21691 handle new Lisp glyph code encoding, either an integer or a cons.
21692
21693 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
21694 (GLYPH_ALIAS): Delete.
21695 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
21696 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
21697 (GLYPH_FROM_CHAR): Replace macro by ...
21698 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
21699
21700 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
21701 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
21702 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
21703 (GLYPH_INVALID_P): New macro.
21704 (spec_glyph_lookup_face): Update prototype.
21705
21706 * dispnew.c (line_draw_cost): Adapt to new glyph type.
21707 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
21708 new glyph code encoding.
21709 (spec_glyph_lookup_face): No return value; update passed glyph instead.
21710 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
21711
21712 * xdisp.c (get_next_display_element, next_element_from_display_vector):
21713 Adapt to new glyph type and new glyph code encoding.
21714
21715 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
21716
21717 * indent.c (current_column, current_column_1, Fmove_to_column)
21718 (compute_motion): Adapt to new glyph code encoding.
21719
21720 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
21721
217222008-02-27 Chong Yidong <cyd@stupidchicken.com>
21723
21724 * process.c (wait_reading_process_output): Check for window
21725 changes caused by timers.
21726 Suggested by Johan Bockgård.
21727
217282008-02-27 Glenn Morris <rgm@gnu.org>
21729
21730 * emacs.c (USAGE1): Add `--disable-font-backend'.
21731
217322008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
21733
21734 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
21735 is made to the buffer.
21736
217372008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
21738
21739 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
21740 (face_at_string_position):
21741 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
21742 (face_at_string_position):
21743 * xdisp.c (display_string, next_overlay_change):
21744 * buffer.h (overlays_at):
21745 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
21746 Update callers.
21747
217482008-02-26 Chong Yidong <cyd@stupidchicken.com>
21749
21750 * editfns.c (Fformat): Doc fix.
21751
217522008-02-26 Juanma Barranquero <lekktu@gmail.com>
21753
21754 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
21755 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
21756 (Ffont_otf_alternates, Fquery_font): Doc fixes.
21757
217582008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
21759
21760 * buffer.c (Fbuffer_swap_text): New function.
21761 (syms_of_buffer): Defsubr it.
21762
217632008-02-25 Chong Yidong <cyd@stupidchicken.com>
21764
21765 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
21766
217672008-02-25 Jason Rumney <jasonr@gnu.org>
21768
21769 * w32font.c (w32font_draw): Draw one character at a time when padding.
21770
217712008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
21772
21773 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
21774 Handle a nil arg. Use run_window_configuration_change_hook.
21775 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
21776 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
21777 Use run_window_configuration_change_hook.
21778
217792008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
21780
21781 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
21782 1-pixel width.
21783
217842008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
21785
21786 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
21787 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
21788 if the glyph in the font is zero pixel with.
21789
21790 * dispextern.h (struct glyph_string): New member padding_p.
21791
21792 * w32font.c (w32font_draw): Pay attention to s->padding_p.
21793
21794 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
21795
21796 * xfont.c (xfont_draw): Pay attention to s->padding_p.
21797
21798 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
21799
21800 * font.c: If the font driver doesn't have `shape' function, return Qnil.
21801
218022008-02-25 Jason Rumney <jasonr@gnu.org>
21803
21804 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
21805
218062008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
21807
21808 Allow fine-grained image-cache flushing.
21809 * dispextern.h (struct image): Add `dependencies' field.
21810 (clear_image_caches): Change arg to Lisp_Object.
21811 * image.c (make_image): Initialize `dependencies' field.
21812 (clear_image_cache): Change arg to allow fine-grained flushing.
21813 Perform the flush even if image-cache-eviction-delay is nil.
21814 (clear_image_caches): Change arg to Lisp_Object.
21815 (Fclear_image_cache): Expand meaning of the argument.
21816 (mark_image): Mark `dependencies' field.
21817 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
21818 (lface_hash): Use XHASH rather than XFASTINT.
21819 (face_at_buffer_position): Fix int -> EMACS_INT position.
21820 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
21821 (select_frame_for_redisplay): Remove code duplication.
21822 (redisplay_internal): Adapt arg to call to clear_image_caches.
21823
218242008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
21825
21826 * s/vms4-0.h:
21827 * s/vms4-2.h:
21828 * s/vms4-4.h:
21829 * s/vms5-5.h: Remove, unused.
21830
21831 * s/irix5-2.h:
21832 * s/irix6-0.h:
21833 * s/riscos5.h:
21834 * s/mach-bsd4-3.h:
21835 * m/mips4.h: Remove files for obsolete systems.
21836
21837 * Makefile.in:
21838 * filelock.c:
21839 * unexmips.c:
21840 * m/hp9000s300.h:
21841 * m/iris4d.h:
21842 * s/aix3-1.h:
21843 * s/hpux.h:
21844 * s/msdos.h:
21845 * s/usg5-0.h:
21846 * s/usg5-2-2.h:
21847 * s/usg5-2.h:
21848 * s/usg5-3.h: Remove references to obsolete variables.
21849
21850 * s/irix5-0.h: Remove, move all the contents ...
21851 * s/irix6-5.h: ... here. Simplify.
21852 * config.in: Regenerate.
21853
218542008-02-24 Jason Rumney <jasonr@gnu.org>
21855
21856 * w32term.c (x_draw_glyph_string_background): Clear the background
21857 manually when cleartype is in use.
21858 (x_draw_glyph_string_foreground): Draw text transparently when
21859 cleartype is in use.
21860
21861 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
21862 a font into it unless we have to.
21863
218642008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
21865
21866 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
21867 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 21868
aac0c6e3
MR
218692008-02-18 Jason Rumney <jasonr@gnu.org>
21870
21871 * w32fns.c (Fw32_shell_execute): Encode parameters.
21872
218732008-02-09 Eli Zaretskii <eliz@gnu.org>
21874
21875 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
21876
218772008-02-05 Juanma Barranquero <lekktu@gmail.com>
21878
21879 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
21880
218812008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
21882
21883 * xterm.c (x_set_offset): Don't change the gravity if
21884 CHANGE_GRAVITY is -1.
21885
218862008-02-23 Chong Yidong <cyd@stupidchicken.com>
21887
21888 * fileio.c (auto_save_error_occurred): New var.
21889 (auto_save_error): Set it.
21890 (Fdo_auto_save): Don't overwrite the error message if an auto-save
21891 error occurred.
21892
218932008-02-23 Eli Zaretskii <eliz@gnu.org>
21894
21895 * w32.c (globals_of_w32): Add initializations for
21896 g_b_init_get_sid_sub_authority and
21897 g_b_init_get_sid_sub_authority_count.
21898
218992008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
21900
21901 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
21902 (font_parse_xlfd): Use them for sanity check.
21903 (Finternal_set_font_style_table): Make sure the table is bijective.
21904
21905 Consolidate the image_cache to the terminal struct.
21906 * termhooks.h (P_): Remove redundant def.
21907 (struct terminal): New field `image_cache'.
21908 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
21909 of FRAME_X_IMAGE_CACHE.
21910 * xterm.h (struct x_display_info): Remove image_cache field.
21911 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
21912 * w32term.h (struct w32_display_info): Remove image_cache field.
21913 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
21914 * macterm.h (struct mac_display_info): Remove image_cache field.
21915 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
21916 * xterm.c (x_term_init):
21917 * w32term.c (w32_term_init):
21918 * macterm.c (mac_term_init): Set the image_cache in the terminal.
21919 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
21920 Remove declarations.
21921 (clear_image_caches, mark_image_cache): New declarations.
21922 * xfaces.c (clear_face_cache):
21923 * xdisp.c (redisplay_internal): Use clear_image_caches.
21924 * image.c (clear_image_cache): Don't check that a frame is on
21925 a window-system before checking if it shares the same cache.
21926 (clear_image_caches): New function.
21927 (Fclear_image_cache): Use it.
21928 (mark_image): Move from allo.c.
21929 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
21930 * alloc.c (mark_image, mark_image_cache): Move to image.c.
21931 (mark_object): Don't call mark_image_cache for frames.
21932 (mark_terminals): Call mark_image_cache.
21933
21934 * lisp.h (Fdelete_terminal): Declare.
21935
21936 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
21937 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
21938 wrong_type_argument.
21939
219402008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
21941
21942 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
21943 malayalam.el, and tamil.el. Add sinhala.el.
21944
219452008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
21946
21947 * xterm.c (x_connection_closed): Consolidate identical tests.
21948 (x_delete_terminal): Don't crash if called via x_connection_closed.
21949
219502008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
21951
21952 * xdisp.c (decode_mode_spec): New arg string.
21953 (display_mode_element): Adjust for the above change.
21954
219552008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
21956
21957 * callint.c (Fcall_interactively): Use AREF.
21958
219592008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
21960
21961 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
21962
219632008-02-18 Jan Djärv <jan.h.d@swipnet.se>
21964
21965 * xfns.c (Fx_show_tip): Set string to " " if empty.
21966
219672008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
21968
21969 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
21970 with Qt.
21971
219722008-02-17 Kenichi Handa <handa@m17n.org>
21973
21974 * ftfont.c (ftfont_shape): Return Lispy number.
21975
21976 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
21977 for GCs.
21978 (Finternal_set_font_selection_order): Call font_update_sort_order
21979 only when enable_font_backend is set.
21980 (realize_x_face): Set face->font_info to that of default face only
21981 when enable_font_backend is set.
21982
21983 * xdisp.c (handle_composition_prop): Set it->c to the fist
21984 character of the composed region.
21985 (fill_composite_glyph_string): Set base_face->font_info to
21986 s->font_info. Get a face for ascii from base_face->ascii_face.
21987 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
21988 with a face already decided.
21989 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
21990 non-negative.
21991 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
21992 call font_prepare_composition unconditionally.
21993
21994 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
21995
21996 * xterm.h (struct x_display_info): New member font.
21997
21998 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
21999 (x_set_mouse_face_gc, x_new_font): Likewise.
22000 (x_term_init): Setup display_info->font.
22001 (x_delete_terminal): Free display_info->font.
22002
22003 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
22004
22005 * ftxfont.c (ftxfont_default_fid): Delete it.
22006 (ftxfont_open): Set xfont->fid to 0.
22007 (ftxfont_end_for_frame): Clear data specific to the frame and the
22008 font-driver.
22009
22010 * xftfont.c (xftfont_default_fid): Delete it.
22011 (xftfont_open): Set xfont->fid to 0.
22012
22013 * fontset.c (FONTSET_OBJLIST): New macro.
22014 (fontset_find_font): Update font-object list of the fontset.
22015 (free_realized_fontset): New function.
22016 (free_face_fontset): Call free_realized_fontset.
22017 (Ffont_info): Call font_close_object only when enable_font_backend
22018 is set.
22019
22020 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
22021 [HAVE_NTGUI]: Include w32term.h.
22022 [MAC_OS]: Include macterm.ch.
22023 (font_otf_ValueRecord): Use make_number.
22024 (font_finish_cache): Fix handling of reference count.
22025 (font_clear_cache): Update num_fonts.
22026 (font_open_entity): Update smallest_char_width and
22027 smallest_font_height of the frame.
22028 (font_close_object): Update num_fonts.
22029 (Fclear_font_cache): Fix finding the target cache data.
22030
220312008-02-16 Glenn Morris <rgm@gnu.org>
22032
22033 * fontset.c (Finternal_char_font): Fix compilation warning.
22034
220352008-02-16 Eli Zaretskii <eliz@gnu.org>
22036
22037 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
22038 instead of char arrays. Enlarge the size of array passed to
22039 get_token_information.
22040
22041 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
22042 warnings.
22043
220442008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
22045
22046 * .gdbinit: Don't set `args', it breaks gdb --args.
22047
220482008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
22049
22050 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
22051 within a narrowed buffer.
22052
220532008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
22054
22055 * coding.c (decode_coding_object, encode_coding_object):
22056 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
22057
220582008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
22059
22060 * coding.c (coding_set_destination): Use BEG_BYTE rather than
22061 hardcoding 1.
22062 (detect_coding_system):
22063 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
22064 (string_char_to_byte, string_byte_to_char, insert_from_gap):
22065 * insdel.c (insert_from_gap):
22066 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
22067 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
22068 (string_to_multibyte):
22069 * character.c (chars_in_text, multibyte_chars_in_text):
22070 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
22071
22072 * character.h (FETCH_STRING_CHAR_ADVANCE)
22073 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
22074 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
22075 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
22076
22077 * casefiddle.c (casify_region): Only call after-change and composition
22078 functions on the part of the region that was changed.
22079
22080 * keyboard.c (read_avail_input):
22081 * frame.c (Fdelete_frame): Call Fdelete_terminal.
22082
220832008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
22084
22085 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
22086 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
22087
220882008-02-11 Juanma Barranquero <lekktu@gmail.com>
22089
22090 * w32menu.c (push_submenu_start, push_submenu_end)
22091 (push_left_right_boundary, push_menu_pane, push_menu_item):
22092 * keyboard.c (read_key_sequence): Don't pass args with side effects
22093 to AREF, it fails when compiling with -DENABLE_CHECKING.
22094
220952008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
22096
22097 * Makefile.in (${lispsource}international/charprop.el):
22098 Delete this target.
22099
22100 * search.c (boyer_moore): Fix incorrect synching of the trunk and
22101 emacs-unicode-2.
22102
221032008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
22104
22105 * terminal.c (Fdelete_terminal): Clean up the `force' path.
22106
221072008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
22108
22109 * frame.c (Qnoelisp): New symbol.
22110 (syms_of_frame): Initialize it.
22111 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
22112 harmless Elisp code, from a strong `force' from x_connection_closed.
22113 * frame.h (Qnoelisp): Declare.
22114 * xterm.c (x_connection_closed): Pass `noelisp'.
22115
22116 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
22117 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
22118 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
22119 rather than `int' for the type of `type'.
22120
221212008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
22122
22123 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
22124
22125 * Makefile.in (GNUC): Remove support for gcc-1.x.
22126
221272008-02-10 Richard Stallman <rms@gnu.org>
22128
22129 * lisp.h (ASET): Use AREF, not ASLOT.
22130
221312008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
22132
22133 * lisp.h (ASET): Check bounds.
22134
221352008-02-10 Glenn Morris <rgm@gnu.org>
22136
22137 * buffer.c (mode-name): Doc fix.
22138
221392008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
22140
22141 * Makefile.in:
22142 * emacs.c:
22143 * gmalloc.c:
22144 * keyboard.c:
22145 * lisp.h:
22146 * m/ibm370aix.h:
22147 * process.c:
22148 * regex.c:
22149 * s/hpux.h:
22150 * sysdep.c:
22151 * sysselect.h:
22152 * systty.h:
22153 * unexec.c:
22154 * w32term.c:
22155 * xsmfns.c:
22156 * xterm.c: Remove code that deals with obsolete variables.
22157
22158 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
22159
22160 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
22161 nothing else needs it anymore.
22162
221632008-02-09 Eli Zaretskii <eliz@gnu.org>
22164
22165 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
22166 instead of unibyte_char_to_multibyte.
22167
221682008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
22169
22170 * s/gnu-linux.h: Remove commented out code.
22171
22172 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
22173
22174 * Makefile.in: Update what RMS says about using autoconf.
22175 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
22176 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
22177 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
22178 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
22179
221802008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
22181
22182 * keymap.c (Fkey_description): Move side effect outside of macro call.
22183
22184 * xfaces.c (Finternal_make_lisp_face):
22185 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
22186
22187 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
22188 (syms_of_fontset): Use ASET.
22189
22190 * fns.c (concat): Move side effect outside of macro call.
22191 (hash_clear): Use ASET.
22192
221932008-02-08 Richard Stallman <rms@gnu.org>
22194
22195 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
22196 If FORCE, and frame has a surrogate minibuffer for another frame,
22197 delete the other frame first.
22198
221992008-02-07 Timo Savola <timo.savola@iki.fi>
22200
22201 * xterm.c (x_detect_focus_change): Handle embed client message.
22202 (handle_one_xevent): Ditto.
22203 (handle_one_xevent): If embedded and we get a button press/release,
22204 request focus.
22205 (xembed_set_info, xembed_send_message): New functions.
22206 (x_make_frame_visible): Call xembed_set_info if embedded.
22207 (x_make_frame_invisible): Call xembed_set_info if embedded.
22208 (x_term_init): Initialize Xatom_XEMBED.
22209 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
22210 (x_iconify_frame): Ditto.
22211
22212 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
22213 (enum xembed_info, enum xembed_message, enum xembed_focus)
22214 (enum xembed_modifier, enum xembed_accelerator): New.
22215 (xembed_set_info, xembed_send_message): Declare.
22216 (FRAME_X_EMBEDDED_P): New.
22217
22218 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
22219 gtk_plug_new.
22220
22221 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
22222 window ID of a frame.
22223 (x_window): Reparent frame if embedded.
22224 (Fx_create_frame): Don't set border width if embedded.
22225
22226 * emacs.c (USAGE3): Add --parent-id.
22227 (standard_args): Ditto.
22228
222292008-02-07 Jan Djärv <jan.h.d@swipnet.se>
22230
22231 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
22232
222332008-02-07 Jim Meyering <meyering@redhat.com>
22234
22235 Use "do...while (0)", not "if (1)...else" in macro definitions.
22236 The latter provokes a warning from gcc about the empty else, when
22237 followed by ";". Also, without that trailing semicolon, it would
22238 silently swallow up any following statement.
22239 * syntax.h (SETUP_SYNTAX_TABLE)
22240 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
22241 * buffer.h (DECODE_POSITION): Likewise.
22242 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
22243 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
22244 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
22245 (FETCH_CHAR_ADVANCE): Likewise.
22246 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
22247
222482008-02-07 Jim Meyering <meyering@redhat.com>
22249
22250 * lread.c [lint]: Don't include <sys/inode.h>.
22251
222522008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
22253
22254 * xselect.c (x_handle_dnd_message):
22255 * xmenu.c (digest_single_submenu, xmenu_show):
22256 * xdisp.c (with_echo_area_buffer_unwind_data)
22257 (format_mode_line_unwind_data, unwind_format_mode_line)
22258 (display_menu_bar):
22259 * eval.c (Ffetch_bytecode):
22260 * doc.c (store_function_docstring):
22261 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
22262 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
22263 * buffer.c (add_overlay_mod_hooklist): Use ASET.
22264
222652008-02-07 Kenichi Handa <handa@m17n.org>
22266
22267 * ftxfont.c (ftxfont_open): Don't set
22268 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
22269
22270 * ftfont.c (ftfont_open): Fix previous change.
22271
222722008-02-06 Jason Rumney <jasonr@gnu.org>
22273
22274 * w32font.c (w32font_text_extents): Fill in lbearing metric.
22275 Use cached metrics for ASCII characters.
22276 (w32font_open_internal): Don't set font's owning_frame.
22277 Cache metrics for ASCII characters.
22278
22279 * w32font.h (struct w32font_info): Add ascii_metrics.
22280 Remove owning_frame.
22281
222822008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
22283
22284 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
22285 to negative value.
22286
22287 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
22288
22289 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
22290
22291 * charset.c (syms_of_charset): Set QCtest and Qeq.
22292
222932008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
22294
22295 * process.c (Fstart_process):
22296 * callproc.c (Fcall_process): Handle the case where
22297 Funhandled_file_name_directory returns nil.
22298
22299 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
22300 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
22301 * font.c (check_gstring): Use them and AREF to access the vector before
22302 we know it's really a gstring.
22303 (Ffont_shape_text): Fix typo.
46e722a9 22304 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
22305
22306 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
22307 Declare.
22308
22309 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
22310
223112008-02-05 Jason Rumney <jasonr@gnu.org>
22312
22313 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
22314 Set smallest_font_height and smallest_char_width in display info.
22315
223162008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
22317
22318 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
22319
223202008-02-05 Miles Bader <miles@gnu.org>
22321
22322 * xfaces.c (get_lface_attributes, merge_named_face)
22323 (lookup_named_face, lookup_derived_face, realize_named_face):
22324 Revert 2008-02-01 change by cyd@stupidchicken.com.
22325
223262008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
22327
22328 * fontset.c (Ffontset_info): Handle the case of inhibitting the
22329 fallback fonts.
22330 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
22331
223322008-02-04 Jason Rumney <jasonr@gnu.org>
22333
22334 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
22335 set full_name.
22336 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
22337
223382008-02-03 Jason Rumney <jasonr@gnu.org>
22339
22340 * makefile.w32-in (OBJ1): Include font.o here.
22341 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
22342
223432008-02-02 Jason Rumney <jasonr@gnu.org>
22344
22345 * makefile.w32-in (temacs): Bump EMHEAP to 21.
22346
223472008-02-01 Jason Rumney <jasonr@gnu.org>
22348
22349 * s/cygwin.h: Define VIRT_ADDR_VARIES.
22350
22351 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
22352
223532008-02-01 Andreas Schwab <schwab@suse.de>
22354
22355 * Makefile.in (shortlisp, lisp): Update for rename of
22356 ../lisp/language/myanmar.el.
22357
223582008-02-01 Chong Yidong <cyd@stupidchicken.com>
22359
22360 * xfaces.c (get_lface_attributes): Delete function.
22361 (merge_named_face, lookup_named_face, lookup_derived_face)
22362 (realize_named_face): Call lface_from_face_name directly, and use
22363 the fact that merge_face_vectors does not alter its FROM argument.
22364
223652008-02-01 Jason Rumney <jasonr@gnu.org>
22366
22367 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
22368 input in the default locale. Handle non-Unicode multibyte input.
22369
223702008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22371
22372 * fontset.c (reorder_font_vector): Exclude nil elements from the
22373 font group. Don't try multiple fonts.
22374 (fontset_font): Adjust for the above change.
22375 (Finternal_char_font): Return nil if the found font doesn't
22376 contain the character ch.
22377
22378 * Makefile.in (lisp, shortlisp): Add cham.el.
22379
223802008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22381
22382 * font.h (FONTP): Make it return 1 also for a font-object.
22383
22384 * .gdbinit (xfontset): New function.
22385
22386 * font.c (font_find_for_lface): Check if the character C is
22387 supported or not only for the first font.
22388
22389 * fontset.c (reorder_font_vector): Fix typo.
22390 (fontset_find_font): Don't add a font-spec specifying a script.
22391 Use 0 (not Qt) for the indication of empty font-group. Change the
22392 format of RFONT-DEF. Return Qt if no font in the font-group
22393 support the character.
22394 (fontset_font): Adjust for the above change. If no font was
22395 found the character, remember that.
22396 (face_for_char): Adjust for the change of RFONT-DEF.
22397 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
22398 no font for the target.
22399 (Finternal_char_font): Adjust for the change of RFONT-DEF.
22400
224012008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22402
22403 * font.c (font_load_for_face): Handle the case that the font in
22404 face->lface is a string.
22405
224062008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22407
22408 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
22409
224102008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22411
22412 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
22413 Fix previous change. If the frame is not on a window system,
22414 signal an error.
22415
224162008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22417
bba3e508
SM
22418 * coding.c (decode_coding_object, encode_coding_object):
22419 Adjust marker positions after conversion.
aac0c6e3
MR
22420
22421 * lisp.h (struct Lisp_Marker): New member need_adjustment.
22422
224232008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22424
22425 * font.c (font_find_for_lface): Fix the handling of the return
22426 value of font_has_char.
22427 (Ffont_shape_text): Fix previous change.
22428
22429 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
22430 (fontset_ref_and_range): Delete it.
22431 (fontset_find_font): Call char_table_ref_and_range instead of
22432 FONTSET_REF_AND_RANGE.
22433 (make_fontset): Don't setup font groups of Latin here.
22434 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
22435 (new_fontset_from_font): Make the specified font the default for
22436 all Latin characters.
22437
224382008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22439
22440 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
22441 is on a window system before accessing the fontset of the frame.
22442
224432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22444
22445 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
22446
22447 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
22448 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
22449
22450 * font.c (Ffont_shape_text): If the font driver doesn't have a
22451 shaper function, make zero-width glyphs to have at least one-pixel
22452 width. Fix setting of `to' field of glyphs.
22453
224542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22455
22456 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
22457 glyphs.
22458
22459 * font.h (struct font_driver): Improve docstring of member `shape'.
22460
224612008-02-01 Kenichi Handa <handa@m17n.org>
22462
22463 * composite.c (syms_of_composite): Fix docstring of
22464 auto-composition-function.
22465
22466 * font.h (LGLYPH_SIZE): New macro.
22467
22468 * font.c (Ffont_fill_gstring): Stop filling when a character not
22469 supported by the font is found.
22470 (Ffont_shape_text): When a shape callback function returns nil,
22471 try at most two more times with larger gstring.
22472 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
22473
22474 * xdisp.c (handle_auto_composed_prop): Change the argument to
22475 auto-composition-function.
22476
22477 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
22478 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
22479 Lispy glyph and store it in the lgstring.
22480
22481 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
22482
22483 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
22484
224852008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22486
22487 * font.c (Ffont_shape_text): Avoid unnecessary composition.
22488
22489 * fontset.c (Vfont_encoding_charset_alist): New variable.
22490 (syms_of_fontset): DEFVAR it.
22491 (reorder_font_vector, fontset_find_font): Optimize for the case of
22492 no need of reordering.
22493 (face_for_char): Map the charset property by
22494 Vfont_encoding_charset_alist.
22495
224962008-02-01 Jason Rumney <jasonr@gnu.org>
22497
22498 * w32font.c (logfonts_match): Don't check adstyle here.
22499 (font_matches_spec): Check here against physical font instead.
22500 (add_font_entity_to_list): Avoid some substitutions.
22501
22502 * font.c (font_parse_fcname): Default weight and slant to normal.
22503 (font_score): Prefer normal fonts if weight or slant unspecified.
22504 (font_score) [WINDOWSNT]: Scale weight difference down to closer
22505 match freetype scores.
22506
225072008-02-01 Jason Rumney <jasonr@gnu.org>
22508
22509 * w32font.c (w32font_text_extents): Don't use the frame stored in the
22510 font, as it may have been deleted.
22511 (w32_enumfont_pattern_entity): Map generic family to adstyle using
22512 most common hyphenless variation.
22513 (logfonts_match): Check generic family.
22514 (font_matches_spec): Don't check generic family here.
22515 (fill_in_logfont): Set generic family based on adstyle.
22516
22517 * w32font.h (w32font_get_cache): Update declaration.
22518
225192008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22520
22521 * ftfont.c (ftfont_get_cache): Adjust the argument type.
22522
22523 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
22524 If none of the new drivers are available, call font_update_drivers
22525 with the old drivers.
22526
22527 * w32font.c (w32font_get_cache): Adjust the argument type.
22528
22529 * xfont.c (xfont_get_cache): Adjust the argument type.
22530
22531 * font.h (struct font_driver): Change argument type of get_cache.
22532
22533 * xftfont.c (xftfont_start_for_frame): Delete prototype.
22534
22535 * font.c (Ffont_get): Fix arguments to Fassoc.
22536 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
22537 (font_clear_cache): New function.
22538 (font_list_entities, font_matching_entity): Use font_get_cache.
22539 (font_update_drivers): Call font_clear_cache when finishing a driver.
22540
22541 * fontset.c (fontset_find_font): Fix previous change.
22542
225432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22544
22545 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
22546 dpyinfo->font_table.
22547 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
22548 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
22549
22550 * font.c (font_at): Handle the case that the arg C is negative.
22551 Handle the unibyte case.
22552 (Ffont_at): Call font_at with the arg C -1.
22553
22554 * xdisp.c (handle_auto_composed_prop): Don't get a character at
22555 the position here, and call font_at with the arg C -1.
22556 Don't check the range of the existing composition at the point.
22557
225582008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22559
22560 * fontset.c (fontset_add): New args charset_id and family.
22561 Change caller.
22562 (load_font_get_repertory, fontset_find_font): Assume that
22563 font_spec is always a font-spec object.
22564 (Fset_fontset_font): Always store a font-spec object in a fontset.
22565
22566 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
22567 instead of get_property_and_range.
22568
225692008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22570
22571 * xftfont.c (struct xftfont_info): Delete the member ft_face.
22572 (xftfont_open): Don't keep locking face.
22573 (xftfont_close): Don't unlock face.
22574 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
22575
22576 * fontset.c (fontset_find_font): Don't prefer a font of
22577 supplementary charset.
22578
225792008-02-01 Kenichi Handa <handa@m17n.org>
22580
22581 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
22582 script, langsys_tag to langsys, new member script.
22583 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 22584 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
22585 listing to the script specified in that property. Fix arg to
22586 OTF_check_features.
22587
225882008-02-01 Jason Rumney <jasonr@gnu.org>
22589
22590 * w32font.h: New file.
22591
22592 * w32font.c: Include it.
22593 (struct w32font_info): Add owning_frame field. Move to w32font.h.
22594 (w32font_open): Set owning_frame.
22595 (w32font_text_extents): Use owning_frame.
22596 (struct font_callback_data): Add opentype_only field.
22597 (add_font_entity_to_list): Use it to filter fonts.
22598 Don't check against full name.
22599 (w32font_list_internal): New function.
22600 (w32font_list): Use it.
22601 (w32font_match_internal): New function.
22602 (w32font_match): Use it.
22603 (w32font_open_internal): New function.
22604 (w32font_open): Use it.
22605 (w32font_get_cache, w32font_close, w32font_has_char)
22606 (w32font_encode_char, w32font_text_extents, w32font_draw):
22607 Make non-static.
22608
22609 * makefile.w32-in (w32font.o): Depend on w32font.h.
22610
226112008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22612
22613 * charset.c (Fdefine_charset_internal): Record a supplementary
22614 charset at the tail of Vcharset_order_list.
22615
22616 * font.c (Ffont_shape_text): Fix the return value.
22617
22618 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
22619
22620 * xdisp.c (handle_auto_composed_prop): Fix previous change.
22621
226222008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22623
22624 * ftfont.c (struct OpenTypeSpec): New struct.
22625 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
22626 (ftfont_get_open_type_spec): New function.
22627 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
22628
22629 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
22630
226312008-02-01 Jason Rumney <jasonr@gnu.org>
22632
22633 * w32font.c (add_font_entity_to_list): Compare only the beginning
22634 of full name.
22635
226362008-02-01 Kenichi Handa <handa@m17n.org>
22637
22638 * xdisp.c (handle_auto_composed_prop): Simplify the code.
22639 Never return HANDLED_RECOMPUTE_PROPS.
22640
226412008-02-01 Kenichi Handa <handa@m17n.org>
22642
22643 * font.c (font_gstring_produce): Delete it.
22644
22645 * composite.h (COMPOSITION_METHOD):
22646 Handle COMPOSITION_WITH_GLYPH_STRING.
22647
226482008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22649
22650 * xfont.c (Qx): Delete.
22651 (syms_of_xfont): Don't initialize Qx.
22652
22653 * composite.h (enum composition_method):
22654 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
22655
226562008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22657
22658 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
22659 (choose_face_font): Accept new form of font-spec.
22660
22661 * frame.h (font_driver_list): Declare it unconditionally.
22662 (struct frame): Define members font_driver_list and font_data_list
22663 unconditionally.
22664
22665 * fontset.c: Include "font.h" unconditionally.
22666 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
22667 (Fset_fontset_font): Accept a font-spec object.
22668
22669 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
22670 PIXEL_SIZE part a wild card.
22671
22672 * dispextern.h (struct glyph_string): Define members clip and
22673 num_clips unconditionally.
22674 (struct face): Define members font_info and extra unconditionally.
22675
22676 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
22677 ftfont_info only when HAVE_LIBOTF is defined.
22678
226792008-02-01 Andreas Schwab <schwab@suse.de>
22680
22681 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
22682 and end.
22683
226842008-02-01 Jason Rumney <jasonr@gnu.org>
22685
22686 * w32font.c (w32font_driver): Add new fields.
22687
226882008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22689
22690 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
22691 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
22692 (LIBES): Add @M17N_FLT_CFLAGS@.
22693
22694 * composite.c (compose_text): Don't treat the new style
22695 composition specially.
22696
22697 * emacs.c (main): Call syms_of_font unconditionally.
22698
22699 * font.h (FONT_ENTITY_NOT_LOADABLE)
22700 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
22701 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
22702 (struct font_driver): New member shape.
22703 (font_registry_charsets): Extern it.
22704 (font_find_for_lface, font_prepare_composition): Adjust prototype.
22705 (font_otf_capability, font_drive_otf): Delete their externs.
22706
22707 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
22708 (font_charset_alist, font_registry_charsets): Move from xfont.c
22709 and rename.
22710 (font_prop_validate_otf): New function.
22711 (font_property_table): Register it for QCotf.
22712 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
22713 (font_drive_otf): Delete.
22714 (font_prepare_composition): New arg F. Adjust for the change of
22715 lispy gstring.
22716 (font_find_for_lface): New arg C.
22717 (font_load_for_face): Adjust for the change of font_find_for_lface.
22718 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
22719 lispy gstring.
22720 (Ffont_shape_text): New function.
22721 (Fopen_font): If the font size is not given, use 12-pixel.
22722 (Ffont_at): New arg STRING.
40b1a3a9 22723 (syms_of_font): Initialize font_charset_alist.
aac0c6e3
MR
22724 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
22725 conditionally.
22726
22727 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
22728 fonts of the same font-spec. Change the format of RFONT-DEF.
22729 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
22730 Adjust for the change of RFONT-DEF.
22731 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
22732
22733 * ftfont.h: New file.
22734
22735 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
22736 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
22737 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
22738 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
22739 font_otf_capability and font_drive_otf, set ftfont_shape.
22740 (ftfont_list): Adjust for the change of :otf property value.
22741 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
22742 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
22743 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
22744 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
22745 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
22746 (otf_gstring, gstring, m17n_flt_initialized): New variables.
22747
22748 * w32term.c (x_draw_composite_glyph_string_foreground):
22749 Adjust for the change of lispy gstring.
22750
22751 * xdisp.c (handle_composition_prop): Adjust for the change of
22752 lispy gstring. Call a function for auto-composition with the
22753 third arg it->window.
22754 (fill_composite_glyph_string): Adjust for the change of lispy string.
22755 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
22756
22757 * xfaces.c (set_font_frame_param): Adjust for the change of
22758 font_find_for_lface.
22759
22760 * xfont.c (x_font_charset_alist): Move to font.c and rename.
22761 (xfont_registry_charsets): Likewise. Change caller.
22762 (syms_of_xfont): Don't handle x_font_charset_alist.
22763
22764 * xftfont.c: Include "ftfont.h".
22765 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
22766 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
22767 (xftfont_close) [HAVE_LIBOTF]: Close otf.
22768 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
22769 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
22770 Set xftfont_driver.shape to xftfont_shape.
22771
22772 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
22773 the change of lispy gstring.
22774
227752008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22776
22777 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
22778
227792008-02-01 Jason Rumney <jasonr@gnu.org>
22780
22781 * w32font.c (w32font_draw): Fill background manually.
22782
227832008-02-01 Jason Rumney <jasonr@gnu.org>
22784
22785 * font.c (Qfontp): Remove unused symbol.
22786 (QCantialias): New symbol.
22787 (syms_of_font): Define it.
22788 (font_property_table): Set a validator for QCantialias.
22789
22790 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
22791 Define if not already.
22792 (QCfamily): Share with xfaces.c.
22793 (Qstandard, Qsubpixel, Qnatural): New symbols.
22794 (syms_of_w32font): Define them. Don't define QCfamily here.
22795 (w32_antialias_type, lispy_antialias_type): New functions.
22796 (w32_enumfont_pattern_entity): New arg requested_font.
22797 Set antialias parameter if non-default was requested.
22798 (fill_in_logfont): Fill in lfQuality if :antialias specified.
22799
228002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22801
22802 * lread.c (read1): Undo the previous change.
22803
228042008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
22805
22806 * frame.c (Fdelete_frame): Call font_update_drivers only when
22807 USE_FONT_BACKEND is defined.
22808
228092008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22810
22811 * font.h (struct font_bitmap): New member bits_per_pixel.
22812 (struct font_driver): New members start_for_frame and end_for_frame.
22813 (struct font_data_list): New struct.
22814 (font_put_frame_data, font_get_frame_data): Extern them.
22815
22816 * frame.h (struct frame): New member font_data_list.
22817
22818 * font.c (font_update_drivers): Call driver->start_for_frame and
22819 driver->end_for_frame at proper timings.
22820 (font_put_frame_data, font_get_frame_data): New functions.
22821 (Ffont_spec): Add usage in the docstring.
22822
22823 * frame.c (make_frame): Initialize f->font_data_list to NULL.
22824 (Fdelete_frame): Call font_update_drivers.
22825
22826 * xftfont.c (struct xftface_info): Delete the member xft_draw.
22827 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
22828 (xftfont_get_xft_draw): New function.
22829 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
22830 (xftfont_end_for_frame): New function.
22831 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
22832
22833 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
22834 Change argument. Cache GCs in the per-frame data.
22835 (struct ftxfont_frame_data): New struct.
22836 (ftxfont_draw_bitmap): New arg gc_fore and flush.
22837 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
22838 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
22839 (ftxfont_end_for_frame): New function.
22840 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
22841
22842 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
22843
228442008-02-01 Kenichi Handa <handa@m17n.org>
22845
22846 * xselect.c (Vselection_coding_system)
22847 (Vnext_selection_coding_system): Delete them.
22848 (syms_of_xselect): Don't declare selection-coding-system and
22849 next-selection-coding-system. They are declared in select.el.
22850
228512008-02-01 Jason Rumney <jasonr@gnu.org>
22852
22853 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
22854
22855 * w32fns.c: Include imm.h.
22856 (get_composition_string_fn, get_ime_context_fn): New optional
22857 system functions.
22858 (globals_of_w32fns): Load them from imm32.dll.
22859 (ignore_ime_char): New flag.
22860 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
22861 WM_IME_ENDCOMPOSITION messages.
22862
22863 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
22864 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
22865
228662008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22867
22868 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
22869 (READCHAR_REPORT_MULTIBYTE): New macro.
22870 (readchar): New 2nd arg MULTIBYTE.
22871 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
22872 Make symbol's name multibyte according to the multibyteness of the
22873 source.
22874
228752008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22876
22877 * xfaces.c (face_for_overlay_string): Call lookup_face with
22878 correct arguments (fix of synching with the trunk).
22879
228802008-02-01 Kenichi Handa <handa@m17n.org>
22881
22882 * font.c (font_prop_validate_symbol, font_prop_validate_style)
22883 (font_prop_validate_non_neg, font_prop_validate_spacing):
22884 Delete argument prop_index.
22885 (font_property_table): Change arguments to validater. Change Callers.
22886 (font_lispy_object): Delete.
22887 (font_at): Use font_find_object instead fo font_lispy_object.
22888
228892008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22890
22891 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
22892 and file names.
22893
228942008-02-01 Jason Rumney <jasonr@gnu.org>
22895
22896 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
22897 (font_matches_spec): Remove debug output.
22898 (add_font_entity_to_list): Avoid using substituted fonts.
22899
229002008-02-01 Jason Rumney <jasonr@gnu.org>
22901
22902 * doc.c (Fsnarf_documentation):
22903 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
22904
229052008-02-01 Miles Bader <miles@gnu.org>
22906
22907 * dispextern.h (struct glyph_row): Only define "clip" field if
22908 HAVE_WINDOW_SYSTEM is defined.
22909
229102008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
22911
22912 Fix up multi-tty merge.
22913
22914 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
22915 and indentation.
22916
22917 * xfaces.c (free_realized_face, clear_face_gcs):
22918 Include font_done_for_face in the input_blocked section, just in case.
22919
22920 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
22921 (get_char_face_and_encoding): Undo last change and remove the *other*
22922 duplicate definition (i.e. keep the one that's better scoped and that
22923 includes code for the font-backend).
22924
22925 * terminal.c (create_terminal): Default keyboard_coding to
22926 `no-conversion' and terminal_coding to `undecided'.
22927
22928 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
22929
22930 * fontset.c (free_realized_fontsets): Check that the table entry does
22931 contain a fontset before trying to compare it to `base'.
22932
22933 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
22934 syms_of_charset, and syms_of_coding earlier because init_window_once
22935 now needs Vcoding_system_hash_table to be setup.
22936
22937 * coding.h (default_buffer_file_coding): Remove.
22938
22939 * coding.c (default_buffer_file_coding): Remove.
22940 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
22941 than ->symbol, and use the terminal-local coding system.
22942 (syms_of_coding): Don't setup the coding-systems that are not
22943 terminal-local.
22944 (Fdefine_coding_system_internal): Use XCAR/XCDR.
22945
22946 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
22947 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
22948
22949 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
22950 in chartab.c and were re-added here by mistake.
22951 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
22952
22953 * doc.c (Fsnarf_documentation):
22954 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
22955 src to etc.
22956
22957 * ChangeLog.10: Add mistakenly removed entry.
22958
229592008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
22960
22961 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
22962
229632008-02-01 Miles Bader <miles@gnu.org>
22964
22965 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
22966 Add extra args to FACE_FOR_CHAR.
22967
229682008-02-01 Kenichi Handa <handa@m17n.org>
22969
22970 * keymap.c (where_is_internal_1): If key is a cons, store the copy
22971 in sequence.
22972
22973 * chartab.c (map_sub_char_table, map_char_table): If the range
22974 contains just one character, call the function with that character
22975 even if the depth is not 3.
22976
229772008-02-01 Jason Rumney <jasonr@gnu.org>
22978
22979 * w32font.c (w32font_text_extents): Calculate metrics for the
22980 whole string.
22981
229822008-02-01 Jason Rumney <jasonr@gnu.org>
22983
22984 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
22985
229862008-02-01 Jason Rumney <jasonr@gnu.org>
22987
bba3e508
SM
22988 * w32term.c (x_set_glyph_string_clipping):
22989 Use get_glyph_string_clip_rects.
aac0c6e3
MR
22990 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
22991 Adjust for the change of struct glyph_string.
22992
22993 * w32font.c (w32font_draw): Do clipping here.
22994
229952008-02-01 Kenichi Handa <handa@m17n.org>
22996
22997 * xftfont.c (xftfont_draw): Adjust for the change of struct
22998 glyph_string.
22999
bba3e508
SM
23000 * xterm.c (x_set_glyph_string_clipping):
23001 Use get_glyph_string_clip_rects.
aac0c6e3
MR
23002 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
23003 Adjust for the change of struct glyph_string.
23004
23005 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
23006 the resulting clip(s}.
23007 (expose_overlaps): Add arg r. Change callers. Set it to
23008 row->clip temporarily.
23009 (expose_window): Redraw rows overlapping the exposed area.
23010
23011 * dispextern.h (struct glyph_row): New member clip.
23012 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
23013 clip_height, new member clip, and num_clips.
23014
230152008-02-01 Kenichi Handa <handa@m17n.org>
23016
23017 * data.c (Fchar_or_string_p): Fix docstring.
23018
230192008-02-01 Kenichi Handa <handa@m17n.org>
23020
23021 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
23022 create a temporary XftDraw object.
23023
230242008-02-01 Kenichi Handa <handa@m17n.org>
23025
23026 * font.c (Ffontp): Fix docstring.
23027
23028 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
23029 strong evidence of ISO-2022.
23030
230312008-02-01 Kenichi Handa <handa@m17n.org>
23032
23033 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
23034 SYNTAX_ENTRY_FOLLOW_PARENT.
23035
230362008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
23037
23038 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
23039 its type.
23040 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
23041 Update to the new type of weak_hash_tables and next_weak.
23042
23043 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
23044 a plain C pointer to Lisp_Hash_Table.
23045
23046 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
23047 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
23048 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
23049 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
23050 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
23051 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
23052 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
23053 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
23054 (GC_EQ): Remove since they've been identical to their non-GC_
23055 alter-egos ever since the markbit was eradicated.
23056
23057 * alloc.c:
23058 * buffer.c:
23059 * buffer.h:
23060 * data.c:
23061 * fileio.c:
23062 * filelock.c:
23063 * fns.c:
23064 * frame.h:
23065 * lisp.h:
23066 * macterm.c:
23067 * print.c:
23068 * process.c:
23069 * w32fns.c:
23070 * w32menu.c:
23071 * w32term.c:
23072 * xfns.c:
23073 * xmenu.c:
23074 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
23075
230762008-02-01 Kenichi Handa <handa@m17n.org>
23077
23078 * chartab.c (map_sub_char_table): Make it work for the top-level
23079 char-table. Fix handling of parent char-table.
23080 (map_char_table): Adjust for the above change.
23081
230822008-02-01 Jason Rumney <jasonr@gnu.org>
23083
23084 * w32font.c (Qgdi): Rename from Qw32.
23085
230862008-02-01 Jason Rumney <jasonr@gnu.org>
23087
23088 * w32bdf.c (get_quoted_string): Make function static.
23089
230902008-02-01 Kenichi Handa <handa@m17n.org>
23091
23092 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
23093 bigger ascent and descent than those of the font, use them as
23094 font's ascent and descent.
23095
230962008-02-01 Kenichi Handa <handa@m17n.org>
23097
23098 * Makefile.in (${lispsource}international/charprop.el): Move this
23099 target within "#ifdef HAVE_UNIDATA" and "#endif".
23100
231012008-02-01 Kenichi Handa <handa@m17n.org>
23102
23103 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
23104 (shortlisp): Add ../lisp/language/tai-viet.el.
23105
231062008-02-01 Ulrich Mueller <ulm@gentoo.org>
23107
23108 * Makefile.in (${lispsource}international/charprop.el): Depend on
23109 temacs${EXEEXT}.
23110
231112008-02-01 Jason Rumney <jasonr@gnu.org>
23112
23113 * w32font.c (w32font_close): Delete the GDI font object.
23114
23115 * w32menu.c: Include character.h.
23116
23117 * w32proc.c: Likewise.
23118
23119 * w32select.c: Likewise.
23120
23121 * makefile.w32-in (w32proc.o): Depend on character.h.
23122
231232008-02-01 Jason Rumney <jasonr@gnu.org>
23124
23125 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
23126
23127 * w32menu.c (syms_of_w32menu): Likewise.
23128
23129 * w32proc.c (syms_of_ntproc): Likewise.
23130
23131 * w32select.c (syms_of_w32select): Likewise.
23132
23133 * w32term.c (syms_of_w32term): Likewise.
23134
231352008-02-01 Jason Rumney <jasonr@gnu.org>
23136
23137 * w32font.c (w32font_draw): Delete brush after using it.
23138
231392008-02-01 Jason Rumney <jasonr@gnu.org>
23140
23141 * w32font.c (w32font_open): Don't set font_idx.
23142 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
23143 to font settings.
23144 (w32font_draw): Fill background explicitly.
23145
231462008-02-01 Jason Rumney <jasonr@gnu.org>
23147
23148 * w32term.c (w32_initialize): Don't call w32font_initialize.
23149
23150 * w32font.c (w32font_info): Remove subranges.
23151 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
23152 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
23153 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
23154 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
23155 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
23156 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
23157 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
23158 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
23159 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
23160 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
23161 New symbols.
23162 (font_callback_data): New struct.
23163 (w32font_list, w32font_match): Use it.
23164 (w32font_open): Don't populate subranges.
23165 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
23166 (w32font_encode_char): Always return unicode code-point as-is.
23167 (w32font_text_extents): Supply a transformation matrix to
23168 GetGlyphOutline. Never look up by glyph index. Avoid looping
23169 twice. Use unicode version of GetTexExtentPoint32 instead of
23170 glyph index version.
23171 (set_fonts_frame): Remove.
23172 (w32_enumfont_pattern_entity): Add frame parameter, use it to
23173 set frame parameter. Use backward compatible fake foundries.
23174 Save generic family in extra slot under QCfamily. Make width slot
23175 constant. Save QCspacing value. Save list of scripts instead of
23176 binary subranges.
23177 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
bba3e508
SM
23178 (add_font_entity_to_list): Use font_callback_data struct.
23179 Filter unwanted fonts.
aac0c6e3
MR
23180 (add_one_font_entity_to_list): Use font_callback_data struct.
23181 (w32_registry): Default to iso10646_1.
23182 (fill_in_logfont): Use dpi from extra slot. Don't bother with
23183 string font registries. Don't fill in font name if it is a generic
23184 family name, fill family instead. Use spacing, family and script
23185 extra info to fill pitch, family and charset fields.
23186 (list_all_matching_fonts): Use font_callback_data struct.
23187 (unicode_range_for_char): Remove.
23188 (font_supported_scripts): New function.
23189 (w32font_initialize): Remove.
23190 (syms_of_w32font): Update which symbols are defined.
23191
231922008-02-01 Jason Rumney <jasonr@gnu.org>
23193
23194 * font.c (font_pixel_size): Reverse assq_no_quit args.
23195
23196 * w32term.h (FONT_WIDTH): Report max width, not average.
23197 (FONT_MAX_WIDTH): Remove.
23198 (FONT_AVG_WIDTH): New macro.
23199
23200 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
23201 redefinition of FONT_WIDTH.
23202
23203 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
23204 (w32_cache_char_metrics): Use FONT_WIDTH.
23205
23206 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
23207
232082008-02-01 Jason Rumney <jasonr@gnu.org>
23209
23210 * w32font.c (w32font_open): Make lfHeight negative.
23211
23212 * w32fns.c (x_default_font_parameter): Use new style font name.
23213 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
23214
232152008-02-01 Jason Rumney <jasonr@gnu.org>
23216
23217 * w32font.c (QCsubranges): New symbol.
23218 (w32font_open, w32font_has_char): Get subranges from subproperty
23219 of extra.
23220 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
23221 (syms_of_w32font): Define :subranges symbol.
23222
23223 * font.c (font_put_extra): Expose externally.
23224
23225 * font.h (font_put_extra): Move declaration from font.c.
23226
23227 * font.c (Ffont_get): Use font driver to determine otf capability.
23228 (adjust_anchor): Check if driver defines anchor_point before using.
23229
23230 * w32font.c (w32font_open): Handle size, height and pixel_size better.
23231 (w32font_draw): Use options.
23232 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
23233 Fix detection of truetype fonts.
23234 (registry_to_w32_charset): Handle charsets other than iso8859-1
23235 expressed as lisp symbols.
23236 (w32_registry): Express charset as lisp symbol.
23237 (fill_in_logfont): Reverse pixel and point height logic.
23238 Don't set width here. Set quality to default.
23239
23240 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
23241 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
23242
23243 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
23244 Remove redundant loop and allocation.
23245
23246 * makefile.w32-in (font.o, w32font.o): New objects.
23247 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
23248 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
23249
23250 * xdisp.c (fill_composite_glyph_string): Make the first arg to
23251 STORE_XCHARB a valid l-value.
23252
23253 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
23254 calculations for non-Truetype fonts.
23255 (x_draw_glyph_string): Sync with xterm.c.
23256 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
23257 Remove redundant code.
23258 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
23259
23260 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
23261 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
23262
23263 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
23264 (x_to_w32_charset, w32_to_x_charset): Expose externally.
23265
23266 * w32font.c: New file for w32 font backend.
23267
232682008-02-01 Kenichi Handa <handa@m17n.org>
23269
23270 * term.c: Don't include "buffer.h" twice.
23271
232722008-02-01 Kenichi Handa <handa@m17n.org>
23273
23274 * character.c (Funibyte_string): New function.
23275 (syms_of_character): Defsubr it.
23276
232772008-02-01 Jason Rumney <jasonr@gnu.org>
23278
23279 * w32term.c [USE_FONT_BACKEND]:
23280 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
23281 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
23282 (x_draw_glyph_string, x_draw_glyph_string_foreground)
23283 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
23284 (x_free_frame_resources): Sync with xterm.c.
23285
232862008-02-01 Andreas Schwab <schwab@suse.de>
23287
23288 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
23289 char-table size.
23290
232912008-02-01 Kenichi Handa <handa@m17n.org>
23292
23293 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
23294
232952008-02-01 Kenichi Handa <handa@m17n.org>
23296
23297 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
23298 font_otf_gpos, add font_drive_otf.
23299
23300 * fontset.c (fontset_find_font): Pay attention to font size
23301 specified for a font.
23302 (reorder_font_vector): Check contents of font_def.
23303
23304 * font.c (struct otf_list): Delete it.
23305 (otf_list): Make it a lisp variable.
23306 (otf_open): Use lispy otf_list.
23307 (generate_otf_features): Rename from parse_gsub_gpos_spec.
23308 (check_otf_features): New function.
23309 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
23310 New functions.
23311 (font_drive_otf): New function merging font_otf_gsub and
23312 font_otf_gpos.
23313 (font_open_for_lface): New arg spec. Change argument order.
23314 (font_load_for_face): Adjust for the change of font_open_for_lface.
23315 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
23316 Ffont_otf_gpos.
23317 (syms_of_font): Staticpro otf_list. Delete defsubr of
23318 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
23319
23320 * xfaces.c (set_font_frame_param): Adjust for the change of
23321 font_open_for_lface.
23322
23323 * font.h (font_open_for_lface): Adjust prototype.
23324 (struct font_driver): Delete members otf_gsub and otf_gpos, add
23325 member otf_drive.
23326 (font_otf_gsub, font_otf_gpos): Delete externs.
23327 (font_drive_otf): Extern it.
23328
233292008-02-01 Kenichi Handa <handa@m17n.org>
23330
23331 * font.c (font_at): If the window W is not on a window system,
23332 return Qnil.
23333
23334 * coding.c (produce_chars, encode_coding): Don't call
23335 insert_from_gap if no characters to produce.
23336
233372008-02-01 Kenichi Handa <handa@m17n.org>
23338
23339 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
23340 Fclear_face_cache.
23341
23342 * xfaces.c (face_for_font): Check also face->font==font->font.font.
23343
233442008-02-01 Miles Bader <miles@gnu.org>
23345
23346 * emacs.c (main): Change default value of `enable_font_backend' to 1.
23347 Parse "--disable-font-backend" option.
23348 (standard_args): Add "--disable-font-backend" option.
23349
233502008-02-01 Kenichi Handa <handa@m17n.org>
23351
23352 * fontset.c (fontset_find_font): New function.
23353 (fontset_font): Use fontset_find_font.
23354 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
23355 Register the specified font for all Latin characters.
23356 (new_fontset_from_font): Register the specified font for all Latin
23357 characters.
23358 (dump_fontset): For a realized fontset, include the base fontset
23359 name in the returned vector.
23360
233612008-02-01 Kenichi Handa <handa@m17n.org>
23362
23363 * character.h (CHAR_STRING): Cast C to unsigned on calling
23364 char_string.
23365
23366 * character.c (char_string): Type of arg C changed to unsigned.
23367 Signal an error if C is an invalid character code.
23368
23369 * editfns.c (general_insert_function, Fchar_to_string):
23370 Use CHARACTERP, not INTEGERP.
23371
233722008-02-01 Kenichi Handa <handa@m17n.org>
23373
23374 * character.h (MIN_MULTIBYTE_LEADING_CODE)
23375 (MAX_MULTIBYTE_LEADING_CODE): New macros.
23376
23377 * regex.c (analyse_first): Fix for multibyte characters in "case
23378 charset:" and "case categoryspec:".
23379
233802008-02-01 Andreas Schwab <schwab@suse.de>
23381
23382 * Makefile.in (LIBES): Move standard libraries to the end.
23383
233842008-02-01 Kenichi Handa <handa@m17n.org>
23385
23386 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
23387 nonzero, don't shrink the buffer nextb.
23388
23389 * buffer.h (struct buffer_text): New member inhibit_shrinking.
23390
23391 * coding.c (coding_alloc_by_making_gap): New arg offset.
23392 (alloc_destination): Call coding_alloc_by_making_gap with the arg
23393 offset.
23394 (decode_coding_iso_2022): Update coding->safe_charsets.
23395 (decode_coding_gap): Temporarily set
23396 current_buffer->text->inhibit_shrinking to 1.
23397
233982008-02-01 Kenichi Handa <handa@m17n.org>
23399
bba3e508
SM
23400 * xterm.c (x_draw_composite_glyph_string_foreground):
23401 Fix indexing into elements of s->cmp and s->char2b.
aac0c6e3
MR
23402
234032008-02-01 Juanma Barranquero <lekktu@gmail.com>
23404
23405 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
23406
234072008-02-01 Kenichi Handa <handa@m17n.org>
23408
23409 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
23410 target_multibyte instead of multibyte.
23411 (re_match_2_internal): Call bcmp_translate with target_multibyte.
23412 (bcmp_translate): Change the argument name from multibyte to
23413 target_multibyte.
23414
234152008-02-01 Kenichi Handa <handa@m17n.org>
23416
23417 These changes are to compile a regexp into a pattern that can be
23418 used both for multibyte and unibyte targets.
23419
23420 * Makefile.in (search.o): Depend on charset.h.
23421
23422 * character.c (multibyte_char_to_unibyte_safe): New function.
23423
23424 * search.c: Include "charset.h".
23425 (compile_pattern_1): Delete argument multibyte. Don't set
23426 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
23427 (compile_pattern): Don't compare cp->buf.target_multibyte.
23428 Compare cp->buf.charset_unibyte.
23429 (compile_pattern): Set cp->buf.target_multibyte.
23430
23431 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
23432
23433 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
23434
23435 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
23436 multibyte. Change callers.
23437 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
23438 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
23439 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
23440 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
23441 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
23442 (regex_compile): Make the compiled pattern usable both for
23443 multibyte and unibyte targets.
23444 (analyse_first): Make the fastmap usable both for multibyte and
23445 unibyte targets.
23446 (TRANSLATE_VIA_MULTIBYTE): Delete.
23447 (re_match_2_internal): Pay attention to the case that the
23448 multibyteness of bufp and target may be different.
23449
234502008-02-01 Kenichi Handa <handa@m17n.org>
23451
23452 * xdisp.c (x_produce_glyphs): When a font is not found, make the
23453 empty box occupy at least one column width.
23454
234552008-02-01 Miles Bader <miles@gnu.org>
23456
23457 * Makefile.in: Remove redundant HAVE_XFT clause.
23458
234592008-02-01 Kenichi Handa <handa@m17n.org>
23460
23461 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
23462
234632008-02-01 Kenichi Handa <handa@m17n.org>
23464
23465 * fontset.c (Finternal_char_font): Fix for the case of POSITION
23466 being nil.
23467
234682008-02-01 Kenichi Handa <handa@m17n.org>
23469
23470 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
23471
234722008-02-01 Kenichi Handa <handa@m17n.org>
23473
23474 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
23475
234762008-02-01 Kenichi Handa <handa@m17n.org>
23477
23478 * search.c (simple_search): Fix previous change.
23479
234802008-02-01 Kenichi Handa <handa@m17n.org>
23481
23482 * xftfont.c (ftfont_font_format): Extern declaration.
23483
23484 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
23485
23486 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
23487 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
23488
23489 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
23490 (ftfont_font_format): Fix previous change.
23491
23492 * font.h (Ffont_xlfd_name): EXFUN it.
23493
23494 * font.c (font_parse_xlfd): Fix the array size of `f'.
23495 (register_font_driver): Use EQ to compare driver->type.
23496
23497 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
23498 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
23499 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
23500
235012008-02-01 Kenichi Handa <handa@m17n.org>
23502
23503 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
23504 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
23505
235062008-02-01 Kenichi Handa <handa@m17n.org>
23507
23508 * xfont.c (xfont_open): Set font->format.
23509
23510 * xftfont.c (xftfont_open): Set font->format.
23511
23512 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
23513 (ftfont_list): Include FC_FONTFORMAT in FcObject.
23514 (ftfont_open): Set font->format.
23515 (ftfont_font_format): New function.
23516
23517 * font.h (struct font): New member format.
23518
23519 * font.c (Qopentype): New variable.
23520 (syms_of_font): Defsym it.
23521 (Fquery_font): Change the format of the last element of the return
23522 value.
23523
235242008-02-01 Kenichi Handa <handa@m17n.org>
23525
23526 * xfns.c (xic_create_xfontset): Try the default fontset name as a
23527 last resort.
23528
235292008-02-01 Kenichi Handa <handa@m17n.org>
23530
23531 * coding.c (detect_coding_charset): Fix detection of multi-byte
23532 charset.
23533
235342008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
23535
23536 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
23537
235382008-02-01 Kenichi Handa <handa@m17n.org>
23539
23540 * xdisp.c (get_next_display_element): Set it->face_id for the
23541 first component of a composition.
23542 (x_produce_glyphs): Check if the font is changed or not for composition.
23543
235442008-02-01 Kenichi Handa <handa@m17n.org>
23545
23546 * fontset.c (Qlatin): New variable.
23547 (syms_of_fontset): Define it as a lisp symbol.
23548 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
23549
235502008-02-01 Kenichi Handa <handa@m17n.org>
23551
23552 * font.c (font_unparse_fcname): Pay attention to the case that
23553 some of font property is a null string.
23554
235552008-02-01 Kenichi Handa <handa@m17n.org>
23556
23557 * term.c: Include "composite.h".
23558 (encode_terminal_code): Output all components of composition.
23559 Check the size of encode_terminal_src.
23560 (produce_glyphs): For composition, call produce_composite_glyph.
23561 (append_composite_glyph, produce_composite_glyph): New functions.
23562
23563 * xdisp.c (x_produce_glyphs): In handling composition, if a font
23564 is not found, get font_info from the current ascii face.
23565
235662008-02-01 Kenichi Handa <handa@m17n.org>
23567
23568 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
23569 buffer-file-name to Qnil before calling insert_from_buffer.
23570
23571 * font.c (font_unparse_fcname): Pay attention to the case that
23572 foundry is a null string.
23573
235742008-02-01 Kenichi Handa <handa@m17n.org>
23575
23576 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
23577
23578 * font.c (Qunicode_sip): New variable.
23579 (syms_of_font): Declare it as a Lisp symbol.
23580
23581 * font.h (Qunicode_sip): Extern it.
23582
235832008-02-01 Kenichi Handa <handa@m17n.org>
23584
23585 * composite.c (get_composition_id): Pay attention to TAB component.
23586
23587 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
23588 TAB. Adjust for the change of s->char2b which always points to
23589 the first element of allocated memory.
23590
23591 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
23592
23593 * xdisp.c (handle_composition_prop): Set it->c to the first
23594 non-TAB component.
23595 (fill_composite_glyph_string): Change argument.
23596 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
23597 (x_produce_glyphs): Fix handling of left/right padding.
23598
235992008-02-01 Kenichi Handa <handa@m17n.org>
23600
23601 * coding.c (detect_coding_system): Fix for handling off
23602 inhibit_iso_escape_detection. Fix for the case that no coding
23603 system is defined for a specific coding category.
23604
236052008-02-01 Kenichi Handa <handa@m17n.org>
23606
23607 * font.c (font_matching_entity): Delete unused local var.
23608
23609 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
23610 opening a font.
23611
23612 * fileio.c (Finsert_file_contents): On recovering a file, assume
23613 Unix-like eol.
23614 (choose_write_coding_system): On auto-saving a file, force
23615 Unix-like eol.
23616
23617 * coding.c (setup_coding_system): Fix setting of
23618 coding->common_flags based on eol_type.
23619 (coding_inherit_eol_type): If PARENT is not nil, be sure to
23620 inherit from it.
23621
236222008-02-01 Kenichi Handa <handa@m17n.org>
23623
23624 * alloc.c (NSTATICS): Increas to 0x600.
23625
236262008-02-01 Kenichi Handa <handa@m17n.org>
23627
23628 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
23629 (ftfont_list): Don't check :name property.
23630 (ftfont_match): New function.
23631 (ftfont_pattern_entity): If the pattern doesn't contain
23632 FC_SPACING, don't assume FC_MONO.
23633
23634 * font.h (struct font_driver): New member `match'.
23635 (font_update_drivers): Adjust prototype.
23636
23637 * font.c (font_parse_fcname, font_parse_name): Don't change :name
23638 property of FONT.
bba3e508
SM
23639 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring):
23640 Define them unconditionally.
aac0c6e3
MR
23641 (font_matching_entity): New function.
23642 (font_open_by_name): Try font_matching_entity if exact match is
23643 not found.
23644 (font_update_drivers): Delete the arg FONT. Return a list of
23645 actually used backends. Don't free faces, font caches here.
23646 Don't store data in frame parameters. Don't call x_set_font.
23647 (Ffont_spec): Store :name property as is.
23648 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
23649 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
23650 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
23651 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
23652 Call font->driver->otf_gsub instead of font_otf_gsub.
23653
23654 * frame.c (x_set_font_backend): Do more works that were done in
23655 font_update_drivers before.
23656
23657 * xfont.c (xfont_match): New function.
23658 (xfont_driver): Set xfont_driver.match to xfont_match.
23659 (xfont_draw): Set font in GC if necessary.
23660
23661 * ftxfont.c (ftxfont_match): New function.
23662 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
23663
23664 * xftfont.c (xftfont_match): New function.
23665 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
23666
236672008-02-01 Kenichi Handa <handa@m17n.org>
23668
23669 * font.h (struct font): New member scalable.
23670 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
23671 (font_otf_gsub): Adjust prototype.
23672
23673 * font.c (font_otf_capability): Fix handling of the default langsys.
23674 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
23675 Check the contents of SPEC.
23676 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
23677 (check_gstring): New function.
23678 (REPLACEMENT_CHARACTER): New macro.
23679 (font_otf_gsub): New arg alternate_subst. Be sure to set all
23680 glyph codes of GSTRING.
23681 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
23682 (font_prepare_composition): Set cmp->glyph_len.
23683 (font_open_entity): Set font->scalable.
23684 (Ffont_get): Handle :otf property.
bba3e508
SM
23685 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates):
23686 New functions.
aac0c6e3
MR
23687 (Fquery_font): Use font->font.full_name.
23688 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
23689 Sfont_otf_alternates.
23690
23691 * ftfont.c (ftfont_open): Set font->font.full_name and
23692 font->font.name properly. Fix calculation of font->font.height
23693 and font->min_width.
23694
23695 * ftxfont.c (ftxfont_create_gcs): New function.
23696 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
23697 (ftxfont_draw_backgrond): Fix filling region.
23698 (ftxfont_default_fid): New function.
23699 (ftxfont_open): Set xfont->fid to the return value of
23700 ftxfont_default_fid.
23701 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
23702 (ftxfont_done_face): Free only GCs that are created by
23703 ftxfont_create_gcs.
23704 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
23705
23706 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
23707 Clip to src->width, etc (not src->clip_XXX).
23708
23709 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
23710 FontBackend frame parameter.
23711
237122008-02-01 Kenichi Handa <handa@m17n.org>
23713
23714 * font.h (struct font_driver_list): New member `on'.
23715 (Fclear_font_cache): EXFUN it.
23716 (font_update_drivers): Extern it.
23717
23718 * font.c (font_unparse_fcname): Fix typo (swidth->width).
23719 (font_list_entities): Check driver_list->on.
40b1a3a9 23720 (register_font_driver): Initialize `on' member to 0.
aac0c6e3
MR
23721 (font_update_drivers): New function.
23722 (Fclear_font_cache): Check driver_list->on.
23723
23724 * frame.h (Qfont_backend): Extern it.
23725 (x_set_font_backend): Extern it.
23726
23727 * frame.c (Qfont_backend): New variable.
23728 (frame_parms): New element for font-backend.
23729 (x_set_font_backend): New function.
23730
23731 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
23732 FontBackend frame parameter.
23733 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
23734 x_set_font_backend.
23735
23736 * xfont.c (xfont_list): Don't try listing by :name property if the
23737 name is not for XLFD.
23738
237392008-02-01 Kenichi Handa <handa@m17n.org>
23740
23741 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
23742 (LGLYPH_SET_TO): New macros.
23743 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
23744 element of G is vector or not.
23745 (font_at): Extern it.
23746
23747 * font.c: Include window.h.
23748 (font_lispy_object): New function.
23749 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
23750 end of valid glyph.
23751 (font_close_object): Fix getting (struct font *).
23752 (font_at): New function.
23753 (Ffont_get): If FONT is a font-object, get entity from it.
23754 (Ffont_make_gstring): Initialize elements of glyphs with nil.
bba3e508
SM
23755 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX.
23756 Fix range check.
aac0c6e3
MR
23757 (Ffont_at): New function.
23758 (syms_of_font): Defsubr Sfont_at.
23759
23760 * xdisp.c (it_props): Move the entry for Qauto_composed to just
23761 before the entry for Qcomposition.
23762 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
23763 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
23764 the font in gstring.
23765 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
23766 LGLYPH_FORM (g) to detect the end of valid glyph.
23767 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
23768 we are composing with gstring.
23769
23770 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
23771 Check if adjustment is vector or not.
23772
23773 * Makefile.in (font.o): Make it depends on window.h.
23774
237752008-02-01 Kenichi Handa <handa@m17n.org>
23776
23777 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
23778 adjustment is vector or not.
23779
237802008-02-01 Miles Bader <miles@gnu.org>
23781
23782 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
23783
237842008-02-01 Kenichi Handa <handa@m17n.org>
23785
23786 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
bba3e508 23787 (LGLYPH_SET_WIDTH): Adjust for the change of LGLYPH format.
aac0c6e3
MR
23788 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
23789
23790 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
23791 (DEVICE_DELTA): Fix typo.
23792 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
23793 LGLYPH format.
23794
23795 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
23796 the change of LGLYPH format.
23797
237982008-02-01 Kenichi Handa <handa@m17n.org>
23799
23800 * ftfont.c (ftfont_list): Fix typo.
23801 (ftfont_build_basic_charsets): Don't include letters with diacritics.
23802
238032008-02-01 Jan Djärv <jan.h.d@swipnet.se>
23804
23805 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
23806
23807 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
23808 xftface_info is non-NULL.
23809
238102008-02-01 Jan Djärv <jan.h.d@swipnet.se>
23811
23812 * ftfont.c (ftfont_list): Move misplaced #endif.
23813
238142008-02-01 Kenichi Handa <handa@m17n.org>
23815
23816 * ftfont.c (ftfont_list): Pay attention to the case that
23817 FC_CAPABILITY is not defined.
23818
238192008-02-01 Kenichi Handa <handa@m17n.org>
23820
23821 * xftfont.c (xftfont_open): Set charset related members to -1.
23822
23823 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
23824 QCname.
23825 (ftfont_open): Set charset related members to -1.
23826
23827 * fontset.c (Votf_script_alist): New variable.
23828 (syms_of_fontset): Initialize it.
23829 (fontset_font): Delete unused variable.
23830
23831 * fontset.h (Votf_script_alist): Extern it.
23832
23833 * font.c (font_find_for_lface): Optimize code.
23834
23835 * font.h (font_close_object, font_merge_old_spec): Extern them.
23836
238372008-02-01 Kenichi Handa <handa@m17n.org>
23838
23839 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
23840 (syms_of_font): Initialize them.
23841 (font_pixel_size): Allow float value in dpi.
23842 (font_prop_validate_type): Delete.
23843 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
23844 Change caller.
23845 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
23846 (font_prop_validate_extra): Delete.
23847 (font_prop_validate_spacing): New function.
23848 (font_property_table): Add elements for all known properties.
bba3e508
SM
23849 (get_font_prop_index): Rename from check_font_prop_name.
23850 New argument FROM. Change caller.
aac0c6e3
MR
23851 (font_prop_validate): Validate all known properties.
23852 (font_put_extra): Delete argument force. Change caller.
23853 (font_expand_wildcards): Make it static. Fix the way of shrinking
23854 the possible range.
23855 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
23856 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
23857 Change caller.
23858 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
23859 (font_parse_fcname): Delete argument merge. Fix parsing of point
23860 size. Don't validate properties values here. Change caller.
23861 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
23862 (font_open_by_name): Delete unused variable.
23863 (Ffont_spec): Likewise. Validate property values.
23864 (Ffont_match_p): New function.
23865
23866 * font.h (QCscalable): Extern it.
23867 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
23868
23869 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
23870
23871 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
23872 (xfont_list_pattern): New function.
23873 (xfont_list): Use xfont_list_pattern.
23874
238752008-02-01 Kenichi Handa <handa@m17n.org>
23876
23877 * font.h (Flist_fonts): EXFUN it.
23878
238792008-02-01 Jason Rumney <jasonr@gnu.org>
23880
23881 * w32term.c (w32_initialize): Add back smoothing_type and
23882 smoothing_enabled definitions.
23883
238842008-02-01 Kenichi Handa <handa@m17n.org>
23885
23886 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
23887 s->face->font on determining underline position.
23888
238892008-02-01 Kenichi Handa <handa@m17n.org>
23890
23891 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
23892 (font_has_char): Accept font-object too.
23893 (font_find_for_lface): Try at first with a size specified in face.
23894
238952008-02-01 Kenichi Handa <handa@m17n.org>
23896
23897 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
23898 font_open_by_name.
23899
239002008-02-01 Kenichi Handa <handa@m17n.org>
23901
23902 * font.h (QCspacing, QCdpi): Extern them.
23903 (enum font_spacing): New enum.
23904 (FONT_PIXEL_SIZE_QUANTUM): New macro.
23905
23906 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
23907 (QCspacing, QCdpi): New variables.
23908 (syms_of_font): Initialize them.
23909 (font_pixel_size): New function.
23910 (font_put_extra): New function.
23911 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
23912 in FONT_EXTRA.
23913 (font_parse_fcname): Handle enumerated values (e.g. bold).
23914 Fix handling font size. Add QCname property that contains only
23915 unknown properties.
23916 (font_score): Change argument. Change caller. Pay attention to
23917 FONT_PIXEL_SIZE_QUANTUM.
23918 (font_sort_entites, font_list_entities, font_find_for_lface)
23919 (font_open_for_lface, font_open_by_name): Fix handling of font size.
23920 (Ffont_spec): Add QCname property that contains only unknown properties.
23921
bba3e508
SM
23922 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq.
23923 Don't include weight in listing pattern, instead check weight of each
aac0c6e3
MR
23924 listed font. Don't include scalable in pattern. Pay attention to
23925 FONT_PIXEL_SIZE_QUANTUM.
23926
239272008-02-01 Kenichi Handa <handa@m17n.org>
23928
23929 * font.c (font_parse_fcname): Fix parsing of point-size.
23930 (font_unparse_fcname): Produce symbolic names for style properties.
23931 (font_list_entities): Handle float size correctly.
23932 (font_open_by_name): Prefer `normal' property values if the name
23933 doesn't specify them.
23934
23935 * fontset.c (Finternal_char_font): Use font_get_name, not
23936 Ffont_xlfd_name.
23937
23938 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
23939 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
23940 pattern. Don't force scalable.
23941
23942 * xftfont.c (xftfont_open): For generating a name, start from
23943 96-byte buffer.
23944
239452008-02-01 Jan Djärv <jan.h.d@swipnet.se>
23946
23947 * frame.h (x_new_fontset2): Fix prototype.
23948
239492008-02-01 Kenichi Handa <handa@m17n.org>
23950
23951 * font.h (struct font_driver): Delete member parse_name.
23952 (font_match_p, font_get_spec, font_parse_fcname)
23953 (font_unparse_fcname): Extern them.
23954 (font_get_name): Adjust prototype.
23955
23956 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
23957 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
bba3e508
SM
23958 (font_expand_wildcards): Fix handling ENCODING field.
23959 Avoid unnecessary checks for weight, slant, and swidth.
aac0c6e3
MR
23960 (font_parse_fcname): New function.
23961 (font_unparse_fcname): New function.
23962 (font_parse_name): New function.
23963 (font_match_p): New function.
23964 (font_get_name): Change return value to Lisp string.
23965 (font_get_spec): New function.
23966 (Qunspecified, Qignore_defface): Don't extern them.
23967 (font_find_for_lface): Assume that LFACE is fully specified.
23968 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
23969 object, use it for FACE.
23970 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
23971 driver->parse_name.
23972 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
23973
23974 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
23975 prototype.
23976
23977 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
23978 argument F. Don't call Fnew_fontset. Instead, directly call
23979 make_fontset.
23980
23981 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
23982
23983 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
23984 of x_new_fontset2.
23985
23986 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
23987 (Qsans__serif): New variables.
23988 (ftfont_generic_family_list): New variable.
23989 (syms_of_ftfont): Initialize the above variables.
23990 (ftfont_pattern_entity): Delete argument NAME.
23991 (ftfont_list_generic_family): New function.
23992 (ftfont_parse_name): Delete this function.
23993 (ftfont_list): Try generic family only when FcFontList found no font.
23994 (ftfont_list_family): Fix args to FcObjectSetBuild.
23995
23996 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
23997 object in attrs[LFACE_FONT_INDEX].
23998 (set_lface_from_font_name): Cancel all changes for font-backend.
23999 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
24000 function.
24001 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
24002 font object in QCfont attribute.
24003 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
24004 (realize_default_face) [USE_FONT_BACKEND]: Call
24005 set_lface_from_font_and_fontset.
24006
24007 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
24008 "fixed", and signal error here if no suitable font was found.
24009
24010 * xfont.c (xfont_parse_name): Delete this function.
24011
24012 * xftfont.c (xftfont_open): Change coding style of error
24013 handling. Generate fontconfig's fontname pattern.
24014
24015 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
24016 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
24017
24018 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
24019 Both args FONTSET and FONT_OBJECT must be existing ones.
24020
240212008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24022
24023 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
24024
240252008-02-01 Kenichi Handa <handa@m17n.org>
24026
24027 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
24028
24029 * font.h (struct font): Fix typo.
24030
24031 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
24032 XLFD_XXX_INDEX.
24033 (enum xlfd_field_mask): New enum.
ef1b0ba7 24034 (intern_font_field): Change argument. Change caller. If digits
aac0c6e3
MR
24035 are followed by non-digits, return a symbol.
24036 (font_expand_wildcards): New function.
24037 (font_parse_xlfd): Fix wildcard handling.
24038 (Ffont_spec): If :name is specified, reflect the info in the other
24039 properties.
24040
24041 * ftfont.c (ftfont_pattern_entity): Fix typo.
24042 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
24043 locale.
24044
240452008-02-01 Kenichi Handa <handa@m17n.org>
24046
24047 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
24048
24049 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
24050 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
24051 registry doesn't specify encoding part.
24052 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
24053 (font_open_by_name): At first try parsing the name.
24054 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
24055 as Lisp symbols.
24056
24057 * fontset.c (reorder_font_vector): Pay attention to the case that
24058 the 3rd element of font_def is nil.
24059 (fontset_font): For the default fontset, append one more fontset
24060 elements for a script-based font specification. Don't add script
24061 attribute on finding a font.
24062 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
24063 font name.
24064 (fontset_ascii_font): If a font can't be opened, return nil.
24065
24066 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
24067 (ftfont_pattern_entity): New function.
24068 (ftfont_get_cache): Assume that freetype_font_cache is already
24069 initialized.
24070 (ftfont_list): Handle the case that a file is specified in font
24071 name. Use ftfont_pattern_entity to generate entities.
24072 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
24073 (syms_of_ftfont): Initialize freetype_font_cache.
24074
24075 * xftfont.c (xftfont_open): Make the font name fontconfig's
24076 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
24077 (xftfont_close): Free font->font.name if not NULL.
24078
24079 * xfont.c (xfont_list): If script is specified for a font, return
24080 null_vector.
24081 (xfont_list_family): Declare argument type.
24082
24083 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
24084 name, set LFACE_FONT (lface) to nil.
24085
24086 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
24087 return Qnil.
24088
240892008-02-01 Kenichi Handa <handa@m17n.org>
24090
24091 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
24092 (standard_args): Add "-enable-font-backend".
24093
240942008-02-01 Kenichi Handa <handa@m17n.org>
24095
24096 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
24097 (struct xftdraw_list, xftdraw_list): Delete them.
24098 (register_xftdraw, check_xftdraw): Delete them.
24099 (xftfont_prepare_face): Don't call register_xftdraw.
24100 (xftfont_done_face): Don't call check_xftdraw.
24101 (xftfont_draw): Get background color only when with_background is
24102 nonzero.
24103
24104 * xfont.c (xfont_encode_char): Fix calculation of char2b.
24105
241062008-02-01 Kenichi Handa <handa@m17n.org>
24107
24108 These changes are for the new font handling codes.
24109
24110 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
24111 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
24112 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
24113 (FONTSRC, FONTOBJ): New variables.
24114 (obj): Add $(FONTOBJ).
24115 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
24116 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
24117 @LIBOTF_LIBS@.
24118 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
24119 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
24120
24121 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
24122
24123 * character.h (Vscript_representative_chars): Extern it.
24124
24125 * character.c (Vscript_representative_chars): New variable.
24126 (syms_of_character): Declare it as a Lisp variable.
24127
24128 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
24129 enable_font_backend is nonzero, accept the composition method
24130 COMPOSITION_WITH_GLYPH_STRING.
24131
24132 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
24133 enumeration COMPOSITION_WITH_GLYPH_STRING.
24134
24135 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
24136 members clip_x, clip_y, clip_width, and clip_height.
24137 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
24138
24139 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
24140 --enable-font-backend. Call syms_of_font.
24141
24142 * fns.c (assoc_no_quit): New function.
24143
24144 * fontset.h (FONT_INFO_FROM_FACE): New macro.
24145 (face_for_font, new_fontset_from_font)
24146 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
24147
24148 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
24149 (fontset_font, fontset_ascii, face_for_char)
24150 (make_fontset_for_ascii_face, Ffont_info)
24151 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
24152 is nonzero, use font-backend mechanism.
24153 (find_font_encoding): Make it non-static.
24154 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
24155 New functions.
24156
24157 * frame.h (struct frame): New members resx and resy.
24158 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
24159 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
24160
24161 * frame.c [USE_FONT_BACKEND]: Include "font.h".
24162 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
24163
24164 * lisp.h (assoc_no_quit): Extern it.
24165
24166 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
24167 Through out the file, use FONT_INFO_FROM_FACE instead of
24168 FONT_INFO_FROM_ID, use get_per_char_metric instead of
24169 rif->per_char_metric.
24170 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
24171 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
24172 (get_glyph_face_and_encoding, fill_composite_glyph_string)
24173 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
24174 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
24175 nonzero, use font-backend mechanism.
24176 (get_per_char_metric): New function.
24177
24178 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
24179 (set_lface_from_font_name)
24180 (set_font_frame_param, free_realized_face)
24181 (prepare_face_for_display, clear_face_gcs)
24182 (Finternal_set_font_selection_order, realize_x_face)
24183 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
24184 font-backend mechanism.
24185 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
24186 (load_face_font) [USE_FONT_BACKEND]: Abort.
24187 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
24188 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
24189
24190 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
24191 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
24192 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
bba3e508
SM
24193 nonzero, register all available font drivers.
24194 Call x_default_font_parameter for deciding a font.
aac0c6e3
MR
24195 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
24196
24197 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
24198 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
24199 (x_set_glyph_string_clipping_exactly)
24200 (x_compute_glyph_string_overhangs)
24201 (x_draw_glyph_string_foreground)
24202 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
24203 (x_free_frame_resources) [USE_FONT_BACKEND]: If
24204 enable_font_backend is nonzero, use font-backend mechanism.
24205 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
24206
242072008-02-01 Kenichi Handa <handa@m17n.org>
24208
24209 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
24210 system_eol_type.
24211 (syms_of_coding): Initialize system_eol_type.
24212
24213 * process.c (Fset_process_coding_system): Inherit system's eol
24214 format if necessary.
24215
242162008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24217
24218 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
24219
242202008-02-01 Kenichi Handa <handa@m17n.org>
24221
24222 * coding.c (decode_eol): Pay attention to buffer relocation in
24223 del_range_2.
24224 (decode_coding): Call decode_eol before restoring undo_list.
24225
242262008-02-01 Kenichi Handa <handa@m17n.org>
24227
24228 * charset.c (Fdefine_charset_internal): Fix setting of
24229 emacs_mule_bytes.
24230
242312008-02-01 Kenichi Handa <handa@m17n.org>
24232
24233 * keyboard.c (read_char): Check if C is a character or not before
24234 looking up Vkeyboard_translate_table.
24235
242362008-02-01 Kenichi Handa <handa@m17n.org>
24237
bba3e508
SM
24238 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION):
24239 Fix condition to terminate the loop.
aac0c6e3
MR
24240
242412008-02-01 Kenichi Handa <handa@m17n.org>
24242
24243 * coding.c (produce_composition): Compare charbuf[i] instead of
24244 args[i] against 0.
24245 (Fterminal_coding_system): Use EQ to compare Lisp objects.
24246
242472008-02-01 Kenichi Handa <handa@m17n.org>
24248
24249 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
24250 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
24251 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
24252 detect_coding.
24253 (emacs_mule_char): Handle old style (Emacs 20) component character
24254 of a composition.
24255 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
24256 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
24257 composition rule.
24258 (decode_coding_emacs_mule): Handle invalid bytes correctly.
24259
242602008-02-01 Kenichi Handa <handa@m17n.org>
24261
24262 * coding.c (encode_coding_ccl): Allocate destination dynamically
24263 when necessary.
24264
242652008-02-01 Kenichi Handa <handa@m17n.org>
24266
24267 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
24268 the loop. When quitted, show a proper error message.
24269
242702008-02-01 Kenichi Handa <handa@m17n.org>
24271
bba3e508
SM
24272 * xterm.c (x_set_glyph_string_clipping_exactly):
24273 Set src->clip_head and src->clip_tail temporarily instead of src->hl.
aac0c6e3
MR
24274
24275 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
24276 character sequence.
24277 (Fccl_execute_on_string): Use ASET, not XSET.
24278
242792008-02-01 Kenichi Handa <handa@m17n.org>
24280
24281 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
24282
242832008-02-01 Kenichi Handa <handa@m17n.org>
24284
24285 * coding.c (decode_coding): Fix the condition of terminating the
24286 decoding loop.
24287
242882008-02-01 Kenichi Handa <handa@m17n.org>
24289
24290 * data.c (Faset): On setting a character bigger than 255 in a
24291 unibyte string, signal an error instead of make the string multibyte.
24292
242932008-02-01 Kenichi Handa <handa@m17n.org>
24294
24295 * charset.c (map_charset_chars): Fix for ascii-compatible charset
24296 made by a mapping table.
24297
242982008-02-01 Kenichi Handa <handa@m17n.org>
24299
24300 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
24301 not.
24302 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
24303 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
24304
bba3e508
SM
24305 * xterm.c (x_draw_composite_glyph_string_foreground):
24306 Check s->face is NULL or not.
aac0c6e3
MR
24307
243082008-02-01 Kenichi Handa <handa@m17n.org>
24309
24310 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
24311 (x_draw_glyph_string): Fix drawing of right_overhang and
24312 left_overhang around/on cursor.
24313
24314 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
24315
243162008-02-01 Kenichi Handa <handa@m17n.org>
24317
24318 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
24319
243202008-02-01 Kenichi Handa <handa@m17n.org>
24321
24322 * coding.c (Fdefine_coding_system_internal)
24323 (Fdefine_coding_system_alias): Avoid a duplicated element in
24324 Vcoding_system_alist.
24325
243262008-02-01 Kenichi Handa <handa@m17n.org>
24327
24328 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
24329
24330 * coding.c (Qcoding_system_define_form): New variable.
24331 (syms_of_coding): Intern and staticpro it.
24332 (Fcoding_system_p): Check Qcoding_system_define_form.
24333 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
24334
24335 * coding.h (CODING_SYSTEM_P): If ID is not available, call
24336 Fcoding_system_p.
24337 (CHECK_CODING_SYSTEM): If ID is not available, call
24338 Fcheck_coding_system.
24339 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
24340 Try also Fcheck_coding_system.
24341
243422008-02-01 Kenichi Handa <handa@m17n.org>
24343
24344 * coding.c (code_conversion_restore): GCPRO arg.
24345
243462008-02-01 Kenichi Handa <handa@m17n.org>
24347
24348 * character.c (lisp_string_width): Check multibyteness of STRING.
24349
243502008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24351
24352 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
24353 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
24354 (decode_mac_font_name): Use decode_coding_c_string instead of
24355 decode_coding.
bba3e508
SM
24356 (x_load_font): Initialize fontp->fontset to -1.
24357 Set fontp->encoding_type.
aac0c6e3
MR
24358
243592008-02-01 Kenichi Handa <handa@m17n.org>
24360
24361 * search.c (search_buffer): Give up BM search on case-fold-search
24362 if one of a target character has a case-equivalence of different
3b59c351 24363 byte length even if that target character is an ASCII.
aac0c6e3
MR
24364 (simple_search): Fix calculation of byte length of matched text.
24365 (boyer_moore): Fix handling of case-equivalent multibyte characters.
24366
243672008-02-01 Kenichi Handa <handa@m17n.org>
24368
24369 * coding.c (decode_coding): Fix handling of invalid bytes.
24370
243712008-02-01 Kenichi Handa <handa@m17n.org>
24372
24373 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
24374 Unicode characters.
24375
243762008-02-01 Kenichi Handa <handa@m17n.org>
24377
24378 * coding.c (encode_coding_object): If a pre-write-conversion
24379 function makes a new buffer, kill it.
24380
243812008-02-01 Kenichi Handa <handa@m17n.org>
24382
24383 * coding.c (QCascii_compatible_p): New variable.
24384 (syms_of_coding): Initialize it.
24385 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
24386 calling string_char.
24387 (record_conversion_result): Add `default:' case.
24388 (coding_charset_list): Delete unused variable `coding_type'.
24389 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
24390 property in the plist of the coding system.
24391 (Fcoding_system_put): Check QCascii_compatible_p.
24392
243932008-02-01 Miles Bader <miles@gnu.org>
24394
24395 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
24396 removed calculation of frame `f', as it's now used.
24397
243982008-02-01 Kenichi Handa <handa@m17n.org>
24399
24400 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
24401 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
24402 (UNIDATA): New variable.
24403 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
bba3e508
SM
24404 (bootstrap-emacs${EXEEXT}): Depends on charprop.el.
24405 Run $(RUN_TEMACS) unconditionally.
aac0c6e3
MR
24406
244072008-02-01 Kenichi Handa <handa@m17n.org>
24408
24409 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
24410 (admindir): New variable.
24411 ($(lispsource)international/charprop.el): New target.
24412
244132008-02-01 Miles Bader <miles@gnu.org>
24414
24415 * character.c (chars-in-region): Remove obsolete function.
24416 (syms_of_character): Remove its initialization.
24417
244182008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
24419
24420 * w32select.c (validate_coding_system)
24421 (setup_windows_coding_system): New functions.
bba3e508
SM
24422 (convert_to_handle_as_coded, Fw32_get_clipboard_data):
24423 Use setup_windows_coding_system.
24424 (setup_config, Fw32_get_clipboard_data):
24425 Use validate_coding_system.
aac0c6e3
MR
24426 (Fx_selection_exists): Move call to setup_config to a place
24427 where signals are allowed.
24428
24429 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
24430 (Fcheck_coding_system): Add declarations.
24431
244322008-02-01 Kenichi Handa <handa@m17n.org>
24433
24434 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
24435
244362008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24437
24438 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
24439 string as the second argument for x_new_fontset.
24440
244412008-02-01 Kenichi Handa <handa@m17n.org>
24442
24443 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
24444 (encode_coding_object): Use safe_call instead of call2.
24445
244462008-02-01 Kenichi Handa <handa@m17n.org>
24447
24448 * fontset.c (Fset_fontset_font): Check family element of a given vector.
24449
24450 * Makefile.in (lisp): Include charprop.el.
24451
244522008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24453
24454 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
24455 Not sure if it's unnecessary.
24456
244572008-02-01 Steven Tamm <steventamm@mac.com>
24458
24459 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
24460 some possibly unnecessary fontset checking code that crashed
24461 when creating a new frame.
24462
244632008-02-01 Kenichi Handa <handa@m17n.org>
24464
24465 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
24466 lookup_face.
24467
24468 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
24469
24470 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
24471
244722008-02-01 Kenichi Handa <handa@m17n.org>
24473
24474 * coding.c: Cancel the change done in HEAD on 2008-02-01.
24475 (coding_charset_list): New function.
24476
24477 * coding.h (coding_charset_list): Extern it.
24478
244792008-02-01 Kenichi Handa <handa@m17n.org>
24480
24481 * fontset.c (Fset_fontset_font): Call find_font_encoding with
24482 concatenation of family and registry.
24483
244842008-02-01 Kenichi Handa <handa@m17n.org>
24485
24486 * character.h (BYTE8_STRING): Fix typo.
24487
24488 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
24489 string to multibyte (sync to HEAD).
24490
24491 * casefiddle.c (casify_region): Handle changes in byte-length
24492 using replace_range_2 (sync to HEAD).
24493
244942008-02-01 Andreas Schwab <schwab@suse.de>
24495
24496 * chartab.c (map_char_table): GCPRO table and arg.
24497
244982008-02-01 Kenichi Handa <handa@m17n.org>
24499
24500 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
24501 already at limit.
24502
245032008-02-01 Kenichi Handa <handa@m17n.org>
24504
24505 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
24506 instead of fast_c_string_match_ignore_case.
bba3e508
SM
24507 (find_font_encoding): Change argument to Lisp_Object.
24508 Use fast_string_match_ignore_case instead of
aac0c6e3
MR
24509 fast_c_string_match_ignore_case. Change caller.
24510
245112008-02-01 Kenichi Handa <handa@m17n.org>
24512
24513 * xdisp.c (get_next_display_element): In unibyte case, decide to
24514 display in octal form by checking a character by
24515 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
24516
24517 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
24518
24519 * character.c (unibyte_has_multibyte_table): New variable.
24520
24521 * character.h (unibyte_has_multibyte_table): Extern it.
24522 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
24523
245242008-02-01 Kenichi Handa <handa@m17n.org>
24525
24526 * coding.c (encode_coding_iso_2022): Fix handling of charset
24527 annotation.
24528
245292008-02-01 Kenichi Handa <handa@m17n.org>
24530
24531 * coding.c (setup_coding_system): If coding_system is nil, use
24532 Qundecided.
24533 (Fterminal_coding_system): Return nil if terminal coding system is
24534 `undecided'.
bba3e508
SM
24535 (syms_of_coding): Define coding-system `undecided' here.
24536 Setup terminal_coding as `undecided'.
aac0c6e3
MR
24537
245382008-02-01 Kenichi Handa <handa@m17n.org>
24539
bba3e508
SM
24540 * xdisp.c (message_dolog, set_message_1):
24541 Call unibyte_char_to_multibyte with arg type int.
aac0c6e3
MR
24542
24543 * lread.c (read1): Fix reading of a char-table.
24544
24545 * print.c (print_object): Include sub char-table in circularities
24546 detection.
24547
245482008-02-01 Kenichi Handa <handa@m17n.org>
24549
24550 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
24551 Append the found sequences in car of ARGS instead of prepending.
24552
245532008-02-01 Kenichi Handa <handa@m17n.org>
24554
24555 * fileio.c (report_file_error): Make a unibyte string from
24556 strerror (errorno).
24557 (Fsubstitute_in_file_name): Fix the arg to
24558 unibyte_char_to_multibyte. It is evaluated twice.
24559
245602008-02-01 Kenichi Handa <handa@m17n.org>
24561
24562 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
24563
245642008-02-01 Kenichi Handa <handa@m17n.org>
24565
24566 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
24567 BOM is not found.
24568 (detect_coding, detect_coding_system): Optimization for ISO-2022
24569 when no 8-bit data is found.
24570
245712008-02-01 Jason Rumney <jasonr@gnu.org>
24572
24573 * w32fns.c (x_to_w32_font): Update to use new coding struct.
24574
245752008-02-01 Kenichi Handa <handa@m17n.org>
24576
24577 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
24578 CHARS.
24579
245802008-02-01 Steven Tamm <steventamm@mac.com>
24581
24582 * macterm.c (mac_encode_char): Add charset argument and update
24583 to use encoding_type.
24584 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
24585 switch to pure fontset.
24586 (decode_mac_font_name): Temporarily remove decoding.
24587 (x_font_name_to_mac_font_name): Temporarily remove encoding.
24588 (x_load_font): Temporarily remove encoding.
24589
245902008-02-01 Kenichi Handa <handa@m17n.org>
24591
24592 * xfaces.c (Fface_font): If frame is not on a window system,
24593 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
24594 refer to face->font.
24595 (split_font_name_into_vector, build_font_name_from_vector)
24596 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
24597 when HAVE_WINDOW_SYSTEM is defined.
24598
245992008-02-01 Kenichi Handa <handa@m17n.org>
24600
24601 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
24602 (x_produce_glyphs): Fix setting of members of cmp in case
24603 cmp->glyph_len is zero.
24604
24605 * fontset.c (Fset_fontset_font): Fix docstring.
24606 (Ffontset_info): Make it backward compatible. New arg ALL.
24607
246082008-02-01 Kim F. Storm <storm@cua.dk>
24609
24610 * process.c (read_process_output): Grow decoding_buf when needed;
24611 this could cause a crash in allocate_string and compact_small_strings.
24612
246132008-02-01 Kenichi Handa <handa@m17n.org>
24614
24615 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
24616
246172008-02-01 Kenichi Handa <handa@m17n.org>
24618
24619 * coding.c (setup_coding_system): Set coding->common_flags
24620 correctly for raw-text.
24621 (consume_chars): On encoding unibyte text by raw-text, don't check
24622 multibyte form.
24623 (encode_coding): On encoding by raw-text, never use translation tables.
24624
24625 * fileio.c (e_write): Short cut for the case of no encoding.
24626
246272008-02-01 Kenichi Handa <handa@m17n.org>
24628
24629 * coding.c (detect_coding, detect_coding_system): Delete unused
24630 variables.
24631
246322008-02-01 Kenichi Handa <handa@m17n.org>
24633
24634 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
24635 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
24636
246372008-02-01 Kenichi Handa <handa@m17n.org>
24638
bba3e508
SM
24639 * coding.c (Ffind_coding_systems_region_internal):
24640 Include raw-text and no-conversion in the result.
aac0c6e3
MR
24641
246422008-02-01 Kenichi Handa <handa@m17n.org>
24643
24644 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
24645 (load_font_get_repertory): Delete unnecessary check of ENCODING of
24646 FONT_DEF.
24647 (font_def_arg, add_arg, from_arg, to_arg): New args.
24648 (set_fontset_font): Change argument.
24649 (Fset_fontset_font): Fix for the case that TARGET is a script
24650 name and charset name.
24651 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
24652
246532008-02-01 Kenichi Handa <handa@m17n.org>
24654
24655 * fontset.c (fontset_font): Rename from fontset_face. Change return
24656 value.
24657 (face_suitable_for_char_p, face_for_char): Adjust for the change
24658 of fontset_font.
24659 (make_fontset_for_ascii_face): Fix setting of the fontset element
24660 for ASCII.
24661 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
24662 to get a font name.
24663 (Ffontset_info): Adjust for the change of fontset_font.
24664
24665 * coding.c (emacs_mule_char): Check invalid code more rigidly.
24666
24667 * character.h (LEADING_CODE_LATIN_1_MIN)
24668 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
24669
246702008-02-01 Kenichi Handa <handa@m17n.org>
24671
24672 * editfns.c (check_translation): New function.
24673 (Ftranslate_region_internal): Handle M:N mapping.
24674
246752008-02-01 Kenichi Handa <handa@m17n.org>
24676
24677 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
24678
246792008-02-01 Kenichi Handa <handa@m17n.org>
24680
24681 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
24682 goto invalid_code.
24683 (decode_coding_iso_2022): Fix handling of invalid designation.
24684
24685 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
24686 after calling code_conversion_save.
24687
246882008-02-01 Kenichi Handa <handa@m17n.org>
24689
24690 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
24691
24692 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
24693
24694 * fontset.c: Include "intervals.h".
24695 (fontset_face): Fix comparing of Lisp_Objects.
bba3e508
SM
24696 (free_face_fontset, new_fontset_from_font_name):
24697 Fix Lisp_Object/int mixup.
aac0c6e3
MR
24698
24699 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
24700
24701 * coding.c: Add many prototypes for static functions.
24702 (get_translation_table): Allow max_lookup to be NULL.
24703 (decode_coding, Ffind_coding_systems_region_internal)
bba3e508
SM
24704 (Funencodable_char_position, Fcheck_coding_systems_region):
24705 Call get_translation_table with max_lookup NULL.
aac0c6e3
MR
24706
247072008-02-01 Kenichi Handa <handa@m17n.org>
24708
24709 * coding.c (get_translation_table): Declare it as Lisp_Object.
24710 (LOOKUP_TRANSLATION_TABLE): New macro.
24711 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
24712 instead of CHAR_TABLE_REF.
24713
247142008-02-01 Kenichi Handa <handa@m17n.org>
24715
24716 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
24717 annotation data format.
24718 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
24719 Change arguments FROM and TO to single argument NCHARS. Change caller.
24720 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
24721 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
24722 (decode_coding_ccl, decode_coding_charset): Pay attention to
24723 coding->charbuf_used.
24724 (get_translation): New function.
24725 (produce_chars): New arguments translation_table and last_block.
24726 Translate characters here. Return number of carryover chars.
24727 Change caller.
24728 (produce_composition): New argument pos. Change caller.
24729 Adjust for the change of annotation data format.
24730 (produce_charset, produce_annotation): Likewise.
24731 (decode_coding, encode_coding): Don't call translate_chars.
24732 (consume_chars): New arg translation_table. Change caller.
24733 (translate_chars): Delete.
24734 (syms_of_coding): Make translation-table's number of extra slots 2.
24735
247362008-02-01 Kenichi Handa <handa@m17n.org>
24737
24738 * search.c (simple_search): Fix setting this_pos_byte in backward
24739 search.
24740
24741 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
24742 byte sequence.
24743 (detect_coding_ccl): Fix setting of the variable valids.
24744
247452008-02-01 Kenichi Handa <handa@m17n.org>
24746
24747 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
24748
24749 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
24750
24751 * editfns.c (Ftranslate_region_internal): Rename from
24752 Ftranslate_region. Accept a char-table in TABLE.
24753 (syms_of_editfns): Defsubr Stranslate_region_internal.
24754
24755 * xfaces.c (set_lface_from_font_name): If a font is specified for
24756 a frame, generate a fontset from the font.
24757 (build_scalable_font_name): If the scalable font is requested for
24758 a specific size, don't change that size.
24759 (try_font_list): Try a scalable font also in the case that a
24760 pattern string is specified.
24761
247622008-02-01 Kenichi Handa <handa@m17n.org>
24763
24764 * xfaces.c (Fface_font): New optional arg CHARACTER.
24765
247662008-02-01 Kenichi Handa <handa@m17n.org>
24767
24768 * charset.h (CHARSET_OFFSET): New macro.
24769
247702008-02-01 Kenichi Handa <handa@m17n.org>
24771
24772 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
24773
24774 * fontset.c (fontset_face): Handle the case that repertory is a
24775 char-table.
24776 (find_font_encoding): Return nil for unknown encoding.
24777 (Fset_fontset_font): Ignore a font of unknown encoding.
24778
247792008-02-01 Kenichi Handa <handa@m17n.org>
24780
24781 * keymap.c (describe_vector): Handle default value of a char table.
24782
24783 * fontset.c (fontset_face): Handle fallback fonts correctly.
24784 (Ffontset_info): Return infomation about fallback fonts.
24785
247862008-02-01 Kenichi Handa <handa@m17n.org>
24787
24788 * fontset.c (FONTSET_DEFAULT): New macro.
24789 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
24790 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
24791 the case that it is nil.
24792 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
24793 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
24794
24795 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
24796 subset or superset.
24797
247982008-02-01 Kenichi Handa <handa@m17n.org>
24799
24800 * emacs.c (main): Call init_charset after syms_of_XXX.
24801
24802 * charset.c (Vcharset_map_directory): Delete.
24803 (Vcharset_map_path): New variable.
24804 (load_charset_map_from_file): Use Vcharset_map_path instead.
24805 (init_charset): Initialize Vcharset_map_path.
24806 (syms_of_charset): Delete declaration of "charset-map-directory",
24807 add declaration of "charset-map-path".
24808
248092008-02-01 Kenichi Handa <handa@m17n.org>
24810
24811 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
24812 ASCII only string.
24813
24814 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
24815
24816 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
24817 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
24818
248192008-02-01 Kenichi Handa <handa@m17n.org>
24820
24821 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
24822
24823 * coding.c (QCmnemonic, QCdefalut_char)
24824 (QCdecode_translation_table, QCencode_translation_table)
24825 (QCpost_read_conversion, QCpre_write_conversion): New variables.
24826 (get_translation_table): Return a list of translation tables if
24827 necessary.
24828 (decode_coding): Call get_translation_table with ENCODEP 0.
24829 (char_encodable_p): If translation_table is non-nil, always call
24830 translate_char.
24831 (Fdefine_coding_system_internal): Accept list of translation
24832 tables as :encode-translation-table and :decode-translation-table.
24833 (Fcoding_system_put): New function.
bba3e508
SM
24834 (syms_of_coding): Declare new symbols.
24835 Defsubr Scoding_system_put.
aac0c6e3
MR
24836 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
24837 typically JISX0212.
24838
24839 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
24840 when the charset is superset type.
24841
24842 * character.c (translate_char): Accept list of translation tables.
24843
248442008-02-01 Kenichi Handa <handa@m17n.org>
24845
24846 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
24847 (CODING_ATTR_TRANS_TBL): New macro.
24848
24849 * coding.c (get_translation_table): New function.
24850 (translate_chars): Fix the bug of skipping annotation data.
24851 (decode_coding, encode_coding): Utilize get_translation_table.
24852 (char_encodable_p, Funencodable_char_position): Translate char if
24853 necessary.
24854 (Ffind_coding_systems_region_internal)
24855 (Fcheck_coding_systems_region): Setup translation table for encode
24856 in a coding system attribute vector in advance.
24857 (Fdefine_coding_system_internal): Allow a symbol as translation
24858 table. For shift-jis type coding system, allow 4th charset.
24859
248602008-02-01 Kenichi Handa <handa@m17n.org>
24861
24862 * coding.c (decode_coding_sjis): Check the first byte rigidly.
24863
24864 * xdisp.c (get_next_display_element): Pass -1 as POS to
24865 FACE_FOR_CHAR if displaying a C-string.
24866
248672008-02-01 Kenichi Handa <handa@m17n.org>
24868
24869 * composite.c (get_composition_id): Handle xoff and yoff in a
24870 composition rule.
24871
24872 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
24873 (struct composition): New member lbearing and rbearing.
24874
24875 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
24876 (x_get_glyph_overhangs): Handle a composition glyph.
24877 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
24878
24879 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
24880 composition glyph.
24881
248822008-02-01 Kenichi Handa <handa@m17n.org>
24883
24884 * print.c: Include charset.h.
24885 (Vprint_charset_text_property): New variable.
24886 (Qdefault): Extern it.
24887 (PRINT_STRING_NON_CHARSET_FOUND)
24888 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
24889 (print_check_string_result): New variable.
24890 (print_check_string_charset_prop): New function.
24891 (print_prune_charset_plist): New variable.
24892 (print_prune_string_charset): New function.
24893 (print_object): Call print_prune_string_charset if
24894 Vprint_charset_text_property is not t.
24895 (print_interval): Print nothing if interval->plist is nil.
24896 (syms_of_print): Declare Vprint_charset_text_property as a lisp
24897 variable. Init and staticpro print_prune_charset_plist.
24898
248992008-02-01 Kenichi Handa <handa@m17n.org>
24900
24901 * fontset.c (new_fontset_from_font_name): Use the specified font
24902 for all characters in the new fontset.
24903
24904 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
24905 OBJECT args.
24906
24907 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
24908 OBJECT args for composition too.
24909
24910 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
24911 OBJECT args.
24912
249132008-02-01 Kenichi Handa <handa@m17n.org>
24914
24915 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
24916
24917 * fontset.c (reorder_font_vector): Adjust for the change of
24918 FONT_DEF format.
24919 (fontset_face): New arg id. Change caller.
24920 (face_for_char): New args pos and object.
24921 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
24922 (fs_query_fontset): Check NAME by Fassoc too.
24923 (Fset_fontset_font): Allow non-XLFD font name.
24924 (Ffontset_info): Adjust for the change of FONT_DEF format.
24925
24926 * fontset.h (face_for_char): Adjust prototype.
24927
24928 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
24929 (append_space, extend_face_to_end_of_line)
24930 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
24931 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
24932
24933 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
24934 POS and OBJECT args.
24935
24936 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
24937 POS and OBJECT args.
24938
249392008-02-01 Jason Rumney <jasonr@gnu.org>
24940
24941 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
24942 of GlobalAlloc'ed memory.
24943
249442008-02-01 Kenichi Handa <handa@m17n.org>
24945
24946 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
24947
24948 * charset.h (charset_table_used): Delete extern.
24949
24950 * charset.c (charset_table_used): Make it static.
24951 (map_charset_chars): Fix args to c_function with.
24952
24953 * chartab.c (map_sub_char_table_for_charset): Fix args to
24954 c_function with.
24955
bba3e508
SM
24956 * coding.h (enum coding_result_code):
24957 Delete CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
aac0c6e3
MR
24958
24959 * coding.c (Qinsufficient_source, Qinconsistent_eol)
24960 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
24961 (Vlast_code_conversion_error): New variables.
24962 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
24963 (ONE_MORE_BYTE): Record error if any instead of signaling an
24964 error. If non-ASCII multibyte char is found, return the negative
24965 value of the code. All callers changed to check it.
24966 (ONE_MORE_BYTE_NO_CHECK): Likewise.
24967 (record_conversion_result): New function. Change all codes setting
24968 coding->result to call this function.
24969 (detect_coding_utf_8, decode_coding_utf_8)
24970 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
24971 Don't use the local variable incomplete.
24972 (emacs_mule_char): Change the second arg to `const'.
24973 (decode_coding): Fix of flushing out unprocessed data.
24974 (make_conversion_work_buffer): Fix making of a work buffer.
24975 (decode_coding_object): Return coding->dst_object.
24976
24977 * fontset.c (set_fontset_font): Fix args.
24978
24979 * lisp.h (CHARACTERBITS): Define as 22.
24980
24981 * process.c (send_process): Be sure to set coding->src_multibyte.
24982
24983 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
24984
249852008-02-01 Kenichi Handa <handa@m17n.org>
24986
24987 * xdisp.c (handle_auto_composed_prop): Give limit to
24988 Fnext_single_char_property_change.
24989
249902008-02-01 Kenichi Handa <handa@m17n.org>
24991
24992 * composite.c (syms_of_composite): Don't make the composition hash
24993 table weak.
24994
24995 * fontset.c (Fset_fontset_font): Fix docstring.
24996
24997 * lisp.h (detect_coding_system): Adjust prototype.
24998
24999 * fileio.c (kill_workbuf_unwind): Delete this function.
25000 (Finsert_file_contents): Adjust the call of detect_coding_system.
25001 Get conversion_buffer by code_conversion_save. Use the macro
25002 CODING_MAY_REQUIRE_DECODING. After decoding, update
25003 coding_system.
25004
25005 * coding.h (make_conversion_work_buffer): Delete extern.
25006 (code_conversion_save): Extern it.
25007
25008 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
25009 (CODING_GET_INFO): Delete argument eol_type. Change callers.
25010 (decode_coding_utf_8): Don't do eol converion.
25011 (detect_coding_utf_16): Check coding->src_chars, not
25012 coding->src_bytes. Add heuristics for those that have no signature.
25013 (decode_coding_emacs_mule, decode_coding_iso_2022)
25014 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
25015 Don't do eol converion.
25016 (adjust_coding_eol_type): Return a new coding system.
25017 (detect_coding): Don't detect eol. Fix for utf-16 detection.
25018 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
25019 each change.
25020 (decode_coding): Pay attention to undo_list. Do eol conversion for
25021 all types of coding-systems (if necessary).
25022 (Vcode_conversion_work_buf_list): Delete it.
25023 (Vcode_conversion_reused_workbuf): Rename from
25024 Vcode_conversion_reused_work_buf.
25025 (Vcode_conversion_workbuf_name): New variable.
25026 (reused_workbuf_in_use): New variable.
25027 (make_conversion_work_buffer): Delete the arg DEPTH.
25028 (code_conversion_restore): Change argument to cons.
25029 (code_conversion_save): Delete the argument BUFFER. Change callers.
25030 (detect_coding_system): New argument src_chars. Change callers.
25031 Fix for utf-16 detection.
25032 (init_coding_once): Don't use ISO_carriage_return.
25033 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
25034 reused_workbuf_in_use.
25035
250362008-02-01 Kenichi Handa <handa@m17n.org>
25037
25038 * keymap.c (store_in_keymap): Pay attention to the case that idx
25039 is a cons specifying a character range.
25040
250412008-02-01 Kenichi Handa <handa@m17n.org>
25042
25043 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
25044 HANDLED_RECOMPUTE_PROPS.
25045
25046 * coding.c (Fdefine_coding_system_internal): Fix checking of
25047 ascii compatibility.
25048
250492008-02-01 Kenichi Handa <handa@m17n.org>
25050
25051 * charset.c (find_charsets_in_text): Delete unused locale variable.
25052 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
25053
25054 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
25055 Resync charset_list to Vemacs_mule_charset_list.
25056
25057 * keymap.c (store_in_keymap): Pay attention to the case that idx
25058 is a cons specifying a character range.
25059
250602008-02-01 Kenichi Handa <handa@m17n.org>
25061
25062 * composite.c (update_compositions): Bind inhibit-read-only, etc
25063 to t before calling remove-list-of-text-properties.
25064
25065 * print.c (print_object): Always print ASCII chars as is.
25066
250672008-02-01 Kenichi Handa <handa@m17n.org>
25068
25069 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
25070
25071 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
25072 is a char table.
25073
250742008-02-01 Kenichi Handa <handa@m17n.org>
25075
25076 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
25077
250782008-02-01 Kenichi Handa <handa@m17n.org>
25079
25080 * xfaces.c (set_lface_from_font_name): Fix for the case that
25081 FONTNAME is not fontset name.
25082
250832008-02-01 Kenichi Handa <handa@m17n.org>
25084
25085 * fns.c (base64_encode_1): Fix previous change.
25086
250872008-02-01 Kenichi Handa <handa@m17n.org>
25088
25089 * fontset.c (set_fontset_font): New function.
25090 (Fset_fontset_font): If a font is specified for a charset, use
25091 map_charset_chars to store the font spec in a fontset.
25092
250932008-02-01 Kenichi Handa <handa@m17n.org>
25094
25095 * fontset.c (fontset_face): Create a fallback fontset on demand.
25096 (make_fontset): Don't create a fallback fontset here.
25097 (free_face_fontset): Free a fallback fontset (if any) too.
25098 (n_auto_fontsets): Delete this variable.
25099 (auto_fontset_alist): New variable.
25100 (new_fontset_from_font_name): Check auto_fontset_alist.
25101 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
25102 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
25103 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
25104 Defsubr Sfontset_list_all.
25105
251062008-02-01 Kenichi Handa <handa@m17n.org>
25107
25108 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
25109
251102008-02-01 Kenichi Handa <handa@m17n.org>
25111
25112 * fontset.c (Fnew_fontset): Check NAME more rigidly.
25113
251142008-02-01 Kenichi Handa <handa@m17n.org>
25115
25116 * editfns.c (Fgoto_char): Fix docstring.
25117
251182008-02-01 Kenichi Handa <handa@m17n.org>
25119
25120 * insdel.c (insert_from_gap): Adjust intervals correctly.
25121
251222008-02-01 Jason Rumney <jasonr@gnu.org>
25123
25124 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
25125 (pfnGetFontUnicodeRanges): New dynamically loaded function.
25126 (w32_initialize): Try to load it.
25127 (x_get_font_repertory): Use it if available.
25128 (w32_encode_char): Add shortcut for unicode output.
25129
25130 * w32fns.c (w32_load_system_font): Default charset to -1.
25131 (x_to_w32_charset): Match all fonts for unicode.
25132 (w32_to_x_charset): New parameter matching. Don't return partial
25133 or wildcard charsets.
25134 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
25135 (w32_codepage_for_font): Return CP_UNICODE for unicode.
25136 (w32_to_x_font): Match charset to real charset.
25137 (enum_font_cb2): Always list unicode versions.
25138
25139 * makefile.w32-in (temacs): Increase EMHEAP.
25140
251412008-02-01 Jason Rumney <jasonr@gnu.org>
25142
25143 * w32term.c (w32_encode_char): New charset parameter.
25144 font_info.encoding becomes encoding_type.
25145 (x_get_font_repertory): New function. Warning: stub only!
25146 (x_new_font): Return quickly if font already set.
25147 (x_new_fontset): fontsetname parameter is Lisp_Object.
25148 Use new fs_query_fontset. Try new_fontset_from_font_name.
25149 Use fontset_name for return value.
25150
25151 * w32term.h: Declare x_get_font_repertory.
25152
25153 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
25154 place of find_charset_in_text. Use encode_coding_object in place
25155 of encode_coding.
25156 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
25157 decode_coding.
25158
25159 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
25160 of x_new_fontset.
25161 (w32_load_system_font): Initialize charset as unicode.
25162 font_info.encoding becomes encoding_type.
25163 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
25164 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
25165 (syms_of_w32fns): Set get_font_repertory_func.
25166
25167 * w32console.c: Include character.h. Use terminal_encode_buffer
25168 from term.c.
bba3e508
SM
25169 (write_glyphs): Use new version of encode_terminal_code.
25170 Use encode_coding_object in place of encode_coding.
aac0c6e3
MR
25171
25172 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
25173 encoding becomes encoding_type.
25174
25175 * term.c (terminal_encode_buffer): Make externally visible.
25176
25177 * makefile.w32-in: Add character.h dependancies.
25178 (character.o, chartab.o): New targets.
25179
251802008-02-01 Kenichi Handa <handa@m17n.org>
25181
25182 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
25183 CODING_ID_EOL_TYPE.
25184
251852008-02-01 Andreas Schwab <schwab@suse.de>
25186
25187 * coding.c (produce_chars): Revert last change.
25188
251892008-02-01 Kenichi Handa <handa@m17n.org>
25190
25191 * charset.h (charset_unicode): Extern it.
25192
25193 * charset.c (string_xstring_p): Check by (C >= 0x100).
bba3e508
SM
25194 (find_charsets_in_text): Change format of the arc CHARSETS.
25195 New arg MULTIBYTE.
aac0c6e3
MR
25196 (Ffind_charset_region, Ffind_charset_string): Adjust for the
25197 change of find_charsets_in_text.
25198 (Fsplit_char): Fix doc. Never return unknown.
25199
25200 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
25201
bba3e508
SM
25202 * coding.c (Fdefine_coding_system_alias):
25203 Update Vcoding_system_list.
aac0c6e3
MR
25204
25205 * fontset.c (load_font_get_repertory): Pay attention to the case
25206 that ENCODING of a font is specified by a char-table.
25207
25208 * xterm.c (x_get_font_repertory): Handle the case that the
25209 encoding of font is other than Unicode.
25210
252112008-02-01 Kenichi Handa <handa@m17n.org>
25212
bba3e508
SM
25213 * term.c (encode_terminal_code): Don't handle glyph-table.
25214 Check if a character is encodable by the terminal coding system.
25215 If not, produces proper number of `?'s. Update
aac0c6e3
MR
25216 terminal_encode_buffer and terminal_encode_buf_size if necessary.
25217 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
25218
252192008-02-01 Kenichi Handa <handa@m17n.org>
25220
bba3e508
SM
25221 * term.c (terminal_encode_buffer, terminal_encode_buf_size):
25222 New variables.
aac0c6e3
MR
25223 (encode_terminal_code): Change argument. Encode multiple
25224 characters at once. Store the result of encoding in
25225 terminal_encode_buffer.
25226 (write_glyphs, insert_glyphs): Adjust for the change of
25227 encode_terminal_code.
25228 (term_init): Initialize terminal_encode_buffer and
25229 terminal_encode_buf_size.
25230
25231 * coding.c (consume_chars): If coding->src_object is nil, don't
25232 check annotation.
25233
252342008-02-01 Kenichi Handa <handa@m17n.org>
25235
25236 * character.c (char_string): Use ASCII_CHAR_P instead of
25237 SINGLE_BYTE_CHAR_P.
25238
252392008-02-01 Kenichi Handa <handa@m17n.org>
25240
25241 * xdisp.c (handle_auto_composed_prop): Check if the last
25242 characters of auto-composed region is newly composed with the
25243 following characters.
25244 (handle_composition_prop): Fix checking of point being inside
25245 composition.
25246
252472008-02-01 Kenichi Handa <handa@m17n.org>
25248
25249 * fns.c (concat): Don't change multibyteness of the result by
25250 concatenating an 8-bit character.
25251
25252 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
25253 multibyteness of the result when newelt is an 8-bit character.
25254
252552008-02-01 Dave Love <fx@gnu.org>
25256
25257 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
25258 EMACS_INT.
25259
25260 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
25261
25262 * xfaces.c (face_numeric_value): Declare dim size_t.
25263 (Finternal_lisp_face_equal_p): Remove unused f.
25264
25265 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
25266 (MATRIX_ROW): Remove unused vars.
25267 (draw_glyphs, x_insert_glyphs, fast_find_position)
25268 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
25269 byte/char counts.
25270
25271 * regex.c (regex_compile): Remove unused var.
25272
25273 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
25274
25275 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
25276 (Faccessible_keymaps, where_is_internal): Remove unused vars.
25277
25278 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
25279
25280 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
25281
25282 * fileio.c (Fwrite_region): Remove unused var.
25283
25284 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
25285 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
25286
25287 * composite.c (Fremove_list_of_text_properties): Declare.
25288
25289 * coding.c (inhibit_pre_post_conversion): Remove (unused).
25290 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
25291 (coding_inherit_eol_type): Remove unused attrs.
25292 (detect_coding): Cast arg of detect_eol.
25293
25294 * charset.c (syms_of_charset): Remove unused var p.
25295 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
25296 byte/char counts.
25297
25298 * casetab.c (set_case_table): Remove unused var.
25299
bba3e508
SM
25300 * window.c (Fdisplay_buffer, Fframe_selected_window):
25301 Remove unused vars.
aac0c6e3
MR
25302
253032008-02-01 Dave Love <fx@gnu.org>
25304
25305 * xterm.c (x_bitmap_mask): Declare.
25306
253072008-02-01 Dave Love <fx@gnu.org>
25308
25309 * xterm.c (x_term_init): Fix type error.
25310
25311 * lisp.h: Add Funibyte_char_to_multibyte.
25312
25313 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
25314 (Fset_coding_system_priority): Doc fix.
25315
25316 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
25317
25318 * indent.c (check_composition): Make start and end EMACS_INT.
25319
25320 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
25321
25322 * xdisp.c (handle_composition_prop, check_point_in_composition):
25323 Make buffer positions EMACS_INT.
25324
25325 * composite.c (find_composition, run_composition_function)
25326 (update_compositions, Ffind_composition_internal): Make buffer
25327 positions EMACS_INT.
25328
bba3e508
SM
25329 * composite.h (find_composition, update_compositions):
25330 Make position args EMACS_INT.
aac0c6e3
MR
25331
25332 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
25333
25334 * intervals.c (get_property_and_range):
25335 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
25336
25337 * unexalpha.c: Don't include varargs.h.
25338
253392008-02-01 Dave Love <fx@gnu.org>
25340
25341 * coding.h (ENCODE_UTF_8): New.
25342
25343 * Makefile.in (gtkutil.o): Depend on coding.h.
25344
25345 * coding.c (Fset_coding_system_priority): Doc fix.
25346
253472008-02-01 Kenichi Handa <handa@m17n.org>
25348
25349 * fileio.c (Finsert_file_contents): Call setup_coding_system in
25350 the case of auto saving.
25351
253522008-02-01 Andreas Schwab <schwab@suse.de>
25353
bba3e508
SM
25354 * chartab.c (map_char_table, map_char_table_for_charset):
25355 Protect `range' from GC.
aac0c6e3
MR
25356
253572008-02-01 Kenichi Handa <handa@m17n.org>
25358
25359 * coding.c (decode_coding_sjis): Check bytes more rigidly.
25360
253612008-02-01 Kenichi Handa <handa@m17n.org>
25362
25363 * fileio.c (choose_write_coding_system): Return a decided coding system.
25364 (Fwrite_region): Set Vlast_coding_system_used to the return value
25365 of choose_write_coding_system.
25366
253672008-02-01 Kenichi Handa <handa@m17n.org>
25368
25369 * charset.c (Fset_charset_priority): Pay attention to duplicated
25370 arguments.
25371
25372 * coding.c (QCcategory): New variable.
25373 (syms_of_coding): Defsym it. Set all elements of
25374 Vcoding_category_table and their symbol values.
25375 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
25376 coding-category-XXX, and coding-category-list.
25377 (Fdefine_coding_system_internal): Add category in the plist.
25378
253792008-02-01 Kenichi Handa <handa@m17n.org>
25380
25381 * callproc.c (Fcall_process): Handle carryover correctly.
25382
25383 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
25384 (raw_text_coding_system): Check NILP (coding_system).
25385 (coding_inherit_eol_type): Check NILP (coding_system) and
25386 NILP (parent).
25387 (consume_chars): Fix for the case of raw-text.
25388
25389 * process.c (read_process_output): Handle carryover correctly.
25390
253912008-02-01 Dave Love <fx@gnu.org>
25392
25393 * regex.c (re_search_2): Fix last change.
25394
253952008-02-01 Kenichi Handa <handa@m17n.org>
25396
25397 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
25398 target_multibyte. Even in a unibyte case, return a converted
25399 multibyte char.
25400 (GET_CHAR_AFTER): New macro.
25401 (PATFETCH): Translate via multibyte char.
25402 (HANDLE_UNIBYTE_RANGE): Delete this macro.
25403 (SETUP_MULTIBYTE_RANGE): New macro.
25404 (regex_compile): Setup compiled code so that its multibyteness
25405 matches that of a target. Fix the handling of "[X-YZ]" using
25406 SETUP_MULTIBYTE_RANGE.
25407 (analyse_first) <charset>: For filling fastmap for all multibyte
25408 characters, don't check by BASE_LEADING_CODE_P.
25409 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
25410 the same as RE_MULTIBYTE_P (bufp) now.
25411 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
25412 (TARGET_CHAR_AND_LENGTH): Delete this macro.
25413 (TRANSLATE_VIA_MULTIBYTE): New macro.
25414 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
25415 It is the same as RE_MULTIBYTE_P (bufp) now.
25416 <exactn>: Translate via multibyte.
bba3e508
SM
25417 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH.
25418 Don't translate it.
aac0c6e3
MR
25419 <charset, charset_not>: Fetch a character by
25420 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
25421 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
25422 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
25423 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
25424 by GET_CHAR_AFTER.
25425 (bcmp_translate): Likewise.
25426
25427 * search.c (compile_pattern): Check the member target_multibyte,
25428 not the member multibyte of buf.
25429
25430 * lread.c (read1): While reading a string, set force_singlebyte
25431 and force_multibyte correctly.
25432
25433 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
25434 up of unibyte_to_multibyte_table.
25435
254362008-02-01 Kenichi Handa <handa@m17n.org>
25437
25438 * coding.c (setup_coding_system): If coding has
25439 post-read-conversion or pre-write-conversion, set
25440 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
25441 respectively.
25442 (decode_coding_gap): Run post-read-conversion if any.
25443
25444 * fileio.c (Finsert_file_contents): Even if we read into a
25445 unibyte buffer, check if we must decode the result or not.
25446
254472008-02-01 Kenichi Handa <handa@m17n.org>
25448
25449 * coding.c (make_conversion_work_buffer): Change the work buffer
25450 name to the same one as that of Emacs 21.
25451
254522008-02-01 Kenichi Handa <handa@m17n.org>
25453
25454 * coding.h (make_conversion_work_buffer): Adjust prototype.
25455 (code_conversion_restore): Don't extern it.
25456
25457 * coding.c (detected_mask): Delete unused variable.
25458 (decode_coding_iso_2022): Pay attention to the byte sequence of
25459 CTEXT extended segment, and retain those bytes as is.
25460 (decode_coding_ccl): Delete unused variable `valids'.
25461 (setup_coding_system): Delete unused variable `category'.
25462 (consume_chars): Delete unused variable `category'. Make it work
25463 for non-multibyte case.
25464 (make_conversion_work_buffer): Change argument.
25465 (saved_coding): Delete unused variable.
25466 (code_conversion_restore): Don't check saved_coding->destination.
25467 (code_conversion_save): New function.
25468 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
25469 instead of record_unwind_protect.
25470 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
25471 (detect_coding_system): Delete unused variable `mask'.
25472 (Fdefine_coding_system_internal): Delete unused variable id.
25473
25474 * fileio.c (kill_workbuf_unwind): New function.
25475 (Finsert_file_contents): On replacing, call
25476 make_conversion_work_buffer with correct args, and call
25477 record_unwind_protect with the first arg kill_workbuf_unwind.
25478
25479 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
25480
254812008-02-01 Kenichi Handa <handa@m17n.org>
25482
25483 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
25484 (fontset_add): Fix for the case that TO is less than TO1.
25485 (Ffontset_info): Don't use fallback fontset on checking the
25486 default fontset.
25487 (dump_fontset): New function for debugging.
25488
25489 * coding.c (Fdefine_coding_system_internal): Fix for the case that
25490 coding_type is Qcharset.
25491
254922008-02-01 Kenichi Handa <handa@m17n.org>
25493
25494 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
25495 (map_char_table): Don't inherit the value from the parent on
25496 initializing VAL. Adjust for the above change.
25497
254982008-02-01 Kenichi Handa <handa@m17n.org>
25499
25500 * coding.c (Qsignature, Qendian): Delete these variables.
25501 (syms_of_coding): Don't initialize them.
25502 (CATEGORY_MASK_UTF_16_AUTO): New macro.
25503 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
25504 detect_info->found.
25505 (decode_coding_utf_16): Don't detect BOM here.
25506 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
25507 is NOT utf_16_without_bom.
25508 (setup_coding_system): For a coding system of type utf-16, check
25509 if the attribute :endian is Qbig or not (not nil or not), and set
25510 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
25511 (detect_coding): If coding type is utf-16 and BOM detection is
25512 required, detect it.
25513 (Fdefine_coding_system_internal): For a coding system of type
25514 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
25515
255162008-02-01 Kenichi Handa <handa@m17n.org>
25517
25518 * coding.c (coding_set_source): Fix for the case that the current
25519 buffer is different from coding->src_object.
25520 (decode_coding_object): Don't use the conversion work buffer if
25521 DST_OBJECT is a buffer.
25522
255232008-02-01 Dave Love <fx@gnu.org>
25524
25525 * lread.c (read_emacs_mule_char) [len==2]: Index
25526 emacs_mule_charset correctly.
25527
255282008-02-01 Dave Love <fx@gnu.org>
25529
25530 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
25531 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
25532 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
25533 treated specially.)
25534 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
25535 (detected_mask): Remove Big5 bits.
25536
255372008-02-01 Kenichi Handa <handa@m17n.org>
25538
25539 The following changes are to make the font rescaling facility
25540 compatible with Emacs 21.
25541
25542 * xfaces.c (Vface_font_rescale_alist): Rename from
25543 Vface_resizing_fonts.
25544 (struct font_name): Rename member resizing_ratio to rescale_ratio.
25545 (font_rescale_ratio): Rename from font_resizing_ratio.
25546 (split_font_name): Set font->rescale_ratio.
25547 (better_font_p): Pay attention to font->rescale_ratio.
25548 (build_scalable_font_name): Likewise. Change RESX, and RESY
25549 fields.
25550 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
25551
255522008-02-01 Kenichi Handa <handa@m17n.org>
25553
25554 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
25555 (Qutf_16_le): Remove these variables.
25556 (syms_of_coding): Don't DEFSYM them.
25557 (decode_coding_utf_16): Fix handling of BOM.
25558 (encode_coding_utf_16): Fix handling of BOM.
25559
255602008-02-01 Kenichi Handa <handa@m17n.org>
25561
25562 * fileio.c (Finsert_file_contents): On replacing, before decoding
25563 the file into the work buffer, set point of the work buffer to the end.
25564
255652008-02-01 Dave Love <fx@gnu.org>
25566
25567 * coding.c (Fcheck_coding_systems_region): Fix type errors.
25568
255692008-02-01 Dave Love <fx@gnu.org>
25570
25571 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
25572 and fix C types.
25573
255742008-02-01 Kenichi Handa <handa@m17n.org>
25575
25576 * xdisp.c (SKIP_GLYPHS): New macro.
25577 (set_cursor_from_row): Pay attention to string display properties.
25578
25579 * category.c (copy_category_entry): Fix for the case that RANGE
25580 is an integer.
25581
25582 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
25583
25584 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
25585
255862008-02-01 Kenichi Handa <handa@m17n.org>
25587
25588 * charset.c (Fcharset_id_internal): New function.
25589 (syms_of_charset): Defsubr it.
25590
25591 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
25592 with the last arg charset_list acquired from coding.
25593 (Fdefine_coding_system_internal): For ccl-based coding system, fix
25594 the attribute coding_attr_ccl_valids.
25595
25596 * coding.h (enum define_coding_ccl_arg_index): Set the first
25597 member coding_arg_ccl_decoder to coding_arg_max.
25598
25599 * ccl.h (ccl_driver): Adjust prototype.
25600
25601 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
25602 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 25603 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
25604 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
25605 last arg Qnil.
25606
256072008-02-01 Kenichi Handa <handa@m17n.org>
25608
25609 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
25610 call encode_char.
25611
25612 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
25613
256142008-02-01 Dave Love <fx@gnu.org>
25615
25616 * composite.c (syms_of_composite): Make composition_hash_table weak.
25617
256182008-02-01 Kenichi Handa <handa@m17n.org>
25619
25620 * dispextern.h (check_face_attributes, generate_ascii_font_name)
25621 (font_name_registry): Don't extern them.
25622 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
25623
25624 * fontset.h (Qfontset): Don't extern it.
25625 (new_fontset_from_font_name): Extern it.
25626
25627 * fontset.c: Give 8 extra slots to fontset objects.
25628 (Qfontset_info): New variable.
25629 (syms_of_fontset): Defsym it.
25630 (FONTSET_FALLBACK): New macro.
25631 (fontset_face): Try also the default fontset.
25632 (make_fontset): Realize a fallback fontset from the default fontset.
25633 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
25634 using split_font_name_into_vector and build_font_name_from_vector.
25635 (Fset_fontset_font): Access the elements of font_spec by enum
25636 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
25637 name by using split_font_name_into_vector.
25638 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
bba3e508
SM
25639 generate a proper font name from the fontset name.
25640 Update Vfontset_alias_alist.
aac0c6e3
MR
25641 (n_auto_fontsets): New variable.
25642 (new_fontset_from_font_name): New function.
25643 (Ffont_info): Store the information about fonts generated from the
25644 default fontset in the first extra slot of the returned char-table.
25645
25646 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
25647 (font_name_registry): Delete function.
25648 (split_font_name_into_vector): New function.
25649 (build_font_name_from_vector): New function.
25650 (font_list): The argument REGISTRY is now a list of registry names.
25651 (choose_face_font): If we are choosing an ASCII font, and ATTRS
25652 specifies an explicit font name, return the name as is. Make a
25653 list of registy names.
25654
25655 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
25656 of x_new_fontset.
25657 (Fx_create_frame): Don't call x_new_fontset here. Just use
25658 x_list_fonts to check the existence of fonts.
25659
25660 * xterm.h (x_new_fontset): Adjust prototype.
25661
25662 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
25663 string. Use new_fontset_from_font_name to create a fontset from a
25664 font name.
25665
256662008-02-01 Kenichi Handa <handa@m17n.org>
25667
25668 * syntax.c (Vfind_word_boundary_function_table): New name for
25669 Vnext_word_boundary_function_table.
25670 (find-word-boundary-function-table): New name for
25671 next-word-boundary-function-table.
25672
256732008-02-01 Dave Love <fx@gnu.org>
25674
25675 * Makefile.in: Fix some dependencies.
25676
25677 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
25678 set it to nil before returning.
25679
25680 * composite.c (update_compositions): Fix type error.
25681
25682 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
25683
256842008-02-01 Kenichi Handa <handa@m17n.org>
25685
25686 * xterm.c (x_new_font): Optimize for the case that the font is
25687 already set for the frame.
25688
256892008-02-01 Kenichi Handa <handa@m17n.org>
25690
25691 * chartab.c (char_table_ascii): Check if the char table contents
25692 is sub-char-table or not.
25693 (char_table_set, char_table_set_range): Fix argument to
25694 char_table_ascii.
25695
25696 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
25697 (detect_coding_utf_8, detect_coding_utf_16)
25698 (detect_coding_emacs_mule, detect_coding_iso_2022)
25699 (detect_coding_sjis, detect_coding_big5)
25700 (detect_coding_ccl, detect_coding_charset): Change argument MASK
25701 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
25702 sequence is valid in this coding system. Change callers.
25703 (MAX_ANNOTATION_LENGTH): New macro.
25704 (ADD_ANNOTATION_DATA): New macro.
bba3e508
SM
25705 (ADD_COMPOSITION_DATA): Change argument. Change callers.
25706 Call ADD_ANNOTATION_DATA. Change the format of annotation data.
aac0c6e3
MR
25707 (ADD_CHARSET_DATA): New macro.
25708 (emacs_mule_char): New argument ID. Change callers.
25709 (decode_coding_emacs_mule, decode_coding_iso_2022)
25710 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
25711 Produce charset annotation data in coding->charbuf.
25712 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
25713 to charset annotation data in coding->charbuf.
25714 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
25715 coding->common_flags if the coding system is iso-2022 based and
25716 uses designation.
25717 (produce_composition): Adjust for the new annotation data format.
25718 (produce_charset): New function.
25719 (produce_annotation): Handle charset annotation.
bba3e508
SM
25720 (handle_composition_annotation, handle_charset_annotation):
25721 New functions.
aac0c6e3
MR
25722 (consume_chars): Handle charset annotation. Utilize the above two
25723 functions.
25724 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
25725 buffer, get the deleted text as a string and set
25726 coding->src_object to that string.
25727 (detect_coding, detect_coding_system): Use the new struct
25728 coding_detection_info.
25729
25730 * coding.h (struct coding_detection_info): New structure.
25731 (struct coding_system): Adjust prototype of the member `detector'.
25732 (CODING_ANNOTATE_CHARSET_MASK): New macro.
25733
257342008-02-01 Kenichi Handa <handa@m17n.org>
25735
25736 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
25737
257382008-02-01 Dave Love <fx@gnu.org>
25739
25740 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
25741 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
25742 to new local and nullify apropos_accumulate before returning.
25743 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
25744
257452008-02-01 Kenichi Handa <handa@m17n.org>
25746
25747 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
25748 correctly.
e3eea1fc 25749
aac0c6e3
MR
257502008-02-01 Dave Love <fx@gnu.org>
25751
25752 * fns.c (Flanginfo): Call synchronize_system_time_locale.
25753
257542008-02-01 Kenichi Handa <handa@m17n.org>
25755
25756 The following changes are to make character composition happen
25757 automatically on displaying.
25758
25759 * Makefile.in (lisp, shortlisp): Add composite.elc.
25760
25761 * composite.h (Qauto_composed, Vauto_composition_function)
25762 (Qauto_composition_function): Extern them.
25763
25764 * composite.c (Vcomposition_function_table)
25765 (Qcomposition_function_table): Delete variables.
25766 (Qauto_composed, Vauto_composition_function)
25767 (Qauto_composition_function): New variables.
25768 (run_composition_function): Don't call
25769 compose-chars-after-function.
25770 (update_compositions): Clear `auto-composed' text property.
25771 (compose_chars_in_text): Delete this function.
25772 (syms_of_composite): Staticpro Qauto_composed and
25773 Qauto_composition_function. Declare Vauto_composition_function as
25774 a Lisp variable.
25775
25776 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
25777
25778 * xdisp.c (it_props): Add an entry for Qauto_composed.
25779 (handle_auto_composed_prop): New function.
25780
25781 * xselect.c (selection_data_to_lisp_data): Don't call
25782 compose_chars_in_text.
25783
257842008-02-01 Dave Love <fx@gnu.org>
25785
25786 * keyboard.c (read_char): Modify checking around use of
25787 Vkeyboard_translate_table.
25788
25789 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
25790 and fix C types.
25791
257922008-02-01 Kenichi Handa <handa@m17n.org>
25793
25794 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
25795 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
25796 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
25797 the case that the last byte is '\r' correctly.
25798 (decode_coding): Flush out the unprocessed data correctly.
25799 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
25800
258012008-02-01 Dave Love <fx@gnu.org>
25802
25803 * xterm.c (XTread_socket): Fix changes for defined keysyms.
25804 Add XK_ISO... case.
25805 (xaw_scroll_callback): Revert last change.
25806
258072008-02-01 Kenichi Handa <handa@m17n.org>
25808
25809 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
25810
258112008-02-01 Kenichi Handa <handa@m17n.org>
25812
25813 * xfaces.c (Vface_resizing_fonts): New variable.
25814 (struct font_name): New member `resizing_ratio'.
25815 (font_resizing_ratio): New function.
25816 (split_font_name): Set font->resizing_ratio.
25817 (better_font_p): Pay attention to font->resizing_ratio.
25818 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
25819 RESX, and RESY fields.
25820 (try_alternative_families): Try scalable fonts if
25821 Vscalable_fonts_allowed is not Qt.
25822 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
25823
258242008-02-01 Dave Love <fx@gnu.org>
25825
25826 * xterm.c (xaw_scroll_callback): Cast correctly.
25827
258282008-02-01 Dave Love <fx@gnu.org>
25829
25830 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
25831 (lispy_kana_keys): Comment out.
25832 (make_lispy_event) [XK_kana_A]: Comment out.
25833
25834 * xterm.c (xaw_scroll_callback): Cast call_data.
25835 (XTread_socket): Deal with ASCII keysyms.
25836 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
25837
258382008-02-01 Dave Love <fx@gnu.org>
25839
25840 * xterm.c (Vx_keysym_table): New.
25841 (syms_of_xterm): Initialize it.
25842 (XTread_socket): Use it.
25843 From head: Eliminate incorrect optimization that tried to avoid
25844 decoding the output of X*LookupString.
25845 (x_get_font_repertory): Delete charset declaration.
25846
258472008-02-01 Kenichi Handa <handa@m17n.org>
25848
25849 * coding.c (detect_coding_charset): If only ASCII bytes are found,
25850 return 0.
bba3e508
SM
25851 (Fdefine_coding_system_internal):
25852 Setup CODING_ATTR_ASCII_COMPAT (attrs) correctly.
aac0c6e3
MR
25853
258542008-02-01 Dave Love <fx@gnu.org>
25855
25856 * coding.c (Fcheck_coding_system): Doc fix.
25857
25858 * editfns.c (Finsert_byte): Return a proper value.
25859
258602008-02-01 Kenichi Handa <handa@m17n.org>
25861
bba3e508
SM
25862 * coding.c (decode_coding): Fix args to translate_chars.
25863 Pay attention to Vstandard_translation_table_for_decode.
aac0c6e3
MR
25864 (encode_coding): Fix args to translate_chars. Pay attention to
25865 Vstandard_translation_table_for_encode.
25866
25867 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
25868 SINGLE_BYTE_CHAR_P.
25869
25870 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
25871 not by SINGLE_BYTE_CHAR_P.
25872
25873 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
25874 SINGLE_BYTE_CHAR_P.
25875
25876 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
25877 SINGLE_BYTE_CHAR_P.
25878
25879 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
25880 by SINGLE_BYTE_CHAR_P.
25881
25882 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
25883 SINGLE_BYTE_CHAR_P.
25884
258852008-02-01 Dave Love <fx@gnu.org>
25886
25887 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
25888
258892008-02-01 Dave Love <fx@gnu.org>
25890
25891 * fns.c (Flanginfo): Fix typo.
25892
25893 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
25894
258952008-02-01 Kenichi Handa <handa@m17n.org>
25896
25897 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
25898 (detect_coding_emacs_mule, detect_coding_iso_2022)
25899 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
25900 incomplete byte sequence. Don't update *mask when correctly detected.
25901 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
25902 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
25903 (detect_coding, detect_coding_system): Adjust for the changes above.
25904
259052008-02-01 Kenichi Handa <handa@m17n.org>
25906
25907 * character.c (char_string): Rename from
25908 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
25909 (string_char): Rename from string_char.
25910
25911 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
25912 if C is greater than MAX_3_BYTE_CHAR.
bba3e508
SM
25913 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE):
25914 Call string_char instead of string_char_with_unification.
aac0c6e3
MR
25915
259162008-02-01 Dave Love <fx@gnu.org>
25917
25918 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
25919
259202008-02-01 Kenichi Handa <handa@m17n.org>
25921
25922 * keymap.c (push_key_description): Pay attention to force_multibyte.
25923
25924 * regex.c (re_search_2): Fix for the case of unibyte buffer.
25925
259262008-02-01 Dave Love <fx@gnu.org>
25927
25928 * charset.c (define_charset_internal): Rename `supprementary'.
25929
25930 * Makefile.in (lisp, shortlisp): Remove latin-N.
25931
259322008-02-01 Dave Love <fx@gnu.org>
25933
25934 * xfns.c (x_window, x_window): Use use_xim.
25935
25936 * xterm.c (use_xim): Initialize.
25937 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
25938 (x_term_init): Maybe set use_xim.
25939
25940 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
25941
259422008-02-01 Kenichi Handa <handa@m17n.org>
25943
25944 * search.c (search_buffer): Fix case-fold-search of multibyte
25945 characters.
25946 (boyer_moore): Rename the last argument to char_high_bits.
25947
259482008-02-01 Kenichi Handa <handa@m17n.org>
25949
25950 * xdisp.c (display_string): Fix for the case of zero width glyph.
25951
25952 * xfns.c (x_set_font): Change the error message of the case that
25953 x_new_fontset returns Qt.
25954
25955 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
25956 (Finternal_set_lisp_face_attribute): Use signal_error for the
25957 error of invalid fontset.
25958
25959 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
25960 fontset, return Qt.
25961
259622008-02-01 Dave Love <fx@gnu.org>
25963
25964 * unexelf.c (unexec): Make .got handling not SGI-specific.
25965
25966 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
25967
25968 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
25969
25970 * keyboard.c (read_key_sequence): Fix type error.
25971
bba3e508
SM
25972 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte):
25973 Fix type error.
aac0c6e3
MR
25974
25975 * fontset.c (fontset_add): Return Lisp_Object.
25976
259772008-02-01 Dave Love <fx@gnu.org>
25978
25979 * charset.h (charset_ordered_list_tick): Declare extern.
25980
259812008-02-01 Kenichi Handa <handa@m17n.org>
25982
25983 The following changes (and some of 2008-02-01 changes of mine) are
25984 for handling syntax, category, and case conversion for unibyte
25985 characters by converting them to multibyte on the fly. With these
25986 changes, we don't have to setup syntax and case tables for unibyte
25987 characters in each language environment.
25988
25989 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
25990 multibyte if necessary.
25991
25992 * bytecode.c (Fbyte_code): Likewise.
25993
25994 * character.h (LEADING_CODE_LATIN_1_MIN)
25995 (LEADING_CODE_LATIN_1_MAX): New macros.
25996 (unibyte_to_multibyte_table): Extern it.
25997 (unibyte_char_to_multibyte): New macro.
25998 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
25999 (CHAR_LEADING_CODE): New macro.
26000 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
26001
26002 * character.c (unibyte_to_multibyte_table): New variable.
26003 (unibyte_char_to_multibyte): Move to character.h and define as macro.
26004 (multibyte_char_to_unibyte): If C is an eight-bit character,
26005 convert it to the corresponding byte value.
26006
26007 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
26008 not 1, signals an error. Update the elements of
26009 unibyte_to_multibyte_table.
26010 (init_charset_once): Initialize unibyte_to_multibyte_table.
26011 (syms_of_charset): Define the charset `iso-8859-1'.
26012
26013 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
26014 as is without converting it to unibyte. In a unibyte buffer,
26015 convert C to multibyte before checking the syntax.
26016
26017 * lisp.h (unibyte_char_to_multibyte): Delete extern.
26018
26019 * minibuf.c (Fminibuffer_complete_word): Use the macro
26020 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
26021
26022 * regex.h (struct re_pattern_buffer): New member target_multibyte.
26023
26024 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
bba3e508
SM
26025 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte.
26026 If that is zero, convert an eight-bit char to multibyte.
aac0c6e3
MR
26027 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
26028 non-emacs case.
26029 (PATFETCH): Convert an eight-bit char to multibyte.
26030 (HANDLE_UNIBYTE_RANGE): New macro.
26031 (regex_compile): Setup the compiled pattern for multibyte chars
26032 even if the given regex string is unibyte. Use PATFETCH_RAW
26033 instead of PATFETCH in many places. To handle `charset'
26034 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
26035 only for ASCII chars.
26036 (analyse_first) <exactn>: Simplify because the compiled pattern
26037 is multibyte.
26038 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
26039 <charset>: Use CHAR_LEADING_CODE to get leading codes.
26040 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
26041 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
26042 multibyte always 1.
26043 (re_search_2): In emacs, set the locale variable multibyte to 1,
26044 otherwise to 0. New local variable target_multibyte. Check it
bba3e508
SM
26045 to decide the multibyteness of STR1 and STR2.
26046 If target_multibyte is zero, convert unibyte chars to multibyte
aac0c6e3
MR
26047 before translating and checking fastmap.
26048 (TARGET_CHAR_AND_LENGTH): New macro.
26049 (re_match_2_internal): In emacs, set the locale variable multibyte
bba3e508
SM
26050 to 1, otherwise to 0. New local variable target_multibyte.
26051 Check it to decide the multibyteness of STR1 and STR2.
26052 Use TARGET_CHAR_AND_LENGTH to fetch a character from D.
aac0c6e3
MR
26053 <charset, charset_not>: If multibyte is nonzero, check fastmap
26054 only for ASCII chars. Call bcmp_translate with
26055 target_multibyte, not with multibyte.
26056 <begline>: Declare the local variable C as `unsigned'.
26057 (bcmp_translate): Change the last arg name to target_multibyte.
26058
26059 * search.c (compile_pattern_1): Don't adjust the multibyteness of
26060 the regexp pattern and the matching target. Set cp->buf.multibyte
26061 to the multibyteness of the regexp pattern. Set
26062 cp->but.target_multibyte to the multibyteness of the matching target.
26063 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
26064 FETCH_STRING_CHAR_ADVANCE.
26065 (Freplace_match): Convert unibyte chars to multibyte.
26066
26067 * syntax.c (char_quoted, back_comment, scan_words)
26068 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
26069 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
26070 unibyte chars to multibyte.
26071 (skip_chars): Delete the arg syntaxp, and move the code for
26072 handling syntaxes to skip_syntaxes. Change callers.
26073 Fix the case that the multibyteness of STRING and the current
26074 buffer doesn't match.
26075 (skip_syntaxes): New function.
26076 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
26077 SINGLE_BYTE_CHAR_P.
26078
260792008-02-01 Kenichi Handa <handa@m17n.org>
26080
26081 * xfaces.c (QCfontset): New variable.
26082 (LFACE_FONTSET): New macro.
26083 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
26084 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
26085 (Finternal_set_lisp_face_attribute)
26086 (Finternal_get_lisp_face_attribute): Handle QCfontset.
26087 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
26088 check also LFACE_FONTSET_INDEX.
26089 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
26090 attrs[LFACE_FONT_INDEX].
26091 (syms_of_xfaces): Intern and staticpro QCfontset.
26092
26093 * dispextern.h (enum lface_attribute_index): New member
26094 LFACE_FONTSET_INDEX.
26095
26096 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
26097
260982008-02-01 Kenichi Handa <handa@m17n.org>
26099
26100 * coding.c (coding_set_destination): Fix coding->destination for
26101 the case converting a region.
26102 (encode_coding_utf_8): Encode eight-bit chars as single byte.
26103 (encode_coding_object): Fix coding->dst_pos and
26104 coding->dst_pos_byte for the case converting a region.
26105
26106 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
26107
26108 * character.h (BYTE8_STRING): New macro.
26109
26110 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
26111
261122008-02-01 Kenichi Handa <handa@m17n.org>
26113
26114 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
26115 characters by octal form.
26116
26117 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
26118
26119 * buffer.h (_fetch_multibyte_char_len): Delete extern.
26120 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
26121 _fetch_multibyte_char_len.
26122 (FETCH_CHAR_AS_MULTIBYTE): New macro.
26123
26124 * casetab.c (set_canon, set_identity, shuffle): Simplify.
26125
26126 * casefiddle.c (casify_object): Simplify. Handle the case that
26127 the case conversion change the byte length.
26128 (casify_region): Likewise.
26129
26130 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
26131
26132 * character.c (_fetch_multibyte_char_len): Delete this variable.
26133 (syms_of_character): Setup Vprintable_chars.
26134
26135 * editfns.c (Fchar_equal): Fix for the unibyte case.
26136 (Finsert_byte): New function.
26137 (syms_of_editfns): Defsubr it.
26138
26139 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
26140 of direct code 0x3ffff.
26141
26142 * search.c (Freplace_match): Fix for the unibyte case.
26143
261442008-02-01 Kenichi Handa <handa@m17n.org>
26145
26146 * lread.c (safe_to_load_p): Fix the logic.
26147
26148 * syntax.c (scan_words): Don't treat characters belonging to
26149 different scripts as constituting a word.
26150
26151 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
26152
26153 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
26154
26155 * emacs.c (main): In the case of --unibyte, instead of aborting on
26156 finding non-empty buffer, make it unibyte.
26157
261582008-02-01 Kenichi Handa <handa@m17n.org>
26159
26160 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
26161 to create a fontset.
26162
261632008-02-01 Dave Love <fx@gnu.org>
26164
26165 * character.c (Funibyte_char_to_multibyte): Doc fix.
26166
26167 * xfns.c [HAVE_STDLIB_H]: Fix last change.
26168
261692008-02-01 Kenichi Handa <handa@m17n.org>
26170
26171 * fontset.c (fontset_add): Make the type `int'.
26172 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
26173
26174 * character.c (unibyte_char_to_multibyte)
26175 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
26176 charset_unibyte, not charset_primary.
26177
26178 * charset.h (charset_unibyte): Extern it instead of charset_primary.
26179
26180 * charset.c (charset_unibyte): Rename from charset_primary.
26181 (Funibyte_charset): Rename from Fprimary_charset.
26182 (Fset_unibyte_charset): Rename from Fset_primary_charset.
26183 (syms_of_charset): Adjust for the above changes.
26184
26185 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
26186 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
26187 it->multibyte_p is zero.
26188
26189 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
26190 Delete extern.
26191
261922008-02-01 Kenichi Handa <handa@m17n.org>
26193
26194 * coding.c (Fdefine_coding_system_internal): Fix category setting
26195 for a coding system of type iso-2022.
26196
261972008-02-01 Kenichi Handa <handa@m17n.org>
26198
26199 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
26200
262012008-02-01 Kenichi Handa <handa@m17n.org>
26202
26203 * syntax.c (Vnext_word_boundary_function_table): New variable.
26204 (next-word-boundary-function-table): Declare it as a Lisp variable
26205 in syms_of_syntax.
26206 (scan_words): Call functions in Vnext_word_boundary_function_table
26207 if any.
26208
26209 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
26210
26211 * fontset.c (fs_load_font): If fontp->charset is not negative,
26212 return fontp without setting its members.
26213
262142008-02-01 Dave Love <fx@gnu.org>
26215
26216 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
26217
26218 * m/sparc.h (HAVE_ALLOCA): Delete.
26219
26220 * s/irix6-5.h: Don't include strings.h.
26221 (bcopy, bzero, bcmp): Don't undef.
26222
26223 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
26224
26225 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
26226 (TIOCSIGSEND): Don't test IRIX6.
26227 (bcopy, bzero, bcmp): Define conditionally.
26228
262292008-02-01 Kenichi Handa <handa@m17n.org>
26230
26231 * buffer.c (Qas, Qmake, Qto): New variables.
26232 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
26233 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
26234
26235 * callproc.c (Fcall_process): Don't call insert_1_both directly if
26236 we are inserting a process output into a multibyte buffer.
26237
26238 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
26239 multibyte_char_to_unibyte.
26240
26241 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
26242 by the primary charset, make it eight-bit char.
26243 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
26244
26245 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
26246 (charset_8_bit__control, charset_8_bit_graphic)
26247 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
26248 (define_charset_internal): New function.
26249 (syms_of_charset): Call define_charset_internal for pre-defined
26250 charsets.
26251
26252 * charset.h (charset_8_bit): Extern it.
26253
26254 * coding.c (make_conversion_work_buffer): Adjust for the change
26255 of Fset_buffer_multibyte.
26256 (encode_coding_raw_text): Increment p0 in the loop.
26257
26258 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
26259
bba3e508
SM
26260 * xdisp.c (setup_echo_area_for_printing, set_message_1):
26261 Adjust for the change of Fset_buffer_multibyte.
aac0c6e3
MR
26262
26263 * fns.c (Fstring_to_multibyte): New function.
26264 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
26265
262662008-02-01 Dave Love <fx@gnu.org>
26267
26268 * xfns.c (x_put_x_image): Declare args.
26269
26270 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
26271 (try_font_list): Declare an arg.
26272
26273 * xdisp.c (message2_nolog, set_message): Declare an arg.
26274
26275 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
26276
26277 * syntax.c (scan_sexps_forward): Declare an arg.
26278
26279 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
26280 Declare an arg.
26281
26282 * lisp.h (Fnew_fontset): Declare.
26283
26284 * keymap.c (push_key_description): Call CHARACTERP correctly.
26285
26286 * fontset.c (fontset_add): Declare args. Call make_number correctly.
26287 (face_for_char): Delete unused vars.
26288 (Fset_fontset_font): Doc fix. Delete unused vars.
26289
26290 * doc.c (Fsubstitute_command_keys): Delete unused vars.
26291
26292 * composite.c (update_compositions): Declare arg.
26293
26294 * cm.c (calccost, cmgoto): Declare args.
26295
26296 * charset.c: Remove `emacs' conditional. Doc fixes.
26297 (map_char_table_for_charset): Declare.
26298
26299 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
26300
26301 * ccl.c: Remove `emacs' conditional.
26302
263032008-02-01 Kenichi Handa <handa@m17n.org>
26304
26305 The following changes are to allow specifying multiple font
26306 patterns for a character range (specified by script or charset).
26307
26308 * Makefile.in (abbrev.o): Depend on syntax.h.
26309 (xfaces.o): Depend on charset.h.
26310
26311 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
26312 SINGLE_BYTE_CHAR_P.
26313
26314 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
26315
26316 * character.h (Vchar_script_table): Extern it.
26317
26318 * character.c (Vscript_alist): Delete.
26319 (Vchar_script_table, Qchar_script_table): New variable.
26320 (syms_of_character): Declare Vchar_script_table as a lisp variable
26321 and initialize it.
26322
26323 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
26324 have property char-table-extra-slots, make no extra slot.
26325
26326 * dispextern.h (struct face): Delete member `charset'.
26327 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
26328 SINGLE_BYTE_CHAR_P.
26329 (choose_face_font, lookup_non_ascii_face, font_name_registry):
26330 Add prototypes.
26331 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
26332 (generate_ascii_font_name): Rename from generate_ascii_font.
26333
26334 * fontset.h (get_font_repertory_func): New prototype.
26335 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
26336 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
26337
26338 * fontset.c (Qprepend, Qappend): New variables.
26339 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
26340 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
26341 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
26342 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
26343 (fontset_ref_and_range, fontset_add, reorder_font_vector)
26344 (load_font_get_repertory): New functions.
26345 (fontset_set): Delete.
26346 (fontset_face): New arg FACE. Return face ID, not face.
26347 Complete re-write to handle new fontset structure. Change caller.
26348 (free_face_fontset): Use ASET istead of AREF (X) = Y.
26349 (face_for_char): Don't call lookup_face.
26350 (make_fontset_for_ascii_face): New arg FACE.
26351 (fs_load_font): New arg CHARSET_ID. Don't check
26352 Vfont_encoding_alist here.
26353 (find_font_encoding): New function.
26354 (list_fontsets): Use STRINGP, not ! NILP.
26355 (accumulate_script_ranges): New function.
bba3e508
SM
26356 (Fset_fontset_font, Fnew_fontset, Ffontset_info):
26357 Completely re-written to handle new fontset structure.
aac0c6e3 26358 (Ffontset_font): Return a copy of element.
bba3e508
SM
26359 (syms_of_fontset): Define symbols Qprepend and Qappend.
26360 Fix docstring of font-encoding-alist.
aac0c6e3
MR
26361
26362 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
26363 (Fset_fotset_font): Fix arguments to 5.
26364
26365 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
26366
26367 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
26368 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
26369 (highlight_trailing_whitespace): Adjust for the change of
26370 lookup_named_face.
26371
26372 * xfaces.c: Include charset.h.
26373 (load_face_font): Delete argument C. Change caller.
26374 (generate_ascii_font_name): Rename from generate_ascii_font.
26375 (font_name_registry): New function.
26376 (cache_face): Store ascii faces before non-ascii faces in buckets.
26377 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
26378 Lookup only ascii faces.
26379 (lookup_non_ascii_face): New function.
26380 (lookup_named_face): Delete argument C. Change caller.
26381 (lookup_derived_face): Delete argument C. Change caller.
26382 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
26383 a string, just call font_list with it.
26384 (choose_face_font): Delete arguments FACE and C. New arg
26385 FONT_SPEC. Change caller.
26386 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
26387 Change caller.
26388 (realize_non_ascii_face): New function.
26389 (realize_x_face): Call load_face_font here.
26390 (realize_tty_face): Delete argument C. Change caller.
26391 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
26392 get a face ID.
26393 (dump_realized_face): Don't print charset of FACE.
26394
26395 * xfns.c (x_set_font): Always call x_new_fontset and
26396 store_frame_parameter.
26397 (Fx_create_frame): Call x_new_fontset, not x_new_font.
26398 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
26399
26400 * xterm.h (x_get_font_repertory): Extern it.
26401
26402 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
26403 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
26404 it->multibyte_p is zero.
26405 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
26406 (x_new_fontset): If FONTSETNAME doesn't match any existing
26407 fontsets, create a new one.
26408 (x_get_font_repertory): New function.
26409
264102008-02-01 Kenichi Handa <handa@m17n.org>
26411
26412 * coding.c (Ffind_coding_systems_region_internal): Detect an
26413 ASCII only string correctly.
26414
26415 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
26416 version is 0.
26417
264182008-02-01 Kenichi Handa <handa@m17n.org>
26419
26420 * lread.c: Include "coding.h".
26421 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
26422 (load_each_byte, unread_char): New variables.
26423 (readchar_backlog): Delete.
26424 (readchar): Return a character unless load_each_byte is nonzero.
26425 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
26426 cons. If unread_char is not -1, simply return it.
26427 (unreadchar): Handle the case that readcharfun is
26428 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
26429 (read_multibyte): Delete.
26430 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
26431 (read_emacs_mule_char): New functions.
26432 (Fload): Even if the file doesn't have the extension ".elc", if
26433 safe_to_load_p returns a positive version number, assume that the
26434 file contains bytecompiled code. If the version is less than 22,
26435 load the file while decoding multibyte sequences by emacs-mule.
26436 (readevalloop): Don't use readchar_backlog.
26437 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
26438 (Fread_from_string): Pay attention to the case that STREAM is a cons.
26439 (read_escape): Delete the arg BYTEREP.
26440 (read1): Set load_each_byte to 1 temporarily while handling
26441 #@NUMBER. Don't call read_multibyte.
26442 (read_vector): Call Fread with a cons. If readcharfun is
26443 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
26444 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
26445 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
26446 and Qload_force_doc_strings.
26447
264482008-02-01 Kenichi Handa <handa@m17n.org>
26449
bba3e508
SM
26450 * xdisp.c (face_before_or_after_it_pos):
26451 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
aac0c6e3
MR
26452
264532008-02-01 Kenichi Handa <handa@m17n.org>
26454
26455 * character.h (TRAILING_CODE_P): New macro.
26456 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
26457 (string_char_with_unification): Fix prototype.
26458 (Vscript_alist): Extern it.
26459
26460 * character.c (Vscript_alist): New variable.
26461 (string_char_with_unification, str_as_unibyte)
26462 (string_escape_byte8): Add `const' to local variables.
26463 (syms_of_character): Declare script-alist as a Lisp variable.
26464
26465 * charset.h (Vcharset_ordered_list): Extern it.
26466 (charset_ordered_list_tick): Extern it.
26467 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
26468 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
26469 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
26470 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
26471 (Funify_charset): Adjust for the change of Funify_charset.
26472
26473 * charset.c (charset_ordered_list_tick): New variable.
26474 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
26475 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6e051c0a 26476 deunify instead of unify a charset.
aac0c6e3
MR
26477 (string_xstring_p): Add `const' to local variables.
26478 (find_charsets_in_text): Add `const' to arguments and local variables.
bba3e508
SM
26479 (encode_char): Adjust for the change of Funify_charset.
26480 Fix detecting of invalid code.
aac0c6e3
MR
26481 (Fset_charset_priority): Increment charset_ordered_list_tick.
26482 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
26483 and TO_CODE.
26484
26485 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
26486 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
26487 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
26488 (decode_coding_ccl, consume_chars)
26489 (Ffind_coding_systems_region_internal)
26490 (Fcheck_coding_systems_region): Add `const' to local variables.
26491
26492 * print.c (print_object): Use octal form for printing the
26493 contents of a bool vector.
26494
264952008-02-01 Dave Love <fx@gnu.org>
26496
26497 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
26498 <version == 20>: Refuse to load.
26499
265002008-02-01 Dave Love <fx@gnu.org>
26501
26502 * fns.c: Move coding.h.
26503 (Qcodeset, Qdays, Qmonths): New.
26504 (concat): Use CHARACTERP instead of INTEGERP.
26505 (Flocale_codeset): Delete.
26506 (Flanginfo): New function.
26507 (syms_of_fns): Change accordingly.
26508
26509 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
26510
265112008-02-01 Dave Love <fx@gnu.org>
26512
bba3e508
SM
26513 * casetab.c (init_casetab_once, init_casetab_once):
26514 Fix CHAR_TABLE_SET call.
aac0c6e3
MR
26515
26516 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
26517
26518 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
26519
26520 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
26521 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
26522 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
26523
26524 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
26525
26526 * coding.c (ENCODE_DESIGNATION, decode_eol)
26527 (make_conversion_work_buffer, code_conversion_restore)
26528 (Fdefine_coding_system_internal): Convert Lisp types.
26529 (code_conversion_restore): Use EQ, not ==.
26530 (Fencode_coding_string): Fix code_convert_string call.
26531
26532 * coding.h (code_convert_region): Fix prototype.
26533
26534 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
26535
26536 * fontset.c (fontset_ref, fontset_set, fs_load_font)
26537 (Ffontset_info): Convert Lisp types.
26538
26539 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
26540
26541 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
26542
26543 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
26544
26545 * chartab.c: Include "...h", not <...h> in some cases.
26546
26547 * callproc.c (Fcall_process): Remove unused variables.
26548
265492008-02-01 Dave Love <fx@gnu.org>
26550
26551 * coding.c (Fset_coding_system_priority): Allow null arg list.
26552
265532008-02-01 Dave Love <fx@gnu.org>
26554
26555 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
26556 (Fself_insert_and_exit): Use CHARACTERP.
26557
26558 * callproc.c (Fcall_process): Remove unused vars.
26559
26560 * xterm.c (XTread_socket): Add extra dead keysyms.
26561
26562 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
26563
26564 * dispextern.h: Remove prototypes for redraw_frame,
26565 redraw_garbaged_frames.
26566
26567 * cmds.c (Fself_insert_command): Use CHARACTERP.
26568
26569 * chartab.c (make_sub_char_table): Remove unused var.
26570 (Fset_char_table_default, Fmap_char_table): Doc fix.
26571
26572 * keymap.c (access_keymap): Remove generic char code.
26573 (push_key_description): Use CHARACTERP.
26574
265752008-02-01 Dave Love <fx@gnu.org>
26576
26577 * charset.c: Doc fixes.
26578 (Funify_charset): Extra checking.
26579
265802008-02-01 Dave Love <fx@gnu.org>
26581
26582 * lread.c: Remove some unused variables.
26583 (safe_to_load_p): If safe, return the magic number version byte.
26584 (Fload): Maybe use load-with-code-conversion.
26585
265862008-02-01 Kenichi Handa <handa@m17n.org>
26587
26588 * category.c (Fmodify_category_entry): Don't modify the contents
bba3e508
SM
26589 of category_set for characters out of the range.
26590 Avoid unnecessary modification.
aac0c6e3
MR
26591
26592 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
26593 Vchar_unify_table. The default value of the table is now nil.
26594
26595 * character.c (syms_of_character): Setup Vchar_width_table for
26596 eight-bit-control and raw-byte chars.
26597
bba3e508
SM
26598 * charset.h (enum define_charset_arg_index):
26599 Delete charset_arg_parents and add charset_arg_subset and
aac0c6e3
MR
26600 charset_arg_superset.
26601 (enum charset_attr_index): Delete charset_parents and add
26602 charset_subset and charset_superset.
26603 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
26604 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
26605 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
26606 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
26607 (CHARSET_SUPERSET): New macros.
26608 (charset_work): Extern it.
26609 (ENCODE_CHAR): Use charset_work.
26610 (CHAR_CHARSET_P): Adjust for the change of encoder format.
26611 (map_charset_chars): Extern it.
26612
26613 * charset.c (load_charset_map): Set the default value of encoder
26614 and deunifier char-tables to nil.
bba3e508
SM
26615 (map_charset_chars): Change argument. Change callers.
26616 Use map_char_table_for_charset instead of map_char_table.
aac0c6e3
MR
26617 (Fmap_charset_chars): New optional args from_code and to_code.
26618 (Fdefine_charset_internal): Adjust for the change of
26619 `define-charset' (:parents -> :subset or :superset).
26620 (charset_work): New variable.
26621 (encode_char, syms_of_charset): Adjust for the change of
26622 Fdefine_charset_internal.
26623 (Ffind_charset_string): Setup the vector `charsets' correctly.
26624
bba3e508
SM
26625 * chartab.c (sub_char_table_ref_and_range): New arg default.
26626 Fix the previous change.
aac0c6e3
MR
26627 (char_table_ref_and_range): Adjust for the above change.
26628 (map_sub_char_table_for_charset): New function.
26629 (map_char_table_for_charset): New function.
26630
26631 * keymap.c (describe_vector): Handle a char-table directly here.
26632 (describe_char_table): Delete.
26633
26634 * lisp.h (map_charset_chars): Delete.
26635
266362008-02-01 Dave Love <fx@gnu.org>
26637
26638 * fns.c (count_combining): Comment out (unused).
26639 (Flocale_codeset): New.
26640 (syms_of_fns): Defsubr it.
26641
26642 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
26643 (size_t): Remove.
26644
266452008-02-01 Dave Love <fx@gnu.org>
26646
26647 * Makefile.in (chartab.o): Depend on charset.h.
26648
266492008-02-01 Kenichi Handa <handa@m17n.org>
26650
26651 * character.c (syms_of_character): Set the default value of
26652 Vprintable_chars to Qnil.
26653
266542008-02-01 Dave Love <fx@gnu.org>
26655
26656 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
26657
266582008-02-01 Kenichi Handa <handa@m17n.org>
26659
26660 * charset.c (load_charset_map): Handle the case that from < to
26661 correctly.
26662
26663 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
26664 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
26665 Pay attention to raw-8-bit chars.
26666
266672008-02-01 Kenichi Handa <handa@m17n.org>
26668
26669 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
26670 It is not bytecompiled now.
26671
26672 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
26673 (charset_jisx0208): New variables.
26674 (Fdefine_charset_internal): Setup them if appropriate.
26675 (init_charset_once): Initialize them to -1.
26676
26677 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
26678 (charset_jisx0208): Extern them.
26679
26680 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
26681 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
26682 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
26683 (setup_iso_safe_charsets): Fix arguments to Fassq.
26684 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
26685 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
26686 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
26687 (encode_coding_iso_2022): Change the 1st arg to
26688 ENCODE_ISO_CHARACTER to a variable.
26689
266902008-02-01 Kenichi Handa <handa@m17n.org>
26691
26692 * charset.h (enum define_charset_arg_index): New enums
26693 charset_arg_min_code and charset_arg_max_code.
26694 (struct charset): New member char_index_offset.
26695
26696 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
26697 Take charset->char_index_offset into account.
26698 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
26699 args[charset_arg_max_code]. Setup charset.char_index_offset.
26700 (syms_of_charset): Fix args to Fdefine_charset_internal.
26701
267022008-02-01 Dave Love <fx@gnu.org>
26703
26704 * coding.c (decode_coding_utf_8): Reject overlong sequences.
26705
267062008-02-01 Dave Love <fx@gnu.org>
26707
26708 * coding.c: Doc fixes.
26709 (Fcoding_system_aliases): Fix return value.
26710 (Qmac): Remove (duplicated) definition.
26711
267122008-02-01 Dave Love <fx@gnu.org>
26713
362654a6
JB
26714 * charset.c (Fcharset_priority_list, Fset_charset_priority):
26715 New functions.
aac0c6e3
MR
26716
26717 * character.c (Fstring): Doc fix.
26718
26719 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
26720
362654a6 26721 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
26722 (font-encoding-alist): Doc fix.
26723
267242008-02-01 Dave Love <fx@gnu.org>
26725
26726 * term.c (costs_set): Declare static, non-initialized for pcc.
26727 (encode_terminal_code): Remove unused var.
26728
26729 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
26730 for K&R.
26731
26732 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
26733
26734 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
26735 (suffixes): Move out of make_subsidiaries for K&R.
26736
26737 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
26738
26739 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
26740
267412008-02-01 Dave Love <fx@gnu.org>
26742
26743 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
26744
26745 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
26746
267472008-02-01 Yong Lu <lyongu@asia-infonet.com>
26748
26749 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
26750
26751 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
26752
267532008-02-01 Kenichi Handa <handa@m17n.org>
26754
26755 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
26756 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
26757
267582008-02-01 Kenichi Handa <handa@m17n.org>
26759
26760 * coding.c (decode_coding_charset): Adjust for the change of
26761 Fdefine_coding_system_internal.
26762 (Fdefine_coding_system_internal): For a coding system of
26763 `charset' type, store a list of charset IDs in
26764 `charset_attr_charset_valids' element of coding attributes.
26765
267662008-02-01 Kenichi Handa <handa@m17n.org>
26767
26768 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
bba3e508
SM
26769 (emacs_mule_char): New arg src. Delete arg `composition'.
26770 Change caller. Handle 2-byte and 3-byte charsets correctly.
aac0c6e3
MR
26771 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
26772 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
26773 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
ef1b0ba7
SM
26774 (DECODE_EMACS_MULE_21_COMPOSITION):
26775 Call DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
aac0c6e3
MR
26776 sequence.
26777 (decode_coding_emacs_mule): Handle composition correctly. Rewind
26778 `src' and `consumed_chars' correctly before calling emacs_mule_char.
26779 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
26780 and alt&rule composition.
26781 (decode_coding_iso_2022): Handle composition correctly.
26782 (init_coding_once): Setup emacs_mule_bytes for private charsets.
26783
26784 * charset.c (Fdefine_charset_internal): Fix bug for the case of
26785 re-defining a charset. If the charset has :emacs-mule-id, setup
26786 emacs_mule_bytes.
26787 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
26788
267892008-02-01 Kenichi Handa <handa@m17n.org>
26790
26791 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
26792 (encode_coding_big5, encode_coding_charset): If coding requires safe
26793 encoding, produce a character specified by
26794 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
26795
267962008-02-01 Dave Love <fx@gnu.org>
26797
26798 * xterm.c (XSetIMValues): Declare.
26799
26800 * process.c: Conditionally include sys/wait.h, pty.h.
26801
26802 * print.c (print_object): Fix print format for 64-bit systems.
26803
26804 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
26805
26806 * buffer.c (emacs_strerror): Declare.
26807
26808 * fontset.c (Fclear_face_cache): Declare.
26809 (accumulate_font_info): Comment-out (unused).
26810 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
26811 variables.
26812
26813 * character.h (string_escape_byte8): Declare.
26814
bba3e508
SM
26815 * charset.c (load_charset_map, load_charset_map_from_file):
26816 Remove unused vars.
aac0c6e3
MR
26817 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
26818 (Fmap_charset_chars): Doc fix.
26819
26820 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
26821 (Fset_coding_system_priority, Fset_coding_system_priority)
26822 (Fdefine_coding_system_internal): Doc fix.
26823
268242008-02-01 Dave Love <fx@gnu.org>
26825
26826 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
26827
268282008-02-01 Kenichi Handa <handa@m17n.org>
26829
26830 * character.c (string_escape_byte8): Make multibyte string with
26831 correct size.
26832
26833 * charset.c (Fmake_char): Delete unnecessary code.
26834
268352008-02-01 Kenichi Handa <handa@m17n.org>
26836
26837 * xfns.c (x_encode_text): Allocate coding.destination here, and
26838 call encode_coding_object with dst_object Qnil.
26839
26840 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
26841 multibyte form correctly.
26842
26843 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
26844 against Vfont_encoding_alist.
26845
26846 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
26847 handling of charset list.
26848 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
26849 (decode_coding_object): Move point to coding->dst_pos before
26850 calling post-read-conversion function.
26851 (encode_coding_object): Give correct arguments to
26852 pre-write-conversion. Ignore the return value of
26853 pre-write-conversion function. Pay attention to the case that
26854 pre-write-conversion changes the current buffer. If dst_object is
26855 Qt, even if coding->src_bytes is zero, allocate at least one byte
26856 to coding->destination.
26857
26858 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
26859
26860 * charset.c (Fmake_char): Make it more backward compatible.
26861 (Fmap_charset_chars): Fix docstring.
26862
268632008-02-01 Dave Love <fx@gnu.org>
26864
26865 * coding.c: Doc fixes.
26866 (Fdefine_coding_system_alias): Use names, not symbols, in
26867 coding-system-alist.
26868
268692008-02-01 Kenichi Handa <handa@m17n.org>
26870
26871 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
26872 of calling free_realized_face.
26873
268742008-02-01 Yong Lu <lyongu@asia-infonet.com>
26875
26876 * charset.c (read_hex): Don't treat SPC as a comment starter.
26877 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
26878 (Fdecode_char): Fix typo.
26879
268802008-02-01 Kenichi Handa <handa@m17n.org>
26881
26882 * charset.h (struct charset): New member `code_space_mask'.
26883
26884 * coding.c (coding_set_source): Delete the local variable beg_byte.
26885 (encode_coding_charset, Fdefine_coding_system_internal):
26886 Delete the local variable charset.
bba3e508
SM
26887 (Fdefine_coding_system_internal):
26888 Setup attrs[coding_attr_charset_valids] correctly.
aac0c6e3
MR
26889
26890 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
26891 member to check if CODE is valid or not.
26892 (Fdefine_charset_internal): Initialize `code_space_mask' member.
26893 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
26894 is within the range of charset->min_code and carset->max_code.
26895
268962008-02-01 Dave Love <fx@gnu.org>
26897
26898 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
26899
26900 * dispextern.h (generate_ascii_font): Fix return type.
26901
26902 * xfaces.c (generate_ascii_font): Fix arg declaration.
26903
26904 * coding.c (coding_inherit_eol_type)
26905 (Fset_terminal_coding_system_internal)
26906 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
26907
269082008-02-01 Kenichi Handa <handa@m17n.org>
26909
bba3e508
SM
26910 * coding.c (decode_coding_charset, encode_coding_charset):
26911 Handle multiple charsets correctly.
aac0c6e3
MR
26912
269132008-02-01 Kenichi Handa <handa@m17n.org>
26914
26915 * search.c (boyer_moore): Fix handling of multibyte character
26916 translation.
26917
26918 * xdisp.c (display_mode_element): When the variable `elt' is
26919 changed, update `this' and `lisp_string'.
26920
269212008-02-01 Kenichi Handa <handa@m17n.org>
26922
26923 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
26924
26925 * callproc.c (Fcall_process): Be sure to give the current buffer
26926 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
26927
26928 * charset.c (struct charset_map_entries): New struct.
26929 (load_charset_map): Rename from parse_charset_map. New args
26930 entries and n_entries. Change caller.
26931 (load_charset_map_from_file): Rename from load_charset_map.
26932 Change caller. New arg control_flag. Call load_charset_map at
26933 the tail.
26934 (load_charset_map_from_vector): New function.
26935 (Fdefine_charset_internal): Setup charset.compact_codes_p.
26936 (encode_char): If the charset is compact, change a character index
26937 to a code point.
26938
26939 * coding.c (coding_alloc_by_making_gap): Check the case that the
26940 source and destination are the same correctly.
26941 (decode_coding_raw_text): Set coding->consumed_char and
26942 coding->consumed to 0.
26943 (produce_chars): If coding->chars_at_source is nonzero, update
26944 coding->consumed_char and coding->consumed before calling
26945 alloc_destination.
26946 (Fdefine_coding_system_alias): Register ALIAS in
26947 Vcoding_system_alist.
26948 (syms_of_coding): Define `no-conversion' coding system at the tail.
26949
26950 * fileio.c (Finsert_file_contents): Set coding_system instead of
26951 val. If the current buffer is multibyte, always call
26952 decode_coding_gap.
26953
26954 * xfaces.c (try_font_list): Give higher priority to fontset's
26955 family than face's family.
26956
269572008-02-01 Kenichi Handa <handa@m17n.org>
26958
26959 * callproc.c (Fcall_process): Be sure to give the current buffer
26960 to decode_coding_c_string.
26961
26962 * xfaces.c (try_font_list): Give a family specified in a fontset
26963 higher priority than a family specified in a face.
26964
269652008-02-01 Kenichi Handa <handa@m17n.org>
26966
26967 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
26968 Fix arguments to insert_from_buffer.
26969
26970 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
26971
269722008-02-01 Kenichi Handa <handa@m17n.org>
26973
26974 * coding.c (produce_chars): Set the variable `multibytep' correctly.
26975 (decode_coding_gap): Set coding->dst_multibyte correctly.
26976
269772008-02-01 Kenichi Handa <handa@m17n.org>
26978
26979 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
26980 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
26981 (encode_coding_utf_16): Substitute coding->default_char for
26982 non-Unicode characters.
26983 (decode_coding): Don't call record_insert here.
26984 (setup_coding_system): Initialize `surrogate' of
26985 coding->spec.utf_16 to 0.
26986 (EMIT_ONE_BYTE): Fix for multibyte case.
26987
26988 * insdel.c (insert_from_gap): Call record_insert.
26989
269902008-02-01 Kenichi Handa <handa@m17n.org>
26991
26992 * casefiddle.c (casify_region): Fix multibyte case.
26993
26994 * character.c (c_string_width): Add return type `int'.
26995 (char_string_with_unification): Delete arg ADVANCED.
26996
26997 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
26998 (CHAR_STRING): Adjust for the change of char_string_with_unification.
26999 (CHAR_STRING_ADVANCE): Make it do-while statement.
27000
27001 * chartab.c (sub_char_table_set_range): Optimize for the case
27002 DEPTH == 3. Add workaround code for a GCC optimization bug.
27003
27004 * charset.c (parse_charset_map): Remove an unused variable.
27005
27006 * coding.c: Delete unused variables.
27007
27008 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
27009 earlier. If inserted is zero and the coding system doesn't
27010 require flushing, don't call decode_coding_gap.
27011
27012 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
27013
270142008-02-01 Kenichi Handa <handa@m17n.org>
27015
27016 The following changes are for using Unicode as an internal
27017 character model, and use UTF-8 format for buffer/string
27018 representation.
27019
27020 * .gdbinit (xchartable): Adjust for the change of char table structure.
27021 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
27022
27023 * Makefile.in (obj): Add character.o and chartab.o.
27024 (lisp, shortlisp): Remove utf-8.elc.
27025 (*.o): For many files, change dependency on charset.h to
27026 character.h, and add dependency on character.h.
27027 (character.o, chartab.o): New targets.
27028
27029 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
27030 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
27031 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
27032 of "charset.h".
27033
27034 * dired.c, filelock.c: Include "character.h".
27035
27036 * alloc.c: Include "character.h" instead of "charset.h".
27037 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
27038 (syms_of_alloc): Remove defsubr for Smake_char_table.
27039
27040 * buffer.c: Include "character.h" instead of "charset.h", don't
27041 include "coding.h".
27042 (Fset_buffer_multibyte): Adjust for UTF-8.
27043
27044 * buffer.h: EXFUN Fbuffer_live_p.
27045
27046 * callproc.c: Include "character.h" instead of "charset.h".
27047 (Fcall_process): Big change for the new code-conversion APIs.
27048
27049 * casetab.c: Include "character.h" instead of "charset.h".
27050 (set_canon, set_identity, shuffle): Adjust for the new
27051 map_char_table spec.
27052 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
27053 accessing the char table structure.
27054
27055 * chartab.c: New file that implements char table.
27056
27057 * category.c: Include "character.h".
27058 (copy_category_entry): New function.
27059 (copy_category_table): Call map_char_table and copy_category_entry.
27060 (Fmake_category_table): Initialize all top-level slots.
27061 (char_category_set): New function.
27062 (modify_lower_category_set): Delete.
27063 (Fmodify_category_entry): Call char_table_ref_and_range.
27064
27065 * category.h (CATEGORY_SET): Just call char_category_set.
27066
27067 * ccl.c: Include "character.h".
27068 (Qccl, Qcclp): New variables.
27069 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
27070 it's less than 256.
27071 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
27072 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
27073 and DST type.
27074 (ccl_driver): Change types of argument, adjust code accordingly.
27075 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
27076 ccl_driver.
27077 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
27078
27079 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
27080 New members src_multibyte, dst_multibyte, consumed, and produced.
27081 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
27082 (CODING_SPEC_CCL_PROGRAM): New macro.
27083 (ccl_driver): Update prototype.
27084 (Qccl, Qcclp, Fccl_program_p): Extern them.
27085 (CHECK_CCL_PROGRAM): New macro.
27086
27087 * character.c, character.h, chartab.c: New files.
27088
27089 * charset.c: Mostly re-written. Move character and multibyte sequence
27090 handling codes to character.c.
27091
27092 * charset.h: Mostly re-written. Move character and multibyte sequence
27093 handling codes to character.h.
27094
27095 * coding.c, coding.h: Mostly re-written.
27096
27097 * composite.c: Include "character.h" instead of "charset.h".
27098 (CHAR_WIDTH): Move to character.h.
27099 (HASH_KEY, HASH_VALUE): Delete.
27100
27101 * composite.h (enum composition_method): Change order of enumeration
27102 symbols.
27103
27104 * data.c: Include "character.h" instead of "charset.h".
27105 (Faref): Call CHAR_TABLE_REF for a char table.
27106 (Faset): Call CHAR_TABLE_SET for a char table.
27107
27108 * dispextern.h (free_realized_face, check_face_attribytes)
27109 (generate_ascii_font): Extern them.
27110 (free_realized_multibyte_face): Delete extern.
27111
27112 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
27113 table structure.
27114
27115 * editfns.c: Include "character.h" instead of "charset.h".
27116 (Fchar_to_string): Always call CHAR_STRING.
27117
27118 * emacs.c (main): Call init_charset_once, init_charset,
27119 syms_of_chartab, and syms_of_character.
27120
27121 * fileio.c: Include "character.h" instead of "charset.h".
27122 (Finsert_file_contents): Big change for the new code-conversion API.
27123 (choose_write_coding_system, Fwrite_region): Likewise.
27124 (build_annotations_2): Delete.
27125 (e_write): Big change for the new code-conversion API.
27126
27127 * fns.c: Include "character.h" instead of "charset.h".
27128 (copy_sub_char_table): Move to chartab.c.
27129 (Fcopy_sequence): Call copy_char_table for a char table.
27130 (concat): Delete codes calling count_multibyte.
27131 (string_char_to_byte, string_byte_to_char): Adjust for the new
27132 multibyte form.
27133 (internal_equal): Adjust for the change of char table structure.
27134 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
27135 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
27136 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
27137 (char_table_translate, optimize_sub_char_table)
27138 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
27139 chartab.c.
27140 (char_table_ref_and_index): Delete.
27141 (HASH_KEY, HASH_VALUE): Move to lisp.h.
27142 (Fmd5): Call preferred_coding_system instead of accessing
27143 Vcoding_category_list. Adjust for the new code-conversion API.
27144 (syms_of_fns): Move defsubr for char table related functions to
27145 chartab.c.
27146
27147 * fontset.c: Mostly re-written.
27148
27149 * fontset.h (struct font_info): Change type of the member encoding_type.
27150 (enum FONT_SPEC_INDEX): New enum.
27151 (fontset_font_pattern, fs_load_font): Update prototype.
27152 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
27153
27154 * indent.c: Include "character.h" instead of "charset.h".
27155 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
27156
27157 * insdel.c: Include "character.h" instead of "charset.h".
27158 (copy_text): Don't refer to Vnonascii_translation_table.
27159 (insert_from_gap): New function.
27160
27161 * keyboard.c: Include "character.h" instead of "charset.h".
27162 (command_loop_1): Never call direct_output_forward_char before
27163 a non-ASCII character.
27164 (read_char): If Vkeyboard_translate_table is a char table, always
27165 translate a character.
27166
27167 * keymap.c: Include "character.h".
27168 (store_in_keymap): Handle the case that IDX is a cons.
27169 (Fdefine_key): Handle the case that KEY is a cons and the car part
27170 is also a cons (range).
27171 (push_key_description): Adjust for the new character code.
27172 (describe_vector): Call describe_char_table for a char table.
27173 (describe_char_table): New function.
27174
27175 * keymap.h (describe_char_table): Extern it.
27176
27177 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
27178 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
27179 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
27180 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
27181 Delete.
27182 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
27183 structure.
27184 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
27185 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
27186 (CHARTAB_SIZE_BITS_3): New macros.
27187 (chartab_size): Extern it.
27188 (struct Lisp_Char_Table): Re-design.
27189 (struct Lisp_Sub_Char_Table): New structure.
27190 (HASH_KEY, HASH_VALUE): Move from fns.c.
27191 (CHARACTERBITS): Define as 22.
27192 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
27193 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
27194 (GC_SUB_CHAR_TABLE_P): New macro.
27195 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
ef1b0ba7 27196 (code_convert_string_norecord): Delete extern.
aac0c6e3
MR
27197 (init_character_once, syms_of_character, init_charset)
27198 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
27199
27200 * lread.c: Include "character.h".
27201 (read_multibyte): New arg NBYTES.
27202 (read_escape): Change the meaning of returned *BYTEREP.
27203 (to_multibyte): Delete.
27204 (read1): Adjust the handling of char table and string.
27205
27206 * print.c: Include "character.h" instead of "charset.h".
27207 (print_string): Convert 8-bit raw bytes to octal form by
27208 string_escape_byte8.
27209 (print_object): Adjust for the new multibyte form. Print 8-bit
27210 raw bytes always in octal form. Handle sub char table correctly.
27211
27212 * process.c: Include "character.h" instead of "charset.h".
27213 (read_process_output, send_process): Adjust for the new
27214 code-conversion API.
27215
27216 * puresize.h (BASE_PURESIZE): Increase.
27217
27218 * regex.c: Include "character.h" instead of "charset.h".
27219 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
27220 (regex_compile): Accept a range whose starting and ending
27221 character have different leading bytes.
27222 (analyse_first): Adjust for the above change.
27223
27224 * search.c: Include "character.h" instead of "charset.h".
27225 (search_buffer, boyer_moore): Adjust for the new multibyte form.
27226 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
27227
27228 * syntax.c: Include "character.h" instead of "charset.h".
27229 (syntax_parent_lookup): Delete.
27230 (Fmodify_syntax_entry): Accept a cons as CHAR.
27231 (skip_chars): Adjust for the new multibyte form.
27232 (init_syntax_once): Call char_table_set_range instead of directly
27233 accessing the structure of a char table.
27234
27235 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
27236 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
27237 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
27238 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
27239
27240 * term.c: Include "buffer.h" and "character.h".
27241 (encode_terminal_code, write_glyphs): Adjust for the new
27242 code-conversion API.
27243 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
27244
27245 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
27246
27247 * xdisp.c: Include "character.h".
27248 (get_next_display_element): Adjust for the new multibyte form.
27249 (disp_char_vector): Adjust for the new char table structure.
27250 (decode_mode_spec_coding): Adjust for the new structure of
27251 coding system.
27252 (decode_mode_spec): Adjust for the new code-conversion API.
27253
27254 * xfaces.c: Include "character.h" instead of "charset.h".
27255 (load_face_font): Adjust for the change of choose_face_font and
27256 FS_LOAD_FONT.
27257 (generate_ascii_font): New function.
27258 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
27259 (set_font_frame_param): Adjust for the change of choose_face_font.
27260 (free_realized_face): Make it public.
27261 (free_realized_faces_for_fontset): Rename from
27262 free_realized_multibyte_face. Free also faces realized for ASCII.
27263 (choose_face_font): Change arguments. Adjust for the change of
27264 fontset_font_pattern and FS_LOAD_FONT.
27265
27266 * xfns.c: Include "character.h".
27267 (x_encode_text): Adjust for the new code-conversion API.
27268
27269 * xselect.c: Don't include "charset.h".
27270 (selection_data_to_lisp_data): Adjust for the new code conversion API.
27271
27272 * xterm.c: Include "character.h".
27273 (x_encode_char): New argument CHARSET. Change caller.
27274 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
27275 Call ENCODE_CHAR instead of SPLIT_CHAR.
27276 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
27277 CHAR_WIDTH instead of CHARSET_WIDTH.
27278 (XTread_socket): Adjust for the new code-conversion API.
27279 (x_new_font): Adjust for the change of FS_LOAD_FONT.
27280 (x_load_font): Adjust for the change of struct font.
27281
272822008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
27283
27284 * xfaces.c (face_at_buffer_position): Remove unused vars.
27285
272862008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
27287
27288 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
27289 Fix overflow checking.
27290
272912008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
27292
27293 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
27294 Cancel previous change.
27295
272962008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
27297
27298 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
27299 ccl->eight_bit_control. Fix check for buffer overflow.
27300 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
27301 (ccl_driver): Initialize extra_bytes to 0.
27302
273032008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
27304
27305 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
27306 return it ORed with ctrl_modifier.
27307
273082008-01-29 Miles Bader <miles@gnu.org>
27309
27310 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
27311
273122008-01-28 Jason Rumney <jasonr@gnu.org>
27313
27314 * w32.c (stat): Don't double check for networked drive.
27315
273162008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
27317
27318 * window.c (run_window_configuration_change_hook): New function.
27319 Code extracted from set_window_buffer. Set the selected frame.
27320 (set_window_buffer): Use it.
27321 * window.h (run_window_configuration_change_hook): Declare.
27322 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
27323
27324 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
27325
273262008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
27327
27328 * Makefile.in: Remove references to unused macros.
27329
273302008-01-26 Eli Zaretskii <eliz@gnu.org>
27331
27332 * w32.c (g_b_init_get_sid_sub_authority)
27333 (g_b_init_get_sid_sub_authority_count): New static variables.
27334 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
27335 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
27336 (init_user_info): Use them to retrieve uid and gid.
27337 Use 500/513, the Windows defaults, as Administrator's uid/gid.
27338 (fstat): Use pw_uid and pw_gid from the_passwd structure for
27339 st_uid and st_gid of the file.
27340
273412008-01-26 Jason Rumney <jasonr@gnu.org>
27342
27343 * w32.c (logon_network_drive): New function.
27344 (stat): Use it.
27345
273462008-01-26 Chong Yidong <cyd@stupidchicken.com>
27347
27348 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
27349 invisible text covered with an ellipsis.
27350
273512008-01-25 Richard Stallman <rms@gnu.org>
27352
27353 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
27354 jump back to beginning. Move some other initializations after that.
27355 (Qwindow_text_change_functions, Vwindow_text_change_functions):
27356 New variables.
27357 (syms_of_xdisp): Init them.
27358
27359 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
27360
27361 * buffer.c (reset_buffer_local_variables):
27362 Implement `permanent-local-hook'.
27363 (Qpermanent_local_hook): New variable.
27364 (syms_of_buffer): Init and staticpro it.
27365
273662008-01-25 Michael Albinus <michael.albinus@gmx.de>
27367
27368 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
27369
273702008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
27371
27372 * fns.c (Fclrhash): Return TABLE.
27373
273742008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27375
27376 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
27377 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
27378 is set even without positional changes.
27379 (x_scroll_bar_clear): Set bar->redraw_needed_p.
27380
27381 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
27382
273832008-01-23 Jason Rumney <jasonr@gnu.org>
27384
27385 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
27386
27387 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
27388 the unicode range available in MULE by locale-coding-system.
27389 Improve dbcs lead byte detection. Set event timestamp and modifiers
27390 earlier.
27391
273922008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27393
27394 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
27395 [MAC_OSX] (init_mac_osx_environment): Initialize it.
27396 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
27397 when used on child processes.
27398
273992008-01-21 Michael Albinus <michael.albinus@gmx.de>
27400
27401 * dbusbind.c (Fdbus_method_return_internal): Rename from
27402 Fdbus_method_return.
27403 (Fdbus_unregister_object): Move to dbus.el.
27404 (Fdbus_call_method, Fdbus_method_return_internal)
27405 (Fdbus_send_signal): Improve debug messages.
27406
274072008-01-20 Martin Rudalics <rudalics@gmx.at>
27408
27409 * undo.c (undo_inhibit_record_point): New variable.
27410 (syms_of_undo): Initialize it.
27411 (record_point): Don't record point when undo_inhibit_record_point
27412 is set.
27413
274142008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
27415
27416 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
27417
27418 * xdisp.c (Qauto_hscroll_mode): New var.
27419 (syms_of_xdisp): Initialize it.
27420 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
27421 window's buffer.
27422 (hscroll_windows): Don't check automatic_hscrolling_p here.
27423
27424 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
27425 vscroll if we're setting window-buffer to the value it already has.
27426
274272008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
27428
27429 * m/intel386.h: Remove references to XENIX.
27430
274312008-01-17 Andreas Schwab <schwab@suse.de>
27432
27433 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
27434 instead of HAVE_X86_64_LIB64_DIR.
27435 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
27436
274372008-01-17 Glenn Morris <rgm@gnu.org>
27438
27439 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
27440 to HAVE_X86_64_LIB64_DIR.
27441
274422008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
27443
27444 * s/irix3-3.h:
27445 * s/irix4-0.h:
27446 * s/386-ix.h:
27447 * s/domain.h:
27448 * s/hpux9-x11r4.h:
27449 * s/hpux9shxr4.h: Remove files for systems no longer supported.
27450
27451 * sysdep.c: Remove code containing references to symbols defined
27452 by unsupported systems.
27453
274542008-01-16 Glenn Morris <rgm@gnu.org>
27455
27456 * coding.c (select-safe-coding-system-function): Doc fix.
27457
274582008-01-15 Glenn Morris <rgm@gnu.org>
27459
27460 * config.in: Revert 2008-01-13 change: this is a generated file.
27461
274622008-01-13 Tom Tromey <tromey@redhat.com>
27463
27464 * lisp.h: Fix typo.
27465
274662008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
27467
27468 * m/sequent-ptx.h:
27469 * m/sequent.h:
27470 * s/ptx.h:
27471 * s/ptx4-2.h:
27472 * s/ptx4.h: Remove files for systems no longer supported.
27473
27474 * callproc.c (Fcall_process): Fix previous change.
27475
274762008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
27477
27478 * unexsunos4.c: Remove file, system not supported anymore.
27479
27480 * m/mips.h:
27481 * m/intel386.h:
27482 * callproc.c:
27483 * config.in:
27484 * ecrt0.c:
27485 * emacs.c:
27486 * fileio.c:
27487 * frame.c:
27488 * getpagesize.h:
27489 * keyboard.c:
27490 * lread.c:
27491 * process.c:
27492 * puresize.h:
27493 * sysdep.c:
27494 * systty.h:
27495 * syswait.h:
27496 * unexec.c:
27497 * xdisp.c:
27498 * alloc.c: Remove code containing references to symbols defined by
27499 unsupported systems.
27500
275012008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
27502
27503 * coding.c (detect_coding_mask): Fix previous change.
27504
275052008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
27506
27507 * coding.c (detect_coding_iso2022): New arg
27508 latin_extra_code_state. Allow Latin extra codes only
27509 when *latin_extra_code_state is nonzero.
27510 (detect_coding_mask): If there is a NULL byte, detect the encoding
27511 as UTF-16 or binary. If Latin extra codes exist, detect the
27512 encoding as ISO-2022 only when there's no other proper encoding is
27513 found.
27514
275152008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27516
27517 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
27518 #ifdef MAC_OS.
27519
275202008-01-08 Richard Stallman <rms@gnu.org>
27521
27522 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
27523
275242008-01-06 Nick Roberts <nickrob@snap.net.nz>
27525
27526 * keyboard.c (parse_menu_item): Don't enclose key bindings on
27527 menu bar in parentheses.
27528
275292008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
27530
27531 * m/7300.h:
27532 * m/acorn.h:
27533 * m/alliant-2800.h:
27534 * m/alliant.h:
27535 * m/alliant1.h:
27536 * m/alliant4.h:
27537 * m/altos.h:
27538 * m/amdahl.h:
27539 * m/apollo.h:
27540 * m/att3b.h:
27541 * m/aviion-intel.h:
27542 * m/aviion.h:
27543 * m/celerity.h:
27544 * m/clipper.h:
27545 * m/cnvrgnt.h:
27546 * m/convex.h:
27547 * m/cydra5.h:
27548 * m/delta88k.h:
27549 * m/dpx2.h:
27550 * m/dual.h:
27551 * m/elxsi.h:
27552 * m/f301.h:
27553 * m/gould-np1.h:
27554 * m/gould.h:
27555 * m/i860.h:
27556 * m/ibmps2-aix.h:
27557 * m/ibmrt-aix.h:
27558 * m/ibmrt.h:
27559 * m/irist.h:
27560 * m/is386.h:
27561 * m/isi-ov.h:
27562 * m/mega68.h:
27563 * m/mg1.h:
27564 * m/news-r6.h:
27565 * m/news-risc.h:
27566 * m/news.h:
27567 * m/nh3000.h:
27568 * m/nh4000.h:
27569 * m/ns16000.h:
27570 * m/ns32000.h:
27571 * m/nu.h:
27572 * m/orion.h:
27573 * m/orion105.h:
27574 * m/paragon.h:
27575 * m/pfa50.h:
27576 * m/plexus.h:
27577 * m/pyramid.h:
27578 * m/pyrmips.h:
27579 * m/sh3el.h:
27580 * m/sps7.h:
27581 * m/sr2k.h:
27582 * m/stride.h:
27583 * m/sun1.h:
27584 * m/sun2.h:
27585 * m/sun3-68881.h:
27586 * m/sun3-fpa.h:
27587 * m/sun3-soft.h:
27588 * m/sun3.h:
27589 * m/sun386.h:
27590 * m/symmetry.h:
27591 * m/tad68k.h:
27592 * m/tahoe.h:
27593 * m/targon31.h:
27594 * m/tek4300.h:
27595 * m/tekxd88.h:
27596 * m/tower32.h:
27597 * m/tower32v3.h:
27598 * m/ustation.h:
27599 * m/wicat.h:
27600 * m/xps100.h:
27601 * s/cxux.h:
27602 * s/cxux7.h:
27603 * s/dgux.h:
27604 * s/dgux4.h:
27605 * s/dgux5-4-3.h:
27606 * s/dgux5-4r2.h:
27607 * s/esix.h:
27608 * s/esix5r4.h:
27609 * s/hiuxmpp.h:
27610 * s/hiuxwe2.h:
27611 * s/iris3-5.h:
27612 * s/iris3-6.h:
27613 * s/isc2-2.h:
27614 * s/isc3-0.h:
27615 * s/isc4-0.h:
27616 * s/isc4-1.h:
27617 * s/newsos5.h:
27618 * s/newsos6.h:
27619 * s/osf1.h:
27620 * s/osf5-0.h:
27621 * s/riscix1-1.h:
27622 * s/riscix12.h:
27623 * s/sco4.h:
27624 * s/sco5.h:
27625 * s/sunos4-0.h:
27626 * s/sunos4-1.h:
27627 * s/sunos413.h:
27628 * s/sunos4shr.h:
27629 * s/umax.h:
27630 * s/unipl5-2.h:
27631 * s/xenix.h:
27632 * cxux-crt0.s:
27633 * unexapollo.c:
27634 * unexconvex.c:
27635 * unexenix.c:
27636 * unexsni.c: Remove files for systems no longer supported.
27637
27638 * m/intel386.h: Remove references to unsupported systems.
27639
27640 * w32.c (get_emacs_configuration): Remove reference to i860.
27641
27642 * sysdep.c: Remove dead code.
27643
276442008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
27645
27646 * s/rtu.h:
27647 * m/masscomp.h: Remove files. Platform is obsolete.
27648
276492008-01-04 Michael Albinus <michael.albinus@gmx.de>
27650
27651 * dbusbind.c (Fdbus_method_return): New function.
27652 (xd_read_message): Add the serial number to the event.
27653 (Fdbus_register_method): Activate the function.
27654
276552008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
27656
27657 * keyboard.c (read_key_sequence): Fix typo.
27658
276592008-01-03 Michael Albinus <michael.albinus@gmx.de>
27660
27661 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
27662 (xd_signature, xd_append_arg): Handle element type detection for
27663 empty arrays.
27664 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
27665 SDATA () calls; this must be solved more general.
27666 (Fdbus_register_signal): Use SBYTES instead of strlen.
27667
276682008-01-03 Magnus Henoch <magnus@zemdatav>
27669
27670 * dbusbind.c (xd_append_arg): Use unsigned char instead of
27671 unsigned int for byte values (necessary for big-endian platform).
27672 (Fdbus_call_method): Handle the case of no returned arguments.
27673
276742007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
27675
27676 * dbusbind.c (xd_read_message): Use non-static input_event struct.
27677
276782007-12-31 Magnus Henoch <mange@freemail.hu>
27679
27680 * dbusbind.c (xd_signature): Signature of variant is just "v".
27681
276822007-12-30 Michael Albinus <michael.albinus@gmx.de>
27683
27684 * dbusbind.c: Fix several errors and compiler warnings.
27685 Reported by Tom Tromey <tromey@redhat.com>.
27686 (XD_ERROR, XD_DEBUG_MESSAGE)
27687 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
27688 (xd_append_arg): Part for basic D-Bus types rewritten.
27689 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
27690 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
27691 appropriate.
27692 (xd_read_message): Return Qnil. Don't signal an error; it is not
27693 useful during event reading.
27694 (Fdbus_register_signal): Signal an error if the check for
27695 FUNCTIONP fails.
27696 (Fdbus_register_method): New function. The implementation is not
27697 complete, the call of the function signals an error therefore.
27698 (Fdbus_unregister_object): New function, renamed from
27699 Fdbus_unregister_signal. The initial check signals an error, if
27700 the object is not well formed.
27701
277022007-12-30 Richard Stallman <rms@gnu.org>
27703
27704 * textprop.c (get_char_property_and_overlay):
27705 Signal error if POSITION is out of range in a buffer.
27706
277072007-12-29 Martin Rudalics <rudalics@gmx.at>
27708
27709 * w32fns.c (Fx_create_frame): Make copy of frame parameters
27710 because the original parameters are in pure storage now.
27711
277122007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27713
27714 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
27715
277162007-12-22 Eli Zaretskii <eliz@gnu.org>
27717
27718 * callint.c (syms_of_callint) <command-history>: Add reference to
27719 history-length in the doc string.
27720
277212007-12-17 Jason Rumney <jasonr@gnu.org>
27722
27723 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
27724 before passing as wParam.
27725
277262007-12-22 Michael Albinus <michael.albinus@gmx.de>
27727
27728 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
27729 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
27730 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
27731 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
27732 as number.
27733 (Fdbus_call_method): Fix docstring.
27734
277352007-12-21 Michael Albinus <michael.albinus@gmx.de>
27736
27737 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
27738 New macros.
27739 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
27740 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
27741 Simplify.
27742 (xd_signature): New function.
27743 (xd_append_arg): Compute also signatures. Major rewrite.
27744 (xd_retrieve_arg): Make debug messages friendly.
27745 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
27746 Check for signatures of arguments.
27747
277482007-12-19 Michael Albinus <michael.albinus@gmx.de>
27749
27750 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
27751 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
27752 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
27753 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
27754 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
27755 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
27756 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
27757 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
27758 (xd_retrieve_value): Remove. Functionality included in ...
27759 (xd_append_arg): New function.
27760 (Fdbus_call_method, Fdbus_send_signal): Apply it.
27761
277622007-12-16 Michael Albinus <michael.albinus@gmx.de>
27763
27764 * dbusbind.c (top): Include <stdio.h>.
27765 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
27766 dbus_message_new_method_call and dbus_message_new_signal.
27767 (Fdbus_register_signal): Rename unique_name to uname.
27768 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
27769 non-existing unique name. Fix typos in matching rule. Return an
27770 object which is useful in Fdbus_unregister_signal.
27771 (Fdbus_unregister_signal): Reimplementation, in order to remove
27772 only the corresponding entry.
27773 (Vdbus_registered_functions_table): Change the order of entries.
27774 Apply these changes in xd_read_message and Fdbus_register_signal.
27775
277762007-12-16 Andreas Schwab <schwab@suse.de>
27777
27778 * fileio.c (Finsert_file_contents): Fix overflow check to not
27779 depend on undefined integer overflow.
27780
277812007-12-14 Jason Rumney <jasonr@gnu.org>
27782
27783 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
27784 for characters above 127.
27785
277862007-12-13 Jason Rumney <jasonr@gnu.org>
27787
27788 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
27789 before dereferencing array.
27790 (lookup_vk_code): Remove zero comparison.
27791
277922007-12-14 Michael Albinus <michael.albinus@gmx.de>
27793
27794 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
27795 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
27796 Use `unsigned int' instead of `uint'.
27797 (xd_read_message, Fdbus_register_signal): Split expressions into
27798 multiple lines before operators "&&" and "||", according to the
27799 GNU Coding Standards.
27800
278012007-12-14 Eli Zaretskii <eliz@gnu.org>
27802
27803 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
27804
278052007-12-12 Juri Linkov <juri@jurta.org>
27806
27807 * buffer.c (Frename_buffer): In interactive spec replace
27808 `read-buffer' with `read-string' that uses `buffer-name-history'
27809 as history, and the current buffer's name as default.
27810
278112007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
27812
27813 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
27814 manipulating the backtrace manually.
27815 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
27816 (struct backtrace, backtrace_list): Remove.
27817 (command_loop_1): Remove dead var `no_direct'.
27818
27819 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
27820 preserve non-built-in buffer-local variables.
27821 (Fkill_all_local_variables): Don't re-create&re-set permanent
27822 buffer-local variables.
27823
278242007-12-09 Juri Linkov <juri@jurta.org>
27825
27826 * buffer.c (Frename_buffer): Change interactive spec from "s" to
27827 Lisp code that uses `read-buffer' with current buffer as default.
27828
278292007-12-08 Michael Albinus <michael.albinus@gmx.de>
27830
27831 * dbusbind.c (xd_read_message): Generate an event for every
27832 registered handler. There might be several handlers registered
27833 for the same signal.
27834 (Fdbus_register_signal): Don't overwrite a registration for the
27835 same signal. Add a new registration if handlers are different.
27836 (Vdbus_registered_functions_table): Rework doc string.
27837
278382007-12-07 Michael Albinus <michael.albinus@gmx.de>
27839
27840 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
27841 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
27842 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
27843 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
27844 Unify argument lists.
27845 (xd_read_message, Fdbus_register_signal): Reorder and extend event
27846 arguments and hash table keys. Use unique name for service.
27847 (Fdbus_unregister_signal): Remove checks.
27848 (Vdbus_registered_functions_table): Fix doc string.
27849
278502007-12-05 Magnus Henoch <mange@freemail.hu>
27851
27852 * process.c (make_process): Initialize pty_flag to 0.
27853
278542007-12-05 Jason Rumney <jasonr@gnu.org>
27855
27856 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
27857 specified XBMs.
27858
278592007-12-05 Richard Stallman <rms@gnu.org>
27860
27861 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
27862
278632007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27864
27865 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
27866 New variable.
27867 (mac_try_close_socket) [MAC_OSX]: New function.
27868 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
27869 Update cfsockets_for_select. Replace invalid CFRunLoop source.
27870
27871 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
27872 Use mac_try_close_socket.
27873
278742007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27875
27876 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
27877 reloc_base.
27878 (copy_dysymtab): Compute relocation base here.
27879 (rebase_reloc_address) [__ppc64__]: New function.
27880 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
27881 changed.
27882
278832007-12-05 Jason Rumney <jasonr@gnu.org>
27884
27885 * w32proc.c (sys_spawnve): Quote args with wildcards.
27886
278872007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27888
27889 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
27890 __objc_* sections.
27891 (unrelocate) [_LP64]: Set relocation base to address of data segment.
27892
278932007-12-05 Michael Albinus <michael.albinus@gmx.de>
27894
27895 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
27896 Move check for Vdbus_registered_functions_table to
27897 xd_read_queued_messages.
27898 (xd_read_queued_messages): Protect xd_read_message calls by
27899 internal_condition_case_1.
27900
279012007-12-04 Michael Albinus <michael.albinus@gmx.de>
27902
27903 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
27904 Qdbus_system_bus and Qdbus_session_bus, respectively.
27905 (Vdbus_intern_symbols): Remove.
27906 (Vdbus_registered_functions_table): New hash table.
27907 (XD_SYMBOL_INTERN_SYMBOL): Remove.
27908 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
27909 Rewrite in order to manage registered functions by hash table
27910 Vdbus_registered_functions_table.
27911
279122007-12-03 Jan Djärv <jan.h.d@swipnet.se>
27913
27914 * xterm.c: Update URL to Window Manager Specification in comment.
27915
279162007-12-02 Michael Albinus <michael.albinus@gmx.de>
27917
27918 * config.in (HAVE_DBUS): Add.
27919
27920 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
27921 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
27922 (obj): Add $(DBUS_OBJ).
27923 (LIBES): Add $(DBUS_LIBS).
27924 (dbusbind.o): New target.
27925
27926 * dbusbind.c: New file.
27927
27928 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
27929
27930 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
27931 (Qdbus_event): New Lisp symbol.
27932 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
27933 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 27934 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
27935
27936 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
27937
279382007-12-01 Richard Stallman <rms@gnu.org>
27939
27940 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
27941
279422007-11-30 Jason Rumney <jasonr@gnu.org>
27943
27944 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
27945 (w32con_reset_terminal_modes): Clear screen buffer.
27946 (w32_face_attributes): Don't use color indexes that are out of range.
27947 Only reverse the default colors.
27948
27949 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
27950 WINDOWSNT.
27951
27952 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
27953
279542007-11-29 Jason Rumney <jasonr@gnu.org>
27955
27956 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
27957 (w32_face_attributes): Use Vtty_defined_color_alist to determine
27958 if the terminal colors are initialized.
27959 (unspecified_fg, unspecified_bg): Remove unused declarations.
27960
279612007-11-29 Andreas Schwab <schwab@suse.de>
27962
27963 * keyboard.c (apply_modifiers): Fix typo.
27964
279652007-11-29 Richard Stallman <rms@gnu.org>
27966
27967 * keymap.c (Fcurrent_local_map): Doc fix.
27968
279692007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
27970
27971 * s/gnu-kfreebsd.h: New file.
27972
279732007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
27974
27975 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
27976 Don't cast redundantly.
27977
27978 * keyboard.c (KEY_TO_CHAR): New macro.
27979 (parse_modifiers, apply_modifiers): Accept integer arguments.
27980 (read_key_sequence): Use them to unify the "shift->unshift" mapping
27981 for chars and symbol keys.
27982 After doing such remapping, apply function-key-map again.
27983
279842007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
27985
27986 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
27987 compiled anymore.
27988
279892007-11-26 Andreas Schwab <schwab@suse.de>
27990
27991 * process.c (list_processes_1): Fix indentation level of the
27992 command column.
27993
279942007-11-23 Andreas Schwab <schwab@suse.de>
27995
27996 * editfns.c (Fformat): Handle %c specially since it requires the
27997 argument to be of type int.
27998
279992007-11-23 Markus Triska <markus.triska@gmx.at>
28000
28001 * emacs.c (main): Call init_editfns before init_process, since
28002 init_process sets Vprocess_connection_type depending on OS release.
28003
280042007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
28005
28006 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
28007 (find_symbol_value): Use do_symval_forwarding.
28008
28009 * data.c (set_internal): Set the value in the `cons-cell' (for
28010 Buffer_Local_values) not only for frame-local variables.
28011
280122007-11-22 Andreas Schwab <schwab@suse.de>
28013
28014 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
28015 values to sprintf.
28016 * keymap.c (Fsingle_key_description): Likewise.
28017 * print.c (print_object): Likewise.
28018
280192007-11-22 Jan Djärv <jan.h.d@swipnet.se>
28020
28021 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
28022 file for image is nil.
28023
280242007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
28025
28026 * term.c: Include stdarg.h.
28027 (fatal): Implement using varargs.
28028 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
28029
280302007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
28031
28032 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
28033 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
28034 Update call to buffer_slot_type_mismatch.
28035 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
28036 (buffer_slot_type_mismatch): Update.
28037 * buffer.c (buffer_local_types): Remove.
28038 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
28039 (defvar_per_buffer): Set the type in the buffer_objfwd.
28040
280412007-11-21 Jason Rumney <jasonr@gnu.org>
28042
28043 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
28044 CreateFileMapping returns NULL on failure.
28045
280462007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
28047
28048 * search.c (Fset_match_data): Remove the `evaporate' feature.
28049 (unwind_set_match_data): Don't use the `evaporate' feature.
28050
280512007-11-21 Jason Rumney <jasonr@gnu.org>
28052
28053 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
28054
28055 * w32console.c (w32con_write_glyphs): Remove unused variables.
28056
280572007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
28058
28059 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
28060
28061 * s/darwin.h (MULTI_KBOARD): Remove.
28062
28063 * macfns.c (x_create_tip_frame, Fx_create_frame)
28064 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
28065
280662007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
28067
28068 * buffer.c (Fbuffer_local_value): Remove redundant test.
28069 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
28070 than in `current-buffer' to match the comment.
28071 Do the swap using swap_in_global_binding.
28072
28073 * data.c (store_symval_forwarding, set_internal):
28074 * eval.c (specbind): Remove dead code.
28075
28076 * coding.c (detect_coding, Fupdate_coding_systems_internal):
28077 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
28078 Since we do not want to see internal Lisp_*fwd objects here.
28079
280802007-11-18 Jan Djärv <jan.h.d@swipnet.se>
28081
28082 * sysdep.c (init_system_name): Use getaddrinfo if available.
28083
28084 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
28085 (x_scroll_bar_note_movement): start, end, with, height in struct
28086 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
28087
280882007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
28089
28090 * puresize.h (BASE_PURESIZE): Increase to 1190000.
28091
280922007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
28093
28094 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
28095 This undoes Richard's change of 14-Oct-2002.
28096
28097 * alloc.c (allocate_other_vector):
28098 * lisp.h (allocate_other_vector): Remove.
28099
28100 * window.c (struct save_window_data): Move non-lisp data to the end
28101 and make it `int' rather than Lisp_Object.
28102 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
28103 Done wrap/unwrap integer values.
28104 (Fset_window_configuration, compare_window_configurations):
28105 Update use of fields to their new types.
28106
28107 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
28108 Turn integer fields into `int'. Merge x_window_low and x_window_high.
28109 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
28110 (SET_SCROLL_BAR_X_WINDOW): Remove.
28111 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
28112 Access the new x_window field directly.
28113 * xterm.c (x_scroll_bar_create): Use a pseudovector.
28114 Don't wrap/unwrap integers into Lisp_Objects.
28115 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
28116 (x_scroll_bar_report_motion):
28117 Don't wrap/unwrap integers into Lisp_Objects.
28118 (x_term_init): Use SDATA.
28119 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
28120 (x_scroll_bar_set_handle, x_scroll_bar_remove)
28121 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
28122 (x_scroll_bar_report_motion, x_scroll_bar_clear):
28123 * xfns.c (x_set_background_color):
28124 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
28125 Access the new x_window field directly.
28126
28127 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
28128 (allocate_pseudovector): Make non-static.
28129
28130 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
28131 (allocate_pseudovector): Declare.
28132 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
28133
281342007-11-15 Andreas Schwab <schwab@suse.de>
28135
28136 * editfns.c (Fformat): Correctly format EMACS_INT values.
28137 Also take precision into account when formatting an integer.
28138
28139 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
28140
281412007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
28142
28143 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
28144 (syms_of_keyboard): Defsubr it.
28145
28146 * data.c (swap_in_global_binding): Fix longstanding bug where
28147 store_symval_forwarding was not called with the right second argument,
28148 thus causing objfwd-ing from being dropped.
28149
281502007-11-14 Juanma Barranquero <lekktu@gmail.com>
28151
28152 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
28153 (Fx_display_pixel_height, Fx_display_planes)
28154 (Fx_display_color_cells, Fx_server_max_request_size)
28155 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
28156 (Fx_display_visual_class, Fx_display_save_under):
28157 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
28158 (Fx_display_pixel_height, Fx_display_planes)
28159 (Fx_display_color_cells, Fx_server_max_request_size)
28160 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
28161 (Fx_display_mm_height, Fx_display_mm_width)
28162 (Fx_display_backing_store, Fx_display_visual_class)
28163 (Fw32_select_font, Fx_display_save_under):
28164 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
28165 (Fx_display_pixel_height, Fx_display_planes)
28166 (Fx_display_color_cells, Fx_server_max_request_size)
28167 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
28168 (Fx_display_save_under): Fix typos in docstrings.
28169
281702007-11-14 Juanma Barranquero <lekktu@gmail.com>
28171
28172 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
28173 corresponding to deleted entries; they are an implementation detail.
28174 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
28175 Remove variables.
28176 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
28177 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
28178 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
28179 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
28180 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
28181 (Fw32_define_rgb_color, Fw32_load_color_file)
28182 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
28183 Fix typos in docstrings.
28184 (Fx_server_version): Reflow docstring.
28185 (Fw32_shell_execute): Doc fixes.
28186
281872007-11-13 Juanma Barranquero <lekktu@gmail.com>
28188
28189 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
28190 if w32_parse_hot_key returned nil.
28191
281922007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
28193
28194 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
28195
281962007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 28197
aac0c6e3
MR
28198 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
28199
28200 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
28201
28202 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
28203 Remove W32_SCROLL_BAR_CLICK_EVENT.
28204
28205 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
28206 Add MULTIMEDIA_KEY_EVENT.
28207
28208 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
28209 (lispy_multimedia_keys) [WINDOWSNT]: New array.
28210 (make_lispy_event) [WINDOWSNT]: Use it to translate
28211 MULTIMEDIA_KEY_EVENT.
28212
28213 * w32term.h (WM_APPCOMMAND): Define if not already.
28214 (GET_APPCOMMAND_LPARAM): Likewise.
28215
28216 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
28217 WM_APPCOMMAND.
28218
28219 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
28220 (syms_of_w32fns): Export and initialize it.
28221 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
28222
282232007-11-09 Chong Yidong <cyd@stupidchicken.com>
28224
28225 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
28226 twice.
28227
28228 * xdisp.c (handle_face_prop): Fix last change.
28229
282302007-11-09 Richard Stallman <rms@gnu.org>
28231
28232 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
28233 not just for after-strings and before-strings.
28234 Call face_for_overlay_string and pass the overlay to it.
28235 (handle_display_prop): Determine whether property came from an overlay.
28236 Pass OVERLAY arg to handle_single_display_spec.
28237 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
28238 (load_overlay_strings): Fill in it->string_overlays.
28239 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
28240
28241 * xfaces.c (face_for_overlay_string): Function renamed from
28242 face_at_buffer_position_no_overlays, and add arg OVERLAY.
28243
28244 * dispextern.h (struct it): New elt string_overlays.
28245 New elt from_overlay, also in stack.
28246 Rearrange a few elements.
28247 (face_for_overlay_string): Decl renamed from
28248 face_at_buffer_position_no_overlays, and add argument.
28249
282502007-11-09 Richard Stallman <rms@gnu.org>
28251
28252 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
28253 to get the base face for an overlay string.
28254
28255 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
28256
28257 * xfaces.c (face_at_buffer_position_no_overlays): New function.
28258
28259 * xdisp.c (handle_stop): Move some code out of loop.
28260
282612007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28262
28263 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
28264 Fix conversion from Lisp object to ATSUFontID.
28265
282662007-11-09 Jason Rumney <jasonr@gnu.org>
28267
28268 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
28269
282702007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28271
28272 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
28273 Don't assume regions are aligned to page boundary.
28274 (print_load_command_name): Add LC_UUID if defined.
28275
282762007-11-09 Richard Stallman <rms@gnu.org>
28277
28278 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
28279
282802007-11-07 Jason Rumney <jasonr@gnu.org>
28281
28282 * s/windows95.h: Remove.
28283
282842007-11-06 Jan Djärv <jan.h.d@swipnet.se>
28285
28286 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
28287 abort with a message on unhandled store_type values.
28288
282892007-11-01 Jan Djärv <jan.h.d@swipnet.se>
28290
28291 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
28292 Remove HAVE_X11R5 and HAVE_X11R4.
28293
282942007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
28295
28296 * Makefile.in: Remove references to sunfns.c and sunfns.o.
28297
282982007-11-01 Johan Bockgård <bojohan@gnu.org>
28299
28300 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
28301 Don't set s->stippled_p here, since it has already been set by
28302 x_set_glyph_string_gc from x_draw_glyph_string.
28303
283042007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
28305
28306 * sunfns.c: Remove file.
28307
28308 * m/sun386.h:
28309 * m/sun2.h:
28310 * m/sparc.h: Remove Sun windows code.
28311
283122007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
28313
28314 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
28315 (init_keyboard): Set current_kboard's window-system to nil.
28316 (tty_read_avail_input): Typo.
28317 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
28318
283192007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
28320
28321 * s/usg5-4.h:
28322 * s/usg5-3.h:
28323 * s/ptx.h:
28324 * m/is386.h:
28325 * m/ibmps2-aix.h:
28326 * Makefile.in: Remove all mentions of X10.
28327
28328 * dispnew.c (syms_of_display): Don't mention version 10.
28329
283302007-10-28 Juanma Barranquero <lekktu@gmail.com>
28331
28332 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
28333 ($(BLD)/abbrev.$(O)): Remove.
28334
283352007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
28336
28337 Rewrite abbrev.c in Elisp.
28338 * image.c (Qcount): Don't declare as extern.
28339 (syms_of_image): Initialize and staticpro `Qcount'.
28340 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
28341 * emacs.c (main): Don't call syms_of_abbrev.
28342 * Makefile.in (obj): Remove abbrev.o.
28343 (abbrev.o): Remove.
28344 * abbrev.c: Remove.
28345
283462007-10-26 Martin Rudalics <rudalics@gmx.at>
28347
28348 * window.c (window_min_size_2): Don't count header-line.
28349
283502007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
28351
28352 * frame.h (struct frame): Move all bit fields after the first bit
28353 field to take advantage of the available space. Group all the
28354 chars together to reduce wasted space due to padding.
28355
283562007-10-26 Juanma Barranquero <lekktu@gmail.com>
28357
28358 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
28359
28360 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
28361 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
28362 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
28363 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
28364 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
28365 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
28366 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
28367 (last_marked, mark_object_loop_halt): Make static.
28368
28369 * frame.c (syms_of_frame) <delete-frame-functions>:
28370 Fix typo in docstring.
28371
283722007-10-25 Juanma Barranquero <lekktu@gmail.com>
28373
28374 * w32.c (init_environment): Fix tiny memory leak.
28375 (w32_get_resource): Remove unused variable `ok'.
28376
283772007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
28378
28379 Make `window-system' into a keyboard-local variable (rather than
28380 frame-local as done originally by multi-tty).
28381
28382 * keyboard.h (struct kboard): Add Vwindow_system.
28383 * keyboard.c (init_kboard): Set a default for Vwindow_system.
28384 (mark_kboards): Mark Vwindow_system.
28385
28386 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
28387 (init_display): Don't set the obsolete `window-system' frame-param.
28388
28389 * xterm.c (x_term_init):
28390 * w32term.c (w32_create_terminal):
28391 * term.c (init_tty): Set Vwindow_system.
28392 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
28393 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
28394
28395 * xfns.c (Fx_create_frame, x_create_tip_frame):
28396 * w32fns.c (Fx_create_frame, x_create_tip_frame):
28397 * macfns.c (Fx_create_frame):
28398 Don't set the obsolete `window-system' frame-param.
28399
28400 * frame.h (Qwindow_system): Remove.
28401 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
28402 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
28403
284042007-10-24 Richard Stallman <rms@gnu.org>
28405
28406 * frame.c (x_figure_window_size): For fullscreen case,
28407 set USPosition | PPosition without clobbering rest of window_prompting.
28408
28409 * keyboard.c (Fcurrent_idle_time): Doc fix.
28410
28411 * print.c (Fwith_output_to_temp_buffer): Doc fix.
28412
284132007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
28414
28415 * process.c (unwind_request_sigio): Only define if __ultrix__.
28416
28417 * callproc.c (child_setup): Remove spurious *.
28418
28419 * lisp.h (Fget_text_property): Declare.
28420 (have_menus_p): Declare it here rather than in sys-dep header files.
28421 * macterm.h (have_menus_p):
28422 * msdos.h (have_menus_p):
28423 * xterm.h (have_menus_p): Remove.
28424
28425 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
28426 (Fmake_variable_frame_local): Just check the variable's const-ness
28427 rather than checking nil or t.
28428
284292007-10-22 Jason Rumney <jasonr@gnu.org>
28430
28431 * w32fns.c: Include math.h.
28432 (w32_abort): Declaration moved to nt/config.nt.
28433
28434 * s/ms-w32.h (HAVE_STDLIB_H): Define.
28435 (abort): Redefinition moved to nt/config.nt.
28436
28437 * m/windowsnt.h: Remove.
28438
284392007-10-22 Juanma Barranquero <lekktu@gmail.com>
28440
28441 * emacs.c (Fdump_emacs): Fix typo in message.
28442 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
28443 <installation-directory>: Reflow docstring.
28444
284452007-10-22 Juri Linkov <juri@jurta.org>
28446
28447 * minibuf.c: Allow minibuffer default to be a list of default values.
28448 With empty input use the first element of this list as returned default.
28449 (string_to_object)
28450 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
28451 (read_minibuf): If defalt is cons, set histstring to its car.
28452 (Fread_string): If default_value is cons, set val to its car.
28453 (Fread_buffer): If def is cons, use its car.
28454 (Fcompleting_read): If defalt is cons, set val to its car.
28455
284562007-10-21 Michael Albinus <michael.albinus@gmx.de>
28457
28458 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
28459
284602007-10-20 Juanma Barranquero <lekktu@gmail.com>
28461
28462 * doc.c (Fdocumentation): Check for advice in all cases.
28463
284642007-10-19 Chong Yidong <cyd@stupidchicken.com>
28465
28466 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
28467
284682007-10-19 Richard Stallman <rms@gnu.org>
28469
28470 * doc.c (Fdocumentation): Check for and handle an advised function.
28471
284722007-10-19 Juanma Barranquero <lekktu@gmail.com>
28473
28474 * process.c (Fset_process_filter): Doc fix.
28475
284762007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
28477
28478 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
28479 which caused key-translation-map to applied repeatedly (thus breaking
28480 double-mode).
28481
284822007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
28483
28484 * xselect.c (x_own_selection, x_handle_selection_clear)
28485 (x_clear_frame_selections):
28486 * w32menu.c (list_of_panes, list_of_items):
28487 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
28488 * textprop.c (validate_plist, interval_has_all_properties)
28489 (interval_has_some_properties, interval_has_some_properties_list)
28490 (add_properties, text_property_list):
28491 * process.c (Fget_buffer_process, list_processes_1, status_notify):
28492 * minibuf.c (Fassoc_string):
28493 * macselect.c (x_own_selection, x_clear_frame_selections)
28494 (Fx_disown_selection_internal):
28495 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
28496 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
28497
284982007-10-17 Chong Yidong <cyd@stupidchicken.com>
28499
28500 * process.c: Link to libs for calling res_init() if available.
28501 (Fmake_network_process): Call res_init() before getaddrinfo or
28502 gethostbyname, if possible.
28503
285042007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
28505
28506 * lread.c (read1): Set pvectype for char_tables.
28507
28508 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
28509 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
28510 Add type checks.
28511 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
28512
28513 * alloc.c (free_misc): Use XMISCTYPE.
28514 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
28515
285162007-10-17 Glenn Morris <rgm@gnu.org>
28517
28518 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
28519 (syms_of_minibuf): Add Qcompletion_ignore_case.
28520 * dired.c (Qcompletion_ignore_case): Change to external.
28521 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
28522 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
28523 (Fread_file_name): Use it rather than intern'ing.
28524
28525 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
28526 (Fread_coding_system): Ignore case of user input.
28527
285282007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28529
28530 * xdisp.c (handle_display_prop): Ignore display specs after
28531 replacing one when string text is being replaced.
28532 (handle_single_display_spec): Pretend as if characters with display
28533 property haven't been consumed only when buffer text is being replaced.
28534
285352007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
28536
28537 * xfns.c (Fx_create_frame, Fx_display_list):
28538 * window.c (window_fixed_size_p, enlarge_window)
28539 (shrink_window_lowest_first):
28540 * macterm.c (init_font_name_table):
28541 * macfns.c (Fx_create_frame, Fx_display_list):
28542 * lread.c (close_load_descs):
28543 * keyboard.c (read_char_x_menu_prompt):
28544 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
28545 * coding.c (code_convert_region_unwind): Test the type of an object
28546 rather than just !NILP before extracting data from it.
28547
28548 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
28549
28550 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
28551 (XMISCANY): New macro.
28552 (XMISCTYPE): Use it.
28553 (struct Lisp_Misc_Any): New type.
28554 (union Lisp_Misc): Use it.
28555 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
28556 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
28557 (find_symbol_value, set_internal, default_value, Fset_default)
28558 (Fmake_variable_buffer_local, Fmake_local_variable)
28559 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
28560 (Flocal_variable_if_set_p, Fvariable_binding_locus):
28561 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
28562 * alloc.c (allocate_buffer): Set the size and tag.
28563 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
28564 Use XMISCANY.
28565 (die): Follow the GNU convention for error messages.
28566 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
28567 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
28568 tag any more.
28569 (set_buffer_internal_1):
28570 * frame.c (store_frame_param):
28571 * eval.c (specbind):
28572 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
28573
28574 * doc.c (Fsnarf_documentation): Simplify.
28575
285762007-10-14 Juanma Barranquero <lekktu@gmail.com>
28577
28578 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
28579 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
28580
285812007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
28582
28583 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
28584
285852007-10-14 Juanma Barranquero <lekktu@gmail.com>
28586
28587 * eval.c (do_autoload): Don't save autoloads.
28588
28589 * data.c (Ffset): Save autoload of the function being set.
28590
285912007-10-07 John Paul Wallington <jpw@pobox.com>
28592
28593 * xfns.c (x_create_tip_frame): Set the `display-type' frame
28594 parameter before setting up faces.
28595
285962007-10-13 Eli Zaretskii <eliz@gnu.org>
28597
28598 * ccl.c (Fregister_code_conversion_map):
28599 * keyboard.c (append_tool_bar_item): Reformat last change.
28600
28601 * lisp.h (eabs): Rename from `abs'. All callers changed.
28602
286032007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
28604
28605 * buffer.c (add_overlay_mod_hooklist):
28606 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
28607 * fontset.c (make_fontset):
28608 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
28609 (append_tool_bar_item):
28610 * macmenu.c (grow_menu_items):
28611 * w32menu.c (grow_menu_items):
28612 * xmenu.c (grow_menu_items): Use larger_vector.
28613
286142007-10-13 Eli Zaretskii <eliz@gnu.org>
28615
28616 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
28617 selected frame'' on MSDOS).
28618
286192007-10-12 Martin Rudalics <rudalics@gmx.at>
28620
28621 * frame.c (Qexplicit_name): New variable.
28622 (x_report_frame_params): Report it in parameter alist.
28623 (syms_of_frame): Intern and staticpro it.
28624
286252007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
28626
28627 * macfns.c (x_create_tip_frame): Set terminal for frame.
28628
286292007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
28630
28631 * frame.c (Qenvironment): Remove.
28632 (syms_of_frame) <Qenvironment>: Don't initialize.
28633 (Fdelete_frame): Don't treat the `environment' param specially.
28634 * frame.h (Qenvironment): Don't declare.
28635 * callproc.c (set_initial_environment): Don't set unused frame param.
28636
28637 * frame.c (Fframe_with_environment): Remove.
28638 (syms_of_frame) <Sframe_with_environment>: Don't declare.
28639
28640 * lisp.h (Fframe_with_environment): Don't declare.
28641
286422007-10-10 Juanma Barranquero <lekktu@gmail.com>
28643
28644 * indent.c (indent_tabs_mode, last_known_column)
28645 (last_known_column_modified): Make static.
28646 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
28647
286482007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
28649
28650 * puresize.h (BASE_PURESIZE): Increase to 1170000.
28651
286522007-10-09 Jason Rumney <jasonr@gnu.org>
28653
28654 * w32term.c (x_set_window_size): Disable code that attempts to tell
28655 Lisp code about a size change before it actually happens.
28656
286572007-10-09 Richard Stallman <rms@gnu.org>
28658
28659 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
28660 return HANDLED_RETURN.
28661
286622007-10-08 Martin Rudalics <rudalics@gmx.at>
28663
28664 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
28665 when there's an unread command event.
28666
28667 * frame.c (focus_follows_mouse): Move here from frame.el to allow
28668 window autoselection act appropriately when leaving selected frame.
28669 (syms_of_frame): Initialize focus_follows_mouse.
28670 * frame.h (focus_follows_mouse): Extern it.
28671 * macterm.c (XTread_socket): When focus_follows_mouse is nil
28672 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
28673 * msdos.c (dos_rawgetc): Likewise.
28674 * w32term.c (w32_read_socket): Likewise.
28675 * xterm.c (handle_one_xevent): Likewise.
28676 * xdisp.c (syms_of_xdisp): In doc-string of
28677 mouse-autoselect-window mention focus-follows-mouse.
28678
286792007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28680
28681 * macterm.c (mac_load_query_font): Fix missing return value.
28682 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
28683 Add BLOCK_INPUT.
28684
286852007-10-08 Richard Stallman <rms@gnu.org>
28686
28687 * xdisp.c (get_window_cursor_type): Implement documented behavior
28688 for cursor-in-non-selected-windows = t.
28689
286902007-10-08 Jason Rumney <jasonr@gnu.org>
28691
28692 * w32.c (w32_get_resource): Always close registry keys.
28693
286942007-10-08 Jason Rumney <jasonr@gnu.org>
28695
28696 * makefile.w32-in (LIBS): Add COMCTL32.
28697
28698 * w32fns.c (globals_of_w32fns): Init common controls.
28699
287002007-10-08 Richard Stallman <rms@gnu.org>
28701
28702 * image.c (our_memory_buffer): Rename from omfib_buffer.
28703
287042007-10-08 Richard Stallman <rms@gnu.org>
28705
28706 * buffer.c (Foverlays_at): Doc fix.
28707
287082007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
28709
28710 * fns.c (Fplist_put): Preserve uneven tail data.
28711
287122007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
28713
28714 * termhooks.h (enum event_kind): Remove trailing comma.
28715
28716 * frame.h (enum): Remove trailing comma.
28717
287182007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
28719
28720 * w32proc.c (delete_child): Don't terminate threads of zombies.
28721
287222007-10-08 Martin Rudalics <rudalics@gmx.at>
28723
28724 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
28725
28726 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
28727 last-repeatable-command.
28728 (init_kboard): Initialize Vlast_repeatable_command.
28729 (command_loop_1): Set it to real_this_command unless that was
28730 bound to an input event.
28731 (mark_kboards): Mark it.
28732
287332007-10-08 Richard Stallman <rms@gnu.org>
28734
28735 * eval.c (condition-case): Doc fix.
28736
287372007-10-08 Masatake YAMATO <jet@gyve.org>
28738
28739 * xfaces.c (tty_supports_face_attributes_p): Fix code
28740 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
28741 was copied and not edited.
28742
287432007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
28744
28745 Add new `input-decode-map' keymap and use it for terminal
28746 escape sequences.
28747 * keyboard.h (struct kboard): Add Vinput_decode_map.
28748 Remove Vlocal_key_translation_map.
28749 * keyboard.c (read_key_sequence): Add support for input-decode-map.
28750 (init_kboard): Init input-decode-map.
28751 Replace local-key-translation-map back with key-translation-map.
28752 (syms_of_keyboard): Declare input-decode-map.
28753 Remove local-key-translation-map. Update docstrings.
28754 (mark_kboards): Mark Vinput_decode_map.
28755 Don't mark Vlocal_key_translation_map.
28756 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
28757 Replace local-key-translation-map back with key-translation-map.
28758 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
28759 Bind in input-decode-map rather than function-key-map.
28760
28761 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
28762 This was made redundant by the previous introduction of XSETPVECTYPE.
28763
287642007-10-09 Richard Stallman <rms@gnu.org>
28765
28766 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
28767
287682007-09-29 Richard Stallman <rms@gnu.org>
28769
28770 * eval.c (internal_condition_case_2, internal_condition_case_1)
28771 (internal_condition_case): Reenable abort if x_catching_errors ()
28772 to see if that really happens and why.
28773
287742007-10-06 Andreas Schwab <schwab@suse.de>
28775
28776 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
28777
287782007-10-04 Juanma Barranquero <lekktu@gmail.com>
28779
28780 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
28781
287822007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
28783
28784 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
28785
287862007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
28787
28788 * window.h (struct window):
28789 * window.c (struct save_window_data, struct saved_window):
28790 * termhooks.h (struct terminal):
28791 * process.h (struct Lisp_Process):
28792 * frame.h (struct frame):
28793 * buffer.h (struct buffer):
28794 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
28795 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
28796 The size field of (pseudo)vectors is now unsigned.
28797 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
28798
28799 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
28800 Turn `count' into an integer.
28801
28802 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
28803 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
28804 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
28805 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
28806 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
28807
28808 * alloc.c (allocate_pseudovector): New fun.
28809 (ALLOCATE_PSEUDOVECTOR): New macro.
28810 (allocate_window, allocate_terminal, allocate_frame)
28811 (allocate_process): Use it.
28812 (mark_vectorlike): New function.
28813 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
28814 (mark_terminals): Use it.
28815 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
28816 (Fmake_byte_code): Use XSETPVECTYPE.
28817
28818 * frame.c (Fframe_parameters): Minor simplification.
28819
28820 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
28821
28822 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
28823
28824 * buffer.c (Fget_buffer_create, init_buffer_once):
28825 * lread.c (defsubr):
28826 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
28827
28828 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
28829 defined differently in the m/*.h files.
28830 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
28831 (XSETPVECTYPE): New macro.
28832 (XSETPSEUDOVECTOR): Use it.
28833
28834 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
28835 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
28836
28837 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
28838 * lread.c (defvar_per_buffer):
28839 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
28840
28841 * window.c (candidate_window_p): Only consider as visible frames that
28842 are on the same terminal.
28843
28844 * m/ibms390x.h (MARKBIT): Remove unused macro.
28845
288462007-10-01 Juanma Barranquero <lekktu@gmail.com>
28847
28848 * lread.c (Fload): Fix typo in docstring.
28849
288502007-10-01 Michaël Cadilhac <michael@cadilhac.name>
28851
28852 * floatfns.c (Fexpt): Manually check for overflows, so that a power
28853 of a non-zero value can't yield zero.
28854
288552007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
28856
28857 * term.c (term_clear_mouse_face, term_mouse_highlight)
28858 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
28859
28860 * print.c (safe_debug_print): Use XHASH.
28861
28862 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
28863 Lisp elements such as tags.
28864 (XHASH): New macro.
28865 (EQ): Use it.
28866 (SREF, SSET, STRING_COPYIN): Use SDATA.
28867 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
28868
28869 * alloc.c (mark_terminal): Remove left-over declaration.
28870 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
28871 (allocate_vectorlike): Remove type argument. Adjust callers.
28872 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
28873 Only handle the one remaining MEM_TYPE_VECTORLIKE.
28874
28875 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
28876 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
28877 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
28878 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
28879 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
28880 Use them.
28881
28882 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
28883 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
28884 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
28885
288862007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
28887
28888 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
28889 loaded by default.
28890
288912007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
28892
28893 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
28894 on this tty.
28895 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
28896
28897 * term.c (mouse_face_window): Rename from Qmouse_face_window.
28898 Update all users.
28899 (handle_one_term_event): Use Gpm_DrawPointer.
28900 (Fgpm_mouse_start): Rename from Fterm_open_connection.
28901 Signal errors instead of returning nil. Always return nil.
28902 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
28903 Make it a noop if gpm-mouse was not activated.
28904 (syms_of_term): Update names.
28905
289062007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
28907
28908 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
28909 (init_sys_modes): Check that gpm_tty is the current tty.
28910
28911 * alloc.c (allocate_terminal): Set the vector size to only count the
28912 lisp fields. Initialize those to nil.
28913 (mark_object): Don't treat terminals specially.
28914 (mark_terminal): Remove.
28915 (mark_terminals): Use mark_object instead.
28916
28917 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
28918 the GC to the beginning.
28919
28920 * indent.h:
28921 * indent.c: Use EMACS_INT for ints coming from Elisp data.
28922
28923 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
28924
289252007-09-25 Jason Rumney <jasonr@gnu.org>
28926
28927 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
28928
28929 * w32console.c (create_w32cons_output): Remove.
28930
28931 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
28932
28933 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
28934 (reset_sys_modes): Use reset_terminal_modes_hook.
28935
289362007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
28937
28938 * eval.c (do_autoload): Don't output any message.
28939
289402007-09-24 Juri Linkov <juri@jurta.org>
28941
28942 * emacs.c (standard_args): Change priority of "--no-splash"
28943 from 40 to 3. Add "--no-desktop" with the same priority.
28944
289452007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
28946
28947 * alloc.c (gc_sweep): Check cons cell mark bits word by word
28948 and optimize the case where they are all 1.
28949
289502007-09-23 Johannes Weiner <hannes@saeurebad.de>
28951
28952 * lisp.h (abs): Define if not defined.
28953 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
28954 Don't define `abs', since it's defined in lisp.h.
28955
289562007-09-22 Eli Zaretskii <eliz@gnu.org>
28957
28958 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
28959 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
28960 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
28961 (init_tty): Use DEV_TTY instead of "/dev/tty".
28962 [WINDOWSNT]: No need to protect from NAME arg being null.
28963
289642007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
28965
28966 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
28967 up the tty state.
28968
289692007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
28970
28971 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
28972 (gpm_tty): Change its type.
28973 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
28974 (gpm_tty): Change its type and initialize it.
28975 (Fterm_open_connection): Check the frame is indeed a tty.
28976 Use the new gpm_tty.
28977 (Fterm_close_connection): Use the new gpm_tty.
28978 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
28979 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
28980
289812007-09-21 Juanma Barranquero <lekktu@gmail.com>
28982
28983 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
28984 underline_color, to draw strike-through.
28985
289862007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
28987
28988 * lisp.h (allocate_terminal): Declare.
28989
28990 * window.c (candidate_window_p): Consider frames that are being placed
28991 by the user as somewhere between visible and iconified.
28992 (window_loop): Prefer windows on the current frame.
28993 (Fselect_window): Move the use of select-frame to the beginning so we
28994 can just delegate all the work (it'll call us back anyway).
28995
28996 * frame.c (Qdisplay_environment_variable):
28997 * frame.h (Qdisplay_environment_variable): Delete.
28998
28999 * .gdbinit (xbacktrace): Print the arg's address rather than the value
29000 of the first arg, since that value may be a union.
29001
29002 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
29003 parameter rather than Qdisplay_environment_variable. If all else
29004 fails, look for DISPLAY in initial-environment.
29005
290062007-09-21 Glenn Morris <rgm@gnu.org>
29007
29008 * Makefile.in (emacstool): Remove target.
29009 (lisp, shortlisp): Remove termdev.elc.
29010
290112007-09-21 Markus Triska <markus.triska@gmx.at>
29012
29013 * xterm.c (x_delete_display): Compile session management conditionally.
29014
290152007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
29016
29017 * callproc.c (getenv_internal_1): New function.
29018 (getenv_internal): Use it.
29019 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
29020
29021 * terminal.c (get_terminal): Don't accept ints to represent terminals.
29022 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
29023 (Fset_terminal_parameter): Work with dead terminals as well.
29024 (Fmodify_terminal_parameters): Remove.
29025
29026 * terminal.c (get_terminal): Handle terminals.
29027 Make sure the terminal returned is live.
29028 (create_terminal): Use allocate_terminal.
29029 (mark_terminals): Move to alloc.c.
29030 (delete_terminal): Use terminal->name as liveness status.
29031 NULL out fields after freeing their contents.
29032 Don't deallocate the object.
29033 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
29034 rather than an int.
29035 (Fterminal_live_p): Accept non-integer arguments.
29036 (Fterminal_list): Return terminal objects rather than an ints.
29037
29038 * alloc.c (enum mem_type): New member for `terminal' objects.
29039 (allocate_terminal): New function.
29040 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
29041 Handle terminals.
29042 (mark_terminal): New fun.
29043 (mark_terminals): Move from terminal.c.
29044
29045 * term.c (get_tty_terminal): Don't treat output_initial specially.
29046 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
29047 (delete_tty): Use terminal->name as liveness status.
29048
29049 * termhooks.h (struct terminal): Make it into a pseudovector.
29050 Remove `deleted' replaced by checking `name's nullness.
29051
29052 * print.c (print_object): Handle terminals.
29053
29054 * lisp.h (enum pvec_type): New `terminal' pseudovector.
29055 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
29056
29057 * frame.c (make_terminal_frame):
29058 * keyboard.c (tty_read_avail_input):
29059 * w32term.c (x_delete_terminal):
29060 * xfns.c (Fx_create_frame, x_create_tip_frame):
29061 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
29062
290632007-09-20 Glenn Morris <rgm@gnu.org>
29064
29065 * process.c (Fmake_network_process): Doc fix.
29066
290672007-09-19 Jason Rumney <jasonr@gnu.org>
29068
29069 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
29070
290712007-09-19 Michaël Cadilhac <michael@cadilhac.name>
29072
29073 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
29074 Fix a C warning regarding variable constness.
29075
29076 * xterm.c (handle_one_xevent): Fix a C warning.
29077
290782007-09-18 Jason Rumney <jasonr@gnu.org>
29079
29080 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
29081
290822007-09-17 Jan Djärv <jan.h.d@swipnet.se>
29083
29084 * gtkutil.c (gdpy_def): New variable.
29085 (xg_initialize): Initialize gdpy_def.
29086 (xg_display_close): If no other display exists, set gdpy_def to a
29087 new connection.
29088
290892007-09-16 Jan Djärv <jan.h.d@swipnet.se>
29090
29091 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
29092 when we have no file name for the icon.
29093 (xg_tool_bar_expose_callback): Remove.
29094 (xg_create_tool_bar): Don't connect expose signal to
29095 xg_tool_bar_expose_callback.
29096 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
29097
290982007-09-16 Andreas Schwab <schwab@suse.de>
29099
29100 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
29101 values instead of zapping them.
29102
291032007-09-14 Glenn Morris <rgm@gnu.org>
29104
29105 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
29106 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
29107 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
29108 scope and rename to omfib_buffer for clarity.
29109 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
29110
291112007-09-14 Kenichi Handa <handa@m17n.org>
29112
29113 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
29114
291152007-09-13 Jason Rumney <jasonr@gnu.org>
29116
29117 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
29118
29119 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
29120
29121 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
29122 (mac_term_init): Call here instead, passing rif.
29123
291242007-09-13 Glenn Morris <rgm@gnu.org>
29125
29126 * s/hpux.h: No longer define `static' as nothing.
29127
291282007-09-13 Johan Bockgård <bojohan@gnu.org>
29129
29130 * callint.c (Fcall_interactively): Remove unused var `fun'.
29131
291322007-09-12 Romain Francoise <romain@orebokech.com>
29133
29134 * window.c (prefer_window_split_horizontally, display_buffer):
29135 Revert 2007-09-08 change.
29136
291372007-09-12 Glenn Morris <rgm@gnu.org>
29138
29139 * alloca.c: Remove file.
29140 * Makefile.in (alloca): Do not undef.
29141 (allocaobj, alloca.o): Remove.
29142 (otherobj): Remove allocaobj.
29143 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
29144 * regex.c (C_ALLOCA): Remove all references and code that was only
29145 used when this was defined.
29146 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
29147 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
29148 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
29149
29150 * Makefile.in (SOURCES, unlock, relock): Delete.
29151
29152 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
29153 (menu_grab_callback): All uses changed.
29154
29155 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
29156 (x_reply_selection_request): All uses changed.
29157
291582007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
29159
29160 * lread.c (load_warn_old_style_backquotes): Change message to look
29161 better when it appears in the middle of byte-compiler messages.
29162
291632007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
29164
29165 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
29166
29167 * xterm.c (x_create_terminal): Add comment.
29168
29169 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
29170
291712007-09-10 Richard Stallman <rms@gnu.org>
29172
29173 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
29174
291752007-09-10 Michaël Cadilhac <michael@cadilhac.name>
29176
29177 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
29178 (DEFUN): Document `intspec', use it instead of `prompt'.
29179
29180 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
29181
29182 * data.c (Finteractive_form): If the interactive specification starts
29183 with a `(', use it as a Lisp form.
29184
29185 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
29186 name and file modes.
29187
29188 * callint.c (Fcall_interactively): Comment fixes.
29189
291902007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
29191
29192 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
29193 and compiled functions.
29194
291952007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
29196
29197 * window.c (prefer_window_split_horizontally): New variable.
29198 (display_buffer): Consider splitting window horizontally depending
29199 on prefer_window_split_horizontally.
29200
292012007-09-08 Eli Zaretskii <eliz@gnu.org>
29202
29203 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
29204
292052007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
29206
29207 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
29208
29209 * frame.c (x_set_frame_parameters): Check number is positive before
29210 using XFASTINT.
29211
29212 * window.c (freeze_window_start): Don't presume selected_window holds
29213 a window object.
29214 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
29215
292162007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
29217
29218 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
29219
292202007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
29221
29222 * window.c (Vsplit_window_preferred_function): New var.
29223 (Fdisplay_buffer): Use it.
29224 (syms_of_window): Export, and initialize it.
29225
292262007-09-06 Pixel <pixel@mandriva.com> (tiny change)
29227
29228 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
29229
292302007-09-06 Glenn Morris <rgm@gnu.org>
29231
29232 * gtkutil.c (menu_grab_callback) <cnt>:
29233 * xselect.c (x_reply_selection_request) <cnt>: Move static
29234 variable to file scope.
29235
292362007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
29237
29238 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
29239 consistent values of selected_frame and selected_window.
29240
292412007-09-04 Jason Rumney <jasonr@gnu.org>
29242
29243 * w32console.c (initialize_w32_display): Zero unused hooks.
29244
292452007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
29246
29247 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
29248 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
29249
292502007-09-04 Jason Rumney <jasonr@gnu.org>
29251
29252 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
29253 in w32console.c. Set up input. Remove XXX comments that have been
29254 confirmed as correct.
29255
29256 * s/ms-w32.h (MULTI_KBOARD): Define.
29257
29258 * w32console.c (one_and_only_w32cons): Remove.
29259 (initialize_w32_display): Take terminal argument.
29260
29261 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
29262 initialize_w32_display.
29263 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
29264
29265 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
29266
29267 * keyboard.c (discard_mouse_events): Discard it.
29268 (make_lispy_event): Translate it to a lisp event.
29269 (lispy_wheel_names): Add wheel-left and right events.
29270 (syms_of_keyboard): Enlarge wheel_syms.
29271
29272 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
29273 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
29274
29275 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
29276
29277 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
29278 from WM_MOUSEHWHEEL.
29279 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
29280
29281 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
29282 terminal.
29283
29284 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
29285 keyboard for the terminal.
29286
292872007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
29288
29289 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
29290 (Vresume_tty_hook): Rename from Vresume_tty_functions.
29291 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
29292 and resume-tty-function to resume-tty-hook.
29293 (Fsuspend_tty, Fresume_tty): Use new names.
29294
292952007-09-02 Jan Djärv <jan.h.d@swipnet.se>
29296
29297 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
29298 if it starts with "n:".
29299
293002007-08-31 Jan Djärv <jan.h.d@swipnet.se>
29301
29302 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
29303
293042007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
29305
29306 * frame.h:
29307 * frame.c (Qterm_environment_variable): Remove.
29308 (syms_of_frame): Don't init and staticpro it.
29309
29310 * callproc.c (getenv_internal): Remove special case for $TERM.
29311
29312 * callproc.c (Vinitial_environment): New variable.
29313 (set_initial_environment): Initialize it.
29314 (syms_of_callproc): Declare it.
29315 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
29316 TERM under which a process runs is never related to the TERM in which
29317 Emacs is running.
29318
293192007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
29320
29321 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
29322 * s/darwin.h: ... do it here.
29323
293242007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
29325
29326 * lisp.h (set_initial_environment): Rename from set_global_environment.
29327
29328 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
29329 removed by mistake on the multi-tty branch.
29330
29331 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
29332 (Fmodify_frame_parameters): Return a value.
29333
29334 * image.c (png_load): Comment-out var only used in commented-out code.
29335
29336 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
29337 before passing it to mark_object.
29338
29339 * xfaces.c (internal_resolve_face_name): Return a value.
29340 (internal_resolve_face_name, resolve_face_name_error): Comment out.
29341
29342 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
29343 (x_icon): Comment-out var only used in commented-out code.
29344
293452007-08-29 Romain Francoise <romain@orebokech.com>
29346
29347 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
29348 QUIT hasn't been provided.
29349
293502007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
29351
29352 * callproc.c (child_setup, getenv_internal): Use the
29353 display-environment-variable and term-environment-variable frame params.
29354 (set_initial_environment): Initialise Vprocess_environment.
29355
29356 * config.in: Disable multi-keyboard support on a mac.
29357
29358 * frame.c (Qterm_environment_variable)
29359 (Qdisplay_environment_variable): New variables.
29360 (syms_of_frame): Intern and staticpro them.
29361 (Fmake_terminal_frame): Disable output method test.
29362
29363 * frame.h: Declare them here.
29364
29365 * macfns.c (x_set_mouse_color): Get rif from the frame.
29366 (x_set_tool_bar_lines): Don't use updating_frame.
29367 (mac_window): Add 2 new parameters for consistency with other systems.
29368 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
29369 frame parameters following what is done in X11 and w32. Don't use
29370 FRAME_MAC_DISPLAY_INFO.
29371 (Fx_open_connection, start_hourglass): Remove window-system check.
29372 (x_create_tip_frame): Get the keyboard from the terminal.
29373
29374 * macmenu.c: Reorder includes.
29375 (Fx_popup_menu): Use terminal specific mouse_position_hook.
29376
29377 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
29378 terminal parameter.
29379 (x_clear_frame): Add a frame parameter.
29380 (note_mouse_movement): Get rif from the frame.
29381 (mac_term_init): Initialize the terminal.
29382 (mac_initialize): Make static and move terminal initialization ...
29383 (mac_create_terminal): ... to this new function.
29384
29385 * macterm.h (struct mac_display_info): Add terminal.
29386 (mac_initialize): Delete declaration.
29387
29388 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
29389
29390 * sysdep.c: Comment out text after #endif.
29391
29392 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
29393 is defined. Better initialize ttys in windows. Use terminal
29394 specific mouse_position_hook.
29395
29396 * termhooks.h (union display_info): Add mac_display_info.
29397
29398 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
29399 Set the default minibuffer frame, window_system and the rest of the
29400 frame parameters following what is done in X11.
29401
29402 * w32term.c (w32_initialize): Make static.
29403
29404 * xselect.c (x_handle_selection_clear): Only access
29405 terminal->kboard when MULTI_KBOARD is defined.
29406
29407 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
29408 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
29409
294102007-08-29 Jason Rumney <jasonr@gnu.org>
29411
29412 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
29413 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
29414
29415 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
29416 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
29417
29418 * keyboard.c (restore_kboard_configuration): Only define when
29419 MULTI_KBOARD defined.
29420
29421 * makefile.w32-in: Update dependancies from Makefile.in.
29422 (OBJ1): Add terminal.$(O)
29423
29424 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
29425 Don't define function body.
29426 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
29427
29428 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
29429
29430 * w32.c (request_sigio, unrequest_sigio): Remove.
29431
29432 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
29433 (w32con_clear_frame, w32con_clear_end_of_line)
29434 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
29435 (w32con_delete_glyphs, w32con_set_terminal_window)
29436 (scroll_line, w32_sys_ring_bell): Add frame arg.
29437 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
29438 Add terminal arg.
29439 (PICK_FRAME): Remove.
29440 (w32con_write_glyphs): Use frame specific terminal coding.
29441 (one_and_only_w32cons): New global variable.
29442 (initialize_w32_display): Use it for storing hooks.
29443 (create_w32cons_output): New function.
29444
29445 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
29446 arg a frame.
29447
29448 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
29449 Set window_system.
29450 (x_set_tool_bar_lines): Don't use updating_frame.
29451 (Fx_create_frame): Set terminal and ref count.
29452 (Fx_open_connection): Remove window-system check.
29453
29454 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
29455
29456 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
29457 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
29458 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
29459 Add frame arg.
29460 (x_delete_terminal, w32_create_terminal): New functions.
29461 (w32_term_init): Create a terminal.
29462 (w32_initialize): Move terminal specific initialization to
29463 w32_create_terminal.
29464
29465 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
29466 (w32_clear_rect, w32_clear_area): Use background from frame.
29467 (w32_display_info): Add terminal.
29468 (w32_sys_ring_bell, x_delete_display): Declare here.
29469
29470 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
29471
29472 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
29473
294742007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
29475
29476 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
29477 Fix get_named_tty calls for the controlling tty.
29478
294792007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
29480
194d44e7 29481 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
29482
294832007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
29484
29485 * term.c (tty_insert_glyphs): Add missing first parameter.
29486
294872007-08-29 Károly Lőrentey <karoly@lorentey.hu>
29488
29489 * buffer.c (Fbuffer_list, Fbury_buffer):
29490 Take frame->buried_buffer_list into account.
29491
29492 * cm.c (current_tty): New variable, for cmputc().
29493 (cmputc): Use it.
29494 (cmcheckmagic): Add tty parameter, look up terminal streams there.
29495 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
29496 (cmgoto): Add tty parameter. Pass it on to calccost().
29497 Use emacs_tputs() instead of tputs().
29498
29499 * cm.h (emacs_tputs): New macro to set current_tty, and then call
29500 tputs().
29501 (current_tty): New variable, for cmputc().
29502 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
29503
29504 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
29505 (internal_condition_case, internal_condition_case_1)
29506 (internal_condition_case_2): Don't abort when x_catching_errors.
29507
29508 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
29509 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
29510 prevent crashes caused by bogus longjmps in read_char.
29511
29512 * keymap.h (Fset_keymap_parent): Add EXFUN.
29513
29514 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
29515 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
29516 Remove redundant definition.
29517
29518 * macfns.c (x_set_mouse_color, x_make_gc):
29519 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29520
29521 * w32term.c (x_free_frame_resources):
29522 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29523 (w32_initialize): Use the accessor macros for terminal characteristics.
29524
29525 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
29526 Use the accessor macros for terminal characteristics.
29527 * msdos.c (internal_terminal_init): Use the accessor macros for
29528 terminal characteristics.
29529 (ScreenVisualBell, internal_terminal_init):
29530 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29531
29532 * termopts.h (no_redraw_on_reenter): Declare.
29533
29534 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
29535 (mark_terminals, mark_ttys): Declare.
29536 (Fgarbage_collect): Call them.
29537 (mark_object): Mark buried_buffer_list.
29538
29539 * prefix-args.c: Include stdlib.h for exit.
29540
29541 * syssignal.h: Add comment.
29542
29543 * indent.c: Include stdio.h.
29544
29545 * window.h (Vinitial_window_system): Declare.
29546 (Vwindow_system): Delete declaration.
29547
29548 * fontset.c (Finternal_char_font): Use FRAME_RIF.
29549
29550 * image.c (lookup_image): Don't initialize `c' until the xasserts
29551 have been run.
29552
29553 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
29554 FRAME_FOREGROUND_PIXEL.
29555
29556 * print.c (print_preprocess): Don't lose print_depth levels while
29557 iterating.
29558
29559 * widget.c (update_from_various_frame_slots):
29560 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29561
29562 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
29563 frames.
29564 (window_internal_height): Remove bogus make_number call.
29565 (init_window_once): Call make_terminal_frame with two zero parameters.
29566
29567 * fileio.c (Fread_file_name): Update comment.
29568
29569 * callint.c (Fcall_interactively):
29570 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
29571 Make sure it is correctly unwound.
29572
29573 * xsmfns.c (x_session_close): New function.
29574
29575 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
29576 Delete declarations.
29577
29578 * xterm.h: Remove declaration for x_fully_uncatch_errors.
29579 (x_output): Remove background_pixel and foreground_pixel fields.
29580 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
29581 (x_delete_device, x_session_close): Declare.
29582
29583 * lread.c: Include setjmp.h. Update declaration of `read_char'.
29584 (read_filtered_event): Call `read_char' with a local
29585 `wrong_kboard_jmpbuf'.
29586
29587 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
29588 Don't call single_kboard_state. Use FRAME_RIF.
29589
29590 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
29591 systems.
29592
29593 * lisp.h (set_process_environment): Rename to `set_global_environment'.
29594 (Fframe_with_environment, Fset_input_meta_mode)
29595 (Fset_quit_char): EXFUN.
29596 (x_create_device, tty_output, terminal, tty_display_info): Declare.
29597 (init_sys_modes, reset_sys_modes): Update prototypes.
29598 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
29599
29600 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
29601 Vlocal_key_translation_map, and Vkeyboard_translate_table.
29602 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
29603 Delete declarations.
29604 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
29605 (temporarily_switch_to_single_kboard, tty_read_avail_input):
29606 New declarations.
29607
29608 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
29609 already does that during init_display(). Call syms_of_keymap
29610 before syms_of_keyboard. Call `syms_of_terminal'.
29611 Call set_initial_environment, not set_process_environment.
29612 (shut_down_emacs): Call reset_all_sys_modes() instead of
29613 reset_sys_modes().
29614
29615 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
29616 (internal_resolve_face_name, resolve_face_name_error): New functions.
29617 (resolve_face_name): Protect against loops and errors thrown by Fget.
29618 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
29619 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
29620
29621 * scroll.c: Replace CURTTY() with local variables throughout the
29622 file (where applicable).
29623 (calculate_scrolling, calculate_direct_scrolling)
29624 (scrolling_1, scroll_cost): Use the accessor macros for terminal
29625 characteristics.
29626
29627 * keymap.c (Vfunction_key_map): Remove.
29628 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
29629 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
29630 (Vkey_translation_map): Remove.
29631 (syms_of_keymap): Remove DEFVAR for key-translation-map.
29632 (Fdescribe_buffer_bindings)
29633 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
29634 Update for terminal-local key-translation-map.
29635
29636 * Makefile.in (callproc.o): Update dependencies.
29637 (lisp, shortlisp): Add termdev.elc.
29638 (obj): Add terminal.o.
29639 (terminal.o): Add dependencies.
29640 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
29641 (data.o, fns.o): Add termhooks.h dependency.
29642 (SOME_MACHINE_LISP): Add dnd.elc.
29643 (minibuf.o): Fix typo.
29644 Update dependencies.
29645
29646 * data.c (do_symval_forwarding, store_symval_forwarding)
29647 (find_symbol_value): Use the selected frame's keyboard, not
29648 current_kboard.
29649
29650 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
29651 Vwindow_system.
29652
29653 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
29654 Fmenu_bar_open.
29655 (syms_of_xmenu): Update defsubr.
29656 (mouse_position_for_popup, Fx_popup_menu)
29657 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
29658 (set_frame_menubar, free_frame_menubar)
b97439ce 29659 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
29660 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
29661 an X frame.
29662
29663 * xselect.c (x_own_selection): Abort if not an X frame.
29664 (some_frame_on_display): Check if it is an X frame.
29665 (x_handle_selection_clear): Deal with MULTI_KBOARD.
29666
29667 * coding.c: Include frame.h and termhooks.h.
29668 (terminal_coding, keyboard_coding): Delete.
29669 (Fset_terminal_coding_system_internal)
29670 (Fset_keyboard_coding_system_internal)
29671 (Fkeyboard_coding_system)
29672 (Fterminal_coding_system): Add a terminal parameter.
29673 Get terminal_coding from the terminal.
29674 (init_coding_once): Don't call setup_coding_system here.
29675
29676 * dispextern.h (set_scroll_region, turn_off_insert)
29677 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
29678 (tty_clear_end_of_line, tty_setup_colors)
29679 (delete_tty, updating_frame)
29680 (produce_special_glyphs, produce_glyphs, write_glyphs)
29681 (insert_glyphs): Remove.
29682 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
29683 (tty_turn_off_highlight, get_tty_size): Add declaration.
29684 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
29685
29686 * frame.h (enum output_method): Add output_initial.
29687 (struct x_output): Delete.
29688 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
29689 Access foreground_pixel and background_pixel directly from the frame.
29690 (tty_display): Delete.
29691 (struct frame): Add buried_buffer_list, foreground_pixel,
29692 background_pixel and terminal. Delete kboard.
29693 (union output_data): Add tty.
29694 (FRAME_KBOARD): Get the kboard from the terminal.
29695 (FRAME_INITIAL_P): New macro.
29696 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
29697 (Qterm_environment_variable, Qdisplay_environment_variable)
29698 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
29699 New declarations.
29700
29701 * termchar.h (tty_output, tty_display_info): New structures.
29702 (tty_list): Declare.
29703 (FRAME_TTY, CURTTY): New macros.
29704 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
29705 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
29706 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
29707 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
29708
29709 * callproc.c: Include frame.h and termhooks.h, for terminal
29710 parameters.
29711 (add_env): New function.
29712 (child_setup): Use it.
29713 (child_setup, getenv_internal): Handle the new Vprocess_environment.
29714 (getenv_internal): Fix get_terminal_param call.
29715 (Fgetenv_internal, egetenv): Update doc.
29716 (syms_of_callproc): Initialize Vprocess_environment to nil.
29717 Register and initialize them. Remove obsolete defvars. Update doc
29718 strings.
29719 (child_setup): Handle Vlocal_environment_variables.
29720 (getenv_internal): Add terminal parameter.
29721 Handle Vlocal_environment_variables.
29722 (Fgetenv_internal): Add terminal parameter.
29723 (child_setup, getenv_internal, Fgetenv_internal): Store the local
29724 environment in a frame (not terminal) parameter. Update doc strings.
29725 (set_initial_environment): Rename from set_global_environment.
29726 Store Emacs environment in initial frame parameter.
29727
29728 * xdisp.c (redisplay_internal): Update references to
29729 `previous_terminal_frame'.
29730 (display_mode_line, Fformat_mode_line): Replace calls to
29731 `push_frame_kboard' with `push_kboard'.
29732 (get_glyph_string_clip_rects): Add extra parentheses and
29733 braces to prevent compiler warnings.
29734 (calc_pixel_width_or_height): Add xassert to check that the
29735 frame is alive. Don't call `lookup_image' on a termcap frame.
29736 (message2_nolog, message3_nolog, redisplay_internal)
29737 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
29738 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
29739 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
29740 (Fx_display_pixel_width, Fx_display_pixel_height)
29741 (Fx_display_planes, Fx_display_color_cells)
29742 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
29743 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
29744 (Fx_display_backing_store, Fx_display_visual_class)
29745 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
29746 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
29747
29748 * xfns.c (x_set_foreground_color x_set_background_color)
29749 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
29750 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29751 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
29752 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
29753 terminal that is being deleted.
29754 (Fx_create_frame): Use `store_frame_param' to set `window-system'
29755 frame parameter, and make sure it overrides any user-supplied setting.
29756 (Fx_close_connection, Fx_synchronize): Unify argument names with
29757 the rest of the DEFUNs.
29758
29759 * dispnew.c (Fsend_string_to_terminal): Update call to
29760 `get_tty_terminal'.
29761 (Fredraw_frame, Fsend_string_to_terminal)
29762 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
29763 FRAME_TERMCAP_P and FRAME_TTY.
29764 (window_change_signal): Don't believe width/height values that are
29765 impossibly small.
29766 (Vinitial_window_system): Rename from Vwindow_system.
29767 (termscript, Wcm, rif): Delete.
29768
29769 * termhooks.h (struct terminal): New struct containing the
29770 previously global text display hooks and new members NAME,
29771 DELETED and PARAM_ALIST.
29772 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
29773 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
29774 (FRAME_RIF): New macros.
29775 (get_terminal_param, get_device): New declarations.
29776 (termscript): Delete declaration.
29777
29778 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
29779 (XTflash, x_free_frame_resources, x_scroll_bar_create)
29780 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
29781 FRAME_FOREGROUND_PIXEL.
29782 (x_fully_uncatch_errors): Disable definition.
29783 (x_scroll_bar_expose): Fix reference to foreground pixel.
29784 (XTread_socket): Disable loop on all X displays.
29785 (x_delete_terminal): Don't set terminal->deleted and let
29786 delete_terminal delete the frames on the terminal.
29787 (x_delete_display): Doc update to reflect changes in
29788 delete_terminal.
29789 (x_display_info) <terminal>: Move member earlier in the struct.
29790 (deleting_tty): Remove old variable.
29791 (Fsuspend_tty): Call clear_tty_hooks.
29792 (Fresume_tty, init_tty): Call set_tty_hooks.
29793 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
29794 errors on X frames.
29795 (x_catch_errors_unwind): Abort if x_error_message is NULL.
29796 (handle_one_xevent): Initialize `f' to NULL.
29797 (x_delete_terminal, x_create_terminal): New functions.
29798 (XTset_terminal_modes, XTreset_terminal_modes)
29799 (XTread_socket, x_connection_closed, x_term_init)
29800 (x_term_init, x_delete_display): Add terminal parameter.
29801 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
29802 X connections.
29803
29804 * frame.c: Include termchar.h.
29805 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
29806 (Qwindow_system, Qenvironment, Qterm_environment_variable)
29807 (Qdisplay_environment_variable): New vars.
29808 (Fframep): Deal with output_initial.
29809 (Fframe-live-p): Doc fix.
29810 (Fwindow-system): New function.
29811 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
29812 (make_terminal_frame): Don't create frames on a terminal that is
29813 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29814 (store_frame_param): Check for found_for_frame before calling XFRAME.
29815 (Fmake_terminal_frame): Handle NULL tty names correctly.
29816 (syms_of_frame): Enhance doc string of `default-frame-alist'.
29817 (Fdelete_frame): Remove unused variable `count'. Don't allow other
29818 frames to refer to a deleted frame in their 'environment parameter.
29819 (Fframe_with_environment): New function.
29820 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
29821 (get_future_frame_param): New function.
29822 (Fmake_terminal_frame): Use it.
29823 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
29824
29825 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
29826 * sysdep.c (reset_sys_modes): Update for renames.
29827
29828 * keyboard.c (tty_read_avail_input): New function.
29829 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
29830 (syms_of_keyboard): Defsubr them.
29831 (Fset_input_meta_mode, Fset_quit_char): New functions.
29832 (Fset_input_mode): Split to above functions.
29833 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
29834 parameter. Use it in call to `read_char'.
29835 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
29836 Set wrong_kboard_jmpbuf correctly in recursive calls.
29837 Use current_kboard to access Vkeyboard_translate_table.
29838 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
29839 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
29840 Update longjmp invocations. Remember the original current_kboard,
29841 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
29842 changes it. Comment out unnecessary calls to
29843 `record_single_kboard_state' and `any_kboard_state'.
29844 Update recursive calls.
29845 (wrong_kboard_jmpbuf): Remove global variable.
29846 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
29847 Handle deleted interrupted_kboards correctly; that is a legal
29848 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
29849 and read_char calls. Abort if interrupted_kboard died in read_char.
29850 (any_kboard_state, single_kboard_state)
29851 (push_frame_kboard): Remove function.
29852 (pop_kboard): Switch out of single_kboard mode if the kboard has
29853 been deleted. Remove unused variable. Help debugging by not
29854 changing current_kboard unnecessarily. Set current_kboard to the
29855 kboard of the selected frame when the stored kboard object has
29856 been deleted before pop_kboard.
29857 (temporarily_switch_to_single_kboard): Change first parameter to a
29858 frame pointer. Throw an error when caller wants to change kboards
29859 while in single_kboard mode. Don't push_kboard if we weren't in
29860 single kboard state. Don't pop_kboard if we popped into any
29861 kboard state.
29862 (restore_kboard_configuration): Abort if pop_kboard changed the
29863 kboard in single_kboard mode. Call pop_kboard only after setting
29864 up single_kboard mode.
29865 (Frecursive_edit): Switch to single_kboard mode only in nested
29866 command loops.
29867 (cmd_error, command_loop, command_loop_1, timer_check):
29868 Comment out unnecessary call to `any_kboard_state' and
29869 `record_single_kboard_state'.
29870 (delete_kboard): Exit single_kboard mode if we have just deleted
29871 that kboard. Use FRAME_KBOARD.
29872 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
29873 `fatal_error_signal'.
29874 (record_single_kboard_state): Don't push_kboard if we weren't in
29875 single kboard state. Don't pop_kboard if we popped into any
29876 kboard state.
29877 (push_frame_kboard): Rename to push_kboard.
29878 (kbd_buffer_get_event): Use FRAME_TERMINAL.
29879 (read_avail_input): Read input from all terminals.
29880 (mark_kboards): Also mark Vkeyboard_translate_table.
29881 (kbd_buffer_store_event_hold): Simplify condition.
29882 (read_key_sequence): Reinitialize fkey and keytran at each replay.
29883 (Vkeyboard_translate_table): Move to struct kboard.
29884 (init_kboard): Initialize Vkeyboard_translate_table.
29885 (syms_of_keyboard): Use DEFVAR_KBOARD to define
29886 Vkeyboard_translate_table. Update doc strings. Update docs of
29887 local-function-key-map and function-key-map.
29888
29889 * terminal.c: New file.
29890
29891 * term.c: Include errno.h.
29892 (Vring_bell_function, device_list, initial_device)
29893 (next_device_id, ring_bell, update_begin, update_end)
29894 (set_terminal_window, cursor_to, raw_cursor_to)
29895 (clear_to_end, clear_frame, clear_end_of_line)
29896 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
29897 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
29898 (syms_of_term): Move their initialization to terminal.c.
29899 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
29900 (Ftty_display_color_cells)
29901 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
29902 (clear_tty_hooks, set_tty_hooks)
29903 (init_tty, maybe_fatal): New functions.
29904 (Ftty_type): Return nil if terminal is not on a tty instead of
29905 throwing an error. Doc update.
29906 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
29907 Doc update. Initialize new subrs and variables.
29908 (delete_tty): Use terminal->deleted.
29909 (tty_set_terminal_modes): Rename from set_terminal_modes.
29910 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
29911 (set_scroll_region): Rename to `tty_set_scroll_region'.
29912 (turn_on_insert): Rename to `tty_turn_on_insert'.
29913 (turn_off_insert): Rename to `tty_turn_off_insert'.
29914 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
29915 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
29916 (toggle_highligh): Rename to `tty_toggle_highlight'.
29917 (background_highlight): Rename to `tty_background_highlight'.
29918 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
29919 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
29920 (tty_set_scroll_region, tty_background_highlight)
29921 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
29922 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
29923 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
29924 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
29925 Add static modifier.
29926 (tty_reset_terminal_modes, tty_set_terminal_window)
29927 (tty_set_scroll_region, tty_background_highlight)
29928 (tty_highlight_if_desired, tty_cursor_to)
29929 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
29930 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
29931 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
29932 renames.
29933
299342007-08-28 Jan Djärv <jan.h.d@swipnet.se>
29935
29936 * keyboard.c: Qrtl is new.
29937 (parse_tool_bar_item): Handle :rtl keyword.
29938 (syms_of_keyboard): Intern :rtl keyword.
29939
29940 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
29941
29942 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
29943 so no Lisp code is executed.
29944 (file_for_image, find_rtl_image): New functions.
29945 (xg_get_image_for_pixmap): Use file_for_image.
29946 (update_frame_tool_bar): If direction is RTL, use RTL image if
29947 defined. Use Gtk stock images if defined.
29948
299492007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29950
29951 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
29952 for nonexistent or zero-width glyph in composition glyph.
29953
299542007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
29955
29956 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
29957
29958 * xdisp.c (Finvisible_p): New function.
29959 (syms_of_xdisp): defsubr it.
29960
299612007-08-24 Juanma Barranquero <lekktu@gmail.com>
29962
29963 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
29964 Doc fixes.
29965
299662007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29967
29968 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
29969
299702007-08-24 Martin Rudalics <rudalics@gmx.at>
29971
29972 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
29973 whether decoding has modified buffer contents.
29974
299752007-08-24 Jason Rumney <jasonr@gnu.org>
29976
29977 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
29978 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
29979 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
29980 (init_svg_functions) [HAVE_NTGUI]: New function.
29981 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
29982 (svg_load_image): Use them.
29983 (svg_load_image) [HAVE_NTGUI]: Implement background.
29984
299852007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29986
29987 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
29988 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
29989 (LIBX): Remove @RSVG_LIBS@.
29990 (LIBES): Add $(RSVG_LIBS).
29991
29992 * image.c (svg_load_image): Blend with specified background if exists.
29993 Use IMAGE_BACKGROUND. Add Mac OS Support.
29994
29995 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
29996 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
29997 Remove macros.
29998 [MAC_OSX] (socket_callback): Do nothing.
29999 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
30000 ReceiveNextEvent.
30001 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
30002 socket_callback.
30003 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
30004
300052007-08-22 Glenn Morris <rgm@gnu.org>
30006
30007 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
30008
300092007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
30010
30011 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
30012
30013 * image.c: Add support for SVG images. Some additional comments
30014 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
30015 (svg_image_p): New function to test for SVG image.
30016 (svg_load): New function to load SVG image.
30017 (svg_load_image): New function, helper for svg_load.
30018 (Qsvg): New Lisp_object.
30019 (svg_keyword_index): New enum.
30020 (svg_format): New static `image_keyword' struct.
30021 (svg_type): New static `image_type' struct.
30022 (librsvg/rsvg.h): Include it.
30023
300242007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
30025
30026 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
30027
300282007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
30029
30030 * lread.c (Qold_style_backquotes): New var.
30031 (syms_of_lread): Init and staticpro it.
30032 (load_warn_old_style_backquotes): New fun.
30033 (Fload): Use them to warn about old style backquotes.
30034 (end_of_file_error, Fload): Remove unused vars.
30035
30036 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
30037
30038 * lread.c (Vold_style_backquotes): New var.
30039 (syms_of_lread): Init and export it to Elisp.
30040 (read1): Set it when we find an old-style (back)quote.
30041
300422007-08-22 Jason Rumney <jasonr@gnu.org>
30043
30044 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
30045
300462007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
30047
30048 * puresize.h (BASE_PURESIZE): Increase to 1140000.
30049
300502007-08-19 Richard Stallman <rms@gnu.org>
30051
30052 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
30053
300542007-08-19 Andreas Schwab <schwab@suse.de>
30055
30056 * alloc.c (pure): Round PURESIZE up.
30057
300582007-08-17 Jan Djärv <jan.h.d@swipnet.se>
30059
30060 * xterm.c (handle_one_xevent): Remove check that mouse click is in
30061 active frame.
30062
300632007-08-16 Richard Stallman <rms@gnu.org>
30064
30065 * eval.c (Fcommandp): Add parens to clarify.
30066
30067 * minibuf.c (Fall_completions): Use enum for type of table.
30068
30069 * emacs.c (USAGE2): Improve text.
30070
300712007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
30072
30073 * term.c (tty_default_color_capabilities): Declare static
30074 variables in file scope, to avoid HPUX compiler problem.
30075
300762007-08-13 Jan Djärv <jan.h.d@swipnet.se>
30077
30078 * gtkutil.c (update_frame_tool_bar): Use -1 as index
30079 to gtk_toolbar_insert.
30080
300812007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
30082
30083 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
30084
30085 * insdel.c (reset_var_on_error): New fun.
30086 (signal_before_change, signal_after_change):
30087 Use it to reset (after|before)-change-functions to nil in case of error.
30088 Bind inhibit-modification-hooks to t.
30089 Don't bind (after|before)-change-functions to nil while they run.
30090
300912007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30092
30093 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
30094 filling pixmap with stippled background.
30095
300962007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30097
30098 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
30099 Don't use invisible frame as parent window for repositioning.
30100
301012007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
30102
30103 * print.c (new_backquote_output): Rename from old_backquote_output.
30104 (print): Inverse its logic (according to its name) so as to match the
30105 behavior of new_backquote_flag in lread.c.
30106
301072007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30108
30109 * gmalloc.c (posix_memalign): New function.
30110
30111 * macterm.c (frame_highlight, frame_unhighlight): Don't call
30112 ActivateControl/DeactivateControl here.
30113 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
30114 frame-notice-user-settings is non-nil.
30115 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
30116 for kEventParamFMFontStyle.
30117 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
30118 mac_pass_command_to_system and mac_pass_control_to_system here.
30119 (XTread_socket): Call ActivateControl/DeactivateControl here.
30120 (XTread_socket) [TARGET_API_MAC_CARBON]:
30121 Check mac_pass_command_to_system and mac_pass_control_to_system here.
30122 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
30123 for window repositioning.
30124
301252007-08-08 Glenn Morris <rgm@gnu.org>
30126
30127 * Replace `iff' in doc-strings and comments.
30128
301292007-08-07 Chong Yidong <cyd@stupidchicken.com>
30130
30131 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
30132
301332007-08-07 Martin Rudalics <rudalics@gmx.at>
30134
30135 * fileio.c (Finsert_file_contents): Run format-decode and
30136 after_insert_file_functions on entire buffer when REPLACE is
30137 non-nil and inhibit modification_hooks and point_motion_hooks.
30138 For consistency, run after_insert_file_functions iff something
30139 got inserted. Move signal_after_change and update_compositions
30140 after code running after_insert_file_functions. Make sure that
30141 undo_list doesn't record intermediate steps of the decoding process.
30142
301432007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30144
30145 * emacs.c (main)
30146 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
30147 Call malloc_enable_thread on interactive startup.
30148
30149 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
30150 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
30151 [USE_PTHREAD]: Conditionalize with it.
30152 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
30153 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
30154 New functions.
30155
301562007-08-06 Chong Yidong <cyd@stupidchicken.com>
30157
30158 * xdisp.c (redisplay_window): When restoring original buffer
30159 position, make sure it is still valid.
30160
30161 * image.c (png_load): Ignore png-supplied background color.
30162
301632007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30164
30165 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
30166 Use kCFAbsoluteTimeIntervalSince1970.
30167
30168 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
30169 New variable.
30170 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
30171 event loop should be quit.
30172 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
30173 Quit dialog event loop if quit_dialog_event_loop is set.
30174
30175 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
30176 (Selection): New typedef. Use instead of ScrapRef.
30177 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
30178 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
30179 (mac_clear_selection): Rename from clear_scrap.
30180 (get_flavor_type_from_symbol): New argument SEL and subsume function of
30181 scrap_has_target_type. All uses changed.
30182 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
30183 (mac_selection_has_target_p): New functions.
30184 (mac_put_selection_value): Rename from put_scrap_string.
30185 (mac_get_selection_value): Rename from get_scrap_string.
30186 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
30187 (put_scrap_private_timestamp, scrap_has_target_type)
30188 (get_scrap_private_timestamp): Remove functions.
30189 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
30190 (x_own_selection, x_get_local_selection):
30191 Use mac_valid_selection_value_p.
30192 (x_own_selection): Don't use put_scrap_private_timestamp.
30193 Record OWNERSHIP-INFO into Vselection_alist instead.
30194 (x_get_local_selection): Don't check type if request is local.
30195 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
30196 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
30197
301982007-08-04 Jan Djärv <jan.h.d@swipnet.se>
30199
30200 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
30201 add comment explaining why.
30202
302032007-08-03 Richard Stallman <rms@gnu.org>
30204
30205 * fileio.c (Fvisited_file_modtime): Use make_time.
30206
302072007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
30208
30209 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
30210 build.
30211
302122007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
30213
30214 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
30215
302162007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
30217
30218 * puresize.h (BASE_PURESIZE): Increase to 1130000.
30219
302202007-07-30 Richard Stallman <rms@gnu.org>
30221
30222 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
30223
302242007-07-29 Jan Djärv <jan.h.d@swipnet.se>
30225
30226 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
30227
302282007-07-28 Nick Roberts <nickrob@snap.net.nz>
30229
30230 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
30231 remote default-directory.
30232
30233 * buffer.c (mode-line-format): Update doc string.
30234
302352007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30236
30237 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
30238 scroll bar gap.
30239 (x_scroll_bar_create): Set bar->fringe_extended_p.
30240 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
30241 on frame edge. Check fringe background extension. Don't clear
30242 extended fringe background area.
30243
30244 * w32term.h (struct scroll_bar): New member fringe_extended_p.
30245 (w32_fill_area): Enclose multiple statements with do ... while (0).
30246
30247 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
30248 Extend fringe background to scroll bar gap.
30249 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
30250 Set bar->fringe_extended_p.
30251 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
30252 Put leftmost/rightmost scroll bars on frame edge. Check fringe
30253 background extension. Don't clear extended fringe background area.
30254
30255 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
30256 New member fringe_extended_p.
30257
302582007-07-25 Glenn Morris <rgm@gnu.org>
30259
30260 * Relicense all FSF files to GPLv3 or later.
30261
30262 * COPYING: Switch to GPLv3.
30263
302642007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
30265
30266 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
30267
30268 * data.c (Finteractive_form): Check for the presence of an
30269 `interactive-form' symbol property more thoroughly.
30270
30271 * data.c (Finteractive_form): Use an `interactive-form' property if
30272 present, analogous to the function-documentation property.
30273
302742007-07-24 Jason Rumney <jasonr@gnu.org>
30275
30276 * w32fns.c (x_real_positions): Get real position from OS instead of
30277 calculating it.
30278
302792007-07-23 Jason Rumney <jasonr@gnu.org>
30280
30281 * filelock.c (current_lock_owner): Allow for @ sign in username.
30282
302832007-07-22 Nick Roberts <nickrob@snap.net.nz>
30284
30285 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
30286 remote default-directory.
30287
30288 * buffer.c (mode-line-format): Describe above case in doc string.
30289
302902007-07-20 Eli Zaretskii <eliz@gnu.org>
30291
30292 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
30293 Define if not defined.
30294
302952007-07-18 Jason Rumney <jasonr@gnu.org>
30296
30297 * w32proc.c (w32_executable_type): Handle 64 bit executables.
30298
302992007-07-18 Richard Stallman <rms@gnu.org>
30300
30301 * data.c (Fsetq_default): Doc fix.
30302
30303 * eval.c (Fsetq): Doc fix.
30304
303052007-07-18 Juanma Barranquero <lekktu@gmail.com>
30306
30307 * coding.c (Ffind_operation_coding_system):
30308 * eval.c (For, Fand): Doc fixes.
30309 Reported by Johan Bockgård.
30310
303112007-07-18 Jan Djärv <jan.h.d@swipnet.se>
30312
30313 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
30314
30315 * xterm.h: Declare x_ewmh_activate_frame.
30316
30317 * xterm.c (x_ewmh_activate_frame): New function.
30318 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
30319
303202007-07-17 Martin Rudalics <rudalics@gmx.at>
30321
30322 * window.c (Fdisplay_buffer): If largest or LRU window is the
30323 only window, split it even if it is not eligible for splitting.
30324 This restores the original behavior broken by the 2007-07-15
30325 change.
30326
303272007-07-17 Glenn Morris <rgm@gnu.org>
30328
30329 * abbrev.c (abbrev_check_chars): New function.
30330 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
30331 Call abbrev_check_chars to check abbrev characters are word
30332 constituents. Doc fix.
30333
303342007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
30335
30336 * process.c (Fstart_process, Fmake_network_process)
30337 (read_process_output): Fix up last changes.
30338
303392007-07-16 Eli Zaretskii <eliz@gnu.org>
30340
30341 * makefile.w32-in (clean): Don't delete *~.
30342
303432007-07-16 Andreas Schwab <schwab@suse.de>
30344
30345 * window.c (Fdisplay_buffer): Use NILP.
30346 (Fset_window_scroll_bars): Likewise.
30347
303482007-07-15 Martin Rudalics <rudalics@gmx.at>
30349
30350 * window.c (window_min_size_2): New function.
30351 (window_min_size_1, size_window, Fdisplay_buffer)
30352 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
30353 windows without mode- or header-lines when window-min-height is
30354 too small.
30355 (size_window): Reset nodelete_p after testing it, following an
30356 earlier note by Kim F. Storm.
30357 (display_buffer): Do not set split_height_threshold to twice the
30358 value of window_min_height to avoid changing the value of a
30359 customizable variable. Rather explicitly check whether the
30360 height of the window that shall be splitted is at least as large
30361 as split_height_threshold.
30362 (Fwindow_full_width_p): New defun.
30363 (syms_of_window): Defsubr it.
30364
30365 * window.h: Add EXFUN for Fwindow_full_width_p.
30366
303672007-07-14 Jason Rumney <jasonr@gnu.org>
30368
30369 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
30370
303712007-07-14 Richard Stallman <rms@gnu.org>
30372
30373 * eval.c (maybe_call_debugger): New function.
30374 (find_handler_clause): Use maybe_call_debugger.
30375 Call it when the handler says `debug'.
30376 Eliminate DEBUGGER_VALUE_PTR.
30377 (Fsignal): Eliminate debugger_value.
30378 (Qdebug): New variable.
30379 (syms_of_eval): Initialize it.
30380
303812007-07-14 Juanma Barranquero <lekktu@gmail.com>
30382
30383 * eval.c (Fprogn):
30384 * keyboard.c (Ftrack_mouse):
30385 * print.c (Fwith_output_to_temp_buffer):
30386 * window.c (Fsave_window_excursion): Doc fix.
30387
303882007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
30389
30390 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
30391
303922007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
30393
30394 * process.h (struct Lisp_Process): Turn slots infd, outfd,
30395 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
30396 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
30397 read_output_delay, and read_output_skip from Lisp_Objects to ints.
30398 Remove unused encoding_carryover.
30399 * process.c: Adjust all functions accordingly.
30400
304012007-07-12 Richard Stallman <rms@gnu.org>
30402
30403 * term.c: Include unistd.h only if HAVE_UNISTD_H.
30404
304052007-07-11 Jason Rumney <jasonr@gnu.org>
30406
30407 * makefile.w32-in (LIBS): Include OLE32.
30408
30409 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
30410 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
30411
304122007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
30413
30414 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
30415 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
30416 from a Lisp_Object into a bare pointer.
30417 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
30418 Adjust the code correspondingly.
30419
30420 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
30421
30422 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
30423 (term_show_mouse_face): Remove unused var `j'.
30424 (handle_one_term_event): Remove unused vars `i' and `j'.
30425 Don't cast return value of ttyname since it's not necessary.
30426
304272007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
30428
30429 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
30430 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
30431
30432 * fns.c (map_char_table): Use an array of int for `indices' rather than
30433 an array of Lisp_Objects (which are only ever integers anyway).
30434 (Fmap_char_table): Update caller.
30435 * lisp.h: Update prototype.
30436 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
30437 * fontset.c (Ffontset_info):
30438 * casetab.c (set_case_table): Update callers.
30439
30440 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
30441
30442 * keymap.c (struct accessible_keymaps_data)
30443 (struct where_is_internal_data): New structures.
30444 (accessible_keymaps_1, where_is_internal_1): Use them to change
30445 interface to adhere to the one used by map_keymap.
30446 (Faccessible_keymaps, where_is_internal): Use map_keymap.
30447 (accessible_keymaps_char_table, where_is_internal_2): Remove.
30448
30449 * keymap.h (map_keymap_function_t): More informative prototype.
30450
304512007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
30452
30453 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
30454 (looking_at_1): Don't change search_regs and last_thing_searched
30455 if `inhibit-changing-match-data' is non-nil.
30456 (string_match_1, search_buffer, set_search_regs): Likewise.
30457 (syms_of_search): Add Lisp level definition for
30458 `inhibit-changing-match-data' and set it to nil.
30459 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
30460 start and end of the match, instead of using values in search_regs.
30461
304622007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
30463
30464 * minibuf.c (Fcompleting_read): New value `confirm-only'
30465 for `require-match'.
30466
304672007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
30468
30469 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
30470 part of the 2007-06-27 change to syms_of_fileio.
30471
304722007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30473
30474 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
30475 Check WINDOWP before using XWINDOW. Consolidate return statements.
30476
304772007-06-27 Richard Stallman <rms@gnu.org>
30478
30479 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
30480
304812007-06-27 Juanma Barranquero <lekktu@gmail.com>
30482
30483 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
30484
304852007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30486
30487 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
30488 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
30489 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
30490 (_free_internal, memalign): Use them.
30491 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
30492 Initialize to PTHREAD_MUTEX_INITIALIZER.
30493 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
30494 (morecore_nolock): Rename from morecore. All uses changed.
30495 Use only nolock versions of internal allocation functions.
30496 (_malloc_internal_nolock, _realloc_internal_nolock)
30497 (_free_internal_nolock): New functions created from
30498 _malloc_internal, _realloc_internal, and _free_internal.
30499 (_malloc_internal, _realloc_internal, _free_internal): Use them.
30500 Copy hook value to automatic variable before its use.
30501 (memalign): Copy hook value to automatic variable before its use.
30502
305032007-06-26 Kenichi Handa <handa@m17n.org>
30504
30505 * coding.c (Ffind_operation_coding_system): Docstring improved.
30506 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
30507
305082007-06-25 David Kastrup <dak@gnu.org>
30509
30510 * keymap.c (Fcurrent_active_maps): Add `position' argument.
30511 (Fwhere_is_internal): Adjust call to `current-active-maps' to
30512 cater for additional parameter.
30513
30514 * keymap.h: Adjust number of parameters to `current-active-maps'.
30515
30516 * doc.c (Fsubstitute_command_keys): Adjust call of
30517 `current-active-maps'.
30518
305192007-06-25 David Kastrup <dak@gnu.org>
30520
30521 * callint.c (Fcall_interactively): Make the parsing of interactive
30522 specs somewhat more readable.
30523
305242007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30525
30526 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
30527 to scroll bar gap also when bitmap fills fringe. Draw only foreground
30528 if extended background has already been filled.
30529
305302007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30531
30532 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
30533 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
30534
30535 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
30536 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
30537 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
30538 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
30539 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
30540 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
30541 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
30542 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
30543 Run timers during dialog popup.
30544 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
30545
305462007-06-21 Jason Rumney <jasonr@gnu.org>
30547
30548 * image.c (convert_mono_to_color_image): Swap fore and background.
30549
305502007-06-20 Jason Rumney <jasonr@gnu.org>
30551
30552 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
30553 (w32_free_bdf_font): Unmap memory not handle.
30554
305552007-06-20 Sam Steingold <sds@gnu.org>
30556
30557 * gmalloc.c (__morecore): Fix the declaration to comply with the
30558 definition.
30559
305602007-06-20 Juanma Barranquero <lekktu@gmail.com>
30561
30562 * w32term.c (w32_delete_display): Remove leftover declaration.
30563 (w32_define_cursor, w32_initialize): Make static.
30564
30565 * w32.c (_wsa_errlist): Fix typo in error message.
30566 (init_environment): Ignore any environment variable from the
30567 registry having a null value.
30568
305692007-06-20 Glenn Morris <rgm@gnu.org>
30570
30571 * Makefile.in (LIBGIF): Default to -lgif.
30572
305732007-06-17 Jason Rumney <jasonr@gnu.org>
30574
30575 * w32menu.c (add_menu_item): Don't use multibyte string functions on
30576 unicode strings.
30577
305782007-06-16 Juanma Barranquero <lekktu@gmail.com>
30579
30580 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
30581 Fix typo in docstring.
30582
305832007-06-16 Eli Zaretskii <eliz@gnu.org>
30584
30585 * w32menu.c (add_menu_item): Escape `&' characters in menu items
30586 and their keybindings.
30587
305882007-06-15 Chong Yidong <cyd@stupidchicken.com>
30589
30590 * composite.c (update_compositions): Fix last fix.
30591
305922007-06-14 Jason Rumney <jasonr@gnu.org>
30593
30594 * w32.c (get_process_times_fn): New function pointer.
30595 (globals_of_w32): Intialize it if present in kernel32.dll.
30596 (w32_get_internal_run_time): New function.
30597
30598 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
30599
306002007-06-14 Kenichi Handa <handa@etlken.m17n.org>
30601
30602 * composite.c (update_compositions): Check the validness of
30603 compositions.
30604
306052007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30606
30607 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
30608 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
30609
30610 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
30611 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
30612
30613 * macgui.h (USE_MAC_TOOLBAR): New define.
30614
30615 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
30616 Return immediately unless popup is activated.
30617
30618 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
30619 background to scroll bar gap.
30620 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
30621 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
30622 scroll bars on frame edge. Check fringe background extension.
30623 Don't clear extended fringe background area.
30624 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
30625 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
30626 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
30627 [USE_MAC_TOOLBAR]: New macros.
30628 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
30629 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
30630 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
30631 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
30632 [USE_MAC_TOOLBAR]: New functions.
30633 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
30634 manually if previous repositioning has failed.
30635 (mac_handle_keyboard_event): Use precomputed event kind.
30636 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
30637 as tool bar item click. Handle mouse movement over tool bar items.
30638
30639 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
30640 toolbar_win_gravity.
30641 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
30642 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
30643 Add externs.
30644
30645 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
30646 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
30647
306482007-06-14 Chong Yidong <cyd@stupidchicken.com>
30649
30650 * image.c (search_image_cache): Remove unused variable.
30651
306522007-06-13 Chong Yidong <cyd@stupidchicken.com>
30653
30654 * xfns.c, xmenu.c: Link to xaw3d if available.
30655
306562007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30657
30658 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
30659 frame_foreground and frame_background.
30660
30661 * image.c (lookup_image): Save frame foreground and background colors.
30662 (search_image_cache): Check if saved and current frame colors match.
30663
306642007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
30665
30666 * regex.c (regex_compile): Remove the `regnum' counter.
30667 Use bufp->re_nsub instead. Add support for \(?N:RE\).
30668
306692007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
30670
30671 * term.c: Include intervals.h to declare Fget_text_property.
30672
306732007-06-10 Jason Rumney <jasonr@gnu.org>
30674
30675 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
30676
306772007-06-08 Juanma Barranquero <lekktu@gmail.com>
30678
30679 * callint.c (Fcall_interactively):
30680 * editfns.c (Fdelete_and_extract_region):
30681 * fileio.c (Fread_file_name):
30682 * fns.c (Fmapconcat):
30683 * keyboard.c (cmd_error_internal):
30684 * keymap.c (Fkey_description):
30685 * lread.c (openp):
30686 * minibuf.c (read_minibuf):
30687 * search.c (wordify):
30688 * sunfns.c (sel_read):
30689 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
30690 * xfns.c (x_default_scroll_bar_color_parameter):
30691 * xmenu.c (menu_help_callback):
30692 * xselect.c (Fx_get_atom_name):
30693 * xterm.c (x_term_init): Use empty_unibyte_string.
30694
306952007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
30696
30697 * alloc.c (init_strings): Initialize canonical empty strings.
30698 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
30699 canonical empty string when the requested size is 0.
30700
30701 * emacs.c (empty_unibyte_string): Rename from empty_string.
30702 (empty_multibyte_string): New canonical empty string.
30703 (syms_of_emacs): Don't initialize empty_string.
30704
30705 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
30706 string, if appropriate.
30707 (empty_unibyte_string, empty_multibyte_string): New externs.
30708 (empty_string): Remove extern.
30709
30710 * lread.c (syms_of_lread): Use empty_unibyte_string.
30711
307122007-06-07 Jason Rumney <jasonr@gnu.org>
30713
30714 * s/ms-w32.h: Don't define HAVE_TZNAME.
30715
30716 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
30717
307182007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30719
30720 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
30721
30722 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
30723 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
30724
30725 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
30726 Don't call next handler.
30727 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
30728 Remove argument. Install handler to application.
30729 (set_frame_menubar): Don't change deep_p.
30730 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
30731 FRAME_OUTER_TO_INNER_DIFF_Y.
30732 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
30733 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
30734 [HAVE_DIALOGS]: New macros.
30735 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
30736 Use them.
30737 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
30738
30739 * macselect.c [MAC_OSX] (install_service_handler): Rename from
30740 init_service_handler. All callers changed. Return OSStatus value.
30741
30742 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
30743 All callers changed so as not to call SetPortWindowPort.
30744 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
30745 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
30746 mac_draw_string_common.
30747 (mac_draw_image_string_qd): Likewise.
30748 (mac_draw_string_common): Use them. Add INLINE.
30749 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
30750 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
30751 GetGlobalMouse.
30752 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
30753 and FRAME_OUTER_TO_INNER_DIFF_Y.
30754 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
30755 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
30756 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
30757 repositioning window to mac_handle_window_event.
30758 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
30759 saving window location to mac_handle_window_event
30760 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
30761 (install_menu_target_item_handler): Remove argument in extern.
30762 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
30763 Also accept command events.
30764 (do_keystroke): New function created from XTread_socket.
30765 (init_command_handler): Remove functions.
30766 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
30767 and save window location by kEventWindowShowing and kEventWindowHiding
30768 handlers here. Don't call next handler for window state change and
30769 focus events.
30770 (mac_handle_application_event, mac_handle_keyboard_event)
30771 [TARGET_API_MAC_CARBON]: New functions.
30772 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
30773 kEventWindowShowing and kEventWindowHiding events. Move installation
30774 of mouse, font, text input and menu target item handlers to
30775 install_application_handler.
30776 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
30777 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
30778 New function.
30779 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
30780 Register it.
30781 (XTread_socket) [TARGET_API_MAC_CARBON]:
30782 Consolidate SendEventToEventTarget calls.
30783 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
30784 Move application activation handler to mac_handle_application_event.
30785 Move keyboard handler to mac_handle_keyboard_event.
30786 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
30787 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
30788 init_command_handler. Call install_application_handler.
30789
30790 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
30791 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
30792
307932007-06-07 Glenn Morris <rgm@gnu.org>
30794
30795 * emacs.c (main): Use `emacs-copyright' in --version output.
30796
307972007-06-06 Chong Yidong <cyd@stupidchicken.com>
30798
30799 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
30800
308012007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30802
30803 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
30804
30805 * macgui.h: Replace WindowPtr with WindowRef.
30806
30807 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
30808 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
30809 Replace ControlHandle with ControlRef.
30810 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
30811
30812 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
30813 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
30814 Replace ControlHandle with ControlRef.
30815 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
30816 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
30817
30818 * macterm.h (struct scroll_bar): Rename member control_handle_low
30819 and control_handle_high to control_ref_low and control_ref_high.
30820 All uses changed.
30821 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
30822 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
30823 respectively. All uses changed.
30824 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
30825 (install_window_handler, remove_window_handler): Replace WindowPtr
30826 with WindowRef in externs.
30827
308282007-06-05 Juanma Barranquero <lekktu@gmail.com>
30829
30830 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
30831
308322007-06-03 Nick Roberts <nickrob@snap.net.nz>
30833
30834 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
30835
30836 * frame.c (Fmouse_position, Fmouse_pixel_position):
30837 Condition on HAVE_GPM too.
30838
30839 * term.c (term_mouse_highlight): Remove unused variables.
30840 (Fterm_open_connection): Set gpm_zerobased to 1.
30841 (term_mouse_movement, term_mouse_click, handle_one_term_event):
30842 Use zero based co-ordinates.
30843 (handle_one_term_event): Report a drag as mouse movement too.
30844
30845 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
30846
308472007-06-03 Chong Yidong <cyd@stupidchicken.com>
30848
30849 * image.c (search_image_cache): New function. Require background
30850 color match if background color is unspecified in the image spec.
30851 (uncache_image, lookup_image): Use it.
30852
308532007-06-01 Juanma Barranquero <lekktu@gmail.com>
30854
30855 * window.c (Fshrink_window): Reflow docstring.
30856
308572007-06-02 Chong Yidong <cyd@stupidchicken.com>
30858
30859 * Version 22.1 released.
30860
308612007-06-01 Richard Stallman <rms@gnu.org>
30862
30863 * xfns.c (x_encode_text): Add GCPRO.
30864
308652007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30866
30867 * xfns.c (x_set_name_internal): Save encoded name before
30868 x_encode_text in case string data is relocated.
30869
308702007-05-31 Richard Stallman <rms@gnu.org>
30871
30872 * buffer.c (syms_of_buffer): Doc fix.
30873
308742007-05-30 Nick Roberts <nickrob@snap.net.nz>
30875
30876 * sysdep.c (init_sys_modes): Add rather than replace with
30877 O_NONBLOCK.
30878
30879 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
30880 term_mouse_moveto.
30881
30882 * termhooks.h (term_mouse_moveto): New extern.
30883
30884 * term.c (mouse_face_window): Rename...
30885 (Qmouse_face_window): ...to this.
30886 (term_show_mouse_face, term_clear_mouse_face)
30887 (term_mouse_highlight): Use Qmouse_face_window.
30888 (term_mouse_moveto): New function.
30889 (term_mouse_position): Make it work.
30890 (syms_of_term): Uncomment assignment to mouse_position_hook.
30891 Staticpro Qmouse_face_window.
30892
308932007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30894
30895 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
30896 around current_column call.
30897
308982007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
30899
30900 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
30901 * xdisp.c (next_element_from_buffer):
30902 * window.c (delete_window):
30903 * term.c (term_mouse_highlight):
30904 * msdos.c (getdefdir):
30905 * macterm.c (mac_create_bitmap_from_bitmap_data)
30906 (init_font_name_table):
30907 * fns.c (Fsxhash):
30908 * data.c (Fmake_local_variable):
30909 * ccl.c (ccl_driver): Likewise.
30910
309112007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30912
30913 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
30914 Call mac_wakeup_from_rne on window size change.
30915
309162007-05-25 Chong Yidong <cyd@stupidchicken.com>
30917
30918 * image.c (uncache_image): Fix typo.
30919
309202007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
30921
30922 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
30923
309242007-05-22 Richard Stallman <rms@gnu.org>
30925
30926 * xterm.c (x_connection_closed): Remove NO_RETURN.
30927
309282007-05-22 Martin Rudalics <rudalics@gmx.at>
30929
30930 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
30931
309322007-05-21 Chong Yidong <cyd@stupidchicken.com>
30933
30934 * image.c (uncache_image): New function.
30935 (Fimage_refresh): New function.
30936
309372007-05-20 Jan Djärv <jan.h.d@swipnet.se>
30938
30939 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
30940
309412007-05-20 Nick Roberts <nickrob@snap.net.nz>
30942
30943 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
30944 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
30945
309462007-05-20 Nick Roberts <nickrob@snap.net.nz>
30947
30948 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
30949 conditional on [HAVE_GPM_H].
30950
309512007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
30952
30953 * syntax.c (skip_chars): Update syntax-table only after we checked that
30954 the new location is valid.
30955
309562007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30957
30958 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
30959 mac_get_window_bounds.
30960
309612007-05-20 Nick Roberts <nickrob@snap.net.nz>
30962
30963 * Makefile.in (LIBGPM): Allow it to be set from configure.
30964 If set then link Emacs with it.
30965
30966 * config.in: Regenerate.
30967
30968 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
30969 New externs.
30970
30971 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
30972 Include gpm.h.
30973 (handle_one_term_event, term_gpm): New externs.
30974
30975 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
30976 and allow it to be interrupted by SIGIO.
30977
30978 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
30979 (wait_reading_process_output): Wait on gpm_fd too.
30980 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
30981 (add_gpm_wait_descriptor_called_flag): New variable.
30982 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
30983
30984 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
30985 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
30986 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
30987 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
30988 (make_lispy_event): Add case GPM_CLICK_EVENT.
30989 (read_avail_input): Handle mouse input.
30990
30991 * term.c (write_glyphs_with_face): New function.
30992 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
30993 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
30994 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
30995 (mouse_face_face_id, term_gpm, pos_x, pos_y)
30996 (last_mouse_x, last_mouse_y): New variables.
30997 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
30998 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
30999 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
31000 (Fterm_close_connection): New functions.
31001 (term_init): Initialise mouse_face_window.
31002
310032007-05-19 Chong Yidong <cyd@stupidchicken.com>
31004
31005 * xdisp.c (redisplay_window): If first window line is a
31006 continuation line, recompute the new window start instead of
31007 recentering.
31008
310092007-05-18 Glenn Morris <rgm@gnu.org>
31010
31011 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
31012 Suggested by Alfred M. Szmidt <ams@gnu.org>.
31013
310142007-05-17 Glenn Morris <rgm@gnu.org>
31015
31016 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
31017
310182007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31019
31020 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
31021 dead key repeat and up events.
31022
310232007-05-14 Chong Yidong <cyd@stupidchicken.com>
31024
31025 * image.c (pbm_load): Check image size for monochrome pbm.
31026
310272007-05-13 Chong Yidong <cyd@stupidchicken.com>
31028
31029 * xterm.c (XTread_socket): Revert last change.
31030
310312007-05-12 Chong Yidong <cyd@stupidchicken.com>
31032
31033 * image.c (pbm_load): Correctly check image size for greyscale pbm.
31034
31035 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
31036
310372007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
31038
31039 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
31040 mixup (YAILOM).
31041
310422007-05-07 Andreas Schwab <schwab@suse.de>
31043
31044 * keymap.c (Flookup_key): Fix typo in last change.
31045
310462007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
31047
31048 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
31049 mapping for unibyte strings.
31050
310512007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31052
31053 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
31054 (Fx_popup_dialog) [MAC_OSX]: Likewise.
31055
310562007-04-29 Richard Stallman <rms@gnu.org>
31057
31058 * insdel.c (replace_range): For undo, record insertion first.
31059
310602007-04-29 Andreas Schwab <schwab@suse.de>
31061
31062 * lisp.h (VECSIZE): Use OFFSETOF.
31063
310642007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31065
31066 * xdisp.c (try_window_reusing_current_matrix): Fix number of
31067 disabled lines.
31068
310692007-04-28 Richard Stallman <rms@gnu.org>
31070
31071 * lread.c (read_escape): In a string, \s is always space.
31072
310732007-04-27 Jan Djärv <jan.h.d@swipnet.se>
31074
31075 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
31076
31077 * gtkutil.c (xg_update_menubar, create_menus): Create empty
31078 submenu for menu bar items.
31079
31080See ChangeLog.10 for earlier changes.
31081
31082;; Local Variables:
31083;; coding: utf-8
aac0c6e3
MR
31084;; End:
31085
73b0cd50 31086 Copyright (C) 2007-2011 Free Software Foundation, Inc.
aac0c6e3
MR
31087
31088 This file is part of GNU Emacs.
31089
31090 GNU Emacs is free software: you can redistribute it and/or modify
31091 it under the terms of the GNU General Public License as published by
31092 the Free Software Foundation, either version 3 of the License, or
31093 (at your option) any later version.
31094
31095 GNU Emacs is distributed in the hope that it will be useful,
31096 but WITHOUT ANY WARRANTY; without even the implied warranty of
31097 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
31098 GNU General Public License for more details.
31099
31100 You should have received a copy of the GNU General Public License
31101 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.