1 2011-02-20 Paul Eggert <eggert@cs.ucla.edu>
3 Import crypto/md5 and stdint modules from gnulib.
4 * Makefile.in (base_obj): Remove md5.o, since this file
6 * config.in: Regenerate.
7 * md5.h, md5.h: Move to ../lib.
8 * deps.mk (md5.o): Remove.
9 (fns.o): Depend on ../lib/md5.h, not md5.h.
11 2011-02-19 Eli Zaretskii <eliz@gnu.org>
13 * termcap.c (tputs): Don't declare baud_rate.
15 * s/msdos.h (strtold): Define to _strtold.
17 2011-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
19 * process.c (Fstart_process, Fmake_serial_process)
20 (Fmake_network_process, server_accept_connection):
21 Use empty_unibyte_string.
23 * alloc.c (make_unibyte_string): Don't SET_UNIBYTE redundantly.
25 * lread.c (Qdir_ok): New constant.
26 (syms_of_lread): Initialize it.
27 (openp): Don't ignore directories if the predicate returns dir-ok.
29 2011-02-18 Eli Zaretskii <eliz@gnu.org>
31 * xdisp.c (display_line): Fix the change made for bug#7939.
33 * terminal.c (create_terminal): Use default-keyboard-coding-system
34 and default-terminal-coding-system to initialize coding systems of
35 the new terminal. (Bug#7840)
37 2011-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
39 * lisp.h (BYTE_MARK_STACK): New macro.
40 (mark_byte_stack): Only declare if BYTE_MARK_STACK is set.
42 * bytecode.c (BYTE_MAINTAIN_TOP): New macros.
43 (struct byte_stack): Only define `top' and `bottom' if used.
44 (mark_byte_stack): Only define if used.
45 (BEFORE_POTENTIAL_GC, AFTER_POTENTIAL_GC): Nullify if BYTE_MAINTAIN_TOP
47 (Fbyte_code): Don't set `bottom' unless BYTE_MAINTAIN_TOP is set.
49 * term.c (OUTPUT_IF): Use OUTPUT.
51 * alloc.c (Fgarbage_collect): When using stack scanning, don't
52 redundantly scan byte-code stacks, catchlist, and handlerlist.
54 2011-02-17 Jan Djärv <jan.h.d@swipnet.se>
56 * nsfns.m (Fx_create_frame, ns_set_name_as_filename)
57 (Fns_read_file_name): Replace B_ with BVAR.
59 * nsterm.m (ns_term_init): Use KVAR.
61 2011-02-16 Eli Zaretskii <eliz@gnu.org>
63 * msdos.c (internal_terminal_init): Use KVAR.
65 * w32fns.c (Fx_create_frame): Use KVAR.
67 * w32term.c (w32_create_terminal): Use KVAR.
69 * s/ms-w32.h (MODE_LINE_BINARY_TEXT): Remove.
70 (getloadavg): Declare prototype which was removed from lisp.h.
72 * xdisp.c (decode_mode_spec): Don't use MODE_LINE_BINARY_TEXT.
74 * fileio.c (Finsert_file_contents, Fwrite_region):
75 Remove references to buffer_file_type.
76 (syms_of_fileio): Don't intern and staticpro
77 find-buffer-file-type.
79 * callproc.c (syms_of_callproc): Remove references to
82 * buffer.c (reset_buffer_local_variables): Don't set
84 (init_buffer_once): Likewise.
85 (syms_of_buffer): Don't define buffer-file-type.
87 * buffer.h (struct buffer): Remove buffer_file_type.
89 2011-02-16 Tom Tromey <tromey@parfait>
91 * callint.c (Fcall_interactively): Update for change to field names.
92 * doc.c (Fsubstitute_command_keys): Update for change to field names.
93 * cmds.c (Fself_insert_command): Update for change to field names.
94 * keymap.c (Fcurrent_active_maps, Fkey_binding)
95 (Fdescribe_buffer_bindings): Update for change to field names.
96 * macros.c (Fstart_kbd_macro, end_kbd_macro, Fend_kbd_macro)
97 (store_kbd_macro_char, Fcall_last_kbd_macro, Fexecute_kbd_macro):
98 Update for change to field names.
99 * keyboard.c (echo_char, echo_dash, echo_now, cancel_echoing)
100 (echo_length, echo_truncate, cmd_error, command_loop_1)
101 (read_char, kbd_buffer_store_event_hold, make_lispy_event)
102 (menu_bar_items, tool_bar_items, read_char_minibuf_menu_prompt)
103 (read_key_sequence, Fcommand_execute, Fexecute_extended_command)
104 (Fdiscard_input, init_kboard, init_keyboard, mark_kboards):
105 Update for change to field names.
106 * xfns.c (Fx_create_frame): Update for change to field names.
107 * xterm.c (x_connection_closed, x_term_init): Update for change to
109 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN, init_tty):
110 Update for change to field names.
111 * window.c (window_scroll_pixel_based, window_scroll_line_based):
112 Update for change to field names.
113 * frame.c (make_frame_without_minibuffer, Fhandle_switch_frame)
114 (delete_frame): Update for change to field names.
115 * lisp.h (DEFVAR_KBOARD): Update for change to field names.
116 * keyboard.h (struct kboard): Rename all Lisp_Object fields.
117 (KBOARD_INTERNAL_FIELD, KVAR): New macros.
119 2011-02-16 Tom Tromey <tromey@redhat.com>
121 * lisp.h (DEFVAR_BUFFER_DEFAULTS): Use BVAR.
123 2011-02-16 Tom Tromey <tromey@parfait>
125 * xfns.c (x_create_tip_frame, Fx_show_tip): Replace B_ with BVAR.
126 * xfaces.c (compute_char_face): Replace B_ with BVAR.
127 * xdisp.c (pos_visible_p, init_iterator, reseat_1)
128 (message_dolog, update_echo_area, ensure_echo_area_buffers)
129 (with_echo_area_buffer, setup_echo_area_for_printing)
130 (set_message_1, update_menu_bar, update_tool_bar)
131 (text_outside_line_unchanged_p, redisplay_internal)
132 (try_scrolling, try_cursor_movement, redisplay_window)
133 (try_window_reusing_current_matrix, row_containing_pos)
134 (try_window_id, get_overlay_arrow_glyph_row, display_line)
135 (Fcurrent_bidi_paragraph_direction, display_mode_lines)
136 (decode_mode_spec_coding, decode_mode_spec, display_count_lines)
137 (get_window_cursor_type, note_mouse_highlight): Replace B_ with
139 * window.c (window_display_table, unshow_buffer, window_loop)
140 (window_min_size_2, set_window_buffer, Fset_window_buffer)
141 (select_window, Fforce_window_update, temp_output_buffer_show)
142 (Fset_window_configuration, save_window_save): Replace B_ with
144 * w32fns.c (x_create_tip_frame, Fx_show_tip, Fw32_shell_execute):
145 Replace B_ with BVAR.
146 * undo.c (record_point, record_insert, record_delete)
147 (record_marker_adjustment, record_first_change)
148 (record_property_change, Fundo_boundary, truncate_undo_list)
149 (Fprimitive_undo): Replace B_ with BVAR.
150 * syntax.h (Vstandard_syntax_table, CURRENT_SYNTAX_TABLE)
151 (SETUP_BUFFER_SYNTAX_TABLE): Replace B_ with BVAR.
152 * syntax.c (update_syntax_table, dec_bytepos, Fsyntax_table)
153 (Fset_syntax_table, Fmodify_syntax_entry, skip_chars)
154 (skip_syntaxes, scan_lists): Replace B_ with BVAR.
155 * search.c (compile_pattern_1, compile_pattern, looking_at_1)
156 (string_match_1, fast_looking_at, newline_cache_on_off)
157 (search_command, search_buffer, simple_search, boyer_moore)
158 (Freplace_match): Replace B_ with BVAR.
159 * process.c (get_process, list_processes_1, Fstart_process)
160 (Fmake_serial_process, Fmake_network_process)
161 (read_process_output, send_process, exec_sentinel)
162 (status_notify, setup_process_coding_systems): Replace B_ with
164 * print.c (PRINTDECLARE, PRINTPREPARE, PRINTFINISH, printchar)
165 (strout, print_string, temp_output_buffer_setup, print_object):
166 Replace B_ with BVAR.
167 * msdos.c (IT_frame_up_to_date): Replace B_ with BVAR.
168 * minibuf.c (read_minibuf, get_minibuffer, Fread_buffer):
169 Replace B_ with BVAR.
170 * marker.c (Fmarker_buffer, Fset_marker, set_marker_restricted)
171 (set_marker_both, set_marker_restricted_both, unchain_marker):
172 Replace B_ with BVAR.
173 * lread.c (readchar, unreadchar, openp, readevalloop)
174 (Feval_buffer, Feval_region): Replace B_ with BVAR.
175 * lisp.h (DOWNCASE_TABLE, UPCASE_TABLE): Replace B_ with BVAR.
176 * keymap.c (Flocal_key_binding, Fuse_local_map)
177 (Fcurrent_local_map, push_key_description)
178 (Fdescribe_buffer_bindings): Replace B_ with BVAR.
179 * keyboard.c (command_loop_1, read_char_minibuf_menu_prompt)
180 (read_key_sequence): Replace B_ with BVAR.
181 * intervals.h (TEXT_PROP_MEANS_INVISIBLE): Replace B_ with BVAR.
182 * intervals.c (set_point_both, get_local_map): Replace B_ with
184 * insdel.c (check_markers, insert_char, insert_1_both)
185 (insert_from_string_1, insert_from_gap, insert_from_buffer_1)
186 (adjust_after_replace, replace_range, del_range_2)
187 (modify_region, prepare_to_modify_buffer)
188 (Fcombine_after_change_execute): Replace B_ with BVAR.
189 * indent.c (buffer_display_table, recompute_width_table)
190 (width_run_cache_on_off, current_column, scan_for_column)
191 (Findent_to, position_indentation, compute_motion, vmotion):
192 Replace B_ with BVAR.
193 * fringe.c (get_logical_cursor_bitmap)
194 (get_logical_fringe_bitmap, update_window_fringes): Replace B_
196 * frame.c (make_frame_visible_1): Replace B_ with BVAR.
197 * font.c (font_at): Replace B_ with BVAR.
198 * fns.c (Fbase64_encode_region, Fbase64_decode_region, Fmd5):
199 Replace B_ with BVAR.
200 * filelock.c (unlock_all_files, Flock_buffer, Funlock_buffer)
201 (unlock_buffer): Replace B_ with BVAR.
202 * fileio.c (Fexpand_file_name, Ffile_directory_p)
203 (Ffile_regular_p, Ffile_selinux_context)
204 (Fset_file_selinux_context, Ffile_modes, Fset_file_modes)
205 (Fset_file_times, Ffile_newer_than_file_p, decide_coding_unwind)
206 (Finsert_file_contents, choose_write_coding_system)
207 (Fwrite_region, build_annotations, Fverify_visited_file_modtime)
208 (Fset_visited_file_modtime, auto_save_error, auto_save_1)
209 (Fdo_auto_save, Fset_buffer_auto_saved): Replace B_ with BVAR.
210 * editfns.c (region_limit, Fmark_marker, save_excursion_save)
211 (save_excursion_restore, Fprevious_char, Fchar_before)
212 (general_insert_function, Finsert_char, Finsert_byte)
213 (make_buffer_string_both, Finsert_buffer_substring)
214 (Fcompare_buffer_substrings, subst_char_in_region_unwind)
215 (subst_char_in_region_unwind_1, Fsubst_char_in_region)
216 (Ftranslate_region_internal, save_restriction_restore)
217 (Fchar_equal): Replace B_ with BVAR.
218 * dispnew.c (Fframe_or_buffer_changed_p): Replace B_ with BVAR.
219 * dispextern.h (WINDOW_WANTS_MODELINE_P)
220 (WINDOW_WANTS_HEADER_LINE_P): Replace B_ with BVAR.
221 * dired.c (directory_files_internal): Replace B_ with BVAR.
222 * data.c (swap_in_symval_forwarding, set_internal)
223 (Fmake_local_variable, Fkill_local_variable, Flocal_variable_p):
224 Replace B_ with BVAR.
225 * composite.c (fill_gstring_header)
226 (composition_compute_stop_pos, composition_adjust_point)
227 (Ffind_composition_internal): Replace B_ with BVAR.
228 * coding.c (decode_coding, encode_coding)
229 (make_conversion_work_buffer, decode_coding_gap)
230 (decode_coding_object, encode_coding_object)
231 (Fdetect_coding_region, Ffind_coding_systems_region_internal)
232 (Funencodable_char_position, Fcheck_coding_systems_region):
233 Replace B_ with BVAR.
234 * cmds.c (Fself_insert_command, internal_self_insert): Replace B_
236 * charset.c (Ffind_charset_region): Replace B_ with BVAR.
237 * character.h (FETCH_CHAR_ADVANCE, INC_BOTH, DEC_BOTH)
238 (ASCII_CHAR_WIDTH): Replace B_ with BVAR.
239 * character.c (chars_in_text, Fget_byte): Replace B_ with BVAR.
240 * category.h (Vstandard_category_table): Replace B_ with BVAR.
241 * category.c (check_category_table, Fcategory_table)
242 (Fset_category_table, char_category_set): Replace B_ with BVAR.
243 * casetab.c (Fcurrent_case_table, set_case_table): Replace B_ with
245 * casefiddle.c (casify_object, casify_region): Replace B_ with
247 * callproc.c (Fcall_process, Fcall_process_region): Replace B_
249 * callint.c (check_mark, Fcall_interactively): Replace B_ with
251 * bytecode.c (Fbyte_code): Replace B_ with BVAR.
252 * buffer.h (FETCH_CHAR, FETCH_CHAR_AS_MULTIBYTE, BVAR): Replace B_
254 * buffer.c (Fbuffer_live_p, Fget_file_buffer)
255 (get_truename_buffer, Fget_buffer_create)
256 (clone_per_buffer_values, Fmake_indirect_buffer, reset_buffer)
257 (reset_buffer_local_variables, Fbuffer_name, Fbuffer_file_name)
258 (Fbuffer_local_value, buffer_lisp_local_variables)
259 (Fset_buffer_modified_p, Frestore_buffer_modified_p)
260 (Frename_buffer, Fother_buffer, Fbuffer_enable_undo)
261 (Fkill_buffer, Fset_buffer_major_mode, set_buffer_internal_1)
262 (set_buffer_temp, Fset_buffer, set_buffer_if_live)
263 (Fbarf_if_buffer_read_only, Fbury_buffer, Ferase_buffer)
264 (Fbuffer_swap_text, swapfield_, Fbuffer_swap_text)
265 (Fset_buffer_multibyte, swap_out_buffer_local_variables)
266 (record_overlay_string, overlay_strings, init_buffer_once)
267 (init_buffer, syms_of_buffer): Replace B_ with BVAR.
269 2011-02-16 Eli Zaretskii <eliz@gnu.org>
271 * xdisp.c (redisplay_internal): Resynchronize `w' if the selected
272 window is changed inside calls to do_pending_window_change.
275 2011-02-16 Paul Eggert <eggert@cs.ucla.edu>
277 Remove no-longer needed getloadavg symbols.
278 * m/alpha.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
279 * m/amdx86-64.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
280 * m/ia64.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
281 * m/ibms390.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
282 * m/macppc.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
283 * m/sparc.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
284 * m/template.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
285 * m/vax.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
286 * s/aix4-2.h (KERNEL_FILE, LDAV_SYMBOL): Remove.
287 * s/bsd-common.h (KERNEL_FILE, LDAV_SYMBOL): Remove #undef.
288 * s/hpux10-20.h (KERNEL_FILE, LOAD_AVE_TYPE, LOAD_AVE_CVT):
289 (LDAV_SYMBOL): Remove.
290 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Remove.
291 * s/usg5-4-common.h (KERNEL_FILE, LDAV_SYMBOL): Remove.
293 Import getloadavg module from gnulib.
294 * deps.mk (getloadavg.o): Remove; gnulib now does this.
295 * lisp.h (getloadavg) [!defined HAVE_GETLOADAVG]: Remove; gnulib
297 * src/s/freebsd.h (HAVE_GETLOADAVG): Remove; gnulib now does this.
298 * src/s/netbsd.h (HAVE_GETLOADAVG): Likewise.
299 * config.in: Regenerate.
301 2011-02-15 Eli Zaretskii <eliz@gnu.org>
303 * nsfns.m (ns_set_name_as_filename, Fns_read_file_name): Use B_.
305 2011-02-14 Michael Welsh Duggan <md5i@md5i.com>
307 * print.c (float_to_string): Ensure that a decimal point is
308 printed if using dtoastr (Bug#8033).
310 2011-02-14 Eli Zaretskii <eliz@gnu.org>
312 * msdos.c (IT_frame_up_to_date):
313 * s/msdos.h (MODE_LINE_BINARY_TEXT): Use B_ for the MS-DOS build.
315 * dired.c (directory_files_internal):
316 * fileio.c (Finsert_file_contents):
317 * insdel.c (prepare_to_modify_buffer):
318 * xdisp.c (pos_visible_p):
319 * s/ms-w32.h (MODE_LINE_BINARY_TEXT):
320 * w32fns.c (Fw32_shell_execute, Fx_show_tip, x_create_tip_frame):
321 Use B_ for the MS-Windows build.
323 2011-02-14 Jan Djärv <jan.h.d@swipnet.se>
325 * xrdb.c (x_load_resources): For LUCID and XFT, don't put a
326 resource that specifies helvetica for menus and dialogs.
328 * xmenu.c (apply_systemfont_to_dialog): Apply to *dialog.font.
329 (apply_systemfont_to_menu): Set resources *menubar*font and
330 *popup*font. Remove defflt.
331 (set_frame_menubar, create_and_show_popup_menu):
332 Call apply_systemfont_to_menu before lw_create_widget.
334 2011-02-14 Tom Tromey <tromey@redhat.com>
336 * buffer.c (init_buffer_once, syms_of_buffer): Use B_ in DOS_NT case.
338 * keyboard.h: Remove obsolete comment.
340 2011-02-14 Tom Tromey <tromey@parfait>
342 * composite.c (fill_gstring_header)
343 (composition_compute_stop_pos, composition_adjust_point)
344 (Ffind_composition_internal): Use B_.
345 * intervals.c (set_point_both, get_local_map): Use B_.
346 * callproc.c (Fcall_process, Fcall_process_region): Use B_.
347 * process.c (get_process, list_processes_1, Fstart_process)
348 (Fmake_serial_process, Fmake_network_process)
349 (read_process_output, send_process, exec_sentinel)
350 (status_notify, setup_process_coding_systems): Use B_.
351 * bytecode.c (Fbyte_code): Use B_.
352 * syntax.c (update_syntax_table, dec_bytepos, Fsyntax_table)
353 (Fset_syntax_table, Fmodify_syntax_entry, skip_chars)
354 (skip_syntaxes, scan_lists): Use B_.
355 * lread.c (readchar, unreadchar, openp, readevalloop)
356 (Feval_buffer, Feval_region): Use B_.
357 * print.c (printchar, strout, print_string, PRINTDECLARE)
358 (PRINTPREPARE, PRINTFINISH, temp_output_buffer_setup)
359 (print_object): Use B_.
360 * font.c (font_at): Use B_.
361 * fns.c (Fbase64_encode_region, Fbase64_decode_region, Fmd5):
363 * callint.c (check_mark, Fcall_interactively): Use B_.
364 * editfns.c (region_limit, Fmark_marker, save_excursion_save)
365 (save_excursion_restore, Fprevious_char, Fchar_before)
366 (general_insert_function, Finsert_char, Finsert_byte)
367 (make_buffer_string_both, Finsert_buffer_substring)
368 (Fcompare_buffer_substrings, subst_char_in_region_unwind)
369 (subst_char_in_region_unwind_1, Fsubst_char_in_region)
370 (Ftranslate_region_internal, save_restriction_restore)
371 (Fchar_equal): Use B_.
372 * data.c (swap_in_symval_forwarding, set_internal)
373 (Fmake_local_variable, Fkill_local_variable, Flocal_variable_p):
375 * undo.c (record_point, record_insert, record_delete)
376 (record_marker_adjustment, record_first_change)
377 (record_property_change, Fundo_boundary, truncate_undo_list)
378 (Fprimitive_undo): Use B_.
379 * search.c (compile_pattern_1, compile_pattern, looking_at_1)
380 (string_match_1, fast_looking_at, newline_cache_on_off)
381 (search_command, search_buffer, simple_search, boyer_moore)
382 (Freplace_match): Use B_.
383 * indent.c (buffer_display_table, recompute_width_table)
384 (width_run_cache_on_off, current_column, scan_for_column)
385 (Findent_to, position_indentation, compute_motion, vmotion):
387 * casefiddle.c (casify_object, casify_region): Use B_.
388 * casetab.c (Fcurrent_case_table, set_case_table): Use B_.
389 * cmds.c (Fself_insert_command, internal_self_insert): Use B_.
390 * fileio.c (Fexpand_file_name, Ffile_directory_p)
391 (Ffile_regular_p, Ffile_selinux_context)
392 (Fset_file_selinux_context, Ffile_modes, Fset_file_modes)
393 (Fset_file_times, Ffile_newer_than_file_p, decide_coding_unwind)
394 (Finsert_file_contents, choose_write_coding_system)
395 (Fwrite_region, build_annotations, Fverify_visited_file_modtime)
396 (Fset_visited_file_modtime, auto_save_error, auto_save_1)
397 (Fdo_auto_save, Fset_buffer_auto_saved): Use B_.
398 * minibuf.c (read_minibuf, get_minibuffer, Fread_buffer): Use B_.
399 * marker.c (Fmarker_buffer, Fset_marker, set_marker_restricted)
400 (set_marker_both, set_marker_restricted_both, unchain_marker):
402 * insdel.c (check_markers, insert_char, insert_1_both)
403 (insert_from_string_1, insert_from_gap, insert_from_buffer_1)
404 (adjust_after_replace, replace_range, del_range_2)
405 (modify_region, prepare_to_modify_buffer)
406 (Fcombine_after_change_execute): Use B_.
407 * filelock.c (unlock_all_files, Flock_buffer, Funlock_buffer)
408 (unlock_buffer): Use B_.
409 * keymap.c (Flocal_key_binding, Fuse_local_map)
410 (Fcurrent_local_map, push_key_description)
411 (Fdescribe_buffer_bindings): Use B_.
412 * keyboard.c (command_loop_1, read_char_minibuf_menu_prompt)
413 (read_key_sequence): Use B_.
414 * fringe.c (get_logical_cursor_bitmap)
415 (get_logical_fringe_bitmap, update_window_fringes): Use B_.
416 * xfns.c (x_create_tip_frame, Fx_show_tip): Use B_.
417 * xfaces.c (compute_char_face): Use B_.
418 * character.c (chars_in_text, Fget_byte): Use B_.
419 * category.c (check_category_table, Fcategory_table)
420 (Fset_category_table, char_category_set): Use B_.
421 * coding.c (decode_coding, encode_coding)
422 (make_conversion_work_buffer, decode_coding_gap)
423 (decode_coding_object, encode_coding_object)
424 (Fdetect_coding_region, Ffind_coding_systems_region_internal)
425 (Funencodable_char_position, Fcheck_coding_systems_region):
427 * charset.c (Ffind_charset_region): Use B_.
428 * window.c (window_display_table, unshow_buffer, window_loop)
429 (window_min_size_2, set_window_buffer, Fset_window_buffer)
430 (select_window, Fforce_window_update, temp_output_buffer_show)
431 (Fset_window_configuration, save_window_save): Use B_.
432 * xdisp.c (pos_visible_p, init_iterator, reseat_1)
433 (message_dolog, update_echo_area, ensure_echo_area_buffers)
434 (with_echo_area_buffer, setup_echo_area_for_printing)
435 (set_message_1, update_menu_bar, update_tool_bar)
436 (text_outside_line_unchanged_p, redisplay_internal)
437 (try_scrolling, try_cursor_movement, redisplay_window)
438 (try_window_reusing_current_matrix, row_containing_pos)
439 (try_window_id, get_overlay_arrow_glyph_row, display_line)
440 (Fcurrent_bidi_paragraph_direction, display_mode_lines)
441 (decode_mode_spec_coding, decode_mode_spec, display_count_lines)
442 (get_window_cursor_type, note_mouse_highlight): Use B_.
443 * frame.c (make_frame_visible_1): Use B_.
444 * dispnew.c (Fframe_or_buffer_changed_p): Use B_.
445 * dispextern.h (WINDOW_WANTS_HEADER_LINE_P)
446 (WINDOW_WANTS_MODELINE_P): Use B_.
447 * syntax.h (Vstandard_syntax_table): Update.
448 (CURRENT_SYNTAX_TABLE, SETUP_BUFFER_SYNTAX_TABLE): Use B_.
449 * intervals.h (TEXT_PROP_MEANS_INVISIBLE): Update.
450 (TEXT_PROP_MEANS_INVISIBLE): Use B_.
451 * character.h (FETCH_CHAR_ADVANCE): Update.
452 (INC_BOTH, ASCII_CHAR_WIDTH, DEC_BOTH): Use B_.
453 * category.h (Vstandard_category_table): Update.
454 * lisp.h (DEFVAR_BUFFER_DEFAULTS): Update for change to field
456 (DOWNCASE_TABLE, UPCASE_TABLE): Use B_.
457 * buffer.c (swapfield_): New macro.
458 (Fbuffer_swap_text): Use swapfield_ where appropriate.
459 (Fbuffer_live_p, Fget_file_buffer, get_truename_buffer)
460 (Fget_buffer_create, clone_per_buffer_values)
461 (Fmake_indirect_buffer, reset_buffer)
462 (reset_buffer_local_variables, Fbuffer_name, Fbuffer_file_name)
463 (Fbuffer_local_value, buffer_lisp_local_variables)
464 (Fset_buffer_modified_p, Frestore_buffer_modified_p)
465 (Frename_buffer, Fother_buffer, Fbuffer_enable_undo)
466 (Fkill_buffer, Fset_buffer_major_mode, set_buffer_internal_1)
467 (set_buffer_temp, Fset_buffer, set_buffer_if_live)
468 (Fbarf_if_buffer_read_only, Fbury_buffer, Ferase_buffer)
469 (Fbuffer_swap_text, Fset_buffer_multibyte)
470 (swap_out_buffer_local_variables, record_overlay_string)
471 (overlay_strings, init_buffer_once, init_buffer, syms_of_buffer):
473 * buffer.h (struct buffer): Rename all Lisp_Object fields.
474 (BUFFER_INTERNAL_FIELD, B_): New macro.
475 (FETCH_CHAR, FETCH_CHAR_AS_MULTIBYTE): Use B_.
477 2011-02-14 Jan Djärv <jan.h.d@swipnet.se>
479 * gtkutil.c (xg_tool_bar_menu_proxy): Handle case when tool bar label
482 2011-02-13 Jan Djärv <jan.h.d@swipnet.se>
484 * callproc.c (Fcall_process):
485 * process.c (create_process): Replace Gtk with GConf in SIGPIPE
488 2011-02-12 Martin Rudalics <rudalics@gmx.at>
490 * window.c (select_window): Check inhibit_point_swap argument when
491 deciding whether to return immediately.
493 2011-02-12 Jan Djärv <jan.h.d@swipnet.se>
495 * nsterm.m (setFrame, initFrame): Make sure pixel_height doesn't become
498 2011-02-12 Chong Yidong <cyd@stupidchicken.com>
500 * config.in (TERMINFO): New definition.
502 * s/netbsd.h: Use it to choose between terminfo and termcap
505 2011-02-12 Paul Eggert <eggert@cs.ucla.edu>
507 * md5.c (md5_process_bytes): Use sizeof, not __alignof__.
508 The difference doesn't matter here, in practice, and sizeof is
509 more portable to non-GCC compilers. Also, this makes the code
510 match the already-existing comment.
512 2011-02-12 Andreas Schwab <schwab@linux-m68k.org>
514 * process.c (create_process): Reset SIGPIPE handler in the child.
515 * callproc.c (Fcall_process): Likewise. (Bug#5238)
517 2011-02-12 Eli Zaretskii <eliz@gnu.org>
519 * xdisp.c <this_line_min_pos>: New variable.
520 (move_it_in_display_line_to): Record in this_line_min_pos the
521 smallest position iterated across.
522 (display_line): Use this_line_min_pos to record the smallest
523 position in the line even if it is not displayed due to
524 hscrolling. (Bug#7939)
526 2011-02-12 Paul Eggert <eggert@cs.ucla.edu>
528 Port to Sun C 5.11, which has __attribute__ ((__aligned (N))).
529 * md5.h (ATTRIBUTE_ALIGNED): New macro.
530 (struct md5_ctx): Use it.
532 Port to Solaris 10, which doesn't support FC_HINT_STYLE.
533 * xftfont.c (FC_HINT_STYLE): #define to "hintstyle" if not
535 * xsettings.c (parse_settings, apply_xft_settings): Don't assume
536 FC_HINT_STYLE is supported.
538 2011-02-11 Jan Djärv <jan.h.d@swipnet.se>
540 * xterm.c (x_set_frame_alpha): Access data before it is free:d.
541 Make sure we don't do x_catch_errors twice.
543 2011-02-10 Glenn Morris <rgm@gnu.org>
545 * Makefile.in (really-lwlib): Depend on globals.h, for parallel builds.
547 2011-02-09 Eli Zaretskii <eliz@gnu.org>
549 * makefile.w32-in (GLOBAL_SOURCES, SOME_MACHINE_OBJECTS, obj):
551 (globals.h, gl-stamp): New targets.
552 (clean): Clean gl-stamp and globals.h.
554 2011-02-09 Andreas Schwab <schwab@linux-m68k.org>
556 * Makefile.in (gl-stamp): Create globals.h here.
557 (globals.h): Don't do it here.
558 (mostlyclean): Clean globals.h and gl-stamp.
560 2011-02-09 Paul Eggert <eggert@cs.ucla.edu>
562 * Makefile.in ($(otherobj)): Depend on globals.h.
563 Otherwise 'make -j10' failed on my host, because the build lacked
564 necessary dependencies, e.g., vm-limit.o depends on globals.h.
566 2011-02-08 Tom Tromey <tromey@redhat.com>
568 * Makefile.in (NS_OBJC_OBJ): New variable.
569 (base_obj): Rename from 'obj'.
571 (globals.h, gl-stamp, $(obj)): New targets.
572 (GLOBAL_SOURCES): New variable.
574 * nsselect.m (Vselection_alist): Define. Reverts part of
575 2011-01-19T22:11:33Z!jan.h.d@swipnet.se.
576 * buffer.c: Don't use "no_cell" for name of kill-buffer-hook's
578 * xselect.c (Vselection_alist): Define. Reverts part of 2011-01-19T23:32:42Z!eggert@cs.ucla.edu.
580 2011-02-08 Kenichi Handa <handa@m17n.org>
582 * font.c (Ffont_get): Do not cache :otf value.
584 2011-02-07 Paul Eggert <eggert@cs.ucla.edu>
586 conform to C89 pointer rules
588 * dired.c (scmp, file_name_completion):
589 Change types between char * and unsigned char *, to satisfy C89
590 rules about pointer type compatibility.
591 * casefiddle.c (casify_object, casify_region): Likewise.
592 * search.c (Freplace_match, Fregexp_quote): Likewise.
593 * alloc.c (make_string, make_specified_string, make_pure_string):
595 * data.c (Fstring_to_number): Likewise.
596 * print.c (float_to_string, PRINTFINISH, printchar, strout):
597 (print_object): Likewise.
598 * editfns.c (init_editfns, Fchar_to_string, Fbyte_to_string):
599 (Fuser_full_name, Fsubst_char_in_region, Ftranslate_region_internal):
601 * callint.c (Fcall_interactively): Likewise.
602 * fns.c (string_make_multibyte, string_to_multibyte):
603 (string_make_unibyte, Fstring_as_unibyte, Fstring_to_unibyte):
604 (Fbase64_encode_region, base64_encode_1, Fbase64_decode_region, Fmd5):
606 * lread.c (read1, hash_string): Likewise.
607 * process.c (read_process_output, send_process, Fprocess_send_region):
609 * callproc.c (Fcall_process): Likewise.
610 * doprnt.c (doprnt): Likewise.
611 * indent.c (compute_motion): Likewise.
612 * xfont.c (xfont_decode_coding_xlfd): Likewise.
613 * ralloc.c (resize_bloc): Likewise.
614 * image.c (tiff_load): Likewise.
615 * xml.c (make_dom, parse_region): Likewise.
616 * character.c (strwidth): Make its argument const char *, not const
617 unsigned char *, since more callers prefer it that way. All callers
620 2011-02-06 Paul Eggert <eggert@cs.ucla.edu>
622 * xterm.c (x_alloc_nearest_color_1): Avoid unportable int assumption.
623 Emacs assumes two's complement elsewhere, but the assumption is
624 easy to remove here, and this suppresses a warning with Sun C 5.8.
626 conform to C89 pointer rules
628 * xterm.c (x_draw_fringe_bitmap, handle_one_xevent, x_bitmap_icon):
629 (same_x_server, x_term_init):
630 Change types between char * and unsigned char *, to satisfy C89
631 rules about pointer type compatibility.
632 * doc.c (get_doc_string, Fsnarf_documentation):
633 (Fsubstitute_command_keys): Likewise.
634 * xfns.c (Fx_open_connection, Fx_window_property): Likewise.
635 * bitmaps/gray.xbm (gray_bits): Likewise.
636 * image.c (xbm_read_bitmap_data, xbm_load_image, xbm_load): Likewise.
637 * keyboard.c (echo_char, MULTI_LETTER_MOD, tty_read_avail_input):
639 * keymap.c (Ftext_char_description): Likewise.
640 * minibuf.c (Fread_buffer): Likewise.
641 * fileio.c (IS_DRIVE) [defined WINDOWSNT]:
642 (DRIVE_LETTER) [defined DOS_NT]:
643 (report_file_error, Ffile_name_directory, Ffile_name_nondirectory):
644 (make_temp_name, Fexpand_file_name, file_name_absolute_p):
645 (search_embedded_absfilename, Fsubstitute_in_file_name):
646 (barf_or_query_if_file_exists, Fmake_directory_internal):
647 (Fdelete_directory_internal, Ffile_name_absolute_p, read_non_regular):
648 (Finsert_file_contents, Fwrite_region):
650 * insdel.c (insert, insert_and_inherit, insert_before_markers):
651 (insert_before_markers_and_inherit, insert_1, insert_1_both):
652 Likewise. This changes these functions' signatures, which is
653 more convenient since most callers use char *. All remaining
655 * editfns.c (general_insert_function): Change signature to
656 match changes to insert functions' signatures.
657 * keymap.c (map_keymap_char_table_item, map_keymap_internal):
658 Use explicit cast when converting between void * and function pointer
659 types, as C89 requires this.
661 2011-02-05 Paul Eggert <eggert@cs.ucla.edu>
663 don't ignore chdir failure
664 * sysdep.c (sys_subshell) [!defined DOS_NT]: Diagnose chdir
666 (sys_subshell) [defined DOS_NT]: Mark with a FIXME the two
667 remaining unchecked chdir calls in this function; some DOS/NT
668 expert needs to fix them.
669 * emacs.c (main): Mark with a FIXME the unchecked chdir calls
670 in this function; some NextStep expert needs to fix them.
672 2011-02-05 Glenn Morris <rgm@gnu.org>
674 * xfaces.c (Finternal_set_lisp_face_attribute):
675 Try to clarify some error messages. (Bug#2659)
677 2011-02-05 Stefan Monnier <monnier@iro.umontreal.ca>
679 * editfns.c (save_restriction_restore): Don't forget to invalidate the
680 current_column cache (bug#7946).
682 2011-02-05 Kenichi Handa <handa@m17n.org>
684 * ftfont.c (ftfont_open): Use FC_DUAL only when it is defined.
686 * xftfont.c (xftfont_open): Likewise.
688 2011-02-05 Andreas Schwab <schwab@linux-m68k.org>
690 * window.c (Fselect_window): Add missing return value.
692 2011-02-05 Paul Eggert <eggert@cs.ucla.edu>
694 xstrcasecmp: conform to C89 pointer rules
695 * xfaces.c (xstrcasecmp): Change args from const unsigned char *
696 to const char *, since they're usually low-level C strings, and
697 this stays compatible with C89 pointer rules. All callers changed.
699 * charset.c: conform to C89 pointer rules
700 (define_charset_internal): Switch between char * and unsigned char *.
702 * xmenu.c: conform to C89 const rules
703 (xmenu_show, xdialog_show): Declare local var as char *, not
704 const char *, to stay compatible with C89 const rules.
706 * xdisp.c: conform to C89 pointer rules
707 (store_mode_line_noprop, display_string, reseat_to_string):
708 (c_string_pos, number_of_chars, message_dolog):
709 (message_log_check_duplicate, set_message_1, store_mode_line_noprop):
710 (display_mode_element, display_string):
711 Switch between char * and unsigned char * to stay compatible wth
714 * regex.c: conform to C89 pointer rules
715 (re_wctype): Add cast, as C89 does not allow assigning between
716 char * and unsigned char *.
717 (regex_compile): Likewise.
719 sync from gnulib to remove HAVE_STDBOOL_H
720 * config.in: Regenerate.
722 2011-02-04 Eli Zaretskii <eliz@gnu.org>
724 * makefile.w32-in (LISP_H, PROCESS_H): New variables.
725 Replace all uses of lisp.h with $(LISP_H), and all uses of
726 process.h with $(PROCESS_H).
727 ($(BLD)/editfns.$(O)): Depend on ../lib/strftime.h.
728 ($(BLD)/print.$(O)): Depend on ../lib/ftoastr.h and ../lib/intprops.h.
730 * deps.mk: Update for recent changes: gnutls support, gnulib
731 imports, addition of globals.h.
733 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on
734 ../lib/ignore-value.h.
736 2011-02-03 Paul Eggert <eggert@cs.ucla.edu>
738 allow C code to suppress warnings about ignored return values
740 We need to go through the code and for each such warning, either
741 fix the code to pay attention to the returned value, or tell GCC
742 that we really do want to ignore the returned value. Here is one
743 example of how to do the latter.
744 * sysdep.c: Include <ignore-value.h>.
745 (sys_subshell): Suppress an undesirable warning about not checking
746 the returned value of 'write', as there's nothing useful one can
747 do with that returned value.
749 2011-02-03 Jan Djärv <jan.h.d@swipnet.se>
751 * xterm.c (x_connection_closed): Remove all calls that calls
754 2011-02-01 Eli Zaretskii <eliz@gnu.org>
756 * image.c (tiff_load): Avoid compiler warning in 2nd arg to
759 2011-02-01 Jan Djärv <jan.h.d@swipnet.se>
761 * xsmfns.c (ice_connection_closed): Call delete_read_fd.
762 (x_session_check_input): Change args and return type so it can be used
763 as argument to add_read_fd. Make static. Remove call to select.
764 Call kbd_buffer_store_event for emacs_event.
765 (smc_save_yourself_CB): Also store initial argv to SmRestartCommand.
766 (ice_conn_watch_CB): Call add_read_fd.
768 * xterm.c (XTread_socket): Remove HAVE_X_SM block with call to
769 x_session_check_input.
770 (x_session_initialized): Remove definition.
771 (x_initialize): Remove setting of x_session_initialized.
773 * xterm.h (x_session_check_input): Remove declaration.
775 2011-02-01 Paul Eggert <eggert@cs.ucla.edu>
777 format-time-string now supports subsecond time stamp resolution
778 * editfns.c (emacs_nmemftime): Rename from emacs_memftimeu,
779 for consistency with its new argument and with gnulib nstrftime.
780 All callers changed. New argument NS.
781 (Fformat_time_string): Check that the time argument's microseconds
782 component, if any, is in range; this avoids integer overflow and
783 also nstrftime needs this. Document %N.
785 2011-01-31 Andreas Schwab <schwab@linux-m68k.org>
787 * image.c (DEF_IMGLIB_FN): Add parameter rettype, use it instead
788 of int. All uses adjusted.
789 (PNG_JMPBUF, png_load, jpeg_load, tiff_load, gif_load)
790 (svg_load_image): Remove casts.
792 2011-01-31 Chong Yidong <cyd@stupidchicken.com>
794 * image.c (fn_png_longjmp, fn_png_set_longjmp_fn): New png
795 function definitions for compiling with libpng-1.5.
796 (PNG_LONGJMP, PNG_JMPBUF): New macros for libpng-1.5.
797 (my_png_error, png_load): Use them. Suggested by Thomas Klausner
800 2011-01-31 Eli Zaretskii <eliz@gnu.org>
802 * s/ms-w32.h (HAVE_STRFTIME): Don't define.
804 * makefile.w32-in (OBJ2): Remove strftime.$(O).
805 ($(BLD)/strftime.$(O)): Remove prerequisites.
807 2011-01-31 Paul Eggert <eggert@cs.ucla.edu>
809 src/emacs.c now gets version number from configure.in
810 * emacs.c (emacs_version): Set to VERSION so that it
811 is determined automatically from ../configure.in.
813 2011-01-31 Jim Meyering <meyering@redhat.com>
815 * charset.c (load_charset_map): Don't deref NULL on failed malloc.
816 Use xmalloc rather than malloc.
818 2011-01-30 Paul Eggert <eggert@cs.ucla.edu>
820 strftime: import from gnulib
821 * Makefile.in (obj): Remove strftime.o, as gnulib now does this for us.
822 * deps.mk (strftime.o): Remove.
823 * editfns.c: Include <strftime.h>, supplied by gnulib.
824 (emacs_strftimeu): Remove decl.
825 (emacs_memftimeu): Use nstrftime (the gnulib name) rather than
827 * config.in: Regenerate.
828 * strftime.c: Remove; we now use strftime from gnulib.
830 Use SSDATA when the context wants char *.
831 * alloc.c, buffer.c, bytecode.c, callproc.c, dired.c:
832 * dispnew.c, doc.c, editfns.c, emacs.c, fileio.c, filelock.c:
833 * fns.c, font.c, frame.c, image.c, indent.c, keyboard.c:
834 * lread.c, minibuf.c, print.c, process.c, search.c, widget.c:
835 * xdisp.c, xfaces.c, xfns.c, xml.c, xselect.c, xterm.c:
836 Use SSDATA (not SDATA) when the context of the expression wants
837 char * (not unsigned char *).
839 2011-01-30 Jan Djärv <jan.h.d@swipnet.se>
841 * .gdbinit: Read global lisp variables as globals.f_V*.
843 2011-01-30 Andreas Schwab <schwab@linux-m68k.org>
845 * font.c (PROP_MATCH): Remove parameter N and use strlen instead.
847 (PROP_SAVE): Likewise.
849 2011-01-29 Chong Yidong <cyd@stupidchicken.com>
851 * keyboard.c (make_lispy_position): Fix typo in last change
854 2011-01-29 Eli Zaretskii <eliz@gnu.org>
856 * s/ms-w32.h (HAVE_MKTIME): Remove.
858 * makefile.w32-in (LOCAL_FLAGS): Add -I../lib.
859 (GNULIB): New variable.
860 (LIBS): Add $(GNULIB).
861 $(TEMACS): Depend on $(GNULIB).
862 <top-level>: Fix font-lock disrupted by a lone `"'.
864 2011-01-29 Jan Djärv <jan.h.d@swipnet.se>
866 * nsselect.m (ns_string_from_pasteboard): Get length of string
867 and use make_string instead of build_string (Bug#7934).
868 (ns_string_to_pasteboard_internal): Use initWithBytesNoCopy
869 instead of stringWithUTF8String (Bug#7934).
871 2011-01-29 Anders Lindgren <andlind@gmail.com> (tiny change)
873 * nsfont.m (nsfont_open): Ensure that fonts with inexact
874 descenders would not become one pixel too tall (Bug#7887).
876 2011-01-28 Chong Yidong <cyd@stupidchicken.com>
878 * keyboard.c (make_lispy_position): For clicks on right fringe or
879 margin, compute text position using the X coordinate relative to
880 the left of the text area (Bug#7839).
882 2011-01-28 Kenichi Handa <handa@m17n.org>
884 * ftfont.c (ftfont_spec_pattern): Check each extra property
887 2011-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
889 * xdisp.c (safe_eval_handler): Distinguish symbols and strings.
891 2011-01-27 Chong Yidong <cyd@stupidchicken.com>
893 * font.c (font_parse_fcname): Undefine a temporary macro.
895 2011-01-26 Stefan Monnier <monnier@iro.umontreal.ca>
897 Let the debugger continue to the normal handler (bug#7825).
898 * eval.c (maybe_call_debugger): Declare before new use.
899 (find_handler_clause): Don't call debugger any more.
900 Ignore Vstack_trace_on_error.
902 (syms_of_eval): Remove Vstack_trace_on_error.
903 (Fsignal): Only modify handlerlist when we know we need to do it.
904 Call the debugger when necessary.
905 * globals.h (Vstack_trace_on_error): Remove.
907 2011-01-26 Chong Yidong <cyd@stupidchicken.com>
909 * font.c (font_parse_fcname): Rewrite GTK font name parser.
911 2011-01-25 Stefan Monnier <monnier@iro.umontreal.ca>
913 * xdisp.c (handle_fontified_prop): Be careful with font-lock changing
914 the buffer's point-max (bug#7876).
916 2011-01-25 Chong Yidong <cyd@stupidchicken.com>
918 * lisp.h (XPNTR): Obey DATA_SEG_BITS in all non-USE_LSB_TAG cases.
919 Remove unused case (Bug#6811).
921 2011-01-23 Jan Djärv <jan.h.d@swipnet.se>
923 * nsterm.m (x_set_offset): Set dont_constrain to 0 so the call to
924 setFrameTopLeftPoint is constrained.
926 2011-01-23 Paul Eggert <eggert@cs.ucla.edu>
928 Check return values of some library calls.
929 * emacs.c (main): Check dup result.
930 * frame.c: Include <limits.h>, for INT_MIN and INT_MAX.
931 (frame_name_fnn_p): Check strtol result.
933 * image.c (x_create_bitmap_from_xpm_data): Add cast to fix type clash
934 when calling XpmCreatePixmapFromData.
936 Promote SSDATA macro from gtkutil.c and xsmfns.c to lisp.h.
937 * lisp.h (SSDATA): New macro.
938 All uses of (char *) SDATA (x) replaced with SSDATA (x),
939 and all uses of (unsigned char *) SDATA (x) replaced with SDATA (x).
940 * gtkutil.c (SSDATA): Remove, as lisp.h now defines this.
941 * xsmfns.c (SSDATA): Likewise.
943 2011-01-22 Martin Rudalics <rudalics@gmx.at>
945 * window.c (select_window): New function.
946 (Fselect_window): Call it.
947 (inhibit_point_swap): Variable deleted.
948 (Fset_window_configuration): Call select_window directly.
950 2011-01-22 Jan Djärv <jan.h.d@swipnet.se>
952 * nsterm.m (constrainFrameRect): Only constrain the first time called.
954 2011-01-21 Jan Djärv <jan.h.d@swipnet.se>
956 * nsterm.m (x_set_offset, windowDidMove): When calculating y, use first
957 screen, not the window screen.
958 (x_set_window_size): Remove constraints.
959 Calculate origin.y only if zooming is 0 and without referring to a
961 (windowWillResize): Don't modify frameSize.
962 (windowDidBecomeKey, mouseDown): Set dont_constrain to 1.
963 (initFrameFromEmacs): Initialize ns_userRect.
964 (windowShouldZoom): Set zooming to one. Remove all other code.
965 (windowWillUseStandardFrame): Move static ns_userRect to EmacsView.
966 Zero it after restore.
967 (constrainFrameRect): New method for EmacsWindow.
968 (mouseDragged): Always post NSWindowDidResizeNotification after call to
971 * nsterm.h (ns_output): Add dont_constrain and zooming.
972 (EmacsView): Add ns_userRect.
974 * nsterm.m (keyDown): If ns_right_alternate_modifier is Qleft, check
975 if ns_alternate_modifier is none.
977 2011-01-20 Jan Djärv <jan.h.d@swipnet.se>
979 * unexmacosx.c: Add comment about include order.
981 2011-01-20 Glenn Morris <rgm@gnu.org>
983 * minibuf.c (syms_of_minibuf) <read-expression-history>:
984 Give it a doc string.
985 * globals.h: Add Vread_expression_history.
987 * macros.c (syms_of_macros) <kbd-macro-termination-hook>:
988 Give it a doc string.
989 * globals.h: Add Vkbd_macro_termination_hook.
991 2011-01-20 Chong Yidong <cyd@stupidchicken.com>
993 * fns.c (Fyes_or_no_p): Revert 2011-01-07 change, removing ARGS.
995 2011-01-19 Paul Eggert <eggert@cs.ucla.edu>
997 Fix X11 compilation failure.
998 * globals.h (struct emacs_globals): Document f_Vselection_alist.
999 * xselect.c (Vselection_alist): Remove declaration, moving its
1000 documentation to globals.h. This fixes a compilation failure
1001 induced by the earlier change to globals.h today.
1003 2011-01-19 Jan Djärv <jan.h.d@swipnet.se>
1005 * unexmacosx.c: Include config.h before unistd.h (Bug#7859).
1007 * nsterm.m (ns_input_file, ns_input_font, ns_input_fontsize)
1008 (ns_input_line, ns_input_color, ns_input_text, ns_working_text)
1009 (ns_input_spi_name, ns_input_spi_arg)
1010 (ns_alternate_modifier, ns_right_alternate_modifier)
1011 (ns_command_modifier, ns_right_command_modifier, ns_control_modifier)
1012 (ns_right_control_modifier, ns_function_modifier)
1013 (ns_antialias_text, ns_confirm_quit): Move to globals.h.
1014 (Vx_toolkit_scroll_bars, x_use_underline_position_properties)
1015 (x_underline_at_descent_line): Remove declaration.
1016 (syms_of_nsterm): Remove & from DEFVAR_LISP and DEFVAR_BOOL.
1018 * nsselect.m (Vns_sent_selection_hooks, Vns_lost_selection_hooks
1019 (Vselection_alist, Vselection_converter_alist): Move to globals.h.
1020 (syms_of_nsselect): Remove & from DEFVAR_LISP.
1022 * nsmenu.m (Voverriding_local_map, Voverriding_local_map_menu_flag):
1025 * nsfont.m (Vns_reg_to_script, ns_antialias_text): Move to
1027 (syms_of_nsfont): Remove & from DEFVAR_LISP.
1029 * nsfns.m (Vmenu_bar_mode, Vtool_bar_mode): Remove declaration.
1030 (Vns_icon_type_alist, Vns_version_string): Move to globals.h.
1031 (syms_of_nsfns): Remove & from DEFVAR_LISP calls.
1033 * globals.h (struct emacs_globals): Add f_ns_input_file,
1034 f_ns_input_font, f_ns_input_fontsize, f_ns_input_line,
1035 f_ns_input_color, f_ns_input_text, f_ns_working_text,
1036 f_ns_input_spi_name, f_ns_input_spi_arg, f_ns_alternate_modifier,
1037 f_ns_right_alternate_modifier, f_ns_command_modifier,
1038 f_ns_right_command_modifier, f_ns_control_modifier,
1039 f_ns_right_control_modifier, f_ns_function_modifier,
1040 f_ns_antialias_text, f_ns_confirm_quit, f_Vns_icon_type_alist,
1041 f_Vns_version_string, f_Vns_sent_selection_hooks,
1042 f_Vns_lost_selection_hooks, f_Vselection_alist, f_Vns_reg_to_script
1043 and corresponding defines.
1046 2011-01-19 Sam Steingold <sds@gnu.org>
1048 * w32.c (check_windows_init_file): Remove declarations of
1049 Vwindow_system, Vload_path, Qfile_exists_p to fix compilation.
1050 * w32fns.c: Fix an error introduced by the previous patch.
1052 2011-01-19 Tom Tromey <tromey@redhat.com>
1054 * window.c: Fix error introduced by previous patch.
1056 2011-01-18 Tom Tromey <tromey@parfait>
1058 * globals.h: New file.
1059 * xterm.h (Vx_pixel_size_width_font_regexp): Remove declaration.
1060 * window.h (Vinitial_window_system, Vminibuf_scroll_window)
1061 (Vwindow_system_version): Remove declaration.
1062 * w32term.h (Vw32_enable_palette)
1063 (Vx_pixel_size_width_font_regexp): Remove declaration.
1064 * w32menu.c (Voverriding_local_map)
1065 (Voverriding_local_map_menu_flag): Remove declaration.
1066 * w32inevt.c (Vw32_alt_is_meta, Vw32_apps_modifier)
1067 (Vw32_capslock_is_shiftlock, Vw32_enable_caps_lock)
1068 (Vw32_enable_num_lock, Vw32_lwindow_modifier)
1069 (Vw32_pass_lwindow_to_system, Vw32_pass_rwindow_to_system)
1070 (Vw32_phantom_key_code, Vw32_recognize_altgr)
1071 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
1072 (w32_use_full_screen_buffer): Remove declaration.
1073 * w32.c (Vsystem_configuration, Vw32_downcase_file_names)
1074 (Vw32_generate_fake_inodes, Vw32_get_true_file_attributes)
1075 (w32_num_mouse_buttons, w32_pipe_read_delay): Remove declaration.
1076 * termopts.h (Vtruncate_partial_width_windows, inverse_video)
1077 (no_redraw_on_reenter, visible_bell): Remove declaration.
1078 * sysdep.c (Vsystem_name): Remove declaration.
1079 * syntax.h (parse_sexp_lookup_properties): Remove declaration.
1080 * menu.h (Vmenu_updating_frame): Remove declaration.
1081 * macros.h (Vexecuting_kbd_macro, executing_kbd_macro_index):
1083 * lisp.h (Vafter_init_time, Vafter_load_alist)
1084 (Vauto_save_list_file_name, Vbefore_init_time, Vcommand_history)
1085 (Vcompletion_regexp_list, Vcurrent_load_list)
1086 (Vcurrent_prefix_arg, Vdata_directory, Vdebug_on_error)
1087 (Vdoc_directory, Vdoc_file_name, Vdynamic_library_alist)
1088 (Vexec_directory, Vexec_path, Vexec_suffixes)
1089 (Vface_font_rescale_alist, Vface_ignored_fonts, Vfeatures)
1090 (Vhelp_form, Vhistory_length, Vinhibit_field_text_motion)
1091 (Vinhibit_quit, Vinhibit_read_only, Vinhibit_redisplay)
1092 (Vinstallation_directory, Vinvocation_directory)
1093 (Vinvocation_name, Vload_file_rep_suffixes, Vload_history)
1094 (Vload_suffixes, Vmark_even_if_inactive, Vmemory_full)
1095 (Vmessage_log_max, Vobarray, Vprint_length, Vprint_level)
1096 (Vpurify_flag, Vquit_flag, Vsaved_region_selection)
1097 (Vscalable_fonts_allowed, Vselect_active_regions)
1098 (Vshell_file_name, Vstandard_input, Vstandard_output)
1099 (Vsystem_name, Vtemporary_file_directory, Vthrow_on_input)
1100 (Vtop_level, Vtty_erase_char, Vundo_outer_limit)
1101 (Vuser_login_name, Vwindow_scroll_functions)
1102 (Vwindow_system_version, Vx_no_window_manager)
1103 (Vx_resource_class, Vx_resource_name, baud_rate)
1104 (completion_ignore_case, debug_on_next_call, gc_cons_threshold)
1105 (history_delete_duplicates, inhibit_x_resources)
1106 (last_nonmenu_event, load_in_progress, max_specpdl_size)
1107 (minibuffer_auto_raise, print_escape_newlines, scroll_margin)
1108 (use_dialog_box, use_file_dialog): Remove declaration.
1110 * keymap.h (Voverriding_local_map)
1111 (Voverriding_local_map_menu_flag, meta_prefix_char):
1113 * keyboard.h (Vdouble_click_time, Vfunction_key_map)
1114 (Vinput_method_function, Vkey_translation_map)
1115 (Vlucid_menu_bar_dirty_flag, Vthis_original_command)
1116 (do_mouse_tracking, extra_keyboard_modifiers)
1117 (num_nonmacro_input_events): Remove declaration.
1118 * intervals.h (Vchar_property_alias_alist)
1119 (Vdefault_text_properties, Vinhibit_point_motion_hooks)
1120 (Vtext_property_default_nonsticky): Remove declaration.
1121 * gtkutil.h (x_gtk_file_dialog_help_text)
1122 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
1123 (x_gtk_whole_detached_tool_bar): Remove declaration.
1124 * frame.h (Vdefault_frame_alist, Vframe_alpha_lower_limit)
1125 (Vmenu_bar_mode, Vmouse_highlight, Vterminal_frame)
1126 (Vtool_bar_mode, Vx_resource_class, Vx_resource_name)
1127 (focus_follows_mouse): Remove declaration.
1128 * fontset.h (Valternate_fontname_alist, Vfontset_alias_alist)
1129 (Vignore_relative_composition, Votf_script_alist)
1130 (Vuse_default_ascent, Vvertical_centering_font_regexp):
1132 * font.h (Vfont_log): Remove declaration.
1133 * dosfns.h (Vdos_display_scancodes, Vdos_version)
1134 (Vdos_windows_version, dos_codepage, dos_country_code)
1135 (dos_decimal_point, dos_hyper_key, dos_keyboard_layout)
1136 (dos_keypad_mode, dos_super_key, dos_timezone_offset):
1138 * disptab.h (Vglyph_table, Vstandard_display_table):
1140 * dispextern.h (Vface_remapping_alist, Vglyphless_char_display)
1141 (Vmouse_autoselect_window, Voverflow_newline_into_fringe)
1142 (Vshow_trailing_whitespace, Vtool_bar_button_margin)
1143 (Vtool_bar_style, cursor_in_echo_area, display_hourglass_p)
1144 (inverse_video, mode_line_in_non_selected_windows)
1145 (tool_bar_button_relief, tool_bar_max_label_size)
1146 (underline_minimum_offset)
1147 (unibyte_display_via_language_environment, x_stretch_cursor_p):
1149 * composite.h (Vauto_composition_function)
1150 (Vcomposition_function_table): Remove declaration.
1151 * commands.h (Vexecuting_kbd_macro)
1152 (Vminibuffer_local_completion_map)
1153 (Vminibuffer_local_filename_completion_map)
1154 (Vminibuffer_local_filename_must_match_map)
1155 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
1156 (Vminibuffer_local_ns_map, Vthis_command)
1157 (Vunread_command_events, cursor_in_echo_area)
1158 (last_command_event, last_nonmenu_event, unread_command_char):
1160 * coding.h (Vcoding_system_for_read, Vcoding_system_for_write)
1161 (Vdefault_file_name_coding_system)
1162 (Vdefault_process_coding_system, Vfile_name_coding_system)
1163 (Vlast_coding_system_used, Vlocale_coding_system)
1164 (Vselect_safe_coding_system_function)
1165 (Vtranslation_table_for_input, coding_system_require_warning)
1166 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
1167 (eol_mnemonic_unix, inherit_process_coding_system):
1169 * charset.h (Vcharset_list, Vcurrent_iso639_language):
1171 * character.h (Vauto_fill_chars, Vchar_direction_table)
1172 (Vchar_script_table, Vchar_width_table, Vprintable_chars)
1173 (Vscript_representative_chars, Vtranslation_table_vector)
1174 (Vunicode_category_table): Remove declaration.
1175 * ccl.h (Vfont_ccl_encoder_alist): Remove declaration.
1176 * buffer.h (Vafter_change_functions, Vbefore_change_functions)
1177 (Vdeactivate_mark, Vfirst_change_hook, Vtransient_mark_mode)
1178 (inhibit_modification_hooks): Remove declaration.
1179 * xterm.c (syms_of_xterm): Update.
1180 (Vx_alt_keysym, Vx_hyper_keysym, Vx_keysym_table)
1181 (Vx_meta_keysym, Vx_super_keysym, Vx_toolkit_scroll_bars)
1182 (x_mouse_click_focus_ignore_position)
1183 (x_underline_at_descent_line)
1184 (x_use_underline_position_properties): Remove.
1185 * xsmfns.c (syms_of_xsmfns): Update.
1186 (Vx_session_id, Vx_session_previous_id): Remove.
1187 * xsettings.c (syms_of_xsettings): Update.
1188 (Vxft_settings, use_system_font): Remove.
1189 * xselect.c (syms_of_xselect): Update.
1190 (Vselection_converter_alist, Vx_lost_selection_functions)
1191 (Vx_sent_selection_functions, x_selection_timeout): Remove.
1192 * xfns.c (syms_of_xfns): Update.
1193 (Vgtk_version_string, Vmotif_version_string)
1194 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
1195 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
1196 (Vx_no_window_manager, Vx_nontext_pointer_shape)
1197 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
1198 (Vx_sensitive_text_pointer_shape)
1199 (Vx_window_horizontal_drag_shape, x_gtk_file_dialog_help_text)
1200 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
1201 (x_gtk_use_system_tooltips, x_gtk_whole_detached_tool_bar):
1203 * xfaces.c (syms_of_xfaces): Update.
1204 (Vface_default_stipple, Vface_font_rescale_alist)
1205 (Vface_ignored_fonts, Vface_new_frame_defaults)
1206 (Vface_remapping_alist, Vfont_list_limit)
1207 (Vscalable_fonts_allowed, Vtty_defined_color_alist): Remove.
1208 * xdisp.c (syms_of_xdisp): Update.
1209 (Vauto_resize_tool_bars, Vblink_cursor_alist)
1210 (Vdisplay_pixels_per_inch, Vfontification_functions)
1211 (Vframe_title_format, Vglobal_mode_string)
1212 (Vglyphless_char_display, Vhourglass_delay, Vhscroll_step)
1213 (Vicon_title_format, Vinhibit_redisplay)
1214 (Vline_number_display_limit, Vline_prefix)
1215 (Vmax_mini_window_height, Vmenu_bar_update_hook)
1216 (Vmenu_updating_frame, Vmessage_log_max)
1217 (Vmouse_autoselect_window, Vnobreak_char_display)
1218 (Voverlay_arrow_position, Voverlay_arrow_string)
1219 (Voverlay_arrow_variable_list, Vredisplay_end_trigger_functions)
1220 (Vresize_mini_windows, Vshow_trailing_whitespace)
1221 (Vtool_bar_border, Vtool_bar_button_margin, Vtool_bar_style)
1222 (Vtruncate_partial_width_windows, Vvoid_text_area_pointer)
1223 (Vwindow_scroll_functions, Vwindow_size_change_functions)
1224 (Vwindow_text_change_functions, Vwrap_prefix)
1225 (auto_raise_tool_bar_buttons_p, automatic_hscrolling_p)
1226 (debug_end_pos, display_hourglass_p, emacs_scroll_step)
1227 (highlight_nonselected_windows, hscroll_margin)
1228 (inhibit_eval_during_redisplay, inhibit_free_realized_faces)
1229 (inhibit_menubar_update, inhibit_try_cursor_movement)
1230 (inhibit_try_window_id, inhibit_try_window_reusing)
1231 (line_number_display_limit_width)
1232 (make_cursor_line_fully_visible_p, message_truncate_lines)
1233 (mode_line_inverse_video, multiple_frames, overline_margin)
1234 (scroll_conservatively, scroll_margin, tool_bar_button_relief)
1235 (tool_bar_max_label_size, underline_minimum_offset)
1236 (unibyte_display_via_language_environment, x_stretch_cursor_p):
1238 * window.c (syms_of_window): Update.
1239 (Vminibuf_scroll_window, Vother_window_scroll_buffer)
1240 (Vrecenter_redisplay, Vscroll_preserve_screen_position)
1241 (Vtemp_buffer_show_function, Vwindow_configuration_change_hook)
1242 (Vwindow_point_insertion_type, auto_window_vscroll_p)
1243 (mode_line_in_non_selected_windows, next_screen_context_lines)
1244 (window_min_height, window_min_width): Remove.
1245 (scroll_margin): Remove declaration.
1246 * w32term.c (syms_of_w32term): Update.
1247 (Vw32_capslock_is_shiftlock, Vw32_grab_focus_on_raise)
1248 (Vw32_recognize_altgr, Vw32_swap_mouse_buttons)
1249 (Vx_toolkit_scroll_bars, w32_num_mouse_buttons)
1250 (w32_use_visible_system_caret, x_underline_at_descent_line)
1251 (x_use_underline_position_properties): Remove.
1252 (Vcommand_line_args, Vsystem_name, extra_keyboard_modifiers):
1254 * w32select.c (syms_of_w32select): Update.
1255 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
1256 * w32proc.c (syms_of_ntproc): Update.
1257 (Vw32_downcase_file_names, Vw32_generate_fake_inodes)
1258 (Vw32_get_true_file_attributes, Vw32_quote_process_args)
1259 (Vw32_start_process_inherit_error_mode)
1260 (Vw32_start_process_share_console)
1261 (Vw32_start_process_show_window, w32_pipe_read_delay): Remove.
1262 (Vsystem_name): Remove declaration.
1263 * w32font.c (syms_of_w32font): Update.
1264 (Vw32_charset_info_alist): Remove.
1265 * w32fns.c (globals_of_w32fns, syms_of_w32fns): Update.
1266 (Vw32_alt_is_meta, Vw32_apps_modifier, Vw32_bdf_filename_alist)
1267 (Vw32_color_map, Vw32_enable_caps_lock, Vw32_enable_num_lock)
1268 (Vw32_enable_palette, Vw32_lwindow_modifier)
1269 (Vw32_pass_alt_to_system, Vw32_pass_lwindow_to_system)
1270 (Vw32_pass_rwindow_to_system, Vw32_phantom_key_code)
1271 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
1272 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
1273 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
1274 (Vx_no_window_manager, Vx_nontext_pointer_shape)
1275 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
1276 (Vx_sensitive_text_pointer_shape)
1277 (Vx_window_horizontal_drag_shape, w32_ansi_code_page)
1278 (w32_enable_synthesized_fonts, w32_mouse_button_tolerance)
1279 (w32_mouse_move_interval)
1280 (w32_pass_extra_mouse_buttons_to_system)
1281 (w32_pass_multimedia_buttons_to_system, w32_quit_key)
1282 (w32_strict_fontnames, w32_strict_painting): Remove.
1283 (Vhourglass_delay, Vmenu_bar_mode, Vtool_bar_mode)
1284 (Vw32_recognize_altgr, Vwindow_system_version)
1285 (w32_num_mouse_buttons, w32_use_visible_system_caret):
1287 * w32console.c (syms_of_ntterm): Update.
1288 (w32_use_full_screen_buffer): Remove.
1289 (Vtty_defined_color_alist): Remove declaration.
1290 * w16select.c (syms_of_win16select): Update.
1291 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
1292 * undo.c (syms_of_undo): Update.
1293 (Vundo_outer_limit, Vundo_outer_limit_function)
1294 (undo_inhibit_record_point, undo_limit, undo_strong_limit):
1296 * textprop.c (syms_of_textprop): Update.
1297 (Vchar_property_alias_alist, Vdefault_text_properties)
1298 (Vinhibit_point_motion_hooks, Vtext_property_default_nonsticky):
1300 * terminal.c (syms_of_terminal): Update.
1301 (Vdelete_terminal_functions, Vring_bell_function): Remove.
1302 * term.c (syms_of_term): Update.
1303 (Vresume_tty_functions, Vsuspend_tty_functions)
1304 (no_redraw_on_reenter, system_uses_terminfo, visible_cursor):
1306 * syntax.c (syms_of_syntax): Update.
1307 (Vfind_word_boundary_function_table, multibyte_syntax_as_symbol)
1308 (open_paren_in_column_0_is_defun_start)
1309 (parse_sexp_ignore_comments, parse_sexp_lookup_properties)
1310 (words_include_escapes): Remove.
1311 * search.c (syms_of_search): Update.
1312 (Vinhibit_changing_match_data, Vsearch_spaces_regexp): Remove.
1313 * process.c (syms_of_process): Update.
1314 (Vprocess_adaptive_read_buffering, Vprocess_connection_type)
1315 (delete_exited_processes): Remove.
1316 * print.c (syms_of_print): Update.
1317 (Vfloat_output_format, Vprint_charset_text_property)
1318 (Vprint_circle, Vprint_continuous_numbering, Vprint_gensym)
1319 (Vprint_length, Vprint_level, Vprint_number_table)
1320 (Vstandard_output, print_escape_multibyte)
1321 (print_escape_newlines, print_escape_nonascii, print_quoted):
1323 * msdos.c (syms_of_msdos): Update.
1324 (Vdos_unsupported_char_glyph): Remove.
1325 (unibyte_display_via_language_environment): Remove declaration.
1326 * minibuf.c (syms_of_minibuf): Update.
1327 (Vcompletion_regexp_list, Vhistory_add_new_input)
1328 (Vhistory_length, Vminibuffer_completing_file_name)
1329 (Vminibuffer_completion_confirm)
1330 (Vminibuffer_completion_predicate, Vminibuffer_completion_table)
1331 (Vminibuffer_exit_hook, Vminibuffer_help_form)
1332 (Vminibuffer_history_position, Vminibuffer_history_variable)
1333 (Vminibuffer_prompt_properties, Vminibuffer_setup_hook)
1334 (Vread_buffer_function, Vread_expression_map)
1335 (completion_ignore_case, enable_recursive_minibuffers)
1336 (history_delete_duplicates, minibuffer_allow_text_properties)
1337 (minibuffer_auto_raise, read_buffer_completion_ignore_case):
1339 * marker.c (syms_of_marker): Update.
1340 (byte_debug_flag): Remove.
1341 * macros.c (syms_of_macros): Update.
1342 (Vexecuting_kbd_macro, executing_kbd_macro_index): Remove.
1343 * lread.c (syms_of_lread): Update.
1344 (Vafter_load_alist, Vbyte_boolean_vars)
1345 (Vbytecomp_version_regexp, Vcurrent_load_list)
1346 (Veval_buffer_list, Vload_file_name, Vload_file_rep_suffixes)
1347 (Vload_history, Vload_path, Vload_read_function)
1348 (Vload_source_file_function, Vload_suffixes, Vobarray)
1349 (Vold_style_backquotes, Vpreloaded_file_list, Vread_circle)
1350 (Vread_symbol_positions_list, Vread_with_symbol_positions)
1351 (Vsource_directory, Vstandard_input, Vuser_init_file, Vvalues)
1352 (force_load_messages, load_convert_to_unibyte)
1353 (load_dangerous_libraries, load_force_doc_strings)
1354 (load_in_progress): Remove.
1355 * keymap.c (syms_of_keymap): Update.
1356 (Vdefine_key_rebound_commands, Vemulation_mode_map_alists)
1357 (Vminibuffer_local_completion_map)
1358 (Vminibuffer_local_filename_completion_map)
1359 (Vminibuffer_local_filename_must_match_map)
1360 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
1361 (Vminibuffer_local_ns_map, Vminor_mode_map_alist)
1362 (Vminor_mode_overriding_map_alist, Vwhere_is_preferred_modifier):
1364 * keyboard.c (syms_of_keyboard): Update.
1365 (Vauto_save_timeout, Vcommand_error_function)
1366 (Vcommand_hook_internal, Vdeactivate_mark)
1367 (Vdeferred_action_function, Vdeferred_action_list)
1368 (Vdisable_point_adjustment, Vdouble_click_time)
1369 (Vecho_keystrokes, Venable_disabled_menus_and_buttons)
1370 (Vfunction_key_map, Vglobal_disable_point_adjustment)
1371 (Vhelp_char, Vhelp_event_list, Vhelp_form)
1372 (Vinput_method_function, Vinput_method_previous_message)
1373 (Vkey_translation_map, Vlast_event_frame)
1374 (Vlucid_menu_bar_dirty_flag, Vmenu_bar_final_items)
1375 (Vminibuffer_message_timeout, Voverriding_local_map)
1376 (Voverriding_local_map_menu_flag, Vpost_command_hook)
1377 (Vpre_command_hook, Vprefix_help_command)
1378 (Vsaved_region_selection, Vselect_active_regions)
1379 (Vshow_help_function, Vspecial_event_map, Vsuggest_key_bindings)
1380 (Vthis_command, Vthis_command_keys_shift_translated)
1381 (Vthis_original_command, Vthrow_on_input, Vtimer_idle_list)
1382 (Vtimer_list, Vtool_bar_separator_image_expression, Vtop_level)
1383 (Vtty_erase_char, Vunread_command_events)
1384 (Vunread_input_method_events, Vunread_post_input_method_events)
1385 (auto_save_interval, cannot_suspend, do_mouse_tracking)
1386 (double_click_fuzz, extra_keyboard_modifiers)
1387 (inhibit_local_menu_bar_menus, last_command_event)
1388 (last_input_event, last_nonmenu_event, menu_prompt_more_char)
1389 (menu_prompting, meta_prefix_char, num_input_keys)
1390 (num_nonmacro_input_events, polling_period, unread_command_char):
1392 * insdel.c (syms_of_insdel): Update.
1393 (Vcombine_after_change_calls, check_markers_debug_flag): Remove.
1394 * indent.c (syms_of_indent): Update.
1395 (indent_tabs_mode): Remove.
1396 * image.c (syms_of_image): Update.
1397 (Vimage_cache_eviction_delay, Vimage_types)
1398 (Vimagemagick_render_type, Vmax_image_size, Vx_bitmap_file_path)
1399 (cross_disabled_images): Remove.
1400 * fringe.c (syms_of_fringe): Update.
1401 (Vfringe_bitmaps, Voverflow_newline_into_fringe): Remove.
1402 * frame.c (syms_of_frame): Update.
1403 (Vdefault_frame_alist, Vdefault_frame_scroll_bars)
1404 (Vdelete_frame_functions, Vframe_alpha_lower_limit)
1405 (Vmake_pointer_invisible, Vmenu_bar_mode, Vmouse_highlight)
1406 (Vmouse_position_function, Vterminal_frame, Vtool_bar_mode)
1407 (Vx_resource_class, Vx_resource_name, focus_follows_mouse):
1409 * fontset.c (syms_of_fontset): Update.
1410 (Valternate_fontname_alist, Vfont_encoding_charset_alist)
1411 (Vfontset_alias_alist, Vignore_relative_composition)
1412 (Votf_script_alist, Vuse_default_ascent)
1413 (Vvertical_centering_font_regexp): Remove.
1414 * font.c (syms_of_font): Update.
1415 (Vfont_encoding_alist, Vfont_log, Vfont_slant_table)
1416 (Vfont_weight_table, Vfont_width_table): Remove.
1417 * fns.c (syms_of_fns): Update.
1418 (Vfeatures, use_dialog_box, use_file_dialog): Remove.
1419 * filelock.c (syms_of_filelock): Update.
1420 (Vtemporary_file_directory): Remove.
1421 * fileio.c (syms_of_fileio): Update.
1422 (Vafter_insert_file_functions, Vauto_save_include_big_deletions)
1423 (Vauto_save_list_file_name, Vauto_save_visited_file_name)
1424 (Vdefault_file_name_coding_system, Vfile_name_coding_system)
1425 (Vfile_name_handler_alist, Vinhibit_file_name_handlers)
1426 (Vinhibit_file_name_operation, Vset_auto_coding_function)
1427 (Vwrite_region_annotate_functions)
1428 (Vwrite_region_annotations_so_far)
1429 (Vwrite_region_post_annotation_function)
1430 (delete_by_moving_to_trash, write_region_inhibit_fsync): Remove.
1431 (Vw32_get_true_file_attributes): Remove declaration.
1432 * eval.c (syms_of_eval): Update.
1433 (Vdebug_ignored_errors, Vdebug_on_error, Vdebug_on_signal)
1434 (Vdebugger, Vinhibit_quit, Vmacro_declaration_function)
1435 (Vquit_flag, Vsignal_hook_function, Vstack_trace_on_error)
1436 (debug_on_next_call, debug_on_quit, debugger_may_continue)
1437 (max_lisp_eval_depth, max_specpdl_size): Remove.
1438 * emacs.c (syms_of_emacs): Update.
1439 (Vafter_init_time, Vbefore_init_time, Vcommand_line_args)
1440 (Vdynamic_library_alist, Vemacs_copyright, Vemacs_version)
1441 (Vinstallation_directory, Vinvocation_directory)
1442 (Vinvocation_name, Vkill_emacs_hook, Vpath_separator)
1443 (Vprevious_system_messages_locale, Vprevious_system_time_locale)
1444 (Vsystem_configuration, Vsystem_configuration_options)
1445 (Vsystem_messages_locale, Vsystem_time_locale, Vsystem_type)
1446 (inhibit_x_resources, noninteractive1): Remove.
1447 * editfns.c (syms_of_editfns): Update.
1448 (Vbuffer_access_fontified_property)
1449 (Vbuffer_access_fontify_functions, Vinhibit_field_text_motion)
1450 (Voperating_system_release, Vsystem_name, Vuser_full_name)
1451 (Vuser_login_name, Vuser_real_login_name): Remove.
1452 * dosfns.c (syms_of_dosfns): Update.
1453 (Vdos_display_scancodes, Vdos_version, Vdos_windows_version)
1454 (dos_codepage, dos_country_code, dos_decimal_point)
1455 (dos_hyper_key, dos_keyboard_layout, dos_keypad_mode)
1456 (dos_super_key, dos_timezone_offset): Remove.
1457 * doc.c (syms_of_doc): Update.
1458 (Vbuild_files, Vdoc_file_name): Remove.
1459 * dispnew.c (syms_of_display): Update.
1460 (Vglyph_table, Vinitial_window_system)
1461 (Vredisplay_preemption_period, Vstandard_display_table)
1462 (Vwindow_system_version, baud_rate, cursor_in_echo_area)
1463 (inverse_video, redisplay_dont_pause, visible_bell): Remove.
1464 * dired.c (syms_of_dired): Update.
1465 (Vcompletion_ignored_extensions): Remove.
1466 (Vw32_get_true_file_attributes): Remove declaration.
1467 * dbusbind.c (syms_of_dbusbind): Update.
1468 (Vdbus_debug, Vdbus_registered_buses)
1469 (Vdbus_registered_objects_table): Remove.
1470 * data.c (syms_of_data): Update.
1471 (Vmost_negative_fixnum, Vmost_positive_fixnum): Remove.
1472 * composite.c (syms_of_composite): Update.
1473 (Vauto_composition_function, Vauto_composition_mode)
1474 (Vcompose_chars_after_function, Vcomposition_function_table):
1476 * coding.c (syms_of_coding): Update.
1477 (Vcharset_revision_table, Vcoding_category_list)
1478 (Vcoding_system_alist, Vcoding_system_for_read)
1479 (Vcoding_system_for_write, Vcoding_system_list)
1480 (Vdefault_process_coding_system, Venable_character_translation)
1481 (Vfile_coding_system_alist, Vlast_code_conversion_error)
1482 (Vlast_coding_system_used, Vlatin_extra_code_table)
1483 (Vlocale_coding_system, Vnetwork_coding_system_alist)
1484 (Vprocess_coding_system_alist)
1485 (Vselect_safe_coding_system_function)
1486 (Vstandard_translation_table_for_decode)
1487 (Vstandard_translation_table_for_encode)
1488 (Vtranslation_table_for_input, coding_system_require_warning)
1489 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
1490 (eol_mnemonic_unix, inherit_process_coding_system)
1491 (inhibit_eol_conversion, inhibit_iso_escape_detection)
1492 (inhibit_null_byte_detection): Remove.
1493 * cmds.c (syms_of_cmds): Update.
1494 (Vpost_self_insert_hook): Remove.
1495 * charset.c (syms_of_charset): Update.
1496 (Vcharset_list, Vcharset_map_path, Vcurrent_iso639_language)
1497 (inhibit_load_charset_map): Remove.
1498 * character.c (syms_of_character): Update.
1499 (Vauto_fill_chars, Vchar_direction_table, Vchar_script_table)
1500 (Vchar_width_table, Vprintable_chars)
1501 (Vscript_representative_chars, Vtranslation_table_vector)
1502 (Vunicode_category_table): Remove.
1503 * ccl.c (syms_of_ccl): Update.
1504 (Vcode_conversion_map_vector, Vfont_ccl_encoder_alist)
1505 (Vtranslation_hash_table_vector): Remove.
1506 * category.c (syms_of_category): Update.
1507 (Vword_combining_categories, Vword_separating_categories): Remove.
1508 * callproc.c (syms_of_callproc): Update.
1509 (Vconfigure_info_directory, Vdata_directory, Vdoc_directory)
1510 (Vexec_directory, Vexec_path, Vexec_suffixes)
1511 (Vinitial_environment, Vprocess_environment)
1512 (Vshared_game_score_directory, Vshell_file_name): Remove.
1513 * callint.c (syms_of_callint): Update.
1514 (Vcommand_debug_status, Vcommand_history, Vcurrent_prefix_arg)
1515 (Vmark_even_if_inactive, Vmouse_leave_buffer_hook): Remove.
1516 * bytecode.c (syms_of_bytecode): Update.
1517 (Vbyte_code_meter, byte_metering_on): Remove.
1518 * buffer.c (syms_of_buffer): Update.
1519 (Vafter_change_functions, Vbefore_change_functions)
1520 (Vchange_major_mode_hook, Vfirst_change_hook)
1521 (Vinhibit_read_only, Vkill_buffer_query_functions)
1522 (Vtransient_mark_mode, inhibit_modification_hooks): Remove.
1523 * alloc.c (syms_of_alloc): Update.
1524 (Vgc_cons_percentage, Vgc_elapsed, Vmemory_full)
1525 (Vmemory_signal_data, Vpost_gc_hook, Vpurify_flag)
1526 (cons_cells_consed, floats_consed, garbage_collection_messages)
1527 (gc_cons_threshold, gcs_done, intervals_consed)
1528 (misc_objects_consed, pure_bytes_used, string_chars_consed)
1529 (strings_consed, symbols_consed, vector_cells_consed): Remove.
1531 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
1532 (DEFVAR_INT): Assume global is in `globals'.
1533 * alloc.c (globals): Define.
1535 2011-01-18 Tom Tromey <tromey@redhat.com>
1537 * image.c (Vimagemagick_render_type): Remove redundant
1540 2011-01-18 Tom Tromey <tromey@redhat.com>
1542 * xdisp.c (emacs_scroll_step): Rename from scroll_step.
1543 (try_scrolling): Rename argument to 'arg_scroll_conservatively'.
1544 (redisplay_window): Update.
1545 (syms_of_xdisp): Update.
1547 2011-01-18 Tom Tromey <tromey@redhat.com>
1549 * gtkutil.h (x_gtk_use_old_file_dialog, x_gtk_show_hidden_files)
1550 (x_gtk_file_dialog_help_text, x_gtk_whole_detached_tool_bar):
1552 * gtkutil.c (xg_uses_old_file_dialog):
1553 (xg_get_file_with_chooser):
1554 (xg_tool_bar_detach_callback): Don't redeclare globals.
1556 2011-01-18 Tom Tromey <tromey@redhat.com>
1558 * lisp.h (DEFVAR_BUFFER_DEFAULTS): New macro.
1559 * buffer.c (syms_of_buffer): Use DEFVAR_BUFFER_DEFAULTS.
1561 2011-01-18 Paul Eggert <eggert@cs.ucla.edu>
1563 * lisp.h (DECL_ALIGN): Define if HAVE_ATTRIBUTE_ALIGNED, not if
1564 defined __GNUC__. ../configure now checks for this GCC feature,
1565 which is now also supported by IBM and Oracle compilers.
1566 (USE_LSB_TAG) [defined DECL_ALIGN]: Also define if defined __sun,
1567 since Solaris malloc returns mult-of-8.
1569 2011-01-18 Stefan Monnier <monnier@iro.umontreal.ca>
1571 * image.c (syms_of_image): Don't access XSYMBOL's internals directly.
1573 2011-01-17 Paul Eggert <eggert@cs.ucla.edu>
1575 Give a name FLOAT_TO_STRING_BUFSIZE to the constant 350.
1576 * lisp.h (FLOAT_TO_STRING_BUFSIZE): New macro.
1577 * data.c (Fnumber_to_string): Use it.
1578 * print.c (float_to_string, print_object): Likewise.
1580 Include <unistd.h> unilaterally.
1581 * alloc.c, atimer.c, buffer.c, callproc.c, dired.c, dispnew.c, doc.c:
1582 * doprnt.c, editfns.c, emacs.c, fileio.c, filelock.c, fns.c:
1583 * getloadavg.c, getpagesize.h, gmalloc.c, image.c, keyboard.c:
1584 * lread.c, process.c, process.h, ralloc.c, regex.c, sysdep.c:
1585 * systty.h, term.c, termcap.c, xfns.c, xrdb.c, xselect.c, xsmfns.c:
1587 Include <unistd.h> without worrying about HAVE_UNISTD_H, since
1588 unistd.h is always present now, possibly supplied by gnulib.
1590 * mktime.c: Remove; moving to ../lib.
1592 Use gnulib's mktime module.
1593 * deps.mk (mktime.o): Remove rule.
1595 Use gnulib's ftoastr module.
1596 * print.c: Include ftoastr.h.
1597 (FLT_RADIX, DBL_MANT_DIG, DBL_DIG, DBL_MIN, DOUBLE_DIGITS_BOUND):
1598 Remove; no longer needed.
1599 (float_to_string): Use dtoastr rather than rolling our own code,
1600 which had an off-by-one bug on non-IEEE hosts.
1602 Automate syncing from gnulib.
1603 * Makefile.in (lib): New macro.
1604 (ALL_CFLAGS): Add -I$(lib) -I$(srcdir)/../lib.
1605 ($(lib)/libgnu.a): New rule.
1606 (temacs$(EXEEXT)): Also link $(lib)/libgnu.a.
1608 * xfns.c (x_real_positions): Fix signedness of local var 'ign'.
1609 XGetGeometry wants unsigned int *, not int *, for its last 4 args,
1610 so change the type of 'ign' to unsigned int from int.
1612 * regex.c (analyse_first): Remove unreachable 'continue' statement.
1614 * xterm.h (struct x_display_info): Remove stray semicolon.
1615 The extra semicolon didn't conform to the C standard.
1616 Problem reported by Sun cc.
1618 * lisp.h: Redo flags and XSET slightly to avoid overflow diagnostics.
1619 These changes make compilation easier to follow with Sun cc.
1620 (ARRAY_MARK_FLAG): Make it signed, so that it can be assigned to
1621 EMACS_INT values without provoking overflow diagnostics.
1622 (PSEUDOVECTOR_FLAG): Likewise, for consistency.
1623 (XSET) [! USE_LSB_TAG]: Use unsigned left shift to avoid overflow
1624 diagnostic with signed left shift.
1626 * fileio.c (make_temp_name): Remove unreachable code.
1628 * fontset.c (free_realized_fontset): Mark unreachable code with if (0).
1629 Previously it was marked by preceding it with "return;", but
1630 Sun cc complains about this.
1632 * coding.c (decode_coding_emacs_mule): Remove unreachable code.
1633 This is a typo left over from 2009-03-06T07:51:52Z!handa@m17n.org,
1634 which fixed Bug#2370. Caught by Sun cc.
1636 2011-01-15 Martin Rudalics <rudalics@gmx.at>
1638 * window.c (inhibit_point_swap): New variable.
1639 (Fselect_window): If inhibit_point_swap is nonzero, avoid swapping
1641 (Fset_window_configuration): Set inhibit_point_swap to 1 instead
1642 of setting selected_window to nil (Bug#7728).
1644 2011-01-11 Tassilo Horn <tassilo@member.fsf.org>
1646 * image.c (imagemagick_load_image, Finit_image_library):
1647 Free intermediate image after creating a MagickWand from it.
1648 Terminate MagickWand environment after image loading.
1650 2011-01-10 Michael Albinus <michael.albinus@gmx.de>
1652 * dbusbind.c (Fdbus_register_service): Raise an error in case of
1653 unexpected return values.
1654 (Fdbus_register_method): Remove connection initialization.
1656 2011-01-10 Jan Moringen <jan.moringen@uni-bielefeld.de>
1658 * dbusbind.c (QCdbus_request_name_allow_replacement): New symbol;
1659 used by Fdbus_register_service.
1660 (QCdbus_request_name_replace_existing): Likewise.
1661 (QCdbus_request_name_do_not_queue): Likewise.
1662 (QCdbus_request_name_reply_primary_owner): Likewise.
1663 (QCdbus_request_name_reply_in_queue): Likewise.
1664 (QCdbus_request_name_reply_exists): Likewise.
1665 (QCdbus_request_name_reply_already_owner): Likewise.
1666 (Fdbus_register_service): New function.
1667 (Fdbus_register_method): Use Fdbus_register_service to do the name
1669 (syms_of_dbusbind): Add symbols dbus-register-service,
1670 :allow-replacement, :replace-existing, :do-not-queue,
1671 :primary-owner, :existing, :in-queue and :already-owner.
1673 2011-01-09 Chong Yidong <cyd@stupidchicken.com>
1675 * gtkutil.c (update_frame_tool_bar): Don't advance tool-bar index
1676 when removing extra buttons.
1678 2011-01-08 Chong Yidong <cyd@stupidchicken.com>
1680 * fns.c (Fyes_or_no_p): Doc fix.
1682 2011-01-08 Andreas Schwab <schwab@linux-m68k.org>
1684 * fns.c (Fyes_or_no_p): Add usage.
1686 2011-01-08 Glenn Morris <rgm@gnu.org>
1688 * makefile.w32-in ($(EMACS)):
1689 * Makefile.in (emacs$(EXEEXT)): -batch implies -q.
1691 * xdisp.c (syms_of_xdisp) <Qrisky_local_variable>: Move from here...
1692 * emacs.c (syms_of_emacs) <Qrisky_local_variable>: ...to here.
1694 2011-01-07 Andreas Schwab <schwab@linux-m68k.org>
1696 * image.c (imagemagick_load_image): Fix some resource leaks and
1699 2011-01-07 Chong Yidong <cyd@stupidchicken.com>
1701 * fns.c (Fyes_or_no_p): Accept format string args.
1703 2011-01-07 Glenn Morris <rgm@gnu.org>
1705 * emacs.c (no_site_lisp): New int.
1706 (USAGE1): Add --no-site-lisp, mention -Q uses it.
1707 (main): Set no_site_lisp.
1708 (standard_args): Add --no-site-lisp.
1709 * lisp.h (no_site_lisp): New int.
1710 * lread.c (init_lread): If no_site_lisp, don't re-add site-lisp
1711 directories to Vload_path.
1713 2011-01-05 Andreas Schwab <schwab@linux-m68k.org>
1715 * alloc.c (mark_stack): Use __builtin_unwind_init if available.
1717 2011-01-04 Jan Moringen <jan.moringen@uni-bielefeld.de>
1719 * dbusbind.c (Fdbus_register_method): Add optional parameter
1720 dont_register_service. Updated docstring accordingly.
1722 2011-01-04 Glenn Morris <rgm@gnu.org>
1724 * emacs.c (emacs_copyright): Update short copyright year to 2011.
1726 2011-01-03 Eli Zaretskii <eliz@gnu.org>
1728 * image.c (png_jmpbuf): Remove definition.
1729 (my_png_error, png_load): Don't use png_jmpbuf.
1731 2011-01-02 Eli Zaretskii <eliz@gnu.org>
1733 * keyboard.c (Vselect_active_regions): Doc fix. (Bug#7702)
1735 2011-01-02 Eli Zaretskii <eliz@gnu.org>
1737 * image.c <Qlibpng_version>: New variable.
1738 (syms_of_image): Intern and staticpro it. Set its value to the
1739 version of PNG library we were compiled with.
1740 (my_png_error, png_load): Avoid GCC warnings about direct access
1741 to png_ptr->jmpbuf. (Bug#7716)
1742 (png_jmpbuf): New macro.
1743 (my_png_error, png_load): Use it instead of #ifdef'ing according
1744 to PNG_LIBPNG_VER_MAJOR and PNG_LIBPNG_VER_MINOR.
1746 2011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
1748 * .gdbinit (xgetptr): Fix the union+lsb case.
1749 (xbacktrace): Fix the union case.
1751 2011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
1753 * window.c (Fmove_to_window_line): Avoid abort when called in a buffer
1754 different from selected-window's.
1756 2011-01-02 Eli Zaretskii <eliz@gnu.org>
1758 * keyboard.c (parse_menu_item): Prepend " " to the key sequence
1759 equivalent of a menu item when the key sequence is given by the
1760 `:keys' attribute. (Bug#7662)
1762 * xdisp.c (Fformat_mode_line): Doc fix: no need to state that only
1763 the basic faces are supported.
1765 2011-01-02 Jan Djärv <jan.h.d@swipnet.se>
1767 * xterm.c (x_check_fullscreen): Fix pixel/character mixup.
1769 2011-01-02 Eli Zaretskii <eliz@gnu.org>
1771 * xdisp.c (Fformat_mode_line): Fix last change.
1773 2011-01-02 Chong Yidong <cyd@stupidchicken.com>
1775 * xdisp.c (Fformat_mode_line): Restrict the FACE argument to basic
1778 2011-01-02 Eli Zaretskii <eliz@gnu.org>
1780 * fileio.c (Fexpand_file_name): One more doc fix.
1782 2011-01-01 Chong Yidong <cyd@stupidchicken.com>
1784 * gtkutil.c (xg_get_tool_bar_widgets): Use NULL for a missing
1785 image or label in the container.
1786 (xg_make_tool_item): Replace VERT_ONLY arg with HORIZ, TEXT_IMAGE.
1787 (xg_show_toolbar_item): Function deleted.
1788 (xg_tool_item_stale_p): New function.
1789 (update_frame_tool_bar): Calculate tool-bar style once per call.
1790 Instead of hiding text labels, omit them. Don't use
1791 xg_show_toolbar_item; create new GtkToolItems from scratch if
1792 necessary, instead of trying to re-use them. This avoids an
1793 annoying animation when changing tool-bars.
1795 2010-12-31 Jan Djärv <jan.h.d@swipnet.se>
1797 * nsfns.m (ns_set_name_as_filename): Always use buffer name for
1798 title and buffer filename only for RepresentedFilename.
1799 Handle bad UTF-8 in buffer name (Bug#7517).
1801 2010-12-30 Jan Djärv <jan.h.d@swipnet.se>
1803 * coding.h (ENCODE_UTF_8): Remove "Used by ..." comment.
1805 * nsfns.m (ns_set_name_iconic): Remove.
1806 (ns_set_name_internal): New function (Bug#7517).
1807 (Vicon_title_format): Extern declare.
1808 (ns_set_name): Call ns_set_name_internal.
1809 (x_explicitly_set_name): Remove call to ns_set_name_iconic.
1810 (x_implicitly_set_name): Ditto.
1811 (x_set_title): Remove commet about EXPLICIT. Call ns_set_name_internal.
1812 (ns_set_name_as_filename): Encode name with ENCODE_UTF_8 (Bug#7517).
1814 2010-12-29 Štěpán Němec <stepnem@gmail.com> (tiny change)
1816 * window.c (syms_of_window): Add missing defsubr for
1819 2010-12-28 Andreas Schwab <schwab@linux-m68k.org>
1821 * xterm.h (x_alloc_lighter_color_for_widget): Restore declaration.
1822 * xterm.c (x_alloc_lighter_color_for_widget): Restore.
1824 2010-12-27 Andreas Schwab <schwab@linux-m68k.org>
1826 * buffer.c: Remove unused declarations.
1827 * buffer.h: Likewise.
1828 * charset.h: Likewise.
1829 * composite.h: Likewise.
1830 * dispextern.h: Likewise.
1831 * dispnew.c: Likewise.
1833 * fontset.c: Likewise.
1834 * fontset.h: Likewise.
1835 * intervals.h: Likewise.
1836 * keymap.h: Likewise.
1838 * syntax.c: Likewise.
1839 * syntax.h: Likewise.
1840 * termhooks.h: Likewise.
1841 * window.h: Likewise.
1842 * xsettings.h: Likewise.
1843 * xterm.c: Likewise.
1844 * xterm.h: Likewise.
1846 * chartab.c (sub_char_table_ref): Make static.
1847 * dispnew.c (line_hash_code, required_matrix_height)
1848 (required_matrix_width): Likewise.
1849 * eval.c (interactive_p, apply_lambda): Likewise.
1850 * fns.c (string_make_multibyte, copy_hash_table, hash_clear):
1852 * font.c (QCadstyle, QCregistry, font_make_spec)
1853 (font_parse_fcname, font_encode_char, font_at): Likewise.
1854 * frame.c (x_frame_get_arg): Likewise.
1855 * keymap.c (get_keyelt): Likewise.
1856 * lread.c (read_filtered_event): Likewise.
1857 * print.c (write_string_1): Likewise.
1858 * window.c (delete_window, window_height, window_width)
1859 (foreach_window): Likewise.
1860 * xrdb.c (x_get_customization_string, x_get_resource): Likewise.
1861 * xterm.c (x_scroll_bar_clear, xembed_set_info)
1862 (xembed_send_message): Likewise.
1864 * eval.c (run_hook_list_with_args): Delete.
1865 * font.c (font_unparse_gtkname, font_update_lface): Likewise.
1866 * terminal.c (get_terminal_param): Likewise.
1867 * xterm.c (x_alloc_lighter_color_for_widget): Likewise.
1869 * scroll.c: Fix comment.
1871 * dispnew.c (add_window_display_history)
1872 (add_frame_display_history, glyph_row_slice_p)
1873 (find_glyph_row_slice, flush_stdout)
1874 (check_matrix_pointer_lossage, matrix_row)
1875 (check_matrix_invariants, check_window_matrix_pointers)
1876 (check_matrix_pointers, window_to_frame_vpos)
1877 (window_to_frame_hpos): Prototize.
1878 * textprop.c (erase_properties): Likewise.
1880 2010-12-22 Stefan Monnier <monnier@iro.umontreal.ca>
1882 * print.c (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): Remove.
1883 (print_preprocess): Fix handling of uninterned symbols in last change.
1885 * print.c (print, print_preprocess, print_object): Use a hash table
1886 rather than a linear table for Vprint_number_table.
1888 2010-12-20 Chong Yidong <cyd@stupidchicken.com>
1890 * frame.c (focus_follows_mouse): Default to 0 (Bug#7269).
1892 2010-12-20 Chong Yidong <cyd@stupidchicken.com>
1894 * keyboard.c (Vtool_bar_separator_image_expression): New variable.
1895 (parse_tool_bar_item): Use it to obtain image separators for
1896 displays not using native tool-bar separators.
1898 * xdisp.c (build_desired_tool_bar_string): Don't handle separators
1899 specially, since this is now done in parse_tool_bar_item.
1901 2010-12-19 Stefan Monnier <monnier@iro.umontreal.ca>
1903 Minor clean up to silence some gcc warnings.
1904 * window.c (Fset_window_buffer):
1905 * xterm.c (x_set_frame_alpha): Restructure code to silence
1907 (handle_one_xevent): Remove unused var `p'.
1908 (do_ewmh_fullscreen): Remove unused var `lval'.
1909 (xembed_set_info): Remove unused var `atom'.
1910 * textprop.c (Fremove_list_of_text_properties): Add braces to silence
1912 * fontset.c (fontset_id_valid_p, dump_fontset):
1913 * ftfont.c (ftfont_drive_otf): Modernize k&r declaration.
1914 * eval.c (Feval, Ffuncall): Avoid unneeded gotos.
1915 * dispnew.c (update_frame, update_frame_1): Compile the `do_pause'
1916 label only when it's used.
1917 * image.c (x_create_bitmap_from_xpm_data):
1918 * dispextern.h (x_create_bitmap_from_xpm_data): Use const char** like
1920 * coding.c (detect_coding_utf_16): Remove unused vars `src_base' and
1922 (DECODE_EMACS_MULE_21_COMPOSITION): Remove unused var `charbuf_base'.
1923 (decode_coding_emacs_mule): Remove unused label `retry'.
1924 (detect_eol): Add parens to silence compiler warning.
1925 * alloc.c (bytes_used_when_reconsidered): Move to the #ifdef where
1926 it's used to silence the compiler.
1927 (make_number): Modernize k&r declaration.
1928 (mark_char_table): Add parens to silence compiler warning.
1930 2010-12-17 Chong Yidong <cyd@stupidchicken.com>
1932 * keyboard.c (parse_tool_bar_item): Allow menu separators in
1934 (menu_separator_name_p): New function, from gtkutil.c.
1935 (separator_names): Move from gtkutil.c.
1937 * keyboard.h (menu_separator_name_p): Add prototype.
1939 * gtkutil.c (XG_BIN_CHILD): New macro.
1940 (xg_get_menu_item_label, xg_update_menubar)
1941 (xg_update_menu_item, xg_tool_bar_menu_proxy)
1942 (xg_show_toolbar_item, update_frame_tool_bar): Use it.
1943 (separator_names, xg_separator_p): Move to keyboard.c.
1944 (create_menus, xg_update_submenu, update_frame_tool_bar):
1945 Use menu_separator_name_p.
1947 * nsmenu.m (name_is_separator): Function deleted.
1948 (addItemWithWidgetValue): Use menu_separator_name_p.
1950 * w32menu.c (name_is_separator): Function deleted.
1951 (add_menu_item): Use menu_separator_name_p.
1953 2010-12-16 Jan Djärv <jan.h.d@swipnet.se>
1955 * nsterm.m (ns_draw_window_cursor): If the cursor color is the
1956 same as the background, use the face forground as cursor.
1958 2010-12-13 Eli Zaretskii <eliz@gnu.org>
1960 * fileio.c (Fexpand_file_name): Doc fix. (Bug#7617)
1962 2010-12-13 Eli Zaretskii <eliz@gnu.org>
1964 * xdisp.c (string_pos_nchars_ahead, c_string_pos)
1965 (face_before_or_after_it_pos, next_element_from_string)
1966 (next_element_from_c_string, produce_stretch_glyph): Remove unused
1967 calculations of maximum string length before calling
1968 string_char_and_length and STRING_CHAR_AND_LENGTH.
1969 (string_char_and_length): Update commentary: MAXLEN is no longer
1972 2010-12-13 Jan Djärv <jan.h.d@swipnet.se>
1974 * keyboard.c (kbd_buffer_get_event): Construct SAVE_SESSION_EVENT
1975 as (Qsave_session arg).
1977 * xsmfns.c (smc_interact_CB): Set arg to Qnil.
1978 (smc_die_CB): Make an event with arg Qt.
1979 (Fhandle_save_session): If event has Qt as argument,
1980 call Fkill_emacs (Bug#7552).
1982 2010-12-13 Chong Yidong <cyd@stupidchicken.com>
1984 * buffer.c (transient-mark-mode): Doc fix (Bug#7465).
1986 2010-12-13 Jan Djärv <jan.h.d@swipnet.se>
1988 * xsmfns.c (smc_die_CB): Call Fkill_emacs (Bug#7552).
1990 2010-12-13 Chong Yidong <cyd@stupidchicken.com>
1992 * dispextern.h (struct it): New member overlay_strings_charpos.
1994 * xdisp.c (next_overlay_string, load_overlay_strings): Record the
1995 charpos where we computed n_overlay_strings.
1996 (next_overlay_string): Load overlay strings at recorded position,
1997 which may not be the same as the iterator's charpos (Bug#7016).
1999 2010-12-13 Chong Yidong <cyd@stupidchicken.com>
2001 * xdisp.c (try_scrolling): Avoid infloop if the first line is
2002 obscured due to a vscroll (Bug#7537).
2004 2010-12-13 Jan Djärv <jhd@zeplinf.localdomain>
2006 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
2008 * nsterm.m (x_set_window_size, windowWillResize, initFrameFromEmacs):
2009 Use FRAME_TOOLBAR_HEIGHT.
2010 (x_set_offset): Handle XNegative and YNegative in
2011 f->size_hint_flags (Bug#7510).
2013 2010-12-11 Eli Zaretskii <eliz@gnu.org>
2015 * w32fns.c (Fx_show_tip): Call try_window with last argument
2016 TRY_WINDOW_IGNORE_FONTS_CHANGE. Delete the TODO ifdef: problem
2017 solved. Round up the tip height to an integral multiple of the
2018 frame's line height. Add FRAME_COLUMN_WIDTH to the tip width.
2021 2010-12-08 Glenn Morris <rgm@gnu.org>
2023 * fileio.c (Fverify_visited_file_modtime): Default to current buffer.
2025 2010-12-06 Lars Magne Ingebrigtsen <larsi@gnus.org>
2027 * xml.c (parse_region): Ignore blank HTML nodes.
2028 (make_dom): Return CDATA sections (like <style>foo</style>) as
2031 2010-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
2033 * lread.c (read1): Allow newstyle unquote outside of backquote.
2034 Disallow old-style backquotes inside new-style backquotes.
2035 Don't count unquotes to figure out when we're "syntactically inside
2036 but semantically outside of a backquote" any more.
2037 Extend the restriction no-unescaped-commas-and-backquotes-in-symbols
2040 2010-12-05 Chong Yidong <cyd@stupidchicken.com>
2042 * process.c: Remove checks for HAVE_SYS_IOCTL_H (Bug#7484).
2044 2010-12-04 Andreas Schwab <schwab@linux-m68k.org>
2046 * Makefile.in (M_FILE): Substitute @M_FILE@ instead of @machfile@.
2047 (S_FILE): Substitute @S_FILE@ instead of @opsysfile@.
2048 * m/arm.h, m/sh3.h, m/xtensa.h: Remove files.
2050 2010-12-03 Andreas Schwab <schwab@linux-m68k.org>
2052 * lisp.h (union Lisp_Object): Explicitly declare signedness of
2054 (XINT): Remove variant for EXPLICIT_SIGN_EXTEND.
2055 * m/alpha.h (EXPLICIT_SIGN_EXTEND): Don't define.
2056 * m/amdx86-64.h (EXPLICIT_SIGN_EXTEND): Likewise.
2057 * m/ia64.h (EXPLICIT_SIGN_EXTEND): Likewise.
2058 * m/ibms390.h (EXPLICIT_SIGN_EXTEND): Likewise.
2059 * m/ibms390x.h (EXPLICIT_SIGN_EXTEND): Likewise.
2060 * m/iris4d.h (EXPLICIT_SIGN_EXTEND): Likewise.
2061 * m/m68k.h (EXPLICIT_SIGN_EXTEND): Likewise.
2062 * m/sparc.h (EXPLICIT_SIGN_EXTEND): Likewise.
2063 * m/template.h (EXPLICIT_SIGN_EXTEND): Likewise.
2064 * m/hp800.h: Remove file.
2065 * m/mips.h: Remove file.
2067 2010-12-03 Jan Djärv <jan.h.d@swipnet.se>
2069 * nsterm.m (ns_dumpglyphs_image): If drawing cursor, fill background
2070 with cursor color and draw a rectangle around the image (Bug#7412).
2072 2010-12-03 Andreas Schwab <schwab@linux-m68k.org>
2074 * frame.c (x_set_font): Remove unused variable.
2076 2010-12-02 Jan Djärv <jan.h.d@swipnet.se>
2078 * nsmenu.m (update_frame_tool_bar): Remove NSLog on invalid image.
2080 * nsterm.m (ns_draw_glyph_string): Switch fore- and background if
2081 drawing text under filled box cursor (Bug#7479).
2083 2010-11-27 Kenichi Handa <handa@m17n.org>
2085 * charset.c (emacs_mule_charset): Make it an array of charset ID;
2087 (Fdefine_charset_internal): Adjust for the above change.
2088 (init_charset_once): Likewise.
2090 * charset.h (emacs_mule_charset): Adjust the prototype.
2091 Delete duplicated extern.
2093 * coding.c (emacs_mule_char): Adjust for the change of
2096 * lread.c (read_emacs_mule_char): Adjust for the change of
2099 2010-11-27 Eli Zaretskii <eliz@gnu.org>
2101 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
2102 of w32api >= 3.15. (Bug#6989) (Bug#7452)
2104 2010-11-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2106 * alloc.c (mark_terminals): Ensure that the image cache is marked
2107 even if the terminal object was marked earlier (Bug#6301).
2109 2010-11-21 Chong Yidong <cyd@stupidchicken.com>
2111 * editfns.c (Fbyte_to_string): Signal an error arg is not a byte.
2113 2010-11-27 Jan Djärv <jan.h.d@swipnet.se>
2115 * gtkutil.c (menubar_map_cb): New function (Bug#7425).
2116 (xg_update_frame_menubar): Connect signal map to menubar_map_cb.
2117 Use 23 as menubar height if 0. (Bug#7425).
2119 2010-11-26 Eli Zaretskii <eliz@gnu.org>
2121 * xdisp.c (set_message_1): Force paragraph direction in echo area
2124 * keyboard.c (make_lispy_position): Put a meaningful value in yret
2125 when the click is on the header or mode line.
2127 2010-11-25 Eli Zaretskii <eliz@gnu.org>
2129 * xdisp.c (set_cursor_from_row): Don't forget to consider the
2130 `cursor' property of the first character in overlay strings.
2131 (Bug#7474) (Bug#7481)
2133 2010-11-24 Jan Djärv <jan.h.d@swipnet.se>
2135 * nsterm.m (NSLeftControlKeyMask, NSLeftCommandKeyMask)
2136 (NSLeftAlternateKeyMask): New defines.
2137 (keyDown): Parse left and right keys separately (Bug#7458).
2138 Compare Left key masks exactly (Bug#7458).
2140 2010-11-23 Eli Zaretskii <eliz@gnu.org>
2142 * intervals.c (temp_set_point_both): Define before calling, to
2145 2010-11-23 Dan Nicolaescu <dann@ics.uci.edu>
2147 * nsmenu.m: Use #include <config.h> instead of "config.h".
2149 * term.c (Qglyphless_char,last_glyphless_glyph_frame)
2150 (last_glyphless_glyph_face_id. last_glyphless_glyph_merged_face_id):
2151 Move declarations ...
2152 * lisp.h (Qglyphless_char,last_glyphless_glyph_frame)
2153 (last_glyphless_glyph_face_id. last_glyphless_glyph_merged_face_id):
2156 * emacs.c (gdb_use_union, gdb_valbits,gdb_gctypebits)
2157 (gdb_data_seg_bits, gdb_array_mark_flag, PVEC_FLAG)
2159 * print.c (print_output_debug_flag):
2160 * lisp.h (debug_print): Mark as EXTERNALLY_VISIBLE.
2161 (safe_debug_print): New declaration.
2165 * sound.c: Include <sys/ioctl.h> unconditionally.
2167 2010-11-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2169 * alloc.c (mark_maybe_object): Return early if given a Lisp
2172 2010-11-21 Ken Brown <kbrown@cornell.edu>
2174 * sheap.c (STATIC_HEAP_SIZE): Revert previous change.
2176 2010-11-21 Jan Djärv <jan.h.d@swipnet.se>
2178 * nsterm.m (ns_right_command_modifier, ns_right_control_modifier):
2180 (NSRightCommandKeyMask, NSRightControlKeyMask): Define (Bug#7458).
2181 (EV_MODIFIERS): Check for NSRightCommandKeyMask and
2182 NSRightControlKeyMask also (Bug#7458).
2183 (keyDown): Ditto (Bug#7458).
2184 (syms_of_nsterm): Defvar ns-right-command-modifier and
2185 ns-right-control-modifier (Bug#7458).
2187 2010-11-21 Dan Nicolaescu <dann@ics.uci.edu>
2189 * sysdep.c (sys_subshell): Remove SET_EMACS_PRIORITY.
2190 * emacs.c (emacs_priority, syms_of_emacs): Remove emacs_priority.
2192 * intervals.h (temp_set_point, temp_set_point_both):
2193 * buffer.h (offset_intervals, copy_intervals): Remove INLINE.
2195 2010-11-20 Ken Brown <kbrown@cornell.edu>
2197 * sheap.c (STATIC_HEAP_SIZE): Increase to 13MB.
2199 2010-11-20 Eli Zaretskii <eliz@gnu.org>
2201 * term.c (produce_glyphless_glyph): Use \uNNNN, \UNNNNNN, or
2202 \xNNNNNN for hex-code display of glyphless characters.
2204 2010-11-20 Jan Djärv <jan.h.d@swipnet.se>
2206 * gtkutil.c (xg_make_tool_item): Take vert_only as argument.
2207 Set important to ! vert_only.
2208 (xg_show_toolbar_item): Don't show label horizontally if
2209 tool item isn't important.
2210 (update_frame_tool_bar): Get TOOL_BAR_ITEM_VERT_ONLY and pass it to
2211 xg_make_tool_item, or update important on existing tool item.
2213 * keyboard.c (QCvert_only): New variable.
2214 (parse_tool_bar_item): Check for QCvert_only.
2215 (syms_of_keyboard): Initialize QCvert_only.
2217 * dispextern.h (tool_bar_item_idx): Add TOOL_BAR_ITEM_VERT_ONLY.
2219 2010-11-20 Eli Zaretskii <eliz@gnu.org>
2221 * msdos.c (dos_rawgetc): Use gen_help_event, instead of doing the
2224 2010-11-20 Andreas Schwab <schwab@linux-m68k.org>
2226 * xfaces.c (lookup_face): Make static.
2227 * dispnew.c (copy_row_except_pointers): Likewise.
2228 * syntax.c (dec_bytepos): Likewise.
2229 (inc_bytepos): Remove.
2230 * dispextern.h (lookup_face): Remove declaration.
2232 2010-11-19 Eli Zaretskii <eliz@gnu.org>
2234 * xdisp.c (set_cursor_from_row): Display cursor after all the
2235 glyphs that come from an overlay. Don't overstep the last glyph
2236 when skipping glyphs from an overlay. (Bug#6687)
2238 2010-11-18 Dan Nicolaescu <dann@ics.uci.edu>
2240 * alloc.c (refill_memory_reserve): Move declaration ...
2241 * lisp.h (refill_memory_reserve): ... here.
2243 * strftime.c (_strftime_copytm): Add declaration.
2245 * callproc.c (syms_of_callproc): Use intern_c_string.
2247 Move declarations from .c files to .h files.
2248 * process.c (timers_run):
2249 * minibuf.c (quit_char):
2250 * lread.c (read_emacs_mule_char):
2251 * keyboard.c (minibuf_level, message_enable_multibyte)
2252 (pending_malloc_warning):
2253 * insdel.c (Vselect_active_regions, Vsaved_region_selection)
2254 (Qonly): Remove declarations.
2255 * lisp.h (pending_malloc_warning, Vsaved_region_selection)
2256 (Vselect_active_regions):
2257 * keyboard.h (timers_run): Add declarations.
2259 * strftime.c (my_strftime_gmtime_r, my_strftime_localtime_r)
2260 (tm_diff): Convert definitions to standard C.
2261 (extra_args_spec_iso): Remove, unused.
2263 2010-11-18 Jan Djärv <jan.h.d@swipnet.se>
2265 * xsettings.c (init_gconf): Check HAVE_G_TYPE_INIT.
2267 * config.in (HAVE_G_TYPE_INIT): New symbol.
2269 2010-11-18 Eli Zaretskii <eliz@gnu.org>
2271 * lread.c (Fload): Mention `load-in-progress' and
2272 `load-file-name'. (Bug#7346)
2274 * keyboard.c (kbd_buffer_nr_stored): Define only ifdef subprocesses.
2275 (kbd_buffer_store_event_hold, kbd_buffer_get_event)
2276 (tty_read_avail_input): Call kbd_buffer_nr_stored only ifdef
2277 subprocesses. Use buffer_free only ifdef subprocesses.
2279 * process.c (init_process) [subprocesses]: Init kbd_is_on_hold in
2280 the subprocesses version, not in the non-subprocesses one.
2282 * Makefile.in: Don't use ## comment, it breaks the MSDOS build.
2284 2010-11-17 Eli Zaretskii <eliz@gnu.org>
2286 * xdisp.c (set_cursor_from_row): Fix cursor positioning in empty
2287 lines on text-mode terminals. (bug#7417)
2289 2010-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
2291 * xterm.c (get_current_wm_state): Rename from get_current_vm_state.
2292 (do_ewmh_fullscreen, x_handle_net_wm_state): Update callers.
2294 2010-11-17 Kenichi Handa <handa@m17n.org>
2296 * coding.c (Fset_terminal_coding_system_internal): Fix previous
2297 change (set charset-ID list instead of charset-symbol list).
2299 2010-11-16 Chong Yidong <cyd@stupidchicken.com>
2301 * keyboard.c (make_lispy_position): For text area clicks, record Y
2302 pixel position relative to the text area, excluding header line.
2303 Also change X and Y to Lisp_Objects, not pointers; don't return
2304 coordinate values via pointers. Pass ON_TEXT_AREA coordinate to
2305 buffer_posn_from_coords counting from the start of the text area.
2306 (Fposn_at_x_y, make_lispy_event): Callers changed.
2308 * window.c (coordinates_in_window): Change X and Y to ints rather
2309 than pointers; don't return coordinates via pointers.
2310 (struct check_window_data): Change X and Y from pointers to ints.
2311 (window_from_coordinates): Remove args WX and WY; don't return
2312 coordinates via pointers.
2313 (Fcoordinates_in_window_p, window_from_coordinates):
2314 (check_window_containing, Fwindow_at): Callers changed.
2315 (window_relative_x_coord): New function.
2317 * window.h (window_from_coordinates, window_relative_x_coord):
2320 * dispnew.c (buffer_posn_from_coords): Assume that X counts from
2321 the start of the text area.
2323 * xdisp.c (remember_mouse_glyph): Change window_from_coordinates
2324 call. Use window_relative_x_coord.
2325 (note_mouse_highlight): Change window_from_coordinates call.
2327 * w32term.c (w32_read_socket):
2328 * msdos.c (dos_rawgetc):
2329 * xterm.c (handle_one_xevent): Likewise.
2331 2010-11-16 Dan Nicolaescu <dann@ics.uci.edu>
2333 * strftime.c (LOCALE_PARAM_DECL): Update for standard C.
2334 (LOCALE_PARAM, LOCALE_PARAM_PROTO): Remove, unused.
2335 (memcpy_lowcase, so_week_days, extra_args_spec, emacs_strftimeu):
2336 Convert definitions to standard C.
2337 * regex.c: Do not include <stdlib.h>, config.h does it.
2339 (xrealloc, init_syntax_once, re_match, regcomp, regexec)
2340 (regerror, regfree): Convert definitions to standard C.
2341 * mktime.c (my_mktime_localtime_r, ydhms_tm_diff, ranged_convert)
2342 (__mktime_internal): Convert definitions to standard C.
2344 2010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
2349 * w32.c: Remove config.h include guards.
2351 * callproc.c (child_setup): Reorder code to simplify #ifdefs.
2354 * process.c: Include <sys/ioctl.h> unconditionally,
2355 keyboard.c already does it.
2357 * keyboard.c (pending_malloc_warning): Add const to match
2358 definition in alloc.c.
2359 (Fset_input_interrupt_mode): Simplify #ifdefs.
2361 2010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
2363 Clean up systty.h macros.
2364 * systty.h (EMACS_GET_TTY_PGRP, EMACS_SET_TTY_PGRP, EMACS_GET_TTY)
2365 (EMACS_SET_TTY): Remove unneeded abstraction, instead inline the
2366 definition in all uses.
2367 (EMACS_TTY_TABS_OK): Remove, it has a single user.
2368 * sysdep.c (discard_tty_input, child_setup_tty)
2369 (init_sys_modes, tabs_safe_p, reset_sys_modes):
2370 * emacs.c (shut_down_emacs):
2371 * callproc.c (child_setup):
2372 * term.c (dissociate_if_controlling_tty): Inline removed macros.
2374 * data.c (sign_extend_temp, sign_extend_lisp_int): Remove, unused.
2376 2010-11-14 Chong Yidong <cyd@stupidchicken.com>
2378 * w32fns.c (Fx_create_frame):
2379 * nsfns.m (Fx_create_frame): Don't check for the cursorColor
2380 resource here; it's now done at startup.
2382 2010-11-14 Jan Djärv <jan.h.d@swipnet.se>
2384 * xterm.c (set_wm_state): Add Qnil to final cons.
2386 * xselect.c (x_send_client_event): Remove unused variables cons and
2389 2010-11-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2391 * keyboard.c (modify_event_symbol) : Add const to array elements of
2393 (lispy_accent_keys, lispy_function_keys, lispy_multimedia_keys)
2394 (lispy_kana_keys, iso_lispy_function_keys, lispy_wheel_names)
2395 (lispy_wheel_names, lispy_drag_n_drop_names, modifier_names):
2396 Add const to array elements.
2397 (scroll_bar_parts): Make static. Fix position of const.
2399 * w32fns.c (lispy_function_keys): Add const to extern.
2401 * w32inevt.c (lispy_function_keys): Likewise.
2403 2010-11-14 Chong Yidong <cyd@stupidchicken.com>
2405 * xfns.c (Fx_create_frame): Don't check for the cursorColor
2406 resource here; it's now done at startup.
2408 2010-11-13 Dan Nicolaescu <dann@ics.uci.edu>
2410 * xmenu.c: Make it clear that ../lwlib/lwlib.h is only needed for Motif.
2412 Fix compilation on Solaris.
2413 * sysdep.c: Do not #include <term.h>.
2414 (tputs): Add declaration, similar to what cm.c does. (Bug#7178)
2416 * s/ms-w32.h (HAVE_TERMIOS_H): Do not undef, not used anymore.
2418 2010-11-13 Jan Djärv <jan.h.d@swipnet.se>
2420 * xterm.c (set_wm_state): Don't put Atom in cons, call
2421 make_fixnum_or_float on them first.
2422 (x_term_init): Initialize Xatom_net_supporting_wm_check and
2423 Xatom_net_supported correctly.
2425 * xselect.c (x_send_client_event): Move CHECK_STRING ...
2426 (Fx_send_client_event): to here.
2428 2010-11-13 Martin Rudalics <rudalics@gmx.at>
2430 * window.c (Fwindow_use_time): New function.
2432 2010-11-13 Eli Zaretskii <eliz@gnu.org>
2434 * xdisp.c (set_cursor_from_row): Fix cursor positioning on
2435 zero-width characters.
2437 * .gdbinit (pgx): Adapt to latest changes in `struct glyph'.
2439 * w32term.c (x_draw_glyphless_glyph_string_foreground): Draw the
2440 box before drawing the glyphs inside it.
2442 * xdisp.c (syms_of_xdisp) <glyphless-char-display>: Doc fix.
2444 * dispextern.h (enum glyphless_display_method):
2445 Rename GLYPHLESS_DISPLAY_HEXA_CODE to GLYPHLESS_DISPLAY_HEX_CODE.
2448 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
2450 (produce_glyphless_glyph): Enclose "U+nnnn" and "empty box"
2451 whitespace in "[]", to simulate a box. Don't use uninitialized
2454 2010-11-11 Julien Danjou <julien@danjou.info>
2456 * xsettings.c (init_xsettings): Use already fetch atoms.
2458 * xsmfns.c (create_client_leader_window): Use SM_CLIENT_ID atom
2461 * xselect.c (Fx_send_client_event): Split and create
2462 x_send_client_event.
2464 * lisp.h: Do not EXFUN Fx_send_client_event.
2466 * xterm.c (x_set_frame_alpha): Use _NET_WM_WINDOW_OPACITY atom
2468 (wm_supports): Use atoms from dpyinfo.
2469 (do_ewmh_fullscreen): Use atoms from dpyinfo.
2470 (x_ewmh_activate_frame): Use atoms from dpyinfo.
2471 (xembed_set_info): Use atoms from dpyinfo.
2472 (x_term_init): Fetch _XEMBED_INFO, _NET_SUPPORTED,
2473 _NET_SUPPORTING_WM_CHECK, _NET_WM_WINDOW_OPACITY and
2474 _NET_ACTIVE_WINDOW, XSETTINGS atoms.
2475 Get all atoms in one round-trip.
2476 (set_wm_state): Use x_send_client_event rather than
2477 Fx_send_client_event, using Atom directly.
2478 (x_ewmh_activate_frame): Ditto.
2479 (x_set_sticky): Pass atoms to set_wm_state.
2480 (do_ewmh_fullscreen): Ditto.
2483 * xterm.h (x_display_info): Add Xatom_net_supported,
2484 Xatom_net_supporting_wm_check, Xatom_net_active_window,
2485 Xatom_net_wm_window_opacity, Xatom_XEMBED_INFO, SM_CLIENT_ID.
2487 * xfns.c (Fx_show_tip): Fix typo in docstring.
2489 2010-11-11 Stefan Monnier <monnier@iro.umontreal.ca>
2491 * cmds.c (Fself_insert_command): Don't call XFASTINT without checking
2494 2010-11-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2496 * font.c (font_filter_properties): Add const to array elements of
2499 * font.h (font_filter_properties): Likewise.
2501 * ftfont.c (ftfont_booleans, ftfont_non_booleans): Add const to array
2504 * w32font.c (w32font_booleans, w32font_non_booleans): Likewise.
2506 2010-11-10 Michael Albinus <michael.albinus@gmx.de>
2508 * dbusbind.c (QCdbus_type_unix_fd): New Lisp object.
2509 (XD_BASIC_DBUS_TYPE, xd_symbol_to_dbus_type, xd_signature)
2510 (xd_append_arg, xd_retrieve_arg): Support DBUS_TYPE_UNIX_FD.
2511 (Fdbus_call_method): Add DBUS_TYPE_UNIX_FD type mapping to doc string.
2512 (syms_of_dbusbind): Initialize QCdbus_type_unix_fd).
2514 2010-11-10 Glenn Morris <rgm@gnu.org>
2516 * emacs.c (syms_of_emacs) <system-type>: Doc fix.
2518 2010-11-09 Eli Zaretskii <eliz@gnu.org>
2520 * xfns.c (x_real_positions): Fix declaration-after-statement problem.
2522 2010-11-09 Chong Yidong <cyd@stupidchicken.com>
2524 * image.c (free_image): Don't garbage the frame here, since this
2525 function can be called while redisplaying (Bug#7210).
2526 (uncache_image): Garbage the frame here (Bug#6426).
2528 2010-11-09 Jan Djärv <jan.h.d@swipnet.se>
2530 * xfns.c (x_real_positions): Only use _NET_FRAME_EXTENTS if our
2531 parent is the root window. Check this after traversing window tree.
2533 * xterm.c (x_term_init): Initialize Xatom_net_frame_extents.
2535 * xterm.h (struct x_display_info): Xatom_net_frame_extents is new.
2537 * xfns.c (x_real_positions): Try to get _NET_FRAME_EXTENTS first
2538 before traversing window tree (Bug#5721).
2540 2010-11-07 Jan Djärv <jan.h.d@swipnet.se>
2542 * xfns.c (set_machine_and_pid_properties): Let X set WM_CLIENT_MACHINE.
2544 * xdisp.c (note_mode_line_or_margin_highlight):
2545 Initialize Cursor to No_Cursor for HAVE_WINDOW_SYSTEM also.
2547 2010-11-06 Eli Zaretskii <eliz@gnu.org>
2549 * xfns.c (Fx_show_tip): If any of the tool-tip text lines is R2L,
2550 adjust width of tool-tip frame to the width of text, excluding the
2551 stretch glyph at the beginning of R2L glyph rows.
2553 * w32fns.c (Fx_show_tip): Likewise.
2555 2010-11-06 Jan Djärv <jan.h.d@swipnet.se>
2557 * nsfont.m: Include termchar for new mouse-highlight.
2558 (nsfont_draw): Use MOUSE_HL_INFO.
2560 2010-11-05 Eli Zaretskii <eliz@gnu.org>
2562 Unify mouse-highlight code for all GUI and TTY sessions.
2564 * term.c: Remove static mouse_face_* variables. All users
2566 (term_show_mouse_face, term_clear_mouse_face)
2567 (fast_find_position, term_mouse_highlight): Functions deleted.
2568 (tty_draw_row_with_mouse_face): New function.
2569 (term_mouse_movement): Call note_mouse_highlight instead of
2570 term_mouse_highlight.
2572 * nsterm.m (ns_update_window_begin, ns_update_window_end)
2573 (ns_update_end, x_destroy_window, ns_frame_up_to_date)
2574 (ns_dumpglyphs_box_or_relief, ns_maybe_dumpglyphs_background)
2575 (ns_dumpglyphs_image, ns_dumpglyphs_stretch)
2576 (ns_initialize_display_info, keyDown, mouseMoved, mouseExited):
2577 Replace Display_Info with Mouse_HLInfo everywhere where
2578 mouse_face_* members were accessed for mouse highlight purposes.
2580 * xterm.c (x_update_window_begin, x_update_window_end)
2581 (x_update_end, XTframe_up_to_date, x_set_mouse_face_gc)
2582 (handle_one_xevent, x_free_frame_resources, x_term_init):
2583 Replace Display_Info with Mouse_HLInfo everywhere where mouse_face_*
2584 members were accessed for mouse highlight purposes.
2586 * w32term.c (x_update_window_begin, x_update_window_end)
2587 (x_update_end, w32_read_socket, x_free_frame_resources)
2588 (w32_initialize_display_info): Replace Display_Info with
2589 Mouse_HLInfo everywhere where mouse_face_* members were accessed
2590 for mouse highlight purposes.
2592 * xdisp.c (show_mouse_face, note_mode_line_or_margin_highlight)
2593 (note_mouse_highlight) [HAVE_WINDOW_SYSTEM]: Don't run GUI code
2594 unless the frame is on a window-system.
2595 (get_tool_bar_item, handle_tool_bar_click)
2596 (note_tool_bar_highlight, draw_glyphs, erase_phys_cursor)
2597 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
2598 (note_mode_line_or_margin_highlight, note_mouse_highlight)
2599 (x_clear_window_mouse_face, cancel_mouse_face, expose_frame):
2600 Replace Display_Info with Mouse_HLInfo everywhere where
2601 mouse_face_* members were accessed for mouse highlight purposes.
2602 (coords_in_mouse_face_p): Move prototype out of the
2603 HAVE_WINDOW_SYSTEM conditional.
2604 (x_y_to_hpos_vpos, frame_to_window_pixel_xy): Move out of the
2605 HAVE_WINDOW_SYSTEM block.
2606 (try_window_id) [HAVE_GPM || MSDOS]:
2607 Call x_clear_window_mouse_face.
2608 (draw_row_with_mouse_face): Implementation for HAVE_WINDOW_SYSTEM
2609 systems. Call tty_draw_row_with_mouse_face for TTY systems.
2610 (show_mouse_face): Call draw_row_with_mouse_face, instead of
2611 calling draw_glyphs directly.
2612 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
2613 (cursor_in_mouse_face_p, rows_from_pos_range)
2614 (mouse_face_from_buffer_pos, mouse_face_from_string_pos)
2615 (note_mode_line_or_margin_highlight, note_mouse_highlight)
2616 (x_clear_window_mouse_face, cancel_mouse_face): Move out of the
2617 HAVE_WINDOW_SYSTEM block. Ifdef away window-system specific
2619 (note_mouse_highlight): Call popup_activated for MSDOS as well.
2620 Clear mouse highlight if pointer is over glyphs whose OBJECT is an
2622 (mouse_face_from_buffer_pos): Add parentheses around && within ||.
2623 (x_consider_frame_title, tool_bar_lines_needed):
2624 Move prototypes to HAVE_WINDOW_SYSTEM-only part.
2625 (get_window_cursor_type): Move inside a HAVE_WINDOW_SYSTEM-only
2626 part. Remove "#ifdef HAVE_WINDOW_SYSTEM" from body of function.
2627 (null_glyph_slice): Move declaration into HAVE_WINDOW_SYSTEM-only
2630 * dispnew.c (mirror_make_current): Set Y coordinate of the
2631 mode-line and header-line rows.
2632 (init_display): Setup initial frame's output_data for text
2635 * xmenu.c (popup_activated): Don't define on MSDOS, which now has
2636 its own definition on msdos.c.
2638 * msdos.c (show_mouse_face, clear_mouse_face)
2639 (fast_find_position, IT_note_mode_line_highlight)
2640 (IT_note_mouse_highlight): Functions deleted.
2641 (IT_frame_up_to_date, dos_rawgetc): Call note_mouse_highlight
2642 instead of IT_note_mouse_highlight.
2643 (draw_row_with_mouse_face, popup_activated): New functions.
2644 (dos_set_window_size, draw_row_with_mouse_face, IT_update_begin)
2645 (IT_update_end, IT_frame_up_to_date, internal_terminal_init)
2646 (dos_rawgetc): Replace Display_Info with Mouse_HLInfo everywhere
2647 where mouse_face_* members were accessed for mouse highlight
2650 * msdos.h (initialize_msdos_display): Add prototype.
2652 * frame.h (MOUSE_HL_INFO): New macro.
2654 * lisp.h (Mouse_HLInfo): New data type.
2656 * xterm.h (struct x_display_info):
2657 * w32term.h (struct w32_display_info):
2658 * nsterm.h (struct ns_display_info):
2659 * termchar.h (struct tty_display_info): Use it instead of
2660 mouse_face_* members.
2662 * dispextern.h (show_mouse_face, clear_mouse_face): Update type of
2664 (frame_to_window_pixel_xy, note_mouse_highlight)
2665 (x_clear_window_mouse_face, cancel_mouse_face, clear_mouse_face)
2666 (show_mouse_face, cursor_in_mouse_face_p): Move prototypes out of
2667 HAVE_WINDOW_SYSTEM conditional.
2668 (draw_row_with_mouse_face): Declare prototype.
2669 (tty_draw_row_with_mouse_face): Declare prototype.
2671 2010-11-05 Eli Zaretskii <eliz@gnu.org>
2673 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
2674 Remove unused variables.
2676 2010-11-05 Adrian Robert <Adrian.B.Robert@gmail.com>
2678 * nsterm.m (EmacsView-mouseExited:): Correct error in conditional
2679 logic pointed out by Eli Zaretskii.
2681 2010-11-04 Lars Magne Ingebrigtsen <larsi@gnus.org>
2683 * coding.c (coding-category-list): Refer to set-coding-system-priority
2684 instead of the obsolete set-coding-priority in the doc string.
2687 2010-11-04 Adrian Robert <Adrian.B.Robert@gmail.com>
2689 * nsfont.m (nsfont_draw): Correct previous patch to return
2691 * nsimage.m (EmacsImage-setXBMColor:): Correct previous patch:
2692 don't change the method signature, change the return.
2694 2010-11-04 Ismail Donmez <ismail@namtrac.org> (tiny change)
2696 * nsfont.m (nsfont_draw)
2697 * nsimage.m (EmacsImage-setXBMColor:)
2698 * nsterm.m (EmacsView-performDragOperation:): Correct empty return.
2700 2010-11-03 Julien Danjou <julien@danjou.info>
2702 * image.c (gif_load): Add support for transparency and specified
2705 2010-11-01 Kenichi Handa <handa@m17n.org>
2707 * dispextern.h (lookup_glyphless_char_display): Extern it.
2709 * termhooks.h (struct terminal): New member charset_list.
2711 * coding.c (Fset_terminal_coding_system_internal): Set the
2712 `charset_list' member of struct terminal.
2714 * term.c (produce_glyphs): Handle the case it->what == IT_GLYPHLESS.
2715 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
2717 * xdisp.c (lookup_glyphless_char_display): Make it non-static.
2718 (lookup_glyphless_char_display): Set it->what at the end.
2719 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
2720 (last_glyphless_glyph_merged_face_id): Make them non-static.
2722 * w32term.c (x_draw_glyphless_glyph_string_foreground):
2723 Fix the arg with_background for font->driver->draw.
2725 2010-11-01 Kenichi Handa <handa@m17n.org>
2727 * w32gui.h (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
2728 Surround chp by parentheses.
2730 2010-11-01 Kenichi Handa <handa@m17n.org>
2732 Implement various display methods for glyphless characters.
2734 * xdisp.c (Qglyphless_char, Vglyphless_char_display)
2735 (Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space)
2736 (Qzero_width): New variables.
2737 (THIN_SPACE_WIDTH): New macro.
2738 (lookup_glyphless_char_display): New funciton.
2739 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
2740 (last_glyphless_glyph_merged_face_id): New variables.
2741 (get_next_display_element): Check glyphless characters.
2742 (redisplay_internal): Initialize last_glyphless_glyph_frame and
2743 last_glyphless_glyph_face_id.
2744 (fill_glyphless_glyph_string): New function.
2745 (BUILD_GLYPHLESS_GLYPH_STRING): New macro.
2746 (BUILD_GLYPH_STRINGS): Handle the case GLYPHLESS_GLYPH.
2747 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
2748 (x_produce_glyphs): If a suitable font is not found, produce a
2749 glyphless glyph. Handle the case it->what == IT_GLYPHLESS.
2750 (syms_of_xdisp): Intern and staticpro Qglyphless_char,
2751 Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space, and
2753 (Vglyphless_char_display): Declare it as a Lisp variable.
2755 * dispextern.h (enum glyph_type): Add GLYPHLESS_GLYPH.
2756 (struct glyph): Change the size of the member "type" to 3.
2757 Add glyphless to the union slice and u.
2758 (enum display_element_type): Add IT_GLYPHLESS.
2759 (enum glyphless_display_method): New enum.
2760 (struct it): New member glyphless_method.
2761 (Vglyphless_char_display): Extern it.
2763 * xterm.c (x_draw_glyphless_glyph_string_foreground): New function.
2764 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
2766 * w32term.c (x_draw_glyphless_glyph_string_foreground): New function.
2767 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
2769 * nsterm.m (ns_draw_glyph_string): Handle the case
2770 GLYPHLESS_GLYPH (the detail is not yet implemented).
2772 2010-10-31 Glenn Morris <rgm@gnu.org>
2774 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Fix merge, maybe.
2776 * frame.c (syms_of_frame) <tool-bar-mode>:
2777 Default to nil if !HAVE_WINDOW_SYSTEM. (Bug#7299)
2779 2010-10-31 Chong Yidong <cyd@stupidchicken.com>
2781 * xterm.c (x_connection_closed): Print informative error message
2782 when aborting on GTK. This requires using shut_down_emacs
2783 directly instead of Fkill_emacs.
2785 2010-10-29 Eli Zaretskii <eliz@gnu.org>
2787 * emacs.c (main): Call syms_of_filelock unconditionally.
2789 * filelock.c (syms_of_filelock): Move out of #ifdef CLASH_DETECTION
2790 clause, but keep part of it conditioned on CLASH_DETECTION.
2792 2010-10-29 Glenn Morris <rgm@gnu.org>
2794 * nsfns.m (Fx-display-save-under, Fx-open-connection)
2795 (Fxw-color-defined-p, Fxw-display-color-p, Fx-show-tip):
2796 * w32fns.c (Fxw_color_defined_p, Fx_open_connection):
2797 * xfns.c (Fxw_color_defined_p, Fx_open_connection):
2798 Sync docs between X, W32, NS.
2800 * buffer.c (syms_of_buffer) <abbrev-mode, transient-mark-mode>:
2801 * frame.c (syms_of_frame) <tool-bar-mode>: Move doc here from Lisp.
2803 2010-10-26 Juanma Barranquero <lekktu@gmail.com>
2805 * eval.c (init_eval_once): Set max_lisp_eval_depth to 600;
2806 otherwise, bootstrapping on Windows fails to compile macroexp.el.
2808 2010-10-26 Eli Zaretskii <eliz@gnu.org>
2810 * cmds.c (internal_self_insert): Don't insert if argument N is
2811 zero or negative. (Bug#7281)
2813 2010-10-26 Jan Djärv <jan.h.d@swipnet.se>
2815 * gtkutil.c (qttip_cb): Set title to empty for ATK (Bug#7278).
2817 2010-10-25 Glenn Morris <rgm@gnu.org>
2819 * Makefile.in (SOME_MACHINE_LISP): Remove easymenu.elc.
2821 2010-10-24 Glenn Morris <rgm@gnu.org>
2823 * w32fns.c (Fx_synchronize, Fx_change_window_property)
2824 (Fx_window_property, Fx_file_dialog):
2825 * xfns.c (Fx_synchronize, Fx_change_window_property)
2826 (Fx_window_property, Fx_file_dialog): Sync docs between w32 and X.
2828 2010-10-24 Chong Yidong <cyd@stupidchicken.com>
2830 * xterm.c (x_connection_closed): Kill Emacs unconditionally.
2832 2010-10-24 Eli Zaretskii <eliz@gnu.org>
2834 * frame.c (Fframep, Fwindow_system): Deprecate use as a predicate.
2836 * dispnew.c (syms_of_display) <initial-window-system, window-system>:
2837 Deprecate use as a boolean flag.
2839 2010-10-24 Jim Meyering <jim@meyering.net>
2841 * emacs.c (argmatch): Don't treat "--" as "--chdir".
2843 2010-10-24 Glenn Morris <rgm@gnu.org>
2845 * w16select.c (syms_of_win16select) <selection-coding-system>:
2846 <next-selection-coding-system>:
2847 * w32select.c (syms_of_w32select) <selection-coding-system>:
2848 <next-selection-coding-system>:
2849 Sync docs with select.el.
2851 * xfaces.c (syms_of_xfaces) <tty-defined-color-alist>: Sync doc with
2854 * w32term.c (syms_of_w32term) <x-use-underline-position-properties>:
2855 Sync doc with the xterm.c version.
2857 * w32term.c (syms_of_w32term) <x-toolkit-scroll-bars>:
2858 * xterm.c (syms_of_xterm) <x-toolkit-scroll-bars>: Sync docs.
2860 2010-10-23 Glenn Morris <rgm@gnu.org>
2862 * buffer.c (syms_of_buffer) <cursor-in-non-selected-windows>:
2863 * frame.c (syms_of_frame) <menu-bar-mode>:
2864 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode, display-hourglass>:
2865 <hourglass-delay>: Sync docs with Lisp.
2867 2010-10-23 Eli Zaretskii <eliz@gnu.org>
2869 Implement mouse highlight for bidi-reordered lines.
2871 * xdisp.c (fast_find_string_pos): #ifdef away, not used anymore.
2872 (mouse_face_from_string_pos): New function, replaces
2873 fast_find_string_pos.
2874 (note_mouse_highlight): Call it instead of fast_find_string_pos.
2875 (note_mode_line_or_margin_highlight): Support bidi-reordered
2876 strings and R2L glyph rows. Fix comments.
2877 (note_mouse_highlight): When bidi reordering is turned on in a
2878 buffer, call next-single-property-change and
2879 previous-single-property-change with last argument nil.
2880 Clear mouse highlight when mouse pointer is in a R2L row on the stretch
2881 glyph that stands for no text beyond the line end.
2882 (row_containing_pos): Don't return too early when CHARPOS is in a
2883 bidi-reordered continued line. Return immediately when the first
2884 hit is found in a line that is not continued, or when an exact
2885 match for CHARPOS is found.
2886 (rows_from_pos_range): New function.
2887 (mouse_face_from_buffer_pos): Use it instead of calling
2888 row_containing_pos for START_CHARPOS and END_CHARPOS. Rewrite the
2889 function to support mouse highlight in bidi-reordered lines and
2890 not to assume that START_CHARPOS is always in mouse_face_beg_row.
2891 If necessary, swap mouse_face_beg_row and mouse_face_end_row so
2892 that the former is always above the latter or identical to it.
2893 (show_mouse_face): Support drawing highlighted R2L lines.
2894 (coords_in_mouse_face_p): New function, bidi-aware.
2895 (cursor_in_mouse_face_p, note_mouse_highlight, erase_phys_cursor):
2896 Call it instead of comparing with mouse-face members of dpyinfo.
2897 (note_mode_line_or_margin_highlight): Fix confusingly swapped
2898 usage of hpos and vpos.
2900 2010-10-22 Jan Djärv <jan.h.d@swipnet.se>
2902 * xrdb.c: Include keyboard.h for MOTIF.
2904 * xmenu.c: Revert 2010-07-27 change: lwlib.h is needed for
2907 * xfns.c: Include Xm/TextF and Xm/List.
2908 (file_dialog_cb, file_dialog_unmap_cb, clean_up_file_dialog):
2909 Make ANSI prototypes.
2911 2010-10-22 Glenn Morris <rgm@gnu.org>
2913 * Makefile.in (SOME_MACHINE_LISP): Add w32-vars.
2914 Remove ccl and duplicate mouse.
2916 2010-10-21 Chong Yidong <cyd@stupidchicken.com>
2918 * insdel.c (prepare_to_modify_buffer): Don't set
2919 saved-region-selection if modification hooks are disabled.
2921 2010-10-19 Chong Yidong <cyd@stupidchicken.com>
2923 * cmds.c (Fdelete_char): Doc fix.
2925 2010-10-19 Ken Brown <kbrown@cornell.edu>
2927 * s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
2929 2010-10-19 Kenichi Handa <handa@m17n.org>
2931 Fix incorrect font metrics when the same font is opened with
2932 different pixelsizes.
2934 * xftfont.c: Include composite.h.
2935 (xftfont_shape): New function.
2936 (syms_of_xftfont): Set xftfont_driver.shape.
2938 2010-10-18 Julien Danjou <julien@danjou.info>
2940 * frame.c (Fframe_pointer_visible_p):
2941 Add `frame-pointer-visible-p' to get the pointer visibility.
2943 2010-10-18 Lars Magne Ingebrigtsen <larsi@gnus.org>
2945 * gnutls.c (emacs_gnutls_read): Return 0 if we get a
2946 non-"EAGAIN"-like error to signal to Emacs that the socket should
2949 2010-10-15 Eli Zaretskii <eliz@gnu.org>
2951 * unexcoff.c (make_hdr): Fix prototype according to changes in
2952 2010-10-03T13:59:56Z!dann@ics.uci.edu.
2954 * image.c (tiff_load): Cast 3rd argument to avoid compiler warning.
2956 2010-10-15 Tassilo Horn <tassilo@member.fsf.org>
2958 * Makefile.in (really-oldXMenu): Fix typo in variable name that
2959 made building the X menu fail.
2960 (really-oldXMenu): Fix my previous fix.
2962 2010-10-14 Damyan Pepper <damyanp@gmail.com>
2964 Fix handling of font properties on Windows (bug#6303).
2965 * font.c (font_filter_properties): New function, refactored from
2966 ftfont_filter_properties.
2967 * font.h (font_filter_properties): Declare.
2968 * ftfont.c (ftfont_filter_properties): Use font_filter_properties.
2969 * w32font.c (w32font_booleans, w32font_non_booleans): New variables.
2970 (w32font_filter_properties): New function.
2971 (w32font_driver): Add w32font_filter_properties.
2973 2010-10-14 Juanma Barranquero <lekktu@gmail.com>
2975 * font.c (Ffont_variation_glyphs):
2976 * ccl.c (Fccl_execute_on_string): Fix typo in docstring.
2978 2010-10-14 Juanma Barranquero <lekktu@gmail.com>
2980 * w32fns.c (w32_wnd_proc, file_dialog_callback):
2981 * w32font.c (w32_generic_family):
2982 * w32inevt.c (key_event):
2983 * w32menu.c (fill_in_menu):
2984 * w32proc.c (reader_thread, w32_executable_type, compare_env)
2985 (merge_and_sort_env, int_from_hex, enum_locale_fn, enum_codepage_fn):
2986 * w32term.c (w32_read_socket): Make static.
2988 2010-10-13 Juanma Barranquero <lekktu@gmail.com>
2990 * image.c (DEF_IMGLIB_FN): Add argument to adapt to strict
2991 prototypes; all callers changed.
2993 2010-10-13 Juanma Barranquero <lekktu@gmail.com>
2995 * makefile.w32-in (TLIB2): Rename from TLIBW32.
2997 (WIN32OBJ, FONTOBJ): Remove.
2998 (OBJ1): Redistribute object files with OBJ2.
2999 (LIBS, $(TEMACS)): Use TLIB2.
3000 (make-buildobj-CMD, make-buildobj-SH): Use OBJ2.
3001 ($(TLIB2), TAGS, TAGS-LISP, TAGS-gmake): Depend on OBJ2.
3003 2010-10-13 Juanma Barranquero <lekktu@gmail.com>
3005 * emacs.c (Vdynamic_library_alist)
3006 (syms_of_emacs) <dynamic-library-alist>: Move from image.c and rename.
3009 * lisp.h (Vdynamic_library_alist): Declare extern.
3011 * image.c (Vimage_library_alist)
3012 (syms_of_image) <image-library-alist>: Move to emacs.c and rename.
3013 (lookup_image_type): Use Vdynamic_library_alist.
3014 (Finit_image_library): Doc fix.
3016 2010-10-12 Dan Nicolaescu <dann@ics.uci.edu>
3018 * Makefile.in (lispsource, libsrc, etc, oldxmenudir, lwlibdir)
3019 (lispdir): Remove trailing /, update all uses.
3021 2010-10-12 Jan Djärv <jan.h.d@swipnet.se>
3023 * nsterm.m (Qleft): Declare.
3024 (ns_right_alternate_modifier): New variable
3025 (NSRightAlternateKeyMask): New define.
3026 (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
3027 ns_right_alternate_modifier isn't Qleft.
3028 (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
3029 as emacs modifier for NSRightAlternateKeyMask.
3030 (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
3032 2010-10-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
3034 * gnutls.c (emacs_gnutls_write): If we're trying to write before
3035 gnutls is ready, return EAGAIN as the errno.
3037 2010-10-10 Dan Nicolaescu <dann@ics.uci.edu>
3043 * termcap.c: Remove #ifdef emacs / #ifndef emacs code, unused.
3045 * Makefile.in (temacs): Use $(ALL_CFLAGS) on the link line.
3046 (PROFILING_LDFLAGS): Remove, not needed anymore.
3048 * Makefile.in: Use $(...) everywhere instead of ${...}
3049 (CRT_DIR): Move near potential user.
3050 (START_FILE): Move near CRT_DIR, it might use it.
3052 * sysdep.c (LPASS8): Remove, unused.
3053 (emacs_ospeed): Change from being a global to a local in the only
3054 user: init_baud_rate.
3056 2010-10-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
3058 * gnutls.c (syms_of_gnutls): All the bootprops are keywords.
3059 (emacs_gnutls_write): Remove the debuggin fsync call.
3060 (emacs_gnutls_read): Return -1 if we got an error from
3061 gnutls_read. This allows us to actually read lots of data from
3063 (emacs_gnutls_write): Check for GNUTLS_E_AGAIN and not EINTR.
3064 According to the documentation, this is correct, and it seems to
3067 2010-10-09 Chong Yidong <cyd@stupidchicken.com>
3069 * xterm.c (x_draw_relief_rect): Clear corner pixels.
3071 2010-10-08 Michael Albinus <michael.albinus@gmx.de>
3073 * keyboard.c: Revert last change; it was not intended to be
3074 synchronized with the trunk.
3076 2010-10-08 Kenichi Handa <handa@m17n.org>
3078 * coding.c (complement_process_encoding_system): Fix previous change.
3080 2010-10-08 Michael Albinus <michael.albinus@gmx.de>
3082 * dbusbind.c (syms_of_dbusbind): Move putenv call ...
3083 (Fdbus_init_bus): ... here. (Bug#7113)
3085 2010-10-08 Glenn Morris <rgm@gnu.org>
3087 * buffer.c (before-change-functions, after-change-functions):
3088 Three-year overdue doc fix following 2007-08-13 change.
3090 2010-10-08 Kenichi Handa <handa@m17n.org>
3092 * coding.c (coding_inherit_eol_type): If parent doesn't specify
3093 eol-format, inherit from the system's default.
3094 (complement_process_encoding_system): Make a new coding system
3095 inherit the original eol-format.
3097 2010-10-08 Kenichi Handa <handa@m17n.org>
3099 * coding.c (complement_process_encoding_system): New function.
3101 * coding.h (complement_process_encoding_system): Extern it.
3103 * callproc.c (Fcall_process): Complement the coding system for
3105 (Fcall_process_region): Complement the coding system for encoding
3106 the input to the process.
3108 * process.c (Fstart_process): Complement the coding system for
3110 (send_process): Complement the coding system for encoding what
3111 sent to the process.
3113 2010-10-08 Kenichi Handa <handa@m17n.org>
3115 * xfont.c (xfont_open): Fix setting of font->average_width from
3116 :avgwidth property (Bug#7123).
3118 2010-10-08 Michael Albinus <michael.albinus@gmx.de>
3120 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
3123 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
3124 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
3125 has not defined SIGIO.
3127 2010-10-08 Chong Yidong <cyd@stupidchicken.com>
3129 * xterm.c (x_draw_relief_rect): If box width is larger than 1,
3130 draw the outermost line using the black relief, for legibility.
3131 Omit drawing the four corner pixels.
3133 2010-10-04 Chong Yidong <cyd@stupidchicken.com>
3135 * keyboard.c (echo_prompt): Function moved into read_key_sequence.
3136 (read_key_sequence): Inline echo_prompt.
3137 (echo_dash): Add a dash only if key is continued (Bug#7137).
3139 2010-10-04 Dan Nicolaescu <dann@ics.uci.edu>
3141 Remove O_RDONLY, O_WRONLY definitions, not needed.
3148 * termcap.c: Remove O_RDONLY O_WRONLY definitions.
3150 2010-10-03 Teodor Zlatanov <tzz@lifelogs.com>
3152 * gnutls.h (GNUTLS_LOG2): Convenience macro.
3154 * gnutls.c: Add property list symbol holders.
3155 (emacs_gnutls_handshake): Clarify how sockets are passed to
3157 (gnutls_log_function2): Convenience function using GNUTLS_LOG2.
3158 (Fgnutls_boot): Get all parameters from a plist. Require trustfiles
3159 and keyfiles to be a list of file names. Default to "NORMAL" for
3160 the priority string. Improve logging.
3162 2010-10-03 Glenn Morris <rgm@gnu.org>
3164 * fileio.c (Vdirectory_sep_char): Remove.
3166 2010-10-03 Dan Nicolaescu <dann@ics.uci.edu>
3168 * termhooks.h: Remove #ifdef CONSP.
3170 * xterm.c (NO_INLINE, noinline): Move definitions to ../configure.in.
3172 Include <fcntl.h> unconditionally.
3181 * alloc.c: Remove include guards for <fcntl.h>, process.c already
3184 * process.c: Do not include <sys/wait.h>, syswait.h does it.
3186 * sysdep.c (flush_pending_output): Remove code, does not do
3187 anything on any platform.
3190 * sysdep.c (select_alarm, sys_select, read_input_waiting):
3191 Remove select emulation, all systems support select.
3192 (set_exclusive_use): Remove, the only user is in an #if 0 block.
3193 * process.c (create_process): Remove #if 0 code.
3195 Remove unused arguments for unexec.
3196 The third one is never used, and the last two are always passed as zero.
3197 * emacs.c (unexec): Add declaration.
3198 (Fdump_emacs): Only pass the first two arguments to unexec.
3200 * unexw32.c (unexec):
3201 * unexsol.c (unexec):
3202 * unexhp9k800.c (unexec):
3203 * unexcw.c (unexec): Remove the last 3 arguments, unused.
3204 * unexelf.c (unexec): Remove the last 3 arguments, unused.
3205 (find_section): Use const.
3206 * unexmacosx.c (unexec): Remove the last 3 arguments, unused.
3207 (unexec_error): Declare it NO_RETURN.
3208 * unexcoff.c (make_hdr): Assume bss_start is always zero, remove
3209 it as an argument, remove data_start and entry_address arguments, unused.
3210 (unexec): Remove bss_start, data_start and
3211 entry_address arguments.
3212 * unexaix.c (make_hdr): Assume bss_start is always zero, remove
3213 it as an argument, remove data_start and entry_address arguments, unused.
3214 (unexec): Remove bss_start, data_start and
3215 entry_address arguments.
3217 2010-10-03 Juanma Barranquero <lekktu@gmail.com>
3219 * makefile.w32-in (TAGS, TAGS-LISP, TAGS-gmake): Add $(FONTOBJ).
3221 * gnutls.c (emacs_gnutls_handshake, gnutls_make_error)
3222 (gnutls_emacs_global_init, gnutls_emacs_global_deinit): Make static.
3223 (Fgnutls_get_initstage, Fgnutls_deinit, Fgnutls_boot, Fgnutls_bye):
3224 Fix typos in docstrings.
3225 (Fgnutls_error_fatalp, Fgnutls_error_string): Doc fixes.
3226 (Fgnutls_errorp): Doc fix; use ERR for the argument name.
3228 2010-10-03 Chong Yidong <cyd@stupidchicken.com>
3230 * keyboard.c (command_loop_1): Make sure the mark is really alive
3231 before using it (Bug#7044).
3233 2010-10-02 Juanma Barranquero <lekktu@gmail.com>
3235 * makefile.w32-in (tags): Rename target to full-tags.
3237 2010-10-02 Eli Zaretskii <eliz@gnu.org>
3239 * emacs.c (main): Remove !WINDOWSNT conditional.
3240 (Fkill_emacs): Don't mention exemption on MS-Windows.
3242 2010-10-02 Glenn Morris <rgm@gnu.org>
3244 * character.c (Fchar_bytes): Remove obsolete function.
3245 (syms_of_character): Remove Schar_bytes.
3247 * emacs.c (fatal_error_signal): Also run Fkill_emacs on SIGINT.
3248 (main) [!WINDOWSNT]: Handle SIGINT with fatal_error_signal
3250 (Fkill_emacs): Doc fix. Also run the hook in batch mode.
3251 (kill-emacs-hook): Doc fix.
3253 2010-10-02 Lars Magne Ingebrigtsen <larsi@gnus.org>
3255 * xml.c (Flibxml_parse_xml_region, Flibxml_parse_html_region)
3256 (parse_region): Rework to take regions instead of strings, and
3257 renamed to reflect that these are the libxml functions.
3259 2010-10-01 Eli Zaretskii <eliz@gnu.org>
3261 * term.c (init_tty) [DOS_NT]: Don't call Wcm_clear after setting
3262 screen dimensions in tty->Wcm.
3264 * xdisp.c (set_cursor_from_row): When the row is truncated and
3265 point is outside the range of displayed characters, position the
3266 cursor inside the scroll margin. (Bug#6349)
3268 2010-10-01 Dan Nicolaescu <dann@ics.uci.edu>
3270 Do not include stdlib.h and string.h, config.h does it.
3292 * charset.c: Do not include stdlib.h and string.h, config.h does it.
3294 * callproc.c (SIGCHLD): Remove conditional definition, syssignal.h
3297 * process.c: Move #include <pty.h> earlier.
3298 (SIGCHLD): Remove conditional definition, syssignal.h defines it.
3299 (pty_name): Move definition later.
3301 * nsselect.m (syms_of_nsselect):
3302 * nsmenu.m (syms_of_nsmenu):
3303 * nsfns.m (syms_of_nsfns):
3304 * msdos.c (syms_of_msdos):
3306 * image.c (syms_of_image):
3307 * charset.c (syms_of_charset): Use intern_c_string instead of intern.
3309 * point.h: Remove, unused.
3311 2010-10-01 Eli Zaretskii <eliz@gnu.org>
3313 * makefile.w32-in (TAGS, frc, TAGS-LISP, ../nt/TAGS, tags)
3314 (TAGS-gmake, TAGS-nmake, TAGS-LISP-gmake, TAGS-LISP-nmake)
3315 (nt-TAGS-gmake, nt-TAGS-nmake): New targets.
3317 2010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
3319 * xml.c (parse_string): Use const.
3321 2010-09-30 Lars Magne Ingebrigtsen <larsi@gnus.org>
3323 * eval.c (Fbacktrace): Don't overwrite print-level on exit.
3324 Also only override Vprint_level if it isn't already bound, and increase
3325 the level to 8 to produce more useful backtraces for bug reports.
3327 2010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
3329 * Makefile.in: ecrt0.c does not exist anymore, do not mention it.
3331 2010-09-30 Juanma Barranquero <lekktu@gmail.com>
3333 * w32console.c (vga_stdcolor_name): Remove unused function;
3334 presumed dead after 2007-11-30T13:57:21Z!jasonr@gnu.org.
3336 2010-09-29 Lars Magne Ingebrigtsen <larsi@gnus.org>
3338 * gnutls.c (emacs_gnutls_handshake): Made into internal function.
3339 (Fgnutls_boot): Start the handshake.
3340 (emacs_gnutls_read): Perform the handshake from the reader loop.
3341 (Fgnutls_boot): Remove some debugging messages.
3342 Change indentation throughout to use the Emacs style.
3343 (emacs_gnutls_handshake): Cast the fds to something that's
3344 possibly the expected length.
3345 (emacs_gnutls_write): Return -1 if we try to write before handshake.
3347 * process.h (Lisp_Process): Add a gnutls_p field to Lisp_Process.
3349 * process.c (make_process): Set the gnutls_p field to zero by
3351 (read_process_output): Always call the gnutls_read function if the
3352 stream is a gnutls stream.
3353 (send_process): Ditto for writes.
3355 * gnutls.c (emacs_gnutls_write, emacs_gnutls_read): Refuse to read
3356 or write anything until the state is GNUTLS_STAGE_READY.
3357 (Fgnutls_boot): Mark the stream as being a gnutls stream.
3359 2010-09-29 Eli Zaretskii <eliz@gnu.org>
3361 * xdisp.c (reseat_1): Initialize bidi_it.paragraph_dir to
3363 (handle_invisible_prop, iterate_out_of_display_property)
3364 (next_element_from_buffer): If bidi_it.first_elt is set, call
3365 bidi_paragraph_init with NO_DEFAULT_P argument non-zero.
3368 * print.c (print_object): Fix format string and argument types for
3369 printing a Lisp_Misc_Marker.
3371 * xdisp.c (pos_visible_p, c_string_pos, number_of_chars)
3372 (load_overlay_strings, get_overlay_strings_1)
3373 (get_overlay_strings, forward_to_next_line_start)
3374 (back_to_previous_visible_line_start, reseat, reseat_to_string)
3375 (get_next_display_element, next_element_from_string)
3376 (next_element_from_c_string, next_element_from_buffer)
3377 (move_it_vertically_backward, move_it_by_lines, add_to_log)
3378 (message_dolog, message_log_check_duplicate, message2_nolog)
3379 (message3, message3_nolog, vmessage, set_message, set_message_1)
3380 (hscroll_window_tree, text_outside_line_unchanged_p)
3381 (set_cursor_from_row, set_vertical_scroll_bar, redisplay_window)
3382 (find_last_unchanged_at_beg_row)
3383 (find_first_unchanged_at_end_row, row_containing_pos)
3384 (trailing_whitespace_p, display_mode_element, decode_mode_spec)
3385 (display_count_lines, x_produce_glyphs, note_mouse_highlight):
3386 Use EMACS_INT for buffer and string positions.
3388 * dispextern.h (struct it) <string_nchars>: Declare EMACS_INT.
3389 (row_containing_pos): Adjust prototype.
3391 * lisp.h (pos_visible_p, message2, message2_nolog, message3)
3392 (message2_nolog, set_message): Adjust prototypes.
3394 2010-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
3396 * gnutls.c (Fgnutls_boot): Remove unused vars `data' and `srp_cred'.
3397 (Fgnutls_boot): Use SDATA.
3398 (Fgnutls_handshake): Remove unused var `max_log_level'.
3400 2010-09-27 Michael Albinus <michael.albinus@gmx.de>
3402 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
3405 2010-09-27 Jan Djärv <jan.h.d@swipnet.se>
3407 * xgselect.c (xg_select): Clear file descriptors not set from
3410 * process.c (wait_reading_process_output): Add missing FD_CLR
3411 for write_mask (must mirror connect_wait_mask).
3413 2010-09-27 Teodor Zlatanov <tzz@lifelogs.com>
3415 * gnutls.c (gnutls_log_function): Show level and "gnutls.c"
3417 (Fgnutls_boot): Use changed process members. Use log level with a
3418 function parameter to set it. Bring back Emacs-level debugging
3419 messages at log level 1 and 2.
3421 * process.c (make_process): Initialize gnutls_log_level.
3423 * process.h: Add gnutls_log_level and rename x509_cred and
3424 anon_cred to have the gnutls_ prefix for consistency.
3426 * gnutls.h (GNUTLS_LOG): Add convenience macro.
3428 2010-09-27 Juanma Barranquero <lekktu@gmail.com>
3430 * w32.c (g_b_init_get_sid_identifier_authority)
3431 (GetSidIdentifierAuthority_Proc, get_sid_identifier_authority):
3433 (globals_of_w32): Don't set g_b_init_get_sid_identifier_authority.
3434 (init_winsock): Remove useless assignment.
3435 (open_process_token, get_token_information, lookup_account_sid)
3436 (get_sid_sub_authority, get_sid_sub_authority_count, get_file_security)
3437 (get_security_descriptor_owner, get_security_descriptor_group)
3438 (is_valid_sid, equal_sid, get_length_sid, copy_sid)
3439 (get_native_system_info, get_system_times, init_user_info, crlf_to_lf)
3440 (is_unc_volume, GetCachedVolumeInformation, get_volume_info)
3441 (is_fat_volume, open_unc_volume, read_unc_volume, close_unc_volume)
3442 (unc_volume_file_attributes, convert_from_time_t)
3443 (create_toolhelp32_snapshot, process32_first, process32_next)
3444 (open_thread_token, impersonate_self, revert_to_self)
3445 (get_process_memory_info, get_process_working_set_size)
3446 (global_memory_status, global_memory_status_ex, socket_to_fd)
3447 (shutdown_handler): Make static.
3449 2010-09-27 Michael Albinus <michael.albinus@gmx.de>
3451 * dbusbind.c (dbus_fd_cb, xd_get_dispatch_status)
3452 (xd_pending_messages): Functions removed.
3453 (xd_read_queued_messages): Add parameters fd, *data, for_read in
3454 order to be compatible with add_read_fd. Determine bus from data,
3455 and call xd_read_message just for this bus.
3456 (xd_add_watch): Use xd_read_queued_messages as callback function.
3459 * lisp.h (xd_pending_messages, xd_read_queued_messages): Remove.
3461 2010-09-27 Lars Magne Ingebrigtsen <larsi@gnus.org>
3463 * gnutls.c (gnutls_log_function): Add more debugging.
3464 (emacs_gnutls_read): Don't infloop while reading.
3466 2010-09-27 Kenichi Handa <handa@m17n.org>
3468 These changes are to remove restriction on the number of glyphs in
3471 * dispextern.h (struct glyph): Change the member "slice" to union.
3472 Remove u.cmp.from and u.cmp.to. Give more bits to u.cmp.id.
3473 (GLYPH_SLICE_EQUAL_P): Adjust for the above change.
3475 * dispnew.c (buffer_posn_from_coords): Use glyph->slice.img
3476 instead of glyph->slice.
3477 (marginal_area_string): Likewise.
3479 * term.c (encode_terminal_code): Use glyph->slice.cmp instead of
3481 (append_composite_glyph): Likewise.
3483 * xdisp.c (dump_glyph): Use glyph->slice.cmp instead of
3485 (fill_gstring_glyph_string, x_get_glyph_overhangs)
3486 (append_composite_glyph): Likewise.
3487 (fill_image_glyph_string): Use glyph->slice.img instead of
3489 (append_glyph, produce_image_glyph, append_stretch_glyph)
3490 (note_mouse_highlight): Likewise.
3492 2010-09-26 Jan Djärv <jan.h.d@swipnet.se>
3494 * process.c (add_keyboard_wait_descriptor)
3495 (delete_keyboard_wait_descriptor): Reinstate ifdef subprocesses.
3496 (wait_reading_process_output): Don't pass write_mask to select
3497 if SELECT_CANT_DO_WRITE_MASK is defined.
3498 (SELECT_CANT_DO_WRITE_MASK): Define if SELECT_CANT_DO_WRITE_MASK.
3500 * process.h (add_read_fd, delete_read_fd, add_write_fd)
3501 (delete_write_fd): Declare.
3503 * process.c (gpm_wait_mask, max_gpm_desc): Remove.
3504 (write_mask): New variable.
3505 (max_input_desc): Rename from max_keyboard_desc.
3506 (fd_callback_info): New variable.
3507 (add_read_fd, delete_read_fd, add_write_fd, delete_write_fd):
3509 (Fmake_network_process): FD_SET write_mask.
3510 (deactivate_process): FD_CLR write_mask.
3511 (wait_reading_process_output): Connecting renamed to Writeok.
3512 check_connect removed. check_write is new. Remove references to gpm.
3513 Use Writeok/check_write unconditionally (i.e. no #ifdef
3514 NON_BLOCKING_CONNECT) instead of Connecting.
3515 Loop over file descriptors and call callbacks in fd_callback_info
3516 if file descriptor is ready for I/O.
3517 (add_gpm_wait_descriptor): Just call add_keyboard_wait_descriptor.
3518 (delete_gpm_wait_descriptor): Just call delete_keyboard_wait_descriptor.
3519 (keyboard_bit_set): Use max_input_desc.
3520 (add_keyboard_wait_descriptor, delete_keyboard_wait_descriptor):
3521 Remove #ifdef subprocesses. Use max_input_desc.
3522 (init_process): Initialize write_mask and fd_callback_info.
3524 * keyboard.c (readable_events, gobble_input): Remove DBUS code.
3526 * dbusbind.c: Include process.h.
3527 (dbus_fd_cb, xd_find_watch_fd, xd_toggle_watch)
3528 (xd_read_message_1): New functions.
3529 (xd_add_watch, xd_remove_watch): Call xd_find_watch_fd.
3530 Handle watch for both read and write.
3531 (Fdbus_init_bus): Also register xd_toggle_watch.
3532 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
3533 (Fdbus_method_error_internal, Fdbus_send_signal): Remove call
3534 to dbus_connection_flush.
3535 (xd_read_message): Move most of the code to xd_read_message_1.
3536 Call xd_read_message_1 until status is COMPLETE.
3538 2010-09-26 Dan Nicolaescu <dann@ics.uci.edu>
3540 * term.c: Do not include sys/ioctl.h, not needed.
3541 (init_tty): Reorder code to reduce the number of #ifdefs.
3544 2010-09-26 Teodor Zlatanov <tzz@lifelogs.com>
3546 * process.h: Set up GnuTLS support.
3548 * process.c (make_process, Fstart_process)
3549 (read_process_output, send_process): Set up GnuTLS support for
3550 process input/output file descriptors.
3552 * gnutls.h: The GnuTLS glue for Emacs, macros and enums.
3554 * gnutls.c: The source code for GnuTLS support in Emacs.
3556 * emacs.c: Set up GnuTLS support and call syms_of_gnutls.
3558 * config.in: Set up GnuTLS support.
3560 * Makefile.in (LIBGNUTLS_LIBS, LIBGNUTLS_CFLAGS, ALL_CFLAGS)
3561 (obj, LIBES): Set up GnuTLS support.
3563 2010-09-26 Juanma Barranquero <lekktu@gmail.com>
3565 * w32.c (get_emacs_configuration_options): Fix previous change.
3567 2010-09-25 Chong Yidong <cyd@stupidchicken.com>
3569 * insdel.c (prepare_to_modify_buffer): Ensure the mark marker is
3570 alive before using it (Bug#6977).
3572 2010-09-25 Lars Magne Ingebrigtsen <larsi@gnus.org>
3574 * xdisp.c (face_before_or_after_it_pos): EMACS_INT/int fixup.
3576 * dispextern.h: EMACS_INT/int fixup.
3578 * xdisp.c (string_pos_nchars_ahead, init_iterator): EMACS_INT/int
3581 * xrdb.c (magic_file_p): EMACS_INT/int fixup.
3583 2010-09-25 Eli Zaretskii <eliz@gnu.org>
3585 * window.c (Fpos_visible_in_window_p, Fdelete_other_windows)
3586 (Fselect_window, window_scroll_pixel_based)
3587 (window_scroll_line_based, Frecenter, Fset_window_configuration):
3588 Use EMACS_INT for buffer positions.
3590 * textprop.c (validate_interval_range, interval_of)
3591 (property_change_between_p, Fadd_text_properties)
3592 (set_text_properties_1, Fremove_text_properties)
3593 (Fremove_list_of_text_properties, Ftext_property_any)
3594 (Ftext_property_not_all, copy_text_properties)
3595 (text_property_list, extend_property_ranges)
3596 (verify_interval_modification): Use EMACS_INT for buffer
3599 * term.c (fast_find_position, term_mouse_highlight): Use EMACS_INT
3600 for buffer positions.
3602 * process.c (read_process_output, send_process)
3603 (Fprocess_send_region, status_notify): Use EMACS_INT for buffer
3604 and string positions and size.
3606 * print.c (print_object, print_string, strout): Use EMACS_INT for
3609 * minibuf.c (string_to_object): Use EMACS_INT for string position
3612 * marker.c (verify_bytepos): Use EMACS_INT for buffer positions.
3614 * lread.c <read_from_string_index, read_from_string_index_byte>
3615 <read_from_string_limit, readchar_count>: Define EMACS_INT.
3616 (readchar, unreadchar, read_internal_start): Use EMACS_INT for
3617 buffer positions and string length.
3619 * keyboard.c <last_point_position, last_non_minibuf_size>: Declare
3621 (echo_truncate, adjust_point_for_property, read_char)
3622 (gen_help_event, make_lispy_event, modify_event_symbol)
3623 (Fexecute_extended_command, stuff_buffered_input): Use EMACS_INT
3624 for buffer positions and string length.
3626 * keyboard.h (gen_help_event): Adjust prototype.
3628 * termhooks.h <struct input_event>: Make `code' member EMACS_INT.
3630 * commands.h <last_point_position>: Declare EMACS_INT.
3632 * xdisp.c <help_echo_pos>: Define as EMACS_INT.
3633 (truncate_echo_area): Accept EMACS_INT argument.
3635 * dispextern.h <help_echo_pos>: Declare EMACS_INT.
3637 * lisp.h (truncate_echo_area): Adjust prototype.
3639 * composite.c (composition_adjust_point): Return EMACS_INT.
3641 * composite.h (composition_adjust_point): Adjust prototype.
3643 2010-09-25 Juanma Barranquero <lekktu@gmail.com>
3645 * process.c (Fmake_network_process): When arg :host is 'local,
3646 use address 127.0.0.1, not name "localhost". (Bug#6781)
3648 2010-09-24 Eli Zaretskii <eliz@gnu.org>
3650 * indent.c (Fcurrent_indentation, indented_beyond_p)
3651 (compute_motion): Use EMACS_INT for buffer position variables.
3653 * lisp.h (indented_beyond_p): Adjust prototype.
3655 * buffer.c (overlay_strings): Return EMACS_INT.
3657 * buffer.h (overlay_strings): Adjust prototype.
3659 * region-cache.c (pp_cache): Adjust format to arguments.
3661 * eval.c <specpdl_size, lisp_eval_depth>: Declare EMACS_INT.
3662 (call_debugger): Use EMACS_INT for specpdl_size related variables.
3663 (verror): Use EMACS_INT for size of allocated buffer.
3665 * keyboard.c (make_lispy_position): Use EMACS_INT for buffer
3668 * xdisp.c (redisplay_internal, try_window_id)
3669 (set_cursor_from_row, find_first_unchanged_at_end_row):
3670 Use EMACS_INT for buffer positions.
3672 * dispextern.h (set_cursor_from_row): Adjust prototype.
3674 * dispnew.c (increment_matrix_positions)
3675 (increment_row_positions, copy_glyph_row_contents)
3676 (mode_line_string, marginal_area_string): Use EMACS_INT for buffer
3679 * dispextern.h (mode_line_string, marginal_area_string)
3680 (increment_matrix_positions, increment_row_positions):
3683 * data.c (Faref, Faset): Use EMACS_INT for string length and
3686 * cmds.c (internal_self_insert): Use EMACS_INT for the count of
3687 characters to insert.
3689 * ccl.c (Fccl_execute_on_string): Use EMACS_INT for string
3692 * syntax.c (scan_words, update_syntax_table)
3693 (prev_char_comend_first, back_comment, skip_chars)
3694 (skip_syntaxes, Fforward_comment, Fbackward_prefix_chars):
3695 Use EMACS_INT for buffer and string positions.
3697 * syntax.h (scan_words, update_syntax_table): Adjust prototypes.
3699 * casefiddle.c (operate_on_word): Use EMACS_INT for buffer
3702 2010-09-24 Lars Magne Ingebrigtsen <larsi@gnus.org>
3704 * scroll.c (calculate_scrolling, line_ins_del)
3705 (calculate_direct_scrolling, scroll_cost): Fix EMACS_INT/int
3708 * region-cache.c (move_cache_gap, set_cache_region, pp_cache)
3709 (region_cache_backward, region_cache_forward)
3710 (revalidate_region_cache, set_cache_region): FIX EMACS_INT/int
3713 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
3715 * eval.c (verror): Fix EMACS_INT/int conversion.
3717 * print.c (PRINTDECLARE, PRINTPREPARE, strout, print_string)
3718 (print_preprocess, print_check_string_charset_prop)
3719 (print_object): Fix EMACS_INT/int conversion.
3721 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
3723 2010-09-24 Eli Zaretskii <eliz@gnu.org>
3725 * callproc.c (Fcall_process): Use EMACS_INT for count of
3726 characters read from the subprocess.
3728 * bidi.c (struct bidi_paragraph_info): Use EMACS_INT for buffer
3730 (bidi_cache_search, bidi_cache_find): Use EMACS_INT for buffer
3733 * buffer.c (struct sortvec): Use EMACS_INT for buffer positions.
3734 (struct sortstrlist, overlay_str_len): Use EMACS_INT for string
3736 (advance_to_char_boundary, Fset_buffer_multibyte)
3737 (overlays_at, overlays_in, mouse_face_overlay_overlaps)
3738 (overlay_touches_p, record_overlay_string, overlay_strings)
3739 (recenter_overlay_lists, fix_start_end_in_overlays)
3740 (modify_overlay, Fmove_overlay, report_overlay_modification)
3741 (evaporate_overlays): Use EMACS_INT for buffer positions.
3743 * lisp.h (fix_start_end_in_overlays, overlay_touches_p):
3746 * dispextern.h (struct bidi_saved_info): Use EMACS_INT for buffer
3749 * fns.c (Fcompare_strings, Fstring_lessp, concat)
3750 (string_make_unibyte, Fstring_as_unibyte, Fsubstring)
3751 (Fsubstring_no_properties, substring_both, Ffillarray)
3752 (Fclear_string, mapcar1, Fmapconcat, Fmapcar, Fmapc)
3753 (Fbase64_encode_region, Fbase64_encode_string, base64_encode_1)
3754 (Fbase64_decode_region, Fbase64_decode_string, base64_decode_1)
3755 (Fmd5): Use EMACS_INT for buffer and string positions and length
3756 variables and arguments.
3758 * lisp.h (substring_both): Adjust prototype.
3760 2010-09-24 Juanma Barranquero <lekktu@gmail.com>
3762 Remove W32 API function pointer unused since 2005-02-15 (revno 2005-02-15T23:19:26Z!jasonr@gnu.org).
3763 * w32fns.c (clipboard_sequence_fn): Don't declare.
3764 (globals_of_w32fns): Don't initialize it.
3766 2010-09-23 Stefan Monnier <monnier@iro.umontreal.ca>
3768 * syntax.c (back_comment): Detect the case where a 1-char comment
3769 starter is also the 2nd char of a 2-char comment ender.
3771 2010-09-23 Jan Djärv <jan.h.d@swipnet.se>
3773 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
3775 2010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
3777 * eval.c (verror): EMACS_INT/int cleanup.
3779 * lisp.h (SPECPDL_INDEX): Cast to int, since we're not going to
3780 unwind_protect more than 2GB worth of functions.
3782 * editfns.c (Finsert_char): EMACS_INT/int cleanup.
3784 * lisp.h: Have oblookup take EMACS_INT to allow interning big
3785 string and avoid compiler warnings.
3786 (USE_SAFE_ALLOCA): Cast to int to avoid compilation warnings in
3789 * lread.c (oblookup): EMACS_INT/int cleanup.
3791 * cmds.c (Fforward_line, Fdelete_char): EMACS_INT/int cleanup.
3793 2010-09-23 Eli Zaretskii <eliz@gnu.org>
3795 * editfns.c (clip_to_bounds): Return an EMACS_INT value.
3797 * lisp.h (clip_to_bounds): Adjust prototype.
3799 * intervals.c (adjust_for_invis_intang): Return EMACS_INT value.
3801 2010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
3803 * lisp.h: doprnt.c EMACS_INT/int cleanup.
3805 * doprnt.c (doprnt): EMACS_INT/int cleanup.
3807 * doc.c (Fsnarf_documentation, get_doc_string): EMACS_INT/int
3810 * lisp.h: Change the definition of all marker.c functions that
3811 take and return buffer stuff to be EMACS_INT instead of int.
3813 * marker.c (buf_charpos_to_bytepos, CONSIDER, set_marker_both)
3814 (buf_charpos_to_bytepos, bytepos_to_charpos)
3815 (buf_bytepos_to_charpos, Fbuffer_has_markers_at)
3816 (set_marker_restricted, set_marker_both): Convert int to EMACS_INT
3817 for all buffer positions.
3819 2010-09-23 Chong Yidong <cyd@stupidchicken.com>
3821 * intervals.c (traverse_intervals, rotate_right, rotate_left)
3822 (split_interval_right, find_interval, next_interval)
3823 (delete_node, delete_interval, interval_deletion_adjustment)
3824 (adjust_intervals_for_deletion, merge_interval_right)
3825 (merge_interval_left, graft_intervals_into_buffer)
3826 (copy_intervals): Convert EMACS_UINTs to EMACS_INT.
3828 * intervals.h (traverse_intervals): Update prototype.
3830 2010-09-23 Eli Zaretskii <eliz@gnu.org>
3832 * indent.c (compute_motion): Use EMACS_INT for arguments to
3833 region_cache_forward.
3835 * region-cache.c (struct boundary, struct region_cache):
3836 Use EMACS_INT for positions.
3837 (find_cache_boundary, move_cache_gap, insert_cache_boundary)
3838 (delete_cache_boundaries, set_cache_region)
3839 (invalidate_region_cache, know_region_cache)
3840 (region_cache_forward, region_cache_backward, pp_cache):
3841 Use EMACS_INT for buffer positions.
3843 * region-cache.h (know_region_cache, invalidate_region_cache)
3844 (region_cache_forward, region_cache_backward): Adjust prototypes.
3846 * search.c (string_match_1, fast_c_string_match_ignore_case)
3847 (looking_at_1, scan_buffer, scan_newline)
3848 (find_next_newline_no_quit, find_before_next_newline)
3849 (search_command, trivial_regexp_p, search_buffer, simple_search)
3850 (boyer_moore, wordify, Freplace_match): Use EMACS_INT for buffer
3851 and string positions and length.
3853 * lisp.h (scan_buffer, scan_newline, find_next_newline_no_quit)
3854 (find_before_next_newline): Adjust prototypes.
3856 * editfns.c (transpose_markers, update_buffer_properties)
3857 (buildmark, clip_to_bounds, Fgoto_char, overlays_around)
3858 (get_pos_property, Fconstrain_to_field)
3859 (Fline_beginning_position, Fline_end_position, Fprevious_char)
3860 (Fchar_after, Fchar_before, Finsert_char)
3861 (Finsert_buffer_substring, Fcompare_buffer_substrings)
3862 (Fsubst_char_in_region, Fformat, Ftranspose_regions):
3863 Use EMACS_INT for buffer and string position variables.
3864 (Finsert_char): Protect against too large insertions.
3866 * lisp.h (clip_to_bounds): Adjust prototype.
3868 * intervals.c (traverse_intervals, rotate_right, rotate_left)
3869 (balance_an_interval, split_interval_right, split_interval_left)
3870 (find_interval, next_interval, update_interval)
3871 (adjust_intervals_for_insertion, delete_node, delete_interval)
3872 (interval_deletion_adjustment, adjust_intervals_for_deletion)
3873 (offset_intervals, merge_interval_right, merge_interval_left)
3874 (graft_intervals_into_buffer, adjust_for_invis_intang)
3875 (move_if_not_intangible, get_local_map, copy_intervals)
3876 (copy_intervals_to_string, compare_string_intervals)
3877 (set_intervals_multibyte_1): Use EMACS_INT for buffer positions
3878 and for interval tree size.
3880 * intervals.h (traverse_intervals, split_interval_right)
3881 (split_interval_left, find_interval, offset_intervals)
3882 (graft_intervals_into_buffer, copy_intervals)
3883 (copy_intervals_to_string, move_if_not_intangible, get_local_map)
3884 (update_interval): Adjust prototypes.
3886 * xdisp.c (check_point_in_composition, reconsider_clip_changes):
3887 Use EMACS_INT for buffer position variables and arguments.
3889 * composite.c (get_composition_id, find_composition)
3890 (run_composition_function, compose_text)
3891 (composition_gstring_width, autocmp_chars)
3892 (composition_update_it, Ffind_composition_internal): Use EMACS_INT
3893 for buffer positions and string length variables and arguments.
3895 * composite.h (get_composition_id, find_composition, compose_text)
3896 (composition_gstring_width): Adjust prototypes.
3898 * editfns.c (Fformat): Use EMACS_INT for string size variables.
3900 * xdisp.c (store_mode_line_noprop, display_mode_element):
3901 Use EMACS_INT for string positions.
3903 * intervals.c (get_property_and_range): Use EMACS_INT for buffer
3906 * intervals.h (get_property_and_range): Adjust prototype.
3908 * character.c (parse_str_as_multibyte, str_as_multibyte)
3909 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
3910 (string_count_byte8, string_escape_byte8, c_string_width)
3911 (strwidth, lisp_string_width, multibyte_chars_in_text):
3912 Use EMACS_INT for string length variables and arguments.
3914 * character.h (parse_str_as_multibyte, str_as_multibyte)
3915 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
3916 (c_string_width, strwidth, lisp_string_width):
3919 * font.c (font_intern_prop): Use EMACS_INT for string length
3922 * font.c (font_intern_prop): Use EMACS_INT for string length
3925 * fns.c (Fstring_as_multibyte): Use EMACS_INT for string length
3928 * alloc.c <total_string_size>: Declare as EMACS_INT, not int.
3929 (Fmake_string): Protect against too large strings.
3930 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
3931 (live_misc_p): Use ptrdiff_t instead of int for pointer
3933 (string_bytes, check_sblock, check_string_free_list)
3934 (allocate_string_data, compact_small_strings, Fmake_string)
3935 (Fmake_bool_vector, make_string, make_unibyte_string)
3936 (make_multibyte_string, make_string_from_bytes)
3937 (make_specified_string_string, Fmake_list, Fmake_vector):
3938 Use EMACS_INT for string length variables and arguments.
3939 (find_string_data_in_pure, make_pure_string, make_pure_c_string)
3940 (Fpurecopy): Use EMACS_INT for string size.
3941 (mark_vectorlike, mark_char_table, mark_object): Use EMACS_UINT
3944 * lisp.h (make_string, make_unibyte_string, make_multibyte_string)
3945 (make_string_from_bytes, make_specified_string_string)
3946 (make_pure_string, string_bytes, check_point_in_composition):
3949 2010-09-22 Eli Zaretskii <eliz@gnu.org>
3951 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
3952 (check_translation): Use EMACS_INT for buffer positions and
3955 * undo.c (record_marker_adjustment, record_delete)
3956 (record_change, record_point, record_insert)
3957 (record_property_change, Fprimitive_undo): Use EMACS_INT for
3960 * lisp.h (record_marker_adjustment, record_delete)
3961 (record_change, record_point, record_insert)
3962 (record_property_change, Fprimitive_undo): Adjust prototypes.
3964 2010-09-22 Juanma Barranquero <lekktu@gmail.com>
3965 Eli Zaretskii <eliz@gnu.org>
3967 * w32.c (get_emacs_configuration_options): Fix buffer overrun.
3969 2010-09-22 Eli Zaretskii <eliz@gnu.org>
3971 * minibuf.c (Fminibuffer_contents)
3972 (Fminibuffer_contents_no_properties)
3973 (Fminibuffer_completion_contents): Use EMACS_INT for minibuffer
3976 * keyboard.c (command_loop_1): Use EMACS_INT to compare point with
3979 * alloc.c (make_uninit_string, make_uninit_multibyte_string)
3980 (allocate_string_data): Accept EMACS_INT for string length.
3982 * editfns.c (Ffield_string, Ffield_string_no_properties)
3983 (make_buffer_string, make_buffer_string_both, Fbuffer_substring)
3984 (Fbuffer_substring_no_properties, find_field, Fdelete_field)
3985 (Ffield_string, Ffield_string_no_properties, Ffield_beginning)
3986 (Ffield_end): Use EMACS_INT for buffer positions.
3988 * insdel.c (prepare_to_modify_buffer): Use EMACS_INT to compare
3991 * lisp.h (allocate_string_data, make_uninit_string)
3992 (make_uninit_multibyte_string, make_buffer_string)
3993 (make_buffer_string_both): Adjust prototypes.
3995 2010-09-22 Chong Yidong <cyd@stupidchicken.com>
3997 * xml.c: Switch to GNU indentation.
3998 (make_dom): Change parse tree format to match xml.el.
3999 (Fxml_parse_html_string_internal): Rename from html-parse-string.
4000 (Fxml_parse_string_internal): Rename from xml-parse-string.
4002 2010-09-22 Kenichi Handa <handa@m17n.org>
4004 * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos
4005 only if we are not at a composition.
4006 (set_iterator_to_next): Give it->end_charpos to
4007 composition_compute_stop_pos.
4008 (set_iterator_to_next, next_element_from_buffer): Likewise.
4010 * dispnew.c (buffer_posn_from_coords): Fix position when the
4011 current display element is a grapheme cluster in bidi-reordered
4014 2010-09-21 Ari Roponen <ari.roponen@gmail.com> (tiny change)
4016 * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
4017 the regions may overlap.
4019 2010-09-21 Juanma Barranquero <lekktu@gmail.com>
4021 * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
4023 2010-09-21 Dan Nicolaescu <dann@ics.uci.edu>
4025 * emacs.c: Do not include sys/ioctl.h, not needed.
4027 * doprnt.c: Do not include stdlib.h, config.h does it.
4028 Move #include before macro definition.
4030 2010-09-20 Dan Nicolaescu <dann@ics.uci.edu>
4032 * Makefile.in (temacs): Link using $(CC) not $(LD).
4033 (LD_FIRSTFLAG): Define using autoconf.
4036 Remove HAVE_TERMIOS definitions.
4037 * s/usg5-4-common.h (HAVE_TERMIOS):
4038 * s/template.h (HAVE_TERMIOS):
4039 * s/gnu-linux.h (HAVE_TERMIOS):
4040 * s/darwin.h (HAVE_TERMIOS):
4041 * s/cygwin.h (HAVE_TERMIOS):
4042 * s/bsd-common.h (HAVE_TERMIOS):
4043 * s/aix4-2.h (HAVE_TERMIOS):
4044 * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
4045 defined on all non-MS platforms.
4046 (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
4048 * xterm.c (xt_action_hook): Use const.
4050 2010-09-20 Juanma Barranquero <lekktu@gmail.com>
4052 Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
4053 * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
4054 (gethostname) [!HAVE_SOCKETS]: Remove.
4055 (SOCK_REPLACE_HANDLE): Remove macro.
4056 (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
4057 (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
4058 * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
4059 (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
4061 2010-09-18 Eli Zaretskii <eliz@gnu.org>
4063 * deps.mk (xml.o): Add dependencies.
4065 * xdisp.c (Fcurrent_bidi_paragraph_direction):
4066 Call bidi_paragraph_init with NO_DEFAULT_P non-zero. (Bug#7038)
4068 * bidi.c (bidi_paragraph_init): Accept an additional argument
4069 NO_DEFAULT_P; all callers changed. If NO_DEFAULT_P is non-zero,
4070 search back until a paragraph with a strong directional character
4071 is found, and use that to determine paragraph's base direction.
4073 * dispextern.h (bidi_paragraph_init): Update prototype.
4075 2010-09-17 Eli Zaretskii <eliz@gnu.org>
4077 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
4078 of w32api >= 3.15. (Bug#6989)
4080 2010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
4082 * process.c (wait_reading_process_output): Don't message about
4083 accept-process-output unless the time limit really is zero.
4085 2010-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
4087 * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
4088 int/Lisp_Object mixup).
4090 2010-09-17 Jan Djärv <jan.h.d@swipnet.se>
4092 * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
4095 2010-09-17 Stephen Berman <stephen.berman@gmx.net>
4097 * frame.c (Ftool_bar_pixel_width): New function to expose tool
4098 bar's pixel width to Lisp (Bug#7048).
4100 2010-09-14 Juanma Barranquero <lekktu@gmail.com>
4102 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
4104 2010-09-17 Jan Djärv <jan.h.d@swipnet.se>
4106 * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
4107 with argument top/left if tool bar is vertical/horizontal (Bug#7051).
4109 2010-09-17 Kenichi Handa <handa@m17n.org>
4111 * ftfont.c (ftfont_check_otf): Fix previous change.
4113 2010-09-14 Kenichi Handa <handa@m17n.org>
4115 * ftfont.c (ftfont_check_otf): Fix the case of checking just
4116 existence of GSUB or GPOS.
4118 2010-09-14 Juanma Barranquero <lekktu@gmail.com>
4120 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
4122 2010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
4124 * xml.c (parse_buffer): Rename to parse_string(), since that's
4126 (parse_string): Return nil when the document can't be parsed.
4128 2010-09-14 Jan Djärv <jan.h.d@swipnet.se>
4130 * xterm.c (get_current_vm_state): New function.
4131 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
4132 want_fullscreen so set_wm_state calls are few (Bug#7013).
4133 (x_handle_net_wm_state): Move code to get_current_vm_state and
4136 2010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
4138 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
4140 2010-09-14 Kenichi Handa <handa@m17n.org>
4142 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
4143 we may use designation or locking-shift.
4145 2010-09-14 Kenichi Handa <handa@m17n.org>
4147 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
4148 sequence when the source is multibyte.
4150 2010-09-14 Andreas Schwab <schwab@linux-m68k.org>
4152 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
4153 Don't make first argument optional. Doc fix.
4155 2010-09-14 Leo <sdl.web@gmail.com> (tiny change)
4157 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
4158 parameters for the doc string.
4160 2010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
4162 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
4164 2010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4166 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
4167 (syms_of_fns): Don't defsubr Sy_or_n_p.
4168 * lisp.h: Don't declare Fy_or_n_p.
4169 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
4171 2010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
4173 * xml.c (Fxml_parse_buffer): New function to parse XML files.
4175 2010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
4178 (Fhtml_parse_buffer): New function to interface to the libxml2
4179 html parsing function.
4181 2010-09-05 Juanma Barranquero <lekktu@gmail.com>
4183 * biditype.h: Regenerate.
4185 2010-09-04 Andreas Schwab <schwab@linux-m68k.org>
4187 * nsimage.m (ns_load_image): Check argument types.
4189 * image.c: Remove all uses of gcpro.
4190 (xpm_load): Check all lisp types.
4191 (pbm_load): Likewise.
4192 (png_load): Likewise.
4193 (jpeg_load): Likewise.
4194 (tiff_load): Likewise.
4195 (gif_load): Likewise.
4196 (imagemagick_load_image): Likewise.
4197 (imagemagick_load): Likewise.
4198 (svg_load): Likewise.
4199 (gs_load): Likewise.
4201 2010-09-04 Eli Zaretskii <eliz@gnu.org>
4203 * w32uniscribe.c (uniscribe_shape): Update commentary.
4204 Don't try to reorder grapheme clusters, since LGSTRING should always
4205 hold them in the logical order.
4206 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
4207 return glyph codes in the logical order.
4209 2010-09-04 Andreas Schwab <schwab@linux-m68k.org>
4211 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
4212 (imagemagick_load_image): Fix type mismatch.
4213 (Fimagemagick_types): Likewise. Doc fix.
4215 2010-09-02 Jan Djärv <jan.h.d@swipnet.se>
4217 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
4219 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
4221 * xselect.c: Remove declaration of cut-buffer objects and functions.
4222 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
4223 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
4224 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
4225 (Fx_rotate_cut_buffers_internal): Remove.
4226 (syms_of_xselect): Remove defsubr of above.
4227 Remove intern of QCUT_BUFFERn.
4229 2010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
4231 * cmds.c (Vblink_paren_function): Remove.
4232 (internal_self_insert): Make it insert N chars at a time.
4233 Don't call blink-paren-function.
4234 (Fself_insert_command): Adjust accordingly.
4235 (syms_of_cmds): Don't declare blink-paren-function.
4237 2010-08-31 Kenichi Handa <handa@m17n.org>
4239 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
4242 * term.c (encode_terminal_code): Fix the previous change.
4243 (produce_glyphs): Don't set it->char_to_display here.
4244 Don't handle unibyte-display-via-language-environment here.
4245 (produce_special_glyphs): Set temp_it.char_to_display before
4246 calling produce_glyphs.
4248 * xdisp.c (get_next_display_element): Set it->char_to_display
4249 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
4251 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
4252 calling PRODUCE_GLYPHS.
4253 (append_space_for_newline): Save and store it->char_to_display.
4254 Set it->char_to_display before calling PRODUCE_GLYPHS.
4255 (extend_face_to_end_of_line): Set it->char_to_display before
4256 calling PRODUCE_GLYPHS.
4257 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
4258 character to its byte value.
4259 (get_char_glyph_code): New function.
4260 (produce_stretch_glyph): Set it2.char_to_display too before
4261 calling x_produce_glyphs.
4262 (x_produce_glyphs): Simplify by using the same code for ASCII and
4263 non-ASCII characters. Don't set it->char_to_display here.
4264 Don't handle unibyte-display-via-language-environment here. For a
4265 character of no glyph, use font->space_width instead of FONT_WIDTH.
4267 2010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
4269 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
4271 2010-08-31 Chong Yidong <cyd@stupidchicken.com>
4273 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
4275 2010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
4277 * marker.c (Fcopy_marker): Make the first arg optional.
4279 2010-08-30 Kenichi Handa <handa@m17n.org>
4281 * composite.c (composition_update_it): Fix computing of
4284 2010-08-29 Kenichi Handa <handa@m17n.org>
4286 * term.c (encode_terminal_code): Encode byte chars to the
4287 corresponding bytes.
4289 2010-08-29 Jan Djärv <jan.h.d@swipnet.se>
4291 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
4293 2010-08-26 Kenichi Handa <handa@m17n.org>
4295 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
4296 on calling composition_compute_stop_pos.
4298 2010-08-25 Kenichi Handa <handa@m17n.org>
4300 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
4303 * composite.c (composition_compute_stop_pos): Don't break
4305 (composition_reseat_it): Likewise. Fix calculation of character
4306 position starting a composition.
4307 (Fcomposition_get_gstring): Don't limit the number of components
4308 for automatic composition.
4310 2010-08-25 Kenichi Handa <handa@m17n.org>
4312 * composite.c (composition_compute_stop_pos): In forward search,
4313 pay attention to the possibility that some character after ENDPOS
4314 will be composed with charactrs before ENDPOS.
4316 2010-08-24 Chong Yidong <cyd@stupidchicken.com>
4318 * keyboard.c (command_loop_1): Don't clobber primary selection
4319 during handle-switch-frame (Bug#6872).
4321 2010-08-23 Michael Albinus <michael.albinus@gmx.de>
4323 * dbusbind.c: Accept UNIX domain sockets as bus address.
4324 (Fdbus_close_bus): New function.
4325 (Vdbus_registered_buses): New variable.
4326 (xd_initialize): Implement string as bus address.
4327 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
4328 (Fdbus_get_unique_name, Fdbus_call_method)
4329 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
4330 (Fdbus_method_error_internal, Fdbus_send_signal)
4331 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
4332 check. This is done in xd_initialize_bus. Adapt doc string, if
4334 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
4335 Vdbus_registered_buses.
4336 (Vdbus_registered_objects_table): Create hash.
4338 2010-08-22 Juri Linkov <juri@jurta.org>
4340 * keyboard.c (Fexecute_extended_command): Move reading a command name
4341 with `completing-read' to a new Elisp function `read-extended-command'.
4342 Call it to read a command to `function' (bug#5364, bug#5214).
4344 2010-08-22 Chong Yidong <cyd@stupidchicken.com>
4346 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
4348 2010-08-22 Andreas Schwab <schwab@linux-m68k.org>
4350 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
4351 instead of SAFE_ALLOCA.
4353 2010-08-22 Chong Yidong <cyd@stupidchicken.com>
4355 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
4358 2010-08-22 Jan Djärv <jan.h.d@swipnet.se>
4360 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
4362 2010-08-22 Jan Djärv <jan.h.d@swipnet.se>
4364 * doc.c (Fsnarf_documentation): Initialize skip_file before
4367 2010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
4369 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
4371 (HAVE_TERMIO): Remove.
4373 2010-08-22 Eli Zaretskii <eliz@gnu.org>
4375 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
4377 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
4380 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
4381 it's done in nt/config.nt.
4383 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
4385 * unexcoff.c (report_error, make_hdr, write_segment)
4386 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
4387 Convert argument lists and prototypes to ANSI C.
4388 (make_hdr, write_segment): Remove unused variables.
4389 (unexec): Remove commented-out line. Initialize `new' to shut up
4392 2010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
4394 Simplify termio code.
4395 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
4396 HAVE_TERMIO code is obsolete.
4397 Replace HAVE_TERMIOS conditionals with !DOS_NT.
4398 * systty.h: Do not define HAVE_TCATTR.
4399 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
4400 Do not define EMACS_HAVE_TTY_PGRP. Only define
4401 EMACS_GET_TTY_PGRP for !DOS_NT.
4402 * sysdep.c: Include sysselect.h unconditionally. Do not include
4403 sys/ioctl.h and termios.h, systty.h does it.
4404 Use HAVE_SYS_UTSNAME_H instead of USG as an include guard.
4405 (init_baud_rate): Remove HAVE_TERMIO code.
4406 (child_setup_tty): Remove HAVE_TERMIO code.
4407 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
4408 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
4409 (new_ltchars, new_tchars): Remove, unused.
4410 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
4411 code. Remove special casing for __mips__, it was a no-op.
4412 Remove HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
4413 (init_sys_modes): Remove HPUX special case.
4414 * process.c: Include stdlib.h unconditionally. Do not include
4415 fcntl.h, systty.h does it. Remove conditional code for
4416 HAVE_SERIAL, it is always true.
4417 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
4418 always true when SIGNALS_VIA_CHARACTERS is true.
4419 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
4420 !WINDOWSNT means HAVE_TERMIOS.
4421 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
4422 conditional, which is true for all HAVE_TERMIOS systems.
4423 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
4424 instead of HAVE_TERMIOS.
4425 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
4426 EMACS_HAVE_TTY_PGRP.
4427 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
4428 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
4431 2010-08-21 Eli Zaretskii <eliz@gnu.org>
4433 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
4434 mirroring pixel positions.
4436 2010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
4438 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
4440 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
4441 malloc_sbrk_used, nothing uses them.
4443 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
4444 defined, unconditionally defined in lisp.h.
4446 * term.c: Do not include <termios.h>, systty.h does it.
4448 * s/unixware.h (HAVE_TCATTR):
4449 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
4450 systty.h defines it when HAVE_TERMIOS is defined.
4452 2010-08-20 Eli Zaretskii <eliz@gnu.org>
4454 * dispnew.c (buffer_posn_from_coords): Fix last change for text
4455 terminals: add one-character offset for R2L lines.
4457 * emacs.c <emacs_version>: Add a comment regarding
4458 msdos/mainmake.v2's dependency on the syntax of this declaration.
4460 2010-08-20 Eli Zaretskii <eliz@gnu.org>
4462 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
4463 position for R2L lines by mirroring the pixel position wrt the
4464 text are box. Improve commentary.
4466 2010-08-20 Andreas Schwab <schwab@linux-m68k.org>
4468 * image.c (imagemagick_clear_image): Remove debugging output.
4470 2010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
4472 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
4473 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
4474 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
4476 (syms_of_cmds): Initialize the new vars.
4478 2010-08-19 Jason Rumney <jasonr@gnu.org>
4480 * w32menu.c (set_frame_menubar): Remove call to undefined function.
4482 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
4484 2010-08-19 Jan Djärv <jan.h.d@swipnet.se>
4486 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
4488 2010-08-18 Eli Zaretskii <eliz@gnu.org>
4490 * xterm.c (x_draw_bar_cursor):
4491 * w32term.c (x_draw_bar_cursor): If the character under cursor is
4492 R2L, draw the bar cursor on its right rather than on its left.
4494 2010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
4496 * eval.c (Fdefmacro): Only obey one declaration.
4498 * casefiddle.c (casify_region): Setup gl_state.
4500 2010-08-18 Jan Djärv <jan.h.d@swipnet.se>
4502 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
4504 2010-08-18 Jan Djärv <jan.h.d@swipnet.se>
4506 * gtkutil.c (update_frame_tool_bar): Literal strings are const char*.
4508 2010-08-18 David De La Harpe Golden <david@harpegolden.net>
4510 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
4511 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
4512 QPRIMARY => NXPrimaryPboard.
4513 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
4514 NXPrimaryPboard => QPRIMARY.
4515 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
4516 NXSecondaryPboard = SecondarySelection.
4517 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
4519 2010-08-18 Joakim Verona <joakim@verona.se>
4521 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
4523 (imagemagick_image_p): New function to test for ImageMagic image.
4524 (imagemagick_load): New function to load ImageMagick image.
4525 (imagemagick_load_image): New function, helper for imagemagick_load.
4526 (imagemagick-types): New function.
4527 (Qimagemagick): New Lisp_object.
4528 (imagemagick-render-type): New variable, decides which renderer to use.
4530 2010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
4532 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
4535 2010-08-17 Jan Djärv <jan.h.d@swipnet.se>
4537 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
4538 x_set_tool_bar_position handler.
4540 2010-08-17 Eli Zaretskii <eliz@gnu.org>
4542 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
4543 x_set_tool_bar_position handler, needed to support changes from
4544 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
4546 2010-08-16 Jan Djärv <jan.h.d@swipnet.se>
4548 * nsselect.m: include keyboard.h for QPRIMARY, remove its
4549 declaration (Bug#6863).
4550 (syms_of_nsselect): Don't intern QPRIMARY.
4552 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
4554 * keyboard.h (QPRIMARY): Declare (Bug#6864).
4556 2010-08-16 Chong Yidong <cyd@stupidchicken.com>
4558 * keyboard.c (command_loop_1): Avoid setting selection twice,
4559 since it's done in deactivate-mark as well.
4560 (Vselect_active_regions): Change default to t. Replace `lazy'
4561 with non-default value `only', meaning only set PRIMARY for
4562 temporarily active regions.
4564 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
4565 select-active-regions.
4567 2010-08-15 Jan Djärv <jan.h.d@swipnet.se>
4569 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
4572 2010-08-15 Andreas Schwab <schwab@linux-m68k.org>
4574 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
4576 2010-08-15 Jan Djärv <jan.h.d@swipnet.se>
4578 * keyboard.c (parse_tool_bar_item): malloc buf.
4579 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
4582 2010-08-14 Eli Zaretskii <eliz@gnu.org>
4584 * xterm.c (x_draw_stretch_glyph_string):
4585 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
4586 the cursor on the right edge of the stretch glyph.
4588 * xdisp.c (window_box_right_offset, window_box_right):
4591 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
4592 direction when point is inside a run of whitespace characters.
4594 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
4596 2010-08-14 Jason Rumney <jasonr@gnu.org>
4598 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
4600 2010-08-14 Chong Yidong <cyd@stupidchicken.com>
4602 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
4604 2010-08-13 Jason Rumney <jasonr@gnu.org>
4606 * w32menu.c (simple_dialog_show): Use unicode message box if available.
4607 (MessageBoxW_Proc): New function typedef.
4608 (unicode-message-box): New function pointer.
4609 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
4611 2010-08-13 Jan Djärv <jan.h.d@swipnet.se>
4613 * frame.h (Qtool_bar_position): Declare.
4615 * xfns.c (Fx_create_frame): Call x_default_parameter for
4618 2010-08-13 Eli Zaretskii <eliz@gnu.org>
4620 * unexcoff.c: Remove the parts used when "emacs" is not defined.
4621 (report_error, report_error_1): Ditto.
4622 (write_segment): Remove "#if 0" unused code.
4623 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
4624 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
4625 (start_of_text): Remove unused function (was used only if NO_REMAP
4628 * msdos.c (IT_set_face): Fix format string to match argument
4630 (IT_write_glyphs, IT_note_mode_line_highlight)
4631 (IT_set_frame_parameters): Remove unused variables.
4632 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
4633 (IT_set_terminal_modes): Disambiguate expression in if clause.
4634 (Fmsdos_remember_default_colors): Return Qnil.
4635 (IT_set_frame_parameters): Add parens to disambiguate boolean
4636 expression for logging the cursor type to termscript.
4637 (keyboard_layout_list, keypad_translate_map)
4638 (grey_key_translate_map): Add braces in inner initializers.
4639 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
4640 (dos_rawgetc): Remove unused label.
4641 (XMenuActivate): Add braces to remove ambiguous `else'.
4642 (dos_ttraw): Always return a value.
4644 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
4646 * dosfns.h (x_set_title): Declare.
4648 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
4649 Remove unused variables.
4651 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
4653 (init_dosfns): Declare get_lim_data.
4654 (system_process_attributes): Declare Fget_internal_run_time.
4656 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
4657 list to be consistent with menu.h.
4659 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
4660 warnings due to mixing of "char *" and "const char *".
4662 2010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
4664 Introduce a new comment style "c" flag.
4665 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
4666 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
4667 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
4668 (syntax_prefix_flag_p): New function.
4669 (Fstring_to_syntax): Understand new "c" flag.
4670 (Finternal_describe_syntax_value): Recognize new flag; use the
4671 SYNTAX_FLAGS_* macros.
4672 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
4673 comment style to accomodate the new styles.
4674 (back_comment, forw_comment, Fforward_comment, scan_lists)
4675 (scan_sexps_forward): Update code to obey the new comment style flag.
4677 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
4679 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
4681 2010-08-11 Jan Djärv <jan.h.d@swipnet.se>
4683 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
4685 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
4687 * gtkutil.h (xg_check_special_colors): Declare.
4689 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
4690 (xg_create_frame_widgets): Connect theme name changes to
4693 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
4694 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
4695 (x_term_init): Use char[] display_opt and name_opt instead of
4696 string literal. file is const char*.
4698 * xsmfns.c (NOSPLASH_OPT): Change to char[].
4699 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
4700 props. Free them at the end.
4702 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
4704 * xrdb.c (get_system_app): Make path const and use char *p for
4707 * xmenu.c (Fx_popup_dialog): error_name is const char*.
4708 (xmenu_show): error parameter is const char **. pane_string is const
4710 (button_names): Is const char *.
4711 (xdialog_show): error_name and pane_string is const.
4713 * process.h (synch_process_death): Is const char*.
4715 * w32menu.c (w32_menu_show):
4716 * nsmenu.m (ns_menu_show): error parameter is const char **.
4718 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
4721 * menu.c (Fx_popup_menu): error_name is const.
4723 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
4724 with unsigned char and XtPointer with void *.
4726 * gtkutil.h: Replace widget_value with struct _widget_value.
4727 (enum button_type, struct _widget_value): Remove and use the one from
4730 * gtkutil.c (get_utf8_string): Always return an allocated string.
4732 (create_dialog, xg_create_one_menuitem, create_menus)
4733 (xg_item_label_same_p, xg_update_menu_item): Free result from
4735 (xg_separator_p, xg_item_label_same_p): label is const.
4737 * font.h (font_open_by_name): Make name const.
4739 * font.c (font_open_by_name): Make name const.
4741 * floatfns.c (matherr): Use a const char* variable for x->name.
4743 * emacs.c (main): Pass char[] to putenv instead of literal.
4745 * callproc.c (synch_process_death): Make const.
4746 (Fcall_process): Make signame const.
4748 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
4749 (addDisplayItemWithImage): Use const char*.
4751 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
4752 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
4754 * nsfont.m (ns_descriptor_to_entity): Use const char*.
4756 * keyboard.h (_widget_value): name, value and key are const char*.
4758 * unexmacosx.c (unexec_error): Use const char *.
4760 2010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
4762 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
4763 (font_parse_name, font_open_by_name):
4764 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
4765 (font_parse_name, font_open_by_name): Remove const.
4767 2010-08-09 Andreas Schwab <schwab@linux-m68k.org>
4769 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
4772 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
4773 * m/amdx86-64.h: Likewise.
4774 * m/arm.h: Likewise.
4775 * m/hp800.h: Likewise.
4776 * m/ia64.h: Likewise.
4777 * m/ibmrs6000.h: Likewise.
4778 * m/ibms390.h: Likewise.
4779 * m/intel386.h: Likewise.
4780 * m/iris4d.h: Likewise.
4781 * m/m68k.h: Likewise.
4782 * m/macppc.h: Likewise.
4783 * m/mips.h: Likewise.
4784 * m/sh3.h: Likewise.
4785 * m/sparc.h: Likewise.
4786 * m/template.h: Likewise.
4787 * m/vax.h: Likewise.
4788 * m/xtensa.h: Likewise.
4789 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
4793 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
4795 2010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
4797 Use const char* instead of char*.
4798 Reduce the number of warnings with -Wwrite-strings.
4799 * xrdb.c (get_environ_db, get_system_name):
4800 * unexelf.c (find_section):
4801 * term.c (string_cost, string_cost_one_line, per_line_cost)
4802 (get_named_tty, init_tty):
4803 * sysdep.c (sys_subshell):
4804 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
4805 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
4806 * search.c (Freplace_match):
4807 * process.c (Fmake_network_process, send_process, init_process):
4808 * lread.c (Fload, init_lread):
4809 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
4810 * keyboard.c (parse_tool_bar_item, struct event_head):
4811 * gtkutil.h (xg_get_font_name):
4812 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
4813 (make_widget_for_menu_item, make_menu_item, create_menus)
4814 (xg_make_tool_item):
4815 * font.c (parse_matrix, font_parse_name):
4816 * floatfns.c (rounding_driver, float_error_fn_name):
4817 * filelock.c (get_boot_time_1, lock_file_1):
4818 * fileio.c (barf_or_query_if_file_exists, check_writable):
4819 * editfns.c (get_system_name, get_operating_system_release)
4820 (Fencode_time, Fset_time_zone_rule):
4821 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
4822 * buffer.c (defvar_per_buffer): Use const.
4824 2010-08-08 Kenichi Handa <handa@m17n.org>
4826 * charset.c: Include <stdlib.h>.
4827 (struct charset_sort_data): New struct.
4828 (charset_compare): New function.
4829 (Fsort_charsets): New function.
4830 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
4832 * coding.c (decode_coding_iso_2022): Fix checking of dimension
4833 number in CTEXT extended segment.
4835 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
4837 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
4838 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
4840 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
4842 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
4843 (Fhash_table_size): Fix typos in docstrings.
4844 (Fmake_hash_table): Doc fix.
4846 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
4848 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
4851 2010-08-08 Ken Brown <kbrown@cornell.edu>
4853 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
4854 the MSDOS definition.
4856 2010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
4858 Use const char* instead of char*.
4859 * xterm.c (x_create_toolkit_scroll_bar):
4860 * xfont.c (xfont_list_pattern):
4861 * xfns.c (x_default_scroll_bar_color_parameter)
4862 (xic_create_fontsetname, x_default_font_parameter)
4864 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
4865 (store_mode_line_string, decode_mode_spec, display_string):
4866 * menu.c (digest_single_submenu):
4867 * keymap.h (initial_define_key, initial_define_lispy_key):
4868 * keymap.c (initial_define_key, initial_define_lispy_key):
4869 * image.c (image_error, image_keyword):
4870 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
4871 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
4872 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
4873 (ftfont_list, ftfont_match):
4874 * frame.c (frame_parm_table):
4875 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
4876 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
4877 (font_add_log, font_deferred_log):
4878 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
4879 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
4880 (font_add_log, font_deferred_log):
4881 * emacs.c (argmatch):
4882 * dispextern.h (struct it):
4883 * coding.c (ENCODE_DESIGNATION):
4884 * charset.c (define_charset_internal): Use const.
4886 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
4888 * xrdb.c: Remove include guard.
4889 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
4890 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
4891 realloc->xrealloc instead of using #defines.
4893 2010-08-08 Eli Zaretskii <eliz@gnu.org>
4895 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
4896 * editfns.c (Fline_beginning_position, Fline_end_position):
4897 State in the doc strings that start and end of line are in the
4900 * xdisp.c (display_line): Move the handling of overlay arrow after
4901 the call to find_row_edges. (Bug#6699)
4903 2010-08-07 Chong Yidong <cyd@stupidchicken.com>
4905 * keyboard.c (command_loop_1):
4906 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
4908 2010-08-07 Chong Yidong <cyd@stupidchicken.com>
4910 * insdel.c (prepare_to_modify_buffer): Save active region text to
4911 Vsaved_region_selection.
4913 * xselect.c (QPRIMARY): Move to keyboard.c.
4915 * keyboard.c (Vselect_active_regions): Move from simple.el.
4916 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
4917 (command_loop_1): Set window selection prior to deactivating the mark.
4919 2010-08-07 Juanma Barranquero <lekktu@gmail.com>
4921 * alloc.c (lisp_malloc):
4922 * buffer.c (set_buffer_internal, set_buffer_internal_1):
4923 * charset.h (emacs_mule_charset):
4924 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
4925 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
4927 * lisp.h (Fcheck_coding_system, Fget_text_property)
4928 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
4929 Remove duplicate declarations.
4931 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
4933 * process.c: Simplify include logic.
4935 * keyboard.h (quit_char): Add declaration.
4936 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
4937 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
4940 * w32.c: Remove the above declarations.
4942 Remove extern declarations in .c files, .h files have them.
4949 * eval.c: Remove declarations.
4951 * frame.c (frame_params): Make const.
4953 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
4955 * emacs.c (emacs_copyright, emacs_version): Make static.
4956 (Vinitial_window_system, Vauto_save_list_file_name)
4957 (Vinhibit_redisplay): Remove declarations.
4958 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
4961 Use const for some arrays and functions.
4962 * xterm.h (xg_set_icon_from_xpm_data):
4963 * xfns.c (xg_set_icon_from_xpm_data):
4965 * keyboard.c (lispy_accent_keys, lispy_function_keys)
4966 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
4967 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
4968 (frame.c frame_parms):
4969 * emacs-icon.h (gnu_xpm_bits):
4970 * callint.c (callint_argfuns): Use const.
4972 2010-08-06 Jan Djärv <jan.h.d@swipnet.se>
4974 * sysdep.c: Move include term.h last of includes (Bug#6812).
4976 2010-08-06 Eli Zaretskii <eliz@gnu.org>
4978 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
4980 * msdos.c (IT_display_cursor): Log cursor position on termscript.
4982 * .gdbinit (pgx): Display the avoid_cursor_p flag.
4984 2010-08-06 Juanma Barranquero <lekktu@gmail.com>
4986 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
4988 2010-08-06 Jan Djärv <jan.h.d@swipnet.se>
4990 * xterm.h (x_get_focus_frame): Declare.
4992 * keyboard.h (poll_for_input_1): Unconditionally declare.
4994 * nsterm.h (x_set_menu_bar_lines): Declare.
4996 * window.c: Don't include menu.h, it depends on lots of other .h-files.
4998 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
5000 * window.c: Include menu.h.
5002 * unexmacosx.c (print_region_list, print_regions)
5003 (build_region_list, find_emacs_zone_regions)
5004 (unexec_regions_merge, read_load_commands, dump_it)
5005 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
5007 * term.c: Check HAVE_SYS_IOCTL_H.
5009 * sysdep.c: Check HAVE_TERM_H.
5011 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
5013 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
5014 (ns_ring_bell, ns_defined_color, hide_hourglass)
5015 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
5016 Convert to ANSI C prototypes.
5017 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
5020 * nsterm.h : Include sysselect.h.
5021 (x_sync, x_get_focus_frame, x_set_mouse_position)
5022 (x_set_mouse_pixel_position, x_make_frame_visible)
5023 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
5024 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
5025 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
5026 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
5029 * nsmenu.m (popup_activated, name_is_separator)
5030 (syms_of_nsmenu): Convert to ANSI C prototypes.
5031 (runMenuAt): Prototypes and move declarations before code.
5033 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
5035 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
5038 * nsfns.m (have_menus_p, ns_display_info_for_name)
5039 (x_set_cursor_type, ns_appkit_version_str)
5040 (ns_appkit_version_int, ns_do_applescript)
5041 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
5042 (syms_of_nsfns): Convert to ANSI C prototypes.
5044 * menu.h (x_set_menu_bar_line): Declare.
5045 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
5047 * lisp.h (fmod_float): Declare.
5049 * image.c (xpm_scan, xpm_make_color_table_v)
5050 (xpm_put_color_table_v, xpm_get_color_table_v)
5051 (xpm_make_color_table_h, xpm_put_color_table_h)
5052 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
5053 (xpm_load): Convert to ANSI C prototypes.
5055 * emacs.c: Include nsterm.h if HAVE_NS.
5057 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
5059 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
5061 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
5062 subprocesses, only MSDOS does not define HAVE_SOCKETS.
5063 (socket_options): Use const char* for name.
5065 2010-08-06 Juanma Barranquero <lekktu@gmail.com>
5067 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
5069 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
5070 Don't declare xmalloc_widget_value and digest_single_submenu.
5072 * w32font.c (Qlatin): Remove declaration.
5074 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
5076 * dired.c (compile_pattern): Restore declaration.
5078 2010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
5080 Remove extern declarations in .c files, .h files have them.
5107 * xterm.c: Remove declarations.
5109 Cleanup syssignal.h.
5110 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
5111 (main_thread): Move down to remove #ifdef.
5112 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
5113 Remove conditional definition following unconditional ones.
5115 * lisp.h: Remove HAVE_SHM code, unused.
5116 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
5117 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
5118 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
5119 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
5120 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
5121 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
5122 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
5123 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
5124 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
5125 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
5126 (Qwindow_scroll_functions, Vafter_load_alist)
5127 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
5128 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
5129 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
5130 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
5131 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
5132 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
5133 (initial_argv, last_nonmenu_event, load_in_progress)
5134 (noninteractive_need_newline, scroll_margin): Add declarations.
5136 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
5137 Remove declarations, menu.h has them.
5138 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
5139 (Vinput_method_function, Qinput_method_function)
5140 (Qevent_symbol_element_mask, last_event_timestamp):
5141 * dispextern.h (Voverflow_newline_into_fringe):
5142 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
5143 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
5144 (syms_of_w32font, syms_of_nsfont):
5145 * fontset.h (find_font_encoding, Qlatin):
5146 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
5147 (Vtool_bar_mode, set_frame_menubar):
5148 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
5149 * xterm.h (Qx_gtk_map_stock):
5150 * keymap.h (meta_prefix_char): Add declarations.
5152 * term.c: Remove dead code.
5154 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
5155 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
5156 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
5157 which is what was there before BSD_PGRPS was removed.
5159 2010-08-05 Eli Zaretskii <eliz@gnu.org>
5161 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
5163 * unexcoff.c: Renamed from unexec.c.
5165 2010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
5167 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
5169 2010-08-03 Johan Bockgård <bojohan@gnu.org>
5171 * data.c (Flocal_variable_p): Handle variable aliases correctly.
5174 2010-08-02 Jan Djärv <jan.h.d@swipnet.se>
5176 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
5177 to TRUE if depth of screen is < 16.
5179 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
5181 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
5182 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
5183 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
5185 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
5187 * xterm.h (USE_GTK_TOOLTIP): New define.
5188 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
5190 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
5191 to Control-D (Bug#6771).
5193 2010-08-02 Juanma Barranquero <lekktu@gmail.com>
5195 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
5196 Wording by Drew Adams <drew.adams@oracle.com>.
5198 2010-08-01 Jan Djärv <jan.h.d@swipnet.se>
5200 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
5203 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
5204 calling gtk_widget_queue_draw.
5205 (x_free_frame_resources): Call xg_free_frame_widgets.
5207 * xfns.c (x_gtk_use_system_tooltips): New variable.
5208 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
5209 new gtkutil tooltip functions to show the tooltip.
5210 (Fx_hide_tip): Call xg_hide_tooltip.
5211 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
5213 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
5214 (xg_show_tooltip, xg_hide_tooltip): Declare.
5216 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
5217 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
5219 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
5220 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
5221 Remove code that is commented out.
5223 2010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
5225 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
5227 2010-07-31 Chong Yidong <cyd@stupidchicken.com>
5229 * xselect.c (x_own_selection): Use list4.
5231 2010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
5233 * buffer.c (Qwindow): Do not define, already defined in data.c.
5234 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
5236 2010-07-29 Chad Brown <yandros@mit.edu>
5238 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
5239 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
5240 * config.in: Undef HAVE_DIRENT_H.
5241 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
5242 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
5244 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
5246 Rename s/usg5-4.h -> s/usg5-4-common.h.
5247 * s/usg5-4.h: Rename file to ...
5248 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
5251 * s/irix6-5.h: Update includes accordingly.
5253 2010-07-29 Jan Djärv <jan.h.d@swipnet.se>
5255 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
5257 * xterm.h (struct x_output): Add toolbar_top_height,
5258 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
5259 Remove toolbar_height.
5260 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
5261 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
5262 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
5263 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
5265 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
5267 * xfns.c (x_set_tool_bar_position): New function.
5268 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
5269 (x_frame_parm_handlers): Add x_set_tool_bar_position.
5270 (syms_of_xfns): If USE_GTK, provide move-toolbar.
5272 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
5273 and FRAME_TOOLBAR_LEFT_WIDTH.
5275 * gtkutil.h (xg_change_toolbar_position): Declare.
5277 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
5278 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
5279 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
5280 (xg_create_frame_widgets): Create a hobox for placing widgets
5281 vertically. Use gtk_box_pack_start.
5282 (xg_height_or_width_changed): Rename from xg_height_changed.
5283 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
5284 (xg_update_frame_menubar, free_frame_menubar): Change to
5285 xg_height_or_width_changed.
5286 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
5287 size correctly. Remove hardcoded 4, instead use handlebox size -
5289 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
5290 size correctly. Use handlebox size + toolbar size as additional size.
5291 (xg_pack_tool_bar): POS is a new parameter.
5292 Set orientation of tool bar based on pos.
5293 Only make handlebox_widget if NULL.
5294 Check if tool bar goes to vbox or hbox depending on pos.
5295 (xg_update_tool_bar_sizes): New function.
5296 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
5297 height, call xg_update_tool_bar_sizes instead.
5298 (free_frame_tool_bar): Remove from hbox or vbox depending on
5299 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
5300 (xg_change_toolbar_position): New function.
5302 * frame.h (struct frame): Add tool_bar_position.
5305 * frame.c (Qtool_bar_position): New variable.
5306 (make_frame): Set tool_bar_position to Qtop.
5307 (frame_parms): Add tool-bar-position.
5308 (x_report_frame_params): Store tool_bar_position.
5309 (x_set_fringe_width): Reset wm size hint after fringe changes.
5311 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
5313 Make lisp_time_argument declaration work on all systems.
5314 * lisp.h (lisp_time_argument): Move declaration ...
5315 * systime.h (lisp_time_argument): ... here
5316 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
5318 2010-07-29 Jan Djärv <jan.h.d@swipnet.se>
5320 * vm-limit.c (POINTER): Add typedef for it.
5321 (start_of_data): Change return type from POINTER to char *.
5323 * frame.h (Qtty_color_mode): Move declaration out of ifdef
5326 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
5328 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
5329 Remove reference to __osf__, unused.
5331 * mem-limits.h: Remove duplicated includes.
5332 (NULL): Remove definition, unused.
5333 (POINTER): Remove definition.
5334 (start_of_data): Use char* in prototype, as the function
5337 Remove extern declarations from .c files, and them to .h files.
5338 * keyboard.h (Qhelp_echo, waiting_for_input)
5339 (input_available_clear_time, ignore_mouse_drag_p)
5340 (Vdouble_click_time, real_this_command, Vthis_original_command):
5341 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
5342 (Voverriding_local_map_menu_flag):
5343 * lisp.h (Qinteractive_form, use_file_dialog)
5344 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
5345 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
5346 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
5347 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
5348 (Qfunction, debug_on_next_call, Qfield)
5349 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
5350 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
5351 (Qfile_directory_p, Qinsert_file_contents)
5352 (Qcompletion_ignore_case, Qcompletion_ignore_case)
5353 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
5354 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
5355 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
5356 (Qminibuffer_prompt)
5357 (Vtemporary_file_directory,char_ins_del_vector, Qface):
5358 * xterm.h (gray_bitmap_width, gray_bitmap_height)
5359 (gray_bitmap_bits, xic_create_fontsetname):
5360 * coding.h (Vtranslation_table_for_input): Add extern declarations.
5362 * xsmfns.c (Vuser_login_name):
5363 * xrdb.c (Vdouble_click_time):
5364 * xfaces.c (xic_create_fontsetname):
5365 * w32select.c (waiting_for_input):
5366 * print.c (minibuffer_auto_raise):
5367 * msdos.c (Qhelp_echo):
5368 * macros.c (real_this_command):
5369 * keymap.c (Voverriding_local_map):
5370 * xterm.c (poll_for_input_1, gray_bitmap_width)
5371 (gray_bitmap_height, gray_bitmap_bits;
5372 * xmenu.c ( Voverriding_local_map)
5373 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
5374 (use_file_dialog, Xt_app_con):
5375 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
5376 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
5377 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
5378 (Qtool_bar_lines, ignore_mouse_drag_p):
5379 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
5380 (Qrear_nonsticky, nconc2):
5381 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
5382 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
5383 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
5384 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
5385 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
5386 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
5388 * doc.c (Voverriding_local_map, Qremap):
5389 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
5390 (Vcompletion_regexp_list):
5391 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
5392 (Qcompletion_ignore_case):
5393 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
5394 (Vhistory_length, Vthis_original_command, real_this_command)
5395 (Qface, Qminibuffer_prompt, history_delete_duplicates):
5396 * image.c (Qrisky_local_variable):
5397 * fontset.c (QCname):
5398 * fns.c (minibuffer_auto_raise, QCname):
5399 * dispnew.c (char_ins_del_cost):
5400 * composite.c (font_fill_lglyph_metrics):
5401 * cmds.c (Qface, Vtranslation_table_for_input):
5402 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
5403 * ccl.c (charset_unicode):
5404 * callproc.c (Vtemporary_file_directory):
5405 * buffer.c (emacs_strerror): Remove extern declarations.
5407 * data.c (Qwindow): Make non-static, used from other files too.
5408 * frame.c (validate_x_resource_name): Remove shadow definition for i.
5410 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
5411 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
5412 * s/usg5-4.h (COFF):
5414 * s/msdos.h (COFF, NO_REMAP):
5415 * s/ms-w32.h (NO_REMAP):
5416 * s/hpux10-20.h (NO_REMAP):
5417 * m/sparc.h (SEGMENT_MASK):
5418 * m/m68k.h (NO_REMAP):
5419 * m/intel386.h (SEGMENT_MASK):
5420 * m/arm.h (NO_REMAP):
5422 * m/template.h: Remove references to unused defines.
5424 2010-07-28 Jan Djärv <jan.h.d@swipnet.se>
5426 * xsettings.c (Ftool_bar_get_system_style): Also check for
5429 * xdisp.c (Qtext_image_horiz): Define.
5430 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
5431 to documentation of tool-bar-style.
5433 * lisp.h (Qtext_image_horiz): Declare.
5435 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
5436 style text_image_horiz.
5438 2010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
5440 * emacs.c (Fkill_emacs): Remove return statement.
5442 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
5443 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
5444 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys):
5445 Remove local extern declarations.
5447 * xmenu.c: Do not included lwlib.h, not needed.
5449 * m/iris4d.h (XUINT, XSET): Remove, not needed.
5451 * process.c: Move definitions earlier to minimize #ifdefs.
5453 * xterm.h (x_get_customization_string, x_load_resources)
5454 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
5455 (x_check_errors, x_property_data_to_lisp, defined_color)
5456 (xic_set_xfontset, x_defined_color): Use const.
5458 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
5459 (x_text_icon, x_check_errors, x_connection_closed): Use const.
5461 * xselect.c (selection_data_to_lisp_data)
5462 (x_property_data_to_lisp):
5463 * xrdb.c (x_get_string_resource, file_p)
5464 (x_get_customization_string, magic_file_p, search_magic_path)
5465 (get_system_app, get_user_app, x_load_resources, x_get_resource)
5466 (x_get_string_resource): Use const.
5468 * xfns.c: Include xlwmenu.h when USE_LUCID.
5469 (x_defined_color, xic_set_xfontset): Use const.
5470 (Fx_hide_tip): Remove local extern declaration.
5472 * xfaces.c (Qmouse_face): Remove declaration.
5473 (face_color_gray_p, tty_defined_color, defined_color)
5474 (face_color_gray_p, face_color_supported_p): Add const.
5476 * xdisp.c (do_mouse_tracking): Remove declaration.
5477 (add_to_log): Use const.
5479 * minibuf.c (Qmouse_face): Remove declaration.
5481 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
5483 * keyboard.h (do_mouse_tracking): Add declaration.
5485 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
5486 (QCdata, QCtype, Qcenter): Remove declarations.
5488 * frame.c (x_get_resource_string, x_get_string_resource)
5489 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
5490 (x_default_parameter): Use const.
5492 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
5493 (QCheight, QCsize, QCname): Remove declarations.
5495 * emacs.c (main): Remove local extern declaration.
5497 * editfns.c (region_limit, syms_of_editfns): Remove local extern
5500 * dispnew.c: Remove duplicate #include <unistd.h>.
5501 (update_window, update_frame_1, init_display): Remove local extern
5504 * dispextern.h (add_to_log): Remove declaration.
5505 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
5506 (x_frame_get_and_record_arg, x_default_parameter): Add const.
5508 * dired.c (scmp): Add const.
5509 (directory_files_internal): Remove local extern declaration.
5511 * data.c (Finteractive_form): Use const.
5513 * composite.c (syms_of_composite): Remove local extern declarations.
5515 * charset.c (add_to_log): Remove declaration.
5517 * character.c (strwidth, parse_str_to_multibyte): Add const.
5519 * character.h (strwidth, parse_str_to_multibyte): Likewise.
5521 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
5523 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
5524 (Lisp_Subr): Make doc and intspec constant.
5525 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
5526 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
5527 (QCheight, QCsize, QCname, QCwidth, QCforeground)
5528 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
5529 (display_arg): Add declarations.
5531 2010-07-27 Christoph Scholtes <cschol2112@gmail.com>
5533 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
5535 * window.c (Fwindow_height): Doc fix (bug#6518).
5537 2010-07-27 Juanma Barranquero <lekktu@gmail.com>
5539 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
5541 2010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
5543 * keyboard.c (Ftop_level, Fexit_recursive_edit)
5544 (Fabort_recursive_edit): Remove return statements in NO_RETURN
5547 * frame.h (Qtty_color_mode): Add declaration.
5549 * lisp.h (Ftop_level, Fexit_recursive_edit)
5550 (Fabort_recursive_edit): Mark as NO_RETURN.
5552 2010-07-26 Kenichi Handa <handa@m17n.org>
5554 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
5555 number of glyphs gets smaller than the original length. (Bug#6621)
5557 2010-07-26 Juanma Barranquero <lekktu@gmail.com>
5559 * lread.c (unreadpure, mapatoms_1): Make static.
5561 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
5563 * terminfo.c (tparam): Fix prototype of tparm.
5565 2010-07-25 Andreas Schwab <schwab@linux-m68k.org>
5567 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
5568 find start of text segment.
5569 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
5572 * callproc.c (set_initial_environment): Avoid unbalanced braces.
5574 2010-07-25 Ken Brown <kbrown@cornell.edu>
5576 * vm-limit.c (check_memory_limits): Fix previous change;
5577 accidentally reverted an earlier change.
5579 2010-07-25 Ken Brown <kbrown@cornell.edu>
5581 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
5582 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
5584 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
5586 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
5587 * dired.c (opendir, readdir): Fix prototypes.
5588 * editfns.c (w32_get_internal_run_time): Fix prototypes.
5589 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
5590 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
5591 (telldir): Remove declaration.
5592 * ralloc.c (real_morecore, __morecore): Fix prototypes.
5593 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
5594 * syssignal.h (strsignal): Fix prototype.
5595 * term.c (tparam): Fix prototype.
5596 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
5597 (term_get_fkeys): Set inside "#ifndef DOS_NT".
5598 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
5600 * w32gui.h (XParseGeometry): Fix prototype.
5601 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
5602 * w32term.c (my_set_focus): Declare inside #if 0.
5603 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
5604 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
5605 (drain_message_queue, get_next_msg, post_msg, parse_button)
5606 (ClipboardSequence_Proc): Fix prototypes.
5607 (wait_for_sync): Remove declaration.
5609 2010-07-24 Juanma Barranquero <lekktu@gmail.com>
5611 * w32fns.c (w32_to_x_color): Remove, unused.
5613 2010-07-24 Andreas Schwab <schwab@linux-m68k.org>
5615 * lisp.h: Remove leftover P_.
5617 2010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
5619 * ecrt0.c, unexalpha.c: Remove files, unused.
5621 2010-07-24 Andreas Schwab <schwab@linux-m68k.org>
5623 * cmds.c (internal_self_insert): Make static.
5624 * lisp.h (internal_self_insert): Remove declaration.
5626 2010-07-23 Juanma Barranquero <lekktu@gmail.com>
5628 * alloc.c (free_float):
5629 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
5630 * frame.c (delete_frame_handler):
5631 * ralloc.c (reorder_bloc):
5632 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
5633 Remove unused static functions.
5635 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
5636 it is called only from NS code.
5638 * w32term.c (my_set_focus): #ifdef away; it is called only from
5641 * w32fns.c (x_edge_detection):
5642 * xfaces.c (may_use_scalable_font_p):
5643 Remove obsolete static declarations.
5645 2010-07-20 Juanma Barranquero <lekktu@gmail.com>
5647 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
5648 (emacs_blocked_realloc, uninterrupt_malloc):
5649 * fringe.c (w32_reset_fringes):
5650 * image.c (convert_mono_to_color_image, lookup_rgb_color)
5651 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
5652 * sound.c (be2hs, do_play_sound):
5653 * vm-limit.c (get_lim_data, ret_lim_data):
5654 * w32term.c (x_free_frame_resources):
5655 * xfaces.c (x_create_gc, x_free_gc):
5656 Convert definitions to standard C.
5658 2010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
5660 * eval.c (Feval, Ffuncall): Use the new names.
5662 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
5663 (DEFUN): Add braces around the union initialisation and use ## to
5664 specify the right union alternative and avoid a cast.
5666 2010-07-18 Juanma Barranquero <lekktu@gmail.com>
5668 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
5670 2010-07-17 Chong Yidong <cyd@stupidchicken.com>
5672 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
5674 2010-07-17 Jan Djärv <jan.h.d@swipnet.se>
5676 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
5677 is related to the menu bar (Bug#6499).
5678 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
5680 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
5682 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
5684 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
5686 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
5687 i.e. don't put back ButtonRelease (Bug#6608).
5689 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
5690 instead of Window. Call xg_event_is_for_menubar when
5693 * gtkutil.h (xg_event_is_for_menubar): Declare.
5695 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
5697 2010-07-16 Eli Zaretskii <eliz@gnu.org>
5699 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
5700 when it's the same as the old foreground. (Bug#6609)
5702 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
5704 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
5705 widget is non-null (Bug#6645).
5707 2010-07-15 Andreas Schwab <schwab@linux-m68k.org>
5709 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
5710 Convert old-style definition.
5712 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
5715 2010-07-15 Eli Zaretskii <eliz@gnu.org>
5717 * fringe.c (update_window_fringes): Restore mistakenly reverted
5718 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
5720 2010-07-14 Jan Djärv <jan.h.d@swipnet.se>
5722 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
5723 (SET_SAVED_KEY_EVENT): Remove (not used).
5724 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
5725 remove size parameter.
5726 (handle_one_xevent): Check popup_activated () for menu for Xt also.
5727 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
5728 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
5730 (x_set_window_size_1): scroll_bar_actual_width is always
5731 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
5733 * xdisp.c (pending_menu_activation): Remove extern declaration.
5734 (prepare_menu_bars): Remove setting of pending_menu_activation.
5736 * xmenu.c (pending_menu_activation): Remove.
5737 (x_activate_menubar): Set popup_activated_flag for Xt also.
5738 Remove setting of pending_menu_activation.
5739 (set_frame_menubar): Remove check of pending_menu_activation.
5740 Declare menubar_size before code. Correct spelling in comment.
5742 2010-07-14 Kenichi Handa <handa@m17n.org>
5744 * font.c (font_open_entity): Cancel previous change.
5745 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
5747 2010-07-13 Eli Zaretskii <eliz@gnu.org>
5749 Remove subprocesses #ifdefs.
5750 * process.c <inhibit_sentinels>: Move to the common part.
5751 (Fwaiting_for_user_input_p): Move to the common part; return nil
5752 if async subprocesses aren't supported.
5753 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
5754 MS-DOS. Remove "#ifdef subprocesses".
5755 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
5756 (gettimeofday): Remove "#ifdef subprocesses".
5757 (wait_without_blocking): Remove function.
5758 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
5759 Remove "#ifdef subprocesses".
5760 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
5762 * callproc.c (Fcall_process) [!MSDOS]: Don't call
5763 wait_for_termination on MS-DOS.
5764 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
5765 initialization of inhibit_sentinels.
5766 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
5767 subprocesses" conditional.
5768 * callproc.c (Fcall_process) [!subprocesses]: Don't call
5769 wait_for_termination, since `buffer' cannot be an integer when
5770 async subprocesses are not supported
5771 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
5772 for ifdefing away the call to Fprocess_status.
5774 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
5775 away the entire body of the function.
5777 2010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
5779 Remove subprocesses #ifdefs from term.c.
5780 * process.c (add_keyboard_wait_descriptor)
5781 (delete_keyboard_wait_descriptor): Move to common section, do
5782 nothing when subprocesses is not defined.
5783 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
5784 Remove subprocesses #ifdefs.
5786 Convert maybe_fatal to standard C.
5787 * lisp.h (verror): Declare.
5788 * eval.c (verror): New function containing the code from ...
5789 (error): ... this. Call verror.
5790 * term.c (vfatal): New function containing the code from ...
5791 (fatal): ... this. Call vfatal.
5792 (maybe_fatal): Convert to standard C, use variable number of
5793 arguments. Declare as non-return.
5794 (init_tty): Fix maybe_fatal call.
5796 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
5798 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
5799 (_scroll_bar_note_movement): Convert definitions to standard C.
5800 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
5801 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
5803 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
5805 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
5806 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
5807 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
5808 (xaw_jump_callback, xaw_scroll_callback)
5809 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
5810 (x_wm_set_size_hint, x_activate_timeout_atimer):
5811 Convert definitions to standard C.
5812 * xmenu.c (menubar_id_to_frame, popup_get_selection)
5813 (popup_activate_callback, popup_deactivate_callback)
5814 (menu_highlight_callback, menubar_selection_callback)
5815 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
5816 (free_frame_menubar, popup_selection_callback, as)
5817 (create_and_show_popup_menu, dialog_selection_callback)
5818 (create_and_show_dialog):
5819 * xfns.c (hack_wm_protocols, x_window):
5820 * xfaces.c (x_update_menu_appearance):
5821 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
5822 (char_to_pixel_size, round_size_to_char, get_wm_shell)
5823 (set_frame_size, update_wm_hints, setup_frame_gcs)
5824 (update_various_frame_slots, update_from_various_frame_slots)
5825 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
5826 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
5827 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
5829 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
5831 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
5833 2010-07-12 Eli Zaretskii <eliz@gnu.org>
5835 * process.c (setup_process_coding_systems): Move to the part
5836 shared by non-subprocesses systems, and make its body empty when
5837 subprocesses is not defined.
5838 (close_process_descs): Move to the part shared by non-subprocesses
5840 (wait_reading_process_output) [!subprocesses]: Convert arg list to
5843 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
5845 * editfns.c (transpose_markers): Convert old-style definition.
5846 * emacs.c (abort, shut_down_emacs, fixup_locale)
5847 (synchronize_system_time_locale)
5848 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
5849 * floatfns.c (extract_float, matherr, init_floatfns)
5850 (syms_of_floatfns): Likewise.
5851 * fns.c (make_hash_table): Likewise.
5852 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
5853 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
5854 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
5855 (ftfont_variation_glyphs): Likewise.
5856 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
5857 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
5858 * lread.c (read_filtered_event): Likewise.
5859 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
5860 * process.c (wait_reading_process_output): Likewise.
5861 * scroll.c (do_line_insertion_deletion_costs): Likewise.
5862 * search.c (search_buffer, boyer_moore): Likewise.
5863 * syntax.c (scan_sexps_forward): Likewise.
5864 * xdisp.c (try_scrolling): Likewise.
5865 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
5866 (face_at_string_position): Likewise.
5867 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
5868 * xselect.c (x_get_window_property, receive_incremental_selection)
5869 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
5871 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
5873 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
5875 * callproc.c (child_setup): Remove subprocesses conditional.
5876 Remove code dealing with SET_EMACS_PRIORITY, unused.
5878 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
5879 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
5881 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
5882 (__do_global_dtors, __main): Use void in definition.
5883 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
5884 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
5885 the only users from ...
5886 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
5887 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
5888 (HAVE_VOLATILE): Remove, unused.
5890 Convert more function definitions to standard C.
5891 * xdisp.c (window_box_edges, handle_single_display_spec)
5892 (display_string): Convert definition to standard C.
5893 * scroll.c (do_direct_scrolling, scrolling_1):
5894 * dispnew.c (allocate_matrices_for_frame_redisplay)
5895 (mirrored_line_dance):
5896 * coding.c (code_convert_string):
5897 * charset.c (map_charset_chars):
5898 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
5899 (Fregister_ccl_program, Fregister_code_conversion_map):
5900 * keyboard.c (kbd_buffer_nr_stored): Likewise.
5901 (head_table): Make static and const.
5903 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
5905 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
5906 (PROFILING_LDFLAGS): Set from substitution.
5907 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
5910 2010-07-12 Kenichi Handa <handa@m17n.org>
5912 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
5913 (shortlisp): Likewise.
5915 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
5917 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
5918 of FONT_ENTITY_INDEX.
5919 (Ffont_get): If KEY is :otf and the font-object doesn't have the
5920 property, get the property value dynamically.
5921 (Ffont_put): Accept font-entity and font-object too.
5922 (Ffont_get_glyhphs): Rename from Fget_font_glyphs. Arguments and
5923 return value changed.
5924 (syms_of_font): Adjust for the above change.
5926 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
5928 * blockinput.h: Remove obsolete comment.
5930 * lisp.h: Include <stddef.h>.
5931 (OFFSETOF): Don't define.
5932 (VECSIZE): Use offsetof instead of OFFSETOF.
5933 (PSEUDOVECSIZE): Likewise.
5934 * process.c (conv_sockaddr_to_lisp): Likewise.
5935 * alloc.c: Don't include <stddef.h>.
5936 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
5938 * process.c: Remove obsolete comment.
5940 2010-07-11 Chong Yidong <cyd@stupidchicken.com>
5942 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
5944 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
5946 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
5948 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
5949 * editfns.c (Fuser_full_name, Fformat): Likewise.
5950 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
5951 * fileio.c (Ffile_symlink_p): Likewise.
5952 * filelock.c (current_lock_owner): Likewise.
5953 * font.c (font_parse_name, font_parse_family_registry): Likewise.
5954 * fontset.c (fontset_pattern_regexp): Likewise.
5955 * lread.c (read1): Likewise.
5956 * sysdep.c (init_system_name): Likewise.
5957 * xfns.c (select_visual): Likewise.
5958 * s/hpux10-20.h (index, rindex): Don't define.
5959 * s/ms-w32.h (index): Likewise.
5960 * s/usg5-4.h: Likewise.
5962 * callproc.c (relocate_fd): Use F_DUPFD if defined.
5964 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
5965 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
5966 (egetenv): Likewise.
5967 * doprnt.c (doprnt): Likewise.
5968 * editfns.c (set_time_zone_rule, format2): Likewise.
5969 * emacs.c (decode_env_path): Likewise.
5970 * eval.c (signal_error, error): Likewise.
5971 * insdel.c (replace_range_2): Likewise.
5972 * keyboard.c (cmd_error_internal): Likewise.
5973 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
5974 * print.c (write_string, write_string_1, print_error_message):
5976 * vm-limit.c (warn_function, memory_warnings): Likewise.
5977 * xdisp.c (message1, message1_nolog, message_with_string)
5978 (vmessage, message, message_nolog): Likewise.
5979 * emacs.c: Remove duplicate declaration.
5980 * keyboard.h: Likewise.
5981 * lisp.h: Update prototypes.
5983 * eval.c: Fix indentation problem.
5985 * keyboard.c: Include "process.h"
5987 * eval.c: Remove obsolete noinline declaration.
5990 2010-07-11 Ken Raeburn <raeburn@raeburn.org>
5992 * doprnt.c (doprnt): Take a va_list argument instead of count and
5994 * eval.c (error): Change to a standard-C variadic function.
5995 * xdisp.c (vmessage): Rename from message, made static, and
5996 changed to take a va_list argument.
5997 (message): New variadic wrapper.
5998 (message_nolog): Now a variadic function, calling vmessage.
5999 * lisp.h: Include stdarg.h for va_list.
6000 (doprnt, error, message, message_nolog): Decls updated.
6002 2010-07-11 Eli Zaretskii <eliz@gnu.org>
6004 * process.c (syms_of_process) <delete-exited-processes>: Define
6005 even if !subprocesses.
6006 (delete_exited_processes): Ditto.
6008 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
6009 (delete_exited_processes): Don't define.
6011 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
6013 * frame.c (make_frame): Initialize menu_bar_lines and
6014 tool_bar_lines members.
6015 (make_initial_frame, make_terminal_frame):
6016 Initialize menu_bar_lines using value of menu-bar-mode.
6018 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
6020 2010-07-10 Eli Zaretskii <eliz@gnu.org>
6022 * process.c: Reshuffle #include's. Condition some of the global
6023 and static variables on `subprocesses'.
6024 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
6025 Leave only one implementation.
6026 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
6027 (kill_buffer_processes, Flist_system_processes)
6028 (Fprocess_attributes, init_process, syms_of_process): Unify the
6029 implementations for with subprocesses and without them.
6031 2010-07-09 Jan Djärv <jan.h.d@swipnet.se>
6033 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
6034 correct size for Motif.
6035 (free_frame_menubar): Call x_set_window_size to update frame size.
6037 * xfns.c (x_window): Set borderWidth to 0 for pane and
6038 EmacsFrame. Frame size calculation is wrong otherwise.
6040 2010-07-09 Michael Albinus <michael.albinus@gmx.de>
6042 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
6043 allows to suppress errors when polling in Emacs' main loop.
6044 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
6045 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
6046 (Fdbus_method_error_internal, Fdbus_send_signal)
6047 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
6048 (Fdbus_register_method): Use it. (Bug#6579)
6050 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
6052 * alloc.c: Convert DEFUNs to standard C.
6120 * xsmfns.c: Likewise.
6122 2010-07-08 Eli Zaretskii <eliz@gnu.org>
6124 * process.c (kbd_is_on_hold, hold_keyboard_input)
6125 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
6127 2010-07-08 Jan Djärv <jan.h.d@swipnet.se>
6129 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
6130 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
6133 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
6135 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
6138 Clean up include guards.
6139 * tparam.c: Remove include guards for config.h, string.h and code
6140 that assumes #ifndef emacs.
6148 Remove prefix-args.c
6149 * prefix-args.c: Remove file.
6150 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
6151 * Makefile.in (temacs${EXEEXT}): Remove references to
6152 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
6153 (mostlyclean): Remove reference to prefix-args.
6154 (prefix-args): Remove.
6156 Simplify cstart_of_data, start_of_code and related code.
6157 * mem-limits.h: Remove !emacs and _LIBC conditional code.
6158 (start_of_data): Merge into start_of_data function.
6159 * sysdep.c (start_of_text): Remove. Move simplified versions of
6160 it in the only users: unexaix.c and unexec.c.
6161 (read_input_waiting): Remove local declaration of quit_char.
6162 (start, etext): Remove declarations.
6163 (start_of_data): Merge with the version in mem-limits.h and move
6165 * vm-limit.c (start_of_data): Merged and simplified version of the
6166 code formerly in mem-limits.h and sysdep.c.
6167 * unexec.c (start): New declaration, moved from sysdep.c.
6168 (start_of_text): Simplified version of the code formerly in sysdep.c.
6169 * unexaix.c (start_of_text): Simplified version of the code
6170 formerly in sysdep.c.
6171 * m/alpha.h (HAVE_TEXT_START): Remove.
6172 (TEXT_START): Move ...
6173 * unexalpha.c (TEXT_START): ... here.
6174 * s/hpux10-20.h (TEXT_START): Remove.
6175 * s/darwin.h (TEXT_START):
6176 * m/mips.h (TEXT_START):
6177 * m/macppc.h (HAVE_TEXT_START):
6178 * m/m68k.h (TEXT_START):
6179 * m/iris4d.h (TEXT_START):
6180 * m/intel386.h (TEXT_START):
6181 * m/ibmrs6000.h (TEXT_START):
6182 * m/ia64.h (HAVE_TEXT_START):
6183 * s/msdos.h (TEXT_START): Likewise.
6185 2010-07-07 Andreas Schwab <schwab@linux-m68k.org>
6187 * alloc.c (overrun_check_malloc, overrun_check_realloc)
6188 (overrun_check_free, xstrdup, allocate_string)
6189 (allocate_string_data, compact_small_strings, Fmake_string)
6190 (make_unibyte_string, make_multibyte_string)
6191 (make_string_from_bytes, make_specified_string, make_float)
6192 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
6193 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
6194 memcpy, memmove, memset, memcmp.
6195 * atimer.c (start_atimer, set_alarm): Likewise.
6196 * buffer.c (clone_per_buffer_values, report_overlay_modification)
6197 (mmap_realloc, init_buffer_once): Likewise.
6198 * callint.c (Fcall_interactively): Likewise.
6199 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
6200 (getenv_internal_1): Likewise.
6201 * casefiddle.c (casify_object): Likewise.
6202 * ccl.c (ccl_driver): Likewise.
6203 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
6204 * charset.c (load_charset_map_from_file)
6205 (load_charset_map_from_file, load_charset_map_from_vector)
6206 (Fdefine_charset_internal): Likewise.
6207 * cm.c (Wcm_clear): Likewise.
6208 * coding.c (decode_eol, decode_coding_object)
6209 (Fset_coding_system_priority, make_subsidiaries): Likewise.
6210 * data.c (Faset): Likewise.
6211 * dired.c (directory_files_internal, file_name_completion_stat):
6213 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
6214 (clear_glyph_row, copy_row_except_pointers)
6215 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
6216 (save_current_matrix, restore_current_matrix)
6217 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
6218 (mirror_line_dance, scrolling_window): Likewise.
6219 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
6221 * doprnt.c (doprnt): Likewise.
6222 * editfns.c (Fuser_full_name, make_buffer_string_both)
6223 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
6224 * emacs.c (sort_args): Likewise.
6225 * eval.c (Fapply, Ffuncall): Likewise.
6226 * fileio.c (Ffile_name_directory, make_temp_name)
6227 (Fexpand_file_name, search_embedded_absfilename)
6228 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
6229 (auto_save_error): Likewise.
6230 * fns.c (Fstring_equal, Fcopy_sequence, concat)
6231 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
6232 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
6233 (Fmake_hash_table): Likewise.
6234 * fringe.c (Fdefine_fringe_bitmap): Likewise.
6235 * ftfont.c (ftfont_text_extents): Likewise.
6236 * getloadavg.c (getloadavg): Likewise.
6237 * image.c (define_image_type, make_image, make_image_cache)
6238 (x_create_x_image_and_pixmap, xbm_image_p)
6239 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
6240 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
6241 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
6242 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
6243 (tiff_image_p, tiff_read_from_memory, gif_image_p)
6244 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
6246 * indent.c (scan_for_column, compute_motion): Likewise.
6247 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
6248 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
6249 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
6250 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
6251 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
6252 (store_user_signal_events, menu_bar_items, tool_bar_items)
6253 (process_tool_bar_item, append_tool_bar_item)
6254 (read_char_minibuf_menu_prompt, read_key_sequence)
6255 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
6257 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
6259 * lisp.h (STRING_COPYIN): Likewise.
6260 * lread.c (Fload, read1, oblookup): Likewise.
6261 * msdos.c (Frecent_doskeys): Likewise.
6262 * nsfns.m (Fx_create_frame): Likewise.
6263 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
6265 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
6266 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
6268 * nsmenu.m (ns_update_menubar): Likewise.
6269 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
6270 * print.c (print_unwind, printchar, strout, print_string)
6271 (print_error_message): Likewise.
6272 * process.c (conv_lisp_to_sockaddr, set_socket_option)
6273 (Fmake_network_process, Fnetwork_interface_list)
6274 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
6275 (init_process): Likewise.
6276 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
6277 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
6279 * scroll.c (do_scrolling, do_direct_scrolling)
6280 (scrolling_max_lines_saved): Likewise.
6281 * search.c (search_buffer, wordify, Freplace_match): Likewise.
6282 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
6283 * syntax.c (skip_chars, skip_syntaxes): Likewise.
6284 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
6285 (emacs_set_tty): Likewise.
6286 * term.c (encode_terminal_code, calculate_costs)
6287 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
6289 * termcap.c (tgetst1, gobble_line): Likewise.
6290 * termhooks.h (EVENT_INIT): Likewise.
6291 * tparam.c (tparam1): Likewise.
6292 * unexalpha.c (unexec): Likewise.
6293 * unexec.c (write_segment): Likewise.
6294 * unexmacosx.c (unexec_write_zero): Likewise.
6295 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
6296 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
6297 * w32font.c (w32font_list_family, w32font_text_extents)
6298 (w32font_list_internal, w32font_match_internal)
6299 (w32font_open_internal, compute_metrics, Fx_select_font):
6301 * w32menu.c (set_frame_menubar, add_menu_item)
6302 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
6303 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
6304 * w32uniscribe.c (uniscribe_list_family): Likewise.
6305 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
6306 * window.c (make_window, replace_window, set_window_buffer)
6307 (Fsplit_window): Likewise.
6308 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
6309 (add_to_log, message3, x_consider_frame_title)
6310 (append_space_for_newline, extend_face_to_end_of_line)
6311 (decode_mode_spec_coding, init_glyph_string): Likewise.
6312 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
6313 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
6314 (face_attr_equal_p, make_realized_face, make_face_cache)
6315 (free_realized_faces, lookup_named_face, smaller_face)
6316 (face_with_height, lookup_derived_face)
6317 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
6318 (Finternal_set_font_selection_order, realize_default_face)
6319 (compute_char_face, face_at_buffer_position)
6320 (face_for_overlay_string, face_at_string_position, merge_faces):
6322 * xfns.c (xic_create_fontsetname, Fx_create_frame)
6323 (Fx_window_property, x_create_tip_frame)
6324 (Fx_backspace_delete_keys_p): Likewise.
6325 * xfont.c (xfont_list, xfont_match, xfont_list_family)
6326 (xfont_text_extents): Likewise.
6327 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
6328 * xrdb.c (magic_file_p, x_get_resource): Likewise.
6329 * xselect.c (x_queue_event, x_get_window_property)
6330 (receive_incremental_selection): Likewise.
6331 * xsmfns.c (x_session_check_input): Likewise.
6332 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
6333 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
6335 * character.h (BCOPY_SHORT): Removed.
6336 * config.in: Regenerate.
6337 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
6338 * emacs.c (main) [PROFILING]: Don't declare
6339 dump_opcode_frequencies.
6340 * lisp.h (safe_bcopy): Remove declaration.
6341 (memset) [!HAVE_MEMSET]: Declare.
6342 (memcpy) [!HAVE_MEMCPY]: Likewise.
6343 (memmove) [!HAVE_MEMMOVE]: Likewise.
6344 (memcmp) [!HAVE_MEMCMP]: Likewise.
6345 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
6346 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
6348 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
6349 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
6350 (BCOPY_DOWNWARD_SAFE): Don't define.
6351 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
6352 (memcpy) [!HAVE_MEMCPY]: Define.
6353 (memmove) [!HAVE_MEMMOVE]: Define.
6354 (memcmp) [!HAVE_MEMCMP]: Define.
6356 2010-07-07 Jan Djärv <jan.h.d@swipnet.se>
6358 * process.c (kbd_is_on_hold): New variable.
6359 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
6361 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
6362 select on empty input mask.
6363 (init_process): Initialize kbd_is_on_hold to 0.
6365 * process.h (hold_keyboard_input, unhold_keyboard_input)
6366 (kbd_on_hold_p): Declare.
6368 * keyboard.c (input_available_signal): Declare.
6369 (kbd_buffer_nr_stored): New function.
6370 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
6371 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
6372 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
6373 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
6374 (tty_read_avail_input): If input is on hold, return.
6375 Don't read more that free slots in kbd_buffer (Bug#6571).
6377 2010-07-07 Eli Zaretskii <eliz@gnu.org>
6382 * w16select.c: Convert function definitions to ANSI C.
6384 * msdos.h (ctrl_break_func, install_ctrl_break_check):
6385 Remove unused prototypes.
6387 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
6389 * coding.c, sysdep.c: Convert some more functions to standard C.
6391 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
6393 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
6394 (encode_coding_object): Use SPECPDL_INDEX.
6395 (syms_of_coding): Use DOS_NT.
6397 2010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
6399 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
6401 Make the function member of Lisp_Subr use standard C prototypes.
6402 * lisp.h (struct Lisp_Subr): Use a union for the function member.
6403 (DECL_ALIGN): Add a cast for the function.
6404 * eval.c (Feval, Ffuncall): Use the proper type for each type
6407 2010-07-06 Chong Yidong <cyd@stupidchicken.com>
6409 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
6410 fringe face id, so face-remapping-alist works (Bug#6091).
6412 2010-07-06 Juanma Barranquero <lekktu@gmail.com>
6414 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
6415 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
6416 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
6418 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
6420 * xterm.c (x_get_keysym_name): Change type of parameter to int.
6421 * lisp.h: Declare x_get_keysym_name.
6422 * keyboard.c (modify_event_symbol): Don't declare
6423 x_get_keysym_name here.
6425 2010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
6427 * ecrt0.c: Revert conversion to standard C.
6429 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
6431 * vm-limit.c (memory_warnings):
6432 * keyboard.c (modify_event_symbol):
6433 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
6434 (round2, emacs_rint):
6435 * process.c (send_process, old_sigpipe): Convert function
6436 definitions and declarations to standard C.
6438 2010-07-05 Juanma Barranquero <lekktu@gmail.com>
6440 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
6441 * xdisp.c: Convert function definitions to standard C.
6443 * cm.c (cmputc): Arg C is now int, not char.
6444 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
6446 2010-07-05 James Cloos <cloos@jhcloos.com>
6448 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
6450 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
6451 _NET_WM_ICON_NAME atoms.
6453 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
6454 and _NET_WM_ICON_NAME properties, too, matching what is
6455 done in the Gtk+ case.
6457 2010-07-05 Jan Djärv <jan.h.d@swipnet.se>
6459 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
6461 * xsmfns.c (SSDATA): New macro.
6462 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
6463 passed to strlen/strcpy/strcat.
6464 (create_client_leader_window): Surround with #ifndef USE_GTK.
6465 Cast 7:th arg to XChangeProperty to (unsigned char *).
6467 * xsettings.c (something_changedCB, parse_settings)
6468 (apply_xft_settings): Reformat prototype.
6469 (something_changedCB, init_gconf): Remove unused variable i.
6470 (read_settings): Remove unused variable long_len.
6472 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
6473 (xg_get_image_for_pixmap, create_dialog)
6474 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
6475 (menuitem_highlight_callback, make_menu_item)
6476 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
6477 (xg_create_scroll_bar, xg_update_scrollbar_pos)
6478 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
6479 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
6480 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
6481 (xg_tool_bar_item_expose_callback): Reformat prototype.
6482 (xg_update_menubar): GList *group => GSList *group.
6483 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
6485 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
6486 to GTK_IMAGE (wimage).
6488 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
6490 * atimer.c: Use "" instead of <> for local includes for
6491 consistency with the rest of the code.
6493 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
6494 * xrdb.c (get_system_name):
6495 * window.c (shrink_windows):
6496 * syntax.c (forw_comment):
6497 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
6499 * mem-limits.h (start_of_data):
6500 * lread.c (readevalloop):
6501 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
6502 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
6503 * frame.c (x_get_focus_frame):
6504 * floatfns.c (fmod_float):
6505 * fileio.c (choose_write_coding_system):
6506 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
6507 (malloc_initialize_hook, sort_args, synchronize_locale):
6508 * doprnt.c (doprnt):
6509 * dired.c (compile_pattern):
6510 * data.c (fmod_float):
6511 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
6512 (map_char_table_for_charset):
6513 * charset.c (define_charset_internal):
6514 * alloc.c (Fgarbage_collect): Convert declarations or definitions
6517 2010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
6518 Stefan Monnier <monnier@iro.umontreal.ca>
6520 * lread.c (read1): Fix up last change to not mess up `c'.
6522 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
6524 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
6526 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
6530 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
6531 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
6532 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
6533 arg, as required by internal_condition_case_1.
6534 * print.c (strout): Use const char* for arg PTR.
6535 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
6536 (analyse_first): Fix "const const".
6537 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
6538 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
6539 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
6541 2010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
6543 * alloc.c: Convert function definitions to standard C.
6617 * xterm.c: Likewise.
6619 2010-07-03 Eli Zaretskii <eliz@gnu.org>
6621 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
6622 frames other than the initial one. Fix reversal of colors when
6623 `reverse' is specified in the frame parameters.
6624 Call update_face_from_frame_parameter instead of
6625 internal-set-lisp-face-attribute. Initialize screen colors from
6626 initial_screen_colors[] when f->default_face_done_p is zero,
6627 instead of depending on being called with default-frame-alist as
6630 * xfaces.c (update_face_from_frame_parameter): Move out of
6631 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
6632 with HAVE_WINDOW_SYSTEM.
6634 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
6635 to menu-bar-mode, if not set in the frame parameters or in
6636 default-frame-alist.
6638 * w32console.c (sys_tputs): Adjust argument list to prototype in
6641 2010-07-03 Juanma Barranquero <lekktu@gmail.com>
6643 * lisp.h (memory_warnings): Fix prototype.
6645 * cm.h (evalcost): Fix prototype.
6647 * cm.c (evalcost): Fix arg type.
6649 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
6651 * term.c (term_clear_mouse_face, Fidentity):
6652 * syssignal.h (signal_handler_t):
6653 * lisp.h (memory_warnings):
6654 * coding.h (preferred_coding_system):
6656 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
6658 2010-07-02 Eli Zaretskii <eliz@gnu.org>
6660 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
6663 * msdos.h (load_pixmap): Don't define away.
6665 2010-07-02 Jan Djärv <jan.h.d@swipnet.se>
6668 * atimer.h: Remove define for P_.
6670 * alloc.c: Remove __P and P_ from .c and .m files.
6732 * xterm.c: Likewise.
6734 Remove P_ and __P macros.
6735 * atimer.h: Remove P_ and __P macros.
6773 * xterm.h: Likewise.
6775 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
6777 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
6780 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
6781 * syssignal.h: Remove code for Lynx, not supported anymore.
6782 * vm-limit.c: Remove unused code the depends on emacs not being
6783 defined and NO_LIM_DATA being defined.
6784 * mem-limits.h: Remove dead code.
6786 2010-07-01 Jan Djärv <jan.h.d@swipnet.se>
6788 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
6790 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
6791 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
6793 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
6794 parameters, they are already absolute.
6796 * nsterm.m (x_set_window_size, initFrameFromEmacs):
6797 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
6799 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
6801 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
6802 Update FRAME_TOOLBAR_HEIGHT.
6804 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
6805 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
6807 2010-06-30 Chong Yidong <cyd@stupidchicken.com>
6809 * frame.c (get_future_frame_param, Fmake_terminal_frame):
6810 Don't check default-frame-alist.
6812 2010-06-30 Andreas Schwab <schwab@linux-m68k.org>
6814 * process.c (create_process): Avoid using invalid file descriptors.
6816 * callproc.c (child_setup): Avoid closing a file descriptor twice.
6818 2010-06-30 Jan Djärv <jan.h.d@swipnet.se>
6820 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
6821 Improve documentation. Return font regardless of use_system_font.
6822 (syms_of_xsettings): Improve documentation for font-use-system-font.
6824 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
6826 * xfaces.c (realize_face): Garbage the frame if a face is removed
6829 2010-07-05 Andreas Schwab <schwab@linux-m68k.org>
6831 * keyboard.c: Remove duplicate <setjmp.h>.
6832 (read_key_sequence): Remove volatile qualifiers.
6834 2010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6836 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
6837 (struct glyph_row): New members left_fringe_offset and
6838 right_fringe_offset.
6840 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
6842 * w32term.c (w32_draw_fringe_bitmap): Likewise.
6843 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
6845 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
6846 Take account of bitmap offset.
6847 (draw_window_fringes): Take account of window vscroll.
6848 (update_window_fringes): Likewise. Extend top-aligned top indicator
6849 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
6850 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
6851 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
6853 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
6855 * w32fns.c (Qtooltip): Declare.
6856 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
6858 2010-07-03 Jan Djärv <jan.h.d@swipnet.se>
6860 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
6861 grab on just Press (Bug#6499).
6863 2010-07-02 Chong Yidong <cyd@stupidchicken.com>
6865 * frame.c (Qtooltip): New var.
6866 (delete_frame): Use it. Fix faulty if statement. Don't update
6867 mode line for tooltip frames. Suggested by Martin Rudalics.
6869 * xfns.c (x_create_tip_frame):
6870 * w32fns.c (x_create_tip_frame): Use it.
6872 2010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
6874 * xftfont.c (xftfont_open): Check font width one by one also when
6877 * ftfont.c (ftfont_open): Ditto.
6879 2010-06-30 Glenn Morris <rgm@gnu.org>
6881 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
6883 * Makefile.in (CANNOT_DUMP): Update for configure name change.
6885 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
6886 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
6887 * s/darwin.h (SYSTEM_MALLOC):
6888 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
6890 2010-06-29 Jan Djärv <jan.h.d@swipnet.se>
6892 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
6893 (ns_get_screen): Don't assign integer to f.
6894 (Fx_display_color_cells): Declarations before statements.
6896 2010-06-28 Jan Djärv <jan.h.d@swipnet.se>
6898 * xfns.c (x_default_font_parameter): Remove got_from_system
6901 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
6902 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper):
6903 New defines based on what configure finds.
6905 * xterm.c (XTflash): Use gtk_widget_get_window.
6906 (xg_scroll_callback): Use gtk_adjustment_get_upper and
6907 gtk_adjustment_get_page_size.
6908 (handle_one_xevent): Use gtk_widget_get_mapped.
6909 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
6912 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
6914 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
6915 HAVE_GTK_FILE_SELECTION_NEW.
6917 * gtkutil.c (xg_display_open, xg_display_close):
6918 Remove HAVE_GTK_MULTIDISPLAY, it is always defined.
6919 (xg_display_open): Return type is void.
6920 (gtk_widget_set_has_window)
6921 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
6922 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
6923 (gtk_adjustment_set_page_increment)
6924 (gtk_adjustment_get_step_increment): #define these if not found
6926 (remove_submenu): New define based on Gtk+ version.
6927 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar):
6928 Use gtk_widget_get_window.
6929 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
6930 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
6931 (create_dialog): Use gtk_dialog_get_action_area and
6932 gtk_dialog_get_content_area.
6933 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
6934 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
6935 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
6936 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item):
6937 Use g_object_ref and g_object_unref.
6938 (xg_update_menu_item, xg_tool_bar_menu_proxy):
6939 Use gtk_widget_get_sensitive.
6940 (xg_update_submenu): Use remove_submenu.
6941 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
6942 properties instead to get old x and y position.
6943 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
6944 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
6945 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
6946 (xg_get_tool_bar_widgets): New function.
6947 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
6948 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
6949 (toolbar_set_orientation): New #define based on if configure
6950 finds gtk_orientable_set_orientation.
6951 (xg_create_tool_bar): Call toolbar_set_orientation.
6952 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
6953 instead of gtk_box_pack_start_defaults.
6955 2010-06-28 Chong Yidong <cyd@stupidchicken.com>
6957 * cmds.c (Fdelete_backward_char): Move into Lisp.
6959 2010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
6961 * s/freebsd.h (BSD4_2): Remove redundant definition.
6962 bsd-common.h defines it already.
6964 2010-06-27 Chong Yidong <cyd@stupidchicken.com>
6966 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
6967 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
6968 tool-bar-mode, which are now set using these X resources at
6969 startup, to determine the defaults (Bug#2249).
6971 * w32fns.c (Fx_create_frame):
6972 * nsfns.m (Fx_create_frame): Likewise.
6974 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
6976 2010-06-24 Juanma Barranquero <lekktu@gmail.com>
6978 * gtkutil.c (xg_update_scrollbar_pos):
6979 Avoid C99 mid-block variable declaration.
6981 2010-06-22 Jan Djärv <jan.h.d@swipnet.se>
6983 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
6985 * gtkutil.h (xg_show_scroll_bar): Remove.
6987 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
6988 if height is less than scroll bar min size.
6989 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
6991 * xfns.c (x_default_font_parameter): Try to open font from system
6992 before using it (bug#6478). Rename got_from_gconf to got_from_system.
6994 2010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
6996 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
6998 2010-06-20 Eli Zaretskii <eliz@gnu.org>
7000 * xdisp.c (try_scrolling): When scroll-conservatively is set to
7001 most-positive-fixnum, be extra accurate when scrolling window
7002 start, to avoid missing the cursor line.
7004 2010-06-19 Eli Zaretskii <eliz@gnu.org>
7006 * xdisp.c (try_scrolling): Compute the limit for searching point
7007 in forward scroll from scroll_max, instead of an arbitrary limit
7009 See http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
7011 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
7014 2010-06-16 Glenn Morris <rgm@gnu.org>
7016 * editfns.c (Fbyte_to_string): Pacify compiler.
7018 2010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
7020 * lread.c (read1): Phase out old-style backquotes a bit more.
7022 2010-06-12 Eli Zaretskii <eliz@gnu.org>
7024 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
7027 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
7029 * bidi.c (bidi_initialize): Remove explicit initialization of
7030 bidi_type_table; include biditype.h instead. Don't support
7031 entries whose second codepoint is zero. Initialize bidi_mirror_table.
7032 (bidi_mirror_char): Use bidi_mirror_table.
7034 * biditype.h: New file.
7036 * bidimirror.h: New file.
7038 * window.c (syms_of_window): Doc fix (bug#6409).
7040 2010-06-12 Romain Francoise <romain@orebokech.com>
7042 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
7045 2010-06-10 Glenn Morris <rgm@gnu.org>
7047 * editfns.c (Fbyte_to_string): Pacify compiler.
7049 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
7051 2010-06-26 Andreas Schwab <schwab@linux-m68k.org>
7053 * alloc.c (Fmake_byte_code): Don't access undefined argument
7056 2010-06-25 Chong Yidong <cyd@stupidchicken.com>
7058 * xdisp.c (next_element_from_image): Ensure that after-strings are
7059 read the next time we hit handle_stop (Bug#1336).
7061 2010-06-23 Andreas Schwab <schwab@linux-m68k.org>
7063 * lread.c (read1): Signal error if #s is not followed by paren.
7065 2010-06-19 Chong Yidong <cyd@stupidchicken.com>
7067 * image.c (free_image): Mark frame as garbaged (Bug#6426).
7069 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
7071 2010-06-15 Glenn Morris <rgm@gnu.org>
7073 * editfns.c (Fbyte_to_string): Pacify compiler.
7075 2010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
7077 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
7078 Check `object's type before accessing its guts.
7080 2010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
7082 * s/usg5-4.h: Fix previous change.
7083 Suggested by Lawrence Mitchell <wence@gmx.li>
7085 2010-06-08 Andreas Schwab <schwab@linux-m68k.org>
7087 * minibuf.c (Fall_completions): Add more checks.
7089 2010-06-08 Juanma Barranquero <lekktu@gmail.com>
7091 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
7093 2010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
7095 * lread.c (X_OK): Remove, unused.
7097 * dispnew.c: Remove obsolete comment.
7099 Remove INCLUDED_FCNTL.
7100 * xterm.c (INCLUDED_FCNTL):
7101 * callproc.c (INCLUDED_FCNTL):
7102 * alloc.c (INCLUDED_FCNTL):
7103 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
7104 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
7106 2010-06-07 Martin Rudalics <rudalics@gmx.at>
7108 * window.c (Fselect_window): Move `record_buffer' up to the
7109 beginning of this function, so the buffer gets recorded
7110 even if the selected window does not change.
7111 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
7113 2010-06-07 Juanma Barranquero <lekktu@gmail.com>
7115 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
7116 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
7118 2010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
7120 Remove BSTRING related code, all platforms define it.
7121 * s/usg5-4.h (BSTRING): Remove definition.
7122 * s/template.h (BSTRING):
7123 * s/msdos.h (BSTRING):
7124 * s/ms-w32.h (BSTRING):
7125 * s/hpux10-20.h (BSTRING):
7126 * s/gnu-linux.h (BSTRING):
7127 * s/darwin.h (BSTRING):
7128 * s/cygwin.h (BSTRING):
7129 * s/bsd-common.h (BSTRING):
7130 * s/aix4-2.h (BSTRING): Likewise.
7131 * sysdep.c: Remove code depending on BSTRING not being defined.
7133 2010-06-05 Juanma Barranquero <lekktu@gmail.com>
7135 Remove obsolete macro BASE_LEADING_CODE_P.
7136 * character.h (BASE_LEADING_CODE_P): Remove.
7137 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
7138 * buffer.c (Fset_buffer_multibyte):
7139 * indent.c (scan_for_column, compute_motion):
7140 * insdel.c (count_combining_before, count_combining_after):
7141 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
7143 2010-06-04 Juanma Barranquero <lekktu@gmail.com>
7145 Turn `directory-sep-char' into a noop.
7147 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
7148 (DIRECTORY_SEP): Define unconditionally.
7150 * s/ms-w32.h (DIRECTORY_SEP): Remove.
7152 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
7153 call dostounix_filename directly.
7155 * fileio.c (CORRECT_DIR_SEPS): Remove.
7156 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
7157 (Fsubstitute_in_file_name): Use dostounix_filename instead.
7158 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
7159 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
7161 * w32proc.c (CORRECT_DIR_SEPS): Remove.
7162 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
7164 2010-06-03 Andreas Schwab <schwab@linux-m68k.org>
7166 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
7169 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
7171 * ccl.c (Fccl_program_p): Fix typo in docstring.
7173 2010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
7175 Move UNEXEC definition to autoconf.
7176 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
7177 * s/sol2-10.h (UNEXEC):
7178 * s/irix6-5.h (UNEXEC):
7179 * s/hpux10-20.h (UNEXEC):
7180 * s/gnu-linux.h (UNEXEC):
7181 * s/darwin.h (UNEXEC):
7182 * s/cygwin.h (UNEXEC):
7183 * s/bsd-common.h (UNEXEC):
7184 * s/aix4-2.h (UNEXEC):
7185 * m/alpha.h (UNEXEC): Likewise.
7186 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
7188 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
7190 Remove obsolete pre-unicode2 macros.
7191 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
7192 * composite.c (composition_reseat_it):
7194 * fns.c (Ffillarray):
7195 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
7196 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
7198 2010-06-03 Juri Linkov <juri@jurta.org>
7200 * buffer.c (Fother_buffer): Add CHECK_FRAME.
7201 (Fswitch_to_buffer): Remove unused variable `err'.
7203 2010-06-03 Glenn Morris <rgm@gnu.org>
7205 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
7207 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
7208 now that AH_BOTTOM does it.
7210 * m/hp800.h (HAVE_ALLOCA):
7211 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
7213 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
7214 Remove NOT_C_CODE tests, it is always true now.
7216 2010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
7218 Fix config.h includes.
7226 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
7229 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
7231 * s/sol2-6.h: Remove obsolete comments.
7233 Remove unnecessary alloca.h includes.
7234 * keymap.c: Do not include alloca.h, config.h does that.
7235 * sysdep.c: Likewise. Do not define fwrite, not used.
7237 2010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
7239 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
7240 the HAVE_TERMIO where it belongs (bug#6149).
7242 2010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
7244 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
7247 2010-05-30 Eli Zaretskii <eliz@gnu.org>
7249 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
7250 state is always cached (bug#6306).
7252 2010-05-29 Eli Zaretskii <eliz@gnu.org>
7254 Fix cursor motion in bidi-reordered continued lines.
7255 * xdisp.c (try_cursor_movement): Backup to non-continuation line
7256 only after finding point's row. Fix the logic. Rewrite the loop
7257 over continuation lines in bidi-reordered buffers.
7258 Return CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
7259 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
7261 2010-05-28 Michael Albinus <michael.albinus@gmx.de>
7263 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
7265 2010-05-28 Kenichi Handa <handa@m17n.org>
7267 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
7268 Don't sheck SPEC if it is nil.
7269 (font_list_entities): Call font_delete_unmatched if
7270 Vface_ignored_fonts is non-nil. (Bug#6287)
7272 2010-05-28 Glenn Morris <rgm@gnu.org>
7274 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
7276 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
7278 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
7280 (internal_delete_file, Frename_file): Callers changed.
7281 (delete_by_moving_to_trash): Doc fix.
7282 (Fdelete_directory_internal): Don't move to trash.
7284 * callproc.c (delete_temp_file):
7285 * buffer.c (Fkill_buffer): Callers changed.
7287 * lisp.h: Update prototype.
7289 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
7291 * xdisp.c (redisplay_window): After redisplay, check if point is
7292 still valid before setting it (Bug#6177).
7294 2010-05-27 Glenn Morris <rgm@gnu.org>
7296 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
7297 Convert comments to Makefile format.
7299 * Makefile.in (bootstrap-clean): No more Makefile.c.
7301 2010-05-26 Glenn Morris <rgm@gnu.org>
7303 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
7304 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
7306 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
7308 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
7310 2010-05-26 Kenichi Handa <handa@m17n.org>
7312 * composite.c (composition_compute_stop_pos): Fix condition for
7315 2010-05-25 Glenn Morris <rgm@gnu.org>
7317 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
7318 Move before TEMACS_LDFLAGS.
7319 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
7320 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
7322 * Makefile.in (NOT_C_CODE): No longer define.
7323 (config.h): No longer include.
7325 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
7326 variables it may reference.
7328 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
7329 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
7331 2010-05-25 Kenichi Handa <handa@m17n.org>
7333 * dispextern.h (struct composition_it): New members rule_idx and
7336 * xdisp.c (set_iterator_to_next): While scanning backward, assume
7337 that the character positions of IT point the last character of the
7338 current grapheme cluster.
7339 (next_element_from_composition): Don't change character positions
7341 (append_composite_glyph): Set glyph->charpos to
7344 * composite.c (autocmp_chars): Change the first argument to RULE,
7345 and try composition with RULE only.
7346 (composition_compute_stop_pos): Record the index number of the
7347 composition rule in CMP_IT->rule_idx.
7348 (composition_reseat_it): Call autocmp_chars repeatedly until the
7349 correct rule of the composition is found.
7350 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
7351 is at the last character of the current grapheme cluster when
7352 CMP_IT->reversed_p is nonzero.
7354 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
7356 * editfns.c (Fbyte_to_string): New function.
7358 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
7360 * process.c (Fmake_network_process): Set :host to nil if it's not used.
7361 Suggested by Masatake YAMATO <yamato@redhat.com>.
7363 2010-05-23 Eli Zaretskii <eliz@gnu.org>
7365 * dispextern.h (init_iterator): Sync prototype with changed definition.
7367 2010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
7369 * s/netbsd.h: If terminfo is found, use it in preference to
7370 termcap. (Bug#6190) [Backport from trunk]
7372 2010-05-19 Eli Zaretskii <eliz@gnu.org>
7374 Redesign and reimplement bidi-aware edge positions of glyph rows.
7376 * dispextern.h (struct glyph_row): New members minpos and maxpos.
7377 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
7378 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
7379 and maxpos members instead of start.pos and end.pos, respectively.
7381 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
7382 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
7383 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
7384 (try_window_reusing_current_matrix, try_window_id):
7385 Use ROW->minpos rather than ROW->start.pos.
7386 (init_from_display_pos, init_iterator): Use EMACS_INT for
7387 character and byte positions.
7388 (find_row_edges): Rename from find_row_end. Accept additional
7389 arguments for minimum and maximum buffer positions seen by
7390 display_line for this row. Don't use iterator to find the
7391 position following the maximum one; instead, increment the
7392 position found by display_line directly. Fix logic; eol_pos
7393 should be tested before the rest. Handle the case of characters
7394 delivered from display vector (bug#6036). Fix tests related to
7395 it->method. Handle the truncated_on_right_p rows.
7396 (RECORD_MAX_MIN_POS): New macro.
7397 (display_line): Use it to record the minimum and maximum buffer
7398 positions for glyphs in the row being assembled. Record the
7399 position of the newline that terminates the line. If word wrap is
7400 in effect, restore minimum and maximum positions seen up to the
7401 wrap point, when iterator returns to it.
7402 (try_window_reusing_current_matrix): Give up if in bidi-reordered
7403 row and cursor not already at point. Restore original pre-bidi
7404 code for unidirectional buffers.
7406 * dispnew.c (increment_row_positions, check_matrix_invariants):
7407 Increment and check row->start.pos and row->end.pos, in addition
7408 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
7410 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
7411 Display truncated_on_left_p and truncated_on_right_p flags.
7413 (pmtxrows): Display the ordinal number of each row. Don't display
7414 rows beyond the last one.
7416 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
7417 it is not copied by bidi_copy_it.
7419 2010-05-22 Eli Zaretskii <eliz@gnu.org>
7421 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
7424 2010-05-22 Chong Yidong <cyd@stupidchicken.com>
7426 * image.c (Fimage_flush): Rename from image-refresh.
7428 2010-05-21 Chong Yidong <cyd@stupidchicken.com>
7430 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
7433 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
7434 (clear_image_cache): If the number of cached images is unusually
7435 large, decrease the cache eviction delay (Bug#6230).
7437 2010-05-21 Glenn Morris <rgm@gnu.org>
7439 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
7440 Move these rules to ns.mk.
7443 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
7445 * Makefile.in (CANNOT_DUMP): New, set by configure.
7446 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
7448 2010-05-20 Juri Linkov <juri@jurta.org>
7450 * fileio.c (Fdelete_file): Change interative spec to use
7451 `read-file-name' like in `find-file-read-args' where the default
7452 value is `default-directory' instead of `buffer-file-name'.
7453 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
7455 2010-05-20 Kevin Ryde <user42@zip.com.au>
7457 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
7458 (Voverriding_terminal_local_map, Vsystem_key_alist)
7459 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
7461 2010-05-20 Glenn Morris <rgm@gnu.org>
7463 * Makefile.in (DEPDIR): New constant.
7464 (DEPFLAGS): Set with configure, not cpp.
7465 (MKDEPDIR): New, set by configure.
7466 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
7467 (clean): Use $DEPDIR.
7468 (deps_frag): Include from configure.
7469 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
7470 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
7472 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state):
7473 Fix reallocation of the cache. (Bug#6210)
7475 2010-05-19 Glenn Morris <rgm@gnu.org>
7477 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
7479 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
7480 (GNULIB_VAR): Remove.
7481 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
7483 * m/ibms390x.h (LINKER):
7484 * m/macppc.h (LINKER) [GNU_LINUX]:
7485 * s/aix4-2.h (ORDINARY_LINK):
7486 * s/cygwin.h (LINKER):
7487 * s/darwin.h (ORDINARY_LINK):
7488 * s/gnu.h (ORDINARY_LINK):
7489 * s/netbsd.h (LINKER):
7490 * s/usg5-4.h (ORDINARY_LINK):
7493 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
7495 2010-05-18 Chong Yidong <cyd@stupidchicken.com>
7497 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
7498 prevent stack overflow if number of arguments is too large
7501 2010-05-18 Juanma Barranquero <lekktu@gmail.com>
7503 * charset.c (load_charset_map_from_file): Don't call close after fclose.
7505 2010-05-18 Glenn Morris <rgm@gnu.org>
7507 * s/gnu-linux.h: Combine two conditionals.
7509 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
7512 * Makefile.in (RALLOC_OBJ): New, set by configure.
7513 (rallocobj): Replace with the previous variable.
7514 (otherobj): Use $RALLOC_OBJ.
7516 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
7517 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
7519 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
7520 (gmallocobj, vmlimitobj): Replace with previous two variables.
7521 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
7523 2010-05-17 Glenn Morris <rgm@gnu.org>
7525 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
7526 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
7528 2010-05-16 Glenn Morris <rgm@gnu.org>
7530 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
7532 * Makefile.in (clean): Get rid of HAVE_NS conditional.
7534 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
7537 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
7538 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
7540 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
7541 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
7542 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
7543 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
7544 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
7546 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
7547 Remove ${STARTFLAGS}, nothing ever sets it.
7549 2010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
7551 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
7553 2010-05-16 Glenn Morris <rgm@gnu.org>
7555 * Makefile.in (LIBX_BASE): Always define.
7557 * Makefile.in (LIBX_OTHER): Move out of cpp section.
7559 * Makefile.in (LIBXT): Always define.
7561 2010-05-15 Glenn Morris <rgm@gnu.org>
7563 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
7565 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
7566 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
7568 2010-05-15 Ken Raeburn <raeburn@raeburn.org>
7570 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
7571 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
7573 * emacs.c (main): Initialize initial-environment and
7574 process-environment before generating from env, not after.
7576 Handle --version reasonably in CANNOT_DUMP configuration.
7577 * emacs.c (emacs_version, emacs_copyright): New string variables.
7578 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
7579 (syms_of_emacs): Defvar them, and initialize them from the C
7581 (main): If initialization hasn't been done, print initial version
7582 info from the C strings, instead of starting an interactive session.
7584 2010-05-15 Eli Zaretskii <eliz@gnu.org>
7586 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
7587 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
7588 (bidi_paragraph_init): Remove redundant assertion that we are at
7589 the beginning of a line after call to bidi_find_paragraph_start.
7591 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
7592 (syms_of_xdisp): Defsubr it.
7594 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
7596 * Makefile.in: Fix MSDOS-related comments.
7598 2010-05-15 Glenn Morris <rgm@gnu.org>
7600 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
7601 (really-lwlib, really-oldXMenu): Always define.
7602 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
7604 * Makefile.in: Simplify cpp conditional.
7606 * Makefile.in (${ns_appdir}): Simplify using umask.
7608 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
7610 2010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
7612 * eval.c (specbind): Remove left-over duplicate test.
7613 Disallow let-binding frame-local vars. Add comment.
7615 2010-05-14 Eli Zaretskii <eliz@gnu.org>
7617 Make the cache of bidi iterator states dynamically allocated.
7618 * bidi.c (bidi_cache_shrink): New function.
7619 (bidi_init_it): Call it.
7620 (bidi_cache_iterator_state): Enlarge the cache if needed.
7622 * bidi.c (bidi_move_to_visually_next): Rename from
7623 bidi_get_next_char_visually. All callers changed.
7625 2010-05-14 Kenichi Handa <handa@m17n.org>
7627 * dispextern.h (struct composition_it): New member reversed_p.
7629 * composite.c (composition_compute_stop_pos): Search backward if
7631 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
7632 Set CMP_IT->reversed_p.
7633 (composition_update_it): Pay attention to CMP_IT->reversed_p.
7635 * xdisp.c (set_iterator_to_next):
7636 Call composition_compute_stop_pos with negative ENDPOS if we are
7637 scanning backward. Call composition_compute_stop_pos if scan
7638 direction is changed.
7639 (next_element_from_buffer): Call composition_compute_stop_pos with
7640 negative ENDPOS if we are scanning backward.
7641 (next_element_from_composition): Pay attention to
7642 IT->cmp_it.reversed_p.
7644 2010-05-14 Kenichi Handa <handa@m17n.org>
7646 * font.c (font_range): Return the range for the font found at first.
7648 2010-05-14 Glenn Morris <rgm@gnu.org>
7650 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
7652 * Makefile.in (mktime, X11, register): Move undefs to configure.
7654 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
7655 (MSDOS_X_OBJ): New variable.
7656 (MSDOS_SUPPORT_REAL): New constant.
7657 (MSDOS_SUPPORT): Set as a variable, not with cpp.
7658 (obj): Use MSDOS_X_OBJ.
7659 (lisp): Use MSDOS_SUPPORT as a variable.
7661 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
7662 (GPM_MOUSE_SUPPORT): Now it's a constant.
7663 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
7666 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
7667 (ns_appresdir): Remove, unused.
7669 * Makefile.in (SHELL): Move outside cpp section.
7671 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
7673 2010-05-13 Glenn Morris <rgm@gnu.org>
7675 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
7676 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
7678 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
7679 HAVE_WINDOW_SYSTEM must be too.
7681 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
7682 (lisp): Remove WINNT_SUPPORT.
7684 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
7685 Let configure set these variables (to empty) in this case as well.
7687 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
7688 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
7690 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
7691 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
7692 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
7693 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
7694 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
7695 the values output by configure.
7696 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
7698 2010-05-12 Glenn Morris <rgm@gnu.org>
7700 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
7701 (LINKER_WAS_SPECIFIED): Remove.
7703 * Makefile.in (LIB_GCC): Set using configure, not cpp.
7704 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
7705 * m/arm.h (LIB_GCC) [GNU_LINUX]:
7706 * s/cygwin.h (LIB_GCC):
7707 * s/freebsd.h (LIB_GCC):
7708 * s/gnu-linux.h (LIB_GCC):
7709 * s/msdos.h (LIB_GCC):
7710 * s/netbsd.h (LIB_GCC):
7713 2010-05-11 Karel Klíč <kklic@redhat.com>
7715 * ftfont.c: Fix incorrect parentheses of #if condition for
7716 definining M17N_FLT_USE_NEW_FEATURE.
7718 2010-05-11 Glenn Morris <rgm@gnu.org>
7720 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
7721 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
7723 2010-05-10 Eli Zaretskii <eliz@gnu.org>
7725 * xdisp.c (init_iterator): Don't turn on bidi reordering in
7726 unibyte buffers. See
7727 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
7729 2010-05-10 Glenn Morris <rgm@gnu.org>
7731 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
7732 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
7733 (LIBES): Use LIBS_SYSTEM as a variable.
7734 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
7735 * s/aix4-2.h (LIBS_SYSTEM):
7736 * s/freebsd.h (LIBS_SYSTEM):
7737 * s/hpux10-20.h (LIBS_SYSTEM):
7738 * s/sol2-6.h (LIBS_SYSTEM):
7739 * s/unixware.h (LIBS_SYSTEM):
7742 * s/aix4-2.h (MAIL_USE_LOCKF):
7743 * s/bsd-common.h (MAIL_USE_FLOCK):
7744 * s/darwin.h (MAIL_USE_FLOCK):
7745 * s/gnu-linux.h (MAIL_USE_FLOCK):
7746 * s/irix6-5.h (MAIL_USE_FLOCK):
7747 * s/template.h (MAIL_USE_FLOCK):
7750 2010-05-08 Chong Yidong <cyd@stupidchicken.com>
7752 * Version 23.2 released.
7754 2010-05-08 Andreas Schwab <schwab@linux-m68k.org>
7756 * composite.c (autocmp_chars): Save point as marker before calling
7757 auto-composition-function (Bug#5984).
7759 * lisp.h (restore_point_unwind): Add prototype.
7761 * fileio.c (restore_point_unwind): Remove static attribute.
7763 2010-05-08 Kenichi Handa <handa@m17n.org>
7765 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
7766 new feature of libotf and m17n-flt.
7767 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
7768 Call OTF_check_features even if no specific feature is given.
7769 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
7770 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
7771 that OUT is NULL. Use OTF_drive_gsub_with_log and
7772 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
7774 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
7775 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
7776 Setup mflt_enable_new_feature and mflt_try_otf.
7778 2010-05-08 Jan Djärv <jan.h.d@swipnet.se>
7780 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
7782 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
7783 box and toolbar (Bug #6139).
7784 (xg_create_tool_bar): Remove comment (Bug #6139).
7785 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
7786 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
7788 2010-05-08 Juanma Barranquero <lekktu@gmail.com>
7790 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
7791 Update dependencies.
7793 2010-05-08 Eli Zaretskii <eliz@gnu.org>
7795 * fringe.c (update_window_fringes): Set up truncation bitmaps for
7798 2010-05-08 Glenn Morris <rgm@gnu.org>
7800 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
7802 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
7803 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
7804 (termcapobj): Replace with TERMCAP_OBJ.
7805 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
7806 (LIBES): Use LIBS_TERMCAP as a variable.
7808 * s/freebsd.h (osreldate.h): No longer include, since this file
7809 does not use __FreeBSD_version any more.
7811 * s/aix4-2.h (TERMINFO):
7812 * s/cygwin.h (TERMINFO):
7813 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
7814 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
7815 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
7816 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
7817 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
7818 * s/irix6-5.h (TERMINFO):
7819 * s/netbsd.h (LIBS_TERMCAP):
7820 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
7821 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
7822 * s/usg5-4.h (TERMINFO):
7825 2010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
7827 * eval.c (unbind_to): Don't unbind a local binding into the global
7828 binding when the local binding disappeared. Inversely, don't unbind
7829 a global binding into a newly created local binding.
7830 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
7831 can specify the frame to use, when applicable. Adjust callers.
7833 2010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
7834 Stefan Monnier <monnier@iro.umontreal.ca>
7836 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
7838 2010-05-07 Eli Zaretskii <eliz@gnu.org>
7840 * w32fns.c: Include w32.h.
7841 (Fw32_shell_execute): Decode the error message before passing it
7842 to `error'. (Bug#6126)
7844 * msdos.c (dos_set_window_size):
7845 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
7846 instead of `XSYMBOL (foo)->value'.
7848 2010-05-07 Eli Zaretskii <eliz@gnu.org>
7850 Fix the MS-DOS build, broken by autoconfiscation.
7852 * Makefile.in: Don't use Make-style comments past the "start of
7854 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
7856 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
7857 edited directly by msdos/sed1v2.inp).
7859 2010-05-07 Glenn Morris <rgm@gnu.org>
7861 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
7862 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
7863 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
7864 move out of cpp section.
7865 * s/freebsd.h (LD_SWITCH_SYSTEM):
7866 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
7867 * s/netbsd.h (LD_SWITCH_SYSTEM):
7868 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
7870 2010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
7872 Define LIB_STANDARD and START_FILES using autoconf.
7873 * s/usg5-4.h (LIB_STANDARD):
7874 * s/netbsd.h (START_FILES):
7875 * s/irix6-5.h (LIB_STANDARD):
7876 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
7877 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
7878 * s/freebsd.h (START_FILES):
7879 * s/darwin.h (START_FILES):
7880 * s/cygwin.h (START_FILES):
7881 * s/aix4-2.h (LIB_STANDARD):
7882 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
7883 * Makefile.in (STARTFILES): Rename to START_FILES, define using
7886 2010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
7888 Remove NEED_BSDTTY and NEED_UNISTD_H.
7889 * s/hpux10-20.h (NEED_BSDTTY): Remove.
7890 * s/aix4-2.h (NEED_UNISTD_H): Remove.
7891 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
7892 <sys/ptyio.h> and <unistd.h>.
7894 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
7896 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
7897 * s/gnu.h (START_FILES): Remove empty definition.
7899 2010-05-06 Jan Djärv <jan.h.d@swipnet.se>
7901 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
7903 2010-05-06 Glenn Morris <rgm@gnu.org>
7905 * Makefile.in (CPP, LN_S): Remove unused variables.
7907 2010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
7909 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
7911 2010-05-05 Lawrence Mitchell <wence@gmx.li>
7913 * m/sparc.h: Fix typo in earlier change.
7915 2010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
7918 * eval.c (Fdefvaralias): Remove unintended nested if.
7919 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
7921 2010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
7923 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
7925 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
7928 * s/bsd-common.h (BSD_PGRPS): Remove undef.
7929 * s/gnu-linux.h (BSD_PGRPS): Remove.
7930 * term.c (dissociate_if_controlling_tty):
7931 * sysdep.c (narrow_foreground_group, widen_foreground_group)
7932 (init_sys_modes, reset_sys_modes):
7934 * callproc.c (Fcall_process, child_setup): Remove code depending
7937 Remove POSIX_SIGNALS.
7938 * s/usg5-4.h (POSIX_SIGNALS):
7939 * s/netbsd.h (POSIX_SIGNALS):
7940 * s/msdos.h (POSIX_SIGNALS):
7941 * s/ms-w32.h (POSIX_SIGNALS):
7942 * s/hpux11.h (POSIX_SIGNALS):
7943 * s/gnu.h (POSIX_SIGNALS):
7944 * s/gnu-linux.h (POSIX_SIGNALS):
7945 * s/freebsd.h (POSIX_SIGNALS):
7946 * s/darwin.h (POSIX_SIGNALS):
7947 * s/cygwin.h (POSIX_SIGNALS):
7948 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
7950 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
7951 * process.c (create_process):
7953 * sysdep.c (wait_for_termination, init_signals):
7954 * process.c (create_process):
7955 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
7956 remove all code that assumes the contrary.
7958 2010-05-04 Glenn Morris <rgm@gnu.org>
7960 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
7962 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
7963 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
7964 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
7965 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
7966 LD_SWITCH_SYSTEM_tmp.
7967 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
7968 New variables, set by configure.
7970 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
7971 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
7972 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
7973 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
7974 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
7976 * s/aix4-2.h (C_SWITCH_SYSTEM):
7977 * m/alpha.h (C_SWITCH_MACHINE):
7978 Move to configure.in.
7979 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
7980 New variables, set by configure.
7981 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
7982 $c_switch_machine and $c_switch_system.
7984 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
7986 * s/hpux10-20.h (LIB_STANDARD): New definition.
7987 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
7988 on it, not used anymore.
7990 2010-05-03 Chong Yidong <cyd@stupidchicken.com>
7992 * eval.c (internal_condition_case_n): Rename from
7993 internal_condition_case_2.
7994 (internal_condition_case_2): New function.
7996 * xdisp.c (safe_call): Use internal_condition_case_n.
7998 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
7999 (internal_delete_file, Frename_file): Callers changed.
8001 * buffer.c (Fkill_buffer):
8002 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
8004 * lisp.h: Update prototypes.
8006 2010-05-03 Glenn Morris <rgm@gnu.org>
8008 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
8009 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
8010 (LIBXT): Set with configure, not cpp.
8012 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
8014 2010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
8016 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
8017 The FreeBSD is not needed, the default works, Solaris version is
8018 not needed, and the remaining case is not supported by configure.
8020 2010-05-02 Jan Djärv <jan.h.d@swipnet.se>
8022 * xsmfns.c (CHDIR_OPT): New define.
8023 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
8026 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
8029 * emacs.c (USAGE1): Mention --chdir.
8030 (main): Handle --chdir.
8031 (standard_args): Add --chdir.
8032 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
8035 2010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
8037 Remove LD_SWITCH_MACHINE.
8038 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
8039 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
8042 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
8043 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
8046 * m/ibmrs6000.inp: Remove file, unused.
8047 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
8048 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
8050 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
8052 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
8055 2010-05-01 Eli Zaretskii <eliz@gnu.org>
8057 Emulate POSIX_SIGNALS on MS-Windows.
8059 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
8060 (SIG_SETMASK, SIG_UNBLOCK): Define.
8062 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
8063 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
8064 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
8066 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
8069 Miscellaneous fixes of bidi display.
8071 * xdisp.c (find_row_end): New function, refactored from display_line.
8072 (display_line): Use it.
8073 (extend_face_to_end_of_line): In almost-filled rows, extend only
8074 if the row is R2L and not continued.
8075 (display_line): Fix prepending of truncation glyphs to R2L rows.
8076 Preserve overlay and string info in row->end.
8077 (insert_left_trunc_glyphs): Support addition of left truncation
8079 (set_cursor_from_row): Don't place cursor on the vertical border
8080 glyph between adjacent windows. Fix a crash when a display string
8081 is continued to the next line. Don't return zero if cursor was
8082 found by `cursor' property of a display string.
8083 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
8084 test for that explicitly.
8086 2010-05-01 Glenn Morris <rgm@gnu.org>
8088 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
8090 (OTHER_OBJ): Remove.
8091 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
8092 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
8094 2010-05-01 Karel Klíč <kklic@redhat.com>
8096 * fileio.c (Ffile_selinux_context): Context functions may return null.
8098 2010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
8100 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
8102 2010-04-30 Glenn Morris <rgm@gnu.org>
8104 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
8105 (OTHER_OBJ): Define as a separate variable, for clarity.
8107 2010-04-30 Jan Djärv <jan.h.d@swipnet.se>
8109 * xsettings.c: include limits.h and update file comment.
8111 2010-04-30 Glenn Morris <rgm@gnu.org>
8113 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
8114 Set with configure, not cpp.
8115 (LIBW): Remove, replace with $TOOLKIT_LIBW.
8117 * Makefile.in (mallocobj): Remove.
8118 (otherobj): Simplify using @OTHER_OBJ@.
8120 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
8121 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
8122 Don't bother making nsgui.h dependency platform-specific.
8124 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
8126 2010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
8128 * process.c (read_process_output, exec_sentinel): Don't burp if the
8129 sentinel/filter kills the current buffer (bug#6060).
8131 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
8132 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
8133 Remove unused var `args'.
8134 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
8135 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
8136 * doc.c (store_function_docstring): Use XSETCAR.
8138 2010-04-28 Glenn Morris <rgm@gnu.org>
8140 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
8141 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
8143 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
8145 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
8146 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
8148 * Makefile.in (FONT_OBJ): New, set by configure.
8149 (FONT_DRIVERS): Use $FONT_OBJ.
8151 * Makefile.in (LIBXMU): Set with configure, not cpp.
8152 * s/aix4-2.h (LIBXMU):
8153 * s/hpux10-20.h (LIBXMU):
8154 Remove definition, now set in configure.
8156 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
8158 * m/amdx86-64.h [i386]: Move this test to configure.in.
8160 2010-04-27 Glenn Morris <rgm@gnu.org>
8162 * Makefile.in (LIBXTR6): Set with configure, not cpp.
8163 * s/unixware.h (NEED_LIBW): Remove definition.
8165 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
8166 (TOOLKIT_LIBW): New, set by configure.
8167 (@X_TOOLKIT_TYPE@): No longer define it.
8169 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
8170 (MOTIF_LIBW): Set with configure, not cpp.
8171 * s/aix4-2.h (LIB_MOTIF):
8172 * s/gnu-linux.h (LIB_MOTIF):
8173 * s/unixware.h (LIB_MOTIF): Move to configure.in.
8175 2010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
8178 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
8179 (obj): Use autoconf for unexec instead of cpp.
8180 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE):
8181 Remove definitions and undefs. Inline definitions in the only user.
8182 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
8184 2010-04-27 Glenn Morris <rgm@gnu.org>
8186 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
8187 since the defaults (set by the system file) are fine in most cases.
8188 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
8189 * m/ibms390x.h (START_FILES, LIB_STANDARD):
8190 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
8191 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
8192 Remove definitions, since they are set correctly in s/gnu-linux.h.
8193 * s/freebsd.h (START_FILES, LIB_STANDARD):
8194 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
8195 * s/hpux10-20.h (START_FILES):
8196 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
8197 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
8199 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
8200 (MOTIF_LIBW): Use $LIBXP.
8201 (otherobj): Use $WIDGET_OBJ.
8203 2010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
8205 * Makefile.in (LIBS_MACHINE): Remove, unused.
8207 Use autoconf instead of cpp for LIB_MATH.
8208 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
8209 * s/cygwin.h (LIB_MATH): Likewise.
8210 * Makefile.in (LIB_MATH): Do not define with cpp.
8211 (LIBES): Use autoconf for LIB_MATH.
8213 2010-04-26 Kenichi Handa <handa@m17n.org>
8215 * composite.c (Ffind_composition_internal): Fix the return value
8216 for an automatic composition.
8218 2010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
8220 Remove all NO_ARG_ARRAY uses.
8221 * fns.c (concat2, concat3, nconc2):
8222 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
8223 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
8224 * m/xtensa.h (NO_ARG_ARRAY):
8225 * m/template.h (NO_ARG_ARRAY):
8226 * m/sparc.h (NO_ARG_ARRAY):
8227 * m/sh3.h (NO_ARG_ARRAY):
8228 * m/mips.h (NO_ARG_ARRAY):
8229 * m/macppc.h (NO_ARG_ARRAY):
8230 * m/iris4d.h (NO_ARG_ARRAY):
8231 * m/intel386.h (NO_ARG_ARRAY):
8232 * m/ibms390x.h (NO_ARG_ARRAY):
8233 * m/ibms390.h (NO_ARG_ARRAY):
8234 * m/ibmrs6000.h (NO_ARG_ARRAY):
8235 * m/ia64.h (NO_ARG_ARRAY):
8236 * m/hp800.h (NO_ARG_ARRAY):
8237 * m/arm.h (NO_ARG_ARRAY):
8238 * m/amdx86-64.h (NO_ARG_ARRAY):
8239 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
8241 2010-04-25 Eli Zaretskii <eliz@gnu.org>
8243 * xdisp.c (display_line): Don't assume 2nd call to
8244 get_next_display_element cannot return zero. (Bug#6030)
8245 (iterate_out_of_display_property): New function, body from pop_it.
8248 2010-04-24 Glenn Morris <rgm@gnu.org>
8250 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
8251 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
8252 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
8253 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
8255 2010-04-24 Eli Zaretskii <eliz@gnu.org>
8257 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
8258 use `get_next_display_element' and `set_iterator_to_next' to
8259 advance to the next character, when looking for the character that
8260 begins the next row.
8262 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
8263 definition of "struct Lisp_Symbol".
8265 2010-04-24 Glenn Morris <rgm@gnu.org>
8267 * Makefile.in (CRT_DIR): New variable, set by configure.
8268 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
8269 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
8271 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
8273 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
8275 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
8277 Remove redundant flags.
8278 * s/freebsd.h (C_SWITCH_SYSTEM):
8279 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
8280 * s/netbsd.h (C_SWITCH_SYSTEM):
8281 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
8284 Simplify m/intel386.h.
8285 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
8287 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
8288 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
8289 the only user: s/unixware.h.
8290 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
8292 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE):
8293 Definitions moved here from m/intel386.h.
8295 * m/mips.h: Remove #if 0 code.
8297 2010-04-23 Eli Zaretskii <eliz@gnu.org>
8299 Fix display of composed characters from L2R scripts in bidi buffers.
8300 * xdisp.c (set_iterator_to_next, next_element_from_composition):
8301 After advancing IT past the composition, resync the bidi iterator
8302 with IT's position. (Bug#5977)
8304 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
8306 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
8307 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
8309 2010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
8311 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
8313 2010-04-23 Eli Zaretskii <eliz@gnu.org>
8315 Support `display' text properties and overlay strings in bidi buffers.
8316 * xdisp.c (pop_it): When the stack is popped after displaying
8317 from a string, bidi-iterate to exit from the text portion covered
8318 by the `display' property or overlay. (Bug#5988, bug#5920)
8320 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
8322 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
8323 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
8325 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
8326 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
8328 Simplify STARTFILES definition.
8329 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
8330 relying on Makefile.in to define it.
8331 * s/cygwin.h (START_FILES): Likewise.
8332 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
8334 Clean up Solaris code.
8335 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
8336 (LIB_MOTIF): Remove, configure takes care of this.
8337 (NOT_USING_MOTIF): Remove, unused.
8338 * xrdb.c: Remove #if 0-ed #include.
8339 (SYSV): Remove conditional for old SysV.
8340 * sysdep.c (closedir): Remove conditional code for Solaris,
8341 Solaris has closedir.
8343 2010-04-22 Jan Djärv <jan.h.d@swipnet.se>
8345 * xsettings.c (read_and_apply_settings): Check if current_font is
8346 NULL before strcmp (Bug#6001).
8348 2010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
8350 Clean up HP-UX files.
8351 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
8352 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
8353 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
8354 * s/hpux10-20.h: ... to the only user, here.
8356 2010-04-21 Eli Zaretskii <eliz@gnu.org>
8358 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
8359 use buffer-local values of paragraph-start and paragraph-separate.
8360 <paragraph_start_re, paragraph_separate_re>: Rename from
8361 fallback_paragraph_start_re and fallback_paragraph_separate_re.
8364 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
8366 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
8367 current_tool_bar_style are new.
8368 (store_config_changed_event): Rename from store_font_changed_event.
8369 (XSETTINGS_TOOL_BAR_STYLE): New define.
8370 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
8371 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
8373 (something_changedCB): store_font_changed_event is now
8374 store_config_changed_event.
8375 (parse_settings): Rename from parse_xft_settings.
8376 Read non-xft xsettings outside #ifdef HAVE_XFT.
8377 (read_settings): Rename from read_xft_settings.
8378 (apply_xft_settings): Take current settings as parameter. Do not
8379 call read_(xft)_settings.
8380 (read_and_apply_settings): New function.
8381 (xft_settings_event): Do non-xft stuff out of HAVE_XFT.
8382 Call read_and_apply_settings if there are settings to be read.
8383 (init_xsettings): Rename from init_xfd_settings.
8384 Call read_and_apply_settings unconditionally.
8385 (xsettings_initialize): Call init_xsettings.
8386 (Ftool_bar_get_system_style): New function.
8387 (syms_of_xsettings): Define Qmonospace_font_name and
8388 Qtool_bar_style. Initialize current_tool_bar_style to nil.
8389 defsubr Stool_bar_get_system_style. Fprovide on
8391 Move misplaced HAVE_GCONF
8393 * xsettings.h (Ftool_bar_get_system_style): Declare.
8395 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
8396 Qtext, Qboth, Qboth_horiz are new.
8397 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
8398 Vtool_bar_style, tool_bar_max_label_size.
8400 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
8402 * keyboard.c: QClabel is new.
8403 (parse_tool_bar_item): Take out QClabel from tool bar items.
8404 Try to construct a label if ther is no QClabel.
8405 (syms_of_keyboard): Intern :label as QClabel.
8407 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
8408 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
8411 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
8414 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
8415 (xg_make_tool_item, xg_show_toolbar_item): New function.
8416 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
8417 Call xg_make_tool_item to make a tool bar item.
8418 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
8420 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
8421 into account for toolbars.
8423 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
8425 * data.c (make_blv): Declarations before code (Bug#5993).
8427 2010-04-21 Glenn Morris <rgm@gnu.org>
8429 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
8430 Define using autoconf, not cpp.
8431 (LIBXSM): New variable, set by autoconf.
8432 (LIBXT): Use $LIBXSM.
8434 2010-04-21 Dan Nicolaescu <local_user@dannlt>
8436 Remove NOMULTIPLEJOBS, unused.
8437 * s/template.h (NOMULTIPLEJOBS):
8438 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
8440 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
8441 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
8442 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
8443 detects -znocombreloc and passes it to the linker
8444 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
8446 2010-04-21 Glenn Morris <rgm@gnu.org>
8448 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
8450 2010-04-21 Karel Klíč <kklic@redhat.com>
8452 * Makefile.in (LIBSELINUX_LIBS): New.
8453 (LIBES): Add $LIBSELINUX_LIBS.
8454 * eval.c, lisp.h (call7): New function.
8455 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
8456 (Ffile_selinux_context, Fset_file_selinux_context):
8458 (Fcopy_file): New parameter preserve-selinux-context.
8459 (Frename_file): Preserve selinux context when renaming by copy-file.
8461 2010-04-21 Juanma Barranquero <lekktu@gmail.com>
8462 Eli Zaretskii <eliz@gnu.org>
8464 Don't depend on cm.c or termcap.c on Windows, use stubs.
8465 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
8466 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
8467 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
8468 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
8469 (sys_tputs, sys_tgetstr): New stubs.
8470 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
8471 (tputs, tgetstr): New; define to sys_*.
8473 2010-04-20 Juanma Barranquero <lekktu@gmail.com>
8475 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
8477 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
8479 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
8480 Just signal a warning rather than an error when inside a let.
8481 (Fmake_variable_frame_local): Add the same test.
8483 * font.c (syms_of_font): Make the style table vars read-only.
8485 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
8486 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
8488 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
8490 2010-04-20 Eli Zaretskii <eliz@gnu.org>
8492 Fix R2L paragraph display on TTY.
8494 * xdisp.c (unproduce_glyphs): New function.
8495 (display_line): Use it when produced glyphs are discarded from R2L
8497 (append_composite_glyph): In R2L rows, prepend the glyph rather
8500 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
8501 rather than append it. Set up the resolved_level and bidi_type
8502 attributes of the appended glyph.
8503 (produce_special_glyphs): Mirror the backslash continuation
8504 character in R2L lines.
8506 Implement display of R2L paragraphs in GUI sessions.
8508 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
8509 append_stretch_glyph.
8510 (set_cursor_from_row) <cursor_x>: Remove unused variable.
8511 Fix off-by-one error in computing x at end of text in the row.
8512 (append_stretch_glyph): In reversed row, prepend the glyph rather
8513 than append it. Set resolved_level and bidi_type of the glyph.
8514 (extend_face_to_end_of_line): If the row is reversed, prepend a
8515 stretch glyph whose width is such that the rightmost glyph will be
8516 drawn at the right margin of the window. Fix off-by-one error on
8517 TTY frames in testing whether a line needs face extension.
8518 Fix face extension at ZV. If this is the last glyph row, use
8519 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
8521 (set_cursor_from_row, display_line):
8522 Use MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
8523 row->continuation_lines_width.
8524 (next_element_from_buffer): Don't call bidi_paragraph_init if we
8525 are at ZV. Fixes a crash when reseated to ZV by
8526 try_window_reusing_current_matrix.
8527 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
8528 which happens with R2L glyph rows. Fixes a crash when inserting a
8529 character at end of an R2L line.
8530 (set_cursor_from_row): Don't be fooled by truncated rows: don't
8531 treat them as having zero-width characters. Improve comments.
8532 Don't reverse pos_before and pos_after for reversed glyph rows.
8533 Set cursor.x to negative value when the cursor might be on the
8535 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
8536 left fringe, not the right one.
8537 (notice_overwritten_cursor, draw_phys_cursor_glyph)
8538 (erase_phys_cursor): For reversed cursor_row, support cursor on
8541 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
8542 of continuation indicators on the fringes.
8543 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
8546 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
8547 draw cursor on the left fringe.
8549 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
8550 cursor on the left fringe.
8552 * dispnew.c (update_text_area): Handle reversed desired rows when
8553 the cursor is on the left fringe.
8554 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
8555 below, not by 0, for when the cursor is on the left fringe.
8557 2010-04-20 Jan Djärv <jan.h.d@swipnet.se>
8559 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
8560 widget is a scrollbar.
8562 2010-04-20 Kenichi Handa <handa@m17n.org>
8564 * charset.c (char_charset): Consider Vcharset_non_preferred_head
8565 only when the arg CHARSET_LIST is nil.
8567 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
8569 Make variable forwarding explicit rather the using special values.
8570 Basically, this makes the structure of buffer-local values and object
8571 forwarding explicit in the type of Lisp_Symbols rather than use
8572 special Lisp_Objects for that. This tends to lead to slightly more
8573 verbose code, but is more C-like, simpler, and makes it easier to make
8574 sure we handled all cases, among other things by letting the compiler
8576 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
8577 Removing forwarding objects.
8578 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
8579 (struct Lisp_Symbol): Make the various forms of variable-forwarding
8580 explicit rather than hiding them inside Lisp_Object "values".
8581 (XFWDTYPE): New macro.
8582 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
8583 (XBUFFER_LOCAL_VALUE): Remove.
8584 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
8585 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
8586 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
8587 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
8588 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
8589 Remove the Lisp_Misc_* header.
8590 (struct Lisp_Buffer_Local_Value): Redefine.
8591 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
8592 (struct Lisp_Misc_Any): Add filler to get the right size.
8593 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
8595 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
8596 (DEFVAR_KBOARD): Allocate a forwarding object.
8597 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
8598 (let_shadows_global_binding_p): New function.
8599 (union Lisp_Val_Fwd): New type.
8600 (make_blv): New function.
8601 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
8602 (store_symval_forwarding, swap_in_global_binding, Fboundp)
8603 (swap_in_symval_forwarding, find_symbol_value, Fset)
8604 (let_shadows_buffer_binding_p, set_internal, default_value)
8605 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
8606 (Fkill_local_variable, Fmake_variable_frame_local)
8607 (Flocal_variable_p, Flocal_variable_if_set_p)
8608 (Fvariable_binding_locus):
8609 * xdisp.c (select_frame_for_redisplay):
8610 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
8611 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
8612 * frame.c (store_frame_param):
8613 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
8614 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
8616 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
8617 (clone_per_buffer_values): Only adjust markers into the current buffer.
8618 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
8619 (Fbuffer_local_value, set_buffer_internal_1)
8620 (swap_out_buffer_local_variables):
8621 Adapt to the new symbol value structure.
8622 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
8623 (defvar_per_buffer): Take a new arg for the fwd object.
8624 (buffer_lisp_local_variables): Return a proper alist (different fix
8626 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
8627 (Fgarbage_collect): Don't handle buffer_defaults specially.
8628 (mark_object): Handle new symbol value structure rather than the old
8629 special Lisp_Misc_* objects.
8630 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
8631 * term.c (set_tty_color_mode):
8632 * bidi.c (bidi_initialize): Don't access the ->value field directly.
8633 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
8634 a buffer_local_flags.
8635 * print.c (print_object): Get rid of impossible forwarding objects.
8637 2010-04-19 Eli Zaretskii <eliz@gnu.org>
8639 * bidi.c (bidi_get_type, bidi_get_category)
8640 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
8641 (bidi_type_of_next_char, bidi_level_of_next_char):
8642 Declare static. Use `INLINE' rather than `inline'.
8644 2010-04-19 Juanma Barranquero <lekktu@gmail.com>
8646 * dired.c (Ffile_attributes): Fix typo in docstring.
8648 2010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8650 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
8651 NSInteger (Bug#5811).
8653 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8655 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
8656 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
8658 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8660 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
8662 2010-04-19 Chong Yidong <cyd@stupidchicken.com>
8664 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
8665 terminal frames (Bug#5837).
8667 2010-04-19 Eli Zaretskii <eliz@gnu.org>
8669 * .gdbinit (xsubchartable): New command.
8671 2010-04-19 Eli Zaretskii <eliz@gnu.org>
8673 * xdisp.c (display_line): Don't write beyond the last glyph row in
8674 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
8675 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
8677 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
8679 2010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
8681 * alloc.c (Fpurecopy): Hash-cons if requested.
8682 (syms_of_alloc): Update purify-flag docstring.
8684 2010-04-18 Jan Djärv <jan.h.d@swipnet.se>
8686 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
8687 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
8689 2010-04-17 Eli Zaretskii <eliz@gnu.org>
8691 Fix a crash when an NSM character is inserted at BEGV.
8693 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
8694 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
8695 NEUTRAL_B or UNKNOWN_BT.
8697 2010-04-16 Eli Zaretskii <eliz@gnu.org>
8699 * xdisp.c (set_cursor_from_row): Don't consider possibility of
8700 other rows with cursor unless they are different from this row and
8701 this row is part of a continued line. (Bug#5943)
8703 2010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
8705 * s/freebsd.h: Restore osreldate.h include.
8706 Suggested by Naohiro Aota.
8708 2010-04-16 Jan Djärv <jan.h.d@swipnet.se>
8710 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
8712 2010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
8714 * s/cygwin.h: Avoid linking against static libgcc.
8716 2010-04-15 Juri Linkov <juri@jurta.org>
8718 * window.c: Add Qscroll_command.
8719 Remove Vscroll_preserve_screen_position_commands.
8720 (window_scroll_pixel_based, window_scroll_line_based): Check the
8721 `scroll-command' property on the last command instead of searching
8722 the last command in Vscroll_preserve_screen_position_commands.
8723 (syms_of_window): Initialize and staticpro `Qscroll_command'.
8724 Put Qscroll_command property on Qscroll_up and Qscroll_down.
8725 (scroll-preserve-screen-position): Doc fix.
8726 (Vscroll_preserve_screen_position_commands): Remove variable.
8728 2010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
8730 * xdisp.c (message): Do not use NO_ARG_ARRAY.
8732 2010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
8734 Reduce cpp use in Makefile.in.
8735 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
8736 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
8737 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
8738 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
8739 (CRT0_COMPILE): Remove, inline it in the only user.
8741 2010-04-14 Juri Linkov <juri@jurta.org>
8743 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
8744 `scroll-up-command' and `M-v' from `scroll-down' to
8745 `scroll-down-command'.
8747 2010-04-14 Juri Linkov <juri@jurta.org>
8749 * window.c (Vscroll_preserve_screen_position_commands): New variable
8750 with the default value as the list of Qscroll_down and Qscroll_up.
8751 (window_scroll_pixel_based, window_scroll_line_based): Search the
8752 last command in the list Vscroll_preserve_screen_position_commands
8753 instead of comparing with Qscroll_up and Qscroll_down.
8755 2010-04-13 Jan Djärv <jan.h.d@swipnet.se>
8757 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
8758 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
8761 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
8764 2010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
8766 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
8768 Try to solve the problem of spurious EOF chars in long lines of text
8769 sent to interactive subprocesses.
8770 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
8771 (system_process_attributes): Remove unused var `ttotal'.
8772 * process.c (send_process): Don't bother breaking long line with EOF
8773 chars when talking to ttys any more.
8774 (wait_reading_process_output): Output a warning when called in such
8775 a way that it could block without being interruptible.
8777 Try to detect file modification within the same second.
8778 * buffer.h (struct buffer): New field modtime_size.
8779 * buffer.c (reset_buffer): Initialize it.
8780 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
8781 (Fverify_visited_file_modtime): Check it.
8782 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
8783 (Fset_visited_file_modtime): Set (or clear) it.
8785 2010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
8787 * process.c (status_notify): Remove unused var `ro'.
8789 2010-04-12 Jan Djärv <jan.h.d@swipnet.se>
8791 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
8792 more than one visual (Bug#5938).
8794 2010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
8796 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
8799 2010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
8801 Remove C_SWITCH_SYSTEM_TEMACS.
8802 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
8803 (malloc, realloc, free): Use emacs, not temacs for conditional
8806 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
8807 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
8809 Use autoconf, not cpp for some variables.
8810 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
8811 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
8812 (ALL_CFLAGS): Use them as make variables.
8813 (really-lwlib, really-oldXMenu): Do not pass them.
8815 2010-04-11 Jan Djärv <jan.h.d@swipnet.se>
8817 * xmenu.c (apply_systemfont_to_dialog): New.
8818 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
8820 2010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
8822 * process.c (exec_sentinel): Preserve current-buffer.
8824 * process.c (read_process_output): Move the save-current-buffer to
8825 apply to both the filter and the non-filter branches.
8827 2010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
8829 * s/msdos.h (UNEXEC): New definition.
8831 2010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8833 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
8834 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
8836 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
8837 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
8838 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
8839 TRY_WINDOW_CHECK_MARGINS.
8841 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
8842 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
8843 width only when it is for padding.
8845 2010-04-09 Jan Djärv <jan.h.d@swipnet.se>
8847 * xfns.c (Fx_show_tip): Call try_window in a loop until
8848 fonts_changed_p is zero (Bug#2423).
8850 2010-04-08 Eli Zaretskii <eliz@gnu.org>
8852 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
8853 the end of TEXT_AREA. (Bug#5856)
8855 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
8857 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
8860 2010-04-08 Eli Zaretskii <eliz@gnu.org>
8862 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
8863 prev.orig_type, for resolving type of NSM. (Bug#5858)
8865 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
8867 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
8868 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
8870 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
8871 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
8873 (syms_of_xsettings): Initialize current_font.
8874 defsubr Sfont_get_system_normal_font.
8876 * xsettings.h (Ffont_get_system_normal_font)
8877 (xsettings_get_system_normal_font): Declare.
8879 * xfns.c (extern xlwmenu_default_font): Remove.
8880 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
8883 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
8884 menu items in UTF-8.
8886 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
8887 (apply_systemfont_to_menu): New function.
8888 (set_frame_menubar, create_and_show_popup_menu):
8889 Call apply_systemfont_to_menu.
8891 2010-04-07 Jan Djärv <jan.h.d@swipnet.se>
8893 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
8894 FRAME_LINE_TO_PIXEL_Y.
8896 * xterm.c (x_set_window_size_1): Don't add border_width/height to
8899 2010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
8901 Simplify code for HP machines.
8902 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
8903 for GNU_LINUX, not needed.
8904 (UNEXEC, NEED_BSDTTY): Move definitions...
8905 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
8907 * m/iris4d.h (UNEXEC): Move definition ...
8908 * s/irix6-5.h (UNEXEC): ... here.
8910 2010-04-04 Jan Djärv <jan.h.d@swipnet.se>
8912 * xfns.c (set_machine_and_pid_properties): New function.
8913 (Fx_create_frame): Call set_machine_and_pid_properties.
8915 2010-04-03 Eli Zaretskii <eliz@gnu.org>
8917 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char):
8918 Check bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
8919 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
8921 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
8922 in this function. (Bug#5703)
8924 2010-04-03 Chong Yidong <cyd@stupidchicken.com>
8926 * nsterm.h: Fix last change.
8928 2010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
8930 * m/intel386.h (NO_REMAP): Move definition ...
8931 * s/msdos.h (NO_REMAP): ... here.
8933 * m/vax.h (CRT0_DUMMIES): Remove, unused.
8935 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
8936 used on those platforms.
8938 2010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
8940 Remove extern errno declarations.
8957 * buffer.c: Remove errno extern declarations.
8958 * s/netbsd.h (NEED_ERRNO): Remove.
8960 2010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
8962 Remove all uses of LIBX11_SYSTEM.
8963 * Makefile.in (LIBX11_SYSTEM): Remove.
8964 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
8967 2010-04-01 Eli Zaretskii <eliz@gnu.org>
8969 Remove support for DJGPP v1.x (bug#5813).
8971 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8973 * unexec.c (make_hdr, copy_text_and_data):
8974 * sysdep.c (wait_for_termination, sys_subshell):
8975 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
8976 (IT_set_terminal_modes, __write, _rename, gethostname)
8977 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
8978 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
8979 the value of __DJGPP__.
8980 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
8983 * gmalloc.c (memalign):
8984 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
8986 * dosfns.c (init_dosfns):
8987 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
8989 2010-04-01 Eli Zaretskii <eliz@gnu.org>
8991 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
8992 string with `cursor' property comes from an `after-string'
8995 2010-04-01 Glenn Morris <rgm@gnu.org>
8997 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
8998 Define as Makefile variables.
8999 (LIBX): Use above variables rather than directly using autoconf.
9001 2010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
9003 Clean up BSD_SYSTEM use.
9006 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
9007 for including <sys/ioctl.h>.
9008 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
9009 code is only used for MSDOS.
9011 2010-03-31 Juri Linkov <juri@jurta.org>
9013 * image.c: Add `Qextension_data'.
9014 (syms_of_image): Initialize and staticpro `Qextension_data'.
9015 (Fimage_metadata): Rename from `Fimage_extension_data'.
9016 (gif_load): Put GIF extension data to the property
9019 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
9021 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
9022 * nsterm.h: Fix prototype.
9024 2010-03-31 Eli Zaretskii <eliz@gnu.org>
9026 * xdisp.c (highlight_trailing_whitespace): Support highlight of
9027 trailing whitespace in right-to-left rows.
9029 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
9031 Get rid of the direct_output optimizations.
9032 * keyboard.c (nonundocount): Remove extern declaration.
9033 (command_loop_1): Remove brittle optimisation for cheap and
9035 * xdisp.c (redisplay_internal): Don't bother checking
9036 redisplay_performed_directly_p any more.
9037 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
9039 * dispnew.c (redisplay_performed_directly_p)
9040 (direct_output_for_insert, direct_output_forward_char):
9041 * dispextern.h (redisplay_performed_directly_p)
9042 (direct_output_for_insert, direct_output_forward_char): Remove.
9043 * cmds.c (nonundocount): Make it static.
9045 2010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
9047 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
9049 2010-03-31 Jan Djärv <jan.h.d@swipnet.se>
9051 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
9052 invisible (Bug#5766).
9054 2010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9056 * xdisp.c (x_consider_frame_title, update_window_cursor):
9057 Remove HAVE_NS conditionals.
9058 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9060 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
9061 filename for the title.
9062 (ns_set_doc_edited): Do nothing if the selected window is a
9065 * nsterm.h: Add prototypes for ns_set_name_as_filename and
9068 * nsterm.m: Remove unneeded prototype.
9070 2010-03-31 Glenn Morris <rgm@gnu.org>
9072 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
9073 in the DOC file. (Bug#5336)
9075 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
9077 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
9079 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
9081 * window.c (keys_of_window): Remove redundant/overridden bindings.
9083 2010-03-30 Eli Zaretskii <eliz@gnu.org>
9085 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
9086 Restore original behavior when the iterator is not bidi_p.
9088 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
9090 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
9092 2010-03-30 Eli Zaretskii <eliz@gnu.org>
9094 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
9095 are outside the range of cached character positions.
9097 2010-03-30 Juanma Barranquero <lekktu@gmail.com>
9099 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
9101 2010-03-30 Eli Zaretskii <eliz@gnu.org>
9103 Initial support for bidirectional editing.
9105 * Makefile.in (obj): Include bidi.o.
9106 (bidi.o): New target.
9108 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
9109 ($(BLD)/bidi.$(O)): New target.
9113 * buffer.h (struct buffer): New members bidi_display_reordering
9114 and bidi_paragraph_direction.
9116 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
9117 and bidi_paragraph_direction.
9118 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
9119 and bidi-paragraph-direction.
9120 (Fbuffer_swap_text): Swap the values of
9121 bidi_display_reordering and bidi_paragraph_direction.
9123 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
9124 (bidi_type_t, bidi_dir_t): New types.
9125 (bidi_saved_info, bidi_stack, bidi_it): New structures.
9126 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
9127 prev_stop, base_level_stop, and eol_pos.
9128 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
9129 (IT_STACK_SIZE): Enlarge to 5.
9130 (struct glyph_row): New member reversed_p.
9131 <string_buffer_position>: Update prototype.
9132 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
9133 glyph_row if bidi_it.paragraph_dir == R2L.
9134 (struct glyph): New members resolved_level and bidi_type.
9136 * dispnew.c (direct_output_forward_char): Give up if we need bidi
9137 processing or buffer's direction is right-to-left.
9138 (prepare_desired_row): Preserve the reversed_p flag.
9139 (row_equal_p): Compare the reversed_p attributes as well.
9141 * xdisp.c (init_iterator): Initialize it->bidi_p.
9142 Call bidi_init_it and set it->paragraph_embedding from the current
9143 buffer's value of bidi_paragraph_direction.
9144 (reseat_1): Initialize bidi_it.first_elt.
9145 (set_iterator_to_next, next_element_from_buffer): Use the value of
9146 paragraph_embedding to determine the paragraph direction.
9147 (set_iterator_to_next): Under bidi reordering, call
9148 bidi_get_next_char_visually. Call bidi_paragraph_init if the
9149 new_paragraph flag is set in the bidi iterator.
9150 (next_element_from_buffer): If bidi_it.first_elt is set,
9151 initialize paragraph direction and find the first character to
9152 display in the visual order. If reseated to a middle of a line,
9153 prime the bidi iterator starting at the line's beginning.
9154 Handle the situation where we overstepped stop_charpos due to
9155 non-linearity of the bidi iteration. Likewise for when we back up
9156 beyond the previous stop_charpos. When moving across stop_charpos,
9157 record it in prev_stop.
9158 (display_line): Set row->end and it->start for the next row to the
9159 next character in logical order. Always extend reversed_p rows to
9160 the end of line, even if they end at ZV. Copy the reversed_p flag
9161 to the next glyph row. Keep calling set_cursor_from_row for
9162 bidi-reordered rows even if we already have a possible candidate
9163 for cursor position. Set row_end after all the row's glyphs have
9164 been produced, by looping over the glyphs. Record the position
9165 after EOL in it->eol_pos, and use it to set end_pos of the last
9166 row produced for a continued line.
9167 <Qright_to_left, Qleft_to_right>: New variables.
9168 (syms_of_xdisp): Initialize and staticpro them.
9169 (string_buffer_position_lim): New function.
9170 (string_buffer_position): Most of code moved to
9171 string_buffer_position_lim. Last argument and return value are
9172 now EMACS_INT; all callers changed.
9173 (set_cursor_from_row): Rewritten to support bidirectional text and
9174 reversed glyph rows.
9175 (text_outside_line_unchanged_p, try_window_id):
9176 Disable optimizations if we are reordering bidirectional text and the
9177 paragraph direction can be affected by the change.
9178 (append_glyph, append_composite_glyph)
9179 (produce_image_glyph, append_stretch_glyph): Set the
9180 resolved_level and bidi_type members of each glyph.
9181 (append_glyph): If the glyph row is reversed, prepend the glyph
9182 rather than appending it.
9183 (handle_stop_backwards): New function.
9184 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
9185 (reseat): call handle_stop_backwards to recompute prev_stop and
9186 base_level_stop for the new position.
9187 (handle_invisible_prop): Under bidi iteration, skip invisible text
9188 using bidi_get_next_char_visually. If we are `reseat'ed, init the
9189 paragraph direction. Update IT->prev_stop after skipping
9191 (move_it_in_display_line_to): New variables prev_method
9192 and prev_pos. Compare for strict equality in
9193 BUFFER_POS_REACHED_P.
9194 (try_cursor_movement): Examine all the candidate rows that occlude
9195 point, to return the best match. If rows are bidi-reordered
9196 and point moved backwards, back up to the row that is not a
9197 continuation line, and start looking for a suitable row from
9200 * term.c (append_glyph): Reverse glyphs by pre-pending them,
9201 rather than appending, if the glyph_row's reversed_p flag is set.
9202 Set the resolved_level and bidi_type members of each glyph.
9204 * .gdbinit (pbiditype): New command.
9205 (pgx): Use it to display bidi level and type of the glyph.
9206 (pitx): Display some bidi information about the iterator.
9207 (prowlims, pmtxrows): New commands.
9209 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
9211 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
9212 * s/usg5-4.h (LIBS_DEBUG):
9213 * s/irix6-5.h (C_DEBUG_SWITCH):
9214 * s/gnu-linux.h (LIBS_DEBUG):
9215 * s/darwin.h (LIBS_DEBUG):
9216 * s/bsd-common.h (LIBS_DEBUG):
9217 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
9218 * m/iris4d.h (LIBS_DEBUG):
9219 * m/hp800.h (LIBS_DEBUG): Remove definitions.
9221 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
9222 (LIBS_DEBUG): Remove definition.
9224 2010-03-27 Chong Yidong <cyd@stupidchicken.com>
9226 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
9229 2010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9231 * process.c (Fmake_network_process): Don't call turn_on_atimers around
9232 `connect' (Bug#5723).
9234 2010-03-25 Helmut Eller <eller.helmut@gmail.com>
9236 * process.c (Fmake_network_process): Call `select' for interrupted
9237 `connect' rather than creating new socket (Bug#5173).
9239 2010-03-24 Jan Djärv <jan.h.d@swipnet.se>
9241 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
9243 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
9245 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
9247 2010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9249 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
9252 2010-03-24 Kenichi Handa <handa@m17n.org>
9254 * coding.c (decode_coding_ccl): Fix previous change for the
9256 (encode_coding_ccl): Don't setup ccl program here. Fix for the
9257 case that the output buffer is fullfilled.
9258 (encode_coding): Setup ccl program here.
9260 2010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
9262 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
9264 Simplify LIBS_MACHINE definitions.
9265 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
9266 * m/iris4d.h (LIBS_MACHINE): Likewise.
9267 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
9268 * s/aix4-2.h (LIBS_SYSTEM): ... here.
9269 * s/netbsd.h: Remove commented out code.
9271 2010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
9273 Remove dead code dealing with POSIX_SIGNALS.
9274 * atimer.c (set_alarm): Remove dead code, all USG systems define
9276 * data.c (arith_error): Likewise.
9277 * keyboard.c (input_available_signal, handle_user_signal)
9278 (interrupt_signal): Likewise.
9279 * process.c (sigchld_handler): Likewise.
9280 (create_process): Remove if 0 code. Remove HPUX conditional when
9281 !defined (POSIX_SIGNALS), it cannot be true.
9282 * syssignal.h: Remove USG5_4 and USG conditionals when
9283 !POSIX_SIGNALS, they cannot be true.
9285 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
9286 NO_SOCK_SIGIO, not used anymore.
9288 2010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
9290 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
9291 support vax on BSDs.
9293 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
9294 * s/aix4-2.h (ORDINARY_LINK): ... here.
9296 2010-03-21 Andreas Schwab <schwab@linux-m68k.org>
9298 * Makefile.in (abs_builddir): Define.
9299 (bootstrap_exe): Use it.
9300 (VPATH): Use $(srcdir) instead of @srcdir@.
9302 2010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
9304 * Makefile.in (bootstrap_exe): Use an absolute name.
9306 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
9308 Remove support for old GNU/Linux using libc version 5.
9309 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
9310 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
9312 Consolidate redundant definitions in s/bsd-common.h.
9313 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
9314 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
9315 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
9316 doing it in all files that include this one.
9317 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
9318 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
9319 (LDAV_SYMBOL, KERNEL_FILE): Remove.
9320 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
9321 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
9322 (LDAV_SYMBOL, KERNEL_FILE): Remove.
9323 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
9324 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
9325 (LDAV_SYMBOL, KERNEL_FILE): Remove.
9327 Consolidate redundant definitions.
9328 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
9329 it's undefined in all files that include this one.
9330 (POSIX_SIGNALS): Define here instead of doing it in all files that
9332 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
9333 (POSIX_SIGNALS): Do not define.
9334 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
9335 (POSIX_SIGNALS): Do not define.
9336 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
9337 (POSIX_SIGNALS): Do not define.
9339 Remove support for old UNIX System V systems.
9340 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
9341 * s/usg-5-4-2.h: Remove.
9343 Remove support for Solaris on PPC and for old versions.
9344 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
9345 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
9346 that cancel each other.
9349 * s/sol2-5.h: Remove.
9350 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
9351 (NO_REMAP): Remove, unused.
9352 (UNEXEC): Move definition ...
9353 * s/aix4-2.h (UNEXEC): ... here.
9355 * s/openbsd.h: Remove support for non-ELF and for systems that do
9356 not support shared libraries.
9358 * s/freebsd.h: Likewise.
9360 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
9362 Remove non-working support for lynxos 3.0.
9363 * s/lynxos.h: Remove file.
9365 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
9366 COFF_BSD_SYMBOLS, nothing defines it anymore.
9368 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
9370 Remove obsolete uses of HAVE_SHM.
9371 * emacs.c (standard_args):
9373 (syms_of_emacs): Remove code depending on HAVE_SHM.
9375 * alloc.c: Remove HAVE_SHM dependent definition.
9377 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
9379 2010-03-18 Glenn Morris <rgm@gnu.org>
9381 * emacs.c (USAGE4): Hard-code bug address.
9382 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
9383 (bug_reporting_address): Remove.
9384 (main): Don't call bug_reporting_address.
9386 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
9387 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
9389 2010-03-15 Chong Yidong <cyd@stupidchicken.com>
9391 * xfns.c (Fx_create_frame):
9392 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
9395 2010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
9397 * editfns.c (Fformat): Account for string precision when computing
9398 field width (Bug#5710).
9400 2010-03-12 Chong Yidong <cyd@stupidchicken.com>
9402 * xfns.c (Fx_create_frame): Set default to Qright.
9404 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
9407 2010-03-12 Eli Zaretskii <eliz@gnu.org>
9409 These changes remove termcap.c from the build on Posix platforms.
9410 * Makefile.in (termcapobj): Move termcap.o from here...
9411 (MSDOS_OBJ): ...to here.
9412 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
9413 now identical to when LIBS_TERMCAP is defined.
9415 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
9417 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
9419 * config.in: Regenerated. (See top-level ChangeLog.)
9421 2010-03-10 Chong Yidong <cyd@stupidchicken.com>
9425 2010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
9427 Cleanup setup of gl_state in various parts of the code.
9428 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
9429 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
9430 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
9432 * regex.c (regex_compile): Use it.
9433 (re_compile_pattern): Don't set gl_state.current_syntax_table since
9434 it's now set in regex_compile when/if we need it.
9436 2010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
9438 Make it possible to C-g in a tight bytecode loop again (bug#5680).
9439 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
9440 (QUIT): Use it to consolidate code and remove redundancy.
9441 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
9443 * regex.c (regex_compile): Setup gl_state as well.
9445 * syntax.c (skip_chars): Setup gl_state (bug#3823).
9446 (in_classes): Use CONSP before XCAR/XCDR.
9448 2010-03-03 Chong Yidong <cyd@stupidchicken.com>
9450 * keymap.c (Fwhere_is_internal): Use Fequal to compare
9451 definitions, so that keyboard macros are correctly handled
9454 2010-03-02 Eli Zaretskii <eliz@gnu.org>
9456 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
9457 text that could be relocated inside the call to emacs_mule_char.
9458 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
9459 (CODING_DECODE_CHAR): Add a comment describing its purpose.
9461 2010-03-02 Kenichi Handa <handa@m17n.org>
9463 * character.c (parse_str_as_multibyte): Fix handling of the
9464 multibyte form of raw-bytes.
9465 (str_as_multibyte): Likewise.
9467 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
9470 2010-02-28 Chong Yidong <cyd@stupidchicken.com>
9472 * charset.c (load_charset_map_from_file)
9473 (load_charset_map_from_vector): Zero out allocated
9474 charset_map_entries before using them.
9476 2010-02-27 Andreas Schwab <schwab@linux-m68k.org>
9478 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
9480 2010-02-27 Chong Yidong <cyd@stupidchicken.com>
9482 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
9483 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
9485 2010-02-26 Kenichi Handa <handa@m17n.org>
9487 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
9489 * xdisp.c (reseat_to_string): Fix previous change.
9491 2010-02-26 David Reitter <david.reitter@gmail.com>
9493 * nsfont.m (nsfont_draw): ns_antialias_text should be a
9494 Lisp_Object (Bug#4736).
9496 2010-02-25 Kenichi Handa <handa@m17n.org>
9498 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
9500 2010-02-24 Jan Djärv <jan.h.d@swipnet.se>
9502 * xterm.c (XTflash): Move declarations before statements.
9504 * gtkutil.c (xg_get_gdk_display): Remove (unused).
9505 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
9506 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
9507 (xg_create_tool_bar): Remove unused variables.
9508 (x_wm_set_size_hint): Move declarations before statements.
9509 (xg_create_frame_widgets): Remove variable grav.
9511 2010-02-21 Chong Yidong <cyd@stupidchicken.com>
9513 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
9515 2010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
9517 * term.c (fatal): Add a final \n if needed (bug#5596).
9519 2010-02-18 Chong Yidong <cyd@stupidchicken.com>
9521 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
9523 2010-02-18 Glenn Morris <rgm@gnu.org>
9525 * callint.c (Finteractive): Doc fix.
9527 2010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
9529 * coding.c (record_conversion_result):
9530 Handle CODING_RESULT_INSUFFICIENT_DST.
9531 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
9532 memory allocation error.
9534 2010-02-17 Kenichi Handa <handa@m17n.org>
9536 * coding.c (decode_coding_ccl): Don't setup ccl program here.
9537 Fix for the case that the output buffer is fullfilled.
9538 (decode_coding): Setup ccl program here. Keep looping when the
9539 decoder stopped because the output buffer is
9540 fullfilled (bug#5534).
9542 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
9544 2010-02-13 Jan Djärv <jan.h.d@swipnet.se>
9546 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
9548 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
9551 2010-02-10 Jan Djärv <jan.h.d@swipnet.se>
9553 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
9554 doing_interact here.
9555 (ice_connection_closed): New function.
9556 (x_session_check_input, smc_die_CB, ice_io_error_handler)
9557 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
9558 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
9560 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
9563 2010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
9565 * nsfont.m (nsfont_open): The system's value for the font descent
9566 is negative, so round it down to avoid clipping.
9568 2010-02-06 Chong Yidong <cyd@stupidchicken.com>
9570 * charset.c (load_charset_map_from_file)
9571 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
9572 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
9574 2010-02-05 Chong Yidong <cyd@stupidchicken.com>
9576 * charset.c (load_charset_map_from_file): Allocate large
9577 charset_map_entries structure on the heap rather than the stack.
9580 2010-01-31 Kenichi Handa <handa@m17n.org>
9582 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
9583 size in NAME is invalid, return -1 (Bug#5396).
9585 2010-01-31 Chong Yidong <cyd@stupidchicken.com>
9587 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
9588 <deactivated@gmail.com> (Bug#3605).
9590 2010-01-31 David De La Harpe Golden <david@harpegolden.net>
9592 * fileio.c (Frename_file): Correctly rename symlinks to
9593 directories (Bug#5496).
9595 2010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
9597 * nsterm.m (ns_ring_bell): Handle visible bell like X.
9599 2010-01-30 Andreas Schwab <schwab@linux-m68k.org>
9601 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
9603 2010-01-29 Chong Yidong <cyd@stupidchicken.com>
9605 * frame.c (DEFAULT_ROWS): Change default to 35.
9607 * xfns.c (x_default_font_parameter): Change default XFT font to
9608 monospace-10 (Bug#3643).
9610 2010-01-29 Eli Zaretskii <eliz@gnu.org>
9612 * w32inevt.c (key_event): Remove unnecessary comparison of
9613 event->uChar.AsciiChar with 128.
9615 2010-01-28 Chong Yidong <cyd@stupidchicken.com>
9617 * fileio.c (Frename_file): Fix last change (Bug#5487).
9619 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
9621 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
9623 2010-01-28 Jan Djärv <jan.h.d@swipnet.se>
9625 * xfns.c (Fx_create_frame): Remove window size matching code from
9627 (x_get_current_desktop, x_get_desktop_workarea): Remove.
9629 2010-01-27 Jason Rumney <jasonr@gnu.org>
9631 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
9632 (key_event): Use unicode for characters 128 and higher (Bug#4567).
9634 2010-01-27 Kenichi Handa <handa@m17n.org>
9636 * regex.c (analyse_first): Fix setting of fastmap for unibyte
9637 pattern string (Bug#4209).
9639 2010-01-27 David De La Harpe Golden <david@harpegolden.net>
9641 * fileio.c (Frename_file): Call copy-directory and
9642 delete-directory for directories, in order to handle cross-device
9643 renaming (Bug#3353).
9645 2010-01-25 Jan Djärv <jan.h.d@swipnet.se>
9647 * xfns.c (Fx_create_frame): If frame height is too big, try
9648 sizes 24 and 10. Bug #3643.
9650 2010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
9652 Try and fix bug#788, hopefully for real this time.
9653 * keymap.c (shadow_lookup): Add `remap' arg.
9654 (describe_map, describe_vector): Update calls to shadow_lookup.
9655 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
9656 `remapped' so this flag is applicable to `sequence'. Be careful to
9657 perform remapping during shadow_lookup check of remapped_sequences.
9659 2010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
9661 * image.c (png_load): Use png_sig_cmp instead of the obsolete
9662 png_check_sig, which has been removed in libpng 1.4.
9664 2010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
9666 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
9667 lacks this header file).
9669 2010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9671 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
9674 2010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9676 * lisp.h (make_pure_string): String pointer arg now points to const.
9678 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
9679 args now point to const.
9681 2010-01-22 Eli Zaretskii <eliz@gnu.org>
9683 * lread.c (Fload): Don't treat files without .elc extension as
9684 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
9687 2010-01-20 Kenichi Handa <handa@m17n.org>
9689 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
9690 treat the source as actual byte sequence.
9692 2010-01-19 Alan Mackenzie <acm@muc.de>
9694 Fix spurious before-change-functions invocation from (insert ?\n).
9695 * textprop.c (set_text_properties): Rename parameter
9696 `signal_after_change_p' to `coherent_change_p', and make the
9697 invocation of `modify_region' conditional on it.
9699 2010-01-19 Jan Djärv <jan.h.d@swipnet.se>
9701 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
9703 (syms_of_xsettings): Declare xft-settings.
9705 2010-01-18 Chong Yidong <cyd@stupidchicken.com>
9707 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
9709 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
9711 * xterm.c (event_handler_gdk): Block input (Bug#5037).
9713 2010-01-16 Chong Yidong <cyd@stupidchicken.com>
9715 * emacs.c (standard_args): Adjust arg priorities to reflect how
9716 they are processed in startup.el.
9718 2010-01-16 Andreas Schwab <schwab@linux-m68k.org>
9720 * Makefile.in (lisp, shortlisp): Update.
9722 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
9724 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
9725 code, link the new kboard into all_kboard before running Lisp code,
9726 and protect the new terminal with GCPRO (Bug#5365).
9727 (x_term_init): Remove unused var `atom'.
9728 (x_delete_display, x_delete_terminal): Remove unused var `i'.
9730 2010-01-15 Jan Djärv <jan.h.d@swipnet.se>
9732 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
9733 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
9734 to find out usable size of the desktop. Don't make frames larger than
9737 2010-01-15 Kenichi Handa <handa@m17n.org>
9739 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
9741 2010-01-15 Chong Yidong <cyd@stupidchicken.com>
9743 * nsterm.m (Qnone): Define.
9745 * nsfns.m (Qnone): Move definition to nsterm.m.
9747 2010-01-14 Kenichi Handa <handa@m17n.org>
9749 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
9752 2010-01-14 Kenichi Handa <handa@m17n.org>
9754 Make auto-composition work on all buffers even if they are
9757 * composite.c (Vauto_composition_mode): New variable.
9758 (composition_compute_stop_pos): Check Vauto_composition_mode
9759 instead of Vauto_composition_function.
9760 (composition_adjust_point, Ffind_composition_internal): Likewise.
9761 (syms_of_composite): Declare Lisp variable
9762 "auto-composition-mode" here.
9764 2010-01-13 Chong Yidong <cyd@stupidchicken.com>
9766 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
9767 during call to vendor-specific-keysyms (Bug#5365).
9769 2010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9771 * keyboard.c (input_available_signal) [SYNC_INPUT]:
9772 Call SIGNAL_THREAD_CHECK (Bug#5333).
9774 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
9775 Call SIGNAL_THREAD_CHECK.
9777 2010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
9779 Try to fix bug#5314. This is probably not the final word, tho.
9780 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
9781 recent-auto-save-p as a side-effect.
9782 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
9783 * buffer.c (Fkill_buffer, reset_buffer):
9784 * editfns.c (Fsubst_char_in_region):
9785 * fileio.c (Finsert_file_contents, Fdo_auto_save)
9786 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
9788 2010-01-13 Kenichi Handa <handa@m17n.org>
9790 Display buffer name, etc. in mode line by composing correctly.
9792 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
9794 (display_mode_element): Adjust for the change of
9795 decode_mode_spec and display_line.
9796 (decode_mode_spec): Change arg MULTIBYTE to STRING.
9797 (display_string): Handle the case that STRING is non-null and
9798 LISP_STRING is not nil.
9800 * xterm.c (x_draw_composite_glyph_string_foreground):
9801 Pay attention to s->face->overstrike.
9803 * composite.c (composition_reseat_it): Don't check PT if STRING is
9806 2010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9808 * keyboard.c (read_char): Don't apply previous change when current
9809 buffer is unchanged by command execution.
9811 2010-01-12 Jan Djärv <jan.h.d@swipnet.se>
9813 * keyboard.c (read_char): Return after executing from special map.
9815 2010-01-12 Glenn Morris <rgm@gnu.org>
9817 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
9818 bug-gnu-emacs rather than emacs-pretest-bug.
9820 2010-01-11 Chong Yidong <cyd@stupidchicken.com>
9822 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
9823 initializing the Lisp variables that depend on them.
9825 2010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9827 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
9828 Clear areas that will not be updated after change of menu bar lines.
9829 Clear the menu bar window's current matrix when the window gets empty.
9831 2010-01-09 Chong Yidong <cyd@stupidchicken.com>
9833 * intervals.h, textprop.c (extend_property_ranges): Return value
9834 and args changed. Discard properties that begin at or after the
9837 * editfns.c (Fformat): Caller changed.
9839 * nsterm.m (ns_set_default_prefs): Delete function.
9840 (syms_of_nsterm): Initialize ns_command_modifier,
9841 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
9842 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
9844 * xdisp.c (pos_visible_p): Check for invisible text at the correct
9845 position (Bug#4040).
9847 2010-01-09 Eli Zaretskii <eliz@gnu.org>
9849 * editfns.c (Ffloat_time): Doc fix.
9851 2010-01-09 Jan Djärv <jan.h.d@swipnet.se>
9853 * xfns.c (Fx_create_frame): Don't create frame larger than display
9854 by default bug#3643.
9856 2010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9858 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
9859 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
9860 windows above internal border.
9862 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
9863 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
9864 windows above internal border.
9866 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
9867 tool bar windows specially.
9869 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
9871 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
9873 (XTflash): Take account of menu bar height.
9875 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
9878 2010-01-08 Jan Djärv <jan.h.d@swipnet.se>
9880 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
9881 also be true before we can return early (bug #5339).
9883 2010-01-06 David Reitter <david.reitter@gmail.com>
9885 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
9886 (Fns_display_usable_bounds): Rewrite, computing bounds properly
9889 2010-01-06 Jan Djärv <jan.h.d@swipnet.se>
9891 * font.c (font_open_entity): Enable chache and call cached_font_ok
9892 for the driver if defined.
9893 (QCuser_spec): New symbol.
9894 (font_spec_from_name): Save name as user-spec.
9895 (font_load_for_lface): Keep user-spec instead of name.
9896 (font_open_by_name): Save name as user-spec.
9897 (syms_of_font): Initialize QCuser_spec.
9898 (font_clear_prop): Clear name if it exists in font (bug#5157).
9900 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
9901 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
9902 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
9904 * font.h (struct font_driver): Add cached_font_ok.
9906 * xterm.c (x_clear_frame): Queue draw for scroll bars.
9908 2010-01-05 Jan Djärv <jan.h.d@swipnet.se>
9910 * xterm.c (x_new_font): Move code for setting rows/cols before
9912 (x_set_window_size): ... to here. Bug #2568.
9914 * gtkutil.c (xg_clear_under_internal_border): New function.
9915 (xg_frame_resized, xg_frame_set_char_size):
9916 Call xg_clear_under_internal_border.
9917 (xg_update_scrollbar_pos): Clear under old scroll bar position.
9919 2010-01-05 Chong Yidong <cyd@stupidchicken.com>
9921 * keyboard.c (read_key_sequence): Catch keyboard switch after
9922 making a new tty frame (Bug#5095).
9924 2010-01-05 Kenichi Handa <handa@m17n.org>
9926 * fontset.c (fontset_find_font): Fix getting the frame pointer.
9928 2010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
9930 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
9931 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
9932 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
9934 2010-01-03 Michael Albinus <michael.albinus@gmx.de>
9936 * dbusbind.c (xd_add_watch): Improve debug message.
9937 (xd_remove_watch): Improve debug message. If DATA is the session
9938 bus, unset D-Bus session environment.
9939 (Fdbus_init_bus): Pass the bus as argument to
9940 dbus_connection_set_watch_functions. (Bug#5283)
9942 2010-01-01 Chong Yidong <cyd@stupidchicken.com>
9944 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
9946 * lread.c (syms_of_lread): Make it clearer that these are the
9947 names of loaded files (Bug#5068).
9949 * eval.c (run_hook_with_args): Handle the case where the global
9950 value has the obsolete single-function form (Bug#5026).
9952 2009-12-27 Chong Yidong <cyd@stupidchicken.com>
9954 * minibuf.c (Fall_completions): Minor optimization.
9956 2009-12-26 Eli Zaretskii <eliz@gnu.org>
9958 * .gdbinit (pgx): Fix display of composite glyphs.
9959 Display cmp.from and cmp.to as well.
9960 (pitx): Fix last change.
9962 2009-12-25 Kenichi Handa <handa@m17n.org>
9964 * composite.h (composition_adjust_point): Update prototype.
9966 * composite.c (composition_reseat_it): Don't make a composition
9967 spanning over point.
9968 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
9969 composable characters.
9970 (composition_adjust_point): New arg NEW_PT. Callers changed.
9972 * keyboard.c (command_loop_1): Force redisplay if the last point
9973 was within a composition.
9974 (adjust_point_for_property): Don't adjust point for automatic
9975 composition when called after buffer modification.
9977 2009-12-19 Eli Zaretskii <eliz@gnu.org>
9979 * .gdbinit (pitx): Don't use enum names, use their values.
9980 Remove reference to non-existing value GET_FROM_COMPOSITION.
9981 (pgx): Don't use enum names, use their values.
9982 (pitmethod): New helper command.
9983 (pitx): Use it to display iteration method.
9984 (pgrowit): New command.
9986 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
9988 Update dependencies in Makefile.in.
9990 * Makefile.in (alloc.o): Depend on termhooks.h.
9991 (atimer.o): Depend on blockinput.h.
9992 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
9994 (callint.o): Depend on systime.h, coding.h, and composite.h.
9995 (callproc.o): Depend on buffer.h.
9996 (casefiddle.o): Don't depend on charset.h.
9997 (casetab.o): Depend on character.h.
9998 (ccl.o): Depend on composite.h.
9999 (chartab.o): Depend on ccl.h.
10000 (cm.o): Depend on dispextern.h.
10001 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
10002 (coding.o): Don't depend on $(INTERVALS_H).
10003 (composite.o): Don't depend on dispextern.h explicitly (it's in
10004 $(INTERVALS_H)). Depend on ccl.h.
10005 (data.o): Depend on systime.h, coding.h, composite.h,
10006 dispextern.h, font.h, and ccl.h.
10007 (dired.o): Depend on composite.h.
10008 (dispnew.o): Depend on coding.h. Don't depend explicitly on
10009 composite.h (it's in $(INTERVALS_H)).
10010 (doc.o): Depend on systime.h, coding.h, and composite.h.
10011 (editfns.o): Don't depend explicitly on dispextern.h.
10012 (emacs.o): Depend on frame.h and coding.h.
10013 (eval.o): Depend on coding.h, composite.h, and xterm.h.
10014 (fileio.o): Depend on frame.h and commands.h. Don't depend
10015 explicitly on dispextern.h.
10016 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
10018 (fns.o): Don't depend on termhooks.h.
10019 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
10020 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
10021 coding.h, $(INTERVALS_H), window.h, xterm.h.
10022 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
10023 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
10024 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
10025 fontset.h, ccl.h, and ftfont.h.
10026 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
10027 (gtkutil.o): Depend on dispextern.h and composite.h.
10028 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
10029 termhooks.h, and ccl.h.
10030 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
10031 (intervals.o): Depend on systime.h and coding.h.
10032 (keyboard.o): Depend on composite.h and coding.h.
10033 (keymap.o): Depend on coding.h and frame.h.
10034 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
10035 (macros.o): Depend on systime.h, coding.h, and composite.h.
10036 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
10038 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
10039 dispextern.h explicitly.
10040 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
10041 Don't depend explicitly on dispextern.h and composite.h.
10042 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
10043 (regex.o): Don't depend on charset.h.
10044 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
10045 (search.o): Don't depend explicitly on composite.h.
10046 (sound.o): Depend on atimer.h and systime.h.
10047 (syntax.o): Don't depend explicitly on composite.h.
10048 (sysdep.o): Depend on coding.h and composite.h.
10049 (term.o): Depend on xterm.h and buffer.h.
10050 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
10051 (textprop.o): Don't depend on dispextern.h explicitly.
10052 (undo.o): Depend on dispextern.h.
10053 (window.o): Depend on coding.h and termhooks.h. Don't depend on
10054 dispextern.h and composite.h explicitly.
10055 (xdisp.o): Depend on ccl.h.
10056 (xfaces.o): Depend on coding.h and ccl.h.
10057 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
10058 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
10059 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
10061 (xgselect.o): New dependency.
10062 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
10063 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
10064 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
10065 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
10066 (xsmfns.o): Depend on frame.h and dispextern.h.
10067 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
10070 2009-12-19 Andreas Schwab <schwab@linux-m68k.org>
10072 * font.c (Fclear_font_cache): Pass correct cache argument to
10075 2009-12-16 Andreas Schwab <schwab@linux-m68k.org>
10077 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
10080 2009-12-15 Chong Yidong <cyd@stupidchicken.com>
10082 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
10083 calling file-remote-p. Reported by Jim Meyering.
10085 2009-12-15 Michael Albinus <michael.albinus@gmx.de>
10087 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
10088 avoid compiler warnings. (Bug #5217)
10090 2009-12-14 Kenichi Handa <handa@m17n.org>
10092 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
10095 2009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
10097 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
10100 2009-12-13 Jan Djärv <jan.h.d@swipnet.se>
10102 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
10103 Xatom_net_window_type.
10105 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
10106 Xatom_net_window_type.
10108 * xterm.c (my_log_handler): New function.
10109 (x_term_init): Set my_log_handler as log handler during gtk_init
10110 so we can filter out buggy messages. (Bug #5120).
10112 * xterm.c (xg_scroll_callback): Parameter list changed,
10113 use parameter GtkScrollType to determine scroll/line/page.
10114 Only allow dragging if a button < 4 is grabbed (bug #5177).
10115 (xg_end_scroll_callback): New function.
10116 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
10117 xg_create_scroll_bar.
10119 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
10120 (scroll_end_callback): Remove.
10121 (xg_create_scroll_bar): Add parameter end_callback, bind it to
10122 button-release-event. Replace value-changed event with change-value,
10124 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
10127 * gtkutil.h (XG_LAST_SB_DATA): Remove.
10128 (xg_create_scroll_bar): Add GCallback end_callback.
10130 * xftfont.c (QClcdfilter): New variable.
10131 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
10132 (syms_of_xftfont): Initialize QClcdfilter.
10134 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
10136 * xsettings.c (struct xsettings): Add member seen.
10137 (parse_xft_settings): Update member seen with what we have read.
10138 Return non-zero if Xft-settings have been parsed, 0 otherwise.
10139 (apply_xft_settings): Only update Xft settings with what member seen
10142 2009-12-12 Eli Zaretskii <eliz@gnu.org>
10144 * dispextern.h (struct text_pos): Use EMACS_INT.
10145 (struct glyph): Use EMACS_INT for charpos.
10146 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
10147 region_beg_charpos, region_end_charpos,
10148 redisplay_end_trigger_charpos, and also for
10149 iterator_stack_entry.end_charpos and
10150 iterator_stack_entry.stop_charpos.
10152 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
10154 * gtkutil.c (scroll_end_callback): New function (bug #5177).
10155 (xg_create_scroll_bar): Call scroll_end_callback on button release
10157 (xg_event_is_for_scrollbar): != replaced with ==.
10159 2009-12-12 Kenichi Handa <handa@m17n.org>
10161 * ftfont.c (struct ftfont_info): New member matrix.
10162 (ftfont_open): Setup xftfont_info->matrix.
10163 (MFLTFontFT): New member matrix.
10164 (FLOOR, CEIL, ROUND): New macros.
10165 (ftfont_get_metrics): Handle matrix transformation.
10166 (ftfont_shape_by_flt): New arg matrix. Callers changed.
10168 * xftfont.c (struct xftfont_info): New member matrix.
10169 (xftfont_open): Setup xftfont_info->matrix.
10171 2009-12-10 Kenichi Handa <handa@m17n.org>
10173 * xdisp.c (append_space_for_newline): Consider face-remapping.
10175 2009-12-09 Andreas Schwab <schwab@linux-m68k.org>
10177 * xsettings.c: Include "keyboard.h".
10179 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
10181 Fix implicit function declarations.
10182 * cmds.c: Include "frame.h".
10183 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
10184 * frame.h: Move declaration of delete_frame outside of
10185 HAVE_WINDOW_SYSTEM.
10187 2009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
10189 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
10191 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
10194 2009-12-07 Andreas Schwab <schwab@linux-m68k.org>
10196 * unexelf.c (unexec): Don't search for .data twice.
10198 2009-12-05 Chong Yidong <cyd@stupidchicken.com>
10200 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
10202 (handle_line_prefix): Set avoid_cursor_p here. Check return value
10203 of push_display_prop (Bug#5000).
10205 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
10206 value of font_list_entities (Bug#5085).
10208 2009-12-04 Juanma Barranquero <lekktu@gmail.com>
10210 Fix `string-to-number' to deal consistently with integers and floats.
10211 * lread.c (isfloat_string): New argument ignore_trailing to accept all
10212 trailing characters, not just whitespace.
10213 (read1): Pass new arg 0 to keep old behavior.
10214 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
10215 trailing chars, as it is already done for integers. Doc fixes.
10216 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
10218 2009-12-04 Eli Zaretskii <eliz@gnu.org>
10220 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
10221 Delete unused enumeration value.
10223 2009-12-03 Eli Zaretskii <eliz@gnu.org>
10225 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
10227 2009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
10229 * process.c (Fmake_network_process): Fix up the tests for
10230 "connectionless socket", so they DTRT for seqpacket sockets as well.
10232 2009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
10234 * process.c (Qseqpacket): New symbol.
10235 (HAVE_SEQPACKET): New macro.
10236 (Fmake_network_process): Accept new :type `seqpacket'.
10237 (init_process): Add `seqpacket' feature when applicable.
10238 (syms_of_process): Initialize Qseqpacket.
10240 2009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10242 * font.c (font_load_for_lface, font_open_by_name): Don't store name
10245 2009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
10247 * print.c (print_preprocess): Preprocess the key_and_value table of
10248 hashtables, even tho they're "hidden" (bug#5082).
10250 2009-11-29 Jan Djärv <jan.h.d@swipnet.se>
10252 * frame.c (frame_make_pointer_invisible)
10253 (frame_make_pointer_visible): Declare f before statements.
10255 2009-11-28 Eli Zaretskii <eliz@gnu.org>
10257 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
10258 omitted dependencies on lisp.h.
10260 2009-11-27 Jan Djärv <jan.h.d@swipnet.se>
10262 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
10265 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
10267 * frame.c (frame_make_pointer_invisible)
10268 (frame_make_pointer_visible): Just return if there isn't any selected
10271 * search.c (simple_search): Remove warning by making *p const.
10273 2009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
10275 * xdisp.c (power_letter): Remove duplicate const.
10277 2009-11-25 Jan Djärv <jan.h.d@swipnet.se>
10279 * term.c (delete_tty): Remove check for last terminal (bug#4970).
10281 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
10282 defaults (bug #5025).
10284 2009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
10286 * insdel.c (adjust_markers_for_delete): Move it in the
10287 right direction! (bug#4803)
10289 2009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10291 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
10293 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
10295 2009-11-24 Glenn Morris <rgm@gnu.org>
10297 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
10299 2009-11-23 Jan Djärv <jan.h.d@swipnet.se>
10301 * Makefile.in: Must create deps for ecrt0.o in its rule.
10303 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
10304 because that is what Gtk+ font dialog understands.
10306 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
10308 (font_open_by_name): Put name given into QCname for font-object returned.
10310 * frame.c (x_set_font): Save original font name as frame parameter
10313 * xsettings.c (set_default_xft_settings): New function.
10314 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
10317 2009-11-22 Andreas Schwab <schwab@linux-m68k.org>
10319 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
10320 searching backwards through multibyte buffer.
10322 2009-11-21 Jan Djärv <jan.h.d@swipnet.se>
10324 * xterm.c: #include xgselect.h.
10325 (x_initialize): Call xgselect_initialize.
10327 * xsettings.c (something_changedCB): C++ comments => C comments.
10328 (init_gconf): Do not deal with any GLib file descriptors, xg_select
10331 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
10332 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
10333 (scroll_bar_button_cb): Remove.
10334 (create_menus): C++ comments => C comments. Don't bind grab-notify
10336 (xg_create_scroll_bar): Don't bind button-press-event and
10337 button-release-event.
10339 * process.c: Include xgselect.h if defined (USE_GTK) ||
10340 defined (HAVE_GCONF).
10341 (wait_reading_process_output): Call xg_select for the same condition.
10343 * xgselect.c (xg_select): New function to better integrate with
10344 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
10346 * xgselect.h: New file, declare xg_select, xgselect_initialize.
10348 * Makefile.in (XOBJ): Add xgselect.o.
10350 2009-11-21 Andreas Schwab <schwab@linux-m68k.org>
10352 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
10353 Remove ignored second argument. All callers changed.
10354 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
10355 (RE_STRING_CHAR_AND_LENGTH): Likewise.
10356 * xdisp.c (string_char_and_length): Likewise.
10358 2009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
10360 * xterm.c (x_new_font):
10361 * print.c (print_object):
10362 * cmds.c (Fself_insert_command): Move declarations before statements.
10364 2009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
10366 * s/cygwin.h: Remove unneeded linker flags.
10368 2009-11-20 Jan Djärv <jan.h.d@swipnet.se>
10370 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
10372 * xsettings.h: Declare xsettings_get_system_font.
10374 * xsettings.c (xsettings_get_system_font): New function.
10375 (init_gconf): No use initiating gconf unless we have Xft also.
10376 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
10379 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
10380 add a blank entry so it doesn't collapse into nothing.
10382 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
10384 * lread.c (Funintern): Comment out last change.
10386 2009-11-19 Richard Stallman <rms@gnu.org>
10388 * lread.c (Funintern): Error if symbol is t or nil.
10390 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
10392 * insdel.c (make_gap_larger): Don't make as many assumptions about the
10393 representation of Lisp integers.
10394 Reported by MJ Chan <mjchan.inbox@gmail.com>.
10396 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
10398 * lisp.h: Remove declaration of Ffont_get_system_font.
10399 * xfns.c: Move include of "xsettings.h".
10400 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
10402 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
10404 * xsettings.c (something_changedCB, Ffont_get_system_font):
10405 Check use_system_font.
10406 (syms_of_xsettings): DEFVAR font-use-system-font.
10408 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
10410 * xfns.c (x_default_font_parameter): Remove dead assignment.
10412 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
10414 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
10416 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
10417 not have FC_LCD_*. #define them if not there.
10419 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
10421 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
10423 * xterm.c (handle_one_xevent): Call xft_settings_event for
10424 ClientMessage, PropertyNotify and DestroyNotify.
10425 (x_term_init): If we have XFT, get DPI from Xft.dpi.
10426 Call xsettings_initialize.
10428 * xftfont.c (xftfont_fix_match): New function.
10429 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
10430 Call xftfont_fix_match after XftFontMatch.
10432 * xfont.c (xfont_driver): Initialize all members.
10434 * xfns.c (x_default_font_parameter):
10435 Try font from Ffont_get_system_font.
10436 Do not get font from x_default_parameter if we got one from
10437 Ffont_get_system_font.
10438 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
10440 * w32font.c (w32font_driver): Initialize all members.
10442 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
10444 * lisp.h: Declare syms_of_xsettings.
10446 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
10447 Handle CONFIG_CHANGED_EVENT.
10449 * ftfont.c (ftfont_filter_properties): New function.
10451 * frame.c (x_set_font): Remove unused variable lval.
10453 * font.h (struct font_driver): Add filter_properties.
10455 * font.c (font_put_extra): Don't return if val is nil, it means
10456 boolean option is off.
10457 (font_parse_fcname): Collect all extra properties in extra_props
10458 and call filter_properties for all drivers with extra_props and
10460 (font_open_entity): Do not use cache, it does not pick up new
10461 fontconfig settings like hinting.
10462 (font_load_for_lface): If spec had a name in it, store it in entity.
10464 * emacs.c (main): Call syms_of_xsettings.
10466 * config.in: HAVE_GCONF is new.
10468 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
10469 xsettings.o is new.
10471 2009-11-17 Kenichi Handa <handa@m17n.org>
10473 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
10474 back to the default font in case that no suitable font is found.
10476 2009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
10478 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
10479 Suggested by Chad Brown <yandros@mit.edu>.
10480 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
10482 2009-11-16 Jan Djärv <jan.h.d@swipnet.se>
10484 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
10486 2009-11-14 Andreas Schwab <schwab@linux-m68k.org>
10488 * Makefile.in: Ignore errors from mkdir when creating deps directory.
10490 2009-11-14 Jan Djärv <jan.h.d@swipnet.se>
10492 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
10495 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
10496 dependency files in deps/. Include those files into Makefile.
10498 * config.in: Generated (AUTO_DEPEND).
10500 2009-11-13 Michael Albinus <michael.albinus@gmx.de>
10502 * dbusbind.c (Vdbus_registered_objects_table): Rename from
10503 Vdbus_registered_functions_table, because it contains also
10504 properties. Fix docstring.
10505 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
10507 2009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
10509 * alloc.c (mark_object): Don't reprocess marked strings.
10510 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
10511 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
10513 2009-11-13 Kenichi Handa <handa@m17n.org>
10515 * category.c (word_boundary_p): Adjust for the change of the
10516 semantics of Vword_combining_categories.
10517 (Vword_combining_categories): Describe the slight change of the
10520 2009-11-13 Eli Zaretskii <eliz@gnu.org>
10522 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
10524 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
10526 2009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
10528 * xdisp.c (syms_of_xdisp): Fix typo in last change.
10530 2009-11-12 Juanma Barranquero <lekktu@gmail.com>
10532 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
10534 2009-11-11 David Reitter <david.reitter@gmail.com>
10536 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
10537 variables to fix 2009-11-09 change.
10539 2009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
10541 * process.c (ifflag_def): Make flag_sym constant.
10542 (Fnetwork_interface_info): Use a constant pointer.
10544 * xfns.c (cursor_bits):
10545 * xdisp.c (power_letter):
10546 * termcap.c (speeds, esctab):
10547 * sysdep.c (baud_convert):
10548 * keyboard.c (lispy_accent_codes, modifier_names):
10549 * image.c (xbm_format, xpm_format, pbm_format, png_format)
10550 (jpeg_format, tiff_format, gif_format, svg_format)
10551 (interlace_start, interlace_increment, gs_format):
10552 * gtkutil.c (separator_names):
10553 * fringe.c (swap_nibble):
10554 * fns.c (base64_value_to_char, base64_char_to_value):
10555 * fileio.c (make_temp_name_tbl):
10556 * coding.c (suffixes): Make constant.
10558 * frame.c (make_initial_frame):
10559 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
10561 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
10564 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
10566 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
10567 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
10569 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
10570 * xterm.c (syms_of_xterm):
10571 * xfaces.c (syms_of_xfaces):
10572 * xdisp.c (syms_of_xdisp):
10573 * lread.c (syms_of_lread):
10574 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
10577 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
10579 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
10581 * fns.c (Fplist_get): Merge the active and the commented out code.
10583 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
10585 * keyboard.h: Declare timer_check.
10587 * keyboard.c (timer_check_2): New function that does what the old
10589 (timer_check): Call timer_check_2 until -1 or a non-zero time is
10590 returned, i.e. don't return -1 with timers pending.
10592 * process.c: Remove extern declaration of timer_check.
10594 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
10595 even if timer_check returned -1.
10597 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
10599 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
10601 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
10602 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
10603 Destroy the dialog after xg_dialog_run.
10605 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
10607 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
10609 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
10611 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
10613 2009-11-09 Juanma Barranquero <lekktu@gmail.com>
10615 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
10617 2009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
10619 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
10620 w32menu.c, and nsmenu.m.
10621 Simplify the obsolete case where position is nil.
10622 (cleanup_popup_menu): New function, moved from nsmenu.m.
10623 (struct skp): Remove slot `notreal'.
10624 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
10626 (single_menu_item): Adjust call to parse_menu_item.
10627 (syms_of_menu): Defsubr x-popup-menu.
10628 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
10629 (keymap_panes): Don't export any more.
10630 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
10631 (xmenu_show): Declare.
10632 * keyboard.c (parse_menu_item): Remove arg `notreal'.
10633 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
10634 * keyboard.h (parse_menu_item): Update declaration.
10635 * xmenu.c (Fx_popup_menu): Remove.
10636 (syms_of_xmenu): Don't defsubr x-popup-menu.
10637 * w32menu.c (Fx_popup_menu): Remove.
10638 (syms_of_w32menu): Don't defsubr x-popup-menu.
10639 * nsmenu.m (cleanup_popup_menu): Remove.
10640 (ns_menu_show): Rename from ns_popup_menu and remove all the code
10641 moved to menu.c's Fx_popup_menu.
10642 (Fx_popup_menu): Remove.
10643 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
10644 menu_items (it's done in menu.c already).
10646 2009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
10648 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
10649 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
10651 2009-11-08 Chong Yidong <cyd@stupidchicken.com>
10653 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
10654 xmenu_show. Hide any tooltip before opening a menu.
10655 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
10656 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
10658 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
10660 Let integers use up 2 tags to give them one extra bit and thus double
10662 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
10663 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
10665 (enum Lisp_Type): Use them. Give explicit values.
10666 (Lisp_Type_Limit): Remove.
10667 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
10668 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
10669 Pay attention to USE_2_TAGS_FOR_INTS.
10670 (INTEGERP): Use LISP_INT_TAG_P.
10671 * fns.c (internal_equal): Simplify the default case.
10672 (sxhash): Use case_Lisp_Int.
10673 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
10675 (Ftype_of): Use case_Lisp_Int.
10676 (store_symval_forwarding): Take into account the fact that Ints can
10677 now have more than one tag.
10678 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
10679 (buffer_slot_type_mismatch):
10680 * xfaces.c (face_attr_equal_p):
10681 * print.c (print_object):
10682 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
10685 2009-11-06 Eli Zaretskii <eliz@gnu.org>
10687 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
10689 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
10692 2009-11-06 Jan Djärv <jan.h.d@swipnet.se>
10694 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
10696 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
10698 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
10699 ButtonPressRelease and MotionNotify (bug#4870).
10701 2009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
10703 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
10705 * xterm.c (syms_of_xterm):
10706 * xselect.c (syms_of_xselect):
10707 * xmenu.c (syms_of_xmenu):
10708 * xfns.c (syms_of_xfns):
10709 * xfaces.c (syms_of_xfaces):
10710 * xdisp.c (syms_of_xdisp):
10711 * window.c (syms_of_window):
10712 * w32fns.c (syms_of_w32fns):
10713 * undo.c (syms_of_undo):
10714 * textprop.c (syms_of_textprop):
10715 * terminal.c (syms_of_terminal):
10716 * syntax.c (syms_of_syntax):
10717 * sound.c (syms_of_sound):
10718 * search.c (syms_of_search):
10719 * print.c (syms_of_print):
10720 * minibuf.c (syms_of_minibuf):
10721 * macros.c (syms_of_macros):
10722 * keymap.c (syms_of_keymap, initial_define_key)
10723 (initial_define_lispy_key):
10724 * keyboard.c (syms_of_keyboard):
10725 * insdel.c (syms_of_insdel):
10726 * image.c (syms_of_image):
10727 * fringe.c (syms_of_fringe):
10728 * frame.c (syms_of_frame):
10729 * fontset.c (syms_of_fontset):
10730 * fns.c (syms_of_fns):
10731 * fns.c (syms_of_fns):
10732 * fileio.c (syms_of_fileio):
10733 * fileio.c (syms_of_fileio):
10734 * eval.c (syms_of_eval):
10735 * doc.c (syms_of_doc):
10736 * dispnew.c (syms_of_display):
10737 * dired.c (syms_of_dired):
10738 * dbusbind.c (syms_of_dbusbind):
10739 * data.c (syms_of_data):
10740 * composite.c (syms_of_composite):
10741 * coding.c (syms_of_coding):
10742 * cmds.c (syms_of_cmds):
10743 * charset.c (define_charset_internal, syms_of_character):
10744 * ccl.c (syms_of_ccl):
10745 * category.c (syms_of_category, init_category_once):
10746 * casetab.c (syms_of_casetab):
10747 * casefiddle.c (syms_of_casefiddle):
10748 * callint.c (syms_of_callint):
10749 * bytecode.c (syms_of_bytecode):
10750 * buffer.c (keys_of_buffer, syms_of_buffer):
10751 * alloc.c (syms_of_alloc):
10752 * process.c (syms_of_process, init_process):
10753 * lread.c (syms_of_lread, init_obarray):
10754 * font.c (build_style_table):
10755 * emacs.c (syms_of_emacs, main): Replace calls to intern with
10756 intern_c_string, calls to make_pure_string with
10757 make_pure_c_string. Use pure_cons instead of Fcons.
10759 * process.c (socket_options): Make it const.
10760 (set_socket_option, init_process): Use a const pointer.
10762 * lread.c (intern_c_string): New function.
10763 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
10764 (defvar_int): Uset it. Make the name const char*.
10766 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
10767 (defvar_int): Update prototypes.
10768 (DEFUN, EXFUN): Support for prototypes is now required.
10769 (intern_c_string): New prototype.
10770 (struct Lisp_Subr): Make symbol_name constant.
10772 * font.c (struct table_entry): Remove unused member. Make NAMES
10774 (weight_table, slant_table, width_table): Make constant.
10776 * emacs.c (struct standard_args): Make name and longname constant.
10778 * character.h (DEFSYM): Use intern_c_string.
10780 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
10782 * alloc.c (make_pure_c_string): New function.
10784 * eval.c (Fautoload): Purecopy all arguments.
10786 2009-11-05 Kenichi Handa <handa@m17n.org>
10788 * fileio.c (Finsert_file_contents): Be sure set coding-system of
10789 the buffer in case of replace.
10791 2009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
10793 * puresize.h (BASE_PURESIZE): Increase to 1620000.
10795 2009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
10797 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
10798 when applicable (bug#4851).
10800 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
10801 (P_): Support for prototypes is now required.
10803 2009-10-31 Chong Yidong <cyd@stupidchicken.com>
10805 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
10808 2009-10-30 Eli Zaretskii <eliz@gnu.org>
10810 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
10812 2009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
10814 * puresize.h (BASE_PURESIZE): Increase to 1470000.
10816 * lread.c (Fload): Purecopy the file name when building
10817 Vpreloaded_file_list.
10819 2009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
10821 * w32fns.c (syms_of_w32fns): Change default value of
10822 w32-scroll-lock-modifier to nil. (Bug#2827)
10824 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
10826 * minibuf.c (Fall_completions): Fix typos in docstring.
10828 2009-10-26 Andreas Schwab <schwab@redhat.com>
10830 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
10832 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
10834 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
10835 For delta < 0, skip check that only makes sense when the mini-window
10836 is going to be enlarged. (Bug#4534)
10838 2009-10-25 Chong Yidong <cyd@stupidchicken.com>
10840 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
10841 string in menu maps (Bug#4471).
10843 2009-10-24 Chong Yidong <cyd@stupidchicken.com>
10845 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
10846 FRAME_NS_VIEW on terminal frames (Bug#4765).
10848 2009-10-24 Andreas Schwab <schwab@linux-m68k.org>
10850 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
10851 DBUS_TYPE_UINTnn separately to get proper sign extension.
10853 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
10854 can properly handle unsigned types.
10855 (make_uid, make_gid): Remove.
10857 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
10860 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10861 (system_process_attributes): Likewise.
10863 2009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
10865 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
10867 * eval.c (Fautoload): Purecopy the filename. Simplify.
10869 * category.c (Fdefine_category): Purecopy docstring.
10871 2009-10-23 Andreas Schwab <schwab@linux-m68k.org>
10873 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
10875 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
10877 2009-10-23 Chong Yidong <cyd@stupidchicken.com>
10879 * window.c (Fwindow_edges, Fwindow_pixel_edges)
10880 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
10883 2009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
10885 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
10886 (init_fileio_once):
10887 * lisp.h (init_fileio_once): Remove.
10888 * emacs.c (main): Don't call init_fileio_once.
10890 2009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
10892 * puresize.h (BASE_PURESIZE): Increase to 1430000.
10894 2009-10-21 Andreas Schwab <schwab@linux-m68k.org>
10896 * doprnt.c (doprnt): Fix overflow check.
10898 2009-10-21 Jan Djärv <jan.h.d@swipnet.se>
10900 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
10902 * xterm.h (x_wait_for_event): Declare it.
10904 * xterm.c (pending_event_wait): New variable.
10905 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
10906 see pending_event_wait.eventtype.
10907 (handle_one_xevent): Don't change gravity when parent changes.
10908 (x_new_font): Call change_frame_size with new rows/columns before we
10909 try to resize the frame.
10910 (x_wait_for_event): New function.
10911 (x_set_window_size_1): Don't change gravity unless change_gravity
10913 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
10914 don't change frame size, instead wait for the ConfigureNotify.
10915 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
10916 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
10917 (x_initialize): Initialize pending_event_wait.
10919 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
10922 * widget.c (EmacsFrameSetValues): Add comment.
10923 (EmacsFrameSetCharSize): Just call x_set_window_size.
10925 * gtkutil.c (xg_frame_set_char_size): Flush events and call
10927 (flush_and_sync): Remove again.
10928 (xg_get_font_name): Suggest monospace if no previous font is known.
10930 2009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
10932 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
10933 8th bit, since that only made sense in the ASCII world (bug#4751).
10935 2009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10937 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
10938 processing pending events when event is filtered for input method.
10941 2009-10-20 Juanma Barranquero <lekktu@gmail.com>
10943 * fns.c: Add #endif accidentally removed in previous change.
10945 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
10947 * fns.c: Remove code for unsupported system: MAC_OS.
10948 * image.c: Likewise. Include setjmp.h.
10950 2009-10-19 Jan Djärv <jan.h.d@swipnet.se>
10952 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
10953 pixel -1 (bug #4742).
10955 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
10957 * process.c (create_pty): Remove conditionals for no longer
10958 supported systems: UNIPLUS and RTU.
10961 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
10963 * alloc.c: Do not define struct catchtag.
10964 * eval.c: Move struct catchtag definition ...
10965 * lisp.h: ... here.
10967 * image.c: Move png.h #include earlier to avoid warnings.
11068 * atimer.c: Include setjmp.h. (Bug#4643)
11070 2009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
11072 Remove leftover table unibyte_to_multibyte_table.
11073 * character.c (unibyte_to_multibyte_table): Remove.
11074 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
11075 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
11076 * character.h (UNIBYTE_TO_CHAR): New macro.
11077 (MAKE_CHAR_MULTIBYTE): Use it.
11078 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
11079 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
11080 (message_dolog, set_message_1):
11081 * search.c (Freplace_match):
11082 * editfns.c (Fcompare_buffer_substrings):
11083 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
11085 * insdel.c (copy_text, count_size_as_multibyte):
11086 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
11087 * term.c (produce_glyphs):
11088 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
11089 * regex.c (RE_CHAR_TO_MULTIBYTE):
11090 * cmds.c (internal_self_insert):
11091 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
11093 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
11095 2009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
11097 * puresize.h (BASE_PURESIZE): Increase to 1310000.
11099 2009-10-16 Juanma Barranquero <lekktu@gmail.com>
11101 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
11103 2009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
11105 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
11106 still needed under Tiger.
11108 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
11110 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
11113 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
11115 2009-10-15 Kenichi Handa <handa@m17n.org>
11117 * print.c (print_object): Escape a symbol like "2E10" too.
11119 2009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
11121 Cleanups and changes for 64-bit compile under Snow Leopard.
11122 Based on suggestions by Erik Charlebois.
11124 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
11126 * nsfont.m (ns_char_width): Replace deprecated call.
11127 (ns_findfonts, nsfont_list_family): Use long format in printf, and
11129 (nsfont_open): Use ns_char_width() everywhere.
11130 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
11132 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
11134 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
11137 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
11139 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
11140 Use stringWithUTF8String.
11141 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
11143 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
11144 Add formal protocol mention to inheritance.
11145 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
11147 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
11149 (ns_query_color): Use CGFloat where appropriate.
11150 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
11151 (EmacsScroller-mouseDown:): Use long format in printf, and cast
11154 * config.in (NS_HAVE_NSINTEGER): Drop.
11156 * dbusbind.c (dbus-method-return-internal)
11157 (dbus-method-error-internal): Use long format in printf, and cast
11160 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
11161 in printf, and cast argument.
11163 * process.c (list_processes_1): Use long format in printf, and
11166 2009-10-11 Glenn Morris <rgm@gnu.org>
11168 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
11170 2009-10-08 Jan Djärv <jan.h.d@swipnet.se>
11172 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
11173 menu bar with a small width so it doesn't enlarge the frame.
11175 2009-10-08 Juanma Barranquero <lekktu@gmail.com>
11177 * fontset.c (Fset_fontset_font): Fix typos in error messages.
11179 2009-10-06 Glenn Morris <rgm@gnu.org>
11181 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
11182 SOME_MACHINE_LISP (this enters indirectly via DOC).
11184 2009-10-05 Eli Zaretskii <eliz@gnu.org>
11186 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
11188 2009-10-04 Eli Zaretskii <eliz@gnu.org>
11190 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
11193 2009-10-03 Martin Rudalics <rudalics@gmx.at>
11195 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
11197 2009-10-02 Michael Albinus <michael.albinus@gmx.de>
11199 * lisp.h (Qdelete_directory_internal): Remove, because it is not
11200 used anymore outside fileio.c.
11202 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
11204 2009-10-01 Juanma Barranquero <lekktu@gmail.com>
11206 * lisp.h (Qdelete_directory_internal):
11207 Declare, instead of Qdelete_directory.
11209 * w32fns.c (Fsystem_move_file_to_trash): Use it.
11211 2009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
11213 * eval.c (Fcalled_interactively_p): Add `kind' argument.
11215 2009-10-01 Michael Albinus <michael.albinus@gmx.de>
11217 * fileio.c (Fdelete_directory_internal): Rename from
11218 Fdelete_directory. It is not a command anymore. It has no file
11221 2009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
11223 * xdisp.c (get_next_display_element): Use an enum in last change.
11225 2009-09-28 Kenichi Handa <handa@m17n.org>
11227 * xdisp.c (get_next_display_element): Pay attention to
11228 unibyte_display_via_language_environment in handling
11229 Vnobreak_char_display.
11231 2009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11233 * nsterm.h (ns_app_name): New extern variable.
11235 * nsterm.m (ns_app_name): New variable.
11236 (ns_term_init): Set and use it.
11237 (ns_term_shutdown): Use it.
11239 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
11240 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
11242 * nsfns.m (ns_set_name_iconic, ns_set_name)
11243 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
11244 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
11246 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
11247 Remove double-casting in client_data comparison.
11249 2009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11251 * keyboard.c (make_lispy_event): Remember last wheel direction.
11252 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
11254 2009-09-26 Glenn Morris <rgm@gnu.org>
11256 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
11257 internal.elc. Add term/pc-win.elc.
11258 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
11260 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
11263 (lisp): Add NS_SUPPORT.
11264 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
11266 2009-09-25 David Reitter <david.reitter@gmail.com>
11268 * nsmenu.m (EmacsMenu-clear): Recognize application menu
11269 on Mac OS X 10.6+ (bug#4513).
11271 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
11273 * frame.c (xrdb_get_resource): Return nil for empty string resources;
11274 some parts of Emacs code (like font selection) don't grok them.
11275 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
11277 2009-09-24 Andreas Schwab <schwab@redhat.com>
11279 * coding.c (decode_coding_iso_2022): Fix operator precedence.
11281 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
11283 * dired.c (Fdirectory_files): Fix typo in docstring.
11285 2009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
11287 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
11288 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
11289 (EmacsScroller-setPosition:portion:whole:): Remove -display call
11291 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
11293 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
11296 2009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
11298 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
11299 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
11301 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
11302 deleted (bug #4492).
11304 * nsfont.m (Vns_reg_to_script): New lisp variable.
11305 (syms_of_nsfont): Declare it.
11306 (ns_registry_to_script): New function.
11307 (ns_get_req_script): Call it.
11308 (ns_findfonts): Don't give up on non-unicode registry.
11310 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
11312 2009-09-20 Tom Tromey <tromey@redhat.com>
11314 * eval.c (find_handler_clause): Make stack-trace-on-error work in
11315 batch mode (bug#4228).
11317 2009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
11319 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
11320 carefully. (Bug #4339)
11322 2009-09-18 Chong Yidong <cyd@stupidchicken.com>
11324 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
11326 2009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
11328 * emacs.c (inhibit_x_resources): Update doc string for NS.
11329 (main) [HAVE_NS]: Don't process --no-init-file option.
11330 Remove legacy code for -NXHost. Fix error printf in daemon case.
11332 * nsterm.h (ns_no_defaults): Remove.
11334 * nsterm.m (ns_no_defaults): Remove.
11335 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
11336 (ns_use_qd_smoothing): Remove legacy variable.
11337 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
11338 don't update the NSWindow itself.
11339 (EmacsView-windowWillUseStandardFrame:defaultFrame:):
11340 Improve state detection and store user rect ourselves. (Bug #3581)
11342 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
11343 ns_use_qd_smoothing.
11345 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
11346 platform versions. Drop support for emacs-20-style face specs.
11347 (x-close-connection): Drop PSFlush() under OS X.
11348 (x-focus-frame): Activate the app first. (Bug #4180)
11350 2009-09-17 Juanma Barranquero <lekktu@gmail.com>
11352 * emacs.c (inhibit_x_resources): New variable.
11353 (main) [HAVE_NS]: Don't process --quick command line option.
11354 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
11356 * lisp.h (inhibit_x_resources): Declare it extern.
11358 * w32reg.c (x_get_string_resource):
11359 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
11361 2009-09-17 Eli Zaretskii <eliz@gnu.org>
11363 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
11364 Add lisp/term/internal.elc.
11366 2009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
11368 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
11371 2009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
11373 * puresize.h (BASE_PURESIZE): Increase to 1290000.
11375 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
11376 (OBJECTS_MACHINE): Remove, unused.
11378 2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
11380 * frame.c (x_get_resource_string): Remove unused.
11382 2009-09-15 Jan Djärv <jan.h.d@swipnet.se>
11384 * xterm.c (x_new_font): Call change_frame_size before calling
11385 x_set_window_size, in case frame size won't change.
11387 * frame.c (x_set_font): Remove dead code.
11389 2009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
11391 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
11393 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
11395 * lread.c (Fload): Don't output a message after loading an obsolete
11396 package any more (done in Lisp now).
11398 2009-09-12 Chong Yidong <cyd@stupidchicken.com>
11400 * fns.c (syms_of_fns): Doc fix (Bug#4227).
11402 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
11404 * keymap.c (Fwhere_is_internal): Use nconc2.
11406 2009-09-11 Alan Mackenzie <acm@muc.de>
11408 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
11411 2009-09-11 Andreas Schwab <schwab@linux-m68k.org>
11413 * xdisp.c (display_mode_element): Detect cycles.
11415 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
11417 * keymap.c (where_is_internal): Don't erroneously return nil right after
11419 (where_is_internal_1): Fix up typo.
11421 2009-09-11 Glenn Morris <rgm@gnu.org>
11423 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
11424 share a common doc-string.
11426 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
11428 * keymap.c (get_keymap): Return the actual keymap symbol rather than
11429 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
11431 * keymap.c (QCadvertised_binding): New constant.
11432 (syms_of_keymap): Initialize it.
11433 (Fwhere_is_internal): Try and use bindings from :advertised-binding
11436 2009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
11438 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
11439 (parse_menu_item): Streamline since bindings are recomputed all the
11440 time anyway. Don't bother checking Vdefine_key_rebound_commands any
11441 more and don't support lmenu's menu-alias any more either.
11443 * keymap.c (where_is_internal_data): Make noindirect a boolean.
11444 (where_is_internal): Strip it down to only traverse the keymaps.
11445 Move the cache handling from Fwhere_is_internal to here.
11446 (Fwhere_is_internal): Move the handling of remapping and the choice of
11447 the best binding from where_is_internal to here.
11448 Unify the cached/noncached paths, so remapping is also handled
11449 correctly when the cache is used, and so the cache can be used to
11450 speed up remap-handling when applicable.
11451 Give preference to non-remapped bindings.
11452 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
11453 non-remapped bindings.
11454 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
11457 * xdisp.c (display_mode_element): Move list length limit from 50 to
11458 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
11460 2009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
11462 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
11464 2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
11466 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
11469 * keymap.c (where_is_internal): Filter out shadowed remappings.
11470 Assume that where_is_internal returns unshadowed bindings to simplify
11471 the code and get rid of the gotos. Use ASIZE.
11473 2009-09-04 Jan Djärv <jan.h.d@swipnet.se>
11475 * xterm.c (x_focus_changed): If we get a focusout and pointer
11476 is invisible, make it visible.
11478 * xterm.h: Remove condition for declaration of
11479 x_*_window_to_frame.
11481 2009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
11483 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
11484 initial terminal as well.
11486 2009-09-02 Jan Djärv <jan.h.d@swipnet.se>
11488 * xterm.h: Rename x_non_menubar_window_to_frame to
11489 x_menubar_window_to_frame.
11491 * xterm.c: Remove declarations also in xterm.h.
11492 (XTmouse_position): Do not return valid positions
11493 for clicks in the menubar and the toolbar for Gtk+.
11495 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
11496 if the widget for the event has the same top level as a frame,
11498 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
11499 internal windows, bug #4122.
11500 (x_non_menubar_window_to_frame): Remove.
11502 2009-09-02 Glenn Morris <rgm@gnu.org>
11504 * buffer.c (default-major-mode): Move most of the doc from here...
11505 (major-mode): ... to here.
11507 2009-08-30 Nick Roberts <nickrob@snap.net.nz>
11509 * process.c (wait_reading_process_output): Keep the descriptor
11510 when pty is used by a non-child process, e.g., in I/O buffer of
11511 GDB this allows inferior to be restarted.
11513 2009-08-29 Eli Zaretskii <eliz@gnu.org>
11515 * xdisp.c (redisplay_internal): Remove redundant test and collapse
11516 both branches into one.
11518 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
11520 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
11521 (main): Use enable-multibyte-characters rather than
11522 default-enable-multibyte-characters. Output a warning message when
11523 running a unibyte session.
11525 2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11527 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
11528 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
11529 (copy_data_segment): Also copy __program_vars section.
11530 (copy_dyld_info) [LC_DYLD_INFO]: New function.
11531 (dump_it) [LC_DYLD_INFO]: Use it.
11533 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
11535 2009-08-28 Eli Zaretskii <eliz@gnu.org>
11537 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
11539 (buildobj.h): Rename from $(SRC)/buildobj.h.
11540 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
11542 (clean): Add buildobj.h.
11544 2009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
11546 * print.c (print_object): Set escapeflag to 1 when printing
11547 hashtable keys and values.
11549 2009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
11551 * lread.c (read_integer): Use doubles (and potentially return a float
11552 number) as we do in string-to-number.
11553 (read1): Use strtol to read integers, signal errors on strtol's
11554 overflow and use floats if strtol's output is too large for
11557 2009-08-27 Eli Zaretskii <eliz@gnu.org>
11559 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
11560 (make-buildobj-SH): Fix last change.
11561 (SRC): Move to before where it's first used.
11563 2009-08-27 Kenichi Handa <handa@m17n.org>
11565 * process.c (send_process): Use encode_coding_object instead of
11566 encode_coding_string to perform eol-conversion even if the string
11569 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
11572 * cmds.c (Fself_insert_command): Avoid unnecessay
11573 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
11575 2009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
11577 * callproc.c (Fcall_process): Remove always true #if.
11579 * lisp.h: Replace #if 0 code for checking with text pointing to
11580 the --enable-checking configure flag.
11582 * emacs.c (main): Mention the --enable-profiling configure flag
11583 instead of using CFLAGS.
11585 2009-08-26 Ken Raeburn <raeburn@raeburn.org>
11587 * Makefile.in (buildobj.h): New target.
11588 (doc.o): Depend on it.
11589 (temacs${EXEEXT}): Don't generate buildobj.lst.
11590 (mostlyclean): Delete buildobj.h, not buildobj.lst.
11591 * makefile.w32-in ($(SRC)/buildobj.h): New target.
11592 ($(BLD)/doc.$(O)): Depend on it.
11593 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
11594 provided by Eli Zaretskii.)
11595 ($(TEMACS)): Don't generate buildobj.lst.
11596 * doc.c: Include buildobj.h.
11597 (buildobj): New static variable.
11598 (Fsnarf_documentation): Use it, instead of opening and reading
11601 2009-08-25 Michael Albinus <michael.albinus@gmx.de>
11603 * dbusbind.c (Fdbus_call_method)
11604 (Fdbus_call_method_asynchronously): Use English numeric format for
11605 timeout values in doc string.
11607 2009-08-25 Kenichi Handa <handa@m17n.org>
11609 * alloc.c (mark_char_table): New function.
11610 (mark_object): Use mark_char_table for a char-table.
11612 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
11613 (CHAR_TABLE_REF): Use it.
11615 2009-08-23 Ken Raeburn <raeburn@raeburn.org>
11617 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
11618 before invoking the newly build emacs to check for load-path
11621 2009-08-22 Glenn Morris <rgm@gnu.org>
11623 * Makefile.in (bootstrap_exe): New variable.
11624 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
11625 Use ${bootstrap_exe}.
11627 2009-08-22 Eli Zaretskii <eliz@gnu.org>
11629 * coding.h (encode_coding_string): Don't encode unibyte strings.
11632 2009-08-22 Michael Albinus <michael.albinus@gmx.de>
11634 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
11636 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
11637 intended as hotfix only.
11638 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
11640 2009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
11642 * nsterm.m (ns_get_color): Update documentation properly for last
11643 change, and clean up loose ends in the code left by it.
11644 Fix longstanding bug with 16-bit hex parsing, and add support for
11645 yet another X11 format (rgb:r/g/b) for compatibility.
11646 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
11647 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
11649 2009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
11651 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
11653 2009-08-20 Michael Albinus <michael.albinus@gmx.de>
11655 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
11656 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
11657 (xd_initialize, xd_pending_messages): Check, whether
11658 $DBUS_SESSION_BUS_ADDRESS is set.
11660 2009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11662 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
11664 * nsterm.m (ns_get_color): Remove incompatible color formats again.
11666 2009-08-20 Glenn Morris <rgm@gnu.org>
11668 * emacs.c (system-type): Doc fix.
11670 2009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
11672 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
11673 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
11675 2009-08-18 Michael Albinus <michael.albinus@gmx.de>
11677 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
11679 (xd_initialize): Revert change from 2009-08-16.
11681 2009-08-18 Kenichi Handa <handa@m17n.org>
11683 * fontset.c (Ffontset_font): If a nil element is found in a
11684 font-group vector, return nil.
11686 2009-08-17 Chong Yidong <cyd@stupidchicken.com>
11688 * process.c (status_notify): Don't perform redisplay.
11689 (Fdelete_process, list_processes_1, process_send_signal):
11690 Expliticly perform redisplay.
11691 (wait_reading_process_output): Always check process status, but
11692 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
11694 2009-08-17 Ken Raeburn <raeburn@raeburn.org>
11696 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
11697 (XFLOAT_INIT): New macro for storing a float value.
11698 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
11699 * fns.c (sxhash): Copy out the value of a float in order to
11701 * dbusbind.c (xd_append_arg): Likewise.
11703 * emacs.c (main): Don't call syms_of_data twice.
11705 2009-08-16 Michael Albinus <michael.albinus@gmx.de>
11707 * dbusbind.c (xd_initialize): Add connection file descriptor to
11708 input_wait_mask, in order to let select() detect, whether a new
11709 message has been arrived.
11710 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
11712 2009-08-15 Michael Albinus <michael.albinus@gmx.de>
11714 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
11717 * lisp.h (xd_pending_messages): Declare.
11719 * keyboard.c (readable_events): Call xd_pending_messages.
11721 2009-08-15 Chong Yidong <cyd@stupidchicken.com>
11723 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
11725 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
11727 * buffer.c (set_buffer_internal_1)
11728 (swap_out_buffer_local_variables): Check for unbound local
11729 variables (Bug#4138).
11731 2009-08-14 Eli Zaretskii <eliz@gnu.org>
11733 * process.c (create_pty): Fix last change.
11735 2009-08-13 Chong Yidong <cyd@stupidchicken.com>
11737 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
11738 (xbm_load_image): Caller changed.
11739 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
11741 2009-08-13 Nick Roberts <nickrob@snap.net.nz>
11743 * process.c (create_pty): New function.
11744 (Fstart_process): Use it to allow Emacs to just associate a pty
11745 with the buffer. See associated change in gdb-mi.el.
11746 (list_processes_1): Deal with no program name.
11747 (start_process_unwind): Use pid == -2 to mean no process.
11749 2009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
11751 * cmds.c (nonundocount): New global variable.
11752 (keys_of_cmds): Initialize it.
11753 (Fself_insert_command): Use it to combine upto 20 sequential chars
11754 into a single undo entry, just like the Qself_insert_command code in
11756 Call frame_make_pointer_invisible, also like the Qself_insert_command
11757 code in keyboard.c does.
11758 * keyboard.c (command_loop_1): Use the new global nonundocount rather
11759 than its own local replacement for it.
11761 2009-08-10 Ken Raeburn <raeburn@raeburn.org>
11763 * fns.c (concat): Don't re-set string length to its current value.
11765 * coding.h (decode_coding_string, encode_coding_string):
11768 * doprnt.c (doprnt_lisp): Delete unused function.
11769 (doprnt): Merge with doprnt1, discarding lispstrings code.
11770 * lisp.h (doprnt_lisp): Don't declare.
11772 2009-08-07 Juri Linkov <juri@jurta.org>
11774 * puresize.h (BASE_PURESIZE): Increase to 1270000.
11776 2009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
11778 * print.c (syms_of_print): Undo previous change.
11780 2009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
11782 * lread.c (read1, syms_of_lread): Read hashtables back from the
11785 * print.c (print_preprocess, print_object): Print hashtables fully
11787 (syms_of_print): Provide 'hashtable-print-readable.
11789 2009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
11791 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
11793 (nsfont_open): Handle case when entity has no family.
11795 2009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
11797 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
11798 element, not a list, for match case.
11800 2009-07-28 Kenichi Handa <handa@m17n.org>
11802 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
11805 * xfont.c (xfont_list_pattern): Don't ignore the return value of
11806 font_parse_xlfd. Check font properties more rigidly.
11808 2009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
11810 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
11813 2009-07-27 Kenichi Handa <handa@m17n.org>
11815 * xfaces.c (face_with_height): Call font_clear_prop.
11817 2009-07-26 Chong Yidong <cyd@stupidchicken.com>
11819 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
11821 * xterm.c (x_term_init): Use Qx.
11823 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
11825 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
11826 (ns_get_color): Revert 2009-07-16 change.
11828 2009-07-25 Eli Zaretskii <eliz@gnu.org>
11830 * lread.c (syms_of_lread) <force_load_messages>: New variable.
11831 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
11833 2009-07-25 Ken Raeburn <raeburn@raeburn.org>
11835 * coding.h (decode_coding_string, encode_coding_string):
11838 * lread.c: Rewrite 2009-07-21 changes.
11839 (load_depth): Delete.
11840 (Qload_in_progress): New variable.
11841 (load_unwind): Don't reference load_depth or load_in_progress.
11842 (Fload): Likewise; specbind Qload_in_progress instead.
11843 (init_lread): Don't initialize load_depth.
11844 (syms_of_lread): Initialize and protect Qload_in_progress.
11846 2009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
11848 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
11850 2009-07-23 Yavor Doganov <yavor@gnu.org>
11852 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
11854 2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
11856 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
11857 Bugs 3792, 3720, 2402.
11858 (ns_lookup_indexed_color): Check for bad index.
11859 (ns_index_color): Init unused slot to 0.
11860 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
11861 Bug 3714, possibly 3082.
11863 2009-07-22 Jason Rumney <jasonr@gnu.org>
11865 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
11866 Position IME window at cursor (Bug#2570).
11867 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
11868 (globals_of_w32fns): Dynamically load functions required above.
11870 * w32term.c (w32_draw_window_cursor): Send message to reposition
11873 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
11875 * fileio.c: Revert 2009-07-16 changes.
11876 (Vauto_save_include_big_deletions): New variable.
11877 (Fdo_auto_save): Disable auto-save only if
11878 auto-save-include-big-deletions is nil.
11880 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
11882 * xdisp.c (move_it_to): For continued lines ending in a tab, take
11883 the overflowed pixels into account (Bug#3879).
11885 2009-07-21 Ken Raeburn <raeburn@raeburn.org>
11887 * lread.c (load_depth): New variable.
11888 (Fload, load_unwind, init_lread): Set it to the load recursion
11889 depth; set load_in_progress as a simple boolean based on the
11890 current load_depth. (Bug#3892)
11892 2009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11894 * nsfont.m (ns_has_attribute): Remove.
11895 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
11897 2009-07-18 Juri Linkov <juri@jurta.org>
11899 * process.c (Fset_process_query_on_exit_flag): Mention killing
11900 a buffer in docstring.
11902 2009-07-17 Kenichi Handa <handa@m17n.org>
11904 * casetab.c (shuffle): Fix the logic of setting up the cycle.
11906 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11908 * nsfns.m (Fns_set_alpha): Remove function.
11909 (syms_of_nsfns): Don't defsubr it.
11911 * nsterm.m (ns_get_color): Remove incompatible color formats.
11912 (ns_color_to_lisp): Generate #rrggbb color format string.
11914 2009-07-16 Richard Stallman <rms@gnu.org>
11916 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
11917 (Fset_buffer_auto_saved): Handle save_length = -2.
11919 2009-07-16 Chong Yidong <cyd@stupidchicken.com>
11921 * xterm.c (Qx_gtk_map_stock): New var.
11923 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
11924 of calling intern each time.
11926 2009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11928 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
11931 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
11933 2009-07-14 Kenichi Handa <handa@m17n.org>
11935 * font.c (font_vconcat_entity_vectors): New function.
11936 (struct font_sort_data): New member font_driver_preference.
11937 (font_compare): Check font_driver_preference.
11938 (font_sort_entities): The format of the first argument changed.
11939 (font_delete_unmatched): Likewise.
11940 (font_list_entities): The return type changed.
11941 (font_select_entity): The format of the second argument changed.
11942 (font_find_for_lface): Adjuste for the above changes.
11943 Don't suppress the checking of C even if the repertory supports it.
11944 (Flist_fonts): Adjust for the above changes.
11946 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
11947 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
11948 Reject a font who has adstyle property that is different from a
11949 langname derived from registry property.
11950 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
11952 2009-07-13 Eli Zaretskii <eliz@gnu.org>
11954 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
11955 local copy of dirfilename.
11957 2009-07-13 Kenichi Handa <handa@m17n.org>
11959 * chartab.c (sub_char_table_ref_and_range): Fix the range check
11962 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
11963 calling XSYMBOL (sym).
11965 2009-07-11 Eli Zaretskii <eliz@gnu.org>
11967 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
11969 (directory_files_internal) [WINDOWSNT]:
11970 Bind w32-get-true-file-attributes to either t or nil, depending whether
11971 the filesystem of the directory is fast or slow.
11973 * w32.c (logon_network_drive): Don't assume PATH is an absolute
11975 (is_slow_fs): New function.
11976 (stat): Use it to determine whether to issue more system calls to
11977 get accurate file attributes, when w32-get-true-file-attributes is
11980 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
11982 * xfns.c (Fx_select_font): Remember last font selected in
11983 x_last_font_name and use that the next time. Also try the frame
11984 parameter font-parameter as default to the font dialog.
11986 2009-07-10 Kenichi Handa <handa@m17n.org>
11988 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
11990 2009-07-09 Eli Zaretskii <eliz@gnu.org>
11992 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
11994 * w32.c (stat): Treat UNC file names as residing on remote
11997 2009-07-09 Kenichi Handa <handa@m17n.org>
11999 * fontset.c (fontset_find_font): Fix previous change.
12001 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
12003 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
12004 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
12007 2009-07-08 Kenichi Handa <handa@m17n.org>
12009 * fontset.c (fontset_find_font): Fix the logic of handling
12011 (font_for_char): Delete unused var.
12012 (generate_ascii_font_name): Delete it.
12014 * coding.h (JIS_TO_SJIS2): Fix the code range check.
12016 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
12017 (encode_coding_sjis): Fix the code range check.
12019 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
12021 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
12022 (Fexpand_file_name): Copy string data properly (Bug#3772).
12024 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
12026 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
12029 2009-07-07 Kenichi Handa <handa@m17n.org>
12031 * character.h (unibyte_has_multibyte_table): Delete extern.
12032 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
12034 * charset.c (Fset_charset_priority): Update charset_unibyte.
12035 (syms_of_charset): Initialize charset_unibyte.
12037 * character.c (unibyte_has_multibyte_table): Delete it.
12038 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
12040 (multibyte_char_to_unibyte_safe): Likewise.
12041 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
12043 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
12044 (x_produce_glyphs): Likewise.
12046 * .gdbinit (xcharset): Fix the treating $arg0.
12048 2009-07-04 Eli Zaretskii <eliz@gnu.org>
12050 Emulation of `getloadavg' on MS-Windows.
12051 * w32.c: Include float.h.
12052 (g_b_init_get_native_system_info, g_b_init_get_system_times)
12053 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
12054 (get_native_system_info, get_system_times): New functions.
12055 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
12056 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
12057 (globals_of_w32): Initialize g_b_init_get_native_system_info,
12058 g_b_init_get_system_times, and num_of_processors.
12060 2009-07-03 Jason Rumney <jasonr@gnu.org>
12062 * w32term.c (w32_initialize): Use standard types.
12064 2009-07-03 Eli Zaretskii <eliz@gnu.org>
12066 * dired.c (Ffile_attributes): Decode user and group names by the
12067 locale's encoding. (Bug#3443)
12069 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
12071 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
12072 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
12074 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
12076 * term.c (init_tty): Remove spurious #ifdef.
12078 * m/mips.h: Mention this file is also used for netbsd.
12079 * m/pmax.h: Remove file.
12081 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
12083 * xterm.h (struct x_display_info): Add invisible_cursor.
12084 (struct x_output): Add current_cursor.
12086 * xterm.c (XTtoggle_invisible_pointer): New function.
12087 (x_define_frame_cursor): Don't define cursor if invisible or the
12088 same as before. Set current_cursor.
12089 (x_create_terminal): Set toggle_invisible_pointer_hook.
12091 * xfns.c (make_invisible_cursor): New function.
12092 (x_set_mouse_color): Call make_invisible_cursor.
12093 Set current_cursor.
12094 (x_window): Set current_cursor.
12096 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
12098 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
12099 inserting a character.
12100 (read_avail_input): Call frame_make_pointer_visible.
12102 * frame.c (Vmake_pointer_invisible): New variable.
12103 (frame_make_pointer_invisible, frame_make_pointer_visible):
12105 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
12107 * frame.h: Declare frame_make_pointer_invisible and
12108 frame_make_pointer_visible.
12109 (struct frame): Add pointer_invisible.
12111 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
12113 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
12114 frame isn't visible.
12115 (xg_frame_resized): If width/height is -1, get size of window
12118 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
12121 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
12122 here or call change_frame_size. Just call flush_and_sync.
12123 (flush_and_sync): Reintroduce.
12125 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
12127 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
12129 * xterm.c (x_handle_net_wm_state): Also look for sticky.
12130 (x_term_init): Initialize Xatom_net_wm_state_sticky.
12132 * frame.h: Declare Qsticky.
12134 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
12136 * nsfns.m (ns_frame_parm_handlers): Ditto.
12138 * frame.c: Declare Qsticky.
12139 (frame_parms): Add sticky.
12141 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
12143 * xterm.h: Declare x_set_sticky.
12145 * xterm.c (x_set_sticky): New function.
12147 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
12148 (xg_tool_bar_menu_proxy): Attach enter/leave events to
12149 xg_tool_bar_proxy_help_callback.
12151 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
12153 * frame.c: Qmaximized is new.
12154 (x_set_frame_parameters): Do not handle fullscreen specially.
12155 Only set width and height if explicitly set.
12156 (x_set_fullscreen): Handle Qmaximized.
12157 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
12158 (syms_of_frame): Initialize Qmaximized.
12160 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
12161 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
12163 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
12164 for Expose event. Add call to x_check_fullscreen for MapNotify event.
12165 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
12166 set gravity to NorthWestGravity when USE_GTK.
12167 (set_wm_state): New function.
12168 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
12169 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
12170 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
12171 or the case when no window manager is running. That means remove calls
12172 to x_real_positions and x_fullscreen_adjust.
12174 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
12175 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
12177 (xg_height_changed): New function.
12178 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
12179 and gtk_window_set_policy. Set frame gravity after parsing the
12181 (xg_update_frame_menubar, free_frame_menubar)
12182 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
12183 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
12184 Remove calls to xg_frame_set_char_size.
12186 2009-07-01 Kenichi Handa <handa@m17n.org>
12188 * keyboard.c (decode_keyboard_code): New function.
12189 (tty_read_avail_input): Decode the input bytes if necessary.
12191 * coding.c (setup_coding_system):
12192 Initialize coding->carryover_bytes to 0.
12193 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
12194 use Qno_conversion.
12196 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12198 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
12200 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
12202 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
12204 2009-06-30 Jason Rumney <jasonr@gnu.org>
12206 * w32term.c (w32_initialize): Use GetModuleHandle for library that
12208 Set user model ID if supported (bug#1849).
12210 2009-06-29 Jim Meyering <meyering@redhat.com>
12212 Remove useless if-before-xfree test.
12213 * nsfont.m (nsfont_close): Remove useless test.
12214 * term.c (delete_tty): Likewise.
12215 * w32.c (system_process_attributes): Likewise.
12216 * w32font.c (w32font_close): Likewise.
12217 * xfaces.c (x_free_gc): Likewise.
12218 * xselect.c (buffer): Likewise.
12220 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
12222 * process.c (send_process): Keep decoded string in a local
12223 variable and protect it from GC. (Bug#3521)
12225 2009-06-28 Eli Zaretskii <eliz@gnu.org>
12227 * term.c (create_tty_output) [MSDOS]: #ifdef away.
12228 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
12230 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
12232 * xdisp.c (start_display, handle_face_prop)
12233 (move_it_vertically_backward, cursor_row_fully_visible_p)
12234 (redisplay_window, try_window_id, produce_image_glyph):
12235 Delete some #ifdef-ed out code chunks that are now obsolete.
12237 * xterm.c (x_update_window_begin, x_new_focus_frame)
12238 (x_scroll_bar_handle_click, handle_one_xevent)
12239 (handle_one_xevent, XTread_socket, x_focus_on_frame)
12240 (x_make_frame_visible, x_make_frame_invisible)
12241 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
12242 code chunks that are now obsolete.
12244 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
12246 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
12247 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
12248 for hours, when optimzation is enabled.
12249 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
12250 (xd_read_message): Make them static.
12252 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
12254 * term.c (turn_on_face): Allow simultaneously bold and dim
12255 terminal faces (Bug#3530).
12257 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
12259 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
12261 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
12262 truncation glyphs (Bug#3686).
12264 2009-06-27 Glenn Morris <rgm@gnu.org>
12266 * m/pmax.h: Restore file, with only netbsd portions.
12268 2009-06-26 David Reitter <david.reitter@gmail.com>
12270 * nsterm.m (keydown): Avoid infinite loop.
12272 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
12274 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
12275 the arg FORCE_SYMBOL.
12277 2009-06-25 Kenichi Handa <handa@m17n.org>
12279 * fontset.c (fontset_find_font): When a usable rfont_def is found
12280 in a fallback font-group, make it the first element of the group.
12282 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
12284 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
12286 2009-06-24 Kenichi Handa <handa@m17n.org>
12288 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
12290 (fontset_font): Record the availability of a font for C both in
12291 the realized fontsets of the current one and the default one.
12293 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
12295 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
12296 conditional, it is always defined on AIX.
12298 2009-06-23 Miles Bader <miles@gnu.org>
12300 * window.c (Vrecenter_redisplay): New variable.
12301 (syms_of_window): Initialize it.
12302 (Qtty): New extern declaration.
12303 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
12305 2009-06-23 Jim Meyering <meyering@redhat.com>
12307 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
12308 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
12309 pointer dereferences are guaranteed to be valid.
12311 2009-06-23 Kenichi Handa <handa@m17n.org>
12313 * emacs.c (main): Call init_font ().
12315 * font.h (Vfont_log): Extern it.
12316 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
12318 * font.c (font_sort_entities, font_list_entities)
12319 (font_matching_entity, font_open_entity)
12320 (font_close_object): Change font_add_log to FONT_ADD_LOG.
12321 (Vfont_log): Delete static.
12322 (font_log_env_checked): Delete this variable.
12323 (font_add_log): Don't check font_log_env_checked.
12324 (font_deferred_log): Check Vfont_log.
12325 (init_font): New function.
12327 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
12329 * w32font.c: Change font_add_log to FONT_ADD_LOG.
12331 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
12333 * xfont.c: Change font_add_log to FONT_ADD_LOG.
12335 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
12336 (face_for_char): Don't call font_deferred_log here.
12337 (font_for_char): Likewise.
12339 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
12341 * w32term.c (x_draw_glyph_string): Use the glyph string's width
12342 rather than its background_width for drawing the overline and
12343 underline (Bug#489).
12345 * xterm.c (x_draw_glyph_string): Use the glyph string's width
12346 rather than its background_width for drawing the overline and
12347 underline (Bug#489).
12348 (xg_default_icon_file): New variable.
12349 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
12350 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
12352 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
12353 (load_overlay_strings): Remove externs.
12354 (fast_find_position): Function deleted.
12355 (mouse_face_from_buffer_pos): New function, based on
12356 fast_find_position. Correctly handle before-strings,
12357 display-strings, and after-strings (Bug#1220).
12358 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
12360 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
12362 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
12363 (move_it_in_display_line_to, move_it_in_display_line_to)
12364 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
12366 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
12370 2009-06-21 Jason Rumney <jasonr@gnu.org>
12372 * w32term.c (keyboard_codepage): New static variable.
12373 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
12374 (w32_read_socket) [WM_CHAR]: Use it to decode character
12376 (w32_initialize): Initialize it.
12377 (codepage_for_locale): New function.
12379 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
12381 * process.c (status_message): Pass Faset index argument as a lisp
12382 object, so as to work with USE_LISP_UNION_TYPE.
12384 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12386 * coding.c (Ffind_coding_systems_region_internal):
12387 Cache checked characters.
12389 2009-06-18 Kenichi Handa <handa@m17n.org>
12391 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
12393 2009-06-18 Andreas Schwab <aschwab@redhat.com>
12395 * xdisp.c (redisplay_internal): Check that the frame is still
12396 live after redisplay of its windows.
12397 (redisplay_windows): Check that the window is still live.
12399 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
12401 * coding.c (detect_coding_utf_16): Fix previous change.
12403 2009-06-16 Kenichi Handa <handa@m17n.org>
12405 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
12406 UTF-16 by checking the dispersion of Eth and Oth bytes.
12408 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
12410 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
12412 2009-06-15 Kenichi Handa <handa@m17n.org>
12414 * process.c (status_message): Fix previous change. Be sure to
12415 decode a localized string.
12417 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12419 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
12420 add comment explaining why.
12422 2009-06-14 Sidney Markowitz <sidney@sidney.com>
12424 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
12426 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
12428 * nsfont.m (ns_attribute_value): Remove.
12429 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
12430 (ns_has_attribute): Shrink the normal range.
12431 (ns_findfonts): Don't worry about requested spec in determining
12432 need for synthItal.
12433 (ns_get_covering_families): Retain scriptToFamilies.
12435 2009-06-14 Seiji Zenitani <zenitani@mac.com>
12437 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
12439 2009-06-11 Kenichi Handa <handa@m17n.org>
12441 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
12442 overhang for the static composition case.
12444 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12446 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
12447 overhang for the automatic composition case.
12449 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
12452 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
12454 * xdisp.c (get_next_display_element): When handling wrap-prefix
12455 and line-prefix, treat \n as a control character (bug#3502).
12457 2009-06-10 Kenichi Handa <handa@m17n.org>
12459 * font.c (font_parse_family_registry): Fix for one-char foundry.
12460 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
12462 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
12464 * process.c (status_message): Fix handling of multibyte signal
12467 2009-06-09 Jim Meyering <meyering@redhat.com>
12469 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
12470 color name is missing.
12472 2009-06-09 Kenichi Handa <handa@m17n.org>
12474 * charset.c (Fmap_charset_chars): In docstring, state clearly that
12475 FROM-CODE and TO-CODE are codepoints of CHARSET.
12477 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
12479 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
12481 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
12483 Changes to support :script/:lang/:otf in NS font driver.
12484 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
12485 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
12486 indicate not part of font driver interface, and change callers.
12487 (ns_get_family): Remove pointless null check.
12488 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
12489 ns_spec_to_descriptor, ns_descriptor_to_entity.
12490 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
12491 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
12492 (ns_spec_to_descriptor, ns_descriptor_to_entity)
12493 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
12494 (ns_get_req_script, ns_accumulate_script_ranges)
12495 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
12497 (nsfont_list, nsfont_match): Use ns_findfonts.
12498 (nsfont_open): Use font descriptor instead of traits.
12499 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
12500 (dump_glyphstring): Rename to ns_dump_glyphstring.
12502 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
12504 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
12506 * fontset.c (fontset_from_font): Remove NS-specific code.
12508 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
12510 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
12513 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
12515 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
12517 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
12519 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
12521 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
12523 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
12524 account for the overflowing of newlines into the last glyph on the
12525 display line (Bug#3482).
12527 2009-06-05 David Reitter <david.reitter@gmail.com>
12529 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
12530 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
12531 Fns_selection_exists_p, Fns_selection_owner_p.
12533 2009-06-03 Jason Rumney <jasonr@gnu.org>
12535 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
12536 available. (Bug#3379)
12538 2009-05-29 Kenichi Handa <handa@m17n.org>
12540 * coding.c (get_translation_table):
12541 Check Venable_character_translation.
12543 2009-05-26 David Reitter <david.reitter@gmail.com>
12545 * nsterm.m (ns_raise_frame): Only raise frame if visible.
12546 (x_make_frame_visible): Move frame to front rather than calling
12548 (keyDown:): Do not swallow events that aren't re-sent if frame
12550 (drawRect:): Do not set visibility/iconified flags because
12551 drawRect may be called by NSView even if the frame is hidden.
12553 * nsfns.m (Fx_create_frame): Follow other ports in
12554 determining visibility; default to t. Ensure async_visible is set.
12556 2009-05-23 Eli Zaretskii <eliz@gnu.org>
12558 * dired.c (Ffile_attributes): Doc fix.
12560 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
12562 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
12564 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
12566 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
12567 and xfont_scratch_props.
12568 (syms_of_xfont): Do it here instead.
12569 (xfont_find_ccl_program): Delete, unused.
12570 (xfont_open): Delete unused var `i'.
12572 2009-05-21 Kenichi Handa <handa@m17n.org>
12574 * fontset.c (Qlatin): Don't make it static.
12576 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
12578 (xfont_scripts_cache, xfont_scratch_props): New variables.
12579 (Qlatin, Vscalable_fonts_allowed): Extern it.
12580 (xfont_list_pattern): Argument changed. Callers changed.
12581 Check Vscalable_fonts_allowed. Check the support of a script.
12582 (xfont_list): Don't reject a font spec with :script property.
12583 (xfont_has_char): Fix setting of encoding.
12584 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
12585 xfont_scratch_props.
12587 2009-05-19 Kenichi Handa <handa@m17n.org>
12589 * font.c (font_sort_entities): Rename from font_sort_entites.
12592 2009-05-18 Kenichi Handa <handa@m17n.org>
12594 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
12596 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
12598 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
12599 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
12601 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12603 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
12604 (x_delete_terminal): Dissociate resource database from display and
12605 then call XrmDestroyDatabase before closing display.
12607 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
12609 * nsterm.m (ns_read_socket): Remove unused variable.
12610 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
12611 whether selected frame is viable before raising it (based on patch
12612 by David Reitter), and improve commentary.
12613 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
12615 2009-05-15 Kenichi Handa <handa@m17n.org>
12617 * font.c (Ffont_spec): Check arguments.
12619 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
12621 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
12622 weight when testing attributes (Bug#3282).
12624 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12626 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
12627 what we expect to get in the next ConfigureNotify event.
12629 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
12630 before Xft one (Bug#1696).
12632 2009-05-07 David Reitter <david.reitter@gmail.com>
12634 * nsfns.m (Fx_display_planes): Compute bitplanes using
12635 NSBitsPerPixelFromDepth (Bug#3207).
12637 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
12639 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
12641 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
12643 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
12645 2009-05-07 David Reitter <david.reitter@gmail.com>
12647 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
12648 Respect mouse face background.
12650 2009-05-07 David Reitter <david.reitter@gmail.com>
12652 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
12653 Mouse movement/highlight: bracket drawing operations
12654 in ns_update_begin and ns_update_end.
12656 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
12658 * nsfns.m (ns_get_screen): Rewrite.
12659 Don't presume selected-frame is of type `ns'.
12661 * font.c (font_update_drivers): Sanity fallback to avoid disabling
12664 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
12666 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12668 * keyboard.h (add_user_signal): Fix typo in extern.
12670 * lisp.h (add_user_signal): Remove extern.
12672 * unexelf.c (unexec): Consider a section to precede the .bss section
12673 if its addresses overlap that of .bss.
12674 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
12675 instead of dumping process.
12677 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
12679 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
12681 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
12683 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
12685 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
12687 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
12690 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
12692 * process.c (read_process_output): Make sure the current buffer is
12695 * coding.c (record_conversion_result): Don't modify
12696 Vlast_code_conversion_error for successful result.
12697 (alloc_destination): Don't clobber conversion result. (Bug#1650)
12699 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
12701 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
12702 (load_charset_map): Remove unnecessary code.
12704 2009-04-30 David Reitter <david.reitter@gmail.com>
12706 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
12709 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
12711 * xfaces.c (face_at_buffer_position): New arg base_face_id.
12713 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
12714 face_at_buffer_position.
12715 (face_before_or_after_it_pos, get_next_display_element)
12716 (note_mouse_highlight): Update face_at_buffer_position call.
12718 * term.c (term_mouse_highlight):
12719 * msdos.c (IT_note_mouse_highlight):
12720 * fontset.c (Finternal_char_font):
12721 * font.c (font_at, font_range): Update face_at_buffer_position call.
12723 * dispextern.h (face_at_buffer_position): Update prototype.
12725 2009-04-30 Kenichi Handa <handa@m17n.org>
12727 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
12729 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
12731 * callproc.c (Fcall_process): Fix GC protection. Make sure
12732 current buffer is always restored.
12734 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12736 * atimer.c (init_atimer): Also clear stopped_atimers.
12738 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
12740 * process.c (create_process): Clean up merger residues of
12743 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
12745 * lread.c (Vread_circle): New variable.
12746 (read1): Disable recursive read if Vread_circle is nil.
12748 2009-04-29 Kenichi Handa <handa@m17n.org>
12750 * fontset.h (set_default_ascii_font): Delete extern.
12752 * fontset.c (set_default_ascii_font): Delete this unused function.
12754 * frame.c (x_set_font): When ARG is a font-object, check if the
12755 font-object matches with the ASCII font-spec of the frame's
12756 fontset. If not, create a new fontset for the frame. (Bug #3075)
12758 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
12760 * fns.c (Flocale_info): Protect vector from GC during decoding.
12762 * process.c (Fstart_process): Protect argv strings from GC during
12765 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
12767 * sysdep.c: Include <ctype.h>.
12769 2009-04-27 David Reitter <david.reitter@gmail.com>
12771 * nsfont.m (nsfont_open): Remove unused variable shrink.
12772 Remove commented-out code.
12774 2009-04-26 Johan Bockgård <bojohan@gnu.org>
12776 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
12778 2009-04-25 Jason Rumney <jasonr@gnu.org>
12780 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
12782 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12784 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
12785 Swap bytes in short integer if fringe bitmap width > 8.
12787 2009-04-23 Kenichi Handa <handa@m17n.org>
12789 * xfaces.c (Fx_list_fonts): If a font size is specified in
12790 PATTERN, set it in returned scalable fonts.
12792 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
12794 * keyboard.c (Fset_input_meta_mode): Doc fix.
12796 * dispnew.c (Fsend_string_to_terminal): Doc fix.
12798 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
12800 * coding.c (Fterminal_coding_system): Doc fix.
12802 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
12803 (Fx_display_pixel_height, Fx_display_planes)
12804 (Fx_display_color_cells, Fx_server_max_request_size)
12805 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
12806 (Fx_display_mm_height, Fx_display_mm_width)
12807 (Fx_display_backing_store, Fx_display_visual_class)
12808 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
12809 Doc fixes, replacing "terminal id" with "terminal object".
12810 (check_x_display_info): Handle terminal objects instead of
12813 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
12814 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
12815 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
12816 Doc fixes, replacing "terminal id" with "terminal object".
12818 2009-04-21 Kenichi Handa <handa@m17n.org>
12820 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
12821 (font_score): Check AVGWIDTH too.
12823 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
12825 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
12826 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
12828 2009-04-19 Jason Rumney <jasonr@gnu.org>
12830 The following changes fix Bug#3005 for wide glyphs on each platform,
12831 without reintroducing Bug#1258 for stretch glyphs.
12833 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
12834 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
12835 get_phys_cursor_geometry.
12837 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
12838 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
12839 using get_phys_cursor_geometry.
12841 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
12842 correctly calculated.
12844 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
12846 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
12847 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
12848 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
12851 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
12853 * font.c (font_put_frame_data): Use xfree instead of free.
12855 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
12857 * w32font.c (Qja, Qko): Remove declarations.
12858 (syms_of_w32font): Don't DEFSYM them.
12860 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
12862 * font.c (Qja, Qko): Move definitions here from ftfont.c.
12864 * font.h (Qja, Qko): Extern them.
12866 * ftfont.c (Qja, Qko): Remove declarations.
12868 * xfont.c (Qja, Qko): Remove declarations.
12870 2009-04-17 Kenichi Handa <handa@m17n.org>
12872 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
12873 string from a vector to handle Latin-1 characters correctly.
12875 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
12876 entity even if the cache hits.
12878 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
12880 * search.c (boyer_moore): Use zero as marker value for a possible
12881 match instead of depending on overflow behavior. (Bug#2844)
12883 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
12884 * lisp.h: Adjust prototypes.
12886 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
12888 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
12891 2009-04-16 Kenichi Handa <handa@m17n.org>
12893 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
12895 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
12898 * ftfont.c (Qja, Qko): Don't make them static.
12899 (enum ftfont_cache_for): New enum.
12900 (fc_charset_table): Undo the previous change.
12901 (ftfont_get_latin1_charset): Delete it.
12902 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
12903 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
12904 non-scarable font, try to get AVERAGE_WIDTH.
12905 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
12906 Change ft_face_cache from a list of a hash-table. Don't check
12907 `ja' and `ko' adstyle here.
12908 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
12909 FTFONT_CACHE_FOR_CHARET.
12910 (ftfont_get_charset): Undo the previous change.
12911 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
12912 (ftfont_close): Likewise.
12913 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
12915 * font.c (font_sort_entites): Change the meaning of the arg
12916 BEST-ONLY. Don't optimize for VEC of lenght 1.
12917 (font_select_entity): Just return the value of font_sort_entites.
12919 * xfaces.c (merge_face_vectors): Reflect font properties in
12920 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
12921 font_clear_prop if a face attribute doesn't change.
12923 * charset.h (charset_ksc5601): Extern it.
12925 * charset.c (charset_ksc5601): New variable.
12926 (Fdefine_charset_internal): Set charset_ksc5601.
12927 (init_charset_once): Initialize charset_ksc5601 to -1.
12929 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
12931 * fileio.c (history_delete_duplicates): Remove unused declaration.
12933 * callint.c (history_delete_duplicates): New declaration.
12934 (Fcall_interactively): Remove command history duplicates when
12935 history_delete_duplicates is true.
12937 2009-04-14 Eli Zaretskii <eliz@gnu.org>
12939 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
12941 2009-04-14 Kenichi Handa <handa@m17n.org>
12943 * font.c (Ffont_info): Fix docstring. Fix the second element of
12944 the returned value (bug#2949).
12946 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
12948 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
12950 2009-04-14 Kenichi Handa <handa@m17n.org>
12952 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
12953 encoding charset is ascii_compatible.
12955 * charset.c (Fdefine_charset_internal): Make charset
12956 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
12957 code_offset is 0, and covers all ASCII characters.
12959 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
12961 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
12962 (ns_string_to_pasteboard_internal):
12963 * nsmenu.m (process_dialog):
12964 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
12965 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
12966 * lisp.h (Fx_load_color_file): Declare.
12968 2009-04-13 Kenichi Handa <handa@m17n.org>
12970 * font.c (font_delete_unmatched): Preserve the order of list elements.
12971 (font_select_entity): Suppress the code to optimize for the same
12973 (font_load_for_lface): Get a font that supports at least ASCII
12976 * ftfont.c (Qja, Qko): New variables.
12977 (fc_charset_table): Delete uniquifier data for iso8859-1.
12978 (ftfont_get_latin1_charset): New function.
12979 (get_adstyle_property): New function.
12980 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
12982 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
12983 Delete iso-8859-1 range from the charset of fonts whose adstyle is
12985 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
12986 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
12987 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
12989 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
12990 (syms_of_ftfont): DEFSYM Qja and Qko.
12992 2009-04-09 Kenichi Handa <handa@m17n.org>
12994 * charset.c (map_charset_chars): For a charset of `superset'
12995 method, fix calculation of code range.
12997 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
12998 from the list of extra properties.
12999 (font_clear_prop): Be sure to delete `:name' font property.
13001 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13003 * dispnew.c (redraw_overlapping_rows): Fix detection of
13004 overlapping for topmost and bottommost rows.
13006 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
13008 2009-04-06 Jason Rumney <jasonr@gnu.org>
13010 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
13012 2009-04-06 Kenichi Handa <handa@m17n.org>
13014 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
13016 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
13018 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13020 * ftfont.c (ftfont_open): Fix checking of the return value of
13021 FT_Load_Char. Fix setting font->underline_thickness.
13023 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
13025 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
13026 (Fterminal_parameters, Fterminal_parameter)
13027 (Fset_terminal_parameter): In doc string, refer to terminal
13028 objects rather than terminal ids.
13030 2009-04-04 Eli Zaretskii <eliz@gnu.org>
13032 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
13033 ret_lim_data. (Bug#2867)
13035 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
13037 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
13038 so they don't get wider than the window, matching 2006-01-23
13039 change to the partner function in xdisp.c (Bug#2800).
13041 2009-04-03 Kenichi Handa <handa@m17n.org>
13043 * print.c (print_object): Make each lowest sub_char_table start a
13044 new line (Bug#2866).
13046 2009-04-02 Kenichi Handa <handa@m17n.org>
13048 * fontset.c (fontset_font): Record no-font when a fontset
13049 explicitly tells not to try another font-specs.
13051 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
13053 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
13055 2009-03-30 Kenichi Handa <handa@m17n.org>
13057 * fontset.c (fontset_from_font): Specify only registry in a
13058 font-spec for all characters supported by that registry.
13060 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
13061 even if HAVE_M17N_FLT is not defined.
13063 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
13065 * ftfont.c: Conditionalize prototyping and use of
13066 ftfont_variation_glyphs.
13068 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
13070 * frame.c (delete_frame): Work around compiler bug.
13072 * editfns.c (general_insert_function): Adjust to insdel.c changes.
13073 * insdel.c (prepare_to_modify_buffer, signal_before_change):
13074 Some more EMACS_INT.
13075 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
13077 * xdisp.c (dump_glyph): Fix typo.
13079 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
13080 (adjust_markers_gap_motion, adjust_markers_for_delete)
13081 (adjust_markers_for_insert, adjust_point)
13082 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
13083 (make_gap, copy_text, count_size_as_multibyte, insert)
13084 (insert_and_inherit, insert_before_markers)
13085 (insert_before_markers_and_inherit, insert_1)
13086 (count_combining_before, count_combining_after, insert_1_both)
13087 (insert_from_string, insert_from_string_before_markers)
13088 (insert_from_string_1, insert_from_gap, insert_from_buffer)
13089 (insert_from_buffer_1, adjust_after_replace)
13090 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
13091 (replace_range_2, del_range, del_range_1, del_range_byte)
13092 (del_range_both, del_range_2, modify_region)
13093 (prepare_to_modify_buffer, signal_before_change)
13094 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
13095 for buffer positions and sizes.
13096 * lisp.h: Adjust prototypes accordingly.
13098 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
13099 (non_regular_inserted, non_regular_nbytes, read_non_regular)
13100 (Finsert_file_contents): Use EMACS_INT for buffer positions.
13102 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
13104 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
13106 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
13107 lines and columns so we keep the same pixel height and width.
13109 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
13110 the property _NET_WM_STATE has changed.
13111 (x_handle_net_wm_state): New function to update frame parameter
13113 (x_term_init): Initialize atoms for _NET_WM_STATE.
13115 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
13117 2009-03-27 Kevin Ryde <user42@zip.com.au>
13119 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
13120 Gpm_GetEvent as an error that justifies closing the filedescriptor.
13121 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
13122 (Fgpm_mouse_stop): Pass that new parameter.
13123 * termhooks.h (close_gpm): Adjust prototype.
13125 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
13127 * lisp.h (Fx_focus_frame): Declare.
13129 * callint.c (Fcall_interactively): For '^' just delegate the work to
13130 handle-shift-selection.
13131 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
13133 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
13135 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
13137 * data.c (Qinteractive_form): New variable.
13138 (Finteractive_form): Use it.
13140 * eval.c (Fcommandp): Use Qinteractive_form.
13142 2009-03-24 Jason Rumney <jasonr@gnu.org>
13144 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
13145 Calculate total size precisely. Decode environment variables
13146 before substituting. (Bug#38)
13148 2009-03-24 Kenichi Handa <handa@m17n.org>
13150 * font.c (find_font_encoding): Return Qnil for unsupported
13151 encoding (Bug#2722).
13153 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
13155 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
13158 2009-03-22 Alan Mackenzie <acm@muc.de>
13160 * callint.c (Finteractive): Clarify the doc string - even
13161 promptless elements need \n separators.
13163 2009-03-22 Jason Rumney <jasonr@gnu.org>
13165 * w32term.c (syms_of_w32term): Doc fix for
13166 x-use-underline-position-properties.
13168 2009-03-21 Eli Zaretskii <eliz@gnu.org>
13170 * w32.c (getpwuid): Change argument type to unsigned.
13171 (struct w32_id): Change type of `rid' member to unsigned.
13172 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
13173 argument ID to unsigned. All callers changed.
13174 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
13176 2009-03-20 Eli Zaretskii <eliz@gnu.org>
13178 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
13179 negative, produce a float value.
13181 * dired.c (make_uid, make_gid): New functions.
13182 (Ffile_attributes): Use them to avoid negative UID and GID.
13184 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
13186 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
13187 (syms_of_keyboard) <command-hook-internal, input-method-function>:
13188 Fix typos in docstrings.
13190 2009-03-19 Kenichi Handa <handa@m17n.org>
13192 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
13193 changed, use font_load_for_lface to get a new font object.
13194 Call free_realized_fontset after handling ASCII font change.
13196 * frame.c (x_set_font): Handle the case that ARG is a cons.
13198 2009-03-19 Glenn Morris <rgm@gnu.org>
13200 * fileio.c (Fsubstitute_in_file_name): Doc fix.
13202 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
13204 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
13206 2009-03-19 Kenichi Handa <handa@m17n.org>
13208 * charset.c (load_charset_map_from_file): When a mapfile can't be
13209 loaded, signal an error.
13211 2009-03-18 Eli Zaretskii <eliz@gnu.org>
13213 * dired.c (Ffile_attributes): Make sure UID and GID are always
13214 positive, even if the value is too large for a positive EMACS_INT.
13217 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
13219 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13221 * xmenu.c (xdialog_show): Move Fredisplay call ...
13222 (Fx_popup_dialog): ... here.
13224 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
13226 * dired.c (file_name_completion): Disable the first optimization just
13227 installed, since it is not implemented correctly.
13229 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
13231 * dired.c (file_name_completion): Check completion-ignored-extensions
13232 only if the entry can affect bestmatch.
13233 Stop the search early, as Ftry_completion already does.
13235 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
13237 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
13239 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
13241 * keyboard.c (parse_menu_item): Don't display remappings as menu
13242 equivalent bindings (Bug#788).
13244 2009-03-15 Jason Rumney <jasonr@gnu.org>
13246 * w32term.h (WM_EMACS_PAINT): New message.
13247 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
13248 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
13249 before passing to lisp thread. (Bug#950)
13251 2009-03-14 David Reitter <david.reitter@gmail.com>
13253 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
13254 variable as it was never reset.
13255 (ns_term_init): Remove initialization of Lisp-settable defaults
13256 and ns_expand_space.
13257 (-setPanelFromDefaultValues): Remove ns_expand_space.
13258 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
13259 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
13260 i.e. no additional spacing, similar to Carbon port.
13262 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
13263 * nsfns.m (ns-popup-prefs-panel): Remove.
13265 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
13267 * sound.c (alsa_configure): Remove call to deprecated
13268 snd_pcm_sw_params_set_xfer_align.
13270 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
13272 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
13273 after clicking in a detached tool bar.
13274 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
13276 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
13278 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
13279 int/Lisp_Object mixup).
13281 2009-03-13 Kenichi Handa <handa@m17n.org>
13283 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
13284 Handle NAME nil and t correctly. Callers changed.
13285 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
13286 (set_fontset_font): Change ARG to a vector. Handle range_list in
13288 (Fset_fontset_font): Fix the case that TARGET is both a script
13289 name and charset name. Adjust the arg to set_fontset_font for
13291 (fontset_from_font): Fix previous change.
13292 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
13293 entry. If FONTSET is the default fontset, don't set the extra
13294 slot of the returning char-table.
13296 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
13298 * nsfns.m (Fx_close_connection): Doc fix.
13299 (Fns_do_applescript): Reflow docstring.
13300 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
13301 (Fx_display_pixel_width, Fx_display_pixel_height)
13302 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
13303 Fix typos in docstrings.
13304 (Fns_set_alpha): Fix typos in error messages.
13306 2009-03-12 David Reitter <david.reitter@gmail.com>
13308 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
13309 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
13310 were used for such events.
13312 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
13313 (toggleToolbar, performDragOperation, runHelp): Use it.
13315 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
13316 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
13318 2009-03-11 Kenichi Handa <handa@m17n.org>
13320 * font.h (font_open_by_spec): Extern it.
13322 * font.c (font_open_by_spec): New function.
13323 (font_open_by_name): Use font_open_by_spec.
13325 * frame.c (x_set_font): When ARG is a font-object, don't alter the
13326 fontset of the frame.
13328 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
13329 modify the default font of frames that use this fontset.
13330 (num_auto_fontsets): New variable.
13331 (fontset_from_font): Use num_auto_fontsets to decide a fontset
13332 name. Be sure to set FONTSET_ASCII to the correct font name.
13333 (update_auto_fontset_alist): New function.
13335 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
13337 * makefile.w32-in: Update dependencies.
13339 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
13341 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
13343 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
13345 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
13347 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
13349 * lread.c (Feval_buffer): Doc fix.
13351 2009-03-09 Kenichi Handa <handa@m17n.org>
13353 * charset.c (Qfile_name_handler_alist): Extern it.
13354 (load_charset_map_from_file): Temporarily bind
13355 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
13357 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
13359 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
13360 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
13362 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
13364 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
13365 (x_set_window_size): Change back to calculated method of setting
13366 toolbar height under Cocoa. (Bug#2546)
13367 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
13368 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
13370 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
13372 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
13373 accelerator in parens under GNUstep.
13375 2009-03-06 Kenichi Handa <handa@m17n.org>
13377 These changes are to detect incorrect composition sequence without
13378 looking ahead the source. (Bug#2370)
13380 * coding.h: Include "composite.h".
13381 (enum compisition_state): New enum.
13382 (struct compisition_status): New struct.
13383 (struct iso_2022_spec): New member cmp_status.
13384 (struct emacs_mule_spec): New struct.
13385 (struct coding_system): New members ctext_extended_segment_len and
13386 embedded_utf_8. Change the union member
13387 spec.emacs_mule_full_support to spec.emacs_mule.
13389 * coding.c (CODING_ISO_CMP_STATUS): New macro.
13390 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
13391 (MAX_ANNOTATION_LENGTH): Define to 5.
13392 (ADD_COMPOSITION_DATA): New arg nbytes.
13393 (emacs_mule_char): New arg cmp_status.
13394 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
13395 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
13396 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
13397 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
13398 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
13399 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
13400 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
13401 (EMACS_MULE_COMPOSITION_END): New macro.
13402 (emacs_mule_finish_composition): New function.
13403 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
13404 (decode_coding_emacs_mule): Avoid long looking ahead while
13405 handling composition.
13406 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
13407 (ENCODE_COMPOSITION_RULE): New macro.
13408 (finish_composition): New function.
13409 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
13410 (DECODE_COMPOSITION_START): New implementation.
13411 (DECODE_COMPOSITION_END): Likewise.
13412 (STORE_COMPOSITION_RULE): New macro.
13413 (decode_coding_iso_2022): Avoid long looking ahead while handling
13414 composition, CTEXT extended segment, and embedded UTF-8.
13415 (setup_coding_system): For a coding of type iso-2022, reset
13416 CODING_ISO_EXTSEGMENT_LEN (coding) and
13417 CODING_ISO_EMBEDDED_UTF_8 (coding).
13418 (get_translation): Delete arguments last_block, from_nchars,
13419 to_nchars. Callers changed.
13420 (produce_chars): Don't modify charbuf. Adjusted for the change of
13422 (produce_composition): Adjust for the new annotation sequence.
13423 (handle_composition_annotation): Likewise.
13424 (consume_chars): Adjust for the change of get_translation.
13426 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
13428 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
13430 2009-03-05 Kenichi Handa <handa@m17n.org>
13432 * font.c (font_select_entity): New function.
13433 (font_find_for_lface): Use font_select_entity to select a font.
13435 * fontset.c (fontset_find_font): If a font found without
13436 restricting to the characters C doesn't support C, try to find a
13437 font with C restriction.
13439 2009-03-04 Nikolaj Schumacher <me@nschum.de>
13441 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
13443 2009-03-04 Jason Rumney <jasonr@gnu.org>
13445 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
13446 characters that have already been read. (Bug#2569)
13448 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
13449 Log an error message if check_image_size failed.
13450 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
13451 (gs_load): Mention max-image-size in size error message. (Bug#2560)
13453 2009-03-02 Eli Zaretskii <eliz@gnu.org>
13455 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
13456 when decoding process output.
13458 2009-03-01 Richard M Stallman <rms@gnu.org>
13460 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
13462 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
13464 2009-02-28 Eli Zaretskii <eliz@gnu.org>
13466 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
13467 (decode_coding_emacs_mule, decode_coding_iso_2022)
13468 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
13469 (decode_coding_raw_text, decode_coding_charset)
13470 (setup_coding_system, decode_eol, decode_coding, consume_chars):
13471 Honor inhibit-eol-conversion. (Bug #2186)
13473 2009-02-28 Jason Rumney <jasonr@gnu.org>
13475 * coding.c (detect_coding_charset): If not checking latin extra,
13476 fail on characters between 0x80 and 0xA0. (Bug#2354)
13478 2009-02-28 Eli Zaretskii <eliz@gnu.org>
13480 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
13481 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
13483 2009-02-27 Glenn Morris <rgm@gnu.org>
13485 * callint.c (Finteractive): Doc fix.
13487 2009-02-27 Kenichi Handa <handa@m17n.org>
13489 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
13491 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
13493 * font.c (font_style_to_value): Set value for unknown symbols to
13494 100 instead of 255.
13495 (weight_table, slant_table, width_table): Treat "unspecified" as
13498 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
13500 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
13502 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
13504 * lread.c (Fload): Stop checking Vloads_in_progress and signal
13505 error as soon as a recursive load is detected.
13507 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
13509 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
13512 2009-02-24 Kenichi Handa <handa@m17n.org>
13514 * fontset.c (fontset_find_font): Fix the condition for checking
13517 2009-02-24 Glenn Morris <rgm@gnu.org>
13519 * xfaces.c (Finternal_set_font_selection_order): Remove leading
13520 whitespace that confuses documentation.
13522 2009-02-23 Miles Bader <miles@gnu.org>
13524 * process.c (Flist_system_processes, Fprocess_attributes)
13525 (syms_of_process): Rename `system-process-attributes' to
13526 `process-attributes'.
13528 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
13530 * coding.h (struct coding_system): Make safe_charsets a pointer to
13532 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
13534 (SAFE_CHARSET_P): Likewise.
13535 (setup_iso_safe_charsets): Properly setup safe_charsets.
13536 (Fdefine_coding_system_internal): Likewise.
13537 (setup_coding_system): Likewise. Remove unneeded casts.
13538 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
13539 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS.
13540 Remove unneeded casts.
13542 * insdel.c (del_range_2): Don't modify gap contents when called
13543 from decode_coding_object. (Bug#1809)
13545 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
13547 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
13549 (Ftype_of): Recognize font objects.
13551 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
13553 * font.c (Qfont_spec, Qfont_entity, Qfont_object):
13554 Definitions moved to data.c.
13556 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13558 * nsterm.m (x_make_frame_invisible): Unset async_visible,
13559 async_iconified. Based on a patch by Christian Lynbech
13560 <christian.lynbech@tieto.com>.
13561 (EmacsView-windowDidMiniaturize:): Unset async_visible.
13563 2009-02-20 Glenn Morris <rgm@gnu.org>
13565 * syntax.c (Fskip_chars_forward): Fix doc typo.
13567 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
13569 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
13571 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
13573 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
13575 2009-02-19 Kenichi Handa <handa@m17n.org>
13577 * coding.c (detect_coding): Preserve coding->mode.
13578 Don't overflow coding->carryover. (Bug#2370)
13580 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
13582 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
13584 2009-02-18 Kenichi Handa <handa@m17n.org>
13586 * font.c (font_check_otf_features): Fix handling of `nil' element.
13587 (Ffont_spec): Describe :lang and :otf in the docstring.
13589 2009-02-16 Andreas Schwab <schwab@suse.de>
13591 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
13594 2009-02-16 Kenichi Handa <handa@m17n.org>
13596 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
13599 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
13601 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
13603 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
13604 (handle_line_prefix): Suppress wrapping of wrap prefixes.
13606 2009-02-14 Eli Zaretskii <eliz@gnu.org>
13608 * msdos.c (MAX_SCREEN_BUF): New macro.
13609 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
13610 Encode the entire run of glyphs sharing the same face, instead of
13611 doing that one glyph at a time (fixes a bug with displaying
13612 double-size characters).
13614 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
13616 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
13618 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
13619 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
13620 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
13622 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
13623 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
13625 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
13627 * keyboard.c (adjust_point_for_property): Allow stopping between two
13630 2009-02-12 Jason Rumney <jasonr@gnu.org>
13632 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
13633 (add_font_entity_to_list): Call check_face_name even when family
13636 * w32term.c (x_display_pixel_height, x_display_pixel_width):
13637 Release DC when finished. Use NULL window to refer to desktop.
13638 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
13640 * w32font.c (add_font_entity_to_list): Fix check for substituted
13641 raster fonts. (Bug#2219)
13643 2009-02-12 Kenichi Handa <handa@m17n.org>
13645 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
13646 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
13647 (autocmp_chars): Use fast_looking_at. Don't compose more
13648 characters than MAX_COMPOSITION_COMPONENTS.
13649 (find_automatic_composition): While looking forward and backward,
13650 check static composition. Fix where to stop looking forward.
13651 (composition_adjust_point): Fix checking of static composition.
13652 (Fcomposition_get_gstring): Pay attention to
13653 MAX_COMPOSITION_COMPONENTS.
13655 * lisp.h (fast_looking_at): Extern it.
13657 * search.c (fast_looking_at): New function.
13659 * term.c (encode_terminal_code): Adjust for the change of
13660 <struct glyph>.u.cmp.to.
13661 (append_composite_glyph): Likewise.
13663 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
13664 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
13666 (append_composite_glyph): Adjust for the change of
13667 <strcut glyph>.u.cmp.to.
13669 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
13671 * casetab.c (init_casetab_once):
13672 * coding.c (ALLOC_CONVERSION_WORK_AREA):
13673 * font.c (font_update_lface):
13674 * fontset.c (Fnew_fontset):
13675 * ftfont.c (ftfont_drive_otf):
13676 * xfont.c (xfont_open):
13677 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
13679 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13681 * fileio.c (Fwrite_region): !NILP -> CONSP.
13683 2009-02-10 Andreas Schwab <schwab@suse.de>
13685 * process.c (send_process): Properly relocate pointer into data
13686 when using encoded data. (Bug#2272)
13688 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
13690 * coding.c (detect_coding_charset): Fix previous change.
13692 2009-02-08 Jason Rumney <jasonr@gnu.org>
13694 * w32fns.c (w32_hide_hourglass): Handle case where frame
13695 disappeared while hourglass was displayed. (Bug #2193)
13697 2009-02-07 Andreas Schwab <schwab@suse.de>
13699 * unexelf.c (unexec): Fix error message.
13701 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
13703 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
13704 when modal window is active. (Bug #2152)
13705 (applicationShouldTerminate:): Remove now-unneeded while loop
13706 around NSRunAlertPanel.
13708 * nsmenu.m (popupSession): New file-global variable.
13709 (pop_down_menu): End the popupSession before closing dialog.
13710 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
13711 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
13712 don't query NSApp for events (just sleep instead).
13714 2009-02-07 Eli Zaretskii <eliz@gnu.org>
13716 * coding.c (syms_of_coding) <translation-table-for-input>:
13717 Modify doc string to discourage use for character code unification.
13719 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13721 * atimer.c (run_timers): Update pending_atimers.
13723 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
13725 * image.c (svg_load_image): Fix last change.
13727 * xfns.c (Fx_create_frame): Signal an error if no font is
13730 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
13732 * character.c (syms_of_character) <script-representative-chars>:
13733 Fix typo in docstring.
13735 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
13737 * nsmenu.m (pop_down_menu): New function.
13738 (ns_popup_dialog): Call it on unwind.
13739 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
13740 call timer_check() (Bug#2154).
13741 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
13742 handling_signal is set.
13743 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
13745 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
13747 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
13749 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
13751 * keyboard.c (poll_for_input_1, handle_async_input):
13752 Set handling_signal under HAVE_NS.
13754 2009-02-04 Glenn Morris <rgm@gnu.org>
13756 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
13758 2009-02-04 Kenichi Handa <handa@m17n.org>
13760 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
13762 * charset.c (Fchar_charset): New optional arg restriction.
13764 * coding.h (coding_system_charset_list): Extern it.
13766 * coding.c (coding_system_charset_list): New function.
13768 * composite.c: Include coding.h and termhooks.h.
13769 (composition_gstring_p): Fix for the terminal case.
13770 (composition_gstring_width): Likewise.
13771 (fill_gstring_body): Likewise.
13772 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
13774 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
13775 is within a composition.
13776 (Fcomposition_get_gstring): Fix the terminal case.
13778 * term.c (encode_terminal_code): Fix handling of composition.
13779 (produce_composite_glyph): For static composition, get pixel_width
13780 from struct composition.
13782 2009-02-02 Andreas Schwab <schwab@suse.de>
13784 * unexelf.c (unexec): Handle unaligned bss offset.
13786 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13788 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
13789 XT,w32read_socket changes to ns_read_socket.
13791 * keyboard.c (handle_interrupt): Don't call
13792 quit_throw_to_read_char() under NS.
13794 * blockinput.h: Remove NS-specific code.
13796 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
13798 * dispnew.c (window_change_signal): Don't try to get the size of a
13799 suspended tty frame.
13800 * term.c (Fresume_tty): Resize if the size has changed while the
13803 * alloc.c (mark_stack): Properly conditionalize previous change.
13805 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
13807 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
13808 * w32term.c (w32_read_socket) [SYNC_INPUT]:
13809 Remove; this code is not used on Windows.
13811 2009-01-30 Eli Zaretskii <eliz@gnu.org>
13813 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
13814 EOLs that also has stray ^M characters.
13816 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
13818 * atimer.c (run_timers, alarm_signal_handler):
13819 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
13820 * w32inevt.c (w32_console_read_socket):
13821 * w32term.c (w32_read_socket):
13822 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
13824 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
13826 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
13827 Initialize it as a relative filename pattern.
13828 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
13829 (Fcall_process_region): Simplify temp file creation using
13830 temporary-file-directory.
13832 2009-01-29 Eli Zaretskii <eliz@gnu.org>
13834 * msdos.c: Rename pending_signals to msdos_pending_signals.
13835 (sig_suspender, sigprocmask): Adjust.
13837 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
13839 * keyboard.c (pending_signals): New var.
13840 (poll_for_input, input_available_signal, init_keyboard): Set it.
13841 (process_pending_signals): New function.
13843 * lisp.h (QUIT): Check pending_signals instead of
13844 interrupt_input_pending. Use process_pending_signals.
13846 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
13848 * process.c (wait_reading_process_output): Use process_pending_signals.
13850 * sysdep.c (emacs_write): Use process_pending_signals.
13852 * xterm.c (XTread_socket): Update pending_signals.
13854 * w32term.c (w32_read_socket): Update pending_signals.
13856 * w32inevt.c (w32_console_read_socket): Update pending_signals.
13858 2009-01-29 Kenichi Handa <handa@m17n.org>
13860 * xftfont.c (xftfont_has_char): New function.
13861 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
13863 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
13865 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
13867 (ns_query_color): New declaration.
13869 * nsterm.m (ns_confirm_quit): New variable.
13870 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
13871 (EmacsApp-applicationShouldTerminate:): Use it.
13872 (EmacsPrefsController): Let user set it.
13873 (ns_query_color): New function.
13874 (ns_defined_color): Use it.
13875 (ns_initialize): Drop.
13876 (ns_term_init): Add two lines from ns_initialize(), and set
13877 input_interrupt_mode to nil.
13879 * image.c (svg_load_image): Don't right-shift background RGB when
13880 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
13882 2009-01-28 Kenichi Handa <handa@m17n.org>
13884 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
13885 (fontset_get_font_group): Remember that no font-group is specified
13888 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
13890 * fns.c (concat): Check for string overflow (bug#1787).
13892 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
13893 Quadruple undo limits (bug#1501).
13895 2009-01-27 Kenichi Handa <handa@m17n.org>
13897 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
13898 directly use GT_Get_Char_index.
13900 * xftfont.c (struct xftfont_info): New member `index'.
13902 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
13903 (Ffontset_font): Adjust for the change of fontset entry.
13905 2009-01-26 Kenichi Handa <handa@m17n.org>
13907 * fontset.c (fontset_find_font): Fix handling of non-cons return
13908 value of fontset_get_font_group.
13909 (fontset_font): Revert last change.
13911 2009-01-26 Jason Rumney <jasonr@gnu.org>
13913 * w32font.c (w32font_list_internal): Return quickly if registry is
13914 unknown. Simplify final return.
13915 (add_font_entity_to_list): Break complex logic down into more
13916 manageable chunks. Move unknown registry check to
13917 w32font_list_internal.
13919 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
13921 Changes to remove Feval calls from GUI under NS.
13923 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
13924 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
13925 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
13927 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
13928 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
13929 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
13930 instead of NON_ASCII_KEYSTROKE_EVENT.
13931 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
13932 (EmacsApp-applicationShouldTerminate:): Query user.
13933 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
13936 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
13938 * keyboard.c (kbd_buffer_get_event): Check for it.
13939 (keys_of_keyboard): Define lispy keys for
13940 ns-put/unput-working-text.
13942 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
13944 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
13946 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
13948 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
13949 setting current_buffer directly. (Bug#2044)
13951 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
13953 * fontset.c (fontset_font): If we know there is no font, don't do
13954 any work. (Bug#1952, bug#1990).
13956 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
13958 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
13960 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
13961 (ns_no_defaults): New declaration.
13964 * nsterm.h (ns_no_defaults): New declaration.
13966 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
13968 * nsterm.m (ns_no_defaults): New variable.
13969 (ns_initialize): Don't read defaults when ns_no_defaults.
13970 (EmacsView-readSelectionFromPasteboard:)
13971 (writeSelectionToPasteboard:types:): New stubbed-out methods for
13972 NSServicesRequests protocol. (Bug#1435)
13973 (ns_dumpglyphs_stretch): New function.
13974 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
13975 of 2008-11-15 to other terms. (Bug#615)
13977 * nsimage.m (setPixmapData:): Set to ignore image DPI.
13979 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
13981 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
13984 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
13991 * nsterm.m: Remove '23' comments that indicated code added during
13992 update from emacs-20 -> emacs-23.
13994 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
13996 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
13997 ns_alternate_modifier. (Bug#1217)
13999 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
14000 Display all shortcuts, including those w/o super modifier.
14002 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
14004 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
14006 * fileio.c (Vwrite_region_post_annotation_function)
14007 (Vwrite_region_annotation_buffers): New vars.
14008 (build_annotations_unwind): Just reset
14009 Vwrite_region_annotation_buffers.
14010 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
14011 Call write-region-post-annotation-function.
14012 (build_annotations): Add to Vwrite_region_annotation_buffers if
14015 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
14017 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
14019 * nsfns.m (ns_do_applescript):
14020 Conditionalize typeUTF16ExternalRepresentation on Tiger.
14022 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
14024 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
14026 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
14028 * nsmenu.m (NSMENUPROFILE): Change #if style.
14030 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
14032 * nsterm.m (x_set_frame_alpha): Add prototype.
14033 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
14034 handle Ctrl-tab. (Bug#1841)
14035 (ns_get_color): Use unsigned long long for scanned hex string value.
14036 (ns_term_shutdown): Abort on non SIGTERM signals.
14037 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
14038 (EmacsPrefsController-setPanelFromDefaultValues): New function.
14039 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
14040 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
14041 (ns_defined_color): Fix settings of the XColor variable fields:
14042 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
14044 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
14046 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
14047 values in onTiger section.
14049 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
14051 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
14052 Check return value of font_spec_from_name.
14053 (Fx_list_fonts): Doc fix. (Bug#1951)
14055 * font.c (font_spec_from_name): Return Qnil if font name could not
14057 (font_parse_name): Treat a `?' character as part of an XLFD.
14059 * fns.c (Fsubstring): Doc fix.
14061 2009-01-19 Kenichi Handa <handa@m17n.org>
14063 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
14064 (ftfont_list): Likewise.
14066 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
14068 * dbusbind.c (Fdbus_register_signal):
14069 * process.c (conv_sockaddr_to_lisp):
14070 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
14072 * callproc.c (Fgetenv_internal): Doc fix.
14074 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
14076 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
14077 it is not even used.
14079 2009-01-16 Glenn Morris <rgm@gnu.org>
14081 * font.c (Ffont_variation_glyphs): Silence compiler.
14083 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
14085 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
14086 Reported by David Robinow <drobinow@gmail.com>.
14088 2009-01-15 Kenichi Handa <handa@m17n.org>
14090 * coding.c (detect_coding_system): Fix handling of null_byte_found.
14092 2009-01-14 Jason Rumney <jasonr@gnu.org>
14094 * frame.c (x_set_font): Always store a font to the font parameter,
14095 never a fontset. (Bug#1562)
14097 2009-01-14 Kenichi Handa <handa@m17n.org>
14099 * coding.c (TWO_MORE_BYTES): New macro.
14100 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
14102 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
14104 * font.c (font_clear_prop): If clearing the family, clear the font
14107 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
14109 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
14111 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
14112 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
14113 functions, use sizeof.
14115 2009-01-12 Martin Rudalics <rudalics@gmx.at>
14117 * keyboard.c (read_char): Fix case where last_nonmenu_event
14118 returned a bad value with submenus. (Bug#447)
14120 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
14122 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
14123 family, clear the font width index too.
14125 2009-01-11 Jason Rumney <jasonr@gnu.org>
14127 * keyboard.c (cmd_error_internal): Exit when errors occur before
14128 frame creation and not in daemon mode. (Bug#1836)
14130 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
14132 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
14133 of a display vector, backtrack.
14134 (try_window_reusing_current_matrix): Check glyph type before
14135 referencing charpos member.
14137 2009-01-10 Eli Zaretskii <eliz@gnu.org>
14141 * coding.c (inhibit_null_byte_detection): New variable.
14142 (detect_coding, detect_coding_system): Don't pay attention to null
14143 bytes if inhibit_null_byte_detection is non-zero.
14144 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
14145 <inhibit-iso-escape-detection>: Doc fix.
14147 2009-01-09 Jason Rumney <jasonr@gnu.org>
14149 * w32font.c (add_font_entity_to_list): Don't report unknown
14150 Windows charset as any unrecognized registry. (Bug#1548)
14151 Only report Unicode Plane 2 fonts as unicode-sip.
14153 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
14155 * xfaces.c (Fx_font_family_list): Delete function.
14156 Move compatibility version to faces.el.
14158 * font.c (Ffont_family_list): Return a list of strings, not symbols.
14160 2009-01-09 Martin Rudalics <rudalics@gmx.at>
14162 * frame.c (x_set_frame_parameters): Remember requested value for
14163 fullscreen before it's reset by the parameter handler.
14165 2009-01-09 Glenn Morris <rgm@gnu.org>
14167 * keyboard.c (last_command_char): For clarity, rename to...
14168 (last_command_event): ... and update all users.
14169 (last_input_char): For clarity, rename to...
14170 (last_input_event): ... and update all users.
14171 (last-command-char, last-input-char): Move to subr.el as aliases.
14172 * cmds.c, commands.h: Update for last_command_char rename.
14174 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
14176 * font.c (font_open_for_lface): Handle unspecified height attribute.
14178 2009-01-08 Jason Rumney <jasonr@gnu.org>
14180 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
14181 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
14182 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
14184 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
14185 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
14187 2009-01-07 Kenichi Handa <handa@m17n.org>
14189 * fileio.c (Finsert_file_contents): In the case of replace,
14190 remember the coding system used for decoding in
14191 coding_system (Bug#1039).
14193 * coding.c (decode_coding_utf_8): Check byte_after_cr before
14194 breaking the loop. (Bug#870)
14195 (decode_coding_utf_16, decode_coding_emacs_mule)
14196 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14197 (decode_coding_charset): Likewise.
14199 2009-01-05 Martin Rudalics <rudalics@gmx.at>
14201 * frame.c (x_set_frame_parameters): Make sure height (width) get
14202 applied when fullwidth (fullheight) is set. (Bug#1522)
14204 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
14206 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
14207 (utc_base): Declare as ULONGLONG, not long double.
14208 (convert_time_raw): Delete.
14209 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
14210 (initialize_utc_base): New function.
14211 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
14212 (convert_from_time_t): Use initialize_utc_base; compute result with
14214 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
14216 2009-01-03 Eli Zaretskii <eliz@gnu.org>
14218 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
14219 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
14220 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
14221 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
14222 [!subprocesses]: Define.
14223 (syms_of_process) [!subprocesses]: Intern and staticpro them.
14224 (Flist_system_processes, Fsystem_process_attributes)
14225 [!subprocesses]: Call list_system_processes and
14226 system_process_attributes instead of returning Qnil.
14228 * dosfns.c (system_process_attributes, list_system_processes):
14231 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
14233 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
14234 Don't use the default (no-op) implementation.
14236 2009-01-03 Jason Rumney <jasonr@gnu.org>
14238 * keyboard.c (parse_modifiers_uncached): Wheel events are
14241 * w32term.c (x_query_colors, x_query_color): New functions.
14243 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
14244 (svg_load_image): Cast returned pointers from dynamically loaded
14245 functions. Eliminate W32 specific code.
14247 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
14249 * nsfns.m (x_set_foreground_color, x_set_background_color)
14250 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
14251 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
14252 x_ prefix instead of ns_. Update references.
14253 (syms_of_nsfns): Add a FIXME comment.
14255 * nsterm.m (x_set_cursor_type): New prototype.
14256 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
14258 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
14259 for Solaris instead of incorrectly providing Qutime and Qcutime.
14261 2009-01-02 Eli Zaretskii <eliz@gnu.org>
14263 * w32.c (process_times): Compute sum of utime and stime.
14264 (system_process_attributes): Add Qtime to the alist.
14266 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
14267 and add them to the alist.
14269 * process.c (top level) <Qtime, Qctime>: New variables.
14270 (syms_of_process): staticpro them.
14271 (Fsystem_process_attributes): Add their documentation to the doc
14274 * process.h: Declare Qtime and Qctime.
14276 2009-01-02 Jason Rumney <jasonr@gnu.org>
14278 * image.c (Qgobject): New symbol.
14279 (syms_of_image): Initialize it.
14280 (init_svg_functions): Load some functions from gobject library.
14282 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
14284 * frame.c (make_terminal_frame): Remove redundant code and useless
14287 2009-01-01 Andreas Schwab <schwab@suse.de>
14289 * process.c (conv_sockaddr_to_lisp): Add workaround for
14290 getsockname bug on BSD.
14292 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
14294 * xfns.c (x_create_tip_frame): Set border width of the X window.
14296 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
14298 2009-01-01 Jason Rumney <jasonr@gnu.org>
14300 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
14301 Don't block input, as per earlier xterm.c changes.
14303 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
14305 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
14306 (ns_appkit_version_int): New function.
14307 (x-server-version): Use ns_appkit_version_int and follow 21+
14308 convention of returning 3 integers.
14310 2008-12-30 Kenichi Handa <handa@m17n.org>
14312 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
14313 (CHAR_SURROGATE_PAIR_P): New macro.
14315 * font.h (struct font_driver): New member get_variation_glyphs.
14317 * font.c (font_range): Don't require a font for a variation selector.
14318 (Ffont_variation_glyphs): New function.
14319 (syms_of_font): Defsubr it.
14321 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
14322 ftfont_variation_glyphs.
14323 (setup_otf_gstring): New function.
14324 (ftfont_drive_otf): Use it.
14325 (ftfont_shape_by_flt): Handle variation selector.
14326 (ftfont_variation_glyphs): New function.
14328 2008-12-30 Martin Rudalics <rudalics@gmx.at>
14330 * frame.c (Vemacs_iconified): Remove.
14332 2008-12-30 Jason Rumney <jasonr@gnu.org>
14334 * frame.c (store_frame_param, x_get_arg): Enable newer code on
14335 WINDOWSNT too, as related changes have already been synced. (Bug#117)
14337 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
14339 * indent.c (Fvertical_motion): Don't advance iterator if we have
14340 reseated to the desired position.
14342 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
14343 checking for pos match.
14345 2008-12-30 Kenichi Handa <handa@m17n.org>
14347 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
14348 just get the low 8-bit of the code.
14350 * font.c (font_intern_prop): Validate str as multibyte.
14352 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
14354 * dispextern.h (struct face): Move lface and hash from the middle
14357 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
14359 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
14361 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
14362 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
14363 instead of intervals.h.
14365 2008-12-26 Andreas Schwab <schwab@suse.de>
14367 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
14370 2008-12-26 Martin Rudalics <rudalics@gmx.at>
14372 * textprop.c (Qminibuffer_prompt): New variable.
14373 (syms_of_textprop): Initialize it.
14374 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
14375 in minibuffer-prompt face. (Bug#1662)
14377 2008-12-25 Jason Rumney <jasonr@gnu.org>
14379 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
14381 2008-12-24 Jason Rumney <jasonr@gnu.org>
14383 * ralloc.c (r_alloc_reset_variable): New function.
14385 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
14386 record of what points where. (Bug#716)
14388 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
14390 * minibuf.c (read_minibuf): Follow the non-interactive case when
14391 running as a daemon, before detaching.
14393 2008-12-22 Andreas Schwab <schwab@suse.de>
14395 * buffer.c (init_buffer): Use realloc instead of xrealloc.
14396 * gtkutil.c (free_widget_value): Use xfree instead of free.
14398 2008-12-22 Martin Rudalics <rudalics@gmx.at>
14400 * frame.c (delete_frame): New function derived from
14401 Fdelete_frame to handle Qnoelisp value for FORCE argument.
14402 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
14403 (Fdelete_frame): Call delete_frame. Remove line from doc-string
14404 saying that FORCE non-nil doesn't run `delete-frame-functions'.
14405 * frame.h: Extern delete_frame.
14406 * window.c (window_loop):
14407 * terminal.c (delete_terminal):
14408 * xterm.c (x_connection_closed):
14409 * xfns.c (Fx_hide_tip):
14410 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
14412 2008-12-21 Jason Rumney <jasonr@gnu.org>
14414 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
14415 when character maps to .notdef character.
14417 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
14419 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
14421 2008-12-20 Jason Rumney <jasonr@gnu.org>
14423 * frame.c (Fmake_terminal_frame): Raise an error when called from
14424 a graphical frame on Windows. (Bug#1325)
14426 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
14428 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
14430 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
14432 * minibuf.c (Fread_buffer): Doc fix.
14434 2008-12-20 Jason Rumney <jasonr@gnu.org>
14436 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
14437 server name in UNC paths. (Bug#719)
14439 * coding.c (decode_coding): Clear chars_at_source flag when using
14440 charbuf. (Bug#1035)
14442 2008-12-19 Daniel Engeler <engeler@gmail.com>
14444 * sysdep.c (serial_configure): Fix typo.
14446 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
14448 * sysdep.c: Include alloca.h.
14449 (system_process_attributes): Add implementation for Solaris.
14451 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
14453 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
14455 Reorganize implementation of Flist_system_processes and
14456 Fsystem_process_attributes. No functional changes.
14457 * process.c: Don't #include pwd.h, grp.h and limits.h.
14458 (Flist_system_processes): Just call list_system_processes.
14459 (Fsystem_process_attributes): Just call system_process_attributes.
14460 (procfs_list_system_processes, time_from_jiffies)
14461 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
14462 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
14464 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
14465 (list_system_processes): Rename from
14466 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
14467 Provide a do nothing implementation.
14468 (system_process_attributes): Rename from
14469 procfs_list_system_processes.
14470 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
14471 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
14473 * w32.c (list_system_processes): Rename from
14474 w32_list_system_processes.
14475 (system_process_attributes): Rename from
14476 w32_system_process_attributes.
14478 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
14480 * process.h (w32_list_system_processes)
14481 (w32_system_process_attributes): Remove.
14482 (list_system_processes, system_process_attributes):
14485 2008-12-19 Kenichi Handa <handa@m17n.org>
14487 * xfont.c (xfont_decode_coding_xlfd): New function.
14488 (xfont_encode_coding_xlfd): New function.
14489 (xfont_list_pattern): Decode XLFD by iso-8859-1.
14490 (xfont_list): Decode and encode XLFD by iso-8859-1.
14491 (xfont_match): Likewise.
14492 (xfont_list_family): Likewise.
14493 (xfont_open): Likewise.
14495 * ftfont.c (ftfont_open): Generate a multibyte string if given
14498 * xftfont.c (xftfont_open): Generate a multibyte string if given
14501 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
14503 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
14505 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
14506 clicked on a detached tool bar button.
14508 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
14510 * emacs.c (main): Print and error and exit when no data is read
14513 2008-12-17 Jason Rumney <jasonr@gnu.org>
14515 * w32font.c (w32font_has_char): Always return -1.
14517 2008-12-16 Kenichi Handa <handa@m17n.org>
14519 * font.c (font_open_entity): Fix previous change.
14521 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
14523 * process.c: Include <limits.h>.
14525 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
14527 * font.c (font_update_drivers): Fix mistake in reconstructing the
14530 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
14532 * font.c (font_clear_cache): Fix format of font cache data.
14534 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
14536 * xftfont.c (xftfont_open): Free Xft font pattern if
14537 XftFontOpenPattern fails.
14539 * xterm.c (x_free_frame_resources): Remove extraneous call to
14542 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
14544 * xterm.c (x_delete_display): Move xim_close_dpy call to
14546 (x_delete_terminal): Call xim_close_dpy.
14548 2008-12-13 Jason Rumney <jasonr@gnu.org>
14550 * w32font.c (intern_font_name): New function.
14551 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
14552 (w32font_open_internal, Fx_select_font): Decode font name.
14553 (fill_in_logfont, list_all_matching_fonts): Encode font name.
14555 * w32font.h (intern_font_name): Declare new function.
14557 * w32uniscribe.c (add_opentype_font_name_to_list):
14558 Use intern_font_name.
14560 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
14562 * frame.c (Fdelete_frame): Call free_font_driver_list.
14564 * font.c (free_font_driver_list): Implement missing function.
14566 * w32term.c (w32_term_init): Don't initialize the image cache
14567 here; it will be done in init_frame_faces.
14569 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
14570 (struct x_display_info): Remove unused member null_pixel.
14571 New member xim_callback_data.
14573 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
14574 (xim_initialize): Save pointer to callback function data.
14575 (xim_close_dpy): Free callback function data. Call XCloseIM,
14576 reverting 2008-11-04 change by David Smith.
14577 (x_term_init): Don't initialize the image cache here; it will be
14578 done in init_frame_faces. Remove ancient "null_pixel" cruft.
14579 (x_delete_display): Free x_dnd_atoms member.
14581 2008-12-13 Kenichi Handa <handa@m17n.org>
14583 * font.c (font_rescale_ratio): Move from xfaces.c.
14584 Argument type changed. Handle a font-spec too.
14585 (font_score): Check Vface_font_rescale_alist.
14586 (font_open_entity): Likewise. (Bug#1547)
14588 * xfaces.c (font_rescale_ratio): Move to font.c.
14590 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
14592 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
14594 2008-12-12 Jason Rumney <jasonr@gnu.org>
14596 * w32fns.c (x_display_info_for_name, Fx_open_connection):
14597 Set Vwindow_system_version to the real w32 major version.
14599 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
14601 * term.c (init_tty): Move setting the terminal name before the
14602 potential user: maybe_fatal.
14604 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
14606 * term.c (tty_free_frame_resources): Rename from delete_tty_output;
14607 all callers changed. Call free_frame_faces to free the face cache.
14609 2008-12-11 Jason Rumney <jasonr@gnu.org>
14611 * w32font.c (fill_in_logfont): Don't assume symbol script means
14612 SYMBOL_CHARSET. (Bug#547)
14614 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
14615 size for surrogates. (Bug#1096, bug#872)
14617 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
14619 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
14621 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
14623 * process.c (Fsystem_process_attributes, syms_of_process):
14624 Fix typo in name of Ssystem_process_attributes.
14625 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
14627 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
14629 * syntax.c (Fmodify_syntax_entry): Doc fix.
14631 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
14633 * font.c (Ffont_spec): Move usage to end of docstring.
14635 2008-12-10 Jason Rumney <jasonr@gnu.org>
14637 * w32font.c (Qcham): New symbol.
14638 (font_supported_scripts): Add cham, and comments for other new
14639 scripts in bitfield from OpenType spec.
14640 (add_font_entity_to_list): Limit unicode-sip fonts to those that
14641 contain characters beyond the bmp.
14643 2008-12-10 Kenichi Handa <handa@m17n.org>
14645 * ftfont.c (fc_charset_table): Add "unicode-sip".
14646 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
14649 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
14651 * coding.c (QCdefault_char): Rename from QCdefalut_char.
14652 (Fcoding_system_put): Use QCdefault_char.
14653 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
14655 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
14657 * xftfont.c (syms_of_xftfont): Fix typo.
14659 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
14661 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
14663 * emacs.c (main): Close daemon_pipe on exec.
14665 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
14667 * termchar.h (struct tty): New members termcap_term_buffer and
14668 termcap_strings_buffer.
14670 * term.c (encode_terminal_code): Free any previous memory blocks
14671 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
14672 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
14673 All callers changed.
14674 (init_tty): Store termcap data and string buffers in new struct
14675 tty members termcap_term_buffer and termcap_strings_buffer.
14676 (delete_tty): Free them.
14677 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
14679 2008-12-07 Seiji Zenitani <zenitani@mac.com>
14681 * nsfns.m (ns_set_background_color): Remove code duplication.
14682 It was a substitute for face-transparency on OS X 10.3.
14684 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
14686 * coding.c (make_conversion_work_buffer): Disable buffer
14687 modification hooks in the work buffer.
14689 2008-12-05 Eli Zaretskii <eliz@gnu.org>
14691 * process.c (procfs_system_process_attributes): If `nread' has a
14692 negative value, assign zero to it.
14694 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
14696 * eval.c (Vdebug_on_error): Doc fix.
14698 2008-12-05 Kenichi Handa <handa@m17n.org>
14700 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
14701 second character is a combining character.
14703 2008-12-05 Eli Zaretskii <eliz@gnu.org>
14705 * process.c (procfs_system_process_attributes): Don't use cmd,
14706 cmdsize, and q without initializing them first.
14708 2008-12-04 Jason Rumney <jasonr@gnu.org>
14710 * w32font.c (w32font_draw): Initialize orig_clip before getting
14711 it, and delete it when finished.
14713 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
14715 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
14716 case when running as a daemon before detaching.
14718 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
14720 * w32.c (init_environment): Don't unload library shell32.dll.
14722 2008-12-03 Kenichi Handa <handa@m17n.org>
14724 * font.c (font_at): Set `multibyte' at first.
14726 * coding.c (decode_coding_charset): Check type of an element of
14728 (encode_coding_emacs_mule): Be sure to set `code'.
14730 * fontset.c (face_for_char): Handle invalid charset property correctly.
14731 (font_for_char): Likewise.
14733 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
14735 * font.c (Fopen_font): Compute pixel size correctly.
14736 (font_update_lface): Handle fonts with corrupted size specs,
14737 i.e. non-int and non-float.
14739 * ftfont.c (ftfont_match): Initialize entity variable.
14740 (ftfont_resolve_generic_family): Avoid using uninitialized var.
14741 (ftfont_list_family): Initialize list var earlier.
14743 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
14745 * xterm.c (x_draw_glyph_string): Fall back on
14746 underline_minimum_offset for underline position.
14748 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
14750 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
14752 * character.c (c_string_width): Specify the type for LEN.
14754 2008-12-03 Kenichi Handa <handa@m17n.org>
14756 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
14757 (decode_coding_utf_8): Likewise.
14758 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
14759 (produce_chars): Initialize consumed_chars to 0.
14761 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
14763 * keyboard.c (make_lispy_position): Only use PT if the selected
14766 2008-12-02 Andreas Schwab <schwab@suse.de>
14768 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
14770 * doprnt.c (doprnt1): Fix size of charbuf.
14772 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
14774 * keyboard.c (timer_check): Revert last change.
14776 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
14778 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
14780 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
14782 * makefile.w32-in: Update dependencies.
14783 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
14785 2008-12-01 Andreas Schwab <schwab@suse.de>
14787 * font.c (register_font_driver): Use xmalloc.
14788 (font_put_frame_data): Likewise.
14790 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
14792 * xfaces.c (realize_x_face): Make abort condition clearer.
14794 * gtkutil.c (update_frame_tool_bar): Initialize variable.
14796 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
14798 * keyboard.c (timer_check): After a timer runs, ensure that the
14799 selected window's buffer is current.
14801 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
14803 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
14804 It was accidentally restored by the Unicode merge.
14806 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
14808 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
14810 * w32proc.c: Include "coding.h".
14811 (Fw32_short_file_name): Encode filename passed to Windows API.
14812 (Fw32_long_file_name): Encode filename passed to Windows API and
14813 decode back the result. (Bug#1433)
14815 2008-11-29 Kenichi Handa <handa@m17n.org>
14817 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
14818 not before accessing it.
14820 * charset.c (Fdefine_charset_internal): After calculating
14821 min_char, max_char, and fastmap, copy the charset structure again.
14822 (encode_char): Fix the previous change.
14824 2008-11-28 Seiji Zenitani <zenitani@mac.com>
14826 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
14828 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
14830 * nsterm.m (x_set_frame_alpha): New function.
14832 2008-11-27 Eli Zaretskii <eliz@gnu.org>
14834 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
14836 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
14838 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
14839 pointer to check_face_name.
14841 2008-11-27 Kenichi Handa <handa@m17n.org>
14843 * category.h (SET_CATEGORY_SET): Call set_category_set.
14844 (set_category_set): Extern it.
14846 * category.c (hash_get_category_set): New function.
14847 (Fmodify_category_entry): Adjust for the change of
14848 char_table_ref_and_range. Call hash_get_category_set to get a
14849 category set to store in the table.
14851 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
14854 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
14855 (DECODE_CHAR): Check if the decoder vector is ready.
14856 (ENCODE_CHAR): Check if the encoder char-table is ready.
14857 (maybe_unify_char): Extern it.
14859 * charset.c (Vchar_unified_charset_table): Delete it.
14860 (inhibit_load_charset_map): New variable.
14861 (temp_charset_work): New variable.
14862 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
14863 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
14865 (load_charset_map): Meaning of control_flag changed.
14866 If inhibit_load_charset_map is nonzero, setup a table in
14868 (load_charset): New argument control_flag.
14869 (map_charset_for_dump): New function.
14870 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
14871 map_charset_for_dump.
14872 (Fdefine_charset_internal): If the charset method is MAP, load
14873 mapping tables by calling load_charset.
14874 (Funify_charset): Don't load a mapping table but directly set
14876 (maybe_unify_char): New function.
14877 (decode_char): Don't handle the deleted method MAP_DEFERRED.
14878 Handle the case of inhibit_load_charset_map being nonzero.
14879 (encode_char): Don't handle the deleted method MAP_DEFERRED.
14880 Handle the case of inhibit_load_charset_map being nonzero.
14881 (Fclear_charset_maps): Just free temp_charset_work.
14882 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
14885 * chartab.c (sub_char_table_ref_and_range): Adjust for the
14886 change of char_table_ref_and_range.
14887 (char_table_ref_and_range): Change the meaning of argument FROM
14888 and TO. Now the caller must provide initial values for *FROM
14891 * fontset.c (fontset_add): Adjust for the change of
14892 char_table_ref_and_range.
14893 (fontset_get_font_group): Likewise.
14894 (Ffontset_info): Likewise.
14896 * keymap.c (describe_vector): Adjust for the change of
14897 char_table_ref_and_range. For char-table, put boundary between
14898 non-ASCII and 8-bit characters.
14900 * print.c (print_object): For bool-vector, delete unnecessary
14901 check of ASCII_BYTE_P.
14903 2008-11-26 Jason Rumney <jasonr@gnu.org>
14905 * w32font.c (w32font_open_internal): Don't include external
14906 leading in font height. (Bug#879)
14908 2008-11-26 Glenn Morris <rgm@gnu.org>
14910 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
14911 redefinition with ifdef. (Bug#1383)
14913 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
14915 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
14917 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
14919 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
14920 New EmacsView methods.
14921 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
14922 Fixes bug #1048,1357,1414.
14924 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
14927 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
14928 is not an indexed color.
14929 * nsterm.m (free_indexed_color): Add argument checking.
14930 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
14932 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
14934 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
14935 Document confirm-after-completion value for
14936 minibuffer-completion-confirm.
14938 2008-11-24 Jason Rumney <jasonr@gnu.org>
14940 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
14943 2008-11-23 Jason Rumney <jasonr@gnu.org>
14945 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
14946 restored before returning.
14948 * w32font.c (check_face_name): New function.
14949 (add_font_entity_to_list): Use it to filter out common substituted
14952 2008-11-22 Martin Rudalics <rudalics@gmx.at>
14954 * buffer.c (Fswitch_to_buffer): Reword and mention new option
14955 confirm-nonexistent-file-or-buffer in doc-string.
14957 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
14959 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
14960 Fix copy/paste typo. Add checks.
14962 2008-11-21 Kenichi Handa <handa@m17n.org>
14964 * coding.c (detect_coding_iso_2022): Reject invalid composition
14966 (DECODE_COMPOSITION_START): If the current source is the last
14967 block, and the current composition doesn't end, regard this
14968 sequence as invalid.
14969 (decode_coding_iso_2022): Handle invalid composition sequence.
14971 2008-11-20 Martin Rudalics <rudalics@gmx.at>
14973 * window.c (coordinates_in_window): Don't return
14974 ON_VERTICAL_BORDER for the rightmost position of a mode/header
14975 line when the window is not the rightmost one. (Bug#1372)
14977 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
14979 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
14981 2008-11-15 Eli Zaretskii <eliz@gnu.org>
14983 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
14984 and bright_bg if noninteractive is non-zero.
14986 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14988 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
14989 x_draw_glyph_string_background.
14991 * w32term.c (x_draw_glyph_string): Likewise.
14993 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
14995 * xterm.c (x_draw_glyph_string): Stop drawing the background of
14996 the next glyph string once past the overhang width.
14998 * nsterm.m (ns_draw_glyph_string): Likewise.
15000 * w32term.c (x_draw_glyph_string): Likewise.
15002 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
15004 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
15007 2008-11-14 Martin Rudalics <rudalics@gmx.at>
15009 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
15010 dedicated status of window before attempting to display another
15013 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
15015 * msdos.c (Fmsdos_long_file_names):
15016 (syms_of_msdos) <dos-unsupported-char-glyph>:
15017 * dosfns.c (Fint86): Fix typos in docstrings.
15019 2008-11-14 Eli Zaretskii <eliz@gnu.org>
15021 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
15023 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
15025 * puresize.h (BASE_PURESIZE): Increase to 1260000.
15027 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
15029 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
15031 * frame.h: Negative alpha means "don't touch".
15033 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
15035 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
15037 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
15041 * acldef.h: Remove files used only for systems no longer supported.
15043 * Makefile.in: Fix .o alphabetical ordering.
15044 (hftctl.o): Remove dependency, file removed.
15045 (keymap.o, print.o): Depend on charset.h.
15047 2008-11-10 Kenichi Handa <handa@m17n.org>
15049 * character.c (Fget_byte): Fix and make it faster for unibyte target.
15051 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
15053 * dired.c (file_name_completion): If completion_ignore_case is
15054 enabled, ignore case when checking completion-regexp-list.
15056 2008-11-08 Eli Zaretskii <eliz@gnu.org>
15058 * vm-limit.c (get_lim_data): Fix last change.
15060 2008-11-08 Kenichi Handa <handa@m17n.org>
15062 * character.c (Fget_byte): New function.
15063 (syms_of_character): Defsubr Fget_byte.
15065 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
15067 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
15068 cursor position is valid after scrolling.
15070 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
15072 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
15074 2008-11-06 Glenn Morris <rgm@gnu.org>
15076 * xterm.c (handle_one_xevent): Don't let popup menus cause
15077 mouse-autoselect-window related window switching. (Bug#1261)
15079 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
15081 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
15083 2008-11-04 Andreas Schwab <schwab@suse.de>
15085 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
15087 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
15089 * xfns.c (Fx_wm_set_size_hint): New function.
15091 2008-11-03 Martin Rudalics <rudalics@gmx.at>
15093 * textprop.c (Fprevious_single_char_property_change): Return 0
15094 when there's no change in a string. (Bug#1301)
15096 2008-11-02 Martin Rudalics <rudalics@gmx.at>
15098 * frame.c (do_switch_frame): New argument NORECORD passed to
15100 (Fselect_frame): New argument NORECORD passed to
15102 (Fset_frame_selected_window): New argument NORECORD passed to
15104 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
15105 in call of do_switch_frame.
15106 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
15107 Handle NORECORD argument in call of Fselect_frame.
15108 * lisp.h (do_switch_frame, Fselect_frame)
15109 (Fset_frame_selected_window): Adjust declarations.
15110 * window.c (select_frame_norecord): New function.
15111 (run_window_configuration_change_hook): Use it and call
15112 Fselect_frame with NORECORD set.
15113 (Fselect_window): Pass NORECORD to Fselect_frame.
15114 (Fset_window_configuration): Handle NORECORD argument in call of
15116 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
15117 Fset_frame_selected_window.
15118 * keyboard.c (command_loop_1): Handle NORECORD in call of
15119 Fselect_frame (currently ifdefd).
15121 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
15123 * emacs.c (USAGE2): Untabify.
15125 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
15127 * composite.c (fill_gstring_header): Fix copy/paste typo.
15129 2008-10-31 Martin Rudalics <rudalics@gmx.at>
15131 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
15132 (Fother_window): Rename argument and rewrite doc-string.
15133 (select_window_norecord): Fix return value. (Bug#1276)
15135 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
15137 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
15138 new frames overriding foreground for tooltips. Based on similar patch
15139 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
15141 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
15143 * emacs.c (Fdaemon_initialized): Initialize nfd.
15145 2008-10-29 Martin Rudalics <rudalics@gmx.at>
15147 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
15148 (Fwindow_text_height): Clarify doc-strings.
15149 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
15150 doc-string of window-scroll-functions.
15152 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
15154 * category.c (syms_of_category): Fix typo in docstring.
15156 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
15158 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
15159 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
15160 Fix typos in docstrings.
15162 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
15164 * emacs.c (daemon_pipe): Make non-static.
15165 (IS_DAEMON): Move definition ...
15166 * lisp.h (IS_DAEMON): ... here.
15167 (daemon_pipe): Declare.
15168 (is_daemon): Remove.
15169 * dispnew.c (init_display): Use IS_DAEMON.
15171 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
15173 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
15174 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
15176 * emacs.c (is_daemon): Remove.
15177 (main): Don't set is_daemon.
15178 (IS_DAEMON): New macro.
15179 (Fdaemonp, Fdaemon_initialized): Use it.
15180 (Fdaemon_initialized): Write a char into the pipe to make sure the
15182 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
15184 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
15186 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
15187 over-sized glyph, draw it with the default glyph width.
15189 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
15190 glyph, draw it with the default glyph width.
15192 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
15193 glyph, draw it with the default glyph width.
15195 * xdisp.c (try_scrolling): When computing the distance from the
15196 scroll margin to PT, try moving some distance past the window
15197 bottom before giving up.
15199 2008-10-27 Martin Rudalics <rudalics@gmx.at>
15201 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
15202 (Fset_window_buffer): Explain in doc-string that a window can be
15203 "strongly" dedicated to its buffer.
15205 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
15207 * emacs.c (daemon_name): New variable.
15208 (main): Deal with --daemon=SERVER_NAME.
15209 (Fdaemonp): Return a name if one was passed to --daemon.
15211 2008-10-26 Romain Francoise <romain@orebokech.com>
15213 * emacs.c (daemon_pipe): New variable.
15214 (main): Create a pipe before forking, make the parent exit only after
15215 the child has closed its end of the pipe. Move closing the
15217 (Fdaemon_initialized): ... here. New function.
15219 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
15221 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
15222 the previous unoptimized table.
15224 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
15225 the distinction between non-nil and non-t value of `dedicated'.
15227 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
15229 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
15230 read_char_minibuf_menu_text is large enough to hold the menu string.
15232 2008-10-25 Martin Rudalics <rudalics@gmx.at>
15234 * window.c (Fget_buffer_window, Fdelete_windows_on)
15235 (Freplace_buffer_in_windows): Make buffer argument optional and
15236 rename to buffer_or_name.
15238 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
15240 * xdisp.c (handle_single_display_spec, handle_display_prop):
15241 Undo 2005-05-16 change.
15242 (handle_stop): Pop iterator if it's loaded with an empty string.
15243 (get_overlay_strings_1): Don't save iterator if it's loaded with
15244 an empty string (bug#1201).
15246 2008-10-24 Kenichi Handa <handa@m17n.org>
15248 * ftfont.c (ftfont_otf_features): Fix previous change.
15249 (ftfont_otf_capability): Check FeatureList.FeatureCount before
15250 calling ftfont_otf_features.
15252 2008-10-24 Kenichi Handa <handa@m17n.org>
15254 * font.c (font_match_p): Fix for the case that a vector of
15255 characters is in script-representative-chars.
15257 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
15259 * dbusbind.c (xd_in_read_queued_messages): New variable.
15260 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
15261 (xd_read_queued_messages): Catch Qdbus_error from the macros.
15262 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
15265 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
15267 * s/sol2-10.h: New file.
15269 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
15271 * xdisp.c (fill_glyph_string): Fix typo in source (though the
15272 poor beast has survived 9+ years and the jump from xterm.c!).
15274 2008-10-23 Martin Rudalics <rudalics@gmx.at>
15276 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
15278 (Fbury_buffer): In doc-string say what happens to the buffer's window.
15280 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
15282 * character.c (syms_of_character) <script-representative-chars>:
15283 <unicode-category-table>: Doc fixes.
15285 2008-10-23 Noah Friedman <friedman@splode.com>
15287 * coding.c (make_conversion_work_buffer): Check that
15288 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
15289 Fget_buffer_create.
15291 2008-10-23 Kenichi Handa <handa@m17n.org>
15293 * font.c (font_add_log): Check the values of extra properties.
15295 2008-10-22 Martin Rudalics <rudalics@gmx.at>
15297 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
15299 (Fset_window_parameter): Use NILP.
15300 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
15301 (Frecenter): Use "selected" instead of "current" window in doc-strings.
15303 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
15305 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
15307 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
15309 * nsfns.m (ns_appkit_version): New function.
15310 (x-server-version): Use it.
15311 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
15312 (x-server-vendor): Don't check_ns().
15314 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
15316 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
15318 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
15319 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
15321 2008-10-22 Kenichi Handa <handa@m17n.org>
15323 * syntax.c (scan_words): Call word_boundary_p instead of comparing
15326 * category.c (word_boundary_p): Check scripts instead of charset.
15327 Handle nil value in word-separating-categories and
15328 word-combining-categories.
15329 (syms_of_category): Fix docstrings of word-separating-categories
15330 and word-combining-categories.
15332 2008-10-21 Eli Zaretskii <eliz@gnu.org>
15334 * coding.c (Fencode_coding_region, Fdecode_coding_region)
15335 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
15337 2008-10-21 Martin Rudalics <rudalics@gmx.at>
15339 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
15340 Rename arg "buffer" to "buffer_or_name".
15341 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
15343 (no_switch_window): Remove since the return value is not used.
15344 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
15345 Consider window as dedicated when Fwindow_dedicated_p returns a
15347 * lisp.h: Remove prototype for no_switch_window.
15349 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
15351 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
15352 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
15354 2008-10-21 Kenichi Handa <handa@m17n.org>
15356 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
15357 check Vlatin_extra_code_table.
15359 2008-10-20 Eli Zaretskii <eliz@gnu.org>
15361 * fileio.c (Fset_file_modes): Doc fix.
15363 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
15365 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
15368 2008-10-19 Martin Rudalics <rudalics@gmx.at>
15370 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
15371 Mention kill-buffer in doc-string.
15372 (Fset_window_buffer): Reinsert tem check removed in last commit.
15373 (Fenlarge_window, Fshrink_window): Have argument names and
15374 doc-string follow Elisp manual more closely.
15376 2008-10-18 Eli Zaretskii <eliz@gnu.org>
15378 * fileio.c (Fset_file_modes): Doc fix.
15380 2008-10-18 Martin Rudalics <rudalics@gmx.at>
15382 * window.c (Fwindow_width, Fset_window_start)
15383 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
15384 (Fdelete_windows_on, Freplace_buffer_in_windows):
15385 Make doc-strings follow code and Elisp manual more closely.
15386 (Fwindow_dedicated_p): Make window argument optional.
15387 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
15388 (Fset_window_buffer): Respect any non-nil dedicated value for
15389 window. Rename "buffer" argument to "buffer_or_name".
15391 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
15393 * m/sh3.h: New file, machine description for SuperH.
15395 2008-10-17 Martin Rudalics <rudalics@gmx.at>
15397 * window.c (Fsplit_window): Rename arg horflag to horizontal.
15399 2008-10-17 Kenichi Handa <handa@m17n.org>
15401 * ftfont.c (ftfont_otf_features): Fix indexing
15402 gsub_gpos->FeatureList.Feature. Check the validity of indices.
15404 2008-10-16 Magnus Henoch <mange@freemail.hu>
15406 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
15407 (Fdbus_call_method_asynchronously): Ditto.
15408 This change makes C-h f display the argument list.
15410 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
15412 * fileio.c (Fexpand_file_name): Doc fix.
15414 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
15415 of :foreground and :background equivalent to unspecified (20.x
15418 2008-10-15 Eli Zaretskii <eliz@gnu.org>
15420 * buffer.c (syms_of_buffer): Doc fix.
15422 2008-10-14 Kenichi Handa <handa@m17n.org>
15424 * font.c (font_clear_prop): When clearing font width, clear the
15425 average width field too.
15427 2008-10-12 Andreas Schwab <schwab@suse.de>
15429 * ftfont.c (ftfont_shape_by_flt): Make static.
15430 * ftfont.h (ftfont_shape_by_flt): Don't declare.
15432 * font.c: Don't include <m17n-flt.h>.
15434 2008-10-10 Eli Zaretskii <eliz@gnu.org>
15436 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
15438 2008-10-09 Eli Zaretskii <eliz@gnu.org>
15440 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
15443 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
15445 * dispnew.c (update_text_area): Avoid looping due to large glyph
15446 overhangs (bug#1070).
15448 2008-10-09 Kenichi Handa <handa@m17n.org>
15450 * fontset.c (face_for_char): If face->fontset is negative, just
15453 * font.c (font_delete_unmatched): Fix previous change.
15454 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
15456 2008-10-09 Martin Rudalics <rudalics@gmx.at>
15458 * frame.c (Fraise_frame): On text-only terminals select frame in
15459 order to make it visible. (Bug#1061)
15461 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
15463 * fontset.c (fontset_find_font): Check frame validity.
15465 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
15467 * gtkutil.c (xg_display_open): Reset default display if none exists.
15468 (xg_display_close): Allow Emacs to close all displays (bug#985).
15470 2008-10-06 Andreas Schwab <schwab@suse.de>
15472 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
15474 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
15476 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
15478 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
15480 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
15481 during initialization.
15483 2008-10-04 Eli Zaretskii <eliz@gnu.org>
15485 * xdisp.c (redisplay_internal): If frame switched, redisplay the
15486 whole thing on MSDOS frames as well as on a TTY.
15488 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
15490 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
15493 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
15494 as well as for TTY.
15496 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
15498 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
15499 MSDOS frames as well.
15501 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
15503 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
15505 * menu.c (find_and_return_menu_selection): Add cast.
15507 2008-10-03 Glenn Morris <rgm@gnu.org>
15509 * emacs.c (USAGE1): Add --daemon.
15511 2008-10-02 Eli Zaretskii <eliz@gnu.org>
15513 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
15514 100, so it's in percents as advertised.
15516 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
15518 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
15519 (ns_output.current_cursor, ns_output.desired_cursor)
15520 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
15521 (FRAME_NEW_CURSOR_COLOR): Remove.
15523 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
15524 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
15525 enumeration (HOLLOW_BOX_CURSOR, etc.).
15527 * nsterm.m (ns_frame_rehighlight): Remove commented code.
15528 (draw_window_cursor): Simplify code.
15529 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
15530 Don't change cursor type. In latter, call rehighlight instead of doing
15532 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
15533 Use core Emacs cursor types.
15535 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
15537 2008-10-02 Martin Rudalics <rudalics@gmx.at>
15539 * process.c (Faccept_process_output): Fix doc-string.
15541 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
15543 * gmalloc.c (__sbrk): Also define for uClibc.
15545 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
15548 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
15550 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
15552 (nsfont_open): Reenable the cache.
15554 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
15556 * font.c (font_matching_entity): Reflect ATTRS in font selection.
15557 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
15559 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
15561 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
15562 a suspended terminal.
15564 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
15566 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
15568 2008-09-30 Eli Zaretskii <eliz@gnu.org>
15570 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
15572 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
15574 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
15575 in a continued line coincides with a line beginning.
15577 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
15579 * nsfont.m (nsfont_trait_distance): Fix bug.
15580 (nsfont_list): Return a list rather than a vector (syncs with Handa
15581 changes of 2008-05-14).
15582 (nsfont_open): Improve logging.
15584 2008-09-29 Andreas Schwab <schwab@suse.de>
15586 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
15588 2008-09-28 Martin Rudalics <rudalics@gmx.at>
15590 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
15591 name as char-resolve-modifiers.
15592 Reported by: Markus Triska <markus.triska@gmx.at>
15594 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
15596 * dispnew.c (init_display): Return earlier when running as a daemon.
15598 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
15600 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
15602 2008-09-27 Eli Zaretskii <eliz@gnu.org>
15604 * composite.c (Fcomposition_get_gstring)
15605 (Fcompose_region_internal, Fcompose_string_internal)
15606 (Ffind_composition_internal): Doc fix.
15607 (syms_of_composite) <compose-chars-after-function>: Doc fix.
15608 (syms_of_composite) <auto-composition-function>: Doc fix.
15609 (syms_of_composite) <composition-function-table>: Doc fix.
15611 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
15613 * search.c (wordify): New argument for lax word-ends.
15614 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
15616 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
15618 * lisp.h (is_daemon): Declare.
15619 * dispnew.c (init_display): Do not try to initialize the terminal
15620 when running as a daemon.
15622 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
15624 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
15625 x_display_pixel_height.
15627 2008-09-22 Martin Rudalics <rudalics@gmx.at>
15629 * undo.c (record_point): Don't call Fundo_boundary for first
15632 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
15634 * emacs.c (Fdaemonp): Doc fix.
15636 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
15638 * emacs.c (main): Place #ifdef in the proper place.
15640 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
15642 * emacs.c (standard_args): Add --daemon.
15643 (main): Disconnect from the terminal when --daemon is passed.
15644 (is_daemon): New variable.
15645 (Fdaemonp): New function.
15646 (syms_of_emacs): Defsubr it.
15648 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
15650 * xdisp.c (get_next_display_element): Handle string display
15651 correctly when checking for the end of a box run.
15653 2008-09-20 Glenn Morris <rgm@gnu.org>
15655 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
15656 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
15657 (Frename_file): Avoid copying to trash if a rename involves
15658 a delete. (Bug#964).
15660 2008-09-20 Eli Zaretskii <eliz@gnu.org>
15662 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
15663 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
15664 frames as well as termcap frames.
15665 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
15668 2008-09-19 Eli Zaretskii <eliz@gnu.org>
15670 * process.c (procfs_system_process_attributes): Fix cmdline in
15671 case /proc/PID/cmdline is empty.
15673 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
15674 x_display_pixel_height.
15676 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
15678 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
15680 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
15681 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
15683 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
15685 * dispextern.h (struct it): Move line_wrap away from the middle of
15686 bitfields. Move voffset in struct iterator_stack_entry after the
15687 bitfields. Move tab_width near after another short.
15689 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
15691 * frame.h (struct frame): Move alpha from the middle of bitfields.
15693 * window.h (struct window): Move frozen_window_start_p after the
15694 rest of the bitfields to reduce padding.
15696 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
15698 * xterm.h (x_display_info): Remove `height' and `width' members.
15700 * nsterm.h (ns_display_info): Remove `height' and `width' members.
15702 * w32term.h (w32_display_info): Remove `height', `width',
15703 `height_in', and `width_in' members.
15705 * xterm.c (x_display_pixel_height, x_display_pixel_width):
15707 (x_calc_absolute_position): Use them.
15708 (x_term_init): Omit removed `height' and `width' members.
15710 * w32term.c (x_display_pixel_height, x_display_pixel_width):
15712 (w32_read_socket, x_calc_absolute_position): Use them.
15713 (w32_initialize_display_info, w32_term_init): Omit removed members
15714 of w32_display_info.
15716 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
15718 (ns_initialize_display_info): Omit removed members of ns_display_info.
15720 * xterm.c (x_display_pixel_height, x_display_pixel_width):
15722 (x_calc_absolute_position): Use them.
15723 (x_term_init): Omit removed `height' and `width' members.
15725 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
15727 * frame.c (x_fullscreen_adjust):
15728 * xmenu.c (menu_position_func): Use x_display_pixel_height and
15729 x_display_pixel_width.
15731 2008-09-18 Kenichi Handa <handa@m17n.org>
15733 * composite.c (fill_gstring_header): Don't check FROM and TO here.
15734 (composition_compute_stop_pos): Fix handling of static composition.
15735 (Fcomposition_get_gstring): Check FROM and TO at first.
15737 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
15739 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
15742 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
15744 * indent.c (Fvertical_motion): Use position reported by iterator
15745 instead of PT for determining screen motion (bug#943).
15747 2008-09-17 Romain Francoise <romain@orebokech.com>
15749 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
15751 2008-09-17 Kenichi Handa <handa@m17n.org>
15753 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
15755 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
15758 2008-09-16 Kenichi Handa <handa@m17n.org>
15760 * coding.c (make_conversion_work_buffer): Avoid calling
15761 Fget_buffer_create if it is not necessary.
15763 2008-09-15 Martin Rudalics <rudalics@gmx.at>
15765 * window.c (Fselect_window): Don't update window_select_count and
15766 use_time when norecord is not nil.
15768 2008-09-14 Kenichi Handa <handa@m17n.org>
15770 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
15773 2008-09-12 Kenichi Handa <handa@m17n.org>
15775 * indent.c (scan_for_column): Don't handle automatic composition
15776 if the current buffer is not associated with a window.
15778 * composite.c (composition_reseat_it): If the current buffer is
15779 not associated with a window, ignore the automatic composition.
15780 (find_automatic_composition): Likewise.
15782 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
15784 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
15785 (Fgpm_mouse_stop): Use it.
15786 * termhooks.h (close_gpm): Declare.
15787 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
15788 connection if Gpm_GetEvent fails.
15790 * window.c (set_window_buffer): Always preserve current-buffer.
15792 2008-09-12 Glenn Morris <rgm@gnu.org>
15794 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
15796 2008-09-11 Glenn Morris <rgm@gnu.org>
15798 * charset.c (charset-map-path): Doc fix.
15800 2008-09-10 Kenichi Handa <handa@m17n.org>
15802 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
15804 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
15805 compose a grapheme cluster with the preceding base glyph.
15807 * composite.c (composition_compute_stop_pos): Fix previous change.
15808 Reset cmp_it->id to -1 at first.
15810 2008-09-10 Glenn Morris <rgm@gnu.org>
15812 * Makefile.in (character.o, chartab.o): Fix config.h typo.
15814 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
15816 * keyboard.c (read_key_sequence): Reapply translation maps when
15817 switching keyboards.
15819 2008-09-09 Kenichi Handa <handa@m17n.org>
15821 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
15824 * composite.c (FORWARD_CHAR): Fix calculation
15825 of (POSITION).pos_byte.
15826 (composition_compute_stop_pos): Limit the search of composition to
15827 at most 500 characters ahead. If we reach the limit or find a
15828 newline, set cmp_it->ch to -2 and return 0.
15829 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
15831 2008-09-08 Kenichi Handa <handa@m17n.org>
15833 * indent.c (Fvertical_motion): Be sure to set
15834 it_overshoot_expected if it.cmp_it.id is non-negative.
15836 2008-09-07 Andreas Schwab <schwab@suse.de>
15838 * callproc.c (Fcall_process): Don't hold references to string data
15839 across garbage collection. Move initialisation of new_argv down
15840 to avoid compiler bug.
15842 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
15844 * process.c (Fsystem_process_attributes): Doc fix.
15846 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
15848 * callproc.c (Fcall_process): Canonicalize current directory name.
15850 * xdisp.c (move_it_to): When moving by vpos, ensure that the
15851 iterator advances to the next line if the current line ends in a
15854 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
15856 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
15857 member to point to cmp_from.
15859 * xdisp.c: Doc fix for references to gidx data member.
15861 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
15863 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
15865 2008-09-07 Kenichi Handa <handa@m17n.org>
15867 * composite.c (FORWARD_CHAR): Check STOP after
15868 incrementing (POSITION).pos.
15870 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
15872 * process.c (Fsystem_process_attributes): Doc fix.
15874 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
15876 * keyboard.c (Ftop_level): Doc fix.
15878 2008-09-06 Eli Zaretskii <eliz@gnu.org>
15880 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
15881 minibuffer, don't let lower part of menu invade the echo area.
15883 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
15884 "char *q" to access menu text and advance through it. Revert the
15885 change that displayed ">" instead of ASCII character 0x10.
15887 2008-09-05 Eli Zaretskii <eliz@gnu.org>
15889 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
15890 toggle boxes and radio buttons on MS-DOS as well.
15892 2008-09-05 Kenichi Handa <handa@m17n.org>
15894 * composite.c (autocmp_chars): Check lookback count.
15895 (composition_compute_stop_pos): Set cmp_it->lookback.
15896 (composition_reseat_it): Check lookback count.
15897 (struct position_record): New struct.
15898 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
15899 (find_automatic_composition): New function.
15900 (composition_adjust_point): Use find_automatic_composition.
15902 * dispextern.h (struct composition_it): New member lookback.
15904 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
15906 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
15907 if moving by a single line.
15909 2008-09-02 Andreas Schwab <schwab@suse.de>
15911 * xterm.c (x_delete_display): Fix merge error.
15913 * fileio.c (Fexpand_file_name): Remove unused variables.
15915 2008-09-02 Eli Zaretskii <eliz@gnu.org>
15917 * fileio.c (Fexpand_file_name): Copy argument `name' into local
15918 storage on all platforms, not just on DOS_NT.
15920 2008-09-02 Jason Rumney <jasonr@gnu.org>
15922 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
15923 Ensure mouse is not grabbed after menu is finished.
15925 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
15927 * xfaces.c (Finternal_set_alternative_font_family_alist)
15928 (Finternal_set_alternative_font_registry_alist): Properly copy
15929 entire alist structure.
15931 2008-09-01 Kenichi Handa <handa@m17n.org>
15933 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
15934 representative chars of the script is a vector.
15935 (ftfont_list): Handle the case where the representative chars of
15936 the script is a vector.
15938 * character.c (syms_of_character): Docstring of
15939 script-representative-chars fixed.
15941 2008-08-31 Eli Zaretskii <eliz@gnu.org>
15943 * msdos.c (BUILD_CHAR_GLYPH): New macro.
15944 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
15945 the menu. Allocate larger buffer for `text', to account for
15946 possible ^C characters.
15948 2008-08-31 Martin Rudalics <rudalics@gmx.at>
15950 * xdisp.c (prepare_menu_bars): Don't call
15951 Vwindow_size_change_functions with arg Qt.
15953 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
15955 * font.h (font_range):
15956 * fileio.c (report_file_error):
15957 * composite.c (composition_update_it): Yet another int/Lisp_Object
15960 2008-08-30 Glenn Morris <rgm@gnu.org>
15962 * data.c (Fmake_variable_frame_local): Doc fix.
15964 * frame.c (Fmodify_frame_parameters): Doc fix.
15966 2008-08-30 Eli Zaretskii <eliz@gnu.org>
15968 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
15969 needed by GetTokenInformation.
15970 (w32_system_process_attributes): Check return values of all system
15973 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
15974 only when the state changes.
15975 (IT_update_begin, IT_update_end): Add termscript trace.
15977 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
15978 clipboard is unavailable. Set dst to NULL if it doesn't point to
15980 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
15981 passing random values to xfree.
15983 * dispnew.c (init_display): Set `tty's association in frame's
15984 parameters alist to the name of the terminal device, if that is known.
15986 2008-08-29 Jason Rumney <jasonr@gnu.org>
15988 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
15990 2008-08-29 Eli Zaretskii <eliz@gnu.org>
15992 * composite.c (fill_gstring_body): Avoid compiler warnings.
15994 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
15995 LGLYPH_SET_CODE to avoid compiler warnings.
15997 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
15999 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
16001 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
16004 2008-08-29 Kenichi Handa <handa@m17n.org>
16006 * fileio.c (report_file_error): Don't downcase the first character
16007 of errstring if it is still unibyte.
16009 2008-08-29 Kenichi Handa <handa@m17n.org>
16011 These changes are to re-implement the automatic composition so
16012 that it doesn't use text properties.
16014 * Makefile.in (ftfont.o): Depend on composite.h.
16015 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
16017 * character.h (Vunicode_category_table): Extern it.
16019 * character.c (Vunicode_category_table): New variable.
16020 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
16022 * chartab.c (optimize_sub_char_table): Perform more greedy
16025 * composite.h (enum composition_method):
16026 Delete COMPOSITION_WITH_GLYPH_STRING.
16027 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
16028 (Vcomposition_function_table): Extern it.
16029 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
16030 (composition_gstring_put_cache, composition_gstring_from_id)
16031 (composition_gstring_p, composition_gstring_width)
16032 (composition_compute_stop_pos, composition_reseat_it)
16033 (composition_update_it, composition_adjust_point): Extern them.
16034 (Fcomposition_get_gstring): EXFUN it.
16036 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
16037 (Vcomposition_function_table)
16038 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
16039 (gstring_hash_table, gstring_work, gstring_work_headers):
16041 (gstring_lookup_cache, composition_gstring_put_cache)
16042 (composition_gstring_from_id, composition_gstring_p)
16043 (composition_gstring_width, fill_gstring_header)
16044 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
16045 (composition_reseat_it, composition_update_it)
16046 (composition_adjust_point, Fcomposition_get_gstring): New functions.
16047 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
16048 and gstring_work_headers. DEFVAR_LISP composition-function-table.
16049 Defsubr composition_get_gstring.
16051 * dispextern.h (struct glyph): New union u.cmp. Delete the member
16053 (struct glyph_string): Delete the member gidx. New members
16054 cmp_id, cmp_from, and cmp_to.
16055 (enum it_method): Delete GET_FROM_COMPOSITION.
16056 (struct composition_it): New struct.
16057 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
16058 Delete c, len, cmp_id, cmp_len in u.comp.
16060 * font.h (enum lgstring_indices): Delete it.
16061 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
16062 (enum lglyph_indices): Likewise.
16063 (font_range): Adjust extern.
16064 (font_fill_lglyph_metrics): Extern it.
16066 * font.c (QCf): New variable.
16067 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
16068 (font_prepare_composition): Delete this function.
16069 (font_range): Type and arguments changed.
16070 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
16071 (font_fill_lglyph_metrics): New function.
16072 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
16073 (syms_of_font): DEFSYM QCf. Delete defsubr for
16074 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
16075 Defsubr Sfont_shape_gstring.
16077 * fontset.h (font_for_char): Extern it.
16079 * fontset.c (font_for_char): New function.
16081 * ftfont.c: Include composite.h.
16082 (ftfont_resolve_generic_family): Add langset "en" to pattern.
16083 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
16085 * indent.c: Include composite.h and dispextern.h.
16086 (check_composition): Delete this function.
16087 (scan_for_column): Handle composition by
16088 composition_compute_stop_pos, composition_reseat_it, and
16089 composition_update_it.
16090 (compute_motion): Likewise.
16091 (Fvertical_motion): Fix checking of composition.
16093 * keyboard.c (adjust_point_for_property): Check composition by
16094 composition_adjust_point.
16096 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
16097 struct glyph_string.
16099 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
16100 (append_composite_glyph): Adjust for the change of struct it and
16102 (produce_composite_glyph): Likewise.
16104 * w32term.c (x_draw_composite_glyph_string_foreground):
16105 Adjust for the change of struct glyph_string.
16106 (x_draw_glyph_string): Likewise.
16108 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
16109 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
16111 * xdisp.c: Include font.h.
16112 (it_props): Delete the entry for Qauto_composed.
16113 (init_iterator): Initialize it->cmp_it.id to -1.
16114 (compute_stop_pos): Call composition_compute_stop_pos.
16115 (face_before_or_after_it_pos): Adjust for the change of struct it.
16116 (handle_auto_composed_prop): Delete it.
16117 (handle_composition_prop): Handle only static composition.
16118 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
16119 from xassert. Initialize it->cmp_it.stop_pos.
16120 (push_it): Adjust for the change of struct it.
16121 (pop_it): Likewise.
16122 (get_next_element): Delete next_element_from_composition.
16123 (CHAR_COMPOSED_P): New macro.
16124 (get_next_display_element): For automatic composition, get a face
16125 from the font in the glyph-string.
16126 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
16127 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
16128 (next_element_from_string): Check if the character at the current
16129 position is composed by CHAR_COMPOSED_P.
16130 (next_element_from_buffer): Likewise.
16131 (next_element_from_composition): Adjust for the change of struct it.
16133 (dump_glyph): Adjust for the change of struct glyph.
16134 (fill_composite_glyph_string): Adjust for the change of struct
16135 it and struct glyph. Don't handle automatic composition here.
16136 (fill_gstring_glyph_string): New function.
16137 (x_get_glyph_overhangs): Handle automatic composition.
16138 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
16139 (BUILD_GSTRING_GLYPH_STRING): New macro.
16140 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
16141 automatic composition.
16142 (append_composite_glyph): Adjust for the change of struct it and
16144 (x_produce_glyphs): Adjust for the change of struct it.
16146 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
16147 the change of struct glyph_string.
16148 (x_draw_glyph_string): Likewise.
16150 2008-08-29 Glenn Morris <rgm@gnu.org>
16152 * buffer.c (word-wrap): Doc fix.
16153 * xdisp.c (truncate-partial-width-windows): Doc fix.
16154 Increase default to 50.
16156 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
16158 * xdisp.c (update_tool_bar_unwind): New function.
16159 (update_tool_bar): Temporarily set selected frame before building
16162 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
16164 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
16165 snprintf, respectively.
16166 (xd_append_arg): Convert strings with Fstring_make_unibyte.
16168 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
16170 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
16171 LDFLAGS to GNUstep CC invocation.
16173 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
16175 * indent.c (Fvertical_motion): Revert last change. Handle the
16176 general case where we are moving forward, and PT spans multiple
16179 * eval.c (find_handler_clause): Temporarily increase
16180 max-lisp-eval-depth while printing the backtrace buffer, to
16181 guarantee that help-mode code can run.
16183 2008-08-27 Eli Zaretskii <eliz@gnu.org>
16185 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
16187 (IT_set_frame_parameters): Don't swap foreground and background
16188 colors if `(reverse . t)' is present in the frame properties.
16189 (internal_terminal_init): Call init_frame_faces only for the
16192 2008-08-27 Andreas Schwab <schwab@suse.de>
16194 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
16196 2008-08-27 Andreas Schwab <schwab@suse.de>
16198 * search.c (search_buffer): Set char_base to zero only at the end.
16200 2008-08-27 Kenichi Handa <handa@m17n.org>
16202 * fileio.c (report_file_error): Fix handling of multibyte error string.
16204 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
16206 * xterm.c (x_term_init): Temporarily hide the partially
16207 initialized terminal while calling vendor-specific-keysyms.
16209 2008-08-26 Eli Zaretskii <eliz@gnu.org>
16211 * msdos.c (internal_terminal_init): Most initializations done only
16212 once, especially initial_screen_colors[] and termscript open.
16214 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
16216 * eval.c (Fcondition_case): Doc fix.
16218 * widgetprv.h (EmacsFramePart): Change font member to the new font
16221 * widget.c: Include character.h and font.h for XSETFONT.
16222 (setup_frame_gcs): Compute X font id from font struct, just once.
16224 2008-08-26 Eli Zaretskii <eliz@gnu.org>
16226 * term.c (get_named_tty): Fix last change.
16228 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
16230 * indent.c (Fvertical_motion): If moving forward starting from a
16231 multi-line string, move the iterator to the last line of that string.
16233 2008-08-25 Eli Zaretskii <eliz@gnu.org>
16235 * frame.c (do_switch_frame): Mark previously displayed frame as
16236 obscured for FRAME_MSDOS_P frames as well.
16238 2008-08-24 Eli Zaretskii <eliz@gnu.org>
16240 * frame.c (make_terminal_frame): Initialize f->terminal,
16241 f->terminal->reference_count, and scroll bars on MS-DOS as well.
16242 Set the top frame to newly created frame.
16243 (Fmake_terminal_frame): Reuse the_only_display_info.
16245 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
16246 estimating available memory.
16248 2008-08-23 David Reitter <david.reitter@gmail.com>
16250 * nsterm.m (ns_draw_window_cursor): Don't call
16251 NSDisableScreenUpdates and NSEnableScreenUpdates on
16252 non-NS_IMPL_COCOA systems.
16254 2008-08-23 Andreas Schwab <schwab@suse.de>
16256 * process.c (procfs_system_process_attributes): Fix use of
16257 uninitialized variables.
16259 2008-08-23 Eli Zaretskii <eliz@gnu.org>
16261 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
16263 * dispnew.c (init_display): Remove MS-DOS specific conditions for
16264 calling tty-set-up-initial-frame-faces.
16266 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
16267 Allow MSDOS frames along with X frames.
16269 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
16270 addition to output_termcap.
16272 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
16274 * termchar.h (FRAME_TTY): Support output_msdos_raw.
16275 (struct tty_display_info) [MSDOS]: Add fields related to mouse
16278 * process.c [!subprocesses]: Define QCname.
16279 (syms_of_process): Intern and staticpro it.
16281 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
16282 Adjust for changes in encoding/decoding routines.
16283 Use encode_coding_object and decode_coding_object instead of
16284 encode_coding and decode_coding.
16286 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
16288 * dosfns.c: Include frame.h before termhooks.h.
16289 (dos_cleanup): Use CURTTY ()->termscript instead of a global
16290 variable termscript.
16292 * s/msdos.h (USER_FULL_NAME): Define.
16293 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
16295 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
16296 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
16299 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
16300 SELECTED_FRAME as additional (1st) argument.
16301 (tty_read_avail_input): Handle output_msdos_raw in
16302 addition to output_termcap.
16304 * msdos.c: Include frame.h before termhooks.h.
16305 (mouse_on, mouse_off, mouse_moveto, mouse_init)
16306 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
16307 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
16308 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
16309 (IT_set_terminal_modes, IT_reset_terminal_modes)
16310 (IT_set_frame_parameters): Use tty->termscript instead of a global
16311 variable termscript.
16312 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
16313 global variable terminal_coding. Don't refer to
16314 Vnonascii_translation_table.
16315 (internal_terminal_init): Set Vwindow_system in current_kboard.
16316 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
16317 Announce date and time of session start, if termscript is open.
16318 Don't zero out the_only_display_info (it is done in
16319 term.c:init_tty). Open termscript only of not already open.
16320 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
16321 here instead of dos_ttraw. Don't initialize display if this is an
16322 initial tty. Don't set FRAME_FONT.
16323 (Vwindow_system_version): Bump to 23.
16324 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
16325 is available, set up mouse_position_hook.
16326 (dos_ttraw, IT_set_terminal_modes): If called with initial
16327 terminal, do nothing.
16328 (IT_set_frame_parameters): Handle the Qtty_type frame
16329 parameter by calling internal_terminal_init.
16330 (dos_set_window_size, show_mouse_face)
16331 (clear_mouse_face, IT_note_mode_line_highlight)
16332 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
16333 (dos_rawgetc): Use tty_display_info instead of x_display_info.
16334 (initialize_msdos_display): New function.
16335 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
16336 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
16337 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
16338 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
16339 Accept additional argument: a pointer to a frame. Update all callers.
16340 (request_sigio, unrequest_sigio): Don't define, now defined on
16342 (IT_write_glyphs): Rewrite to use encode_terminal_code.
16344 * term.c [MSDOS]: Include msdos.h.
16345 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
16346 conditional to DOS_NT. Allow only one call to this function in a
16347 session. Don't allocate a new struct tty_display_info; instead,
16348 reuse the_only_display_info. Call get_tty_size to get screen
16349 dimensions. Call init_baud_rate to set bad_rate.
16350 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
16351 (Fsuspend_tty) [MSDOS]: Don't close input and output.
16352 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
16353 (get_tty_terminal, get_named_tty, Ftty_type)
16354 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
16356 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
16357 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
16358 only when subprocesses are supported.
16360 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
16362 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
16365 * msdos.h: Remove definition of struct x_display_info and struct
16367 (FRAME_FONT): Use output_data.tty.
16368 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
16369 (struct x_display_info): Rename from display_info. Update all users in
16371 (struct x_output): Remove background_pixel and foreground_pixel.
16372 (the_only_display_info): Rename from the_only_x_display.
16373 (dos_ttraw): Update prototype.
16375 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
16376 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
16378 2008-08-23 Jason Rumney <jasonr@gnu.org>
16380 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
16381 (fn_TIFFSetDirectory): New library function used.
16382 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
16383 (tiff_load): Use :index to select among multiple images. Set count
16384 property when multiple images exist.
16385 (gif_format): Use :index, not :image.
16387 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
16389 * xdisp.c (try_scrolling): Check INT_MAX instead of
16390 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
16393 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
16395 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
16397 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
16399 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
16400 GNUstep library location.
16402 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
16404 * xfaces.c (x_update_menu_appearance): Check validity of menu font
16407 * puresize.h (BASE_PURESIZE): Increase to 1250000.
16409 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
16411 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
16412 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
16413 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
16414 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
16415 (EmacsApp-cursor_blink_handler): Remove declaration.
16416 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
16417 match 01 Feb 2008 changes in xterm.c.
16418 (ns_read_socket): Add cast to avoid warning.
16419 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
16422 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
16424 * xselect.c (x_get_foreign_selection): Return nil if desired
16425 selection could not be obtained, instead of signalling an error.
16427 2008-08-20 David Reitter <david.reitter@gmail.com>
16429 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
16430 * nsterm.m: Remove ns-specific code for cursor blinking.
16431 (ns_draw_window_cursor): Clear cursor properly rather than
16432 redrawing the area. Respect width of bar cursors.
16433 These changes enable the use of generic blink-cursor-mode and
16434 generic cursor types in NS and support smooth cursor movements (do
16435 not blink off after command).
16436 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
16439 2008-08-19 Kenichi Handa <handa@m17n.org>
16441 * font.c (Vfont_log_deferred): New variable.
16442 (font_add_log): Check Vfont_log_deferred.
16443 (font_deferred_log): New function.
16445 * font.h (font_deferred_log): Extern it.
16447 * fontset.c (reorder_font_vector): Use encoding charset of fonts
16449 (face_for_char): Use deferred log.
16451 2008-08-18 Kenichi Handa <handa@m17n.org>
16453 * fontset.c (face_for_char): Add font log.
16455 * font.c (font_add_log): Add the font properties :script, :lang,
16456 and :otf in the log.
16458 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
16460 * xdisp.c: Remove dead code.
16461 (handle_invisible_prop, next_overlay_string): Defer call to
16462 setup_for_ellipsis.
16463 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
16465 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
16467 * xfaces.c (lookup_derived_face): Properly handle possible zero
16468 return value of get_lface_attributes.
16469 (merge_faces): Don't tell lookup_derived_face to signal an error
16470 if face is not found.
16472 * dired.c (Fdirectory_files): Doc fix.
16474 * process.c (make_process): Initialize kill_without_query struct
16477 2008-08-15 Eli Zaretskii <eliz@gnu.org>
16479 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
16480 Alternative calculation of totphys for Visual Studio 6.
16482 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
16484 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
16485 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
16487 (stat): Only root directory passed to GetDriveType. Allow RAM
16488 disk as well as local fixed disk when w32-get-true-file-attributes
16490 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
16491 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
16492 (w32_cached_id, w32_add_to_cache): New functions.
16493 (get_name_and_id): Look account names in the cache before calling
16494 lookup_account_sid.
16495 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
16496 New initialization flags.
16497 (globals_of_w32): Initialize them to zero.
16498 (w32_system_process_attributes): Use w32_cached_id and
16501 2008-08-14 Lawrence Mitchell <wence@gmx.li>
16503 * lread.c (Fread_char, Fread_char_exclusive): If no character
16504 event is read before timeout is reached, return nil, rather than
16505 converting to a number.
16507 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
16509 * fns.c (use_dialog_box): Doc fix.
16511 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
16514 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
16516 * frame.c (Qns_parse_geometry): New var.
16517 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
16519 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
16521 * xdisp.c (x_produce_glyphs): Handle the case when font has no
16522 space character in calculating tabs.
16524 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
16526 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
16528 2008-08-10 Glenn Morris <rgm@gnu.org>
16530 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
16531 silence gcc "limited range of data type" warnings in some
16532 make_fixnum_or_float calls.
16534 2008-08-09 Eli Zaretskii <eliz@gnu.org>
16536 * w32.c (w32_system_process_attributes): If the process does not
16539 * w32.c: Include thelp32.h, psapi.h and coding.h.
16540 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
16542 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
16543 (Process32Next_Proc): New typedefs.
16544 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
16545 (g_b_init_process32_next, g_b_init_open_thread_token)
16546 (g_b_init_impersonate_self, g_b_init_revert_to_self)
16547 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
16548 (g_b_init_get_process_working_set_size)
16549 (g_b_init_global_memory_status_ex): New static variables.
16550 (globals_of_w32): Initialize them.
16551 (create_toolhelp32_snapshot, process32_first, process32_next)
16552 (open_thread_token, impersonate_self, revert_to_self)
16553 (get_process_memory_info, get_process_working_set_size)
16554 (global_memory_status, global_memory_status_ex): New wrapper
16556 (w32_list_system_processes, w32_system_process_attributes)
16557 (enable_privilege, restore_privilege, ltime, process_times):
16559 (convert_time_raw): New function.
16560 (convert_time): Remove conversion of FILETIME into time in 100
16561 nsec units, call convert_time_raw instead.
16563 * process.h (w32_list_system_processes, w32_system_process_attributes):
16565 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
16566 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
16567 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
16568 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
16570 * process.c (Fsystem_process_attributes): Doc fix.
16572 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
16574 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
16575 a continued multi-char glyph; if so, advance to the actual glyph.
16577 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
16579 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
16581 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
16583 * config.in: Regenerate.
16585 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
16587 * xdisp.c (redisplay_window): Revert last change.
16588 (try_window): Check bottom scroll margin too.
16590 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
16592 * config.in: Regenerate.
16594 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
16595 -list-load-path-shadows'.
16596 (nsgui.h): Reduce number of things depending on it.
16598 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
16600 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
16601 instead of window-end which does the wrong thing at eob.
16602 (try_cursor_movement): Minor optimization.
16603 (redisplay_window): If scroll margin is defined, don't assume
16604 window doesn't need scrolling.
16606 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
16608 * config.in: Regenerate.
16610 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
16611 (mostlyclean): Don't delete *.d under NS.
16613 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
16615 2008-08-06 Kenichi Handa <handa@m17n.org>
16617 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
16619 2008-08-06 Andreas Schwab <schwab@suse.de>
16621 * config.in: Regenerate.
16623 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
16625 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
16626 forcing a window start.
16628 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
16629 (auto_save_1): Update modtime when auto-save-list-file-name is on.
16631 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
16633 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
16636 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
16638 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
16639 <scroll-down-aggressively, before-change-functions>:
16640 <after-change-functions>: Reflow docstrings.
16642 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
16643 Ken Raeburn <raeburn@gnu.org>
16645 Dock menu customization, based on a patch by Ken Raeburn, plus some
16647 * nsmenu.m (dockMenu): New variable.
16648 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
16650 * nsterm.h (dockMenu): Declare.
16652 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
16653 (ns_term_init): Initialize dockMenu.
16654 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
16655 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
16658 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
16660 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
16662 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
16664 * config.in: Regenerate.
16666 2008-08-04 Seiji Zenitani <zenitani@mac.com>
16668 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
16670 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
16672 * nsterm.h (find_and_call_menu_selection): Fix prototype.
16674 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
16676 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
16678 * keyboard.h: Comment an #endif.
16680 * lisp.h (have_menus_p): Adjust comment.
16682 * menu.c (find_and_return_menu_selection): Fix comparison with
16685 * nsmenu.m (popup_activated_flag): New variable.
16686 (popup_activated): New function.
16687 (menu-or-popup-active-p): New exported lisp definition.
16688 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
16690 (ns_popup_dialog): Set popup_activated_flag.
16692 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
16693 version for GNUstep (handled by conditional typedef in nsterm.m).
16694 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
16697 * process.c (init_process): Use DARWIN_OS, not DARWIN.
16699 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
16701 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
16703 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
16704 shortcircuit if popup_activated like GTK and X toolkit.
16706 * m/inter386.h: Change DARWIN to DARWIN_OS.
16708 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
16709 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
16710 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood.
16711 Expand comment on NO_SOCK_SIGIO.
16713 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
16715 * nsterm.m (windowDidResize): Remove stopModal call.
16717 2008-08-03 Andreas Schwab <schwab@suse.de>
16719 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
16720 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
16722 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
16724 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
16725 Don't use uninitialized pointer variable when using getrlimit.
16727 2008-08-02 Jason Rumney <jasonr@gnu.org>
16729 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
16731 2008-08-02 Eli Zaretskii <eliz@gnu.org>
16733 * alloc.c (NSTATICS): Bump to 0x640.
16735 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
16737 * lisp.h: Add prototype for directory_files_internal.
16739 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
16741 (syms_of_process): Defsubr them. Add initializations for various
16742 Q* symbols used in procfs_system_process_attributes.
16743 (procfs_list_system_processes, procfs_system_process_attributes)
16744 [HAVE_PROCFS]: New functions.
16745 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
16746 (procfs_get_total_memory): New functions.
16748 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
16750 * xfaces.c (Fx_load_color_file): Fix previous change;
16751 it is #ifdef WINDOWSNT, not WINDOWS_NT.
16753 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
16755 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
16757 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16759 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
16761 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
16763 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
16765 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
16766 define NSApplicationDelegateReplySuccess.
16767 (EmacsView -converstationIdentifier): Use long instead of
16768 NSInteger for GNUstep, since it doesn't have NSInteger.
16770 * xmenu.c: Revert last change.
16772 * keyboard.h: Fix last change.
16774 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
16776 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
16779 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16781 Warning clearing and clean-up in NS port.
16782 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
16784 * nsgui.h (FACE_DEFAULT): Remove, unused.
16785 (XGCValues): Change colors to unsigned long.
16786 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
16788 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
16789 (ns_list_fonts): Remove, unused.
16790 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
16791 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
16792 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
16793 (nsfont_draw): Compare face colors to 0, not nil.
16794 * nsmenu.m (struct widget_value): Drop unneeded declaration.
16795 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
16796 (-addSubmenuWithTitle:): Use NSMenuItem class.
16797 (ns_popup_menu): Use NO, not NULL, for enabled setting.
16798 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
16799 (ns_clip_to_row): Make gc arg a BOOL.
16800 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
16801 ns_clip_to_row() call.
16802 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
16803 used). Cast FRAME_FONT assignments.
16804 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
16805 (ns_string_to_lispmod): Change arg to const char.
16806 (ns_term_init): Use NSMenuItem class.
16807 (EmacsApp -openFile:): Move to different section of file.
16808 (EmacsApp -application:openFiles:): Don't return a value, call
16809 -replyToOpenOrPrint:.
16810 (EmacsView -keyDown:): Fix up cast.
16811 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
16812 (EmacsView -menuDown:): Cast tag in call to
16813 find_and_call_menu_selection().
16814 (ns_list_fonts): Remove, unused.
16815 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
16816 (ns_fontname_to_xlfd): Make static.
16817 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
16818 Remove prototypes (now in keyboard.h).
16819 (next_menubar_widget_id): Remove, unused.
16820 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
16821 Remove prototypes (now in keyboard.h).
16822 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
16824 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
16826 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
16827 (floatfns.o): Depend on syssignal.h.
16828 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
16830 * systty.h: Fix previous change that removed BSD_TERMIOS.
16831 Add comments to #ifdefs.
16833 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16835 * w32fns.c (w32-load-color-file): Remove.
16836 (x-open-connection): Use renamed Fx_load_color_file.
16837 * xfaces.c (x-load-color-file): Add.
16838 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
16840 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
16842 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
16844 * dbusbind.c (Fdbus_call_method_asynchronously)
16845 (Fdbus_method_error_internal): New defuns.
16846 (xd_read_message): Handle also reply messages.
16847 (Vdbus_registered_functions_table): Extend docstring.
16849 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
16851 * keyboard.c (gobble_input): Fix previous change.
16853 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
16884 * m/vax.h: Remove VMS support.
16890 * ioctl.h: Remove file.
16892 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
16894 * s/ms-w32.h (MULTI_KBOARD): Remove.
16909 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
16910 * config.in: Regenerate.
16912 2008-07-30 Jason Rumney <jasonr@gnu.org>
16914 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
16916 * w32font.c (w32font_encode_char): Leave as unicode if in range.
16917 (w32font_open_internal): Get unicode version of textmetrics.
16918 Don't enable or disable glyph indices here.
16919 (w32font_open): Disable use of glyph indices.
16921 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
16923 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
16925 * minibuf.c (Vread_buffer_function): Doc fix.
16927 2008-07-30 John Paul Wallington <jpw@pobox.com>
16929 * minibuf.c (read_buffer_completion_ignore_case): New var.
16930 (Fread_buffer): Use it.
16932 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
16934 * systty.h (sensemode): Remove empty #if. Remove reference to
16935 BSD_TERMIOS, unused.
16937 * sysdep.c: Remove reference to DGUX.
16938 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
16940 * config.in: Regenerate.
16942 2008-07-30 Jason Rumney <jasonr@gnu.org>
16944 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
16946 2008-07-29 Jason Rumney <jasonr@gnu.org>
16948 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
16950 (uniscribe_encode_char): Always use uniscribe.
16951 Avoid using context if cache is populated.
16953 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
16955 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
16958 * gtkutil.c (menu_nav_ended): Remove.
16959 (create_menus): Remove signal connect for menu_nav_ended.
16961 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
16963 * xdisp.c (redisplay_window): Check return value of
16964 compute_window_start_on_continuation_line before forcing a window
16967 2008-07-28 Jason Rumney <jasonr@gnu.org>
16969 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
16971 * w32term.c (w32_enable_unicode_output, cleartype_active):
16972 Remove obsolete display options.
16973 (x_draw_glyph_string_background): Don't use old cleartype_active
16975 (w32_initialize): Remove cleartype_active initialization.
16976 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
16978 2008-07-28 Andreas Schwab <schwab@suse.de>
16980 * lisp.h (init_weak_hash_tables, syms_of_font)
16981 (xd_read_queued_messages, syms_of_dbusbind): Declare.
16982 (remove_hash_entry): Don't declare.
16983 * eval.c (maybe_call_debugger): Make static and move before use.
16984 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
16985 * xdisp.c: Include "gtkutil.h" if USE_GTK.
16986 * xterm.h (x_set_frame_alpha): Declare.
16988 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
16990 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
16991 (create_menus): Connect selection-done to menu_nav_ended.
16993 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
16995 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
16996 Set Vx_resource_name to a fallback. Replace read of 'buffered'
16997 parameter with read of 'alpha' one.
16998 (Qns_frame_parameter): Remove.
16999 * nsselect.m (selection-coding-system)
17000 (next-selection-coding-system, Vselection_coding_system)
17001 (Vnext_selection_coding_system): Drop.
17003 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
17005 * nsfns.m (do-applescript, do_applescript): Rename to
17006 ns-do-applescript, ns_do_applescript, and move within file.
17008 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
17010 Remove support for Mac Carbon.
17018 * mac.c: Remove file.
17049 * Makefile.in: Remove code for Carbon.
17051 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17053 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
17055 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17057 * macterm.h (kCGBitmapByteOrder32Host): New define for
17058 non-universal SDKs.
17060 * image.c (mac_create_cg_image_from_image, image_load_image_io)
17061 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
17063 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
17064 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
17066 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
17068 * w32inevt.c: Include dispextern.h.
17070 2008-07-26 Andreas Schwab <schwab@suse.de>
17072 * print.c (print_object): Fix off-by-one in last change.
17074 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
17076 * term.c (syms_of_term): Don't initialize default_orig_pair,
17077 default_set_foreground and default_set_background on Windows.
17079 2008-07-25 Jason Rumney <jasonr@gnu.org>
17081 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
17082 ScriptItemize. Clean up return value checking. Remove unused
17084 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
17087 * w32font.c (w32font_has_char): Handle the case where we can't
17088 determine the script for a character.
17090 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
17092 * term.c (syms_of_term): Initialize default_orig_pair,
17093 default_set_foreground, and default_set_background.
17095 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
17097 (getloadavg): Callers changed.
17099 * image.c (svg_load_image): Fix last change.
17100 (svg_load_image): Use rsvg_handle_get_dimensions to check that
17101 image size is valid. Use g_object_unref instead of deprecated
17102 rsvg_handle_free to free rsvg handle.
17103 (x_from_xcolors): Don't initialize pixmap (silence compiler).
17105 2008-07-25 Jason Rumney <jasonr@gnu.org>
17107 * w32font.c (w32font_encode_char): Encode characters outside BMP as
17108 surrogates before looking up glyph index.
17109 (w32font_text_extents): Encode as surrogates if falling back to
17110 functions that need UTF-16 wide chars.
17112 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
17113 BMP as surrogates before looking up glyph index.
17115 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
17117 * image.c (svg_load_image): Check for failure in return value of
17118 rsvg_handle_get_pixbuf. Free rsvg handle when done.
17120 2008-07-25 Jason Rumney <jasonr@gnu.org>
17122 * w32font.c (Fx_select_font): Reverse sense of second arg.
17124 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
17126 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
17127 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
17129 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
17130 (PURESIZE): Use it.
17132 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
17134 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
17135 * m/alpha.h (TEXT_END):
17136 * m/ibmrs6000.h (TEXT_END):
17137 * m/macppc.h (TEXT_END):
17138 * s/darwin.h (TEXT_END):
17139 * s/msdos.h (TEXT_END): Remove, unused.
17140 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
17141 * s/cygwin.h: Remove comment.
17143 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
17144 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
17145 * m/intel386.h (DOT_GLOBAL_START):
17146 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
17147 (USG): Remove, file not used on USG platforms.
17149 * Makefile.in (HAVE_X11): Remove empty #else.
17151 2008-07-24 Andreas Schwab <schwab@suse.de>
17153 * fileio.c (Finsert_file_contents): Properly adjust undo list
17154 after format conversion.
17156 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
17158 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
17159 (menu_nav_ended): Remove.
17160 (create_menus): Remove signal connect for menu_nav_ended.
17161 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
17163 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
17165 2008-07-23 Jason Rumney <jasonr@gnu.org>
17167 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
17169 (w32font_open): Set font type to gdi.
17171 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
17173 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
17175 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
17176 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
17178 * unexec.c (ADDR_CORRECT): Define unconditionally.
17180 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
17182 * unexec.c: Remove code depending on !COFF and USG, the file is
17183 not used for such systems.
17185 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
17186 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
17187 (LD_SWITCH_SYSTEM_1): Remove, update users.
17189 * s/darwin.h (DATA_END):
17190 * m/intel386.h (DATA_END):
17191 * m/ibmrs6000.h (DATA_END):
17192 * m/alpha.h (DATA_END): Remove, unused.
17194 * config.in: Regenerate.
17195 * s/ms-w32.h (subprocesses): Define unconditionally.
17196 * s/template.h (subprocesses): Update comment.
17197 * s/vms.h (subprocesses):
17198 * s/usg5-4.h (subprocesses):
17199 * s/hpux10-20.h (subprocesses):
17200 * s/gnu-linux.h (subprocesses):
17201 * s/cygwin.h (subprocesses):
17202 * s/bsd-common.h (subprocesses):
17203 * s/aix4-2.h (subprocesses):
17204 * s/darwin.h (subprocesses): Do not define, defined by default now.
17206 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
17207 Remove all references.
17208 (temacs): Add GNUstep specific ld flags.
17210 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
17211 similarly to what X does.
17213 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
17215 * nsfns.m (x-list-fonts): Remove.
17216 (syms_of_nsfns): Drop the x-list-fonts declaration.
17217 * nsterm.m: Get rid of remaining "//" comments.
17219 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
17221 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
17223 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
17224 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
17225 (Fns_own_selection_internal, Fx_disown_selection_internal)
17226 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
17228 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
17229 ... */' style of docstrings. Doc fixes.
17231 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
17233 * terminfo.c (UP, BC, PC): Undo previous change.
17235 * nsfns.m: Rename ns prefixed functions/variables to the
17236 corresponding x versions. Update references.
17238 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
17240 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
17242 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
17244 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
17245 Remove forwarding functions.
17246 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
17248 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
17250 (ns_frame_parm_handlers): Use the new names.
17251 (syms_of_nsfns): Move to the end of file.
17253 * nsterm.m (syms_of_nsterm): Move to the end of file.
17255 * dispnew.c (init_display): Remove code for X10.
17257 2008-07-22 Jason Rumney <jasonr@gnu.org>
17259 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
17262 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
17264 * nsterm.m (syms_of_nsterm): Remove debugging println.
17266 2008-07-22 David Reitter <david.reitter@gmail.com>
17268 * nsfns.m (do_applescript, F_do_applescript): NS version of the
17269 Carbon implementation of the same functionality: execute arbitrary
17272 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
17274 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
17275 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
17276 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
17277 (Fx_display_mm_height, Fx_display_mm_width)
17278 (Fx_display_backing_store, Fx_display_visual_class)
17279 (Fx_display_save_under, Fx_open_connection)
17280 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
17281 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
17282 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
17283 (Fx_display_pixel_width, Fx_display_pixel_height)
17284 (Fx_display_usable_bounds, Fx_display_planes)
17285 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
17286 ... */' style of docstrings.
17288 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
17290 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
17293 * m/iris4d.h (mips): Do not define.
17294 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
17296 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
17302 * nsterm.m: Rename ns prefixed functions/variables to the
17303 corresponding x versions. Update references.
17305 * m/ibms390x.h (NO_REMAP): Do not undefine.
17307 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
17309 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
17311 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
17312 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
17313 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
17314 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
17315 (Fns_display_mm_height, Fns_display_mm_width)
17316 (Fns_display_backing_store, Fns_display_visual_class)
17317 (Fns_display_save_under, Fns_open_connection)
17318 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
17319 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
17320 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
17321 (Fns_display_pixel_width, Fns_display_pixel_height)
17322 (Fns_display_usable_bounds, Fx_display_planes)
17323 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
17325 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
17327 * print.c (print_object): Check print_depth before searching for
17330 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
17332 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
17335 2008-07-21 Kenichi Handa <handa@m17n.org>
17337 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
17339 2008-07-20 Andreas Schwab <schwab@suse.de>
17341 * syntax.c (find_start_pos, find_start_value)
17342 (find_start_value_byte, find_start_begv, find_defun_start)
17343 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
17345 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
17347 * s/sol2-3.h: Insert contents of s/sol2.h.
17348 (LD_SWITCH_SYSTEM): Remove redundant definition.
17349 * s/sol2.h: Remove, unused.
17351 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
17353 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
17355 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
17357 * Makefile.in (ns_appdir): Fix typo in find command.
17359 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
17361 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
17363 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
17364 added not supported anymore.
17366 * s/usg5-4-2.h (LIBS_SYSTEM):
17367 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
17369 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
17370 * s/lynxos.h (GETPGRP_NO_ARG):
17371 * s/hpux10-20.h (NO_SIOCTL_H):
17372 * s/gnu.h (GETPGRP_NO_ARG):
17373 * s/gnu-linux.h (NO_SIOCTL_H):
17374 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
17375 * s/cygwin.h (GETPGRP_NO_ARG):
17376 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
17377 (C_DEBUG_SWITCH): Remove duplicate definition.
17379 * m/ibms390.h: Remove boilerplate comments.
17381 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
17383 * process.c (HAVE_SERIAL): Consolidate ifdefs.
17384 (wait_reading_process_output): Remove code for SunOS, platform not
17385 supported anymore. Use SOLARIS2 instead of sun.
17387 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
17389 * font.c (font_open_by_name): Under NS, default lface height to zero.
17390 (font_open_for_lface): Under NS, set size based on frame fontsize.
17391 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
17392 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
17394 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
17396 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
17397 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
17398 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
17400 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
17401 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
17402 * Makefile.in (clean): Clear out build destination dir.
17404 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
17406 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
17408 * lisp.h: Remove declaration of hash_remove.
17409 * nsgui.h: Remove redefinitions of hash_remove.
17410 * fns.c (hash_remove): Rename to hash_remove_from_table.
17412 2008-07-19 Seiji Zenitani <zenitani@mac.com>
17414 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
17415 strdup() the family UTF8String before modifying it.
17417 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
17419 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
17420 NS_FACE_BACKGROUND with 0 instead of nil.
17421 * nsfont.m (nsfont_draw): Same.
17423 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
17425 * nsfns.m (ns_set_background_color): Fix crash.
17427 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
17429 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
17431 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
17433 * puresize.h (BASE_PURESIZE): Increase to 1240000.
17435 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17437 * gtkutil.c: Include <config.h> instead of "config.h".
17439 * lisp.h (Foverlay_buffer): Add EXFUN.
17441 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
17442 child process to complete child_setup. Undo 2005-09-21 change.
17444 * s/darwin.h: Mention setsid after vfork.
17446 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17448 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
17449 Depend on macgui.h.
17451 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
17452 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
17454 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
17456 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
17458 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
17459 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
17460 Remove enumerators.
17462 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
17463 Check if FACE_FROM_ID returns NULL.
17465 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
17467 * w32inevt.c (change_frame_size): Remove extern declaration.
17468 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
17471 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
17473 * getloadavg.c: Revert last change (2008-07-15).
17475 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
17477 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
17478 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
17481 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
17484 * s/sol2-4.h: Reorganize conditionals.
17486 * ecrt0.c: Remove code depending on m68000, not used anymore.
17488 * fns.c (hash_remove): Make static.
17489 * lisp.h (hash_remove): Don't prototype.
17493 * m/macppc.h: Remove boilerplate comments.
17495 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
17496 Solaris, which does not need them.
17498 * m/vax.h: Remove comments about unsupported systems.
17500 * s/darwin.h: Reorganize ifdefs.
17502 2008-07-17 Andreas Schwab <schwab@suse.de>
17504 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
17506 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
17508 Use SDATA. Follow coding convention of placing operators at
17509 beginning of next line rather than end of previous line, and placing
17510 spaces around infix operators.
17512 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
17513 in case it was defined already.
17514 USE @GNUSTEP_MAKEFILES@ rather than envvars.
17515 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
17517 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
17519 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
17520 (ns_defined_color, ns_color_to_lisp): Declare.
17521 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
17522 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
17523 it's accepted even with USE_LISP_UNION_TYPE.
17524 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
17525 (update_frame_tool_bar): Remove apparently obsolete tests for
17526 non-integerness of f->tool_bar_lines.
17527 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
17528 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
17529 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
17530 (nsfont_open): Don't confuse NULL for Qnil.
17531 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
17532 * menu.h (find_and_call_menu_selection):
17533 * menu.c (find_and_call_menu_selection): Use just int for vector size.
17534 (find_and_return_menu_selection): Always return something.
17535 * frame.h: Include dispextern.h for Display_Info.
17536 (display_x_get_resource): Declare.
17538 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
17540 * syntax.c: Remove stdio.h include accidentally introduced in
17542 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
17544 * keyboard.c (handle_async_input, input_available_signal): Remove
17545 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
17547 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
17549 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
17550 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
17551 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
17554 * keymap.c: Remove all NS-specific code.
17555 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
17556 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
17557 where_is_preferred_modifier, return a different value depending on how
17558 preferred is the binding.
17559 (where_is_internal): Adjust accordingly.
17560 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
17561 Adjust to new preferred_sequence_p.
17562 (syms_of_keymap): Declare `where-is-preferred-modifier'.
17563 * keyboard.c (parse_solitary_modifier): Not static any more.
17564 * keyboard.h (parse_solitary_modifier): Declare.
17566 2008-07-16 Andreas Schwab <schwab@suse.de>
17568 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
17571 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
17573 * xdisp.c (move_it_in_display_line): Account for word wrap, so
17574 that we don't move off the line.
17576 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
17578 * keyboard.c (Qsuper): Remove.
17579 (parse_menu_item): Don't call where_is_internal specially for NS.
17581 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
17583 * s/gnu-linux.h: Remove boilerplate comments.
17585 * m/alpha.h (__ELF__): Consolidate conditions.
17587 * m/m68k.h (linux): Use GNU_LINUX instead.
17588 Remove boilerplate comments.
17590 * m/intel386.h: Undo refactoring from previous change.
17591 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
17592 too, remove dead code.
17593 (linux): Use GNU_LINUX instead.
17595 2008-07-16 Jason Rumney <jasonr@gnu.org>
17597 * w32gui.h: Repeat 26 June changes lost by last change.
17599 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
17601 * systty.h: Remove code for Aix on 386, unsupported platform.
17603 * s/ms-w32.h: Remove boilerplate comments.
17604 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
17606 * s/gnu-linux.h (TERM): Remove support.
17607 (HAVE_SYSVIPC): Remove, unused.
17608 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
17611 * process.c: Remove support for IRIS, unused.
17612 Remove support for TERM, not relevant anymore.
17614 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
17615 used with the definition.
17617 * s/aix4-2.h (static): Do not undef.
17619 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
17621 (HAVE_SYSVIPC): Remove, unused.
17623 * m/hp800.h (CANNOT_DUMP): Do not undef.
17625 * m/alpha.h: Fix comment.
17627 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
17628 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
17629 used by this configuration.
17630 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
17631 * unexec.c: Remove code depending on HPUX and
17632 USG_SHARED_LIBRARIES, not used with this file. Remove code
17633 depending on IRIS, unused. Remove if 0-ed code.
17635 * s/template.h: Remove comments about static.
17637 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
17638 Remove if 0-ed code.
17639 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
17640 were the same as the default.
17641 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
17642 Remove boilerplate comments.
17643 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
17644 (HAVE_SYSVIPC): Remove, unused.
17645 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
17647 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
17648 Remove boilerplate comments.
17649 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
17650 Remove boilerplate comments.
17651 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
17652 Remove boilerplate comments.
17653 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
17655 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
17656 USG systems which do not use DATA_SEG_BITS.
17657 Refactor code. Remove boilerplate comments.
17666 * s/msdos.h: Remove boilerplate comments.
17668 * m/iris4d.h: Remove boilerplate comments and code for systems that
17669 do not use this file.
17670 (IRIS_4D): Remove, unused.
17672 * m/mips.h: Remove boilerplate comments and code for systems that
17673 do not use this file.
17674 (SIGN_EXTEND_CHAR):
17675 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
17676 * unexmips.c: Remove file, unused.
17678 * editfns.c (Fuser_full_name): Replace the only use of
17679 USER_FULL_NAME with its value.
17680 * config.in: Regenerate.
17682 2008-07-16 David Reitter <david.reitter@gmail.com>
17684 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
17685 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
17687 2008-07-16 Glenn Morris <rgm@gnu.org>
17689 * emacs.c (system-type): Doc fix.
17691 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
17693 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
17694 If the cache doesn't work, let's fix it, rather than work around it.
17696 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
17698 * Makefile.in: Correct additions for nsfont.o in last commit.
17699 * nsfont.m: New file (forgot last commit).
17701 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
17703 * callproc.c (set_initial_environment):
17704 Initialize Vprocess_environment under CANNOT_DUMP (fixes crash when
17705 batch-compiling for bootstrap).
17707 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
17708 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17710 * frame.c (make_initial_frame): Call init_frame_faces(f) in
17711 CANNOT_DUMP case -- fix crash due to different init order.
17713 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
17715 Changes and additions for NeXTstep windowing system (Cocoa and
17719 * config.in: Support defines and build commands for NS port.
17720 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
17721 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
17722 * dispextern.h: Include nsgui.h and add needed typedefs under NS
17724 (struct face): Add synth_ital field.
17725 * dispnew.c: Include nsterm.h when compiling under NS windowing.
17726 (init_display): Initialize Vinitial_window_system to "ns" when so
17728 * emacs.c: Include GSConfig.h when compiling under GNUstep.
17729 (display_arg): Use under NS.
17730 (main): Under NS, allocate autorelease pool and handle command line
17731 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
17732 (standard_args): Add NS-specific args.
17733 (shut_down_emacs): Shut down NS terminal if compiled under NS.
17734 * font.c (DEFAULT_ENCODING): New variable.
17735 (font_find_for_lface): Use it.
17736 (syms_of_font): Load syms_of_nsfont under NS.
17737 * font.h: Declare nsfont_driver when compiled under NS.
17738 * fontset.c: When compiling under NS, include nsterm.h.
17739 (fontset_from_font): Autoconstruct fontset under NS.
17740 * frame.c (various): Under NS, include nsterm.h, add Qns window system
17741 symbol, document and use it.
17742 (do_switch_frame): When for_deletion under Cocoa, add
17743 Fraise_frame(Qnil).
17744 (x_set_frame_parameters): Ensure font attribute changes are picked up.
17745 (x_get_arg): Allow "yes" and "no" as boolean values.
17746 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
17747 Qright under Cocoa.
17748 (focus-follows-mouse): Default to 0 under NS.
17749 * frame.h (enum output_method): Add output_ns.
17750 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
17751 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
17752 (FRAME_WINDOW_P): NS-specific definition.
17753 * fringe.c (max_used_fringe_bitmap): Make public.
17754 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
17755 (getloadavg): Use NeXT code under descendant OS's.
17756 * image.c (includes and header section, x_create_bitmap_from_data)
17757 (x_create_bitmap_from_file, free_bitmap_record, image_background)
17758 (image_background_transparent, x_clear_image_1)
17759 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
17760 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
17761 (x_to_xcolors, x_from_xcolors, x_disable_image)
17762 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
17763 other GUIs, including XPM support using code originally written for
17765 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
17767 (image_ascent): Use font metrics macros instead of direct struct field
17769 * keyboard.c (includes): Add nsterm.h when compiling under NS.
17770 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
17771 Also, handle NS as GTK for menu bar purposes.
17772 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
17773 toolkit where they differ.
17774 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
17775 use cachelist, still needed under NS.
17776 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
17777 (struct widget_value): Define it here for menu.c.
17778 * keymap.c (includes): Include modifier internals.
17779 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
17781 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
17782 support for preferring sequences using certain modifiers, specified by
17783 the FIRSTONLY argument.
17784 * lisp.h (hash_remove): Rename to avoid name clash when compiling
17785 under NS GNUstep implementation.
17786 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
17787 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
17788 * menu.c: Include nsterm.h under NS.
17789 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
17790 (free_menubar_widget_tree_value, update_submenu_strings)
17791 (find_and_call_menu_selection): Treat NS as X and NT.
17792 (find_and_return_menu_selection): New function, used for popup menus.
17799 * nsterm.m: New files.
17800 * process.c (wait_reading_process_output): Under NS, call ns_select()
17801 instead of plain select().
17802 * syntax.c (char_quoted): Under NS, avoid a crash when called near
17803 beginning of buffer.
17804 * sysselect.h (init_process): Rename when compiling under Cocoa to
17805 avoid name conflict.
17806 * termhooks.h (display_info): Add ns_display_info to union.
17807 * terminal.c (Fterminal_live_p): Add ns to terminal types.
17808 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
17810 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
17811 unexec() signature. (Note, this will dump, but the resulting file
17812 crashes; unexosx is used instead; keeping around for reference and
17813 possible aid in getting dump working under GNUstep.)
17814 * w32gui.h (button_type, widget_value): Remove definitions (now in
17816 * window.c: Include nsterm.h when compiling under NS.
17817 * xdisp.c (includes): Include nsterm.h when compiling under NS.
17818 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
17819 other GUI windowing systems.
17820 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
17822 (x_consider_frame_title): Under NS, set icon type and frame
17823 modified-state indicator; use ns_set_name_as_filename() when using
17825 (update_window_cursor): Make public when compiling under NS.
17826 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
17827 (hourglass_atimer, Vhourglass_delay
17828 * xfaces.c (header section, init_frame_faces, clear_font_table)
17829 (defined_color, unload_color, x_face_list_fonts)
17830 (prepare_face_for_display): Add NS support parallel to other GUIs.
17831 Emulate GCs like other non-X GUIs.
17832 (split_font_name): Don't lowercase font name under NS.
17833 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
17835 * s/darwin.h: Add support for compilation under NS.
17837 2008-07-15 Jason Rumney <jasonr@gnu.org>
17839 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
17840 (w32_show_hourglass): Rename from show_hourglass.
17841 (w32_hide_hourglass): Rename from hide_hourglass.
17842 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
17843 (Vhourglass_delay): Declare extern.
17844 (hourglass_started): Remove.
17846 * xdisp.c (Vhourglass_delay): Remove static.
17847 (hourglass_started, start_hourglass, cancel_hourglass):
17848 Don't include these versions on WINDOWSNT.
17850 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
17852 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
17853 variables (formerly in xfns.c).
17854 (show_hourglass, hide_hourglass): New prototypes (same).
17855 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
17856 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
17858 (syms_of_xdisp): Declare/initialize display-hourglass,
17859 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
17860 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
17861 formerly in xfns.c.
17862 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
17863 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
17864 (start_hourglass, cancel_hourglass): Remove.
17865 (show_hourglass, hide_hourglass): Remove prototypes and static
17867 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
17868 hourglass_atimer, hourglass_shown_p declaration/initialization.
17869 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
17870 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
17871 (start_hourglass, cancel_hourglass): Remove.
17872 (show_hourglass, hide_hourglass): Remove prototypes and static
17874 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
17875 hourglass_atimer, hourglass_shown_p declaration/initialization.
17876 * w32fns.c (display_hourglass_p, Vhourglass_delay)
17877 (DEFAULT_HOURGLASS_DELAY): Remove.
17878 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
17879 hourglass_shown_p declaration/initialization.
17881 2008-07-14 Jason Rumney <jasonr@gnu.org>
17883 * w32fns.c (w32_get_arg): Remove wrapper function.
17884 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
17886 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
17888 2008-07-14 Kenichi Handa <handa@m17n.org>
17890 * xfont.c (xfont_open): Add workaround for X's bug.
17892 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
17894 * fontset.c: Include <stdio.h> unconditionally.
17896 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
17898 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
17901 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
17903 * s/vms.h: Use __GNUC__ instead of _GNUC_.
17906 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
17908 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
17909 (SPECIAL_EMACS_INT):
17910 * m/ia64.h (SPECIAL_EMACS_INT):
17911 * m/amdx86-64.h (SPECIAL_EMACS_INT):
17912 * s/gnu.h (NLIST_STRUCT):
17913 * s/aix4-2.h (X11R5_INHIBIT_I18N):
17914 * s/gnu-linux.h (LINUX):
17915 * s/msdos.h (HAVE_FACES):
17916 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
17919 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
17922 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
17924 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
17925 always defined as int.
17927 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
17928 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
17929 * s/gnu-linux.h (HAVE_WAIT_HEADER):
17930 * s/freebsd.h (HAVE_WAIT_HEADER):
17931 * s/bsd-common.h (HAVE_UNION_WAIT):
17932 * s/aix4-2.h (HAVE_WAIT_HEADER):
17933 * m/mips.h (HAVE_UNION_WAIT):
17934 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
17935 (COFF, static): Do not define, they are undefined later in the file.
17937 * process.c (update_status): Don't use a union.
17939 (sigchld_handler): Use int instead of WAITTYPE.
17941 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
17943 * indent.c (Fvertical_motion): Restore hscroll before moving to
17946 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
17948 * lisp.h: Remove left over code.
17950 2008-07-11 Andreas Schwab <schwab@suse.de>
17952 * lisp.h: Fix logic in last change.
17954 * menu.h: New file.
17955 * menu.c: Include it.
17956 * xmenu.c: Likewise.
17957 * Makefile.in: Update dependencies.
17959 2008-07-11 Kenichi Handa <handa@m17n.org>
17961 * fontset.c (fontset_from_font): Cancel the previous change.
17963 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
17968 * alloc.c: Replace all references of NO_UNION_TYPE with
17969 USE_LISP_UNION_TYPE.
17971 * m/xtensa.h (NO_UNION_TYPE):
17972 * m/vax.h (NO_UNION_TYPE):
17973 * m/template.h (NO_UNION_TYPE):
17974 * m/sparc.h (NO_UNION_TYPE):
17975 * m/mips.h (NO_UNION_TYPE):
17976 * m/macppc.h (NO_UNION_TYPE):
17977 * m/m68k.h (NO_UNION_TYPE):
17978 * m/iris4d.h (NO_UNION_TYPE):
17979 * m/intel386.h (NO_UNION_TYPE):
17980 * m/ibms390x.h (NO_UNION_TYPE):
17981 * m/ibms390.h (NO_UNION_TYPE):
17982 * m/ibmrs6000.h (NO_UNION_TYPE):
17983 * m/ia64.h (NO_UNION_TYPE):
17984 * m/hp800.h (NO_UNION_TYPE):
17985 * m/arm.h (NO_UNION_TYPE):
17986 * m/amdx86-64.h (NO_UNION_TYPE):
17987 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
17988 defining it the same.
17990 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
17992 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
17994 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
18011 * s/vms.h: Remove references to unused variables.
18013 2008-07-10 Andreas Schwab <schwab@suse.de>
18015 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
18016 pattern before matching the generic family.
18018 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
18025 * s/darwin.h: Remove dead code.
18038 * m/amdx86-64.h: Remove dead code and references to unused
18039 and compiler defined symbols.
18042 * unexelf.c: Remove references to desupported systems.
18044 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
18046 * m/powermac.h: Remove boilerplate comments.
18047 (NO_REMAP): Remove unused definition.
18049 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
18052 2008-07-10 Kenichi Handa <handa@m17n.org>
18054 * xfont.c (xfont_open): Log the reason of failure.
18056 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
18058 * fontset.c (fontset_get_font_group):
18059 * font.c (font_check_otf): Specify argument types.
18061 2008-07-09 Kenichi Handa <handa@m17n.org>
18063 * coding.c (detect_coding_utf_8): Set detect_info->found only when
18064 non-ASCII char is found.
18066 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
18067 (reorder_font_vector): Change the arg preferred_family to font.
18068 Prefer the spec matching with font.
18069 (fontset_get_font_group): New function.
18070 (fontset_find_font): Change the format of an element of a realized
18071 fontset. Use fontset_get_font_group.
18072 (fontset_font): Try the current fontset, the default fontset, the
18073 fallbacks of the current fontset, and the fallbacks of the default
18074 fontset in this order.
18075 (face_for_char): Delete the shortcut to use the current font.
18076 (fontset_from_font): Don't set fonts for Latin in the fontset.
18078 * font.h (font_make_object, font_match_p): Adjust prototypes.
18080 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
18082 * font.c (font_make_object): New arg entity and pixelsize.
18083 (font_check_otf_features, font_check_otf): New functions.
18084 (font_match_p): Check :lang, :script, and :otf properties.
18086 * xfont.c (xfont_open): Adjust it for the change of
18088 (xfont_text_extents): Fix initial setting of metrics.
18090 * ftfont.c (struct ftfont_info): New member index, delete member
18091 fc_charset_idx. Make the member order compatible with struct
18093 (fc_charset_table): Change charset names to registry names.
18094 (ftfont_pattern_entity): Delete the args registry and
18095 fc_charset_idx. Change the value of :font-entity property
18096 to (FONTNAME . INDEX). Always set :registry property to
18098 (struct ftfont_cache_data): New struct.
18099 (ftfont_lookup_cache): New arg for_face.
18100 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
18101 (ftfont_driver): Set the member otf_capability.
18102 (ftfont_get_charset): Adjust it for the change of
18104 (OTF_TAG_SYM): New macro.
18105 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
18106 for the change of fc_charset_table.
18107 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
18108 ftfont_pattern_entity. Add FC_INDEX to objset.
18109 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
18110 and ftfont_pattern_entity.
18111 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
18112 font_make_object, struct ftfont_info.
18113 (ftfont_has_char): Use ftfont_get_fc_charset.
18114 (ftfont_otf_features, ftfont_otf_capability): New functions.
18115 (ftfont_shape): Use ftfont_get_otf.
18116 (ftfont_text_extents): Fix initial setting of metrics.
18118 * xftfont.c (struct xftfont_info): New member ft_size. Make the
18119 member order compatible with struct ftfont_info.
18120 (xftfont_open): Add FC_CHARSET to the pattern.
18121 Set xftfont_info->ft_size. Don't unlock the face. Check BDF
18122 properties if appropriate.
18123 (xftfont_close): Unlock the face.
18124 (xftfont_anchor_point, xftfont_shape): Deleted.
18125 (syms_of_xftfont): Don't set members anchor_point and shape of
18128 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
18131 * w32font.c (w32font_open): Adjust it for the change of
18133 (w32font_open_internal): Don't set properties of font_object here.
18135 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
18137 * macfns.c (x_create_tip_frame):
18138 * w32fns.c (x_create_tip_frame):
18139 * xfns.c (x_create_tip_frame): Pass parameter argument to
18140 face-set-after-frame-default.
18142 * xfaces.c (Finternal_merge_in_global_face): Save merged
18143 attributes for the default face back into the face vector.
18145 2008-07-08 Andreas Schwab <schwab@suse.de>
18147 * fontset.h: Declare fontset_from_font. Don't declare
18148 new_fontset_from_font and fontset_from_font_name.
18149 * xterm.c: Include "fontset.h".
18150 * Makefile.in (xterm.o): Update dependencies.
18152 2008-07-08 Glenn Morris <rgm@gnu.org>
18154 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
18155 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
18157 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
18159 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
18160 (x_set_frame_parameters): Don't bind it.
18162 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
18164 * w32fns.c (map_w32_filename): Declare extern.
18166 2008-07-07 Jason Rumney <jasonr@gnu.org>
18168 * w32term.c (WS_EX_LAYERED): Define if not already.
18170 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
18172 * xfaces.c (set_font_frame_param): Don't try to set the font
18173 parameter if it is still unspecified in the lface.
18175 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
18177 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
18178 face if it didn't already exist.
18180 * xdisp.c (try_window_id): Give up if word-wrapping is on.
18182 2008-07-05 Andreas Schwab <schwab@suse.de>
18184 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
18186 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
18188 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
18190 (IT_DISPLAYING_WHITESPACE): New macro.
18191 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
18192 when word-wrapping. Simplify word-wrapping logic. Use correct
18193 pixel positions when saving copies of the iterator.
18194 (display_line): Use proper wrap point if the last character on a
18195 line was preceded by whitespace.
18197 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
18199 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
18201 2008-07-04 Kenichi Handa <handa@m17n.org>
18203 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
18205 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
18207 2008-07-02 Jason Rumney <jasonr@gnu.org>
18209 * xfns.c (syms_of_xfns): Only define x-select-font when both
18210 HAVE_FREETYPE and USE_GTK.
18212 * xdisp.c (next_element_from_display_vector): Move assignment out
18215 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
18217 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
18219 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
18220 (syms_of_fileio): Initialize and export them.
18221 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
18223 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
18224 (Fsystem_move_file_to_trash): New function.
18225 (syms_of_w32fns): Export it to lisp.
18227 2008-07-01 Jason Rumney <jasonr@gnu.org>
18229 * w32font.c (w32font_text_extents): Don't count overhang as part
18232 2008-06-30 Miles Bader <miles@gnu.org>
18234 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
18235 Add `avoid_cursor_p' field.
18237 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
18238 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
18239 (append_glyph, append_composite_glyph, produce_image_glyph)
18240 (append_stretch_glyph): Initialize avoid_cursor_p.
18241 (get_it_property): Rename from `get_line_height_property'.
18242 (x_produce_glyphs): Use get_it_property.
18243 (handle_line_prefix, push_display_prop): New functions.
18244 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
18245 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
18247 (syms_of_xdisp): Initialize them.
18249 2008-06-30 Kenichi Handa <handa@m17n.org>
18251 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
18252 XftDefaultSubstitute (they are called in XftFontMatch).
18253 (xftfont_open): Fix args to ftfont_font_format.
18255 * ftfont.c (fc_charset_table): New member lang.
18256 (ftfont_resolve_generic_family): New arg pattern.
18257 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
18258 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
18259 (ftfont_open): Fix args to ftfont_font_format.
18260 (ftfont_font_format): New arg filename.
18262 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
18264 * xfaces.c (Finternal_merge_in_global_face): If default face was
18265 modified, realize it again. Update the font face attribute.
18267 2008-06-29 Jason Rumney <jasonr@gnu.org>
18269 * w32term.c (x_set_frame_alpha): Fix logic.
18271 2008-06-29 Kenichi Handa <handa@m17n.org>
18273 * fontset.c (Finternal_char_font): Return font-object instead of
18276 * composite.c (get_composition_id): Fix the width calculation for TAB.
18278 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
18280 * indent.c (Fvertical_motion): Properly handle float column arg.
18282 2008-06-28 Jason Rumney <jasonr@gnu.org>
18284 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
18285 (pfnSetLayeredWindowAttributes): New function pointer.
18286 (w32_initialize): Initialize it when supported.
18287 (x_set_frame_alpha): New function.
18289 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
18290 (w32_frame_parm_handlers): Set alpha handler.
18292 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
18294 2008-06-27 Jason Rumney <jasonr@gnu.org>
18296 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
18297 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
18298 (w32_to_x_charset, x_to_w32_charset)
18299 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
18300 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
18301 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
18302 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
18303 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
18304 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
18305 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
18306 (Qw32_charset_unicode): Remove.
18307 (syms_of_w32fns): Update for above changes.
18309 * w32font.c (w32_to_x_charset, x_to_w32_charset)
18310 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
18311 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
18312 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
18313 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
18314 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
18315 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
18316 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
18317 (syms_of_w32font): Update for above changes.
18319 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
18321 * s/usg5-4.h: Fix previous change: keep the correct branch of a
18323 (USG_SHARED_LIBRARIES): Remove duplicate definition.
18325 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
18326 Eli Zaretskii <eliz@gnu.org>
18328 * makefile.w32-in (LOCAL_FLAGS):
18329 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
18331 * sysdep.c (_spawnlp, _getpid):
18332 Declare with explicit _cdecl instead of _CRTAPI1.
18334 * editfns.c (Fget_internal_run_time):
18335 Check for WINDOWSNT with #ifdef, not #if.
18337 2008-06-26 Jason Rumney <jasonr@gnu.org>
18339 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
18341 * w32term.c (x_draw_glyph_string_foreground)
18342 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
18343 Use FONT_HANDLE macro.
18344 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
18346 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
18347 (uniscribe_encode_char): Use FONT_HANDLE macro.
18349 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
18350 (w32font_text_extents): Use precast w32_font.
18351 (w32font_close): Free cached metrics.
18352 (w32font_open_internal): Allocate space for name on stack.
18354 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
18356 * xdisp.c (extend_face_to_end_of_line): Fix last change.
18358 2008-06-26 Jason Rumney <jasonr@gnu.org>
18360 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
18361 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
18363 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
18365 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
18367 2008-06-26 Jason Rumney <jasonr@gnu.org>
18369 * w32bdf.c, w32bdf.h: Remove obsolete files.
18371 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
18373 * w32gui.h: Don't include w32bdf.h.
18374 (XCharStruct, enum w32_char_font_type, W32FontStruct):
18375 Remove obsolete font support.
18377 * w32font.h (struct w32font_info): Remove compat_w32_font.
18379 (FONT_COMPAT): Remove obsolete macro.
18381 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
18382 (w32font_encode_char, w32font_text_extents): Use new hfont member.
18383 (w32font_open_internal): Remove compat code. Set new hfont member.
18384 (Fx_select_font): Use new hfont member.
18386 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
18387 (uniscribe_encode_char): Use new hfont member.
18389 * w32term.c (x_draw_glyph_string_foreground)
18390 (x_draw_composite_glyph_string_foreground): Use new hfont member.
18391 (x_draw_glyph_string): Use metrics in w32font_info.
18393 2008-06-26 Kenichi Handa <handa@m17n.org>
18395 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
18397 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
18403 * m/mips-siemens.h:
18425 * s/uxpv.h: Remove support for obsolete systems.
18426 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
18427 Remove, insert contents in s/hpux10-20.h.
18428 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
18429 Remove, insert contents in s/aix4-2.h.
18430 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
18431 * s/bsd4-3.h: Rename to ...
18432 * s/bsd-common.h: ... this.
18461 * s/template.h: Remove references to obsolete variables.
18463 * Makefile.in: Add dependencies for all unexec files.
18464 (admindir): Remove unused variable.
18465 (UNEXEC_SRC): Remove references.
18467 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
18469 * xfns.c (x_default_font_parameter): If Xft is available, first
18470 try Monospace-12 for the default font.
18472 2008-06-25 Jason Rumney <jasonr@gnu.org>
18474 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
18476 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
18478 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
18480 * buffer.c (syms_of_buffer): Remove default-word-wrap.
18482 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
18484 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
18485 <scroll-conservatively>: Fix typo in docstring.
18487 * xselect.c (Fx_send_client_event): Doc fix.
18489 2008-06-25 Kenichi Handa <handa@m17n.org>
18491 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
18493 * font.c (font_parse_fcname): Remove unused variables.
18494 (font_sort_entites): Delete the arg SPEC. Caller changed.
18495 Fix for the case of ! best_only.
18496 (font_delete_unmatched): Check DPI and AVGWIDTH too.
18498 * lisp.h (Fstring_to_unibyte): EXFUN it.
18500 * character.h (str_to_unibyte): Extern it.
18502 * character.c (str_to_unibyte): New function.
18504 * fns.c (Fstring_to_unibyte): New function.
18505 (syms_of_fns): Defsubr it.
18507 2008-06-24 Kenichi Handa <handa@m17n.org>
18509 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
18511 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
18513 2008-06-24 Andreas Schwab <schwab@suse.de>
18515 * Makefile.in (${lispsource}loaddefs.el): Rename from
18516 ../lisp/loaddefs.el.
18517 (bootstrap-clean): Do what distclean does but don't remove
18519 (distclean): Depend on bootstrap-clean and remove Makefile.
18521 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
18523 * buffer.h (struct buffer): New member word_wrap.
18525 * buffer.c (syms_of_buffer): New variables default-word-wrap and
18527 (init_buffer_once): Initialize them.
18529 * dispextern.h (struct it): Replace bool truncate_lines_p with a
18530 line_wrap enum possessing three possible values.
18532 * termopts.h: Replace truncate_partial_width_windows with
18533 Vtruncate_partial_width_windows.
18535 * dispnew.c (direct_output_for_insert): Avoid direct output when
18536 inserting a space with word wrap on.
18538 * indent.c (compute_motion): Obey integer values of
18539 truncate-partial-width-windows.
18541 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
18542 replacing truncate_partial_width_windows.
18543 (init_iterator): If Vtruncate_partial_width_windows is an integer,
18544 truncate only if the window width is below that integer.
18545 (start_display, resize_mini_window, produce_stretch_glyph)
18546 (display_string, move_it_in_display_line_to): Use line_wrap.
18547 (back_to_previous_visible_line_start, reseat_1):
18548 Reset string_from_display_prop_p.
18549 (display_line): Extend default face to end of line when wrapping.
18551 2008-06-24 Kim F. Storm <storm@cua.dk>
18553 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
18554 to wrap continued lines at word boundaries.
18556 2008-06-24 Jason Rumney <jasonr@gnu.org>
18558 * font.c (Ffont_face_attributes): Multiply pixel size before point
18559 conversion to avoid multiplying rounding error.
18561 2008-06-23 Jason Rumney <jasonr@gnu.org>
18563 * w32term.c (x_draw_glyph_string_background)
18564 (x_draw_glyph_string): Remove old bdf font code.
18566 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
18568 2008-06-22 Kenichi Handa <handa@m17n.org>
18570 * font.c (font_find_for_lface): Try the adstyle specified in
18571 the property of LFACE_FONT of LFACE (if any).
18573 2008-06-21 Seiji Zenitani <zenitani@mac.com>
18574 Ryo Yoshitake <ryo@shiftmode.net>
18576 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
18578 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
18580 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
18581 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
18582 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
18583 (witness-emacs): Remove.
18584 (lisp, shortlisp): Move loaddefs.el earlier.
18585 (mostlyclean): Forget about witness-emacs.
18587 2008-06-22 Glenn Morris <rgm@gnu.org>
18589 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
18590 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
18592 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
18594 * Makefile.in (PRECOMP): Remove.
18595 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
18596 (witness-emacs): Run `compile-first'.
18597 (.el.elc): Use the new compile-onefile target.
18599 2008-06-21 Kenichi Handa <handa@m17n.org>
18601 * xftfont.c (xftfont_open): Handle QCembolden only when
18602 FC_EMBOLDEN is defined.
18604 2008-06-21 Andreas Schwab <schwab@suse.de>
18606 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
18607 (.el.elc): Likewise.
18609 2008-06-21 Miles Bader <miles@gnu.org>
18611 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
18612 build dir, not the lisp source dir.
18614 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
18616 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
18617 (bootstrapclean): Remove.
18618 (.el.elc): New rule.
18619 (PRECOMP): New var.
18620 (../lisp/subdirs.el): Remove.
18621 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
18622 (witness-emacs): New target.
18623 (mostlyclean): Remove witness-emacs as well.
18624 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
18625 Add witness-emacs dependency.
18627 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
18629 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
18630 defined by the font.
18632 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
18634 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
18635 (bootstrap-clean): New target that keeps TAGS around.
18636 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
18637 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
18639 2008-06-20 Jason Rumney <jasonr@gnu.org>
18641 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
18642 Remove obsolete font code.
18644 * w32font.c (font_matches_spec): Use csb bitfield from font signature
18645 to determine language support.
18647 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
18649 * sysdep.c (cfsetspeed): New fun extracted from the code.
18650 (cfmakeraw): Move before first use.
18652 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
18654 * sysdep.c (cfmakeraw): Provide fallback implementation.
18655 (serial_configure): Provide fallback implementation of cfsetspeed.
18657 2008-06-20 Kenichi Handa <handa@m17n.org>
18659 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
18662 * fontset.c (fontset_from_font): Copy font_spec before changing
18665 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
18667 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
18669 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
18670 for explicit `font' parameters.
18672 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
18674 2008-06-19 Kenichi Handa <handa@m17n.org>
18676 * frame.c: Include <ctype.h>.
18677 (x_set_font_backend): Allow spacing characters in the X resource
18680 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
18682 * w32fns.c, xfns.c (Qfont_param): New var.
18683 (syms_of_w32fns): Initialize it.
18684 (x_default_font_parameter): Record explicit `font' into
18687 2008-06-18 Kenichi Handa <handa@m17n.org>
18689 * font.c (font_parse_xlfd): Fix previous change.
18690 (font_parse_fcname): Don't use :fc-unknown-spec.
18691 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
18692 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
18693 (font_add_log): Prepend the driver name to the resulting fonts.
18695 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
18696 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
18697 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
18699 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
18700 (QCembolden): New variables.
18701 (syms_of_xftfont): DEFSYM them.
18702 (xftfont_open): Call XftFontMatch. Don't trust the result of
18703 XftTextExtents8 if the pixel_size is less than 5.
18705 2008-06-18 Andreas Schwab <schwab@suse.de>
18707 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
18708 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
18710 2008-06-18 Jason Rumney <jasonr@gnu.org>
18712 * w32font.c (w32font_list, w32font_match): Add logging.
18714 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
18716 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
18718 * font.c (font_parse_fcname): Store divider characters for
18719 unknown-spec list. For known key symbols, intern using correct
18722 2008-06-17 Kenichi Handa <handa@m17n.org>
18724 * xfaces.c (realize_default_face): If the frame is not on window
18725 system, set the fontset of face to nil.
18727 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
18729 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
18731 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
18733 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
18734 (build_font_name_from_vector): Delete externs.
18736 * xfaces.c (struct font_name): Don't declare.
18738 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
18740 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
18742 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
18744 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
18746 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
18748 * font.c (Ffont_spec): Fix usage in docstring.
18749 (Ffont_face_attributes): Doc fix.
18751 2008-06-16 Andreas Schwab <schwab@suse.de>
18753 * font.c (Ffont_face_attributes): Fix definition.
18755 2008-06-16 Jason Rumney <jasonr@gnu.org>
18757 * font.h (font_style_symbolic_from_value): Remove.
18759 * font.c (font_style_symbolic_from_value): Remove.
18760 (font_style_symbolic): Revert to pre 2008-06-13 version.
18762 * w32font.c (w32_to_fc_weight): New function.
18763 (w32font_full_name, logfont_to_fcname): Use it.
18765 2008-06-16 Kenichi Handa <handa@m17n.org>
18767 * font.c (font_check_object): Delete it.
18768 (font_clear_cache): Check if a font-object is alive.
18769 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
18770 font-object to nil.
18771 (font_close_object): Don't check FONT_CLOSE_OBJECT.
18772 (font_at): Don't call font_check_object.
18773 (Ffont_get): Return a symbol for :weight, :slant, and :width.
18775 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
18777 * puresize.h (BASE_PURESIZE): Increase to 1230000.
18779 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
18781 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
18783 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
18785 * font.c (font_parse_fcname): Only one decimal point.
18786 (font_unparse_fcname): Handle data in family and foundry indices
18787 as symbols, not strings.
18788 (font_unparse_gtkname, Ffont_face_attributes): New functions.
18790 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
18792 * font.h (font_unparse_gtkname): Add prototype.
18794 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
18796 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
18798 2008-06-15 Andreas Schwab <schwab@suse.de>
18800 * font.c (font_update_drivers): Fix crash when no drivers match.
18802 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
18804 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
18805 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
18807 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
18809 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
18811 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
18813 * process.c (Fserial_process_configure, Fprocess_send_eof):
18814 Use EQ to compare Lisp_Objects.
18816 2008-06-13 Jason Rumney <jasonr@gnu.org>
18818 * w32fns.c (Fw32_select_font): Remove old font API function.
18820 * w32font.c (logfont_to_fcname): New function.
18821 (Fx_select_font): New font dialog function compatible with
18822 GTK/fontconfig version.
18824 * font.c (font_style_symbolic_from_value): New function.
18825 (font_style_symbolic): Use it.
18827 * font.h (font_style_symbolic_from_value): Declare new function.
18829 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
18831 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
18832 <font-width-table>: Fix typos in docstrings.
18834 2008-06-13 Daniel Engeler <engeler@gmail.com>
18836 These changes add serial port access.
18837 * process.c: Add HAVE_SERIAL.
18838 (Fdelete_process, Fprocess_status, Fset_process_buffer)
18839 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
18840 (list_processes_1, select_wrapper, Fstop_process)
18841 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
18842 (status_notify): Modify to handle serial processes.
18843 [HAVE_SERIAL] (Fserial_process_configure)
18844 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
18846 * process.h (struct Lisp_Process): Add `type'.
18847 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
18849 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
18851 (serial_open, serial_configure): New functions.
18852 * w32.h: Add FILE_SERIAL.
18853 (struct _child_process): Add ovl_read, ovl_write.
18855 2008-06-13 Kenichi Handa <handa@m17n.org>
18857 * dispextern.h (enum lface_attribute_index): New member
18858 LFACE_FOUNDRY_INDEX.
18860 * font.c (font_score): Delete arg alternate_families. Check only
18861 weight, slant, width, and size. Ignore the difference of alias
18863 (font_sort_entites): Adjust for the above change. Reflect the
18864 order of font-driver to scores.
18865 (font_list_entities): Don't check alternate_familes here.
18866 (font_clear_prop): Handle foundry.
18867 (font_update_lface): Don't parse "foundry-family" form here.
18868 Handle FONT_FOUNDRY_INDEX.
18869 (font_find_for_lface): Likewise. Handle alternate families here.
18870 If registry is nil, try iso8859-1 and ascii-0.
18871 (font_open_for_lface): Pay attention to size in ENTITY.
18872 (font_open_by_name): Simplify by calling font_load_for_lface.
18873 (free_font_driver_list): Delete it.
18874 (font_update_drivers): Preserve the order of backends.
18875 (syms_of_font): Setting of sort_shift_bits adjusted for the change
18876 of font_score and font_sort_entites.
18877 (font_update_sort_order): Likewise.
18879 * xfaces.c (LFACE_FOUNDRY): New macro.
18880 (check_lface_attrs): Check foundry.
18881 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
18882 (merge_face_vectors): Check foundry.
18883 (merge_face_ref): Likewise.
18884 (Finternal_set_lisp_face_attribute): Likewise.
18885 (x_update_menu_appearance): Likewise.
18886 (Finternal_get_lisp_face_attribute): Likewise.
18887 (lface_hash): Likewise.
18888 (lface_same_font_attributes_p): Likewise.
18889 (x_supports_face_attributes_p): Likewise.
18890 (tty_supports_face_attributes_p): Likewise.
18891 (Finternal_set_alternative_font_family_alist): Intern strings.
18892 (Finternal_set_alternative_font_registry_alist): Downcase strings.
18893 (realize_default_face): Set LFACE_FOUNDRY (lface).
18895 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
18896 font-driver at first.
18898 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
18900 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
18902 * lread.c (Fload): Use xfree, not free on saved_doc_string.
18904 2008-06-12 Jim Meyering <meyering@redhat.com>
18906 Make unexec_free handle NULL the same way free does.
18907 * unexmacosx.c (unexec_free): Ignore a NULL argument.
18909 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
18911 * character.h (CHAR_TO_BYTE_SAFE): New macro.
18912 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
18913 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
18914 (WEAK_ALIAS): Simplify.
18915 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
18916 when searching a unibyte buffer.
18918 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
18920 * xfns.c (Fx_select_font): Rename from x-font-dialog.
18922 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
18924 * w32font.c: Include ctype.h.
18926 2008-06-11 Jason Rumney <jasonr@gnu.org>
18928 * w32font.c (w32font_encode_char): Detect missing glyphs that are
18929 misreported as space.
18930 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
18931 as aliases for registry iso10646-1.
18933 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
18935 * buffer.c (clone_per_buffer_values): Skip `name'.
18937 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
18939 * font.c (font_parse_fcname): Fix last change; accept decimal
18940 points in font size.
18942 2008-06-10 Jason Rumney <jasonr@gnu.org>
18944 * w32uniscribe.c (add_opentype_font_name_to_list):
18945 Skip non unicode fonts.
18947 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
18949 * xfns.c (Fx_font_dialog): New function.
18951 * gtkutil.c (xg_dialog_response_cb): Rename from
18952 xg_file_response_callback.
18953 (pop_down_dialog): Rename from pop_down_file_dialog.
18954 (xg_get_file_name): Callers changed.
18955 (xg_get_font_name): New function.
18957 * gtkutil.h (xg_get_font_name): Insert prototype.
18959 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
18961 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
18962 x_underline_minimum_display_offset.
18963 (syms_of_xdisp): Declare it here rather than in xterm.c.
18964 * dispextern.h (underline_minimum_offset): Declare it.
18965 * w32term.c (x_draw_glyph_string): Use it.
18966 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
18967 (syms_of_xterm): Don't declare it any more.
18968 (x_draw_glyph_string): Adjust to the new name.
18970 2008-06-10 David De La Harpe Golden <david@harpegolden.net>
18972 * xterm.c (x_underline_minimum_display_offset): New var.
18973 (x_draw_glyph_string): Use it.
18974 (syms_of_xterm): Declare it.
18976 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
18978 * font.c (font_parse_fcname): Accept GTK-style font names too.
18980 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
18982 * dired.c (file_name_completion): Don't return t if the match is exact
18983 but with different capitalization.
18984 * minibuf.c (Ftry_completion): Simplify.
18986 * window.c (Vwindow_point_insertion_type): New var.
18987 (set_window_buffer): Use it.
18988 (syms_of_window): Init and export it to Lisp.
18990 2008-06-10 Kenichi Handa <handa@m17n.org>
18992 * font.h (font_intern_prop): Prototype adjusted.
18994 * font.c (font_intern_prop): New arg force_symbol.
18995 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
18996 Adjust for the change of font_intern_prop.
18998 * ftfont.c (ftfont_pattern_entity):
18999 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
19001 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
19002 the change of font_intern_prop.
19004 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
19006 * w32menu.c (digest_single_submenu): Declare extern.
19008 2008-06-09 Jason Rumney <jasonr@gnu.org>
19010 * w32term.c (x_make_frame_visible): Use alternate restore flags.
19012 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
19013 (parse_single_submenu): Remove.
19014 (digest_single_submenu): Remove.
19015 (syms_of_w32menu): Don't initialise variables that have moved
19017 (set_frame_menubar): Sync with version in xmenu.c.
19018 (w32_menu_show): Sync with xmenu_show in xmenu.c.
19020 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
19023 2008-06-09 Jason Rumney <jasonr@gnu.org>
19025 Changes to w32 files related to the move of common menu code
19026 to menu.c on 2008-06-08 by Chong Yidong.
19028 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
19030 (single_keymap_panes, push_menu_item, push_menu_pane):
19031 Make globally visible.
19033 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
19034 (local_free, malloc_widget_value, free_widget_value)
19035 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
19036 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
19037 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
19038 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
19039 (menu_items, menu_items_allocated, menu_items_used)
19040 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
19041 (init_menu_items, finish_menu_items, discard_menu_items)
19042 (grow_menu_items, push_submenu_start, push_submenu_end)
19043 (push_left_right_boundary, push_menu_pane, push_menu_item)
19044 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
19045 (free_menubar_widget_tree_value, parse_single_submenu)
19046 (update_submenu_strings): Remove functions.
19047 (xmalloc_widget_value): Remove and declare extern.
19049 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
19052 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
19053 (local_heap, local_alloc, local_free, malloc_widget_value)
19054 (free_widget_value): Define here.
19056 2008-06-09 Kenichi Handa <handa@m17n.org>
19058 * font.h (Qascii_0): Extern it.
19060 * font.c (Qascii_0): New variable.
19061 (syms_of_font): DEFSYM it.
19062 (font_open_by_name): If the registry "iso8859-1" fails, try also
19065 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
19067 2008-06-08 Kenichi Handa <handa@m17n.org>
19069 * .gdbinit (xfont): New command.
19071 2008-06-08 Andreas Schwab <schwab@suse.de>
19073 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
19074 * Makefile.in (menu.o): Update dependencies.
19076 * Makefile.in (obj): Always add menu.o.
19077 * emacs.c (main): Always call syms_of_menu.
19078 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
19080 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
19082 * Makefile.in: Compile menu.c.
19084 * lisp.h: Declare syms_of_menu.
19086 * emacs.c (main): Call syms_of_menu.
19088 * keyboard.h: Relocate platform-independent menu definitions from
19091 * menu.c: New file. Relocate platform-independent menu
19092 definitions from xmenu.c. Suggested by Adrian Robert.
19094 * xmenu.c: Remove platform-independent menu definitions.
19095 (menu_items, menu_items_inuse, menu_items_allocated)
19096 (menu_items_used, menu_items_n_panes)
19097 (menu_items_submenu_depth): Move to keyboard.h.
19098 (init_menu_items, finish_menu_items, unuse_menu_items)
19099 (discard_menu_items, restore_menu_items, save_menu_items)
19100 (grow_menu_items, push_submenu_start, push_submenu_end)
19101 (push_left_right_boundary, push_menu_pane, push_menu_item)
19102 (keymap_panes, single_keymap_panes, single_menu_item)
19103 (list_of_panes, list_of_items, find_and_call_menu_selection)
19104 (xmalloc_widget_value, free_menubar_widget_value_tree)
19105 (parse_single_submenu, digest_single_submenu)
19106 (update_submenu_strings): Move to menu.c.
19108 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
19110 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
19112 2008-06-06 Miles Bader <miles@gnu.org>
19114 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
19115 face, not frame default.
19117 2008-06-05 Martin Rudalics <rudalics@gmx.at>
19119 * window.c (pop_up_windows, pop_up_frames)
19120 (display_buffer_reuse_frames, Vpop_up_frame_function)
19121 (Vdisplay_buffer_function, Veven_window_heights)
19122 (Vspecial_display_buffer_names, Vspecial_display_regexps)
19123 (Vspecial_display_function, Vsame_window_buffer_names)
19124 (Vsame_window_regexps, split_height_threshold)
19125 (Vsplit_window_preferred_function): Move those vars to window.el.
19126 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
19127 (Fdisplay_buffer): Move those functions to window.el.
19128 (syms_of_window): Remove corresponding declarations.
19129 (display_buffer): New function.
19130 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
19131 * dispnew.c (Flast_nonminibuf_frame): New function.
19132 * buffer.c (Fpop_to_buffer): Move to window.el.
19134 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
19136 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
19138 2008-06-05 Kenichi Handa <handa@m17n.org>
19140 * coding.c (detect_coding): Fix previous change.
19141 (detect_coding_system): Likewise.
19143 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
19145 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
19147 * keymap.c (Vminibuffer_local_filename_must_match_map):
19148 Rename from Vminibuffer_local_must_match_filename_map.
19150 * minibuf.c (Fcompleting_read): Adjust accordingly.
19151 * commands.h: Rename declaration as well.
19153 2008-06-05 Kenichi Handa <handa@m17n.org>
19155 * font.c (Ffont_spec): Don't use font_parse_family_registry for
19157 (Ffont_put): Likewise.
19159 * fontset.c (fontset_find_font): Call font_open_for_lface with the
19162 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
19165 * xfaces.c (realize_x_face): If the font-related face attributes
19166 are the same as those of default face, realize a new fontset from
19168 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
19170 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
19172 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
19173 (move_it_in_display_line): New wrapper.
19175 * window.c (window_scroll_pixel_based_preserve_x)
19176 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
19177 (window_scroll_pixel_based, window_scroll_line_based):
19178 Use them to preserve column positions.
19179 (syms_of_window): Initialize them.
19181 * indent.c (Fvertical_motion): Extend first arg to allow passing an
19182 (HPOS . VPOS) pair.
19184 * dispextern.h (move_it_in_display_line): Declare.
19186 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
19188 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
19189 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
19190 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
19192 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
19194 * window.c (Fset_window_parameter): Doc fix.
19195 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
19197 2008-06-04 Joakim Verona <joakim@verona.se>
19199 * window.h (struct window): Add new member window_parameters.
19201 * window.c (Fwindow_parameters, Fwindow_parameter)
19202 (Fset_window_parameter): New defuns.
19203 (syms_of_window): Defsubr the new defuns.
19204 (make_window): Initialize window_parameters to nil.
19206 2008-06-04 John Paul Wallington <jpw@pobox.com>
19208 * eval.c (Fdefmacro): Doc fix.
19210 2008-06-04 Kenichi Handa <handa@m17n.org>
19212 * coding.c (detect_coding): Fix handling of coding->head_ascii.
19213 Be sure to call setup_coding_system when we find a proper coding system.
19214 (detect_coding_system): Fix handling of coding->head_ascii.
19216 2008-06-03 Andreas Schwab <schwab@suse.de>
19218 * font.c (font_prop_validate_spacing): Fix last change.
19220 2008-06-03 Kenichi Handa <handa@m17n.org>
19222 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
19223 (font_parse_fcname): Fix handling of unknown key.
19225 * xfont.c (xfont_list): Try an alias.
19227 * charset.c (char_charset): Return NULL if the arg charset_list is
19228 specified and C doesn't belong to any of them.
19230 2008-06-02 Chip Coldwell <coldwell@redhat.com>
19232 * font.c (font_pixel_size): Don't take cdr of an integer.
19234 2008-06-02 Jim Meyering <meyering@redhat.com>
19236 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
19237 * alloc.c (xfree): Return right away for a NULL arg.
19238 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
19239 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
19240 * mac.c (create_apple_event_from_event_ref): Likewise.
19241 (create_apple_event_from_drag_ref, cfstring_create_normalized):
19243 * doprnt.c (doprnt1): Likewise.
19244 * frame.c (frame): Likewise.
19245 * keyboard.c (wipe_kboard): Likewise.
19246 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
19247 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
19248 * term.c (tty_default_color_capabilities, maybe_fatal)
19249 (delete_tty): Likewise.
19250 * w16select.c (string): Likewise.
19251 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
19252 * w32bdf.c (w32_free_bdf_font): Likewise.
19253 * w32fns.c (w32_unload_font): Likewise.
19254 * w32font.c (w32font_close): Likewise.
19255 * window.c (size_window): Likewise.
19256 * xselect.c (receive_incremental_selection): Likewise.
19257 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
19258 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
19259 * w32.c (stat): Likewise.
19261 Remove useless if-before-free tests.
19262 * editfns.c (Fset_time_zone_rule): Likewise.
19263 * lread.c (nosuffix): Likewise.
19264 * ralloc.c (get_bloc): Likewise.
19265 * regex.c (reg_free): Likewise.
19266 * xftfont.c (xftfont_open, xftfont_close): Likewise.
19267 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
19268 * xsmfns.c (smc_save_yourself_CB): Likewise.
19270 2008-06-02 Kenichi Handa <handa@m17n.org>
19272 * font.c (font_find_for_lface): Handle float font size.
19273 (font_open_for_lface): Likewise.
19275 * xfaces.c (x_supports_face_attributes_p): Check face->font before
19276 comparing the properties.
19278 2008-06-01 Jason Rumney <jasonr@gnu.org>
19280 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
19281 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
19282 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
19283 Don't add empty script list.
19284 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
19286 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
19288 * Makefile.in (dot, dotdot): Remove, update users.
19289 ".." has been used elsewhere in the file for a long time.
19290 (LIBXT_STATIC): Remove conditional based on unused variable.
19292 2008-06-01 Miles Bader <miles@gnu.org>
19294 * xfaces.c (Vface_remapping_alist): New variable.
19295 (syms_of_xfaces): Initialize it.
19296 (enum named_merge_point_kind): New type.
19297 (struct named_merge_point): Add `named_merge_point_kind' field.
19298 (push_named_merge_point): Make cycle detection respect different
19299 named-merge-point kinds.
19300 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
19301 Remove face-name alias resolution.
19302 (lface_from_face_name): New definition using
19303 `lface_from_face_name_no_resolve'.
19304 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
19305 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
19306 (get_lface_attributes): New definition that layers face-remapping on
19307 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
19308 (lookup_basic_face): New function.
19309 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
19310 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
19311 `get_lface_attributes'.
19312 (face_at_buffer_position): Use `lookup_basic_face' to lookup
19313 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
19314 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
19316 * xdisp.c (init_iterator): Pass base_face_id through
19317 `lookup_basic_face' when we actually use it as a face-id.
19318 (handle_single_display_prop): Use `lookup_basic_face' to lookup
19321 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
19322 lookup the initial face-id.
19324 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
19326 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
19328 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
19329 (Fremove_text_properties): Fix typos in docstrings.
19331 2008-05-31 Kenichi Handa <handa@m17n.org>
19333 * font.c (font_list_entities): Fix the car part of data to be
19334 stored in the cache.
19336 * ftfont.c (ftfont_font_format): Don't use strcasestr.
19338 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
19340 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
19341 Add a `test' argument so another predicate than `equal' can be used.
19342 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
19343 (map_char_table): Remove unused vars `c' and `i'.
19344 * lisp.h (Foptimize_char_table): Adjust declaration.
19345 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
19347 2008-05-30 Kenichi Handa <handa@m17n.org>
19349 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
19350 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
19353 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
19355 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
19356 (Fmake_variable_frame_local): Disallow mixing buffer-local and
19357 frame-local settings for the same variable.
19359 2008-05-30 Kenichi Handa <handa@m17n.org>
19361 * fontset.c (Ffont_info): Move to font.c.
19362 (syms_of_fontset): Delete defsubr of Sfont_info.
19364 * font.c (font_style_to_value, font_score): Delete casting of the
19365 args to xstcasecmp.
19366 (register_font_driver): Increment num_font_drivers only when
19367 registering the driver globally.
19368 (Ffont_info): Move from fontset.c. Handle a font object too.
19369 (syms_of_font): Defsubr Sfont_info.
19371 2008-05-29 Kenichi Handa <handa@m17n.org>
19373 * coding.h (enum define_coding_utf8_arg_index): New enum.
19374 (enum coding_attr_index): Change coding_attr_utf_16_bom to
19375 coding_attr_utf_bom.
19376 (enum utf_bom_type): Rename from utf_16_bom_type.
19377 (struct utf_16_spec): Adjust for the above change.
19378 (struct coding_system): Add utf_8_bom in `spec' union.
19380 * coding.c (CODING_UTF_8_BOM): New macro.
19381 (enum coding_category): Delete coding_category_utf_8, add
19382 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
19383 coding_category_utf_8_sig.
19384 (CATEGORY_MASK_UTF_8): Delete it.
19385 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
19386 (CATEGORY_MASK_UTF_8_SIG): New macros.
19387 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
19388 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
19389 CATEGORY_MASK_UTF_8_SIG.
19390 (CATEGORY_MASK_UTF_8): New macro.
19391 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
19392 (detect_coding_utf_8): Check BOM.
19393 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
19394 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
19395 (encode_coding_utf_16): Likewise.
19396 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
19397 (detect_coding, detect_coding_system): Handle utf-8-auto.
19398 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
19399 (syms_of_coding): Fix setting up of Vcoding_category_table.
19401 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
19403 * process.c (Faccept_process_output): If `millisec' is non-nil,
19404 `seconds' default to 0.
19405 (wait_reading_process_output): Also return non-nil if we read output
19406 from a non-running process.
19408 2008-05-29 Jason Rumney <jasonr@gnu.org>
19410 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
19411 `raster' specified.
19412 (add_font_entity_to_list): Allow non-opentype truetype fonts back
19413 in the uniscribe backend, but disallow any font that has no
19414 unicode subrange support.
19416 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
19418 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
19419 Fix typos in docstrings.
19421 2008-05-29 Kenichi Handa <handa@m17n.org>
19423 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
19424 (Fx_family_fonts): Set frame correctly.
19426 2008-05-28 Jason Rumney <jasonr@gnu.org>
19428 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
19430 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
19432 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
19433 calling build_annotations.
19435 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
19437 * coding.c (Fdecode_coding_region, Fencode_coding_region)
19438 (Fencode_coding_string):
19439 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
19440 <latin-extra-code-table>: Fix typos in docstrings.
19441 (syms_of_coding) <coding-system-alist>: Doc fix.
19442 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
19444 2008-05-28 Kenichi Handa <handa@m17n.org>
19446 * fontset.c (Ffont_info): Don't call font_close_object.
19448 * font.c (font_parse_family_registry): Use Ffont_put to validate
19449 foundry and family.
19450 (font_delete_unmatched): Don't check spacing.
19451 (font_list_entities): Add spacing to the spec to list fonts.
19453 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
19454 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
19456 * coding.c (encode_coding_raw_text): Fix previous change.
19457 (encode_coding_object): When the dst_object is a buffer and is
19458 different from src_object, move gap to PT.
19460 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
19462 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
19464 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
19466 * coding.c (encode_coding_raw_text): Set coding->produced_char for
19467 all branches. Compute it differently.
19469 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
19471 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
19473 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
19474 into "else if () ... else ...".
19476 2008-05-27 Jason Rumney <jasonr@gnu.org>
19478 * w32font.c (w32font_open_internal): Determine if glyph indices
19479 are likely to work here.
19481 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
19483 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
19484 draw overlap glyphs with appropriate highlighting.
19486 2008-05-27 Kenichi Handa <handa@m17n.org>
19488 * xfont.c (xfont_open): Fix calculation of font->average_width.
19490 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
19492 * casefiddle.c (casify_object): Try to guess better whether the
19493 argument is a byte or a char.
19495 2008-05-26 Andreas Schwab <schwab@suse.de>
19497 * xselect.c (x_reply_selection_request): Properly handle format == 32.
19498 Always send multiples of format size.
19500 * xterm.c (x_set_frame_alpha): Fix type mismatch.
19502 2008-05-26 Jason Rumney <jasonr@gnu.org>
19504 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
19505 (compute_metrics): Don't set failure if we just cleared the cache.
19506 (w32_weight_table): Remove unused variable.
19507 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
19508 backwards compatibility.
19510 2008-05-25 Kenichi Handa <handa@m17n.org>
19512 * w32term.c (x_draw_glyph_string):
19513 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
19515 * xfaces.c: Delete unused function prototypes.
19516 (xstrlwr, font_frame): Delete them.
19517 (clear_face_cache): Delete unused variable.
19519 * xftfont.c (xftfont_open): Delete unused variable.
19520 If underline_thickness is not 1, adjust underline_position.
19522 * ftxfont.c (ftxfont_open): Delete unused variable.
19524 * fontset.c (face_for_char): Optimize for the case of no charset
19527 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
19528 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
19529 (otf_open, font_otf_capability, generate_otf_features)
19530 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
19531 Comment out by surrounding "#if 0" and "#endif" for the moment.
19532 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
19533 (syms_of_font): Codes for accessing above commented out.
19535 2008-05-24 Eli Zaretskii <eliz@gnu.org>
19537 * w32proc.c: Include dispextern.h.
19539 * w32.c: Include dispextern.h.
19541 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
19543 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
19544 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
19545 Fix typos in docstrings.
19547 2008-05-23 Jason Rumney <jasonr@gnu.org>
19549 * xsmfns.c: Remove includes that are already included by config.h.
19551 2008-05-23 Kenichi Handa <handa@m17n.org>
19553 * charset.c (Qemacs, charset_emacs): New variables.
19554 (char_charset): Fix for non-Unicode characters.
19555 (syms_of_charset): Define charset_emacs.
19557 * w32term.c (x_draw_glyph_string): Be sure to update
19558 s->underline_thickness and s->underline_position. Be sure to draw
19559 underline within the current line area.
19561 * xterm.c (x_draw_glyph_string): Be sure to update
19562 s->underline_thickness and s->underline_position. Be sure to draw
19563 underline within the current line area.
19565 * fontset.c: Delete unused variables and add casting for char *
19566 throughout the file.
19567 (fontset_font): Try the fallback fonts of the current fontset
19568 before consulting the default fontset.
19570 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
19572 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
19574 2008-05-22 Jason Rumney <jasonr@gnu.org>
19576 * font.c: Don't include strings.h.
19578 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
19580 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
19581 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
19582 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
19583 to call xstrcasecmp.
19585 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
19587 * fontset.c (fs_query_fontset): Use xstrcasecmp.
19589 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
19591 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
19593 2008-05-22 Kenichi Handa <handa@m17n.org>
19595 * puresize.h (BASE_PURESIZE): Increase to 1220000.
19597 * font.c (font_prop_validate_style): Adjust for the format
19598 change of font_style_table.
19600 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
19603 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
19606 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
19608 * minibuf.c (keys_of_minibuf): Delete.
19609 * lisp.h (keys_of_minibuf): Delete.
19610 * emacs.c (main): Don't call keys_of_minibuf.
19612 2008-05-22 Kenichi Handa <handa@m17n.org>
19614 * ftfont.c (ftfont_resolve_generic_family): Rename from
19615 ftfont_list_generic_family. Return a single family for each
19617 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
19618 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
19620 (ftfont_match): Call font_add_log.
19622 * font.h (Ffont_xlfd_name): EXFUN adjusted.
19623 (FONT_DEBUG): Define it.
19624 (font_add_log): Extern it.
19625 (font_assert): Rename from xassert.
19627 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
19628 (xfont_list_family): Call font_add_log.
19629 (xfont_match): Likewise.
19630 (memq_no_quit): Delete.
19632 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
19633 call of Ffont_xlfd_name.
19635 * xfaces.c (struct table_entry, slant_table, weight_table)
19636 (swidth_table): Move to font.c.
19638 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
19639 xassert are changed to font_assert. Delete many unused variables.
19640 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
19642 (struct table_entry): Move from xfaces.c and modified.
19643 (weight_table, slant_table, width_table): Move from xfaces.c and
19644 contents adjusted for the change of struct table_entry.
19645 (font_style_to_value, font_style_symbolic): Adjust for the
19646 format change of font_style_table.
19647 (font_parse_family_registry): Don't overwrite existing foundry and
19648 family of font_spec.
19649 (font_score): Fix calculation of diff for sizes.
19650 (font_sort_entites): Call font_add_log.
19651 (font_delete_unmatched): Return a newly created list.
19652 (font_list_entities): Fix previous change. Call font_add_log.
19653 (font_matching_entity, font_open_entity, font_close_entity):
19655 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
19656 (Finternal_set_font_style_table): Delete.
19657 (BUILD_STYLE_TABLE): New macro.
19658 (build_style_table): New function.
19659 (Vfont_log, font_log_env_checked): New variables.
19660 (font_add_log): New function.
19661 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
19662 Declare Lisp variables "font-weight-table", "font-slant-table",
19663 "font-width-table", and "font-log". Initialize font_style_table.
19665 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
19667 * xterm.c (x_set_frame_alpha): Move declarations before statements.
19669 2008-05-21 Seiji Zenitani <zenitani@mac.com>
19670 Ryo Yoshitake <ryo@shiftmode.net>
19672 * frame.c (Qalpha): Add a new frame parameter `alpha'.
19673 (Vframe_alpha_lower_limit): New variable.
19674 (x_set_alpha): New function.
19676 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
19678 * xfns.c (x-create-frame, Qalpha):
19679 Initialize the frame parameter `alpha'.
19680 * xterm.c (OPAQUE, OPACITY): New.
19681 (x_set_frame_alpha): New function.
19682 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
19684 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
19685 * w32fns.c (w32_frame_parm_handlers): Likewise.
19687 2008-05-20 Jason Rumney <jasonr@gnu.org>
19689 * w32font.c (add_font_entity_to_list): Don't add non-opentype
19690 truetype fonts to opentype list.
19692 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
19694 * fontset.c (Ffontset_info): Doc fix.
19695 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
19696 <ignore-relative-composition>: Fix typos in docstrings.
19698 * font.c (syms-of-font) <font-encoding-alist>:
19699 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
19700 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
19701 (Ffont_otf_alternates): Doc fixes.
19703 2008-05-20 Kenichi Handa <handa@m17n.org>
19705 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
19706 font.h through out the file.
19707 (FONT_DRIVERS): Rename from FONTOBJ.
19708 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
19709 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
19711 * emacs.c (main): Call syms_of_font unconditionally.
19713 * font.h (find_font_encoding): Extern it.
19715 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
19717 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
19718 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
19719 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
19720 only when HAVE_WINDOW_SYSTEM is defined.
19721 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
19722 when HAVE_WINDOW_SYSTEM is defined.
19724 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
19725 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
19727 * xfaces.c: Include font.h unconditionally.
19728 (merge_face_ref, merge_face_vectors)
19729 (Finternal_set_lisp_face_attribute): Cancel the previous change.
19731 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
19733 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
19735 * eval.c (lisp_indirect_variable): New fun.
19736 (Fuser_variable_p): Use it.
19738 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
19740 * lisp.h (indirect_variable):
19741 * data.c (indirect_variable, let_shadows_buffer_binding_p):
19742 Use Lisp_Symbol pointers rather than Lisp_Object.
19744 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
19745 To this end, change calling-convention.
19747 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
19748 if some non-hidden buffers are selected by string&pred.
19750 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
19752 * process.c (wait_reading_process_output): Always check status
19753 when in batch mode.
19755 2008-05-19 Kenichi Handa <handa@m17n.org>
19757 * font.c (font_list_entities): Fix handling of cache.
19758 (font_matching_entity): Likewise.
19760 * ftfont.c (cs_iso8859_1): Delete.
19761 (ft_face_cache): New variable.
19762 (struct ftfont_info): New member fc_charset_idx.
19763 (ftfont_build_basic_charsets): Delete.
19764 (fc_charset_table): New variable.
19765 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
19766 . FC_CHARSET_IDX) as :font-entity property in the font entity.
19768 (ftfont_lookup_cache, ftfont_get_charset): New functions.
19769 (ftfont_spec_pattern): New argument fc_charset_idx.
19770 Check registry more rigidly. Change callers.
19771 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
19772 change of :font-entity property of the font.
19774 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
19775 property of the font.
19777 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
19779 * coding.c (Fcoding_system_p): Rename argument to match docstring.
19780 (Funencodable_char_position, Fcheck_coding_systems_region)
19781 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
19782 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
19783 (Ffind_operation_coding_system, Fset_coding_system_priority)
19784 (Fcoding_system_eol_type): Doc fixes.
19786 2008-05-17 Glenn Morris <rgm@gnu.org>
19788 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
19790 2008-05-16 Eli Zaretskii <eliz@gnu.org>
19792 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
19795 * frame.c (Fdelete_frame): Don't call font_update_drivers if
19796 HAVE_WINDOW_SYSTEM is not defined.
19798 * xfaces.c (merge_face_ref, merge_face_vectors)
19799 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
19800 HAVE_WINDOW_SYSTEM is defined.
19801 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
19803 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
19805 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
19807 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19809 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
19811 2008-05-15 Kenichi Handa <handa@m17n.org>
19813 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
19816 2008-05-15 Glenn Morris <rgm@gnu.org>
19818 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
19820 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
19822 * fns.c (init_fns): Don't initialize weak_hash_tables here.
19823 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
19825 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
19827 2008-05-15 Kenichi Handa <handa@m17n.org>
19829 * ftfont.c (ftfont_list): Downcase family name to check generic
19832 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
19833 font-spec for QCfont value.
19835 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
19836 buffer. Check the return value of it.
19838 2008-05-14 Jason Rumney <jasonr@gnu.org>
19840 * w32term.c (w32_get_glyph_overhangs): Remove.
19841 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
19843 2008-05-14 Kenichi Handa <handa@m17n.org>
19845 * font.c (font_prop_validate): Make nil a valid value.
19846 (font_clear_cache): Check if the cached vector of entities is nil
19849 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19851 * emacs.c (main_thread): Conditionalize on
19852 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
19853 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
19855 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
19856 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
19857 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
19859 2008-05-14 Kenichi Handa <handa@m17n.org>
19861 * coding.c (detect_coding_iso_2022): Ignore a coding category that
19862 has no corresponding coding system.
19864 2008-05-14 Jason Rumney <jasonr@gnu.org>
19866 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
19868 * w32font.h (w32font_open_internal): Update declaration.
19870 * w32font.c (w32font_open_internal): Change last argument from
19871 w32font_info struct to font object. Fill in font object from
19872 font_entity. Get Outline metrics if possible. Use them to
19873 calculate underline position and thickness. Use xlfd name as name
19874 property. Don't set codepage.
19875 (w32font_open): Pass font_object to w32font_open_internal. Don't
19876 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
19877 (w32font_draw): Use s->font.
19878 (clear_cached_metrics): Don't clear non-existent blocks.
19880 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
19881 font was not found.
19882 (x_draw_glyph_string): Use underline position and thickness from font.
19884 * w32uniscribe.c (uniscribe_open): Pass font_object to
19885 w32font_open_internal.
19887 2008-05-14 Kenichi Handa <handa@m17n.org>
19889 These changes are to delete all legacy font-handling codes, and
19890 make Emacs use only font-backends.
19892 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
19893 (frame.o, image.o, print.o): Depend on $(FONTSRC).
19895 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
19897 * charset.h (Vcharset_non_preferred_head)
19898 (Vcurrent_iso639_language): Extern them.
19900 * charset.c (Vcharset_non_preferred_head): New variable.
19901 (Vcurrent_iso639_language): New variable.
19902 (syms_of_charset): Declare it as a Lisp variable.
19903 (char_charset): Don't check non preferred charsets. As a last
19904 resort, return charset_unicode.
19905 (Fset_charset_priority): Update Vcharset_non_preferred_head.
19907 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
19908 conditionals. Don't check enable_font_backend. Delete all codes
19909 used only when USE_FONT_BACKEND is not defined.
19911 * dispextern.h (struct glyph_string): Change type of `font' to
19913 (struct glyph_string): New member underline_position and
19914 underline_thickness.
19915 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
19916 (struct face): Change type of `font' to `struct font *'.
19917 Remove members `font_name', `font_info_id'.
19918 (per_char_metric, encode_char): Delete externs.
19919 (calc_pixel_width_or_height): Adjust the prototype.
19921 * emacs.c (enable_font_backend): Delete extern.
19922 (main): Don't set enable_font_backend. Don't check the command
19923 line argument "-disable-font-backend".
19925 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
19926 (enum font_property_index): New members FONT_DPI_INDEX,
19927 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
19928 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
19929 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
19930 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
19931 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
19932 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
19933 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
19934 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
19935 (struct font_spec, struct font_entity): New structs.
19936 (FONT_ENCODING_NOT_DECIDED): Move from fontset.h.
19937 (struct font): Many members from old "struct font_info" moved to
19938 here. Members font and entity deleted.
19939 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
19940 the new font-related objects.
19941 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
19942 (CHECK_FONT_GET_OBJECT): Likewise.
19943 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
19944 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move from font.h.
19945 (struct font_driver): New members case_sensitive anc check.
19946 Type of the member list and open changed.
19947 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
19948 (font_symbolic_width, font_find_object, font_get_spec)
19949 (font_set_lface_from_name): Delete extern.
19950 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
19952 * font.c: Include <strings.h>.
19953 (enable_font_backend): Delete it.
19954 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
19955 (CHECK_VALIDATE_FONT_SPEC): Delete it.
19956 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move to font.h.
19957 (null_string): Delete it.
19958 (null_vector): Make it static.
19959 (font_family_alist): Delete it.
19960 (Qnormal): Extern it.
19961 (QCextra, QClanguage): Delete it.
19962 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
19963 (font_make_spec, font_make_entity, font_make_object)
19964 (font_intern_prop): Rename from intern_downcase. Don't downcase
19965 the string. Callers changed.
19966 (font_pixel_size): Adjust for the format change of font-related
19968 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
19969 (font_style_to_value, font_style_symbolic): New function.
19970 (build_font_family_alist): Delete it.
19971 (font_registry_charsets): Use Fassoc_string instead of
19973 (font_prop_validate_symbol): Don't return null_string.
19974 (font_prop_validate_style): Adjust for the change of
19975 style-related values in a font vector.
19976 (font_property_table): Delete entries for QClanguage and
19977 QCantialias, add entries for QCavgwidth.
19978 (get_font_prop_index): Delete the 2nd argument FROM.
19979 (font_prop_validate): Arguments changed.
19980 (font_put_extra): Adjust for the change of font-related objects.
19981 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
19982 (font_parse_fcname, font_unparse_fcname)
19983 (font_prepare_composition): Likewise.
19984 (font_parse_family_registry): Rename from font_merge_old_spec.
19985 (otf_open): Delete the 1st arg entity.
19986 (font_otf_capability): Adjust for the above change.
19987 (font_score): New arg alternate_families. Adjusted for the change
19988 of font-related objects.
19989 (font_sort_entites): New arg best_only.
19990 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
19992 (font_match_p): Check alternate families.
19993 (font_find_object): Delete it.
19994 (font_check_object): New function.
19995 (font_clear_cache): Adjust for the change of font-related objects.
19996 (font_delete_unmatched): New arg.
19997 (font_list_entities): Call font_driver->list with a spec that
19998 doesn't specify style-related properties.
19999 (font_matching_entity): Arguments changed. Caller changed.
20000 (font_open_entity): Adjust for the change of font-related objects.
20001 (font_close_object, font_has_char, font_encode_char)
20002 (font_get_name, font_get_spec): Likewise.
20003 (font_spec_from_name, font_clear_prop, font_update_lface):
20005 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
20006 (font_prepare_for_face, font_done_for_face, font_open_by_name)
20007 (font_at): Adjust for the change of font-related objects.
20008 (font_range): New function.
20009 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
20010 (Ffont_xlfd_name): Adjust for the change of font-related objects.
20011 (Fcopy_font_spec, Fmerge_font_spec): New function.
20012 (Ffont_family_list): Rename from list-families.
20013 (Finternal_set_font_style_table): Arguments changed.
20014 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
20015 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjust for the
20016 change of font-related objects.
20017 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
20019 * fontset.h (struct font_info): Delete it. Most members go to
20021 (FONT_ENCODING_NOT_DECIDED): Move to font.h.
20022 (enum FONT_SPEC_INDEX): Delete it.
20023 (font_info, list_fonts_func, load_font_func, query_font_func)
20024 (set_frame_fontset_func, find_ccl_program_func)
20025 (get_font_repertory_func, new_fontset_from_font_name):
20027 (fontset_from_font_name): Extern it.
20028 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
20029 (FONT_INFO_FROM_FACE): Deleted.
20030 (face_for_font): Adjust prototype.
20032 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
20033 conditionals. Don't check enable_font_backend. Delete all codes
20034 used only when USE_FONT_BACKEND is not defined.
20035 (get_font_info_func, list_font_func, load_font_func)
20036 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
20037 (get_font_repertory_func): Delete them.
20038 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
20039 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
20040 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
20041 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
20042 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
20043 (fontset_compare_rfontdef): New function.
20044 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
20045 rfont-defs by qsort. Adjusted for the change of font-group vector.
20046 (load_font_get_repertory): Deleted.
20047 (fontset_find_font): Use new macros to ref/set elements of
20048 font-def and rfont-def.
20049 (fontset_font): Fix the timing of remembering that no font for C.
20050 (free_face_fontset): Do nothing if the face has no fontset.
20051 (face_suitable_for_char_p): Use new macros to ref/set elements of
20053 (face_for_char): Likewise. Call face_for_char with font_object.
20054 (fs_load_font): Delete. Delete #pragma surrounding it.
20055 (fs_query_fontset): Use strcasecmp instead of strcmp.
20056 (generate_ascii_font_name): Adjust for the format change of
20058 (Fset_fontset_font): Likewise. Use new macros to set elements of
20060 (Fnew_fontset): Use font_unparse_xlfd to generate
20061 FONTSET_ASCII (fontset).
20062 (new_fontset_from_font_name): Deleted.
20063 (fontset_from_font): Rename from new_fontset_from_font. Check if
20064 a fontset is already created for the font. FIx updating of
20065 Vfontset_alias_alist.
20066 (fontset_ascii_font): Deleted.
20067 (Ffont_info): Adjust for the format change of font-spec.
20068 (Finternal_char_font): Likewise.
20069 (Ffontset_info): Likewise.
20070 (syms_of_fontset): Don't check load_font_func.
20072 * fns.c (internal_equal): Handle PREV_FONT.
20074 * frame.h: Delete USE_FONT_BACKEND conditional.
20076 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
20077 conditionals. Don't check enable_font_backend. Delete all codes
20078 used only when USE_FONT_BACKEND is not defined.
20079 (x_set_font): Call x_new_font, not x_new_fontset2.
20080 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
20081 already set for the frame.
20083 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed.
20084 Make a font-entity by font_make_entity. Use font_intern_prop instead
20085 of intern_downcase. Use FONT_SET_STYLE to set a style-related
20086 font property. If a font is scalable, set avgwidth property to 0.
20087 Set font-entity property by font_put_extra.
20088 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
20089 (ffont_driver): Adjust for the change of struct font_driver.
20090 (ftfont_spec_pattern): New function.
20091 (ftfont_list): Return a list, not vector.
20092 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
20093 (ftfont_list_family): Don't downcase names.
20094 (ftfont_free_entity): Deleted.
20095 (ftfont_open): Return a font-object. Adjusted for the change of
20096 struct font. Get underline_thickness and underline_position from
20097 font property. Don't update dpyinfo->smallest_font_height and
20098 dpyinfo->smallest_char_width.
20099 (ftfont_close): Don't free `struct font'.
20100 (ftfont_has_char): Adjust for the format change of font-entity.
20101 (ftfont_encode_char, ftfont_text_extents): Likewise.
20103 * ftxfont.c (ftxfont_list): Return a list, not vector.
20104 (ftxfont_open): Return a font-object. Adjusted for the change of
20105 struct font. Get underline_thickness and underline_position from
20106 font property. Don't update dpyinfo->smallest_font_height and
20107 dpyinfo->smallest_char_width.
20108 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
20109 (ftxfont_draw): Adjust for the change of struct font.
20111 * image.c (image_ascent): Don't include "charset.h".
20112 Include "character.h" and "font.h".
20114 * lisp.h (enum pvec_type): New member PREV_FONT.
20115 (Fassoc_string): EXFUN it.
20117 * print.c: Include font.h.
20118 (print_object): Handle font-related objects.
20120 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
20121 conditionals. Don't check enable_font_backend. Delete all codes
20122 used only when USE_FONT_BACKEND is not defined.
20123 (handle_auto_composed_prop): Do nothing if it->f is not on a
20124 window system. Check how many following characters can be
20125 displayed by the same font.
20126 (calc_pixel_width_or_height): Type of the 4th arg is changed to
20128 (get_char_face_and_encoding): Assign the whole encoding task to
20129 the `encode-char' method of a font driver.
20130 (fill_composite_glyph_string): Adjust for the change of `struct
20131 face' and `struct glyph_string'.
20132 (fill_glyph_string): Likewise.
20133 (get_per_char_metric): Arguments changed.
20134 (x_get_glyph_overhangs): Adjust for the change of `struct face'
20135 and `struct glyph_string'.
20136 (produce_stretch_glyph, calc_line_height_property)
20137 (x_produce_glyphs): Likewise.
20139 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
20140 conditionals. Don't check enable_font_backend. Delete all codes
20141 used only when USE_FONT_BACKEND is not defined.
20142 Use FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
20143 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
20145 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
20147 (struct font_name): Deleted.
20148 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
20149 (compare_fonts_by_sort_order): New function.
20150 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
20151 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
20153 (Fx_family_fonts): Use font_list_entities, and sort fonts by
20154 compare_fonts_by_sort_order.
20155 (Fx_font_family_list): Call Ffont_family_list.
20156 (face_numeric_value, face_numeric_weight, face_numeric_slant)
20157 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
20158 (face_symbolic_slant, face_symbolic_swidth)
20159 (split_font_name_into_vector, build_font_name_from_vector)
20160 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
20161 (font_rescale_ratio, split_font_name, build_font_name)
20162 (free_font_names, sort_fonts, x_face_list_fonts)
20163 (face_font_available_p, sorted_font_list, cmp_font_names)
20164 (font_list_1, concat_font_list, font_list, remove_duplicates):
20166 (Fx_list_fonts): Use Ffont_list.
20167 (LFACE_AVGWIDTH): Deleted.
20168 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
20170 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
20171 (set_lface_from_font_name): Delete it.
20172 (set_lface_from_font): Rename from
20173 set_lface_from_font_and_fontset. Caller changed. Don't set
20174 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
20176 (merge_face_vectors): Copy font-spec if necessary.
20177 Clear properties of the font-spec if necessary.
20178 (merge_face_ref): Clear properties of the font-spec if necessary.
20179 (Finternal_set_lisp_face_attribute): Likewise.
20180 (set_font_frame_param): Use font_load_for_lface to load a
20181 font-object, and call Fmodify_frame_parameters with it.
20182 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
20183 font name by Ffont_xlfd_name.
20184 (Finternal_lisp_face_attribute_values): Don't check QCweight,
20185 QCslant, and QCwidth.
20186 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
20187 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
20188 Compare fonts by EQ.
20189 (lookup_non_ascii_face): Deleted.
20190 (face_for_font): The 2nd argument changed.
20191 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
20192 Check atomic font properties by case insensitive.
20193 (realize_non_ascii_face): Set face->overstrike correctly.
20194 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
20195 (dump_realized_face): Get font name from
20196 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
20198 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
20199 conditionals. Don't check enable_font_backend. Delete all codes
20200 used only when USE_FONT_BACKEND is not defined.
20201 (xic_create_xfontset): Original code deleted and renamed from
20202 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
20203 (x_make_gc): Don't set GCFont in GCs.
20204 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
20206 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
20207 find_ccl_program_func, query_font_func, set_frame_fontset_func,
20208 get_font_repertory_func.
20210 * xfont.c: Include <stdlib.h> and "ccl.h".
20211 (struct xfont_info): New structure.
20212 (xfont_query_font): Deleted.
20213 (xfont_find_ccl_program): Rename from x_find_ccl_program and
20214 moved from xterm.c.
20215 (xfont_driver): Adjust for the change of struct font_driver.
20216 (compare_font_names): New function.
20217 (xfont_list_pattern): Sort font names case insensitively.
20218 Make font_entity by calling font_make_entity. Avoid auto-scaled fonts.
20219 (xfont_list): Return a list, not vector.
20220 (xfont_match): If the font doesn't have QCname property, generate
20221 a name from the other font properties.
20222 (xfont_open): Return a font-object. Adjusted for the change of
20223 struct font. Get underline_thickness and underline_position from
20224 font property. Don't update dpyinfo->smallest_font_height and
20225 dpyinfo->smallest_char_width.
20226 (xfont_close): Don't free struct font.
20227 (xfont_prepare_face): Adjust for the change of struct font.
20228 (xfont_done_face): Deleted.
20229 (xfont_has_char): Adjust for the change of struct font.
20230 (xfont_encode_char, xfont_draw): Likewise.
20231 (xfont_check): New function.
20233 * xftfont.c (xftfont_list): Adjust for the change of `list'
20235 (xftfont_match): Adjust for the format change of font-entity.
20236 (xftfont_open): Adjust for the format change of font-entity and
20237 font-object. Adjusted for the change of struct font. Return a
20238 font-object. Don't update dpyinfo->smallest_font_height and
20239 dpyinfo->smallest_char_width.
20240 (xftfont_close): Block input while calling XftFontClose.
20241 (xftfont_prepare_face): Don't block input while calling
20242 xftfont_get_colors. Adjusted for the change of struct font.
20243 (xftfont_shape): Return value of error case fixed.
20245 * xrdb.c (x_load_resources): Don't setup a fontset resource.
20247 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
20249 (FONT_WIDTH): Return (f)->max_width.
20250 (struct x_display_info): Delete member `font'.
20251 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
20252 (x_find_ccl_program, x_get_font_repertory): Delete externs.
20253 (struct x_output): Change type of `font' to `struct font *'.
20255 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
20256 conditionals. Don't check enable_font_backend. Delete all codes
20257 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
20258 (x_per_char_metric, x_encode_char): Deleted.
20259 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
20260 (x_compute_glyph_string_overhangs): Adjust for the change of
20262 (x_draw_glyph_string_foreground)
20263 (x_draw_composite_glyph_string_foreground): Likewise.
20264 (x_draw_glyph_string): Likewise. Use font->underline_position and
20265 font->underline_thickness.
20266 (x_new_font): Rename from x_new_fontset2.
20267 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
20268 (x_check_font): Call `check' method of a font driver.
20269 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
20270 (x_query_font, x_get_font_repertory): Deleted.
20271 (x_find_ccl_program): Rename and moved to xfont.c.
20272 (x_redisplay_interface): Adjust for the change of `struct
20273 redisplay_interface'.
20275 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
20276 conditionals. Don't check enable_font_backend. Delete all codes
20277 used only when USE_FONT_BACKEND is not defined. Surround non-used
20278 code by "#ifdef OLD_FONT" and "endif".
20279 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
20281 * w32font.h (struct w32font_info): New member.
20282 (FONT_COMPAT): New macro.
20283 (w32font_open_internal): Prototype adjusted.
20285 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
20286 OLD_FONT" and "endif".
20288 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
20289 conditionals. Don't check enable_font_backend. Delete all codes
20290 used only when USE_FONT_BACKEND is not defined.
20291 (w32font_open): Return a font-object. Make a font-object by
20292 font_make_object. Adjusted for the change of struct w32font_info.
20293 (w32font_close): Don't free struct font. Adjusted for the change
20294 of struct w32font_info.
20295 (w32font_encode_char, w32font_text_extents, w32font_draw):
20296 Adjust for the change of struct w32font_info.
20297 (w32font_draw): Likewise.
20298 (w32font_list_internal): Return a list, not vector.
20299 (w32font_open_internal): Change the 4th arg to font-object.
20300 Adjusted for the change of struct w32font_info and font-object format.
20301 (add_font_name_to_list): Don't downcase names.
20302 (w32_enumfont_pattern_entity): Make a font-entity by
20303 font_make_entity. Adjusted for the format change of font-entity.
20304 Use FONT_SET_STYLE to set a style-related font property. If a
20305 font is scalable, set avgwidth property to 0. Set font-entity
20306 property by font_put_extra.
20307 (font_matches_spec): Adjust for the format change of font-entity.
20308 (w32_weight_table, w32_decode_weight): New variables.
20309 (w32_encode_weight): New function.
20310 (fill_in_logfont): Adjust for the format change of font-spec.
20311 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
20313 (w32font_driver): Adjust for the change of struct font_driver.
20315 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
20316 conditionals. Don't check enable_font_backend. Surround non-used
20317 code by "#ifdef OLD_FONT" and "endif".
20318 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
20319 (FONT_AVG_WIDTH): Adjust for the change of struct font.
20321 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
20322 conditionals. Don't check enable_font_backend. Delete all codes
20323 used only when USE_FONT_BACKEND is not defined. Surround non-used
20324 code by "#ifdef OLD_FONT" and "endif".
20326 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
20327 (uniscribe_open): Return value changed to font-object.
20328 Adjusted for the format change of font-object.
20329 (uniscribe_otf_capability): Adjust for the change of struct font.
20330 (add_opentype_font_name_to_list): Don't downcase names.
20331 (uniscribe_font_driver): Adjust for the change of struct
20334 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
20336 * dispnew.c (update_frame_1): Check if tty output is still valid
20337 before flushing it.
20339 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
20341 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
20344 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
20346 * dired.c (file_name_completion): Tweak the code so as to always do it
20347 in a single pass. Tighten the scope of some variables.
20349 * dired.c (Qdefault_directory): New var.
20350 (file_name_completion): Use it instead of Fexpand_file_name.
20351 (syms_of_dired): Initialize it.
20353 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
20355 * fileio.c (double_dollars): Remove dead code.
20357 2008-05-10 Eli Zaretskii <eliz@gnu.org>
20359 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
20360 Mention w32-get-true-file-attributes in doc string.
20362 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
20364 2008-05-09 Glenn Morris <rgm@gnu.org>
20366 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
20369 2008-05-09 Eli Zaretskii <eliz@gnu.org>
20371 Support for reporting owner and group of each file on MS-Windows:
20372 * dired.c (stat_uname, stat_gname): New functions, with special
20373 implementation for w32.
20374 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
20376 * w32.c: Rename the_passwd_* to dflt_passwd_*.
20377 (dflt_group_name): New static variable.
20378 (dflt_group): Rename from the_group.
20379 (init_user_info): Init dflt_group fields. Get user's group name
20380 from LookupAccountSid.
20381 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
20382 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
20383 New initialization states.
20384 (globals_of_w32): Initialize them to zero. Initialize the default
20385 group name to "None".
20386 (GetFileSecurity_Name): New global var, the name of the function
20387 to call for GetFileSecurity.
20388 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
20389 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
20390 (get_file_security, get_security_descriptor_owner)
20391 (get_security_descriptor_group, is_valid_sid)
20392 (get_file_security_desc, get_rid, get_name_and_id)
20393 (get_file_owner_and_group): New functions.
20394 (stat): Use get_file_security_desc and get_file_owner_and_group to
20395 report the owner and primary group of each file. Don't ignore the
20396 high 32 bits of file's size, now that st_size is 64-bit wide.
20397 Fix test when to get true file attributes.
20398 (init_user_info): Use get_rid instead of equivalent inline code.
20399 (fstat): Don't ignore the high 32 bits of file's size.
20401 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
20403 * image.c (png_load): Use correct bit-depth for setting background
20406 2008-05-08 Eli Zaretskii <eliz@gnu.org>
20408 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
20411 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
20413 * font.c (Ffont_match_p): Don't use `iff' in docstring.
20415 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
20417 * macfns.c (Fx_create_frame): Make a copy of frame parameters
20418 because the original parameters are in pure storage now.
20419 (mac_window): Remove unused params. Update callers.
20421 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
20423 * lread.c (substitute_object_recurse): Use lower-level primitives.
20424 Don't signal errors when traversing sub-char-tables.
20425 Don't loop over all the possible characters when traversing char-tables.
20427 * print.c (print_preprocess): Add sub-char-tables to the print-table,
20428 just like we do in print.c.
20430 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
20432 * minibuf.c (Ftry_completion): Remove code left over from when we used
20433 scmp instead of Fcompare_strings.
20435 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
20437 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
20439 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20441 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
20442 Create bitmap context in native byte order.
20444 * macterm.c (XDrawLine)
20445 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
20446 context in native byte order.
20448 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20450 * config.in: Regenerate.
20452 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
20453 New definitions for Image I/O support.
20454 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
20455 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
20456 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
20457 (mac_data_provider_release_data, image_load_image_io)
20458 [USE_MAC_IMAGE_IO]: New functions.
20459 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
20460 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
20461 (init_image_func_pointer) [MAC_OSX]: Remove function.
20462 (image_load_quartz2d) [MAC_OSX]: Check availability of
20463 CGImageCreateWithPNGDataProvider at compile time.
20464 Use lowercase `false' for boolean constant.
20465 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
20466 Use image_load_image_io.
20467 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
20468 Don't check MyCGImageCreateWithPNGDataProvider.
20469 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
20470 Don't call init_image_func_pointer.
20472 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
20474 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
20475 Make variable non-static.
20476 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
20477 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
20479 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
20480 (RED_FROM_ULONG): Mask off higher bits.
20481 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
20483 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
20484 Include AvailabilityMacros.h.
20485 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
20486 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
20488 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
20490 * chartab.c (Fset_char_table_range): If range is t, really set all
20491 chars to that value.
20493 2008-05-03 Eli Zaretskii <eliz@gnu.org>
20495 * dired.c (Ffile_attributes): Don't allow the device number become
20498 2008-05-02 Daiki Ueno <ueno@unixuser.org>
20500 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
20502 2008-05-02 Juri Linkov <juri@jurta.org>
20504 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
20505 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
20506 DEFAULT argument as a list of default values in docstrings.
20508 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
20510 * puresize.h (BASE_PURESIZE): Increase to 1210000.
20512 2008-05-01 Martin Rudalics <rudalics@gmx.at>
20514 * dispnew.c (change_frame_size_1): Preserve small windows when
20515 shrinking frames by calling set_window_height|width with third
20518 * window.h (struct window): Replace field too_small_ok by field
20519 resize_proportionally.
20521 * window.c (make_window): Initialize resize_proportionally.
20522 (enlarge_window): Temporarily set resize_proportionally to make
20523 sure that shrink_windows does scale the window proportionally.
20524 (shrink_windows): When window has resize_proportionally set try
20525 to shrink it proportionally by stealing from other windows.
20526 (struct saved_window, Fset_window_configuration)
20527 (compare_window_configurations): Handle resize_proportionally.
20528 (WINDOW_TOTAL_SIZE): New macro.
20529 (window_min_size, shrink_windows, size_window): Use it.
20530 (check_min_window_sizes): Remove. Invalid values of
20531 window-min-height|width are handled by window_min_size_2 now.
20532 (size_window, Fsplit_window, enlarge_window)
20533 (adjust_window_trailing_edge, grow_mini_window): Don't call
20534 check_min_window_sizes.
20535 (window_min_size_2, window_min_size_1, window_min_size):
20536 New argument safe_p for retrieving "safe" minimum sizes.
20537 (Fdisplay_buffer, Fsplit_window, enlarge_window)
20538 (adjust_window_trailing_edge, grow_mini_window):
20539 Adjust arguments of window_min_size... functions.
20540 (shrink_windows): Argument min_size removed. New argument
20541 safe_p allows shrinking windows to their safe minimum sizes.
20542 Calculate minimum size and decide whether a window shall be
20543 deleted for each window individually.
20544 (size_window): When nodelete_p equals 2, tell shrink_windows to
20545 delete windows only if their new minimum size is no more safe.
20546 (shrink_window_lowest_first): Call window_min_size_1 to make
20547 sure to preserve modeline of bottom-most window when resizing
20549 (Fset_window_configuration, Fcurrent_window_configuration)
20550 (compare_window_configurations): Do not handle
20551 window-min-height|width any more.
20552 (syms_of_window): Clarify window-min-height|width doc-strings.
20554 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
20556 * dired.c (file_name_completion): Fix up the encoding/decoding issue
20557 some more. Copy some of the code from Ftry_completions.
20558 Remove special case code that dates back to initial revision when the
20559 slash was only added when necessary and that can't trigger nowadays.
20561 2008-04-27 Kenichi Handa <handa@m17n.org>
20563 * font.c (font_prop_validate): Signal `error' instead of `font'.
20565 2008-04-29 Jason Rumney <jasonr@gnu.org>
20567 * w32fns.c (Fw32_battery_status): New defun.
20568 (syms_of_w32fns): Defsubr it.
20570 2008-04-28 Andreas Schwab <schwab@suse.de>
20572 * dired.c (file_name_completion): Fix another mixing of encoded
20575 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
20577 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
20579 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
20581 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
20583 2008-04-27 Andreas Schwab <schwab@suse.de>
20585 * dired.c (file_name_completion): Fix inappropriate mixing of
20586 encoded and decoded names.
20588 * xterm.c (XTread_socket): Fix use of uninitialized variable.
20590 * puresize.h (BASE_PURESIZE): Increase to 1200000.
20592 2008-04-26 Eli Zaretskii <eliz@gnu.org>
20594 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
20595 2008-03-31, it's not needed anymore with `struct stat' definition
20596 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
20597 for the same reasons.
20599 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
20601 * m/sparc.h: Additional redefinitions for GNU/Linux.
20603 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20605 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
20606 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
20607 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
20608 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
20609 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
20610 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
20611 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20614 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
20615 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
20616 (mac_ax_number_of_characters): Add externs.
20617 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
20618 [USE_MAC_TSM]: Likewise.
20619 (mac_handle_text_input_event) [MAC_OSX]:
20620 Handle kEventTextInputOffsetToPos for no active input area case.
20621 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
20622 (mac_handle_document_access_event)
20623 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
20624 (install_application_handler) [MAC_OSX]: Register handlers for
20625 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
20626 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20627 Register mac_handle_document_access_event.
20629 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
20630 Make functions non-static.
20632 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
20634 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
20635 (read_file_name_completion_ignore_case, insert_default_directory)
20636 (Qdefault_directory): Move to minibuffer.el.
20637 (Fread_file_name): Call the new `read-file-name' instead.
20639 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20641 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
20642 Make function non-static.
20643 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
20645 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
20646 Move to mactoolbox.c.
20647 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
20649 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
20650 (mac_rect_make): New macro.
20652 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
20654 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
20655 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
20656 (XSetBackground) [USE_CG_DRAWING]: Likewise.
20657 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
20659 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
20660 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
20661 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
20662 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
20663 instead of WindowRef in argument type.
20664 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
20665 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
20666 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
20667 instead of DISPLAY. All uses changed.
20668 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
20669 (x_calc_absolute_position): Simplify so as not to use
20670 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
20672 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
20673 instead of WindowRef in argument type.
20674 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
20675 [TARGET_API_MAC_CARBON]: Remove externs.
20676 (create_apple_event, mac_event_parameters_to_lisp)
20677 [TARGET_API_MAC_CARBON]: Add externs.
20679 * mactoolbox.c (Vmac_ts_script_language_on_focus)
20680 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
20681 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
20683 (x_activate_menubar): Remove extern for saved_menu_event_location.
20684 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
20687 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20689 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
20690 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
20692 2008-04-23 Jason Rumney <jasonr@gnu.org>
20694 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
20695 attributes only for local files.
20697 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
20700 2008-04-22 Juri Linkov <juri@jurta.org>
20702 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
20703 read-buffer-to-switch instead of using the letter "B".
20705 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
20707 * fileio.c (Qdefault_directory): New variable.
20708 (Fread_file_name): Use it to pass `dir' to the completion functions.
20710 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
20712 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
20714 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
20716 * keyboard.c (Vpre_help_message): Remove.
20717 (show_help_echo): Remove default C code.
20719 * dired.c (directory_files_internal, file_name_completion):
20720 Only call ENCODE_FILE if the string is indeed decoded.
20722 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
20724 * Makefile.in (TOOLKIT_DEFINES): Remove.
20725 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
20727 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20729 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
20730 (mactoolbox.o): New target.
20732 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
20733 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
20735 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
20736 Use mac_set_frame_window_background instead of XSetWindowBackground.
20737 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
20738 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
20739 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
20740 instead of SetWindowTitleWithCFString.
20741 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
20742 Move function to mactoolbox.c.
20743 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
20744 Use mac_set_window_modified instead of SetWindowModified.
20745 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
20746 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
20747 (Fx_focus_frame): Use mac_front_non_floating_window instead of
20748 FrontNonFloatingWindow. Use mac_activate_window instead of
20749 ActivateWindow. Use mac_active_non_floating_window instead of
20750 ActiveNonFloatingWindow.
20751 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
20752 Use mac_show_hourglass and mac_hide_hourglass.
20753 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
20754 instead of GetGlobalMouse.
20755 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
20756 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
20757 Use mac_bring_window_to_front instead of BringToFront.
20758 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
20760 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
20761 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
20762 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
20765 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
20766 (XtPointer): Move typedef from macmenu.c.
20767 (enum button_type): Move enum from macmenu.c.
20768 (widget_value): Move typedef from macmenu.c.
20769 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
20770 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
20771 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
20772 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
20773 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
20774 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
20775 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
20776 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
20777 (Selection): Move typedef from macselect.c.
20778 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
20780 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
20781 (mac_is_window_collapsed, mac_bring_window_to_front)
20782 (mac_send_window_behind, mac_hide_window, mac_show_window)
20783 (mac_collapse_window, mac_front_non_floating_window)
20784 (mac_active_non_floating_window, mac_activate_window)
20785 (mac_move_window_structure, mac_move_window, mac_size_window)
20786 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
20788 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
20789 (enum mac_menu_kind): Move enum to mactoolbox.c.
20790 (min_menu_id): Move variable to mactoolbox.c.
20791 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
20792 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
20793 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
20794 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
20795 [TARGET_API_MAC_CARBON]: Likewise.
20796 (XtPointer): Move typedef to macgui.h.
20797 (enum button_type): Move enum to macgui.h.
20798 (widget_value): Move typedef to macgui.h.
20799 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
20800 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
20801 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
20802 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
20803 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
20804 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
20805 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
20806 (popup_activated_flag): Make variable non-static.
20807 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
20808 (add_menu_item, fill_menu, dispose_menus):
20809 Move functions to mactoolbox.c.
20810 (restore_show_help_function, menu_target_item_handler)
20811 (install_menu_target_item_handler, mac_handle_dialog_event)
20812 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
20813 [TARGET_API_MAC_CARBON]: Likewise.
20814 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
20815 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
20816 (find_and_call_menu_selection, name_is_separator): Make function
20818 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
20820 (set_frame_menubar): Don't call install_menu_quit_handler.
20821 (menu_item_selection): New variable.
20822 (mac_menu_show): Use create_and_show_popup_menu.
20823 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
20824 selection but set variable menu_item_selection. All uses changed.
20825 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
20826 Call install_menu_quit_handler. Move to mactoolbox.c.
20828 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
20829 (Selection): Move typedef to macgui.h.
20830 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
20831 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
20832 Make variables non-static.
20833 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
20834 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
20835 Make functions non-static.
20836 (Vmac_service_selection) [MAC_OSX]: Likewise.
20837 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
20838 (mac_valid_selection_target_p, mac_clear_selection)
20839 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
20840 (mac_put_selection_value, mac_selection_has_target_p)
20841 (mac_get_selection_value, mac_get_selection_target_list)
20842 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
20843 Move functions to mactoolbox.c.
20844 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
20846 (copy_scrap_flavor_data, mac_handle_service_event)
20847 (install_service_handler) [MAC_OSX]: Likewise.
20848 (syms_of_macselect) <Vmac_dnd_known_types>:
20849 Use mac_dnd_default_known_types.
20851 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
20852 Move to mactoolbox.c.
20853 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
20854 (Fx_selection_owner_p): Add EXFUN.
20855 (install_window_handler, remove_window_handler, XSetWindowBackground):
20857 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
20858 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
20859 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
20860 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
20861 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
20862 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
20863 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
20864 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
20865 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
20866 (create_and_show_popup_menu, mac_get_selection_from_symbol)
20867 (mac_valid_selection_target_p, mac_clear_selection)
20868 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
20869 (mac_put_selection_value, mac_selection_has_target_p)
20870 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
20871 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
20872 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
20873 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
20874 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
20875 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
20876 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
20877 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
20878 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
20880 * mactoolbox.c: New file.
20882 2008-04-18 Jason Rumney <jasonr@gnu.org>
20884 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
20886 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
20888 * character.c (Fmultibyte_char_to_unibyte):
20889 Return latin1 chars unchanged.
20891 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
20892 relocated if it points to `name'.
20894 2008-04-17 Kenichi Handa <handa@m17n.org>
20896 * data.c (Faset): Allow setting a multibyte character in an
20897 ASCII-only unibyte string.
20899 * lisp.h (STRING_SET_MULTIBYTE): New macro.
20901 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
20903 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
20906 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
20908 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
20909 (Fchar_direction): Add usage in the docstring.
20911 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
20913 * keyboard.c (read_key_sequence): Remove always-true checks.
20915 2008-04-14 Jason Rumney <jasonr@gnu.org>
20917 * w32font.c (w32font_open_internal): Set max_bounds.descent in
20918 compatibility struct, for better underline positioning.
20920 2008-04-13 David Hansen <david.hansen@gmx.net>
20922 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
20925 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
20927 * m/hp800.h (XUINT, XSET): Remove.
20929 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
20931 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
20934 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
20936 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
20937 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
20939 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
20941 * keymap.h (map_keymap_canonical): Declare.
20942 * xmenu.c (single_keymap_panes): Use it.
20944 2008-04-11 Glenn Morris <rgm@gnu.org>
20946 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
20947 set the target's value to that of the alias.
20949 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
20951 * term.c (set_tty_color_mode): Left over typo.
20953 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
20955 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
20956 only after check for file name handler functions. Signal, when
20957 native functionality is not supported.
20958 (syms_of_fileio): Declare it unconditionally.
20960 2008-04-10 Jason Rumney <jasonr@gnu.org>
20962 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
20963 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
20965 * w32.c (logon_network_drive): Also logon to remote drives that
20966 are mapped to drive letters.
20968 2008-04-10 Glenn Morris <rgm@gnu.org>
20970 * xdisp.c (truncate-partial-width-windows): Doc fix.
20972 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
20974 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
20975 Move functions to minibuffer.el.
20976 (syms_of_fileio): Don't declare them.
20978 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
20980 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
20981 (syms_of_minibuf): Remove its initialization.
20983 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
20985 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
20987 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
20989 2008-04-09 Jason Rumney <jasonr@gnu.org>
20991 * makefile.w32-in (distclean): Delete makefile too.
20992 (maintainer-clean): New target.
20994 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
20996 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
20997 for new font backend and composite cases.
20999 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
21001 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
21002 Most of the code moved to run_timers.
21003 (do_pending_atimers): Call run_timers.
21004 (run_timers): New function.
21006 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
21009 * process.c (wait_reading_process_output): The same as above.
21011 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
21013 * minibuf.c (last_exact_completion): Remove variable.
21014 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
21015 (complete_and_exit_1, complete_and_exit_2)
21016 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
21017 (Fdisplay_completion_list, display_completion_list_1)
21018 (Fminibuffer_completion_help, Fself_insert_and_exit)
21019 (Fexit_minibuffer, Fminibuffer_message): Move functions to
21021 (syms_of_minibuf): Remove corresponding initializations.
21023 * keyboard.c (Qdeactivate_mark): New var.
21024 (command_loop_1): Use it to call `deactivate-mark'.
21025 (syms_of_keyboard): Initialize it.
21027 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
21029 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
21030 Don't call set_tty_color_mode.
21031 (store_frame_param): Reset previous_frame rather than call
21032 set_tty_color_mode.
21033 * term.c (set_tty_color_mode): Rewrite.
21034 * dispextern.h (set_tty_color_mode): New type.
21035 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
21037 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
21039 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
21040 for generic chars, which do not exist any more in emacs-unicode.
21042 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
21044 * coding.c (detect_coding_emacs_mule)
21045 (Ffind_operation_coding_system): Fix typo.
21047 2008-04-08 Jason Rumney <jasonr@gnu.org>
21049 * w32uniscribe.c (SNAME): Extract only symbol name.
21051 * w32font.h (struct w32_metric_cache): New struct.
21052 (w32font_info): Use it.
21053 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
21054 (CACHE_BLOCKSIZE): New constants.
21056 * w32font.c (Qja, Qko, Qzh): New symbols.
21057 (syms_of_w32font): Initialise them.
21058 (font_matches_spec): Use them to filter by language.
21059 (recompute_cached_metrics): Remove function.
21060 (compute_metrics, clear_cached_metrics): New functions.
21061 (w32font_encode_char): Use them to manage metric cache.
21062 (w32font_text_extents): Cache metrics for all glyphs on demand.
21063 Delay converting glyph indices to WORD until needed.
21064 (w32font_open_internal): Initialize metric cache to empty.
21065 (registry_to_w32_charset): Charset should always be a symbol.
21066 (fill_in_logfont, list_all_matching_fonts): Family should
21067 always be a symbol.
21069 2008-04-06 Jason Rumney <jasonr@gnu.org>
21071 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
21072 Give up if glyph indices not supported. Use uniscribe obtained
21073 ABC widths for individual metrics. Map glyph clusters back to
21074 characters using fClusterStart flag. Return number of glyphs
21075 produced, not chars processed.
21076 (uniscribe_shape): Map char at FROM to current glyph.
21078 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21080 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
21081 Use SetMenuItemHierarchicalMenu.
21083 2008-04-05 Jason Rumney <jasonr@gnu.org>
21085 * image.c (pbm_load): Allow color values up to 65535.
21086 Throw an error if max_color_idx is outside the supported range.
21087 Report an error when image size is invalid.
21088 Read two bytes at a time when raw images have max_color_idx above 255.
21090 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
21092 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
21093 append "CCL: Quitted" when the CCL program is quitted.
21094 (setup_ccl_program): Initialize ccl->quit_silently to zero.
21096 * ccl.h (struct ccl_program): New member quit_silently.
21098 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
21100 * search.c (compile_pattern_1): Treat non-nil and non-string of
21101 search-spaces-regexp as nil.
21103 * minibuf.c (Fassoc_string): Tweak docstring.
21105 2008-04-05 Eli Zaretskii <eliz@gnu.org>
21107 * dired.c (Ffile_attributes): Support inode numbers wider than 32
21108 bits. Remove ugly WINDOWSNT-specific kludge introduced on
21109 2008-03-14 to force inode be positive.
21111 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
21112 _S_* ones, since we now use our own sys/stat.h.
21113 (stat, fstat): Don't mangle the inode number.
21114 (init_user_info): Don't restrict UID and GID to 0-60000 range.
21116 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
21118 * frame.h (struct frame): Give one more bit to `visible' since we use
21119 values larger than 1 to indicate obscured frames on ttys.
21121 * keymap.c (Qkeymap_canonicalize): New var.
21122 (Fmap_keymap_internal): New fun.
21123 (describe_map): Use keymap-canonicalize.
21125 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
21126 (Fundo_boundary): Set them.
21127 (syms_of_undo): Initialize them.
21128 (record_point): Use them instead of last_point_position*.
21129 (last_undo_buffer): Change type.
21131 2008-04-04 Jason Rumney <jasonr@gnu.org>
21133 * w32font.c (w32font_text_extents): Use font's ascent and descent.
21134 (recompute_cached_metrics): Don't set ascent and descent per char.
21136 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
21137 (uniscribe_check_otf): Add GC protection before consing.
21138 Rearrange loop for counting features.
21140 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
21142 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
21143 buffer with byte-size of source buffer.
21145 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
21147 * callint.c (Fcall_interactively): Handle temporary region even
21148 when shift-select-mode is off.
21150 2008-04-03 Jason Rumney <jasonr@gnu.org>
21152 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
21154 2008-04-03 Kenichi Handa <handa@m17n.org>
21156 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
21157 (CATEGORY_MASK_UTF_16): Likewise.
21158 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
21160 (detect_coding): Add null-byte detection for a binary file.
21161 (detect_coding_system): Likewise.
21163 2008-04-03 Jason Rumney <jasonr@gnu.org>
21165 * w32uniscribe.c: New file.
21167 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
21169 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
21171 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
21172 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
21173 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
21174 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
21175 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
21176 (Qphonetic): New symbols.
21177 (syms_of_w32font): Initialize them.
21178 (font_supported_scripts): Use them.
21179 (w32font_list_family): List all charsets.
21180 (w32font_text_extents, recompute_cached_metrics): Fix metric
21182 (w32_enumfont_pattern_entity): Make full_type a DWORD.
21183 Give opentype fonts their own format.
21184 (font_matches_spec): New arguments backend and logfont.
21185 Handle :otf spec for uniscribe backend.
21186 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
21187 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
21189 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
21191 (globals_of_w32fns): Initialize uniscribe font backend.
21193 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
21195 (w32uniscribe.$(O)): New file to build.
21196 (FONT_OBJ): Include w32uniscribe.$(O).
21197 (LIBS): Add uniscribe libraries.
21199 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
21201 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
21203 * callint.c (Vshift_select_mode): New var.
21204 (Finteractive): Document new ^ spec.
21205 (Fcall_interactively): Call handle-shift-selection if the ^ spec
21208 * keyboard.c (Vthis_command_keys_shift_translated): New var.
21209 (command_loop_1): Avoid running the direct display versions of
21210 forward-char and backward-char if shift-selection may occur.
21211 (read_key_sequence): Set Vthis_command_keys_shift_translated if
21212 shift-translation takes place.
21214 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
21215 avoid clobbering by define-minor-mode.
21217 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
21218 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
21220 * syntax.c (Fforward_word): Add ^ interactive spec.
21222 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
21223 (Fscroll_right): Add ^ interactive spec.
21225 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
21227 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
21229 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
21231 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
21233 2008-03-31 Juri Linkov <juri@jurta.org>
21235 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
21237 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
21239 * gtkutil.c (xg_set_geometry): Fix indentation.
21240 (xg_resize_outer_widget): Remove.
21241 (x_wm_size_hint_off): Fix indentation.
21242 (xg_frame_set_char_size): Call flush_and_sync after
21244 (x_wm_set_size_hint): Pass NULL as geometry window to
21245 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
21246 Add menu bar and tool bar height to base height.
21247 (xg_update_frame_menubar, free_frame_menubar)
21248 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
21249 (update_frame_tool_bar, free_frame_tool_bar):
21250 Change xg_resize_outer_widget to xg_frame_set_char_size.
21252 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
21254 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
21255 (Fdbus_call_method): New parameter TIMEOUT.
21256 (dbus-send-signal): Optimize UNGCPRO call.
21258 2008-03-29 Juri Linkov <juri@jurta.org>
21260 * window.c (Fdisplay_buffer): Move call to
21261 Vsplit_window_preferred_function out of conditions that check
21262 if window is eligible for vertical splitting.
21263 When Vsplit_window_preferred_function is non-nil, call it and use
21264 its non-nil return value as window. Otherwise, continue doing
21265 vertical splitting using Fsplit_window with arg horflag=nil.
21266 (syms_of_window) <Vsplit_window_preferred_function>: Change the
21267 default value from `split-window' to nil.
21269 2008-03-29 Juri Linkov <juri@jurta.org>
21271 * callint.c (Fcall_interactively): Revert 2008-03-16 change
21272 for interactive code letters 'b' and 'B'.
21274 2008-03-29 Eli Zaretskii <eliz@gnu.org>
21276 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
21279 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
21281 * keyboard.c (pending_funcalls): New var.
21282 (timer_check): Run it.
21283 (syms_of_keyboard): Initialize it.
21284 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
21285 (Vdelete_terminal_functions): New vars.
21286 (syms_of_terminal): Initialize them.
21287 (Fdelete_terminal): Run delete-terminal-functions.
21288 * xdisp.c (safe_eval): Rewrite.
21289 (safe_call2): New fun.
21290 * frame.c (Qdelete_frame_functions): New var.
21291 (syms_of_frame): Initialize it.
21292 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
21293 * lisp.h (safe_call2, pending_funcalls): Declare.
21295 2008-03-28 Andreas Schwab <schwab@suse.de>
21297 * indent.c (Fmove_to_column): Move declaration before statements.
21299 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
21301 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
21302 (struct frame): Use bit fields for boolean vars.
21304 * process.c (server_accept_connection): Simplify naming.
21305 (emacs_get_tty_pgrp): Use SDATA.
21307 * coding.c (decode_coding_object): Fix last change.
21309 2008-03-27 Jason Rumney <jasonr@gnu.org>
21311 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
21313 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
21315 * charset.c (Fdefine_charset_internal): Change the way of
21316 registering charsets in Vcharset_order_list.
21317 (syms_of_charset): Make the charset `eight-bit' supplementary.
21319 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
21321 * regex.c (EXTEND_BUFFER): Change order of pointer addition
21322 operations, to avoid having the difference between pointers
21325 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
21327 * indent.c (check_display_width): New fun.
21328 (scan_for_column): Use it.
21330 * data.c (syms_of_data): Mark most-positive-fixnum and
21331 most-negative-fixnum as constants.
21333 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
21335 * indent.c (scan_for_column): Extract from current_column_1.
21336 Merge with the same code from Fmove_to_column.
21337 (current_column_1, Fmove_to_column): Use it.
21339 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
21341 * keymap.c (map_keymap_internal): New fun.
21342 (map_keymap): Use it.
21343 (Fmap_keymap_internal): New fun.
21344 (Fmap_keymap): Remove left-out test from before make_save_value.
21346 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
21348 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
21351 * process.h (struct Lisp_Process): Remove filter_multibyte.
21352 * process.c (QCfilter_multibyte): Remove.
21353 (setup_process_coding_systems): Don't use filter_multibyte.
21354 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
21355 (read_process_output): Don't adjust multibyteness to filter_multibyte.
21356 (Fset_process_filter_multibyte): Change the coding-system to
21357 approximate the previous behavior.
21358 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
21361 * coding.c (decode_coding_object): When not decoding into a buffer,
21362 obey the coding system's preference of (uni|multi)byte.
21364 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
21366 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
21367 every char is changed and has a different byte-length.
21368 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
21369 Fix int -> EMACS_INT.
21371 2008-03-23 David Hansen <david.hansen@gmx.net>
21373 * dbusbind.c (xd_read_message): Remove extra copying of message
21374 strings. Check for NULL `interface' or `member'.
21376 2008-03-22 Eli Zaretskii <eliz@gnu.org>
21378 * w32.c (readdir): If FindFirstFile/FindNextFile return in
21379 cFileName a file name that includes `?' characters, use the 8+3
21380 alias in cAlternateFileName instead.
21382 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
21384 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
21386 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
21388 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
21389 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
21390 work on current_buffer only instead (that was already the case
21391 for some of the code anyway).
21392 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
21393 (temp_set_point, temp_set_point_both): Use EMACS_INT.
21394 (SET_PT, SET_PT_BOTH): Adjust.
21395 * intervals.h (set_point, temp_set_point, set_point_both)
21396 (temp_set_point_both): Remove redundant declarations.
21398 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
21400 * fileio.c (Finsert_file_contents):
21401 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
21402 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
21403 when buffer != current_buffer anyway.
21405 2008-03-20 Andreas Schwab <schwab@suse.de>
21407 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
21410 2008-03-19 Jason Rumney <jasonr@gnu.org>
21412 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
21413 (syms_of_w32fns): Initialize them.
21414 (HOURGLASS_ID): New constant.
21415 (x_window_to_frame): Don't check hourglass_window.
21416 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
21417 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
21418 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
21419 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
21420 Only change the cursor if hourglass is not active.
21421 (Fx_create_frame): Initialize frame's current_cursor.
21422 (hourglass_atimer): Remove.
21423 (hourglass_started): New function.
21424 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
21425 (show_hourglass): Adapt to w32, changing argument to frame.
21427 * w32term.h (struct w32_output): Remove hourglass_window.
21428 Add current_cursor.
21430 * eval.c (call_debugger, Fsignal):
21431 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
21432 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
21433 (Fexecute_extended_command, cancel_hourglass_unwind):
21434 * minibuf.c (read_minibuf):
21435 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
21437 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
21439 * window.c (run_funs): New fun.
21440 (run_window_configuration_change_hook): Use it to run the buffer-local
21441 and the global part of the hook.
21443 * xdisp.c (format_mode_line_unwind_data): Add window argument.
21444 (unwind_format_mode_line): Restore selected window.
21445 (x_consider_frame_title, Fformat_mode_line): Set selected window.
21447 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
21449 * editfns.c (Fchar_equal): Check they are valid characters.
21451 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
21453 2008-03-17 Andreas Schwab <schwab@suse.de>
21455 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
21458 * lisp.h (Fbuffer_list): Declare.
21460 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
21462 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
21463 handlebox_widget is != 0.
21465 2008-03-16 Juri Linkov <juri@jurta.org>
21467 * callint.c (Fcall_interactively): For interactive code letters
21468 'b' and 'B' put the buffer list into the list of default "future"
21469 values of the minibuffer.
21471 2008-03-16 Andreas Schwab <schwab@suse.de>
21473 * keyboard.c (read_key_sequence): Fix downcasing of letters with
21476 * regex.c (re_match_2_internal): Correct matching of a charset
21477 against latin-1 characters.
21479 2008-03-16 Kenichi Handa <handa@m17n.org>
21481 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
21482 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
21483 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
21484 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
21485 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
21486 CHAR_STRING_ADVANCE.
21487 (produce_chars): Fix for the case that the source and the
21488 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
21489 instead of CHAR_STRING_ADVANCE.
21490 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
21491 STRING_CHAR_ADVANCE.
21493 2008-03-15 Andreas Schwab <schwab@suse.de>
21495 * regex.c (re_match_2_internal): Correct matching of eight bit
21496 characters in unibyte strings.
21498 2008-03-15 Martin Rudalics <rudalics@gmx.at>
21500 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
21501 at end of range when it coincides with the end of the buffer.
21503 2008-03-14 Eli Zaretskii <eliz@gnu.org>
21505 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
21507 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
21509 2008-03-14 Jason Rumney <jasonr@gnu.org>
21511 * editfns.c (initial_tz): New variable.
21512 (syms_of_editfns): Initialize it.
21513 (Fset_time_zone_rule): Set it when first called.
21514 Use it when TZSTRING is nil.
21516 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
21517 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
21518 (monitor_from_point_fn, get_monitor_info_fn): New globals.
21519 (globals_of_w32fns): Initialize them.
21520 (compute_tip_xy): Use them to position tooltips.
21522 2008-03-14 Glenn Morris <rgm@gnu.org>
21524 * emacs.c (main): Revert previous change.
21525 (standard_args): Revert -internal-script back to -scriptload,
21526 and remove the long-option form.
21528 2008-03-13 Glenn Morris <rgm@gnu.org>
21530 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
21531 Remove option -enable-font-backend.
21533 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
21535 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
21537 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
21539 * xterm.c (x_connection_closed): For GTK: If this is the last
21540 terminal just exit without closing the display.
21542 2008-03-11 Jason Rumney <jasonr@gnu.org>
21544 * w32font.c (w32font_full_name): Use floor to round.
21546 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
21548 * sound.c (alsa_configure): Declare vol at beginning of block.
21550 * fontset.c (Ffontset_info): Remove extra semicolon.
21552 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
21554 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
21555 size of resulting string.
21557 2008-03-10 Jason Rumney <jasonr@gnu.org>
21559 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
21561 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21563 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
21564 Don't pretend as if characters with display property haven't been
21565 consumed for string-replacing-string case.
21567 2008-03-08 Kim F. Storm <storm@cua.dk>
21569 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
21570 (get_next_display_element, next_element_from_string)
21571 (next_element_from_ellipsis, next_element_from_buffer): Use it.
21573 2008-03-08 Andreas Schwab <schwab@suse.de>
21575 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
21577 2008-03-06 Jason Rumney <jasonr@gnu.org>
21579 * w32font.c (w32_registry): Take font_type argument. Use ANSI
21580 when charset not specified. Only translate ANSI to unicode when
21581 font_type is truetype.
21582 (w32font_coverage_ok): New function.
21583 (add_font_entity_to_list): Use it to filter unsuitable fonts.
21585 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
21587 * lread.c (Fread_char): Resolve modifiers.
21588 (Fread_char_exclusive): Likewise.
21590 * character.c (char_resolve_modifier_mask): New function.
21591 (char_string): Use char_resolve_modifier_mask.
21592 (Fchar_resolve_modifiers): New function.
21593 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
21596 2008-03-04 Jason Rumney <jasonr@gnu.org>
21598 * makefile.w32-in: Always include w32font.c in the build.
21599 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
21601 2008-03-04 Andreas Schwab <schwab@suse.de>
21603 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
21604 (versionclean): Likewise.
21606 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
21608 * .cvsignore: Add oo.
21610 2008-03-03 Andreas Schwab <schwab@suse.de>
21612 * coding.c (decode_coding_object): Inhibit gap shrinking while
21615 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
21617 * w32term.c: Remove unused include "gnu.h".
21618 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
21620 * gnu.h: Rename to ...
21621 * emacs-icon.h: ... this.
21622 * xterm.c: Use emacs-icon.h instead of gnu.h.
21623 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
21625 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
21627 * w32font.c: Include math.h.
21629 2008-03-03 Jason Rumney <jasonr@gnu.org>
21631 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
21632 Compute options separately.
21633 (w32font_open_internal): Set glyph_idx before caching metrics.
21635 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
21636 Define if system headers don't.
21637 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
21638 (w32font_encode_char): Don't declare here.
21640 * w32font.c (Quniscribe, QCformat): New symbols.
21641 (syms_of_w32font): Define them.
21642 (w32font_has_char): Indicate uncertainty.
21643 (w32font_encode_char): Encode as glyph point. Make static.
21644 (recompute_cached_metrics): New function.
21645 (w32font_open_internal): Use it. Set font to use glyph points
21646 initially. Set format based on type of font.
21647 (w32font_text_extents, w32font_draw): Optionally use glyph points.
21648 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
21649 on it. Set format based on information available here.
21650 (add_font_entity_to_list): Identify backend based on opentype_only.
21652 2008-03-02 Andreas Schwab <schwab@suse.de>
21654 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
21656 * coding.c (decode_coding_big5, produce_chars):
21657 Fix typos in last change.
21659 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
21663 2008-03-02 Kenichi Handa <handa@m17n.org>
21665 * coding.c (decode_coding_utf_8): When eol-type of CODING is
21666 `dos', don't decode '\r' if that is the last in the source.
21667 (decode_coding_utf_16, decode_coding_emacs_mule)
21668 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
21669 (decode_coding_raw_text, decode_coding_charset): Likewise.
21670 (produce_chars): Don't decode EOL here. Use EMACS_INT.
21672 2008-03-01 Jason Rumney <jasonr@gnu.org>
21674 * w32font.c (w32font_full_name): Report point size for scalable fonts.
21676 2008-03-01 Kim F. Storm <storm@cua.dk>
21678 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
21680 2008-03-01 Jason Rumney <jasonr@gnu.org>
21682 * w32font.c (w32font_full_name): New function.
21683 (w32font_open_internal): Use it.
21685 2008-03-01 Kim F. Storm <storm@cua.dk>
21687 * dispnew.c (line_draw_cost): Fix invalid glyph check.
21689 2008-03-01 Jason Rumney <jasonr@gnu.org>
21691 * font.c (font_unparse_fcname): Increase len when style is a symbol.
21693 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
21695 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
21696 xg_frame_resized when the event is for the edit widget.
21698 * gtkutil.h (xg_frame_resized): Rename from xg_resize_widgets.
21700 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
21702 (xg_frame_resized): Rename from xg_resize_widgets. Remove all
21703 operations on widgets here. Just set frame size if needed.
21704 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
21705 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
21706 (x_wm_set_size_hint): Set size hints on the edit widget only, not
21708 (xg_create_tool_bar): Move attachment of the tool bar to
21709 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
21710 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
21712 2008-03-01 Jason Rumney <jasonr@gnu.org>
21714 * w32fns.c (w32_msg_pump): Disable debug code.
21716 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21718 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
21720 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
21722 * xdisp.c (next_overlay_string): Don't set
21723 overlay_strings_at_end_processed_p if we're currently reading from
21726 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
21728 * xdisp.c (get_overlay_strings_1): Fix typo.
21730 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
21732 * xdisp.c (get_overlay_strings_1): Add missing argument type.
21734 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
21736 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
21738 * xdisp.c (display_mode_element): Cancel the previous change.
21739 (decode_mode_spec): Likewise.
21740 (handle_auto_composed_prop): Don't make composition if it->string
21743 2008-02-27 Kim F. Storm <storm@cua.dk>
21745 * lisp.h (GLYPH): Change type from int to struct with separate char
21746 and face_id members.
21747 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
21748 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
21749 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
21750 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
21751 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
21752 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
21753 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
21754 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
21755 handle new Lisp glyph code encoding, either an integer or a cons.
21757 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
21758 (GLYPH_ALIAS): Delete.
21759 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
21760 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
21761 (GLYPH_FROM_CHAR): Replace macro by ...
21762 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
21764 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
21765 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
21766 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
21767 (GLYPH_INVALID_P): New macro.
21768 (spec_glyph_lookup_face): Update prototype.
21770 * dispnew.c (line_draw_cost): Adapt to new glyph type.
21771 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
21772 new glyph code encoding.
21773 (spec_glyph_lookup_face): No return value; update passed glyph instead.
21774 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
21776 * xdisp.c (get_next_display_element, next_element_from_display_vector):
21777 Adapt to new glyph type and new glyph code encoding.
21779 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
21781 * indent.c (current_column, current_column_1, Fmove_to_column)
21782 (compute_motion): Adapt to new glyph code encoding.
21784 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
21786 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
21788 * process.c (wait_reading_process_output): Check for window
21789 changes caused by timers.
21790 Suggested by Johan Bockgård.
21792 2008-02-27 Glenn Morris <rgm@gnu.org>
21794 * emacs.c (USAGE1): Add `--disable-font-backend'.
21796 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
21798 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
21799 is made to the buffer.
21801 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
21803 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
21804 (face_at_string_position):
21805 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
21806 (face_at_string_position):
21807 * xdisp.c (display_string, next_overlay_change):
21808 * buffer.h (overlays_at):
21809 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
21812 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
21814 * editfns.c (Fformat): Doc fix.
21816 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
21818 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
21819 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
21820 (Ffont_otf_alternates, Fquery_font): Doc fixes.
21822 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
21824 * buffer.c (Fbuffer_swap_text): New function.
21825 (syms_of_buffer): Defsubr it.
21827 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
21829 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
21831 2008-02-25 Jason Rumney <jasonr@gnu.org>
21833 * w32font.c (w32font_draw): Draw one character at a time when padding.
21835 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
21837 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
21838 Handle a nil arg. Use run_window_configuration_change_hook.
21839 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
21840 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
21841 Use run_window_configuration_change_hook.
21843 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
21845 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
21848 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
21850 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
21851 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
21852 if the glyph in the font is zero pixel with.
21854 * dispextern.h (struct glyph_string): New member padding_p.
21856 * w32font.c (w32font_draw): Pay attention to s->padding_p.
21858 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
21860 * xfont.c (xfont_draw): Pay attention to s->padding_p.
21862 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
21864 * font.c: If the font driver doesn't have `shape' function, return Qnil.
21866 2008-02-25 Jason Rumney <jasonr@gnu.org>
21868 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
21870 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
21872 Allow fine-grained image-cache flushing.
21873 * dispextern.h (struct image): Add `dependencies' field.
21874 (clear_image_caches): Change arg to Lisp_Object.
21875 * image.c (make_image): Initialize `dependencies' field.
21876 (clear_image_cache): Change arg to allow fine-grained flushing.
21877 Perform the flush even if image-cache-eviction-delay is nil.
21878 (clear_image_caches): Change arg to Lisp_Object.
21879 (Fclear_image_cache): Expand meaning of the argument.
21880 (mark_image): Mark `dependencies' field.
21881 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
21882 (lface_hash): Use XHASH rather than XFASTINT.
21883 (face_at_buffer_position): Fix int -> EMACS_INT position.
21884 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
21885 (select_frame_for_redisplay): Remove code duplication.
21886 (redisplay_internal): Adapt arg to call to clear_image_caches.
21888 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
21893 * s/vms5-5.h: Remove, unused.
21899 * m/mips4.h: Remove files for obsolete systems.
21912 * s/usg5-3.h: Remove references to obsolete variables.
21914 * s/irix5-0.h: Remove, move all the contents ...
21915 * s/irix6-5.h: ... here. Simplify.
21916 * config.in: Regenerate.
21918 2008-02-24 Jason Rumney <jasonr@gnu.org>
21920 * w32term.c (x_draw_glyph_string_background): Clear the background
21921 manually when cleartype is in use.
21922 (x_draw_glyph_string_foreground): Draw text transparently when
21923 cleartype is in use.
21925 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
21926 a font into it unless we have to.
21928 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
21930 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
21931 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
21933 2008-02-18 Jason Rumney <jasonr@gnu.org>
21935 * w32fns.c (Fw32_shell_execute): Encode parameters.
21937 2008-02-09 Eli Zaretskii <eliz@gnu.org>
21939 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
21941 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
21943 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
21945 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
21947 * xterm.c (x_set_offset): Don't change the gravity if
21948 CHANGE_GRAVITY is -1.
21950 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
21952 * fileio.c (auto_save_error_occurred): New var.
21953 (auto_save_error): Set it.
21954 (Fdo_auto_save): Don't overwrite the error message if an auto-save
21957 2008-02-23 Eli Zaretskii <eliz@gnu.org>
21959 * w32.c (globals_of_w32): Add initializations for
21960 g_b_init_get_sid_sub_authority and
21961 g_b_init_get_sid_sub_authority_count.
21963 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
21965 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
21966 (font_parse_xlfd): Use them for sanity check.
21967 (Finternal_set_font_style_table): Make sure the table is bijective.
21969 Consolidate the image_cache to the terminal struct.
21970 * termhooks.h (P_): Remove redundant def.
21971 (struct terminal): New field `image_cache'.
21972 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
21973 of FRAME_X_IMAGE_CACHE.
21974 * xterm.h (struct x_display_info): Remove image_cache field.
21975 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
21976 * w32term.h (struct w32_display_info): Remove image_cache field.
21977 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
21978 * macterm.h (struct mac_display_info): Remove image_cache field.
21979 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
21980 * xterm.c (x_term_init):
21981 * w32term.c (w32_term_init):
21982 * macterm.c (mac_term_init): Set the image_cache in the terminal.
21983 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
21984 Remove declarations.
21985 (clear_image_caches, mark_image_cache): New declarations.
21986 * xfaces.c (clear_face_cache):
21987 * xdisp.c (redisplay_internal): Use clear_image_caches.
21988 * image.c (clear_image_cache): Don't check that a frame is on
21989 a window-system before checking if it shares the same cache.
21990 (clear_image_caches): New function.
21991 (Fclear_image_cache): Use it.
21992 (mark_image): Move from allo.c.
21993 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
21994 * alloc.c (mark_image, mark_image_cache): Move to image.c.
21995 (mark_object): Don't call mark_image_cache for frames.
21996 (mark_terminals): Call mark_image_cache.
21998 * lisp.h (Fdelete_terminal): Declare.
22000 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
22001 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
22002 wrong_type_argument.
22004 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
22006 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
22007 malayalam.el, and tamil.el. Add sinhala.el.
22009 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
22011 * xterm.c (x_connection_closed): Consolidate identical tests.
22012 (x_delete_terminal): Don't crash if called via x_connection_closed.
22014 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
22016 * xdisp.c (decode_mode_spec): New arg string.
22017 (display_mode_element): Adjust for the above change.
22019 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
22021 * callint.c (Fcall_interactively): Use AREF.
22023 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
22025 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
22027 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
22029 * xfns.c (Fx_show_tip): Set string to " " if empty.
22031 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
22033 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
22036 2008-02-17 Kenichi Handa <handa@m17n.org>
22038 * ftfont.c (ftfont_shape): Return Lispy number.
22040 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
22042 (Finternal_set_font_selection_order): Call font_update_sort_order
22043 only when enable_font_backend is set.
22044 (realize_x_face): Set face->font_info to that of default face only
22045 when enable_font_backend is set.
22047 * xdisp.c (handle_composition_prop): Set it->c to the fist
22048 character of the composed region.
22049 (fill_composite_glyph_string): Set base_face->font_info to
22050 s->font_info. Get a face for ascii from base_face->ascii_face.
22051 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
22052 with a face already decided.
22053 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
22055 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
22056 call font_prepare_composition unconditionally.
22058 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
22060 * xterm.h (struct x_display_info): New member font.
22062 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
22063 (x_set_mouse_face_gc, x_new_font): Likewise.
22064 (x_term_init): Setup display_info->font.
22065 (x_delete_terminal): Free display_info->font.
22067 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
22069 * ftxfont.c (ftxfont_default_fid): Delete it.
22070 (ftxfont_open): Set xfont->fid to 0.
22071 (ftxfont_end_for_frame): Clear data specific to the frame and the
22074 * xftfont.c (xftfont_default_fid): Delete it.
22075 (xftfont_open): Set xfont->fid to 0.
22077 * fontset.c (FONTSET_OBJLIST): New macro.
22078 (fontset_find_font): Update font-object list of the fontset.
22079 (free_realized_fontset): New function.
22080 (free_face_fontset): Call free_realized_fontset.
22081 (Ffont_info): Call font_close_object only when enable_font_backend
22084 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
22085 [HAVE_NTGUI]: Include w32term.h.
22086 [MAC_OS]: Include macterm.ch.
22087 (font_otf_ValueRecord): Use make_number.
22088 (font_finish_cache): Fix handling of reference count.
22089 (font_clear_cache): Update num_fonts.
22090 (font_open_entity): Update smallest_char_width and
22091 smallest_font_height of the frame.
22092 (font_close_object): Update num_fonts.
22093 (Fclear_font_cache): Fix finding the target cache data.
22095 2008-02-16 Glenn Morris <rgm@gnu.org>
22097 * fontset.c (Finternal_char_font): Fix compilation warning.
22099 2008-02-16 Eli Zaretskii <eliz@gnu.org>
22101 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
22102 instead of char arrays. Enlarge the size of array passed to
22103 get_token_information.
22105 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
22108 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
22110 * .gdbinit: Don't set `args', it breaks gdb --args.
22112 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
22114 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
22115 within a narrowed buffer.
22117 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
22119 * coding.c (decode_coding_object, encode_coding_object):
22120 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
22122 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
22124 * coding.c (coding_set_destination): Use BEG_BYTE rather than
22126 (detect_coding_system):
22127 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
22128 (string_char_to_byte, string_byte_to_char, insert_from_gap):
22129 * insdel.c (insert_from_gap):
22130 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
22131 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
22132 (string_to_multibyte):
22133 * character.c (chars_in_text, multibyte_chars_in_text):
22134 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
22136 * character.h (FETCH_STRING_CHAR_ADVANCE)
22137 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
22138 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
22139 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
22141 * casefiddle.c (casify_region): Only call after-change and composition
22142 functions on the part of the region that was changed.
22144 * keyboard.c (read_avail_input):
22145 * frame.c (Fdelete_frame): Call Fdelete_terminal.
22147 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
22149 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
22150 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
22152 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
22154 * w32menu.c (push_submenu_start, push_submenu_end)
22155 (push_left_right_boundary, push_menu_pane, push_menu_item):
22156 * keyboard.c (read_key_sequence): Don't pass args with side effects
22157 to AREF, it fails when compiling with -DENABLE_CHECKING.
22159 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
22161 * Makefile.in (${lispsource}international/charprop.el):
22162 Delete this target.
22164 * search.c (boyer_moore): Fix incorrect synching of the trunk and
22167 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
22169 * terminal.c (Fdelete_terminal): Clean up the `force' path.
22171 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
22173 * frame.c (Qnoelisp): New symbol.
22174 (syms_of_frame): Initialize it.
22175 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
22176 harmless Elisp code, from a strong `force' from x_connection_closed.
22177 * frame.h (Qnoelisp): Declare.
22178 * xterm.c (x_connection_closed): Pass `noelisp'.
22180 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
22181 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
22182 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
22183 rather than `int' for the type of `type'.
22185 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
22187 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
22189 * Makefile.in (GNUC): Remove support for gcc-1.x.
22191 2008-02-10 Richard Stallman <rms@gnu.org>
22193 * lisp.h (ASET): Use AREF, not ASLOT.
22195 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
22197 * lisp.h (ASET): Check bounds.
22199 2008-02-10 Glenn Morris <rgm@gnu.org>
22201 * buffer.c (mode-name): Doc fix.
22203 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
22220 * xterm.c: Remove code that deals with obsolete variables.
22222 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
22224 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
22225 nothing else needs it anymore.
22227 2008-02-09 Eli Zaretskii <eliz@gnu.org>
22229 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
22230 instead of unibyte_char_to_multibyte.
22232 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
22234 * s/gnu-linux.h: Remove commented out code.
22236 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
22238 * Makefile.in: Update what RMS says about using autoconf.
22239 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
22240 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
22241 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
22242 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
22244 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
22246 * keymap.c (Fkey_description): Move side effect outside of macro call.
22248 * xfaces.c (Finternal_make_lisp_face):
22249 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
22251 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
22252 (syms_of_fontset): Use ASET.
22254 * fns.c (concat): Move side effect outside of macro call.
22255 (hash_clear): Use ASET.
22257 2008-02-08 Richard Stallman <rms@gnu.org>
22259 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
22260 If FORCE, and frame has a surrogate minibuffer for another frame,
22261 delete the other frame first.
22263 2008-02-07 Timo Savola <timo.savola@iki.fi>
22265 * xterm.c (x_detect_focus_change): Handle embed client message.
22266 (handle_one_xevent): Ditto.
22267 (handle_one_xevent): If embedded and we get a button press/release,
22269 (xembed_set_info, xembed_send_message): New functions.
22270 (x_make_frame_visible): Call xembed_set_info if embedded.
22271 (x_make_frame_invisible): Call xembed_set_info if embedded.
22272 (x_term_init): Initialize Xatom_XEMBED.
22273 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
22274 (x_iconify_frame): Ditto.
22276 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
22277 (enum xembed_info, enum xembed_message, enum xembed_focus)
22278 (enum xembed_modifier, enum xembed_accelerator): New.
22279 (xembed_set_info, xembed_send_message): Declare.
22280 (FRAME_X_EMBEDDED_P): New.
22282 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
22285 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
22286 window ID of a frame.
22287 (x_window): Reparent frame if embedded.
22288 (Fx_create_frame): Don't set border width if embedded.
22290 * emacs.c (USAGE3): Add --parent-id.
22291 (standard_args): Ditto.
22293 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
22295 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
22297 2008-02-07 Jim Meyering <meyering@redhat.com>
22299 Use "do...while (0)", not "if (1)...else" in macro definitions.
22300 The latter provokes a warning from gcc about the empty else, when
22301 followed by ";". Also, without that trailing semicolon, it would
22302 silently swallow up any following statement.
22303 * syntax.h (SETUP_SYNTAX_TABLE)
22304 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
22305 * buffer.h (DECODE_POSITION): Likewise.
22306 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
22307 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
22308 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
22309 (FETCH_CHAR_ADVANCE): Likewise.
22310 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
22312 2008-02-07 Jim Meyering <meyering@redhat.com>
22314 * lread.c [lint]: Don't include <sys/inode.h>.
22316 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
22318 * xselect.c (x_handle_dnd_message):
22319 * xmenu.c (digest_single_submenu, xmenu_show):
22320 * xdisp.c (with_echo_area_buffer_unwind_data)
22321 (format_mode_line_unwind_data, unwind_format_mode_line)
22322 (display_menu_bar):
22323 * eval.c (Ffetch_bytecode):
22324 * doc.c (store_function_docstring):
22325 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
22326 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
22327 * buffer.c (add_overlay_mod_hooklist): Use ASET.
22329 2008-02-07 Kenichi Handa <handa@m17n.org>
22331 * ftxfont.c (ftxfont_open): Don't set
22332 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
22334 * ftfont.c (ftfont_open): Fix previous change.
22336 2008-02-06 Jason Rumney <jasonr@gnu.org>
22338 * w32font.c (w32font_text_extents): Fill in lbearing metric.
22339 Use cached metrics for ASCII characters.
22340 (w32font_open_internal): Don't set font's owning_frame.
22341 Cache metrics for ASCII characters.
22343 * w32font.h (struct w32font_info): Add ascii_metrics.
22344 Remove owning_frame.
22346 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
22348 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
22351 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
22353 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
22355 * charset.c (syms_of_charset): Set QCtest and Qeq.
22357 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
22359 * process.c (Fstart_process):
22360 * callproc.c (Fcall_process): Handle the case where
22361 Funhandled_file_name_directory returns nil.
22363 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
22364 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
22365 * font.c (check_gstring): Use them and AREF to access the vector before
22366 we know it's really a gstring.
22367 (Ffont_shape_text): Fix typo.
22368 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
22370 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
22373 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
22375 2008-02-05 Jason Rumney <jasonr@gnu.org>
22377 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
22378 Set smallest_font_height and smallest_char_width in display info.
22380 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
22382 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
22384 2008-02-05 Miles Bader <miles@gnu.org>
22386 * xfaces.c (get_lface_attributes, merge_named_face)
22387 (lookup_named_face, lookup_derived_face, realize_named_face):
22388 Revert 2008-02-01 change by cyd@stupidchicken.com.
22390 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
22392 * fontset.c (Ffontset_info): Handle the case of inhibitting the
22394 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
22396 2008-02-04 Jason Rumney <jasonr@gnu.org>
22398 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
22400 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
22402 2008-02-03 Jason Rumney <jasonr@gnu.org>
22404 * makefile.w32-in (OBJ1): Include font.o here.
22405 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
22407 2008-02-02 Jason Rumney <jasonr@gnu.org>
22409 * makefile.w32-in (temacs): Bump EMHEAP to 21.
22411 2008-02-01 Jason Rumney <jasonr@gnu.org>
22413 * s/cygwin.h: Define VIRT_ADDR_VARIES.
22415 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
22417 2008-02-01 Andreas Schwab <schwab@suse.de>
22419 * Makefile.in (shortlisp, lisp): Update for rename of
22420 ../lisp/language/myanmar.el.
22422 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
22424 * xfaces.c (get_lface_attributes): Delete function.
22425 (merge_named_face, lookup_named_face, lookup_derived_face)
22426 (realize_named_face): Call lface_from_face_name directly, and use
22427 the fact that merge_face_vectors does not alter its FROM argument.
22429 2008-02-01 Jason Rumney <jasonr@gnu.org>
22431 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
22432 input in the default locale. Handle non-Unicode multibyte input.
22434 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22436 * fontset.c (reorder_font_vector): Exclude nil elements from the
22437 font group. Don't try multiple fonts.
22438 (fontset_font): Adjust for the above change.
22439 (Finternal_char_font): Return nil if the found font doesn't
22440 contain the character ch.
22442 * Makefile.in (lisp, shortlisp): Add cham.el.
22444 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22446 * font.h (FONTP): Make it return 1 also for a font-object.
22448 * .gdbinit (xfontset): New function.
22450 * font.c (font_find_for_lface): Check if the character C is
22451 supported or not only for the first font.
22453 * fontset.c (reorder_font_vector): Fix typo.
22454 (fontset_find_font): Don't add a font-spec specifying a script.
22455 Use 0 (not Qt) for the indication of empty font-group. Change the
22456 format of RFONT-DEF. Return Qt if no font in the font-group
22457 support the character.
22458 (fontset_font): Adjust for the above change. If no font was
22459 found the character, remember that.
22460 (face_for_char): Adjust for the change of RFONT-DEF.
22461 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
22462 no font for the target.
22463 (Finternal_char_font): Adjust for the change of RFONT-DEF.
22465 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22467 * font.c (font_load_for_face): Handle the case that the font in
22468 face->lface is a string.
22470 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22472 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
22474 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22476 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
22477 Fix previous change. If the frame is not on a window system,
22480 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22482 * coding.c (decode_coding_object, encode_coding_object):
22483 Adjust marker positions after conversion.
22485 * lisp.h (struct Lisp_Marker): New member need_adjustment.
22487 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22489 * font.c (font_find_for_lface): Fix the handling of the return
22490 value of font_has_char.
22491 (Ffont_shape_text): Fix previous change.
22493 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
22494 (fontset_ref_and_range): Delete it.
22495 (fontset_find_font): Call char_table_ref_and_range instead of
22496 FONTSET_REF_AND_RANGE.
22497 (make_fontset): Don't setup font groups of Latin here.
22498 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
22499 (new_fontset_from_font): Make the specified font the default for
22500 all Latin characters.
22502 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22504 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
22505 is on a window system before accessing the fontset of the frame.
22507 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22509 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
22511 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
22512 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
22514 * font.c (Ffont_shape_text): If the font driver doesn't have a
22515 shaper function, make zero-width glyphs to have at least one-pixel
22516 width. Fix setting of `to' field of glyphs.
22518 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22520 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
22523 * font.h (struct font_driver): Improve docstring of member `shape'.
22525 2008-02-01 Kenichi Handa <handa@m17n.org>
22527 * composite.c (syms_of_composite): Fix docstring of
22528 auto-composition-function.
22530 * font.h (LGLYPH_SIZE): New macro.
22532 * font.c (Ffont_fill_gstring): Stop filling when a character not
22533 supported by the font is found.
22534 (Ffont_shape_text): When a shape callback function returns nil,
22535 try at most two more times with larger gstring.
22536 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
22538 * xdisp.c (handle_auto_composed_prop): Change the argument to
22539 auto-composition-function.
22541 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
22542 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
22543 Lispy glyph and store it in the lgstring.
22545 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
22547 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
22549 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22551 * font.c (Ffont_shape_text): Avoid unnecessary composition.
22553 * fontset.c (Vfont_encoding_charset_alist): New variable.
22554 (syms_of_fontset): DEFVAR it.
22555 (reorder_font_vector, fontset_find_font): Optimize for the case of
22556 no need of reordering.
22557 (face_for_char): Map the charset property by
22558 Vfont_encoding_charset_alist.
22560 2008-02-01 Jason Rumney <jasonr@gnu.org>
22562 * w32font.c (logfonts_match): Don't check adstyle here.
22563 (font_matches_spec): Check here against physical font instead.
22564 (add_font_entity_to_list): Avoid some substitutions.
22566 * font.c (font_parse_fcname): Default weight and slant to normal.
22567 (font_score): Prefer normal fonts if weight or slant unspecified.
22568 (font_score) [WINDOWSNT]: Scale weight difference down to closer
22569 match freetype scores.
22571 2008-02-01 Jason Rumney <jasonr@gnu.org>
22573 * w32font.c (w32font_text_extents): Don't use the frame stored in the
22574 font, as it may have been deleted.
22575 (w32_enumfont_pattern_entity): Map generic family to adstyle using
22576 most common hyphenless variation.
22577 (logfonts_match): Check generic family.
22578 (font_matches_spec): Don't check generic family here.
22579 (fill_in_logfont): Set generic family based on adstyle.
22581 * w32font.h (w32font_get_cache): Update declaration.
22583 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22585 * ftfont.c (ftfont_get_cache): Adjust the argument type.
22587 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
22588 If none of the new drivers are available, call font_update_drivers
22589 with the old drivers.
22591 * w32font.c (w32font_get_cache): Adjust the argument type.
22593 * xfont.c (xfont_get_cache): Adjust the argument type.
22595 * font.h (struct font_driver): Change argument type of get_cache.
22597 * xftfont.c (xftfont_start_for_frame): Delete prototype.
22599 * font.c (Ffont_get): Fix arguments to Fassoc.
22600 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
22601 (font_clear_cache): New function.
22602 (font_list_entities, font_matching_entity): Use font_get_cache.
22603 (font_update_drivers): Call font_clear_cache when finishing a driver.
22605 * fontset.c (fontset_find_font): Fix previous change.
22607 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22609 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
22610 dpyinfo->font_table.
22611 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
22612 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
22614 * font.c (font_at): Handle the case that the arg C is negative.
22615 Handle the unibyte case.
22616 (Ffont_at): Call font_at with the arg C -1.
22618 * xdisp.c (handle_auto_composed_prop): Don't get a character at
22619 the position here, and call font_at with the arg C -1.
22620 Don't check the range of the existing composition at the point.
22622 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22624 * fontset.c (fontset_add): New args charset_id and family.
22626 (load_font_get_repertory, fontset_find_font): Assume that
22627 font_spec is always a font-spec object.
22628 (Fset_fontset_font): Always store a font-spec object in a fontset.
22630 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
22631 instead of get_property_and_range.
22633 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22635 * xftfont.c (struct xftfont_info): Delete the member ft_face.
22636 (xftfont_open): Don't keep locking face.
22637 (xftfont_close): Don't unlock face.
22638 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
22640 * fontset.c (fontset_find_font): Don't prefer a font of
22641 supplementary charset.
22643 2008-02-01 Kenichi Handa <handa@m17n.org>
22645 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
22646 script, langsys_tag to langsys, new member script.
22647 (OTF_TAG_STR): Terminate by '\0'.
22648 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
22649 listing to the script specified in that property. Fix arg to
22650 OTF_check_features.
22652 2008-02-01 Jason Rumney <jasonr@gnu.org>
22654 * w32font.h: New file.
22656 * w32font.c: Include it.
22657 (struct w32font_info): Add owning_frame field. Move to w32font.h.
22658 (w32font_open): Set owning_frame.
22659 (w32font_text_extents): Use owning_frame.
22660 (struct font_callback_data): Add opentype_only field.
22661 (add_font_entity_to_list): Use it to filter fonts.
22662 Don't check against full name.
22663 (w32font_list_internal): New function.
22664 (w32font_list): Use it.
22665 (w32font_match_internal): New function.
22666 (w32font_match): Use it.
22667 (w32font_open_internal): New function.
22668 (w32font_open): Use it.
22669 (w32font_get_cache, w32font_close, w32font_has_char)
22670 (w32font_encode_char, w32font_text_extents, w32font_draw):
22673 * makefile.w32-in (w32font.o): Depend on w32font.h.
22675 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22677 * charset.c (Fdefine_charset_internal): Record a supplementary
22678 charset at the tail of Vcharset_order_list.
22680 * font.c (Ffont_shape_text): Fix the return value.
22682 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
22684 * xdisp.c (handle_auto_composed_prop): Fix previous change.
22686 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22688 * ftfont.c (struct OpenTypeSpec): New struct.
22689 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
22690 (ftfont_get_open_type_spec): New function.
22691 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
22693 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
22695 2008-02-01 Jason Rumney <jasonr@gnu.org>
22697 * w32font.c (add_font_entity_to_list): Compare only the beginning
22700 2008-02-01 Kenichi Handa <handa@m17n.org>
22702 * xdisp.c (handle_auto_composed_prop): Simplify the code.
22703 Never return HANDLED_RECOMPUTE_PROPS.
22705 2008-02-01 Kenichi Handa <handa@m17n.org>
22707 * font.c (font_gstring_produce): Delete it.
22709 * composite.h (COMPOSITION_METHOD):
22710 Handle COMPOSITION_WITH_GLYPH_STRING.
22712 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22714 * xfont.c (Qx): Delete.
22715 (syms_of_xfont): Don't initialize Qx.
22717 * composite.h (enum composition_method):
22718 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
22720 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22722 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
22723 (choose_face_font): Accept new form of font-spec.
22725 * frame.h (font_driver_list): Declare it unconditionally.
22726 (struct frame): Define members font_driver_list and font_data_list
22729 * fontset.c: Include "font.h" unconditionally.
22730 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
22731 (Fset_fontset_font): Accept a font-spec object.
22733 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
22734 PIXEL_SIZE part a wild card.
22736 * dispextern.h (struct glyph_string): Define members clip and
22737 num_clips unconditionally.
22738 (struct face): Define members font_info and extra unconditionally.
22740 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
22741 ftfont_info only when HAVE_LIBOTF is defined.
22743 2008-02-01 Andreas Schwab <schwab@suse.de>
22745 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
22748 2008-02-01 Jason Rumney <jasonr@gnu.org>
22750 * w32font.c (w32font_driver): Add new fields.
22752 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22754 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
22755 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
22756 (LIBES): Add @M17N_FLT_CFLAGS@.
22758 * composite.c (compose_text): Don't treat the new style
22759 composition specially.
22761 * emacs.c (main): Call syms_of_font unconditionally.
22763 * font.h (FONT_ENTITY_NOT_LOADABLE)
22764 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
22765 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
22766 (struct font_driver): New member shape.
22767 (font_registry_charsets): Extern it.
22768 (font_find_for_lface, font_prepare_composition): Adjust prototype.
22769 (font_otf_capability, font_drive_otf): Delete their externs.
22771 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
22772 (font_charset_alist, font_registry_charsets): Move from xfont.c
22774 (font_prop_validate_otf): New function.
22775 (font_property_table): Register it for QCotf.
22776 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
22777 (font_drive_otf): Delete.
22778 (font_prepare_composition): New arg F. Adjust for the change of
22780 (font_find_for_lface): New arg C.
22781 (font_load_for_face): Adjust for the change of font_find_for_lface.
22782 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
22784 (Ffont_shape_text): New function.
22785 (Fopen_font): If the font size is not given, use 12-pixel.
22786 (Ffont_at): New arg STRING.
22787 (syms_of_font): Initialize font_charset_alist.
22788 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
22791 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
22792 fonts of the same font-spec. Change the format of RFONT-DEF.
22793 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
22794 Adjust for the change of RFONT-DEF.
22795 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
22797 * ftfont.h: New file.
22799 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
22800 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
22801 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
22802 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
22803 font_otf_capability and font_drive_otf, set ftfont_shape.
22804 (ftfont_list): Adjust for the change of :otf property value.
22805 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
22806 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
22807 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
22808 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
22809 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
22810 (otf_gstring, gstring, m17n_flt_initialized): New variables.
22812 * w32term.c (x_draw_composite_glyph_string_foreground):
22813 Adjust for the change of lispy gstring.
22815 * xdisp.c (handle_composition_prop): Adjust for the change of
22816 lispy gstring. Call a function for auto-composition with the
22817 third arg it->window.
22818 (fill_composite_glyph_string): Adjust for the change of lispy string.
22819 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
22821 * xfaces.c (set_font_frame_param): Adjust for the change of
22822 font_find_for_lface.
22824 * xfont.c (x_font_charset_alist): Move to font.c and rename.
22825 (xfont_registry_charsets): Likewise. Change caller.
22826 (syms_of_xfont): Don't handle x_font_charset_alist.
22828 * xftfont.c: Include "ftfont.h".
22829 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
22830 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
22831 (xftfont_close) [HAVE_LIBOTF]: Close otf.
22832 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
22833 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
22834 Set xftfont_driver.shape to xftfont_shape.
22836 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
22837 the change of lispy gstring.
22839 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22841 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
22843 2008-02-01 Jason Rumney <jasonr@gnu.org>
22845 * w32font.c (w32font_draw): Fill background manually.
22847 2008-02-01 Jason Rumney <jasonr@gnu.org>
22849 * font.c (Qfontp): Remove unused symbol.
22850 (QCantialias): New symbol.
22851 (syms_of_font): Define it.
22852 (font_property_table): Set a validator for QCantialias.
22854 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
22855 Define if not already.
22856 (QCfamily): Share with xfaces.c.
22857 (Qstandard, Qsubpixel, Qnatural): New symbols.
22858 (syms_of_w32font): Define them. Don't define QCfamily here.
22859 (w32_antialias_type, lispy_antialias_type): New functions.
22860 (w32_enumfont_pattern_entity): New arg requested_font.
22861 Set antialias parameter if non-default was requested.
22862 (fill_in_logfont): Fill in lfQuality if :antialias specified.
22864 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22866 * lread.c (read1): Undo the previous change.
22868 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
22870 * frame.c (Fdelete_frame): Call font_update_drivers only when
22871 USE_FONT_BACKEND is defined.
22873 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22875 * font.h (struct font_bitmap): New member bits_per_pixel.
22876 (struct font_driver): New members start_for_frame and end_for_frame.
22877 (struct font_data_list): New struct.
22878 (font_put_frame_data, font_get_frame_data): Extern them.
22880 * frame.h (struct frame): New member font_data_list.
22882 * font.c (font_update_drivers): Call driver->start_for_frame and
22883 driver->end_for_frame at proper timings.
22884 (font_put_frame_data, font_get_frame_data): New functions.
22885 (Ffont_spec): Add usage in the docstring.
22887 * frame.c (make_frame): Initialize f->font_data_list to NULL.
22888 (Fdelete_frame): Call font_update_drivers.
22890 * xftfont.c (struct xftface_info): Delete the member xft_draw.
22891 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
22892 (xftfont_get_xft_draw): New function.
22893 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
22894 (xftfont_end_for_frame): New function.
22895 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
22897 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
22898 Change argument. Cache GCs in the per-frame data.
22899 (struct ftxfont_frame_data): New struct.
22900 (ftxfont_draw_bitmap): New arg gc_fore and flush.
22901 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
22902 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
22903 (ftxfont_end_for_frame): New function.
22904 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
22906 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
22908 2008-02-01 Kenichi Handa <handa@m17n.org>
22910 * xselect.c (Vselection_coding_system)
22911 (Vnext_selection_coding_system): Delete them.
22912 (syms_of_xselect): Don't declare selection-coding-system and
22913 next-selection-coding-system. They are declared in select.el.
22915 2008-02-01 Jason Rumney <jasonr@gnu.org>
22917 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
22919 * w32fns.c: Include imm.h.
22920 (get_composition_string_fn, get_ime_context_fn): New optional
22922 (globals_of_w32fns): Load them from imm32.dll.
22923 (ignore_ime_char): New flag.
22924 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
22925 WM_IME_ENDCOMPOSITION messages.
22927 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
22928 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
22930 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22932 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
22933 (READCHAR_REPORT_MULTIBYTE): New macro.
22934 (readchar): New 2nd arg MULTIBYTE.
22935 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
22936 Make symbol's name multibyte according to the multibyteness of the
22939 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22941 * xfaces.c (face_for_overlay_string): Call lookup_face with
22942 correct arguments (fix of synching with the trunk).
22944 2008-02-01 Kenichi Handa <handa@m17n.org>
22946 * font.c (font_prop_validate_symbol, font_prop_validate_style)
22947 (font_prop_validate_non_neg, font_prop_validate_spacing):
22948 Delete argument prop_index.
22949 (font_property_table): Change arguments to validater. Change Callers.
22950 (font_lispy_object): Delete.
22951 (font_at): Use font_find_object instead fo font_lispy_object.
22953 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22955 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
22958 2008-02-01 Jason Rumney <jasonr@gnu.org>
22960 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
22961 (font_matches_spec): Remove debug output.
22962 (add_font_entity_to_list): Avoid using substituted fonts.
22964 2008-02-01 Jason Rumney <jasonr@gnu.org>
22966 * doc.c (Fsnarf_documentation):
22967 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
22969 2008-02-01 Miles Bader <miles@gnu.org>
22971 * dispextern.h (struct glyph_row): Only define "clip" field if
22972 HAVE_WINDOW_SYSTEM is defined.
22974 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
22976 Fix up multi-tty merge.
22978 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
22981 * xfaces.c (free_realized_face, clear_face_gcs):
22982 Include font_done_for_face in the input_blocked section, just in case.
22984 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
22985 (get_char_face_and_encoding): Undo last change and remove the *other*
22986 duplicate definition (i.e. keep the one that's better scoped and that
22987 includes code for the font-backend).
22989 * terminal.c (create_terminal): Default keyboard_coding to
22990 `no-conversion' and terminal_coding to `undecided'.
22992 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
22994 * fontset.c (free_realized_fontsets): Check that the table entry does
22995 contain a fontset before trying to compare it to `base'.
22997 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
22998 syms_of_charset, and syms_of_coding earlier because init_window_once
22999 now needs Vcoding_system_hash_table to be setup.
23001 * coding.h (default_buffer_file_coding): Remove.
23003 * coding.c (default_buffer_file_coding): Remove.
23004 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
23005 than ->symbol, and use the terminal-local coding system.
23006 (syms_of_coding): Don't setup the coding-systems that are not
23008 (Fdefine_coding_system_internal): Use XCAR/XCDR.
23010 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
23011 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
23013 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
23014 in chartab.c and were re-added here by mistake.
23015 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
23017 * doc.c (Fsnarf_documentation):
23018 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
23021 * ChangeLog.10: Add mistakenly removed entry.
23023 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
23025 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
23027 2008-02-01 Miles Bader <miles@gnu.org>
23029 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
23030 Add extra args to FACE_FOR_CHAR.
23032 2008-02-01 Kenichi Handa <handa@m17n.org>
23034 * keymap.c (where_is_internal_1): If key is a cons, store the copy
23037 * chartab.c (map_sub_char_table, map_char_table): If the range
23038 contains just one character, call the function with that character
23039 even if the depth is not 3.
23041 2008-02-01 Jason Rumney <jasonr@gnu.org>
23043 * w32font.c (w32font_text_extents): Calculate metrics for the
23046 2008-02-01 Jason Rumney <jasonr@gnu.org>
23048 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
23050 2008-02-01 Jason Rumney <jasonr@gnu.org>
23052 * w32term.c (x_set_glyph_string_clipping):
23053 Use get_glyph_string_clip_rects.
23054 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
23055 Adjust for the change of struct glyph_string.
23057 * w32font.c (w32font_draw): Do clipping here.
23059 2008-02-01 Kenichi Handa <handa@m17n.org>
23061 * xftfont.c (xftfont_draw): Adjust for the change of struct
23064 * xterm.c (x_set_glyph_string_clipping):
23065 Use get_glyph_string_clip_rects.
23066 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
23067 Adjust for the change of struct glyph_string.
23069 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
23070 the resulting clip(s}.
23071 (expose_overlaps): Add arg r. Change callers. Set it to
23072 row->clip temporarily.
23073 (expose_window): Redraw rows overlapping the exposed area.
23075 * dispextern.h (struct glyph_row): New member clip.
23076 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
23077 clip_height, new member clip, and num_clips.
23079 2008-02-01 Kenichi Handa <handa@m17n.org>
23081 * data.c (Fchar_or_string_p): Fix docstring.
23083 2008-02-01 Kenichi Handa <handa@m17n.org>
23085 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
23086 create a temporary XftDraw object.
23088 2008-02-01 Kenichi Handa <handa@m17n.org>
23090 * font.c (Ffontp): Fix docstring.
23092 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
23093 strong evidence of ISO-2022.
23095 2008-02-01 Kenichi Handa <handa@m17n.org>
23097 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
23098 SYNTAX_ENTRY_FOLLOW_PARENT.
23100 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
23102 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
23104 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
23105 Update to the new type of weak_hash_tables and next_weak.
23107 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
23108 a plain C pointer to Lisp_Hash_Table.
23110 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
23111 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
23112 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
23113 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
23114 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
23115 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
23116 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
23117 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
23118 (GC_EQ): Remove since they've been identical to their non-GC_
23119 alter-egos ever since the markbit was eradicated.
23138 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
23140 2008-02-01 Kenichi Handa <handa@m17n.org>
23142 * chartab.c (map_sub_char_table): Make it work for the top-level
23143 char-table. Fix handling of parent char-table.
23144 (map_char_table): Adjust for the above change.
23146 2008-02-01 Jason Rumney <jasonr@gnu.org>
23148 * w32font.c (Qgdi): Rename from Qw32.
23150 2008-02-01 Jason Rumney <jasonr@gnu.org>
23152 * w32bdf.c (get_quoted_string): Make function static.
23154 2008-02-01 Kenichi Handa <handa@m17n.org>
23156 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
23157 bigger ascent and descent than those of the font, use them as
23158 font's ascent and descent.
23160 2008-02-01 Kenichi Handa <handa@m17n.org>
23162 * Makefile.in (${lispsource}international/charprop.el): Move this
23163 target within "#ifdef HAVE_UNIDATA" and "#endif".
23165 2008-02-01 Kenichi Handa <handa@m17n.org>
23167 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
23168 (shortlisp): Add ../lisp/language/tai-viet.el.
23170 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
23172 * Makefile.in (${lispsource}international/charprop.el): Depend on
23175 2008-02-01 Jason Rumney <jasonr@gnu.org>
23177 * w32font.c (w32font_close): Delete the GDI font object.
23179 * w32menu.c: Include character.h.
23181 * w32proc.c: Likewise.
23183 * w32select.c: Likewise.
23185 * makefile.w32-in (w32proc.o): Depend on character.h.
23187 2008-02-01 Jason Rumney <jasonr@gnu.org>
23189 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
23191 * w32menu.c (syms_of_w32menu): Likewise.
23193 * w32proc.c (syms_of_ntproc): Likewise.
23195 * w32select.c (syms_of_w32select): Likewise.
23197 * w32term.c (syms_of_w32term): Likewise.
23199 2008-02-01 Jason Rumney <jasonr@gnu.org>
23201 * w32font.c (w32font_draw): Delete brush after using it.
23203 2008-02-01 Jason Rumney <jasonr@gnu.org>
23205 * w32font.c (w32font_open): Don't set font_idx.
23206 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
23208 (w32font_draw): Fill background explicitly.
23210 2008-02-01 Jason Rumney <jasonr@gnu.org>
23212 * w32term.c (w32_initialize): Don't call w32font_initialize.
23214 * w32font.c (w32font_info): Remove subranges.
23215 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
23216 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
23217 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
23218 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
23219 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
23220 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
23221 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
23222 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
23223 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
23224 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
23226 (font_callback_data): New struct.
23227 (w32font_list, w32font_match): Use it.
23228 (w32font_open): Don't populate subranges.
23229 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
23230 (w32font_encode_char): Always return unicode code-point as-is.
23231 (w32font_text_extents): Supply a transformation matrix to
23232 GetGlyphOutline. Never look up by glyph index. Avoid looping
23233 twice. Use unicode version of GetTexExtentPoint32 instead of
23234 glyph index version.
23235 (set_fonts_frame): Remove.
23236 (w32_enumfont_pattern_entity): Add frame parameter, use it to
23237 set frame parameter. Use backward compatible fake foundries.
23238 Save generic family in extra slot under QCfamily. Make width slot
23239 constant. Save QCspacing value. Save list of scripts instead of
23241 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
23242 (add_font_entity_to_list): Use font_callback_data struct.
23243 Filter unwanted fonts.
23244 (add_one_font_entity_to_list): Use font_callback_data struct.
23245 (w32_registry): Default to iso10646_1.
23246 (fill_in_logfont): Use dpi from extra slot. Don't bother with
23247 string font registries. Don't fill in font name if it is a generic
23248 family name, fill family instead. Use spacing, family and script
23249 extra info to fill pitch, family and charset fields.
23250 (list_all_matching_fonts): Use font_callback_data struct.
23251 (unicode_range_for_char): Remove.
23252 (font_supported_scripts): New function.
23253 (w32font_initialize): Remove.
23254 (syms_of_w32font): Update which symbols are defined.
23256 2008-02-01 Jason Rumney <jasonr@gnu.org>
23258 * font.c (font_pixel_size): Reverse assq_no_quit args.
23260 * w32term.h (FONT_WIDTH): Report max width, not average.
23261 (FONT_MAX_WIDTH): Remove.
23262 (FONT_AVG_WIDTH): New macro.
23264 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
23265 redefinition of FONT_WIDTH.
23267 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
23268 (w32_cache_char_metrics): Use FONT_WIDTH.
23270 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
23272 2008-02-01 Jason Rumney <jasonr@gnu.org>
23274 * w32font.c (w32font_open): Make lfHeight negative.
23276 * w32fns.c (x_default_font_parameter): Use new style font name.
23277 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
23279 2008-02-01 Jason Rumney <jasonr@gnu.org>
23281 * w32font.c (QCsubranges): New symbol.
23282 (w32font_open, w32font_has_char): Get subranges from subproperty
23284 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
23285 (syms_of_w32font): Define :subranges symbol.
23287 * font.c (font_put_extra): Expose externally.
23289 * font.h (font_put_extra): Move declaration from font.c.
23291 * font.c (Ffont_get): Use font driver to determine otf capability.
23292 (adjust_anchor): Check if driver defines anchor_point before using.
23294 * w32font.c (w32font_open): Handle size, height and pixel_size better.
23295 (w32font_draw): Use options.
23296 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
23297 Fix detection of truetype fonts.
23298 (registry_to_w32_charset): Handle charsets other than iso8859-1
23299 expressed as lisp symbols.
23300 (w32_registry): Express charset as lisp symbol.
23301 (fill_in_logfont): Reverse pixel and point height logic.
23302 Don't set width here. Set quality to default.
23304 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
23305 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
23307 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
23308 Remove redundant loop and allocation.
23310 * makefile.w32-in (font.o, w32font.o): New objects.
23311 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
23312 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
23314 * xdisp.c (fill_composite_glyph_string): Make the first arg to
23315 STORE_XCHARB a valid l-value.
23317 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
23318 calculations for non-Truetype fonts.
23319 (x_draw_glyph_string): Sync with xterm.c.
23320 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
23321 Remove redundant code.
23322 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
23324 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
23325 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
23327 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
23328 (x_to_w32_charset, w32_to_x_charset): Expose externally.
23330 * w32font.c: New file for w32 font backend.
23332 2008-02-01 Kenichi Handa <handa@m17n.org>
23334 * term.c: Don't include "buffer.h" twice.
23336 2008-02-01 Kenichi Handa <handa@m17n.org>
23338 * character.c (Funibyte_string): New function.
23339 (syms_of_character): Defsubr it.
23341 2008-02-01 Jason Rumney <jasonr@gnu.org>
23343 * w32term.c [USE_FONT_BACKEND]:
23344 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
23345 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
23346 (x_draw_glyph_string, x_draw_glyph_string_foreground)
23347 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
23348 (x_free_frame_resources): Sync with xterm.c.
23350 2008-02-01 Andreas Schwab <schwab@suse.de>
23352 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
23355 2008-02-01 Kenichi Handa <handa@m17n.org>
23357 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
23359 2008-02-01 Kenichi Handa <handa@m17n.org>
23361 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
23362 font_otf_gpos, add font_drive_otf.
23364 * fontset.c (fontset_find_font): Pay attention to font size
23365 specified for a font.
23366 (reorder_font_vector): Check contents of font_def.
23368 * font.c (struct otf_list): Delete it.
23369 (otf_list): Make it a lisp variable.
23370 (otf_open): Use lispy otf_list.
23371 (generate_otf_features): Rename from parse_gsub_gpos_spec.
23372 (check_otf_features): New function.
23373 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
23375 (font_drive_otf): New function merging font_otf_gsub and
23377 (font_open_for_lface): New arg spec. Change argument order.
23378 (font_load_for_face): Adjust for the change of font_open_for_lface.
23379 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
23381 (syms_of_font): Staticpro otf_list. Delete defsubr of
23382 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
23384 * xfaces.c (set_font_frame_param): Adjust for the change of
23385 font_open_for_lface.
23387 * font.h (font_open_for_lface): Adjust prototype.
23388 (struct font_driver): Delete members otf_gsub and otf_gpos, add
23390 (font_otf_gsub, font_otf_gpos): Delete externs.
23391 (font_drive_otf): Extern it.
23393 2008-02-01 Kenichi Handa <handa@m17n.org>
23395 * font.c (font_at): If the window W is not on a window system,
23398 * coding.c (produce_chars, encode_coding): Don't call
23399 insert_from_gap if no characters to produce.
23401 2008-02-01 Kenichi Handa <handa@m17n.org>
23403 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
23406 * xfaces.c (face_for_font): Check also face->font==font->font.font.
23408 2008-02-01 Miles Bader <miles@gnu.org>
23410 * emacs.c (main): Change default value of `enable_font_backend' to 1.
23411 Parse "--disable-font-backend" option.
23412 (standard_args): Add "--disable-font-backend" option.
23414 2008-02-01 Kenichi Handa <handa@m17n.org>
23416 * fontset.c (fontset_find_font): New function.
23417 (fontset_font): Use fontset_find_font.
23418 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
23419 Register the specified font for all Latin characters.
23420 (new_fontset_from_font): Register the specified font for all Latin
23422 (dump_fontset): For a realized fontset, include the base fontset
23423 name in the returned vector.
23425 2008-02-01 Kenichi Handa <handa@m17n.org>
23427 * character.h (CHAR_STRING): Cast C to unsigned on calling
23430 * character.c (char_string): Type of arg C changed to unsigned.
23431 Signal an error if C is an invalid character code.
23433 * editfns.c (general_insert_function, Fchar_to_string):
23434 Use CHARACTERP, not INTEGERP.
23436 2008-02-01 Kenichi Handa <handa@m17n.org>
23438 * character.h (MIN_MULTIBYTE_LEADING_CODE)
23439 (MAX_MULTIBYTE_LEADING_CODE): New macros.
23441 * regex.c (analyse_first): Fix for multibyte characters in "case
23442 charset:" and "case categoryspec:".
23444 2008-02-01 Andreas Schwab <schwab@suse.de>
23446 * Makefile.in (LIBES): Move standard libraries to the end.
23448 2008-02-01 Kenichi Handa <handa@m17n.org>
23450 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
23451 nonzero, don't shrink the buffer nextb.
23453 * buffer.h (struct buffer_text): New member inhibit_shrinking.
23455 * coding.c (coding_alloc_by_making_gap): New arg offset.
23456 (alloc_destination): Call coding_alloc_by_making_gap with the arg
23458 (decode_coding_iso_2022): Update coding->safe_charsets.
23459 (decode_coding_gap): Temporarily set
23460 current_buffer->text->inhibit_shrinking to 1.
23462 2008-02-01 Kenichi Handa <handa@m17n.org>
23464 * xterm.c (x_draw_composite_glyph_string_foreground):
23465 Fix indexing into elements of s->cmp and s->char2b.
23467 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
23469 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
23471 2008-02-01 Kenichi Handa <handa@m17n.org>
23473 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
23474 target_multibyte instead of multibyte.
23475 (re_match_2_internal): Call bcmp_translate with target_multibyte.
23476 (bcmp_translate): Change the argument name from multibyte to
23479 2008-02-01 Kenichi Handa <handa@m17n.org>
23481 These changes are to compile a regexp into a pattern that can be
23482 used both for multibyte and unibyte targets.
23484 * Makefile.in (search.o): Depend on charset.h.
23486 * character.c (multibyte_char_to_unibyte_safe): New function.
23488 * search.c: Include "charset.h".
23489 (compile_pattern_1): Delete argument multibyte. Don't set
23490 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
23491 (compile_pattern): Don't compare cp->buf.target_multibyte.
23492 Compare cp->buf.charset_unibyte.
23493 (compile_pattern): Set cp->buf.target_multibyte.
23495 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
23497 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
23499 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
23500 multibyte. Change callers.
23501 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
23502 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
23503 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
23504 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
23505 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
23506 (regex_compile): Make the compiled pattern usable both for
23507 multibyte and unibyte targets.
23508 (analyse_first): Make the fastmap usable both for multibyte and
23510 (TRANSLATE_VIA_MULTIBYTE): Delete.
23511 (re_match_2_internal): Pay attention to the case that the
23512 multibyteness of bufp and target may be different.
23514 2008-02-01 Kenichi Handa <handa@m17n.org>
23516 * xdisp.c (x_produce_glyphs): When a font is not found, make the
23517 empty box occupy at least one column width.
23519 2008-02-01 Miles Bader <miles@gnu.org>
23521 * Makefile.in: Remove redundant HAVE_XFT clause.
23523 2008-02-01 Kenichi Handa <handa@m17n.org>
23525 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
23527 2008-02-01 Kenichi Handa <handa@m17n.org>
23529 * fontset.c (Finternal_char_font): Fix for the case of POSITION
23532 2008-02-01 Kenichi Handa <handa@m17n.org>
23534 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
23536 2008-02-01 Kenichi Handa <handa@m17n.org>
23538 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
23540 2008-02-01 Kenichi Handa <handa@m17n.org>
23542 * search.c (simple_search): Fix previous change.
23544 2008-02-01 Kenichi Handa <handa@m17n.org>
23546 * xftfont.c (ftfont_font_format): Extern declaration.
23548 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
23550 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
23551 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
23553 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
23554 (ftfont_font_format): Fix previous change.
23556 * font.h (Ffont_xlfd_name): EXFUN it.
23558 * font.c (font_parse_xlfd): Fix the array size of `f'.
23559 (register_font_driver): Use EQ to compare driver->type.
23561 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
23562 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
23563 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
23565 2008-02-01 Kenichi Handa <handa@m17n.org>
23567 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
23568 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
23570 2008-02-01 Kenichi Handa <handa@m17n.org>
23572 * xfont.c (xfont_open): Set font->format.
23574 * xftfont.c (xftfont_open): Set font->format.
23576 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
23577 (ftfont_list): Include FC_FONTFORMAT in FcObject.
23578 (ftfont_open): Set font->format.
23579 (ftfont_font_format): New function.
23581 * font.h (struct font): New member format.
23583 * font.c (Qopentype): New variable.
23584 (syms_of_font): Defsym it.
23585 (Fquery_font): Change the format of the last element of the return
23588 2008-02-01 Kenichi Handa <handa@m17n.org>
23590 * xfns.c (xic_create_xfontset): Try the default fontset name as a
23593 2008-02-01 Kenichi Handa <handa@m17n.org>
23595 * coding.c (detect_coding_charset): Fix detection of multi-byte
23598 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
23600 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
23602 2008-02-01 Kenichi Handa <handa@m17n.org>
23604 * xdisp.c (get_next_display_element): Set it->face_id for the
23605 first component of a composition.
23606 (x_produce_glyphs): Check if the font is changed or not for composition.
23608 2008-02-01 Kenichi Handa <handa@m17n.org>
23610 * fontset.c (Qlatin): New variable.
23611 (syms_of_fontset): Define it as a lisp symbol.
23612 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
23614 2008-02-01 Kenichi Handa <handa@m17n.org>
23616 * font.c (font_unparse_fcname): Pay attention to the case that
23617 some of font property is a null string.
23619 2008-02-01 Kenichi Handa <handa@m17n.org>
23621 * term.c: Include "composite.h".
23622 (encode_terminal_code): Output all components of composition.
23623 Check the size of encode_terminal_src.
23624 (produce_glyphs): For composition, call produce_composite_glyph.
23625 (append_composite_glyph, produce_composite_glyph): New functions.
23627 * xdisp.c (x_produce_glyphs): In handling composition, if a font
23628 is not found, get font_info from the current ascii face.
23630 2008-02-01 Kenichi Handa <handa@m17n.org>
23632 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
23633 buffer-file-name to Qnil before calling insert_from_buffer.
23635 * font.c (font_unparse_fcname): Pay attention to the case that
23636 foundry is a null string.
23638 2008-02-01 Kenichi Handa <handa@m17n.org>
23640 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
23642 * font.c (Qunicode_sip): New variable.
23643 (syms_of_font): Declare it as a Lisp symbol.
23645 * font.h (Qunicode_sip): Extern it.
23647 2008-02-01 Kenichi Handa <handa@m17n.org>
23649 * composite.c (get_composition_id): Pay attention to TAB component.
23651 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
23652 TAB. Adjust for the change of s->char2b which always points to
23653 the first element of allocated memory.
23655 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
23657 * xdisp.c (handle_composition_prop): Set it->c to the first
23659 (fill_composite_glyph_string): Change argument.
23660 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
23661 (x_produce_glyphs): Fix handling of left/right padding.
23663 2008-02-01 Kenichi Handa <handa@m17n.org>
23665 * coding.c (detect_coding_system): Fix for handling off
23666 inhibit_iso_escape_detection. Fix for the case that no coding
23667 system is defined for a specific coding category.
23669 2008-02-01 Kenichi Handa <handa@m17n.org>
23671 * font.c (font_matching_entity): Delete unused local var.
23673 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
23676 * fileio.c (Finsert_file_contents): On recovering a file, assume
23678 (choose_write_coding_system): On auto-saving a file, force
23681 * coding.c (setup_coding_system): Fix setting of
23682 coding->common_flags based on eol_type.
23683 (coding_inherit_eol_type): If PARENT is not nil, be sure to
23686 2008-02-01 Kenichi Handa <handa@m17n.org>
23688 * alloc.c (NSTATICS): Increas to 0x600.
23690 2008-02-01 Kenichi Handa <handa@m17n.org>
23692 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
23693 (ftfont_list): Don't check :name property.
23694 (ftfont_match): New function.
23695 (ftfont_pattern_entity): If the pattern doesn't contain
23696 FC_SPACING, don't assume FC_MONO.
23698 * font.h (struct font_driver): New member `match'.
23699 (font_update_drivers): Adjust prototype.
23701 * font.c (font_parse_fcname, font_parse_name): Don't change :name
23703 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring):
23704 Define them unconditionally.
23705 (font_matching_entity): New function.
23706 (font_open_by_name): Try font_matching_entity if exact match is
23708 (font_update_drivers): Delete the arg FONT. Return a list of
23709 actually used backends. Don't free faces, font caches here.
23710 Don't store data in frame parameters. Don't call x_set_font.
23711 (Ffont_spec): Store :name property as is.
23712 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
23713 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
23714 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
23715 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
23716 Call font->driver->otf_gsub instead of font_otf_gsub.
23718 * frame.c (x_set_font_backend): Do more works that were done in
23719 font_update_drivers before.
23721 * xfont.c (xfont_match): New function.
23722 (xfont_driver): Set xfont_driver.match to xfont_match.
23723 (xfont_draw): Set font in GC if necessary.
23725 * ftxfont.c (ftxfont_match): New function.
23726 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
23728 * xftfont.c (xftfont_match): New function.
23729 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
23731 2008-02-01 Kenichi Handa <handa@m17n.org>
23733 * font.h (struct font): New member scalable.
23734 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
23735 (font_otf_gsub): Adjust prototype.
23737 * font.c (font_otf_capability): Fix handling of the default langsys.
23738 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
23739 Check the contents of SPEC.
23740 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
23741 (check_gstring): New function.
23742 (REPLACEMENT_CHARACTER): New macro.
23743 (font_otf_gsub): New arg alternate_subst. Be sure to set all
23744 glyph codes of GSTRING.
23745 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
23746 (font_prepare_composition): Set cmp->glyph_len.
23747 (font_open_entity): Set font->scalable.
23748 (Ffont_get): Handle :otf property.
23749 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates):
23751 (Fquery_font): Use font->font.full_name.
23752 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
23753 Sfont_otf_alternates.
23755 * ftfont.c (ftfont_open): Set font->font.full_name and
23756 font->font.name properly. Fix calculation of font->font.height
23757 and font->min_width.
23759 * ftxfont.c (ftxfont_create_gcs): New function.
23760 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
23761 (ftxfont_draw_backgrond): Fix filling region.
23762 (ftxfont_default_fid): New function.
23763 (ftxfont_open): Set xfont->fid to the return value of
23764 ftxfont_default_fid.
23765 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
23766 (ftxfont_done_face): Free only GCs that are created by
23767 ftxfont_create_gcs.
23768 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
23770 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
23771 Clip to src->width, etc (not src->clip_XXX).
23773 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
23774 FontBackend frame parameter.
23776 2008-02-01 Kenichi Handa <handa@m17n.org>
23778 * font.h (struct font_driver_list): New member `on'.
23779 (Fclear_font_cache): EXFUN it.
23780 (font_update_drivers): Extern it.
23782 * font.c (font_unparse_fcname): Fix typo (swidth->width).
23783 (font_list_entities): Check driver_list->on.
23784 (register_font_driver): Initialize `on' member to 0.
23785 (font_update_drivers): New function.
23786 (Fclear_font_cache): Check driver_list->on.
23788 * frame.h (Qfont_backend): Extern it.
23789 (x_set_font_backend): Extern it.
23791 * frame.c (Qfont_backend): New variable.
23792 (frame_parms): New element for font-backend.
23793 (x_set_font_backend): New function.
23795 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
23796 FontBackend frame parameter.
23797 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
23798 x_set_font_backend.
23800 * xfont.c (xfont_list): Don't try listing by :name property if the
23801 name is not for XLFD.
23803 2008-02-01 Kenichi Handa <handa@m17n.org>
23805 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
23806 (LGLYPH_SET_TO): New macros.
23807 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
23808 element of G is vector or not.
23809 (font_at): Extern it.
23811 * font.c: Include window.h.
23812 (font_lispy_object): New function.
23813 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
23814 end of valid glyph.
23815 (font_close_object): Fix getting (struct font *).
23816 (font_at): New function.
23817 (Ffont_get): If FONT is a font-object, get entity from it.
23818 (Ffont_make_gstring): Initialize elements of glyphs with nil.
23819 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX.
23821 (Ffont_at): New function.
23822 (syms_of_font): Defsubr Sfont_at.
23824 * xdisp.c (it_props): Move the entry for Qauto_composed to just
23825 before the entry for Qcomposition.
23826 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
23827 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
23828 the font in gstring.
23829 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
23830 LGLYPH_FORM (g) to detect the end of valid glyph.
23831 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
23832 we are composing with gstring.
23834 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
23835 Check if adjustment is vector or not.
23837 * Makefile.in (font.o): Make it depends on window.h.
23839 2008-02-01 Kenichi Handa <handa@m17n.org>
23841 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
23842 adjustment is vector or not.
23844 2008-02-01 Miles Bader <miles@gnu.org>
23846 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
23848 2008-02-01 Kenichi Handa <handa@m17n.org>
23850 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
23851 (LGLYPH_SET_WIDTH): Adjust for the change of LGLYPH format.
23852 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
23854 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
23855 (DEVICE_DELTA): Fix typo.
23856 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
23859 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
23860 the change of LGLYPH format.
23862 2008-02-01 Kenichi Handa <handa@m17n.org>
23864 * ftfont.c (ftfont_list): Fix typo.
23865 (ftfont_build_basic_charsets): Don't include letters with diacritics.
23867 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
23869 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
23871 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
23872 xftface_info is non-NULL.
23874 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
23876 * ftfont.c (ftfont_list): Move misplaced #endif.
23878 2008-02-01 Kenichi Handa <handa@m17n.org>
23880 * ftfont.c (ftfont_list): Pay attention to the case that
23881 FC_CAPABILITY is not defined.
23883 2008-02-01 Kenichi Handa <handa@m17n.org>
23885 * xftfont.c (xftfont_open): Set charset related members to -1.
23887 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
23889 (ftfont_open): Set charset related members to -1.
23891 * fontset.c (Votf_script_alist): New variable.
23892 (syms_of_fontset): Initialize it.
23893 (fontset_font): Delete unused variable.
23895 * fontset.h (Votf_script_alist): Extern it.
23897 * font.c (font_find_for_lface): Optimize code.
23899 * font.h (font_close_object, font_merge_old_spec): Extern them.
23901 2008-02-01 Kenichi Handa <handa@m17n.org>
23903 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
23904 (syms_of_font): Initialize them.
23905 (font_pixel_size): Allow float value in dpi.
23906 (font_prop_validate_type): Delete.
23907 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
23909 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
23910 (font_prop_validate_extra): Delete.
23911 (font_prop_validate_spacing): New function.
23912 (font_property_table): Add elements for all known properties.
23913 (get_font_prop_index): Rename from check_font_prop_name.
23914 New argument FROM. Change caller.
23915 (font_prop_validate): Validate all known properties.
23916 (font_put_extra): Delete argument force. Change caller.
23917 (font_expand_wildcards): Make it static. Fix the way of shrinking
23918 the possible range.
23919 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
23920 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
23922 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
23923 (font_parse_fcname): Delete argument merge. Fix parsing of point
23924 size. Don't validate properties values here. Change caller.
23925 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
23926 (font_open_by_name): Delete unused variable.
23927 (Ffont_spec): Likewise. Validate property values.
23928 (Ffont_match_p): New function.
23930 * font.h (QCscalable): Extern it.
23931 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
23933 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
23935 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
23936 (xfont_list_pattern): New function.
23937 (xfont_list): Use xfont_list_pattern.
23939 2008-02-01 Kenichi Handa <handa@m17n.org>
23941 * font.h (Flist_fonts): EXFUN it.
23943 2008-02-01 Jason Rumney <jasonr@gnu.org>
23945 * w32term.c (w32_initialize): Add back smoothing_type and
23946 smoothing_enabled definitions.
23948 2008-02-01 Kenichi Handa <handa@m17n.org>
23950 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
23951 s->face->font on determining underline position.
23953 2008-02-01 Kenichi Handa <handa@m17n.org>
23955 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
23956 (font_has_char): Accept font-object too.
23957 (font_find_for_lface): Try at first with a size specified in face.
23959 2008-02-01 Kenichi Handa <handa@m17n.org>
23961 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
23964 2008-02-01 Kenichi Handa <handa@m17n.org>
23966 * font.h (QCspacing, QCdpi): Extern them.
23967 (enum font_spacing): New enum.
23968 (FONT_PIXEL_SIZE_QUANTUM): New macro.
23970 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
23971 (QCspacing, QCdpi): New variables.
23972 (syms_of_font): Initialize them.
23973 (font_pixel_size): New function.
23974 (font_put_extra): New function.
23975 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
23977 (font_parse_fcname): Handle enumerated values (e.g. bold).
23978 Fix handling font size. Add QCname property that contains only
23979 unknown properties.
23980 (font_score): Change argument. Change caller. Pay attention to
23981 FONT_PIXEL_SIZE_QUANTUM.
23982 (font_sort_entites, font_list_entities, font_find_for_lface)
23983 (font_open_for_lface, font_open_by_name): Fix handling of font size.
23984 (Ffont_spec): Add QCname property that contains only unknown properties.
23986 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq.
23987 Don't include weight in listing pattern, instead check weight of each
23988 listed font. Don't include scalable in pattern. Pay attention to
23989 FONT_PIXEL_SIZE_QUANTUM.
23991 2008-02-01 Kenichi Handa <handa@m17n.org>
23993 * font.c (font_parse_fcname): Fix parsing of point-size.
23994 (font_unparse_fcname): Produce symbolic names for style properties.
23995 (font_list_entities): Handle float size correctly.
23996 (font_open_by_name): Prefer `normal' property values if the name
23997 doesn't specify them.
23999 * fontset.c (Finternal_char_font): Use font_get_name, not
24002 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
24003 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
24004 pattern. Don't force scalable.
24006 * xftfont.c (xftfont_open): For generating a name, start from
24009 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
24011 * frame.h (x_new_fontset2): Fix prototype.
24013 2008-02-01 Kenichi Handa <handa@m17n.org>
24015 * font.h (struct font_driver): Delete member parse_name.
24016 (font_match_p, font_get_spec, font_parse_fcname)
24017 (font_unparse_fcname): Extern them.
24018 (font_get_name): Adjust prototype.
24020 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
24021 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
24022 (font_expand_wildcards): Fix handling ENCODING field.
24023 Avoid unnecessary checks for weight, slant, and swidth.
24024 (font_parse_fcname): New function.
24025 (font_unparse_fcname): New function.
24026 (font_parse_name): New function.
24027 (font_match_p): New function.
24028 (font_get_name): Change return value to Lisp string.
24029 (font_get_spec): New function.
24030 (Qunspecified, Qignore_defface): Don't extern them.
24031 (font_find_for_lface): Assume that LFACE is fully specified.
24032 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
24033 object, use it for FACE.
24034 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
24035 driver->parse_name.
24036 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
24038 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
24041 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
24042 argument F. Don't call Fnew_fontset. Instead, directly call
24045 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
24047 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
24050 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
24051 (Qsans__serif): New variables.
24052 (ftfont_generic_family_list): New variable.
24053 (syms_of_ftfont): Initialize the above variables.
24054 (ftfont_pattern_entity): Delete argument NAME.
24055 (ftfont_list_generic_family): New function.
24056 (ftfont_parse_name): Delete this function.
24057 (ftfont_list): Try generic family only when FcFontList found no font.
24058 (ftfont_list_family): Fix args to FcObjectSetBuild.
24060 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
24061 object in attrs[LFACE_FONT_INDEX].
24062 (set_lface_from_font_name): Cancel all changes for font-backend.
24063 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
24065 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
24066 font object in QCfont attribute.
24067 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
24068 (realize_default_face) [USE_FONT_BACKEND]: Call
24069 set_lface_from_font_and_fontset.
24071 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
24072 "fixed", and signal error here if no suitable font was found.
24074 * xfont.c (xfont_parse_name): Delete this function.
24076 * xftfont.c (xftfont_open): Change coding style of error
24077 handling. Generate fontconfig's fontname pattern.
24079 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
24080 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
24082 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
24083 Both args FONTSET and FONT_OBJECT must be existing ones.
24085 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24087 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
24089 2008-02-01 Kenichi Handa <handa@m17n.org>
24091 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
24093 * font.h (struct font): Fix typo.
24095 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
24097 (enum xlfd_field_mask): New enum.
24098 (intern_font_field): Change argument. Change caller. If digits
24099 are followed by non-digits, return a symbol.
24100 (font_expand_wildcards): New function.
24101 (font_parse_xlfd): Fix wildcard handling.
24102 (Ffont_spec): If :name is specified, reflect the info in the other
24105 * ftfont.c (ftfont_pattern_entity): Fix typo.
24106 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
24109 2008-02-01 Kenichi Handa <handa@m17n.org>
24111 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
24113 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
24114 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
24115 registry doesn't specify encoding part.
24116 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
24117 (font_open_by_name): At first try parsing the name.
24118 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
24121 * fontset.c (reorder_font_vector): Pay attention to the case that
24122 the 3rd element of font_def is nil.
24123 (fontset_font): For the default fontset, append one more fontset
24124 elements for a script-based font specification. Don't add script
24125 attribute on finding a font.
24126 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
24128 (fontset_ascii_font): If a font can't be opened, return nil.
24130 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
24131 (ftfont_pattern_entity): New function.
24132 (ftfont_get_cache): Assume that freetype_font_cache is already
24134 (ftfont_list): Handle the case that a file is specified in font
24135 name. Use ftfont_pattern_entity to generate entities.
24136 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
24137 (syms_of_ftfont): Initialize freetype_font_cache.
24139 * xftfont.c (xftfont_open): Make the font name fontconfig's
24140 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
24141 (xftfont_close): Free font->font.name if not NULL.
24143 * xfont.c (xfont_list): If script is specified for a font, return
24145 (xfont_list_family): Declare argument type.
24147 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
24148 name, set LFACE_FONT (lface) to nil.
24150 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
24153 2008-02-01 Kenichi Handa <handa@m17n.org>
24155 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
24156 (standard_args): Add "-enable-font-backend".
24158 2008-02-01 Kenichi Handa <handa@m17n.org>
24160 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
24161 (struct xftdraw_list, xftdraw_list): Delete them.
24162 (register_xftdraw, check_xftdraw): Delete them.
24163 (xftfont_prepare_face): Don't call register_xftdraw.
24164 (xftfont_done_face): Don't call check_xftdraw.
24165 (xftfont_draw): Get background color only when with_background is
24168 * xfont.c (xfont_encode_char): Fix calculation of char2b.
24170 2008-02-01 Kenichi Handa <handa@m17n.org>
24172 These changes are for the new font handling codes.
24174 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
24175 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
24176 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
24177 (FONTSRC, FONTOBJ): New variables.
24178 (obj): Add $(FONTOBJ).
24179 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
24180 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
24182 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
24183 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
24185 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
24187 * character.h (Vscript_representative_chars): Extern it.
24189 * character.c (Vscript_representative_chars): New variable.
24190 (syms_of_character): Declare it as a Lisp variable.
24192 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
24193 enable_font_backend is nonzero, accept the composition method
24194 COMPOSITION_WITH_GLYPH_STRING.
24196 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
24197 enumeration COMPOSITION_WITH_GLYPH_STRING.
24199 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
24200 members clip_x, clip_y, clip_width, and clip_height.
24201 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
24203 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
24204 --enable-font-backend. Call syms_of_font.
24206 * fns.c (assoc_no_quit): New function.
24208 * fontset.h (FONT_INFO_FROM_FACE): New macro.
24209 (face_for_font, new_fontset_from_font)
24210 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
24212 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
24213 (fontset_font, fontset_ascii, face_for_char)
24214 (make_fontset_for_ascii_face, Ffont_info)
24215 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
24216 is nonzero, use font-backend mechanism.
24217 (find_font_encoding): Make it non-static.
24218 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
24221 * frame.h (struct frame): New members resx and resy.
24222 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
24223 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
24225 * frame.c [USE_FONT_BACKEND]: Include "font.h".
24226 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
24228 * lisp.h (assoc_no_quit): Extern it.
24230 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
24231 Through out the file, use FONT_INFO_FROM_FACE instead of
24232 FONT_INFO_FROM_ID, use get_per_char_metric instead of
24233 rif->per_char_metric.
24234 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
24235 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
24236 (get_glyph_face_and_encoding, fill_composite_glyph_string)
24237 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
24238 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
24239 nonzero, use font-backend mechanism.
24240 (get_per_char_metric): New function.
24242 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
24243 (set_lface_from_font_name)
24244 (set_font_frame_param, free_realized_face)
24245 (prepare_face_for_display, clear_face_gcs)
24246 (Finternal_set_font_selection_order, realize_x_face)
24247 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
24248 font-backend mechanism.
24249 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
24250 (load_face_font) [USE_FONT_BACKEND]: Abort.
24251 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
24252 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
24254 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
24255 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
24256 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
24257 nonzero, register all available font drivers.
24258 Call x_default_font_parameter for deciding a font.
24259 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
24261 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
24262 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
24263 (x_set_glyph_string_clipping_exactly)
24264 (x_compute_glyph_string_overhangs)
24265 (x_draw_glyph_string_foreground)
24266 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
24267 (x_free_frame_resources) [USE_FONT_BACKEND]: If
24268 enable_font_backend is nonzero, use font-backend mechanism.
24269 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
24271 2008-02-01 Kenichi Handa <handa@m17n.org>
24273 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
24275 (syms_of_coding): Initialize system_eol_type.
24277 * process.c (Fset_process_coding_system): Inherit system's eol
24278 format if necessary.
24280 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24282 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
24284 2008-02-01 Kenichi Handa <handa@m17n.org>
24286 * coding.c (decode_eol): Pay attention to buffer relocation in
24288 (decode_coding): Call decode_eol before restoring undo_list.
24290 2008-02-01 Kenichi Handa <handa@m17n.org>
24292 * charset.c (Fdefine_charset_internal): Fix setting of
24295 2008-02-01 Kenichi Handa <handa@m17n.org>
24297 * keyboard.c (read_char): Check if C is a character or not before
24298 looking up Vkeyboard_translate_table.
24300 2008-02-01 Kenichi Handa <handa@m17n.org>
24302 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION):
24303 Fix condition to terminate the loop.
24305 2008-02-01 Kenichi Handa <handa@m17n.org>
24307 * coding.c (produce_composition): Compare charbuf[i] instead of
24309 (Fterminal_coding_system): Use EQ to compare Lisp objects.
24311 2008-02-01 Kenichi Handa <handa@m17n.org>
24313 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
24314 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
24315 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
24317 (emacs_mule_char): Handle old style (Emacs 20) component character
24319 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
24320 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
24322 (decode_coding_emacs_mule): Handle invalid bytes correctly.
24324 2008-02-01 Kenichi Handa <handa@m17n.org>
24326 * coding.c (encode_coding_ccl): Allocate destination dynamically
24329 2008-02-01 Kenichi Handa <handa@m17n.org>
24331 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
24332 the loop. When quitted, show a proper error message.
24334 2008-02-01 Kenichi Handa <handa@m17n.org>
24336 * xterm.c (x_set_glyph_string_clipping_exactly):
24337 Set src->clip_head and src->clip_tail temporarily instead of src->hl.
24339 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
24340 character sequence.
24341 (Fccl_execute_on_string): Use ASET, not XSET.
24343 2008-02-01 Kenichi Handa <handa@m17n.org>
24345 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
24347 2008-02-01 Kenichi Handa <handa@m17n.org>
24349 * coding.c (decode_coding): Fix the condition of terminating the
24352 2008-02-01 Kenichi Handa <handa@m17n.org>
24354 * data.c (Faset): On setting a character bigger than 255 in a
24355 unibyte string, signal an error instead of make the string multibyte.
24357 2008-02-01 Kenichi Handa <handa@m17n.org>
24359 * charset.c (map_charset_chars): Fix for ascii-compatible charset
24360 made by a mapping table.
24362 2008-02-01 Kenichi Handa <handa@m17n.org>
24364 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
24366 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
24367 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
24369 * xterm.c (x_draw_composite_glyph_string_foreground):
24370 Check s->face is NULL or not.
24372 2008-02-01 Kenichi Handa <handa@m17n.org>
24374 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
24375 (x_draw_glyph_string): Fix drawing of right_overhang and
24376 left_overhang around/on cursor.
24378 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
24380 2008-02-01 Kenichi Handa <handa@m17n.org>
24382 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
24384 2008-02-01 Kenichi Handa <handa@m17n.org>
24386 * coding.c (Fdefine_coding_system_internal)
24387 (Fdefine_coding_system_alias): Avoid a duplicated element in
24388 Vcoding_system_alist.
24390 2008-02-01 Kenichi Handa <handa@m17n.org>
24392 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
24394 * coding.c (Qcoding_system_define_form): New variable.
24395 (syms_of_coding): Intern and staticpro it.
24396 (Fcoding_system_p): Check Qcoding_system_define_form.
24397 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
24399 * coding.h (CODING_SYSTEM_P): If ID is not available, call
24401 (CHECK_CODING_SYSTEM): If ID is not available, call
24402 Fcheck_coding_system.
24403 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
24404 Try also Fcheck_coding_system.
24406 2008-02-01 Kenichi Handa <handa@m17n.org>
24408 * coding.c (code_conversion_restore): GCPRO arg.
24410 2008-02-01 Kenichi Handa <handa@m17n.org>
24412 * character.c (lisp_string_width): Check multibyteness of STRING.
24414 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24416 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
24417 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
24418 (decode_mac_font_name): Use decode_coding_c_string instead of
24420 (x_load_font): Initialize fontp->fontset to -1.
24421 Set fontp->encoding_type.
24423 2008-02-01 Kenichi Handa <handa@m17n.org>
24425 * search.c (search_buffer): Give up BM search on case-fold-search
24426 if one of a target character has a case-equivalence of different
24427 byte length even if that target character is an ASCII.
24428 (simple_search): Fix calculation of byte length of matched text.
24429 (boyer_moore): Fix handling of case-equivalent multibyte characters.
24431 2008-02-01 Kenichi Handa <handa@m17n.org>
24433 * coding.c (decode_coding): Fix handling of invalid bytes.
24435 2008-02-01 Kenichi Handa <handa@m17n.org>
24437 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
24438 Unicode characters.
24440 2008-02-01 Kenichi Handa <handa@m17n.org>
24442 * coding.c (encode_coding_object): If a pre-write-conversion
24443 function makes a new buffer, kill it.
24445 2008-02-01 Kenichi Handa <handa@m17n.org>
24447 * coding.c (QCascii_compatible_p): New variable.
24448 (syms_of_coding): Initialize it.
24449 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
24450 calling string_char.
24451 (record_conversion_result): Add `default:' case.
24452 (coding_charset_list): Delete unused variable `coding_type'.
24453 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
24454 property in the plist of the coding system.
24455 (Fcoding_system_put): Check QCascii_compatible_p.
24457 2008-02-01 Miles Bader <miles@gnu.org>
24459 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
24460 removed calculation of frame `f', as it's now used.
24462 2008-02-01 Kenichi Handa <handa@m17n.org>
24464 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
24465 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
24466 (UNIDATA): New variable.
24467 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
24468 (bootstrap-emacs${EXEEXT}): Depends on charprop.el.
24469 Run $(RUN_TEMACS) unconditionally.
24471 2008-02-01 Kenichi Handa <handa@m17n.org>
24473 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
24474 (admindir): New variable.
24475 ($(lispsource)international/charprop.el): New target.
24477 2008-02-01 Miles Bader <miles@gnu.org>
24479 * character.c (chars-in-region): Remove obsolete function.
24480 (syms_of_character): Remove its initialization.
24482 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
24484 * w32select.c (validate_coding_system)
24485 (setup_windows_coding_system): New functions.
24486 (convert_to_handle_as_coded, Fw32_get_clipboard_data):
24487 Use setup_windows_coding_system.
24488 (setup_config, Fw32_get_clipboard_data):
24489 Use validate_coding_system.
24490 (Fx_selection_exists): Move call to setup_config to a place
24491 where signals are allowed.
24493 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
24494 (Fcheck_coding_system): Add declarations.
24496 2008-02-01 Kenichi Handa <handa@m17n.org>
24498 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
24500 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24502 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
24503 string as the second argument for x_new_fontset.
24505 2008-02-01 Kenichi Handa <handa@m17n.org>
24507 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
24508 (encode_coding_object): Use safe_call instead of call2.
24510 2008-02-01 Kenichi Handa <handa@m17n.org>
24512 * fontset.c (Fset_fontset_font): Check family element of a given vector.
24514 * Makefile.in (lisp): Include charprop.el.
24516 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24518 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
24519 Not sure if it's unnecessary.
24521 2008-02-01 Steven Tamm <steventamm@mac.com>
24523 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
24524 some possibly unnecessary fontset checking code that crashed
24525 when creating a new frame.
24527 2008-02-01 Kenichi Handa <handa@m17n.org>
24529 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
24532 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
24534 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
24536 2008-02-01 Kenichi Handa <handa@m17n.org>
24538 * coding.c: Cancel the change done in HEAD on 2008-02-01.
24539 (coding_charset_list): New function.
24541 * coding.h (coding_charset_list): Extern it.
24543 2008-02-01 Kenichi Handa <handa@m17n.org>
24545 * fontset.c (Fset_fontset_font): Call find_font_encoding with
24546 concatenation of family and registry.
24548 2008-02-01 Kenichi Handa <handa@m17n.org>
24550 * character.h (BYTE8_STRING): Fix typo.
24552 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
24553 string to multibyte (sync to HEAD).
24555 * casefiddle.c (casify_region): Handle changes in byte-length
24556 using replace_range_2 (sync to HEAD).
24558 2008-02-01 Andreas Schwab <schwab@suse.de>
24560 * chartab.c (map_char_table): GCPRO table and arg.
24562 2008-02-01 Kenichi Handa <handa@m17n.org>
24564 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
24567 2008-02-01 Kenichi Handa <handa@m17n.org>
24569 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
24570 instead of fast_c_string_match_ignore_case.
24571 (find_font_encoding): Change argument to Lisp_Object.
24572 Use fast_string_match_ignore_case instead of
24573 fast_c_string_match_ignore_case. Change caller.
24575 2008-02-01 Kenichi Handa <handa@m17n.org>
24577 * xdisp.c (get_next_display_element): In unibyte case, decide to
24578 display in octal form by checking a character by
24579 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
24581 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
24583 * character.c (unibyte_has_multibyte_table): New variable.
24585 * character.h (unibyte_has_multibyte_table): Extern it.
24586 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
24588 2008-02-01 Kenichi Handa <handa@m17n.org>
24590 * coding.c (encode_coding_iso_2022): Fix handling of charset
24593 2008-02-01 Kenichi Handa <handa@m17n.org>
24595 * coding.c (setup_coding_system): If coding_system is nil, use
24597 (Fterminal_coding_system): Return nil if terminal coding system is
24599 (syms_of_coding): Define coding-system `undecided' here.
24600 Setup terminal_coding as `undecided'.
24602 2008-02-01 Kenichi Handa <handa@m17n.org>
24604 * xdisp.c (message_dolog, set_message_1):
24605 Call unibyte_char_to_multibyte with arg type int.
24607 * lread.c (read1): Fix reading of a char-table.
24609 * print.c (print_object): Include sub char-table in circularities
24612 2008-02-01 Kenichi Handa <handa@m17n.org>
24614 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
24615 Append the found sequences in car of ARGS instead of prepending.
24617 2008-02-01 Kenichi Handa <handa@m17n.org>
24619 * fileio.c (report_file_error): Make a unibyte string from
24620 strerror (errorno).
24621 (Fsubstitute_in_file_name): Fix the arg to
24622 unibyte_char_to_multibyte. It is evaluated twice.
24624 2008-02-01 Kenichi Handa <handa@m17n.org>
24626 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
24628 2008-02-01 Kenichi Handa <handa@m17n.org>
24630 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
24632 (detect_coding, detect_coding_system): Optimization for ISO-2022
24633 when no 8-bit data is found.
24635 2008-02-01 Jason Rumney <jasonr@gnu.org>
24637 * w32fns.c (x_to_w32_font): Update to use new coding struct.
24639 2008-02-01 Kenichi Handa <handa@m17n.org>
24641 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
24644 2008-02-01 Steven Tamm <steventamm@mac.com>
24646 * macterm.c (mac_encode_char): Add charset argument and update
24647 to use encoding_type.
24648 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
24649 switch to pure fontset.
24650 (decode_mac_font_name): Temporarily remove decoding.
24651 (x_font_name_to_mac_font_name): Temporarily remove encoding.
24652 (x_load_font): Temporarily remove encoding.
24654 2008-02-01 Kenichi Handa <handa@m17n.org>
24656 * xfaces.c (Fface_font): If frame is not on a window system,
24657 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
24658 refer to face->font.
24659 (split_font_name_into_vector, build_font_name_from_vector)
24660 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
24661 when HAVE_WINDOW_SYSTEM is defined.
24663 2008-02-01 Kenichi Handa <handa@m17n.org>
24665 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
24666 (x_produce_glyphs): Fix setting of members of cmp in case
24667 cmp->glyph_len is zero.
24669 * fontset.c (Fset_fontset_font): Fix docstring.
24670 (Ffontset_info): Make it backward compatible. New arg ALL.
24672 2008-02-01 Kim F. Storm <storm@cua.dk>
24674 * process.c (read_process_output): Grow decoding_buf when needed;
24675 this could cause a crash in allocate_string and compact_small_strings.
24677 2008-02-01 Kenichi Handa <handa@m17n.org>
24679 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
24681 2008-02-01 Kenichi Handa <handa@m17n.org>
24683 * coding.c (setup_coding_system): Set coding->common_flags
24684 correctly for raw-text.
24685 (consume_chars): On encoding unibyte text by raw-text, don't check
24687 (encode_coding): On encoding by raw-text, never use translation tables.
24689 * fileio.c (e_write): Short cut for the case of no encoding.
24691 2008-02-01 Kenichi Handa <handa@m17n.org>
24693 * coding.c (detect_coding, detect_coding_system): Delete unused
24696 2008-02-01 Kenichi Handa <handa@m17n.org>
24698 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
24699 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
24701 2008-02-01 Kenichi Handa <handa@m17n.org>
24703 * coding.c (Ffind_coding_systems_region_internal):
24704 Include raw-text and no-conversion in the result.
24706 2008-02-01 Kenichi Handa <handa@m17n.org>
24708 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
24709 (load_font_get_repertory): Delete unnecessary check of ENCODING of
24711 (font_def_arg, add_arg, from_arg, to_arg): New args.
24712 (set_fontset_font): Change argument.
24713 (Fset_fontset_font): Fix for the case that TARGET is a script
24714 name and charset name.
24715 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
24717 2008-02-01 Kenichi Handa <handa@m17n.org>
24719 * fontset.c (fontset_font): Rename from fontset_face. Change return
24721 (face_suitable_for_char_p, face_for_char): Adjust for the change
24723 (make_fontset_for_ascii_face): Fix setting of the fontset element
24725 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
24726 to get a font name.
24727 (Ffontset_info): Adjust for the change of fontset_font.
24729 * coding.c (emacs_mule_char): Check invalid code more rigidly.
24731 * character.h (LEADING_CODE_LATIN_1_MIN)
24732 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
24734 2008-02-01 Kenichi Handa <handa@m17n.org>
24736 * editfns.c (check_translation): New function.
24737 (Ftranslate_region_internal): Handle M:N mapping.
24739 2008-02-01 Kenichi Handa <handa@m17n.org>
24741 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
24743 2008-02-01 Kenichi Handa <handa@m17n.org>
24745 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
24747 (decode_coding_iso_2022): Fix handling of invalid designation.
24749 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
24750 after calling code_conversion_save.
24752 2008-02-01 Kenichi Handa <handa@m17n.org>
24754 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
24756 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
24758 * fontset.c: Include "intervals.h".
24759 (fontset_face): Fix comparing of Lisp_Objects.
24760 (free_face_fontset, new_fontset_from_font_name):
24761 Fix Lisp_Object/int mixup.
24763 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
24765 * coding.c: Add many prototypes for static functions.
24766 (get_translation_table): Allow max_lookup to be NULL.
24767 (decode_coding, Ffind_coding_systems_region_internal)
24768 (Funencodable_char_position, Fcheck_coding_systems_region):
24769 Call get_translation_table with max_lookup NULL.
24771 2008-02-01 Kenichi Handa <handa@m17n.org>
24773 * coding.c (get_translation_table): Declare it as Lisp_Object.
24774 (LOOKUP_TRANSLATION_TABLE): New macro.
24775 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
24776 instead of CHAR_TABLE_REF.
24778 2008-02-01 Kenichi Handa <handa@m17n.org>
24780 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
24781 annotation data format.
24782 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
24783 Change arguments FROM and TO to single argument NCHARS. Change caller.
24784 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
24785 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
24786 (decode_coding_ccl, decode_coding_charset): Pay attention to
24787 coding->charbuf_used.
24788 (get_translation): New function.
24789 (produce_chars): New arguments translation_table and last_block.
24790 Translate characters here. Return number of carryover chars.
24792 (produce_composition): New argument pos. Change caller.
24793 Adjust for the change of annotation data format.
24794 (produce_charset, produce_annotation): Likewise.
24795 (decode_coding, encode_coding): Don't call translate_chars.
24796 (consume_chars): New arg translation_table. Change caller.
24797 (translate_chars): Delete.
24798 (syms_of_coding): Make translation-table's number of extra slots 2.
24800 2008-02-01 Kenichi Handa <handa@m17n.org>
24802 * search.c (simple_search): Fix setting this_pos_byte in backward
24805 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
24807 (detect_coding_ccl): Fix setting of the variable valids.
24809 2008-02-01 Kenichi Handa <handa@m17n.org>
24811 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
24813 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
24815 * editfns.c (Ftranslate_region_internal): Rename from
24816 Ftranslate_region. Accept a char-table in TABLE.
24817 (syms_of_editfns): Defsubr Stranslate_region_internal.
24819 * xfaces.c (set_lface_from_font_name): If a font is specified for
24820 a frame, generate a fontset from the font.
24821 (build_scalable_font_name): If the scalable font is requested for
24822 a specific size, don't change that size.
24823 (try_font_list): Try a scalable font also in the case that a
24824 pattern string is specified.
24826 2008-02-01 Kenichi Handa <handa@m17n.org>
24828 * xfaces.c (Fface_font): New optional arg CHARACTER.
24830 2008-02-01 Kenichi Handa <handa@m17n.org>
24832 * charset.h (CHARSET_OFFSET): New macro.
24834 2008-02-01 Kenichi Handa <handa@m17n.org>
24836 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
24838 * fontset.c (fontset_face): Handle the case that repertory is a
24840 (find_font_encoding): Return nil for unknown encoding.
24841 (Fset_fontset_font): Ignore a font of unknown encoding.
24843 2008-02-01 Kenichi Handa <handa@m17n.org>
24845 * keymap.c (describe_vector): Handle default value of a char table.
24847 * fontset.c (fontset_face): Handle fallback fonts correctly.
24848 (Ffontset_info): Return infomation about fallback fonts.
24850 2008-02-01 Kenichi Handa <handa@m17n.org>
24852 * fontset.c (FONTSET_DEFAULT): New macro.
24853 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
24854 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
24855 the case that it is nil.
24856 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
24857 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
24859 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
24860 subset or superset.
24862 2008-02-01 Kenichi Handa <handa@m17n.org>
24864 * emacs.c (main): Call init_charset after syms_of_XXX.
24866 * charset.c (Vcharset_map_directory): Delete.
24867 (Vcharset_map_path): New variable.
24868 (load_charset_map_from_file): Use Vcharset_map_path instead.
24869 (init_charset): Initialize Vcharset_map_path.
24870 (syms_of_charset): Delete declaration of "charset-map-directory",
24871 add declaration of "charset-map-path".
24873 2008-02-01 Kenichi Handa <handa@m17n.org>
24875 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
24878 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
24880 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
24881 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
24883 2008-02-01 Kenichi Handa <handa@m17n.org>
24885 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
24887 * coding.c (QCmnemonic, QCdefalut_char)
24888 (QCdecode_translation_table, QCencode_translation_table)
24889 (QCpost_read_conversion, QCpre_write_conversion): New variables.
24890 (get_translation_table): Return a list of translation tables if
24892 (decode_coding): Call get_translation_table with ENCODEP 0.
24893 (char_encodable_p): If translation_table is non-nil, always call
24895 (Fdefine_coding_system_internal): Accept list of translation
24896 tables as :encode-translation-table and :decode-translation-table.
24897 (Fcoding_system_put): New function.
24898 (syms_of_coding): Declare new symbols.
24899 Defsubr Scoding_system_put.
24900 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
24901 typically JISX0212.
24903 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
24904 when the charset is superset type.
24906 * character.c (translate_char): Accept list of translation tables.
24908 2008-02-01 Kenichi Handa <handa@m17n.org>
24910 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
24911 (CODING_ATTR_TRANS_TBL): New macro.
24913 * coding.c (get_translation_table): New function.
24914 (translate_chars): Fix the bug of skipping annotation data.
24915 (decode_coding, encode_coding): Utilize get_translation_table.
24916 (char_encodable_p, Funencodable_char_position): Translate char if
24918 (Ffind_coding_systems_region_internal)
24919 (Fcheck_coding_systems_region): Setup translation table for encode
24920 in a coding system attribute vector in advance.
24921 (Fdefine_coding_system_internal): Allow a symbol as translation
24922 table. For shift-jis type coding system, allow 4th charset.
24924 2008-02-01 Kenichi Handa <handa@m17n.org>
24926 * coding.c (decode_coding_sjis): Check the first byte rigidly.
24928 * xdisp.c (get_next_display_element): Pass -1 as POS to
24929 FACE_FOR_CHAR if displaying a C-string.
24931 2008-02-01 Kenichi Handa <handa@m17n.org>
24933 * composite.c (get_composition_id): Handle xoff and yoff in a
24936 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
24937 (struct composition): New member lbearing and rbearing.
24939 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
24940 (x_get_glyph_overhangs): Handle a composition glyph.
24941 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
24943 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
24946 2008-02-01 Kenichi Handa <handa@m17n.org>
24948 * print.c: Include charset.h.
24949 (Vprint_charset_text_property): New variable.
24950 (Qdefault): Extern it.
24951 (PRINT_STRING_NON_CHARSET_FOUND)
24952 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
24953 (print_check_string_result): New variable.
24954 (print_check_string_charset_prop): New function.
24955 (print_prune_charset_plist): New variable.
24956 (print_prune_string_charset): New function.
24957 (print_object): Call print_prune_string_charset if
24958 Vprint_charset_text_property is not t.
24959 (print_interval): Print nothing if interval->plist is nil.
24960 (syms_of_print): Declare Vprint_charset_text_property as a lisp
24961 variable. Init and staticpro print_prune_charset_plist.
24963 2008-02-01 Kenichi Handa <handa@m17n.org>
24965 * fontset.c (new_fontset_from_font_name): Use the specified font
24966 for all characters in the new fontset.
24968 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
24971 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
24972 OBJECT args for composition too.
24974 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
24977 2008-02-01 Kenichi Handa <handa@m17n.org>
24979 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
24981 * fontset.c (reorder_font_vector): Adjust for the change of
24983 (fontset_face): New arg id. Change caller.
24984 (face_for_char): New args pos and object.
24985 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
24986 (fs_query_fontset): Check NAME by Fassoc too.
24987 (Fset_fontset_font): Allow non-XLFD font name.
24988 (Ffontset_info): Adjust for the change of FONT_DEF format.
24990 * fontset.h (face_for_char): Adjust prototype.
24992 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
24993 (append_space, extend_face_to_end_of_line)
24994 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
24995 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
24997 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
24998 POS and OBJECT args.
25000 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
25001 POS and OBJECT args.
25003 2008-02-01 Jason Rumney <jasonr@gnu.org>
25005 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
25006 of GlobalAlloc'ed memory.
25008 2008-02-01 Kenichi Handa <handa@m17n.org>
25010 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
25012 * charset.h (charset_table_used): Delete extern.
25014 * charset.c (charset_table_used): Make it static.
25015 (map_charset_chars): Fix args to c_function with.
25017 * chartab.c (map_sub_char_table_for_charset): Fix args to
25020 * coding.h (enum coding_result_code):
25021 Delete CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
25023 * coding.c (Qinsufficient_source, Qinconsistent_eol)
25024 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
25025 (Vlast_code_conversion_error): New variables.
25026 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
25027 (ONE_MORE_BYTE): Record error if any instead of signaling an
25028 error. If non-ASCII multibyte char is found, return the negative
25029 value of the code. All callers changed to check it.
25030 (ONE_MORE_BYTE_NO_CHECK): Likewise.
25031 (record_conversion_result): New function. Change all codes setting
25032 coding->result to call this function.
25033 (detect_coding_utf_8, decode_coding_utf_8)
25034 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
25035 Don't use the local variable incomplete.
25036 (emacs_mule_char): Change the second arg to `const'.
25037 (decode_coding): Fix of flushing out unprocessed data.
25038 (make_conversion_work_buffer): Fix making of a work buffer.
25039 (decode_coding_object): Return coding->dst_object.
25041 * fontset.c (set_fontset_font): Fix args.
25043 * lisp.h (CHARACTERBITS): Define as 22.
25045 * process.c (send_process): Be sure to set coding->src_multibyte.
25047 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
25049 2008-02-01 Kenichi Handa <handa@m17n.org>
25051 * xdisp.c (handle_auto_composed_prop): Give limit to
25052 Fnext_single_char_property_change.
25054 2008-02-01 Kenichi Handa <handa@m17n.org>
25056 * composite.c (syms_of_composite): Don't make the composition hash
25059 * fontset.c (Fset_fontset_font): Fix docstring.
25061 * lisp.h (detect_coding_system): Adjust prototype.
25063 * fileio.c (kill_workbuf_unwind): Delete this function.
25064 (Finsert_file_contents): Adjust the call of detect_coding_system.
25065 Get conversion_buffer by code_conversion_save. Use the macro
25066 CODING_MAY_REQUIRE_DECODING. After decoding, update
25069 * coding.h (make_conversion_work_buffer): Delete extern.
25070 (code_conversion_save): Extern it.
25072 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
25073 (CODING_GET_INFO): Delete argument eol_type. Change callers.
25074 (decode_coding_utf_8): Don't do eol converion.
25075 (detect_coding_utf_16): Check coding->src_chars, not
25076 coding->src_bytes. Add heuristics for those that have no signature.
25077 (decode_coding_emacs_mule, decode_coding_iso_2022)
25078 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
25079 Don't do eol converion.
25080 (adjust_coding_eol_type): Return a new coding system.
25081 (detect_coding): Don't detect eol. Fix for utf-16 detection.
25082 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
25084 (decode_coding): Pay attention to undo_list. Do eol conversion for
25085 all types of coding-systems (if necessary).
25086 (Vcode_conversion_work_buf_list): Delete it.
25087 (Vcode_conversion_reused_workbuf): Rename from
25088 Vcode_conversion_reused_work_buf.
25089 (Vcode_conversion_workbuf_name): New variable.
25090 (reused_workbuf_in_use): New variable.
25091 (make_conversion_work_buffer): Delete the arg DEPTH.
25092 (code_conversion_restore): Change argument to cons.
25093 (code_conversion_save): Delete the argument BUFFER. Change callers.
25094 (detect_coding_system): New argument src_chars. Change callers.
25095 Fix for utf-16 detection.
25096 (init_coding_once): Don't use ISO_carriage_return.
25097 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
25098 reused_workbuf_in_use.
25100 2008-02-01 Kenichi Handa <handa@m17n.org>
25102 * keymap.c (store_in_keymap): Pay attention to the case that idx
25103 is a cons specifying a character range.
25105 2008-02-01 Kenichi Handa <handa@m17n.org>
25107 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
25108 HANDLED_RECOMPUTE_PROPS.
25110 * coding.c (Fdefine_coding_system_internal): Fix checking of
25111 ascii compatibility.
25113 2008-02-01 Kenichi Handa <handa@m17n.org>
25115 * charset.c (find_charsets_in_text): Delete unused locale variable.
25116 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
25118 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
25119 Resync charset_list to Vemacs_mule_charset_list.
25121 * keymap.c (store_in_keymap): Pay attention to the case that idx
25122 is a cons specifying a character range.
25124 2008-02-01 Kenichi Handa <handa@m17n.org>
25126 * composite.c (update_compositions): Bind inhibit-read-only, etc
25127 to t before calling remove-list-of-text-properties.
25129 * print.c (print_object): Always print ASCII chars as is.
25131 2008-02-01 Kenichi Handa <handa@m17n.org>
25133 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
25135 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
25138 2008-02-01 Kenichi Handa <handa@m17n.org>
25140 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
25142 2008-02-01 Kenichi Handa <handa@m17n.org>
25144 * xfaces.c (set_lface_from_font_name): Fix for the case that
25145 FONTNAME is not fontset name.
25147 2008-02-01 Kenichi Handa <handa@m17n.org>
25149 * fns.c (base64_encode_1): Fix previous change.
25151 2008-02-01 Kenichi Handa <handa@m17n.org>
25153 * fontset.c (set_fontset_font): New function.
25154 (Fset_fontset_font): If a font is specified for a charset, use
25155 map_charset_chars to store the font spec in a fontset.
25157 2008-02-01 Kenichi Handa <handa@m17n.org>
25159 * fontset.c (fontset_face): Create a fallback fontset on demand.
25160 (make_fontset): Don't create a fallback fontset here.
25161 (free_face_fontset): Free a fallback fontset (if any) too.
25162 (n_auto_fontsets): Delete this variable.
25163 (auto_fontset_alist): New variable.
25164 (new_fontset_from_font_name): Check auto_fontset_alist.
25165 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
25166 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
25167 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
25168 Defsubr Sfontset_list_all.
25170 2008-02-01 Kenichi Handa <handa@m17n.org>
25172 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
25174 2008-02-01 Kenichi Handa <handa@m17n.org>
25176 * fontset.c (Fnew_fontset): Check NAME more rigidly.
25178 2008-02-01 Kenichi Handa <handa@m17n.org>
25180 * editfns.c (Fgoto_char): Fix docstring.
25182 2008-02-01 Kenichi Handa <handa@m17n.org>
25184 * insdel.c (insert_from_gap): Adjust intervals correctly.
25186 2008-02-01 Jason Rumney <jasonr@gnu.org>
25188 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
25189 (pfnGetFontUnicodeRanges): New dynamically loaded function.
25190 (w32_initialize): Try to load it.
25191 (x_get_font_repertory): Use it if available.
25192 (w32_encode_char): Add shortcut for unicode output.
25194 * w32fns.c (w32_load_system_font): Default charset to -1.
25195 (x_to_w32_charset): Match all fonts for unicode.
25196 (w32_to_x_charset): New parameter matching. Don't return partial
25197 or wildcard charsets.
25198 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
25199 (w32_codepage_for_font): Return CP_UNICODE for unicode.
25200 (w32_to_x_font): Match charset to real charset.
25201 (enum_font_cb2): Always list unicode versions.
25203 * makefile.w32-in (temacs): Increase EMHEAP.
25205 2008-02-01 Jason Rumney <jasonr@gnu.org>
25207 * w32term.c (w32_encode_char): New charset parameter.
25208 font_info.encoding becomes encoding_type.
25209 (x_get_font_repertory): New function. Warning: stub only!
25210 (x_new_font): Return quickly if font already set.
25211 (x_new_fontset): fontsetname parameter is Lisp_Object.
25212 Use new fs_query_fontset. Try new_fontset_from_font_name.
25213 Use fontset_name for return value.
25215 * w32term.h: Declare x_get_font_repertory.
25217 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
25218 place of find_charset_in_text. Use encode_coding_object in place
25220 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
25223 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
25225 (w32_load_system_font): Initialize charset as unicode.
25226 font_info.encoding becomes encoding_type.
25227 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
25228 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
25229 (syms_of_w32fns): Set get_font_repertory_func.
25231 * w32console.c: Include character.h. Use terminal_encode_buffer
25233 (write_glyphs): Use new version of encode_terminal_code.
25234 Use encode_coding_object in place of encode_coding.
25236 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
25237 encoding becomes encoding_type.
25239 * term.c (terminal_encode_buffer): Make externally visible.
25241 * makefile.w32-in: Add character.h dependancies.
25242 (character.o, chartab.o): New targets.
25244 2008-02-01 Kenichi Handa <handa@m17n.org>
25246 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
25247 CODING_ID_EOL_TYPE.
25249 2008-02-01 Andreas Schwab <schwab@suse.de>
25251 * coding.c (produce_chars): Revert last change.
25253 2008-02-01 Kenichi Handa <handa@m17n.org>
25255 * charset.h (charset_unicode): Extern it.
25257 * charset.c (string_xstring_p): Check by (C >= 0x100).
25258 (find_charsets_in_text): Change format of the arc CHARSETS.
25260 (Ffind_charset_region, Ffind_charset_string): Adjust for the
25261 change of find_charsets_in_text.
25262 (Fsplit_char): Fix doc. Never return unknown.
25264 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
25266 * coding.c (Fdefine_coding_system_alias):
25267 Update Vcoding_system_list.
25269 * fontset.c (load_font_get_repertory): Pay attention to the case
25270 that ENCODING of a font is specified by a char-table.
25272 * xterm.c (x_get_font_repertory): Handle the case that the
25273 encoding of font is other than Unicode.
25275 2008-02-01 Kenichi Handa <handa@m17n.org>
25277 * term.c (encode_terminal_code): Don't handle glyph-table.
25278 Check if a character is encodable by the terminal coding system.
25279 If not, produces proper number of `?'s. Update
25280 terminal_encode_buffer and terminal_encode_buf_size if necessary.
25281 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
25283 2008-02-01 Kenichi Handa <handa@m17n.org>
25285 * term.c (terminal_encode_buffer, terminal_encode_buf_size):
25287 (encode_terminal_code): Change argument. Encode multiple
25288 characters at once. Store the result of encoding in
25289 terminal_encode_buffer.
25290 (write_glyphs, insert_glyphs): Adjust for the change of
25291 encode_terminal_code.
25292 (term_init): Initialize terminal_encode_buffer and
25293 terminal_encode_buf_size.
25295 * coding.c (consume_chars): If coding->src_object is nil, don't
25298 2008-02-01 Kenichi Handa <handa@m17n.org>
25300 * character.c (char_string): Use ASCII_CHAR_P instead of
25301 SINGLE_BYTE_CHAR_P.
25303 2008-02-01 Kenichi Handa <handa@m17n.org>
25305 * xdisp.c (handle_auto_composed_prop): Check if the last
25306 characters of auto-composed region is newly composed with the
25307 following characters.
25308 (handle_composition_prop): Fix checking of point being inside
25311 2008-02-01 Kenichi Handa <handa@m17n.org>
25313 * fns.c (concat): Don't change multibyteness of the result by
25314 concatenating an 8-bit character.
25316 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
25317 multibyteness of the result when newelt is an 8-bit character.
25319 2008-02-01 Dave Love <fx@gnu.org>
25321 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
25324 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
25326 * xfaces.c (face_numeric_value): Declare dim size_t.
25327 (Finternal_lisp_face_equal_p): Remove unused f.
25329 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
25330 (MATRIX_ROW): Remove unused vars.
25331 (draw_glyphs, x_insert_glyphs, fast_find_position)
25332 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
25335 * regex.c (regex_compile): Remove unused var.
25337 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
25339 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
25340 (Faccessible_keymaps, where_is_internal): Remove unused vars.
25342 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
25344 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
25346 * fileio.c (Fwrite_region): Remove unused var.
25348 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
25349 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
25351 * composite.c (Fremove_list_of_text_properties): Declare.
25353 * coding.c (inhibit_pre_post_conversion): Remove (unused).
25354 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
25355 (coding_inherit_eol_type): Remove unused attrs.
25356 (detect_coding): Cast arg of detect_eol.
25358 * charset.c (syms_of_charset): Remove unused var p.
25359 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
25362 * casetab.c (set_case_table): Remove unused var.
25364 * window.c (Fdisplay_buffer, Fframe_selected_window):
25365 Remove unused vars.
25367 2008-02-01 Dave Love <fx@gnu.org>
25369 * xterm.c (x_bitmap_mask): Declare.
25371 2008-02-01 Dave Love <fx@gnu.org>
25373 * xterm.c (x_term_init): Fix type error.
25375 * lisp.h: Add Funibyte_char_to_multibyte.
25377 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
25378 (Fset_coding_system_priority): Doc fix.
25380 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
25382 * indent.c (check_composition): Make start and end EMACS_INT.
25384 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
25386 * xdisp.c (handle_composition_prop, check_point_in_composition):
25387 Make buffer positions EMACS_INT.
25389 * composite.c (find_composition, run_composition_function)
25390 (update_compositions, Ffind_composition_internal): Make buffer
25391 positions EMACS_INT.
25393 * composite.h (find_composition, update_compositions):
25394 Make position args EMACS_INT.
25396 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
25398 * intervals.c (get_property_and_range):
25399 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
25401 * unexalpha.c: Don't include varargs.h.
25403 2008-02-01 Dave Love <fx@gnu.org>
25405 * coding.h (ENCODE_UTF_8): New.
25407 * Makefile.in (gtkutil.o): Depend on coding.h.
25409 * coding.c (Fset_coding_system_priority): Doc fix.
25411 2008-02-01 Kenichi Handa <handa@m17n.org>
25413 * fileio.c (Finsert_file_contents): Call setup_coding_system in
25414 the case of auto saving.
25416 2008-02-01 Andreas Schwab <schwab@suse.de>
25418 * chartab.c (map_char_table, map_char_table_for_charset):
25419 Protect `range' from GC.
25421 2008-02-01 Kenichi Handa <handa@m17n.org>
25423 * coding.c (decode_coding_sjis): Check bytes more rigidly.
25425 2008-02-01 Kenichi Handa <handa@m17n.org>
25427 * fileio.c (choose_write_coding_system): Return a decided coding system.
25428 (Fwrite_region): Set Vlast_coding_system_used to the return value
25429 of choose_write_coding_system.
25431 2008-02-01 Kenichi Handa <handa@m17n.org>
25433 * charset.c (Fset_charset_priority): Pay attention to duplicated
25436 * coding.c (QCcategory): New variable.
25437 (syms_of_coding): Defsym it. Set all elements of
25438 Vcoding_category_table and their symbol values.
25439 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
25440 coding-category-XXX, and coding-category-list.
25441 (Fdefine_coding_system_internal): Add category in the plist.
25443 2008-02-01 Kenichi Handa <handa@m17n.org>
25445 * callproc.c (Fcall_process): Handle carryover correctly.
25447 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
25448 (raw_text_coding_system): Check NILP (coding_system).
25449 (coding_inherit_eol_type): Check NILP (coding_system) and
25451 (consume_chars): Fix for the case of raw-text.
25453 * process.c (read_process_output): Handle carryover correctly.
25455 2008-02-01 Dave Love <fx@gnu.org>
25457 * regex.c (re_search_2): Fix last change.
25459 2008-02-01 Kenichi Handa <handa@m17n.org>
25461 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
25462 target_multibyte. Even in a unibyte case, return a converted
25464 (GET_CHAR_AFTER): New macro.
25465 (PATFETCH): Translate via multibyte char.
25466 (HANDLE_UNIBYTE_RANGE): Delete this macro.
25467 (SETUP_MULTIBYTE_RANGE): New macro.
25468 (regex_compile): Setup compiled code so that its multibyteness
25469 matches that of a target. Fix the handling of "[X-YZ]" using
25470 SETUP_MULTIBYTE_RANGE.
25471 (analyse_first) <charset>: For filling fastmap for all multibyte
25472 characters, don't check by BASE_LEADING_CODE_P.
25473 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
25474 the same as RE_MULTIBYTE_P (bufp) now.
25475 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
25476 (TARGET_CHAR_AND_LENGTH): Delete this macro.
25477 (TRANSLATE_VIA_MULTIBYTE): New macro.
25478 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
25479 It is the same as RE_MULTIBYTE_P (bufp) now.
25480 <exactn>: Translate via multibyte.
25481 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH.
25482 Don't translate it.
25483 <charset, charset_not>: Fetch a character by
25484 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
25485 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
25486 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
25487 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
25489 (bcmp_translate): Likewise.
25491 * search.c (compile_pattern): Check the member target_multibyte,
25492 not the member multibyte of buf.
25494 * lread.c (read1): While reading a string, set force_singlebyte
25495 and force_multibyte correctly.
25497 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
25498 up of unibyte_to_multibyte_table.
25500 2008-02-01 Kenichi Handa <handa@m17n.org>
25502 * coding.c (setup_coding_system): If coding has
25503 post-read-conversion or pre-write-conversion, set
25504 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
25506 (decode_coding_gap): Run post-read-conversion if any.
25508 * fileio.c (Finsert_file_contents): Even if we read into a
25509 unibyte buffer, check if we must decode the result or not.
25511 2008-02-01 Kenichi Handa <handa@m17n.org>
25513 * coding.c (make_conversion_work_buffer): Change the work buffer
25514 name to the same one as that of Emacs 21.
25516 2008-02-01 Kenichi Handa <handa@m17n.org>
25518 * coding.h (make_conversion_work_buffer): Adjust prototype.
25519 (code_conversion_restore): Don't extern it.
25521 * coding.c (detected_mask): Delete unused variable.
25522 (decode_coding_iso_2022): Pay attention to the byte sequence of
25523 CTEXT extended segment, and retain those bytes as is.
25524 (decode_coding_ccl): Delete unused variable `valids'.
25525 (setup_coding_system): Delete unused variable `category'.
25526 (consume_chars): Delete unused variable `category'. Make it work
25527 for non-multibyte case.
25528 (make_conversion_work_buffer): Change argument.
25529 (saved_coding): Delete unused variable.
25530 (code_conversion_restore): Don't check saved_coding->destination.
25531 (code_conversion_save): New function.
25532 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
25533 instead of record_unwind_protect.
25534 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
25535 (detect_coding_system): Delete unused variable `mask'.
25536 (Fdefine_coding_system_internal): Delete unused variable id.
25538 * fileio.c (kill_workbuf_unwind): New function.
25539 (Finsert_file_contents): On replacing, call
25540 make_conversion_work_buffer with correct args, and call
25541 record_unwind_protect with the first arg kill_workbuf_unwind.
25543 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
25545 2008-02-01 Kenichi Handa <handa@m17n.org>
25547 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
25548 (fontset_add): Fix for the case that TO is less than TO1.
25549 (Ffontset_info): Don't use fallback fontset on checking the
25551 (dump_fontset): New function for debugging.
25553 * coding.c (Fdefine_coding_system_internal): Fix for the case that
25554 coding_type is Qcharset.
25556 2008-02-01 Kenichi Handa <handa@m17n.org>
25558 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
25559 (map_char_table): Don't inherit the value from the parent on
25560 initializing VAL. Adjust for the above change.
25562 2008-02-01 Kenichi Handa <handa@m17n.org>
25564 * coding.c (Qsignature, Qendian): Delete these variables.
25565 (syms_of_coding): Don't initialize them.
25566 (CATEGORY_MASK_UTF_16_AUTO): New macro.
25567 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
25568 detect_info->found.
25569 (decode_coding_utf_16): Don't detect BOM here.
25570 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
25571 is NOT utf_16_without_bom.
25572 (setup_coding_system): For a coding system of type utf-16, check
25573 if the attribute :endian is Qbig or not (not nil or not), and set
25574 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
25575 (detect_coding): If coding type is utf-16 and BOM detection is
25576 required, detect it.
25577 (Fdefine_coding_system_internal): For a coding system of type
25578 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
25580 2008-02-01 Kenichi Handa <handa@m17n.org>
25582 * coding.c (coding_set_source): Fix for the case that the current
25583 buffer is different from coding->src_object.
25584 (decode_coding_object): Don't use the conversion work buffer if
25585 DST_OBJECT is a buffer.
25587 2008-02-01 Dave Love <fx@gnu.org>
25589 * lread.c (read_emacs_mule_char) [len==2]: Index
25590 emacs_mule_charset correctly.
25592 2008-02-01 Dave Love <fx@gnu.org>
25594 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
25595 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
25596 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
25597 treated specially.)
25598 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
25599 (detected_mask): Remove Big5 bits.
25601 2008-02-01 Kenichi Handa <handa@m17n.org>
25603 The following changes are to make the font rescaling facility
25604 compatible with Emacs 21.
25606 * xfaces.c (Vface_font_rescale_alist): Rename from
25607 Vface_resizing_fonts.
25608 (struct font_name): Rename member resizing_ratio to rescale_ratio.
25609 (font_rescale_ratio): Rename from font_resizing_ratio.
25610 (split_font_name): Set font->rescale_ratio.
25611 (better_font_p): Pay attention to font->rescale_ratio.
25612 (build_scalable_font_name): Likewise. Change RESX, and RESY
25614 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
25616 2008-02-01 Kenichi Handa <handa@m17n.org>
25618 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
25619 (Qutf_16_le): Remove these variables.
25620 (syms_of_coding): Don't DEFSYM them.
25621 (decode_coding_utf_16): Fix handling of BOM.
25622 (encode_coding_utf_16): Fix handling of BOM.
25624 2008-02-01 Kenichi Handa <handa@m17n.org>
25626 * fileio.c (Finsert_file_contents): On replacing, before decoding
25627 the file into the work buffer, set point of the work buffer to the end.
25629 2008-02-01 Dave Love <fx@gnu.org>
25631 * coding.c (Fcheck_coding_systems_region): Fix type errors.
25633 2008-02-01 Dave Love <fx@gnu.org>
25635 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
25638 2008-02-01 Kenichi Handa <handa@m17n.org>
25640 * xdisp.c (SKIP_GLYPHS): New macro.
25641 (set_cursor_from_row): Pay attention to string display properties.
25643 * category.c (copy_category_entry): Fix for the case that RANGE
25646 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
25648 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
25650 2008-02-01 Kenichi Handa <handa@m17n.org>
25652 * charset.c (Fcharset_id_internal): New function.
25653 (syms_of_charset): Defsubr it.
25655 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
25656 with the last arg charset_list acquired from coding.
25657 (Fdefine_coding_system_internal): For ccl-based coding system, fix
25658 the attribute coding_attr_ccl_valids.
25660 * coding.h (enum define_coding_ccl_arg_index): Set the first
25661 member coding_arg_ccl_decoder to coding_arg_max.
25663 * ccl.h (ccl_driver): Adjust prototype.
25665 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
25666 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
25667 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
25668 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
25671 2008-02-01 Kenichi Handa <handa@m17n.org>
25673 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
25676 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
25678 2008-02-01 Dave Love <fx@gnu.org>
25680 * composite.c (syms_of_composite): Make composition_hash_table weak.
25682 2008-02-01 Kenichi Handa <handa@m17n.org>
25684 * dispextern.h (check_face_attributes, generate_ascii_font_name)
25685 (font_name_registry): Don't extern them.
25686 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
25688 * fontset.h (Qfontset): Don't extern it.
25689 (new_fontset_from_font_name): Extern it.
25691 * fontset.c: Give 8 extra slots to fontset objects.
25692 (Qfontset_info): New variable.
25693 (syms_of_fontset): Defsym it.
25694 (FONTSET_FALLBACK): New macro.
25695 (fontset_face): Try also the default fontset.
25696 (make_fontset): Realize a fallback fontset from the default fontset.
25697 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
25698 using split_font_name_into_vector and build_font_name_from_vector.
25699 (Fset_fontset_font): Access the elements of font_spec by enum
25700 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
25701 name by using split_font_name_into_vector.
25702 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
25703 generate a proper font name from the fontset name.
25704 Update Vfontset_alias_alist.
25705 (n_auto_fontsets): New variable.
25706 (new_fontset_from_font_name): New function.
25707 (Ffont_info): Store the information about fonts generated from the
25708 default fontset in the first extra slot of the returned char-table.
25710 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
25711 (font_name_registry): Delete function.
25712 (split_font_name_into_vector): New function.
25713 (build_font_name_from_vector): New function.
25714 (font_list): The argument REGISTRY is now a list of registry names.
25715 (choose_face_font): If we are choosing an ASCII font, and ATTRS
25716 specifies an explicit font name, return the name as is. Make a
25717 list of registy names.
25719 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
25721 (Fx_create_frame): Don't call x_new_fontset here. Just use
25722 x_list_fonts to check the existence of fonts.
25724 * xterm.h (x_new_fontset): Adjust prototype.
25726 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
25727 string. Use new_fontset_from_font_name to create a fontset from a
25730 2008-02-01 Kenichi Handa <handa@m17n.org>
25732 * syntax.c (Vfind_word_boundary_function_table): New name for
25733 Vnext_word_boundary_function_table.
25734 (find-word-boundary-function-table): New name for
25735 next-word-boundary-function-table.
25737 2008-02-01 Dave Love <fx@gnu.org>
25739 * Makefile.in: Fix some dependencies.
25741 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
25742 set it to nil before returning.
25744 * composite.c (update_compositions): Fix type error.
25746 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
25748 2008-02-01 Kenichi Handa <handa@m17n.org>
25750 * xterm.c (x_new_font): Optimize for the case that the font is
25751 already set for the frame.
25753 2008-02-01 Kenichi Handa <handa@m17n.org>
25755 * chartab.c (char_table_ascii): Check if the char table contents
25756 is sub-char-table or not.
25757 (char_table_set, char_table_set_range): Fix argument to
25760 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
25761 (detect_coding_utf_8, detect_coding_utf_16)
25762 (detect_coding_emacs_mule, detect_coding_iso_2022)
25763 (detect_coding_sjis, detect_coding_big5)
25764 (detect_coding_ccl, detect_coding_charset): Change argument MASK
25765 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
25766 sequence is valid in this coding system. Change callers.
25767 (MAX_ANNOTATION_LENGTH): New macro.
25768 (ADD_ANNOTATION_DATA): New macro.
25769 (ADD_COMPOSITION_DATA): Change argument. Change callers.
25770 Call ADD_ANNOTATION_DATA. Change the format of annotation data.
25771 (ADD_CHARSET_DATA): New macro.
25772 (emacs_mule_char): New argument ID. Change callers.
25773 (decode_coding_emacs_mule, decode_coding_iso_2022)
25774 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
25775 Produce charset annotation data in coding->charbuf.
25776 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
25777 to charset annotation data in coding->charbuf.
25778 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
25779 coding->common_flags if the coding system is iso-2022 based and
25781 (produce_composition): Adjust for the new annotation data format.
25782 (produce_charset): New function.
25783 (produce_annotation): Handle charset annotation.
25784 (handle_composition_annotation, handle_charset_annotation):
25786 (consume_chars): Handle charset annotation. Utilize the above two
25788 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
25789 buffer, get the deleted text as a string and set
25790 coding->src_object to that string.
25791 (detect_coding, detect_coding_system): Use the new struct
25792 coding_detection_info.
25794 * coding.h (struct coding_detection_info): New structure.
25795 (struct coding_system): Adjust prototype of the member `detector'.
25796 (CODING_ANNOTATE_CHARSET_MASK): New macro.
25798 2008-02-01 Kenichi Handa <handa@m17n.org>
25800 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
25802 2008-02-01 Dave Love <fx@gnu.org>
25804 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
25805 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
25806 to new local and nullify apropos_accumulate before returning.
25807 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
25809 2008-02-01 Kenichi Handa <handa@m17n.org>
25811 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
25814 2008-02-01 Dave Love <fx@gnu.org>
25816 * fns.c (Flanginfo): Call synchronize_system_time_locale.
25818 2008-02-01 Kenichi Handa <handa@m17n.org>
25820 The following changes are to make character composition happen
25821 automatically on displaying.
25823 * Makefile.in (lisp, shortlisp): Add composite.elc.
25825 * composite.h (Qauto_composed, Vauto_composition_function)
25826 (Qauto_composition_function): Extern them.
25828 * composite.c (Vcomposition_function_table)
25829 (Qcomposition_function_table): Delete variables.
25830 (Qauto_composed, Vauto_composition_function)
25831 (Qauto_composition_function): New variables.
25832 (run_composition_function): Don't call
25833 compose-chars-after-function.
25834 (update_compositions): Clear `auto-composed' text property.
25835 (compose_chars_in_text): Delete this function.
25836 (syms_of_composite): Staticpro Qauto_composed and
25837 Qauto_composition_function. Declare Vauto_composition_function as
25840 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
25842 * xdisp.c (it_props): Add an entry for Qauto_composed.
25843 (handle_auto_composed_prop): New function.
25845 * xselect.c (selection_data_to_lisp_data): Don't call
25846 compose_chars_in_text.
25848 2008-02-01 Dave Love <fx@gnu.org>
25850 * keyboard.c (read_char): Modify checking around use of
25851 Vkeyboard_translate_table.
25853 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
25856 2008-02-01 Kenichi Handa <handa@m17n.org>
25858 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
25859 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
25860 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
25861 the case that the last byte is '\r' correctly.
25862 (decode_coding): Flush out the unprocessed data correctly.
25863 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
25865 2008-02-01 Dave Love <fx@gnu.org>
25867 * xterm.c (XTread_socket): Fix changes for defined keysyms.
25868 Add XK_ISO... case.
25869 (xaw_scroll_callback): Revert last change.
25871 2008-02-01 Kenichi Handa <handa@m17n.org>
25873 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
25875 2008-02-01 Kenichi Handa <handa@m17n.org>
25877 * xfaces.c (Vface_resizing_fonts): New variable.
25878 (struct font_name): New member `resizing_ratio'.
25879 (font_resizing_ratio): New function.
25880 (split_font_name): Set font->resizing_ratio.
25881 (better_font_p): Pay attention to font->resizing_ratio.
25882 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
25883 RESX, and RESY fields.
25884 (try_alternative_families): Try scalable fonts if
25885 Vscalable_fonts_allowed is not Qt.
25886 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
25888 2008-02-01 Dave Love <fx@gnu.org>
25890 * xterm.c (xaw_scroll_callback): Cast correctly.
25892 2008-02-01 Dave Love <fx@gnu.org>
25894 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
25895 (lispy_kana_keys): Comment out.
25896 (make_lispy_event) [XK_kana_A]: Comment out.
25898 * xterm.c (xaw_scroll_callback): Cast call_data.
25899 (XTread_socket): Deal with ASCII keysyms.
25900 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
25902 2008-02-01 Dave Love <fx@gnu.org>
25904 * xterm.c (Vx_keysym_table): New.
25905 (syms_of_xterm): Initialize it.
25906 (XTread_socket): Use it.
25907 From head: Eliminate incorrect optimization that tried to avoid
25908 decoding the output of X*LookupString.
25909 (x_get_font_repertory): Delete charset declaration.
25911 2008-02-01 Kenichi Handa <handa@m17n.org>
25913 * coding.c (detect_coding_charset): If only ASCII bytes are found,
25915 (Fdefine_coding_system_internal):
25916 Setup CODING_ATTR_ASCII_COMPAT (attrs) correctly.
25918 2008-02-01 Dave Love <fx@gnu.org>
25920 * coding.c (Fcheck_coding_system): Doc fix.
25922 * editfns.c (Finsert_byte): Return a proper value.
25924 2008-02-01 Kenichi Handa <handa@m17n.org>
25926 * coding.c (decode_coding): Fix args to translate_chars.
25927 Pay attention to Vstandard_translation_table_for_decode.
25928 (encode_coding): Fix args to translate_chars. Pay attention to
25929 Vstandard_translation_table_for_encode.
25931 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
25932 SINGLE_BYTE_CHAR_P.
25934 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
25935 not by SINGLE_BYTE_CHAR_P.
25937 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
25938 SINGLE_BYTE_CHAR_P.
25940 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
25941 SINGLE_BYTE_CHAR_P.
25943 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
25944 by SINGLE_BYTE_CHAR_P.
25946 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
25947 SINGLE_BYTE_CHAR_P.
25949 2008-02-01 Dave Love <fx@gnu.org>
25951 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
25953 2008-02-01 Dave Love <fx@gnu.org>
25955 * fns.c (Flanginfo): Fix typo.
25957 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
25959 2008-02-01 Kenichi Handa <handa@m17n.org>
25961 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
25962 (detect_coding_emacs_mule, detect_coding_iso_2022)
25963 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
25964 incomplete byte sequence. Don't update *mask when correctly detected.
25965 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
25966 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
25967 (detect_coding, detect_coding_system): Adjust for the changes above.
25969 2008-02-01 Kenichi Handa <handa@m17n.org>
25971 * character.c (char_string): Rename from
25972 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
25973 (string_char): Rename from string_char.
25975 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
25976 if C is greater than MAX_3_BYTE_CHAR.
25977 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE):
25978 Call string_char instead of string_char_with_unification.
25980 2008-02-01 Dave Love <fx@gnu.org>
25982 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
25984 2008-02-01 Kenichi Handa <handa@m17n.org>
25986 * keymap.c (push_key_description): Pay attention to force_multibyte.
25988 * regex.c (re_search_2): Fix for the case of unibyte buffer.
25990 2008-02-01 Dave Love <fx@gnu.org>
25992 * charset.c (define_charset_internal): Rename `supprementary'.
25994 * Makefile.in (lisp, shortlisp): Remove latin-N.
25996 2008-02-01 Dave Love <fx@gnu.org>
25998 * xfns.c (x_window, x_window): Use use_xim.
26000 * xterm.c (use_xim): Initialize.
26001 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
26002 (x_term_init): Maybe set use_xim.
26004 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
26006 2008-02-01 Kenichi Handa <handa@m17n.org>
26008 * search.c (search_buffer): Fix case-fold-search of multibyte
26010 (boyer_moore): Rename the last argument to char_high_bits.
26012 2008-02-01 Kenichi Handa <handa@m17n.org>
26014 * xdisp.c (display_string): Fix for the case of zero width glyph.
26016 * xfns.c (x_set_font): Change the error message of the case that
26017 x_new_fontset returns Qt.
26019 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
26020 (Finternal_set_lisp_face_attribute): Use signal_error for the
26021 error of invalid fontset.
26023 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
26024 fontset, return Qt.
26026 2008-02-01 Dave Love <fx@gnu.org>
26028 * unexelf.c (unexec): Make .got handling not SGI-specific.
26030 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
26032 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
26034 * keyboard.c (read_key_sequence): Fix type error.
26036 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte):
26039 * fontset.c (fontset_add): Return Lisp_Object.
26041 2008-02-01 Dave Love <fx@gnu.org>
26043 * charset.h (charset_ordered_list_tick): Declare extern.
26045 2008-02-01 Kenichi Handa <handa@m17n.org>
26047 The following changes (and some of 2008-02-01 changes of mine) are
26048 for handling syntax, category, and case conversion for unibyte
26049 characters by converting them to multibyte on the fly. With these
26050 changes, we don't have to setup syntax and case tables for unibyte
26051 characters in each language environment.
26053 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
26054 multibyte if necessary.
26056 * bytecode.c (Fbyte_code): Likewise.
26058 * character.h (LEADING_CODE_LATIN_1_MIN)
26059 (LEADING_CODE_LATIN_1_MAX): New macros.
26060 (unibyte_to_multibyte_table): Extern it.
26061 (unibyte_char_to_multibyte): New macro.
26062 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
26063 (CHAR_LEADING_CODE): New macro.
26064 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
26066 * character.c (unibyte_to_multibyte_table): New variable.
26067 (unibyte_char_to_multibyte): Move to character.h and define as macro.
26068 (multibyte_char_to_unibyte): If C is an eight-bit character,
26069 convert it to the corresponding byte value.
26071 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
26072 not 1, signals an error. Update the elements of
26073 unibyte_to_multibyte_table.
26074 (init_charset_once): Initialize unibyte_to_multibyte_table.
26075 (syms_of_charset): Define the charset `iso-8859-1'.
26077 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
26078 as is without converting it to unibyte. In a unibyte buffer,
26079 convert C to multibyte before checking the syntax.
26081 * lisp.h (unibyte_char_to_multibyte): Delete extern.
26083 * minibuf.c (Fminibuffer_complete_word): Use the macro
26084 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
26086 * regex.h (struct re_pattern_buffer): New member target_multibyte.
26088 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
26089 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte.
26090 If that is zero, convert an eight-bit char to multibyte.
26091 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
26093 (PATFETCH): Convert an eight-bit char to multibyte.
26094 (HANDLE_UNIBYTE_RANGE): New macro.
26095 (regex_compile): Setup the compiled pattern for multibyte chars
26096 even if the given regex string is unibyte. Use PATFETCH_RAW
26097 instead of PATFETCH in many places. To handle `charset'
26098 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
26099 only for ASCII chars.
26100 (analyse_first) <exactn>: Simplify because the compiled pattern
26102 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
26103 <charset>: Use CHAR_LEADING_CODE to get leading codes.
26104 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
26105 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
26106 multibyte always 1.
26107 (re_search_2): In emacs, set the locale variable multibyte to 1,
26108 otherwise to 0. New local variable target_multibyte. Check it
26109 to decide the multibyteness of STR1 and STR2.
26110 If target_multibyte is zero, convert unibyte chars to multibyte
26111 before translating and checking fastmap.
26112 (TARGET_CHAR_AND_LENGTH): New macro.
26113 (re_match_2_internal): In emacs, set the locale variable multibyte
26114 to 1, otherwise to 0. New local variable target_multibyte.
26115 Check it to decide the multibyteness of STR1 and STR2.
26116 Use TARGET_CHAR_AND_LENGTH to fetch a character from D.
26117 <charset, charset_not>: If multibyte is nonzero, check fastmap
26118 only for ASCII chars. Call bcmp_translate with
26119 target_multibyte, not with multibyte.
26120 <begline>: Declare the local variable C as `unsigned'.
26121 (bcmp_translate): Change the last arg name to target_multibyte.
26123 * search.c (compile_pattern_1): Don't adjust the multibyteness of
26124 the regexp pattern and the matching target. Set cp->buf.multibyte
26125 to the multibyteness of the regexp pattern. Set
26126 cp->but.target_multibyte to the multibyteness of the matching target.
26127 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
26128 FETCH_STRING_CHAR_ADVANCE.
26129 (Freplace_match): Convert unibyte chars to multibyte.
26131 * syntax.c (char_quoted, back_comment, scan_words)
26132 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
26133 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
26134 unibyte chars to multibyte.
26135 (skip_chars): Delete the arg syntaxp, and move the code for
26136 handling syntaxes to skip_syntaxes. Change callers.
26137 Fix the case that the multibyteness of STRING and the current
26138 buffer doesn't match.
26139 (skip_syntaxes): New function.
26140 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
26141 SINGLE_BYTE_CHAR_P.
26143 2008-02-01 Kenichi Handa <handa@m17n.org>
26145 * xfaces.c (QCfontset): New variable.
26146 (LFACE_FONTSET): New macro.
26147 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
26148 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
26149 (Finternal_set_lisp_face_attribute)
26150 (Finternal_get_lisp_face_attribute): Handle QCfontset.
26151 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
26152 check also LFACE_FONTSET_INDEX.
26153 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
26154 attrs[LFACE_FONT_INDEX].
26155 (syms_of_xfaces): Intern and staticpro QCfontset.
26157 * dispextern.h (enum lface_attribute_index): New member
26158 LFACE_FONTSET_INDEX.
26160 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
26162 2008-02-01 Kenichi Handa <handa@m17n.org>
26164 * coding.c (coding_set_destination): Fix coding->destination for
26165 the case converting a region.
26166 (encode_coding_utf_8): Encode eight-bit chars as single byte.
26167 (encode_coding_object): Fix coding->dst_pos and
26168 coding->dst_pos_byte for the case converting a region.
26170 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
26172 * character.h (BYTE8_STRING): New macro.
26174 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
26176 2008-02-01 Kenichi Handa <handa@m17n.org>
26178 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
26179 characters by octal form.
26181 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
26183 * buffer.h (_fetch_multibyte_char_len): Delete extern.
26184 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
26185 _fetch_multibyte_char_len.
26186 (FETCH_CHAR_AS_MULTIBYTE): New macro.
26188 * casetab.c (set_canon, set_identity, shuffle): Simplify.
26190 * casefiddle.c (casify_object): Simplify. Handle the case that
26191 the case conversion change the byte length.
26192 (casify_region): Likewise.
26194 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
26196 * character.c (_fetch_multibyte_char_len): Delete this variable.
26197 (syms_of_character): Setup Vprintable_chars.
26199 * editfns.c (Fchar_equal): Fix for the unibyte case.
26200 (Finsert_byte): New function.
26201 (syms_of_editfns): Defsubr it.
26203 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
26204 of direct code 0x3ffff.
26206 * search.c (Freplace_match): Fix for the unibyte case.
26208 2008-02-01 Kenichi Handa <handa@m17n.org>
26210 * lread.c (safe_to_load_p): Fix the logic.
26212 * syntax.c (scan_words): Don't treat characters belonging to
26213 different scripts as constituting a word.
26215 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
26217 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
26219 * emacs.c (main): In the case of --unibyte, instead of aborting on
26220 finding non-empty buffer, make it unibyte.
26222 2008-02-01 Kenichi Handa <handa@m17n.org>
26224 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
26225 to create a fontset.
26227 2008-02-01 Dave Love <fx@gnu.org>
26229 * character.c (Funibyte_char_to_multibyte): Doc fix.
26231 * xfns.c [HAVE_STDLIB_H]: Fix last change.
26233 2008-02-01 Kenichi Handa <handa@m17n.org>
26235 * fontset.c (fontset_add): Make the type `int'.
26236 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
26238 * character.c (unibyte_char_to_multibyte)
26239 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
26240 charset_unibyte, not charset_primary.
26242 * charset.h (charset_unibyte): Extern it instead of charset_primary.
26244 * charset.c (charset_unibyte): Rename from charset_primary.
26245 (Funibyte_charset): Rename from Fprimary_charset.
26246 (Fset_unibyte_charset): Rename from Fset_primary_charset.
26247 (syms_of_charset): Adjust for the above changes.
26249 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
26250 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
26251 it->multibyte_p is zero.
26253 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
26256 2008-02-01 Kenichi Handa <handa@m17n.org>
26258 * coding.c (Fdefine_coding_system_internal): Fix category setting
26259 for a coding system of type iso-2022.
26261 2008-02-01 Kenichi Handa <handa@m17n.org>
26263 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
26265 2008-02-01 Kenichi Handa <handa@m17n.org>
26267 * syntax.c (Vnext_word_boundary_function_table): New variable.
26268 (next-word-boundary-function-table): Declare it as a Lisp variable
26270 (scan_words): Call functions in Vnext_word_boundary_function_table
26273 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
26275 * fontset.c (fs_load_font): If fontp->charset is not negative,
26276 return fontp without setting its members.
26278 2008-02-01 Dave Love <fx@gnu.org>
26280 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
26282 * m/sparc.h (HAVE_ALLOCA): Delete.
26284 * s/irix6-5.h: Don't include strings.h.
26285 (bcopy, bzero, bcmp): Don't undef.
26287 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
26289 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
26290 (TIOCSIGSEND): Don't test IRIX6.
26291 (bcopy, bzero, bcmp): Define conditionally.
26293 2008-02-01 Kenichi Handa <handa@m17n.org>
26295 * buffer.c (Qas, Qmake, Qto): New variables.
26296 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
26297 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
26299 * callproc.c (Fcall_process): Don't call insert_1_both directly if
26300 we are inserting a process output into a multibyte buffer.
26302 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
26303 multibyte_char_to_unibyte.
26305 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
26306 by the primary charset, make it eight-bit char.
26307 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
26309 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
26310 (charset_8_bit__control, charset_8_bit_graphic)
26311 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
26312 (define_charset_internal): New function.
26313 (syms_of_charset): Call define_charset_internal for pre-defined
26316 * charset.h (charset_8_bit): Extern it.
26318 * coding.c (make_conversion_work_buffer): Adjust for the change
26319 of Fset_buffer_multibyte.
26320 (encode_coding_raw_text): Increment p0 in the loop.
26322 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
26324 * xdisp.c (setup_echo_area_for_printing, set_message_1):
26325 Adjust for the change of Fset_buffer_multibyte.
26327 * fns.c (Fstring_to_multibyte): New function.
26328 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
26330 2008-02-01 Dave Love <fx@gnu.org>
26332 * xfns.c (x_put_x_image): Declare args.
26334 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
26335 (try_font_list): Declare an arg.
26337 * xdisp.c (message2_nolog, set_message): Declare an arg.
26339 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
26341 * syntax.c (scan_sexps_forward): Declare an arg.
26343 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
26346 * lisp.h (Fnew_fontset): Declare.
26348 * keymap.c (push_key_description): Call CHARACTERP correctly.
26350 * fontset.c (fontset_add): Declare args. Call make_number correctly.
26351 (face_for_char): Delete unused vars.
26352 (Fset_fontset_font): Doc fix. Delete unused vars.
26354 * doc.c (Fsubstitute_command_keys): Delete unused vars.
26356 * composite.c (update_compositions): Declare arg.
26358 * cm.c (calccost, cmgoto): Declare args.
26360 * charset.c: Remove `emacs' conditional. Doc fixes.
26361 (map_char_table_for_charset): Declare.
26363 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
26365 * ccl.c: Remove `emacs' conditional.
26367 2008-02-01 Kenichi Handa <handa@m17n.org>
26369 The following changes are to allow specifying multiple font
26370 patterns for a character range (specified by script or charset).
26372 * Makefile.in (abbrev.o): Depend on syntax.h.
26373 (xfaces.o): Depend on charset.h.
26375 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
26376 SINGLE_BYTE_CHAR_P.
26378 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
26380 * character.h (Vchar_script_table): Extern it.
26382 * character.c (Vscript_alist): Delete.
26383 (Vchar_script_table, Qchar_script_table): New variable.
26384 (syms_of_character): Declare Vchar_script_table as a lisp variable
26387 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
26388 have property char-table-extra-slots, make no extra slot.
26390 * dispextern.h (struct face): Delete member `charset'.
26391 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
26392 SINGLE_BYTE_CHAR_P.
26393 (choose_face_font, lookup_non_ascii_face, font_name_registry):
26395 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
26396 (generate_ascii_font_name): Rename from generate_ascii_font.
26398 * fontset.h (get_font_repertory_func): New prototype.
26399 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
26400 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
26402 * fontset.c (Qprepend, Qappend): New variables.
26403 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
26404 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
26405 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
26406 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
26407 (fontset_ref_and_range, fontset_add, reorder_font_vector)
26408 (load_font_get_repertory): New functions.
26409 (fontset_set): Delete.
26410 (fontset_face): New arg FACE. Return face ID, not face.
26411 Complete re-write to handle new fontset structure. Change caller.
26412 (free_face_fontset): Use ASET istead of AREF (X) = Y.
26413 (face_for_char): Don't call lookup_face.
26414 (make_fontset_for_ascii_face): New arg FACE.
26415 (fs_load_font): New arg CHARSET_ID. Don't check
26416 Vfont_encoding_alist here.
26417 (find_font_encoding): New function.
26418 (list_fontsets): Use STRINGP, not ! NILP.
26419 (accumulate_script_ranges): New function.
26420 (Fset_fontset_font, Fnew_fontset, Ffontset_info):
26421 Completely re-written to handle new fontset structure.
26422 (Ffontset_font): Return a copy of element.
26423 (syms_of_fontset): Define symbols Qprepend and Qappend.
26424 Fix docstring of font-encoding-alist.
26426 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
26427 (Fset_fotset_font): Fix arguments to 5.
26429 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
26431 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
26432 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
26433 (highlight_trailing_whitespace): Adjust for the change of
26436 * xfaces.c: Include charset.h.
26437 (load_face_font): Delete argument C. Change caller.
26438 (generate_ascii_font_name): Rename from generate_ascii_font.
26439 (font_name_registry): New function.
26440 (cache_face): Store ascii faces before non-ascii faces in buckets.
26441 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
26442 Lookup only ascii faces.
26443 (lookup_non_ascii_face): New function.
26444 (lookup_named_face): Delete argument C. Change caller.
26445 (lookup_derived_face): Delete argument C. Change caller.
26446 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
26447 a string, just call font_list with it.
26448 (choose_face_font): Delete arguments FACE and C. New arg
26449 FONT_SPEC. Change caller.
26450 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
26452 (realize_non_ascii_face): New function.
26453 (realize_x_face): Call load_face_font here.
26454 (realize_tty_face): Delete argument C. Change caller.
26455 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
26457 (dump_realized_face): Don't print charset of FACE.
26459 * xfns.c (x_set_font): Always call x_new_fontset and
26460 store_frame_parameter.
26461 (Fx_create_frame): Call x_new_fontset, not x_new_font.
26462 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
26464 * xterm.h (x_get_font_repertory): Extern it.
26466 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
26467 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
26468 it->multibyte_p is zero.
26469 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
26470 (x_new_fontset): If FONTSETNAME doesn't match any existing
26471 fontsets, create a new one.
26472 (x_get_font_repertory): New function.
26474 2008-02-01 Kenichi Handa <handa@m17n.org>
26476 * coding.c (Ffind_coding_systems_region_internal): Detect an
26477 ASCII only string correctly.
26479 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
26482 2008-02-01 Kenichi Handa <handa@m17n.org>
26484 * lread.c: Include "coding.h".
26485 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
26486 (load_each_byte, unread_char): New variables.
26487 (readchar_backlog): Delete.
26488 (readchar): Return a character unless load_each_byte is nonzero.
26489 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
26490 cons. If unread_char is not -1, simply return it.
26491 (unreadchar): Handle the case that readcharfun is
26492 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
26493 (read_multibyte): Delete.
26494 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
26495 (read_emacs_mule_char): New functions.
26496 (Fload): Even if the file doesn't have the extension ".elc", if
26497 safe_to_load_p returns a positive version number, assume that the
26498 file contains bytecompiled code. If the version is less than 22,
26499 load the file while decoding multibyte sequences by emacs-mule.
26500 (readevalloop): Don't use readchar_backlog.
26501 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
26502 (Fread_from_string): Pay attention to the case that STREAM is a cons.
26503 (read_escape): Delete the arg BYTEREP.
26504 (read1): Set load_each_byte to 1 temporarily while handling
26505 #@NUMBER. Don't call read_multibyte.
26506 (read_vector): Call Fread with a cons. If readcharfun is
26507 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
26508 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
26509 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
26510 and Qload_force_doc_strings.
26512 2008-02-01 Kenichi Handa <handa@m17n.org>
26514 * xdisp.c (face_before_or_after_it_pos):
26515 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
26517 2008-02-01 Kenichi Handa <handa@m17n.org>
26519 * character.h (TRAILING_CODE_P): New macro.
26520 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
26521 (string_char_with_unification): Fix prototype.
26522 (Vscript_alist): Extern it.
26524 * character.c (Vscript_alist): New variable.
26525 (string_char_with_unification, str_as_unibyte)
26526 (string_escape_byte8): Add `const' to local variables.
26527 (syms_of_character): Declare script-alist as a Lisp variable.
26529 * charset.h (Vcharset_ordered_list): Extern it.
26530 (charset_ordered_list_tick): Extern it.
26531 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
26532 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
26533 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
26534 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
26535 (Funify_charset): Adjust for the change of Funify_charset.
26537 * charset.c (charset_ordered_list_tick): New variable.
26538 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
26539 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
26540 deunify instead of unify a charset.
26541 (string_xstring_p): Add `const' to local variables.
26542 (find_charsets_in_text): Add `const' to arguments and local variables.
26543 (encode_char): Adjust for the change of Funify_charset.
26544 Fix detecting of invalid code.
26545 (Fset_charset_priority): Increment charset_ordered_list_tick.
26546 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
26549 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
26550 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
26551 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
26552 (decode_coding_ccl, consume_chars)
26553 (Ffind_coding_systems_region_internal)
26554 (Fcheck_coding_systems_region): Add `const' to local variables.
26556 * print.c (print_object): Use octal form for printing the
26557 contents of a bool vector.
26559 2008-02-01 Dave Love <fx@gnu.org>
26561 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
26562 <version == 20>: Refuse to load.
26564 2008-02-01 Dave Love <fx@gnu.org>
26566 * fns.c: Move coding.h.
26567 (Qcodeset, Qdays, Qmonths): New.
26568 (concat): Use CHARACTERP instead of INTEGERP.
26569 (Flocale_codeset): Delete.
26570 (Flanginfo): New function.
26571 (syms_of_fns): Change accordingly.
26573 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
26575 2008-02-01 Dave Love <fx@gnu.org>
26577 * casetab.c (init_casetab_once, init_casetab_once):
26578 Fix CHAR_TABLE_SET call.
26580 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
26582 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
26584 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
26585 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
26586 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
26588 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
26590 * coding.c (ENCODE_DESIGNATION, decode_eol)
26591 (make_conversion_work_buffer, code_conversion_restore)
26592 (Fdefine_coding_system_internal): Convert Lisp types.
26593 (code_conversion_restore): Use EQ, not ==.
26594 (Fencode_coding_string): Fix code_convert_string call.
26596 * coding.h (code_convert_region): Fix prototype.
26598 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
26600 * fontset.c (fontset_ref, fontset_set, fs_load_font)
26601 (Ffontset_info): Convert Lisp types.
26603 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
26605 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
26607 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
26609 * chartab.c: Include "...h", not <...h> in some cases.
26611 * callproc.c (Fcall_process): Remove unused variables.
26613 2008-02-01 Dave Love <fx@gnu.org>
26615 * coding.c (Fset_coding_system_priority): Allow null arg list.
26617 2008-02-01 Dave Love <fx@gnu.org>
26619 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
26620 (Fself_insert_and_exit): Use CHARACTERP.
26622 * callproc.c (Fcall_process): Remove unused vars.
26624 * xterm.c (XTread_socket): Add extra dead keysyms.
26626 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
26628 * dispextern.h: Remove prototypes for redraw_frame,
26629 redraw_garbaged_frames.
26631 * cmds.c (Fself_insert_command): Use CHARACTERP.
26633 * chartab.c (make_sub_char_table): Remove unused var.
26634 (Fset_char_table_default, Fmap_char_table): Doc fix.
26636 * keymap.c (access_keymap): Remove generic char code.
26637 (push_key_description): Use CHARACTERP.
26639 2008-02-01 Dave Love <fx@gnu.org>
26641 * charset.c: Doc fixes.
26642 (Funify_charset): Extra checking.
26644 2008-02-01 Dave Love <fx@gnu.org>
26646 * lread.c: Remove some unused variables.
26647 (safe_to_load_p): If safe, return the magic number version byte.
26648 (Fload): Maybe use load-with-code-conversion.
26650 2008-02-01 Kenichi Handa <handa@m17n.org>
26652 * category.c (Fmodify_category_entry): Don't modify the contents
26653 of category_set for characters out of the range.
26654 Avoid unnecessary modification.
26656 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
26657 Vchar_unify_table. The default value of the table is now nil.
26659 * character.c (syms_of_character): Setup Vchar_width_table for
26660 eight-bit-control and raw-byte chars.
26662 * charset.h (enum define_charset_arg_index):
26663 Delete charset_arg_parents and add charset_arg_subset and
26664 charset_arg_superset.
26665 (enum charset_attr_index): Delete charset_parents and add
26666 charset_subset and charset_superset.
26667 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
26668 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
26669 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
26670 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
26671 (CHARSET_SUPERSET): New macros.
26672 (charset_work): Extern it.
26673 (ENCODE_CHAR): Use charset_work.
26674 (CHAR_CHARSET_P): Adjust for the change of encoder format.
26675 (map_charset_chars): Extern it.
26677 * charset.c (load_charset_map): Set the default value of encoder
26678 and deunifier char-tables to nil.
26679 (map_charset_chars): Change argument. Change callers.
26680 Use map_char_table_for_charset instead of map_char_table.
26681 (Fmap_charset_chars): New optional args from_code and to_code.
26682 (Fdefine_charset_internal): Adjust for the change of
26683 `define-charset' (:parents -> :subset or :superset).
26684 (charset_work): New variable.
26685 (encode_char, syms_of_charset): Adjust for the change of
26686 Fdefine_charset_internal.
26687 (Ffind_charset_string): Setup the vector `charsets' correctly.
26689 * chartab.c (sub_char_table_ref_and_range): New arg default.
26690 Fix the previous change.
26691 (char_table_ref_and_range): Adjust for the above change.
26692 (map_sub_char_table_for_charset): New function.
26693 (map_char_table_for_charset): New function.
26695 * keymap.c (describe_vector): Handle a char-table directly here.
26696 (describe_char_table): Delete.
26698 * lisp.h (map_charset_chars): Delete.
26700 2008-02-01 Dave Love <fx@gnu.org>
26702 * fns.c (count_combining): Comment out (unused).
26703 (Flocale_codeset): New.
26704 (syms_of_fns): Defsubr it.
26706 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
26709 2008-02-01 Dave Love <fx@gnu.org>
26711 * Makefile.in (chartab.o): Depend on charset.h.
26713 2008-02-01 Kenichi Handa <handa@m17n.org>
26715 * character.c (syms_of_character): Set the default value of
26716 Vprintable_chars to Qnil.
26718 2008-02-01 Dave Love <fx@gnu.org>
26720 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
26722 2008-02-01 Kenichi Handa <handa@m17n.org>
26724 * charset.c (load_charset_map): Handle the case that from < to
26727 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
26728 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
26729 Pay attention to raw-8-bit chars.
26731 2008-02-01 Kenichi Handa <handa@m17n.org>
26733 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
26734 It is not bytecompiled now.
26736 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
26737 (charset_jisx0208): New variables.
26738 (Fdefine_charset_internal): Setup them if appropriate.
26739 (init_charset_once): Initialize them to -1.
26741 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
26742 (charset_jisx0208): Extern them.
26744 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
26745 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
26746 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
26747 (setup_iso_safe_charsets): Fix arguments to Fassq.
26748 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
26749 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
26750 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
26751 (encode_coding_iso_2022): Change the 1st arg to
26752 ENCODE_ISO_CHARACTER to a variable.
26754 2008-02-01 Kenichi Handa <handa@m17n.org>
26756 * charset.h (enum define_charset_arg_index): New enums
26757 charset_arg_min_code and charset_arg_max_code.
26758 (struct charset): New member char_index_offset.
26760 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
26761 Take charset->char_index_offset into account.
26762 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
26763 args[charset_arg_max_code]. Setup charset.char_index_offset.
26764 (syms_of_charset): Fix args to Fdefine_charset_internal.
26766 2008-02-01 Dave Love <fx@gnu.org>
26768 * coding.c (decode_coding_utf_8): Reject overlong sequences.
26770 2008-02-01 Dave Love <fx@gnu.org>
26772 * coding.c: Doc fixes.
26773 (Fcoding_system_aliases): Fix return value.
26774 (Qmac): Remove (duplicated) definition.
26776 2008-02-01 Dave Love <fx@gnu.org>
26778 * charset.c (Fcharset_priority_list, Fset_charset_priority):
26781 * character.c (Fstring): Doc fix.
26783 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
26785 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
26786 (font-encoding-alist): Doc fix.
26788 2008-02-01 Dave Love <fx@gnu.org>
26790 * term.c (costs_set): Declare static, non-initialized for pcc.
26791 (encode_terminal_code): Remove unused var.
26793 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
26796 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
26798 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
26799 (suffixes): Move out of make_subsidiaries for K&R.
26801 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
26803 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
26805 2008-02-01 Dave Love <fx@gnu.org>
26807 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
26809 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
26811 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
26813 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
26815 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
26817 2008-02-01 Kenichi Handa <handa@m17n.org>
26819 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
26820 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
26822 2008-02-01 Kenichi Handa <handa@m17n.org>
26824 * coding.c (decode_coding_charset): Adjust for the change of
26825 Fdefine_coding_system_internal.
26826 (Fdefine_coding_system_internal): For a coding system of
26827 `charset' type, store a list of charset IDs in
26828 `charset_attr_charset_valids' element of coding attributes.
26830 2008-02-01 Kenichi Handa <handa@m17n.org>
26832 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
26833 (emacs_mule_char): New arg src. Delete arg `composition'.
26834 Change caller. Handle 2-byte and 3-byte charsets correctly.
26835 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
26836 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
26837 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
26838 (DECODE_EMACS_MULE_21_COMPOSITION):
26839 Call DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
26841 (decode_coding_emacs_mule): Handle composition correctly. Rewind
26842 `src' and `consumed_chars' correctly before calling emacs_mule_char.
26843 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
26844 and alt&rule composition.
26845 (decode_coding_iso_2022): Handle composition correctly.
26846 (init_coding_once): Setup emacs_mule_bytes for private charsets.
26848 * charset.c (Fdefine_charset_internal): Fix bug for the case of
26849 re-defining a charset. If the charset has :emacs-mule-id, setup
26851 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
26853 2008-02-01 Kenichi Handa <handa@m17n.org>
26855 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
26856 (encode_coding_big5, encode_coding_charset): If coding requires safe
26857 encoding, produce a character specified by
26858 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
26860 2008-02-01 Dave Love <fx@gnu.org>
26862 * xterm.c (XSetIMValues): Declare.
26864 * process.c: Conditionally include sys/wait.h, pty.h.
26866 * print.c (print_object): Fix print format for 64-bit systems.
26868 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
26870 * buffer.c (emacs_strerror): Declare.
26872 * fontset.c (Fclear_face_cache): Declare.
26873 (accumulate_font_info): Comment-out (unused).
26874 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
26877 * character.h (string_escape_byte8): Declare.
26879 * charset.c (load_charset_map, load_charset_map_from_file):
26880 Remove unused vars.
26881 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
26882 (Fmap_charset_chars): Doc fix.
26884 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
26885 (Fset_coding_system_priority, Fset_coding_system_priority)
26886 (Fdefine_coding_system_internal): Doc fix.
26888 2008-02-01 Dave Love <fx@gnu.org>
26890 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
26892 2008-02-01 Kenichi Handa <handa@m17n.org>
26894 * character.c (string_escape_byte8): Make multibyte string with
26897 * charset.c (Fmake_char): Delete unnecessary code.
26899 2008-02-01 Kenichi Handa <handa@m17n.org>
26901 * xfns.c (x_encode_text): Allocate coding.destination here, and
26902 call encode_coding_object with dst_object Qnil.
26904 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
26905 multibyte form correctly.
26907 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
26908 against Vfont_encoding_alist.
26910 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
26911 handling of charset list.
26912 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
26913 (decode_coding_object): Move point to coding->dst_pos before
26914 calling post-read-conversion function.
26915 (encode_coding_object): Give correct arguments to
26916 pre-write-conversion. Ignore the return value of
26917 pre-write-conversion function. Pay attention to the case that
26918 pre-write-conversion changes the current buffer. If dst_object is
26919 Qt, even if coding->src_bytes is zero, allocate at least one byte
26920 to coding->destination.
26922 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
26924 * charset.c (Fmake_char): Make it more backward compatible.
26925 (Fmap_charset_chars): Fix docstring.
26927 2008-02-01 Dave Love <fx@gnu.org>
26929 * coding.c: Doc fixes.
26930 (Fdefine_coding_system_alias): Use names, not symbols, in
26931 coding-system-alist.
26933 2008-02-01 Kenichi Handa <handa@m17n.org>
26935 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
26936 of calling free_realized_face.
26938 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
26940 * charset.c (read_hex): Don't treat SPC as a comment starter.
26941 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
26942 (Fdecode_char): Fix typo.
26944 2008-02-01 Kenichi Handa <handa@m17n.org>
26946 * charset.h (struct charset): New member `code_space_mask'.
26948 * coding.c (coding_set_source): Delete the local variable beg_byte.
26949 (encode_coding_charset, Fdefine_coding_system_internal):
26950 Delete the local variable charset.
26951 (Fdefine_coding_system_internal):
26952 Setup attrs[coding_attr_charset_valids] correctly.
26954 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
26955 member to check if CODE is valid or not.
26956 (Fdefine_charset_internal): Initialize `code_space_mask' member.
26957 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
26958 is within the range of charset->min_code and carset->max_code.
26960 2008-02-01 Dave Love <fx@gnu.org>
26962 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
26964 * dispextern.h (generate_ascii_font): Fix return type.
26966 * xfaces.c (generate_ascii_font): Fix arg declaration.
26968 * coding.c (coding_inherit_eol_type)
26969 (Fset_terminal_coding_system_internal)
26970 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
26972 2008-02-01 Kenichi Handa <handa@m17n.org>
26974 * coding.c (decode_coding_charset, encode_coding_charset):
26975 Handle multiple charsets correctly.
26977 2008-02-01 Kenichi Handa <handa@m17n.org>
26979 * search.c (boyer_moore): Fix handling of multibyte character
26982 * xdisp.c (display_mode_element): When the variable `elt' is
26983 changed, update `this' and `lisp_string'.
26985 2008-02-01 Kenichi Handa <handa@m17n.org>
26987 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
26989 * callproc.c (Fcall_process): Be sure to give the current buffer
26990 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
26992 * charset.c (struct charset_map_entries): New struct.
26993 (load_charset_map): Rename from parse_charset_map. New args
26994 entries and n_entries. Change caller.
26995 (load_charset_map_from_file): Rename from load_charset_map.
26996 Change caller. New arg control_flag. Call load_charset_map at
26998 (load_charset_map_from_vector): New function.
26999 (Fdefine_charset_internal): Setup charset.compact_codes_p.
27000 (encode_char): If the charset is compact, change a character index
27003 * coding.c (coding_alloc_by_making_gap): Check the case that the
27004 source and destination are the same correctly.
27005 (decode_coding_raw_text): Set coding->consumed_char and
27006 coding->consumed to 0.
27007 (produce_chars): If coding->chars_at_source is nonzero, update
27008 coding->consumed_char and coding->consumed before calling
27010 (Fdefine_coding_system_alias): Register ALIAS in
27011 Vcoding_system_alist.
27012 (syms_of_coding): Define `no-conversion' coding system at the tail.
27014 * fileio.c (Finsert_file_contents): Set coding_system instead of
27015 val. If the current buffer is multibyte, always call
27018 * xfaces.c (try_font_list): Give higher priority to fontset's
27019 family than face's family.
27021 2008-02-01 Kenichi Handa <handa@m17n.org>
27023 * callproc.c (Fcall_process): Be sure to give the current buffer
27024 to decode_coding_c_string.
27026 * xfaces.c (try_font_list): Give a family specified in a fontset
27027 higher priority than a family specified in a face.
27029 2008-02-01 Kenichi Handa <handa@m17n.org>
27031 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
27032 Fix arguments to insert_from_buffer.
27034 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
27036 2008-02-01 Kenichi Handa <handa@m17n.org>
27038 * coding.c (produce_chars): Set the variable `multibytep' correctly.
27039 (decode_coding_gap): Set coding->dst_multibyte correctly.
27041 2008-02-01 Kenichi Handa <handa@m17n.org>
27043 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
27044 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
27045 (encode_coding_utf_16): Substitute coding->default_char for
27046 non-Unicode characters.
27047 (decode_coding): Don't call record_insert here.
27048 (setup_coding_system): Initialize `surrogate' of
27049 coding->spec.utf_16 to 0.
27050 (EMIT_ONE_BYTE): Fix for multibyte case.
27052 * insdel.c (insert_from_gap): Call record_insert.
27054 2008-02-01 Kenichi Handa <handa@m17n.org>
27056 * casefiddle.c (casify_region): Fix multibyte case.
27058 * character.c (c_string_width): Add return type `int'.
27059 (char_string_with_unification): Delete arg ADVANCED.
27061 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
27062 (CHAR_STRING): Adjust for the change of char_string_with_unification.
27063 (CHAR_STRING_ADVANCE): Make it do-while statement.
27065 * chartab.c (sub_char_table_set_range): Optimize for the case
27066 DEPTH == 3. Add workaround code for a GCC optimization bug.
27068 * charset.c (parse_charset_map): Remove an unused variable.
27070 * coding.c: Delete unused variables.
27072 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
27073 earlier. If inserted is zero and the coding system doesn't
27074 require flushing, don't call decode_coding_gap.
27076 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
27078 2008-02-01 Kenichi Handa <handa@m17n.org>
27080 The following changes are for using Unicode as an internal
27081 character model, and use UTF-8 format for buffer/string
27084 * .gdbinit (xchartable): Adjust for the change of char table structure.
27085 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
27087 * Makefile.in (obj): Add character.o and chartab.o.
27088 (lisp, shortlisp): Remove utf-8.elc.
27089 (*.o): For many files, change dependency on charset.h to
27090 character.h, and add dependency on character.h.
27091 (character.o, chartab.o): New targets.
27093 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
27094 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
27095 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
27098 * dired.c, filelock.c: Include "character.h".
27100 * alloc.c: Include "character.h" instead of "charset.h".
27101 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
27102 (syms_of_alloc): Remove defsubr for Smake_char_table.
27104 * buffer.c: Include "character.h" instead of "charset.h", don't
27105 include "coding.h".
27106 (Fset_buffer_multibyte): Adjust for UTF-8.
27108 * buffer.h: EXFUN Fbuffer_live_p.
27110 * callproc.c: Include "character.h" instead of "charset.h".
27111 (Fcall_process): Big change for the new code-conversion APIs.
27113 * casetab.c: Include "character.h" instead of "charset.h".
27114 (set_canon, set_identity, shuffle): Adjust for the new
27115 map_char_table spec.
27116 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
27117 accessing the char table structure.
27119 * chartab.c: New file that implements char table.
27121 * category.c: Include "character.h".
27122 (copy_category_entry): New function.
27123 (copy_category_table): Call map_char_table and copy_category_entry.
27124 (Fmake_category_table): Initialize all top-level slots.
27125 (char_category_set): New function.
27126 (modify_lower_category_set): Delete.
27127 (Fmodify_category_entry): Call char_table_ref_and_range.
27129 * category.h (CATEGORY_SET): Just call char_category_set.
27131 * ccl.c: Include "character.h".
27132 (Qccl, Qcclp): New variables.
27133 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
27134 it's less than 256.
27135 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
27136 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
27138 (ccl_driver): Change types of argument, adjust code accordingly.
27139 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
27141 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
27143 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
27144 New members src_multibyte, dst_multibyte, consumed, and produced.
27145 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
27146 (CODING_SPEC_CCL_PROGRAM): New macro.
27147 (ccl_driver): Update prototype.
27148 (Qccl, Qcclp, Fccl_program_p): Extern them.
27149 (CHECK_CCL_PROGRAM): New macro.
27151 * character.c, character.h, chartab.c: New files.
27153 * charset.c: Mostly re-written. Move character and multibyte sequence
27154 handling codes to character.c.
27156 * charset.h: Mostly re-written. Move character and multibyte sequence
27157 handling codes to character.h.
27159 * coding.c, coding.h: Mostly re-written.
27161 * composite.c: Include "character.h" instead of "charset.h".
27162 (CHAR_WIDTH): Move to character.h.
27163 (HASH_KEY, HASH_VALUE): Delete.
27165 * composite.h (enum composition_method): Change order of enumeration
27168 * data.c: Include "character.h" instead of "charset.h".
27169 (Faref): Call CHAR_TABLE_REF for a char table.
27170 (Faset): Call CHAR_TABLE_SET for a char table.
27172 * dispextern.h (free_realized_face, check_face_attribytes)
27173 (generate_ascii_font): Extern them.
27174 (free_realized_multibyte_face): Delete extern.
27176 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
27179 * editfns.c: Include "character.h" instead of "charset.h".
27180 (Fchar_to_string): Always call CHAR_STRING.
27182 * emacs.c (main): Call init_charset_once, init_charset,
27183 syms_of_chartab, and syms_of_character.
27185 * fileio.c: Include "character.h" instead of "charset.h".
27186 (Finsert_file_contents): Big change for the new code-conversion API.
27187 (choose_write_coding_system, Fwrite_region): Likewise.
27188 (build_annotations_2): Delete.
27189 (e_write): Big change for the new code-conversion API.
27191 * fns.c: Include "character.h" instead of "charset.h".
27192 (copy_sub_char_table): Move to chartab.c.
27193 (Fcopy_sequence): Call copy_char_table for a char table.
27194 (concat): Delete codes calling count_multibyte.
27195 (string_char_to_byte, string_byte_to_char): Adjust for the new
27197 (internal_equal): Adjust for the change of char table structure.
27198 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
27199 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
27200 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
27201 (char_table_translate, optimize_sub_char_table)
27202 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
27204 (char_table_ref_and_index): Delete.
27205 (HASH_KEY, HASH_VALUE): Move to lisp.h.
27206 (Fmd5): Call preferred_coding_system instead of accessing
27207 Vcoding_category_list. Adjust for the new code-conversion API.
27208 (syms_of_fns): Move defsubr for char table related functions to
27211 * fontset.c: Mostly re-written.
27213 * fontset.h (struct font_info): Change type of the member encoding_type.
27214 (enum FONT_SPEC_INDEX): New enum.
27215 (fontset_font_pattern, fs_load_font): Update prototype.
27216 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
27218 * indent.c: Include "character.h" instead of "charset.h".
27219 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
27221 * insdel.c: Include "character.h" instead of "charset.h".
27222 (copy_text): Don't refer to Vnonascii_translation_table.
27223 (insert_from_gap): New function.
27225 * keyboard.c: Include "character.h" instead of "charset.h".
27226 (command_loop_1): Never call direct_output_forward_char before
27227 a non-ASCII character.
27228 (read_char): If Vkeyboard_translate_table is a char table, always
27229 translate a character.
27231 * keymap.c: Include "character.h".
27232 (store_in_keymap): Handle the case that IDX is a cons.
27233 (Fdefine_key): Handle the case that KEY is a cons and the car part
27234 is also a cons (range).
27235 (push_key_description): Adjust for the new character code.
27236 (describe_vector): Call describe_char_table for a char table.
27237 (describe_char_table): New function.
27239 * keymap.h (describe_char_table): Extern it.
27241 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
27242 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
27243 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
27244 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
27246 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
27248 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
27249 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
27250 (CHARTAB_SIZE_BITS_3): New macros.
27251 (chartab_size): Extern it.
27252 (struct Lisp_Char_Table): Re-design.
27253 (struct Lisp_Sub_Char_Table): New structure.
27254 (HASH_KEY, HASH_VALUE): Move from fns.c.
27255 (CHARACTERBITS): Define as 22.
27256 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
27257 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
27258 (GC_SUB_CHAR_TABLE_P): New macro.
27259 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
27260 (code_convert_string_norecord): Delete extern.
27261 (init_character_once, syms_of_character, init_charset)
27262 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
27264 * lread.c: Include "character.h".
27265 (read_multibyte): New arg NBYTES.
27266 (read_escape): Change the meaning of returned *BYTEREP.
27267 (to_multibyte): Delete.
27268 (read1): Adjust the handling of char table and string.
27270 * print.c: Include "character.h" instead of "charset.h".
27271 (print_string): Convert 8-bit raw bytes to octal form by
27272 string_escape_byte8.
27273 (print_object): Adjust for the new multibyte form. Print 8-bit
27274 raw bytes always in octal form. Handle sub char table correctly.
27276 * process.c: Include "character.h" instead of "charset.h".
27277 (read_process_output, send_process): Adjust for the new
27278 code-conversion API.
27280 * puresize.h (BASE_PURESIZE): Increase.
27282 * regex.c: Include "character.h" instead of "charset.h".
27283 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
27284 (regex_compile): Accept a range whose starting and ending
27285 character have different leading bytes.
27286 (analyse_first): Adjust for the above change.
27288 * search.c: Include "character.h" instead of "charset.h".
27289 (search_buffer, boyer_moore): Adjust for the new multibyte form.
27290 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
27292 * syntax.c: Include "character.h" instead of "charset.h".
27293 (syntax_parent_lookup): Delete.
27294 (Fmodify_syntax_entry): Accept a cons as CHAR.
27295 (skip_chars): Adjust for the new multibyte form.
27296 (init_syntax_once): Call char_table_set_range instead of directly
27297 accessing the structure of a char table.
27299 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
27300 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
27301 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
27302 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
27304 * term.c: Include "buffer.h" and "character.h".
27305 (encode_terminal_code, write_glyphs): Adjust for the new
27306 code-conversion API.
27307 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
27309 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
27311 * xdisp.c: Include "character.h".
27312 (get_next_display_element): Adjust for the new multibyte form.
27313 (disp_char_vector): Adjust for the new char table structure.
27314 (decode_mode_spec_coding): Adjust for the new structure of
27316 (decode_mode_spec): Adjust for the new code-conversion API.
27318 * xfaces.c: Include "character.h" instead of "charset.h".
27319 (load_face_font): Adjust for the change of choose_face_font and
27321 (generate_ascii_font): New function.
27322 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
27323 (set_font_frame_param): Adjust for the change of choose_face_font.
27324 (free_realized_face): Make it public.
27325 (free_realized_faces_for_fontset): Rename from
27326 free_realized_multibyte_face. Free also faces realized for ASCII.
27327 (choose_face_font): Change arguments. Adjust for the change of
27328 fontset_font_pattern and FS_LOAD_FONT.
27330 * xfns.c: Include "character.h".
27331 (x_encode_text): Adjust for the new code-conversion API.
27333 * xselect.c: Don't include "charset.h".
27334 (selection_data_to_lisp_data): Adjust for the new code conversion API.
27336 * xterm.c: Include "character.h".
27337 (x_encode_char): New argument CHARSET. Change caller.
27338 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
27339 Call ENCODE_CHAR instead of SPLIT_CHAR.
27340 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
27341 CHAR_WIDTH instead of CHARSET_WIDTH.
27342 (XTread_socket): Adjust for the new code-conversion API.
27343 (x_new_font): Adjust for the change of FS_LOAD_FONT.
27344 (x_load_font): Adjust for the change of struct font.
27346 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
27348 * xfaces.c (face_at_buffer_position): Remove unused vars.
27350 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
27352 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
27353 Fix overflow checking.
27355 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
27357 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
27358 Cancel previous change.
27360 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
27362 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
27363 ccl->eight_bit_control. Fix check for buffer overflow.
27364 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
27365 (ccl_driver): Initialize extra_bytes to 0.
27367 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
27369 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
27370 return it ORed with ctrl_modifier.
27372 2008-01-29 Miles Bader <miles@gnu.org>
27374 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
27376 2008-01-28 Jason Rumney <jasonr@gnu.org>
27378 * w32.c (stat): Don't double check for networked drive.
27380 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
27382 * window.c (run_window_configuration_change_hook): New function.
27383 Code extracted from set_window_buffer. Set the selected frame.
27384 (set_window_buffer): Use it.
27385 * window.h (run_window_configuration_change_hook): Declare.
27386 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
27388 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
27390 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
27392 * Makefile.in: Remove references to unused macros.
27394 2008-01-26 Eli Zaretskii <eliz@gnu.org>
27396 * w32.c (g_b_init_get_sid_sub_authority)
27397 (g_b_init_get_sid_sub_authority_count): New static variables.
27398 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
27399 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
27400 (init_user_info): Use them to retrieve uid and gid.
27401 Use 500/513, the Windows defaults, as Administrator's uid/gid.
27402 (fstat): Use pw_uid and pw_gid from the_passwd structure for
27403 st_uid and st_gid of the file.
27405 2008-01-26 Jason Rumney <jasonr@gnu.org>
27407 * w32.c (logon_network_drive): New function.
27410 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
27412 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
27413 invisible text covered with an ellipsis.
27415 2008-01-25 Richard Stallman <rms@gnu.org>
27417 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
27418 jump back to beginning. Move some other initializations after that.
27419 (Qwindow_text_change_functions, Vwindow_text_change_functions):
27421 (syms_of_xdisp): Init them.
27423 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
27425 * buffer.c (reset_buffer_local_variables):
27426 Implement `permanent-local-hook'.
27427 (Qpermanent_local_hook): New variable.
27428 (syms_of_buffer): Init and staticpro it.
27430 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
27432 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
27434 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
27436 * fns.c (Fclrhash): Return TABLE.
27438 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27440 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
27441 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
27442 is set even without positional changes.
27443 (x_scroll_bar_clear): Set bar->redraw_needed_p.
27445 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
27447 2008-01-23 Jason Rumney <jasonr@gnu.org>
27449 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
27451 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
27452 the unicode range available in MULE by locale-coding-system.
27453 Improve dbcs lead byte detection. Set event timestamp and modifiers
27456 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27458 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
27459 [MAC_OSX] (init_mac_osx_environment): Initialize it.
27460 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
27461 when used on child processes.
27463 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
27465 * dbusbind.c (Fdbus_method_return_internal): Rename from
27466 Fdbus_method_return.
27467 (Fdbus_unregister_object): Move to dbus.el.
27468 (Fdbus_call_method, Fdbus_method_return_internal)
27469 (Fdbus_send_signal): Improve debug messages.
27471 2008-01-20 Martin Rudalics <rudalics@gmx.at>
27473 * undo.c (undo_inhibit_record_point): New variable.
27474 (syms_of_undo): Initialize it.
27475 (record_point): Don't record point when undo_inhibit_record_point
27478 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
27480 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
27482 * xdisp.c (Qauto_hscroll_mode): New var.
27483 (syms_of_xdisp): Initialize it.
27484 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
27486 (hscroll_windows): Don't check automatic_hscrolling_p here.
27488 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
27489 vscroll if we're setting window-buffer to the value it already has.
27491 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
27493 * m/intel386.h: Remove references to XENIX.
27495 2008-01-17 Andreas Schwab <schwab@suse.de>
27497 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
27498 instead of HAVE_X86_64_LIB64_DIR.
27499 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
27501 2008-01-17 Glenn Morris <rgm@gnu.org>
27503 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
27504 to HAVE_X86_64_LIB64_DIR.
27506 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
27513 * s/hpux9shxr4.h: Remove files for systems no longer supported.
27515 * sysdep.c: Remove code containing references to symbols defined
27516 by unsupported systems.
27518 2008-01-16 Glenn Morris <rgm@gnu.org>
27520 * coding.c (select-safe-coding-system-function): Doc fix.
27522 2008-01-15 Glenn Morris <rgm@gnu.org>
27524 * config.in: Revert 2008-01-13 change: this is a generated file.
27526 2008-01-13 Tom Tromey <tromey@redhat.com>
27528 * lisp.h: Fix typo.
27530 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
27536 * s/ptx4.h: Remove files for systems no longer supported.
27538 * callproc.c (Fcall_process): Fix previous change.
27540 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
27542 * unexsunos4.c: Remove file, system not supported anymore.
27562 * alloc.c: Remove code containing references to symbols defined by
27563 unsupported systems.
27565 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
27567 * coding.c (detect_coding_mask): Fix previous change.
27569 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
27571 * coding.c (detect_coding_iso2022): New arg
27572 latin_extra_code_state. Allow Latin extra codes only
27573 when *latin_extra_code_state is nonzero.
27574 (detect_coding_mask): If there is a NULL byte, detect the encoding
27575 as UTF-16 or binary. If Latin extra codes exist, detect the
27576 encoding as ISO-2022 only when there's no other proper encoding is
27579 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27581 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
27584 2008-01-08 Richard Stallman <rms@gnu.org>
27586 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
27588 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
27590 * keyboard.c (parse_menu_item): Don't enclose key bindings on
27591 menu bar in parentheses.
27593 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
27597 * m/alliant-2800.h:
27605 * m/aviion-intel.h:
27700 * unexsni.c: Remove files for systems no longer supported.
27702 * m/intel386.h: Remove references to unsupported systems.
27704 * w32.c (get_emacs_configuration): Remove reference to i860.
27706 * sysdep.c: Remove dead code.
27708 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
27711 * m/masscomp.h: Remove files. Platform is obsolete.
27713 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
27715 * dbusbind.c (Fdbus_method_return): New function.
27716 (xd_read_message): Add the serial number to the event.
27717 (Fdbus_register_method): Activate the function.
27719 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
27721 * keyboard.c (read_key_sequence): Fix typo.
27723 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
27725 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
27726 (xd_signature, xd_append_arg): Handle element type detection for
27728 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
27729 SDATA () calls; this must be solved more general.
27730 (Fdbus_register_signal): Use SBYTES instead of strlen.
27732 2008-01-03 Magnus Henoch <magnus@zemdatav>
27734 * dbusbind.c (xd_append_arg): Use unsigned char instead of
27735 unsigned int for byte values (necessary for big-endian platform).
27736 (Fdbus_call_method): Handle the case of no returned arguments.
27738 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
27740 * dbusbind.c (xd_read_message): Use non-static input_event struct.
27742 2007-12-31 Magnus Henoch <mange@freemail.hu>
27744 * dbusbind.c (xd_signature): Signature of variant is just "v".
27746 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
27748 * dbusbind.c: Fix several errors and compiler warnings.
27749 Reported by Tom Tromey <tromey@redhat.com>.
27750 (XD_ERROR, XD_DEBUG_MESSAGE)
27751 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
27752 (xd_append_arg): Part for basic D-Bus types rewritten.
27753 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
27754 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
27756 (xd_read_message): Return Qnil. Don't signal an error; it is not
27757 useful during event reading.
27758 (Fdbus_register_signal): Signal an error if the check for
27760 (Fdbus_register_method): New function. The implementation is not
27761 complete, the call of the function signals an error therefore.
27762 (Fdbus_unregister_object): New function, renamed from
27763 Fdbus_unregister_signal. The initial check signals an error, if
27764 the object is not well formed.
27766 2007-12-30 Richard Stallman <rms@gnu.org>
27768 * textprop.c (get_char_property_and_overlay):
27769 Signal error if POSITION is out of range in a buffer.
27771 2007-12-29 Martin Rudalics <rudalics@gmx.at>
27773 * w32fns.c (Fx_create_frame): Make copy of frame parameters
27774 because the original parameters are in pure storage now.
27776 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27778 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
27780 2007-12-22 Eli Zaretskii <eliz@gnu.org>
27782 * callint.c (syms_of_callint) <command-history>: Add reference to
27783 history-length in the doc string.
27785 2007-12-17 Jason Rumney <jasonr@gnu.org>
27787 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
27788 before passing as wParam.
27790 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
27792 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
27793 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
27794 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
27795 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
27797 (Fdbus_call_method): Fix docstring.
27799 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
27801 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
27803 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
27804 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
27806 (xd_signature): New function.
27807 (xd_append_arg): Compute also signatures. Major rewrite.
27808 (xd_retrieve_arg): Make debug messages friendly.
27809 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
27810 Check for signatures of arguments.
27812 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
27814 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
27815 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
27816 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
27817 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
27818 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
27819 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
27820 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
27821 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
27822 (xd_retrieve_value): Remove. Functionality included in ...
27823 (xd_append_arg): New function.
27824 (Fdbus_call_method, Fdbus_send_signal): Apply it.
27826 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
27828 * dbusbind.c (top): Include <stdio.h>.
27829 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
27830 dbus_message_new_method_call and dbus_message_new_signal.
27831 (Fdbus_register_signal): Rename unique_name to uname.
27832 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
27833 non-existing unique name. Fix typos in matching rule. Return an
27834 object which is useful in Fdbus_unregister_signal.
27835 (Fdbus_unregister_signal): Reimplementation, in order to remove
27836 only the corresponding entry.
27837 (Vdbus_registered_functions_table): Change the order of entries.
27838 Apply these changes in xd_read_message and Fdbus_register_signal.
27840 2007-12-16 Andreas Schwab <schwab@suse.de>
27842 * fileio.c (Finsert_file_contents): Fix overflow check to not
27843 depend on undefined integer overflow.
27845 2007-12-14 Jason Rumney <jasonr@gnu.org>
27847 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
27848 for characters above 127.
27850 2007-12-13 Jason Rumney <jasonr@gnu.org>
27852 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
27853 before dereferencing array.
27854 (lookup_vk_code): Remove zero comparison.
27856 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
27858 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
27859 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
27860 Use `unsigned int' instead of `uint'.
27861 (xd_read_message, Fdbus_register_signal): Split expressions into
27862 multiple lines before operators "&&" and "||", according to the
27863 GNU Coding Standards.
27865 2007-12-14 Eli Zaretskii <eliz@gnu.org>
27867 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
27869 2007-12-12 Juri Linkov <juri@jurta.org>
27871 * buffer.c (Frename_buffer): In interactive spec replace
27872 `read-buffer' with `read-string' that uses `buffer-name-history'
27873 as history, and the current buffer's name as default.
27875 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
27877 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
27878 manipulating the backtrace manually.
27879 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
27880 (struct backtrace, backtrace_list): Remove.
27881 (command_loop_1): Remove dead var `no_direct'.
27883 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
27884 preserve non-built-in buffer-local variables.
27885 (Fkill_all_local_variables): Don't re-create&re-set permanent
27886 buffer-local variables.
27888 2007-12-09 Juri Linkov <juri@jurta.org>
27890 * buffer.c (Frename_buffer): Change interactive spec from "s" to
27891 Lisp code that uses `read-buffer' with current buffer as default.
27893 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
27895 * dbusbind.c (xd_read_message): Generate an event for every
27896 registered handler. There might be several handlers registered
27897 for the same signal.
27898 (Fdbus_register_signal): Don't overwrite a registration for the
27899 same signal. Add a new registration if handlers are different.
27900 (Vdbus_registered_functions_table): Rework doc string.
27902 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
27904 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
27905 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
27906 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
27907 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
27908 Unify argument lists.
27909 (xd_read_message, Fdbus_register_signal): Reorder and extend event
27910 arguments and hash table keys. Use unique name for service.
27911 (Fdbus_unregister_signal): Remove checks.
27912 (Vdbus_registered_functions_table): Fix doc string.
27914 2007-12-05 Magnus Henoch <mange@freemail.hu>
27916 * process.c (make_process): Initialize pty_flag to 0.
27918 2007-12-05 Jason Rumney <jasonr@gnu.org>
27920 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
27923 2007-12-05 Richard Stallman <rms@gnu.org>
27925 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
27927 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27929 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
27931 (mac_try_close_socket) [MAC_OSX]: New function.
27932 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
27933 Update cfsockets_for_select. Replace invalid CFRunLoop source.
27935 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
27936 Use mac_try_close_socket.
27938 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27940 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
27942 (copy_dysymtab): Compute relocation base here.
27943 (rebase_reloc_address) [__ppc64__]: New function.
27944 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
27947 2007-12-05 Jason Rumney <jasonr@gnu.org>
27949 * w32proc.c (sys_spawnve): Quote args with wildcards.
27951 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27953 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
27955 (unrelocate) [_LP64]: Set relocation base to address of data segment.
27957 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
27959 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
27960 Move check for Vdbus_registered_functions_table to
27961 xd_read_queued_messages.
27962 (xd_read_queued_messages): Protect xd_read_message calls by
27963 internal_condition_case_1.
27965 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
27967 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
27968 Qdbus_system_bus and Qdbus_session_bus, respectively.
27969 (Vdbus_intern_symbols): Remove.
27970 (Vdbus_registered_functions_table): New hash table.
27971 (XD_SYMBOL_INTERN_SYMBOL): Remove.
27972 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
27973 Rewrite in order to manage registered functions by hash table
27974 Vdbus_registered_functions_table.
27976 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
27978 * xterm.c: Update URL to Window Manager Specification in comment.
27980 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
27982 * config.in (HAVE_DBUS): Add.
27984 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
27985 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
27986 (obj): Add $(DBUS_OBJ).
27987 (LIBES): Add $(DBUS_LIBS).
27988 (dbusbind.o): New target.
27990 * dbusbind.c: New file.
27992 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
27994 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
27995 (Qdbus_event): New Lisp symbol.
27996 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
27997 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
27998 (keys_of_keyboard): Define dbus-event.
28000 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
28002 2007-12-01 Richard Stallman <rms@gnu.org>
28004 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
28006 2007-11-30 Jason Rumney <jasonr@gnu.org>
28008 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
28009 (w32con_reset_terminal_modes): Clear screen buffer.
28010 (w32_face_attributes): Don't use color indexes that are out of range.
28011 Only reverse the default colors.
28013 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
28016 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
28018 2007-11-29 Jason Rumney <jasonr@gnu.org>
28020 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
28021 (w32_face_attributes): Use Vtty_defined_color_alist to determine
28022 if the terminal colors are initialized.
28023 (unspecified_fg, unspecified_bg): Remove unused declarations.
28025 2007-11-29 Andreas Schwab <schwab@suse.de>
28027 * keyboard.c (apply_modifiers): Fix typo.
28029 2007-11-29 Richard Stallman <rms@gnu.org>
28031 * keymap.c (Fcurrent_local_map): Doc fix.
28033 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
28035 * s/gnu-kfreebsd.h: New file.
28037 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
28039 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
28040 Don't cast redundantly.
28042 * keyboard.c (KEY_TO_CHAR): New macro.
28043 (parse_modifiers, apply_modifiers): Accept integer arguments.
28044 (read_key_sequence): Use them to unify the "shift->unshift" mapping
28045 for chars and symbol keys.
28046 After doing such remapping, apply function-key-map again.
28048 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
28050 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
28053 2007-11-26 Andreas Schwab <schwab@suse.de>
28055 * process.c (list_processes_1): Fix indentation level of the
28058 2007-11-23 Andreas Schwab <schwab@suse.de>
28060 * editfns.c (Fformat): Handle %c specially since it requires the
28061 argument to be of type int.
28063 2007-11-23 Markus Triska <markus.triska@gmx.at>
28065 * emacs.c (main): Call init_editfns before init_process, since
28066 init_process sets Vprocess_connection_type depending on OS release.
28068 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
28070 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
28071 (find_symbol_value): Use do_symval_forwarding.
28073 * data.c (set_internal): Set the value in the `cons-cell' (for
28074 Buffer_Local_values) not only for frame-local variables.
28076 2007-11-22 Andreas Schwab <schwab@suse.de>
28078 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
28080 * keymap.c (Fsingle_key_description): Likewise.
28081 * print.c (print_object): Likewise.
28083 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
28085 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
28086 file for image is nil.
28088 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
28090 * term.c: Include stdarg.h.
28091 (fatal): Implement using varargs.
28092 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
28094 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
28096 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
28097 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
28098 Update call to buffer_slot_type_mismatch.
28099 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
28100 (buffer_slot_type_mismatch): Update.
28101 * buffer.c (buffer_local_types): Remove.
28102 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
28103 (defvar_per_buffer): Set the type in the buffer_objfwd.
28105 2007-11-21 Jason Rumney <jasonr@gnu.org>
28107 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
28108 CreateFileMapping returns NULL on failure.
28110 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
28112 * search.c (Fset_match_data): Remove the `evaporate' feature.
28113 (unwind_set_match_data): Don't use the `evaporate' feature.
28115 2007-11-21 Jason Rumney <jasonr@gnu.org>
28117 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
28119 * w32console.c (w32con_write_glyphs): Remove unused variables.
28121 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
28123 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
28125 * s/darwin.h (MULTI_KBOARD): Remove.
28127 * macfns.c (x_create_tip_frame, Fx_create_frame)
28128 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
28130 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
28132 * buffer.c (Fbuffer_local_value): Remove redundant test.
28133 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
28134 than in `current-buffer' to match the comment.
28135 Do the swap using swap_in_global_binding.
28137 * data.c (store_symval_forwarding, set_internal):
28138 * eval.c (specbind): Remove dead code.
28140 * coding.c (detect_coding, Fupdate_coding_systems_internal):
28141 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
28142 Since we do not want to see internal Lisp_*fwd objects here.
28144 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
28146 * sysdep.c (init_system_name): Use getaddrinfo if available.
28148 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
28149 (x_scroll_bar_note_movement): start, end, with, height in struct
28150 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
28152 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
28154 * puresize.h (BASE_PURESIZE): Increase to 1190000.
28156 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
28158 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
28159 This undoes Richard's change of 14-Oct-2002.
28161 * alloc.c (allocate_other_vector):
28162 * lisp.h (allocate_other_vector): Remove.
28164 * window.c (struct save_window_data): Move non-lisp data to the end
28165 and make it `int' rather than Lisp_Object.
28166 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
28167 Done wrap/unwrap integer values.
28168 (Fset_window_configuration, compare_window_configurations):
28169 Update use of fields to their new types.
28171 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
28172 Turn integer fields into `int'. Merge x_window_low and x_window_high.
28173 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
28174 (SET_SCROLL_BAR_X_WINDOW): Remove.
28175 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
28176 Access the new x_window field directly.
28177 * xterm.c (x_scroll_bar_create): Use a pseudovector.
28178 Don't wrap/unwrap integers into Lisp_Objects.
28179 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
28180 (x_scroll_bar_report_motion):
28181 Don't wrap/unwrap integers into Lisp_Objects.
28182 (x_term_init): Use SDATA.
28183 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
28184 (x_scroll_bar_set_handle, x_scroll_bar_remove)
28185 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
28186 (x_scroll_bar_report_motion, x_scroll_bar_clear):
28187 * xfns.c (x_set_background_color):
28188 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
28189 Access the new x_window field directly.
28191 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
28192 (allocate_pseudovector): Make non-static.
28194 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
28195 (allocate_pseudovector): Declare.
28196 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
28198 2007-11-15 Andreas Schwab <schwab@suse.de>
28200 * editfns.c (Fformat): Correctly format EMACS_INT values.
28201 Also take precision into account when formatting an integer.
28203 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
28205 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
28207 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
28208 (syms_of_keyboard): Defsubr it.
28210 * data.c (swap_in_global_binding): Fix longstanding bug where
28211 store_symval_forwarding was not called with the right second argument,
28212 thus causing objfwd-ing from being dropped.
28214 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
28216 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
28217 (Fx_display_pixel_height, Fx_display_planes)
28218 (Fx_display_color_cells, Fx_server_max_request_size)
28219 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
28220 (Fx_display_visual_class, Fx_display_save_under):
28221 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
28222 (Fx_display_pixel_height, Fx_display_planes)
28223 (Fx_display_color_cells, Fx_server_max_request_size)
28224 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
28225 (Fx_display_mm_height, Fx_display_mm_width)
28226 (Fx_display_backing_store, Fx_display_visual_class)
28227 (Fw32_select_font, Fx_display_save_under):
28228 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
28229 (Fx_display_pixel_height, Fx_display_planes)
28230 (Fx_display_color_cells, Fx_server_max_request_size)
28231 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
28232 (Fx_display_save_under): Fix typos in docstrings.
28234 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
28236 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
28237 corresponding to deleted entries; they are an implementation detail.
28238 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
28240 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
28241 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
28242 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
28243 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
28244 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
28245 (Fw32_define_rgb_color, Fw32_load_color_file)
28246 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
28247 Fix typos in docstrings.
28248 (Fx_server_version): Reflow docstring.
28249 (Fw32_shell_execute): Doc fixes.
28251 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
28253 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
28254 if w32_parse_hot_key returned nil.
28256 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
28258 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
28260 2007-11-09 Jason Rumney <jasonr@gnu.org>
28262 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
28264 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
28266 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
28267 Remove W32_SCROLL_BAR_CLICK_EVENT.
28269 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
28270 Add MULTIMEDIA_KEY_EVENT.
28272 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
28273 (lispy_multimedia_keys) [WINDOWSNT]: New array.
28274 (make_lispy_event) [WINDOWSNT]: Use it to translate
28275 MULTIMEDIA_KEY_EVENT.
28277 * w32term.h (WM_APPCOMMAND): Define if not already.
28278 (GET_APPCOMMAND_LPARAM): Likewise.
28280 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
28283 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
28284 (syms_of_w32fns): Export and initialize it.
28285 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
28287 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
28289 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
28292 * xdisp.c (handle_face_prop): Fix last change.
28294 2007-11-09 Richard Stallman <rms@gnu.org>
28296 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
28297 not just for after-strings and before-strings.
28298 Call face_for_overlay_string and pass the overlay to it.
28299 (handle_display_prop): Determine whether property came from an overlay.
28300 Pass OVERLAY arg to handle_single_display_spec.
28301 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
28302 (load_overlay_strings): Fill in it->string_overlays.
28303 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
28305 * xfaces.c (face_for_overlay_string): Function renamed from
28306 face_at_buffer_position_no_overlays, and add arg OVERLAY.
28308 * dispextern.h (struct it): New elt string_overlays.
28309 New elt from_overlay, also in stack.
28310 Rearrange a few elements.
28311 (face_for_overlay_string): Decl renamed from
28312 face_at_buffer_position_no_overlays, and add argument.
28314 2007-11-09 Richard Stallman <rms@gnu.org>
28316 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
28317 to get the base face for an overlay string.
28319 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
28321 * xfaces.c (face_at_buffer_position_no_overlays): New function.
28323 * xdisp.c (handle_stop): Move some code out of loop.
28325 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28327 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
28328 Fix conversion from Lisp object to ATSUFontID.
28330 2007-11-09 Jason Rumney <jasonr@gnu.org>
28332 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
28334 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28336 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
28337 Don't assume regions are aligned to page boundary.
28338 (print_load_command_name): Add LC_UUID if defined.
28340 2007-11-09 Richard Stallman <rms@gnu.org>
28342 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
28344 2007-11-07 Jason Rumney <jasonr@gnu.org>
28346 * s/windows95.h: Remove.
28348 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
28350 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
28351 abort with a message on unhandled store_type values.
28353 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
28355 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
28356 Remove HAVE_X11R5 and HAVE_X11R4.
28358 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
28360 * Makefile.in: Remove references to sunfns.c and sunfns.o.
28362 2007-11-01 Johan Bockgård <bojohan@gnu.org>
28364 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
28365 Don't set s->stippled_p here, since it has already been set by
28366 x_set_glyph_string_gc from x_draw_glyph_string.
28368 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
28370 * sunfns.c: Remove file.
28374 * m/sparc.h: Remove Sun windows code.
28376 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
28378 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
28379 (init_keyboard): Set current_kboard's window-system to nil.
28380 (tty_read_avail_input): Typo.
28381 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
28383 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
28390 * Makefile.in: Remove all mentions of X10.
28392 * dispnew.c (syms_of_display): Don't mention version 10.
28394 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
28396 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
28397 ($(BLD)/abbrev.$(O)): Remove.
28399 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
28401 Rewrite abbrev.c in Elisp.
28402 * image.c (Qcount): Don't declare as extern.
28403 (syms_of_image): Initialize and staticpro `Qcount'.
28404 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
28405 * emacs.c (main): Don't call syms_of_abbrev.
28406 * Makefile.in (obj): Remove abbrev.o.
28407 (abbrev.o): Remove.
28408 * abbrev.c: Remove.
28410 2007-10-26 Martin Rudalics <rudalics@gmx.at>
28412 * window.c (window_min_size_2): Don't count header-line.
28414 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
28416 * frame.h (struct frame): Move all bit fields after the first bit
28417 field to take advantage of the available space. Group all the
28418 chars together to reduce wasted space due to padding.
28420 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
28422 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
28424 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
28425 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
28426 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
28427 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
28428 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
28429 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
28430 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
28431 (last_marked, mark_object_loop_halt): Make static.
28433 * frame.c (syms_of_frame) <delete-frame-functions>:
28434 Fix typo in docstring.
28436 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
28438 * w32.c (init_environment): Fix tiny memory leak.
28439 (w32_get_resource): Remove unused variable `ok'.
28441 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
28443 Make `window-system' into a keyboard-local variable (rather than
28444 frame-local as done originally by multi-tty).
28446 * keyboard.h (struct kboard): Add Vwindow_system.
28447 * keyboard.c (init_kboard): Set a default for Vwindow_system.
28448 (mark_kboards): Mark Vwindow_system.
28450 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
28451 (init_display): Don't set the obsolete `window-system' frame-param.
28453 * xterm.c (x_term_init):
28454 * w32term.c (w32_create_terminal):
28455 * term.c (init_tty): Set Vwindow_system.
28456 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
28457 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
28459 * xfns.c (Fx_create_frame, x_create_tip_frame):
28460 * w32fns.c (Fx_create_frame, x_create_tip_frame):
28461 * macfns.c (Fx_create_frame):
28462 Don't set the obsolete `window-system' frame-param.
28464 * frame.h (Qwindow_system): Remove.
28465 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
28466 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
28468 2007-10-24 Richard Stallman <rms@gnu.org>
28470 * frame.c (x_figure_window_size): For fullscreen case,
28471 set USPosition | PPosition without clobbering rest of window_prompting.
28473 * keyboard.c (Fcurrent_idle_time): Doc fix.
28475 * print.c (Fwith_output_to_temp_buffer): Doc fix.
28477 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
28479 * process.c (unwind_request_sigio): Only define if __ultrix__.
28481 * callproc.c (child_setup): Remove spurious *.
28483 * lisp.h (Fget_text_property): Declare.
28484 (have_menus_p): Declare it here rather than in sys-dep header files.
28485 * macterm.h (have_menus_p):
28486 * msdos.h (have_menus_p):
28487 * xterm.h (have_menus_p): Remove.
28489 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
28490 (Fmake_variable_frame_local): Just check the variable's const-ness
28491 rather than checking nil or t.
28493 2007-10-22 Jason Rumney <jasonr@gnu.org>
28495 * w32fns.c: Include math.h.
28496 (w32_abort): Declaration moved to nt/config.nt.
28498 * s/ms-w32.h (HAVE_STDLIB_H): Define.
28499 (abort): Redefinition moved to nt/config.nt.
28501 * m/windowsnt.h: Remove.
28503 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
28505 * emacs.c (Fdump_emacs): Fix typo in message.
28506 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
28507 <installation-directory>: Reflow docstring.
28509 2007-10-22 Juri Linkov <juri@jurta.org>
28511 * minibuf.c: Allow minibuffer default to be a list of default values.
28512 With empty input use the first element of this list as returned default.
28514 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
28515 (read_minibuf): If defalt is cons, set histstring to its car.
28516 (Fread_string): If default_value is cons, set val to its car.
28517 (Fread_buffer): If def is cons, use its car.
28518 (Fcompleting_read): If defalt is cons, set val to its car.
28520 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
28522 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
28524 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
28526 * doc.c (Fdocumentation): Check for advice in all cases.
28528 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
28530 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
28532 2007-10-19 Richard Stallman <rms@gnu.org>
28534 * doc.c (Fdocumentation): Check for and handle an advised function.
28536 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
28538 * process.c (Fset_process_filter): Doc fix.
28540 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
28542 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
28543 which caused key-translation-map to applied repeatedly (thus breaking
28546 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
28548 * xselect.c (x_own_selection, x_handle_selection_clear)
28549 (x_clear_frame_selections):
28550 * w32menu.c (list_of_panes, list_of_items):
28551 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
28552 * textprop.c (validate_plist, interval_has_all_properties)
28553 (interval_has_some_properties, interval_has_some_properties_list)
28554 (add_properties, text_property_list):
28555 * process.c (Fget_buffer_process, list_processes_1, status_notify):
28556 * minibuf.c (Fassoc_string):
28557 * macselect.c (x_own_selection, x_clear_frame_selections)
28558 (Fx_disown_selection_internal):
28559 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
28560 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
28562 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
28564 * process.c: Link to libs for calling res_init() if available.
28565 (Fmake_network_process): Call res_init() before getaddrinfo or
28566 gethostbyname, if possible.
28568 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
28570 * lread.c (read1): Set pvectype for char_tables.
28572 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
28573 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
28575 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
28577 * alloc.c (free_misc): Use XMISCTYPE.
28578 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
28580 2007-10-17 Glenn Morris <rgm@gnu.org>
28582 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
28583 (syms_of_minibuf): Add Qcompletion_ignore_case.
28584 * dired.c (Qcompletion_ignore_case): Change to external.
28585 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
28586 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
28587 (Fread_file_name): Use it rather than intern'ing.
28589 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
28590 (Fread_coding_system): Ignore case of user input.
28592 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28594 * xdisp.c (handle_display_prop): Ignore display specs after
28595 replacing one when string text is being replaced.
28596 (handle_single_display_spec): Pretend as if characters with display
28597 property haven't been consumed only when buffer text is being replaced.
28599 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
28601 * xfns.c (Fx_create_frame, Fx_display_list):
28602 * window.c (window_fixed_size_p, enlarge_window)
28603 (shrink_window_lowest_first):
28604 * macterm.c (init_font_name_table):
28605 * macfns.c (Fx_create_frame, Fx_display_list):
28606 * lread.c (close_load_descs):
28607 * keyboard.c (read_char_x_menu_prompt):
28608 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
28609 * coding.c (code_convert_region_unwind): Test the type of an object
28610 rather than just !NILP before extracting data from it.
28612 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
28614 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
28615 (XMISCANY): New macro.
28616 (XMISCTYPE): Use it.
28617 (struct Lisp_Misc_Any): New type.
28618 (union Lisp_Misc): Use it.
28619 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
28620 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
28621 (find_symbol_value, set_internal, default_value, Fset_default)
28622 (Fmake_variable_buffer_local, Fmake_local_variable)
28623 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
28624 (Flocal_variable_if_set_p, Fvariable_binding_locus):
28625 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
28626 * alloc.c (allocate_buffer): Set the size and tag.
28627 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
28629 (die): Follow the GNU convention for error messages.
28630 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
28631 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
28633 (set_buffer_internal_1):
28634 * frame.c (store_frame_param):
28635 * eval.c (specbind):
28636 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
28638 * doc.c (Fsnarf_documentation): Simplify.
28640 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
28642 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
28643 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
28645 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
28647 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
28649 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
28651 * eval.c (do_autoload): Don't save autoloads.
28653 * data.c (Ffset): Save autoload of the function being set.
28655 2007-10-07 John Paul Wallington <jpw@pobox.com>
28657 * xfns.c (x_create_tip_frame): Set the `display-type' frame
28658 parameter before setting up faces.
28660 2007-10-13 Eli Zaretskii <eliz@gnu.org>
28662 * ccl.c (Fregister_code_conversion_map):
28663 * keyboard.c (append_tool_bar_item): Reformat last change.
28665 * lisp.h (eabs): Rename from `abs'. All callers changed.
28667 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
28669 * buffer.c (add_overlay_mod_hooklist):
28670 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
28671 * fontset.c (make_fontset):
28672 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
28673 (append_tool_bar_item):
28674 * macmenu.c (grow_menu_items):
28675 * w32menu.c (grow_menu_items):
28676 * xmenu.c (grow_menu_items): Use larger_vector.
28678 2007-10-13 Eli Zaretskii <eliz@gnu.org>
28680 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
28681 selected frame'' on MSDOS).
28683 2007-10-12 Martin Rudalics <rudalics@gmx.at>
28685 * frame.c (Qexplicit_name): New variable.
28686 (x_report_frame_params): Report it in parameter alist.
28687 (syms_of_frame): Intern and staticpro it.
28689 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
28691 * macfns.c (x_create_tip_frame): Set terminal for frame.
28693 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
28695 * frame.c (Qenvironment): Remove.
28696 (syms_of_frame) <Qenvironment>: Don't initialize.
28697 (Fdelete_frame): Don't treat the `environment' param specially.
28698 * frame.h (Qenvironment): Don't declare.
28699 * callproc.c (set_initial_environment): Don't set unused frame param.
28701 * frame.c (Fframe_with_environment): Remove.
28702 (syms_of_frame) <Sframe_with_environment>: Don't declare.
28704 * lisp.h (Fframe_with_environment): Don't declare.
28706 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
28708 * indent.c (indent_tabs_mode, last_known_column)
28709 (last_known_column_modified): Make static.
28710 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
28712 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
28714 * puresize.h (BASE_PURESIZE): Increase to 1170000.
28716 2007-10-09 Jason Rumney <jasonr@gnu.org>
28718 * w32term.c (x_set_window_size): Disable code that attempts to tell
28719 Lisp code about a size change before it actually happens.
28721 2007-10-09 Richard Stallman <rms@gnu.org>
28723 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
28724 return HANDLED_RETURN.
28726 2007-10-08 Martin Rudalics <rudalics@gmx.at>
28728 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
28729 when there's an unread command event.
28731 * frame.c (focus_follows_mouse): Move here from frame.el to allow
28732 window autoselection act appropriately when leaving selected frame.
28733 (syms_of_frame): Initialize focus_follows_mouse.
28734 * frame.h (focus_follows_mouse): Extern it.
28735 * macterm.c (XTread_socket): When focus_follows_mouse is nil
28736 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
28737 * msdos.c (dos_rawgetc): Likewise.
28738 * w32term.c (w32_read_socket): Likewise.
28739 * xterm.c (handle_one_xevent): Likewise.
28740 * xdisp.c (syms_of_xdisp): In doc-string of
28741 mouse-autoselect-window mention focus-follows-mouse.
28743 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28745 * macterm.c (mac_load_query_font): Fix missing return value.
28746 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
28749 2007-10-08 Richard Stallman <rms@gnu.org>
28751 * xdisp.c (get_window_cursor_type): Implement documented behavior
28752 for cursor-in-non-selected-windows = t.
28754 2007-10-08 Jason Rumney <jasonr@gnu.org>
28756 * w32.c (w32_get_resource): Always close registry keys.
28758 2007-10-08 Jason Rumney <jasonr@gnu.org>
28760 * makefile.w32-in (LIBS): Add COMCTL32.
28762 * w32fns.c (globals_of_w32fns): Init common controls.
28764 2007-10-08 Richard Stallman <rms@gnu.org>
28766 * image.c (our_memory_buffer): Rename from omfib_buffer.
28768 2007-10-08 Richard Stallman <rms@gnu.org>
28770 * buffer.c (Foverlays_at): Doc fix.
28772 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
28774 * fns.c (Fplist_put): Preserve uneven tail data.
28776 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
28778 * termhooks.h (enum event_kind): Remove trailing comma.
28780 * frame.h (enum): Remove trailing comma.
28782 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
28784 * w32proc.c (delete_child): Don't terminate threads of zombies.
28786 2007-10-08 Martin Rudalics <rudalics@gmx.at>
28788 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
28790 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
28791 last-repeatable-command.
28792 (init_kboard): Initialize Vlast_repeatable_command.
28793 (command_loop_1): Set it to real_this_command unless that was
28794 bound to an input event.
28795 (mark_kboards): Mark it.
28797 2007-10-08 Richard Stallman <rms@gnu.org>
28799 * eval.c (condition-case): Doc fix.
28801 2007-10-08 Masatake YAMATO <jet@gyve.org>
28803 * xfaces.c (tty_supports_face_attributes_p): Fix code
28804 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
28805 was copied and not edited.
28807 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
28809 Add new `input-decode-map' keymap and use it for terminal
28811 * keyboard.h (struct kboard): Add Vinput_decode_map.
28812 Remove Vlocal_key_translation_map.
28813 * keyboard.c (read_key_sequence): Add support for input-decode-map.
28814 (init_kboard): Init input-decode-map.
28815 Replace local-key-translation-map back with key-translation-map.
28816 (syms_of_keyboard): Declare input-decode-map.
28817 Remove local-key-translation-map. Update docstrings.
28818 (mark_kboards): Mark Vinput_decode_map.
28819 Don't mark Vlocal_key_translation_map.
28820 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
28821 Replace local-key-translation-map back with key-translation-map.
28822 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
28823 Bind in input-decode-map rather than function-key-map.
28825 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
28826 This was made redundant by the previous introduction of XSETPVECTYPE.
28828 2007-10-09 Richard Stallman <rms@gnu.org>
28830 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
28832 2007-09-29 Richard Stallman <rms@gnu.org>
28834 * eval.c (internal_condition_case_2, internal_condition_case_1)
28835 (internal_condition_case): Reenable abort if x_catching_errors ()
28836 to see if that really happens and why.
28838 2007-10-06 Andreas Schwab <schwab@suse.de>
28840 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
28842 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
28844 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
28846 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
28848 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
28850 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
28852 * window.h (struct window):
28853 * window.c (struct save_window_data, struct saved_window):
28854 * termhooks.h (struct terminal):
28855 * process.h (struct Lisp_Process):
28856 * frame.h (struct frame):
28857 * buffer.h (struct buffer):
28858 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
28859 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
28860 The size field of (pseudo)vectors is now unsigned.
28861 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
28863 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
28864 Turn `count' into an integer.
28866 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
28867 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
28868 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
28869 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
28870 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
28872 * alloc.c (allocate_pseudovector): New fun.
28873 (ALLOCATE_PSEUDOVECTOR): New macro.
28874 (allocate_window, allocate_terminal, allocate_frame)
28875 (allocate_process): Use it.
28876 (mark_vectorlike): New function.
28877 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
28878 (mark_terminals): Use it.
28879 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
28880 (Fmake_byte_code): Use XSETPVECTYPE.
28882 * frame.c (Fframe_parameters): Minor simplification.
28884 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
28886 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
28888 * buffer.c (Fget_buffer_create, init_buffer_once):
28889 * lread.c (defsubr):
28890 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
28892 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
28893 defined differently in the m/*.h files.
28894 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
28895 (XSETPVECTYPE): New macro.
28896 (XSETPSEUDOVECTOR): Use it.
28898 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
28899 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
28901 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
28902 * lread.c (defvar_per_buffer):
28903 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
28905 * window.c (candidate_window_p): Only consider as visible frames that
28906 are on the same terminal.
28908 * m/ibms390x.h (MARKBIT): Remove unused macro.
28910 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
28912 * lread.c (Fload): Fix typo in docstring.
28914 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
28916 * floatfns.c (Fexpt): Manually check for overflows, so that a power
28917 of a non-zero value can't yield zero.
28919 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
28921 * term.c (term_clear_mouse_face, term_mouse_highlight)
28922 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
28924 * print.c (safe_debug_print): Use XHASH.
28926 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
28927 Lisp elements such as tags.
28928 (XHASH): New macro.
28930 (SREF, SSET, STRING_COPYIN): Use SDATA.
28931 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
28933 * alloc.c (mark_terminal): Remove left-over declaration.
28934 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
28935 (allocate_vectorlike): Remove type argument. Adjust callers.
28936 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
28937 Only handle the one remaining MEM_TYPE_VECTORLIKE.
28939 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
28940 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
28941 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
28942 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
28943 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
28946 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
28947 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
28948 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
28950 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
28952 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
28955 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
28957 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
28959 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
28961 * term.c (mouse_face_window): Rename from Qmouse_face_window.
28963 (handle_one_term_event): Use Gpm_DrawPointer.
28964 (Fgpm_mouse_start): Rename from Fterm_open_connection.
28965 Signal errors instead of returning nil. Always return nil.
28966 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
28967 Make it a noop if gpm-mouse was not activated.
28968 (syms_of_term): Update names.
28970 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
28972 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
28973 (init_sys_modes): Check that gpm_tty is the current tty.
28975 * alloc.c (allocate_terminal): Set the vector size to only count the
28976 lisp fields. Initialize those to nil.
28977 (mark_object): Don't treat terminals specially.
28978 (mark_terminal): Remove.
28979 (mark_terminals): Use mark_object instead.
28981 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
28982 the GC to the beginning.
28985 * indent.c: Use EMACS_INT for ints coming from Elisp data.
28987 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
28989 2007-09-25 Jason Rumney <jasonr@gnu.org>
28991 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
28993 * w32console.c (create_w32cons_output): Remove.
28995 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
28997 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
28998 (reset_sys_modes): Use reset_terminal_modes_hook.
29000 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
29002 * eval.c (do_autoload): Don't output any message.
29004 2007-09-24 Juri Linkov <juri@jurta.org>
29006 * emacs.c (standard_args): Change priority of "--no-splash"
29007 from 40 to 3. Add "--no-desktop" with the same priority.
29009 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
29011 * alloc.c (gc_sweep): Check cons cell mark bits word by word
29012 and optimize the case where they are all 1.
29014 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
29016 * lisp.h (abs): Define if not defined.
29017 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
29018 Don't define `abs', since it's defined in lisp.h.
29020 2007-09-22 Eli Zaretskii <eliz@gnu.org>
29022 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
29023 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
29024 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
29025 (init_tty): Use DEV_TTY instead of "/dev/tty".
29026 [WINDOWSNT]: No need to protect from NAME arg being null.
29028 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
29030 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
29033 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
29035 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
29036 (gpm_tty): Change its type.
29037 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
29038 (gpm_tty): Change its type and initialize it.
29039 (Fterm_open_connection): Check the frame is indeed a tty.
29040 Use the new gpm_tty.
29041 (Fterm_close_connection): Use the new gpm_tty.
29042 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
29043 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
29045 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
29047 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
29048 underline_color, to draw strike-through.
29050 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
29052 * lisp.h (allocate_terminal): Declare.
29054 * window.c (candidate_window_p): Consider frames that are being placed
29055 by the user as somewhere between visible and iconified.
29056 (window_loop): Prefer windows on the current frame.
29057 (Fselect_window): Move the use of select-frame to the beginning so we
29058 can just delegate all the work (it'll call us back anyway).
29060 * frame.c (Qdisplay_environment_variable):
29061 * frame.h (Qdisplay_environment_variable): Delete.
29063 * .gdbinit (xbacktrace): Print the arg's address rather than the value
29064 of the first arg, since that value may be a union.
29066 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
29067 parameter rather than Qdisplay_environment_variable. If all else
29068 fails, look for DISPLAY in initial-environment.
29070 2007-09-21 Glenn Morris <rgm@gnu.org>
29072 * Makefile.in (emacstool): Remove target.
29073 (lisp, shortlisp): Remove termdev.elc.
29075 2007-09-21 Markus Triska <markus.triska@gmx.at>
29077 * xterm.c (x_delete_display): Compile session management conditionally.
29079 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
29081 * callproc.c (getenv_internal_1): New function.
29082 (getenv_internal): Use it.
29083 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
29085 * terminal.c (get_terminal): Don't accept ints to represent terminals.
29086 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
29087 (Fset_terminal_parameter): Work with dead terminals as well.
29088 (Fmodify_terminal_parameters): Remove.
29090 * terminal.c (get_terminal): Handle terminals.
29091 Make sure the terminal returned is live.
29092 (create_terminal): Use allocate_terminal.
29093 (mark_terminals): Move to alloc.c.
29094 (delete_terminal): Use terminal->name as liveness status.
29095 NULL out fields after freeing their contents.
29096 Don't deallocate the object.
29097 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
29098 rather than an int.
29099 (Fterminal_live_p): Accept non-integer arguments.
29100 (Fterminal_list): Return terminal objects rather than an ints.
29102 * alloc.c (enum mem_type): New member for `terminal' objects.
29103 (allocate_terminal): New function.
29104 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
29106 (mark_terminal): New fun.
29107 (mark_terminals): Move from terminal.c.
29109 * term.c (get_tty_terminal): Don't treat output_initial specially.
29110 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
29111 (delete_tty): Use terminal->name as liveness status.
29113 * termhooks.h (struct terminal): Make it into a pseudovector.
29114 Remove `deleted' replaced by checking `name's nullness.
29116 * print.c (print_object): Handle terminals.
29118 * lisp.h (enum pvec_type): New `terminal' pseudovector.
29119 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
29121 * frame.c (make_terminal_frame):
29122 * keyboard.c (tty_read_avail_input):
29123 * w32term.c (x_delete_terminal):
29124 * xfns.c (Fx_create_frame, x_create_tip_frame):
29125 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
29127 2007-09-20 Glenn Morris <rgm@gnu.org>
29129 * process.c (Fmake_network_process): Doc fix.
29131 2007-09-19 Jason Rumney <jasonr@gnu.org>
29133 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
29135 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
29137 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
29138 Fix a C warning regarding variable constness.
29140 * xterm.c (handle_one_xevent): Fix a C warning.
29142 2007-09-18 Jason Rumney <jasonr@gnu.org>
29144 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
29146 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
29148 * gtkutil.c (gdpy_def): New variable.
29149 (xg_initialize): Initialize gdpy_def.
29150 (xg_display_close): If no other display exists, set gdpy_def to a
29153 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
29155 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
29156 when we have no file name for the icon.
29157 (xg_tool_bar_expose_callback): Remove.
29158 (xg_create_tool_bar): Don't connect expose signal to
29159 xg_tool_bar_expose_callback.
29160 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
29162 2007-09-16 Andreas Schwab <schwab@suse.de>
29164 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
29165 values instead of zapping them.
29167 2007-09-14 Glenn Morris <rgm@gnu.org>
29169 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
29170 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
29171 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
29172 scope and rename to omfib_buffer for clarity.
29173 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
29175 2007-09-14 Kenichi Handa <handa@m17n.org>
29177 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
29179 2007-09-13 Jason Rumney <jasonr@gnu.org>
29181 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
29183 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
29185 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
29186 (mac_term_init): Call here instead, passing rif.
29188 2007-09-13 Glenn Morris <rgm@gnu.org>
29190 * s/hpux.h: No longer define `static' as nothing.
29192 2007-09-13 Johan Bockgård <bojohan@gnu.org>
29194 * callint.c (Fcall_interactively): Remove unused var `fun'.
29196 2007-09-12 Romain Francoise <romain@orebokech.com>
29198 * window.c (prefer_window_split_horizontally, display_buffer):
29199 Revert 2007-09-08 change.
29201 2007-09-12 Glenn Morris <rgm@gnu.org>
29203 * alloca.c: Remove file.
29204 * Makefile.in (alloca): Do not undef.
29205 (allocaobj, alloca.o): Remove.
29206 (otherobj): Remove allocaobj.
29207 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
29208 * regex.c (C_ALLOCA): Remove all references and code that was only
29209 used when this was defined.
29210 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
29211 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
29212 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
29214 * Makefile.in (SOURCES, unlock, relock): Delete.
29216 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
29217 (menu_grab_callback): All uses changed.
29219 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
29220 (x_reply_selection_request): All uses changed.
29222 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
29224 * lread.c (load_warn_old_style_backquotes): Change message to look
29225 better when it appears in the middle of byte-compiler messages.
29227 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
29229 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
29231 * xterm.c (x_create_terminal): Add comment.
29233 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
29235 2007-09-10 Richard Stallman <rms@gnu.org>
29237 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
29239 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
29241 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
29242 (DEFUN): Document `intspec', use it instead of `prompt'.
29244 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
29246 * data.c (Finteractive_form): If the interactive specification starts
29247 with a `(', use it as a Lisp form.
29249 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
29250 name and file modes.
29252 * callint.c (Fcall_interactively): Comment fixes.
29254 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
29256 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
29257 and compiled functions.
29259 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
29261 * window.c (prefer_window_split_horizontally): New variable.
29262 (display_buffer): Consider splitting window horizontally depending
29263 on prefer_window_split_horizontally.
29265 2007-09-08 Eli Zaretskii <eliz@gnu.org>
29267 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
29269 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
29271 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
29273 * frame.c (x_set_frame_parameters): Check number is positive before
29276 * window.c (freeze_window_start): Don't presume selected_window holds
29278 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
29280 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
29282 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
29284 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
29286 * window.c (Vsplit_window_preferred_function): New var.
29287 (Fdisplay_buffer): Use it.
29288 (syms_of_window): Export, and initialize it.
29290 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
29292 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
29294 2007-09-06 Glenn Morris <rgm@gnu.org>
29296 * gtkutil.c (menu_grab_callback) <cnt>:
29297 * xselect.c (x_reply_selection_request) <cnt>: Move static
29298 variable to file scope.
29300 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
29302 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
29303 consistent values of selected_frame and selected_window.
29305 2007-09-04 Jason Rumney <jasonr@gnu.org>
29307 * w32console.c (initialize_w32_display): Zero unused hooks.
29309 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
29311 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
29312 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
29314 2007-09-04 Jason Rumney <jasonr@gnu.org>
29316 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
29317 in w32console.c. Set up input. Remove XXX comments that have been
29318 confirmed as correct.
29320 * s/ms-w32.h (MULTI_KBOARD): Define.
29322 * w32console.c (one_and_only_w32cons): Remove.
29323 (initialize_w32_display): Take terminal argument.
29325 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
29326 initialize_w32_display.
29327 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
29329 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
29331 * keyboard.c (discard_mouse_events): Discard it.
29332 (make_lispy_event): Translate it to a lisp event.
29333 (lispy_wheel_names): Add wheel-left and right events.
29334 (syms_of_keyboard): Enlarge wheel_syms.
29336 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
29337 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
29339 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
29341 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
29342 from WM_MOUSEHWHEEL.
29343 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
29345 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
29348 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
29349 keyboard for the terminal.
29351 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
29353 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
29354 (Vresume_tty_hook): Rename from Vresume_tty_functions.
29355 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
29356 and resume-tty-function to resume-tty-hook.
29357 (Fsuspend_tty, Fresume_tty): Use new names.
29359 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
29361 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
29362 if it starts with "n:".
29364 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
29366 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
29368 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
29371 * frame.c (Qterm_environment_variable): Remove.
29372 (syms_of_frame): Don't init and staticpro it.
29374 * callproc.c (getenv_internal): Remove special case for $TERM.
29376 * callproc.c (Vinitial_environment): New variable.
29377 (set_initial_environment): Initialize it.
29378 (syms_of_callproc): Declare it.
29379 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
29380 TERM under which a process runs is never related to the TERM in which
29383 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
29385 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
29386 * s/darwin.h: ... do it here.
29388 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
29390 * lisp.h (set_initial_environment): Rename from set_global_environment.
29392 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
29393 removed by mistake on the multi-tty branch.
29395 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
29396 (Fmodify_frame_parameters): Return a value.
29398 * image.c (png_load): Comment-out var only used in commented-out code.
29400 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
29401 before passing it to mark_object.
29403 * xfaces.c (internal_resolve_face_name): Return a value.
29404 (internal_resolve_face_name, resolve_face_name_error): Comment out.
29406 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
29407 (x_icon): Comment-out var only used in commented-out code.
29409 2007-08-29 Romain Francoise <romain@orebokech.com>
29411 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
29412 QUIT hasn't been provided.
29414 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
29416 * callproc.c (child_setup, getenv_internal): Use the
29417 display-environment-variable and term-environment-variable frame params.
29418 (set_initial_environment): Initialise Vprocess_environment.
29420 * config.in: Disable multi-keyboard support on a mac.
29422 * frame.c (Qterm_environment_variable)
29423 (Qdisplay_environment_variable): New variables.
29424 (syms_of_frame): Intern and staticpro them.
29425 (Fmake_terminal_frame): Disable output method test.
29427 * frame.h: Declare them here.
29429 * macfns.c (x_set_mouse_color): Get rif from the frame.
29430 (x_set_tool_bar_lines): Don't use updating_frame.
29431 (mac_window): Add 2 new parameters for consistency with other systems.
29432 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
29433 frame parameters following what is done in X11 and w32. Don't use
29434 FRAME_MAC_DISPLAY_INFO.
29435 (Fx_open_connection, start_hourglass): Remove window-system check.
29436 (x_create_tip_frame): Get the keyboard from the terminal.
29438 * macmenu.c: Reorder includes.
29439 (Fx_popup_menu): Use terminal specific mouse_position_hook.
29441 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
29442 terminal parameter.
29443 (x_clear_frame): Add a frame parameter.
29444 (note_mouse_movement): Get rif from the frame.
29445 (mac_term_init): Initialize the terminal.
29446 (mac_initialize): Make static and move terminal initialization ...
29447 (mac_create_terminal): ... to this new function.
29449 * macterm.h (struct mac_display_info): Add terminal.
29450 (mac_initialize): Delete declaration.
29452 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
29454 * sysdep.c: Comment out text after #endif.
29456 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
29457 is defined. Better initialize ttys in windows. Use terminal
29458 specific mouse_position_hook.
29460 * termhooks.h (union display_info): Add mac_display_info.
29462 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
29463 Set the default minibuffer frame, window_system and the rest of the
29464 frame parameters following what is done in X11.
29466 * w32term.c (w32_initialize): Make static.
29468 * xselect.c (x_handle_selection_clear): Only access
29469 terminal->kboard when MULTI_KBOARD is defined.
29471 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
29472 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
29474 2007-08-29 Jason Rumney <jasonr@gnu.org>
29476 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
29477 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
29479 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
29480 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
29482 * keyboard.c (restore_kboard_configuration): Only define when
29483 MULTI_KBOARD defined.
29485 * makefile.w32-in: Update dependancies from Makefile.in.
29486 (OBJ1): Add terminal.$(O)
29488 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
29489 Don't define function body.
29490 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
29492 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
29494 * w32.c (request_sigio, unrequest_sigio): Remove.
29496 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
29497 (w32con_clear_frame, w32con_clear_end_of_line)
29498 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
29499 (w32con_delete_glyphs, w32con_set_terminal_window)
29500 (scroll_line, w32_sys_ring_bell): Add frame arg.
29501 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
29503 (PICK_FRAME): Remove.
29504 (w32con_write_glyphs): Use frame specific terminal coding.
29505 (one_and_only_w32cons): New global variable.
29506 (initialize_w32_display): Use it for storing hooks.
29507 (create_w32cons_output): New function.
29509 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
29512 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
29514 (x_set_tool_bar_lines): Don't use updating_frame.
29515 (Fx_create_frame): Set terminal and ref count.
29516 (Fx_open_connection): Remove window-system check.
29518 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
29520 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
29521 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
29522 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
29524 (x_delete_terminal, w32_create_terminal): New functions.
29525 (w32_term_init): Create a terminal.
29526 (w32_initialize): Move terminal specific initialization to
29527 w32_create_terminal.
29529 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
29530 (w32_clear_rect, w32_clear_area): Use background from frame.
29531 (w32_display_info): Add terminal.
29532 (w32_sys_ring_bell, x_delete_display): Declare here.
29534 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
29536 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
29538 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
29540 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
29541 Fix get_named_tty calls for the controlling tty.
29543 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
29545 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
29547 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
29549 * term.c (tty_insert_glyphs): Add missing first parameter.
29551 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
29553 * buffer.c (Fbuffer_list, Fbury_buffer):
29554 Take frame->buried_buffer_list into account.
29556 * cm.c (current_tty): New variable, for cmputc().
29558 (cmcheckmagic): Add tty parameter, look up terminal streams there.
29559 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
29560 (cmgoto): Add tty parameter. Pass it on to calccost().
29561 Use emacs_tputs() instead of tputs().
29563 * cm.h (emacs_tputs): New macro to set current_tty, and then call
29565 (current_tty): New variable, for cmputc().
29566 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
29568 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
29569 (internal_condition_case, internal_condition_case_1)
29570 (internal_condition_case_2): Don't abort when x_catching_errors.
29572 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
29573 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
29574 prevent crashes caused by bogus longjmps in read_char.
29576 * keymap.h (Fset_keymap_parent): Add EXFUN.
29578 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
29579 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
29580 Remove redundant definition.
29582 * macfns.c (x_set_mouse_color, x_make_gc):
29583 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29585 * w32term.c (x_free_frame_resources):
29586 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29587 (w32_initialize): Use the accessor macros for terminal characteristics.
29589 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
29590 Use the accessor macros for terminal characteristics.
29591 * msdos.c (internal_terminal_init): Use the accessor macros for
29592 terminal characteristics.
29593 (ScreenVisualBell, internal_terminal_init):
29594 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29596 * termopts.h (no_redraw_on_reenter): Declare.
29598 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
29599 (mark_terminals, mark_ttys): Declare.
29600 (Fgarbage_collect): Call them.
29601 (mark_object): Mark buried_buffer_list.
29603 * prefix-args.c: Include stdlib.h for exit.
29605 * syssignal.h: Add comment.
29607 * indent.c: Include stdio.h.
29609 * window.h (Vinitial_window_system): Declare.
29610 (Vwindow_system): Delete declaration.
29612 * fontset.c (Finternal_char_font): Use FRAME_RIF.
29614 * image.c (lookup_image): Don't initialize `c' until the xasserts
29617 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
29618 FRAME_FOREGROUND_PIXEL.
29620 * print.c (print_preprocess): Don't lose print_depth levels while
29623 * widget.c (update_from_various_frame_slots):
29624 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29626 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
29628 (window_internal_height): Remove bogus make_number call.
29629 (init_window_once): Call make_terminal_frame with two zero parameters.
29631 * fileio.c (Fread_file_name): Update comment.
29633 * callint.c (Fcall_interactively):
29634 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
29635 Make sure it is correctly unwound.
29637 * xsmfns.c (x_session_close): New function.
29639 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
29640 Delete declarations.
29642 * xterm.h: Remove declaration for x_fully_uncatch_errors.
29643 (x_output): Remove background_pixel and foreground_pixel fields.
29644 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
29645 (x_delete_device, x_session_close): Declare.
29647 * lread.c: Include setjmp.h. Update declaration of `read_char'.
29648 (read_filtered_event): Call `read_char' with a local
29649 `wrong_kboard_jmpbuf'.
29651 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
29652 Don't call single_kboard_state. Use FRAME_RIF.
29654 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
29657 * lisp.h (set_process_environment): Rename to `set_global_environment'.
29658 (Fframe_with_environment, Fset_input_meta_mode)
29659 (Fset_quit_char): EXFUN.
29660 (x_create_device, tty_output, terminal, tty_display_info): Declare.
29661 (init_sys_modes, reset_sys_modes): Update prototypes.
29662 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
29664 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
29665 Vlocal_key_translation_map, and Vkeyboard_translate_table.
29666 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
29667 Delete declarations.
29668 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
29669 (temporarily_switch_to_single_kboard, tty_read_avail_input):
29672 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
29673 already does that during init_display(). Call syms_of_keymap
29674 before syms_of_keyboard. Call `syms_of_terminal'.
29675 Call set_initial_environment, not set_process_environment.
29676 (shut_down_emacs): Call reset_all_sys_modes() instead of
29679 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
29680 (internal_resolve_face_name, resolve_face_name_error): New functions.
29681 (resolve_face_name): Protect against loops and errors thrown by Fget.
29682 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
29683 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
29685 * scroll.c: Replace CURTTY() with local variables throughout the
29686 file (where applicable).
29687 (calculate_scrolling, calculate_direct_scrolling)
29688 (scrolling_1, scroll_cost): Use the accessor macros for terminal
29691 * keymap.c (Vfunction_key_map): Remove.
29692 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
29693 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
29694 (Vkey_translation_map): Remove.
29695 (syms_of_keymap): Remove DEFVAR for key-translation-map.
29696 (Fdescribe_buffer_bindings)
29697 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
29698 Update for terminal-local key-translation-map.
29700 * Makefile.in (callproc.o): Update dependencies.
29701 (lisp, shortlisp): Add termdev.elc.
29702 (obj): Add terminal.o.
29703 (terminal.o): Add dependencies.
29704 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
29705 (data.o, fns.o): Add termhooks.h dependency.
29706 (SOME_MACHINE_LISP): Add dnd.elc.
29707 (minibuf.o): Fix typo.
29708 Update dependencies.
29710 * data.c (do_symval_forwarding, store_symval_forwarding)
29711 (find_symbol_value): Use the selected frame's keyboard, not
29714 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
29717 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
29719 (syms_of_xmenu): Update defsubr.
29720 (mouse_position_for_popup, Fx_popup_menu)
29721 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
29722 (set_frame_menubar, free_frame_menubar)
29723 (create_and_show_popup_menu, xmenu_show)
29724 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
29727 * xselect.c (x_own_selection): Abort if not an X frame.
29728 (some_frame_on_display): Check if it is an X frame.
29729 (x_handle_selection_clear): Deal with MULTI_KBOARD.
29731 * coding.c: Include frame.h and termhooks.h.
29732 (terminal_coding, keyboard_coding): Delete.
29733 (Fset_terminal_coding_system_internal)
29734 (Fset_keyboard_coding_system_internal)
29735 (Fkeyboard_coding_system)
29736 (Fterminal_coding_system): Add a terminal parameter.
29737 Get terminal_coding from the terminal.
29738 (init_coding_once): Don't call setup_coding_system here.
29740 * dispextern.h (set_scroll_region, turn_off_insert)
29741 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
29742 (tty_clear_end_of_line, tty_setup_colors)
29743 (delete_tty, updating_frame)
29744 (produce_special_glyphs, produce_glyphs, write_glyphs)
29745 (insert_glyphs): Remove.
29746 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
29747 (tty_turn_off_highlight, get_tty_size): Add declaration.
29748 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
29750 * frame.h (enum output_method): Add output_initial.
29751 (struct x_output): Delete.
29752 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
29753 Access foreground_pixel and background_pixel directly from the frame.
29754 (tty_display): Delete.
29755 (struct frame): Add buried_buffer_list, foreground_pixel,
29756 background_pixel and terminal. Delete kboard.
29757 (union output_data): Add tty.
29758 (FRAME_KBOARD): Get the kboard from the terminal.
29759 (FRAME_INITIAL_P): New macro.
29760 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
29761 (Qterm_environment_variable, Qdisplay_environment_variable)
29762 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
29765 * termchar.h (tty_output, tty_display_info): New structures.
29766 (tty_list): Declare.
29767 (FRAME_TTY, CURTTY): New macros.
29768 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
29769 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
29770 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
29771 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
29773 * callproc.c: Include frame.h and termhooks.h, for terminal
29775 (add_env): New function.
29776 (child_setup): Use it.
29777 (child_setup, getenv_internal): Handle the new Vprocess_environment.
29778 (getenv_internal): Fix get_terminal_param call.
29779 (Fgetenv_internal, egetenv): Update doc.
29780 (syms_of_callproc): Initialize Vprocess_environment to nil.
29781 Register and initialize them. Remove obsolete defvars. Update doc
29783 (child_setup): Handle Vlocal_environment_variables.
29784 (getenv_internal): Add terminal parameter.
29785 Handle Vlocal_environment_variables.
29786 (Fgetenv_internal): Add terminal parameter.
29787 (child_setup, getenv_internal, Fgetenv_internal): Store the local
29788 environment in a frame (not terminal) parameter. Update doc strings.
29789 (set_initial_environment): Rename from set_global_environment.
29790 Store Emacs environment in initial frame parameter.
29792 * xdisp.c (redisplay_internal): Update references to
29793 `previous_terminal_frame'.
29794 (display_mode_line, Fformat_mode_line): Replace calls to
29795 `push_frame_kboard' with `push_kboard'.
29796 (get_glyph_string_clip_rects): Add extra parentheses and
29797 braces to prevent compiler warnings.
29798 (calc_pixel_width_or_height): Add xassert to check that the
29799 frame is alive. Don't call `lookup_image' on a termcap frame.
29800 (message2_nolog, message3_nolog, redisplay_internal)
29801 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
29802 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
29803 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
29804 (Fx_display_pixel_width, Fx_display_pixel_height)
29805 (Fx_display_planes, Fx_display_color_cells)
29806 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
29807 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
29808 (Fx_display_backing_store, Fx_display_visual_class)
29809 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
29810 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
29812 * xfns.c (x_set_foreground_color x_set_background_color)
29813 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
29814 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29815 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
29816 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
29817 terminal that is being deleted.
29818 (Fx_create_frame): Use `store_frame_param' to set `window-system'
29819 frame parameter, and make sure it overrides any user-supplied setting.
29820 (Fx_close_connection, Fx_synchronize): Unify argument names with
29821 the rest of the DEFUNs.
29823 * dispnew.c (Fsend_string_to_terminal): Update call to
29824 `get_tty_terminal'.
29825 (Fredraw_frame, Fsend_string_to_terminal)
29826 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
29827 FRAME_TERMCAP_P and FRAME_TTY.
29828 (window_change_signal): Don't believe width/height values that are
29830 (Vinitial_window_system): Rename from Vwindow_system.
29831 (termscript, Wcm, rif): Delete.
29833 * termhooks.h (struct terminal): New struct containing the
29834 previously global text display hooks and new members NAME,
29835 DELETED and PARAM_ALIST.
29836 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
29837 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
29838 (FRAME_RIF): New macros.
29839 (get_terminal_param, get_device): New declarations.
29840 (termscript): Delete declaration.
29842 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
29843 (XTflash, x_free_frame_resources, x_scroll_bar_create)
29844 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
29845 FRAME_FOREGROUND_PIXEL.
29846 (x_fully_uncatch_errors): Disable definition.
29847 (x_scroll_bar_expose): Fix reference to foreground pixel.
29848 (XTread_socket): Disable loop on all X displays.
29849 (x_delete_terminal): Don't set terminal->deleted and let
29850 delete_terminal delete the frames on the terminal.
29851 (x_delete_display): Doc update to reflect changes in
29853 (x_display_info) <terminal>: Move member earlier in the struct.
29854 (deleting_tty): Remove old variable.
29855 (Fsuspend_tty): Call clear_tty_hooks.
29856 (Fresume_tty, init_tty): Call set_tty_hooks.
29857 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
29858 errors on X frames.
29859 (x_catch_errors_unwind): Abort if x_error_message is NULL.
29860 (handle_one_xevent): Initialize `f' to NULL.
29861 (x_delete_terminal, x_create_terminal): New functions.
29862 (XTset_terminal_modes, XTreset_terminal_modes)
29863 (XTread_socket, x_connection_closed, x_term_init)
29864 (x_term_init, x_delete_display): Add terminal parameter.
29865 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
29868 * frame.c: Include termchar.h.
29869 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
29870 (Qwindow_system, Qenvironment, Qterm_environment_variable)
29871 (Qdisplay_environment_variable): New vars.
29872 (Fframep): Deal with output_initial.
29873 (Fframe-live-p): Doc fix.
29874 (Fwindow-system): New function.
29875 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
29876 (make_terminal_frame): Don't create frames on a terminal that is
29877 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29878 (store_frame_param): Check for found_for_frame before calling XFRAME.
29879 (Fmake_terminal_frame): Handle NULL tty names correctly.
29880 (syms_of_frame): Enhance doc string of `default-frame-alist'.
29881 (Fdelete_frame): Remove unused variable `count'. Don't allow other
29882 frames to refer to a deleted frame in their 'environment parameter.
29883 (Fframe_with_environment): New function.
29884 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
29885 (get_future_frame_param): New function.
29886 (Fmake_terminal_frame): Use it.
29887 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
29889 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
29890 * sysdep.c (reset_sys_modes): Update for renames.
29892 * keyboard.c (tty_read_avail_input): New function.
29893 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
29894 (syms_of_keyboard): Defsubr them.
29895 (Fset_input_meta_mode, Fset_quit_char): New functions.
29896 (Fset_input_mode): Split to above functions.
29897 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
29898 parameter. Use it in call to `read_char'.
29899 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
29900 Set wrong_kboard_jmpbuf correctly in recursive calls.
29901 Use current_kboard to access Vkeyboard_translate_table.
29902 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
29903 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
29904 Update longjmp invocations. Remember the original current_kboard,
29905 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
29906 changes it. Comment out unnecessary calls to
29907 `record_single_kboard_state' and `any_kboard_state'.
29908 Update recursive calls.
29909 (wrong_kboard_jmpbuf): Remove global variable.
29910 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
29911 Handle deleted interrupted_kboards correctly; that is a legal
29912 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
29913 and read_char calls. Abort if interrupted_kboard died in read_char.
29914 (any_kboard_state, single_kboard_state)
29915 (push_frame_kboard): Remove function.
29916 (pop_kboard): Switch out of single_kboard mode if the kboard has
29917 been deleted. Remove unused variable. Help debugging by not
29918 changing current_kboard unnecessarily. Set current_kboard to the
29919 kboard of the selected frame when the stored kboard object has
29920 been deleted before pop_kboard.
29921 (temporarily_switch_to_single_kboard): Change first parameter to a
29922 frame pointer. Throw an error when caller wants to change kboards
29923 while in single_kboard mode. Don't push_kboard if we weren't in
29924 single kboard state. Don't pop_kboard if we popped into any
29926 (restore_kboard_configuration): Abort if pop_kboard changed the
29927 kboard in single_kboard mode. Call pop_kboard only after setting
29928 up single_kboard mode.
29929 (Frecursive_edit): Switch to single_kboard mode only in nested
29931 (cmd_error, command_loop, command_loop_1, timer_check):
29932 Comment out unnecessary call to `any_kboard_state' and
29933 `record_single_kboard_state'.
29934 (delete_kboard): Exit single_kboard mode if we have just deleted
29935 that kboard. Use FRAME_KBOARD.
29936 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
29937 `fatal_error_signal'.
29938 (record_single_kboard_state): Don't push_kboard if we weren't in
29939 single kboard state. Don't pop_kboard if we popped into any
29941 (push_frame_kboard): Rename to push_kboard.
29942 (kbd_buffer_get_event): Use FRAME_TERMINAL.
29943 (read_avail_input): Read input from all terminals.
29944 (mark_kboards): Also mark Vkeyboard_translate_table.
29945 (kbd_buffer_store_event_hold): Simplify condition.
29946 (read_key_sequence): Reinitialize fkey and keytran at each replay.
29947 (Vkeyboard_translate_table): Move to struct kboard.
29948 (init_kboard): Initialize Vkeyboard_translate_table.
29949 (syms_of_keyboard): Use DEFVAR_KBOARD to define
29950 Vkeyboard_translate_table. Update doc strings. Update docs of
29951 local-function-key-map and function-key-map.
29953 * terminal.c: New file.
29955 * term.c: Include errno.h.
29956 (Vring_bell_function, device_list, initial_device)
29957 (next_device_id, ring_bell, update_begin, update_end)
29958 (set_terminal_window, cursor_to, raw_cursor_to)
29959 (clear_to_end, clear_frame, clear_end_of_line)
29960 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
29961 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
29962 (syms_of_term): Move their initialization to terminal.c.
29963 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
29964 (Ftty_display_color_cells)
29965 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
29966 (clear_tty_hooks, set_tty_hooks)
29967 (init_tty, maybe_fatal): New functions.
29968 (Ftty_type): Return nil if terminal is not on a tty instead of
29969 throwing an error. Doc update.
29970 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
29971 Doc update. Initialize new subrs and variables.
29972 (delete_tty): Use terminal->deleted.
29973 (tty_set_terminal_modes): Rename from set_terminal_modes.
29974 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
29975 (set_scroll_region): Rename to `tty_set_scroll_region'.
29976 (turn_on_insert): Rename to `tty_turn_on_insert'.
29977 (turn_off_insert): Rename to `tty_turn_off_insert'.
29978 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
29979 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
29980 (toggle_highligh): Rename to `tty_toggle_highlight'.
29981 (background_highlight): Rename to `tty_background_highlight'.
29982 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
29983 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
29984 (tty_set_scroll_region, tty_background_highlight)
29985 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
29986 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
29987 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
29988 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
29989 Add static modifier.
29990 (tty_reset_terminal_modes, tty_set_terminal_window)
29991 (tty_set_scroll_region, tty_background_highlight)
29992 (tty_highlight_if_desired, tty_cursor_to)
29993 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
29994 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
29995 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
29998 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
30000 * keyboard.c: Qrtl is new.
30001 (parse_tool_bar_item): Handle :rtl keyword.
30002 (syms_of_keyboard): Intern :rtl keyword.
30004 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
30006 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
30007 so no Lisp code is executed.
30008 (file_for_image, find_rtl_image): New functions.
30009 (xg_get_image_for_pixmap): Use file_for_image.
30010 (update_frame_tool_bar): If direction is RTL, use RTL image if
30011 defined. Use Gtk stock images if defined.
30013 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30015 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
30016 for nonexistent or zero-width glyph in composition glyph.
30018 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
30020 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
30022 * xdisp.c (Finvisible_p): New function.
30023 (syms_of_xdisp): defsubr it.
30025 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
30027 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
30030 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30032 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
30034 2007-08-24 Martin Rudalics <rudalics@gmx.at>
30036 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
30037 whether decoding has modified buffer contents.
30039 2007-08-24 Jason Rumney <jasonr@gnu.org>
30041 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
30042 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
30043 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
30044 (init_svg_functions) [HAVE_NTGUI]: New function.
30045 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
30046 (svg_load_image): Use them.
30047 (svg_load_image) [HAVE_NTGUI]: Implement background.
30049 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30051 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
30052 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
30053 (LIBX): Remove @RSVG_LIBS@.
30054 (LIBES): Add $(RSVG_LIBS).
30056 * image.c (svg_load_image): Blend with specified background if exists.
30057 Use IMAGE_BACKGROUND. Add Mac OS Support.
30059 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
30060 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
30062 [MAC_OSX] (socket_callback): Do nothing.
30063 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
30065 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
30067 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
30069 2007-08-22 Glenn Morris <rgm@gnu.org>
30071 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
30073 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
30075 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
30077 * image.c: Add support for SVG images. Some additional comments
30078 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
30079 (svg_image_p): New function to test for SVG image.
30080 (svg_load): New function to load SVG image.
30081 (svg_load_image): New function, helper for svg_load.
30082 (Qsvg): New Lisp_object.
30083 (svg_keyword_index): New enum.
30084 (svg_format): New static `image_keyword' struct.
30085 (svg_type): New static `image_type' struct.
30086 (librsvg/rsvg.h): Include it.
30088 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
30090 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
30092 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
30094 * lread.c (Qold_style_backquotes): New var.
30095 (syms_of_lread): Init and staticpro it.
30096 (load_warn_old_style_backquotes): New fun.
30097 (Fload): Use them to warn about old style backquotes.
30098 (end_of_file_error, Fload): Remove unused vars.
30100 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
30102 * lread.c (Vold_style_backquotes): New var.
30103 (syms_of_lread): Init and export it to Elisp.
30104 (read1): Set it when we find an old-style (back)quote.
30106 2007-08-22 Jason Rumney <jasonr@gnu.org>
30108 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
30110 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
30112 * puresize.h (BASE_PURESIZE): Increase to 1140000.
30114 2007-08-19 Richard Stallman <rms@gnu.org>
30116 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
30118 2007-08-19 Andreas Schwab <schwab@suse.de>
30120 * alloc.c (pure): Round PURESIZE up.
30122 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
30124 * xterm.c (handle_one_xevent): Remove check that mouse click is in
30127 2007-08-16 Richard Stallman <rms@gnu.org>
30129 * eval.c (Fcommandp): Add parens to clarify.
30131 * minibuf.c (Fall_completions): Use enum for type of table.
30133 * emacs.c (USAGE2): Improve text.
30135 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
30137 * term.c (tty_default_color_capabilities): Declare static
30138 variables in file scope, to avoid HPUX compiler problem.
30140 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
30142 * gtkutil.c (update_frame_tool_bar): Use -1 as index
30143 to gtk_toolbar_insert.
30145 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
30147 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
30149 * insdel.c (reset_var_on_error): New fun.
30150 (signal_before_change, signal_after_change):
30151 Use it to reset (after|before)-change-functions to nil in case of error.
30152 Bind inhibit-modification-hooks to t.
30153 Don't bind (after|before)-change-functions to nil while they run.
30155 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30157 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
30158 filling pixmap with stippled background.
30160 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30162 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
30163 Don't use invisible frame as parent window for repositioning.
30165 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
30167 * print.c (new_backquote_output): Rename from old_backquote_output.
30168 (print): Inverse its logic (according to its name) so as to match the
30169 behavior of new_backquote_flag in lread.c.
30171 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30173 * gmalloc.c (posix_memalign): New function.
30175 * macterm.c (frame_highlight, frame_unhighlight): Don't call
30176 ActivateControl/DeactivateControl here.
30177 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
30178 frame-notice-user-settings is non-nil.
30179 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
30180 for kEventParamFMFontStyle.
30181 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
30182 mac_pass_command_to_system and mac_pass_control_to_system here.
30183 (XTread_socket): Call ActivateControl/DeactivateControl here.
30184 (XTread_socket) [TARGET_API_MAC_CARBON]:
30185 Check mac_pass_command_to_system and mac_pass_control_to_system here.
30186 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
30187 for window repositioning.
30189 2007-08-08 Glenn Morris <rgm@gnu.org>
30191 * Replace `iff' in doc-strings and comments.
30193 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
30195 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
30197 2007-08-07 Martin Rudalics <rudalics@gmx.at>
30199 * fileio.c (Finsert_file_contents): Run format-decode and
30200 after_insert_file_functions on entire buffer when REPLACE is
30201 non-nil and inhibit modification_hooks and point_motion_hooks.
30202 For consistency, run after_insert_file_functions iff something
30203 got inserted. Move signal_after_change and update_compositions
30204 after code running after_insert_file_functions. Make sure that
30205 undo_list doesn't record intermediate steps of the decoding process.
30207 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30210 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
30211 Call malloc_enable_thread on interactive startup.
30213 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
30214 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
30215 [USE_PTHREAD]: Conditionalize with it.
30216 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
30217 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
30220 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
30222 * xdisp.c (redisplay_window): When restoring original buffer
30223 position, make sure it is still valid.
30225 * image.c (png_load): Ignore png-supplied background color.
30227 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30229 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
30230 Use kCFAbsoluteTimeIntervalSince1970.
30232 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
30234 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
30235 event loop should be quit.
30236 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
30237 Quit dialog event loop if quit_dialog_event_loop is set.
30239 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
30240 (Selection): New typedef. Use instead of ScrapRef.
30241 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
30242 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
30243 (mac_clear_selection): Rename from clear_scrap.
30244 (get_flavor_type_from_symbol): New argument SEL and subsume function of
30245 scrap_has_target_type. All uses changed.
30246 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
30247 (mac_selection_has_target_p): New functions.
30248 (mac_put_selection_value): Rename from put_scrap_string.
30249 (mac_get_selection_value): Rename from get_scrap_string.
30250 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
30251 (put_scrap_private_timestamp, scrap_has_target_type)
30252 (get_scrap_private_timestamp): Remove functions.
30253 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
30254 (x_own_selection, x_get_local_selection):
30255 Use mac_valid_selection_value_p.
30256 (x_own_selection): Don't use put_scrap_private_timestamp.
30257 Record OWNERSHIP-INFO into Vselection_alist instead.
30258 (x_get_local_selection): Don't check type if request is local.
30259 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
30260 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
30262 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
30264 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
30265 add comment explaining why.
30267 2007-08-03 Richard Stallman <rms@gnu.org>
30269 * fileio.c (Fvisited_file_modtime): Use make_time.
30271 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
30273 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
30276 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
30278 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
30280 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
30282 * puresize.h (BASE_PURESIZE): Increase to 1130000.
30284 2007-07-30 Richard Stallman <rms@gnu.org>
30286 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
30288 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
30290 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
30292 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
30294 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
30295 remote default-directory.
30297 * buffer.c (mode-line-format): Update doc string.
30299 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30301 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
30303 (x_scroll_bar_create): Set bar->fringe_extended_p.
30304 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
30305 on frame edge. Check fringe background extension. Don't clear
30306 extended fringe background area.
30308 * w32term.h (struct scroll_bar): New member fringe_extended_p.
30309 (w32_fill_area): Enclose multiple statements with do ... while (0).
30311 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
30312 Extend fringe background to scroll bar gap.
30313 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
30314 Set bar->fringe_extended_p.
30315 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
30316 Put leftmost/rightmost scroll bars on frame edge. Check fringe
30317 background extension. Don't clear extended fringe background area.
30319 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
30320 New member fringe_extended_p.
30322 2007-07-25 Glenn Morris <rgm@gnu.org>
30324 * Relicense all FSF files to GPLv3 or later.
30326 * COPYING: Switch to GPLv3.
30328 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
30330 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
30332 * data.c (Finteractive_form): Check for the presence of an
30333 `interactive-form' symbol property more thoroughly.
30335 * data.c (Finteractive_form): Use an `interactive-form' property if
30336 present, analogous to the function-documentation property.
30338 2007-07-24 Jason Rumney <jasonr@gnu.org>
30340 * w32fns.c (x_real_positions): Get real position from OS instead of
30343 2007-07-23 Jason Rumney <jasonr@gnu.org>
30345 * filelock.c (current_lock_owner): Allow for @ sign in username.
30347 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
30349 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
30350 remote default-directory.
30352 * buffer.c (mode-line-format): Describe above case in doc string.
30354 2007-07-20 Eli Zaretskii <eliz@gnu.org>
30356 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
30357 Define if not defined.
30359 2007-07-18 Jason Rumney <jasonr@gnu.org>
30361 * w32proc.c (w32_executable_type): Handle 64 bit executables.
30363 2007-07-18 Richard Stallman <rms@gnu.org>
30365 * data.c (Fsetq_default): Doc fix.
30367 * eval.c (Fsetq): Doc fix.
30369 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
30371 * coding.c (Ffind_operation_coding_system):
30372 * eval.c (For, Fand): Doc fixes.
30373 Reported by Johan Bockgård.
30375 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
30377 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
30379 * xterm.h: Declare x_ewmh_activate_frame.
30381 * xterm.c (x_ewmh_activate_frame): New function.
30382 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
30384 2007-07-17 Martin Rudalics <rudalics@gmx.at>
30386 * window.c (Fdisplay_buffer): If largest or LRU window is the
30387 only window, split it even if it is not eligible for splitting.
30388 This restores the original behavior broken by the 2007-07-15
30391 2007-07-17 Glenn Morris <rgm@gnu.org>
30393 * abbrev.c (abbrev_check_chars): New function.
30394 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
30395 Call abbrev_check_chars to check abbrev characters are word
30396 constituents. Doc fix.
30398 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
30400 * process.c (Fstart_process, Fmake_network_process)
30401 (read_process_output): Fix up last changes.
30403 2007-07-16 Eli Zaretskii <eliz@gnu.org>
30405 * makefile.w32-in (clean): Don't delete *~.
30407 2007-07-16 Andreas Schwab <schwab@suse.de>
30409 * window.c (Fdisplay_buffer): Use NILP.
30410 (Fset_window_scroll_bars): Likewise.
30412 2007-07-15 Martin Rudalics <rudalics@gmx.at>
30414 * window.c (window_min_size_2): New function.
30415 (window_min_size_1, size_window, Fdisplay_buffer)
30416 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
30417 windows without mode- or header-lines when window-min-height is
30419 (size_window): Reset nodelete_p after testing it, following an
30420 earlier note by Kim F. Storm.
30421 (display_buffer): Do not set split_height_threshold to twice the
30422 value of window_min_height to avoid changing the value of a
30423 customizable variable. Rather explicitly check whether the
30424 height of the window that shall be splitted is at least as large
30425 as split_height_threshold.
30426 (Fwindow_full_width_p): New defun.
30427 (syms_of_window): Defsubr it.
30429 * window.h: Add EXFUN for Fwindow_full_width_p.
30431 2007-07-14 Jason Rumney <jasonr@gnu.org>
30433 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
30435 2007-07-14 Richard Stallman <rms@gnu.org>
30437 * eval.c (maybe_call_debugger): New function.
30438 (find_handler_clause): Use maybe_call_debugger.
30439 Call it when the handler says `debug'.
30440 Eliminate DEBUGGER_VALUE_PTR.
30441 (Fsignal): Eliminate debugger_value.
30442 (Qdebug): New variable.
30443 (syms_of_eval): Initialize it.
30445 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
30448 * keyboard.c (Ftrack_mouse):
30449 * print.c (Fwith_output_to_temp_buffer):
30450 * window.c (Fsave_window_excursion): Doc fix.
30452 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
30454 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
30456 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
30458 * process.h (struct Lisp_Process): Turn slots infd, outfd,
30459 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
30460 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
30461 read_output_delay, and read_output_skip from Lisp_Objects to ints.
30462 Remove unused encoding_carryover.
30463 * process.c: Adjust all functions accordingly.
30465 2007-07-12 Richard Stallman <rms@gnu.org>
30467 * term.c: Include unistd.h only if HAVE_UNISTD_H.
30469 2007-07-11 Jason Rumney <jasonr@gnu.org>
30471 * makefile.w32-in (LIBS): Include OLE32.
30473 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
30474 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
30476 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
30478 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
30479 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
30480 from a Lisp_Object into a bare pointer.
30481 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
30482 Adjust the code correspondingly.
30484 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
30486 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
30487 (term_show_mouse_face): Remove unused var `j'.
30488 (handle_one_term_event): Remove unused vars `i' and `j'.
30489 Don't cast return value of ttyname since it's not necessary.
30491 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
30493 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
30494 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
30496 * fns.c (map_char_table): Use an array of int for `indices' rather than
30497 an array of Lisp_Objects (which are only ever integers anyway).
30498 (Fmap_char_table): Update caller.
30499 * lisp.h: Update prototype.
30500 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
30501 * fontset.c (Ffontset_info):
30502 * casetab.c (set_case_table): Update callers.
30504 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
30506 * keymap.c (struct accessible_keymaps_data)
30507 (struct where_is_internal_data): New structures.
30508 (accessible_keymaps_1, where_is_internal_1): Use them to change
30509 interface to adhere to the one used by map_keymap.
30510 (Faccessible_keymaps, where_is_internal): Use map_keymap.
30511 (accessible_keymaps_char_table, where_is_internal_2): Remove.
30513 * keymap.h (map_keymap_function_t): More informative prototype.
30515 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
30517 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
30518 (looking_at_1): Don't change search_regs and last_thing_searched
30519 if `inhibit-changing-match-data' is non-nil.
30520 (string_match_1, search_buffer, set_search_regs): Likewise.
30521 (syms_of_search): Add Lisp level definition for
30522 `inhibit-changing-match-data' and set it to nil.
30523 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
30524 start and end of the match, instead of using values in search_regs.
30526 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
30528 * minibuf.c (Fcompleting_read): New value `confirm-only'
30529 for `require-match'.
30531 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
30533 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
30534 part of the 2007-06-27 change to syms_of_fileio.
30536 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30538 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
30539 Check WINDOWP before using XWINDOW. Consolidate return statements.
30541 2007-06-27 Richard Stallman <rms@gnu.org>
30543 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
30545 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
30547 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
30549 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30551 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
30552 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
30553 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
30554 (_free_internal, memalign): Use them.
30555 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
30556 Initialize to PTHREAD_MUTEX_INITIALIZER.
30557 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
30558 (morecore_nolock): Rename from morecore. All uses changed.
30559 Use only nolock versions of internal allocation functions.
30560 (_malloc_internal_nolock, _realloc_internal_nolock)
30561 (_free_internal_nolock): New functions created from
30562 _malloc_internal, _realloc_internal, and _free_internal.
30563 (_malloc_internal, _realloc_internal, _free_internal): Use them.
30564 Copy hook value to automatic variable before its use.
30565 (memalign): Copy hook value to automatic variable before its use.
30567 2007-06-26 Kenichi Handa <handa@m17n.org>
30569 * coding.c (Ffind_operation_coding_system): Docstring improved.
30570 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
30572 2007-06-25 David Kastrup <dak@gnu.org>
30574 * keymap.c (Fcurrent_active_maps): Add `position' argument.
30575 (Fwhere_is_internal): Adjust call to `current-active-maps' to
30576 cater for additional parameter.
30578 * keymap.h: Adjust number of parameters to `current-active-maps'.
30580 * doc.c (Fsubstitute_command_keys): Adjust call of
30581 `current-active-maps'.
30583 2007-06-25 David Kastrup <dak@gnu.org>
30585 * callint.c (Fcall_interactively): Make the parsing of interactive
30586 specs somewhat more readable.
30588 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30590 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
30591 to scroll bar gap also when bitmap fills fringe. Draw only foreground
30592 if extended background has already been filled.
30594 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30596 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
30597 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
30599 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
30600 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
30601 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
30602 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
30603 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
30604 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
30605 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
30606 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
30607 Run timers during dialog popup.
30608 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
30610 2007-06-21 Jason Rumney <jasonr@gnu.org>
30612 * image.c (convert_mono_to_color_image): Swap fore and background.
30614 2007-06-20 Jason Rumney <jasonr@gnu.org>
30616 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
30617 (w32_free_bdf_font): Unmap memory not handle.
30619 2007-06-20 Sam Steingold <sds@gnu.org>
30621 * gmalloc.c (__morecore): Fix the declaration to comply with the
30624 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
30626 * w32term.c (w32_delete_display): Remove leftover declaration.
30627 (w32_define_cursor, w32_initialize): Make static.
30629 * w32.c (_wsa_errlist): Fix typo in error message.
30630 (init_environment): Ignore any environment variable from the
30631 registry having a null value.
30633 2007-06-20 Glenn Morris <rgm@gnu.org>
30635 * Makefile.in (LIBGIF): Default to -lgif.
30637 2007-06-17 Jason Rumney <jasonr@gnu.org>
30639 * w32menu.c (add_menu_item): Don't use multibyte string functions on
30642 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
30644 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
30645 Fix typo in docstring.
30647 2007-06-16 Eli Zaretskii <eliz@gnu.org>
30649 * w32menu.c (add_menu_item): Escape `&' characters in menu items
30650 and their keybindings.
30652 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
30654 * composite.c (update_compositions): Fix last fix.
30656 2007-06-14 Jason Rumney <jasonr@gnu.org>
30658 * w32.c (get_process_times_fn): New function pointer.
30659 (globals_of_w32): Intialize it if present in kernel32.dll.
30660 (w32_get_internal_run_time): New function.
30662 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
30664 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
30666 * composite.c (update_compositions): Check the validness of
30669 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30671 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
30672 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
30674 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
30675 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
30677 * macgui.h (USE_MAC_TOOLBAR): New define.
30679 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
30680 Return immediately unless popup is activated.
30682 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
30683 background to scroll bar gap.
30684 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
30685 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
30686 scroll bars on frame edge. Check fringe background extension.
30687 Don't clear extended fringe background area.
30688 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
30689 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
30690 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
30691 [USE_MAC_TOOLBAR]: New macros.
30692 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
30693 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
30694 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
30695 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
30696 [USE_MAC_TOOLBAR]: New functions.
30697 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
30698 manually if previous repositioning has failed.
30699 (mac_handle_keyboard_event): Use precomputed event kind.
30700 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
30701 as tool bar item click. Handle mouse movement over tool bar items.
30703 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
30704 toolbar_win_gravity.
30705 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
30706 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
30709 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
30710 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
30712 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
30714 * image.c (search_image_cache): Remove unused variable.
30716 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
30718 * xfns.c, xmenu.c: Link to xaw3d if available.
30720 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30722 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
30723 frame_foreground and frame_background.
30725 * image.c (lookup_image): Save frame foreground and background colors.
30726 (search_image_cache): Check if saved and current frame colors match.
30728 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
30730 * regex.c (regex_compile): Remove the `regnum' counter.
30731 Use bufp->re_nsub instead. Add support for \(?N:RE\).
30733 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
30735 * term.c: Include intervals.h to declare Fget_text_property.
30737 2007-06-10 Jason Rumney <jasonr@gnu.org>
30739 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
30741 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
30743 * callint.c (Fcall_interactively):
30744 * editfns.c (Fdelete_and_extract_region):
30745 * fileio.c (Fread_file_name):
30746 * fns.c (Fmapconcat):
30747 * keyboard.c (cmd_error_internal):
30748 * keymap.c (Fkey_description):
30750 * minibuf.c (read_minibuf):
30751 * search.c (wordify):
30752 * sunfns.c (sel_read):
30753 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
30754 * xfns.c (x_default_scroll_bar_color_parameter):
30755 * xmenu.c (menu_help_callback):
30756 * xselect.c (Fx_get_atom_name):
30757 * xterm.c (x_term_init): Use empty_unibyte_string.
30759 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
30761 * alloc.c (init_strings): Initialize canonical empty strings.
30762 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
30763 canonical empty string when the requested size is 0.
30765 * emacs.c (empty_unibyte_string): Rename from empty_string.
30766 (empty_multibyte_string): New canonical empty string.
30767 (syms_of_emacs): Don't initialize empty_string.
30769 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
30770 string, if appropriate.
30771 (empty_unibyte_string, empty_multibyte_string): New externs.
30772 (empty_string): Remove extern.
30774 * lread.c (syms_of_lread): Use empty_unibyte_string.
30776 2007-06-07 Jason Rumney <jasonr@gnu.org>
30778 * s/ms-w32.h: Don't define HAVE_TZNAME.
30780 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
30782 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30784 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
30786 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
30787 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
30789 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
30790 Don't call next handler.
30791 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
30792 Remove argument. Install handler to application.
30793 (set_frame_menubar): Don't change deep_p.
30794 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
30795 FRAME_OUTER_TO_INNER_DIFF_Y.
30796 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
30797 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
30798 [HAVE_DIALOGS]: New macros.
30799 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
30801 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
30803 * macselect.c [MAC_OSX] (install_service_handler): Rename from
30804 init_service_handler. All callers changed. Return OSStatus value.
30806 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
30807 All callers changed so as not to call SetPortWindowPort.
30808 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
30809 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
30810 mac_draw_string_common.
30811 (mac_draw_image_string_qd): Likewise.
30812 (mac_draw_string_common): Use them. Add INLINE.
30813 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
30814 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
30816 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
30817 and FRAME_OUTER_TO_INNER_DIFF_Y.
30818 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
30819 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
30820 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
30821 repositioning window to mac_handle_window_event.
30822 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
30823 saving window location to mac_handle_window_event
30824 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
30825 (install_menu_target_item_handler): Remove argument in extern.
30826 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
30827 Also accept command events.
30828 (do_keystroke): New function created from XTread_socket.
30829 (init_command_handler): Remove functions.
30830 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
30831 and save window location by kEventWindowShowing and kEventWindowHiding
30832 handlers here. Don't call next handler for window state change and
30834 (mac_handle_application_event, mac_handle_keyboard_event)
30835 [TARGET_API_MAC_CARBON]: New functions.
30836 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
30837 kEventWindowShowing and kEventWindowHiding events. Move installation
30838 of mouse, font, text input and menu target item handlers to
30839 install_application_handler.
30840 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
30841 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
30843 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
30845 (XTread_socket) [TARGET_API_MAC_CARBON]:
30846 Consolidate SendEventToEventTarget calls.
30847 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
30848 Move application activation handler to mac_handle_application_event.
30849 Move keyboard handler to mac_handle_keyboard_event.
30850 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
30851 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
30852 init_command_handler. Call install_application_handler.
30854 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
30855 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
30857 2007-06-07 Glenn Morris <rgm@gnu.org>
30859 * emacs.c (main): Use `emacs-copyright' in --version output.
30861 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
30863 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
30865 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30867 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
30869 * macgui.h: Replace WindowPtr with WindowRef.
30871 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
30872 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
30873 Replace ControlHandle with ControlRef.
30874 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
30876 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
30877 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
30878 Replace ControlHandle with ControlRef.
30879 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
30880 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
30882 * macterm.h (struct scroll_bar): Rename member control_handle_low
30883 and control_handle_high to control_ref_low and control_ref_high.
30885 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
30886 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
30887 respectively. All uses changed.
30888 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
30889 (install_window_handler, remove_window_handler): Replace WindowPtr
30890 with WindowRef in externs.
30892 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
30894 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
30896 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
30898 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
30900 * frame.c (Fmouse_position, Fmouse_pixel_position):
30901 Condition on HAVE_GPM too.
30903 * term.c (term_mouse_highlight): Remove unused variables.
30904 (Fterm_open_connection): Set gpm_zerobased to 1.
30905 (term_mouse_movement, term_mouse_click, handle_one_term_event):
30906 Use zero based co-ordinates.
30907 (handle_one_term_event): Report a drag as mouse movement too.
30909 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
30911 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
30913 * image.c (search_image_cache): New function. Require background
30914 color match if background color is unspecified in the image spec.
30915 (uncache_image, lookup_image): Use it.
30917 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
30919 * window.c (Fshrink_window): Reflow docstring.
30921 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
30923 * Version 22.1 released.
30925 2007-06-01 Richard Stallman <rms@gnu.org>
30927 * xfns.c (x_encode_text): Add GCPRO.
30929 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30931 * xfns.c (x_set_name_internal): Save encoded name before
30932 x_encode_text in case string data is relocated.
30934 2007-05-31 Richard Stallman <rms@gnu.org>
30936 * buffer.c (syms_of_buffer): Doc fix.
30938 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
30940 * sysdep.c (init_sys_modes): Add rather than replace with
30943 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
30946 * termhooks.h (term_mouse_moveto): New extern.
30948 * term.c (mouse_face_window): Rename...
30949 (Qmouse_face_window): ...to this.
30950 (term_show_mouse_face, term_clear_mouse_face)
30951 (term_mouse_highlight): Use Qmouse_face_window.
30952 (term_mouse_moveto): New function.
30953 (term_mouse_position): Make it work.
30954 (syms_of_term): Uncomment assignment to mouse_position_hook.
30955 Staticpro Qmouse_face_window.
30957 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30959 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
30960 around current_column call.
30962 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
30964 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
30965 * xdisp.c (next_element_from_buffer):
30966 * window.c (delete_window):
30967 * term.c (term_mouse_highlight):
30968 * msdos.c (getdefdir):
30969 * macterm.c (mac_create_bitmap_from_bitmap_data)
30970 (init_font_name_table):
30972 * data.c (Fmake_local_variable):
30973 * ccl.c (ccl_driver): Likewise.
30975 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30977 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
30978 Call mac_wakeup_from_rne on window size change.
30980 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
30982 * image.c (uncache_image): Fix typo.
30984 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
30986 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
30988 2007-05-22 Richard Stallman <rms@gnu.org>
30990 * xterm.c (x_connection_closed): Remove NO_RETURN.
30992 2007-05-22 Martin Rudalics <rudalics@gmx.at>
30994 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
30996 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
30998 * image.c (uncache_image): New function.
30999 (Fimage_refresh): New function.
31001 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
31003 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
31005 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
31007 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
31008 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
31010 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
31012 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
31013 conditional on [HAVE_GPM_H].
31015 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
31017 * syntax.c (skip_chars): Update syntax-table only after we checked that
31018 the new location is valid.
31020 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31022 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
31023 mac_get_window_bounds.
31025 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
31027 * Makefile.in (LIBGPM): Allow it to be set from configure.
31028 If set then link Emacs with it.
31030 * config.in: Regenerate.
31032 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
31035 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
31037 (handle_one_term_event, term_gpm): New externs.
31039 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
31040 and allow it to be interrupted by SIGIO.
31042 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
31043 (wait_reading_process_output): Wait on gpm_fd too.
31044 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
31045 (add_gpm_wait_descriptor_called_flag): New variable.
31046 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
31048 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
31049 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
31050 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
31051 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
31052 (make_lispy_event): Add case GPM_CLICK_EVENT.
31053 (read_avail_input): Handle mouse input.
31055 * term.c (write_glyphs_with_face): New function.
31056 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
31057 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
31058 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
31059 (mouse_face_face_id, term_gpm, pos_x, pos_y)
31060 (last_mouse_x, last_mouse_y): New variables.
31061 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
31062 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
31063 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
31064 (Fterm_close_connection): New functions.
31065 (term_init): Initialise mouse_face_window.
31067 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
31069 * xdisp.c (redisplay_window): If first window line is a
31070 continuation line, recompute the new window start instead of
31073 2007-05-18 Glenn Morris <rgm@gnu.org>
31075 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
31076 Suggested by Alfred M. Szmidt <ams@gnu.org>.
31078 2007-05-17 Glenn Morris <rgm@gnu.org>
31080 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
31082 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31084 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
31085 dead key repeat and up events.
31087 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
31089 * image.c (pbm_load): Check image size for monochrome pbm.
31091 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
31093 * xterm.c (XTread_socket): Revert last change.
31095 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
31097 * image.c (pbm_load): Correctly check image size for greyscale pbm.
31099 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
31101 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
31103 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
31106 2007-05-07 Andreas Schwab <schwab@suse.de>
31108 * keymap.c (Flookup_key): Fix typo in last change.
31110 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
31112 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
31113 mapping for unibyte strings.
31115 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31117 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
31118 (Fx_popup_dialog) [MAC_OSX]: Likewise.
31120 2007-04-29 Richard Stallman <rms@gnu.org>
31122 * insdel.c (replace_range): For undo, record insertion first.
31124 2007-04-29 Andreas Schwab <schwab@suse.de>
31126 * lisp.h (VECSIZE): Use OFFSETOF.
31128 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31130 * xdisp.c (try_window_reusing_current_matrix): Fix number of
31133 2007-04-28 Richard Stallman <rms@gnu.org>
31135 * lread.c (read_escape): In a string, \s is always space.
31137 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
31139 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
31141 * gtkutil.c (xg_update_menubar, create_menus): Create empty
31142 submenu for menu bar items.
31144 See ChangeLog.10 for earlier changes.
31146 ;; Local Variables:
31150 Copyright (C) 2007-2011 Free Software Foundation, Inc.
31152 This file is part of GNU Emacs.
31154 GNU Emacs is free software: you can redistribute it and/or modify
31155 it under the terms of the GNU General Public License as published by
31156 the Free Software Foundation, either version 3 of the License, or
31157 (at your option) any later version.
31159 GNU Emacs is distributed in the hope that it will be useful,
31160 but WITHOUT ANY WARRANTY; without even the implied warranty of
31161 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
31162 GNU General Public License for more details.
31164 You should have received a copy of the GNU General Public License
31165 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.